PageSourceSearch

https://healthyrecipes101.com/_next/static/chunks/pages/[topic]/print/[id]-f9f0bb3eca5a4375.js

js healthyrecipes101.com collected 2026-10-02 19:30:25 UTC 10,944 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[266],{9151:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[topic]/print/[id]",function(){return s(6593)}])},402:function(e,t,s){"use strict";s.d(t,{AK:function(){return n},BC:function(){return i},Eg:function(){return l},kC:function(){return r},lV:function(){return a},r2:function(){return c}});let n=function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.filter(Boolean).join(" ")},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.toString().toLowerCase().replace(/[^a-z0-9]+/g," ").split(" ").map(e=>e.replace(/^(the|on|in|at|of|a|an|and|to)$/g,"")).join(" ").trim().replace(/\s+/g,t)},l=e=>e.replace(/([A-Z][a-z])/g," $1").replace(/(^\w)/g,e=>e.toUpperCase()).trim(),r=e=>(e=l(e)).split(" ").map(e=>e.replace(/(^\w)/g,e=>e.toUpperCase())).join(" "),i=e=>{let{src:t,width:s,quality:n}=e;if(0===t.indexOf("http://")||0===t.indexOf("https://")){if(-1!==t.indexOf("://healthyrecipes101.com/")&&(t=(t=t.replace("https://healthyrecipes101.com/wp-content/","https://cdn.healthyrecipes101.com/")).replace(/-\d{2,3}x\d{2,3}\./g,".")),-1!==t.indexOf("gravatar.com"))return"".concat(t);t=t.replace("http://localhost:8001/wp-content/","https://cdn.healthyrecipes101.com/")}return"".concat(t,"?w=").concat(s,"&q=").concat(n||80)},c=e=>{let{date:t,showTime:s=!1}=e;return s?t&&new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC",hour:"2-digit",minute:"2-digit",hour12:!0}):t&&new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})}},6593:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return p}});var n=s(5893),a=s(9008),l=s.n(a),r=s(5675),i=s.n(r),c=s(7294),o=s(402);let d=e=>{var t,s;let{recipe:a}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l(),{children:[(0,n.jsx)("meta",{charSet:"UTF-8"}),(0,n.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,n.jsx)("meta",{name:"robots",content:"noindex"}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,n.jsx)("title",{children:"".concat(a.name," - Healthy Recipes 101")}),a.posts&&(null===(t=a.posts)||void 0===t?void 0:t.length)>0?(0,n.jsx)("link",{rel:"canonical",href:null===(s=a.posts[0])||void 0===s?void 0:s.uri}):null]}),(0,n.jsx)("main",{className:"text-base antialiased text-gray-700 overflow-hidden ",children:(0,n.jsx)(m,{recipe:a})})]})},m=e=>{var t;let{recipe:s}=e,[a,l]=(0,c.useState)(!1),[r,d]=(0,c.useState)(!1),[m,p]=(0,c.useState)(!0),[h,g]=(0,c.useState)((null==s?void 0:s.servings)||1),{id:j,author:v,course:f,cuisine:N,featuredImage:y,ingredients:b,instructionsJson:w,name:C,nutrition:_,notes:S,servings:k,summary:I,times:T,keywords:U,posts:F}=s||{},O=(0,c.useMemo)(()=>(null==w?void 0:w.find(e=>{var t;return null==e?void 0:null===(t=e.steps)||void 0===t?void 0:t.some(e=>null==e?void 0:e.media)}))||!1,[w]);if(!s||!s.id)return null;let E=null==_?void 0:_.find(e=>1008===Number(e.id));return(0,n.jsxs)("div",{className:"mx-auto px-2 sm:px-0 md:px-4 max-w-xl md:max-w-3xl print:max-w-3xl my-6",children:[(0,n.jsxs)("div",{className:"flex justify-center gap-8 print:hidden",children:[F&&(null==F?void 0:F.length)>0?(0,n.jsx)("a",{className:"text-gray-900 font-semibold w-24 py-2 rounded-sm text-center border-gray-900 border",href:null===(t=F[0])||void 0===t?void 0:t.uri,children:"Go Back"}):null,(0,n.jsx)("span",{className:"cursor-pointer bg-custom-300 text-white font-semibold w-24 py-2 rounded-sm text-center",onClick:()=>print(),children:"Print"})]}),(0,n.jsxs)("div",{className:"mt-5 mb-10 flex gap-1 justify-between print:hidden",children:[(0,n.jsxs)("label",{className:"flex gap-2 items-center",children:[(0,n.jsx)("input",{type:"checkbox",defaultChecked:a,onChange:()=>l(!a),className:"w-5 h-5 text-custom-300 border border-gray-400 rounded focus:ring-custom-300 focus:ring-opacity-60 cursor-pointer"}),(0,n.jsx)("span",{className:"cursor-pointer",children:"Recipe Image"})]}),(0,n.jsxs)("label",{className:"flex gap-2 items-center",children:[(0,n.jsx)("input",{type:"checkbox",defaultChecked:r,onChange:()=>d(!r),className:"w-5 h-5 text-custom-300 border border-gray-400 rounded focus:ring-custom-300 focus:ring-opacity-60 cursor-pointer"}),(0,n.jsx)("span",{className:"cursor-pointer",children:"Instruction Images"})]}),(0,n.jsxs)("label",{className:"flex gap-2 items-center",children:[(0,n.jsx)("input",{type:"checkbox",defaultChecked:m,onChange:()=>p(!m),className:"w-5 h-5 text-custom-300 border border-gray-400 rounded focus:ring-custom-300 focus:ring-opacity-60 cursor-pointer"}),(0,n.jsx)("span",{className:"cursor-pointer",children:"Nutrition Label"})]}),(0,n.jsxs)("label",{className:"flex gap-2 items-center",children:[(0,n.jsx)("input",{type:"number",min:1,max:100,defaultValue:k,onChange:e=>g(parseInt(e.target.value)),className:"w-14 p-0 text-custom-300 border border-gray-400 rounded outline-none cursor-pointer pl-2 "}),(0,n.jsx)("span",{className:"cursor-pointer",children:"servings"})]})]}),(0,n.jsxs)("div",{id:"recipe-maker-".concat(j),className:"border border-custom-300 rounded-md overflow-hidden prose mx-auto p-3",children:[(0,n.jsxs)("div",{className:"flex flex-row gap-4",children:[(0,n.jsxs)("div",{className:"pr-0 grow",children:[(0,n.jsx)("h2",{className:"!m-0 !mb-3 text-2xl",children:null==s?void 0:s.name}),(null==s?void 0:s.summary)&&(0,n.jsx)("div",{className:"mt-3 prose-sm text-gray-600 text-sm",dangerouslySetInnerHTML:{__html:s.summary}})]}),(null==y?void 0:y.imagePublicUrl)&&a&&(0,n.jsx)(i(),{loader:o.BC,width:160,height:160,sizes:"50vw",className:"aspect-square m-0 object-cover object-center",alt:null==y?void 0:y.alt,src:y.imagePublicUrl})]}),(0,n.jsx)("ul",{className:"flex justify-evenly border-y mt-3 not-prose px-0 py-2 text-center text-sm text-gray-500",children:Object.entries(T[0]).map(e=>{let{days:t,hours:s,minutes:a}=e[1]||{};return t||s||a?(0,n.jsxs)("li",{className:"flex flex-col",children:[(0,n.jsxs)("span",{className:"uppercase",children:["custom"==e[0]?"INACTIVE":e[0]," TIME "]}),(0,n.jsxs)("span",{className:"text-gray-900 font-normal text-sm ",children:[t?"".concat(t," days "):"",s?"".concat(s," hr "):"",a?"".concat(a," mins"):""]})]},"time-".concat(e[0])):null})}),(0,n.jsxs)("div",{className:"mt-1 text-sm",children:[f&&(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-gray-500",children:"Course:"})," ",f]}),N&&(0,n.jsxs)("span",{className:"ml-5",children:[(0,n.jsx)("span",{className:"text-gray-500",children:"Cuisine:"})," ",N]})]}),U&&(0,n.jsxs)("div",{className:"mt-1 text-sm",children:[(0,n.jsx)("span",{className:"text-gray-500",children:"Keyword: "}),U]}),(0,n.jsxs)("div",{className:"flex flex-row flex-wrap items-center gap-6 mt-1 text-sm",children:[h&&(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-gray-500",children:"Servings: "}),h," ",(0,n.jsx)("span",{className:"text-xs",children:"servings"})]}),E&&(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-gray-500",children:"Calories: "}),null==E?void 0:E.amount.toFixed(0)," kcal"]}),(null==v?void 0:v.name)&&(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-gray-500",children:"Author: "}),v.name]})]}),(null==b?void 0:b.length)&&(0,n.jsxs)("div",{className:"mt-3",children:[(0,n.jsxs)("h3",{className:"!m-0 font-bold text-base uppercase",children:["Ingredients (",null==b?void 0:b.length,")"]}),(0,n.jsx)("ul",{className:"not-prose p-0 pl-6 mt-1",children:b.map(e=>(0,n.jsxs)("li",{className:"leading-6 ",children:[(0,n.jsx)(x,{amount:e.amount,start:k,servings:h,unit:e.unit})," ",e.name," ",e.notes&&(0,n.jsx)("i",{className:"text-gray-500",dangerouslySetInnerHTML:{__html:e.notes}})]},"ingredient-".concat(e.id)))})]}),w&&(0,n.jsxs)("div",{className:"mt-3",children:[(0,n.jsx)("h3",{className:"!m-0 font-bold text-base uppercase",children:"INSTRUCTIONS"}),(0,n.jsx)("div",{className:"flex flex-col gap-2 mt-1 pl-4",children:null==w?void 0:w.map((e,t)=>{let{steps:s,title:a}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-4 print:gap-0",children:[a&&(0,n.jsx)("h4",{className:"m-0",dangerouslySetInnerHTML:{__html:a}}),null==s?void 0:s.map((e,s)=>{let{text:a,media:l}=e;return(0,n.jsx)("div",{id:"#recipe-".concat(j,"-step-").concat(t+1,"-").concat(s+1),children:(0,n.jsxs)("div",{className:"flex flex-col md:flex-row gap-3",children:[(0,n.jsxs)("div",{className:(0,o.AK)("relative",r&&O?"md:w-1/2":"",(null==l?void 0:l.imagePublicUrl)?"w-full":"!w-full"),children:[(0,n.jsx)("span",{className:(0,o.AK)("w-5 h-5 absolute top-1 text-gray-900 text-sm rounded-full flex justify-center items-center ",t?"bg-sky-300":"bg-yellow-400"),children:s+1}),a&&(0,n.jsx)("div",{className:"not-prose indent-7",dangerouslySetInnerHTML:{__html:a}})]}),(null==l?void 0:l.imagePublicUrl)&&(0,n.jsx)("div",{className:(0,o.AK)("md:max-h-52 relative overflow-hidden mb-3",r?"w-full md:w-1/2":"w-0"),children:(0,n.jsx)(i(),{loader:o.BC,sizes:"25vw",width:364,height:242,alt:null==l?void 0:l.alt,src:l.imagePublicUrl,className:"aspect-[3/2] m-0 object-cover object-center bg-custom-100"})})]})},"instruction-".concat(t+1,"-").concat(s+1))})]},"instruction-".concat(t+1))})})]}),_&&m&&(0,n.jsx)(u,{nutrition:_}),S&&(0,n.jsxs)("div",{className:"mt-3",children:["Note: ",(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:S.replace(/<p>/g,"").replace(/<\/p>/g,"")}})]})]})]})},u=e=>{let{nutrition:t}=e,s=[1004,1258,1257,1293,1292,1253,1093,,1092,,1005,1079,2e3,1003,1104,1162,1087,1089];t.sort((e,t)=>
1s.indexOf(e.id)-s.indexOf(t.id));let a=null==t?void 0:t.find(e=>1008===e.id);return(0,n.jsxs)("div",{className:"mt-3",children:[(0,n.jsx)("h3",{className:"!m-0 font-bold text-base uppercase",children:"Nutrition"}),(0,n.jsxs)("div",{className:"text-gray-500 text-sm",children:[(0,n.jsxs)("span",{children:["Serving: ",(0,n.jsx)("span",{className:"text-gray-900",children:"1 serving"})," | "]}),(0,n.jsxs)("span",{children:["Calories: ",(0,n.jsxs)("span",{className:"text-gray-900",children:[null==a?void 0:a.amount.toFixed(0)," kcal"]})," | "]}),null==t?void 0:t.map((e,s)=>{let{id:a,name:l,amount:r,unitName:i}=e||{};return a&&1008!=a?(r=parseFloat(null==r?void 0:r.toFixed(0)),(0,n.jsxs)("span",{children:[l," ",(0,n.jsxs)("span",{className:"text-gray-900",children:[r," ",i]}),s+2<=t.length?" | ":""]},"nutrition-".concat(a))):null})]})]})},x=e=>{let{amount:t,start:s,servings:a,unit:l}=e;if(!t)return null;if(s===a)return(0,n.jsx)(n.Fragment,{children:"".concat(t," ").concat(l)});let r=null==t?void 0:t.match(/(\d{1,2}\s)?(\d{1}\/\d{1})/mu);r&&(t=Function('"use strict";return ('+r[2]+")")()+parseInt(r[1]||"0"));let i=parseFloat(t)/s*a;return i=i%1?i.toFixed(2):i,(0,n.jsx)(n.Fragment,{children:"".concat(i," ").concat(l)})};var p=!0;t.default=d}},function(e){e.O(0,[959,774,888,179],function(){return e(e.s=9151)}),_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.