PageSourceSearch

https://www.hemkop.se/_next/static/chunks/3121-5f067fadaf807a88.js

js hemkop.se collected 2026-10-02 07:00:17 UTC 37,822 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3121],{4047:(e,t,i)=>{i.d(t,{A:()=>c,I:()=>s});var n=i(37876),r=i(65773),a=i(21849);let l=(0,i(73419).A)(e=>{let{intersectionRef:t,children:i}=e;return(0,n.jsx)("div",{"data-testid":"intersection-wrapper",ref:t,children:i})});var o=i(17553);let s=e=>!!e.id&&!!e.name,c=e=>{let{results:t,onSavedRecipesChange:i}=e,{debouncedTrack:c,queueTrackingOfItem:d,trackableRefs:p}=(0,a.A)(t,r.g2);return(0,n.jsx)(n.Fragment,{children:null==t?void 0:t.map((e,t)=>e&&(0,n.jsx)(l,{ref:p.current[t],intersectionCallback:()=>{d(e),c()},children:s(e)?(0,n.jsx)(o.A,{searchResult:!0,recipe:e,onSavedRecipesChange:i}):null},"".concat(null==e?void 0:e.id).concat(e.name)))})}},9419:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(37876),r=i(34185),a=i(21928),l=i(47978),o=i(58606),s=i(39299),c=i(6539),d=i(52535);let p=()=>(0,n.jsx)(d.k1,{children:(0,n.jsx)(r.A,{icon:c.A,size:16})}),h=e=>{let{breadcrumbs:t,currentPage:i,className:r}=e;return(0,n.jsx)("nav",{"aria-label":(0,s.vS)("breadcrumbLabel"),className:r,children:(0,n.jsxs)(d.AB,{children:[(0,n.jsxs)(d.Qp,{children:[(0,n.jsx)(a.A,{title:"".concat((0,s.vS)("to")," ").concat((0,s.vS)("shopPage")),underlined:!1,href:o.A.SHOP,children:(0,n.jsx)(l.A,{size:"xsmall",children:(0,s.vS)("shopPage")})}),t.length>0&&(0,n.jsx)(p,{})]}),t.map((e,r)=>(0,n.jsxs)(d.Qp,{"data-testid":"breadcrumb",children:[(0,n.jsx)(a.A,{title:"".concat((0,s.vS)("to")," ").concat(e.name),underlined:!1,href:e.url,children:(0,n.jsx)(l.A,{size:"xsmall",children:e.name})}),(r<t.length-1||i)&&(0,n.jsx)(p,{})]},e.name)),i&&(0,n.jsx)(d.Qp,{"data-testid":"breadcrumb",$isCurrentPageCrumb:!0,"aria-current":"page",children:(0,n.jsx)(l.A,{size:"xsmall",weight:"bold",children:i})},i)]})})}},17553:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(37876),r=i(58606),a=i(65773),l=i(10558);let o=e=>{let{recipe:t,variant:i="medium",searchResult:o,onSavedRecipesChange:s}=e,{name:c,imageSrc:d,cookingTime:p,linkUrl:h,purchasable:m,id:u}=(e=>{var t;let{name:i,id:n,image:a,cookingTime:l=0,purchasable:o,favorite:s}=e,c="".concat(r.A.RECIPE).concat(n),d=(null==a?void 0:a.urls)&&(null==a||null==(t=a.urls[2])?void 0:t.url)||void 0;return{name:i,id:n,imageSrc:(null==a?void 0:a.cloudinaryUrl)||d,cookingTime:l,linkUrl:c,purchasable:o,isFavorite:!!s}})(t);return(0,n.jsx)(l.A,{name:c,variant:i,subtitle:!!p&&(0,n.jsx)(l.c,{cookingTime:p,color:"black"}),imageSrc:d||void 0,href:{pathname:h,query:o?{searchResult:o}:void 0},onClick:()=>(0,a.ge)(t),purchasable:m,id:u,onSavedRecipesChange:s})}},18185:(e,t,i)=>{i.d(t,{Ay:()=>l,Sb:()=>s,bo:()=>c,oj:()=>a});var n=i(49643);let r={sortableRecipeCategories:"Kategori",sortableRecipeGroups:"Typ av recept",sortableRecipeTypes:"M\xe5ltid",recipeMainIngredients:"Ingredienser",recipeAllergies:"Specialkost",recipeTags:"H\xf6gtid"},a=e=>!!e&&e in r,l=(0,n.N)(r),o={candy:"Godis",hamburger:"Hamburgare",pastry:"Bakverk",drinks:"Drinkar",gratins:"Grat\xe4nger",grill:"Grill",pizza:"Pizza",fastfood:"Snabblagat",in_season:"I s\xe4song",inspired_weekday:"Vardagsmat",vegetarian:"Vegetariskt",appetizer:"F\xf6rr\xe4tt",breakfast:"Frukost",desert:"Efterr\xe4tt",lunch:"Lunch",main_course:"Huvudr\xe4tt",weekday_dinner:"Middag",fish:"Fisk",meat:"K\xf6tt",pasta:"Pasta",grains:"Gryner",rice:"Ris",pork:"Fl\xe4skk\xf6tt",fruit:"Frukt",veal:"Kalv",sausage:"Korv",mutton:"Lammk\xf6tt",beef:"N\xf6tk\xf6tt",wild:"Vilt",other:"\xd6vrigt",bakery:"Bakverk",grilled:"Grillat",pie:"Paj",salad:"Sallad",sandwich:"Sm\xf6rg\xe5s",soup:"Soppa",sauce:"S\xe5s",accessories:"Tillbeh\xf6r",seafood:"Skaldjur",vegetables:"Gr\xf6nsaker",freeFromEgg:"\xc4ggfri",freeFromFishOrSeafood:"Fri fr\xe5n fisk och skaldjur",freeFromGluten:"Glutenfri",freeFromLactose:"Laktosfri",freeFromMilkProtein:"Mj\xf6lkproteinfri",freeFromNuts:"N\xf6tfri",freeFromPeanuts:"Ej jordn\xf6tter",freeFromSoya:"Ej Soja",autumn:"H\xf6st",party:"Fest",spring:"V\xe5r",summer:"Sommar",winter:"Vinter",recipe:"Recept",bread:"Br\xf6d",brunch:"Brunch",drink:"Dryck",small_food:"Plockmat",bird:"F\xe5gel",health:"H\xe4lsa",kraftskiva:"Kr\xe4ftskiva"},s=e=>!!e&&e in o,c=(0,n.N)(o)},51739:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(37876),r=i(609);let a=i(87856).Ay.svg.withConfig({componentId:"sc-6fec8a1a-0"})(["position:absolute;bottom:100%;left:0;right:0;margin:0 auto;width:",";height:",";"],(0,r.D0)(32),(0,r.D0)(10)),l=e=>{let{className:t}=e;return(0,n.jsx)(a,{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 49.72 16.62",children:(0,n.jsx)("path",{d:"M0 16.62c10.89 0 20.7-6.56 24.86-16.62a26.897 26.897 0 0 0 24.86 16.62H0Z",fill:"currentColor"})})}},52517:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(14232);let r=()=>
1{let[e,t]=(0,n.useState)("");return(0,n.useEffect)(()=>{if("completed"===e){let e=!0,i=setTimeout(()=>{e&&t("")},3e3);return()=>{clearTimeout(i),e=!1}}},[e,t]),{status:e,setStatus:t}}},66177:(e,t,i)=>{i.d(t,{_:()=>a,r:()=>r});var n=i(70929);let r=e=>(e=>{let t=e.replace(/<(br|p|div|li|ol|ul|tr|td|th|table|h[1-6]|blockquote|section|article|header|footer|aside|nav)[^>]*\/?>/gi," ");return n.Ay.sanitize(t,{RETURN_DOM_FRAGMENT:!0}).textContent||""})(e).replace(/\s+/g," ").trim(),a=(e,t)=>{if(!e)return"";let i=r(e);return i.length<=t?i:i.slice(0,t).trim()}},81181:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(37876);let r=e=>{let{structuredData:t}=e;return(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})}},92027:(e,t,i)=>{i.d(t,{A:()=>l});var n,r=i(14232);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}let l=function(e){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 12"},e),n||(n=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m14.316.5-9.01 9.064L2.02 6.229a.806.806 0 0 0-1.179 0 .835.835 0 0 0 0 1.197l3.874 3.934c.168.17.337.256.59.256a.76.76 0 0 0 .589-.256l9.516-9.664a.837.837 0 0 0 0-1.197c-.337-.342-.843-.342-1.095 0z"})))}},93121:(e,t,i)=>{i.d(t,{A:()=>t0});var n,r,a,l,o=i(37876),s=i(64919),c=i(29658),d=i(14232),p=i(53272),h=i(47978),m=i(6080),u=i(44019),g=i(31447),f=i(87856);let x=(0,f.AH)(["@media print{display:none !important;}"]);var A=i(609);let v=f.Ay.div.withConfig({componentId:"sc-ea6a9217-0"})(["position:fixed;z-index:",";bottom:",";left:",";right:",";display:flex;align-items:center;justify-content:space-between;background-color:",";padding:",";border-radius:",";","{display:none;}",""],e=>{let{theme:t}=e;return t.layers.below_header},(0,A.D0)(8),(0,A.D0)(8),(0,A.D0)(8),e=>{let{theme:t}=e;return t.colors.colorAcadia},e=>{let{theme:t}=e;return t.spacing.small},(0,A.D0)(16),g.A.desktop,x),j=e=>{let{recipe:t,children:i}=e;return t.isBuyable?(0,o.jsxs)(v,{children:[(0,o.jsxs)(m.A,{$space:"nano",children:[(0,o.jsx)(h.A,{color:"silver",children:(0,u.A)("readyForPurchase")}),(0,o.jsx)(h.A,{size:"large",color:"offWhite",weight:"medium",children:t.price})]}),i]}):null};var w=i(34185),y=i(62473),b=i(92027),C=i(39350);let D=(0,f.Ay)(C.A).withConfig({componentId:"sc-410ddf6a-0"})(["min-width:",";"],(0,A.D0)(171)),k=e=>{let{recipeIsInCart:t,status:i,addRecipe:n,removeRecipe:r}=e,a="completed"===i?(0,o.jsx)(w.A,{icon:b.A,color:"white"}):(0,o.jsx)(w.A,{icon:y.A,color:t?"black":"white"});return(0,o.jsx)(D,{variant:t&&"completed"!==i?"secondary":"primary","aria-label":t?(0,u.A)("removeFromCart"):(0,u.A)("addToCart"),isLoading:"pending"===i,onClick:()=>{"completed"!==i&&(t?r():n())},children:(0,o.jsxs)(o.Fragment,{children:[a,(0,o.jsx)("span",{"aria-hidden":!0,children:t&&"completed"!==i?(0,u.A)("removeFromCart"):"completed"===i?(0,u.A)("added"):(0,u.A)("addToCart")})]})})};var I=i(64649);let P=f.Ay.div.withConfig({componentId:"sc-a7de5d48-0"})(["background-color:",";"],e=>{let{theme:t}=e;return t.colors.colorDesertStorm}),S=f.Ay.div.withConfig({componentId:"sc-a7de5d48-1"})(["","{margin:auto ",";}@media print{margin:0;}","{max-width:",";margin:0 auto;padding:0 ",";box-sizing:border-box;width:100%;}"],g.A.tabletPortrait,(0,A.D0)(32),g.A.desktopXL,(0,A.D0)(I.kr),(0,A.D0)(64)),R=f.Ay.div.withConfig({componentId:"sc-a7de5d48-2"})(["",";","{width:100%;}@media print{margin:0;}"],I.Y8,g.A.desktopXL),z=(0,f.Ay)(m.A).withConfig({componentId:"sc-a7de5d48-3"})(["padding:"," 0;@media print{padding:0;}"],e=>{let{theme:t}=e;return t.spacing.smallMedium}),E=(0,f.AH)(["body{background-color:",";}footer{padding-bottom:",";","{padding-bottom:0;}}div.startChatButton{bottom:",";","{bottom:",";}","{bottom:",";}","{bottom:",";}}@media print{header{display:initial !important;position:initial !important;menu{display:none !important;}form{display:none !important;}button{display:none !important;}a:not([aria-label='Till startsidan']){display:none !important;}}button{display:none !important;}footer{display:none !important;}}"],e=>{let{theme:t}=e;return t.colors.colorWhite}
1,(0,A.D0)(97),g.A.desktop,(0,A.D0)(120),g.A.mobile,(0,A.D0)(100),g.A.tabletPortrait,(0,A.D0)(80),g.A.desktop,(0,A.D0)(28)),L=(0,f.DU)(["",";"],E),F=e=>{let{header:t,ingredients:i,products:n,carousel:r}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(L,{}),(0,o.jsx)(P,{children:(0,o.jsx)(S,{children:t})}),(0,o.jsxs)(z,{$space:{smallMobile:"mediumLarge",tabletPortrait:"large"},children:[(0,o.jsx)(R,{children:i}),n?(0,o.jsx)(S,{children:n}):null,r?(0,o.jsx)(R,{children:r}):null]})]})};var q=i(32124),T=i(62311),H=i(25220),M=i(506);let O=f.Ay.div.withConfig({componentId:"sc-ec68bf11-0"})(["width:100%;","{max-width:",";margin:0 auto;}","{margin:0;}"],g.A.largeMobile,(0,A.D0)(208),g.A.tabletPortrait),B=e=>{let{portions:t,disabled:i=!1,onChange:n}=e,{quantity:r,min:a,max:l,increment:s}=t,[c,p]=(0,d.useState)(r),[h,m]=(0,d.useState)(!1),u=(0,M.A)(r);(0,d.useEffect)(()=>{r!==u&&p(r)},[r,u]);let g=e=>{let t=c+e;p(t),n(t)};return(0,o.jsx)(O,{children:(0,o.jsx)(T.Ay,{value:c,unit:T.Zy,decrement:()=>g(-s),increment:()=>g(s),isActive:h,minValue:a,maxValue:l,onBlur:()=>{m(!1);let e=Math.max(Math.min((0,H.p)(c,s),l),a);p(e),n(e)},onFocus:()=>m(!0),onChange:e=>p(e.currentTarget.valueAsNumber),disabled:i})})};var N=i(39299),_=i(52517),G=i(38564);let V=(e,t)=>{var i,n,r;let{status:a,setStatus:l}=(0,_.A)(),{cart:o,refreshCart:s}=(0,c.Ay)(),[p,h]=(0,d.useState)(""),m=null==o||null==(i=o.recipes)?void 0:i.map(e=>e.id),u=!!(null==m?void 0:m.includes(e)),g=null!=(r=null==o||null==(n=o.products)?void 0:n.filter(e=>e.includedInRecipeList&&e.includedInRecipeList[0]===t))?r:[],f=async function(i){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;l("pending");try{let o=await i({recipeId:e});if(await s(o),n){var a;l("completed");let e=(null!=(a=o.formattedProducts)?a:[]).filter(e=>e.includedInRecipeList&&e.includedInRecipeList[0]===t).map(e=>e.name).join(", ");h((0,N.nq)("recipeAdded",{recipeName:t,productNames:e||""}))}else l(""),r&&h((0,N.nq)("recipeRemoved",{recipeName:t,productNames:r}))}catch(e){l("")}};return{addRecipe:()=>f(G.le,!0),removeRecipe:async()=>{let e=g.map(e=>e.name).join(", ");await f(G.Db,!1,e)},status:a,recipeIsInCart:u,recipeCartProducts:g,recipeCartStatusMessage:p}};function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}let Q=function(e){return d.createElement("svg",$({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),n||(n=d.createElement("path",{fill:"currentColor",d:"M12 15.575a.97.97 0 0 1-.713-.287.97.97 0 0 1-.287-.713V4.4l-.9.9a.93.93 0 0 1-.687.275.97.97 0 0 1-.713-.3 1.02 1.02 0 0 1-.275-.713q0-.412.275-.687l2.6-2.6a1.034 1.034 0 0 1 1.4 0l2.6 2.6q.3.3.3.725t-.3.7-.713.275A.93.93 0 0 1 13.9 5.3l-.9-.9v10.175q0 .424-.287.713a.97.97 0 0 1-.713.287m-6 7q-.824 0-1.412-.587A1.93 1.93 0 0 1 4 20.575v-11q0-.825.588-1.412A1.93 1.93 0 0 1 6 7.575h2q.424 0 .713.287Q9 8.15 9 8.576q0 .424-.287.713A.97.97 0 0 1 8 9.575H6v11h12v-11h-2a.97.97 0 0 1-.713-.287.97.97 0 0 1-.287-.713q0-.424.287-.712A.97.97 0 0 1 16 7.575h2q.824 0 1.413.587Q20 8.75 20 9.576v11q0 .824-.587 1.413a1.93 1.93 0 0 1-1.413.587z"})))};function U(){return(U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}let W=function(e){return d.createElement("svg",U({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),r||(r=d.createElement("path",{fill:"currentColor",d:"M16 8V5H8v3H6V4q0-.424.287-.712A.97.97 0 0 1 7 3h10q.424 0 .712.288Q18 3.575 18 4v4zm2 4.5q.424 0 .712-.287A.97.97 0 0 0 19 11.5a.97.97 0 0 0-.288-.713A.97.97 0 0 0 18 10.5a.97.97 0 0 0-.712.287.97.97 0 0 0-.288.713q0 .424.288.713.287.287.712.287M8 19h8v-4H8zm0 2q-.824 0-1.412-.587A1.93 1.93 0 0 1 6 19v-2H3a.97.97 0 0 1-.712-.288A.97.97 0 0 1 2 16v-5q0-1.275.875-2.137T5 8h14q1.276 0 2.137.863Q22 9.725 22 11v5q0 .424-.288.712A.97.97 0 0 1 21 17h-3v2q0 .824-.587 1.413A1.93 1.93 0 0 1 16 21zm12-6v-4a.97.97 0 0 0-.288-.713A.97.97 0 0 0 19 10H5a.97.97 0 0 0-.713.287A.97.97 0 0 0 4 11v4h2v-2h12v2z"})))},K=f.Ay.hr.withConfig({componentId:"sc-efc2517e-0"})(["margin:0;border:none;height:",";background-image:repeating-linear-gradient( to right,"," 0,"," ",",transparent ",",transparent "," );"],(0,A.D0)(1),e=>{let{theme:t}=e;return t.colors.colorStack},e=>{let{theme:t}=e;return t.colors.colorStack},(0,A.D0)(1),(0,A.D0)(1),(0,A.D0)(4));function Z(){return(Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}let X=function(e){return d.createElement("svg",Z({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 12 14"},e),a||(a=d.createElement("path",{fill:"currentColor",d:"M4 11q-.55 0-.942-.392a1.28 1.28 0 0 1-.391-.941v-8q0-.55.391-.942T4 .333h6q.55 0 .942.392.39.392.391.942v8q0 .55-.391.941A1.28 1.28 0 0 1 10 11zm0-1.333h6v-8H4zm-2.667 4q-.55 0-.941-.392A1.28 1.28 0 0 1 0 12.333V3h1.333v9.333h7.334v1.334z"})))};var Y=i(51739);let J=f.Ay.div.withConfig({componentId:"sc-879eec2d-0"})(["position:relative;"]),ee=f.Ay.div.withConfig({componentId:"sc-879eec2d-1"})(["background-color:",";color:",";position:absolute;top:calc(100% + ",");margin:0 auto;left:0;right:0;padding:"," ",";border-radius:",";display:inline-flex;align-items:center;justify-content:center;width:max-content;"],e=>{let{theme:t}=e;return t.colors.colorPrimary},e=>{let{theme:t}=e;return t.colors.colorWhite},(0,A.D0)(8),(0,A.D0)(8),(0,A.D0)(40),(0,A.D0)(32)),et=(0,f.Ay)(Y.A).withConfig({componentId:"sc-879eec2d-2"})(["color:",";"],e=>{let{theme:t}=e;return t.colors.colorPrimary}),ei=e=>{let{children:t,isOpen:i,text:n}=e;return(0,o.jsxs)(J,{children:[t,i&&(0,o.jsxs)(ee,{children:[(0,o.jsx)(et,{}),(0,o.jsxs)(h.A,{weight:"bold",size:"small",color:"offWhite",children:[(0,o.jsx)(w.A,{color:"offWhite",size:16,icon:X})," ",n]})]})]})},en=f.Ay.div.withConfig({componentId:"sc-7a226019-0"})(["display:flex;flex-direction:column;gap:",";"],(0,A.D0)(16)),er=f.Ay.div.withConfig({componentId:"sc-7a226019-1"})(["width:100%;display:flex;gap:",";"],(0,A.D0)(8)),ea=(0,f.Ay)(C.A).attrs(()=>({variant:"unstyled"})).withConfig({componentId:"sc-7a226019-2"})(["display:flex;gap:",";&&{padding:"," "," "," ",";}"],(0,A.D0)(4),(0,A.D0)(8),(0,A.D0)(24),(0,A.D0)(8),(0,A.D0)(16)),el=()=>{let{status:e,setStatus:t}=(0,_.A)();return(0,o.jsxs)(en,{children:[(0,o.jsx)(K,{}),(0,o.jsxs)(er,{children:[(0,o.jsxs)(ea,{onClick:()=>{window.print()},children:[(0,o.jsx)(w.A,{icon:W}),(0,o.jsx)(h.A,{size:"small",weight:"bold",children:(0,u.A)("print")})]}),(0,o.jsx)(ei,{isOpen:"completed"===e,text:(0,u.A)("copied"),children:(0,o.jsxs)(ea,{onClick:()=>{navigator.clipboard.writeText(document.URL),t("completed")},children:[(0,o.jsx)(w.A,{icon:Q}),(0,o.jsx)(h.A,{size:"small",weight:"bold",children:(0,u.A)("copyLink")})]})})]}),(0,o.jsx)(K,{})]})};var eo=i(83924),es=i(87159);let ec=f.Ay.details.withConfig({componentId:"sc-5c2e3e79-0"})(["background-color:",";border-radius:",";max-width:",";&[open] summary svg{transform:rotate(180deg);}"],e=>{let{theme:t}=e;return t.colors.colorDesertStorm},(0,A.D0)(8),(0,A.D0)(424)),ed=f.Ay.summary.withConfig({componentId:"sc-5c2e3e79-1"})(["display:flex;justify-content:space-between;align-items:center;padding:"," ",";&::marker,&::-webkit-details-marker{display:none;}"],(0,A.D0)(8),(0,A.D0)(16)),ep=f.Ay.div.withConfig({componentId:"sc-5c2e3e79-2"})(["padding:"," "," ",";"],(0,A.D0)(8),(0,A.D0)(16),(0,A.D0)(16)),eh=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=e.length-2;return e.reduce((e,r,a)=>a<1?r:a>
1n?"".concat(e).concat(i).concat(r):"".concat(e).concat(t).concat(r),"")},em=e=>{let{allergens:t}=e,i=eh(t,", "," ".concat((0,u.A)("and")," "));return(0,o.jsxs)(ec,{children:[(0,o.jsxs)(ed,{children:[(0,o.jsx)(h.A,{size:"medium",weight:"medium",children:(0,u.A)("allergyInformation")}),(0,o.jsx)(eo.A,{icon:es.A})]}),(0,o.jsx)(ep,{children:(0,o.jsx)(h.A,{size:"medium",weight:"medium",children:i})})]})},eu=f.Ay.div.withConfig({componentId:"sc-9656ff1a-0"})(["display:flex;justify-content:space-between;gap:",";@media print{flex-direction:column;}"],(0,A.D0)(24)),eg=f.Ay.div.withConfig({componentId:"sc-9656ff1a-1"})(["width:100%;display:flex;flex-direction:column;gap:",";"],(0,A.D0)(16)),ef=f.Ay.div.withConfig({componentId:"sc-9656ff1a-2"})(["display:flex;flex-wrap:wrap;align-items:center;column-gap:",";@media print{flex-direction:column;align-items:flex-start;}"],(0,A.D0)(24)),ex=f.Ay.div.withConfig({componentId:"sc-9656ff1a-3"})(["width:100%;max-width:",";"],(0,A.D0)(208));var eA=i(67982),ev=i(92239);let ej=f.Ay.div.withConfig({componentId:"sc-2698678f-0"})(["",";line-height:1.5;"],ev.E.large),ew=e=>{let{htmlString:t}=e;return(0,o.jsx)(ej,{children:(0,o.jsx)(eA.A,{content:t})})},ey=(e,t)=>"".concat(e,"-").concat(t),eb=f.Ay.div.withConfig({componentId:"sc-dd16be82-0"})(["width:100%;display:flex;flex-direction:column;gap:",";max-width:",";"],(0,A.D0)(48),(0,A.D0)(424)),eC=f.Ay.li.withConfig({componentId:"sc-9900ec1a-0"})(["width:100%;border-bottom:"," dotted ",";padding:"," ",";","{padding:"," 0;}"],(0,A.D0)(1),e=>{let{theme:t}=e;return t.colors.colorCararra},(0,A.D0)(16),(0,A.D0)(24),g.A.tabletPortrait,(0,A.D0)(16)),eD=f.Ay.div.withConfig({componentId:"sc-9900ec1a-1"})(["width:100%;display:flex;align-items:center;gap:",";"],(0,A.D0)(16)),ek=(0,f.Ay)(h.A).attrs({size:"large",weight:"bold"}).withConfig({componentId:"sc-9900ec1a-2"})(["flex:0 0 ",";"],(0,A.D0)(96)),eI=(0,f.Ay)(h.A).attrs({size:"large"}).withConfig({componentId:"sc-9900ec1a-3"})(["flex:1 1 auto;"]),eP=e=>{let{name:t,amount:i}=e;return(0,o.jsx)(eC,{children:(0,o.jsxs)(eD,{children:[(0,o.jsx)(ek,{children:i}),(0,o.jsx)(eI,{children:t})]})})},eS=f.Ay.div.withConfig({componentId:"sc-35b991f9-0"})(["display:flex;flex-direction:column;gap:",";"],(0,A.D0)(16)),eR=f.Ay.ul.withConfig({componentId:"sc-35b991f9-1"})(["list-style:none;padding:0;margin:0;"]),ez=e=>{let{section:t}=e,{title:i,ingredients:n}=t;return(0,o.jsxs)(eS,{children:[i&&(0,o.jsx)(h.A,{size:"xlarge",weight:"bold",children:i}),(0,o.jsx)(eR,{children:n.map((e,t)=>{let{name:i,amount:n}=e;return(0,o.jsx)(eP,{name:i,amount:n},ey(i,t))})})]})},eE=e=>{let{ingredients:t,isBuyable:i}=e,{sections:n,ingredientsText:r}=t;return(0,o.jsx)(eb,{children:i?n.map((e,t)=>(0,o.jsx)(ez,{section:e},ey(e.title||"",t))):r&&(0,o.jsx)(ew,{htmlString:r})})},eL=f.Ay.div.withConfig({componentId:"sc-68979d57-0"})(["max-width:",""],(0,A.D0)(536)),eF=e=>{let{preparationSteps:t}=e;return(0,o.jsx)(eL,{children:(0,o.jsx)(ew,{htmlString:t.description})})},eq=e=>{let{recipe:t,onPortionsChange:i}=e,{isBuyable:n,ingredients:r,preparationSteps:a,id:l,name:s}=t,{recipeIsInCart:c}=V(l,s);return(0,o.jsxs)(eu,{children:[(0,o.jsxs)(eg,{children:[(0,o.jsxs)(ef,{children:[(0,o.jsx)(q.A,{type:"h2",children:(0,u.A)("ingredients")}),n&&(0,o.jsx)(ex,{children:(0,o.jsx)(B,{portions:t.portions,disabled:c,onChange:i})})]}),(0,o.jsx)(eE,{ingredients:r,isBuyable:n}),r.allergens&&(0,o.jsx)(em,{allergens:r.allergens})]}),(0,o.jsxs)(eg,{children:[(0,o.jsx)(q.A,{type:"h2",children:(0,u.A)("preparationSteps")}),(0,o.jsx)(eF,{preparationSteps:a}),(0,o.jsx)(el,{})]})]})};var eT=i(84903);let eH=f.Ay.div.withConfig({componentId:"sc-83bbedba-0"})(["display:flex;flex-direction:column;gap:",";"],(0,A.D0)(24)),eM=e=>{let{recipe:t,onPortionsChange:i}=e,[n,r]=(0,d.useState)(!0),{isBuyable:a,ingredients:l,preparationSteps:s,id:c,name:p}=t,{recipeIsInCart:h}=V(c,p),m=l.count>0?"(".concat(l.count,")"):"",g=[{id:"ingredients",translation:"".concat((0,u.A)("ingredients")," ").concat(m)},{id:"preparationSteps",translation:(0,u.A)("preparationSteps")}];return(0,o.jsxs)(eH,{children:[(0,o.jsx)(eT.A,{tabs:g,initialActiveTabId:g[0].id,onChange:e=>{r(e===g[0].id)}}),a&&(0,o.jsx)(B,{portions:t.portions,disabled:h,onChange:i}),n?(0,o.jsx)(eE,{ingredients:l,isBuyable:a}):(0,o.jsx)(eF,{preparationSteps:s}),l.allergens&&(0,o.jsx)(em,{allergens:l.allergens})]})};var eO=i(42911);let eB=e=>{let{recipe:t,onPortionsChange:i}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eO.sh,{children:(0,o.jsx)(eM,{recipe:t,onPortionsChange:i})}),(0,o.jsx)(eO.iZ,{children:(0,o.jsx)(eq,{recipe:t,onPortionsChange:i})})]})};var eN=i(39247),e_=i(18847),eG=i.n(e_),eV=i(18282);let e$=f.Ay.div.withConfig({componentId:"sc-e48dbe44-0"})(["",""],x),eQ=(0,f.Ay)(h.A).withConfig({componentId:"sc-e48dbe44-1"})(["margin:"," 0 ",";font-family:",";font-size:",";font-weight:",";","{font-size:",";}"],(0,A.D0)(8),(0,A.D0)(16),e=>{let{theme:t}=e;return t.typography.fontSerif},(0,A.D0)(24),e=>{let{theme:t}=e;return t.fonts.fontWeight.bold},g.A.tabletPortrait,(0,A.D0)(32)),eU=(0,f.Ay)(eV.A).withConfig({componentId:"sc-e48dbe44-2"})(["margin:"," 0 ",";height:",";width:",";","{height:",";}"],(0,A.D0)(8),(0,A.D0)(16),(0,A.D0)(36),(0,A.D0)(200),g.A.tabletPortrait,(0,A.D0)(48)),eW=e=>{let{price:t,hasPrice:i}=e;return(0,o.jsxs)(e$,{children:[(0,o.jsx)(h.A,{size:"medium",weight:"medium",children:(0,u.A)("recipeToBuy")}),i?(0,o.jsx)(eQ,{children:t}):(0,o.jsx)(eU,{type:"text"})]})},eK=f.Ay.section.withConfig({componentId:"sc-fa0683ce-0"})([""," border-radius:",";background-color:",";width:100%;flex:1;padding:"," ",";","{padding:",";}"],x,(0,A.D0)(32),e=>{let{theme:t}=e;return t.colors.colorDesertStorm},e=>{let{theme:t}=e;return t.spacing.medium},e=>{let{theme:t}=e;return t.spacing.small},g.A.tabletPortrait,e=>{let{theme:t}=e;return t.spacing.medium}),eZ=f.Ay.div.withConfig({componentId:"sc-fa0683ce-1"})(["display:flex;flex-direction:column;gap:",";","{flex-direction:row;justify-content:space-between;}"],e=>{let{theme:t}=e;return t.spacing.small},g.A.tabletPortrait),eX=(0,f.Ay)(q.A).withConfig({componentId:"sc-fa0683ce-2"})(["display:flex;align-items:center;gap:",";"],(0,A.D0)(8)),eY=f.Ay.div.withConfig({componentId:"sc-fa0683ce-3"})(["display:grid;grid-gap:",";","{grid-template-columns:repeat(2,minmax(0,1fr));}"],(0,A.D0)(16),g.A.tabletLandscape),eJ=(0,f.Ay)(q.A).withConfig({componentId:"sc-fa0683ce-4"})(["",";"],e=>{let{$hidden:t}=e;return t&&(0,f.AH)(["display:none;","{display:flex;}"],g.A.tabletPortrait)}),e0=(0,f.Ay)(K).withConfig({componentId:"sc-fa0683ce-5"})(["display:none;","{display:flex;}"],g.A.desktop),e1=f.Ay.div.withConfig({componentId:"sc-fa0683ce-6"})(["display:none;","{display:grid;align-items:start;justify-content:start;grid-template-columns:1fr auto;}"],g.A.desktop),e2=f.Ay.div.withConfig({componentId:"sc-fa0683ce-7"})(["gap:",";"],e=>{let{theme:t}=e;return t.spacing.medium}),e7=(0,f.Ay)(eV.A).withConfig({componentId:"sc-fa0683ce-8"})(["margin:0;height:",";","{height:",";}"],(0,A.D0)(85),g.A.tabletPortrait,(0,A.D0)(95)),e3=e=>{let{title:t,children:i,hideHeadingMobile:n=!1}=e;return(0,o.jsxs)(m.A,{$space:"smallMedium",children:[t&&(0,o.jsx)(eJ,{type:"h3",size:"small",$hidden:n,children:t}),(0,o.jsx)(m.A,{$space:"nano",children:i})]})},e8=eG()(()=>i.e(3254).then(i.bind(i,73254)),{loadableGenerated:{webpack:()=>[73254]},ssr:!1}),e4=e=>{var t;let{recipe:i,onPortionsChange:n,addReplacement:r,onChange:a,children:l,isLoading:s,isPriceLoading:c}=e,{formattedProductsAtHome:d,formattedProductsToBuy:p,id:h,name:g,portions:f,productsAtHomeLength:x,productsToBuyLength:A}=i,{recipeIsInCart:v}=V(h,g),j=(e,t)=>{a(e,t)},y=A>0,b=x>0;return y||b?(0,o.jsx)(eK,{children:(0,o.jsxs)(m.A,{$space:"smallMedium",children:[(0,o.jsxs)(eZ,{children:[(0,o.jsxs)(eX,{type:"h2",children:[(0,o.jsx)(w.A,{icon:eN.A,size:32}),(0,u.A)("recipeProductList")]}),(0,o.jsx)(B,{portions:f,disabled:v,onChange:n})]}),(0,o.jsx)(e0,{}),(0,o.jsxs)(eY,{children:[(0,o.jsx)(e3,{title:y?(0,u.A)("productListDescription"):null,hideHeadingMobile:!0,children:s?(0,o.jsx)(e7,{count:A},"productsToBuySkeleton"):null==p?void 0:p.map(e=>(0,o.jsx)(e8,{product:e,recipeId:h,onChange:j,addReplacement:r,recipeIsInCart:v},e.name))}),(0,o.jsx)(e3,{title:b?(0,u.A)("productsAtHome"):null,children:s?(0,o.jsx)(e7,{count:x},"productsToBuySkeleton"):null==d?void 0:d.map(e=>(0,o.jsx)(e8,{product:e,recipeId:h,onChange:j,addReplacement:r,recipeIsInCart:v},null==e?void 0:e.name))})]}),(0,o.jsx)(e0,{}),(0,o.jsxs)(e1,{children:[(0,o.jsx)("div",{}),(0,o.jsxs)(e2,{children:[(0,o.jsx)("div",{children:(0,o.jsx)(eW,{price:null!=(t=i.price)?t:"",hasPrice:!!i.price&&!c})}),l]})]})]})}):null};var e6=i(81181),e5=i(18185),e9=i(66177);let te=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>e,{recipeYield:r,totalTime:a,recipeIngredient:l,image:o,keywords:s}=e;return{"@context":"https://schema.org","@type":"Recipe",name:t,recipeYield:r,description:i?(0,e9.r)(i):"",totalTime:a,author:{"@type":"Organization",name:"Hemk\xf6p"},recipeIngredient:l,image:o,keywords:null==s?void 0:s.map(n)}},tt=e=>{let t=(e=>{let{schema:t,description:i,name:n}=e;return te(t,n,i,e=>(0,e5.Sb)(e)?(0,e5.bo)(e):e)})(e);return(0,o.jsx)(e6.A,{structuredData:t})};var ti=i(51211),tn=i(9419),tr=i(58606),ta=i(10558),tl=i(46432),to=i(863);function ts(){return(ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}let tc=function(e){return d.createElement("svg",ts({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),l||(l=d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 5H6v1h4zM4 6c0 .632.293 1.195.75 1.562l-.069.134-1.383 2.865A3 3 0 0 0 3 11.865V18a3 3 0 0 0 3 3h4c.417 0 .815-.085 1.176-.24A7.6 7.6 0 0 1 9.886 19H6a1 1 0 0 1-1-1v-6.135a1 1 0 0 1 .1-.435l1.382-2.865A1 1 0 0 1 7.383 8h1.56a1 1 0 0 1 .933.64l.782 2.026a5 5 0 0 1 1.668-1.234L11.74 7.92a3 3 0 0 0-.281-.552C11.795 7.01 12 6.53 12 6V5a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2zm14.5 3.5a1 1 0 0 0-1 1v.534c2.737-.34 4.5 1.882 4.5 4.556 0 2.988-2.462 5.41-5.5 5.41S11 18.578 11 15.59c0-2.674 1.763-4.895 4.5-4.555v-.536a3 3 0 0 1 3-2.999h1v2zm-2 3.867-.623-.204c-1.044-.342-1.665-.093-2.046.241C13.38 13.8 13 14.56 13 15.59c0 1.852 1.536 3.41 3.5 3.41s3.5-1.558 3.5-3.41c0-1.031-.38-1.79-.83-2.186-.382-.334-1.003-.583-2.047-.241z",clipRule:"evenodd"})))};var td=i(14e3),tp=i(11821);let th=f.Ay.div.withConfig({componentId:"sc-85ea6062-0"})(["display:flex;flex-direction:column;align-items:flex-start;"]),tm=f.Ay.div.withConfig({componentId:"sc-85ea6062-1"})(["transition:max-height 0.3s ease-out;"," ","{mask-image:none;-webkit-mask-image:none;}"],e=>{let{$isExpanded:t,$showButton:i}=e;return!t&&i&&(0,f.AH)(["mask-image:linear-gradient(to bottom,black 0%,black 40%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,black 0%,black 40%,transparent 100%);"])},g.A.tabletPortrait),tu=(0,f.Ay)(tp.o).withConfig({componentId:"sc-85ea6062-2"})(["font-weight:",";transition:all 0.3s ease-out;"," ","{display:block;-webkit-line-clamp:unset;-webkit-box-orient:unset;overflow:visible;}"],e=>{let{theme:t}=e;return t.fonts.fontWeight.medium},e=>{let{$isExpanded:t,$maxLines:i}=e;return!t&&(0,f.AH)(["display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;"],i)},g.A.tabletPortrait),tg=f.Ay.div.withConfig({componentId:"sc-85ea6062-3"})(["display:flex;justify-content:center;width:100%;margin-top:",";","{display:none;}"],(0,A.D0)(16),g.A.tabletPortrait),tf=e=>{let{description:t,maxLines:i=3}=e,[n,r]=(0,d.useState)(!1),[a,l]=(0,d.useState)(!1),s=(0,d.useRef)(null),c=(0,d.useId)();(0,d.useEffect)(()=>{let e=()=>{let e=s.current;e&&!n&&l(e.scrollHeight>e.clientHeight)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t,n]);let p=a||n;return(0,o.jsxs)(th,{children:[(0,o.jsx)(tm,{$isExpanded:n,$showButton:p,id:c,children:(0,o.jsx)(tu,{ref:s,$isExpanded:n,$maxLines:i,children:(0,o.jsx)(eA.A,{content:t})})}),p&&(0,o.jsx)(tg,{children:(0,o.jsx)(C.A,{variant:"secondaryPlain",size:"sm",compact:!0,onClick:()=>{r(e=>!e)},"aria-expanded":n,"aria-controls":c,"data-testid":"expandable-description-button",children:n?(0,u.A)("showLess"):(0,N.Ay)("readMore")})})]})};var tx=i(25382),tA=i(20484),tv=i(5227);let tj=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"240",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"220",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"desktop";return e.replace("{w}",t).replace("{h}",i).replace("{device}",n)},tw=f.Ay.div.withConfig({componentId:"sc-50c6a774-0"})([""," display:flex;align-items:center;gap:",";order:2;grid-column:1 / -1;padding:0 ",";","{order:1;padding:0;}"],x,(0,A.D0)(4),(0,A.D0)(16),g.A.tabletPortrait),ty=f.Ay.div.withConfig({componentId:"sc-50c6a774-1"})(["display:grid;grid-template-columns:1fr;gap:",";","{grid-auto-flow:column;grid-template-columns:repeat(12,1fr);grid-auto-columns:minmax(0,1fr);padding:"," 0;@media print{padding:0;}}"],(0,A.D0)(16),g.A.tabletPortrait,e=>{let{theme:t}=e;return t.spacing.smallMedium}),tb=f.Ay.div.withConfig({componentId:"sc-50c6a774-2"})(["display:none;"," ","{width:",";display:flex;}"],x,g.A.tabletPortrait,(0,A.D0)(205)),tC=f.Ay.div.withConfig({componentId:"sc-50c6a774-3"})(["padding:0 0 ",";grid-column:auto;order:3;padding:",";","{padding:"," 0;grid-column:span 5;order:2;width:auto;}"],(0,A.D0)(24),(0,A.D0)(16),g.A.tabletPortrait,(0,A.D0)(16)),tD=f.Ay.div.withConfig({componentId:"sc-50c6a774-4"})(["display:flex;margin-top:",";gap:",";"],(0,A.D0)(24),(0,A.D0)(28)),tk=f.Ay.div.withConfig({componentId:"sc-50c6a774-5"})(["display:flex;align-items:center;"]),tI=(0,f.Ay)(q.A).withConfig({componentId:"sc-50c6a774-6"})(["padding:0;","{padding:"," 0 0;}"],g.A.tabletPortrait,(0,A.D0)(16)),tP=f.Ay.div.withConfig({componentId:"sc-50c6a774-7"})(["overflow:hidden;order:1;position:relative;","{grid-column:7 / span 6;order:2;width:100%;}"],g.A.tabletPortrait),tS=f.Ay.div.withConfig({componentId:"sc-50c6a774-8"})(["position:relative;width:100%;height:",";","{border-radius:",";height:",";overflow:hidden;@media print{height:",";}}"],(0,A.D0)(226),g.A.tabletPortrait,(0,A.D0)(24),(0,A.D0)(486),(0,A.D0)(372)),tR=f.Ay.div.withConfig({componentId:"sc-50c6a774-9"})(["margin:"," 0 ",";","{margin:"," 0 ",";}"],(0,A.D0)(24),(0,A.D0)(4),g.A.tabletPortrait,(0,A.D0)(40),(0,A.D0)(24)),tz=f.Ay.div.withConfig({componentId:"sc-50c6a774-10"})(["display:flex;gap:",";flex-wrap:wrap;"],(0,A.D0)(16)),tE=f.Ay.div.withConfig({componentId:"sc-50c6a774-11"})(["position:absolute;right:",";top:",";z-index:2;"],(0,A.D0)(16),(0,A.D0)(16)),tL=f.Ay.div.withConfig({componentId:"sc-50c6a774-12"})(["display:none;","{display:block;}"],g.A.desktop),tF=f.Ay.div.withConfig({componentId:"sc-50c6a774-13"})(["display:block;","{display:none;}"],g.A.desktop),tq={width:"1000",height:"486"},tT=e=>{let{imageUrl:t,altText:i}=e;return t.includes("cloudinary")?(0,o.jsx)(tS,{children:(0,o.jsx)(tx.A,{priority:!0,src:t,alt:i,style:{objectFit:"cover",objectPosition:"center"}
1,sizes:"(max-width: 767px) 100vw, 888px",fill:!0,blurDataURL:tv.Q,placeholder:"blur"})}):(0,o.jsx)(tS,{children:(0,o.jsx)(tA.A,{src:tj(t,tq.width,tq.height),alt:i,style:{objectFit:"cover",objectPosition:"center"},fill:!0,priority:!0})})},tH=e=>{var t;let{recipe:i,scrollToProducts:n,children:r,isRecipeLoading:a}=e,l=[{url:tr.A.RECIPES_LANDING_PAGE,name:(0,u.A)("recipe")}],{push:s}=(0,to.A)(),c=null!=(t=(0,td.useSearchParams)())?t:"",d=(null==c?void 0:c.get("searchResult"))==="true",{id:p,name:m,description:g,cookingTime:f,ingredients:{count:x},isBuyable:A,price:v,imageUrl:j}=i;return(0,o.jsxs)(ty,{children:[(0,o.jsx)(tw,{"data-testid":"recipe-breadcrumbs",children:(0,o.jsx)(tn.A,{breadcrumbs:l,currentPage:m})}),(0,o.jsxs)(tC,{children:[(0,o.jsx)(tb,{children:(0,o.jsx)(ti.A,{variant:"unstyled",onClick:e=>{e.preventDefault(),d?(history.back(),new URLSearchParams(c).delete("searchResult")):s(tr.A.RECIPES_LANDING_PAGE)},url:tr.A.RECIPES_LANDING_PAGE,leftArrow:!0,compact:!0,children:d?(0,N.LK)("back"):(0,u.A)("backToRecipeSearch")})}),(0,o.jsx)(tI,{children:m}),g&&(0,o.jsx)(tf,{description:g}),(0,o.jsxs)(tD,{children:[(0,o.jsx)(tL,{children:(0,o.jsx)(tl.A,{id:p,variant:"button"})}),f&&(0,o.jsx)(ta.c,{cookingTime:f,color:"black"}),x>0&&(0,o.jsxs)(tk,{children:[(0,o.jsx)(w.A,{icon:tc}),(0,o.jsx)(h.A,{weight:"medium",children:(0,u.A)("numberOfIngredients",{numberOfIngredients:x})})]})]}),A&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tR,{children:(0,o.jsx)(K,{})}),(0,o.jsx)(eW,{price:null!=v?v:"",hasPrice:!!v&&!a}),(0,o.jsxs)(tz,{children:[(0,o.jsx)(tL,{children:r}),(0,o.jsxs)(C.A,{variant:"secondary",onClick:n,children:[(0,o.jsx)(w.A,{icon:eN.A}),(0,u.A)("showRecipeProductList")]})]})]})]}),(0,o.jsxs)(tP,{children:[(0,o.jsx)(tF,{children:(0,o.jsx)(tE,{children:(0,o.jsx)(tl.A,{id:p})})}),j&&(0,o.jsx)(tT,{imageUrl:j,altText:m})]})]})};var tM=i(60283),tO=i(4487),tB=i(43804),tN=i(24446),t_=i(17553),tG=i(4047);let tV=f.Ay.span.withConfig({componentId:"sc-238e20b0-0"})(["display:block;font-size:",";font-weight:",";font-family:",";color:",";"],(0,A.D0)(16),e=>{let{theme:t}=e;return t.fonts.fontWeight.medium},e=>{let{theme:t}=e;return t.typography.fontSans},e=>{let{theme:t}=e;return t.colors.colorTextSecondary}),t$=f.Ay.div.withConfig({componentId:"sc-238e20b0-1"})(["display:flex;flex-direction:column;width:100%;","{flex-direction:row;gap:",";align-items:baseline;}"],g.A.tabletPortrait,(0,A.D0)(16));var tQ=i(13599),tU=i(52333);let tW=async e=>{let{recipeId:t}=e;return(0,G.n1)(t)},tK=e=>{let{recipeId:t}=e,{data:i=[],isLoading:n,isValidating:r,error:a}=(e=>{let{data:t,isLoading:i,isValidating:n,error:r}=(0,tU.u)({fn:"relatedRecipes",recipeId:e},tW,{refreshInterval:tQ.w});return{data:t,isLoading:i,isValidating:n,error:r}})(t),l=null==i?void 0:i.map(e=>e&&(0,tG.I)(e)?e:void 0).filter(e=>!!e),{list:s,listItem:c}=(0,tN.A)(l);return n||r?(0,o.jsx)(eV.A,{"data-testid":"related-recipes-skeleton",type:"rect",height:370,$style:{margin:0}}):(null==i?void 0:i.length)&&!a?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tM.h0,{children:(0,o.jsx)(tM.qz,{children:(0,o.jsxs)(t$,{children:[(0,o.jsx)(q.A,{size:"small",color:"black",type:"h2",children:(0,u.A)("relatedRecipes")}),(0,o.jsxs)(tV,{children:["(",(0,u.A)("amountOfRelatedRecipes",{count:i.length}),")"]})]})})}),(0,o.jsx)(tM.wq,{children:(0,o.jsx)(tO.A,{as:s,children:l.map(e=>(0,o.jsx)(tB.Ay,{as:c,children:(0,o.jsx)(t_.A,{searchResult:!1,recipe:e,variant:"small"},e.id)},e.id))})})]}):null};i(14495);var tZ=i(49335),tX=i(27111);let tY=async e=>{let{recipeId:t,isRecipePreview:i}=e;return i?await (0,G.rG)(t):await (0,G.hA)(t)},tJ=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{assortmentStoreId:i,slotId:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{fn:t?"getRecipePreview":"getRecipe",recipeId:e,assortmentStoreId:i,slotId:n,isRecipePreview:t}},t0=e=>{let{recipeId:t,isPreview:i=!1}=e,n=(0,d.useRef)(null),{recipe:r,changeRecipePortions:a,addReplacement:l,addProduct:h,removeProduct:m,isLoading:u,refreshRecipe:g}=((e,t)=>{let i=tJ(e,t,(0,tZ.A)()),n=(0,tU.u)(i,tY,{keepPreviousData:!0,shouldRetryOnError:!0,errorRetryCount:2}),r=async t=>{await (0,G.zB)(t,e),await n.mutate()},a=(0,tX.x)(r,500),l=async(t,i)=>{await (0,G.DG)({recipeId:e,replacedProductCode:t,replacementProductCode:i}
1),await n.mutate()},o=async(e,t)=>{await (0,G.Yf)({productCode:e,recipeId:t}),await n.mutate()},s=async(e,t)=>{await (0,G.S7)({productCode:e,recipeId:t}),await n.mutate()};return{recipe:n.data,changeRecipePortions:a,addReplacement:l,addProduct:s,removeProduct:o,isLoading:n.isLoading,refreshRecipe:n.mutate}})(t,i),{id:f,description:x,name:A,schema:v,tracking:w}=r||{},{addRecipe:y,removeRecipe:b,recipeIsInCart:C,status:D,recipeCartProducts:I,recipeCartStatusMessage:P}=V(t,A),{hasFetchedCart:S}=(0,c.Ay)(),R=u||!S;if(!r)return null;let z=async()=>{await b(),await g(),(0,p.Ui)(I,w.recipeTrackingData,t)},E=async()=>{await y(),(0,p.Ml)(w.recipeTrackingData,w.addToCartItems)},L=(0,o.jsx)(k,{addRecipe:E,removeRecipe:z,recipeIsInCart:C,status:D}),q=r.isBuyable?(0,o.jsx)("div",{ref:n,"data-testid":"recipe-products-section",children:(0,o.jsx)(e4,{recipe:r,onPortionsChange:a,addReplacement:l,onChange:(e,t)=>t?h(e,f):m(e,f),isLoading:u,isPriceLoading:R,children:L})}):null;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.A,{message:P}),i?null:(0,o.jsx)(tt,{schema:v,name:A,description:x}),(0,o.jsx)(F,{header:(0,o.jsx)(tH,{recipe:r,scrollToProducts:()=>{if(null==n?void 0:n.current){var e;null==(e=n.current)||e.scrollIntoView({behavior:"smooth"})}},isRecipeLoading:R,children:L}),ingredients:(0,o.jsx)(eB,{recipe:r,onPortionsChange:a}),products:q,carousel:(0,o.jsx)(tK,{recipeId:r.id})}),(0,o.jsx)(j,{recipe:r,children:L})]})}}}]);

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.