PageSourceSearch

https://www.hellofresh.de/_next/static/chunks/pages/food-profile-d5b37b94ffac2f03.js

js hellofresh.de collected 2026-09-25 23:39:07 UTC 183,936 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[67626,21036,22447,13451,168],{454110:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/food-profile",function(){return n(659922)}])},747012:function(e,t,n){"use strict";n.d(t,{Sj:function(){return b},h5:function(){return p},rm:function(){return h}});var r,o,i=n(671718),l=n(26124),a=n(447178),u=n(456552),c=n(699219),s=n(140224);function f(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var p=(r=function(e,t){var n,r,o,l,a,u,c,s,f,p,b,h,y,m,v,g,O=arguments;return function(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(w){switch(w.label){case 0:n=O.length>2&&void 0!==O[2]?O[2]:i.Z,r=e.postcode,l=void 0===(o=e.numDeliveries)?4:o,a=e.locale,u=e.systemCountry,c=e.parentSpan,s=e.initialOrder,f=e.customerPriority,p=e.cutoffTimeThreshold,b=e.customerJourney,h=e.customerUUID,y=e,m=e,y.family&&(v=y.family),m.product&&(g=m.product),w.label=1;case 1:return w.trys.push([1,3,,4]),[4,n("/api/delivery_dates_options",t,{query:d({zip:r,numDeliveries:l,locale:a,country:u},v?{family:v}:{},g?{product:g}:{},s?{initialOrder:s}:{},f?{customerPriority:f}:{},p?{cutoffTimeThreshold:p}:{},b?{customerJourney:b}:{}),parentSpan:c,headers:d({},h?{"X-Customer-UUID":h}:{}),fetchSpanAttributes:{"request.backend_service":"delivery-options-service","request.backend_action":"get-delivery-options-by-postcode"}})];case 2:return[2,w.sent().json()];case 3:throw w.sent();case 4:return[2]}})},o=function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function l(e){f(i,n,o,l,a,"next",e)}function a(e){f(i,n,o,l,a,"throw",e)}l(void 0)})},function(e,t){return o.apply(this,arguments)}),b=function(e,t){var n=d({},e,(0,s.O)()),r=[c.Z["delivery-options.byPostcode"],n];return(0,l.Z)(r,function(e){return p(n,r,e)},t)},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(0,a.Z)().fetch,n=(0,s.O)();return(0,u.useQueries)(null==e?void 0:e.map(function(e,r){var o,i,l=(o=d({},e,n),i=i={key:r},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))}),o),a=[c.Z["delivery-options.byPostcode.multiple"],l];return{queryKey:a,queryFn:function(){return p(l,a,t)},enabled:!!e.postcode}}))}},819899:function(e,t,n){"use strict";n.d(t,{r:function(){return p}});var r,o,i=n(456552),l=n(808215),a=n(671718),u=n(447178),c=n(699219);function s(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var d=(r=function(e,t){var n,r,o,i,l,u,c=arguments;return function(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(s){switch(s.label){case 0:return n=e.customerUUID,r=e.regionCode,o=e.brand,i=e.data,l=e.exclusion,u=e.source,[4,(c.length>2&&void 0!==c[2]?c[2]:a.Z)("/profile-service/v2/customers/".concat(n,"/profile"),t,{method:"PATCH",headers:{"Content-Type":"application/json"},query:f({regionCode:r,brand:o},null!=l&&{exclusion:l},void 0!==u&&{source:u}),data:i,fetchSpanAttributes:{"request.backend_service":"profile-service","request.backend_action":"update-profile"}})];case 1:return[2,s.sent().json()]}})},o=function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function l(e){s(i,n,o,l,a,"next",e)}function a(e){s(i,n,o,l,a,"throw",e)}l(void 0)})},function(e,t){return o.apply(this,arguments)}),p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.useQueryClient)(),n=(0,u.Z)().fetch,r=(0,l.Z)(),o=r.brand,a=r.region_code,s={customerUUID:"me"};return(0,i.useMutation)(function(e){var t=f({brand:o,regionCode:a},s,e),r=[c.Z["profile.update-v2-customer-profile"],t];return d(t,r,n)},f({onSuccess:function(n,r,i){var l,u;t.setQueryData([c.Z["profile.get-v2-customer-profile"],f({customerUUID:null!==(u=null==r?void 0:r.customerUUID)&&void 0!==u?u:s.customerUUID,brand:o,regionCode:a},(null==r?void 0:r.exclusion)!=null&&{exclusion:r.exclusion})],n),t.invalidateQueries([c.Z["profile.get-v2-customer-profile"]]),t.invalidateQueries([c.Z["profile.get-profile-completion"]]),t.invalidateQueries([c.Z["profile.get-profile-questions"]]),t.invalidateQueries([c.Z["customer.subscriptions"]]),t.invalidateQueries([c.Z["customer.sub-brand-subscriptions"]]),t.invalidateQueries(["subscriptions.byId"]),t.invalidateQueries([c.Z["menu.byWeek"]]),null===(l=e.onSuccess)||void 0===l||l.call(e,n,r,i)},onSettled:function(t,n,r,o){var i;null===(i=e.onSettled)||void 0===i||i.call(e,t,n,r,o)}},e))}},42208:function(e,t,n){"use strict";n.d(t,{kL:function(){return c}
1,wM:function(){return a},wk:function(){return u}});var r=n(892940),o=r.z.object({id:r.z.string(),name:r.z.string(),handle:r.z.string(),legacy_handles:r.z.array(r.z.string()),legacy_ids:r.z.array(r.z.string()),country:r.z.string(),specs:r.z.object({meals:r.z.union([r.z.number(),r.z.string()]),size:r.z.union([r.z.number(),r.z.string()]),recurrency:r.z.number().int()}).passthrough(),meal_swap:r.z.boolean(),meal_swap_default_choice:r.z.string(),swappable_meals:r.z.string(),public:r.z.boolean(),active:r.z.boolean(),is_subscribable:r.z.boolean(),is_available_for_extra_meals:r.z.boolean(),is_preset_enabled:r.z.boolean(),sort:r.z.number().int(),family:r.z.string(),created_at:r.z.string(),updated_at:r.z.string()}).passthrough(),i=r.z.object({total:r.z.number().int(),take:r.z.number().int(),skip:r.z.number().int(),count:r.z.number().int(),items:r.z.array(o)}).passthrough(),l=r.z.object({id:r.z.string(),country:r.z.string(),handle:r.z.string(),name:r.z.string(),headline:r.z.string(),contents:r.z.object({benefits:r.z.string(),price:r.z.string(),price_unit:r.z.string(),price_label:r.z.string(),price_sidenote:r.z.string(),small_print:r.z.string(),image:r.z.string(),fb_url:r.z.string(),description:r.z.string()}).passthrough(),template:r.z.object({meals:r.z.array(r.z.any()),size:r.z.array(r.z.any()),recurrency:r.z.array(r.z.any())}).passthrough(),tags:r.z.array(r.z.string()),prefix:r.z.string(),promotes:r.z.array(r.z.any()),icons:r.z.object({"1x":r.z.string(),"2x":r.z.string(),"3x":r.z.string()}).passthrough(),active:r.z.boolean(),compatible:r.z.array(r.z.string()),converts:r.z.string(),auto_convert:r.z.string(),recipe_family:r.z.string(),show_mobile:r.z.boolean(),sort:r.z.number().int(),created_at:r.z.string(),updated_at:r.z.string()}).passthrough(),a=r.z.object({total:r.z.number().int(),take:r.z.number().int(),skip:r.z.number().int(),count:r.z.number().int(),items:r.z.array(l)}).passthrough(),u=i,c=o},650603:function(e,t,n){"use strict";n.d(t,{Cp:function(){return k}});var r=n(687800);n(827378);var o=n(165218),i=n.n(o),l=n(768587),a=n(313954),u=n(43011),c=n(602307),s=n(169821),f=n(184883),d=n(493757),p=n(506685),b=n(430959),h=n(132021),y=n(763724),m=n(377380),v=n(589902),g=n(694414),O=n(389073),w=n(52566),x=n(481248);function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function P(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var Z=i()(function(){return Promise.all([n.e(40412),n.e(46045),n.e(35919)]).then(n.bind(n,635919)).then(function(e){return e.LeadBarFeature})},{loadableGenerated:{webpack:()=>[635919]}}),_=i()(function(){return Promise.all([n.e(40412),n.e(15863),n.e(50883)]).then(n.bind(n,875536)).then(function(e){return e.FooterFeature})},{loadableGenerated:{webpack:()=>[875536]}}),S="56px",C=function(e){var t,n=e.enableSSRCustomerHeader,o=e.nonStickyDesktopHeader,i=e.disableHeader,h=e.disableFooter,y=e.disableMinHeight,j=e.headerFullWidth,P=e.ssrPayload,C=e.children,k=(0,u.Z)();return(0,r.tZ)(c.Z,{claim:{name:"activations-rte",githubTeam:"hellofresh/activations-rte",tribe:"conversions",alliance:"growth",jiraPrefix:"USCRO",slackChannel:"#squad-curation",slackAlertsChannel:"#squad-curation",skipLabelsOnPR:!1,teamIdentifier:"activations-rte"},children:(0,r.tZ)(f.Z,{scope:"universal-layout",children:(0,r.tZ)(a.Z,{componentName:"universal-layout",children:(0,r.tZ)(b.Z,{filtrationIdentifier:null!==(t=null==P?void 0:P.filtrationIdentifier)&&void 0!==t?t:"",children:(0,r.BX)(l.xu,{position:"relative","data-test-id":"universal-layout",backgroundColor:"alias.page-background.alternative",children:[(0,r.tZ)(f.Z,{scope:"layouts-universal-top-banner",children:(0,r.tZ)(a.Z,{componentName:"layouts-universal-top-banner",children:(0,r.tZ)(d.Z,{children:(0,r.tZ)(s.Z,{suspense:!0,children:(0,r.tZ)(p.Z,{})})})})}),!(void 0!==i&&i)&&(0,r.tZ)(f.Z,{scope:"layouts-universal-header",children:(0,r.BX)(a.Z,{componentName:"layouts-universal-header",children:[(0,r.tZ)(x.Z,{}),(0,r.tZ)(w.D9,{fullWidth:void 0!==j&&j,children:(0,r.tZ)(l.xu,{position:["sticky",void 0!==o&&o?"relative":"sticky"],top:"0",zIndex:"115",minHeight:S,"data-test-id":"universal-layout-header-container",children:(0,r.tZ)(m.ZP,{queryKey:P.contentfulHeaderEntriesKey,children:void 0!==n&&n||k?(0,r.tZ)(O.default,{}):(0,r.tZ)(g.Z,{})})})})]})}),(0,r.tZ)(a.Z,{componentName:"layouts-universal-page",children:(0,r.tZ)(l.xu,{flex:"1",minHeight:void 0!==y&&y?"unset":"100vh",children:C})}),!(void 0!==h&&h)&&(0,r.tZ)(f.Z,{scope:"layouts-universal-footer",children:(0,r.BX)(a.Z,{componentName:"layouts-universal-footer",children:[(0,r.tZ)(Z,{}),(0,r.tZ)(v.ZP,{queryKey:P.contentfulFooterEntriesKey,children:(0,r.tZ)(_,{})})]})})]})})})})})},k=function(e){var t=e.navigationComponent,n=e.children,o=e.disableHeader,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["navigationComponent","children","disableHeader"]);return(0,r.tZ)(c.Z,{claim:{name:"activations-rte",githubTeam:"hellofresh/activations-rte",tribe:"conversions",alliance:"growth",jiraPrefix:"USCRO",slackChannel:"#squad-curation",slackAlertsChannel:"#squad-curation",skipLabelsOnPR:!1,teamIdentifier:"activations-rte"},children:(0,r.tZ)(f.Z,{scope:"side-navigation-universal-layout",children:(0,r.tZ)(a.Z,{componentName:"layouts-universal-side-navigation",children:(0,r.BX)(C,P(j({},i),{disableHeader:o,children:[(0,r.tZ)(l.xu,P(j({position:"sticky",zIndex:2},!o&&{top:S}),{children:(0,r.tZ)(f.Z,{scope:"layouts-universal-notifications",children:(0,r.tZ)(a.Z,{componentName:"layouts-universal-notifications",children:(0,r.tZ)(h.Z,{children:(0,r.tZ)(y.Z,{})})})})})),(0,r.BX)(l.xu,{minHeight:"100vh",display:[null,"flex"],maxWidth:["100%","960px","1144px"],px:["xs","md-1","zero"],mx:"auto",pt:["sm-1","md-2"],children:[(0,r.tZ)(l.xu,{as:"aside",width:[1,1/4],mr:["zero","md-1","md-2"],children:t}),(0,r.tZ)(l.xu,{width:[1,3/4],children:n})]})]}))})})})};t.ZP=C},377380:function(e,t,n){"use strict";n.d(t,{yY:function(){return c}});var r=n(687800),o=n(827378),i=n(456552),l=n(497249),a=n(344884),u=(0,o.createContext)({segment:[],label:[]}),c=function(){return(0,o.useContext)(u)};t.ZP=function(e){var t=e.queryKey,n=e.children,c=(0,i.useQueryClient)(),s=(0,l.T)(),f=(0,o.useMemo)(function(){var e,n,r=c.getQueryData(t);return{segment:null!==(e=null==r?void 0:r.segment)&&void 0!==e?e:[],label:null!==(n=null==r?void 0:r.label)&&void 0!==n?n:[]}},[c,t]);return(0,o.useEffect)(function(){if(!f.segment.length||!f.label.length){var e=s.startSpan("contentful-header-prov
1ider.missing-data");e.setAttributes({segmentCount:f.segment.length,labelCount:f.label.length}),e.setStatus({code:a.Z.ERROR}).end()}},[f,s]),(0,r.tZ)(u.Provider,{value:f,children:n})}},710124:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var r={dietaryPreferences:{path:"taste.dietaryPreferences",labelKey:"food_profile.dietary_habits.diet_type_list_placeholder"},exclusions:{path:"taste.exclusions",labelKey:"food_profile.dietary_habits.exclude_subtitle"},primaryProteins:{path:"taste.primaryProteins",labelKey:"food_profile.dietary_habits.proteins_subtitle"},flavors:{path:"taste.flavors",labelKey:"food_profile.dietary_habits.flavors_subtitle"},goals:{path:"goals.goals",labelKey:"food_profile.goals.personal_list_placeholder"},nutritions:{path:"taste.nutritions",labelKey:"food_profile.goals.nutrition_list_placeholder"},cuisines:{path:"taste.cuisines",labelKey:"food_profile.cooking_preferences.cuisine_subtitle"},dishTypes:{path:"taste.dishTypes",labelKey:"food_profile.cooking_preferences.dish_type_subtitle"},mealTypes:{path:"taste.mealTypes",labelKey:"food_profile.cooking_preferences.cooking_style_list_placeholder"}}},428581:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(809805),o=function(){var e,t=(0,r.Ae)("food_profile_image_cache_version_config");if(!t.isReady)return null;var n=null===(e=t.value)||void 0===e?void 0:e.version;return"number"==typeof n?n:null}},890977:function(e,t,n){"use strict";n.d(t,{g:function(){return l}});var r=n(827378),o=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:60;if(0===n)return 0;for(var i=0,l=0,a=0;a<n&&a<t.length;a++){var u=t[a];if(u){var c=u.offsetWidth+(a>0?r:0);if(i+c+(a<n-1?r+o:0)>e&&l>0)break;i+=c,l++}}return Math.max(1,l)};function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var l=function(e){var t,n=(0,r.useRef)(null),l=(0,r.useRef)([]),a=(0,r.useRef)(!1),u=function(e){if(Array.isArray(e))return e}(t=(0,r.useState)(e))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return i(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(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=u[0],s=u[1],f=(0,r.useCallback)(function(){if(!a.current&&n.current&&0!==e){a.current=!0;var t=o(n.current.offsetWidth,l.current,e);s(function(e){return e!==t?t:e}),setTimeout(function(){a.current=!1},0)}},[e]),d=(0,r.useRef)(f);return d.current=f,(0,r.useEffect)(function(){if(0===e){s(0);return}var t=function(){return d.current()},r=setTimeout(t,0),o=new ResizeObserver(t);return n.current&&o.observe(n.current),function(){clearTimeout(r),o.disconnect(),a.current=!1}},[e]),{containerRef:n,tagsRef:l,quantityToShow:c}}},203666:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(687800),o=n(827378),i=n(169821),l=n(570084),a=n(953137),u=n(117608),c=function(e,t){var n=(0,u.Z)(),r=(0,a.u)({},{suspense:!1}).data,i=(0,o.useRef)(!1);(0,o.useEffect)(function(){if(!i.current&&(!n||t&&("prospect"===t&&(null==r?void 0:r.count)!==0||"active"===t&&(null==r?void 0:r.count)===0))){e(),i.current=!0;return}},[n,r,t,e])},s=function(e){var t=e.children,n=e.redirectPath,i=void 0===n?"/login":n,a=e.customerType;return c((0,o.useCallback)(function(){return(0,l.r)(i)},[i]),a),(0,r.tZ)(o.Fragment,{children:t})},f=function(e){return(0,r.tZ)(i.Z,{fallback:e.fallback,children:(0,r.tZ)(s,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e))})}},659922:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return oA},default:function(){return oE}});var r,o,i,l,a,u,c,s=n(687800),f=n(827378),d=n(768587),p=n(631540),b=n(184883),h=n(132021),y=n(763724),m=n(581340),v=n(31748),g=n(650603),O="food-profile",w=function(e){return"quiz"===e},x=n(463171),j=n(725379),P=function(){var e=(0,x.Z)("enable_food_profile_v2").isReady;return{isEnabled:(0,j.K)()&&e,isReady:e}},Z=n(783244),_="hf_food_profile_onboarding_seen";function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var C=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,Z.Z)(_))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return S(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,2)}}
1(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.")}(),n=t[0],r=t[1];return["true"===n,function(){return r("true")}]},k=null,A=function(e){k=e},E=n(52130),z=n(485863),I="unknown",D=function(e){return{fpAttribute:e.fpAttribute,fpKey:e.fpKey,fpValue:"number"==typeof e.fpValue?e.fpValue:null}},R=function(e){return 0===e.length?[{fpAttribute:I,fpKey:null,fpValue:null}]:e.map(D)},T=function(e){var t=e.status,n=e.systemMessage,r=R(e.editedAttributes).map(function(e){return z.uS.foodProfile(e)});return z.uS.janusEvent({event:z.uS.event({systemMessage:void 0===n?null:n,systemStatus:t}),foodProfileEntities:r})},B=n(848074),q=function(e){var t,n=e.fpAttribute,r=e.fpKey,o=e.fpValue,i=e.uiComponentName,l=e.uiComponentLabel,a=B.h.foodProfile(D({fpAttribute:n,fpKey:r,fpValue:o})),u=B.h.uiComponent({uiComponentName:void 0===i?"food_profile_option_button":i,uiComponentLabel:null!==(t=null!=l?l:r)&&void 0!==t?t:null});return B.h.janusEvent({foodProfile:a,uiComponent:u})},M=n(294592),F=function(e){var t=e.lastIndexOf(".");return -1===t?e:e.slice(t+1)},X=function(e){var t=e.questionId,n=e.entryPoint,r=void 0===n?M.N9.Banner:n,o=M.lj.foodProfile(D({fpAttribute:F(t),fpKey:null,fpValue:null}));return M.lj.janusEvent({entryPointEntities:[M.lj.entryPoint({entryPoint:r})],foodProfile:o})},L=n(72613),V=function(e){var t,n,r=e.editedAttributes,o=e.uiComponentName,i=e.uiComponentLabel,l=e.questionId,a=R(r).map(function(e){return L.r.foodProfile(e)}),u=null!=l?F(l):null!==(n=null===(t=r[0])||void 0===t?void 0:t.fpAttribute)&&void 0!==n?n:"unknown";return L.r.janusEvent({foodProfileEntities:a,uiComponent:L.r.uiComponent({uiComponentName:null!=o?o:u,uiComponentLabel:void 0===i?null:i})})},N=n(613769),U=function(e){var t,n,r=e.editedAttributes,o=e.questionId,i=e.uiComponentName,l=e.uiComponentLabel,a=(r.length>0?R(r):[D({fpAttribute:null!=o?F(o):I,fpKey:null,fpValue:null})]).map(function(e){return N.j.foodProfile(e)}),u=null!=o?F(o):null!==(n=null===(t=r[0])||void 0===t?void 0:t.fpAttribute)&&void 0!==n?n:I;return N.j.janusEvent({foodProfileEntities:a,uiComponent:N.j.uiComponent({uiComponentName:null!=i?i:u,uiComponentLabel:void 0===l?null:l})})},Q=n(964018),H=function(e){var t=e.questionId;return Q.A.janusEvent({foodProfile:Q.A.foodProfile(D({fpAttribute:F(t),fpKey:null,fpValue:null}))})},K=n(497868),W=function(e){var t=e.questionId;return K.d.janusEvent({foodProfile:K.d.foodProfile(D({fpAttribute:F(t),fpKey:null,fpValue:null}))})},Y=n(401498),J=function(e){var t=e.editedAttributes;return Y.d.janusEvent({foodProfileEntities:R(t).map(function(e){return Y.d.foodProfile(e)})})},$=n(936421),G=function(e){var t=e.editedAttributes;return $.M.janusEvent({foodProfileEntities:R(t).map(function(e){return $.M.foodProfile(e)})})},ee=n(441199),et=function(e){var t=R(e.editedAttributes).map(function(e){return ee.A.foodProfile(e)});return ee.A.janusEvent({foodProfileEntities:t})},en=n(502270),er=function(e){var t=e.fpAttribute,n=e.uiComponentName,r=e.uiComponentLabel,o=en.T.foodProfile(D({fpAttribute:t,fpKey:null,fpValue:null})),i=en.T.uiComponent({uiComponentName:void 0===n?t:n,uiComponentLabel:void 0===r?null:r});return en.T.janusEvent({foodProfile:o,uiComponent:i})},eo=n(247861),ei=function(e){var t=e.fpAttribute,n=e.uiComponentName,r=e.uiComponentLabel,o=eo.b.foodProfile(D({fpAttribute:t,fpKey:null,fpValue:null})),i=eo.b.uiComponent({uiComponentName:void 0===n?t:n,uiComponentLabel:void 0===r?null:r});return eo.b.janusEvent({foodProfile:o,uiComponent:i})},el=n(697626),ea=function(e){var t=e.editedAttributes;return el.B.janusEvent({foodProfileEntities:R(t).map(function(e){return el.B.foodProfile(e)})})},eu=n(643600),ec=n(148920),es=n(372678),ef=n(449074),ed=n(60074),ep=function(e){var t=e.eventName,n=e.trackJanusEvent,r=e.build,o=e.emptyEditedAttributesCount,i=e.emptyDiffExtra;try{0===o&&(0,ed.Tb)(Error("".concat(t," fired with empty edited attributes; emitting sentinel entity")),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({level:"warning",tags:{event:t,component:"useFoodProfileTracking"}},i?{extra:i}:{})),n(r())}catch(e){(0,ed.Tb)(e,{tags:{event:t,component:"useFoodProfileTracking"}})}},eb=function(){var e=(0,E.L3)().trackJanusEvent;return{trackProfileUpdate:(0,f.useCallback)(function(t){var n;ep({eventName:"FoodProfile_ProfileUpdate_SystemAction",trackJanusEvent:e,build:function(){return T(t)}
1,emptyEditedAttributesCount:t.editedAttributes.length,emptyDiffExtra:{status:t.status,systemMessage:null!==(n=t.systemMessage)&&void 0!==n?n:null}})},[e]),trackChangeFoodProfile:(0,f.useCallback)(function(t){ep({eventName:"FoodProfile_Change_FoodProfile_Button_Click",trackJanusEvent:e,build:function(){return q(t)}})},[e]),trackFunnelQuizStepImpression:(0,f.useCallback)(function(t){ep({eventName:"FoodProfileQuiz_ProgressTracker_FunnelQuizStep_Impression",trackJanusEvent:e,build:function(){return X(t)}})},[e]),trackQuizChangeFoodProfileButtonClick:(0,f.useCallback)(function(t){ep({eventName:"FoodProfileQuiz_Change_FoodProfile_Button_Click",trackJanusEvent:e,build:function(){return V(t)},emptyEditedAttributesCount:t.editedAttributes.length})},[e]),trackQuizContinueFoodProfileButtonClick:(0,f.useCallback)(function(t){ep({eventName:"FoodProfileQuiz_Continue_FoodProfile_Button_Click",trackJanusEvent:e,build:function(){return U(t)}})},[e]),trackQuizBackNavigationButtonClick:(0,f.useCallback)(function(t){ep({eventName:"FoodProfileQuiz_Back_Navigation_Button_Click",trackJanusEvent:e,build:function(){return H(t)}})},[e]),trackQuizCloseNavigationButtonClick:(0,f.useCallback)(function(t){ep({eventName:"FoodProfileQuiz_Close_Navigation_Button_Click",trackJanusEvent:e,build:function(){return W(t)}})},[e]),trackQuizCloseFoodProfileButtonClick:(0,f.useCallback)(function(t){ep({eventName:"FoodProfileQuiz_Close_FoodProfile_Button_Click",trackJanusEvent:e,build:function(){return J(t)},emptyEditedAttributesCount:t.editedAttributes.length})},[e]),trackQuizSaveFoodProfileButtonClick:(0,f.useCallback)(function(t){ep({eventName:"FoodProfileQuiz_Save_FoodProfile_Button_Click",trackJanusEvent:e,build:function(){return G(t)},emptyEditedAttributesCount:t.editedAttributes.length})},[e]),trackSubmitFoodProfile:(0,f.useCallback)(function(t){ep({eventName:"FoodProfile_Submit_FoodProfile_Button_Click",trackJanusEvent:e,build:function(){return et(t)}})},[e]),trackOpenFoodProfileDropdown:(0,f.useCallback)(function(t){ep({eventName:"FoodProfile_Open_FoodProfile_Dropdown_Click",trackJanusEvent:e,build:function(){return er(t)}})},[e]),trackOpenFoodProfileButton:(0,f.useCallback)(function(t){ep({eventName:"FoodProfile_Open_FoodProfile_Button_Click",trackJanusEvent:e,build:function(){return ei(t)}})},[e]),trackQuizUnsavedChangesModalImpression:(0,f.useCallback)(function(t){ep({eventName:"FoodProfileQuiz_Modal_UnsavedChanges_Impression",trackJanusEvent:e,build:function(){return ea(t)},emptyEditedAttributesCount:t.editedAttributes.length})},[e]),trackOnboardingScreen1Impression:(0,f.useCallback)(function(){ep({eventName:"FoodProfile_Modal_FoodProfileOnboarding_Impression",trackJanusEvent:e,build:function(){return eu.Y.janusEvent()}})},[e]),trackOnboardingScreen2Impression:(0,f.useCallback)(function(){ep({eventName:"FoodProfile_Button_FoodProfileOnboarding_Impression",trackJanusEvent:e,build:function(){return ec.r.janusEvent()}})},[e]),trackStartFoodProfileButtonClick:(0,f.useCallback)(function(){ep({eventName:"FoodProfile_Start_FoodProfile_Button_Click",trackJanusEvent:e,build:function(){return es.B.janusEvent()}})},[e]),trackCloseOnboardingModalClick:(0,f.useCallback)(function(){ep({eventName:"FoodProfile_Close_Onboarding_Modal_Click",trackJanusEvent:e,build:function(){return ef.y.janusEvent()}})},[e])}},eh=function(){var e=eb().trackChangeFoodProfile;(0,f.useEffect)(function(){return A(e),function(){A(null)}},[e])},ey=n(887824),em=n(602307),ev=n(548295),eg=n(268481),eO=n(699016),ew=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfileOnboarding_Screen1Impression",gaEventCategory:"FoodProfileOnboarding",gaEventAction:"Screen1Impression",gaEventLabel:"None"})},ex=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfileOnboarding_Screen2Impression",gaEventCategory:"FoodProfileOnboarding",gaEventAction:"Screen2Impression",gaEventLabel:"None"})},ej=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfileOnboarding_StartFoodProfile",gaEventCategory:"FoodProfileOnboarding",gaEventAction:"StartFoodProfile",gaEventLabel:"None"})},eP=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfileOnboarding_CloseModal",gaEventCategory:"FoodProfileOnboarding",gaEventAction:"CloseModal",gaEventLabel:"None"})},eZ=n(428581),e_=n(318066),eS=n(527157),eC=n(200770),ek=function(e){return null===e?"":"v".concat(e,"/")},eA=function(){var e=(0,eS.Z)(),t=(0,eC.Z)(),n=(0,eZ.g)();return(0,f.useCallback)(function(r){return"/".concat(ek(n),"mobile/food-profile/brands/").concat(e,"/").concat(t,"/options/").concat(r,".png")},[e,t,n])}
1,eE=function(){var e=(0,eS.Z)(),t=(0,eC.Z)(),n=(0,e_.PE)(e),r=(0,eZ.g)();return(0,f.useCallback)(function(o){return"".concat(n,"/f_auto,c_limit,fl_lossy,q_auto/").concat(ek(r),"mobile/food-profile/brands/").concat(e,"/").concat(t,"/onboarding/").concat(o,".png")},[n,e,t,r])},ez=function(){var e=(0,eS.Z)(),t=(0,eC.Z)(),n=(0,eZ.g)();return(0,f.useCallback)(function(r){return"/".concat(ek(n),"mobile/food-profile/brands/").concat(e,"/").concat(t,"/quiz-loading-animation/").concat(r,".png")},[e,t,n])},eI=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"food-profile-header",t=(0,eS.Z)(),n=(0,eC.Z)(),r=(0,e_.PE)(t),o=(0,eZ.g)();return(0,f.useMemo)(function(){return"".concat(r,"/f_auto,c_limit,fl_lossy,q_auto/").concat(ek(o),"mobile/food-profile/brands/").concat(t,"/").concat(n,"/").concat(e,".png")},[r,t,n,e,o])},eD=function(e){var t=(0,eS.Z)(),n=(0,eC.Z)(),r=(0,e_.PE)(t),o=(0,eZ.g)();return(0,f.useMemo)(function(){return"".concat(r,"/").concat(ek(o),"mobile/food-profile/brands/").concat(t,"/").concat(n,"/").concat(e,".png")},[r,t,n,e,o])},eR=n(277425),eT=n(164528),eB=n(23287),eq=n(421036),eM=function(e){var t=e.label,n="check"===e.icon,r=n?"shared-alias.positive.foreground.default":"shared-alias.negative.foreground.default";return(0,s.BX)(d.xu,{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"global.xxs",paddingX:"global.xs",backgroundColor:"global.white",borderWidth:"2px",borderStyle:"solid",borderColor:n?"shared-alias.positive.border.default":"shared-alias.negative.border.default",borderRadius:"border-radius-pill",children:[(0,s.tZ)(d.JO,{icon:n?(0,s.tZ)(eB.default,{}):(0,s.tZ)(eq.default,{}),color:r}),(0,s.tZ)(d.xv,{type:"body-sm-bold",color:r,children:t})]})},eF=["402px","300px"],eX=["402 / 630","300 / 385"],eL=[{option:"fish-plate",width:[18.66,17.67],height:[16.03,22.34],top:[50.95,16.88],left:[81.84,82],delayMs:450},{option:"shared-salad",width:[53.23,48.67],height:[52.7,58.7],top:[37.14,29.61],left:[22.14,24.33],delayMs:100},{option:"vegetables",width:[17.91,17],height:[25.56,17.92],top:[22.86,47.79],left:[82.34,83],delayMs:300},{option:"beef-rice-bowl",width:[30.85,28],height:[23.49,26.23],top:[3.49,0],left:[22.14,23.33],delayMs:0},{option:"pasta-bowl",width:[16.17,14.67],height:[23.81,26.49],top:[59.68,56.36],left:[0,0],delayMs:500}],eV=[{labelKey:"food_profile.options.chicken",label:"Chicken",icon:"check",top:[28.89,45.19],left:[6.97,10],delayMs:350},{labelKey:"food_profile.options.salad",label:"Salads",icon:"check",top:[93.65,92.6],left:[26.87,28],delayMs:750},{labelKey:"food_profile.options.pork",label:"Pork",icon:"close",top:[77.14,70.65],left:[69.9,65],delayMs:700},{labelKey:"food_profile.options.dairy",label:"Dairy",icon:"close",top:[16.51,8.57],left:[56.97,52],delayMs:500}],eN=(0,d.q)(d.xu),eU=function(e){return e.map(function(e){return"".concat(e,"%")})},eQ=function(e){var t,n,r=e.onAnimationComplete,o=eE(),i=(0,eT.ZP)("food_profile_onboarding").translateRaw,l=(0,eT.ZP)("website").translateRaw,a=(0,eO.JZ)(),u=(0,f.useRef)(!1),c=function(e,t,n,r,o){return{from:e,to:t,delay:a?0:1e3+n,immediate:!!a,config:{duration:r,easing:o}}},p=(0,d.bY)(eL.length,eL.map(function(e){return c({opacity:0,transform:"scale(0.85)"},{opacity:1,transform:"scale(1)"},e.delayMs,500,d.Gk.easeOutCubic)})),b=(0,d.bY)(eV.length,eV.map(function(e){return c({opacity:0,transform:"scale(0)"},{opacity:1,transform:"scale(1)"},e.delayMs,300,d.Gk.easeOutBack)})),h=(0,d.q_)((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},c({opacity:0,transform:"translateY(16px)"},{opacity:1,transform:"translateY(0px)"},1e3,600,d.Gk.easeOutCubic)),n=n={onRest:function(){u.current||(u.current=!0,null==r||r())}},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t));return(0,s.BX)(d.xu,{display:"flex",flexDirection:"column",alignItems:"center",gap:"global.md-1",paddingTop:"global.sm-1",paddingBottom:"global.md-2",children:[(0,s.BX)(d.xu,{position:"relative",width:"100%",maxWidth:eF,aspectRatio:eX,overflow:"hidden",children:[p.map(function(e,t){var n=eL[t],r=n.option,i=n.width,l=n.height,a=n.top,u=n.left;return(0,s.tZ)(eN,{style:e,position:"absolute",top:eU(a),left:eU(u),width:eU(i),height:eU(l),overflow:"hidden",borderRadius:"border-radius-md",children:(0,s.tZ)(e_.ZP,{fill:!0,src:(0,eR.Z)(o(r)),alt:"",sizes:"".concat(Math.round(i[0]/100*402),"px"),style:{objectFit:"cover"}})},r)}),b.map(function(e,t){var n=eV[t],r=n.labelKey,o=n.label,i=n.icon,a=n.top,u=n.left;return(0,s.tZ)(eN,{style:e,position:"absolute",top:eU(a),left:eU(u),children:(0,s.tZ)(eM,{label:l(r)||o,icon:i})},r)})]}),(0,s.tZ)(eN,{style:h,maxWidth:["311px","100%"],textAlign:"center",children:(0,s.tZ)(d.xv,{as:"h1",children:i("food_profile.onboarding.screen1.headline.text")})})]})},eH=n(995692),eK=function(e){var t=e.title,n=e.image;return(0,s.tZ)(d.Zb.Static,{variant:"filled",backgroundColor:"alias.elevation.background.level-1.default",children:(0,s.tZ)(d.xu,{paddingX:"global.md-1",paddingY:"global.sm-2",children:(0,s.tZ)(d.Zb.Content,{children:(0,s.BX)(d.xu,{display:"flex",alignItems:"center",children:[(0,s.tZ)(e_.ZP,{src:(0,eR.Z)(n),alt:t,width:40,height:40,loading:"lazy"}),(0,s.tZ)(d.xu,{paddingLeft:"global.sm-1",children:(0,s.tZ)(d.xv,{children:t})})]})})})})},eW=[{titleKey:"food_profile.onboarding.screen2.benefit1.text",option:"heart"},{titleKey:"food_profile.onboarding.screen2.benefit2.text",option:"arrow-up"},{titleKey:"food_profile.onboarding.screen2.benefit3.text",option:"refresh"}],eY=(0,d.q)(d.xu),eJ={title:0,cards:400,phone:900,icon1:1500,icon2:1600,cta:1800},e$={opacity:0,transform:"translateY(12px) scale(0.98)"},eG={opacity:1,transform:"translateY(0px) scale(1)"},e0={opacity:0,transform:"scale(0)"},e1={opacity:1,transform:"scale(1)"},e2=[{delay:eJ.icon1,top:"50.6%",left:"15.3%"},{delay:eJ.icon2,top:"50.6%",left:"51.6%"}],e3=function(e){var t=e.onComplete,n=e.isActive,r=void 0===n||n,o=eE(),i=(0,eT.ZP)("food_profile_onboarding").translateRaw,l=!!(0,eO.JZ)()||!r,a=function(e){return{from:e$,to:r?eG:e$,delay:l?0:e,immediate:l,config:{duration:300,easing:d.Gk.easeOutCubic}}},u=(0,d.q_)(a(eJ.title)),c=(0,d.q_)(a(eJ.cta)),f=(0,d.bY)(eW.length,eW.map(function(){return a(eJ.cards)})),p=(0,d.q_)({from:{opacity:0,transform:"translateY(30px)"},to:{opacity:r?1:0,transform:r?"translateY(0px)":"translateY(30px)"},delay:l?0:eJ.phone,immediate:l,config:{duration:500,easing:d.Gk.easeOutCubic}}),b=(0,d.bY)(e2.length,e2.map(function(e){var t=e.delay;return{from:e0,to:r?e1:e0,delay:l?0:t,immediate:l,config:{duration:300,easing:d.Gk.easeOutBack}}}));return(0,s.BX)(d.xu,{display:"flex",flexDirection:"column",paddingX:["global.md-1","global.none"],gap:"global.md-1",paddingY:"global.sm-1",width:"100%",minHeight:["100%","auto","auto"],height:["auto","100%","100%"],overflow:"visible",children:[(0,s.tZ)(eY,{paddingTop:"global.sm-1",style:u,children:(0,s.tZ)(d.xv,{as:"h2",textAlign:["left","center","center"],children:i("food_profile.onboarding.screen2.title.text")})}),(0,s.BX)(d.xu,{display:"flex",flexDirection:["column","row","row"],alignItems:["stretch","center","center"],justifyContent:"center",gap:"global.sm-2",width:"100%",flex:["none","none","none"],minHeight:"0",overflow:"visible",children:[(0,s.tZ)(d.xu,{"data-testid":"onboarding-card-items",display:"flex",flexDirection:"column",gap:"global.sm-2",flex:"1",width:"100%",maxWidth:["100%","343px","343px"],children:f.map(function(e,t){var n=eW[t],r=n.titleKey,l=n.option;return(0,s.tZ)(eY,{style:e,children:(0,s.tZ)(eK,{title:i(r),image:o(l)})},l)})}),(0,s.tZ)(eY,{"data-testid":"onboarding-image",display:"flex",justifyContent:"center",flex:"1",width:"100%",height:"100%",alignItems:"center",style:p,children:(0,s.BX)(d.xu,{position:"relative",width:"100%",maxWidth:"229px",children:[(0,s.tZ)(e_.ZP,{src:(0,eR.Z)(o("home-page-example")),alt:i("food_profile.onboarding.screen2.benefit1.text"),width:229,height:316,loading:"lazy",style:{width:"100%",height:"auto",filter:"drop-shadow(0 12px 32px rgba(0, 0, 0, 0.12))"}}),b.map(function(e,t){var n,r,o=e2[t],i=o.top,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(o,["top"]);return(0,s.tZ)(eY,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({style:e,position:"absolute",top:i},l),r=r={zIndex:1,children:(0,s.tZ)(d.xu,{display:"flex",backgroundColor:"global.white",borderRadius:"border-radius-circle",children:(0,s.tZ)(d.JO,{icon:(0,s.tZ)(eH.Z,{}),color:"shared-alias.positive.foreground.default"})})}
1,Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n),t)})]})})]}),(0,s.tZ)(eY,{style:c,width:"100%",marginTop:["global.none","auto","auto"],children:(0,s.tZ)(d.zx.Primary,{width:"100%",onClick:t,children:i("food_profile.onboarding.screen2.cta.label")})})]})};function e4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function e6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function e8(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var e5=(0,d.q)(d.xu),e7=function(e){var t,n=e.onClose,r=function(e){if(Array.isArray(e))return e}(t=(0,f.useState)("first"))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return e4(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e4(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=r[0],i=r[1],l=(0,eO.JZ)(),a=(0,ey.Z)().push,u=eb(),c=u.trackOnboardingScreen1Impression,p=u.trackOnboardingScreen2Impression,b=u.trackStartFoodProfileButtonClick;(0,f.useEffect)(function(){c(),ew({push:a})},[]),(0,f.useEffect)(function(){"second"===o&&(p(),ex({push:a}))},[o]);var h=(0,d.q_)({opacity:"first"===o?1:0,immediate:!!l,config:{duration:500,easing:d.Gk.easeInOutCubic}}),y=(0,d.q_)({opacity:"second"===o?1:0,immediate:!!l,config:{duration:500,easing:d.Gk.easeInOutCubic}});return(0,s.BX)(d.xu,{display:"grid","data-testid":"food-profile-onboarding",width:"100%",gridTemplateColumns:"minmax(0, 1fr)",paddingX:["global.none","global.md-1"],height:["100vh","auto","auto"],overflow:["auto","visible"],children:[(0,s.tZ)(e5,e8(e6({gridArea:"1 / 1",style:h,pointerEvents:"first"===o?"auto":"none","aria-hidden":"first"!==o},"first"!==o?{inert:""}:{}),{children:(0,s.tZ)(eQ,{onAnimationComplete:function(){if(l){i("second");return}setTimeout(function(){return i("second")},900)}})})),(0,s.tZ)(e5,e8(e6({gridArea:"1 / 1",style:y,pointerEvents:"second"===o?"auto":"none","aria-hidden":"second"!==o},"second"!==o?{inert:""}:{}),{children:(0,s.tZ)(e3,{onComplete:function(){b(),ej({push:a}),n()},isActive:"second"===o})}))]})},e9=function(e){var t=e.isOpen,n=e.onClose,r="mobile"===(0,eg.Sj)(),o=(0,ey.Z)().push,i=eb().trackCloseOnboardingModalClick;return(0,s.tZ)(em.Z,{claim:{name:"menu-personalization-experience",githubTeam:"hellofresh/squad-menu-personalization-experience",tribe:"personalization-and-data",alliance:"no-alliance-consumer",jiraPrefix:"MPE",slackChannel:"#squad-menu-personalization-experience",slackAlertsChannel:"#squad-menu-personalization-experience-alerts-live",skipLabelsOnPR:!1,teamIdentifier:"menu-personalization-experience"},children:(0,s.tZ)(b.Z,{scope:"food-profile-onboarding",fallback:(0,s.tZ)(s.HY,{}),children:(0,s.tZ)(d.Vq,{isOpen:t,onClose:function(){i(),eP({push:o}),n()},isOverlayDisabled:r,headless:!0,fullScreen:r,viewportScroll:!1,width:["100%","900px","900px"],padding:r?"global.none":void 0,dialogCustomOverflow:r?"hidden":void 0,dialogBodyCustomOverflow:r?"auto":void 0,"aria-label":"Food profile onboarding",hasCloseButton:!0,"data-testid":"food-profile-onboarding-modal",children:(0,s.tZ)(ev.Z,{componentName:"food-profile-onboarding-module",children:(0,s.tZ)(e7,{onClose:n})})})})})},te=n(456552),tt=n(671718),tn=n(447178),tr=n(808215),to=n(699219);function ti(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}var tl=(r=function(e,t){var n,r,o,i,l=arguments;return function(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(a){switch(a.label){case 0:return n=e.brand,r=e.regionCode,i=void 0===(o=e.exclusion)?"v1":o,[4,(l.length>2&&void 0!==l[2]?l[2]:tt.Z)("/profile-service/v2/profile/options",t,{method:"GET",headers:{"Content-Type":"application/json"},query:{brand:n,regionCode:r,exclusion:i},fetchSpanAttributes:{"request.backend_service":"profile-service","request.backend_action":"get-profile-options"}})];case 1:return[2,a.sent().json()]}})},o=function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function l(e){ti(i,n,o,l,a,"next",e)}function a(e){ti(i,n,o,l,a,"throw",e)}l(void 0)})},function(e,t){return o.apply(this,arguments)}),ta=function(e,t){var n,r=(0,tn.Z)().fetch,o=(0,tr.Z)(),i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({brand:o.brand,regionCode:o.region_code,exclusion:null!==(n=null==e?void 0:e.exclusion)&&void 0!==n?n:"v1"},e),l=[to.Z["profile.get-v2-profile-options"],i];return(0,te.useQuery)(l,function(){return tl(i,l,r)},t)},tu=n(141323),tc=function(){var e=(0,x.Z)("enable_food_profile_onboarding");return{isEnabled:e.isEnabled,isReady:e.isReady}};function ts(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}
1var tf=function(){var e,t=tc(),n=t.isEnabled,r=t.isReady,o=(function(e){if(Array.isArray(e))return e}(e=(0,Z.Z)(_))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),1!==i.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,1)||function(e,t){if(e){if("string"==typeof e)return ts(e,1);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ts(e,1)}}(e,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];return{shouldShow:r&&n&&"true"!==o,isReady:r}},td=n(966622),tp=n(943701),tb=n(346471),th=n(387023),ty=["event","gaEventCategory","gaEventAction","gaEventLabel","screen","tribe","isV2","customer_id","plan_id","fp_attribute","fp_key","fp_value","edited_attributes"],tm=function(){var e=(0,td.py)({runUsingStatsig:!0}).track,t=(0,tp.R)({runUsingStatsig:!0}),n=t.id,r=t.attributes,o=(0,eS.Z)();(0,f.useEffect)(function(){return(0,tb.F0)(function(t){if(t.__internal_event_type===th.q.GTMEvent){var i,l,a=t.event_name;if("string"==typeof a&&a.startsWith("FoodProfile_")){var u=function(e,t){var n={brand:t},r=!0,o=!1,i=void 0;try{for(var l,a=ty[Symbol.iterator]();!(r=(l=a.next()).done);r=!0){var u=l.value,c=e[u];void 0!==c&&(n[u]=Array.isArray(c)?c.join(","):String(c))}}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,o);e({eventName:a,experimentationUserId:n||"",experimentationUserAttributes:(i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},r),l=l={custom:u},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(l)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(l,e))}),i),eventTags:{value:u.screen||""}})}}})},[e,n,r,o])},tv=n(573952),tg=n.n(tv),tO=n(199729),tw=n.n(tO);function tx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tj(e){return function(e){if(Array.isArray(e))return tx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return tx(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tx(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var tP=function(e){return(null!=e?e:[]).map(function(e){return e.value}).filter(function(e){return!!e})},tZ=function(e,t){if(e.length!==t.length)return!1;var n=tj(e).sort(),r=tj(t).sort();return n.every(function(e,t){return e===r[t]})},t_=function(e){var t=e.options,n=e.selectedOptions,r=e.translateRaw,o=e.lastSelectedOptions,i=t.reduce(function(e,t){var o=n.includes(t),i={listValue:r("food_profile.options.".concat(t))||t,value:t};return{list:tj(e.list).concat([i]),selectedList:o?tj(e.selectedList).concat([i]):e.selectedList}},{list:[],selectedList:[]}),l=i.list,a=i.selectedList,u=null!=o?o:a,c=tP(u);return{list:l,selectedList:a,currentSelectedOptions:u,currentSelectedValues:c}},tS=function(e){var t,n=e.isOpen,r=e.path,o=e.attributeCopy,i=e.currentSelectedOptions,l=e.push;(void 0===n||n)&&l({event:"gaEventTrigger",event_name:"FoodProfile_StartEditAttribute",gaEventAction:"EditAttribute",gaEventLabel:"attribute_be",attribute_be:null!==(t=r.split(".").pop())&&void 0!==t?t:r,attribute_copy:o,attribute_current_selected_handles:tP(i)})},tC=function(e){var t,n=e.path,r=e.attributeCopy,o=e.nextSelectedOptions;(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfile_AttributeModified",gaEventAction:"EditAttribute",gaEventLabel:"attribute_be",attribute_be:null!==(t=n.split(".").pop())&&void 0!==t?t:n,attribute_copy:r,attribute_current_selected_handles:o})},tk=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfile_Pageview",gaEventAction:"PageView",gaEventLabel:"None"})},tA=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfile_ConfirmSaveChangesClick",gaEventCategory:"FoodProfileSettings",gaEventAction:"ConfirmSaveChangesClick",gaEventLabel:"None",edited_attributes:e.editedAttributes})},tE=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfile_CloseSaveConfirmation",gaEventCategory:"FoodProfileSettings",gaEventAction:"CloseSaveConfirmation",gaEventLabel:e.eventLabel})},tz=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfile_OpenAttributeDrawer",gaEventCategory:"FoodProfileSettings",gaEventAction:"OpenAttributeDrawer",gaEventLabel:"None",fp_attribute:e.fpAttribute})},tI=function(e){var t,n=e.push,r=e.fpAttribute,o=e.fpKey,i=e.fpValue;n({event:"gaEventTrigger",event_name:"FoodProfile_EditAttribute",gaEventAction:"EditAttribute",gaEventLabel:"None",fp_attribute:r,fp_key:o,fp_value:i}),null===(t=k)||void 0===t||t({fpAttribute:r,fpKey:o,fpValue:i})},tD=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfile_SaveButtonClick",gaEventCategory:"FoodProfileSettings",gaEventAction:"SaveButtonClick",gaEventLabel:"None"})},tR=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfile_SaveErrorBannerImpression",gaEventCategory:"FoodProfileSettings",gaEventAction:"SaveErrorBannerImpression",gaEventLabel:"None"})};function tT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tT(e,t)}}
1(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 tq=new Set(["_meta","plans"]),tM=new Set(["household"]),tF=function(e){return(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e&&!Array.isArray(e)},tX=function(e,t,n){if(null!=n){if("number"==typeof n){e.push({fpAttribute:t,fpKey:t,fpValue:n});return}if(Array.isArray(n)&&n.every(function(e){return"string"==typeof e})){var r=!0,o=!1,i=void 0;try{for(var l,a=n[Symbol.iterator]();!(r=(l=a.next()).done);r=!0){var u=l.value;e.push({fpAttribute:t,fpKey:u,fpValue:1})}}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return}if(tF(n)&&Object.values(n).every(function(e){return"number"==typeof e})&&!tM.has(t)){var c=!0,s=!1,f=void 0;try{for(var d,p=Object.entries(n)[Symbol.iterator]();!(c=(d=p.next()).done);c=!0){var b=tB(d.value,2),h=b[0],y=b[1];e.push({fpAttribute:t,fpKey:h,fpValue:y})}}catch(e){s=!0,f=e}finally{try{c||null==p.return||p.return()}finally{if(s)throw f}}return}if(tF(n)){var m=!0,v=!1,g=void 0;try{for(var O,w=Object.entries(n)[Symbol.iterator]();!(m=(O=w.next()).done);m=!0){var x=tB(O.value,2),j=x[0],P=x[1];tq.has(j)||tX(e,j,P)}}catch(e){v=!0,g=e}finally{try{m||null==w.return||w.return()}finally{if(v)throw g}}}}},tL=function(e){var t=[],n=!0,r=!1,o=void 0;try{for(var i,l=Object.entries(e)[Symbol.iterator]();!(n=(i=l.next()).done);n=!0){var a=tB(i.value,2),u=a[0],c=a[1];tq.has(u)||tX(t,u,c)}}catch(e){r=!0,o=e}finally{try{n||null==l.return||l.return()}finally{if(r)throw o}}return t},tV=n(819899),tN=n(90295),tU=n(877520),tQ=n(277265),tH=n(66077),tK=(0,tH.Z)("hf.profile-by-plan-id-config",{impactsMealPreselectionPaths:["taste.dietaryPreferences","taste.exclusions"],overrides:[]}).useConfig,tW=n(553911),tY=function(e){var t=e.isLoading,n=e.returnFocusRef,r=e.onDismiss,o=e.onConfirm,i=(0,eT.ZP)("website"),l=i.translate,a=i.translateRaw,u=a("food_profile.pre_selection_drawer.subtitle").replace(/\\n
1/g,"\n");return(0,s.tZ)(d.Vq,{dialogBodyCustomOverflow:"visible",isOpen:!0,headless:!0,width:["80%","37.5rem"],onDismiss:function(){return r("outside-modal-click")},onConfirm:o,returnFocusRef:n,children:(0,s.BX)(s.HY,{children:[(0,s.BX)(d.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:"sm-1",children:[(0,s.tZ)(d.xv,{as:"h3","data-test-id":"confirmation-modal-title",children:l("food_profile.pre_selection_drawer.title")}),(0,s.tZ)(d.PZ,{"data-test-id":"close-modal-button","aria-label":"Close confirmation modal",onClick:function(){return r("close-modal-button-click")}})]}),(0,s.tZ)(d.xv,{as:"p",mb:"md-1",type:"body-md-regular",children:(0,s.tZ)(tW.Z,{copy:u,hasMarkdown:!0})}),(0,s.BX)(d.xu,{display:"flex",alignItems:"flex-end",mt:"md-1",gap:"sm-1",flexDirection:["column","row-reverse"],children:[(0,s.tZ)(d.zx.Primary,{"data-test-id":"confirm-modal-button",width:["100%","auto"],loading:t,onClick:o,"aria-label":a("food_profile.pre_selection_drawer.confirm_cta")||"Confirm",children:l("food_profile.pre_selection_drawer.confirm_cta")}),(0,s.tZ)(d.zx.Secondary,{"data-test-id":"cancel-modal-button",width:["100%","auto"],onClick:function(){return r("cancel-modal-button-click")},"aria-label":a("food_profile.pre_selection_drawer.dismiss_cta")||"Cancel",children:l("food_profile.pre_selection_drawer.dismiss_cta")})]})]})})};function tJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tJ(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 tG=function(e){var t,n=e.children,r=e.position,o=(0,f.useRef)(null),i=t$(f.useState(!1),2),l=i[0],a=i[1],u=((null==o?void 0:null===(t=o.current)||void 0===t?void 0:t.getBoundingClientRect())||{height:0}).height;return(0,f.useEffect)(function(){if(o.current){var e=new IntersectionObserver(function(e){var t=t$(e,1)[0],n=t.boundingClientRect.top<=0,o=t.boundingClientRect.bottom>=0,i=!t.isIntersecting;switch(r){case"top":a(!!(n&&i));break;case"bottom":a(!!(o&&i));break;default:a(!1)}},{rootMargin:"0px 0px -100px 0px"});return e.observe(o.current),function(){return e.disconnect()}}},[o,r]),(0,s.BX)(s.HY,{children:[(0,s.tZ)(d.xu,{backgroundColor:l?"alias.elevation.level-2":null,width:"100%",position:"fixed",left:"0",right:"0",bottom:"bottom"===r?"0px":void 0,top:"top"===r?"0px":void 0,pointerEvents:"none",transition:"background-color 0.2s ease",height:u}),(0,s.tZ)(d.xu,{display:"flex",justifyContent:["center","flex-end"],ref:o,pb:"sm-1",pt:"sm-1",position:"sticky",bottom:"bottom"===r?"0px":void 0,top:"top"===r?"0px":void 0,children:n})]})},t0=n(847215),t1=n.n(t0),t2=n(934257),t3=n(988402),t4=n(890977),t6=function(e){return(0,s.BX)(d.xu,{display:"flex",flexDirection:"column",flexGrow:1,minHeight:0,height:"100%",children:[(0,s.tZ)(d.xu,{position:"sticky",top:0,zIndex:1,backgroundColor:"alias.elevation.base",borderRadius:"global.circle",alignSelf:"flex-end",flexShrink:0,children:(0,s.tZ)(d.PZ,{onClick:e.onClose})}),(0,s.tZ)(d.xu,{flex:1,minHeight:0,overflowY:"auto",padding:"global.xxs",children:e.children})]})};function t8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t5(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,t)||t7(e,t)||function(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t7(e,t){if(e){if("string"==typeof e)return t8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t8(e,t)}}var t9=function(e){return null!=e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&!Array.isArray(e)},ne=function(e,t){return Array.isArray(e)?e.filter(function(e){return t.has(e)}):t9(e)?Object.fromEntries(Object.entries(e).filter(function(e){var n=t5(e,1)[0];return t.has(n)})):[]},nt=function(e,t){return t("food_profile.options.".concat(e))||e};function nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nn(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 no=function(e){var t=e.options,n=e.quantityToShow,r=e.containerRef,o=e.tagsRef,i=e.translateRaw,l=Object.entries(t).filter(function(e){return 100===nr(e,2)[1]}).map(function(e){return nr(e,1)[0]});return 0===l.length?null:(0,s.BX)(d.xu,{ref:r,display:"flex",gap:"global.xs",paddingTop:"global.xs",overflowX:"hidden",position:"relative",children:[l.map(function(e,t){return(0,s.tZ)(d.xu,{ref:function(e){return o.current[t]=e},flexShrink:0,opacity:t<n?1:0,position:t<n?"relative":"absolute",visibility:t<n?"visible":"hidden",pointerEvents:t<n?"auto":"none",children:(0,s.tZ)(d.uj,{variant:"v6",size:"md",fontWeight:"bold",children:nt(e,i)})},e)}),l.length>n&&(0,s.tZ)(d.uj,{variant:"v6",size:"md",fontWeight:"bold",children:"+".concat(l.length-n)})]})},ni=function(e){var t=e.options,n=e.noneLabel,r=e.quantityToShow,o=e.containerRef,i=e.tagsRef,l=e.translateRaw;return 0===t.length?n?(0,s.tZ)(d.xu,{paddingTop:"global.xs",children:(0,s.tZ)(d.uj,{variant:"v0",size:"md",fontWeight:"bold",children:n})}):null:(0,s.BX)(d.xu,{ref:o,display:"flex",gap:"global.xs",paddingTop:"global.xs",overflowX:"hidden",position:"relative",children:[t.map(function(e,t){return(0,s.tZ)(d.xu,{ref:function(e){return i.current[t]=e},flexShrink:0,opacity:t<r?1:0,position:t<r?"relative":"absolute",visibility:t<r?"visible":"hidden",pointerEvents:t<r?"auto":"none",children:(0,s.tZ)(d.uj,{variant:"v6",size:"md",fontWeight:"bold",children:nt(e,l)})},e)}),t.length>r&&(0,s.tZ)(d.uj,{variant:"v6",size:"md",fontWeight:"bold",children:"+".concat(t.length-r)})]})},nl=function(e){return Array.isArray(e)?e:Object.keys(e)},na=new Set(["taste.primaryProteins","taste.flavors"]),nu=function(e,t){var n=na.has(e),r=(0,t2.P)({exclusion:"v2"},{suspense:!1,enabled:n}).data,o=ta({exclusion:"v2"},{suspense:!1,enabled:n}).data;return(0,f.useMemo)(function(){if(!n)return t;var i,l=null!=(i=tw()(r,"_meta.mappings.".concat(e)))&&(void 0===i?"undefined":i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)=="object"?new Set(Object.keys(i)):new Set,a=null!=t?t:nl(tw()(o,e,[]));return l.size>0?a.filter(function(e){return!l.has(e)}):a},[n,r,o,e,t])};function nc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ns(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,t)||nd(e,t)||function(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nf(e){return function(e){if(Array.isArray(e))return nc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nd(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nd(e,t){if(e){if("string"==typeof e)return nc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nc(e,t)}}var np=[],nb=function(e){var t,n,r,o=e.showPositiveOptions,i=void 0!==o&&o,l=(0,ey.Z)().push,a=eb().trackOpenFoodProfileButton,u=P().isEnabled,c=(0,eT.ZP)("website").translateRaw,p=(0,eg.Sj)(),b=(0,f.useRef)(null),h=ns((0,f.useState)(!1),2),y=h[0],m=h[1],v=(0,t2.P)({exclusion:"v2"},{suspense:!1}),g=v.data,O=v.isLoading,w=ta({exclusion:"v2"},{suspense:!1}),x=w.data,j=w.isLoading,Z="taste.primaryProteins"===e.path||e.path.startsWith("_meta.primaryProteinsGroups."),_=Z?"taste.primaryProteins":e.path,S=null!==(r=_.split(".").pop())&&void 0!==r?r:_,C=(0,f.useMemo)(function(){return tw()(g,_,[])},[g,_]),k=ns((0,f.useState)(C),2),A=k[0],E=k[1],z=(0,f.useMemo)(function(){if(!Z)return{metaOptions:np,metaOptionsSet:new Set};var t=tw()(x,e.path,{}),n=Array.isArray(t)?t:Object.keys(t);return{metaOptions:n,metaOptionsSet:new Set(n)}},[Z,x,e.path]),I=z.metaOptions,D=z.metaOptionsSet,R=(0,f.useMemo)(function(){var e=Z?ne(A,D):A;return{filteredSelectedOptions:e,tagOptions:Array.isArray(e)?e:t9(e)?Object.entries(e).filter(function(e){return 100===t5(e,2)[1]}).map(function(e){return t5(e,1)[0]}):[]}},[A,Z,D]),T=R.filteredSelectedOptions,B=R.tagOptions,q=(0,f.useRef)(D);(0,f.useEffect)(function(){if(q.current!==D&&(q.current=D,Z&&0!==D.size&&t9(A))){var t={},n=!0,r=!1,o=void 0;try{for(var i,l,a=Object.entries(A)[Symbol.iterator]();!(n=(l=a.next()).done);n=!0){var u=ns(l.value,2),c=u[0],s=u[1];t[c]=D.has(c)?s:0}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}null===(i=e.onChange)||void 0===i||i.call(e,t1()({},_,t))}},[D]);var M=(0,f.useMemo)(function(){return Array.isArray(T)?Object.fromEntries(T.map(function(e){return[e,100]})):t9(T)?T:{}},[T]),F=!!(!i&&0===B.length&&e.noneLabel&&null!=tw()(g,_)),X=(0,t4.g)(B.length),L=X.containerRef,V=X.tagsRef,N=X.quantityToShow,U=B.length-N,Q=F?[e.noneLabel]:nf(B.map(function(e){return nt(e,c)})).concat(nf(U>0?["+".concat(U)]:[])),H=(t=e.title||S,[t].concat(function(e){if(Array.isArray(e))return t8(e)}(n=Q)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||t7(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).filter(Boolean).join(", ")),K=(0,f.useRef)(y),W=function(){return m(!1)};(0,f.useEffect)(function(){var e=!0===K.current&&!1===y;K.current=y,y||e||E(function(e){return JSON.stringify(e)===JSON.stringify(C)?e:C})},[C,y]);var Y=nu(_,Z?I:void 0),J=e.innerOptionsSection({path:_,title:e.title,selectedOptions:A,onChange:function(t){var n,r,o=tw()(t,_,[]);if(!Z){E(o),null===(r=e.onChange)||void 0===r||r.call(e,t);return}E(o);var i=ne(o,D);null===(n=e.onChange)||void 0===n||n.call(e,t1()(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},t),_,i))},onClose:W,optionItems:Y,hideCta:"desktop"!==p});return O||j||!x?null:(0,s.BX)(s.HY,{children:[(0,s.tZ)(d.Zb.Selectable,{variant:"outlined",selected:!1,onClick:function(){m(!0),a({fpAttribute:S}),u&&tz({push:l,fpAttribute:S})},height:"100%","aria-label":H,children:(0,s.BX)(d.Zb.Content,{children:[(0,s.tZ)(d.Zb.Description,{children:(0,s.BX)(d.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,s.tZ)(d.xv,{type:"body-md-bold",children:e.title}),(0,s.tZ)(d.JO,{icon:(0,s.tZ)(t3.default,{})})]})}
1),(0,s.tZ)(d.xu,{"aria-hidden":!0,children:i?(0,s.tZ)(no,{options:M,quantityToShow:N,containerRef:L,tagsRef:V,translateRaw:c}):(0,s.tZ)(ni,{options:B,noneLabel:F?e.noneLabel:void 0,quantityToShow:N,containerRef:L,tagsRef:V,translateRaw:c})})]})}),"mobile"===p?(0,s.tZ)(d.dy.Container,{isModal:!0,isOpen:y,hideCloseButton:!0,onClose:W,onDismiss:W,placement:"bottom",returnFocusRef:b,width:"100%",height:"calc(100vh - 80px)",isTouchMoveEnabled:!0,contentShouldFillFullHeight:!0,"aria-label":H,children:(0,s.tZ)(t6,{onClose:W,children:J})}):(0,s.tZ)(d.Vq,{padding:"zero",headless:!0,hasCloseButton:!0,isOpen:y,onClose:W,width:["auto","556px"],returnFocusRef:b,"aria-label":H,children:(0,s.tZ)(d.xu,{padding:"md-1",children:J})})]})},nh=function(e,t,n){if(0===e.length)return t;var r=e.indexOf(t),o=-1===r?n>=0?0:e.length-1:r+n,i=Math.max(0,Math.min(e.length-1,o));return e[i]};function ny(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function nv(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function ng(e){return function(e){if(Array.isArray(e))return ny(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nO(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nO(e,t){if(e){if("string"==typeof e)return ny(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ny(e,t)}}var nw=function(e){var t,n,r,o,i,l,a,u=e.handleChange,c=(0,eT.ZP)("website").translateRaw,p=(0,ey.Z)().push,b=(0,t2.P)({exclusion:"v2"},{suspense:!1}),h=b.data,y=b.isLoading,m=ta({exclusion:"v2"},{suspense:!1}),v=m.data,g=m.isLoading,O=tw()(v,"household"),w=(null==O?void 0:O.adults)||[],x=(null==O?void 0:O.children)||[],j=function(e){if(Array.isArray(e))return e}(t=(0,f.useState)({adults:0,children:0}))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,2)||nO(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.")}(),P=j[0],Z=j[1];(0,f.useEffect)(function(){Z(function(e){var t,n,r,o;return{adults:null!==(r=null==h?void 0:null===(t=h.household)||void 0===t?void 0:t.adults)&&void 0!==r?r:e.adults,children:null!==(o=null==h?void 0:null===(n=h.household)||void 0===n?void 0:n.children)&&void 0!==o?o:e.children}})},[null==h?void 0:null===(l=h.household)||void 0===l?void 0:l.adults,null==h?void 0:null===(a=h.household)||void 0===a?void 0:a.children]);var _=(n=Math).min.apply(n,ng(w)),S=(r=Math).max.apply(r,ng(w)),C=(o=Math).min.apply(o,ng(x)),k=(i=Math).max.apply(i,ng(x)),A=function(e,t){var n,r=(null==h?void 0:null===(n=h.household)||void 0===n?void 0:n.adults)!==void 0||e>=_,o={};r&&(o.adults=e),o.children=t,u({household:o},"household")},E=function(e){var t=nh(w,P.adults,e);t!==P.adults&&(Z(function(e){return nv(nm({},e),{adults:t})}),A(t,P.children),tI({push:p,fpAttribute:"household",fpKey:"adults",fpValue:t}))},z=function(e){var t=nh(x,P.children,e);t!==P.children&&(Z(function(e){return nv(nm({},e),{children:t})}),A(P.adults,t),tI({push:p,fpAttribute:"household",fpKey:"children",fpValue:t}))};return y||g||!O?null:(0,s.BX)(s.HY,{children:[(0,s.BX)(d.xu,{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"sm-2",marginTop:"md-1",children:[(0,s.tZ)(d.xv,{type:"body-md-bold",children:c("food_profile.household.number_adults_subtitle")}),(0,s.BX)(d.Pg,{size:"sm","aria-label":c("food_profile.household.number_adults_subtitle")||"Number of adults","aria-valuemin":_,"aria-valuemax":S,children:[(0,s.tZ)(d.Pg.DecrementButton,{onClick:function(){return E(-1)},disabled:P.adults<=_}),(0,s.tZ)(d.Pg.Value,{children:P.adults}),(0,s.tZ)(d.Pg.IncrementButton,{onClick:function(){return E(1)},disabled:P.adults>=S})]})]}),(0,s.BX)(d.xu,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,s.tZ)(d.xv,{type:"body-md-bold",children:c("food_profile.household.number_kids_subtitle")}),(0,s.BX)(d.Pg,{size:"sm","aria-label":c("food_profile.household.number_kids_subtitle")||"Number of kids","aria-valuemin":C,"aria-valuemax":k,children:[(0,s.tZ)(d.Pg.DecrementButton,{onClick:function(){return z(-1)},disabled:P.children<=C}),(0,s.tZ)(d.Pg.Value,{children:P.children}),(0,s.tZ)(d.Pg.IncrementButton,{onClick:function(){return z(1)},disabled:P.children>=k})]})]})]})},nx=n(591548),nj=n(216790),nP=n(419533),nZ=n(624529),n_=n(993464),nS=n(710124);function nC(e,t){var n=t.isSelected,r=t.title;return e(n?"food_profile.selectable_card.deselect.a11y_hint":"food_profile.selectable_card.select.a11y_hint",{title:r})||r}function nk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nA="256px",nE=function(e){var t,n=e.path,r=e.title,o=e.selectedOptions,i=e.hideCta,l=e.multiple,a=void 0===l||l,u=e.maxColumns,c=e.getDescriptionKey,f=void 0===c?function(e){return"food_profile.options.".concat(e,"-description")}:c,p=e.onChange,b=e.onClose,h=ta({exclusion:"v2"},{suspense:!1}).data,y=(0,eT.ZP)("website").translateRaw,m=(0,ey.Z)().push,v=null!==(t=n.split(".").pop())&&void 0!==t?t:n,g=eA(),O=nl(tw()(h,n,[])),w=null!=o?o:[],x=y("food_profile.".concat(n,".title"))||n,j=null!=r?r:x;return(0,s.BX)(d.xu,{display:"flex",flexDirection:"column",gap:"sm-2",role:"group","aria-label":j,children:[(0,s.tZ)(d.xu,{textAlign:"center",paddingBottom:["global.none","sm-1"],marginBottom:["global.none","md-1"],children:(0,s.tZ)(d.xv,{type:["body-lg-bold","body-xl-bold"],children:j})}),(0,s.tZ)(d.xu,{display:"grid",gridTemplateColumns:["repeat(2, minmax(0, ".concat(nA,"))"),"repeat(".concat(Math.min(O.length,void 0===u?2:u),", minmax(0, ").
1concat(nA,"))")],gap:["sm-2","md-2"],justifyContent:"center",justifyItems:"center",alignItems:"stretch",role:a?void 0:"radiogroup","aria-label":a?void 0:j,children:O.map(function(e){var t=w.includes(e),r=y("food_profile.options.".concat(e))||e,o=y(f(e));return(0,s.tZ)(d.xu,{width:"100%",maxWidth:nA,minWidth:0,height:"100%",children:(0,s.BX)(d.Zb.Selectable,{width:"100%",height:"100%",minWidth:0,display:"flex",flexDirection:"column",backgroundColor:t?void 0:"alias.elevation.level-1",selected:t,variant:"elevated",role:a?"checkbox":"radio","aria-label":nC(y,{isSelected:t,title:r}),onClick:function(){var r;r=a?t?w.filter(function(t){return t!==e}):((function(e){if(Array.isArray(e))return nk(e)})(w)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(w)||function(e,t){if(e){if("string"==typeof e)return nk(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nk(e,void 0)}}(w)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e]):t?[]:[e],null==p||p(t1()({},n,r),n),tI({push:m,fpAttribute:v,fpKey:e,fpValue:t?0:1})},padding:"global.none",children:[(0,s.tZ)(d.xu,{height:"108px",flexShrink:0,position:"relative",overflow:"hidden",borderTopLeftRadius:"global.md",borderTopRightRadius:"global.md",children:(0,s.tZ)(e_.ZP,{fill:!0,src:g(e),alt:r,sizes:"(min-width: 768px) 256px, 50vw",style:{objectFit:"cover"}})}),(0,s.BX)(d.xu,{padding:"global.sm-1",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"global.xxs",textAlign:"center",minWidth:0,width:"100%",flex:1,overflow:"hidden",children:[(0,s.tZ)(d.xv,{type:"body-md-bold",wordBreak:"break-word",children:r}),(0,s.tZ)(d.xv,{type:"body-xs-regular",color:"shared-alias.neutral.foreground.darker",wordBreak:"break-word",children:o})]})]})},e)})}),!(void 0!==i&&i)&&(0,s.tZ)(d.xu,{display:"flex",justifyContent:"flex-end",children:(0,s.tZ)(d.zx.Primary,{onClick:b,width:"auto",children:y("food_profile.options_dialog.cta")})})]})},nz=n(877755),nI=n(8451),nD=n(26730),nR={isEnrichDisclaimerEnabled:!1,disclaimerUrl:"",overrides:[{systemCountry:[nD.Z.AU],values:{isEnrichDisclaimerEnabled:!0,disclaimerUrl:"/about/foodinfo"}},{systemCountry:[nD.Z.NZ],values:{isEnrichDisclaimerEnabled:!0,disclaimerUrl:"/about/foodinfo"}}]},nT=(0,tH.Z)("hf.food-profile.exclusion-options-disclaimer",nR).useConfig,nB=function(){var e=(0,eT.ZP)("website").translateRaw;return(0,s.tZ)(d.xu,{borderRadius:"border-radius-md",overflow:"hidden",children:(0,s.tZ)(d.gb,{variant:"success","data-test-id":"simple-disclaimer",children:(0,s.BX)(d.xu,{display:"flex",flexDirection:"column",children:[(0,s.tZ)(d.xv,{type:"body-md-bold",children:e("food_profile.exclude.banner_title")}),(0,s.tZ)(d.xv,{type:"body-md-regular",children:e("food_profile.exclude.banner_subtitle")})]})})})},nq=function(e){var t=e.url,n=(0,eT.ZP)("website").translateRaw;return(0,s.tZ)(d.xv,{"data-test-id":"enrich-disclaimer",children:(0,nI.lU)(n("food_profile.dietary_habits.exclude_disclaimer"),{link:(0,s.tZ)(d.rU,{href:t,target:"_blank",rel:"noopener noreferrer",children:n("food_profile.dietary_habits.exclude_disclaimer_link")})})})},nM=function(){var e=nT(),t=e.isEnrichDisclaimerEnabled,n=e.disclaimerUrl;return t?(0,s.tZ)(nq,{url:n}):(0,s.tZ)(nB,{})};function nF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nX(e,t){if(e){if("string"==typeof e)return nF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nF(e,t)}}var nL=function(e){var t,n,r,o=e.path,i=e.title,l=e.selectedOptions,a=void 0===l?[]:l,u=e.hideCta,c=e.onChange,p=e.onClose,b=(0,t2.P)({exclusion:"v2"},{suspense:!1}).data,h=ta({exclusion:"v2"},{suspense:!1}).data,y=(0,eT.ZP)("website").translateRaw,m=(0,ey.Z)().push,v=null!==(n=o.split(".").pop())&&void 0!==n?n:o,g=eA(),O=function(e){if(Array.isArray(e))return e}(t=(0,f.useState)(!1))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,2)||nX(t,2)||function(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),w=O[0],x=O[1],j=Array.isArray(a)?a:[],P=nl(tw()(h,o,[])),Z=null!==(r=null!=i?i:y("food_profile.".concat(o,".title")))&&void 0!==r?r:o,_=w?0===j.length:null!=tw()(b,o)&&0===j.length;return(0,s.BX)(d.xu,{display:"flex",flexDirection:"column",gap:"sm-2",role:"group","aria-label":Z,children:[(0,s.tZ)(d.xu,{textAlign:"center",paddingBottom:["global.none","sm-1"],marginBottom:["global.none","md-1"],children:(0,s.tZ)(d.xv,{type:["body-lg-bold","body-xl-bold"],children:Z})}),(0,s.BX)(d.xu,{display:"flex",flexDirection:"column",gap:"sm-2",width:"fit-content",maxWidth:"100%",marginX:"auto",height:["100%","auto","auto"],children:[(0,s.tZ)(d.Zb.Selectable,{withoutCheckmark:!0,backgroundColor:_?void 0:"alias.elevation.level-1",selected:_,variant:"elevated",onClick:function(){x(!0),null==c||c(t1()({},o,[]),o)},"aria-label":nC(y,{isSelected:_,title:y("food_profile.options.none")||Z||"None"}),children:(0,s.tZ)(d.Zb.Content,{textAlign:"center",children:(0,s.tZ)(d.xv,{type:"body-md-bold",children:y("food_profile.options.none")})})}),(0,s.tZ)(d.xu,{display:"grid",gridTemplateColumns:["repeat(2, minmax(0, 1fr))","repeat(3, minmax(0, 1fr))"],gap:"sm-2",children:P.map(function(e){var t=j.includes(e),n=y("food_profile.options.".concat(e))||e;return(0,s.tZ)(d.Zb.Selectable,{"data-testid":"exclusion-option-".concat(e),backgroundColor:t?void 0:"alias.elevation.level-1",selected:t,variant:"elevated",withoutCheckmark:!0,padding:"global.sm-1",onClick:function(){x(!0);var n=t?j.filter(function(t){return t!==e}):((function(e){if(Array.isArray(e))return nF(e)})(j)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(j)||nX(j)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e]);null==c||c(t1()({},o,n),o),tI({push:m,fpAttribute:v,fpKey:e,fpValue:t?0:1})},"aria-label":nC(y,{isSelected:t,title:n}),children:(0,s.tZ)(d.Zb.Content,{"data-testid":"exclusion-option-content-".concat(e),children:(0,s.BX)(d.xu,{display:"flex",gap:"global.xs",flexDirection:"column",alignItems:"left",children:[(0,s.BX)(d.xu,{position:"relative",width:"48px",height:"48px",overflow:"hidden",borderRadius:"border-radius-sm",flexShrink:0,children:[(0,s.tZ)(e_.ZP,{fill:!0,src:g(e),alt:"",sizes:"48px",style:{objectFit:"cover"}}),t&&(0,s.tZ)(d.xu,{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",children:(0,s.tZ)(nz.Z,{})})]}),(0,s.tZ)(d.xv,{type:"body-md-bold",children:y("food_profile.options.".concat(e))||e})]})})},e)})}),(0,s.tZ)(d.xu,{marginTop:"auto",paddingTop:["global.none","global.md-2"],children:(0,s.tZ)(nM,{})})]}),!(void 0!==u&&u)&&(0,s.tZ)(d.xu,{display:"flex",justifyContent:"flex-end",children:(0,s.tZ)(d.zx.Primary,{onClick:p,width:"auto",children:y("food_profile.options_dialog.cta")||"Done"})})]})};function nV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nN=function(e){var t,n=e.path,r=e.title,o=e.selectedOptions,i=e.hideCta,l=e.onChange,a=e.onClose,u=ta({exclusion:"v2"},{suspense:!1}).data,c=(0,eT.ZP)("website").translateRaw,f=(0,ey.Z)().push,p=null!==(t=n.split(".").pop())&&void 0!==t?t:n,b=tw()(u,n,[]),h=null!=o?o:[],y=c("food_profile.".concat(n,".title"))||n,m=null!=r?r:y,v=nl(b);return(0,s.BX)(d.xu,{display:"flex",flexDirection:"column",gap:"sm-2",role:"group","aria-label":m,children:[(0,s.tZ)(d.xu,{textAlign:"center",paddingBottom:["global.none","sm-1"],marginBottom:["global.none","md-1"],children:(0,s.tZ)(d.xv,{type:["body-lg-bold","body-xl-bold"],children:m})}),(0,s.tZ)(d.xu,{display:"grid",gridTemplateColumns:["1fr","1fr","repeat(2, minmax(0, 1fr))"],gap:"sm-2",children:v.map(function(e){var t=h.includes(e),r=c("food_profile.options.".concat(e))||e;return(0,s.tZ)(d.Zb.Selectable,{backgroundColor:t?void 0:"alias.elevation.level-1",selected:t,variant:"elevated",onClick:function(){var r=t?h.filter(function(t){return t!==e}):((function(e){if(Array.isArray(e))return nV(e)})(h)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(h)||function(e,t){if(e){if("string"==typeof e)return nV(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nV(e,void 0)}}(h)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e]);null==l||l(t1()({},n,r),n),tI({push:f,fpAttribute:p,fpKey:e,fpValue:t?0:1})},"aria-label":nC(c,{isSelected:t,title:r}),children:(0,s.tZ)(d.Zb.Content,{children:(0,s.tZ)(d.xv,{type:"body-md-bold",children:r})})},e)})}),!(void 0!==i&&i)&&(0,s.tZ)(d.xu,{display:"flex",justifyContent:"flex-end",children:(0,s.tZ)(d.zx.Primary,{onClick:a,width:"auto",children:c("food_profile.options_dialog.cta")||"Done"})})]})},nU=n(313451),nQ=n(22447),nH=function(e){var t,n=e.label,r=e.isSelected,o=e.selectedColor,i=e.onClick,l=e.isThumbsUp,a=void 0===l||l,u=(0,eT.ZP)("website").translateRaw;return(0,s.tZ)(d.xu,{as:"button",borderWidth:"0",borderStyle:"none",borderRadius:"border-radius-circle",backgroundColor:r?o:"inherit",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:r?"alias.button.foreground.primary.default":"alias.button.foreground.secondary.default",onClick:i,type:"button","aria-label":u((t={isThumbsUp:a,title:n}).isThumbsUp?"food_profile.thumbs_up.a11y_label":"food_profile.thumbs_down.a11y_label",{title:t.title}),"aria-pressed":r,children:a?(0,s.tZ)(nU.default,{}):(0,s.tZ)(nQ.default,{})})};function nK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){nK(e,t,n[t])})}return e}function nY(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var nJ=function(e){var t=e.selectedOptions,n=e.path,r=e.onChange,o=e.push,i=e.fpAttribute;return(0,f.useCallback)(function(e,l){var a=function(){var o=nY(nW({},t),nK({},e,0));null==r||r(t1()({},n,o),n)};return{handleThumbsUpClick:function(){var u=100===l;if(tI({push:o,fpAttribute:i,fpKey:e,fpValue:u?0:100}),u){a();return}var c=nY(nW({},t),nK({},e,100));null==r||r(t1()({},n,c),n)},handleThumbsDownClick:function(){var u=-100===l;if(tI({push:o,fpAttribute:i,fpKey:e,fpValue:u?0:-100}),u){a();return}var c=nY(nW({},t),nK({},e,-100));null==r||r(t1()({},n,c),n)}}},[t,n,r,o,i])},n$="155px",nG="256px",n0=function(e){return(0,s.BX)(d.xu,{display:"flex",alignItems:"center",justifyContent:"space-between",flexDirection:"column",width:"100%",minWidth:n$,maxWidth:nG,children:[(0,s.tZ)(d.xu,{position:"relative",width:"100%",overflow:"hidden",borderRadius:"border-radius-md",marginBottom:"global.xs",height:"108px",children:(0,s.tZ)(e_.ZP,{src:e.imageSrc,alt:e.optionTitle,fill:!0,sizes:"(min-width: 768px) 158px, 183px",style:{objectFit:"cover"}})}),(0,s.tZ)(d.xv,{type:"body-md-bold",children:e.optionTitle}),(0,s.BX)(d.xu,{display:"flex",gap:"global.sm-2",marginTop:"global.xs",children:[(0,s.tZ)(nH,{label:e.optionTitle,isSelected:e.isSelected,selectedColor:"alias.messages.background.success.strong",onClick:e.onThumbsUp}),(0,s.tZ)(nH,{label:e.optionTitle,isSelected:e.isNotSelected,selectedColor:"alias.messages.background.error.strong",onClick:e.onThumbsDown,isThumbsUp:!1})]})]})},n1=function(e){return(0,s.BX)(d.xu,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,s.BX)(d.xu,{display:"flex",alignItems:"center",gap:"global.xs",children:[(0,s.tZ)(e_.ZP,{src:e.imageSrc,alt:e.optionTitle,width:48,height:48,style:{objectFit:"cover"}}),(0,s.tZ)(d.xv,{type:"body-md-bold",children:e.optionTitle})]}),(0,s.BX)(d.xu,{display:"flex",gap:"global.sm-2",children:[(0,s.tZ)(nH,{label:e.optionTitle,isSelected:e.isSelected,selectedColor:"alias.messages.background.success.strong",onClick:e.onThumbsUp}),(0,s.tZ)(nH,{label:e.optionTitle,isSelected:e.isNotSelected,selectedColor:"alias.messages.background.error.strong",onClick:e.onThumbsDown,isThumbsUp:!1})]})]})},n2=function(e){var t,n=e.path,r=e.title,o=e.selectedOptions,i=void 0===o?{}:o,l=e.optionItems,a=e.variant,u=e.hideCta,c=e.onChange,f=e.onClose,p=ta({exclusion:"v2"},{suspense:!1}).data,b=(0,eT.ZP)("website").translateRaw,h=(0,ey.Z)().push,y=null!==(t=n.split(".").pop())&&void 0!==t?t:n,m=eA(),v=tw()(p,n,[]),g=b("food_profile.".concat(n,".title"))||n,O=null!=r?r:g,w=null!=l?l:nl(v),x=nJ({selectedOptions:i,path:n,onChange:c,push:h,fpAttribute:y}),j="grid"===(void 0===a?"list":a),P=j?n0:n1;return(0,s.BX)(d.xu,{role:"group","aria-label":O,children:[(0,s.tZ)(d.xu,{textAlign:"center",paddingBottom:["global.none","sm-1"],marginBottom:["global.none","md-1"],children:(0,s.tZ)(d.xv,{type:["body-lg-bold","body-xl-bold"],children:O})}),(0,s.tZ)(d.xu,{display:j?"grid":"flex",gridTemplateColumns:j?["repeat(2, minmax(0, ".concat(nG,"))"),"repeat(3, minmax(0, ".concat(nG,"))"),"repeat(3, minmax(".concat(n$,", ").concat(nG,"))")]:void 0,justifyContent:j?"center":void 0,justifyItems:j?"center":void 0,flexDirection:j?void 0:"column",maxWidth:j?void 0:"614px",marginX:j?void 0:"auto",gap:j?"sm-2":"md-2",paddingTop:["sm-2","md-1"],children:w.map(function(e){var t=b("food_profile.options.".concat(e))||e,n=i[e],r=x(e,n),o=r.handleThumbsUpClick,l=r.handleThumbsDownClick;return(0,s.tZ)(P,{option:e,optionTitle:t,imageSrc:m(e),isSelected:100===n,isNotSelected:-100===n,onThumbsUp:o,onThumbsDown:l},e)})}),!(void 0!==u&&u)&&(0,s.tZ)(d.xu,{display:"flex",justifyContent:"flex-end",paddingTop:"sm-2",children:(0,s.tZ)(d.zx.Primary,{onClick:f,width:"auto",children:b("food_profile.options_dialog.cta")})})]})},n3=function(e){return Array.isArray(e)?e:[]},n4=function(e,t,n){return function(r){var o;return(0,s.tZ)(n2,{path:r.path,title:e(t),selectedOptions:(o=r.selectedOptions)&&(void 0===o?"undefined":o&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)=="object"&&!Array.isArray(o)?o:{},optionItems:r.optionItems,variant:n,hideCta:r.hideCta,onChange:r.onChange,onClose:r.onClose})}};function n6(e,t,n,r,o){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({path:e,titleKey:t,attributePath:n,innerOptionsSection:r},o)}var n8=function(e){var t=e.id,n=e.title,r=e.icon,o=e.children;return(0,s.BX)(d.Zb.Static,{"data-test-id":t,p:"md-1",mb:["sm-2","sm-2"],width:"100%",variant:"elevated",as:"section",children:[(0,s.BX)(d.xu,{display:"flex",alignItems:"center",gap:"sm-1",children:[r&&(0,s.tZ)(d.JO,{icon:r,color:"alias.brand.foreground.default"}),(0,s.tZ)(d.xu,{paddingTop:"global.xxs",children:(0,s.tZ)(d.Zb.Header,{children:(0,s.tZ)(d.xv,{type:"body-lg-bold",children:n})})})]}),o]},t)},n5=function(e){var t,n,r=e.width,o=e.height,i=e.borderRadius,l=e.alt,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["width","height","borderRadius","alt"]);return(0,s.tZ)(d.xu,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({"data-test-id":"loading-skeleton",width:void 0===r?"100%":r,height:void 0===o?"3rem":o,backgroundColor:"shared-alias.neutral.background.light",borderRadius:void 0===i?"border-radius-lg":i,position:"relative",overflow:"hidden"},a),n=n={__dangerouslySetCustomCSS:{"&::after":{content:'""',position:"absolute",top:0,left:"-100%",width:"100%",height:"100%",background:"linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent)",animation:"shimmer 1.5s infinite",animationDelay:"0s"},"@keyframes shimmer":{"0%":{left:"-100%"},"100%":{left:"100%"}}},children:(0,s.tZ)(d.xv,{color:"transparent",children:void 0===l?"":l})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))};function n7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var n9=function(e){var t,n,r,o=e.path,i=e.title,l=e.multiple,a=e.onChange,u=(0,ey.Z)().push,c=P().isEnabled,p=eb().trackOpenFoodProfileDropdown,b=(0,f.useRef)(!1),h=function(e){if(Array.isArray(e))return e}(t=(0,f.useState)(null))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return n7(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n7(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.")}(),y=h[0],m=h[1],v=(0,eT.ZP)("website").translateRaw,g=(0,eg.Sj)(),O=(0,t2.P)({exclusion:"v2"},{suspense:!1}),w=O.data,x=O.isLoading,j=O.dataUpdatedAt,Z=ta({exclusion:"v2"},{suspense:!1}),_=Z.data,S=Z.isLoading;if(x||S)return(0,s.tZ)(n5,{});if(!_)return null;var C=tw()(_,o,[]);if(!Array.isArray(C)||0===C.length)return null;var k=t_({options:C,selectedOptions:tw()(w,o,[]),translateRaw:v,lastSelectedOptions:y}),A=k.list,E=k.selectedList,z=k.currentSelectedOptions,I=k.currentSelectedValues,D=y?null==y?void 0:y[0]:null==E?void 0:E[0];return void 0===l||l?(0,s.tZ)(d.Lt,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({onClick:function(){if(!b.current){var e;b.current=!0,tS({path:o,attributeCopy:i,currentSelectedOptions:z,push:u}),p({fpAttribute:null!==(e=o.split(".").pop())&&void 0!==e?e:o})}},onBlur:function(){b.current=!1},list:A,labelText:i,customAriaLabel:i,disabled:!A.length,listValueToString:function(e){return"".concat(null==e?void 0:e.listValue)},isMultiSelect:!0,multiSelectInitialSelectedItems:y||E},"mobile"===g&&{numberOfTags:1}),r=r={handleMultiSelectItemChange:function(e){var t=(Array.isArray(e)?e:[]).map(function(e){return tw()(e,"value")}),n=!tZ(t,I);m(e),null==a||a(t1()({},o,t)),n&&tC({path:o,attributeCopy:i,nextSelectedOptions:t,push:u})}},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n),"dropdown-multiple-".concat(j)):(0,s.tZ)(d.Lt,{onIsOpenChange:function(e){if(tS({isOpen:e.isOpen,path:o,attributeCopy:i,currentSelectedOptions:z,push:u}),e.isOpen){var t;p({fpAttribute:null!==(t=o.split(".").pop())&&void 0!==t?t:o})}},list:A,labelText:i,customAriaLabel:i,disabled:!A.length,listValueToString:function(e){return"".concat(null==e?void 0:e.listValue)},selectedItem:D,handleSelectedItemChange:function(e){var t=e.selectedItem,n=tw()(t,"value")?[tw()(t,"value")]:[],r=!tZ(n,I);if(m([t]),null==a||a(t1()({},o,n)),r){if(c){var l,s=tw()(t,"value");tI({push:u,fpAttribute:null!==(l=o.split(".").pop())&&void 0!==l?l:o,fpKey:s,fpValue:n.length>0?1:0})}else tC({path:o,attributeCopy:i,nextSelectedOptions:n,push:u})}}},"dropdown-single-".concat(j))},re=function(e){var t=e.slots.filter(function(e){return null!==e.content});return 0===t.length?null:(0,s.tZ)(d.xu,{display:"grid",gridTemplateColumns:["1fr","1fr 1fr"],gap:"global.sm-2",width:"100%",mt:"global.sm-2",children:t.map(function(e){return(0,s.tZ)(d.xu,{"data-test-id":"field-".concat(e.key),children:e.content},e.key)})})};function rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var rn=function(e){var t,n,r,o,i,l,a,u,c,p,b,h,y,m=e.handleChange,v=(0,eT.ZP)("website").translateRaw,g=(0,t2.P)({exclusion:"v2"},{suspense:!1}),O=g.data,w=g.isLoading,x=(n=(t=ta({exclusion:"v2"},{suspense:!1})).data,r=t.isLoading,{showSlot:(0,f.useCallback)(function(e){return r||function(e,t){if(null==e)return!1;var n=tw()(e,t);return Array.isArray(n)?n.length>0:null!=n&&(void 0===n?"undefined":n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)=="object"}(n,e)},[r,n])}).showSlot,j=function(e){if(Array.isArray(e))return e}(o=(0,f.useState)(""))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(o,2)||function(e,t){if(e){if("string"==typeof e)return rt(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rt(e,2)}}
1(o,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.")}(),P=j[0],Z=j[1],_=null!==(y=null==O?void 0:null===(h=O.taste)||void 0===h?void 0:null===(b=h.dietaryPreferences)||void 0===b?void 0:b[0])&&void 0!==y?y:"";(0,f.useEffect)(function(){Z(_)},[_]);var S=(i=function(e){return function(t){return(0,s.tZ)(nN,{path:t.path,title:v(e),selectedOptions:n3(t.selectedOptions),hideCta:t.hideCta,onChange:t.onChange,onClose:t.onClose})}},l=function(e){return n4(v,e)},a=function(e){return n4(v,e,"grid")},u=P?"_meta.primaryProteinsGroups.".concat(P):nS.V.primaryProteins.path,{habitsRows:[[n6(nS.V.exclusions.path,nS.V.exclusions.labelKey,"exclusions",(c="food_profile.exclude.title",function(e){return(0,s.tZ)(nL,{path:e.path,title:v(c),selectedOptions:n3(e.selectedOptions),hideCta:e.hideCta,onChange:e.onChange,onClose:e.onClose})}),{noneLabel:v("food_profile.options.none")}),n6(u,nS.V.primaryProteins.labelKey,"primaryProteins",l("food_profile.proteins.title"),{showPositiveOptions:!0,key:"primaryProteins"})],[n6(nS.V.flavors.path,nS.V.flavors.labelKey,"flavors",l("food_profile.flavors.title"),{showPositiveOptions:!0})]],goalsRows:[[n6(nS.V.goals.path,nS.V.goals.labelKey,"goals.goals",i("food_profile.personal-goals.title")),n6(nS.V.nutritions.path,nS.V.nutritions.labelKey,"taste.nutritions",i("food_profile.nutrition-goals.title"))]],cookingRows:[[n6(nS.V.cuisines.path,nS.V.cuisines.labelKey,"taste.cuisines",a("food_profile.cuisines.title"),{showPositiveOptions:!0}),n6(nS.V.dishTypes.path,nS.V.dishTypes.labelKey,"taste.dishTypes",a("food_profile.dish_type.title"),{showPositiveOptions:!0})],[n6(nS.V.mealTypes.path,nS.V.mealTypes.labelKey,"taste.mealTypes",(p="food_profile.cooking-style.title",function(e){return(0,s.tZ)(nE,{path:e.path,title:v(p),selectedOptions:n3(e.selectedOptions),hideCta:e.hideCta,onChange:e.onChange,onClose:e.onClose})}))]]}),C=S.habitsRows,k=S.goalsRows,A=S.cookingRows,E=function(e){var t,n,r;m(e,"dietaryPreferences"),Z(null!==(r=null===(n=e.taste)||void 0===n?void 0:null===(t=n.dietaryPreferences)||void 0===t?void 0:t[0])&&void 0!==r?r:"")},z=function(e){var t,n,r;return{key:null!==(t=e.key)&&void 0!==t?t:e.path,content:x(e.path)?(0,s.tZ)(nb,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({path:e.path,title:v(e.titleKey),onChange:function(t){return m(t,e.attributePath)},innerOptionsSection:e.innerOptionsSection},e.showPositiveOptions?{showPositiveOptions:!0}:{}),r=r={noneLabel:e.noneLabel},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n)):null}},I=function(e){return e.flat().some(function(e){return x(e.path)})?e.map(function(e){return(0,s.tZ)(re,{slots:e.map(z)},e[0].path)}):null},D=function(e,t,n,r){return null==r?null:(0,s.tZ)(n8,{id:e,title:v(t),icon:n,children:r})};if(w)return null;var R=x("household"),T=x("taste.dietaryPreferences");return(0,s.BX)(s.HY,{children:[(T||R)&&(0,s.BX)(d.xu,{display:"flex",flexDirection:["column","row"],gap:["global.none","sm-2"],children:[T&&D("your-diet","food_profile.your_diet.title",(0,s.tZ)(nx.Z,{}),(0,s.BX)(d.xu,{marginTop:"md-1",gap:"sm-2",display:"grid",gridTemplateColumns:R?"1fr":["1fr","1fr 1fr"],alignItems:"center",children:[(0,s.tZ)(n9,{path:"taste.dietaryPreferences",multiple:!1,title:v("food_profile.dietary_habits.diet_type_list_placeholder"),onChange:function(e){return E(e)}},"dietaryPreferences"),(0,s.tZ)(d.xv,{type:"body-md-regular",children:v("food_profile.your_diet."+P+"_description")})]})),R&&D("household","food_profile.household.title",(0,s.tZ)(n_.Z,{}),(0,s.tZ)(nw,{handleChange:m}))]}),D("habits","food_profile.dietary_habits.title",(0,s.tZ)(nZ.Z,{}),I(C)),D("goals","food_profile.goals.title",(0,s.tZ)(nj.Z,{}),I(k)),D("cooking-preferences","food_profile.cooking_preferences.title",(0,s.tZ)(nP.Z,{}),I(A))]})},rr=function(){var e=(0,x.Z)("enable_food_profile_header_widget"),t=e.isEnabled;return e.isReady&&t},ro=n(543790),ri=n(142230),rl=n(965883),ra=function(){var e=(0,eT.ZP)("food_profile").translateRaw,t=(0,eS.Z)()===ro.Z.factor;return(0,s.tZ)(d.xu,{"data-test-id":"food-profile-header-banner",mt:"sm-2",position:"relative",zIndex:1,children:(0,s.tZ)(rl.Z,{source:O,hideDismiss:!0,title:e("food_profile.profile_banner.title"),subtitle:e("food_profile.profile_banner.subtitle"),backgroundColor:t?void 0:"global.white",ctaStyle:"chevron",isCardClickable:!0})})},ru=["food_profile.header.how_it_works.bullet_1","food_profile.header.how_it_works.bullet_2","food_profile.header.how_it_works.bullet_3"],rc=794/1420,rs=function(){var e=(0,eT.ZP)("website").translate,t=(0,eT.ZP)("food_profile").translateRaw,n=(0,eS.Z)(),r=rr(),o=eI(r?"food-profile-header-v2-desktop":"food-profile-header"),i=(0,d.Fg)(),l=(0,eg.Sj)(),a=n!==ro.Z.hellofresh?"transparent":"alias.elevation.level-1",u=Math.round(((0,ri.Y)({ignoreDismissal:!0}).isVisible?398:300)/rc),c="min(calc(50cqw - ".concat(8,"px), ").concat(u,"px)"),f="max(0px, calc(50cqw - ".concat(u+8,"px))"),p="calc(".concat(c," * ").concat(rc.toFixed(4),")");return(0,s.tZ)(d.xu,{"data-testid":"food-profile-header",as:"header",backgroundColor:a,position:"relative",width:"100cqw",left:"50%",right:"50%",style:{marginLeft:"-50cqw",marginRight:"-50cqw","--space-bottom":"40px"},mb:"calc(var(--space-bottom) * -1)",children:r?(0,s.BX)(s.HY,{children:[(0,s.tZ)(d.xu,{maxWidth:["100%","960px","1144px"],minHeight:["auto",p,p],mx:"auto",px:["sm-1","sm-1",null],position:"relative",zIndex:1,boxSizing:"border-box",children:(0,s.BX)(d.xu,{"data-testid":"food-profile-header-description",width:["100%","50%","50%"],paddingTop:["sm-2","md-2","md-2"],paddingRight:["zero","sm-1","sm-1"],textAlign:"left",pb:["sm-2","calc(var(--space-bottom) + 8px)"],children:[(0,s.tZ)(d.xv,{as:"h2",mb:"sm-2","data-test-id":"food-profile-title",children:e("food_profile.header.title")}),(0,s.tZ)(d.xv,{as:"h3",mb:"sm-1","data-testid":"food-profile-how-it-works",children:t("food_profile.header.how_it_works.title")}),(0,s.tZ)(d.xu,{as:"ul","data-testid":"food-profile-how-it-works-list",margin:"global.none",paddingLeft:"global.md-1",children:ru.map(function(e){return(0,s.tZ)(d.xv,{as:"li",type:"body-md-regular",children:t(e)},e)})}),(0,s.tZ)(ra,{})]})}),(0,s.tZ)(d.xu,{"data-testid":"food-profile-header-image",position:["relative","absolute","absolute"],top:["auto","zero","zero"],bottom:["auto","zero","zero"],right:["auto",f,f],width:["100%",c,c],height:["auto","auto","auto"],children:(0,s.tZ)(e_.ZP,{src:(0,eR.Z)(o),alt:"",width:1420,height:794,"aria-hidden":"true",style:{display:"block",width:"100%",height:"mobile"===l?"auto":"100%",objectFit:"cover"}})})]}):(0,s.BX)(d.xu,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:["column","row","row"],gap:["zero","zero","sm-2"],maxWidth:["100%","960px","1144px"],boxSizing:"border-box",px:["zero","sm-1"],mx:"auto",pb:["unset","calc(var(--space-bottom))"],children:[(0,s.BX)(d.xu,{"data-testid":"food-profile-header-description",width:"100%",px:["sm-1","sm-1","zero"],children:[(0,s.tZ)(d.xv,{as:"h2",mb:"sm-2","data-test-id":"food-profile-title",mt:["md-1","zero"],children:e("food_profile.header.title")}),(0,s.tZ)(d.xv,{as:"h3",mb:"sm-1","data-test-id":"food-profile-title",children:e("food_profile.header.explainer_title")}),(0,s.tZ)(d.xv,{as:"p",type:"body-md-regular","data-test-id":"food-profile-description",children:e("food_profile.header.explainer_body_first")}),(0,s.tZ)(d.xv,{as:"p",type:"body-md-regular","data-test-id":"food-profile-description-2",marginTop:"global.xs",children:e("food_profile.header.explainer_body_second")})]}),(0,s.tZ)(d.xu,{"data-testid":"food-profile-header-image",position:"relative",width:"100%",py:"sm-2",mb:["calc(var(--space-bottom) * -1)","unset"],maxHeight:["350px","220px","285px"],children:(0,s.tZ)(e_.ZP,{src:(0,eR.Z)(o),alt:"",width:1080,height:433,"aria-hidden":"true",style:{maxWidth:"100%",height:"auto",borderRadius:"mobile"!==l?i.radii["border-radius-md"]:"0"}})})]})})};function rf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rf(e,t)}}
1(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 rp=function(e){var t=e.isLoading,n=e.returnFocusRef,r=e.handleModalConfirmation,o=e.onDismiss;return(0,s.tZ)(tY,{isLoading:t,returnFocusRef:n,onDismiss:o,onConfirm:r})},rb=function(){var e=(0,eT.ZP)("website").translateRaw,t=(0,ey.Z)().push,n=eb(),r=n.trackProfileUpdate,o=n.trackSubmitFoodProfile,i=tK().impactsMealPreselectionPaths,l=rd((0,f.useState)(null),2),a=l[0],u=l[1],c=rd((0,f.useState)(null),2),p=c[0],b=c[1],h=(0,tV.r)({},{suspense:!1,retry:1}),y=h.mutate,m=h.isLoading,v=(0,f.useRef)(null),g=(0,f.useRef)(new Set),O=(0,f.useRef)(!1);(0,E.Vq)(tQ.q.FoodProfile);var w=e("profile_settings.success_feedback.food_profile_change"),x=e("food_profile.saving_error.toast"),j=function(e){var t=e.content,n=e.type;(0,tN.wN)(tU.ZP.create(t,"food-profile-update",{type:n,delayedDismiss:!0,delayedDismissDuration:4e3,overrideId:"food-profile-update"}))};(0,f.useEffect)(function(){O.current||(O.current=!0,tk({push:t}))},[t]);var P=function(e){var n;tE({push:t,eventLabel:null!==(n=({"close-modal-button-click":"X","cancel-modal-button-click":"ButtonClick","outside-modal-click":"Dismiss"})[e])&&void 0!==n?n:"Unknown"}),b(null)},Z=function(){tA({push:t,editedAttributes:Array.from(g.current)}),_()},_=function(){if(a){var e=tL(a);y({data:a,exclusion:"v2",source:"food-profile"},{onSuccess:function(){r({status:z.h3.Success,systemMessage:null,editedAttributes:e}),u(null),g.current.clear(),j({content:w,type:tU.k$.success})},onError:function(){r({status:z.h3.Failed,systemMessage:x,editedAttributes:e}),tR({push:t}),j({content:x,type:tU.k$.error})},onSettled:function(){b(null)}})}};return(0,s.BX)(ev.Z,{componentName:"profile-by-plan-id",children:[(0,s.BX)(d.xu,{"data-test-id":"food-profile",width:"100%",position:"relative",children:[(0,s.tZ)(rs,{}),(0,s.BX)(d.xu,{as:"section",children:[(0,s.tZ)(rn,{handleChange:function(e,t){t&&g.current.add(t),u(function(t){return tg()({},t,e,function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e,t)})})}}),!!a&&(0,s.tZ)(tG,{position:"bottom",children:(0,s.tZ)(d.xu,{display:"flex",justifyContent:"flex-end",width:"100%",children:(0,s.tZ)(d.zx.Primary,{"data-test-id":"save-button",width:["100%","220px"],loading:m,ref:v,"aria-label":e("food_profile.accessibility.cta_save")||e("food_profile.cta_save")||"Save",onClick:function(){tD({push:t}),a&&(o({editedAttributes:tL(a)}),i.some(function(e){return!!tw()(a,e)})?b(rp({isLoading:!1,returnFocusRef:v,handleModalConfirmation:Z,onDismiss:function(e){return P(e)}})):_())},children:e("food_profile.cta_save")})})})]})]}),p]})},rh=function(){return(0,s.BX)(s.HY,{children:[(0,s.tZ)(n5,{mt:"lg-3",mb:"sm-1",width:"150px",height:"1.5rem",borderRadius:"border-radius-pill"}),(0,s.BX)(d.xu,{display:"flex",flexDirection:["column","row"],gap:"global.sm-2",width:"100%",mt:"md-1",children:[(0,s.tZ)(n5,{mb:"sm-1"}),(0,s.tZ)(n5,{mb:"sm-1"})]})]})},ry=function(){return(0,s.tZ)(em.Z,{claim:{name:"menu-personalization-experience",githubTeam:"hellofresh/squad-menu-personalization-experience",tribe:"personalization-and-data",alliance:"no-alliance-consumer",jiraPrefix:"MPE",slackChannel:"#squad-menu-personalization-experience",slackAlertsChannel:"#squad-menu-personalization-experience-alerts-live",skipLabelsOnPR:!1,teamIdentifier:"menu-personalization-experience"},children:(0,s.tZ)(d.xu,{maxWidth:["100%","960px","1144px"],mx:"auto",mt:"lg-1",px:["sm-1","sm-1",null],children:(0,s.BX)(d.xu,{width:"100%",children:[(0,s.tZ)(n5,{mb:"sm-1",width:"25%",height:"1.5rem",borderRadius:"border-radius-pill"}),(0,s.tZ)(n5,{mb:"sm-1",width:"40%"}),(0,s.tZ)(rh,{}),(0,s.tZ)(rh,{}),(0,s.tZ)(rh,{})]})})})},rm=function(e){var t=e.scope,n=(0,eT.ZP)("website"),r=n.translate,o=n.translateRaw;return(0,s.tZ)(ev.Z,{componentName:"food-profile.error-fallback-profile-module",attributes:{scope:t},children:(0,s.BX)(d.xu,{display:"flex",flexDirection:"column",alignItems:"center",children:[(0,s.tZ)(e_.ZP,{alt:o("food_profile.accessibility.loading_screen"),qual
1ity:"100",fetchFormat:"png",width:"200",height:"200",src:(0,eR.Z)("https://media.hellofresh.com/hellofresh_website/food_profile/920deb7054960fd8ebf187f30f56d7de3d0291cf.png")}),(0,s.tZ)(d.xv,{as:"p",type:"body-lg-bold",textAlign:"center",children:r("food_profile.loading_error.title")}),(0,s.tZ)(d.xu,{maxWidth:300,mt:"global.sm-1",textAlign:"center",children:(0,s.tZ)(d.xv,{as:"p",textAlign:"center",children:r("food_profile.loading_error.subtitle")})}),(0,s.BX)(d.xu,{display:"flex",flexDirection:["column","row"],width:"100%",gap:"global.md-1",mt:"global.lg-1",p:"global.md-1",justifyContent:"center",children:[(0,s.tZ)(d.zx.Primary,{width:[null,"auto"],onClick:function(){window.location.reload()},"aria-label":o("food_profile.loading_error.try_again_cta")||"Try again",children:r("food_profile.loading_error.try_again_cta")}),(0,s.tZ)(d.zx.Secondary,{width:[null,"auto"],onClick:function(){window.location.reload()},"aria-label":o("food_profile.loading_error.go_back_cta")||"Go back",children:r("food_profile.loading_error.go_back_cta")})]})]})})};function rv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rv(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 rO=function(){var e=tf(),t=e.shouldShow,n=e.isReady,r=rg(C(),2)[1],o=(0,f.useRef)(null);null===o.current&&n&&(o.current=t);var i=rg((0,f.useState)(!1),2),l=i[0],a=i[1],u=!0===o.current&&!l;return(0,f.useEffect)(function(){u&&r()},[u]),{isOpen:u,onClose:function(){return a(!0)}}},rw=function(){tm(),eh();var e,t=(0,tu.j)({},{suspense:!1}),n=t.data,r=t.isLoading,o=P().isReady,i=ta({exclusion:"v2"},{suspense:!1,retry:0,enabled:o}),l=i.isLoading,a=i.isError,u=i.data;return r||l||!o?(0,s.tZ)(ry,{}):a||!u?(0,s.tZ)(rm,{scope:"food-profile.no-options-available"}):(0,s.tZ)(p.Z,{values:{plan_id:(null==n?void 0:null===(e=n.customerPlanIds)||void 0===e?void 0:e[0])||"unknown",customer_id:(null==n?void 0:n.id)||"unknown",plan_type:"unknown",gaEventCategory:"FoodProfileSettings",isV2:!0},children:(0,s.tZ)(ev.Z,{componentName:"profile-module",children:(0,s.tZ)(rb,{})})})},rx=function(){var e=rO();return(0,s.BX)(em.Z,{claim:{name:"menu-personalization-experience",githubTeam:"hellofresh/squad-menu-personalization-experience",tribe:"personalization-and-data",alliance:"no-alliance-consumer",jiraPrefix:"MPE",slackChannel:"#squad-menu-personalization-experience",slackAlertsChannel:"#squad-menu-personalization-experience-alerts-live",skipLabelsOnPR:!1,teamIdentifier:"menu-personalization-experience"},children:[(0,s.tZ)(b.Z,{scope:"food-profile",fallback:(0,s.tZ)(rm,{scope:"food-profile"}),children:(0,s.tZ)(rw,{})}),(0,s.tZ)(e9,{isOpen:e.isOpen,onClose:e.onClose})]})},rj=function(e){var t,n,r="taste.primaryProteins"===e,o=(0,t2.P)({exclusion:"v2"},{suspense:!1,enabled:r}).data,i=ta({exclusion:"v2"},{suspense:!1,enabled:r}).data;if(r){var l=null==o?void 0:null===(n=o.taste)||void 0===n?void 0:null===(t=n.dietaryPreferences)||void 0===t?void 0:t[0];if(l){var a=tw()(i,"_meta.primaryProteinsGroups.".concat(l));return Array.isArray(a)?a:void 0}}},rP=function(e){var t=e.onChange,n=(0,eT.ZP)("website").translateRaw,r=eD("food-profile-household");return(0,s.BX)(d.xu,{display:"flex",flexDirection:"column",gap:"sm-2",role:"group","aria-label":n("food_profile.household_drawer.title"),children:[(0,s.tZ)(d.xu,{display:["none","block","block"],textAlign:"center",paddingBottom:["global.none","sm-1"],marginBottom:["global.none","md-1"],children:(0,s.tZ)(d.xv,{type:["body-lg-bold","body-xl-bold"],children:n("food_profile.household_drawer.title")})}),(0,s.BX)(d.xu,{display:["block","grid","grid"],gridTemplateColumns:"1fr 1fr",gap:"md-2",alignItems:"center",children:[(0,s.tZ)(d.xu,{gridColumn:"2",gridRow:"1",position:"relative",width:"100%",display:"flex",justifyContent:"center",borderRadius:["global.none","border-radius-md"],overflow:"hidden",children:(0,s.tZ)(e_.ZP,{src:(0,eR.Z)(r),alt:"",width:1080,height:433,"aria-hidden":"true",style:{maxWidth:"100%",height:"auto"}})}),(0,s.tZ)(d.xu,{display:["block","none","none"],paddingTop:"md-1",children:(0,s.tZ)(d.xv,{type:"body-lg-bold",children:n("food_profile.household_drawer.title")})}),(0,s.tZ)(d.xu,{gridColumn:"1",gridRow:"1",children:(0,s.tZ)(nw,{handleChange:void 0===t?function(){}:t})})]})]})},rZ=function(e){return Array.isArray(e)?e:[]},r_=function(e,t){return function(n){var r=n.translateRaw,o=n.question,i=n.selectedOptions,l=n.onChange,a=n.onClose;return(0,s.tZ)(e,{hideCta:!0,path:o.field,title:r(t),selectedOptions:rZ(i),onChange:l,onClose:a})}},rS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.single,r=void 0!==n&&n,o=t.getDescriptionKey;return function(t){var n=t.translateRaw,i=t.question,l=t.selectedOptions,a=t.onChange,u=t.onClose;return(0,s.tZ)(nE,{hideCta:!0,maxColumns:4,multiple:!r,getDescriptionKey:o,path:i.field,title:n(e),selectedOptions:rZ(l),onChange:a,onClose:u})}},rC=function(e,t){return function(n){var r,o=n.translateRaw,i=n.question,l=n.selectedOptions,a=n.onChange,u=n.onClose,c=rj(i.field),f=nu(i.field,c);return(0,s.tZ)(n2,{hideCta:!0,variant:t,path:i.field,title:o(e),selectedOptions:(r=l)&&(void 0===r?"undefined":r&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&!Array.isArray(r)?r:{},optionItems:f,onChange:a,onClose:u})}},rk={"taste-exclusions":r_(nL,"food_profile.exclude.title"),"taste-primary-proteins":rC("food_profile.proteins.title"),"taste-flavors":rC("food_profile.flavors.title"),"taste-cuisines":rC("food_profile.cuisines.title","grid"),"taste-dish-types":rC("food_profile.dish_type.title","grid"),"taste-meal-types":rS("food_profile.cooking-style.title"),"goals-goals":r_(nN,"food_profile.personal-goals.title"),"taste-nutritions":r_(nN,"food_profile.nutrition-goals.title"),"taste-dietary-preferences":rS("food_profile.diet_type_drawer.title",{single:!0,getDescriptionKey:function(e){return"food_profile.your_diet.".concat(e,"_description")}}),"household-total-people":function(e){var t=e.onChange;return(0,s.tZ)(rP,{onChange:t})}},rA=function(e){return rk[e]};function rE(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}var rz=(i=function(e,t){var n,r,o,i,l=arguments;return function(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(a){switch(a.label){case 0:return n=e.customerUUID,r=e.brand,o=e.regionCode,i=e.exclusion,[4,(l.length>2&&void 0!==l[2]?l[2]:tt.Z)("/profile-service/v2/customers/".concat(n,"/profile/questions"),t,{method:"GET",headers:{"Content-Type":"application/json"},query:{brand:r,regionCode:o,exclusion:i},fetchSpanAttributes:{"request.backend_service":"profile-service","request.backend_action":"get-profile-questions"}})];case 1:return[2,a.sent().json()]}})},l=function(){var e=this,t=arguments;return new Promise(function(n,r){var o=i.apply(e,t);function l(e){rE(o,n,r,l,a,"next",e)}function a(e){rE(o,n,r,l,a,"throw",e)}l(void 0)})},function(e,t){return l.apply(this,arguments)}),rI=function(e,t){var n=(0,tn.Z)().fetch,r=(0,tr.Z)(),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({customerUUID:"me",brand:r.brand,regionCode:r.region_code,exclusion:"v2"},e),i=[to.Z["profile.get-profile-questions"],o];return(0,te.useQuery)(i,function(){return rz(o,i,n)},t)},rD=function(){var e,t=rI({exclusion:"v2"},{suspense:!1,retry:1,refetchOnMount:"always"}),n=t.data,r=t.isError,o=t.isStale,i=(0,f.useRef)(null);i.current||!n||o||(i.current=n);var l=null!==i.current;return{questions:null!==(e=i.current)&&void 0!==e?e:[],isLoading:!l&&!r,isError:!l&&r}},rR=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfileQuiz_Started",gaEventAction:"QuizStarted",gaEventLabel:"None",quiz_source:e.quizSource,total_questions:e.totalQuestions})},rT=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfileQuiz_QuestionViewed",gaEventAction:"QuestionViewed",gaEventLabel:"None",quiz_source:e.quizSource,question_id:e.questionId,question_index:e.questionIndex,total_questions:e.totalQuestions})},rB=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfileQuiz_QuestionAnswered",gaEventAction:"QuestionAnswered",gaEventLabel:"None",quiz_source:e.quizSource,question_id:e.questionId,question_index:e.questionIndex,total_questions:e.totalQuestions,edited_attributes:e.editedAttributes})},rq=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfileQuiz_QuestionSkipped",gaEventAction:"QuestionSkipped",gaEventLabel:"None",quiz_source:e.quizSource,question_id:e.questionId,question_index:e.questionIndex,total_questions:e.totalQuestions})},rM=function(e){var t=e.push,n=e.quizSource,r=e.questionId,o=e.questionIndex,i=e.totalQuestions;t({event:"gaEventTrigger",event_name:"FoodProfileQuiz_Dismissed",gaEventAction:"QuizDism
1issed",gaEventLabel:e.eventLabel,quiz_source:n,question_id:r,question_index:o,total_questions:i})},rF=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfileQuiz_SuccessScreenImpression",gaEventAction:"SuccessScreenImpression",gaEventLabel:"None",quiz_source:e.quizSource,total_questions:e.totalQuestions,answered_count:e.answeredCount,skipped_count:e.skippedCount})},rX=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfileQuiz_LoadingScreenImpression",gaEventAction:"LoadingScreenImpression",gaEventLabel:"None",quiz_source:e.quizSource,total_questions:e.totalQuestions,answered_count:e.answeredCount,skipped_count:e.skippedCount})},rL=function(e){var t=e.push,n=e.quizSource,r=e.totalQuestions,o=e.answeredCount,i=e.skippedCount;t({event:"gaEventTrigger",event_name:"FoodProfileQuiz_Completed",gaEventAction:"QuizCompleted",gaEventLabel:e.eventLabel,quiz_source:n,total_questions:r,answered_count:o,skipped_count:i})},rV=function(e){(0,e.push)({event:"gaEventTrigger",event_name:"FoodProfileQuiz_StoreRefreshed",gaEventAction:"StoreRefreshed",gaEventLabel:"None",quiz_source:e.quizSource,answered_count:e.answeredCount})},rN=n(809805),rU=function(){var e,t=(0,rN.Ae)("food_profile_quiz_loading_config"),n=t.isReady?null===(e=t.value)||void 0===e?void 0:e.quiz_loading_time:void 0;return"number"==typeof n?n:4e3},rQ=function(){var e=(0,x.Z)("enable_food_profile_quiz_loading"),t=e.isEnabled,n=e.isReady;return{isEnabled:t&&n,isReady:n}},rH=n(799969),rK=n(860853),rW=(u="/food-profile",O in(a={})?Object.defineProperty(a,O,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[O]=u,a),rY=function(e,t){return e&&rW[e]||(t?"/".concat(t,"/my-deliveries"):"/my-account/deliveries/menu")},rJ=function(e){var t=e.totalSteps,n=e.currentStep;return t<=1?null:(0,s.tZ)(d.xu,{display:"flex",gap:"global.sm-2",flex:"1",maxWidth:"552px",children:Array.from({length:t},function(e,t){return(0,s.tZ)(d.xu,{flex:"1",height:"4px",backgroundColor:t<n?"neutral.800":"shared-alias.neutral.foreground.disabled",borderRadius:"global.sm"},t)})})},r$=function(e){var t=e.isOpen,n=e.onSave,r=e.onDiscard,o=e.returnFocusRef,i=(0,eT.ZP)("website").translateRaw,l=(0,eg.Sj)(),a=(0,s.BX)(d.xu,{display:"flex",flexDirection:"column",gap:"global.sm-2",children:[(0,s.tZ)(d.xv,{as:"h3",children:i("food_profile.unsaved_drawer.title")}),(0,s.tZ)(d.xv,{as:"p",type:"body-md-regular",children:i("food_profile.unsaved_drawer.subtitle")}),(0,s.BX)(d.xu,{display:"flex",gap:"global.sm-1",children:[(0,s.tZ)(d.zx.Secondary,{width:"100%",onClick:r,children:i("food_profile.unsaved_drawer.discard_cta")}),(0,s.tZ)(d.zx.Primary,{width:"100%",onClick:n,children:i("food_profile.cta_save")})]})]});return"mobile"===l?(0,s.tZ)(d.dy.Container,{isModal:!0,isOpen:t,hideCloseButton:!0,onClose:r,onDismiss:r,placement:"bottom",returnFocusRef:o,width:"100%","aria-label":i("food_profile.unsaved_drawer.title"),children:(0,s.tZ)(d.xu,{padding:"global.sm-2",children:a})}):(0,s.tZ)(d.Vq,{isOpen:t,onClose:r,hasCloseButton:!0,headless:!0,width:"400px",returnFocusRef:o,"aria-label":i("food_profile.unsaved_drawer.title"),children:(0,s.tZ)(d.xu,{padding:"md-1",children:a})})},rG=n(857222);function r0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function r1(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function r2(){var e=r1(["\n    0% {\n      opacity: 0;\n      top: 0;\n      transform: translateY(-100%);\n    }\n    0.01% {\n      opacity: 1;\n      top: 0;\n      transform: translateY(-100%);\n    }\n    ","% {\n      opacity: 1;\n      top: ","%;\n      transform: translateY(-50%);\n    }\n    ","%, 100% {\n      opacity: 0;\n      top: ","%;\n      transform: translateY(-50%);\n    }\n  "]);return r2=function(){return e},e}function r3(){var e=r1(["\n  from { opacity: 0; }\n  to { opacity: 1; }\n"]);return r3=function(){return e},e}function r4(){var e=r1(["\n  animation: "," ","ms ease-out both;\n\n  @media (prefers-reduced-motion: reduce) {\n    animation: none;\n  }\n"]);return r4=function(){return e},e}function r6(){var e=r1(["\n  overflow: visible;\n"]);return r6=function(){return e},e}function r8(){var e=r1(["\n  transform-origin: center;\n  top: 0;\n  opacity: 0;\n  transform: translateY(-100%);\n  animation: "," ","ms\n    ease-in ","ms infinite;\n\n  @media (prefers-reduced-motion: reduce) {\n    animation: none;\n    opacity: 0;\n  }\n"]);return r8=function(){return e},e}var r5=300/175,r7=[{key:"tomato",width:30,height:29,laneX:86,delayMs:0,cycleMs:2736},{key:"egg",width:30,height:26,laneX:114,delayMs:370,cycleMs:2302},{key:"cucumber",width:31,height:27,laneX:48,delayMs:740,cycleMs:2578},{key:"mushroom",width:29,height:29,laneX:127,delayMs:1100,cycleMs:2425},{key:"olive",width:24,height:25,laneX:71,delayMs:1470,cycleMs:2628},{key:"mais",width:15,height:14,laneX:105,delayMs:1840,cycleMs:2200}],r9=r7.map(function(e){var t;return t=e.cycleMs,(0,rG.F4)(r2(),1552/t*100,45,Math.min(100,1600/t*100),45)}),oe=(0,rG.F4)(r3()),ot=(0,rG.ZP)(d.xu).withConfig({componentId:"sc-41b8bcd-0"})(r4(),oe,400),on=(0,rG.ZP)(d.xu).withConfig({componentId:"sc-41b8bcd-1"})(r6()),or=(0,rG.ZP)(d.xu).withConfig({componentId:"sc-41b8bcd-2"})(r8(),function(e){return e.$keyframe},function(e){return e.$cycleMs},function(e){return e.$delayMs}),oo=function(e){var t=e.src,n=e.sizes;return(0,s.tZ)(e_.ZP,{fill:!0,priority:!0,src:t,alt:"","aria-hidden":"true",sizes:n,style:{objectFit:"contain"}})},oi=function(e){var t,n=e.navigateTo,r=e.loadingDurationMs,o=ez(),i=(0,eT.ZP)("website").translateRaw,l=function(e){if(Array.isArray(e))return e}(t=(0,f.useState)(!0))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return r0(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r0(e,2)}}
1(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.")}(),a=l[0],u=l[1];return((0,f.useEffect)(function(){var e=setTimeout(function(){return u(!1)},1e3);return function(){return clearTimeout(e)}},[]),(0,f.useEffect)(function(){var e=setTimeout(function(){return n()},r);return function(){return clearTimeout(e)}},[r,n]),a)?(0,s.tZ)(d.xu,{height:"100%",width:"100%","data-testid":"loading-hold"}):(0,s.tZ)(ot,{display:"flex",flexDirection:"column",alignItems:"center",flexGrow:1,minHeight:0,height:"100%",width:"100%",children:(0,s.BX)(on,{display:"flex",alignItems:"center",justifyContent:"center",position:"relative",flexGrow:1,minHeight:0,width:"100%","data-testid":"animation-container",children:[(0,s.tZ)(d.xu,{position:"relative",width:"".concat(300,"px"),height:"".concat(300,"px"),flexShrink:0,children:(0,s.tZ)(oo,{src:o("bowl"),sizes:"".concat(300,"px")})}),(0,s.tZ)(d.xu,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden",pointerEvents:"none",children:r7.map(function(e,t){var n;return(0,s.tZ)(or,{position:"absolute",left:(n=e.laneX,"calc(50% - ".concat(150,"px + ").concat(n*r5,"px)")),width:"".concat(e.width,"px"),height:"".concat(e.height,"px"),$keyframe:r9[t],$cycleMs:e.cycleMs,$delayMs:e.delayMs,children:(0,s.tZ)(oo,{src:o(e.key),sizes:"".concat(e.width,"px")})},e.key)})}),(0,s.BX)(d.xu,{position:"absolute",top:["calc(43% + ".concat(150,"px)"),"calc(45% + ".concat(150,"px)")],left:"0",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",gap:"xs",paddingTop:"sm-2",paddingX:"sm-2",children:[(0,s.tZ)(d.xv,{as:"h2",textAlign:"center",children:i("food_profile.quiz_loading.title")}),(0,s.tZ)(d.xu,{maxWidth:["300px","none"],children:(0,s.tZ)(d.xv,{as:"p",type:"body-md-regular",textAlign:"center",children:i("food_profile.quiz_loading.description")})})]})]})})};function ol(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oa(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function ou(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function l(e){oa(i,r,o,l,a,"next",e)}function a(e){oa(i,r,o,l,a,"throw",e)}l(void 0)})}}function oc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ol(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ol(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 os(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var of=function(e){var t,n,r=e.totalSteps,o=e.onAdvance,i=e.onBack,l=e.onCloseClick,a=e.onUnsavedModalShown,u=e.onStepChange,c=e.onSuccessShown,p=e.onLoadingShown,b=e.onDismiss,h=e.onCompleted,y=e.hasPendingChanges,v=e.hasSavedChanges,g=e.children,w=(0,m.t)(),x=w.push,j=w.query,P=(0,rH.xY)(),Z=(0,eT.ZP)("website").translateRaw,_=oc((0,f.useState)(1),2),S=_[0],C=_[1],k=oc((0,f.useState)("question"),2),A=k[0],E=k[1],z=oc((0,f.useState)(!1),2),I=z[0],D=z[1],R=oc((0,f.useState)(!1),2),T=R[0],B=R[1],q=(0,f.useRef)(null),M=j.source,F=1===S,X=S===r,L="success"===A,V="loading"===A,N=rQ().isEnabled,U=rU(),Q=oc((0,f.useState)(!1),2),H=Q[0],K=Q[1],W=oc((0,f.useState)(!1),2),Y=W[0],J=W[1],$=(0,f.useRef)(u);$.current=u;var G=(0,f.useRef)(c);G.current=c;var ee=(0,f.useRef)(p);ee.current=p,(0,f.useEffect)(function(){if(Y){var e=setTimeout(function(){return J(!1)},6e3);return function(){return clearTimeout(e)}}},[Y]),(0,f.useEffect)(function(){if("question"===A&&r>0){var e;null===(e=$.current)||void 0===e||e.call($,S)}},[S,A,r]),(0,f.useEffect)(function(){if("success"===A){var e;null===(e=G.current)||void 0===e||e.call(G)}},[A]),(0,f.useEffect)(function(){if("loading"===A){var e;null===(e=ee.current)||void 0===e||e.call(ee)}},[A]);var et=(0,f.useCallback)(function(){x(rY(M,P))},[x,M,P]),en=(0,f.useCallback)(function(){x("checkout-success"===M?P===rK.M.factorform?"/".concat(rK.M.factorform,"/checkout-success"):"/checkout-success":rY(M,P))},[x,M,P]),er=(0,f.useCallback)(function(){if(M===O||!N||!(null==v?void 0:v())){et();return}E("loading")},[M,N,v,et]);(0,f.useEffect)(function(){if(T){var e=setTimeout(er,300);return function(){return clearTimeout(e)}}},[T,er]);var eo=(t=ou(function(){return os(this,function(e){switch(e.label){case 0:return[4,null==o?void 0:o(S)];case 1:return e.sent(),null==b||b(S,"SaveAndClose"),D(!1),en(),[2]}})}),function(){return t.apply(this,arguments)}),ei=(n=ou(function(){return os(this,function(e){switch(e.label){case 0:J(!1),K(!0),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,null==o?void 0:o(S)];case 2:return e.sent(),[3,5];case 3:return e.sent(),J(!0),[2];case 4:return K(!1),[7];case 5:if(X)return E("success"),[2];return C(function(e){return e+1}),[2]}})}),function(){return n.apply(this,arguments)});return V?(0,s.tZ)(d.xu,{display:"flex",height:"100vh",overflow:"hidden",children:(0,s.tZ)(oi,{navigateTo:et,loadingDurationMs:U})}):(0,s.BX)(d.xu,{display:"grid",gridTemplateRows:"auto 1fr auto",height:"100vh",overflow:"hidden",opacity:T?0:1,transition:"opacity ".concat(300,"ms ease"),pointerEvents:T?"none":"auto",children:[(0,s.BX)(d.xu,{display:"grid",gridTemplateColumns:"1fr minmax(auto, 552px) 1fr",alignItems:"center","data-testid":"quiz-header",width:"100%",maxWidth:"1144px",marginX:"auto",marginTop:["global.none","global.sm-2"],children:[(0,s.tZ)(d.xu,{gridColumn:"2",paddingX:["global.sm-2","global.none"],children:(0,s.tZ)(rJ,{totalSteps:r,currentStep:L?r:S})}),(0,s.tZ)(d.xu,{gridColumn:"3",display:"flex",justifyContent:"flex-end",children:(0,s.tZ)(d.PZ,{ref:q,onClick:function(){if(L){null==h||h("X"),et();return}if(null==l||l(S),y){D(!0),null==a||a(S);return}null==b||b(S,"X"),en()}})})]}),(0,s.tZ)(d.xu,{minHeight:0,overflowY:"auto",paddingX:"global.sm-2","data-testid":"quiz-content",children:(0,s.tZ)(d.xu,{display:"flex",justifyContent:"center",alignItems:"stretch",minHeight:"100%",paddingBottom:["global.sm-2","global.none"],paddingTop:["global.none","global.xl-1"],children:(0,s.tZ)(d.xu,{display:"flex",flexDirection:"column",width:"100%",maxWidth:["100%","960px","1144px"],children:g({currentStep:S,isSuccessScreen:L})})})}),(0,s.tZ)(d.xu,{"data-testid":"quiz-footer",children:(0,s.BX)(d.xu,{width:"100%",display:"flex",justifyContent:"center",backgroundColor:["alias.elevation.level-2","transparent"],flexWrap:"wrap",children:[(0,s.tZ)(d.xu,{paddingTop:"global.sm-1",width:"100%",display:"flex",justifyContent:"center",children:Y&&(0,s.tZ)(d.xu,{maxWidth:"552px",width:"100%",children:(0,s.tZ)(d.gb,{variant:"error",onClose:function(){return J(!1)},children:Z("food_profile.loading_error.title")})})}),(0,s.tZ)(d.xu,{p:"global.sm-2",display:"flex",justifyContent:"space-between",gap:L||F?void 0:"global.sm-2",minWidth:["100%","552px"],children:L?(0,s.tZ)(d.zx.Primary,{width:"100%",onClick:function(){T||(null==h||h("ButtonClick"),B(!0))},children:Z("food_profile.quiz.done_cta")}):(0,s.BX)(s.HY,{children:[!F&&(0,s.tZ)(d.zx.Secondary,{width:"30%",onClick:function(){null==i||i(S),C(function(e){return Math.max(1,e-1)})},children:Z("food_profile.quiz.back_cta")}),(0,s.tZ)(d.zx.Primary,{loading:H,onClick:ei,children:Z("food_profile.quiz.next_cta")})]})})]})}),(0,s.tZ)(r$,{isOpen:I,onSave:eo,onDiscard:function(){null==b||b(S,"DiscardChanges"),D(!1),en()},returnFocusRef:q})]})};function od(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}var op=(0,n(575085).Z)("animation-config",(c=function(){return function(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(e){switch(e.label){case 0:return[4,n.e(2492).then(n.bind(n,302492))];case 1:return[2,e.sent()]}})},function(){var e=this,t=arguments;return new Promise(function(n,r){var o=c.apply(e,t);function i(e){od(o,n,r,i,l,"next",e)}function l(e){od(o,n,r,i,l,"throw",e)}i(void 0)})})),ob=function(){var e=(0,eT.ZP)("website").translateRaw,t=op.useConfig().animationPath;return(0,s.BX)(d.xu,{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"sm-2",role:"group","aria-label":e("food_profile.quiz_success.title"),maxWidth:"550px",marginX:"auto",marginY:["auto","md-2","md-2"],children:[(0,s.tZ)(d.xu,{maxWidth:"343px",children:(0,s.tZ)(d.Fm,{path:t,loop:!1,autoplay:!0})}),(0,s.tZ)(d.xv,{as:"h2",children:e("food_profile.quiz_success.title")}),(0,s.tZ)(d.xv,{type:"body-lg-regular",children:e("food_profile.quiz_success.subtitle")})]})},oh=function(){return(0,s.tZ)(d.xu,{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",children:(0,s.tZ)(d.$j,{size:"lg",variant:"primary"})})},oy=function(e){var t=e.scope,n=(0,eT.ZP)("website"),r=n.translate,o=n.translateRaw;return(0,s.tZ)(ev.Z,{componentName:"food-profile.error-fallback-quiz-module",attributes:{scope:t},children:(0,s.BX)(d.xu,{display:"flex",flexDirection:"column",alignItems:"center",children:[(0,s.tZ)(e_.ZP,{alt:o("food_profile.accessibility.loading_screen"),qual
1ity:"100",fetchFormat:"png",width:"200",height:"200",src:(0,eR.Z)("https://media.hellofresh.com/hellofresh_website/food_profile/920deb7054960fd8ebf187f30f56d7de3d0291cf.png")}),(0,s.tZ)(d.xv,{as:"p",type:"body-lg-bold",textAlign:"center",children:r("food_profile.loading_error.title")}),(0,s.tZ)(d.xu,{maxWidth:300,mt:"global.sm-1",textAlign:"center",children:(0,s.tZ)(d.xv,{as:"p",textAlign:"center",children:r("food_profile.loading_error.subtitle")})}),(0,s.BX)(d.xu,{display:"flex",flexDirection:["column","row"],width:"100%",gap:"global.md-1",mt:"global.lg-1",p:"global.md-1",justifyContent:"center",children:[(0,s.tZ)(d.zx.Primary,{width:[null,"auto"],onClick:function(){window.location.reload()},children:r("food_profile.loading_error.try_again_cta")}),(0,s.tZ)(d.zx.Secondary,{width:[null,"auto"],onClick:function(){window.location.reload()},children:r("food_profile.loading_error.go_back_cta")})]})]})})};function om(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ov(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function og(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function l(e){ov(i,r,o,l,a,"next",e)}function a(e){ov(i,r,o,l,a,"throw",e)}l(void 0)})}}function oO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ow(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){oO(e,t,n[t])})}return e}function ox(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function oj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return om(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return om(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 oP(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var oZ=function(){var e,t,n=(0,ey.Z)().push,r=(0,m.t)().query,o=(0,eT.ZP)("website").translateRaw;(0,E.Vq)(tQ.q.FoodProfileQuiz);var i=eb(),l=i.trackFunnelQuizStepImpression,a=i.trackQuizChangeFoodProfileButtonClick,u=i.trackQuizC
1ontinueFoodProfileButtonClick,c=i.trackQuizBackNavigationButtonClick,d=i.trackQuizCloseNavigationButtonClick,p=i.trackQuizCloseFoodProfileButtonClick,b=i.trackQuizSaveFoodProfileButtonClick,h=i.trackQuizUnsavedChangesModalImpression,y=(0,t2.P)({exclusion:"v2"},{suspense:!1}).data,v=rD(),g=v.questions,O=v.isLoading,w=v.isError,x=(0,tV.r)({},{suspense:!1,retry:1}).mutateAsync,j=r.source||"my-deliveries",P=oj((0,f.useState)({}),2),Z=P[0],_=P[1],S=(0,f.useRef)(new Set),C=oj((0,f.useState)(!1),2),k=C[0],A=C[1],z=(0,f.useRef)(null),I=(0,f.useRef)(!1),D=(0,f.useRef)(0),R=(0,f.useRef)(0),T=(0,f.useRef)(!1),B=(0,f.useCallback)(function(){return T.current},[]),q=function(e){var t=z.current;t&&(S.current.add(t),A(!0),_(function(n){return ox(ow({},n),oO({},t,e))}))},M=(e=og(function(){var e;return oP(this,function(t){switch(t.label){case 0:if(!(e=z.current)||!S.current.has(e))return[2,!1];return[4,x({data:Z[e],exclusion:"v2",source:"food-profile-quiz"})];case 1:return t.sent(),S.current.delete(e),A(S.current.size>0),T.current=!0,[2,!0]}})}),function(){return e.apply(this,arguments)});if(O)return(0,s.tZ)(oh,{});if(w)return(0,s.tZ)(oy,{scope:"food-profile-quiz.no-questions-available"});var F=g.filter(function(e){return!!rA(e.handle)}),X=F.length,L=function(e){var t,r=F[e];return{push:n,quizSource:j,questionId:null!==(t=null==r?void 0:r.handle)&&void 0!==t?t:"",questionIndex:e+1,totalQuestions:X}},V=(t=og(function(e){var t,n,r,o;return oP(this,function(i){switch(i.label){case 0:return r=(n=(t=F[e-1])?Z[t.field]:void 0)?tL(n):[],[4,M()];case 1:return i.sent()&&t?(D.current+=1,o=[t.field],rB(ox(ow({},L(e-1)),{editedAttributes:o})),a({editedAttributes:r,questionId:t.field})):(R.current+=1,rq(L(e-1))),(null==t?void 0:t.field)&&u({editedAttributes:r,questionId:t.field}),[2]}})}),function(e){return t.apply(this,arguments)});return(0,s.tZ)(of,{totalSteps:X,onAdvance:V,onBack:function(e){var t=F[e-1];(null==t?void 0:t.field)&&c({questionId:t.field})},onCloseClick:function(e){var t=F[e-1];(null==t?void 0:t.field)&&d({questionId:t.field})},onUnsavedModalShown:function(e){var t=F[e-1],n=t?Z[t.field]:void 0;h({editedAttributes:n?tL(n):[]})},onStepChange:function(e){I.current||(I.current=!0,rR({push:n,quizSource:j,totalQuestions:X})),rT(L(e-1));var t=F[e-1];(null==t?void 0:t.field)&&l({questionId:t.field})},onSuccessShown:function(){rF({push:n,quizSource:j,totalQuestions:X,answeredCount:D.current,skippedCount:R.current})},onLoadingShown:function(){rX({push:n,quizSource:j,totalQuestions:X,answeredCount:D.current,skippedCount:R.current})},onDismiss:function(e,t){if(rM(ox(ow({},L(e-1)),{eventLabel:t})),"SaveAndClose"===t||"DiscardChanges"===t){var n=F[e-1],r=n?Z[n.field]:void 0,o=r?tL(r):[];"SaveAndClose"===t?b({editedAttributes:o}):p({editedAttributes:o})}},onCompleted:function(e){rL({push:n,quizSource:j,totalQuestions:X,answeredCount:D.current,skippedCount:R.current,eventLabel:e}),T.current&&rV({push:n,quizSource:j,answeredCount:D.current})},hasPendingChanges:k,hasSavedChanges:B,children:function(e){var t=e.currentStep;if(e.isSuccessScreen)return(0,s.tZ)(ob,{});var n=F[t-1],r=n?rA(n.handle):void 0;if(!n||!r)return null;z.current=n.field;var i=Z[n.field],l=tw()(null!=i?i:y,n.field,[]);return(0,s.tZ)(r,{translateRaw:o,question:n,selectedOptions:l,onChange:q})}})},o_=function(){return(0,s.tZ)(em.Z,{claim:{name:"menu-personalization-experience",githubTeam:"hellofresh/squad-menu-personalization-experience",tribe:"personalization-and-data",alliance:"no-alliance-consumer",jiraPrefix:"MPE",slackChannel:"#squad-menu-personalization-experience",slackAlertsChannel:"#squad-menu-personalization-experience-alerts-live",skipLabelsOnPR:!1,teamIdentifier:"menu-personalization-experience"},children:(0,s.tZ)(b.Z,{scope:"food-profile-quiz",fallback:(0,s.tZ)(oy,{scope:"food-profile-quiz"}),children:(0,s.tZ)(op.ProjectConfigProvider,{children:(0,s.tZ)(ev.Z,{componentName:"quiz-module",children:(0,s.tZ)(oZ,{})})})})})},oS=n(203666),oC=function(e){var t=e.children,n=e.isWebView;return(0,s.tZ)(em.Z,{claim:{name:"menu-personalization-experience",githubTeam:"hellofresh/squad-menu-personalization-experience",tribe:"personalization-and-data",alliance:"no-alliance-consumer",jiraPrefix:"MPE",slackChannel:"#squad-menu-personalization-experience",slackAlertsChannel:"#squad-menu-personalization-experience-alerts-live",skipLabelsOnPR:!1,teamIdentifier:"menu-personalization-experience"},children:(0,s.tZ)(d.xu,{style:{"container-type":"inline-size"},children:(0,s.tZ)(b.Z,{scope:"food-profile.layout",children:(0,s.tZ)(oS.Z,{children:(0,s.tZ)(d.xu,{"data-testid":"food-profile-layout",maxWidth:["100%","960px","1144px"],mx:"auto",mt:n?"sm-1":"zero",px:["sm-1","sm-1",null],children:t})})})})})},ok=function(e){var t,n,r=e.ssrPayload.mobileWebView.active,o=(0,m.t)(),i=o.query.flow,l=o.query.source,a=w(i);return(0,s.BX)(p.Z,{values:{screen:"Food Profile",flow:i,source:l},children:[(0,s.tZ)(v.Z,{}),(0,s.BX)(b.Z,{scope:"food-profile",children:[(0,s.tZ)(b.Z,{scope:"food-profile.notifications",children:(0,s.tZ)(d.xu,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({position:"sticky",zIndex:2},!r&&{top:"56px"}),n=n={children:(0,s.tZ)(h.Z,{children:(0,s.tZ)(y.Z,{})})}
1,Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}),a?(0,s.tZ)(o_,{}):(0,s.tZ)(oC,{isWebView:!!r,children:(0,s.tZ)(rx,{})})]})]})};ok.customLayout=function(e){var t,n=e.ssrPayload,r=e.children,o=w((0,m.t)().query.flow),i=!!(null===(t=n.mobileWebView)||void 0===t?void 0:t.active);return(0,s.tZ)(g.ZP,{ssrPayload:n,pageName:"food-profile",enableSSRCustomerHeader:!o,nonStickyDesktopHeader:!1,disableHeader:i||o,disableFooter:i||o,disableMinHeight:o,children:r})};var oA=!0,oE=ok},125846:function(e,t,n){"use strict";n.r(t);var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.default=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({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":n}),l),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 6h-3a4 4 0 0 0-8 0H5L4 22h16L19 6ZM8 8v2h2V8h4v2h2V8h1.121l.75 12H6.13l.75-12H8Zm6-2h-4a2 2 0 1 1 4 0Z",fill:"currentColor"})]}))}},23287:function(e,t,n){"use strict";n.r(t);var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.default=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({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":n}),l),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm5.314-15-7.046 7.045-2.828-2.828L6 12.657l4.242 4.243 8.486-8.486L17.313 7Z",fill:"currentColor"})]}))}},421036:function(e,t,n){"use strict";n.r(t);var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.default=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({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":n}),l),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-5.05 3.536-1.414 1.414L12 13.414 8.464 16.95 7.05 15.536 10.586 12 7.05 8.465 8.464 7.05 12 10.586l3.535-3.536 1.415 1.415L13.414 12l3.536 3.536Z",fill:"currentColor"})]}))}},299446:function(e,t,n){"use strict";n.r(t);var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.default=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({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":n}),l),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.4 6 8 3h8l.6 3H21v13h-2a2 2 0 1 1-4 0H9a2 2 0 1 1-4 0H3V6h4.4Zm2.04 0 .2-1h4.72l.2 1H9.44ZM19 17V8H5v9h14Z",fill:"currentColor"})]}))}},22447:function(e,t,n){"use strict";n.r(t);var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.default=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({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":n}),l),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 2v11h-4l-4.85 9c-1.681 0-3.152-1.366-3.152-3v-4H4.08c-1.249.014-2.243-1.116-2.058-2.3l1.42-9C3.594 2.727 4.487 1.99 5.5 2H22Zm-4 2h2v7h-2V4Zm-2 0H5.478c-.007 0-.015 0-.025.005a.11.11 0 0 0-.038.024l-1.41 8.938.003.003a.11.11 0 0 0 .034.026.047.047 0 0 0 .01.004h5.946a2 2 0 0 1 2 2v4c0 .17.075.363.208.535L16 12.495V4Z",fill:"currentColor"})]}))}},313451:function(e,t,n){"use strict";n.r(t);var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.default=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({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":n}),l),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m6 11 4.85-9c1.681 0 3.152 1.366 3.152 3v4h5.918c1.248-.014 2.243 1.116 2.058 2.3l-1.42 9c-.152.973-1.045 1.711-2.058 1.7H2V11h4Zm6.002-2a2 2 0 0 0 2 2h5.947l.008.004a.11.11 0 0 1 .035.026l.003.004-1.41 8.937a.111.111 0 0 1-.039.024.067.067 0 0 1-.024.005H8v-8.495l3.794-7.04a.91.91 0 0 1 .208.535v4ZM6 13H4v7h2v-7Z",fill:"currentColor"})]}))}},624529:function(e,t,n){"use strict";var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.Z=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":n}),l),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{d:"M6 2v.025c0 .316-.002.949.259 1.601.286.717.856 1.388 1.856 1.806.5.209.68.478.77.7.107.27.115.56.115.88l2 .001v-.025c0-.317.001-.95-.259-1.6C10.455 4.67 9.885 4 8.885 3.581c-.5-.209-.68-.478-.77-.7-.107-.27-.115-.56-.115-.88L6 2ZM12.668 15.777c.411-.37.445-1.004.076-1.416a.998.998 0 0 0-1.412-.075c-1.048.943-1.813 2.6-2.3 4.505a1 1 0 1 0 1.937.499c.455-1.776 1.093-2.967 1.7-3.513Z",fill:"currentColor"}),(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.327 9.38a3.01 3.01 0 0 1 2.637-4.372 3 3 0 0 1 2.8 1.84c.35.83.303 1.756-.09 2.531A10.024 10.024 0 0 1 26 19.041v4.009H6v-4.01c0-4.607 3.102-8.489 7.327-9.66Zm2.689 1.642C20.426 11.03 24 14.617 24 19.04v2.004H8V19.04c0-4.422 3.573-8.01 7.983-8.018h.033Zm.372-3.93a.998.998 0 0 1 .612.913v.022a1 1 0 0 1-.988.99h-.022a.992.992 0 0 1-.645-.245 1 1 0 0 1-.156-1.344 1.002 1.002 0 0 1 1.2-.337Z",fill:"currentColor"}),(0,r.tZ)("path",{d:"M30 23.993A3.003 3.003 0 0 1 27 27H5c-1.657 0-3-1.346-3-3.007v-1.828h2v1.828c0 .554.448 1.002 1 1.002h22c.552 0 1-.448 1-1.002v-1.828h2v1.828ZM3 6.034v-.025l2 .002c0 .32.008.61.116.88.089.222.27.491.769.7 1 .418 1.57 1.089 1.856 1.806.26.651.26 1.284.26 1.6L8 11.022H6c0-.32-.008-.61-.116-.88-.089-.223-.27-.492-.769-.7-1-.419-1.57-1.09-1.856-1.806-.26-.653-.26-1.286-.259-1.602Z",fill:"currentColor"})]}))}},993464:function(e,t,n){"use strict";var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.Z=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":n}),l),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 11C17.6629 11 19.0879 12.015 19.6914 13.459C20.4018 13.1625 21.182 13 22 13H24C27.3137 13 30 15.6863 30 19V30H2V19C2 15.6863 4.68629 13 8 13H10C10.8179 13 11.5974 13.1636 12.3076 13.46C12.2714 13.5466 12.2391 13.635 12.209 13.7246C12.7415 12.141 14.2369 11 16 11ZM8 15C5.79086 15 4 16.7909 4 19V28H11V22C11 20.2757 11.8722 18.7543 13.2002 17.8555C12.5854 17.2526 12.1643 16.4531 12.0391 15.5586C11.4422 15.2037 10.7451 15 10 15H8ZM22 15C21.2547 15 20.5571 15.2036 19.96 15.5586C19.8346 16.4532 19.4139 17.2525 18.7988 17.8555C20.1272 18.7543 21 20.2754 21 22V28H28V19C28 16.7909 26.2091 15 24 15H22ZM16 19C14.3431 19 13 20.3431 13 22V28H19V22C19 20.3431 17.6569 19 16 19ZM16 13C14.8954 13 14 13.8954 14 15C14 16.1046 14.8954 17 16 17C17.1046 17 18 16.1046 18 15C18 13.8954 17.1046 13 16 13Z",fill:"currentColor"}),(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 2C11.7614 2 14 4.23858 14 7C14 9.76142 11.7614 12 9 12C6.23858 12 4 9.76142 4 7C4 4.23858 6.23858 2 9 2ZM9 4C7.34315 4 6 5.34315 6 7C6 8.65685 7.34315 10 9 10C10.6569 10 12 8.65685 12 7C12 5.34315 10.6569 4 9 4Z",fill:"currentColor"}),(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 2C25.7614 2 28 4.23858 28 7C28 9.76142 25.7614 12 23 12C20.2386 12 18 9.76142 18 7C18 4.23858 20.2386 2 23 2ZM23 4C21.3431 4 20 5.34315 20 7C20 8.65685 21.3431 10 23 10C24.6569 10 26 8.65685 26 7C26 5.34315 24.6569 4 23 4Z",fill:"currentColor"})]}))}},419533:function(e,t,n){"use strict";var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.Z=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":n}),l),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{d:"M6 13V2h2v10h2V2h2v10h2V2h2v11a1 1 0 0 1-1 1h-3v16h-2V14H7a1 1 0 0 1-1-1Z",fill:"currentColor"}),(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 2.963c.629-.376 1.297-.7 2-.963v28h-2V19h-6v-5.456a12.33 12.33 0 0 1 6-10.581Zm0 2.417a10.33 10.33 0 0 0-4 8.164V17h4V5.38Z",fill:"currentColor"})]}))}},216790:function(e,t,n){"use strict";var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.Z=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":n}),l),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{d:"M17.723 18c0 1.105-.878 2-1.96 2-1.083 0-1.961-.895-1.961-2 0-.125.011-.246.032-.365l-3.993-4.073a1.014 1.014 0 0 1 0-1.414.967.967 0 0 1 1.387 0l3.886 3.964c.203-.072.42-.112.648-.112 1.083 0 1.96.895 1.96 2Z",fill:"currentColor"}),(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.703 6v.378c.963.253 1.88.628 2.731 1.107-.007-.004-.417.397 2.407-2.485L28 9.243c-2.533 2.584-2.299 2.337-2.3 2.334A12.121 12.121 0 0 1 27.524 18c0 6.627-5.266 12-11.762 12S4 24.627 4 18c0-5.591 3.749-10.29 8.822-11.622V6c0-1.657 1.316-3 2.94-3 1.624 0 2.94 1.343 2.94 3Zm5.816 3.988c-.025-.029.635-.67.709-.745L23.84 7.828l-.76.777c-.004-.003 1.139 1.043 1.438 1.383ZM16.742 6v.041a11.688 11.688 0 0 0-1.96 0V6c0-.552.439-1 .98-1a.99.99 0 0 1 .98 1Zm-.98 22c5.414 0 9.802-4.477 9.802-10S21.176 8 15.762 8C10.35 8 5.96 12.477 5.96 18s4.389 10 9.802 10Z",fill:"currentColor"})]}))}},591548:function(e,t,n){"use strict";var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.Z=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":n}),l),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.76 3.514c.22-.371.18-.842-.102-1.169a.99.99 0 0 0-1.136-.267l-4.86 2.051-4.268-2.033a.99.99 0 0 0-1.127.196 1.004 1.004 0 0 0-.197 1.134l1.553 3.32A10.005 10.005 0 0 0 3 15.757c0 4.055 2.398 7.546 5.845 9.115l-.001.19C8.975 27.482 10.983 30 18.77 30c6.084 0 12.286-.537 11.078-7.721-.188-1.237-1.211-2.083-2.695-2.666a24.69 24.69 0 0 0-1.695-.55c-.973-.29-1.926-.573-2.83-1.079.162-.716.248-1.462.248-2.227 0-4.096-2.448-7.616-5.951-9.162l1.834-3.081Zm-1.662 5.425 1.64 2.511c.233.357.214.824-.046 1.162a.99.99 0 0 1-1.106.333l-4.928-1.692-4.332 1.68a.99.99 0 0 1-1.097-.266 1.005 1.005 0 0 1-.143-1.126l1.143-2.23a8.004 8.004 0 0 0-3.241 6.446 8.005 8.005 0 0 0 3.987 6.936c.543-4.714 2.87-8.954 8.808-7.376 1.105.33 2.095.84 3.042 1.452.042-.331.063-.67.063-1.
1012a8.005 8.005 0 0 0-3.79-6.818Zm-4.076-2.793 2.475-1.045-1.245 2.092c-.196.329-.187.742.022 1.063l1.211 1.855-2.526-.868a.988.988 0 0 0-.679.013l-2.23.865 1.003-1.956c.142-.276.148-.603.016-.884l-1.021-2.184 2.164 1.03c.255.122.55.129.81.02Zm12.5 15.311c.056-.082.114-.16.17-.235.242.076.486.159.75.258.594.235.968.474 1.184.679.193.182.24.312.257.422l.003.016.002.015c.065.386.102.734.117 1.048-.92.408-2.04.677-3.316.845-1.586.208-3.339.251-5.127.251-4.836 0-7.341-.909-8.598-1.957.208-1.695.664-3.186 1.383-4.224.482-.696 1.057-1.155 1.755-1.393.476-.162 1.088-.249 1.876-.173-.32.386-.676.846-1.015 1.336-.563.815-1.149 1.818-1.376 2.749a.994.994 0 1 0 1.93.476c.137-.56.545-1.312 1.079-2.084a16.905 16.905 0 0 1 1.439-1.803c.034-.037.065-.076.093-.116.668.29 1.317.668 1.986 1.127-.167.21-.343.444-.512.69-.378.547-.796 1.253-.962 1.933a.993.993 0 1 0 1.93.476c.075-.308.316-.764.664-1.269.183-.264.375-.514.55-.726a12 12 0 0 0 1.914.811c-.183.297-.362.65-.45 1.007a.994.994 0 1 0 1.93.476c.029-.112.139-.338.343-.635Zm-14.68 3.66c.065.55.321 1.11 1.143 1.623 1.034.646 3.048 1.26 6.785 1.26 3.111 0 5.729-.164 7.42-.973.622-.297 1.043-.648 1.323-1.065-.817.243-1.684.41-2.567.526-1.72.226-3.58.268-5.384.268-4.033 0-6.843-.603-8.72-1.639Z",fill:"currentColor"})]}))}},877755:function(e,t,n){"use strict";var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.Z=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({width:"2.5rem",height:"2.5rem",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":n}),l),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{d:"M33.75 20c0-7.594-6.156-13.75-13.75-13.75-3.47 0-6.642 1.286-9.062 3.407l19.404 19.404A13.696 13.696 0 0 0 33.75 20ZM36 20c0 8.837-7.163 16-16 16v-2.25c3.313 0 6.352-1.172 8.726-3.124L9.373 11.273A13.694 13.694 0 0 0 6.25 20c0 7.594 6.156 13.75 13.75 13.75V36c-8.837 0-16-7.163-16-16S11.163 4 20 4s16 7.163 16 16Z",fill:"currentColor"})]}))}},995692:function(e,t,n){"use strict";var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.Z=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({width:"2.5rem",height:"2.5rem",viewBox:"0 0 35 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":n}),l),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.499 33.667c9.204 0 16.666-7.462 16.666-16.667C34.165 7.795 26.703.333 17.5.333 8.294.333.832 7.795.832 17c0 9.205 7.462 16.667 16.66
17 16.667Zm8.856-25L14.613 20.409l-4.715-4.714-2.4 2.4 7.071 7.07 14.143-14.141-2.357-2.357Z",fill:"#007838"})]}))}}},function(e){e.O(0,[47057,38579,12737,8139,14206,44355,274,24613,47710,43277,68972,57252,36060,74050,64944,56360,95851,7563,36152,29037,95325,45692,58351,89073,94414,65883,92888,49774,40179],function(){return e(e.s=454110)}),_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.