1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[75142,94177,54132],{137833:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/creator-marketplace/[creatorSlug]/recipes/[recipeSlug]",function(){return r(635019)}])},553911:function(e,t,r){"use strict";var n=r(687800),i=r(827378),o=r(72344),a=r(727650),l=r(497249),c=r(165218),u=r.n(c)()(function(){return Promise.resolve().then(r.bind(r,72344))},{loadableGenerated:{webpack:()=>[null]},ssr:!1});t.Z=function(e){var t,r,c=e.hasMarkdown,s=e.copy,d=e.markdownOptions,p=e.noSSR,g=e.allowedAttrs,f=e.config,b=(0,l.T)(),m="string"==typeof s?s.replace(/[ \t]{9,}/g," ".repeat(8)):s,y=(0,a.sanitize)(m,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ADD_ATTR:void 0===g?[]:g},void 0===f?{}:f),r=r={RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t));return((0,i.useEffect)(function(){if((s||"")!==y){var e=b.startSpan("sanitize-content-libray");e.setAttributes({"sanitize-content-libray":!0,"sanitize-error-detected":s!==y,"sanitize-message":"HTML content has been sanitized. Please check the content to ensure it is safe.","sanitize-original-content":s,"sanitize-sanitized-content":y}),e.end()}},[s,y,b]),c)?p?(0,n.tZ)(u,{options:d,children:y}):(0,n.tZ)(o.default,{options:d,children:y}):(0,n.tZ)("div",{dangerouslySetInnerHTML:{__html:y}})}},612771:function(e,t,r){"use strict";r.d(t,{P:function(){return n}});var n={mobile:"mobile",tablet:"tablet",desktop:"desktop",server:"server"}},228001:function(e,t,r){"use strict";var n=r(827378),i=r(60074),o=r(266726),a=r.n(o),l=r(768587);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.Z=function(e){var t=u((0,n.useState)([0,0]),2),r=t[0],o=t[1],c=u(r,2),s=c[0],d=c[1],p=u((0,l.Fg)().breakpoints.map(function(e){return Number(e.slice(0,-2))}).sort(function(e,t){return e-t}),2),g=p[0],f=p[1];(0,n.useEffect)(function(){o([window.innerWidth,window.innerHeight]);var t=a()(function(){e&&i.n_({message:"debounced set size state",category:"@/libs/window-api/useWindowSize",level:"debug",data:{newWidth:window.innerWidth,newHeight:window.innerHeight,previousWidth:s,previousHeight:d}}),o([window.innerWidth,window.innerHeight])},250);return window.addEventListener("resize",t),function(){e&&i.n_({message:"removing event listener and cancelling debounced function",category:"@/libs/window-api/useWindowSize",level:"debug"}),window.removeEventListener("resize",t),t.cancel()}},[]);var b=!!s&&s<g,m=!!s&&s>=g&&s<f,y=!!s&&s>=f;return{width:s,height:d,tabletWidth:g,isMobile:b,isTablet:m,isDesktop:y}}},635019:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return tO},default:function(){return tx}});var n=r(687800),i=r(827378),o=r(934301),a=r(768587),l=r(581340),c=r(537850),u=r(292282),s=r(908315),d=r(888149),p=r(187923),g=r(406302),f=function(e){var t=e.children;return(0,n.tZ)(a.xu,{width:"100%",backgroundColor:"alias.elevation.level-1",children:(0,n.tZ)(a.xu,{backgroundColor:"alias.elevation.level-1",paddingY:"global.sm-1",maxWidth:"1200px",mx:"auto",children:t})})},b=function(e){var t,r=e.creatorSlug,i=e["data-testid"],o=void 0===i?"creator-back-navigation":i,b=(0,l.t)(),m=b.query,y=m.from,h=m.fromCreator,v=(0,c.H)().translateRaw,w=(0,d.ik)(y),O=(0,d.bZ)(h),x=null!=O?O:r,k=(0,s.y)({slug:null!=x?x:"",enabled:!!x&&!w}),S="success"===k.status?k.creator:void 0;if(w){var _={home:{route:(0,d.Yt)(),translationKey:"creator_marketplace.back_navigation.back_to_homepage.button_text",defaultValue:"Home"},browse:{route:(0,d.AM)(),translationKey:"creator_marketplace.back_navigation.back_to_browse.button_text",defaultValue:"Browse"},account:{route:(0,d.Zw)(),translationKey:"creator_marketplace.back_navigation.back_to_account.button_text",defaultValue:"Account"}}[w],Z="true"===b.query.openCart?"".concat(_.route,"?openCart=true"):_.route;return(0,n.tZ)(f,{children:(0,n.tZ)(a.zx.Tertiary,{leadingIcon:(0,n.tZ)(u.default,{}),size:"sm",textAnchor:"left",width:"fit-content",onClick:function(){return(0,p.Z)(b,Z)},"data-testid":o,children:v(_.translationKey)||_.defaultValue})})}if(!S||!x)return null;var j=S.name,C=null!==(t=S.headshot_image)&&void 0!==t?t:void 0;return(0,n.tZ)(f,{children:(0,n.tZ)(a.zx.Tertiary,{leadingIcon:(0,n.tZ)(u.default,{}),size:"sm",textAnchor:"left",width:"fit-content",onClick:function(){if(O){(0,p.Z)(b,(0,d.lp)(O));return}(0,p.Z)(b,(0,d.by)(r,b.query))},"data-testid":o,children:(0,n.BX)(a.xu,{display:"flex",alignItems:"center",gap:"global.xxs-2",children:[(0,n.tZ)(g.D,{avatarUrl:C,name:j,size:"sm"}),(0,n.tZ)(a.xv,{type:"body-md-bold",color:"inherit",children:j})]})})})},m=r(318066),y=function(){var e=(0,c.H)().translateRaw;return(0,n.BX)(a.xu,{display:"flex",alignItems:"center",justifyContent:"center",gap:"global.xs",paddingY:["global.md-2","global.md-1","global.md-1"],role:"img","aria-label":e("creator_marketplace.recipe_details.brought_to_you_by_aria",{defaultValue:"Brought to you by HelloFresh"}),children:[(0,n.tZ)(a.xv,{type:"body-sm-regular",color:"shared-alias.neutral.foreground.darker",children:e("creator_marketplace.recipe_details.brought_to_you_by",{defaultValue:"Brought to you by"})}),(0,n.tZ)(m.ZP,{height:24,width:80,src:"/hellofresh_website/logo/Hello_Fresh_Lockup.png",alt:"HelloFresh"})]})},h=r(617947),v=r(958042),w=r(200770),O=r(814818),x=function(e,t){var r,n,o,a=(0,O.t)({enabled:(null===(o=null==t?void 0:t.enabled)||void 0===o||o)&&!!e}),l=a.courseByRecipeId,c=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(a,["courseByRecipeId"]),u=(0,i.useMemo)(function(){return e?l.get(e):void 0},[l,e]);return r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},c),n=n={course:u},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r},k=r(696328),S=r(6673),_=r(665916),Z=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.enabled,o=void 0===n||n,a=r.includePrices,l=(0,k.z)(),c=x(null!=e?e:"",{enabled:o&&!!e}),u=c.course,s=c.isLoading,d=c.isError,p=(0,w.Z)().toLowerCase(),g=(0,v.Z)(),f=(0,S.H)({product_id:e?[e]:[],week:(0,h.Z)(),country:p,locale:g},{enabled:o&&!!e&&void 0!==a&&a}),b="loading"===f.status,m="error"===f.status,y="success"===f.status?f.prices:void 0,O=(0,i.useMemo)(function(){return(0,_.x)(y)},[y]);return{data:(0,i.useMemo)(function(){if(e&&!s&&!d&&u)return l(u,t,O)},[s,d,e,u,l,t,O]),isLoading:s||b,isError:d||m,error:!!d||!!m||void 0}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.creatorSlug,n=e.recipeSlug,i=e.recipeId,o=t.enabled,a=void 0===o||o,l=(0,s.y)({slug:r,enabled:a&&!!r,includeRecipes:!0}),c="success"===l.status?l.creator:null,u=Z(i,null!=c?c:void 0,{enabled:a&&!!i,includePrices:!0}),d=u.data,p=u.isLoading,g=u.isError,f=u.error,b=p||"loading"===l.status,m=g||"error"===l.status,y="success"===l.status&&!c;return void 0!==d&&(d.slug!==n||y)?{recipe:void 0,isLoading:!1,isError:!0,error:"Recipe not found. Creator slug or recipe slug mismatch."}:{recipe:d,isLoading:b,isError:m,error:null!=f?f:null}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var I=function(e,t){var r=P((0,i.useState)(!1),2),n=r[0],o=r[1],a=P((0,i.useState)("ingredients"),2),l=a[0],c=a[1];return(0,i.useEffect)(function(){t&&(0,d.jf)(e.query.openDrawer)&&(c("cookingSteps"),o(!0))},[t,e.query.openDrawer]),{isOpen:n,initialSection:l,open:function(){c("ingredients"),o(!0)},close:function(){if(o(!1),e.query.openDrawer){var t=P(e.asPath.split("?"),2),r=t[0],n=new URLSearchParams(t[1]);n.delete("openDrawer");var i=n.toString()?"".concat(r,"?").concat(n.toString()):r;e.replace(i,void 0,{shallow:!0})}}}},D=r(268481),A=r(612771),R=r(153659),T=r(141323),E=r(887824),B=r(527157);function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function M(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var V=function(){var e=(0,E.Z)().push,t=(0,B.Z)(),r=(0,T.j)({},{suspense:!1,useErrorBoundary:!1}).data,n=(null==r?void 0:r.id)?"".concat(r.id):"",o=(null==r?void 0:r.activeSubscriptionId)?"".concat(r.activeSubscriptionId):"",a=(0,i.useMemo)(function(){return{event:"gaEventTrigger",brand:t,tribe:"New Ventures",screen:"PDP",customer_id:n,subscription_id:o,gaEventCategory:"creator-marketplace"}},[t,n,o]),l=(0,i.useCallback)(function(t){e(M(X({},a),{event_name:"CM_PDP_PageView",recipe_id:t.recipeId,creator_id:t.creatorId,entry_point:t.entryPoint,gaEventAction:"pageView",gaEventLabel:"".concat(t.recipeId,"|").concat(t.creatorId,"|").concat(t.entryPoint),timestamp:Date.now()}))},[a,e]),c=(0,i.useCallback)(function(t){e(M(X({},a),{event_name:"CM_PDP_ShareClick",recipe_id:t.recipeId,gaEventAction:"shareClicked",gaEventLabel:t.recipeId,timestamp:Date.now()}))},[a,e]),u=(0,i.useCallback)(function(t){e(M(X({},a),{event_name:"CM_PDP_AddToCartClick",recipe_id:t.recipeId,servings:t.servings,gaEventAction:"addToCartClicked",gaEventLabel:"".concat(t.recipeId,"|").concat(t.servings),timestamp:Date.now()}))},[a,e]),s=(0,i.useCallback)(function(t){e(M(X({},a),{event_name:"CM_PDP_CreatorCardClick",creator_id:t.creatorId,gaEventAction:"creatorCardClicked",gaEventLabel:t.creatorId,timestamp:Date.now()}))},[a,e]),d=(0,i.useCallback)(function(t){e(M(X({},a),{event_name:"CM_PDP_MoreFromCreatorDisplay",creator_id:t.creatorId,gaEventAction:"moreFromCreatorDisplay",gaEventLabel:t.creatorId,timestamp:Date.now()}))},[a,e]),p=(0,i.useCallback)(function(t){e(M(X({},a),{event_name:"CM_PDP_MoreFromCreatorCardClick",recipe_id:t.recipeId,creator_id:t.creatorId,card_position:t.cardPosition,gaEventAction:"moreFromCreatorCardClicked",gaEventLabel:"".concat(t.recipeId,"|").concat(t.creatorId,"|").concat(t.cardPosition),timestamp:Date.now()}))},[a,e]),g=(0,i.useCallback)(function(t){e(M(X({},a),{event_name:"CM_PDP_MoreFromCreatorViewAll",creator_id:t.creatorId,gaEventAction:"moreFromCreatorViewAllClicked",gaEventLabel:t.creatorId,timestamp:Date.now()}))},[a,e]),f=(0,i.useCallback)(function(t){e(M(X({},a),{event_name:"CM_PDP_MoreRecipesAdd",recipe_id:t.recipeId,creator_id:t.creatorId,gaEventAction:"moreRecipesAdded",gaEventLabel:"".concat(t.recipeId,"|").concat(t.creatorId),timestamp:Date.now()}))},[a,e]),b=(0,i.useCallback)(function(t){e(M(X({},a),{event_name:"CM_PDP_MoreRecipesRemove",recipe_id:t.recipeId,creator_id:t.creatorId,gaEventAction:"moreRecipesRemoved",gaEventLabel:"".concat(t.recipeId,"|").concat(t.creatorId),timestamp:Date.now()}))},[a,e]),m=(0,i.useCallback)(function(t){e(M(X({}
1,a),{event_name:"CM_PDP_RecipeAccordionClick",section:t.section,gaEventAction:"recipeAccordionClicked",gaEventLabel:t.section,timestamp:Date.now()}))},[a,e]),y=(0,i.useCallback)(function(){e(M(X({},a),{event_name:"CM_PDP_MoreRecipesDisplay",gaEventAction:"moreRecipesDisplay",gaEventLabel:"pdp",timestamp:Date.now()}))},[a,e]),h=(0,i.useCallback)(function(t){e(M(X({},a),{event_name:"CM_PDP_MoreRecipesCardClick",recipe_id:t.recipeId,card_position:t.cardPosition,gaEventAction:"moreRecipesCardClicked",gaEventLabel:"".concat(t.recipeId,"|").concat(t.cardPosition),timestamp:Date.now()}))},[a,e]),v=(0,i.useCallback)(function(t){e(M(X({},a),{event_name:"CM_PDP_NutritionViewClick",recipe_id:t.recipeId,gaEventAction:"nutritionViewClicked",gaEventLabel:t.recipeId,timestamp:Date.now()}))},[a,e]);return{trackPageView:l,trackShareClick:c,trackAddToCartClick:u,trackCreatorCardClick:s,trackMoreFromCreatorDisplay:d,trackMoreFromCreatorCardClick:p,trackMoreFromCreatorViewAll:g,trackMoreFromCreatorAdd:f,trackMoreFromCreatorRemove:b,trackMoreRecipesDisplay:y,trackMoreRecipesCardClick:h,trackMoreRecipesViewAll:(0,i.useCallback)(function(t){e(M(X({},a),{event_name:"CM_PDP_MoreRecipesViewAll",gaEventAction:"moreRecipesViewAllClicked",gaEventLabel:t.filterApplied,timestamp:Date.now()}))},[a,e]),trackRecipeAccordionClick:m,trackNutritionViewClick:v}},L=r(912449),F=function(e){var t=e.recipeName,r=e.onClick,i=(0,(0,c.H)().translateRaw)("creator_marketplace.recipe_details.share.button_label",{recipeName:t,defaultValue:"Share recipe"});return(0,n.tZ)(a.hU.Tertiary,{size:"sm",icon:(0,n.tZ)(L.default,{}),onClick:r,"aria-label":i,"data-test-id":"recipe-hero-share-button"})},H=function(e,t,r){var n=(0,d.C0)(e,t,r),i=window.location,o=i.protocol,a=i.host;return"".concat(o,"//").concat(a).concat(n)};function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function z(e,t,r,n,i,o,a){try{var l=e[o](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,i)}var K=function(e){var t,r,o,a=e.creatorSlug,l=e.recipeName,c=e.recipeSlug,u=e.recipeId,s=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(!1))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return N(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return N(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=s[0],p=s[1],g=(0,D.Sj)(),f=V().trackShareClick,b=(0,i.useMemo)(function(){return H(a,c,u)},[a,c,u]),m=(r=function(){var e;return function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(t){switch(t.label){case 0:if(f({recipeId:u}),!(g===A.P.mobile&&navigator.share))return[3,5];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,navigator.share({title:l,url:b})];case 2:return t.sent(),[3,4];case 3:var r,n;if(r=e=t.sent(),(null!=(n=Error)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](r):r instanceof n)&&"AbortError"===e.name)return[2];return p(!0),[3,4];case 4:return[2];case 5:return p(!0),[2]}})},o=function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function a(e){z(o,n,i,a,l,"next",e)}function l(e){z(o,n,i,a,l,"throw",e)}a(void 0)})},function(){return o.apply(this,arguments)});return(0,n.BX)(n.HY,{children:[(0,n.tZ)(F,{recipeName:l,onClick:m}),(0,n.tZ)(R.R,{isOpen:d,onClose:function(){return p(!1)},shareUrl:b})]})},W=r(480582),U=r(978199),Y=r(553911),q=function(e){var t=e.isBestSeller,r=e.socialLikes,i=e.socialPlatform,o=(0,c.H)().translateRaw;if(!t&&!r)return null;var l=i?(0,W.$)(i):null,u=i?(0,W.F)(i):"",s=r?"".concat((0,U.k)(r)):"";return(0,n.BX)(a.xu,{display:"flex",flexWrap:"wrap",gap:"global.xs",alignItems:"center","data-test-id":"recipe-badges",children:[t&&(0,n.tZ)(a.xu,{display:"inline-flex",alignItems:"center",paddingX:"global.sm-1",paddingY:"global.xxs",borderRadius:"border-radius-sm",backgroundColor:"alias.tag.background.colored.v2",role:"status","data-test-id":"best-seller-badge",children:(0,n.tZ)(a.xv,{type:"body-xs-bold",color:"alias.tag.foreground.colored.v2",children:o("creator_marketplace.recipe.badge.best_seller")})}),r&&i&&l&&(0,n.BX)(a.xu,{display:"flex",alignItems:"center",gap:"global.xxs",paddingX:"global.sm-1",paddingY:"global.xxs",borderRadius:"border-radius-sm",backgroundColor:"alias.tag.background.colored.v4",role:"status","data-test-id":"social-likes-badge",children:[(0,n.tZ)(a.xu,{width:"16px",height:"16px",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",children:(0,n.tZ)(l,{})}),(0,n.tZ)(a.xv,{type:"body-xs-regular",color:"alias.tag.foreground.colored.v4",children:(0,n.tZ)(Y.Z,{copy:o("creator_marketplace.recipe_details.title_and_cta.likes_by_platform",{number:s,platform:u})})})]})]})},$=r(625251),G=function(e){var t=e.recipeName,r=e.subtitle,i=e.creatorSlug,o=e.recipeSlug,l=e.recipeId,c=e.isBestSeller,u=e.socialLikes,s=e.socialPlatform;return(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",children:[(0,n.BX)(a.xv,{as:"h1","data-test-id":"recipe-name",children:[t," ",(0,n.tZ)(a.xu,{display:"inline-flex",verticalAlign:"middle",transform:"translateY(-2px)",children:(0,n.tZ)(K,{creatorSlug:i,recipeName:t,recipeSlug:o,recipeId:l})})]}),r&&(0,n.tZ)(a.xu,{marginTop:["global.xxs","global.xs"],children:(0,n.tZ)(a.xv,{type:"body-md-regular",color:"shared-alias.neutral.foreground.default","data-test-id":"recipe-headline",children:r})}),(0,n.tZ)(a.xu,{marginTop:"global.xs",children:(0,n.tZ)(q,{isBestSeller:c,socialLikes:u,socialPlatform:s})})]})};G.Skeleton=function(){var e=(0,c.H)().translateRaw;return(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",gap:"global.xxs","data-test-id":"recipe-details-text-skeleton",role:"status","aria-busy":"true","aria-label":e("creator_marketplace.recipe_details.title_and_cta.skeleton.aria_label"),children:[(0,n.tZ)($.K,{width:"80%",height:"32px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"}),(0,n.tZ)(a.xu,{marginTop:"global.xs",children:(0,n.tZ)($.K,{width:"100%",height:"16px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"})}),(0,n.tZ)($.K,{width:"72%",height:"16px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"})]})};var Q=function(){var e=(0,c.H)().translateRaw;return(0,n.BX)(a.xu,{display:"flex",alignItems:"center",gap:"global.sm-2","data-test-id":"
1creator-profile-card-skeleton","aria-label":e("creator_marketplace.hero.creator_card.skeleton.aria_label"),children:[(0,n.tZ)($.K,{width:"48px",height:"48px",borderRadius:"border-radius-circle",backgroundColor:"neutral.300",flexShrink:0}),(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",gap:"global.xxs",children:[(0,n.tZ)($.K,{width:"180px",height:"16px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"}),(0,n.tZ)($.K,{width:"140px",height:"14px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"})]})]})},J=function(e){var t,r,i,o,u,p,f=e.creatorSlug,b=(0,l.t)(),m=(0,s.y)({slug:f,enabled:!!f}),y=(0,c.H)().translateRaw,h=V().trackCreatorCardClick,v=(0,d.by)(f,b.query);if("loading"===m.status)return(0,n.tZ)(Q,{});if("error"===m.status||!m.creator)return null;var w=m.creator,O=null===(r=w.social_links)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.platform,x=null!==(i=w.followers_count)&&void 0!==i?i:0,k=(0,U.k)(x),S=(0,W.F)(O),_=y("creator_marketplace.hero.creator_card.followers_count_by_platform",{count:k,platform:S}),Z=y("creator_marketplace.hero.creator_card.recipe_by");return(0,n.BX)(a.xu,{display:"inline-flex",alignItems:"center",gap:"global.sm-2",paddingX:"global.sm-2",paddingY:"global.xs",backgroundColor:"alias.elevation.base",borderRadius:"border-radius-md","data-test-id":"creator-profile-card",width:["100%","auto"],children:[(0,n.tZ)(g.D,{avatarUrl:null!==(o=w.headshot_image)&&void 0!==o?o:"",name:null!==(u=null==w?void 0:w.name)&&void 0!==u?u:"",size:"md"}),(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",children:[(0,n.BX)(a.xu,{display:"flex",alignItems:"center",gap:"global.xxs",children:[(0,n.tZ)(a.xv,{type:"body-sm-bold",color:"alias.interactive.foreground.default",children:Z}),(0,n.tZ)(a.xu,{as:"a",href:v,onClick:function(){return h({creatorId:w.id})},textDecoration:"underline",color:"alias.interactive.foreground.default",__dangerouslySetCustomCSS:{"&:visited":{color:"inherit"}},children:(0,n.tZ)(a.xv,{type:"body-sm-bold",color:"alias.interactive.foreground.default",children:null!==(p=null==w?void 0:w.name)&&void 0!==p?p:""})})]}),x>0&&S&&(0,n.tZ)(a.xv,{type:"body-xs-regular",color:"neutral.600",children:_})]})]})};J.Skeleton=Q;var ee=function(e){var t=e.description;return t?(0,n.tZ)(a.xu,{children:(0,n.tZ)(a.xv,{type:"body-md-regular",color:"shared-alias.neutral.foreground.darkest",children:t})}):null};ee.Skeleton=function(){var e=(0,c.H)().translateRaw;return(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",gap:"global.xxs",role:"status","aria-label":e("creator_marketplace.hero.recipe_description.skeleton.aria_label"),children:[(0,n.tZ)($.K,{width:"100%",height:"14px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"}),(0,n.tZ)($.K,{width:"100%",height:"14px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"}),(0,n.tZ)($.K,{width:"100%",height:"14px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"}),(0,n.tZ)($.K,{width:"70%",height:"14px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"})]})};var et=function(e){var t=e.tags;return t&&0!==t.length?(0,n.tZ)(a.xu,{display:"flex",alignItems:"center",gap:"global.xs",flexWrap:"wrap",children:t.map(function(e){return e.displayLabel&&(0,n.tZ)(a.uj,{backgroundColor:"alias.interactive.background.lighter",color:"alias.interactive.foreground.darker",size:"sm",fontWeight:"bold",children:e.name},e.id)})}):null};et.Skeleton=function(){var e=(0,c.H)().translateRaw;return(0,n.BX)(a.xu,{display:"flex",alignItems:"center",gap:"global.xs",role:"status","aria-label":e("creator_marketplace.hero.recipe_tag_pills.skeleton.aria_label"),children:[(0,n.tZ)($.K,{width:"80px",height:"28px",backgroundColor:"neutral.300",borderRadius:"border-radius-md"}),(0,n.tZ)($.K,{width:"110px",height:"28px",backgroundColor:"neutral.300",borderRadius:"border-radius-md"}),(0,n.tZ)($.K,{width:"95px",height:"28px",backgroundColor:"neutral.300",borderRadius:"border-radius-md"})]})};var er=function(e){var t=e.calories,r=e.protein,i=e.prepTime,o=e.difficulty,l=(0,c.H)().translateRaw,u=[{id:"calories",label:l("creator_marketplace.recipe_details.nutrition_info.calories_title"),value:"".concat(t," ").concat(l("creator_marketplace.recipe_details.nutrition_info.calories_unit"))},{id:"protein",label:l("creator_marketplace.recipe_details.nutrition_info.protein_title"),value:r?"".concat(l("creator_marketplace.recipe_details.nutrition_info.protein_unit",{number:r})):"â"},{id:"time",label:l("creator_marketplace.recipe_details.nutrition_info.time_title"),value:i},{id:"difficulty",label:l("creator_marketplace.recipe_details.nutrition_info.difficulty_title"),value:o}];return(0,n.tZ)(a.xu,{display:"flex",flexWrap:"wrap",gap:["global.sm-2","global.md-1"],"data-test-id":"nutrition-metadata-grid",children:u.map(function(e){var t=e.id,r=e.label,i=e.value;return(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",gap:"global.xxs",children:[(0,n.tZ)(a.xv,{type:["body-sm-bold","body-md-bold"],color:"shared-alias.neutral.foreground.default",children:r}),(0,n.tZ)(a.xv,{type:["body-sm-regular","body-md-regular"],color:"shared-alias.neutral.foreground.default",children:i})]},t)})})},en=function(e){var t=new Set,r=[],n=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done);
1n=!0){var c=a.value;if(!c.tracesOf&&!c.triggersTracesOf){var u=c.id||c.name;t.has(u)||(t.add(u),r.push(c.name))}}}catch(e){i=!0,o=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw o}}return r},ei=function(e){var t=e.allergens,r=(0,c.H)().translateRaw,i=t&&t.length>0?en(t):[];if(0===i.length)return null;var o=r("creator_marketplace.recipe_details.allergen_info.title");return(0,n.tZ)(a.xu,{"data-test-id":"nutrition-allergens-section",children:(0,n.BX)(a.xv,{type:["body-sm-regular","body-md-regular"],color:"shared-alias.neutral.foreground.default",children:[(0,n.tZ)(a.xv,{as:"span",type:["body-sm-bold","body-md-bold"],color:"shared-alias.neutral.foreground.default",children:o})," ",i.join(" ⢠")]})})},eo=Object.assign(function(e){var t=e.calories,r=e.nutrition,i=e.prepTime,o=e.difficulty,l=e.allergens,c=null==r?void 0:r.find(function(e){var t;return(null===(t=e.name)||void 0===t?void 0:t.toLowerCase())==="protein"}),u=c?c.amount:void 0;return(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",gap:"global.sm-1",children:[(0,n.tZ)(er,{calories:t,protein:u,prepTime:i,difficulty:o}),(0,n.tZ)(ei,{allergens:l})]})},{Skeleton:function(){var e=(0,c.H)().translateRaw;return(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",gap:"global.md-1",role:"status","aria-label":e("creator_marketplace.recipe_details.nutrition_info.skeleton.aria_label"),paddingY:"global.sm-1",children:[(0,n.tZ)(a.xu,{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:"global.xs",children:Array.from({length:4}).map(function(e,t){return(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",gap:"global.xxs",children:[(0,n.tZ)($.K,{width:"60px",height:"12px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"}),(0,n.tZ)($.K,{width:"45px",height:"14px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"})]},t)})}),(0,n.tZ)($.K,{width:"200px",height:"14px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"})]})}}),ea=Object.assign(function(){var e=(0,c.H)().translateRaw;return(0,n.tZ)(a.xu,{"data-test-id":"nutrition-legal-disclaimer",children:(0,n.tZ)(a.xv,{type:"body-xs-regular",color:"shared-alias.neutral.foreground.default",children:e("creator_marketplace.recipe_details.legal_disclaimer.text")})})},{Skeleton:function(){return(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",gap:"global.xxs",children:[(0,n.tZ)($.K,{width:"100%",height:"12px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"}),(0,n.tZ)($.K,{width:"80%",height:"12px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"})]})}}),el=Object.assign(function(e){var t=e.publishedAt,r=(0,c.H)().translateRaw,i=new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric"}).format(new Date(t));return(0,n.tZ)(a.xu,{display:"flex",justifyContent:"center",paddingTop:["global.xs","global.md-1"],"data-test-id":"nutrition-published-date",children:(0,n.tZ)(a.xv,{type:"body-xs-regular",color:"shared-alias.neutral.foreground.darker",children:r("creator_marketplace.recipe_details.published_info.text",{date:i})})})},{Skeleton:function(){return(0,n.tZ)(a.xu,{display:"flex",justifyContent:"center",paddingTop:"global.md-1",children:(0,n.tZ)($.K,{width:"180px",height:"12px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"})})}}),ec="480 / 600",eu="480px",es="468px",ed=function(e){var t=e.imagePath,r=e.recipeName,i="mobile"===(0,D.Sj)();return(0,n.tZ)(a.xu,{position:"relative",width:"100%",maxWidth:i?void 0:eu,aspectRatio:ec,height:i?es:void 0,overflow:"hidden",children:t?(0,n.tZ)(m.ZP,{src:t,alt:r,fill:!0,priority:!0,sizes:"(max-width: 768px) 100vw, 480px",style:{objectFit:"cover"},fallbacksrc:"/hellofresh_website/empty-dish-thumbnail.png"}):(0,n.tZ)(a.xu,{backgroundColor:"neutral.400",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"})})},ep=function(e){var t=e.imagePath,r=e.recipeName;return(0,n.tZ)(a.xu,{position:"relative",width:"100%","data-test-id":"recipe-hero-section",children:(0,n.tZ)(ed,{imagePath:t,recipeName:r})})};ep.Skeleton=function(){var e=(0,c.H)().translateRaw,t="mobile"===(0,D.Sj)();return(0,n.tZ)(a.xu,{position:"relative",width:"100%",maxWidth:t?void 0:eu,aspectRatio:ec,height:t?es:void 0,overflow:"hidden","data-test-id":"recipe-hero-section-skeleton",role:"status","aria-busy":"true","aria-label":e("creator_marketplace.hero.recipe_image.skeleton.aria_label"),children:(0,n.tZ)(a.xu,{position:"relative",width:"100%",height:"100%",overflow:"hidden",borderRadius:"global.md",children:(0,n.tZ)($.K,{position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"global.gray.300",borderRadius:"border-radius-md"})})})};var eg=r(832706),ef=r(813445),eb=r(454132),em=r(994177),ey=r(482989),eh=r.n(ey),ev=[/BytedanceWebview|musical_ly|TikTok/i,/FBAV/i],ew=function(){return(0,n.BX)(a.xu,{padding:"global.sm-2",backgroundColor:"alias.elevation.level-2",borderRadius:"border-radius-md","data-test-id":"go-to-creator-post-card-skeleton",children:[(0,n.tZ)($.K,{width:"180px",height:"20px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm",marginBottom:"global.sm-1"}),(0,n.tZ)(a.xu,{display:"flex",gap:"global.sm-2",children:[1,2,3].map(function(e){return(0,n.tZ)($.K,{width:"100px",height:"16px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"},e)})})]})}
1,eO=r(226011),ex=function(e){var t=e.children;return(0,n.tZ)(a.xu,{display:"inline-flex",__dangerouslySetCustomCSS:{filter:"grayscale(1) brightness(0)"},children:t})},ek={instagram:(0,n.tZ)(ex,{children:(0,n.tZ)(eb.default,{width:"1rem",height:"1rem"})}),tiktok:(0,n.tZ)(ex,{children:(0,n.tZ)(eg.Z,{})}),youtube:(0,n.tZ)(ex,{children:(0,n.tZ)(ef.Z,{})})},eS={instagram:{label:"creator_marketplace.recipe_details.go_to_creator_post.instagram",hint:"creator_marketplace.recipe_details.go_to_creator_post.instagram_link.accessibility_hint"},tiktok:{label:"creator_marketplace.recipe_details.go_to_creator_post.tiktok",hint:"creator_marketplace.recipe_details.go_to_creator_post.tiktok_link.accessibility_hint"},youtube:{label:"creator_marketplace.recipe_details.go_to_creator_post.youtube",hint:"creator_marketplace.recipe_details.go_to_creator_post.youtube_link.accessibility_hint"}},e_=function(e){var t,r,i=e.creatorSlug,o=e.recipeId,l=(0,s.y)({slug:i,enabled:!!i,includeRecipes:!0}),u="loading"===l.status,d="success"===l.status?l.creator:void 0,p=(0,c.H)().translateRaw;if(function(){if(!(null===(e=navigator)||void 0===e?void 0:e.userAgent))return{isWebview:!1};var e,t=new(eh())(navigator.userAgent).getBrowser().name;if("Instagram"===t||"Facebook"===t)return{isWebview:!0};var r=navigator.userAgent;return{isWebview:ev.some(function(e){return e.test(r)})}}().isWebview)return null;if(u)return(0,n.tZ)(ew,{});var g=null==d?void 0:null===(r=d.recipes)||void 0===r?void 0:null===(t=r.items)||void 0===t?void 0:t.filter(function(e){return e.id===o&&!!e.post_url}).map(function(e){return{url:e.post_url,platform:(0,eO.B)(e.post_url)}}).filter(function(e){return null!==e.platform});if(!g||0===g.length)return null;var f=p("creator_marketplace.recipe_details.go_to_creator_post.title",{user_name:(null==d?void 0:d.name)||""});return(0,n.BX)(a.xu,{marginTop:"global.xs",padding:"global.sm-2",backgroundColor:"alias.tag.background.subtle.v0",borderRadius:"border-radius-md","data-test-id":"go-to-creator-post-card",children:[(0,n.tZ)(a.xv,{type:"body-lg-bold",color:"shared-alias.neutral.foreground.default",children:f}),(0,n.tZ)(a.xu,{display:"flex",gap:"global.sm-1",marginTop:"global.sm-1",flexWrap:"wrap",children:g.map(function(e){var t=eS[e.platform],r=p((null==t?void 0:t.label)||e.platform),i=p((null==t?void 0:t.hint)||"");return(0,n.BX)(a.xu,{as:"a",href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":i,display:"inline-flex",alignItems:"center",gap:"global.xxs",textDecoration:"none","data-test-id":"social-link-".concat(e.platform),marginRight:"global.xs",children:[ek[e.platform],(0,n.tZ)(a.xv,{type:"body-sm-bold",color:"shared-alias.neutral.foreground.default",children:r}),(0,n.tZ)(a.JO,{icon:(0,n.tZ)(em.default,{width:"18px",height:"18px"}),color:"shared-alias.neutral.foreground.default"})]},e.platform)})})]})};function eZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}e_.Skeleton=ew;var ej=function(e){var t,r,o,l=e.isVisible,c=e.children,u=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(!1))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return eZ(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eZ(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=u[0],d=u[1];return(0,i.useEffect)(function(){window.matchMedia&&d(window.matchMedia("(prefers-reduced-motion: reduce)").matches)},[]),(0,n.tZ)(a.xu,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({position:"fixed",bottom:"0",left:"0",right:"0",zIndex:20,backgroundColor:"alias.tag.background.strong.v0",padding:"global.sm-2",borderRadius:"border-radius-lg",boxShadow:"global.md",margin:"global.sm-1","aria-hidden":!l},l?{}:{inert:""}),o=o={"data-test-id":"recipe-sticky-footer",transform:l?"translateY(0)":"translateY(100%)",opacity:l?1:0,pointerEvents:l?"auto":"none",transition:s?"none":"transform 0.25s ease-out, opacity 0.25s ease-out",children:c},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r))};function eC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var eP=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.enabled,n=void 0===r||r,o=(0,i.useRef)(null),a=function(e){if(Array.isArray(e))return e}(e=(0,i.useState)(!1))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return eC(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eC(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=a[0],c=a[1];return(0,i.useEffect)(function(){var e=o.current;if(n&&e&&"undefined"!=typeof IntersectionObserver){var t=new IntersectionObserver(function(e){e.forEach(function(e){c(!e.isIntersecting)})},{threshold:0});return t.observe(e),function(){t.disconnect()}}},[n]),{ref:o,isOutOfView:l}},eI=function(e){var t,r,i=e.heroSlot,o=e.titleSlot,l=e.quantityStepperSlot,c=e.stickyCtaSlot,u=e.creatorProfileCardSlot,s=e.recipeDescriptionSlot,d=e.tagPillsSlot,p=e.nutritionalAndLegalInfoSlot,g=e.ingredientsTriggerSlot,f=e.fullRecipeTriggerSlot,b=e.nutritionTriggerSlot,m=e.publishedDateSlot,y=e.goToCreatorPostSlot,h=e.relatedRecipesSlot,v=e.broughtToYouBySlot,w=eP(),O=w.ref,x=w.isOutOfView;return(0,n.BX)(a.xu,{display:"flex",flexDirection:"column","data-test-id":"recipe-details-layout",backgroundColor:"alias.elevation.base",children:[(0,n.tZ)(a.xu,{padding:"global.sm-1",backgroundColor:"global.white","data-test-id":"recipe-details-title-section",children:o}),(0,n.tZ)(a.xu,{"data-test-id":"recipe-details-hero-section",children:i}),(0,n.BX)(a.xu,{padding:"global.sm-1",backgroundColor:"global.white","data-test-id":"recipe-details-info-section",children:[(0,n.tZ)(a.xu,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ref:O,marginTop:"global.sm-2","data-test-id":"recipe-details-quantity-stepper-section","aria-hidden":x},x?{inert:""}:{}),r=r={children:l},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t)),(0,n.tZ)(a.xu,{marginTop:"global.sm-1",paddingTop:"global.sm-1",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"shared-alias.neutral.border.default","data-test-id":"recipe-details-creator-profile-section",children:u}),(0,n.tZ)(a.xu,{marginTop:"global.sm-2","data-test-id":"recipe-details-description-section",children:s}),(0,n.tZ)(a.xu,{marginTop:"global.sm-2","data-test-id":"recipe-details-tag-pills-section",children:d})]}),(0,n.BX)(a.xu,{padding:"global.sm-1",paddingTop:"global.md-2",display:"flex",flexDirection:"column",gap:"global.md-1","data-test-id":"recipe-details-actions-section",children:[(0,n.tZ)(a.xu,{"data-test-id":"recipe-details-nutritional-legal-info-section",children:p}),(0,n.BX)(a.xu,{display:"flex",flexDirection:"column","data-test-id":"recipe-details-triggers-section",children:[g,f,b]}),(0,n.tZ)(a.xu,{"data-test-id":"recipe-details-go-to-creator-post-section",children:y}),(0,n.tZ)(a.xu,{"data-test-id":"recipe-details-published-date-section",children:m}),(0,n.tZ)(a.iz,{my:"global.lg-1",mx:"zero"})]}),(0,n.tZ)(a.xu,{"data-test-id":"recipe-details-related-recipes-section",children:h}),(0,n.tZ)(a.xu,{"data-test-id":"recipe-details-brought-to-you-by-section",children:v}),c&&(0,n.tZ)(ej,{isVisible:x,children:c})]})},eD=r(138015),eA=function(e){var t=e.heroSlot,r=e.titleSlot,i=e.quantityStepperSlot,o=e.creatorProfileCardSlot,l=e.recipeDe
1scriptionSlot,c=e.tagPillsSlot,u=e.nutritionalAndLegalInfoSlot,s=e.ingredientsTriggerSlot,d=e.fullRecipeTriggerSlot,p=e.nutritionTriggerSlot,g=e.publishedDateSlot,f=e.goToCreatorPostSlot,b=e.relatedRecipesSlot,m=e.broughtToYouBySlot;return(0,n.BX)(n.HY,{children:[(0,n.BX)(a.xu,{display:"flex",flexDirection:"row",gap:"global.md-1",maxWidth:"1200px",marginX:"auto",paddingX:"global.lg-2","data-test-id":"recipe-details-layout",backgroundColor:"alias.elevation.base",children:[(0,n.BX)(a.xu,{flex:"0 0 40%",width:"40%",paddingTop:"global.md-1",position:"sticky",top:eD.c,alignSelf:"flex-start","data-test-id":"recipe-details-left-column",children:[(0,n.tZ)(a.xu,{"data-test-id":"recipe-details-hero-section",children:t}),f&&(0,n.tZ)(a.xu,{marginTop:"global.sm-2","data-test-id":"recipe-details-go-to-creator-post-section",children:f})]}),(0,n.BX)(a.xu,{flex:"1",display:"flex",flexDirection:"column",paddingTop:"global.md-1","data-test-id":"recipe-details-right-column",children:[(0,n.BX)(a.xu,{padding:"global.md-1",backgroundColor:"global.white","data-test-id":"recipe-details-info-section",children:[(0,n.tZ)(a.xu,{"data-test-id":"recipe-details-title-section",children:r}),(0,n.tZ)(a.xu,{marginTop:"global.sm-2","data-test-id":"recipe-details-quantity-stepper-section",children:i}),(0,n.tZ)(a.xu,{marginTop:"global.sm-1",paddingTop:"global.sm-1",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"shared-alias.neutral.border.default","data-test-id":"recipe-details-creator-profile-section",children:o}),(0,n.tZ)(a.xu,{marginTop:"global.sm-2","data-test-id":"recipe-details-description-section",children:l}),(0,n.tZ)(a.xu,{marginTop:"global.sm-2","data-test-id":"recipe-details-tag-pills-section",children:c})]}),(0,n.BX)(a.xu,{paddingTop:"global.sm-1",gap:"global.sm-1",paddingX:"global.sm-1","data-test-id":"recipe-details-actions-section",children:[(0,n.tZ)(a.xu,{"data-test-id":"recipe-details-nutritional-legal-info-section",children:u}),(0,n.BX)(a.xu,{marginTop:"global.sm-2","data-test-id":"recipe-details-triggers-section",children:[s,d,p]}),(0,n.tZ)(a.xu,{"data-test-id":"recipe-details-published-date-section",children:g})]})]})]}),(0,n.tZ)(a.xu,{marginTop:"global.xl-2","data-test-id":"recipe-details-related-recipes-section",children:b}),(0,n.tZ)(a.xu,{"data-test-id":"recipe-details-brought-to-you-by-section",children:m})]})};function eR(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var eT=function(e){return"mobile"===(0,D.Sj)()?(0,n.tZ)(eI,eR({},e)):(0,n.tZ)(eA,eR({},e))},eE=function(e){var t=e.isOpen,r=e.onClose,i=e.title,o=e.titleId,l=e.width,c=e.returnFocusRef,u=e.children,s="mobile"===(0,D.Sj)();return(0,n.BX)(a.dy.Container,{placement:s?"bottom":"right",isOpen:t,isModal:!0,isTouchMoveEnabled:!0,returnFocusRef:c,onDismiss:r,onClose:r,width:s?"100%":void 0===l?"400px":l,height:s?"calc(100vh - 80px)":"100vh",contentShouldFillFullHeight:!0,"aria-labelledby":o,paddingX:["global.xs","global.md-1","global.md-1"],children:[(0,n.tZ)(a.xu,{paddingBottom:"global.sm-1",display:"flex",justifyContent:"center",children:(0,n.tZ)(a.xv,{styleAs:"h3",id:o,"data-test-id":o,children:i})}),(0,n.tZ)(a.xu,{flex:"1",overflowY:"auto",paddingTop:"global.sm-1",paddingBottom:"global.lg-1",paddingX:["global.xs","global.md-1","global.md-1"],__dangerouslySetCustomCSS:{overscrollBehavior:"none",scrollbarGutter:"stable"},children:u})]})},eB=r(277425),eX=r(228001);function eM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var eV=function(e){var t,r,o=e.ingredient,l=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(o.imagePath))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return eM(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eM(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=l[0],u=l[1],s=(0,eX.Z)().width,d=!!s&&s<375;return(0,n.BX)(a.xu,{display:"flex",alignItems:"center",gap:"global.sm-1",children:[c?(0,n.tZ)(m.ZP,{src:(0,eB.Z)(c),alt:o.name,width:d?45:60,height:d?45:60,onError:function(){return u("")},style:{borderRadius:"50%",objectFit:"cover",flexShrink:0}}):(0,n.tZ)(a.xu,{width:d?"45px":"60px",height:d?"45px":"60px",borderRadius:"border-radius-circle",backgroundColor:"neutral.200",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,children:(0,n.tZ)(a.xv,{type:"body-sm-bold",children:o.name.charAt(0).toUpperCase()})}),(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",children:[(0,n.BX)(a.xv,{type:"body-sm-bold",children:[null!==(r=o.amount)&&void 0!==r?r:"",o.unit?" ".concat(o.unit):""]}),(0,n.tZ)(a.xv,{type:"body-sm-regular",children:o.name})]})]})},eL=function(e){var t=e.ingredients,r=e.servings,i=(0,c.H)().translateRaw,o=(0,D.Sj)(),l=r>1?i("creator_marketplace.recipe_details.drawer.per_servings",{count:r}):i("creator_marketplace.recipe_details.drawer.per_serving");return(0,n.BX)(a.xu,{"data-testid":"ingredients-grid",children:[l&&(0,n.tZ)(a.xv,{type:"body-sm-regular",mb:"global.md-1",color:"shared-alias.neutral.foreground.dark",children:l}),(0,n.tZ)(a.xu,{"data-testid":"ingredients-grid-layout",display:"grid",gridTemplateColumns:"repeat(".concat("mobile"===o||"tablet"===o?2:3,", 1fr)"),gap:["global.sm-2","global.sm-1"],mb:"global.lg-1",children:t.map(function(e){return(0,n.tZ)(eV,{ingredient:e},e.id)})})]})},eF=function(e){var t=e.isOpen,r=e.onClose,i=e.ingredients,o=e.servings,a=e.returnFocusRef,l=(0,c.H)().translateRaw;return(0,n.tZ)(eE,{isOpen:t,onClose:r,title:l("creator_marketplace.recipe_details.drawer.ingredients.title",{defaultValue:"Ingredients"}),titleId:"ingredients-title",width:"700px",returnFocusRef:a,children:(0,n.tZ)(eL,{ingredients:i,servings:o})})};function eH(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eN(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ez=function(e){return{ingredients:"ingredients"===e,cookingSteps:"cookingSteps"===e}},eK=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ingredients",n=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(function(){return ez(r)}))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return eH(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eH(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],a=n[1];return(0,i.useEffect)(function(){e&&a(ez(r))},[e,r]),{expandedSections:o,toggleSection:function(e){a(function(t){var r,n;return r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){eN(e,t,r[t])})}return e}({},t),n=null!=(n=eN({},e,!t[e]))?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}
1)(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r})}}},eW=function(e){return e.instructionsHTML||e.instructionsMarkdown||e.instructions||""},eU=function(e){return/<\/?[a-z][\s\S]*>/i.test(e)},eY=function(e){return!!e.trim()&&(!eU(e)||e.replace(/<[^>]*>/g,"").replace(/ /gi,"").trim().length>0)},eq=function(e){var t=e.map(eW).filter(eY);if(0===t.length)return"";var r=t.some(eU),n=t.join(r?"":"\n\n");return r?n.replace(/<p[^>]*>(\s| |<br\s*\/?>)*<\/p>/gi,""):n},e$=function(e){var t=eq(e.cookingSteps);if(!t)return(0,n.tZ)(a.xu,{"data-testid":"cooking-steps-list"});var r=eU(t);return(0,n.tZ)(a.xu,{"data-testid":"cooking-steps-list",__dangerouslySetCustomCSS:{p:{margin:0,marginBlockEnd:"0.75rem"},ol:{listStyleType:"decimal",listStylePosition:"outside",margin:0,paddingLeft:"1.5rem"},ul:{listStyleType:"disc",listStylePosition:"outside",margin:0,paddingLeft:"1.5rem"},li:{marginBlockEnd:"0.75rem"}},children:(0,n.tZ)(Y.Z,{hasMarkdown:!r,copy:t})})},eG=function(e){var t=e.expandedSections,r=e.toggleSection,i=e.servings,o=e.ingredients,l=e.cookingSteps,u=(0,c.H)().translateRaw;return(0,n.BX)(n.HY,{children:[(0,n.BX)(a.UQ.Outline,{isOpen:t.ingredients,onClick:function(){return r("ingredients")},buttonPosition:"right",buttonStyle:"plain",children:[(0,n.tZ)(a.UQ.Title,{children:(0,n.tZ)(a.xv,{styleAs:"h3",as:"h2",children:u("creator_marketplace.recipe_details.drawer.ingredients",{defaultValue:"Ingredients"})})}),(0,n.tZ)(a.UQ.Description,{children:(0,n.tZ)(eL,{ingredients:o,servings:i})})]}),(0,n.BX)(a.UQ.Outline,{isOpen:t.cookingSteps,onClick:function(){return r("cookingSteps")},buttonPosition:"right",buttonStyle:"plain",children:[(0,n.tZ)(a.UQ.Title,{children:(0,n.tZ)(a.xv,{styleAs:"h3",as:"h2",children:u("creator_marketplace.recipe_details.drawer.cooking_steps",{defaultValue:"Cooking steps"})})}),(0,n.tZ)(a.UQ.Description,{paddingX:"global.xs",children:(0,n.tZ)(e$,{cookingSteps:l})})]})]})},eQ=function(e){var t=e.isOpen,r=e.onClose,i=e.servings,o=e.ingredients,a=e.cookingSteps,l=e.returnFocusRef,u=e.initialExpandedSection,s=(0,c.H)().translateRaw,d=eK(t,void 0===u?"ingredients":u),p=d.expandedSections,g=d.toggleSection;return(0,n.tZ)(eE,{isOpen:t,onClose:r,title:s("creator_marketplace.recipe_details.drawer.recipe_details.title",{defaultValue:"Recipe details"}),titleId:"full-recipe-drawer-title",width:"700px",returnFocusRef:l,children:(0,n.tZ)(eG,{expandedSections:p,toggleSection:g,servings:i,ingredients:o,cookingSteps:a})})};function eJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var e0=function(e){var t,r=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)("per-serving"))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return eJ(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eJ(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r[0],o=r[1],a=(0,i.useMemo)(function(){return"per-serving"===n?e:e.map(function(e){var t,r;return t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={amount:Math.round(.4*e.amount)},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}
1)(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t})},[e,n]);return{mode:n,setMode:o,nutritionValues:a}},e1=function(e){var t=e.isOpen,r=e.onClose,i=e.nutrition,o=(e.servings,e.returnFocusRef),l=(0,c.H)().translateRaw,u=e0(i),s=u.mode,d=u.setMode,p=u.nutritionValues;return(0,n.BX)(eE,{isOpen:t,onClose:r,title:l("creator_marketplace.recipe_details.drawer.nutrition_values.title",{defaultValue:"Nutritional values"}),titleId:"nutrition-values-title",returnFocusRef:o,children:[(0,n.tZ)(a.xu,{marginBottom:"global.md-1",display:"flex",justifyContent:"center",children:(0,n.BX)(a.dm,{"aria-label":l("creator_marketplace.recipe_details.drawer.nutrition_values.toggle.aria_label",{defaultValue:"Nutrition display mode"}),role:"radiogroup",size:"lg",width:"fit-content","data-test-id":"nutrition-mode-toggle",children:[(0,n.tZ)(a.dm.Button,{role:"radio",sizing:"hug",active:"per-serving"===s,"aria-checked":"per-serving"===s,onClick:function(){return d("per-serving")},"data-test-id":"toggle-per-serving",children:l("creator_marketplace.recipe_details.drawer.nutrition_values.toggle.per_serving",{defaultValue:"per serving"})}),(0,n.tZ)(a.dm.Button,{role:"radio",sizing:"hug",active:"per-100g"===s,"aria-checked":"per-100g"===s,onClick:function(){return d("per-100g")},"data-test-id":"toggle-per-100g",children:l("creator_marketplace.recipe_details.drawer.nutrition_values.toggle.per_100g",{defaultValue:"per 100 g"})})]})}),(0,n.tZ)(a.xu,{display:"flex",flexDirection:"column",gap:"global.sm-1",marginBottom:"global.md-1",children:null==p?void 0:p.map(function(e){var t;return(0,n.BX)(a.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingY:"global.xs","data-test-id":"nutrition-item-".concat(e.name.toLowerCase().replace(/[^a-z0-9]+/g,"-")),children:[(0,n.tZ)(a.xv,{type:"body-md-regular",children:(t=e.name)?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""}),(0,n.BX)(a.xv,{type:"body-md-bold","data-test-id":"nutrition-value-".concat(e.name.toLowerCase().replace(/[^a-z0-9]+/g,"-")),children:[e.amount," ",e.unit]})]},e.name)})}),(0,n.tZ)(a.xu,{paddingY:"global.md-1",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"global.gray.200",children:(0,n.tZ)(a.xv,{type:"body-sm-regular",children:l("creator_marketplace.recipe_details.drawer.nutrition_values.disclaimer")})})]})},e2=function(e){var t,r,i,o,a=e.recipe,l=e.isIngredientsDrawerOpen,c=e.onCloseIngredientsDrawer,u=e.ingredientsTriggerRef,s=e.isFullRecipeDrawerOpen,d=e.onCloseFullRecipeDrawer,p=e.fullRecipeTriggerRef,g=e.fullRecipeInitialSection,f=e.isNutritionValuesDrawerOpen,b=e.onCloseNutritionValuesDrawer,m=e.nutritionTriggerRef;return(0,n.BX)(n.HY,{children:[(0,n.tZ)(eF,{isOpen:l,onClose:c,ingredients:null!==(t=a.ingredients)&&void 0!==t?t:[],servings:a.servings,returnFocusRef:u}),(0,n.tZ)(eQ,{isOpen:s,onClose:d,servings:a.servings,ingredients:null!==(r=a.ingredients)&&void 0!==r?r:[],cookingSteps:null!==(i=a.cookingSteps)&&void 0!==i?i:[],returnFocusRef:p,initialExpandedSection:g}),(0,n.tZ)(e1,{isOpen:f,onClose:b,nutrition:null!==(o=a.nutrition)&&void 0!==o?o:[],servings:a.servings,returnFocusRef:m})]})},e4=r(795016),e3=i.forwardRef(function(e,t){var r=e.label,i=e.onClick,o=e.testId;return(0,n.BX)(a.xu,{as:"button",ref:t,paddingX:"global.none",paddingY:"global.sm-2",onClick:i,display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",backgroundColor:"transparent",borderWidth:"0",cursor:"pointer","data-test-id":o,children:[(0,n.tZ)(a.xv,{type:"body-md-bold",children:r}),(0,n.tZ)(a.JO,{icon:(0,n.tZ)(e4.Z,{}),color:"neutral.800"})]})});e3.displayName="AccordionTrigger";var e6=Object.assign(e3,{Skeleton:function(){return(0,n.BX)(a.xu,{paddingX:"global.none",paddingY:"global.sm-2",display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%","data-test-id":"accordion-trigger-skeleton",children:[(0,n.tZ)($.K,{width:"120px",height:"20px",backgroundColor:"neutral.200",borderRadius:"border-radius-sm"}),(0,n.tZ)($.K,{width:"16px",height:"16px",backgroundColor:"neutral.200",borderRadius:"border-radius-sm"})]})}}),e8=r(340332),e5=r(280880),e7=r(797634),e9=r(37017),te=r(160845),tt=r(921107);function tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tn=function(e){var t,r,o,l,u,s,d,p,g,f,b,m,y,h,v,w,O,x,k=e.recipeId,S=e.recipeName,_=e.pricePerServing,Z=e.baseServings,j=e.isSoldOut,C=e.addToCartTestId,P=e.decrementTestId,I=e.incrementTestId,D=(0,c.H)().translateRaw,A=(0,e8.nB)(),R=V().trackAddToCartClick,T=(o=(t={recipeId:k,pricePerServing:_,baseServings:Z}).recipeId,l=t.pricePerServing,u=t.baseServings,d=(function(e){if(Array.isArray(e))return e}(s=(0,e9.KO)(te.fm))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),1!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(s,1)||function(e,t){if(e){if("string"==typeof e)return tr(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tr(e,1)}}(s,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],p=(0,e9.b9)(te.R7),g=(0,e9.b9)(te.EK),m=(b=null!==(r=null==(f=(0,i.useMemo)(function(){return d.items.find(function(e){return e.recipeId===o})},[d.items,o]))?void 0:f.servings)&&void 0!==r?r:0)>0,y=(0,i.useMemo)(function(){return"-"===l?"-":(0,tt.c)(l,b,u)},[b,l,u]),h=(0,i.useCallback)(function(){p(o)},[p,o]),v=(0,i.useCallback)(function(){g({recipeId:o,servings:b+2})},[g,o,b]),w=(0,i.useCallback)(function(){g({recipeId:o,servings:b-2})},[g,o,b]),{servings:b,totalPrice:y,isInCart:m,addToCart:h,increment:v,decrement:w}),E=T.servings,B=T.totalPrice,X=T.isInCart,M=T.addToCart,L=T.increment,F=T.decrement,H=j?D("creator_marketplace.recipe_details.quantity_stepper.sold_out",{defaultValue:"Sold out"}):D("creator_marketplace.recipe_details.quantity_stepper.add_to_cart",{defaultValue:"Add to cart"}),N="-"===_?_:A(_),z="-"===B,K=z||!!j;if(!X)return(0,n.BX)(a.xu,{display:"flex",gap:"global.sm-2",alignItems:"center",justifyContent:"space-between",children:[(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",children:[(0,n.tZ)(a.xv,{type:"body-sm-bold","data-test-id":"recipe-price",children:N}),(0,n.tZ)(a.xv,{type:"body-sm-regular","data-test-id":"recipe-servings",children:D("creator_marketplace.recipe_details.quantity_stepper.for_servings",{count:Z})})]}),(0,n.tZ)(a.xu,(O=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({as:"button",type:"button","data-test-id":void 0===C?"recipe-add-to-cart-button":C,"data-button":K?void 0:"enabled",onClick:function(){R({recipeId:k,servings:2}),M()},"aria-label":H,height:"48px",minWidth:"200px",color:K?"neutral.600":"global.white",borderRadius:"border-radius-md",borderStyle:"none",cursor:K?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",paddingX:"global.lg-1",flexGrow:[0,1],disabled:K,"aria-disabled":K,backgroundColor:K?"neutral.300":"primary.600"},!K&&{pseudo:{"@media (hover: hover)":{":hover":{backgroundColor:"alias.buttons.base.primary.bcg.hover"}},":active":{backgroundColor:"alias.buttons.base.primary.bcg.press"}}}),x=x={children:(0,n.tZ)(a.xv,{type:"body-md-bold",color:K?"neutral.600":"global.white",children:H})},Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(x)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(x)).forEach(function(e){Object.defineProperty(O,e,Object.getOwnPropertyDescriptor(x,e))}),O))]});var W=D("creator_marketplace.recipe_details.quantity_stepper.servings_in_cart",{count:E}),U=E>=e5.yL||K,Y=z?B:A(B),q="".concat(W," ").concat(Y);return(0,n.BX)(a.xu,{children:[(0,n.BX)(e7.P,{recipeName:S,onDecrement:F,onIncrement:function(){R({recipeId:k,servings:E+2}),L()},isIncrementDisabled:U,decrementTestId:void 0===P?"recipe-stepper-decrement":P,incrementTestId:void 0===I?"recipe-stepper-increment":I,children:[(0,n.tZ)(a.xv,{type:"body-sm-bold",color:"global.white",textAlign:"center",whiteSpace:"nowrap",children:W}),(0,n.tZ)(a.xv,{type:"body-sm-regular",color:"global.white",textAlign:"center",whiteSpace:"nowrap",children:Y})]}),(0,n.tZ)(a.xu,{"aria-live":"polite","aria-atomic":"true",role:"status",position:"absolute",width:"1px",height:"1px",padding:"zero",margin:"global.none",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",children:q})]})},ti=r(99617),to=r(239163),ta=r(884169),tl=r(621277),tc=r(25351),tu=function(e,t){var r,n=(0,ta.N)(e),o=n.courses,a=n.isLoading,l=n.isError,c=n.error,u=n.refetch,d=(0,s.y)({slug:e,enabled:!!e}),p="success"===d.status?d.creator:null,g=(0,tl.i)(),f=(0,i.useMemo)(function(){return(0,tc.q)(o.filter(function(e){return e.recipe.id!==t}),function(e){return e.isSoldOut}).slice(0,10)},[o,t]),b=(0,i.useMemo)(function(){return f.map(function(e){return e.recipe.id})},[f]),m=(0,w.Z)().toLowerCase(),y=(0,v.Z)(),O=(0,S.H)({product_id:b,week:(0,h.Z)(),country:m,locale:y},{enabled:b.length>0}),x="success"===O.status?O.prices:void 0,k=(0,i.useMemo)(function(){return f.length>0&&p?g(f,p,x):[]},[f,g,p,x]),_=a||"loading"===d.status;return{data:_?void 0:k,isLoading:_,isError:l,error:(null!=(r=Error)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](c):c instanceof r)?c:null,refetch:u}},ts=r(177473),td=function(e){var t=e.creatorName,r=e.creatorSlug,o=e.creatorId,u=e.currentRecipeId,s=(0,l.t)(),p=(0,c.H)().translateRaw,g=V(),f=g.trackMoreFromCreatorDisplay,b=g.trackMoreFromCreatorCardClick,m=g.trackMoreFromCreatorViewAll,y=g.trackMoreFromCreatorAdd,h=g.trackMoreFromCreatorRemove,v=(0,to.v)().getItemServings,w=tu(r,u),O=w.data,x=w.isLoading,k=(0,d.Ly)(s.query),S=(0,d.by)(r,s.query
1),_=!x&&!!O&&O.length>0,Z=(0,i.useRef)(!1);(0,i.useEffect)(function(){_&&o&&!Z.current&&(Z.current=!0,f({creatorId:o}))},[_,o,f]);var j=(0,i.useCallback)(function(e,t){var r,n;b({recipeId:e.id,creatorId:null!==(n=null===(r=e.creator)||void 0===r?void 0:r.id)&&void 0!==n?n:o,cardPosition:t})},[b,o]),C=(0,i.useRef)({}),P=(0,i.useCallback)(function(e,t){var r,n=null!==(r=C.current[e])&&void 0!==r?r:v(e);C.current[e]=t,t>n?y({recipeId:e,creatorId:o}):t<n&&h({recipeId:e,creatorId:o})},[y,h,o,v]),I=(0,i.useCallback)(function(){m({creatorId:o})},[m,o]);return x||O&&0!==O.length?(0,n.tZ)(a.xu,{backgroundColor:"alias.page-background.default",children:(0,n.tZ)(a.xu,{maxWidth:"1200px",marginX:"auto",width:"100%",paddingX:["global.sm-2","global.md-1","global.lg-2"],children:(0,n.tZ)(ti.j,{title:p("creator_marketplace.recipe_details.more_from_creator.title",{creatorName:t}),recipes:null!=O?O:[],isLoading:x,carouselId:"more-from-".concat(r,"-carousel"),showViewAll:!0,viewAllHref:S,viewAllText:p("creator_marketplace.homepage.recipes.view_all",{defaultValue:"View all"}),viewAllAriaLabel:p("creator_marketplace.recipe_details.more_from_creator.view_all_aria_label",{creatorName:t,defaultValue:"View all recipes from {{creatorName}}"}),testId:"more-from-creator-section",fromParam:"profile",entryParam:k,onAnalyticsCardClick:j,onAnalyticsAddClick:P,onViewAllClick:I})})}):null};td.Skeleton=function(){var e=(0,c.H)().translateRaw;return(0,n.tZ)(a.xu,{backgroundColor:"alias.page-background.default",children:(0,n.tZ)(a.xu,{maxWidth:"1200px",marginX:"auto",width:"100%",paddingX:["global.sm-2","global.md-1","global.lg-2"],children:(0,n.tZ)(a.xu,{as:"section",marginY:["global.lg-1","global.lg-1","global.lg-3"],"data-test-id":"more-from-creator-section-skeleton",children:(0,n.tZ)(ts.g,{ariaLabel:e("creator_marketplace.aria.loading_recipes")})})})})};var tp=function(){return(0,n.BX)(a.xu,{marginTop:"global.sm-2",display:"flex",gap:"global.sm-2",alignItems:"center",justifyContent:"space-between",children:[(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",gap:"global.xxs",children:[(0,n.tZ)($.K,{width:"80px",height:"24px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"}),(0,n.tZ)($.K,{width:"90px",height:"16px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm"})]}),(0,n.tZ)($.K,{minWidth:"200px",height:"48px",backgroundColor:"neutral.300",borderRadius:"border-radius-md"})]})};function tg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function tb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tg(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tm(e){var t,r,o,u,s,g,f,m,h,v,w=e.creatorSlug,O=e.recipeSlug,x=e.recipeId,k=(0,l.t)(),S=(0,c.H)().translateRaw,_=j({creatorSlug:w,recipeSlug:O,recipeId:null!=x?x:""}),Z=_.recipe,C=_.isLoading,P=_.isError,D=I(k,!!Z),A=D.isOpen,R=D.initialSection,T=D.open,E=D.close,B=tb((0,i.useState)(!1),2),X=B[0],M=B[1],L=tb((0,i.useState)(!1),2),F=L[0],H=L[1],N=(0,i.useRef)(null),z=(0,i.useRef)(null),K=(0,i.useRef)(null),W=P||!Z,U=V(),Y=U.trackPageView,q=U.trackRecipeAccordionCl
1ick,$=U.trackNutritionViewClick;(0,i.useEffect)(function(){W&&!C&&(0,p.Z)(k,(0,d.Yt)())},[W,C,k]);var Q=null==Z?void 0:Z.id,er=null==Z?void 0:null===(o=Z.creator)||void 0===o?void 0:o.id,en=(0,i.useRef)(null);(0,i.useEffect)(function(){if(Q&&en.current!==Q){en.current=Q;var e=k.query.from;Y({recipeId:Q,creatorId:null!=er?er:"",entryPoint:(Array.isArray(e)?e[0]:e)||"direct"})}},[Q,er,k.query.from,Y]);var ei=function(e){var t,r;return{recipeId:e.id,recipeName:e.name,pricePerServing:null!==(r=null===(t=e.price)||void 0===t?void 0:t.paid_price)&&void 0!==r?r:"-",baseServings:e.servings,isSoldOut:e.isSoldOut}};return(0,n.BX)(a.xu,{as:"main","data-test-id":"creator-marketplace-recipe-page",backgroundColor:"alias.elevation.base",children:[(0,n.tZ)(b,{creatorSlug:w}),C&&(0,n.tZ)(eT,{heroSlot:(0,n.tZ)(ep.Skeleton,{}),titleSlot:(0,n.tZ)(G.Skeleton,{}),quantityStepperSlot:(0,n.tZ)(tp,{}),creatorProfileCardSlot:(0,n.tZ)(J.Skeleton,{}),recipeDescriptionSlot:(0,n.tZ)(ee.Skeleton,{}),tagPillsSlot:(0,n.tZ)(et.Skeleton,{}),nutritionalAndLegalInfoSlot:(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",gap:"global.sm-1",children:[(0,n.tZ)(eo.Skeleton,{}),(0,n.tZ)(ea.Skeleton,{})]}),publishedDateSlot:(0,n.tZ)(el.Skeleton,{}),goToCreatorPostSlot:(0,n.tZ)(e_.Skeleton,{}),ingredientsTriggerSlot:(0,n.tZ)(e6.Skeleton,{}),nutritionTriggerSlot:(0,n.tZ)(eo.Skeleton,{}),fullRecipeTriggerSlot:(0,n.tZ)(eo.Skeleton,{}),relatedRecipesSlot:(0,n.tZ)(td.Skeleton,{}),broughtToYouBySlot:(0,n.tZ)(y,{})}),!C&&!W&&Z&&(0,n.BX)(n.HY,{children:[(0,n.tZ)(eT,{heroSlot:(0,n.tZ)(ep,{imagePath:null!==(m=Z.heroImagePath)&&void 0!==m?m:"",recipeName:Z.name}),titleSlot:(0,n.tZ)(G,{creatorSlug:w,recipeName:Z.name,subtitle:Z.subtitle,recipeSlug:O,recipeId:Z.id,isBestSeller:Z.isBestSeller,socialLikes:null===(u=Z.social)||void 0===u?void 0:u.likes,socialPlatform:null===(s=Z.social)||void 0===s?void 0:s.platform}),quantityStepperSlot:(0,n.tZ)(tn,tf({},ei(Z))),stickyCtaSlot:(0,n.tZ)(tn,(t=tf({},ei(Z)),r=r={addToCartTestId:"recipe-sticky-add-to-cart-button",decrementTestId:"recipe-sticky-stepper-decrement",incrementTestId:"recipe-sticky-stepper-increment"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t)),creatorProfileCardSlot:(0,n.tZ)(J,{creatorSlug:w}),recipeDescriptionSlot:(0,n.tZ)(ee,{description:Z.description}),tagPillsSlot:(0,n.tZ)(et,{tags:Z.tags}),nutritionalAndLegalInfoSlot:(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",gap:"global.sm-1",children:[(0,n.tZ)(eo,{calories:Z.calories,nutrition:Z.nutrition,prepTime:Z.prepTime,difficulty:Z.difficulty,allergens:Z.allergens}),(0,n.tZ)(ea,{})]}),ingredientsTriggerSlot:(0,n.tZ)(e6,{ref:K,label:S("creator_marketplace.recipe_details.ingredients.trigger_label",{defaultValue:"Ingredients"}),onClick:function(){q({section:"ingredients"}),H(!0)},testId:"ingredients-trigger"}),fullRecipeTriggerSlot:(0,n.tZ)(e6,{ref:N,label:S("creator_marketplace.recipe_details.full_recipe.trigger_label",{defaultValue:"Full recipe"}),onClick:function(){q({section:"full_recipe"}),T()},testId:"full-recipe-trigger"}),nutritionTriggerSlot:(0,n.tZ)(e6,{ref:z,label:S("creator_marketplace.recipe_details.nutrition_values.trigger_label",{defaultValue:"Nutritional values"}),onClick:function(){q({section:"nutrition"}),$({recipeId:Z.id}),M(!0)},testId:"nutrition-values-trigger"}),publishedDateSlot:Z.publishedAt?(0,n.tZ)(el,{publishedAt:Z.publishedAt}):null,goToCreatorPostSlot:(0,n.tZ)(e_,{creatorSlug:w,recipeId:Z.id}),relatedRecipesSlot:(0,n.tZ)(td,{creatorSlug:w,creatorName:null!==(h=null===(g=Z.creator)||void 0===g?void 0:g.name)&&void 0!==h?h:"",creatorId:null!==(v=null===(f=Z.creator)||void 0===f?void 0:f.id)&&void 0!==v?v:"",currentRecipeId:Z.id}),broughtToYouBySlot:(0,n.tZ)(y,{})}),(0,n.tZ)(e2,{recipe:Z,isIngredientsDrawerOpen:F,onCloseIngredientsDrawer:function(){return H(!1)},ingredientsTriggerRef:K,isFullRecipeDrawerOpen:A,onCloseFullRecipeDrawer:E,fullRecipeTriggerRef:N,fullRecipeInitialSection:R,isNutritionValuesDrawerOpen:X,onCloseNutritionValuesDrawer:function(){return M(!1)},nutritionTriggerRef:z})]})]})}var ty=r(198557),th=r(224007),tv=r(171389),tw=function(e){var t=e.ssrPayload,r=t.creatorSlug,i=t.recipeSlug,o=t.recipeId;return(0,n.BX)(ty.l,{children:[(0,n.tZ)(th.s,{}),(0,n.tZ)(tm,{creatorSlug:r,recipeSlug:i,recipeId:o}),(0,n.tZ)(tv.t,{})]})};tw.customLayout=o.C;var tO=!0,tx=tw},645904:function(e,t,r){"use strict";var n=r(687800);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r(827378),t.Z=function(e){var t=e.title,r=e.titleId,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["title","titleId"]);return(0,n.BX)("svg",o(i(o(i({width:"1rem",height:"1rem",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":r}),a),{children:[t?(0,n.tZ)("title",{id:r,children:t}):null,(0,n.BX)("g",{clipPath:"url(#instagram_16_svg__a)",children:[(0,n.tZ)("path",{d:"M4.687.055c-.851.04-1.433.177-1.94.376-.527.205-.973.48-1.416.925a3.92 3.92 0 0 0-.92 1.419c-.197.509-.33 1.09-.368 1.942C.005 5.571-.003 5.843 0 8.015c.004 2.172.014 2.445.054 3.299.041.85.177 1.432.376 1.94.205.526.48.972.925 1.415.446.444.892.716 1.42.92.508.197 1.09.331 1.941.368.854.038 1.126.046 3.298.042 2.173-.004 2.445-.014 3.298-.054.852-.04 1.433-.177 1.941-.376.526-.206.972-.48 1.415-.925.444-.445.716-.892.92-1.419.197-.509.331-1.09.368-1.942.037-.853.046-1.126.042-3.298-.004-2.173-.014-2.445-.054-3.298-.04-.852-.177-1.433-.376-1.941a3.924 3.924 0 0 0-.925-1.415 3.915 3.915 0 0 0-1.419-.92c-.509-.197-1.09-.331-1.942-.368-.853-.038-1.126-.046-3.298-.042C5.812.005 5.54.014 4.687.055Zm.093 14.462c-.78-.034-1.203-.163-1.486-.272a2.495 2.495 0 0 1-.92-.596 2.487 2.487 0 0 1-.6-.919c-.11-.282-.242-.705-.279-1.485-.04-.843-.049-1.096-.053-3.233-.004-2.135.004-2.388.04-3.232.034-.78.165-1.204.273-1.486.145-.374.317-.64.597-.92.28-.282.545-.455.919-.6.282-.111.705-.242 1.484-.279.844-.04 1.097-.048 3.232-.053 2.136-.004 2.39.004 3.233.04.78.035 1.204.164 1.485.273.374.145.641.317.922.597.28.28.454.545.6.919.11.281.241.705.278 1.484.04.844.049 1.097.053 3.232.004 2.136-.004 2.39-.04 3.233-.035.78-.164 1.204-.273 1.486-.145.374-.317.64-.597.921-.28.28-.545.454-.919.6-.281.11-.705.241-1.484.278-.844.04-1.096.049-3.233.053-2.135.004-2.388-.004-3.232-.04Zm6.522-10.793a.96.96 0 1 0 1.92-.005.96.96 0 0 0-1.92.005Zm-7.41 4.284a4.107 4.107 0 1 0 8.215-.016 4.107 4.107 0 0 0-8.215.016Zm1.441-.003a2.667 2.667 0 1 1 5.334-.01 2.667 2.667 0 0 1-5.334.01Z",fill:"url(#instagram_16_svg__b)"}),(0,n.tZ)("path",{d:"M4.687.055c-.851.04-1.433.177-1.94.376-.527.205-.973.48-1.416.925a3.92 3.92 0 0 0-.92 1.419c-.197.509-.33 1.09-.368 1.942C.005 5.571-.003 5.843 0 8.015c.004 2.172.014 2.445.054 3.299.041.85.177 1.432.376 1.94.205.526.48.972.925 1.415.446.444.892.716 1.42.92.508.197 1.09.331 1.941.368.854.038 1.126.046 3.298.042 2.173-.004 2.445-.014 3.298-.054.852-.04 1.433-.177 1.941-.376.526-.206.972-.48 1.415-.925.444-.445.716-.892.92-1.419.197-.509.331-1.09.368-1.942.037-.853.046-1.126.042-3.298-.004-2.173-.014-2.445-.054-3.298-.04-.852-.177-1.433-.376-1.941a3.924 3.924 0 0 0-.925-1.415 3.915 3.915 0 0 0-1.419-.92c-.509-.197-1.09-.331-1.942-.368-.853-.038-1.126-.046-3.298-.042C5.812.005 5.54.014 4.687.055Zm.093 14.462c-.78-.034-1.203-.163-1.486-.272a2.495 2.495 0 0 1-.92-.596 2.487 2.487 0 0 1-.6-.919c-.11-.282-.242-.705-.279-1.485-.04-.843-.049-1.096-.053-3.233-.004-2.135.004-2.388.04-3.232.034-.78.165-1.204.273-1.486.145-.374.317-.64.597-.92.28-.282.545-.455.919-.6.282-.111.705-.242 1.484-.279.844-.04 1.097-.048 3.232-.053 2.136-.004 2.39.004 3.233.04.78.035 1.204.164 1.485.273.374.145.641.317.922.597.28.28.454.545.6.919.11.281.241.705.278 1.484.04.844.049 1.097.053 3.232.004 2.136-.004 2.39-.04 3.233-.035.78-.164 1.204-.273 1.486-.145.374-.317.64-.597.921-.28.28-.545.454-.919.6-.281.11-.705.241-1.484.278-.844.04-1.096.049-3.233.053-2.135.004-2.388-.004-3.232-.04Zm6.522-10.793a.96.96 0 1 0 1.92-.005.96.96 0 0 0-1.92.005Zm-7.41 4.284a4.107 4.107 0 1 0 8.215-.016 4.107 4.107 0 0 0-8.215.016Zm1.441-.003a2.667 2.667 0 1 1 5.334-.01 2.667 2.667 0 0 1-5.334.01Z",fill:"url(#instagram_16_svg__c)"})]}),(0,n.BX)("defs",{children:[(0,n.BX)("radialGradient",{id:"instagram_16_svg__b",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(4.267 17.227) scale(23.7778)",children:[(0,n.tZ)("stop",{stopColor:"#FD5"}),(0,n.tZ)("stop",{offset:.1,stopColor:"#FD5"}),(0,n.tZ)("stop",{offset:.5,stopColor:"#FF543E"}),(0,n.tZ)("stop",{offset:1,stopColor:"#C837AB"})]}),(0,n.BX)("radialGradient",{id:"instagram_16_svg__c",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(6.827 .027) scale(15.04)",children:[(0,n.tZ)("stop",{stopColor:"#3771C8"}),(0,n.tZ)("stop",{offset:.128,stopColor:"#3771C8",stopOpacity:0})]}),(0,n.tZ)("clipPath",{id:"instagram_16_svg__a",children:(0,n.tZ)("path",{fill:"#fff",d:"M0 0h16v16H0z"})})]})]}))}},832706:function(e,t,r){"use strict";var n=r(687800);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r(827378),t.Z=function(e){var t=e.title,r=e.titleId,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["title","titleId"]);return(0,n.BX)("svg",o(i(o(i({width:"1rem",height:"1rem",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":r}),a),{children:[t?(0,n.tZ)("title",{id:r,children:t}):null,(0,n.tZ)("path",{d:"M6.819 6.57v-.39a3.287 3.287 0 0 0-.52-.04C4.233 6.14 2.5 7.77 2.5 9.792c0 1.327.658 2.46 1.657 3.132a3.742 3.742 0 0 1-1.128-2.703c0-2.017 1.726-3.646 3.79-3.65ZM8.01 2v7.86c0 1.03-.754 1.693-1.67 1.693-.305 0-.594-.07-.845-.199.319.32.822.63 1.373.63.917 0 1.67-.663 1.67-1.694V2.43h1.453A3.868 3.868 0 0 1 9.895 2H8.011Zm3.34 2.319a3.27 3.27 0 0 0 1.62.883V4.85a3.441 3.441 0 0 1-1.62-.531Z",fill:"#2DCCD3"}),(0,n.tZ)("path",{d:"M11.35 4.318c-.446-.451-.787-1.073-.926-1.889h-.432c.247.883.754 1.498 1.359 1.89Zm1.621.883V6.69c-.84 0-1.634-.157-2.334-.62.815.8 1.804 1.05 2.863 1.05V5.28a3.353 3.353 0 0 1-.53-.079Zm-7.475 6.153a1.666 1.666 0 0 1-.359-1.064c0-1.19.948-1.819 2.21-1.688V6.609c-.363-.03-.726-.04-1.02-.04H6.32v1.603c-1.263-.13-2.21.498-2.21 1.689 0 .696.362 1.224 1.387 1.493Zm4.613-1.623c0 2.51-1.956 3.84-3.8 3.84a3.85 3.85 0 0 1-2.152-.648A3.826 3.826 0 0 0 6.838 14c1.844 0 3.8-1.33 3.8-3.84V6.07a3.598 3.598 0 0 1-.53-.43v4.09Z",fill:"#F1204A"}),(0,n.tZ)("path",{d:"M6.31 13.571c1.843 0 3.799-1.33 3.799-3.84V5.64c.17.166.345.308.529.43.7.463 1.494.62 2.334.62V5.202a3.275 3.275 0 0 1-1.62-.883c-.605-.392-1.113-1.007-1.359-1.89H8.54v7.861c0 1.031-.753 1.693-1.67 1.693-.552 0-1.054-.31-1.373-.629-.525-.269-.888-.797-.888-1.493 0-1.19.947-1.819 2.21-1.689V6.61c-2.063.005-3.79 1.593-3.79 3.61 0 1.076.432 2.025 1.128 2.703a3.85 3.85 0 0 0 2.153.649Z",fill:"#000"})]}))}},813445:function(e,t,r){"use strict";var n=r(687800);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r(827378),t.Z=function(e){var t=e.title,r=e.titleId,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["title","titleId"]);
1return(0,n.BX)("svg",o(i(o(i({width:"1rem",height:"1rem",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":r}),a),{children:[t?(0,n.tZ)("title",{id:r,children:t}):null,(0,n.tZ)("path",{d:"M14.703 4.564a1.759 1.759 0 0 0-1.237-1.262C12.382 3 7.995 3 7.995 3s-4.367 0-5.45.302a1.82 1.82 0 0 0-1.259 1.262C1 5.67 1 7.994 1 7.994s0 2.326.286 3.442a1.84 1.84 0 0 0 1.258 1.262C3.628 13 7.994 13 7.994 13s4.388 0 5.472-.302a1.776 1.776 0 0 0 1.237-1.262C15 10.32 15 7.995 15 7.995s0-2.325-.297-3.43Zm-8.099 5.58V5.856l3.63 2.138-3.63 2.148Z",fill:"#F03"})]}))}},994177:function(e,t,r){"use strict";r.r(t);var n=r(687800);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r(827378),t.default=function(e){var t=e.title,r=e.titleId,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["title","titleId"]);return(0,n.BX)("svg",o(i(o(i({width:"1.5rem",height:"1.5rem",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":r}),a),{children:[t?(0,n.tZ)("title",{id:r,children:t}):null,(0,n.tZ)("path",{d:"m21 12-8.836 9-1.31-1.333L17.4 13H3v-2h14.4l-6.545-6.667L12.164 3 21 12Z",fill:"currentColor"})]}))}},454132:function(e,t,r){"use strict";r.r(t);var n=r(687800);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r(827378),t.default=function(e){var t=e.title,r=e.titleId,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["title","titleId"]);return(0,n.BX)("svg",o(i(o(i({width:"1.5rem",height:"1.5rem",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":r}),a),{children:[t?(0,n.tZ)("title",{id:r,children:t}):null,(0,n.tZ)("path",{d:"M11.5 1.982c2.937 0 3.285.011 4.445.064a6.072 6.072 0 0 1 2.042.379 3.4 3.4 0 0 1 1.265.823 3.4 3.4 0 0 1 .823 1.265 6.07 6.07 0 0 1 .379 2.042c.053 1.16.064 1.508.064 4.445 0 2.937-.011 3.285-.064 4.445a6.07 6.07 0 0 1-.379 2.042 3.644 3.644 0 0 1-2.088 2.088 6.07 6.07 0 0 1-2.042.379c-1.16.053-1.508.064-4.445.064-2.937 0-3.285-.011-4.445-.064a6.07 6.07 0 0 1-2.042-.379 3.4 3.4 0 0 1-1.265-.823 3.4 3.4 0 0 1-.823-1.265 6.072 6.072 0 0 1-.379-2.042c-.053-1.16-.064-1.508-.064-4.445 0-2.937.011-3.285.064-4.445a6.072 6.072 0 0 1 .379-2.042 3.4 3.4 0 0 1 .823-1.265 3.4 3.4 0 0 1 1.265-.823 6.072 6.072 0 0 1 2.042-.379c1.16-.053 1.508-.064 4.445-.064ZM11.5 0C8.513 0 8.138.013 6.965.066a8.108 8.108 0 0 0-2.67.511A5.625 5.625 0 0 0 1.077 3.8a8.108 8.108 0 0 0-.511 2.67C.513 7.638.5 8.013.5 11s.013 3.362.066 4.535c.019.912.192 1.815.511 2.67A5.625 5.625 0 0 0 4.3 21.423c.855.32 1.758.492 2.67.511 1.168.053 1.543.066 4.53.066s3.362-.013 4.535-.066a8.109 8.109 0 0 0 2.67-.511 5.626 5.626 0 0 0 3.218-3.223c.32-.855.492-1.758.511-2.67.053-1.168.066-1.543.066-4.53s-.013-3.362-.066-4.535a8.109 8.109 0 0 0-.511-2.67A5.626 5.626 0 0 0 18.7.577a8.108 8.108 0 0 0-2.67-.511C14.862.013 14.487 0 11.5 0Z",fill:"currentColor"}),(0,n.tZ)("path",{d:"M11.5 5.351a5.649 5.649 0 1 0 0 11.298 5.649 5.649 0 0 0 0-11.298Zm0 9.316a3.667 3.667 0 1 1 0-7.335 3.667 3.667 0 0 1 0 7.335ZM17.372 6.448a1.32 1.32 0 1 0 0-2.64 1.32 1.32 0 0 0 0 2.64Z",fill:"currentColor"})]}))}}},function(e){e.O(0,[47057,38579,94924,10198,17925,49461,78255,24007,90424,92888,49774,40179],function(){return e(e.s=137833)}),_N_E=e.O()}]);
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.