1import{j as e}from"./query-c09fx2J2.js";import{L as I,f as L,h as R,r as g}from"./react-agm_KX9t.js";import{j as U,Y as S,N as F,q as p,Z as M,x as T,B as q,y as E,z as B,r as O}from"./index-CNAVv6Q8.js";import{F as Q}from"./Footer-b6eqh7xE.js";import{S as W}from"./ShareSection-D1-1jjq9.js";import G from"./ActivitiesTeaser-D0bMuw4K.js";import{L as H}from"./LanguageSelector-5ywH-t3m.js";import{U as J}from"./users-CFwo1sHj.js";import{M as Y}from"./message-square-I3N1mIVM.js";import{C as V}from"./calendar-days-B3wRYfEP.js";import{S as Z}from"./sprout-CGyx8jfA.js";import{u as k}from"./useApiJson-Y9D1FDt6.js";import{P as K}from"./PageLoadingOverlay-DA9LgdO0.js";import"./Text-DEAfCrcW.js";import"./instagram-DhpOp9ra.js";import"./map-pin-DiH7PH86.js";import"./mail-By4BEemS.js";import"./message-circle-CXalMtcX.js";import"./send-CSfvW4Ny.js";import"./message-circle-dashed-Dl_BqOdI.js";import"./isIOS-Br93VhRr.js";import"./ProgressiveImage-Dzoz49wN.js";import"./pipActivityImageAlt-CurMrK5H.js";import"./shuffle-DWhNzhbu.js";import"./select-cK5TKLpH.js";import"./index-BzLa2xOs.js";import"./index-ccirAXVU.js";import"./index-L4R2xWNe.js";import"./index-wv4oz4wp.js";import"./chevron-up-ClAJG-ai.js";import"./check-Ay9qJkzb.js";import"./globe-DSKHCCIZ.js";const X=({cityName:i,code:c,country:h,state:t,image:a,isLoading:x,frequency_days:y,bq:u,communityData:s})=>{const{t:r,currentLanguage:o}=U(),w=window.location.href,m=new URLSearchParams(window.location.search).get("ref"),d=["https://s.kikiapp.eu/img/Friends+2940x1960+(1).avif","https://s.kikiapp.eu/img/Friends+2+(1).avif","https://s.kikiapp.eu/img/Friends+3+(1).avif","https://s.kikiapp.eu/img/Friends4+(1)+(1).avif","https://s.kikiapp.eu/img/Friends+5+(1).avif","https://s.kikiapp.eu/img/Friends+6+(1).avif"];function N(n,l,_){const P=n.split("").reduce((b,f)=>b+f.charCodeAt(0),0),C=l?l.split("").reduce((b,f)=>b+f.charCodeAt(0),0):0,A=_?_.split("").reduce((b,f)=>b+f.charCodeAt(0),0):0,z=new Date().getDate();return P+z+C+A}const j=d[N(i,t,h)%d.length],$=[{icon:J,title:r("city.steps.get_matched.title","Get Matched"),description:r("city.steps.get_matched.description","We'll match you with a small group of like-minded people."),color:"bg-gradient-to-r from-pink-500 to-purple-600"},{icon:Y,title:r("city.steps.break_ice.title","Break the Ice"),description:r("city.steps.break_ice.description","Chat with fellow group members, guided by our conversation starters and games."),color:"bg-gradient-to-r from-blue-500 to-cyan-400"},{icon:V,title:r("city.steps.meet_up.title","Meet Up in Real Life"),description:r("city.steps.meet_up.description","We'll handle the planning and logistics â simply show up and enjoy yourself."),color:"bg-gradient-to-r from-indigo-400 to-blue-500"},{icon:Z,title:r("city.steps.grow_friendships.title","Grow the Friendships"),description:r("city.steps.grow_friendships.description","After the initial meet, we'll help you grow your new connections."),color:"bg-gradient-to-r from-green-400 to-emerald-500"}];return e.jsxs("div",{className:"flex flex-col min-h-screen dark",children:[a&&e.jsx(S,{children:e.jsx("link",{rel:"preload",as:"image",href:`https://${a}`})}),e.jsx(F,{}),e.jsxs("main",{className:"flex-grow",children:[e.jsxs("section",{className:"relative flex items-center overflow-hidden section-padding bg-white dark:bg-white pt-32 md:pt-36 lg:pt-40",children:[e.jsxs("div",{className:"absolute inset-0 -z-10",children:[e.jsx("div",{className:"absolute top-0 right-0 w-1/2 h-1/2 bg-gradient-radial from-pulse-purple/20 to-transparent opacity-70"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-1/2 h-1/2 bg-gradient-radial from-pulse-purple/20 to-transparent opacity-70"})]}),e.jsx("div",{className:"absolute top-1/4 left-10 w-16 h-16 rounded-full bg-pulse-blue/30 animate-float z-20 pointer-events-none"}),e.jsx("div",{className:"absolute top-1/3 right-1/4 w-12 h-12 rounded-full bg-pulse-teal/30 animate-bounce-gentle z-20 pointer-events-none"}),e.jsx("div",{className:"absolute top-2/3 left-1/4 w-20 h-20 rounded-full bg-pulse-coral/20 animate-float-reverse z-20 pointer-events-none"}),e.jsx("div",{className:"absolute top-1/2 right-1/3 w-8 h-8 rounded-full bg-pulse-blue/20 animate-spin-slow z-20 pointer-events-none"}),e.jsx("div",{className:"absolute top-[16%] right-[16%] w-10 h-10 rounded-full bg-pulse-coral/20 animate-bounce-gentle z-20 pointer-events-none"}),e.jsx("div",{className:"absolute bottom-[20%] left-[20%] w-18 h-18 rounded-full bg-pulse-teal/15 animate-float z-20 pointer-events-none"}),a&&a!==""&&e.jsx(p.div,{initial:{opacity:0,filter:"blur(20px)"}
1,animate:{opacity:.5,filter:"blur(0px)"},transition:{delay:2,duration:1.5},className:"absolute inset-0 z-0 bg-cover bg-center blur-sm opacity-50",style:{backgroundImage:`url(https://${a})`}},a),(!a||a=="")&&e.jsx(p.div,{initial:{opacity:0,filter:"blur(20px)"},animate:{opacity:.5,filter:"blur(0px)"},transition:{delay:1,duration:2},className:"absolute inset-0 z-0 bg-cover bg-center blur-sm opacity-50",style:{backgroundImage:`url(${j})`}},j),e.jsx("div",{className:"absolute inset-0 z-10 bg-gradient-to-b from-white/30 to-transparent backdrop-blur-sm mix-blend-lighten"}),e.jsx("div",{className:"absolute top-0 left-0 right-0 h-64 bg-gradient-to-b from-white via-white/70 to-transparent z-0 pointer-events-none"}),e.jsx("div",{className:"container mx-auto px-4 relative z-10 my-[31px]",children:e.jsxs(p.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7},className:"text-center max-w-3xl mx-auto relative z-10",children:[e.jsxs("h1",{className:"text-4xl font-bold mb-4 md:text-5xl text-black",children:[s.title1,e.jsx("br",{}),s.title2," ",e.jsx("span",{className:"pulse-gradient-text",children:s.title2_part2||i})]}),s.business_name&&e.jsxs("div",{className:"flex items-center justify-center gap-3 mb-8 mt-2",children:[e.jsx("span",{className:"text-base text-gray-600 font-medium",children:s.powered_by}),s.business_image&&(s.business_url?e.jsx("a",{href:s.business_url,target:"_blank",rel:"noopener noreferrer",children:e.jsx("img",{src:`https://${s.business_image}`,alt:`${s.business_name} logo`,className:"h-10 max-w-20 object-contain cursor-pointer"})}):e.jsx("img",{src:`https://${s.business_image}`,alt:`${s.business_name} logo`,className:"h-10 max-w-20 object-contain"})),s.business_url?e.jsx("a",{href:s.business_url,target:"_blank",rel:"noopener noreferrer",className:"text-base font-bold text-gray-800 hover:text-gray-600 transition-colors",children:s.business_name}):e.jsx("span",{className:"text-base font-bold text-gray-800",children:s.business_name})]}),e.jsx(p.p,{className:"whitespace-pre-line text-xl md:text-2xl font-normal mb-8 text-gray-800",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2,duration:.5},children:s.subtitle||r("city.making_friends","Making friends as an adult can be hard. We're here to help.")}),e.jsxs(p.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.4,duration:.5},className:"flex flex-col sm:flex-row gap-4 sm:items-start items-center justify-center",children:[e.jsx(M,{initial:!1,children:!x&&e.jsxs("div",{id:"button-link1",className:"flex flex-col items-center",children:[e.jsx(I,{to:`/signup${c?`?city=${c}&cityLabel=${encodeURIComponent(s.cityLabel)}&submatch=${s.submatchId}&language=${o}&redirect=${encodeURIComponent(w)}${m?`&ref=${encodeURIComponent(m)}`:""}${typeof u=="boolean"?`&bq=${u}`:""}${s.form_before?`&welcome_before=${encodeURIComponent(s.form_before)}`:""}${s.form_after?`&welcome_after=${encodeURIComponent(s.form_after)}`:""}`:`?language=${o}&redirect=${encodeURIComponent(w)}${m?`&ref=${encodeURIComponent(m)}`:""}${s.form_before?`&welcome_before=${encodeURIComponent(s.form_before)}`:""}${s.form_after?`&welcome_after=${encodeURIComponent(s.form_after)}`:""}`}`,onClick:n=>{const l=n.currentTarget.href;T({href:l,cityName:i,code:c,source:"community:hero_cta"})},children:e.jsxs(q,{size:"xl",className:"relative rounded-full px-8 py-4 font-semibold text-white overflow-hidden border border-white/20 backdrop-blur-md transition-all duration-300 hover:brightness-110",children:[e.jsx("div",{className:"absolute inset-0 z-0 bg-gradient-to-r from-pulse-pink to-pulse-green opacity-90"}),e.jsx("span",{className:"relative z-10",children:r("city.get_matched","Get Matched")}),e.jsx(E,{size:18})]})}),t&&e.jsxs("div",{className:"text-sm text-black/60 mt-2 text-center font-light",children:[i,", ",t]})]})}),e.jsx(H,{variant:"light"})]})]})})]}),e.jsxs("section",{className:"relative py-16 bg-gray-900 dark:bg-gray-950",children:[e.jsxs("div",{className:"absolute inset-0 opacity-10",children:[e.jsx("div",{className:"absolute -top-24 -left-24 w-96 h-96 rounded-full bg-purple-600 blur-3xl"}),e.jsx("div",{className:"absolute top-1/2 -right-24 w-96 h-96 rounded-full bg-blue-600 blur-3xl"}),e.jsx("div",{className:"absolute -bottom-24 left-1/2 w-96 h-96 rounded-full bg-pink-600 blur-3xl"})]}),e.jsx("div",{className:"container mx-auto px-4 relative z-10",children:e.jsx("div",{className:"max-w-4xl mx-auto",children:$.map((n,l)=>e.jsxs(p.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:l*.1},className:"flex items-center gap-6 mb-16 last:mb-0",children:[e.jsx("div",{className:"relative",children:e.jsx("div",{className:`w-24 h-24 rounded-full ${n.color} flex items-center justify-center`,children:e.jsx(n.icon,{className:"text-white",size:40})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-2xl font-bold text-white mb-2",children:n.title}),e.jsx("p",{className:"text-xl text-gray-300",children:n.description})]})]},l))})})]}),e.jsx(G,{}),e.jsx(W,{})]}),e.jsx(Q,{})]})},Re=()=>{const{community_url:i}=L(),c=R();B();const h=g.useMemo(()=>i?i.replace(/-/g," ").replace(/\b\w/g,d=>d.toUpperCase()):"",[i]),[t,a]=g.useState({id:"",url:i||"",title1:"",title2:h,subtitle:"",title2_part2:"",powered_by:"",business_name:"",business_image:"",business_url:"",background_image:"",city:""}),x=g.useMemo(()=>i?`/match/get_community?slag=${encodeURIComponent(i)}`:null,[i]),{data:y,loading:u,error:s}=k(x||"",{initialData:void 0,enabled:!!x}),{data:r}=k("/auth/get_all_cities",{initialData:[],staleTime:5*60*1e3}),o=!!t.id,w={title:{en:o?`${t.title1} ${t.title2} | Pulse App`:"Find Your Community | Pulse App",es:o?`${t.title1} ${t.title2} | Pulse App`:"Encuentra Tu Comunidad | Pulse App"},description:{en:o?`${t.title1} ${t.title2} on Pulse. Join a matched local group and meet new friends IRLâsmall groups, real meetups.`:"Discover Pulse communities: group matching to meet like-minded people and make friends near you.",es:o?`${t.title1} ${t.title2} en Pulse. Ãnete a un grupo local emparejado y haz nuevos amigos en personaâgrupos pequeños, quedadas reales.`:"Descubre comunidades en Pulse: emparejamiento en grupo para conocer gente afÃn y hacer amigos cerca de ti."},keywords:o?[t.title1,t.title2,t.title2_part2||t.title2,t.business_name,"meet friends","Pulse"].filter(
1Boolean):["community","meet friends","group matching","Pulse"],image:t?.background_image?`https://${t.background_image}`:void 0,breadcrumbs:[{name:"Home",url:"/"},{name:"Communities",url:"/communities"},{name:t.title2||h,url:`/communities/${i}`}],additionalJsonLd:[{"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What is a Pulse community?",acceptedAnswer:{"@type":"Answer",text:`A Pulse community is a partnered group on the Pulse app where members are matched into small local crews to meet new friends in real life. ${t.title1} ${t.title2} is a Pulse community.`}},{"@type":"Question",name:"How do I join a Pulse community?",acceptedAnswer:{"@type":"Answer",text:"Download the Pulse app on iOS or Android, take the vibe test, and you'll be matched into a crew of 6-12 compatible locals. Community partners may also provide a direct signup link."}},{"@type":"Question",name:"Is Pulse free to use?",acceptedAnswer:{"@type":"Answer",text:"Yes, Pulse is completely free. There are no paywalls on core friendship features like crew matching, group chat, and 10-day missions."}}]}]};g.useEffect(()=>{s&&(console.error("Failed to fetch community:",s),c("/communities"))},[s,c]),g.useEffect(()=>{y&&(a(y),window.scrollTo(0,0),document.documentElement.classList.add("dark"))},[y]);const v=(t.title2_part2||t.title2).toLowerCase().trim().replace(/\s+/g,"-"),m=Array.isArray(r)?r.find(d=>d.code===t.city)?.bq??void 0:void 0;return e.jsxs(e.Fragment,{children:[e.jsx(K,{show:u}),e.jsx(O,{...w}),e.jsx(X,{cityName:t.title2,code:t.city,country:"",state:"",image:t.background_image,isLoading:u,bq:m,communityData:{title1:t.title1,title2:t.title2,subtitle:t.subtitle,title2_part2:t.title2_part2,powered_by:t.powered_by,business_name:t.business_name,business_image:t.business_image,business_url:t.business_url,submatchId:t.id,cityLabel:v,form_before:t.form_before,form_after:t.form_after}})]})};export{Re as default};
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.