1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3647],{45750:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/osszetevok",function(){return n(326)}])},81692:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** 2 * @license lucide-react v0.314.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let r=(0,n(64370).Z)("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]])},53311:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** 7 * @license lucide-react v0.314.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let r=(0,n(64370).Z)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},80832:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** 12 * @license lucide-react v0.314.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let r=(0,n(64370).Z)("MoveRight",[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]])},4642:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** 17 * @license lucide-react v0.314.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let r=(0,n(64370).Z)("Sliders",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]])},23825:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** 22 * @license lucide-react v0.314.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */let r=(0,n(64370).Z)("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]])},19484:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(85893),s=n(48755),l=n(2809);let i=e=>{let{variant:t,className:n}=e,i=(0,l.Gb)(t,{success:"bg-success-400",warning:"bg-warning-400",error:"bg-error-400",gray:"bg-forest-green-300"});return(0,r.jsx)("div",{className:(0,s.cn)("size-2 rounded-full shrink-0",i,n)})}},11255:function(e,t,n){"use strict";n.d(t,{J:function(){return w},Q:function(){return j}});var r=n(85893),s=n(80832),l=n(41664),i=n.n(l),a=n(98964),c=n(99211),o=n(88771),d=n(19484),u=n(82417),g=n(85457),f=n(68894),x=n(48755),m=n(61767),h=n(7978),p=n(82583),v=n(18974),y=n(30920),b=n(99066);let j=()=>{let{t:e}=(0,v.LD)("ingredients"),{ingredientsData:t,paginationElement:n,isSuccess:s}=(0,c.Fi)(),l=s&&(null==t?void 0:t.data.length)===0;return(0,r.jsxs)("section",{className:"",children:[l&&(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsx)("p",{className:"text-center text-sm text-forest-green-500",children:e("empty_case","No ingredients is listed with current filters.")})}),(0,r.jsx)("div",{className:"flex flex-col gap-10 md:gap-14",children:null==t?void 0:t.data.map(e=>(0,r.jsx)(w,{ingredient:e},e.id))}),(0,r.jsx)("div",{className:"py-10",children:n})]})},k=e=>{let{numberOfProducts:t,slug:n}=e,{t:l}=(0,v.LD)("ingredients");return null==t?null:(0,r.jsx)(u.zx,{variant:"ghost",asChild:!0,className:"h-auto w-fit p-0",children:(0,r.jsxs)(i(),{href:"".concat(y._.ingredients,"/").concat(n),children:[(0,r.jsx)("span",{className:"mr-2 font-medium text-forest-green-500 md:whitespace-nowrap",children:l("go_to_ingredient_detail",{count:t})}),(0,r.jsx)(s.Z,{className:"hidden lg:inline"})]})})},w=e=>{var t;let{ingredient:n,cardsClassName:s}=e,{t:l}=(0,v.LD)("ingredients"),{colorVariant:u}=(0,m.K)(n).getSafetyCategory(),j=(0,m.K)(n).getSlug(),{data:w,isLoading:E,isSuccess:_}=(0,c.Nu)(null==n?void 0:n.slug),C=null==w?void 0:null===(t=w.meta)||void 0===t?void 0:t.total,D=null==w?void 0:w.data,P=!E&&(null==D?void 0:D.length)===0;(0,p.b8)(_&&!!(null==D?void 0:D.length),null!=D?D:[],"ingredient-".concat(null==n?void 0:n.name),10);let L=(0,a.EQ)({emptyCase:P,areProductsReady:!E&&null!=D}).with({emptyCase:!0},()=>(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsx)("p",{className:"text-center text-sm text-forest-green-500",children:l("no_products","This ingredient isn't listed in any products")})})).with({areProductsReady:!1},()=>(0,r.jsx)("div",{className:(0,x.cn)("grid grid-cols-1 xs:grid-cols-2 gap-2 align-middle md:gap-6 lg:gap-2 xl:grid-cols-4",s),children:(0,r.jsx)(N,{})})).with({areProductsReady:!0},()=>(0,r.jsx)("div",{className:(0,x.cn)("grid grid-cols-1 xs:grid-cols-2 gap-2 align-middle md:gap-6 lg:gap-2 xl:grid-cols-4",s),children:null==D?void 0:D.map(e=>(0,r.jsx)(i(),{href:(0,h.A)(e).getProductUrl(),rel:(0,h.A)(e).getProductUrlRel(),target:(0,h.A)(e).getProductUrlTarget(),onClick:(0,h.A)(e).openInternalUrl,prefetch:!1,className:"mx-auto w-full max-w-[400px] snap-start",children:(0,r.jsx)(o.N,{product:e,className:"shadow-lg",titleClassName:"xl:text-xl",footerClassName:"xl:flex-col-reverse xl:items-start xl:justify-between xl:gap-4"},e.uuid)},e.uuid))})).exhaustive();return(0,r.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-10 lg:items-center",children:[(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(i(),{href:"".concat(y._.ingredients,"/").concat(j),children:(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[f.gs&&(0,r.jsx)(d.o,{variant:u,className:"size-3 flex-shrink-0"}),(0,r.jsx)(g.w,{size:"h3",children:n.name})]})}),(0,r.jsx)("div",{className:"mb-4 mt-2 lg:hidden",children:(0,r.jsx)(k,{numberOfProducts:C,slug:j})}),(0,r.jsx)("div",{children:(0,r.jsx)(b.sU,{description:n.description})})]}),(0,r.jsx)("div",{className:"hidden flex-shrink-0 lg:block",children:(0,r.jsx)(k,{numberOfProducts:C,slug:j})})]}),L]})},N=()=>[1,2,3,4].map(e=>(0,r.jsx)(o.r,{className:"w-[15rem] shrink-0 flex-grow"},e))},79209:function(e,t,n){"use strict";n.d(t,{$E:function(){return a},c0:function(){return s},dM:function(){return l},wz:function(){return i}});var r=n(85893);let s=()=>(0,r.jsx)("div",{className:"h-[400px] w-full animate-pulse bg-forest-green-100 rounded","aria-label":"Loading gallery...",role:"status"}),l=()=>(0,r.jsxs)("div",{className:"h-[200px] w-full flex flex-col gap-2","aria-label":"Loading authentication options...",role:"status",children:[(0,r.jsx)("div",{className:"h-12 w-full animate-pulse bg-forest-green-100 rounded"}),(0,r.jsx)("div",{className:"h-12 w-full animate-pulse bg-forest-green-100 rounded"})]}),i=()=>(0,r.jsxs)("div",{className:"space-y-2","aria-label":"Loading content...",role:"status",children:[(0,r.jsx)("div",{className:"h-4 animate-pulse bg-forest-green-100 rounded w-3/4"}),(0,r.jsx)("div",{className:"h-4 animate-pulse bg-forest-green-100 rounded w-full"}),(0,r.jsx)("div",{className:"h-4 animate-pulse bg-forest-green-100 rounded w-5/6"})]}),a=()=>(0,r.jsx)("div",{className:"relative flex w-full flex-shrink-0 flex-col self-start md:w-2/5 md:max-w-[30rem]",children:(0,r.jsx)("div",{className:"aspect-square w-full rounded-md bg-white",role:"status","aria-label":"Gal\xe9ria bet\xf6lt\xe9se"})})},61767:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(20987),s=n(2809),l=n(30920);function i(e){return(0,r.J)({ingredient:e,getIngredientUrl(){let e=this.getSlug();return"".concat(l._.ingredients,"/").concat(e)},getSafetyCategory(){if(null==e)return{category:"unknown",colorVariant:"gray"};let{ewg_score_max:t}=e;return null==t?{category:"unknown",colorVariant:"gray"}:t<=2?{category:"safe",colorVariant:"success"}:t<=6?{category:"lowRisk",colorVariant:"warning"}:t<=10?{category:"highRisk",colorVariant:"error"}:{category:"unknown",colorVariant:"gray"}},getSlug:()=>null==e?void 0:e.slug,getFunction(){var e,t;let n=this.ingredient;if(null==n?void 0:null===(e=n.categories)||void 0===e?void 0:e.length)return null===(t=n.categories[0])||void 0===t?void 0:t.name},getFunctions(){var e;let t=this.ingredient;if(null==t?void 0:null===(e=t.categories)||void 0===e?void 0:e.length)return t.categories.map(e=>({name:e.name,slug:e.slug,url:"".concat(l._.functions,"/").concat(e.slug)}))},getFunctionAbbreviations(){let e=this.ingredient;return e&&e.categories?e.categories.map(e=>({abbreviation:e.abbreviation,slug:e.slug,name:e.name})).filter(s.C_):[]},getCategorySlug(){var e,t;let n=this.ingredient;if(null==n?void 0:null===(e=n.categories)||void 0===e?void 0:e.length)return null==n?void 0:null===(t=n.categories[0])||void 0===t?void 0:t.slug},getCategoryUrl(){let e=this.getCategorySlug();return"".concat(l._.products,"/categories/").concat(e)},getFunctionUrl(){var e,t,n;let r=null===(n=this.ingredient)||void 0===n?void 0:null===(t=n.categories)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.uuid;return r?"".concat(l._.ingredients,"?functions=").concat(r):""}})}},326:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return b},default:function(){return j}});var r=n(85893),s=n(75652),l=n(72984),i=n(69485),a=n(58312),c=n(80558),o=n(11255),d=n(69617),u=n(99384),g=n(24511),f=n(40384),x=n(66547),m=n(55403),h=n(40867),p=n(18974);let v="left-advertisement",y="right010";var b=!0;function j(e){let{productCategories:t}=e,{t:n}=(0,p.LD)("ingredients"),{adScriptJsx:f,adsReady:h}=(0,s.M)(x._i.ingredients);(0,x.h3)(h,[...d.rd,{place:y,id:v}]);let b=k({productCategories:t});return(0,r.jsxs)(d.Ar,{header:(0,r.jsx)(i.h,{}),footer:(0,r.jsx)(l.$,{}),children:[f,(0,r.jsx)(g.V,{title:b,hideDefaultSuffix:!0}),(0,r.jsx)(u.V,{description:n("page_description","Ingredients Description"),canonical:(0,m.Y)()}),(0,r.jsxs)("div",{className:"section-content grid grid-cols-1 pt-6 lg:grid-cols-ingredients-page lg:gap-10",children:[(0,r.jsxs)("aside",{className:"col-start-1 col-end-2 mb-8 hidden lg:flex lg:flex-col lg:gap-10 min-w-[300px]",children:[(0,r.jsx)("div",{id:v,"data-cts-position":y,className:"max-w-full w-[300px]"}),(0,r.jsx)(a.p,{productCategories:t})]}),(0,r.jsxs)("div",{className:"col-start-1 col-end-3 flex flex-col lg:col-start-2",children:[(0,r.jsx)(c.L,{productCategories:t}),(0,r.jsx)(o.Q,{})]})]})]})}let k=e=>{let{productCategories:t}=e,{t:n}=(0,p.LD)("ingredients"),r=(0,p.NE)(),s=(0,f.J3)((0,h.H1)("functions")),l=(0,f.J3)((0,h.H1)("ewgScore")),i=[t.filter(e=>e.uuid&&s.includes(e.uuid)).map(e=>e.name),a.Q.filter(e=>l.includes(e)).map(e=>n("filter.ewg_score.".concat(e)))].flat().join(", ");
26return[n("page_title","Ingredients"),r,i.length?i:null].filter(Boolean).join(" | ")}},55403:function(e,t,n){"use strict";n.d(t,{Y:function(){return s}});var r=n(11163);let s=()=>(0,r.useRouter)().asPath.split("?")[0]||"/"},99066:function(e,t,n){"use strict";n.d(t,{sU:function(){return g}});var r=n(85893),s=n(5152),l=n.n(s),i=n(79209),a=n(48755),c=n(47311);let o=["ordered","unordered"],d=l()(()=>n.e(879).then(n.t.bind(n,80879,23)),{loadableGenerated:{webpack:()=>[80879]},ssr:!1,loading:i.wz}),u={list:e=>{let{data:t,classNames:n}=e;if(!t||!t.items||!Array.isArray(t.items))return(0,r.jsx)(r.Fragment,{});let s="text-forest-green-400 ml-6 mb-6 list-inside",l=t.style&&o.includes(t.style)?t.style:"unordered",i=t.items.map((e,t)=>(0,r.jsx)("li",{className:"",children:(0,c.ZP)(e)},t));return i.length<=0?(0,r.jsx)(r.Fragment,{}):"ordered"===l?(0,r.jsx)("ol",{className:(0,a.cn)(s,"list-decimal",n),children:i}):(0,r.jsx)("ul",{className:(0,a.cn)(s,"list-disc",n),children:i})},paragraph:e=>{let{data:t,classNames:n}=e;if(!t)return(0,r.jsx)(r.Fragment,{});let s=null;return"string"==typeof t?s=t:"object"==typeof t&&t.text&&"string"==typeof t.text&&(s=t.text),s?(0,r.jsx)("p",{className:(0,a.cn)("",n),children:(0,c.ZP)(s)}):(0,r.jsx)(r.Fragment,{})},image:e=>{let{data:t,classNames:n}=e;return t?(0,r.jsxs)("figure",{className:(0,a.cn)("relative mb-14 flex max-h-[40rem] w-full max-w-full flex-col items-center justify-center overflow-hidden"),children:[(0,r.jsx)("img",{src:"https://placehold.co/600x400/png",alt:t.caption||"",className:(0,a.cn)("max-w-full",n)}),t.caption&&(0,r.jsx)("figcaption",{className:(0,a.cn)("pt-4 text-sm font-medium text-forest-green-300"),children:(0,c.ZP)(t.caption)})]}):(0,r.jsx)(r.Fragment,{})}},g=e=>{let{description:t,paragraphClassName:n}=e;return Array.isArray(t)?(0,r.jsx)("div",{className:"space-y-2",children:t.map(e=>(0,r.jsx)("p",{className:(0,a.cn)("whitespace-wrap hyphens-auto break-words text-base text-forest-green-400","[&>a]:underline [&>a]:font-bold",n),children:e},e))}):"string"==typeof t?(0,r.jsx)("p",{className:(0,a.cn)("whitespace-wrap mb-2 hyphens-auto break-words text-base text-forest-green-400","[&>a]:underline [&>a]:font-bold",n),children:t}):(0,r.jsx)(d,{renderers:u,data:t,classNames:{paragraph:(0,a.cn)("text-forest-green-400 mb-2 text-base whitespace-normal break-words hyphens-auto","[&>a]:underline [&>a]:font-bold",n),header:{h1:"pb-4 font-grotesk text-4xl md:text-5xl",h2:"pb-4 font-grotesk text-3xl font-bold tracking-[-0.0075em] text-forest-green-500",h3:"pb-4 font-grotesk text-2xl font-bold tracking-[-0.006em] text-forest-green-500",h4:"pb-4 font-grotesk text-xl font-bold tracking-[-0.005em] text-forest-green-500",h5:"pb-4 font-grotesk text-xl font-bold tracking-[-0.005em] text-forest-green-500",h6:"pb-4 font-grotesk text-xl font-bold tracking-[-0.005em] text-forest-green-500"},list:"space-y-1 [&>li>a]:underline [&>li>a]:font-bold"}})}},1832:function(e,t,n){!function(e,t){let n={delay:500,minDuration:200,ssr:!0};e.defaultOptions=n,e.useSpinDelay=function(e,r){r=Object.assign({},n,r);let s=function(){let[e,n]=t.useState(!0);return t.useEffect(()=>{n(!1)},[]),e}(),l=r.ssr&&s&&e?"DISPLAY":"IDLE",[i,a]=t.useState(l),c=t.useRef(null);return t.useEffect(()=>{if(e&&("IDLE"===i||s)){clearTimeout(c.current);let t=s?0:r.delay;c.current=setTimeout(()=>{if(!e)return a("IDLE");c.current=setTimeout(()=>{a("EXPIRE")},r.minDuration),a("DISPLAY")},t),s||a("DELAY")}e||"DISPLAY"===i||(clearTimeout(c.current),a("IDLE"))},[e,i,r.delay,r.minDuration]),t.useEffect(()=>()=>clearTimeout(c.current),[]),"DISPLAY"===i||"EXPIRE"===i}}(t,n(67294))},46069:function(e,t,n){"use strict";n.d(t,{FZ:function(){return y},fC:function(){return w}});var r=n(87462),s=n(67294),l=n(28771),i=n(25360),a=n(36206),c=n(77342),o=n(57898),d=n(7546),u=n(29115),g=n(75320);let f="Checkbox",[x,m]=(0,i.b)(f),[h,p]=x(f),v=(0,s.forwardRef)((e,t)=>{let{__scopeCheckbox:n,name:i,checked:o,defaultChecked:d,required:u,disabled:f,value:x="on",onCheckedChange:m,...p}=e,[v,y]=(0,s.useState)(null),w=(0,l.e)(t,e=>y(e)),N=(0,s.useRef)(!1),E=!v||!!v.closest("form"),[_=!1,C]=(0,c.T)({prop:o,defaultProp:d,onChange:m}),D=(0,s.useRef)(_);return(0,s.useEffect)(()=>{let e=null==v?void 0:v.form;if(e){let t=()=>C(D.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[v,C]),(0,s.createElement)(h,{scope:n,state:_,disabled:f},(0,s.createElement)(g.WV.button,(0,r.Z)({type:"button",role:"checkbox","aria-checked":j(_)?"mixed":_,"aria-required":u,"data-state":k(_),"data-disabled":f?"":void 0,disabled:f,value:x},p,{ref:w,onKeyDown:(0,a.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,a.M)(e.onClick,e=>{C(e=>!!j(e)||!e),E&&(N.current=e.isPropagationStopped(),N.current||e.stopPropagation())})})),E&&(0,s.createElement)(b,{control:v,bubbles:!N.current,name:i,value:x,checked:_,required:u,disabled:f,style:{transform:"translateX(-100%)"}}))}),y=(0,s.forwardRef)((e,t)=>{let{__scopeCheckbox:n,forceMount:l,...i}=e,a=p("CheckboxIndicator",n);return(0,s.createElement)(u.z,{present:l||j(a.state)||!0===a.state},(0,s.createElement)(g.WV.span,(0,r.Z)({"data-state":k(a.state),"data-disabled":a.disabled?"":void 0},i,{ref:t,style:{pointerEvents:"none",...e.style}})))}),b=e=>{let{control:t,checked:n,bubbles:l=!0,...i}=e,a=(0,s.useRef)(null),c=(0,o.D)(n),u=(0,d.t)(t);return(0,s.useEffect)(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==n&&t){let r=new Event("click",{bubbles:l});e.indeterminate=j(n),t.call(e,!j(n)&&n),e.dispatchEvent(r)}},[c,n,l]),(0,s.createElement)("input",(0,r.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:!j(n)&&n},i,{tabIndex:-1,ref:a,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function j(e){return"indeterminate"===e}function k(e){return j(e)?"indeterminate":e?"checked":"unchecked"}let w=v}},function(e){e.O(0,[9226,6859,5675,4878,723,9619,150,3995,9316,1375,6392,5223,384,2888,9774,179],function(){return e(e.s=45750)}),_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.