1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6779],{16730:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"recipeTags"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recipeTags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ndbId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"public"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recipesCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recipeTagId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recipes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"page"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalPages"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userRecipes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teaserImage"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:275}};t.loc.source={body:"query recipeTags($page: Int, $limit: Int) {\n recipeTags {\n name\n ndbId\n public\n recipesCount\n recipeTagId\n slug\n updatedAt\n recipes(page: $page, limit: $limit) {\n page\n totalPages\n userRecipes {\n teaserImage\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,t){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==t)return a}}t.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);else if("VariableDefinition"===t.kind){var a=t.type;"NamedType"===a.kind&&i.add(a.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,i)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,i)}),t.definitions&&t.definitions.forEach(function(t){e(t,i)})}(e,t),i[e.name.value]=t}}),e.exports=t,e.exports.recipeTags=function(e,t){var r={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(r.loc=e.loc);var n=i[t]||new Set,o=new Set,s=new Set;for(n.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach(function(e){s.add(e)}))})}return o.forEach(function(t){var i=a(e,t);i&&r.definitions.push(i)}),r}(t,"recipeTags")},17450:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getRecipeBoxTeaser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"iMadeIt"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getRecipeBox"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recipes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"IntValue",value:"1"}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"1"}},{kind:"Argument",name:{kind:"Name",value:"iMadeIt"},value:{kind:"Variable",name:{kind:"Name",value:"iMadeIt"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userRecipes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teaserImage"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:192}};t.loc.source={body:"query getRecipeBoxTeaser($iMadeIt: Boolean) {\n getRecipeBox {\n recipes(page: 1, limit: 1, iMadeIt: $iMadeIt) {\n totalCount\n userRecipes {\n teaserImage\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,t){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==t)return a}}t.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);
1else if("VariableDefinition"===t.kind){var a=t.type;"NamedType"===a.kind&&i.add(a.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,i)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,i)}),t.definitions&&t.definitions.forEach(function(t){e(t,i)})}(e,t),i[e.name.value]=t}}),e.exports=t,e.exports.getRecipeBoxTeaser=function(e,t){var r={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(r.loc=e.loc);var n=i[t]||new Set,o=new Set,s=new Set;for(n.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach(function(e){s.add(e)}))})}return o.forEach(function(t){var i=a(e,t);i&&r.definitions.push(i)}),r}(t,"getRecipeBoxTeaser")},22456:(e,t,i)=>{"use strict";i.d(t,{A:()=>m});var a=i(66284),r=i(47091),n=i.n(r),o=i(58103),s=i.n(o);i(14232);let l=[];l.__hash="2179442700";var c=i(24020);let d=[".Toggle__toggle.jsx-3218971299{border-radius:calc(var(--toggleBaseSize,24px) / 2);height:var(--toggleBaseSize,24px);width:calc(var(--toggleBaseSize,24px) * 2);cursor:pointer;}",".Toggle__toggle.jsx-3218971299:hover{opacity:1;}",`.Toggle__toggle--off.jsx-3218971299{background-color:var(--toggleOffBgColor,${c.e[4]});}`,`.Toggle__toggle--on.jsx-3218971299{background-color:var(--toggleOnBgColor,${c.V.emerald});}`,".Toggle__flipper.jsx-3218971299{background-color:var(--toggleOffFlipperColor,#000);border-radius:50%;height:var(--toggleBaseSize,24px);width:var(--toggleBaseSize,24px);-webkit-transition:margin-left 0.4s ease;transition:margin-left 0.4s ease;}",".Toggle__toggle--on.jsx-3218971299 .Toggle__flipper.jsx-3218971299{background-color:var(--toggleOnFlipperColor,#000);}",".Toggle__toggle--off.jsx-3218971299 .Toggle__flipper.jsx-3218971299{margin-left:0;}",".Toggle__toggle--on.jsx-3218971299 .Toggle__flipper.jsx-3218971299{margin-left:var(--toggleBaseSize,24px);}",".Toggle__toggle--disabled.jsx-3218971299{opacity:0.5;pointer-events:none;}",".Print .Toggle__toggle.jsx-3218971299{border:none;padding:0;}",".Toggle--outlined.jsx-3218971299,.Print .Toggle--outlined.jsx-3218971299{border:var(--toggleOutlineWidth,1px) solid var(--toggleOutlineColor,#000);}",".Toggle--outlined.jsx-3218971299 .Toggle__flipper.jsx-3218971299{height:calc( var(--toggleBaseSize,24px) - (var(--toggleOutlineWidth,1px) * 2) );width:calc( var(--toggleBaseSize,24px) - (var(--toggleOutlineWidth,1px) * 2) );-webkit-transition:margin-left 0.4s ease;transition:margin-left 0.4s ease;}"];d.__hash="3218971299";var g=i(37876);function p(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?p(Object(i),!0).forEach(function(t){(0,a.A)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}let m=function({gtmAttrs:e={},handleMouseDown:t,isDisabled:i=!1,isMutating:a,isOn:r,label:o,variant:c}){let p=s()("Toggle__toggle","Toggle",{"Toggle__toggle--on":r,"Toggle__toggle--off":!r,[`Toggle--${c}`]:c},i&&"Toggle__toggle--disabled");return(0,g.jsxs)("button",u(u({},e),{},{"aria-label":o,"aria-pressed":r,"data-testid":"toggle",disabled:i||a,onMouseDown:t,type:"button",className:`jsx-${d.__hash} jsx-${l.__hash} `+(p||""),children:[(0,g.jsx)("div",{className:`jsx-${d.__hash} jsx-${l.__hash} Toggle__flipper`}),(0,g.jsx)(n(),{id:d.__hash,children:d}),(0,g.jsx)(n(),{id:l.__hash,children:l})]}))}},29944:(e,t,i)=>{"use strict";i.d(t,{A:()=>f});var a=i(47091),r=i.n(a);i(14232);var n=i(18847),o=i.n(n),s=i(73159),l=i(25538),c=i(31891),d=i(91669),g=i(43629),p=i(46320),u=i(13115);let m=[`.ErrorPage__above.jsx-2406697550{background:url('${p.fF}') no-repeat center;background-size:cover;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;
1-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:75vh;margin-bottom:2em;}`,".ErrorPage__above-message.jsx-2406697550{background-color:rgba(255,255,255,1);padding:1em 0.5em;margin:0 1em;text-align:center;box-shadow:0 4px 6px rgba(240,195,88,0.2),0 1px 3px rgba(0,0,0,0.3), 0 2px 12px rgba(0,0,0,0.2);}",`.ErrorPage.jsx-2406697550 h1.jsx-2406697550{margin-bottom:0.25em;font-family:${p.nC};font-size:var(--fontScale2);font-weight:bold;line-height:1.2;}`,`.ErrorPage.jsx-2406697550 p.jsx-2406697550{color:#666;font-family:${p.nC};line-height:1.35;}`,".ErrorPage__below.jsx-2406697550{padding:1rem 0;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background-color:white;z-index:100;}",`@media ${u.tz}{.ErrorPage__above-message.jsx-2406697550{padding:2em 1em;width:50vw;margin:0;}}`,`@media ${u.T2}{.ErrorPage__above-message.jsx-2406697550{padding:2em 1em;width:40vw;max-width:45vw;}}`];m.__hash="2406697550";var x=i(37876);let h=o()(()=>Promise.all([i.e(1819),i.e(3957)]).then(i.bind(i,33957)),{ssr:!1,loading:()=>null,loadableGenerated:{webpack:()=>[33957]}}),f=function({statusCode:e,debug:t}){let i="An Unexpected Error Has Occurred";404===e?i=l.SITE_ERROR_DESC_404||"Whoops! Apparently that page doesn't exist.":410===e&&(i=l.SITE_ERROR_DESC_410||"Whoops! Apparently that page may have been moved or deleted.");let a=404===e?c.ERROR_NOT_FOUND:c.ERROR_GENERIC,n=function(e){let t;switch(e){case 404:t=`${e}: Not Found`;break;case 410:t=`${e}: Gone`;break;case 500:t=`${e}: Internal Server Error`;break;case 502:t=`${e}: Bad Gateway`;break;case 503:t=`${e}: Service Unavailable`;break;case 504:t=`${e}: Gateway Timeout`;break;default:t=`${e}`}return t}(e);if(void 0===e)return(0,x.jsx)("pre",{style:{padding:"1rem"},children:i});let o=(0,g.HM)((0,d.bk)({title:n}));return(0,x.jsxs)(s.iY,{pageType:a,pageBundles:o,isLoading:!1,httpStatus:n,children:[(0,x.jsxs)("div",{"data-debug":t,className:`jsx-${m.__hash} ErrorPage`,children:[(0,x.jsx)("div",{className:`jsx-${m.__hash} ErrorPage__above`,children:(0,x.jsxs)("div",{className:`jsx-${m.__hash} ErrorPage__above-message`,children:[(0,x.jsx)("h1",{className:`jsx-${m.__hash}`,children:l.SITE_ERROR_MESSAGE}),e?(0,x.jsxs)("p",{className:`jsx-${m.__hash}`,children:[i," (Error Code ",e,")"]}):null]})}),l.HAS_RECIRC&&(0,x.jsx)("div",{"data-testid":"ErrorPage__below",className:`jsx-${m.__hash} ErrorPage__below`,children:(0,x.jsx)(h,{name:"ErrorPage__below",provider:"parsely",design:"image",title:"You might also like"})})]}),(0,x.jsx)(r(),{id:m.__hash,children:m})]})}},43629:(e,t,i)=>{"use strict";i.d(t,{HM:()=>n});let a={title:"default",description:"default",thumbnail:"default",robots:"default","qc:section":"default",canonical:"links",alternate:"links","og:title":"opengraph","og:description":"opengraph","og:image":"opengraph","og:url":"opengraph","og:type":"opengraph","og:site_name":"opengraph","twitter:card":"twitter","twitter:title":"twitter","twitter:description":"twitter","twitter:image":"twitter","twitter:url":"twitter","twitter:site":"twitter","flipboard-title":"flipboard","flipboard-article":"flipboard","flipboard-image":"flipboard","flipboard-author":"flipboard","flipboard-date":"flipboard","application/ld+json":"scripts",prismColors:"hidden",prismTags:"hidden"};function r(e,t,i){let r=i||a[e];return r?{id:`meta-${r}-${e}`,type:"metadata",variant:r,data:{name:e,value:t}}:null}function n(e={}){return[function(e=[]){return{id:"meta",layout:"metadata",items:[...e]}}(function(e={}){let t=[];try{if(e.title)t.push(r("title",e.title,"title"));else throw Error("Missing required 'title' metadata prop.")}catch(e){console.error(e.message)}return Object.entries(e).reduce((e,[t,i])=>{let a=r(t,i);return a?e.concat(a):e},t)}(e))]}},44526:(e,t,i)=>{"use strict";i.d(t,{A:()=>s}),i(14232);var a=i(18847),r=i.n(a),n=i(45160),o=i(37876);let s=r()(()=>Promise.all([i.e(3501),i.e(704)]).then(i.bind(i,60704)),{ssr:!1,loading:()=>(0,o.jsx)("div",{style:{margin:"0 auto",padding:"1.5rem 1rem",minHeight:"75vh"},className:"Page Page--account",children:(0,o.jsx)(n.A,{height:"350px"})}),loadableGenerated:{webpack:()=>[60704]}})},45160:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(47091),r=i.n(a);i(14232);var n=i(95845);let o=[".Loading.jsx-260200772{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;
1-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}"];o.__hash="260200772";var s=i(37876);let l=function({height:e="auto"}){return(0,s.jsxs)("div",{style:{height:e},"data-testid":"Loading",className:`jsx-${o.__hash} Loading`,children:[(0,s.jsx)(n.A,{height:100,once:!0,children:(0,s.jsx)("img",{src:"/static/icons/animated-squiggle.svg",alt:"Loading...",height:"100",className:`jsx-${o.__hash}`})}),(0,s.jsx)(r(),{id:o.__hash,children:o})]})}},46201:(e,t,i)=>{"use strict";i.d(t,{A:()=>c}),i(14232);var a=i(46713),r=i(83957),n=i(29468),o=i(91906),s=i.n(o),l=i(37876);let c=function({tagForPage:e,updateRecipeTagInCache:t,toggleTexts:i={on:"Sharing On",off:"Enable Sharing"}}){let o={"data-gtm-trigger":"click","data-gtm-event-name":"share","data-gtm-event-category":"user_saved_content","data-gtm-ui-component":"recipe_box_tag_share"};return(0,l.jsx)("div",{className:"RecipeBox__shareToggle",children:(0,l.jsx)(a.sM,{mutation:s(),children:(a,{loading:s})=>(0,l.jsx)(r.A,{isDisabled:"cooked-recipes"===e.recipeTagId,isMutating:s,language:{disabledMessage:"Sharing must be enabled before you can share a link to your tag page."},placement:"Recipe Box Tag Page",sharedUrl:`${(0,n.$)()}/shared/recipe-box/tags/${e.recipeTagId}`,hasShareText:!0,gtmAttrs:o,toggleTexts:i,updateListMutation:i=>{a({variables:{tagId:e.recipeTagId,public:i},update:t})},value:e.public})})})}},57523:(e,t,i)=>{"use strict";i.d(t,{A:()=>n}),i(14232);var a=i(29944),r=i(37876);let n=function(){return(0,r.jsx)(a.A,{statusCode:404})}},83957:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var a=i(66284),r=i(47091),n=i.n(r),o=i(58103),s=i.n(o),l=i(14232),c=i(39357),d=i(22456),g=i(13115),p=i(46320);let u=[".ShareToggle.jsx-1665025838{--toggleBaseSize:24px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:5rem;}",".ShareToggle--shareText.jsx-1665025838{width:10rem;}",".ShareToggle--copyInstruction.jsx-1665025838 .Tooltip{width:200px;}",`.ShareToggle__shareToggleText.jsx-1665025838{${p.Zv} font-size:0.625rem;}`,".ShareToggle.jsx-1665025838 .CopyLinkAction{height:1.5rem;width:1.5rem;font-size:14px;}",`@media screen and ${g.pl}{.ShareToggle--shareText.jsx-1665025838{width:11rem;}.ShareToggle__shareToggleText.jsx-1665025838{min-width:90px;text-align:right;}}`];u.__hash="1665025838";var m=i(37876);function x(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}let h=function(e){let{gtmAttrs:t={},isDisabled:i,isMutating:r,language:o={},placement:g,sharedUrl:p,hasShareText:h=!1,updateListMutation:f,value:b,showCopyAction:_=!0,toggleTexts:j={on:"Sharing On",off:"Enable Sharing"}}=e,{on:y,off:v}=j,k=s()("ShareToggle",{"ShareToggle--shareText":h,"ShareToggle--copyInstruction":!b}),T=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?x(Object(i),!0).forEach(function(t){(0,a.A)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):x(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}({ariaLabel:"Toggle sharing",disabledMessage:"Sharing must be enabled before you can share this list."},o),{0:w,1:R}=(0,l.useState)(b);return(0,m.jsxs)("div",{"data-testid":"ShareToggle",className:`jsx-${u.__hash} `+(k||""),children:[(0,m.jsx)(n(),{id:u.__hash,children:u}),h&&(0,m.jsx)("span",{className:`jsx-${u.__hash} ShareToggle__shareToggleText`,children:w?y:v}),(0,m.jsx)(d.A,{label:`${T.ariaLabel} ${w?"off":"on"}`,handleMouseDown:function(){R(!w),f(!b)},isOn:w,isMutating:r,isDisabled:i}),_&&(0,m.jsx)(c.A,{disabledMessage:T.disabledMessage,isDisabled:!b,placement:g,url:p,variant:"fitted",gtmAttrs:t})]})}},90977:(e,t,i)=>{"use strict";i.d(t,{A:()=>m}),i(14232);var a=i(73159),r=i(44526),n=i(50275),o=i(74378),s=i(46713),l=i(81256),c=i.n(l),d=i(37876);let g=function({children:e}){return(0,d.jsx)(n.A,{children:(0,d.jsx)(s.XK,{query:c(),errorPolicy:"all",ssr:!1,children:({data:t,loading:i,error:a})=>(0,d.jsx)(d.Fragment,{children:e({data:t,error:a,loading:i})})})})};var p=i(93289),u=i(31891);let m=function({children:e,pageBundles:t}){return(0,d.jsxs)(a.iY,{pageType:u.RECIPE_BOX,pageBundles:t,showNav:!1,children:[(0,d.jsxs)(r.A,{cssHook:"RecipeBoxPage",hasNav:!1,children:[(0,d.jsx)(o.A,{}),(0,d.jsx)(n.A,{errorMessage:"Error getting your user info.",children:(0,d.jsx)(g,{children:({data:t})=>e({userDataSummary:t})})})]}),(0,d.jsx)(p.A,{token:"42LJs"})]})}},95845:(e,t,i)=>{"use strict";i.d(t,{A:()=>u});var a=i(66284),r=i(59860),n=i(14232),o=i(58103),s=i.n(o),l=i(37876);let c=["children","skip","offset","once","placeholder","height","classNamePrefix","className","style","id"];function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}function g(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(i),!0).forEach(function(t){(0,a.A)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function p(e){let{children:t,skip:i=!1,offset:a=0,once:o=!1,placeholder:d=null,height:p,classNamePrefix:u="lazyload",className:m,style:x,id:h}=e,f=(0,r.A)(e,c),{0:b,1:_}=(0,n.useState)(i),j=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e;if(b||i)return;let t=j.current;if(!t)return;let r=new IntersectionObserver(([e])=>{e.isIntersecting&&(_(!0),r.disconnect())},{rootMargin:`${a}px`});r.observe(t);let n=t.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,s=n.bottom-n.top;if(n.top<o+a&&(s>0||n.top<0)){_(!0),r.disconnect();return}if(n.top<o+a&&s<=0&&n.top>=0){let i=()=>{let e=t.getBoundingClientRect(),i=e.bottom-e.top;e.top<o+a&&(i>0||e.top<0)&&(_(!0),r.disconnect())};"function"==typeof window.requestAnimationFrame?e=window.requestAnimationFrame(i):i()}return()=>{e&&"function"==typeof window.cancelAnimationFrame&&window.cancelAnimationFrame(e),r.disconnect()}},[b,i,a]);let y=p&&!b?g(g({},x),{},{height:"number"==typeof p?`${p}px`:p}):x,v={};Object.keys(f).forEach(e=>{(e.startsWith("data-")||e.startsWith("aria-"))&&(v[e]=f[e])});let k=s()(`${u}-wrapper`,m,{[`${u}-placeholder`]:!i&&!b});return(0,l.jsx)("div",g(g({ref:j,className:k,style:y,id:h},v),{},{children:i||b?t:d}))}p.runForceCheck=()=>{};let u=p},96710:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>W,default:()=>G});var a=i(14232),r=i(80359),n=i(50275),o=i(90977),s=i(66284),l=i(47091),c=i.n(l),d=i(45160),g=i(89099),p=i(2801),u=i(79299);let m=[".RecipeBoxMyTagTotalRecipeCount.jsx-4268494219{font-size:0.8rem;}"];m.__hash="4268494219";var x=i(37876);let h=function({totalRecipes:e}){return(0,x.jsxs)("div",{className:`jsx-${m.__hash} RecipeBoxMyTagTotalRecipeCount`,children:[(0,x.jsx)(c(),{id:m.__hash,children:m}),e," ",1!==e?"Recipes":"Recipe"]})};var f=i(25066),b=i(46201),_=i(85863),j=i(13115),y=i(46320);let v=[".RecipeBoxMyTagTeaserInfo.jsx-2454241605{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:0.3125rem;border-top:1px solid #000;border-bottom:1px solid #000;padding:0.5rem 0;}",".RecipeBoxMyTagTeaserInfo.jsx-2454241605 .RecipeTagButton__wrap{min-width:0;}",`.RecipeBoxMyTagTeaserInfo.jsx-2454241605 .RecipeTagButton,.RecipeBoxMyTagTeaserInfo.jsx-2454241605 .RecipeTagButton--isSelected,.RecipeBoxMyTagTeaserInfo.jsx-2454241605 .RecipeBoxMyTagTotalRecipeCount{background:transparent;color:#000;font-family:${y.$y};font-size:0.875rem;font-weight:400;line-height:1rem;margin:0;padding:0;${y.Zv};}`,".RecipeBoxMyTagTeaserInfo.jsx-2454241605 .RecipeBoxMyTagTotalRecipeCount{font-size:0.75rem;line-height:0.875rem;}",`.RecipeBoxMyTagTeaserInfo.jsx-2454241605 .RecipeTagButton{background-color:${y.JJ.artichoke};border-radius:4px;color:#fff;display:block;font-weight:600;max-width:100%;overflow:hidden;padding:0.2rem 0.5rem 0.1rem;text-overflow:ellipsis;white-space:nowrap;}`,".RecipeBoxMyTagTeaserInfo.jsx-2454241605 .RecipeTagButton:hover{opacity:1;}",".RecipeBoxMyTagTeaserInfo.jsx-2454241605 .RecipeBoxMyTagTotalRecipeCount{border-left:1px solid #000;padding-left:0.5rem;margin-left:0.5rem;white-space:nowrap;}",".RecipeBoxMyTagRecipes.jsx-2454241605{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".RecipeBoxMyTagRecipes__picture,.RecipeBoxMyTagRecipes__pictureLink .Placeholder{grid-area:imageArea;}
1",".RecipeBoxMyTagRecipes__pictureLink{display:grid;grid-template-areas:'imageArea';width:calc((var(--gridColumnWidth) * 2) + var(--gridGutterWidth));}",".RecipeBoxMyTagRecipes.jsx-2454241605 .RecipeBoxMyTagRecipes__picture img{width:100%;}",".RecipeBoxMyTagRecipes.jsx-2454241605 .ShareToggle{-webkit-column-gap:0.325rem;column-gap:0.325rem;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;width:9.5rem;}",".RecipeBoxMyTagRecipes.jsx-2454241605 .ShareToggle__shareToggleText{font-size:0.875rem;min-width:3.75rem;}",`.RecipeBoxMyTagRecipes.jsx-2454241605 .Toggle__toggle{--toggleBaseSize:24px;--toggleOffBgColor:#d8d8d8;--toggleOnBgColor:${y.JJ.artichoke};--toggleOnFlipperColor:#fff;--toggleOffFlipperColor:#fff;width:2.5rem;}`,".RecipeBoxMyTagRecipes.jsx-2454241605 .Toggle__flipper{width:1rem;height:1rem;}",".RecipeBoxMyTagRecipes.jsx-2454241605 .Toggle__toggle.Toggle__toggle--off .Toggle__flipper{margin-left:4px;}",".RecipeBoxMyTagRecipes.jsx-2454241605 .Toggle__toggle.Toggle__toggle--on .Toggle__flipper{margin-left:21px;}",".RecipeBoxMyTagRecipes.jsx-2454241605 .CopyLinkAction{margin-left:0.3rem;}",".RecipeBoxMyTagRecipes.jsx-2454241605 .CopyLinkAction .ActionIcon--disabled{background:#d8d8d8;}",".RecipeBoxMyTagRecipes.jsx-2454241605 .CopyLinkAction .ActionIcon:hover{background-color:rgba(0,0,0,0.7);opacity:1;}",".RecipeBoxMyTagRecipes.jsx-2454241605 .CopyLinkAction .ActionIcon.ActionIcon--disabled:hover{background-color:rgba(216,216,216,0.7);}",`@media screen and ${j.tz}{.RecipeBoxMyTagTeasers.jsx-2454241605{width:100%;min-width:0px;}}`];v.__hash="2454241605";let k=function(e){let{tag:t,updateRecipeTagInCache:i=()=>{}}=e,a=(0,g.useRouter)(),r=t.recipes?.userRecipes?.[0]?.teaserImage,n=`/account/recipe-box/my-folders/${t.recipeTagId}`;return(0,x.jsxs)("div",{className:`jsx-${v.__hash} RecipeBoxMyTagTeasers`,children:[(0,x.jsx)(c(),{id:v.__hash,children:v}),(0,x.jsxs)("div",{className:`jsx-${v.__hash} RecipeBoxMyTagTeaserInfo`,children:[(0,x.jsx)(f.A,{tagName:t.name,isSelected:!0,onClick:()=>{a.push(n)}}),(0,x.jsx)(h,{totalRecipes:t.recipesCount})]}),(0,x.jsxs)("div",{className:`jsx-${v.__hash} RecipeBoxMyTagRecipes`,children:[(0,x.jsxs)(u.A,{href:n,className:"RecipeBoxMyTagRecipes__pictureLink",children:[(0,x.jsx)(p.A,{aspectRatio:1.5,placement:"responsive",backgroundColor:"#f7f7f7"}),(0,x.jsx)(_.A,{className:"RecipeBoxMyTagRecipes__picture",url:r||"https://cdn.apartmenttherapy.info/image/upload/f_auto,q_auto,w_800,e_replace_color:5a7367:80:7F9DFD/v1716930878/at/art/design/Special-Projects/2024/07_Site-Redesign/Placeholder%20Images/AT_Placeholder-3-2.png",sourceSets:[{imageDims:{height:405.5,width:608},layoutWidth:{units:"vw",value:39},media:"(min-width: 64rem)"},{imageDims:{height:405.5,width:608},layoutWidth:{units:"vw",value:100},media:"(max-width: 63.99rem)"}],fallbackDims:{height:200,width:300},imgRenderOps:{quality:"auto:low"},priority:"auto"})]}),t.recipes?.userRecipes.length>0&&"cooked-recipes"!==t.recipeTagId&&(0,x.jsx)(b.A,{tagForPage:t,toggleTexts:{on:"Public",off:"Public"},totalRecipes:t.recipesCount,updateRecipeTagInCache:i})]})]})};var T=i(86939),w=i(46713),R=i(72818),O=i.n(R),B=i(16730),S=i.n(B);let $=[".RecipeBoxCreateFolderForm.jsx-3965414336{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;min-height:300px;}",`.RecipeBoxCreateFolderForm.jsx-3965414336 h4.jsx-3965414336{text-align:center;margin-bottom:1rem;font-family:${y.$y};font-weight:600;font-size:0.75rem;${y.Zv};}`,".RecipeBoxCreateFolderForm__addTagForm.jsx-3965414336{margin-top:0;}",".RecipeBoxCreateFolderForm__addTagForm.jsx-3965414336 a.jsx-3965414336{color:#666;}",".RecipeBoxCreateFolderForm__addTagInput.jsx-3965414336{margin:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background-color:#fff;}",`.RecipeBoxCreateFolderForm__addTagInputButton.jsx-3965414336{${y.x6.slim} align-self:center;}`,`.RecipeBoxCreateFolderForm__addTagInput.jsx-3965414336 input.jsx-3965414336{margin-bottom:0.375rem;font-family:${y.$y};font-size:0.9375rem;border:none;outline:0;border-top:1px solid #000;border-bottom:1px solid #000;padding:0.875rem 0 0.875rem 0.625rem;color:black;width:100%;}`,".RecipeBoxCreateFolderForm__addTagInput.jsx-3965414336 input.jsx-3965414336::-webkit-input-placeholder{color:#757575;}",".RecipeBoxCreateFolderForm__addTagInput.jsx-3965414336 input.jsx-3965414336::-moz-placeholder{color:#757575;}",".RecipeBoxCreateFolderForm__addTagInput.jsx-3965414336 input.jsx-3965414336:-ms-input-placeholder{color:#757575;}",".RecipeBoxCreateFolderForm__addTagInput.jsx-3965414336 input.jsx-3965414336::placeholder{color:#757575;}",`.RecipeBoxCreateFolderForm__addTagInstructions.jsx-3965414336{margin-bottom:1.125rem;padding-left:0.625rem;font-family:${y.$y};font-size:0.75rem;line-height:1.125rem;text-align:left;}`,`@media screen and ${j.tz}{.RecipeBoxCreateFolderForm.jsx-3965414336{min-height:unset;}}`,`@media screen and ${j.pl}{.RecipeBoxCreateFolderForm__addTagInputButton.jsx-3965414336:hover{${y.x6.hover};}}`];function N(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}function F(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?N(Object(i),!0).forEach(function(t){(0,s.A)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):N(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}$.__hash="3965414336";let P=function({onCreate:e}){let{0:t,1:i}=(0,a.useState)(!1),{0:r,1:n}=(0,a.useState)(void 0),{0:o,1:s}=(0,a.useState)(""),l=(0,a.useRef)(null),d=o&&-1!==o.indexOf(",");return(0,x.jsx)(w.sM,{mutation:O(),children:a=>(0,x.jsxs)("div",{className:`jsx-${$.__hash} RecipeBoxCreateFolderForm`,children:[(0,x.jsx)("h4",{className:`jsx-${$.__hash}`,children:"My Folders"}),(0,x.jsxs)("div",{className:`jsx-${$.__hash} RecipeBoxCreateFolderForm__addTagForm`,children:[(0,x.jsxs)("div",{className:`jsx-${$.__hash} RecipeBoxCreateFolderForm__addTagInput`,children:[(0,x.jsx)("input",{placeholder:"Add folder name here...",ref:l,type:"text",value:o,onChange:()=>s(l.current.value),className:`jsx-${$.__hash}`}),(0,x.jsx)("p",{className:`jsx-${$.__hash} RecipeBoxCreateFolderForm__addTagInstructions`,children:"30 characters maximum"}),(0,x.jsx)("button",{"aria-label":"Add recipe Folder","data-mode":"folders",disabled:""===o||t||d,onClick:()=>t?null:(a({variables:{input:{names:o.split(",").map(e=>e.trim().toLowerCase()).filter(e=>""!==e)}},update:(e,t)=>{let i={page:1,limit:1},a=e.readQuery({query:S(),variables:i});e.writeQuery({query:S(),variables:i,data:{recipeTags:[...a.recipeTags,...t.data.createRecipeTags.recipeTags.map(e=>F(F({},e),{},{recipes:{page:1,totalPages:1,userRecipes:[]}}))]}})}}).then((t,a)=>{a&&(n(a),i(!1)),void 0!==t.data.createRecipeTags&&(s(""),i(!1),e())}).catch(e=>{n(e),i(!1)}),i(!0),!1),type:"button",className:`jsx-${$.__hash} RecipeBoxCreateFolderForm__addTagInputButton`,children:"Save"}),r&&(0,x.jsx)("div",{className:`jsx-${$.__hash} error`,children:r})]}),d&&(0,x.jsx)("p",{className:`jsx-${$.__hash}`,children:"Please enter one Folder at a time."})]}),(0,x.jsx)(c(),{id:$.__hash,children:$})]})})},M=[".RecipeBoxMyTag__header.jsx-911858218{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;padding:1rem 1rem 0 1rem;}",`.RecipeBoxMyTag__header.jsx-911858218 h2.jsx-911858218{font-family:${y.$y};font-weight:600;font-size:0.875rem;${y.Zv};}`,`.RecipeBoxMyTag__newFolderButton.jsx-911858218{${y.x6.default};}`,`.RecipeBoxMyTag__newFolderButton.jsx-911858218:hover{${y.x6.hover};}`,`.RecipeBoxMyTag__noResults.jsx-911858218{text-align:center;margin:6rem;font-size:var(--fontScale1);color:${y.hs};}`,".RecipeBoxMyTag--list.jsx-911858218{margin:1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;row-gap:1.25rem;}",`@media screen and ${j.tz}{.RecipeBoxMyTag__header.jsx-911858218{padding:1rem 0 0 0;}.RecipeBoxMyTag--list.jsx-911858218{margin-top:2.125rem;margin-right:0;margin-left:0;display:grid;grid-template-columns:repeat(2,1fr);-webkit-column-gap:var(--gridGutterWidth);column-gap:var(--gridGutterWidth);}}`];function C(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}function I(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?C(Object(i),!0).forEach(function(t){(0,s.A)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):C(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}M.__hash="911858218";let E=function({isRecipeBoxDataLoading:e,recipesPerTagLimit:t,recipeBoxData:i,recipeBoxDataError:r}){let[n,o]=a.useState(!1),s=(e,i)=>{let a={page:1,limit:t},{recipeTags:r}=e.readQuery({query:S(),variables:a});e.writeQuery({query:S(),variables:a,data:{recipeTags:r.map(e=>e.recipeTagId===i.data.updateRecipeTag.recipeTag.recipeTagId?I(I({},e),{},{public:i.data.updateRecipeTag.recipeTag.public}):e)}})};return(0,x.jsxs)("div",{className:`jsx-${M.__hash} RecipeBoxMyTag`,children:[(0,x.jsxs)("div",{className:`jsx-${M.__hash} RecipeBoxMyTag__header`,children:[(0,x.jsx)("h2",{className:`jsx-${M.__hash}`,children:"My Folders"}),(0,x.jsx)("button",{onClick:e=>{e.preventDefault(),o(!0)},type:"button",className:`jsx-${M.__hash} RecipeBoxMyTag__newFolderButton`,children:"New Folder"}),(0,x.jsx)(T.A,{cssHook:"RecipeBox__drawer",closedby:"any",isOpen:n,onClose:()=>{o(!1)},showCloseButton:!0,children:(0,x.jsx)(P,{onCreate:()=>o(!1)})})]}),r&&(0,x.jsx)("div",{className:`jsx-${M.__hash} RecipeBoxMyTag--error`,children:`Something went wrong: ${r.message}`}),e&&(0,x.jsx)(d.A,{height:"350px"}),i?.recipeTags?.length===0&&(0,x.jsx)("div",{className:`jsx-${M.__hash} RecipeBoxMyTag__noResults`,children:"You don't have any folders yet! Start organizing your saved recipes by creating a folder and sorting your favorite recipes inside."}),i?.recipeTags?.length>0&&(0,x.jsx)("div",{className:`jsx-${M.__hash} RecipeBoxMyTag--list`,children:i?.recipeTags?.map(e=>(0,x.jsx)(k,{tag:e,updateRecipeTagInCache:s},e.ndbId))}),(0,x.jsx)(c(),{id:M.__hash,children:M})]})};var A=i(57523),D=i(25538),z=i(17450),L=i.n(z),q=i(91669);let V=(0,i(43629).HM)((0,q.bk)({title:"Recipe Box: My Folders",canonical:(0,q.hO)("/account/recipe
1-box/my-folders")}));var W=!0;let G=D.HAS_ACCOUNT&&D.HAS_RECIPE_BOX?function(){let{data:e,error:t,loading:i,fetchMore:a}=(0,r.I)(S(),{variables:{page:1,limit:1},ssr:!1,fetchPolicy:"network-only",errorPolicy:"all"}),{data:s,loading:l}=(0,r.I)(L(),{variables:{iMadeIt:!0},ssr:!1,fetchPolicy:"network-only",errorPolicy:"all"}),c=s?.getRecipeBox?.recipes?.totalCount>0&&e?.recipeTags?{recipeTags:[{__typename:"RecipeTag",name:"Cooked Recipes",ndbId:"cooked",public:!1,recipesCount:s?.getRecipeBox?.recipes?.totalCount,recipeTagId:"cooked-recipes",slug:"cooked-recipes",recipes:s?.getRecipeBox?.recipes},...e.recipeTags]}:e;return(0,x.jsx)(o.A,{pageBundles:V,children:({userDataSummary:e})=>(0,x.jsx)(n.A,{errorMessage:"Error: Unable to retrieve your Recipe Tags",children:(0,x.jsx)(E,{isRecipeBoxDataLoading:i||l,recipeBoxData:{recipeTags:c?.recipeTags},recipeBoxDataError:t,userDataSummary:e,fetchMore:a,recipesPerTagLimit:1})})})}:A.A},98401:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/recipe-box/my-folders",function(){return i(96710)}])}},e=>{e.O(0,[4780,244,8983,5578,2767,7899,1713,3159,194,2032,9208,3218,636,6593,8792],()=>e(e.s=98401)),_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.