1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34727],{16315:(e,t,a)=>{a.d(t,{g:()=>s});var r=a(95155),l=a(68364),o=a(27244);function s(e){let{priority:t=!1,className:a=""}=e,s=t?"eager":"lazy";return(0,r.jsxs)("span",{className:a?"portal-logo ".concat(a):"portal-logo","aria-label":"HappyKava logo",role:"img",children:[(0,r.jsx)("img",{src:o.default.src,alt:"",width:743,height:213,className:"portal-logo__image portal-logo__image--light","aria-hidden":"true",loading:s,decoding:"async"}),(0,r.jsx)("img",{src:l.default.src,alt:"",width:743,height:213,className:"portal-logo__image portal-logo__image--dark","aria-hidden":"true",loading:s,decoding:"async"})]})}},27244:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});let r={src:"/_next/static/media/app-header-v4-logo-light.3c211c9f.png",height:213,width:743,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAIVBMVEUAAAB6zx0AAAB3zBwAAAAAAAAECABVkBRyxx1ywRxJfRHjFS31AAAAC3RSTlN9Ykx0amY9bzxHcobds5cAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAaSURBVAiZY2BiZWNiZ2ZmZGBgYGDhYuTkAAAB/QA+a+47hwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:2}},33995:(e,t,a)=>{a.r(t),a.d(t,{PublicMarketingButton:()=>v,PublicMarketingChrome:()=>C,PublicOpenAppButton:()=>_,PublicStoreButton:()=>A,PublicStoreButtons:()=>y});var r=a(95155),l=a(52619),o=a.n(l),s=a(12115),n=a(59427),i=a(37494),c=a(65229),d=a(9540),h=a(20063),u=a(16315),b=a(87765),p=a(83973),m=a(68209),g=a(39420),f=a(82198);let x={primary:"marketing-button--primary bg-gradient-to-r from-emerald-400 to-teal-400 text-slate-900 shadow-[0_0_30px_rgba(16,185,129,0.3)] hover:shadow-[0_0_50px_rgba(16,185,129,0.5)] hover:scale-[1.02]",glass:"bg-white/60 dark:bg-white/5 backdrop-blur-xl border border-white/40 dark:border-white/10 text-slate-800 dark:text-white hover:bg-white/80 dark:hover:bg-white/10 hover:border-slate-300 dark:hover:border-white/20 hover:shadow-[0_0_20px_rgba(0,0,0,0.05)] dark:hover:shadow-[0_0_20px_rgba(255,255,255,0.05)]",outline:"bg-transparent text-emerald-600 dark:text-emerald-400 border border-emerald-500/50 hover:border-emerald-500 dark:hover:border-emerald-400 hover:bg-emerald-50 dark:hover:bg-emerald-500/10",ghost:"bg-transparent text-slate-600 dark:text-zinc-300 hover:text-slate-900 dark:hover:text-white hover:bg-slate-100 dark:hover:bg-white/5",dark:"bg-white text-slate-900 shadow-[0_0_30px_rgba(255,255,255,0.18)] hover:bg-emerald-50 hover:shadow-[0_0_40px_rgba(255,255,255,0.24)]"};function w(e){let{className:t=""}=e;return(0,r.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:t,children:(0,r.jsx)("path",{fill:"currentColor",d:"M16.4 12.5c.02 2.1 1.9 2.8 1.92 2.81-.02.05-.3 1.04-.99 2.06-.6.89-1.24 1.77-2.23 1.79-.96.02-1.27-.57-2.37-.57-1.1 0-1.44.55-2.35.59-.96.04-1.7-.98-2.31-1.86-1.26-1.82-2.22-5.13-.93-7.36.64-1.1 1.79-1.8 3.04-1.82.95-.02 1.85.64 2.37.64.52 0 1.51-.79 2.55-.67.44.02 1.68.18 2.48 1.36-.06.04-1.48.86-1.47 2.57ZM14.9 4.7c.5-.6.83-1.43.74-2.26-.72.03-1.6.48-2.12 1.07-.47.53-.88 1.38-.77 2.2.8.06 1.65-.41 2.15-1Z"})})}function k(e){let{className:t=""}=e;return(0,r.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:t,children:(0,r.jsx)("path",{fill:"currentColor",d:"M17.523 15.341l3.522 2.037c.362.209.566.603.566 1.025s-.204.816-.566 1.025l-7.906 4.566v-8.72l4.384-2.533zm-11.046 0l-4.384-2.533v8.72l7.906 4.566c.362.209.566-.201.566-.622 0-.422-.204-.816-.566-1.025l-3.522-2.037zm5.523-9.56l8.777 5.066-4.384 2.533-4.393-2.533-4.393 2.533-4.384-2.533 8.777-5.066z"})})}function v(e){let{children:t,href:a,onClick:l,variant:s="primary",className:n="",external:i=!1,analyticsEvent:c,analyticsPayload:d}=e,h=["inline-flex items-center justify-center rounded-full px-6 py-3 font-medium transition-all duration-300 focus:outline-none",x[s],n].filter(Boolean).join(" "),u=()=>{c&&(0,f.f)(c,null!=d?d:{}),null==l||l()};return a?i||a.startsWith("http")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("#")?(0,r.jsx)("a",{href:a,className:h,target:"_blank",rel:"noreferrer",onClick:u,children:t}):(0,r.jsx)(o(),{href:a,className:h,onClick:u,children:t}):(0,r.jsx)("button",{type:"button",className:h,onClick:u,children:t})}function A(e){let{store:t,analyticsPayload:a,className:l=""}=e,{resolvedTheme:o}=(0,p.Q)(),s="app-store"===t,n=s?b.od:b.JN;return(0,r.jsxs)("a",{href:n,target:"_blank",rel:"noreferrer",onClick:()=>(0,f.f)("public_marketing_store_click",{store:t,...a}),className:["homepage-store-pill inline-flex items-center justify-center gap-3 rounded-full px-8 py-4 text-base font-bold transition-all hover:scale-105 border",l].join(" "),style:"dark"===o?{backgroundColor:"#ffffff",borderColor:"rgba(255,255,255,0.10)",boxShadow:"0 0 30px rgba(255,255,255,0.2)",color:"#0f172a"}:{backgroundColor:"#0f172a",borderColor:"rgba(15,23,42,0.10)",boxShadow:"0 10px 30px rgba(15,23,42,0.18)",color:"#ffffff"},children:[(0,r.jsx)(s?w:k,{className:"h-5 w-5"}),s?"App Store":"Google Play"]})}function y(e){let{className:t="",analyticsPayload:a}=e;return(0,r.jsxs)("div",{className:["flex flex-col gap-4 sm:flex-row sm:flex-wrap",t].join(" "),children:[(0,r.jsx)(A,{store:"app-store",analyticsPayload:a}),(0,r.jsx)(A,{store:"google-play",analyticsPayload:a})]})}function _(e){let{path:t,fallbackHref:a,label:l="Open app",variant:o="glass",className:s="",analyticsPayload:n}=e;return(0,r.jsx)(v,{variant:o,className:s,analyticsEvent:"public_marketing_open_app_click",analyticsPayload:n,onClick:()=>{let e=function(e){let t=(null!=e?e:"").trim().replace(/^\//,"");return t.length>0?"happykava://".concat(t):"happykava://"}(t),r=window.setTimeout(()=>{window.location.href=a},700);window.location.href=e,window.setTimeout(()=>
1window.clearTimeout(r),1200)},children:l})}function j(){let{resolvedTheme:e,setPreference:t}=(0,p.Q)(),a="dark"===e;return(0,r.jsx)("button",{type:"button",onClick:()=>t(a?"light":"dark"),className:"rounded-full border border-slate-200 bg-white/60 p-2.5 text-slate-600 shadow-sm backdrop-blur-md transition-all hover:bg-white hover:text-slate-900 dark:border-white/10 dark:bg-white/5 dark:text-zinc-300 dark:shadow-none dark:hover:bg-white/10 dark:hover:text-white","aria-label":"Toggle Theme",children:a?(0,r.jsx)(n.A,{size:18}):(0,r.jsx)(i.A,{size:18})})}function N(e){let{href:t,label:a,section:l}=e;return(0,r.jsx)(o(),{href:t,className:"text-sm font-light text-slate-500 transition-colors hover:text-emerald-600 dark:text-zinc-500 dark:hover:text-emerald-400",onClick:()=>(0,f.f)("public_marketing_footer_click",{section:l,label:a.toLowerCase().replace(/\s+/g,"_"),href:t}),children:a})}function C(e){let{children:t}=e,a=(0,h.usePathname)(),{resolvedTheme:l}=(0,p.Q)(),n="dark"===l,[i,x]=(0,s.useState)(!1),[w,k]=(0,s.useState)(!1),[A,y]=(0,s.useState)({href:b.bw.login,label:"Log In"});(0,s.useEffect)(()=>{let e=()=>{k(window.scrollY>20)};return e(),window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,s.useEffect)(()=>{let e=!0;return async function(){let t=await (0,m.w)();if(!e||!t.user)return y({href:b.bw.login,label:"Log In"});let a="/manage";try{let r=await (0,g.listManagedBars)(t.user.id);if(!e)return;1===r.length&&(a="/manage/bars/".concat(r[0].id,"/dashboard"))}catch(e){console.warn("[Portal] Unable to load managed bars for nav",e)}e&&y({href:a,label:"Dashboard"})}(),()=>{e=!1}},[]);let _=[{href:b.bw.now,label:"Happening Now",analyticsLabel:"happening_now"},{href:b.bw.features,label:"Features",analyticsLabel:"features"},{href:b.bw.passportHub,label:"Passport",analyticsLabel:"passport"},{href:b.bw.bars,label:"For Bars",analyticsLabel:"for_bars"}];return(0,r.jsx)("div",{className:"".concat(n?"dark":""," homepage-exact"),"data-homepage-theme":l,children:(0,r.jsxs)("div",{className:"min-h-screen overflow-x-hidden font-sans text-slate-900 transition-colors duration-500 selection:bg-emerald-500/30 dark:text-zinc-100 ".concat(n?"bg-black":"bg-[#eef3fa]"),style:{width:"100vw",marginLeft:"calc(50% - 50vw)",marginRight:"calc(50% - 50vw)"},children:[(0,r.jsxs)("div",{className:"fixed inset-0 z-0 overflow-hidden pointer-events-none",children:[(0,r.jsx)("div",{className:"absolute left-[-10%] top-[-10%] h-[40vw] w-[40vw] rounded-full blur-[120px] transition-colors duration-1000",style:{background:n?"rgba(13, 148, 136, 0.22)":"rgba(110, 231, 183, 0.3)",mixBlendMode:n?"screen":"multiply"}}),(0,r.jsx)("div",{className:"absolute right-[-10%] top-[40%] h-[30vw] w-[30vw] rounded-full blur-[150px] transition-colors duration-1000",style:{background:n?"rgba(16, 185, 129, 0.16)":"rgba(167, 243, 208, 0.18)",mixBlendMode:n?"screen":"multiply"}}),(0,r.jsx)("div",{className:"absolute bottom-[-10%] left-[20%] h-[50vw] w-[50vw] rounded-full blur-[150px] transition-colors duration-1000",style:{background:n?"rgba(30, 58, 138, 0.16)":"rgba(191, 219, 254, 0.22)",mixBlendMode:n?"screen":"multiply"}})]}),(0,r.jsxs)("nav",{className:"fixed top-0 z-50 w-full transition-all duration-300 ".concat(w?"border-b border-slate-200 bg-white/80 py-4 shadow-sm backdrop-blur-2xl dark:border-white/10 dark:bg-black/40 dark:shadow-none":"bg-transparent py-6"),children:[(0,r.jsxs)("div",{className:"relative mx-auto flex w-full max-w-7xl items-center justify-between px-6 lg:px-8",children:[(0,r.jsx)(o(),{href:b.bw.home,className:"flex items-center",children:(0,r.jsx)(u.g,{className:"w-[122px] sm:w-[138px]",priority:!0})}),(0,r.jsx)("div",{className:"absolute left-1/2 hidden -translate-x-1/2 items-center gap-8 rounded-full border border-white/40 bg-white/60 px-8 py-3 shadow-sm backdrop-blur-xl dark:border-white/10 dark:bg-white/5 dark:shadow-none md:flex",children:_.map(e=>(0,r.jsx)(o(),{href:e.href,className:"text-sm font-medium transition-colors ".concat(a===e.href?"text-emerald-600 dark:text-emerald-300":"text-slate-600 hover:text-emerald-600 dark:text-zinc-300 dark:hover:text-white"),onClick:()=>(0,f.f)("public_marketing_nav_click",{location:"public_marketing_header",label:e.anal
1yticsLabel,href:e.href}),children:e.label},e.href))}),(0,r.jsxs)("div",{className:"hidden items-center gap-4 md:flex",children:[(0,r.jsx)(j,{}),(0,r.jsx)(v,{href:A.href,variant:"ghost",className:"hidden text-sm lg:flex",analyticsEvent:"public_marketing_nav_click",analyticsPayload:{location:"public_marketing_header",label:A.label.toLowerCase().replace(/\s+/g,"_"),href:A.href},children:A.label}),(0,r.jsx)(v,{href:b.bw.download,variant:"ghost",className:"bg-emerald-400 px-7 py-3.5 text-sm text-slate-900 shadow-[0_0_20px_rgba(16,185,129,0.28)] hover:bg-emerald-300 hover:text-slate-900 hover:shadow-[0_0_30px_rgba(16,185,129,0.34)]",analyticsEvent:"public_marketing_cta_click",analyticsPayload:{page:"public",cta:"header_download"},children:"Download"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 md:hidden",children:[(0,r.jsx)(j,{}),(0,r.jsx)("button",{type:"button",className:"rounded-full border border-slate-200 bg-white/60 p-2 text-slate-600 backdrop-blur-md dark:border-white/10 dark:bg-white/5 dark:text-zinc-300",onClick:()=>x(e=>!e),"aria-label":"Toggle navigation","aria-expanded":i,children:i?(0,r.jsx)(c.A,{size:20}):(0,r.jsx)(d.A,{size:20})})]})]}),i?(0,r.jsx)("div",{className:"absolute left-0 top-full w-full border-b border-slate-200 bg-white/95 p-6 shadow-xl backdrop-blur-3xl dark:border-white/10 dark:bg-black/95",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[_.map(e=>(0,r.jsx)(o(),{href:e.href,className:"border-b border-slate-100 py-3 text-lg font-medium text-slate-800 dark:border-white/5 dark:text-zinc-300",onClick:()=>x(!1),children:e.label},e.href)),(0,r.jsx)(o(),{href:A.href,className:"py-3 text-lg font-medium text-slate-800 dark:text-zinc-300",onClick:()=>x(!1),children:A.label}),(0,r.jsx)(v,{href:b.bw.download,className:"mt-2 w-full",analyticsEvent:"public_marketing_cta_click",analyticsPayload:{page:"public",cta:"mobile_header_download"},children:"Download"})]})}):null]}),(0,r.jsx)("main",{className:"relative z-10",children:t}),(0,r.jsxs)("footer",{className:"relative z-10 border-t border-slate-200 bg-slate-100 py-16 transition-colors duration-500 dark:border-white/10 dark:bg-black",children:[(0,r.jsxs)("div",{className:"mx-auto grid max-w-7xl gap-12 px-6 md:grid-cols-4",children:[(0,r.jsxs)("div",{className:"col-span-1 md:col-span-2",children:[(0,r.jsx)("div",{className:"mb-6",children:(0,r.jsx)(u.g,{className:"w-[148px]"})}),(0,r.jsx)("p",{className:"mb-6 max-w-xs text-sm font-light leading-relaxed text-slate-500 dark:text-zinc-500",children:"The app for discovering kava bars, planning nights out, and feeling like a regular wherever you go."})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"mb-6 font-semibold text-slate-900 dark:text-white",children:"Quick Links"}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(N,{href:b.bw.home,label:"Home",section:"quick_links"}),(0,r.jsx)(N,{href:b.bw.now,label:"Happening Now",section:"quick_links"}),(0,r.jsx)(N,{href:b.bw.passportHub,label:"Passport",section:"quick_links"}),(0,r.jsx)(N,{href:b.bw.bars,label:"For Bars",section:"quick_links"}),(0,r.jsx)(N,{href:b.bw.features,label:"Features",section:"quick_links"}),(0,r.jsx)(N,{href:b.bw.download,label:"Download",section:"quick_links"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"mb-6 font-semibold text-slate-900 dark:text-white",children:"Legal"}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(N,{href:b.bw.privacy,label:"Privacy Policy",section:"legal"}),(0,r.jsx)(N,{href:b.bw.terms,label:"Terms of Service",section:"legal"})]})]})]}),(0,r.jsx)("div",{className:"mx-auto mt-16 max-w-7xl border-t border-slate-200 px-6 pt-8 text-center text-sm font-light text-slate-500 dark:border-white/10 dark:text-zinc-600",children:(0,r.jsxs)("p",{children:["Copyright ",new Date().getFullYear()," HappyKava. All rights reserved."]})})]})]})})}},64273:(e,t,a)=>{a.d(t,{Uz:()=>c,i_:()=>d,oW:()=>i,xV:()=>n});var r=a(23342);let l="hk_portal_bootstrap:v2:";function o(e,t){let a=t&&t.length>0?t:"__global__";return"".concat(l).concat(e,":").concat(a)}function s(){return window.sessionStorage?window.sessionStorage:null}function n(e,t){let a=s();if(!a)return null;let l=o(e,t);try{var n,i;let e=a.getItem(l);if(!e)return null;let t=JSON.parse(e);if(!t||"number"!=typeof t.expiresAt||t.expiresAt<=Date.now())return a.removeItem(l),null;return{flags:{...r.Bg,...null!=(n=t.flags)?n:{}},access:null!=(i=t.access)?i:null}}catch(e){return console.warn("[Portal] Failed to read bootstrap cac
1he",e),a.removeItem(l),null}}function i(e,t,a){let r=s();if(!r)return;let l=o(e,t),n={...a,expiresAt:Date.now()+3e5};try{r.setItem(l,JSON.stringify(n))}catch(e){console.warn("[Portal] Failed to persist bootstrap cache",e)}}function c(e,t){if(!e)return;let a=s();if(a)try{a.removeItem(o(e,t))}catch(e){console.warn("[Portal] Failed to clear bootstrap cache",e)}}function d(e){if(!e)return;let t=s();if(!t)return;let a=e?"".concat(l).concat(e,":"):null;if(a)try{let e=[];for(let r=0;r<t.length;r+=1){let l=t.key(r);l&&l.startsWith(a)&&e.push(l)}for(let a of e)t.removeItem(a)}catch(e){console.warn("[Portal] Failed to clear bootstrap cache namespace",e)}}},68209:(e,t,a)=>{a.d(t,{w:()=>s});var r=a(6456);a(93305);let l=null,o=0;async function s(){let e=(0,r.getSupabaseBrowserClient)();try{var t,a;let{data:r,error:s}=await e.auth.getSession();if(s)throw s;let n=null!=(t=r.session)?t:null;return(null==n?void 0:n.user)&&function(e){let t=Date.now();!l&&(o&&t-o<6e4||(l=(async()=>{try{let{error:t}=await e.rpc("accept_pending_role_invites");if(t)throw t;let{error:a}=await e.rpc("accept_pending_coowner_invites");if(a)throw a;o=Date.now()}catch(e){console.warn("[Portal] Unable to sync pending invites",e)}finally{l=null}})()))}(e),{session:n,user:null!=(a=null==n?void 0:n.user)?a:null}}catch(e){return console.warn("[Portal] Unable to fetch session",e),{session:null,user:null}}}},68364:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});let r={src:"/_next/static/media/app-header-v4-logo-dark.e27f2ac1.png",height:213,width:743,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAHlBMVEVzyRf+//79/fuj22f///////92ySN3xx3///9vxBInjE4PAAAACnRSTlNmfUJwUWpHPGZ74vfxPQAAAAlwSFlzAAALEwAACxMBAJqcGAAAABpJREFUCJljYOFgYmLmZGBgYGRkZGVmYGMHAAHwADVgfFhoAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:2}},82198:(e,t,a)=>{a.d(t,{f:()=>l});var r=a(91716);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.Sr)(e,{surface:"public_marketing",...t})}},83973:(e,t,a)=>{a.d(t,{PublicThemeProvider:()=>h,Q:()=>u});var r=a(95155),l=a(12115),o=a(20063),s=a(82198);let n="public.marketing.theme.preference.v1",i="(prefers-color-scheme: dark)";function c(e){let t="dark"==("function"!=typeof window.matchMedia?"light":window.matchMedia(i).matches?"dark":"light"),a="system"===e?t?"dark":"light":e;return"undefined"!=typeof document&&(document.documentElement.dataset.portalTheme=a,document.documentElement.dataset.publicThemePreference=e,document.documentElement.style.setProperty("color-scheme",a)),a}let d=(0,l.createContext)(null);function h(e){let{children:t}=e,a=(0,o.usePathname)(),h=(0,l.useRef)(!1),[u,b]=(0,l.useState)("system"),[p,m]=(0,l.useState)("light");(0,l.useEffect)(()=>{if(h.current)return;h.current=!0;let e=function(){try{let e=window.localStorage.getItem(n);if("light"===e||"dark"===e||"system"===e)return e}catch(e){console.warn("[PublicTheme] Unable to read stored preference",e)}return"system"}(),t=c(e);b(e),m(t)},[]),(0,l.useEffect)(()=>{if("system"!==u)return;let e=window.matchMedia(i),t=()=>{m(c("system"))};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[u]);let g=(0,l.useCallback)(e=>{if(e===u)return;let t=c(e);b(e),m(t);try{window.localStorage.setItem(n,e)}catch(e){console.warn("[PublicTheme] Unable to persist preference",e)}(0,s.f)("public_marketing_theme_preference_changed",{preference:e,resolved_theme:t,route:a})},[a,u]),f=(0,l.useMemo)(()=>({preference:u,resolvedTheme:p,setPreference:g}),[u,p,g]);return(0,r.jsx)(d.Provider,{value:f,children:t})}function u(){let e=(0,l.useContext)(d);if(!e)throw Error("usePublicTheme must be used inside PublicThemeProvider");return e}},87765:(e,t,a)=>{a.d(t,{JN:()=>l,Te:()=>s,bw:()=>o,od:()=>r});let r="https://apps.apple.com/us/app/happykava/id6753658198",l="https://play.google.com/store/apps/details?id=com.happykava.app",o={home:"/",about:"/about",ourStory:"/our-story",press:"/press",advertise:"/advertise",features:"/features",appFeatures:"/features/app",stories:"/stories",passportHub:"/passport",passportConsumers:"/passport",passportPreorder:"/passport",passportBars:"/bars/passport",bars:"/bars",barsFeatures:"/bars/features",download:"/download",login:"/login",signup:"/signup",terms:"/legal/terms",privacy:"/legal/privacy",dataDeletion:"/legal/data-deletion",now:"/now"},s="mailto:[email protected]"}}]);
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.