1import m from"./DSgpSRwI.js";import{d as y,D as f,Z as r,u as t,$ as p,W as I,a1 as b}from"./B3G2-lE-.js";import{u as n}from"./CP19N3Xb.js";import{k as h,_ as x}from"./BgkcTqzc.js";import"./CxPVDAT_.js";import"./CkpqCWMX.js";import"./C_0NVBaR.js";import"./DSH45RND.js";import"./CXoPj7wT.js";const D=y({__name:"DietaryToggles",props:{dietIds:{},selectedDietIds:{},isLightBackground:{type:Boolean}},emits:["updateDietsToInclude"],setup(e,{emit:g}){b(s=>({v2358b312:t(i).sizing[16],v2358ac0c:t(i).sizing[24],v586d27f9:t(i).colors.secondary.lightGrey}));const i=h,d=e,a=g,l=s=>{d.selectedDietIds.includes(s)?a("updateDietsToInclude",d.selectedDietIds.filter(o=>o!==s)):a("updateDietsToInclude",[...d.selectedDietIds,s])};return(s,o)=>{const c=m;return I(),f("div",{class:p(s.$style.dietaryContainer)},[r(c,{label:t(n)("food-type-vegan"),text:t(n)("food-type-vegan-text"),toggled:e.selectedDietIds?.includes(e.dietIds[0])||!1,"is-light-background":e.isLightBackground,onChange:o[0]||(o[0]=u=>l(e.dietIds[0]))},null,8,["label","text","toggled","is-light-background"]),r(c,{label:t(n)("food-type-vegetarian"),text:t(n)("food-type-vegetarian-text"),toggled:e.selectedDietIds?.includes(e.dietIds[1])||!1,"is-light-background":e.isLightBackgroun
1d,onChange:o[1]||(o[1]=u=>l(e.dietIds[1]))},null,8,["label","text","toggled","is-light-background"])],2)}}}),k="_dietaryContainer_q28b0_2",C={dietaryContainer:k},v={$style:C},E=x(D,[["__cssModules",v]]);export{E as default};
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.