PageSourceSearch

https://foamglow.com/assets/NewsArticle-9cT-DY9u.js

js foamglow.com collected 2026-09-30 13:42:05 UTC 12,272 bytes, 27 lines download raw bytes

1import{c as h,u as y,r as x,j as e,L as u,B as g,b as k}from"./index-Dehqc7cc.js";import{L as f,k as p,S as L}from"./SEOHead-DnfH-Wfc.js";import{B as S}from"./badge-Gmj_ZuIH.js";import{a as _,u as M,r as b}from"./useArticles-5SzqsRhh.js";import{a as E}from"./useEvents-5wo2YZNM.js";import{u as C}from"./useBrandContent-WKYL-d7Z.js";import{S as $,N as I}from"./SubmitStoryDialog-D5dPE8BR.js";import{A as j}from"./arrow-left-DxhpUZfa.js";import{C as R,M as T,H as z}from"./index-D0YX9d6v.js";import{C as A}from"./clock-Cux2o9Pn.js";import{m as B}from"./client-Bw6Mo37w.js";import{L as H}from"./link-2-CB-M0Pzx.js";import{P}from"./party-popper-Bq6WMhcq.js";import{f as N}from"./format--YuNkvsf.js";import"./useQuery-D7Z-4oYh.js";import"./useMutation-Bf6QLoJa.js";import"./input-BOOoKITO.js";import"./notifyInquiry-B38Prit3.js";import"./zap-D703xwOJ.js";import"./send-D03zLJxU.js";import"./textarea-DRjPjUPm.js";import"./label-B4P8Qvui.js";import"./select-zQkc6IrV.js";import"./index-CotvKMWO.js";import"./chevron-down-DCrVhF6o.js";import"./check-DrJKdnej.js";import"./dialog-CCZLDnMC.js";import"./metaPixel-Cqz4d3ve.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const O=h("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const U=h("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
12 * @license lucide-react v0.462.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const F=h("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
17 * @license lucide-react v0.462.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const J=h("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
22 * @license lucide-react v0.462.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */const D=h("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);function w({title:c,url:t}){const n=encodeURIComponent(t),i=encodeURIComponent(c),a=()=>{navigator.clipboard.writeText(t),k.success("Link copied!")};return e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-xs text-muted-foreground mr-1 hidden sm:inline",children:"Share"}),e.jsx("a",{href:`https://twitter.com/intent/tweet?text=${i}&url=${n}`,target:"_blank",rel:"noopener noreferrer",className:"p-2 rounded-full hover:bg-muted transition-colors",children:e.jsx(D,{className:"h-4 w-4"})}),e.jsx("a",{href:`https://www.facebook.com/sharer/sharer.php?u=${n}`,target:"_blank",rel:"noopener noreferrer",className:"p-2 rounded-full hover:bg-muted transition-colors",children:e.jsx(O,{className:"h-4 w-4"})}),e.jsx("a",{href:`https://www.linkedin.com/shareArticle?mini=true&url=${n}&title=${i}`,target:"_blank",rel:"noopener noreferrer",className:"p-2 rounded-full hover:bg-muted transition-colors",children:e.jsx(F,{className:"h-4 w-4"})}),e.jsx("a",{href:`mailto:?subject=${i}&body=${n}`,className:"p-2 rounded-full hover:bg-muted transition-colors",children:e.jsx(T,{className:"h-4 w-4"})}),e.jsx("button",{onClick:a,className:"p-2 rounded-full hover:bg-muted transition-colors",children:e.jsx(H,{className:"h-4 w-4"})})]})}
26function q(){const[c,t]=x.useState(0);return x.useEffect(()=>{const n=()=>{const i=document.documentElement,a=i.scrollTop||document.body.scrollTop,m=i.scrollHeight-i.clientHeight;t(m>0?a/m*100:0)};return window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[]),e.jsx("div",{className:"fixed top-0 left-0 right-0 z-50 h-1 bg-transparent",children:e.jsx("div",{className:"h-full bg-primary transition-[width] duration-100 ease-out",style:{width:`${c}%`}})})}const W=[{key:"like",icon:J,label:"Like"},{key:"love",icon:z,label:"Love"},{key:"fire",icon:U,label:"Fire"},{key:"celebrate",icon:P,label:"Celebrate"}];function K({articleId:c}){const t=`article-reactions-${c}`,[n,i]=x.useState({}),[a,m]=x.useState(null);x.useEffect(()=>{try{const s=localStorage.getItem(t);if(s){const l=JSON.parse(s);i(l.counts||{}),m(l.userReaction||null)}}catch{}},[t]);const d=x.useCallback(s=>{i(l=>{const r={...l};return a===s?(r[s]=Math.max(0,(r[s]||0)-1),m(null),localStorage.setItem(t,JSON.stringify({counts:r,userReaction:null})),r):(a&&(r[a]=Math.max(0,(r[a]||0)-1)),r[s]=(r[s]||0)+1,m(s),localStorage.setItem(t,JSON.stringify({counts:r,userReaction:s})),r)})},[a,t]);return e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:W.map(({key:s,icon:l,label:r})=>e.jsxs("button",{onClick:()=>d(s),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-sm border transition-all
27            ${a===s?"bg-primary/10 border-primary text-primary font-semibold":"bg-muted/50 border-border hover:bg-muted text-muted-foreground hover:text-foreground"}`,children:[e.jsx(l,{className:"h-4 w-4"}),e.jsx("span",{children:r}),(n[s]||0)>0&&e.jsx("span",{className:"text-xs font-bold",children:n[s]})]},s))})}function ve(){const{slug:c}=y(),{data:t,isLoading:n}=_(c??""),{data:i=[]}=M({status:"published",limit:10}),{data:a}=E((t==null?void 0:t.event_id)??""),{getBrand:m}=C(),d=m(t==null?void 0:t.brand),s=`${p}/news/${c}`,l=x.useMemo(()=>t?i.filter(o=>o.id!==t.id&&o.brand===t.brand).slice(0,4):[],[t,i]);if(n)return e.jsx(f,{children:e.jsx("div",{className:"min-h-screen flex items-center justify-center",children:e.jsx("div",{className:"animate-spin h-8 w-8 border-4 border-primary border-t-transparent rounded-full"})})});if(!t)return e.jsx(f,{children:e.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center gap-4",children:[e.jsx("p",{className:"text-lg font-bold",children:"Article not found"}),e.jsx(u,{to:"/news",children:e.jsxs(g,{variant:"outline",children:[e.jsx(j,{className:"h-4 w-4 mr-2"}),"Back to News"]})})]})});const r={"@context":"https://schema.org","@type":"NewsArticle",headline:t.title,image:t.featured_image?[t.featured_image]:void 0,datePublished:t.published_at,dateModified:t.updated_at,author:{"@type":"Organization",name:"EventLab",url:p},publisher:{"@type":"Organization",name:"EventLab",url:p,logo:{"@type":"ImageObject",url:`${p}/favicon-512.png`}},description:t.meta_description||t.excerpt,mainEntityOfPage:{"@type":"WebPage","@id":s},articleSection:(d==null?void 0:d.name)||t.brand,wordCount:t.content?t.content.replace(/<[^>]*>/g,"").split(/\s+/).length:0},v={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:p},{"@type":"ListItem",position:2,name:"News",item:`${p}/news`},{"@type":"ListItem",position:3,name:t.title,item:s}]};return e.jsxs(f,{children:[e.jsx(q,{}),e.jsx(L,{title:t.meta_title||t.title,description:t.meta_description||t.excerpt||"",canonicalPath:`/news/${t.slug}`,ogImage:t.featured_image||void 0,ogType:"article",schemas:[r,v]}),e.jsxs("section",{className:"relative overflow-hidden bg-primary",children:[e.jsxs("div",{className:"relative h-48 sm:h-64 md:h-[28rem]",children:[t.featured_image&&e.jsx("img",{src:t.featured_image,alt:t.title,className:"absolute inset-0 w-full h-full object-cover",loading:"eager"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent"}),e.jsx("div",{className:"absolute top-0 inset-x-0 z-10 max-w-3xl mx-auto px-4 pt-4",children:e.jsxs(u,{to:"/news",className:"text-white/70 hover:text-white text-xs flex items-center gap-1 w-fit backdrop-blur-sm bg-black/20 px-2.5 py-1 rounded-full",children:[e.jsx(j,{className:"h-3.5 w-3.5"}),"Back to News"]})})]}),e.jsxs("div",{className:"relative z-10 max-w-3xl mx-auto px-4 -mt-16 sm:-mt-20 md:-mt-32 pb-6 md:pb-10",children:[e.jsx(S,{className:"w-fit mb-2 bg-primary/90 text-primary-foreground text-[10px] md:text-xs tracking-wider up
27percase",children:(d==null?void 0:d.name)??t.brand}),e.jsx("h1",{className:"text-2xl sm:text-3xl md:text-[2.75rem] font-extrabold text-white leading-[1.18] mb-3 tracking-tight",children:t.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-white/60 text-xs md:text-sm",children:[e.jsx("span",{className:"font-medium text-white/80",children:"EventLab Team"}),e.jsx("span",{className:"text-white/40",children:"·"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(R,{className:"h-3 w-3 md:h-3.5 md:w-3.5"}),t.published_at?N(new Date(t.published_at),"MMMM d, yyyy"):""]}),e.jsx("span",{className:"text-white/40",children:"·"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(A,{className:"h-3 w-3 md:h-3.5 md:w-3.5"}),b(t.content)]})]})]})]}),t.excerpt&&e.jsx("div",{className:"max-w-3xl mx-auto px-4 pt-6",children:e.jsx("p",{className:"text-muted-foreground text-sm md:text-base leading-relaxed border-l-4 border-primary pl-4",children:t.excerpt})}),e.jsxs("article",{className:"max-w-3xl mx-auto px-4 py-10",children:[e.jsxs("div",{className:"mb-8 flex justify-between items-center border-b pb-4",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:[t.city,", ",t.state]}),e.jsx(w,{title:t.title,url:s})]}),e.jsx(B.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},className:"article-content",dangerouslySetInnerHTML:{__html:t.content??""}}),a&&e.jsxs("div",{className:"my-12 p-6 md:p-8 rounded-2xl bg-primary text-primary-foreground text-center",children:[e.jsxs("h3",{className:"text-xl md:text-2xl font-extrabold mb-2",children:["Ready to Join the Fun in ",a.city,"?"]}),e.jsxs("p",{className:"text-primary-foreground/80 mb-4",children:["Register now for ",a.title," — ",N(new Date(a.date),"MMMM d, yyyy")]}),a.registration_url&&e.jsx("a",{href:a.registration_url,target:"_blank",rel:"noopener noreferrer",children:e.jsx(g,{size:"lg",variant:"secondary",className:"font-bold",children:"Register Now"})})]}),e.jsxs("div",{className:"border-t pt-6 mt-10",children:[e.jsx("p",{className:"text-sm font-semibold mb-3",children:"What did you think?"}),e.jsx(K,{articleId:t.id})]}),e.jsx("div",{className:"my-8 flex justify-center",children:e.jsx($,{})}),e.jsx(I,{variant:"inline"}),e.jsxs("div",{className:"border-t pt-6 flex justify-between items-center",children:[e.jsx("p",{className:"text-sm font-medium",children:"Share this story"}),e.jsx(w,{title:t.title,url:s})]})]}),l.length>0&&e.jsx("section",{className:"bg-muted py-12",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[e.jsx("h2",{className:"text-xl font-extrabold mb-6",children:"More Stories You'll Love"}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-
275",children:l.map(o=>e.jsxs(u,{to:`/news/${o.slug}`,className:"group bg-card rounded-xl border overflow-hidden hover:shadow-md transition-shadow",children:[e.jsx("div",{className:"aspect-[16/10] overflow-hidden",children:o.featured_image?e.jsx("img",{src:o.featured_image,alt:o.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy"}):e.jsx("div",{className:"w-full h-full bg-muted"})}),e.jsxs("div",{className:"p-3",children:[e.jsx("p",{className:"text-xs font-bold leading-snug line-clamp-2 group-hover:text-primary transition-colors",children:o.title}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:b(o.content)})]})]},o.id))})]})})]})}export{ve 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.