1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="77543ccf-e71b-54de-6d68-365ca7d5edcd")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,847186,e=>{"use strict";var t=e.i(843476),r=e.i(619273),n=e.i(286491),i=e.i(540143),o=e.i(915823),a=class extends o.Subscribable{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,i){let o=t.queryKey,a=t.queryHash??(0,r.hashQueryKeyByOptions)(o,t),s=this.get(a);return s||(s=new n.Query({client:e,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r.matchQuery)(e,t)):t}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},s=e.i(114272),l=o,u=class extends l.Subscribable{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#r=new Map,this.#n=0}#t;#r;#n;build(e,t,r){let n=new s.Mutation({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#t.add(e);let t=c(e);if("string"==typeof t){let r=this.#r.get(t);r?r.push(e):this.#r.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=c(e);if("string"==typeof t){let r=this.#r.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#r.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let r=this.#r.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#r.get(t)?.find(t=>
2t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){i.notifyManager.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#r.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.matchMutation)(e,t))}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.noop))))}};function c(e){return e.options.scope?.id}var d=e.i(175555),f=e.i(814448),p=e.i(992571),m=class{#i;#o;#a;#s;#l;#u;#c;#d;constructor(e={}){this.#i=e.queryCache||new a,this.#o=e.mutationCache||new u,this.#a=e.defaultOptions||{},this.#s=new Map,this.#l=new Map,this.#u=0}mount(){this.#u++,1===this.#u&&(this.#c=d.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#i.onFocus())}),this.#d=f.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#i.onOnline())}))}unmount(){this.#u--,0===this.#u&&(this.#c?.(),this.#c=void 0,this.#d?.(),this.#d=void 0)}isFetching(e){return this.#i.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#o.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#i.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#i.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#i.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),o=this.#i.get(i.queryHash),a=o?.state.data,s=(0,r.functionalUpdate)(t,a);if(void 0!==s)return this.#i.build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,t,r){return i.notifyManager.batch(()=>this.#i.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#i.get(t.queryHash)?.state}removeQueries(e){let t=this.#i;i.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#i;return i.notifyManager.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(i.notifyManager.batch(()=>this.#i.findAll(e).map(e=>e.cancel(n)))).then(r.noop).catch(r.noop)}invalidateQueries(e,t={}){return i.notifyManager.batch(()=>(this.#i.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(i.notifyManager.batch(()=>this.#i.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#i.build(this,t);return n.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.noop).catch(r.noop)}fetchInfiniteQuery(e){return e.behavior=(0,p.infiniteQueryBehavior)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.noop).catch(r.noop)}ensureInfiniteQueryData(e){return e.behavior=(0,p.infiniteQueryBehavior)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return f.onlineManager.isOnline()?this.#o.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#i}getMutationCache(){return this.#o}getDefaultOptions(){return this.#a}setDefaultOptions(e){this.#a=e}setQueryDefaults(e,t){this.#s.set((0,r.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#s.values()],n={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#l.set((0,r.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#l.values()],n={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#a.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#a.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#i.clear(),this.#o.clear()}},h=e.i(912598),b=e.i(271645);e.s(["default",0,function({children:e}){let[r]=(0,b.useState)(()=>new m({defaultOptions:{queries:{staleTime:6e4,retry:1}}}));return(0,t.jsx)(h.QueryClientProvider,{client:r,children:e})}],847186)},129266,e=>{"use strict";var t=e.i(618566),r=e.i(271645);let n="(prefers-reduced-motion: reduce)";function i(e){let t=window.matchMedia(n);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}e.s(["useSharedChromeReducedMotion",0,function(){let e=(0,t.usePathname)(),o=(0,t.useSearchParams)(),a="/homepage-v1-prototype"===e&&"reduce"===o.get("motion"),s=(0,r.useCallback)(()=>
2a||window.matchMedia(n).matches,[a]),l=(0,r.useCallback)(()=>a,[a]);return(0,r.useSyncExternalStore)(i,s,l)}])},589444,e=>{"use strict";var t=e.i(843476),r=e.i(657688),n=e.i(387652),i=e.i(271645),o=e.i(513043);let a={src:e.i(774627).default,width:696,height:164,blurWidth:0,blurHeight:0};var s=e.i(711886),l=e.i(647163),u=e.i(129266);let c=a.src;e.s(["FooterBrandMark",0,function(){let e=(0,i.useRef)(null),[a,d]=(0,i.useState)(!1),f=(0,n.useInView)(e,{once:!0,amount:.35}),p=(0,u.useSharedChromeReducedMotion)(),m=+!!a,{frame:h}=(0,o.useRigatoniBlink)(f&&!p,!1);return(0,t.jsxs)("div",{ref:e,"aria-label":"Foodie",className:"mx-auto grid w-full max-w-[40rem] grid-cols-[minmax(0,clamp(10rem,50vw,24rem))_clamp(4rem,20vw,5rem)] items-center justify-center gap-[clamp(0.75rem,3vw,1rem)] px-3 sm:w-1/2 sm:grid-cols-[minmax(0,clamp(5rem,25vw,22rem))_clamp(3rem,10vw,8.5rem)] sm:gap-[clamp(0.5rem,1.5vw,1.25rem)]","data-footer-brand":"shared","data-footer-brand-color":a?"colored":"brown","data-footer-brand-motion":p?"static":"animated","data-footer-brand-progress":m.toFixed(3),"data-footer-brand-trigger":"hover",onPointerEnter:e=>{"touch"!==e.pointerType&&d(!0)},onPointerLeave:e=>{"touch"!==e.pointerType&&d(!1)},role:"img",children:[(0,t.jsxs)("div",{className:"relative isolate min-w-0 w-full","data-footer-wordmark-stage":!0,children:[(0,t.jsx)(r.default,{alt:"","aria-hidden":"true",className:"invisible block h-auto w-full","data-footer-brand-sizer":!0,loading:"eager",sizes:"(max-width: 639px) clamp(160px, 50vw, 384px), clamp(80px, 25vw, 352px)",src:s.default}),(0,t.jsx)("div",{"aria-hidden":"true",className:(0,l.cn)("absolute inset-0 z-0 bg-foodie-brown transition-opacity duration-300 ease-linear motion-reduce:transition-none",p&&"transition-none"),"data-footer-brand-layer":"legacy",style:{opacity:1-m,WebkitMaskImage:`url("${c}")`,WebkitMaskPosition:"center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain",maskImage:`url("${c}")`,maskPosition:"center",maskRepeat:"no-repeat",maskSize:"contain"}}),(0,t.jsx)("div",{"aria-hidden":"true",className:(0,l.cn)("absolute inset-0 z-10 transition-opacity duration-300 ease-linear motion-reduce:transition-none",p&&"transition-none"),"data-footer-brand-layer":"colored",style:{opacity:m},children:(0,t.jsx)(r.default,{fill:!0,alt:"",className:"object-contain",loading:"eager",sizes:"(max-width: 639px) clamp(160px, 50vw, 384px), clamp(80px, 25vw, 352px)",src:s.default})})]}),(0,t.jsx)("div",{"aria-hidden":"true",className:"relative aspect-square w-full [&_img]:pointer-events-none","data-blink-frame":h,"data-footer-rigatoni":!0,"data-glance-active":"false",children:o.RIGATONI_BLINK_FRAMES.map(({frame:e,src:n})=>(0,t.jsx)(r.default,{fill:!0,alt:"",className:(0,l.cn)("object-contain opacity-0",h===e&&"opacity-100"),"data-footer-rigatoni-frame":e,"data-footer-rigatoni-frame-active":h===e?"true":void 0,loading:"open"===e?void 0:"eager",priority:"open"===e,sizes:"(max-width: 639px) clamp(64px, 20vw, 80px), clamp(48px, 10vw, 136px)",src:n},e))})]})}],589444)},904450,e=>{"use strict";var t=e.i(843476),r=e.i(522016),n=e.i(868127),i=e.i(271645),o=e.i(658073),a=e.i(187491),s=e.i(129266),l=e.i(768721),u=e.i(803594),c=e.i(818344);let d=()=>{let e=(()=>{let{foodieUser:e}=(0,c.useFoodieUser)();return!!e?.subscription?.is_active})(),[r,n]=i.default.useState(""),[d,f]=i.default.useState(!1),[p,m]=i.default.useState(void 0),[h,b]=i.default.useState(!1),{openPaymentModal:v}=(0,u.usePaymentModal)(),g=(0,s.useSharedChromeReducedMotion)(),y=d?"Submitting...":"Submit",w=async t=>{t.preventDefault(),f(!0);let{error:n,success:i}=await (0,l.signup)(r);n?(m(n),console.error(n)):i&&(m(void 0),b(!0),e||v()),f(!1)};return(0,t.jsx)("div",{children:(0,t.jsx)("section",{className:"p-4",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4 max-w-xs",children:[(0,t.jsx)("h2",{className:"font-display text-fluid-h3 font-semibold leading-tight text-foodie-brown","data-footer-section-title":"newsletter",children:"Newsletter"}),(0,t.jsx)("p",{className:"text-left text-fluid-body text-foodie-brown",children:"Subscribe to get 3-5 recipes and an organized grocery list delivered to your inbox every week."}),(0,t.jsx)("div",{children:h?(0,t.jsx)("p",{className:"text-left text-lg text-foodie-brown",children:"Thank y
2ou for signing up!"}):(0,t.jsxs)("form",{onSubmit:w,className:"flex flex-col gap-4",autoComplete:"on",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2 text-left",children:[(0,t.jsx)("label",{htmlFor:"email",className:"sr-only",children:"Email Address"}),(0,t.jsx)("input",{type:"email",name:"email",id:"email",autoComplete:"email",placeholder:"[email protected]",value:r,onChange:e=>{n(e.target.value)},className:"w-full rounded-md border-2 border-foodie-brown bg-foodie-beige p-3 text-foodie-brown placeholder:text-foodie-brown/55 transition-colors duration-200 hover:bg-white active:bg-white focus:bg-white focus:outline-none focus:ring-0 motion-reduce:transition-none","data-footer-input":"true"})]}),(0,t.jsx)(a.FoodieButton,{type:"submit",appearance:"expressive",size:"lg",disabled:d,title:"Subscribe",className:"h-auto min-h-12 w-full gap-2 px-6 py-3 text-base","data-footer-expressive-submit":"true",children:d?y:(0,t.jsx)(o.CascadingTextLabel,{label:y,disableMotion:g})})]})}),p&&(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"text-foodie-brown",children:p})})]})})})};var f=e.i(647163),p=e.i(154083);let m=[{label:"Privacy Policy",href:"/privacy"},{label:"Terms of Service",href:"/terms"},{label:"About Us",href:"/about"},{label:"Guides",href:"/guides"},{label:"Feedback",href:"/feedback"}],h=["text-large text-foodie-brown",o.cascadingTextTriggerClassName,"rounded-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foodie-brown"].join(" ");function b(){let e=(0,s.useSharedChromeReducedMotion)();return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2","data-footer-resource-links":!0,children:[(0,t.jsx)("h2",{className:"mb-3 font-display text-fluid-h3 font-semibold leading-tight text-foodie-brown","data-footer-section-title":"resources",children:"Resources"}),m.map(({label:r,href:n})=>(0,t.jsx)(p.PrivacyAwareLink,{className:h,"data-footer-cascade-link":"true",href:n,children:(0,t.jsx)(o.CascadingTextLabel,{label:r,disableMotion:e})},n))]})}let v=[{label:"Instagram",href:"https://www.instagram.com/getfoodieplus",icon:n.SiInstagram},{label:"YouTube",href:"https://www.youtube.com/@thefoodiemenu",icon:n.SiYoutube},{label:"TikTok",href:"https://www.tiktok.com/@the.foodie.menu",icon:n.SiTiktok}];function g({className:e}){return(0,t.jsx)("div",{className:(0,f.cn)("flex gap-2",e),"data-footer-social-links":!0,children:v.map(({label:e,href:n,icon:i})=>(0,t.jsx)(r.default,{"aria-label":`Foodie on ${e}`,className:"inline-flex h-11 w-11 items-center justify-center rounded-full text-foodie-brown transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foodie-brown","data-footer-social-link":!0,href:n,children:(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-flex h-9 w-9 items-center justify-center rounded-full bg-foodie-brown text-foodie-beige","data-footer-social-icon":!0,children:(0,t.jsx)(i,{size:18})})},n))})}function y({className:e}){return(0,t.jsx)("p",{className:(0,f.cn)("text-sm text-foodie-brown",e),"data-footer-copyright":!0,children:"© 2026 Foodie Plus LLC"})}e.s(["FooterContent",0,function(){return(0,t.jsxs)("div",{className:"mx-auto my-4 grid max-w-full grid-cols-1 gap-8 px-6 md:grid-cols-2 md:gap-16 lg:max-w-6xl","data-footer-layout":"shared",children:[(0,t.jsx)("section",{className:"flex min-w-0 flex-col items-start","data-footer-section":"resources",children:(0,t.jsx)("div",{className:"p-4",children:(0,t.jsx)(b,{})})}),(0,t.jsx)("section",{className:"flex min-w-0 flex-col text-left md:items-end","data-footer-section":"newsletter",children:(0,t.jsx)(d,{})})]})},"FooterUtilityBar",0,function(){return(0,t.jsxs)("div",{className:"mx-auto flex max-w-full flex-col items-start gap-5 px-6 pb-6 pt-8 sm:flex-row sm:items-center sm:justify-between sm:pb-8 lg:max-w-6xl","data-footer-utility-bar":!0,children:[(0,t.jsx)(y,{className:"opacity-75"}),(0,t.jsx)(g,{className:"shrink-0"})]})}],904450)},427217,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18
218 6M6 6l12 12"}))});e.s(["XMarkIcon",0,r],427217)},712322,e=>{"use strict";var t=e.i(843476),r=e.i(427217),n=e.i(657688),i=e.i(271645),o=e.i(187491),a=e.i(278669),s=e.i(543822),l=e.i(647163),u=e.i(439881);let c={homepage:{token:"web_home_banner",url:(0,s.getFoodieAppStoreCampaignUrl)("web_home_banner")},recipes_index:{token:"web_recipe_banner",url:(0,s.getFoodieAppStoreCampaignUrl)("web_recipe_banner")},recipe_detail:{token:"web_recipe_banner",url:(0,s.getFoodieAppStoreCampaignUrl)("web_recipe_banner")},shared_list:{token:"web_shared_list_banner",url:(0,s.getFoodieAppStoreCampaignUrl)("web_shared_list_banner")},weekly_menu_grocery_list:{token:"web_weekly_grocery_banner",url:(0,s.getFoodieAppStoreCampaignUrl)("web_weekly_grocery_banner")}};e.s(["IosAppStoreBottomBanner",0,function(){let{dismiss:e,isEligible:s,isVisible:d,surface:f}=(0,u.useIosAppStoreBanner)(),p=(0,i.useRef)(!1),m=(0,i.useRef)(!1),h=(0,i.useRef)(!1);if(!s||null===f)return null;let b=c[f].url;return(0,t.jsx)("aside",{"aria-hidden":!d,"aria-label":"Get Foodie for iPhone",className:(0,l.cn)("fixed inset-x-0 bottom-0 z-30 border-t-2 border-foodie-brown bg-foodie-brown text-foodie-beige shadow-[0_-12px_30px_rgba(72,41,18,0.22)] transition-[transform,visibility] duration-300 ease-out motion-reduce:transition-none",d?"visible translate-y-0":"pointer-events-none invisible translate-y-full"),"data-testid":"ios-app-store-bottom-banner","data-visible":d,children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-3xl items-center gap-2 px-2 pt-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] sm:px-5",children:[(0,t.jsx)("button",{type:"button","aria-label":"Dismiss iPhone app banner",className:"flex size-11 shrink-0 items-center justify-center rounded-full text-foodie-beige transition-colors hover:bg-white/10 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foodie-beige",onClick:()=>{f&&!h.current&&(h.current=!0,e(),(0,a.track)("App Store Banner Dismissed",{campaign:c[f].token,location:"bottom_banner",surface:f}))},tabIndex:d?0:-1,children:(0,t.jsx)(r.XMarkIcon,{"aria-hidden":"true",className:"size-6"})}),(0,t.jsx)(n.default,{src:"/foodie-app-icon.png",alt:"",width:56,height:56,unoptimized:!0,className:"size-14 shrink-0 rounded-[0.9rem]"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-base font-bold leading-tight text-white",children:"Foodie"}),(0,t.jsx)("p",{className:"line-clamp-2 text-sm leading-snug text-foodie-beige/85",children:"All your recipes, in one smart place."}),(0,t.jsx)("p",{className:"mt-1 text-xs font-semibold leading-none tracking-[0.08em] text-white",children:"FREE"})]}),(0,t.jsx)("a",{href:b,className:(0,o.foodieButtonVariants)({appearance:"accent",size:"sm",className:"ml-2 h-11 shrink-0 rounded-full border-foodie-beige bg-foodie-beige px-4 text-foodie-brown hover:border-white hover:bg-white hover:text-foodie-brown focus-visible:outline-foodie-beige"}),onClick:e=>{if(!f||m.current)return;let t={campaign:c[f].token,location:"bottom_banner",surface:f};if(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return void(0,a.track)("App Store Banner CTA Clicked",t);if(e.preventDefault(),p.current)return;p.current=!0;let r=e.currentTarget;(0,a.trackBeforeNavigation)("App Store Banner CTA Clicked",t).finally(()=>{m.current=!0;try{r.click()}finally{m.current=!1,p.current=!1}})},tabIndex:d?0:-1,children:"Get app"})]})})}])},490315,e=>{e.v({navigationShell:"NavBar-module__cxPD7q__navigationShell",navigationToggle:"NavBar-module__cxPD7q__navigationToggle",reducedMotion:"NavBar-module__cxPD7q__reducedMotion",signInAction:"NavBar-module__cxPD7q__signInAction",signInPeekMascot:"NavBar-module__cxPD7q__signInPeekMascot"})},700085,e=>{"use strict";let t,r,n,i,o,a,s,l;var u,c,d,f=e.i(843476),p=e.i(247167);let m=e=>e?.ownerDocument??document,h=e=>e&&"window"in e&&e.window===e?e:m(e).defaultView||window;function b(e,t){return!!t&&!!e&&e.contains(t)}function v(e){return e.target}let g=null;"u">typeof Element&&Element.prototype;let y=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"];
2y.join(":not([hidden]),"),y.push('[tabindex]:not([tabindex="-1"]):not([disabled])'),y.join(':not([hidden]):not([tabindex="-1"]),');var w=e.i(271645);let x="u">typeof document?w.default.useLayoutEffect:()=>{};function E(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function k(e){let t=(0,w.useRef)({isFocused:!1,observer:null});return x(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,w.useCallback)(r=>{let n=v(r);(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)&&(t.current.isFocused=!0,n.addEventListener("focusout",r=>{if(t.current.isFocused=!1,n.disabled){let t=E(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();n.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]}))},[e])}function j(e){if("u"<typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function C(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function P(e){let t=null;return()=>(null==t&&(t=e()),t)}let S=P(function(){return C(/^Mac/i)}),T=P(function(){return C(/^iPhone/i)}),A=P(function(){return C(/^iPad/i)||S()&&navigator.maxTouchPoints>1}),N=P(function(){return T()||A()});P(function(){return S()||N()});
2let I=P(function(){return j(/AppleWebKit/i)&&!_()}),_=P(function(){return j(/Chrome/i)}),M=P(function(){return j(/Android/i)}),L=P(function(){return j(/Firefox/i)});function F(e,t,r=!0){let{metaKey:n,ctrlKey:i,altKey:o,shiftKey:a}=t;L()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(S()?n=!0:i=!0);let s=I()&&S()&&!A()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:i,altKey:o,shiftKey:a}):new MouseEvent("click",{metaKey:n,ctrlKey:i,altKey:o,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});F.isOpening=r;if(function(){if(null==g){g=!1;try{document.createElement("div").focus({get preventScroll(){return g=!0,!0}})}catch{}}return g}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}e.dispatchEvent(s),F.isOpening=!1}F.isOpening=!1;let O={prefix:String(Math.round(1e10*Math.random())),current:0};w.default.createContext(O),w.default.createContext(!1),"u">typeof window&&window.document&&window.document.createElement,new WeakMap;w.default.useId;let R=null,D=new Set,q=new Map,$=!1,B=!1,H={Tab:!0,Escape:!0};function K(e,t){for(let r of D)r(e,t)}function Q(e){$=!0,F.isOpening||e.metaKey||!S()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(R="keyboard",K("keyboard",e))}function U(e){R="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&($=!0,K("pointer",e))}function z(e){F.isOpening||(""!==e.pointerType||!e.isTrusted)&&(M()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||($=!0,R="virtual")}function W(e){let t=h(v(e)),r=m(v(e));v(e)!==t&&v(e)!==r&&e.isTrusted&&($||B||(R="virtual",K("virtual",e)),$=!1,B=!1)}function V(){$=!1,B=!0}function G(e){if("u"<typeof window||"u"<typeof document)return;let t=h(e),r=m(e);if(q.get(t))return;let n=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){$=!0,n.apply(this,arguments)}}),r.addEventListener("keydown",Q,!0),r.addEventListener("keyup",Q,!0),r.addEventListener("click",z,!0),t.addEventListener("focus",W,!0),t.addEventListener("blur",V,!1),"u">typeof PointerEvent&&(r.addEventListener("pointerdown",U,!0),r.addEventListener("pointermove",U,!0),r.addEventListener("pointerup",U,!0)),t.addEventListener("beforeunload",()=>{Y(e)},{once:!0}),q.set(t,{focus:n})}let Y=(e,t)=>{let r=h(e),n=m(e);t&&n.removeEventListener("DOMContentLoaded",t),q.has(r)&&(Reflect.defineProperty(r.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:q.get(r).focus}),n.removeEventListener("keydown",Q,!0),n.removeEventListener("keyup",Q,!0),n.removeEventListener("click",z,!0),r.removeEventListener("focus",W,!0),r.removeEventListener("blur",V,!1),"u">typeof PointerEvent&&(n.removeEventListener("pointerdown",U,!0),n.removeEventListener("pointermove",U,!0),n.removeEventListener("pointerup",U,!0)),q.delete(r))};function X(){return"pointer"!==R}"u">typeof document&&("loading"!==(t=m(void 0)).readyState?G(void 0):t.addEventListener("DOMContentLoaded",()=>{G(void 0)}));let J=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Z(){let e=(0,w.useRef)(new Map),t=(0,w.useCallback)((t,r,n,i)=>{let o=i?.once?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:o,options:i}),t.addEventListener(r,o,i)},[]),r=(0,w.useCallback)((t,r,n,i)=>{let o=e.current.get(n)?.fn||n;t.removeEventListener(r,o,i),e.current.delete(n)},[]),n=(0,w.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,w.useEffect)(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}let ee=!1,et=0;function er(e){"touch"===e.pointerType&&(ee=!0,setTimeout(()=>{ee=!1},500))}function en(){let e=m(null);if(void 0!==e)return 0===et&&"u">typeof PointerEvent&&e.addEventListener("pointerup",er),et++,()=>{!(--et>0)&&"u">typeof PointerEvent&&e.removeEventListener("pointerup",er)}}var ei=Object.defineProperty,eo=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?ei(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r};let ea=new class{constructor(){eo(this,"current",this.detect()),eo(this,"handoffState","pending"),eo(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}
2detect(){return"u"<typeof window||"u"<typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function es(e){var t;return ea.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function el(){let e=[],t={addEventListener:(e,r,n,i)=>(e.addEventListener(r,n,i),t.add(()=>e.removeEventListener(r,n,i))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(r))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let r=setTimeout(...e);return t.add(()=>clearTimeout(r))},microTask(...e){var r;let n={current:!0};return r=()=>{n.current&&e[0]()},"function"==typeof queueMicrotask?queueMicrotask(r):Promise.resolve().then(r).catch(e=>setTimeout(()=>{throw e})),t.add(()=>{n.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(e){let t=el();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function eu(){let[e]=(0,w.useState)(el);return(0,w.useEffect)(()=>()=>e.dispose(),[e]),e}let ec=(e,t)=>{ea.isServer?(0,w.useEffect)(e,t):(0,w.useLayoutEffect)(e,t)},ed=function(e){let t,r=(t=(0,w.useRef)(e),ec(()=>{t.current=e},[e]),t);return w.default.useCallback((...e)=>r.current(...e),[r])};function ef(e){return(0,w.useMemo)(()=>e,Object.values(e))}let ep=Symbol();function em(...e){let t=(0,w.useRef)(e);(0,w.useEffect)(()=>{t.current=e},[e]);let r=ed(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[ep]))?void 0:r}void 0!==p.default&&"u">typeof globalThis&&"u">typeof Element&&(null==(u=null==p.default?void 0:p.default.env)?void 0:u.NODE_ENV)==="test"&&void 0===(null==(c=null==Element?void 0:Element.prototype)?void 0:c.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(` 3`)),[]});var eh=((r=eh||{})[r.None=0]="None",r[r.Closed=1]="Closed",r[r.Enter=2]="Enter",r[r.Leave=4]="Leave",r);let eb=(0,w.createContext)(()=>{});function ev({value:e,children:t}){return w.default.createElement(eb.Provider,{value:e},t)}let eg=(0,w.createContext)(null);eg.displayName="OpenClosedContext";var ey=((n=ey||{})[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n);function ew({value:e,children:t}){return w.default.createElement(eg.Provider,{value:e},t)}function ex({children:e}){return w.default.createElement(eg.Provider,{value:null},e)}function eE(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"tagName"in e}function ek(e){return eE(e)&&"accessKey"in e}function ej(e){return eE(e)&&"tabIndex"in e}function eC(e){return ek(e)&&"LEGEND"===e.nodeName}function eP(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,eP),n}function eS(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}var eT=((i=eT||{})[i.None=0]="None",i[i.RenderStrategy=1]="RenderStrategy",i[i.Static=2]="Static",i),eA=((o=eA||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function eN(){let e,t,r=(e=(0,w.useRef)([]),t=(0,w.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]),(...r)=>{if(!r.every(e=>null==e))return e.current=r,t});return(0,w.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:e_;let l=eM(t,e);if(o)return eI(l,r,n,a,s);let u=null!=i?i:0;if(2&u){let{static:e=!1,...t}=l;if(e)return eI(t,r,n,a,s)}if(1&u){let{unmount:e=!0,...t}=l;return eP(+!e,{0:()=>null,1:()=>eI({...t,hidden:!0,style:{display:"none"}},r,n,a,s)})}return eI(l,r,n,a,s)})({mergeRefs:r,...e}),[r])}function eI(e,t={},r,n,i){let{as:o=r,children:a,refName:s="ref",...l}=eR(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},c="function"==typeof a?a(t):a;c=function e(t){if(null!=t&&t.$$typeof===Symbol.for("react.lazy")){let r=t._payload;if(null!=r&&"fulfilled"===r.status)return e(r.value)}return t}(c),"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(d["data-headlessui-state"]=r.join(" "),r))d[`data-${e}`]=""}if(eD(o)&&(Object.keys(eO(l)).length>0||Object.keys(eO(d)).length>0))if(!(0,w.isValidElement)(c)||Array.isArray(c)&&c.length>1||eD(c.type)){if(Object.keys(eO(l)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(eO(l)).concat(Object.keys(eO(d))).map(e=>` - ${e}`).join(` 4`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(` 5`)].join(` 6`))}else{var f;let e=c.props,t=null==e?void 0:e.className,r="function"==typeof t?(...e)=>eS(t(...e),l.className):eS(t,l.className),n=eM(c.props,eO(eR(l,["ref"])));for(let e in d)e in n&&delete d[e];return(0,w.cloneElement)(c,Object.assign({},n,d,u,{ref:i((f=c,w.default.version.split(".")[0]>="19"?f.props.ref:f.ref),u.ref)},r?{className:r}:{}))}return(0,w.createElement)(o,Object.assign({},eR(l,["ref"]),!eD(o)&&u,!eD(o)&&d),c)}function e_(...e){return e.every(e=>null==e)?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function eM(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])for(let e in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(r[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in r)Object.assign(t,{[e](t,...n){for(let i of r[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;i(t,...n)}}});return t}function eL(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];for(let e in r)Object.assign(t,{[e](...t){for(let n of r[e])null==n||n(...t)}});return t}function eF(e){var t;return Object.assign((0,w.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function eO(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function eR(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}function eD(e){return e===w.Fragment||e===Symbol.for("react.fragment")}let eq=null!=(d=w.default.startTransition)?d:function(e){e()};var e$=((a=e$||{}).Space=" ",a.Enter="Enter",a.Escape="Escape",a.Backspace="Backspace",a.Delete="Delete",a.ArrowLeft="ArrowLeft",a.ArrowUp="ArrowUp",a.ArrowRight="ArrowRight",a.ArrowDown="ArrowDown",a.Home="Home",a.End="End",a.PageUp="PageUp",a.PageDown="PageDown",a.Tab="Tab",a),eB=((s=eB||{})[s.Open=0]="Open",s[s.Closed=1]="Closed",s),eH=((l=eH||{})[l.ToggleDisclosure=0]="ToggleDisclosure",l[l.CloseDisclosure=1]="CloseDisclosure",l[l.SetButtonId=2]="SetButtonId",l[l.SetPanelId=3]="SetPanelId",l[l.SetButtonElement=4]="SetButtonElement",l[l.SetPanelElement=5]="SetPanelElement",l);let eK={0:e=>({...e,disclosureState:eP(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>
6e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},eQ=(0,w.createContext)(null);function eU(e){let t=(0,w.useContext)(eQ);if(null===t){let t=Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eU),t}return t}eQ.displayName="DisclosureContext";let ez=(0,w.createContext)(null);ez.displayName="DisclosureAPIContext";let eW=(0,w.createContext)(null);function eV(e,t){return eP(t.type,eK,e,t)}eW.displayName="DisclosurePanelContext";let eG=w.Fragment,eY=eT.RenderStrategy|eT.Static,eX=eF(function(e,t){let{defaultOpen:r=!1,...n}=e,i=(0,w.useRef)(null),o=em(t,function(e,t=!0){return Object.assign(e,{[ep]:t})}(e=>{i.current=e},void 0===e.as||eD(e.as))),a=(0,w.useReducer)(eV,{disclosureState:+!r,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:s,buttonId:l},u]=a,c=ed(e=>{u({type:1});let t=es(i.current);if(!t||!l)return;let r=e?ej(e)?e:"current"in e&&ej(e.current)?e.current:t.getElementById(l):t.getElementById(l);null==r||r.focus()}),d=(0,w.useMemo)(()=>({close:c}),[c]),f=ef({open:0===s,close:c}),p=eN();return w.default.createElement(eQ.Provider,{value:a},w.default.createElement(ez.Provider,{value:d},w.default.createElement(ev,{value:c},w.default.createElement(ew,{value:eP(s,{0:ey.Open,1:ey.Closed})},p({ourProps:{ref:o},theirProps:n,slot:f,defaultTag:eG,name:"Disclosure"})))))}),eJ=eF(function(e,t){var r;let n=(0,w.useId)(),{id:i=`headlessui-disclosure-button-${n}`,disabled:o=!1,autoFocus:a=!1,...s}=e,[l,u]=eU("Disclosure.Button"),c=(0,w.useContext)(eW),d=null!==c&&c===l.panelId,f=em((0,w.useRef)(null),t,ed(e=>{if(!d)return u({type:4,element:e})}));(0,w.useEffect)(()=>{if(!d)return u({type:2,buttonId:i}),()=>{u({type:2,buttonId:null})}},[i,u,d]);let p=ed(e=>{var t;if(d){if(1===l.disclosureState)return;switch(e.key){case e$.Space:case e$.Enter:e.preventDefault(),e.stopPropagation(),u({type:0}),null==(t=l.buttonElement)||t.focus()}}else switch(e.key){case e$.Space:case e$.Enter:e.preventDefault(),e.stopPropagation(),u({type:0})}}),g=ed(e=>{e.key===e$.Space&&e.preventDefault()}),y=ed(e=>{var t;(function(e){var t;let r=e.parentElement,n=null;for(;r&&!(ek(t=r)&&"FIELDSET"===t.nodeName);)eC(r)&&(n=r),r=r.parentElement;let i=(null==r?void 0:r.getAttribute("disabled"))==="";return!(i&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(eC(t))return!1;t=t.previousElementSibling}return!0}(n))&&i})(e.currentTarget)||o||(d?(u({type:0}),null==(t=l.buttonElement)||t.focus()):u({type:0}))}),{isFocusVisible:x,focusProps:j}=function(e={}){var t;let{autoFocus:r=!1,isTextInput:n,within:i}=e,o=(0,w.useRef)({isFocused:!1,isFocusVisible:r||X()}),[a,s]=(0,w.useState)(!1),[l,u]=(0,w.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),c=(0,w.useCallback)(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),d=(0,w.useCallback)(e=>{o.current.isFocused=e,o.current.isFocusVisible=X(),s(e),c()},[c]);t={enabled:a,isTextInput:n},G(),(0,w.useEffect)(()=>{if(t?.enabled===!1)return;let e=(e,r)=>{var n;let i,a,s,l,u,d,f,p;n=!!t?.isTextInput,a=m(i=r?v(r):void 0),l=void 0!==(s=h(i))?s.HTMLInputElement:HTMLInputElement,u=void 0!==s?s.HTMLTextAreaElement:HTMLTextAreaElement,d=void 0!==s?s.HTMLElement:HTMLElement,f=void 0!==s?s.KeyboardEvent:KeyboardEvent,p=((e=document)=>e.activeElement)(a),(n=n||p instanceof l&&!J.has(p.type)||p instanceof u||p instanceof d&&p.isContentEditable)&&"keyboard"===e&&r instanceof f&&!H[r.key]||(e=>{o.current.isFocusVisible=e,c()})(X())};return D.add(e),()=>{D.delete(e)}},[n,a]);let{focusProps:f}=function(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:i}=e,o=(0,w.useCallback)(e=>{if(v(e)===e.currentTarget)return n&&n(e),i&&i(!1),!0},[n,i]),a=k(o),s=(0,w.useCallback)(e=>{let t=v(e),n=m(t),o=n?((e=document)=>e.activeElement)(n):((e=document)=>e.activeElement)();t===e.currentTarget&&t===o&&(r&&r(e),i&&i(!0),a(e))},[i,r,a]);return{focusProps:{onFocus:!t&&(r||i||n)?s:void 0,onBlur:!t&&(n||i)?o:void 0}}}({isDisabled:i,onFocusChange:d}),{focusWithinProps:p}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:i}=e,o=(0,w.useRef)({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=Z(),l=(0,w.useCallback)(e=>{b(e.currentTarget,v(e))&&o.current.isFocusWithin&&!b(e.currentTarget,e.relatedTarget)&&(o.current.isFocusWithin=!1,s(),r&&r(e),i&&i(!1))},[r,i,o,s]),u=k(l),c=(0,w.useCallback)(e=>{if(!b(e.currentTarget,v(e)))return;let t=v(e),r=m(t),s=((e=document)=>e.activeElement)(r);if(!o.current.isFocusWithin&&s===t){n&&n(e),i&&i(!0),o.current.isFocusWithin=!0,u(e);let t=e.currentTarget;a(r,"focus",e=>{let n=v(e);if(o.current.isFocusWithin&&!b(t,n)){let e=new r.defaultView.FocusEvent("blur",{relatedTarget:n});Object.defineProperty(e,"target",{value:t}
6),Object.defineProperty(e,"currentTarget",{value:t}),l(E(e))}},{capture:!0})}},[n,i,u,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}({isDisabled:!i,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:i?p:f}}({autoFocus:a}),{isHovered:C,hoverProps:P}=function(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:i}=e,[o,a]=(0,w.useState)(!1),s=(0,w.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,w.useEffect)(en,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=Z(),{hoverProps:c,triggerHoverEnd:d}=(0,w.useMemo)(()=>{let e=(e,t)=>{let i=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&i&&(s.isHovered=!1,u(),n&&n({type:"hoverend",target:i,pointerType:t}),r&&r(!1),a(!1))},o={};return"u">typeof PointerEvent&&(o.onPointerEnter=n=>{ee&&"mouse"===n.pointerType||((n,o)=>{if(s.pointerType=o,i||"touch"===o||s.isHovered||!b(n.currentTarget,v(n)))return;s.isHovered=!0;let u=n.currentTarget;s.target=u,l(m(v(n)),"pointerover",t=>{s.isHovered&&s.target&&!b(s.target,v(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:o}),r&&r(!0),a(!0)})(n,n.pointerType)},o.onPointerLeave=t=>{!i&&b(t.currentTarget,v(t))&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,r,n,i,s,l,u]);return(0,w.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:c,isHovered:o}}({isDisabled:o}),{pressed:S,pressProps:T}=function({disabled:e=!1}={}){let t=(0,w.useRef)(null),[r,n]=(0,w.useState)(!1),i=eu(),o=ed(()=>{t.current=null,n(!1),i.dispose()}),a=ed(e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,n(!0);{let r=es(e.currentTarget);i.addEventListener(r,"pointerup",o,!1),i.addEventListener(r,"pointermove",e=>{if(t.current){var r,i;let o,a;n((o=e.width/2,a=e.height/2,r={top:e.clientY-a,right:e.clientX+o,bottom:e.clientY+a,left:e.clientX-o},i=t.current.getBoundingClientRect(),!(!r||!i||r.right<i.left||r.left>i.right||r.bottom<i.top||r.top>i.bottom)))}},!1),i.addEventListener(r,"pointercancel",o,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}({disabled:o}),A=ef({open:0===l.disclosureState,hover:C,active:S,disabled:o,focus:x,autofocus:a}),N=(r=l.buttonElement,(0,w.useMemo)(()=>{var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase()||(null==r?void 0:r.tagName)==="BUTTON"&&!r.hasAttribute("type"))return"button"},[e.type,e.as,r])),I=d?eL({ref:f,type:N,disabled:o||void 0,autoFocus:a,onKeyDown:p,onClick:y},j,P,T):eL({ref:f,id:i,type:N,"aria-expanded":0===l.disclosureState,"aria-controls":l.panelElement?l.panelId:void 0,disabled:o||void 0,autoFocus:a,onKeyDown:p,onKeyUp:g,onClick:y},j,P,T);return eN()({ourProps:I,theirProps:s,slot:A,defaultTag:"button",name:"Disclosure.Button"})}),eZ=eF(function(e,t){let r=(0,w.useId)(),{id:n=`headlessui-disclosure-panel-${r}`,transition:i=!1,...o}=e,[a,s]=eU("Disclosure.Panel"),{close:l}=function e(t){let r=(0,w.useContext)(ez);if(null===r){let r=Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,e),r}return r}("Disclosure.Panel"),[u,c]=(0,w.useState)(null),d=em(t,ed(e=>{eq(()=>s({type:5,element:e}))}),c);(0,w.useEffect)(()=>(s({type:3,panelId:n}),()=>{s({type:3,panelId:null})}),[n,s]);let f=(0,w.useContext)(eg),[p,m]=function(e,t,r){let[n,i]=(0,w.useState)(r),{hasFlag:o,addFlag:a,removeFlag:s}=function(e=0){let[t,r]=(0,w.useState)(e),n=(0,w.useCallback)(e=>r(e),[]),i=(0,w.useCallback)(e=>r(t=>t|e),[]),o=(0,w.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:n,addFlag:i,hasFlag:o,removeFlag:(0,w.useCallback)(e=>r(t=>t&~e),[]),toggleFlag:(0,w.useCallback)(e=>r(t=>t^e),[])}}(e&&n?3:0),l=(0,w.useRef)(!1),u=(0,w.useRef)(!1);return ec(()=>{if(e){if(r&&i(!0),!t){r&&a(3);return}return function(e,{prepare:t,run:r,done:n,inFlight:i}){let o=el();return function(e,{inFlight:t,prepare:r}){if(null!=t&&t.current)return r();let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{r(),o.requestAnimationFrame(()=>{o.add(function(e,t){var r,n;let i=el();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let a=null!=(n=null==(r=e.getAnimations)?void 0:r.call(e).filter(e=>e instanceof CSSTransition))?n:[];return 0===a.length?t():Promise.allSettled(a.map(e=>e.finished)).then(()=>{o||t()}),i.dispose}(e,n))})}),o.dispose}(t,{inFlight:l,prepare(){u.current?u.current=!1:u.current=l.current,l.current=!0,u.current||(r?(a(3),s(4)):(a(4),s(2)))},run(){u.current?r?(s(3),a(4)):(s(4),a(3)):r?s(1):a(1)},done(){var e,n,o;u.current&&(null!=(o=null==(n=(e=t).getAnimations)?void 0:n.call(e))?o:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)||(l.current=!1,s(7),r||i(!1))}})}},[e,r,t,eu()]),e?[n,{closed:o(1),enter:o(2),leave:o(4),transition:o(2)||o(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}(i,u,null!==f?(f&ey.Open)===ey.Open:0===a.disclosureState),h=ef({open:0===a.disclosureState,close:l}),b={ref:d,id:n,...function(e){let t={};for(let r in e)!0===e[r]&&(t[`data-${r}`]="");return t}(m)},v=eN();return w.default.createElement(ex,null,w.default.createElement(eW.Provider,{value:a.panelId},v({ourProps:b,theirProps:o,slot:h,defaultTag:"div",features:eY,visible:p,name:"Disclosure.Panel"})))}),e0=Object.assign(eX,{Button:eJ,Panel:eZ}),e1=w.forwardRef(function({title:e,titleId:t,...r},n){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?w.createElement("title",{id:t},e):null,w.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});var e2=e.i(427217),e5=e.i(657688),e4=e.i(819759),e6=e.i(154083),e8=e.i(647163);function e3({max:e=100,min:t=0,value:r,gaugePrimaryColor:n,gaugeSecondaryColor:i,ariaLabel:o,centerContent:a,className:s,decorative:l=!1,disableAnimation:u=!1}){let c=2*Math.PI*45,d=c/100,p=e-t,m=Math.min(100,Math.max(0,Math.round(p>0?(r-t)/p*100:0)));return(0,f.jsxs)("span",{role:l?void 0:"progressbar","aria-hidden":l||void 0,"aria-label":l?void 0:o,"aria-valuemin":l?void 0:0,"aria-valuemax":l?void 0:100,"aria-valuenow":l?void 0:m,"aria-valuetext":l?void 0:`${m}%`,"data-progress-motion":u?"static":"animated",className:(0,e8.cn)("relative inline-block size-40 text-2xl font-semibold",s),style:{"--circle-size":"100px","--circumference":c,"--percent-to-px":`${d}px`,"--gap-percent":"5","--offset-factor":"0","--transition-length":u?"0s":"1s","--delay":"0s","--percent-to-deg":"3.6deg"},children:[(0,f.jsxs)("svg",{"aria-hidden":"true",fill:"none",className:"size-full",strokeWidth:"2",viewBox:"0 0 100 100",children:[m<=90&&(0,f.jsx)("circle",{cx:"50",cy:"50",r:"45",strokeWidth:"10",strokeDashoffset:"0",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-100",style:{stroke:i,"--stroke-percent":90-m,"--offset-factor-secondary":"calc(1 - var(--offset-factor))",strokeDasharray:"calc(var(--stroke-percent) * var(--percent-to-px)) var(--circumference)",transform:"rotate(calc(1turn - 90deg - (var(--gap-percent) * var(--percent-to-deg) * var(--offset-factor-secondary)))) scaleY(-1)",transition:u?"none":"all var(--transition-length) ease var(--delay)",transformOrigin:"calc(var(--circle-size) / 2) calc(var(--circle-size) / 2)"}}),(0,f.jsx)("circle",{cx:"50",cy:"50",r:"45",strokeWidth:"10",strokeDashoffset:"0",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-100",style:{stroke:n,"--stroke-percent":m,strokeDasharray:"calc(var(--stroke-percent) * var(--percent-to-px)) var(--circumference)",transition:u?"none":"var(--transition-length) ease var(--delay)",transitionProperty:"stroke-dasharray, transform",transform:"rotate(calc(-90deg + var(--gap-percent) * var(--offset-factor) * var(--percent-to-deg)))",transformOrigin:"calc(var(--circle-size) / 2) calc(var(--circle-size) / 2)"}})]}),(0,f.jsx)("span",{"aria-hidden":"true","data-current-value":m,className:"absolute inset-0 m-auto size-fit",children:a??m})]})}var e7=e.i(658073),e9=e.i(818344),te=e.i(662434),tt=e.i(536849),tr=e.i(711886);let tn={src:e.i(947315).default,width:1254,height:1254,blurWidth:0,blurHeight:0};var ti=e.i(490315),to=e.i(618566),ta=e.i(278669),ts=e.i(592255),tl=e.i(656135);async function tu(e,t){try{await (0,ta.track)(e,t)}catch(r){console.error("Failed to track navbar import action:",r),(0,tl.captureError)(r,{flow:"recipe-import",surface:"client",operation:"navbar-import-navigation-track",extra:{eventName:e,...t}})}}function tc({eventName:e,eventProperties:t,href:r,onSelected:n,...i}){let o=(0,to.usePathname)(),a=(0,to.useRouter)(),s=(0,w.useRef)(!1);return(0,f.jsx)(e6.PrivacyAwareLink,{...i,href:r,onClick:i=>{let l;if(!(0===i.button&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&!i.altKey)||(0,ts.isPrivateAnalyticsPath)(o)){n?.(),tu(e,t);return}i.preventDefault(),s.current||(s.current=!0,n?.(),Promise.race([tu(e,t),new Promise(e=>{l=setTimeout(e,1500)})]).finally(()=>{clearTimeout(l)}).finally(()=>{try{a.push(r)}finally{s.current=!1}}))}})}var td=e.i(912598),tf=e.i(195399),tp=e.i(624464),tm=e.i(678525),th=e.i(411754);let tb=[];function tv(e){return{completedImports:[],terminalCandidates:[],userId:e}}function tg(e){return`${e.recipe_id}:${e.workflow_run_id??""}`}var ty=e.i(129266);let tw=[{label:"Recipes",href:"/recipes"},{label:"Lists",href:"/account/lists"},{label:"Grocery List",href:"/grocery-list"},{label:"Pricing",href:"/pricing"},{label:"Guides",href:"/guides"}],tx="flex min-h-11 min-w-11 items-center justify-center rounded-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foodie-brown";function tE({sourceType:e,sourceUrl:t}){let[r,n]=(0,w.useState)(!1),i="url"===e?(0,tt.getFaviconUrl)(t):null,o="url"===e?(0,tt.getProvenanceLabel)(t):null;return i&&o&&!r?(0,f.jsx)("span",{"aria-hidden":"true",className:"flex size-6 shrink-0 items-center justify-center rounded-md border border-foodie-brown/15 bg-white p-1",children:(0,f.jsx)("img",{src:i,alt:"",className:"size-full object-contain",onError:()=>n(!0)})}):null}e.s(["default",0,function({userRecipesEnabled:e=!1}){let{foodieUser:t}=(0,e9.useFoodieUser)(),r=(0,ty.useSharedChromeReducedMotion)(),n=(0,w.useId)(),[i,o]=(0,w.useState)(!1),a=t?.authUser?.id;(0,w.useEffect)(()=>o(!1),[a]);let s=!!t?.authUser,{acknowledgeCompletedImport:l,activeImport:u,completedImports:c=[],progress:d,settlingImport:p}=function(e){let t=(0,td.useQueryClient)(),{data:r=tb}=(0,tf.useActiveRecipeImports)(e),n=r[0]??null,i=(0,w.useRef)([]),o=(0,w.useRef)(new Set),[a,s]=(0,w.useState)(()=>tv(e)),{completedImports:l,terminalCandidates:u}=a,c=new Set(r.map(tg)),d=i.current.filter(e=>!c.has(tg(e))),f=a.userId===e?d[0]??u[0]??null:null,p=(0,w.useCallback)(()=>{t.invalidateQueries({queryKey:tf.ACTIVE_RECIPE_IMPORT_QUERY_KEY}),t.invalidateQueries({queryKey:["user-recipes"]})},[t]),{progress:m}
6=(0,tm.useWorkflowStream)(n?.recipe_id??null,n?.workflow_run_id??null,p),h=(0,tp.useRecipeProcessingStatuses)(u.map(e=>e.recipe_id));return(0,w.useEffect)(()=>{i.current=[],o.current.clear(),s(tv(e))},[e]),(0,w.useEffect)(()=>{let e=new Set(r.map(tg)),n=i.current.filter(t=>!e.has(tg(t)));if(n.length>0){let e=new Set(n.map(tg));s(t=>{let r=t.terminalCandidates.filter(t=>!e.has(tg(t)));return{...t,terminalCandidates:[...n,...r]}}),t.invalidateQueries({queryKey:["user-recipes"]})}i.current=r},[r,t]),(0,w.useEffect)(()=>{if(a.userId!==e)return;let t=u.flatMap((e,t)=>{let r=h[t];if(r?.isError&&!r.isFetching){let t=tg(e);return o.current.has(t)||(o.current.add(t),(0,tl.captureError)(r.error??Error("Recipe import completion status poll failed"),{flow:"recipe-import",surface:"client",operation:"nav-import-completion-status",extra:{recipeId:e.recipe_id,workflowRunId:e.workflow_run_id}})),[{candidate:e,completedImport:null}]}let n=r?.data;if(!n||n.recipe_id!==e.recipe_id)return[];let i=e.workflow_run_id&&n.workflow_run_id&&e.workflow_run_id!==n.workflow_run_id;return i&&r.isFetching?[]:i||"failed"===n.processing_status?[{candidate:e,completedImport:null}]:"completed"!==n.processing_status?[]:((0,th.trackRecipeImportCompleted)({recipeId:n.recipe_id,workflowRunId:n.workflow_run_id,sourceType:n.source_type,processAttempts:n.process_attempts}),[{candidate:e,completedImport:{recipeId:n.recipe_id,recipePath:n.recipe_hidden?null:n.recipe_path,recipeTitle:n.recipe_title,sourceType:n.source_type,sourceUrl:n.source_url}}])});if(0===t.length)return;let r=new Set(t.map(({candidate:e})=>tg(e)));s(e=>({completedImports:t.reduce((e,t)=>t.completedImport&&!e.some(e=>e.recipeId===t.completedImport?.recipeId)?[...e,t.completedImport]:e,e.completedImports),terminalCandidates:e.terminalCandidates.filter(e=>!r.has(tg(e))),userId:e.userId}))},[h,a.userId,u,e]),{activeImport:e?n:null,acknowledgeCompletedImport:(0,w.useCallback)(e=>{s(t=>({...t,completedImports:t.completedImports.filter(t=>t.recipeId!==e)}))},[]),completedImports:e&&a.userId===e?l:[],progress:n?m??0:100*!!f,settlingImport:e?f:null}}(e?a:void 0),m=u??p,h=`Recipe import ${d}% complete`,b=c.length,v=c[0]??null,g=b>0||!!m,y=g?tw:tw.slice(1),x=`${(0,e4.default)("completed recipe import",b,!0)}. ${i?"Close":"Open"} completed imports`;return(0,f.jsx)(e0,{as:"nav","aria-label":"Primary navigation",className:(0,e8.cn)("bg-foodie-beige py-4",r&&ti.default.reducedMotion),"data-navigation-motion":r?"static":"animated","data-site-navigation":!0,children:({open:e,close:t})=>{var a,u;return(0,f.jsxs)("div",{className:"site-padding",children:[b>0&&(0,f.jsx)("span",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:1===b&&v?`${v.recipeTitle} is ready.`:`${(0,e4.default)("recipe",b,!0)} are ready.`}),(0,f.jsxs)("div",{className:(0,e8.cn)(ti.default.navigationShell,"relative isolate mx-auto grid h-[4.5rem] w-full grid-cols-[1fr_auto] items-center rounded-2xl border-2 border-foodie-brown/10 bg-foodie-light-beige px-5 shadow-sm sm:max-w-[52rem] sm:px-6 min-[832px]:grid-cols-[7.5rem_minmax(0,1fr)_7.5rem] min-[832px]:gap-x-2 xl:w-4/5"),children:[!s&&(0,f.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -inset-[2px] z-0 hidden overflow-hidden rounded-2xl min-[832px]:block",children:(0,f.jsx)(e5.default,{src:tn,alt:"",className:ti.default.signInPeekMascot})}),(0,f.jsx)(e6.PrivacyAwareLink,{href:"/","aria-label":"Foodie home",className:"relative z-10 w-fit shrink-0 min-[832px]:w-full",children:(0,f.jsx)(e5.default,{src:tr.default,alt:"",priority:!0,className:"h-6 w-auto sm:h-7 min-[832px]:h-auto min-[832px]:w-full"})}),(0,f.jsx)("div",{className:"relative z-10 hidden items-center justify-center gap-2 pl-1 min-[832px]:flex",children:tw.map(e=>(0,f.jsx)(e6.PrivacyAwareLink,{href:e.href,className:(0,e8.cn)(e7.cascadingTextTriggerClassName,"flex min-h-11 items-center justify-center whitespace-nowrap rounded-md px-2 py-2 text-center text-base font-semibold text-foodie-brown/90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foodie-brown"),children:(0,f.jsx)(e7.CascadingTextLabel,{label:e.label,disableMotion:r})},e.href))}),(0,f.jsxs)("div",{className:"relative z-10 flex h-11 w-full items-center justify-end",children:[!g&&(0,f.jsx)("div",{className:"flex h-8 flex-1 items-center justify-center border-l border-foodie-brown/15 px-3 sm:px-4 min-[832px]:hidden",children:(0,f.jsx)(e6.PrivacyAwareLink,{href:"/recipes",onClick:()=>{e&&t()},className:(0,e8.cn)(e7.cascadingTextTriggerClassName,"inline-flex min-h-11 items-center rounded-md px-1 py-2 text-base font-semibold text-foodie-brown/90 transition-colors hover:text-foodie-brown focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foodie-brown"),children:(0,f.jsx)(e7.CascadingTextLabel,{label:"Recipes",disableMotion:r})})}),(0,f.jsx)("div",{className:(0,e8.cn)("h-8 flex-1 items-center justify-center border-l border-foodie-brown/15 px-3 sm:px-4",g?"flex":"hidden min-[832px]:flex"),children:(a=e?e=>t(e):void 0,u=e?()=>t():void 0,b>0?b>0?(0,f.jsx)("button",{type:"button","aria-controls":n,"aria-expanded":i,"aria-label":x,title:"View completed imports",onClick:e=>{o(e=>!e),a?.(e.currentTarget)},className:tx,children:(0,f.jsx)(e3,{decorative:!0,centerContent:(0,f.jsx)("span",{className:"text-[#007C35]",children:b}),value:100,gaugePrimaryColor:"#007C35",gaugeSecondaryColor:"rgba(0, 124, 53, 0.18)",disableAnimation:r,className:"size-8 text-[0.625rem] font-bold"})}):null:m?(e=>{if(!m)return null;let t=`/my-recipes/processing/${m.recipe_id}`;return(0,f.jsx)(tc,{href:t,eventName:"Recipe Import Progress Opened",eventProperties:{recipe_id:m.recipe_id,progress_percent:d,source:"navbar"},onSelected:e,"aria-label":h,title:"View recipe import progress",className:tx,children:(0,f.jsx)(e3,{ariaLabel:"Recipe import progress",value:d,gaugePrimaryColor:"#ea602f",gaugeSecondaryColor:"rgba(108, 63, 24, 0.15)",disableAnimation:r,className:"size-8 text-[0.625rem] font-bold text-foodie-brown"})})})(u):s?(0,f.jsx)(e6.PrivacyAwareLink,{href:"/account",className:"rounded-md px-1 py-2 text-base font-semibold text-foodie-brown/90 transition-colors hover:text-foodie-brown focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foodie-brown",children:"Account"}):(0,f.jsx)(te.default,{showUpsell:!1,trigger:(0,f.jsx)("button",{type:"button",className:(0,e8.cn)(ti.default.signInAction,"rounded-md px-1 py-2 text-base font-semibold text-foodie-brown/90 transition-colors hover:text-foodie-brown focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foodie-brown"),children:"Sign in"})}))}),(0,f.jsxs)(eJ,{onClick:()=>o(!1),className:(0,e8.cn)(ti.default.navigationToggle,"ml-1 inline-flex min-h-11 min-w-11 items-center justify-center rounded-md text-foodie-brown/90 transition-colors hover:text-foodie-brown focus-visible:text-foodie-orange","min-[832px]:hidden"),children:[(0,f.jsx)("span",{className:"sr-only",children:e?"Close navigation menu":"Open navigation menu"}),e?(0,f.jsx)(e2.XMarkIcon,{"aria-hidden":"true",className:"h-5 w-5"}):(0,f.jsx)(e1,{"aria-hidden":"true",className:"h-5 w-5"})]})]})]}),(0,f.jsx)(eZ,{role:"group","aria-label":"Collapsed navigation",className:"mx-auto mt-2 w-full rounded-2xl border-2 border-foodie-brown/10 bg-foodie-light-beige p-2 shadow-sm sm:max-w-[52rem] min-[832px]:hidden",children:(0,f.jsxs)("div",{className:"grid gap-1",children:[y.map(e=>(0,f.jsx)(e6.PrivacyAwareLink,{href:e.href,onClick:()=>t(),className:(0,e8.cn)(e7.cascadingTextTriggerClassName,"flex min-h-11 items-center rounded-md px-4 py-2 text-base font-semibold text-foodie-brown/90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foodie-brown"),children:(0,f.jsx)(e7.CascadingTextLabel,{label:e.label,disableMotion:r})},e.href)),(0,f.jsx)("div",{className:"mt-1 border-t border-foodie-brown/15 pt-1",children:s?(0,f.jsx)(e6.PrivacyAwareLink,{href:"/account",onClick:()=>t(),className:(0,e8.cn)(e7.cascadingTextTriggerClassName,"flex min-h-11 items-center rounded-md px-4 py-2 text-base font-semibold text-foodie-brown/90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foodie-brown"),children:(0,f.jsx)(e7.CascadingTextLabel,{label:"Account",disableMotion:r})}):(0,f.jsx)(te.default,{showUpsell:!1,onClose:()=>t(),trigger:(0,f.jsx)("button",{type:"button",className:(0,e8.cn)(e7.cascadingTextTriggerClassName,"flex min-h-11 w-full items-center rounded-md px-4 py-2 text-base font-semibold text-foodie-brown/90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foodie-brown"),children:(0,f.jsx)(e7.CascadingTextLabel,{label:"Sign in",disableMotion:r})})})})]})}),b>0&&i&&(0,f.jsx)("div",{id:n,role:"region","aria-label":"Completed imports",className:(0,e8.cn)("mx-auto mt-2 w-full rounded-2xl border-2 border-foodie-brown/10 bg-foodie-light-beige p-2 shadow-sm","sm:max-w-[52rem]"),children:(0,f.jsxs)("div",{className:"grid gap-1",children:[(0,f.jsx)("div",{className:"px-4 py-2 text-sm font-semibold text-foodie-brown/80",children:"Completed imports"}),c.map(r=>{let n=r.recipePath?`/recipes/${r.recipePath}`:`/my-recipes/edit/${r.recipeId}`;return(0,f.jsxs)(tc,{href:n,eventName:"Recipe Import Result Opened",eventProperties:{recipe_id:r.re
6cipeId,source_type:r.sourceType,destination:r.recipePath?"recipe":"editor",source:"navbar"},onSelected:()=>{l(r.recipeId),o(!1),e&&t()},className:"flex min-h-11 items-center gap-2 rounded-md px-4 py-2 text-base font-semibold text-foodie-brown/90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foodie-brown",children:[(0,f.jsx)(tE,{sourceType:r.sourceType,sourceUrl:r.sourceUrl}),(0,f.jsx)("span",{className:"min-w-0 break-words",children:r.recipeTitle})]},r.recipeId)})]})})]})}})}],700085)},3303,(e,t,r)=>{t.exports=e.r(479520)},906802,e=>{"use strict";e.i(247167);var t=e.i(843476),r=e.i(271645),n=e.i(3303),i=e.i(618566);function o(){return"u">typeof window}function a(){return"production"}function s(){return"development"===((o()?window.vam:a())||"production")}function l(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function u(e){return(0,r.useEffect)(()=>{!function(e={debug:!0}){var t;if(!o())return;!function(e="auto"){if("auto"===e){window.vam=a();return}window.vam=e}(e.mode),window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)}),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let r=e.scriptSrc||(s()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.js");if(document.head.querySelector(`script[src*="${r}"]`))return;let n=document.createElement("script");n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/analytics"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.3.1",e.disableAutoTrack&&(n.dataset.disableAutoTrack="1"),e.endpoint&&(n.dataset.endpoint=e.endpoint),e.dsn&&(n.dataset.dsn=e.dsn),n.onerror=()=>{let e=s()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${r}. ${e}`)},s()&&!1===e.debug&&(n.dataset.debug="false"),document.head.appendChild(n)}({framework:e.framework||"react",...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,r.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var r;null==(r=window.va)||r.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}function c(e){let t,n,o,a,{route:s,path:c}=(t=(0,i.useParams)(),n=(0,i.useSearchParams)(),o=(0,i.usePathname)(),a={...Object.fromEntries(n.entries()),...t||{}},{route:t?function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,n]of e)if(!Array.isArray(n)){let e=l(n);e.test(r)&&(r=r.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=l(n.join("/"));e.test(r)&&(r=r.replace(e,`/[...${t}]`))}return r}catch(t){return e}}(o,a):null,path:o});return r.default.createElement(u,{path:c,route:s,...e,framework:"next"})}function d(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(c,{...e}))}function f(){return false}function p(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}var m="https://va.vercel-scripts.com/v1/speed-insights",h=`${m}/script.js`,b=`${m}/script.debug.js`;function v(e){let t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(t.current)e.route&&t.current(e.route);else{let r=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=!!e.dsn,n=e.scriptSrc||(f()?b:r?h:"/_vercel/speed-insights/script.js");if(document.head.querySelector(`script[src*="${n}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let i=document.createElement("script");return i.src=n,i.defer=!0,i.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),i.dataset.sdkv="1.0.12",e.sampleRate&&(i.dataset.sampleRate=e.sampleRate.toString()),e.route&&(i.dataset.route=e.route),e.endpoint&&(i.dataset.endpoint=e.endpoint),e.dsn&&(i.dataset.dsn=e.dsn),f()&&!1===e.debug&&(i.dataset.debug="false"),i.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${n}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(i),{setRoute:e=>{i.dataset.route=e??void 0}}}({framework:e.framework||"react",...e});r&&(t.current=r.setRoute)}},[e.route]),null}function g(e){let t,n,o,a,s=(t=(0,i.useParams)(),n=(0,i.useSearchParams)()||new URLSearchParams,o=(0,i.usePathname)(),a={...Object.fromEntries(n.entries()),...t||{}},t?function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,n]of e)if(!Array.isArray(n)){let e=p(n);e.test(r)&&(r=r.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=p(n.join("/"));e.test(r)&&(r=r.replace(e,`/[...${t}]`))}return r}catch(t){return e}}(o,a):null);return r.default.createElement(v,{route:s,...e,framework:"next"})}function y(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(g,{...e}))}var w=e.i(592255),x=e.i(115119);function E(){let e=(0,i.usePathname)(),n=(0,i.useSearchParams)().toString(),o=n?`${e}?${n}`:e,a=(0,w.shouldLoadThirdPartyAnalytics)(o);return(0,r.useEffect)(()=>(0,w.initializePrivacyAwareGoogleAnalytics)(),[]),(0,r.useEffect)(()=>{a&&(0,x.captureAcquisitionSource)()},[a]),a?(0,t.jsx)(k,{}):null}function k(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{type:"text/javascript",src:"https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=RHYVne",strategy:"afterInteractive"}),(0,t.jsx)(n.default,{src:`https://www.googletagmanager.com/gtag/js?i
6d=${w.GOOGLE_ANALYTICS_MEASUREMENT_ID}`,strategy:"afterInteractive"}),(0,t.jsx)("noscript",{children:(0,t.jsx)("img",{height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=1485358968998151&ev=PageView&noscript=1",alt:""})}),(0,t.jsx)(n.default,{src:"https://cdn.amplitude.com/script/a1ddc9577b2084736483fca60922488b.js",strategy:"afterInteractive"}),(0,t.jsx)(n.default,{id:"amplitude-init",strategy:"afterInteractive",children:` 7 (function () { 8 const privatePaths = ${JSON.stringify(w.PRIVATE_ANALYTICS_PATH_PREFIXES)}; 9 const recipeCapabilityParams = ${JSON.stringify(w.RECIPE_CAPABILITY_QUERY_PARAMS)}; 10 const isPrivatePath = () => privatePaths.some( 11 (prefix) => window.location.pathname === prefix || window.location.pathname.startsWith(prefix + '/') 12 ); 13 const isRecipeCapabilityUrl = () => { 14 const isRecipePath = window.location.pathname === '/recipes' || window.location.pathname.startsWith('/recipes/'); 15 const searchParams = new URLSearchParams(window.location.search); 16 return isRecipePath && recipeCapabilityParams.some( 17 (parameter) => searchParams.has(parameter) 18 ); 19 }; 20 const isSignInReturnUrl = () => window.location.pathname === '/signin' && new URLSearchParams(window.location.search).has('next'); 21 const isPrivateUrl = () => isPrivatePath() || isRecipeCapabilityUrl() || isSignInReturnUrl(); 22 23 function initAmplitude() { 24 if (typeof window.amplitude !== 'undefined' && typeof window.sessionReplay !== 'undefined') { 25 try { 26 window.amplitude.add({ 27 name: 'foodie-private-route-filter', 28 type: 'enrichment', 29 execute: async (event) => isPrivateUrl() ? null : event 30 }); 31 window.amplitude.init('a1ddc9577b2084736483fca60922488b', { 32 fetchRemoteConfig: true, 33 autocapture: true 34 }); 35 36 if (!isPrivateUrl()) { 37 const replayPlugin = window.sessionReplay.plugin({ 38 sampleRate: 0.25 39 }); 40 window.amplitude.add(replayPlugin); 41 } 42 } catch (error) { 43 console.error('Failed to initialize Amplitude:', error); 44 } 45 } else { 46 setTimeout(initAmplitude, 100); 47 } 48 } 49 50 initAmplitude(); 51 })(); 52 `})]})}e.s(["PrivacyAwareAnalytics",0,function(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Suspense,{fallback:null,children:(0,t.jsx)(E,{})}),(0,t.jsx)(d,{beforeSend:e=>(0,w.isPrivateAnalyticsUrl)(e.url)?null:e}),(0,t.jsx)(y,{beforeSend:e=>(0,w.isPrivateAnalyticsUrl)(e.url)?null:e})]})}],906802)}]); 53 54//# debugId=77543ccf-e71b-54de-6d68-365ca7d5edcd
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.