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]="c7cf5e1a-b3c0-197c-98d9-2f231d9d5c4e")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,555436,e=>{"use strict";let t=(0,e.i(475254).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["Search",0,t],555436)},88653,e=>{"use strict";e.i(247167);var t=e.i(843476),o=e.i(271645),r=e.i(231178),i=e.i(947414),n=e.i(821476),a=o,s=e.i(737806);class d extends a.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u({children:e,isPresent:o}){let r=(0,a.useId)(),i=(0,a.useRef)(null),n=(0,a.useRef)({width:0,height:0,top:0,left:0}),{nonce:_}=(0,a.useContext)(s.MotionConfigContext);return(0,a.useInsertionEffect)(()=>{let{width:e,height:t,top:a,left:s}=n.current;if(o||!i.current||!e||!t)return;i.current.dataset.motionPopId=r;let d=document.createElement("style");return _&&(d.nonce=_),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` 3 [data-motion-pop-id="${r}"] { 4 position: absolute !important; 5 width: ${e}px !important; 6 height: ${t}px !important; 7 top: ${a}px !important; 8 left: ${s}px !important; 9 } 10 `),()=>{document.head.removeChild(d)}},[o]),(0,t.jsx)(d,{isPresent:o,childRef:i,sizeRef:n,children:a.cloneElement(e,{ref:i})})}let _=({children:e,initial:r,isPresent:a,onExitComplete:s,custom:d,presenceAffectsLayout:_,mode:l})=>{let m=(0,i.useConstant)(p),c=(0,o.useId)(),h=(0,o.useCallback)(e=>
10{for(let t of(m.set(e,!0),m.values()))if(!t)return;s&&s()},[m,s]),g=(0,o.useMemo)(()=>({id:c,initial:r,isPresent:a,custom:d,onExitComplete:h,register:e=>(m.set(e,!1),()=>m.delete(e))}),_?[Math.random(),h]:[a,h]);return(0,o.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[a]),o.useEffect(()=>{a||m.size||!s||s()},[a]),"popLayout"===l&&(e=(0,t.jsx)(u,{isPresent:a,children:e})),(0,t.jsx)(n.PresenceContext.Provider,{value:g,children:e})};function p(){return new Map}var l=e.i(464978);let m=e=>e.key||"";function c(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}var h=e.i(674008);e.s(["AnimatePresence",0,({children:e,custom:n,initial:a=!0,onExitComplete:s,presenceAffectsLayout:d=!0,mode:u="sync",propagate:p=!1})=>{let[g,y]=(0,l.usePresence)(p),f=(0,o.useMemo)(()=>c(e),[e]),b=p&&!g?[]:f.map(m),j=(0,o.useRef)(!0),E=(0,o.useRef)(f),q=(0,i.useConstant)(()=>new Map),[v,S]=(0,o.useState)(f),[x,k]=(0,o.useState)(f);(0,h.useIsomorphicLayoutEffect)(()=>{j.current=!1,E.current=f;for(let e=0;e<x.length;e++){let t=m(x[e]);b.includes(t)?q.delete(t):!0!==q.get(t)&&q.set(t,!1)}},[x,b.length,b.join("-")]);let w=[];if(f!==v){let e=[...f];for(let t=0;t<x.length;t++){let o=x[t],r=m(o);b.includes(r)||(e.splice(t,0,o),w.push(o))}"wait"===u&&w.length&&(e=w),k(c(e)),S(f);return}let{forceRender:C}=(0,o.useContext)(r.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:x.map(e=>{let o=m(e),r=(!p||!!g)&&(f===x||b.includes(o));return(0,t.jsx)(_,{isPresent:r,initial:(!j.current||!!a)&&void 0,custom:r?void 0:n,presenceAffectsLayout:d,mode:u,onExitComplete:r?void 0:()=>{if(!q.has(o))return;q.set(o,!0);let e=!0;q.forEach(t=>{t||(e=!1)}),e&&(null==C||C(),k(E.current),p&&(null==y||y()),s&&s())},children:e},o)})})}],88653)},636372,e=>{"use strict";e.s(["STEP_CLIP_DISCLOSURE",0,{type:"spring",stiffness:195,damping:21.8,mass:1},"STEP_CLIP_FADE_S",0,.18])},809868,e=>{e.q("/_next/static/media/assistant-lactose-preference-bubble.35co79dv8vkhs.svg")},410333,e=>{e.q("/_next/static/media/assistant-onion-preference-bubble.3glmprrw3r09g.svg")},877671,e=>{e.q("/_next/static/media/assistant-protein-preference-bubble.2kirwqaevzay3.svg")},803406,e=>{e.q("/_next/static/media/assistant-protein-preference-bubble-outline.2h23mvfawky8w.svg")},710583,e=>{e.q("/_next/static/media/foodie-rigatoni.2ml_93_jjjd4v.svg")},999663,e=>{e.v({assistantAdaptationContent:"prototype-module__jd9mEq__assistantAdaptationContent",assistantAdaptationEdit:"prototype-module__jd9mEq__assistantAdaptationEdit",assistantAdaptationEdits:"prototype-module__jd9mEq__assistantAdaptationEdits",assistantAdaptationLabel:"prototype-module__jd9mEq__assistantAdaptationLabel",assistantAdaptationLine:"prototype-module__jd9mEq__assistantAdaptationLine",assistantAdaptationSequence:"prototype-module__jd9mEq__assistantAdaptationSequence",assistantDeliveryCarrier:"prototype-module__jd9mEq__assistantDeliveryCarrier",assistantDeliveryMascot:"prototype-module__jd9mEq__assistantDeliveryMascot",assistantDeliveryPreference:"prototype-module__jd9mEq__assistantDeliveryPreference",assistantHanddrawnCircle:"prototype-module__jd9mEq__assistantHanddrawnCircle",assistantHandwrittenStrike:"prototype-module__jd9mEq__assistantHandwrittenStrike",assistantLactoseBubble:"prototype-module__jd9mEq__assistantLactoseBubble",assistantMascot:"prototype-module__jd9mEq__assistantMascot",assistantNutritionLine:"prototype-module__jd9mEq__assistantNutritionLine",assistantOnionBubble:"prototype-module__jd9mEq__assistantOnionBubble",assistantPickupBubble:"prototype-module__jd9mEq__assistantPickupBubble",assistantPickupCarrier:"prototype-module__jd9mEq__assistantPickupCarrier",assistantPreferenceBubble:"prototype-module__jd9mEq__assistantPreferenceBubble",assistantPreferenceBubbleText:"prototype-module__jd9mEq__assistantPreferenceBubbleText",assistantPreferenceFlow:"prototype-module__jd9mEq__assistantPreferenceFlow",assistantPreferenceMessage:"prototype-module__jd9mEq__assistantPreferenceMessage",assistantPreferenceSlot:"prototype-module__jd9mEq__assistantPreferenceSlot",assistantPreferenceSlotFinal:"prototype-module__jd9mEq__assistantPreferenceSlotFinal",assistantPreferences:"prototype-module__jd9mEq__assistantPreferences",assistantProofStage:"prototype-module__jd9mEq__assistantProofStage",assistantProteinBubble:"prototype-module__jd9mEq__assistantProteinBubble",assistantProteinPlaceholder:"prototype-module__jd9mEq__assistantProteinPlaceholder",assistantReceivedPreference:"prototype-module__jd9mEq__assistantReceivedPreference",assistantTransferredPlaceholder:"prototype-module__jd9mEq__assistantTransferredPlaceholder",assistantValueChange:"prototype-module__jd9mEq__assistantValueChange",assistantValueOriginal:"prototype-module__jd9mEq__assistantValueOriginal",assistantValueReplacement:"prototype-module__jd9mEq__assistantValueReplacement",capturedIngredient:"prototype-module__jd9mEq__capturedIngredient",capturedIngredientCompact:"prototype-module__jd9mEq__capturedIngredientCompact",closingActionButton:"prototype-module__jd9mEq__closingActionButton",closingCopy:"prototype-module__jd9mEq__closingCopy",closingSection:"prototype-module__jd9mEq__closingSection",closingWaveCanvas:"prototype-module__jd9mEq__closingWaveCanvas",closingWaveContent:"prototype-module__jd9mEq__closingWaveContent",cookIntroCopy:"prototype-module__jd9mEq__cookIntroCopy",cookIntroGrid:"prototype-module__jd9mEq__cookIntroGrid",cookMobileLine:"prototype-module__jd9mEq__cookMobileLine",cookSection:"prototype-module__jd9mEq__cookSection",cookSectionInner:"prototype-module__jd9mEq__cookSectionInner",featurePair:"prototype-module__jd9mEq__featurePair",featureSection:"prototype-module__jd9mEq__featureSection",featureSectionIngredient:"prototype-module__jd9mEq__featureSectionIngredient",flourParenthesis:"prototype-module__jd9mEq__flourParenthesis",handsFreeFoodie:"prototype-module__jd9mEq__handsFreeFoodie",handsFreeFoodieMask:"prototype-module__jd9mEq__handsFreeFoodieMask",handsFreeFoodieReveal:"prototype-module__jd9mEq__handsFreeFoodieReveal",handsFreeHeroFrame:"prototype-module__jd9mEq__handsFreeHeroFrame",handsFreeIllustration:"prototype-module__jd9mEq__handsFreeIllustration",handsFreeMeasurement:"prototype-module__jd9mEq__handsFreeMeasurement",handsFreePhone:"prototype-module__jd9mEq__handsFreePhone",handsFreeProof:"prototype-module__jd9mEq__handsFreeProof",handsFreeScreen:"prototype-module__jd9mEq__handsFreeScreen",handsFreeStage:"prototype-module__jd9mEq__handsFreeStage",handsFreeVoicePill:"prototype-module__jd9mEq__handsFreeVoicePill",handsFreeVoiceWave:"prototype-module__jd9mEq__handsFreeVoiceWave","hero-save-highlight":"prototype-module__jd9mEq__hero-save-highlight","hero-understanding-cursor":"prototype-module__jd9mEq__hero-understanding-cursor","hero-understanding-shimmer"
10:"prototype-module__jd9mEq__hero-understanding-shimmer",heroActionGroup:"prototype-module__jd9mEq__heroActionGroup",heroCanvas:"prototype-module__jd9mEq__heroCanvas",heroFoodieCrop:"prototype-module__jd9mEq__heroFoodieCrop",heroFoodieFrame:"prototype-module__jd9mEq__heroFoodieFrame",heroFoodieStack:"prototype-module__jd9mEq__heroFoodieStack",heroHeading:"prototype-module__jd9mEq__heroHeading",heroIntroCopy:"prototype-module__jd9mEq__heroIntroCopy",heroIntroLayout:"prototype-module__jd9mEq__heroIntroLayout",heroIntroSection:"prototype-module__jd9mEq__heroIntroSection",heroPhoneToTable:"prototype-module__jd9mEq__heroPhoneToTable",heroPromiseHeading:"prototype-module__jd9mEq__heroPromiseHeading",heroSaveBookmark:"prototype-module__jd9mEq__heroSaveBookmark",heroSaveHighlight:"prototype-module__jd9mEq__heroSaveHighlight",heroSaveHighlightStroke:"prototype-module__jd9mEq__heroSaveHighlightStroke",heroSavePhrase:"prototype-module__jd9mEq__heroSavePhrase",heroStage:"prototype-module__jd9mEq__heroStage",heroSubtitle:"prototype-module__jd9mEq__heroSubtitle",heroUnderstandingCursor:"prototype-module__jd9mEq__heroUnderstandingCursor",heroUnderstandingMeasure:"prototype-module__jd9mEq__heroUnderstandingMeasure",heroUnderstandingPixel:"prototype-module__jd9mEq__heroUnderstandingPixel",heroUnderstandingShimmer:"prototype-module__jd9mEq__heroUnderstandingShimmer",heroUnderstandingShimmerText:"prototype-module__jd9mEq__heroUnderstandingShimmerText",heroUnderstandingThinkingSlot:"prototype-module__jd9mEq__heroUnderstandingThinkingSlot",heroUnderstandingTypedText:"prototype-module__jd9mEq__heroUnderstandingTypedText",heroUnderstandingWord:"prototype-module__jd9mEq__heroUnderstandingWord","ingredient-lab-flow":"prototype-module__jd9mEq__ingredient-lab-flow","ingredient-search-cursor":"prototype-module__jd9mEq__ingredient-search-cursor",ingredientLab:"prototype-module__jd9mEq__ingredientLab",ingredientLabArtwork:"prototype-module__jd9mEq__ingredientLabArtwork",ingredientLabGrid:"prototype-module__jd9mEq__ingredientLabGrid",ingredientLabRailArtwork:"prototype-module__jd9mEq__ingredientLabRailArtwork",ingredientLabRailSection:"prototype-module__jd9mEq__ingredientLabRailSection",ingredientLabRailTrack:"prototype-module__jd9mEq__ingredientLabRailTrack",ingredientLabRailTrackPaused:"prototype-module__jd9mEq__ingredientLabRailTrackPaused",ingredientLabRailViewport:"prototype-module__jd9mEq__ingredientLabRailViewport",ingredientLabSizeRow:"prototype-module__jd9mEq__ingredientLabSizeRow",ingredientLabSizeSample:"prototype-module__jd9mEq__ingredientLabSizeSample",ingredientLabSubject:"prototype-module__jd9mEq__ingredientLabSubject",ingredientLabSubjectList:"prototype-module__jd9mEq__ingredientLabSubjectList",ingredientLabSwitcher:"prototype-module__jd9mEq__ingredientLabSwitcher",ingredientLabSwitcherDivider:"prototype-module__jd9mEq__ingredientLabSwitcherDivider",ingredientLabSwitcherLink:"prototype-module__jd9mEq__ingredientLabSwitcherLink",ingredientLabSwitcherLinkActive:"prototype-module__jd9mEq__ingredientLabSwitcherLinkActive",ingredientLabVariant:"prototype-module__jd9mEq__ingredientLabVariant",ingredientLabVariantHeading:"prototype-module__jd9mEq__ingredientLabVariantHeading",ingredientLabVariantNumber:"prototype-module__jd9mEq__ingredientLabVariantNumber",ingredientProofCard:"prototype-module__jd9mEq__ingredientProofCard",ingredientProofGridCompact:"prototype-module__jd9mEq__ingredientProofGridCompact",ingredientRecipeCard:"prototype-module__jd9mEq__ingredientRecipeCard",ingredientRecipeGrid:"prototype-module__jd9mEq__ingredientRecipeGrid",ingredientRecipeRules:"prototype-module__jd9mEq__ingredientRecipeRules",ingredientRecipeSourceIcon:"prototype-module__jd9mEq__ingredientRecipeSourceIcon",ingredientRecipeWording:"prototype-module__jd9mEq__ingredientRecipeWording",ingredientRecognitionIndicator:"prototype-module__jd9mEq__ingredientRecognitionIndicator",ingredientRecognitionInput:"prototype-module__jd9mEq__ingredientRecognitionInput",ingredientRecognitionPaper:"prototype-module__jd9mEq__ingredientRecognitionPaper",ingredientRecognitionProof:"prototype-module__jd9mEq__ingredientRecognitionProof",ingredientRecognitionStep:"prototype-module__jd9mEq__ingredientRecognitionStep",ingredientRecognitionSteps:"prototype-module__jd9mEq__ingredientRecognitionSteps",ingredientResultsCountCompact:"prototype-module__jd9mEq__ingredientResultsCountCompact",ingredientResultsCountExpanded:"prototype-module__jd9mEq__ingredientResultsCountExpanded",ingredientSearchCursor:"prototype-module__jd9mEq__ingredientSearchCursor",inputRailViewport:"prototype-module__jd9mEq__inputRailViewport",islandEquals:"prototype-module__jd9mEq__islandEquals",
10islandIndicatorSlot:"prototype-module__jd9mEq__islandIndicatorSlot",islandSquiggleArrow:"prototype-module__jd9mEq__islandSquiggleArrow",islandSquiggleStroke:"prototype-module__jd9mEq__islandSquiggleStroke",islandText:"prototype-module__jd9mEq__islandText",measureGroup:"prototype-module__jd9mEq__measureGroup",measureParen:"prototype-module__jd9mEq__measureParen",measureParenLeft:"prototype-module__jd9mEq__measureParenLeft",measureParenRight:"prototype-module__jd9mEq__measureParenRight",measureResult:"prototype-module__jd9mEq__measureResult",measureSlot:"prototype-module__jd9mEq__measureSlot","output-ingredient-pop":"prototype-module__jd9mEq__output-ingredient-pop","output-ingredient-spin":"prototype-module__jd9mEq__output-ingredient-spin","output-ingredient-travel":"prototype-module__jd9mEq__output-ingredient-travel",outputIngredientImage:"prototype-module__jd9mEq__outputIngredientImage",outputIngredientPop:"prototype-module__jd9mEq__outputIngredientPop",outputIngredientSlot:"prototype-module__jd9mEq__outputIngredientSlot",outputIngredientTilt:"prototype-module__jd9mEq__outputIngredientTilt",outputIngredientTrack:"prototype-module__jd9mEq__outputIngredientTrack",outputIngredientTrackPaused:"prototype-module__jd9mEq__outputIngredientTrackPaused",outputIngredientTravel:"prototype-module__jd9mEq__outputIngredientTravel",outputRailViewport:"prototype-module__jd9mEq__outputRailViewport",phoneGlow:"prototype-module__jd9mEq__phoneGlow",proofStage:"prototype-module__jd9mEq__proofStage",proofStageCompact:"prototype-module__jd9mEq__proofStageCompact",prototypeRoot:"prototype-module__jd9mEq__prototypeRoot",reducedMotion:"prototype-module__jd9mEq__reducedMotion",rigatoniSizing:"prototype-module__jd9mEq__rigatoniSizing","source-icon-absorb":"prototype-module__jd9mEq__source-icon-absorb",sourceIconFacebook:"prototype-module__jd9mEq__sourceIconFacebook",sourceIconInstagram:"prototype-module__jd9mEq__sourceIconInstagram",sourceIconNotes:"prototype-module__jd9mEq__sourceIconNotes",sourceIconPhotos:"prototype-module__jd9mEq__sourceIconPhotos",sourceIconTikTok:"prototype-module__jd9mEq__sourceIconTikTok",sourceIconTile:"prototype-module__jd9mEq__sourceIconTile",sourceIconYoutube:"prototype-module__jd9mEq__sourceIconYoutube",sourceRibbonAnimated:"prototype-module__jd9mEq__sourceRibbonAnimated",sourceRibbonStatic:"prototype-module__jd9mEq__sourceRibbonStatic",sourceRibbonSvg:"prototype-module__jd9mEq__sourceRibbonSvg",sourceRibbonText:"prototype-module__jd9mEq__sourceRibbonText",sourceWaveBackground:"prototype-module__jd9mEq__sourceWaveBackground",sourceWaveBackgroundMobile:"prototype-module__jd9mEq__sourceWaveBackgroundMobile",sourceWaveBackgroundStandard:"prototype-module__jd9mEq__sourceWaveBackgroundStandard",sourceWaveBackgroundUltrawide:"prototype-module__jd9mEq__sourceWaveBackgroundUltrawide",sourceWaveBand:"prototype-module__jd9mEq__sourceWaveBand",sourceWaveCanvas:"prototype-module__jd9mEq__sourceWaveCanvas",sourceWaveHeadingWrap:"prototype-module__jd9mEq__sourceWaveHeadingWrap",sourceWaveItem:"prototype-module__jd9mEq__sourceWaveItem",sourceWaveList:"prototype-module__jd9mEq__sourceWaveList",sourceWavePhoneAspectCorrection:"prototype-module__jd9mEq__sourceWavePhoneAspectCorrection",sourceWavePhoneGeometryCorrection:"prototype-module__jd9mEq__sourceWavePhoneGeometryCorrection",sourceWavePhoneLayer:"prototype-module__jd9mEq__sourceWavePhoneLayer",sourceWavePhoneMotion:"prototype-module__jd9mEq__sourceWavePhoneMotion",sourceWavePhoneTitle:"prototype-module__jd9mEq__sourceWavePhoneTitle",sourceWaveRecipeCard:"prototype-module__jd9mEq__sourceWaveRecipeCard",sourceWaveRibbon:"prototype-module__jd9mEq__sourceWaveRibbon",sourceWaveRibbonBurgundy:"prototype-module__jd9mEq__sourceWaveRibbonBurgundy",sourceWaveRibbonOrange:"prototype-module__jd9mEq__sourceWaveRibbonOrange",sourceWaveSection:"prototype-module__jd9mEq__sourceWaveSection",sourceWaveSourceMotion:"prototype-module__jd9mEq__sourceWaveSourceMotion",staggeredSubfeature:"prototype-module__jd9mEq__staggeredSubfeature",staggeredSubfeatureCopy:"prototype-module__jd9mEq__staggeredSubfeatureCopy",staggeredSubfeatureGrid:"prototype-module__jd9mEq__staggeredSubfeatureGrid",staggeredSubfeatureStepFour:"prototype-module__jd9mEq__staggeredSubfeatureStepFour",staggeredSubfeatureStepOne:"prototype-module__jd9mEq__staggeredSubfeatureStepOne",staggeredSubfeatureStepThree:"prototype-module__jd9mEq__staggeredSubfeatureStepThree",staggeredSubfeatureStepTwo:"prototype-module__jd9mEq__staggeredSubfeatureStepTwo",staggeredSubfeatureVisual:"prototype-module__jd9mEq__staggeredSubfeatureVisual",thoughtIsland:"prototype-module__jd9mEq__thoughtIsland",thoughtMeasure:"prototype-module__jd9mEq__thoughtMeasure",thoughtSequence:"prototype-module__jd9mEq__thoughtSequence",thoughtStack:"prototype-module__jd9mEq__thoughtStack",understandingSection:"prototype-module__jd9mEq__understandingSection","voice-wave":"prototype-module__jd9mEq__voice-wave",voiceBar:"prototype-module__jd9mEq__voiceBar"})},706482,e=>{"use strict";var t=e.i(843476),o=e.i(271645),r=(e,t,o,r,i,n,a,s)=>{let d=document.documentElement,u=["light","dark"];function _(t){var o;
10(Array.isArray(e)?e:[e]).forEach(e=>{let o="class"===e,r=o&&n?i.map(e=>n[e]||e):i;o?(d.classList.remove(...r),d.classList.add(n&&n[t]?n[t]:t)):d.setAttribute(e,t)}),o=t,s&&u.includes(o)&&(d.style.colorScheme=o)}if(r)_(r);else try{let e=localStorage.getItem(t)||o,r=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;_(r)}catch(e){}},i=o.createContext(void 0),n={setTheme:e=>{},themes:[]};o.memo(({forcedTheme:e,storageKey:t,attribute:i,enableSystem:n,enableColorScheme:a,defaultTheme:s,value:d,themes:u,nonce:_,scriptProps:p})=>{let l=JSON.stringify([i,t,s,e,u,d,n,a]).slice(1,-1);return o.createElement("script",{...p,suppressHydrationWarning:!0,nonce:"u"<typeof window?_:"",dangerouslySetInnerHTML:{__html:`(${r.toString()})(${l})`}})});var a=e.i(846696);let s={"--normal-bg":"#ffffff","--normal-text":"#6c3f18","--normal-border":"rgba(108, 63, 24, 0.18)","--success-bg":"#ffffff","--success-text":"#6c3f18","--success-border":"rgba(234, 96, 47, 0.32)","--error-bg":"#ffffff","--error-text":"#6c3f18","--error-border":"rgba(220, 38, 38, 0.32)"};e.s(["Toaster",0,({...e})=>{var r;let{theme:d="system"}=null!=(r=o.useContext(i))?r:n,{richColors:u,toastOptions:_,style:p,...l}=e;return(0,t.jsx)(a.Toaster,{theme:d,className:"toaster group",style:{...s,...p},toastOptions:{classNames:{icon:"[&_svg]:fill-foodie-orange [&_svg]:text-foodie-orange data-[type=error]:[&_svg]:fill-red-600 data-[type=error]:[&_svg]:text-red-600",description:"text-foodie-brown/70",actionButton:"!bg-foodie-orange !text-white hover:!bg-foodie-orange/90",cancelButton:"!bg-foodie-light-brown !text-foodie-brown hover:!bg-foodie-light-brown/90"},..._},...l})}],706482)},431343,e=>{"use strict";let t=(0,e.i(475254).default)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);e.s(["Play",0,t],431343)},853010,e=>{"use strict";var t=e.i(271645);function o(){return!1}function r(e){let r=(0,t.useCallback)(t=>{let o=window.matchMedia(e);return"function"==typeof o.addEventListener?(o.addEventListener("change",t),()=>o.removeEventListener("change",t)):(o.addListener(t),()=>o.removeListener(t))},[e]),i=(0,t.useCallback)(()=>window.matchMedia(e).matches,[e]);return(0,t.useSyncExternalStore)(r,i,o)}e.s(["useIsMobile",0,function(){return r("(max-width: 767px)")},"useMediaQueryMatch",0,r])},531278,e=>{"use strict";let t=(0,e.i(475254).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],531278)},954616,e=>{"use strict";var t=e.i(271645),o=e.i(114272),r=e.i(540143),i=e.i(915823),n=e.i(619273),a=class extends i.Subscribable{#e;#t=void 0;#o;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,n.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,n.hashKey)(t.mutationKey)!==(0,n.hashKey)(this.options.mutationKey)?this.reset():this.#o?.state.status==="pending"&&this.#o.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#o?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#n(e)}getCurrentResult(){return this.#t}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#i(),this.#n()}mutate(e,t){return this.#r=t,this.#o?.removeObserver(this),this.#o=this.#e.getMutationCache().build(this.#e,this.options),this.#o.addObserver(this),this.#o.execute(e)}#i(){let e=this.#o?.state??(0,o.getDefaultState)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#n(e){r.notifyManager.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,o=this.#t.context;e?.type==="success"?(this.#r.onSuccess?.(e.data,t,o),this.#r.onSettled?.(e.data,null,t,o)):e?.type==="error"&&(this.#r.onError?.(e.error,t,o),this.#r.onSettled?.(void 0,e.error,t,o))}
10this.listeners.forEach(e=>{e(this.#t)})})}},s=e.i(912598),d=e.i(811076);e.s(["useMutation",0,function(e,o){let i=(0,s.useQueryClient)(o),[n]=t.useState(()=>new a(i,e));t.useEffect(()=>{n.setOptions(e)},[n,e]);let u=t.useSyncExternalStore(t.useCallback(e=>n.subscribe(r.notifyManager.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),_=t.useCallback((e,t)=>{n.mutate(e,t).catch(d.noop)},[n]);if(u.error&&(0,d.shouldThrowError)(n.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:_,mutateAsync:u.mutate}}],954616)},215652,631315,e=>{"use strict";var t=e.i(843476),o=e.i(271645),r=e.i(853010);function i(e,t,o){let r=document.getElementById(t);e?r||((r=document.createElement("div")).id=t,r.style.cssText=`position:absolute;left:0;top:0;right:0;bottom:0;z-index:45;pointer-events:none;background:${o}`,document.body.appendChild(r)):r?.remove()}function n({sheetRef:e,enabled:t,washId:r,washColor:a}){(0,o.useEffect)(()=>{if(!t)return;let o=window.visualViewport;if(!o)return;let n=()=>{let t=e.current;if(!t)return;let{height:r,paddingBottom:i}=function({innerHeight:e,viewportHeight:t,offsetTop:o}){let r=e-t;if(r<=60)return{height:"",paddingBottom:""};let i=Math.min(Math.max(o,0),r);return{height:`${e-i}px`,paddingBottom:`${r-i}px`}}({innerHeight:window.innerHeight,viewportHeight:o.height,offsetTop:o.offsetTop});t.style.height=r,t.style.maxHeight=r,t.style.paddingBottom=i};return n(),i(!0,r,a),o.addEventListener("resize",n),o.addEventListener("scroll",n),()=>{o.removeEventListener("resize",n),o.removeEventListener("scroll",n),i(!1,r,a);let t=e.current;t&&(t.style.height="",t.style.maxHeight="",t.style.paddingBottom="")}},[t,e,r,a])}e.s(["useMobileSheetKeyboardSync",0,n],631315);var a=e.i(552105),s=e.i(991279);e.s(["default",0,function({open:e,onOpenChange:i,title:d,children:u,footer:_,mobileOverlayClassName:p}){let l=(0,r.useMediaQueryMatch)("(min-width: 768px)"),m=o.default.useRef(null);return(n({sheetRef:m,enabled:e&&!l,washId:"responsive-dialog-page-wash",washColor:"rgba(255,255,255,0.92)"}),l)?(0,t.jsx)(a.Dialog,{open:e,onOpenChange:i,children:(0,t.jsxs)(a.DialogContent,{children:[(0,t.jsx)(a.DialogHeader,{children:(0,t.jsx)(a.DialogTitle,{children:d})}),u,_&&(0,t.jsx)(a.DialogFooter,{children:_})]})}):(0,t.jsx)(s.Drawer,{open:e,onOpenChange:i,repositionInputs:!1,children:(0,t.jsxs)(s.DrawerContent,{ref:m,overlayClassName:p,className:"focus:outline-none focus-visible:outline-none",onOpenAutoFocus:e=>e.preventDefault(),children:[(0,t.jsx)(s.DrawerHeader,{children:(0,t.jsx)(s.DrawerTitle,{children:d})}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 pb-10",children:u}),_&&(0,t.jsx)(s.DrawerFooter,{className:"px-4",children:_})]})})}],215652)},612891,e=>{"use strict";var t=e.i(843476),o=e.i(271645),r=e.i(618566),i=e.i(531278),n=e.i(846696),a=e.i(954616),s=e.i(912598),d=e.i(195399),u=e.i(868127);let _="108, 63, 24",p="#1E88F5";function l({size:e}){return(0,t.jsx)("svg",{width:e,height:e,viewBox:"0 0 13 20","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8.2 20V12.1H11.1L11.6 8.6H8.2V6.4C8.2 4.9 9 4 10.5 4H12.7V0.2C11.7 0.1 10.6 0 9.4 0C5.7 0 3.8 2.3 3.8 5.9V8.6H0.7V12.1H3.8V20Z",fill:"#FFFFFF"})})}function m({size:e}){return(0,t.jsxs)("svg",{width:e,height:e,viewBox:"-1.06 -1.06 2.12 2.12","aria-hidden":"true",children:[(0,t.jsx)("circle",{r:"1",fill:p}),(0,t.jsx)("polygon",{points:"-0.66,0 0,-0.23 0.66,0 0,0.23",transform:"rotate(-45)",fill:"#FFFFFF",stroke:"#FFFFFF",strokeWidth:"0.06",strokeLinejoin:"round"}),(0,t.jsx)("circle",{r:"0.11",fill:p})]})}let c={tiktok:"#111111",instagram:null,facebook:"#1877F2",youtube:"#FF0033",safari:"#FFFFFF"};function h({mark:e,size:o=48,style:r}){let i=o/44,n=10*o/44,a=o-2*("safari"===e?.6*n:n),s=[`0 ${6.4*i}px ${12.8*i}px rgba(${_}, 0.14)`,`0 ${1.6*i}px ${3.2*i}px rgba(${_}, 0.1)`];return"instagram"!==e&&s.unshift(`inset 0 0 0 1px rgba(${_}, 0.12)`),(0,t.jsx)("div",{"aria-hidden":"true","data-source-mark":e,className:"flex shrink-0 items-center justify-center overflow-hidden",style:{width:o,height:o,borderRadius:.22*o,background:c[e]??`radial-gradient(circle ${.72*o}px at 68% 68%, #FFDC80 0%, #FFDC80 15%, rgba(255, 220, 128, 0) 36%), radial-gradient(circle ${1.17*o}px at 28% 92%, #F77737 0%, #F77737 28%, rgba(247, 119, 55, 0) 55%), linear-gradient(135deg, #833AB4 8%, #C13584 45%, #FD1D1D 72%, #FCB045 100%)`,boxShadow:s.join(", "),...r},children:function(e,o){switch(e){case"tiktok":return(0,t.jsx)(u.SiTiktok,{size:o,color:"#FFFFFF"});case"instagram":return(0,t.jsx)(u.SiInstagram,{size:o,color:"#FFFFFF"});case"youtube":return(0,t.jsx)(u.SiYoutube,{size:o,color:"#FFFFFF"});case"facebook":return(0,t.jsx)(l,{size:o});case"safari":return(0,t.jsx)(m,{size:o})}}(e,a)})}let g=[{mark:"tiktok",rotation:-6,yOffset:4},{mark:"instagram",rotation:4,yOffset:-3},{mark:"facebook",rotation:-3,yOffset:3},{mark:"youtube",rotation:5,yOffset:-4},{mark:"safari",rotation:-4,yOffset:2}];function y(){return(0,t.jsx)("div",{role:"img","aria-label":"TikTok, Instagram, Facebook, YouTube, and Safari",className:"flex items-center justify-center gap-[14px] py-3",children:g.map(({mark:e,rotation:o,yOffset:r})=>(0,t.jsx)(h,{mark:e,size:48,style:{transform:`translateY(${r}px) rotate(${o}deg)`}},e))})}var f=e.i(278669);e.s(["default",0,function({onClose:e,onNavigate:u,onProcessingStart:_,initialURL:p}){let l,m=(0,r.useRouter)(),[c,h]=(0,o.useState)(p??""),g=(l=(0,s.useQueryClient)(),(0,a.useMutation)({mutationFn:async e=>{let t=await fetch("/api/user-recipes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),o=await t.json();if(!t.ok){let e=Error(o.error||"Failed to import recipe");throw e.data=o,e.status=t.status,e}return o},onSuccess:()=>
10{l.invalidateQueries({queryKey:["user-recipes"]}),l.invalidateQueries({queryKey:d.ACTIVE_RECIPE_IMPORT_QUERY_KEY})}}));(0,o.useEffect)(()=>{p&&h(p)},[p]);let b=c.trim(),j=function(e){try{let t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}}(b),E=b.length>0&&!j,q=async()=>{let e;try{e=await navigator.clipboard.readText()}catch(e){console.error("Clipboard read failed:",e),(0,f.track)("Recipe Import URL Pasted",{source_type:"url",result:"blocked"}),n.toast.error("Couldn't read your clipboard",{description:"Paste the recipe URL into the field instead."});return}let t=e.trim().split(/\r?\n/)[0].trim();((0,f.track)("Recipe Import URL Pasted",{source_type:"url",result:t?"filled":"empty"}),t)?h(t):n.toast.error("Nothing to paste",{description:"Copy a recipe link first, then try again."})},v=async()=>{if(j)try{let t=await g.mutateAsync({source_type:"url",source_url:b});(0,f.track)("Recipe Import Started",{source_type:"url",recipe_id:t.recipe.id,source_url_domain:new URL(b).hostname}),e(),t.processing&&_?_(t.recipe.id,t.workflow_run_id,t.preview??null):(u??m.push)(t.redirect_to)}catch(o){let t=o?.data;if(o?.status===409&&t?.existing_recipe_id){let o=["pending","processing","failed"].includes(t.existing_status)?"processing":"edit";e(),(u??m.push)(`/my-recipes/${o}/${t.existing_recipe_id}`);return}if(t?.code&&["BLOCKED","TOO_LARGE","NO_RECIPE"].includes(t.code))return void n.toast.error(o.message,{description:"Try copying the recipe text and using the Text tab instead."});n.toast.error(o instanceof Error?o.message:"Failed to import recipe")}};return(0,t.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,t.jsxs)("div",{className:"space-y-4 pb-4",children:[(0,t.jsx)(y,{}),(0,t.jsx)("p",{className:"text-foodie-brown/70 text-sm text-center",children:"Paste a recipe URL and we'll import it for you. Supports TikTok, Instagram, YouTube, Facebook, and any website with a recipe."}),(0,t.jsx)("input",{type:"url",value:c,onChange:e=>h(e.target.value),placeholder:"https://example.com/recipe",disabled:g.isPending,className:"w-full rounded-lg border border-foodie-brown/15 bg-foodie-brown/[0.03] px-4 py-3 text-base sm:text-sm text-foodie-brown placeholder:text-foodie-brown/30 focus:outline-none focus:ring-0 focus:border-transparent transition-colors disabled:opacity-50"}),(0,t.jsx)("p",{"aria-live":"polite",className:"min-h-4 text-xs text-foodie-brown/40",children:E?"Please enter a valid URL starting with http:// or https://":""})]}),(0,t.jsx)("button",{onClick:v,disabled:!j||g.isPending,className:"w-full px-6 py-3 mt-auto bg-foodie-orange text-white rounded-md font-semibold hover:bg-foodie-orange/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:g.isPending?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Loader2,{className:"w-4 h-4 animate-spin"}),"Importing recipe..."]}):"Import Recipe"}),(0,t.jsx)("button",{type:"button",onClick:q,disabled:g.isPending,className:"w-full min-h-11 mt-2 text-sm font-semibold text-foodie-orange hover:text-foodie-dark-orange transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Paste from Clipboard"})]})}],612891)}]); 11 12//# debugId=c7cf5e1a-b3c0-197c-98d9-2f231d9d5c4e
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.