1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7714],{70702:function(e,n,t){"use strict";var s=t(57437);t(2265);var a=t(36760),i=t.n(a),o=t(60359);let l=e=>e.startsWith("http://")||e.startsWith("https://")||e.startsWith("mailto:")||e.startsWith("tel:"),r=(e,n,t,s,a,o,l)=>i()("cui-link","cui-link-".concat(e),"cui-link-".concat(e,"-").concat(n),"cui-link-".concat(t),s&&"cui-link-underline",a&&"cui-link-".concat(e,"-disabled"),o&&"cui-link-".concat(e,"-").concat(n,"-loading"),l);n.default=e=>{let{href:n,fill:t="solid",size:a="medium",color:i="primary",showUnderline:c=!1,disabled:u=!1,loading:d=!1,children:h,className:f,target:m="_self",externalLink:g,prefetch:p,...v}=e,x=r(i,t,a,c,u,d,f),_=null!=g?g:"string"==typeof n&&l(n),b={className:x,onClick:e=>{e.currentTarget.blur()},href:n,target:m,...v};return _?(0,s.jsx)("a",{...b,children:h}):(0,s.jsx)(o.default,{...b,prefetch:p,children:h})}},90503:function(e,n,t){"use strict";var s=t(57437),a=t(36760),i=t.n(a),o=t(70702),l=t(11472),r=t(41001),c=t(45589);n.default=e=>{let{className:n,withArrow:t,color:a="light",fill:u="outline",size:d="large",linkClassName:h,returnTo:f,useAnonCartLoginReturnTo:m=!1}=e,{isTreatment:g}=(0,c.NT)(),{authUrl:p,buttonText:v,isLoading:x,handleClick:_}=(0,r.B)({module:"login-button",returnTo:m?g?null!=f?f:"/our-menu":void 0:f});return(0,s.jsx)("div",{className:"login-link-cui ".concat(n),children:(0,s.jsx)(o.default,{size:d,color:a,fill:u,href:p,prefetch:!1,className:i()("inline-flex min-w-[110px] items-center justify-center focus:underline",h,{"pointer-events-none":x}),externalLink:!0,"data-testid":"login-button-cui",onClick:_,children:x?(0,s.jsx)(l.O,{className:"h-5 w-full"}):(0,s.jsxs)(s.Fragment,{children:[v,t&&(0,s.jsx)("img",{className:"arrow-icon",src:"/assets/icons/btn-next-icon.svg",alt:""})]})})})}},97714:function(e,n,t){"use strict";t.d(n,{default:function(){return _}});var s=t(57437),a=t(2265),i=t(36760),o=t.n(i),l=t(73170),r=t(90503),c=t(65595),u=t(77234),d=t(37325),h=t.n(d),f=function(e){let{name:n}=e,{Logo:t,width:a}=(0,u.$q)(n);return(0,s.jsxs)("div",{className:h().logo_partnership,children:[(0,s.jsx)("div",{className:h().logo_partnership__icon,style:{width:"".concat(a,"px")},children:(0,s.jsx)(t,{})}),(0,s.jsx)("p",{className:h().logo_partnership__text,children:"Powered by"}),(0,s.jsx)("div",{className:h().logo_partnership__cui_logo,children:(0,s.jsx)(c.Z,{})})]})},m=t(53466),g=t(29759),p=t(43159),v=t(47126);let x=e=>{let{showMenu:n,navBarButtonClasses:t,toggleModal:a,showlogin:i,urlParams:o,children:u,partner:d,partnerStyles:h,promoText:m,zipPicker:g}=e;return(0,s.jsxs)("div",{className:"container",style:{background:null==h?void 0:h.background},children:[(0,s.jsxs)("div",{className:"container-a11y",children:[(0,s.jsxs)("div",{className:"container-menu-logo",children:[(0,s.jsx)("button",{"aria-label":"Toggle navigation menu","aria-expanded":n,"aria-controls":"modal-nav-menu-cui",tabIndex:0,className:t,onClick:a}),d&&h?(0,s.jsx)(f,{name:d}):(0,s.jsx)(c.Z,{"aria-hidden":"true"})]}),i&&(0,s.jsx)(r.default,{})]}),(0,s.jsx)("div",{className:"container-inputzip",children:null!=g?g:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"rebrand lead promoText",children:m}),(0,s.jsx)(l.Z,{urlParams:o,className:"rebrand",ctaText:"Get Started"})]})}),u&&(0,s.jsx)("div",{className:"children-nav",children:u})]})};function _(e){let{urlParams:n,className:t,showlogin:i,withSticky:l,home:r,children:c,partner:d,withTransparentBg:h,withoutMenu:f,zipPicker:_}=e,{isAuthenticated:b}=(0,v.J)(),[j,k]=(0,a.useState)(!1),[N,y]=(0,a.useState)(!1),w=(0,u.$q)(d),{promoText:C}=(0,p.Es)(),T=o()("nav-icon mr-4 bg-transparent",{"menu-icon":!j,"close-icon":j}),L=()=>{k(!j)};(0,a.useEffect)(()=>{let e=()=>{y(window.scrollY>800)};return window.addEventListener("scroll",e),e(),()=>window.removeEventListener("scroll",e)},[]);let S={showMenu:j,navBarButtonClasses:T,toggleModal:L,showlogin:i,urlParams:n,children:c,partner:d,partnerStyles:w,promoText:C,zipPicker:_},E=e=>o()("navbar-menu-cui",{"open-navbar":j,"with-children":c,"no-sticky":!l,withTransparentBg:h},e);return(0,s.jsxs)("div",{"data-id":"navbar-menu-cui-section",children:[(0,s.jsx)("a",{href:"#main-content",className:"sr-only focu
1s:not-sr-only focus:absolute focus:left-4 focus:top-4 focus:z-50 focus:block focus:rounded focus:bg-white focus:p-2 focus:underline focus:shadow-md",children:"Skip to main content"}),(0,s.jsx)(m.Z,{className:"modal-nav-menu-cui",overlayClassName:"Overlay",isOpen:j,onRequestClose:L,setShowMenu:k,hasNavigation:!0,"aria-modal":"true","aria-label":"Main navigation menu",children:(0,s.jsx)(g.Z,{home:r,showMenu:j,toggleModal:L,isAuthenticated:b,setShowMenu:k,withoutMenu:f})}),l&&N&&(0,s.jsx)("div",{className:o()("navbarstickyEl-CUI",t),children:(0,s.jsx)("div",{className:"sticky-container fixed inset-x-0 top-0 z-50",children:(0,s.jsx)("div",{className:E(),children:(0,s.jsx)(x,{...S})})})}),(0,s.jsx)("div",{className:o()("navbarstickyEl-CUI",t),children:(0,s.jsx)("div",{className:E(),children:(0,s.jsx)(x,{...S})})})]})}},65595:function(e,n,t){"use strict";var s=t(57437),a=t(60359);n.Z=()=>(0,s.jsx)("div",{className:"flex w-full justify-center md:justify-start",children:(0,s.jsx)(a.default,{href:"/",children:(0,s.jsx)("div",{className:"a-brand",children:(0,s.jsx)("img",{className:"brand-logo cursor-pointer",alt:"CookUnity",src:"/assets/icons/cookunity-new-white.svg"})})})})},29759:function(e,n,t){"use strict";t.d(n,{Z:function(){return f}});var s=t(57437),a=t(2265);let i=[{label:"Our Menu",viewMoreLabel:"View Our Menu",href:"/our-menu",target:"_self"},{label:"How It Works",href:"/how-it-works",target:"_self"},{label:"Why CookUnity",href:"/why-cookunity",target:"_self"},{label:"Become a Chef",href:"/become-a-chef",target:"_self"},{label:"CookUnity for Business",href:"https://cookunity.com/business",target:"_self"},{label:"CookUnity for Healthcare",href:"https://www.cookunity.com/business/for-healthcare",target:"_self"}],o=i.slice(0,4);var l=t(65595),r=t(60359),c=t(90503),u=t(17206),d=t(1385);let h=(e,n)=>{(globalThis.dataLayer||[]).push({event:"sendToGA",eventAction:"navbar clicked",eventLabel:e,eventCategory:"navbar"}),d.Z.registerTrack("CTA Button Clicked",{cta_type:"button",cta_destination_name:e,cta_destination_url:n})};function f(e){let{showMenu:n,toggleModal:t,withoutMenu:d,setShowMenu:f,home:m}=e,{isCA:g}=(0,u.A)(),[p,v]=(0,a.useState)("");return(0,a.useEffect)(()=>{v(globalThis.location.pathname)},[]),(0,s.jsxs)("div",{className:"container",children:[(0,s.jsxs)("div",{className:"container-menu-logo",children:[(0,s.jsx)("button",{className:"nav-icon ".concat(n?"close-icon":"menu-icon"),onClick:()=>{f(!n)}}),(0,s.jsx)(l.Z,{})]}),(0,s.jsxs)("ul",{className:"col-md-3",children:[!d&&(g?o:i).map(e=>{let n=e.href===p;return(0,s.jsx)("li",{children:(0,s.jsx)(r.default,{onClick:()=>h(e.label,e.href),href:e.href,target:e.target,className:"rebrand nav-item ".concat(n?"selected":""),children:e.label})},e.label)}),!d&&(0,s.jsx)("li",{children:(0,s.jsx)(r.default,{href:m?"#common-questions-cui":"https://support.cookunity.com",onClick:()=>t(),className:"rebrand nav-item",children:"FAQs"})}),(0,s.jsx)("div",{className:"container-links",children:(0,s.jsx)(c.default,{})})]})]})}},11472:function(e,n,t){"use strict";t.d(n,{O:function(){return i}});var s=t(57437),a=t(95658);function i(e){let{className:n,...t}=e;return(0,s.jsx)("div",{"data-slot":"skeleton",className:(0,a.cn)("animate-pulse rounded-md bg-bluegray-10",n),...t})}},41001:function(e,n,t){"use strict";t.d(n,{B:function(){return u}});var s=t(47126),a=t(17206),i=t(7503),o=t(98333),l=t(72818),r=t(1385);let c="https://www.cookunity.com/";function u(e){let{module:n,returnTo:t}=e,{isCA:u}=(0,a.A)(),{toggles:d}=(0,o.c0)(),{isAuthenticated:h,isLoading:f}=(0,s.J)(),m=(0,i.G6)(),g=u?"CA":"US",p=!!(d.isLoginButtonAuthEnabled&&h),v=p?"".concat(c,"api/auth/logout?countryCode=").concat(g):function(e,n){let t=new URLSearchParams({countryCode:e});return n&&t.set("returnTo",n),"".concat(c,"api/auth/login?").concat(t.toString())}(g,t),x=async e=>{var t;!function(e){let{isLogout:n,destinationUrl:t,module:s}=e;null===r.Z||void 0===r.Z||r.Z.registerTrack(n?"Logout Button Clicked":"Login Button Clicked",{cta_destination_url:t,module:s})}({isLogout:p,destinationUrl:v,module:n});let s=!!(null==m?void 0:null===(t=m.session)||void 0===t?void 0:t.getSync());if(p&&m&&s){e.preventDefault();try{await m.session.revoke()}catch(e){l.b.error("Stytch session revoke failed during logout",{module:n},e instanceof Error?e:Error(String(e)))}finally{globalThis.location.href=v}}};return{authUrl:v,buttonText:p?"Log Out":"Log In",showLogout:p,isAuthenticated:h,isLoading:f,handleClick:x}}},37325:function(e){e.exports={logo_partnership:"logo-partnership_logo_partnership__SeB39",logo_partnership__icon:"logo-partnership_logo_partnership__icon__LYu22",logo_partnership__text:"logo-partnership_logo_partnership__text__3CUwk",logo_partnership__cui_logo:"logo-partnership_logo_partnership__cui_logo__nhEBv"}}}]); 2//# sourceMappingURL=7714-9e5100e8164f03e6.js.map
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.