PageSourceSearch

https://malibutimes.com/assets/GuideHomePage-DLRFZUnk.js

js malibutimes.com collected 2026-09-24 19:13:13 UTC 22,238 bytes, 10 lines download raw bytes

1import{u as T,s as b,j as e,i as K}from"./index-obhH_LhV.js";import{I as F,S as Z}from"./SiteShell-DO5yyJRk.js";import{b as s,L as y}from"./react-vendor-iJun6VP1.js";import{P as J}from"./PrerenderReady-NFWVwRf3.js";import{A as L}from"./AdSlot-BZGFqFLf.js";import{P as O,M as Q}from"./MapView-VczZGM-y.js";import{A as X}from"./ArchiveButton-COgkzFkI.js";import{f as U,a as ee}from"./events-xhPu3j1L.js";import{u as te,c as ie,a as se}from"./placeCategories-CiC3M-zQ.js";import{g as re,d as ne}from"./weather-Dx9D98F_.js";import"./supabase-vendor-o79c1kQX.js";import"./helpers-CddHt4ev.js";import"./sanitize-CtKkT6de.js";import"./adZones-C042cRiq.js";import"./malibu-beaches-B2rjSRdi.js";function ae({}){var S;const t=T(),[r,n]=s.useState(""),[f,p]=s.useState(!0),[l,h]=s.useState(null),[a,u]=s.useState("idle"),g=((S=t.settings)==null?void 0:S.affiliated_site_ids)??[];g.length>0&&l===null&&a==="idle"&&b.from("publications").select("id, name").in("id",g).limit(1).maybeSingle().then(({data:x})=>{x&&h(x)});async function j(x){if(x.preventDefault(),!r.trim())return;u("loading");const W=r.trim(),d=[t.id];f&&l&&d.push(l.id);const c=await Promise.all(d.map(m=>b.rpc("subscribe_reader",{p_email:W,p_publication_id:m})));u(c.some(m=>m.error)?"error":"success")}return a==="success"?e.jsxs("div",{style:{background:"#fff",borderRadius:16,padding:24,border:"1px solid var(--sp-border-light)",boxShadow:"0 4px 24px rgba(42, 42, 42, 0.04)",textAlign:"center"},children:[e.jsx("span",{"aria-hidden":!0,style:{fontSize:28},children:"✓"}),e.jsx("p",{style:{margin:"8px 0 0",fontSize:15,color:"var(--sp-text-strong)",fontFamily:"var(--sp-body-font)"}
1,children:"You're in. Check your inbox soon."})]}):e.jsxs("form",{onSubmit:j,style:{background:"#fff",borderRadius:16,padding:20,border:"1px solid var(--sp-border-light)",boxShadow:"0 4px 24px rgba(42, 42, 42, 0.04)",fontFamily:"var(--sp-body-font)",textAlign:"left"},children:[e.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[e.jsx("input",{type:"email",required:!0,value:r,onChange:x=>n(x.target.value),placeholder:"[email protected]",style:{flex:"1 1 220px",minWidth:0,padding:"12px 14px",fontSize:15,fontFamily:"var(--sp-body-font)",border:"1px solid var(--sp-border)",borderRadius:8,outline:"none",color:"var(--sp-text-strong)"}}),e.jsx("button",{type:"submit",disabled:a==="loading",style:{padding:"12px 20px",fontSize:15,fontWeight:600,color:"#fff",background:"var(--sp-guide-coral, #E8A598)",border:"none",borderRadius:8,cursor:a==="loading"?"not-allowed":"pointer",opacity:a==="loading"?.7:1,whiteSpace:"nowrap"},children:a==="loading"?"Subscribing…":"Subscribe"})]}),l&&e.jsxs("label",{style:{marginTop:12,display:"flex",alignItems:"center",gap:8,fontSize:13,color:"var(--sp-text-mid)",cursor:"pointer"},children:[e.jsx("input",{type:"checkbox",checked:f,onChange:x=>p(x.target.checked),style:{accentColor:"var(--sp-guide-coral, #E8A598)"}}),"Also subscribe to ",l.name]}),a==="error"&&e.jsx("p",{style:{margin:"12px 0 0",fontSize:13,color:"var(--sp-error, #c53030)"},children:"Something went wrong. Try again in a minute."})]})}function oe(){const t=T(),[r,n]=s.useState([]),[f,p]=s.useState(!1),[l,h]=s.useState(!1);return s.useEffect(()=>{var g;let a=!1;const u=((g=t.settings)==null?void 0:g.covered_regions)??[];return U(u,6).then(({events:j,isFallback:S})=>{a||(n(j),p(S),h(!0))}),()=>{a=!0}},[t.settings]),!l||r.length===0?null:e.jsxs("section",{style:{marginTop:80},children:[e.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:16,flexWrap:"wrap",marginBottom:24},children:[e.jsx("h2",{style:{fontFamily:"var(--sp-heading-font)",fontSize:"clamp(28px, 4vw, 40px)",fontWeight:500,margin:0,color:"var(--sp-text-strong)"},children:f?"Upcoming":"This Weekend"}),e.jsx(y,{to:"/events",style:{color:"var(--sp-guide-fog, #7A9CAB)",fontWeight:600,fontSize:15,textDecoration:"none"},children:"All events →"})]}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(260px, 1fr))",gap:20},children:r.map(a=>{var u,g;return e.jsx(y,{to:`/events/${a.slug}`,style:{textDecoration:"none",color:"inherit",display:"block"},children:e.jsxs("article",{style:{background:"#fff",borderRadius:12,overflow:"hidden",border:"1px solid var(--sp-border-light)",height:"100%",display:"flex",flexDirection:"column"},children:[a.image_url&&e.jsx("div",{style:{aspectRatio:"16 / 9",background:"var(--sp-guide-cream, #FAF6F0)"},children:e.jsx(F,{src:a.image_url,alt:a.title,loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),e.jsxs("div",{style:{padding:16,display:"flex",flexDirection:"column",gap:6},children:[e.jsx("div",{style:{fontSize:12,color:"var(--sp-text-muted)",fontWeight:500,letterSpacing:"0.04em",textTransform:"uppercase"},children:ee(a)}),e.jsx("h3",{style:{fontFamily:"var(--sp-heading-font)",fontSize:20,fontWeight:500,margin:0,lineHeight:1.25},children:a.title}),(((u=a.venue)==null?void 0:u.name)??a.venue_name)&&e.jsx("p",{style:{margin:0,fontSize:14,color:"var(--sp-text-mid)"},children:((g=a.venue)==null?void 0:g.name)??a.venue_name})]})]})},a.id)})})]})}const le={half_day:"Half day",day_trip:"Day trip",weekend:"Weekend",week:"Week"},E=5e3,de=["https://stellarpress-media.b-cdn.net/WTDIM-Stock/Hero%20Videos/malibu-la.mp4","https://stellarpress-media.b-cdn.net/WTDIM-Stock/Hero%20Videos/aerial-malibu.mp4","https://stellarpress-media.b-cdn.net/WTDIM-Stock/Hero%20Videos/malibu-pier.mp4","https://stellarpress-media.b-cdn.net/WTDIM-Stock/Hero%20Videos/surfers.mp4"],ce=80,D={fontFamily:"var(--sp-heading-font)",fontSize:"clamp(28px, 4vw, 40px)",fontWeight:500,letterSpacing:"-0.01em",margin:"0 0 8px",color:"var(--sp-text-strong)"},z={fontFamily:"var(--sp-body-font)",fontSize:12,fontWeight:600,letterSpacing:"0.12em",textTransform:"uppercase",color:"var(--sp-guide-coral, #E8A598)",margin:"0 0 8px"};function Ie({}){var H,q,B,P,$,M;const t=T(),r=te(t.id),[n,f]=s.useState([]),[p,l]=s.useState([]),[h,a]=s.useState([]),[u,g]=s.useState([]),[j,S]=s.useState([]),[x,W]=s.useState([]),[d,c]=s.useState(null),[m,C]=s.useState(null);s.useEffect(()=>{var i,o;K({title:`${t.name} — ${((i=t.settings)==null?void 0:i.tagline)||"Your guide to Malibu"}`,description:((o=t.settings)==null?void 0:o.tagline)||`Curated places and trip plans across ${t.name}.`,siteName:t.name,type:"website"})},[t.name,(H=t.settings)==null?void 0:H.tagline]),s.useEffect(()=>{let i=!1;return(async()=>{const{data:o}=await b.from("places").select("*").eq("site_id",t.id).eq("is_published",!0).eq("is_permanently_closed",!1).contains("tags",["trending"]).order("sponsorship_tier",{ascending:!1}).limit(6);if(i)return;if(o&&o.length>=4){f(o);return}const{data:k}=await b.from("places").select("*").eq("site_id",t.id).eq("is_published",!0).eq("is_permanently_closed",!1).order("created_at",{ascending:!1}).limit(6);i||f(k??[])})(),()=>{i=!0}},[t.id]),s.useEffect(()=>{let i=!1;return b.from("places").select("*").eq("site_id",t.id).eq("is_published",!0).eq("is_permanently_closed",!1).contains("tags",["hidden-gem"]).order("sponsorship_tier",{ascending:!1}).limit(6).then(({data:o})=>{i||l(o??[])}),()=>{i=!0}},[t.id]),s.useEffect(()=>{let i=!1;return b.from("itineraries").select("*").eq("site_id",t.id).eq("is_generated",!1).eq("is_published",!0).order("view_count",{ascending:!1}).limit(4).then(({data:o})=>{i||a(o??[])}),()=>{i=!0}},[t.id]),s.useEffect(()=>{let i=!1;return b.from("stories").select("id, title, slug, excerpt, featured_image_url, author, published_at").eq("site_id",t.id).eq("sent_to_web",!0).order("published_at",{ascending:!1}).limit(4).then(({data:o})=>{i||g(o??[])}),()=>{i=!0}},[t.id]),s.useEffect(()=>{let i=!1;return(async()=>{const{data:o}=await b.from("cross_published_stories").select(`
2          display_label,
3          stories:origin_story_id(
4            id, title, slug, excerpt, featured_image_url, author, published_at, site_id
5          )
6        `).eq("target_site_id",t.id).order("created_at",{ascending:!1}).limit(3);
6if(i||!(o!=null&&o.length))return;const k=o,N=Array.from(new Set(k.map(v=>{var A;return(A=v.stories)==null?void 0:A.site_id}).filter(v=>!!v)));if(N.length===0){S(k);return}const{data:G}=await b.from("publications").select("id, name, domain").in("id",N);if(i)return;const Y=new Map((G??[]).map(v=>[v.id,v]));S(k.map(v=>{var A;return{...v,origin_publication:(A=v.stories)!=null&&A.site_id?Y.get(v.stories.site_id)??null:null}}))})(),()=>{i=!0}},[t.id]),s.useEffect(()=>{let i=!1;return re().then(o=>{i||c(o)}).catch(()=>{}),()=>{i=!0}},[]),s.useEffect(()=>{let i=!1;return b.from("magazine_editions").select("title, slug, cover_image_url, description").eq("site_id",t.id).eq("is_published",!0).eq("status","ready").order("publish_date",{ascending:!1}).limit(1).maybeSingle().then(({data:o})=>{i||C(o??null)}),()=>{i=!0}},[t.id]),s.useEffect(()=>{let i=!1;return b.from("places").select("*").eq("site_id",t.id).eq("is_published",!0).eq("is_permanently_closed",!1).not("latitude","is",null).not("longitude","is",null).limit(30).then(({data:o})=>{i||W(o??[])}),()=>{i=!0}},[t.id]);const V=(q=t.settings)==null?void 0:q.hero_image_url;return e.jsxs(Z,{children:[e.jsx(J,{route:"/",when:n.length>0}),e.jsxs("main",{style:{fontFamily:"var(--sp-body-font)",color:"var(--sp-text-strong)"},children:[e.jsx(pe,{title:t.name,tagline:((B=t.settings)==null?void 0:B.tagline)??"Your guide to Malibu",imageUrl:V,videoUrls:de}),e.jsx(L,{slug:"guide-home-hero-bottom"}),d&&e.jsx(xe,{weather:d}),e.jsx(_,{children:e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(240px, 1fr))",gap:20},children:[e.jsx(I,{to:"/plan",kicker:"Personalized",title:"Build Your Itinerary",copy:"Six quick questions, a custom day-by-day plan.",accent:"var(--sp-guide-coral, #E8A598)"}),e.jsx(I,{to:"/places",kicker:"Curated",title:"Browse Places",copy:"Restaurants, beaches, hotels, hidden spots.",accent:"var(--sp-guide-sand, #D4B896)"}),e.jsx(I,{to:"/map",kicker:"Spatial",title:"Explore the Map",copy:"Every place plotted, filterable by category.",accent:"var(--sp-guide-fog, #7A9CAB)"})]})}),n.length>0&&e.jsxs(_,{children:[e.jsx(w,{kicker:"This Weekend",title:"Worth a stop",link:{to:"/places",label:"Browse all places →"}}),e.jsx(R,{children:n.map(i=>e.jsx(O,{place:i,size:"standard"},i.id))})]}),h.length>0&&e.jsxs(_,{background:"var(--sp-guide-cream, #FAF6F0)",children:[e.jsx(w,{kicker:"Editor's Picks",title:"Curated itineraries",link:{to:"/itineraries",label:"All itineraries →"}}),e.jsx(R,{children:h.map(i=>i.slug?e.jsx(ue,{itinerary:i},i.id):null)})]}),e.jsxs(_,{children:[e.jsx(w,{kicker:"By Category",title:"What are you in the mood for?"}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:16},children:r.map(i=>e.jsxs(y,{to:`/places/${i.category}`,style:{background:"#fff",borderRadius:12,padding:"24px 16px",textAlign:"center",textDecoration:"none",color:"var(--sp-text-strong)",boxShadow:"0 2px 12px rgba(42, 42, 42, 0.04)",border:"1px solid var(--sp-border-light)",transition:"transform 0.15s ease, box-shadow 0.15s ease"},children:[e.jsx("div",{style:{fontSize:32,marginBottom:8},"aria-hidden":!0,children:ie(i.category)}),e.jsx("div",{style:{fontFamily:"var(--sp-heading-font)",fontSize:18,fontWeight:500},children:se(i.category,"plural")})]},i.category))})]}),e.jsx(L,{slug:"guide-home-mid"}),(u.length>0||j.length>0)&&e.jsxs(_,{children:[e.jsx(w,{kicker:"Read",title:"Featured stories"}),e.jsxs(R,{children:[u.map(i=>e.jsx(ge,{story:i},i.id)),j.map(i=>{var o,k;return(o=i.stories)!=null&&o.slug&&((k=i.origin_publication)!=null&&k.domain)?e.jsx(fe,{title:i.stories.title,excerpt:i.stories.excerpt,image:i.stories.featured_image_url,href:`https://${i.origin_publication.domain}/${i.stories.slug}`,originName:i.origin_publication.name,label:i.display_label},i.stories.id):null})]})]}),p.length>0&&e.jsxs(_,{background:"var(--sp-guide-cream, #FAF6F0)",children:[e.jsx(w,{kicker:"Off the beaten path",title:"Hidden gems",link:{to:"/places?tag=hidden-gem",label:"See more →"}}),e.jsx(R,{children:p.map(i=>e.jsx(O,{place:i,size:"standard"},i.id))})]}),e.jsx(oe,{}),m&&e.jsx(me,{issue:m}),e.jsx(_,{children:e.jsxs("div",{style:{maxWidth:560,margin:"0 auto",textAlign:"center"},children:[e.jsx("h2",{style:D,children:"Curated picks, occasionally"}),e.jsx("p",{style:{fontSize:16,color:"var(--sp-text-mid)",margin:"0 0 24px"},children:"No daily blast. We send when we have something worth your time."}),e.jsx(he,{})]})}),x.length>=3&&e.jsxs(_,{children:[e.jsx(w,{kicker:"Spatial",title:"The map",link:{to:"/map",label:"Open full map →"}}),e.jsx(Q,{places:x,height:360,initialCenter:{lat:Number(((P=t.settings)==null?void 0:P.map_center_lat)??34.0259),lng:Number((($=t.settings)==null?void 0:$.map_center_lng)??-118.7798)},initialZoom:Number(((M=t.settings)==null?void 0:M.map_default_zoom)??11)})]})]})]})}function pe({title:t,tagline:r,imageUrl:n,videoUrls:f}){const p=f??[],l=p.length>0,[h,a]=s.useState(0),u=s.useRef([]),g=s.useRef(!1);s.useEffect(()=>{g.current=!1},[h]),s.useEffect(()=>{if(!l)return;const d=u.current[0];d&&d.play().catch(()=>{})},[l]);const j=d=>
6{if(d!==h||g.current)return;g.current=!0;const c=(d+1)%p.length,m=u.current[c];m&&(m.currentTime=0,m.play().catch(()=>{})),a(c);const C=u.current[d];C&&setTimeout(()=>{C.pause()},E)},S=d=>{if(d!==h||g.current)return;const c=u.current[d];!c||!isFinite(c.duration)||c.duration<E/1e3+1||c.currentTime<c.duration-E/1e3||j(d)},x=d=>j(d),W=l?(h+1)%p.length:0;return e.jsxs("section",{style:{position:"relative",width:"100%",minHeight:"min(80vh, 720px)",background:n?"transparent":"linear-gradient(135deg, var(--sp-guide-cream, #FAF6F0), #ffffff 70%)",overflow:"hidden"},children:[l?p.map((d,c)=>e.jsx("video",{ref:m=>{u.current[c]=m},src:d,autoPlay:c===0,muted:!0,playsInline:!0,poster:n,preload:c===h||c===W?"auto":"metadata",onTimeUpdate:()=>S(c),onEnded:()=>x(c),style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",opacity:c===h?1:0,transition:`opacity ${E}ms ease-in-out`}},d)):n?e.jsx(F,{src:n,alt:"",style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}):null,(l||n)&&e.jsx("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to bottom, rgba(42, 42, 42, 0.25) 0%, rgba(42, 42, 42, 0.55) 100%)"}}),e.jsxs("div",{style:{position:"relative",maxWidth:960,margin:"0 auto",padding:"120px 24px 96px",textAlign:"center",color:n||l?"#fff":"var(--sp-text-strong)"},children:[e.jsx("h1",{style:{fontFamily:"var(--sp-heading-font)",fontSize:"clamp(40px, 7vw, 72px)",fontWeight:500,letterSpacing:"-0.015em",margin:"0 0 20px",lineHeight:1.05},children:t}),e.jsx("p",{style:{fontFamily:"var(--sp-body-font)",fontSize:"clamp(16px, 2vw, 20px)",lineHeight:1.5,margin:"0 0 36px",opacity:.92},children:r}),e.jsxs("div",{style:{display:"flex",gap:12,justifyContent:"center",flexWrap:"wrap"},children:[e.jsx(y,{to:"/plan",style:{padding:"14px 28px",fontSize:16,fontWeight:600,color:"#fff",background:"var(--sp-guide-coral, #E8A598)",borderRadius:999,textDecoration:"none"},children:"Plan My Visit →"}),e.jsx(y,{to:"/itineraries",style:{padding:"14px 28px",fontSize:16,fontWeight:600,color:n||l?"#fff":"var(--sp-text-strong)",background:n||l?"rgba(255, 255, 255, 0.15)":"transparent",border:`1px solid ${n||l?"rgba(255, 255, 255, 0.4)":"var(--sp-border)"}`,borderRadius:999,textDecoration:"none",backdropFilter:n||l?"blur(2px)":"none"},children:"Browse Itineraries"})]})]})]})}function _({children:t,background:r}){return e.jsx("section",{style:{background:r,padding:`${ce/2}px 0`},children:e.jsx("div",{style:{maxWidth:1200,margin:"0 auto",padding:"0 24px"},children:t})})}function w({kicker:t,title:r,link:n}){return e.jsxs("header",{style:{marginBottom:32,display:"flex",alignItems:"flex-end",justifyContent:"space-between",gap:16,flexWrap:"wrap"},children:[e.jsxs("div",{children:[e.jsx("p",{style:z,children:t}),e.jsx("h2",{style:D,children:r})]}),n&&e.jsx(y,{to:n.to,style:{fontSize:14,color:"var(--sp-guide-fog, #7A9CAB)",fontWeight:600,textDecoration:"none"},children:n.label})]})}function R({children:t}){return e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:24},children:t})}function I({to:t,kicker:r,title:n,copy:f,accent:p}){return e.jsxs(y,{to:t,style:{display:"block",padding:28,background:"#fff",borderRadius:16,textDecoration:"none",color:"var(--sp-text-strong)",boxShadow:"0 4px 24px rgba(42, 42, 42, 0.06)",borderTop:`4px solid ${p}`,transition:"transform 0.15s ease, box-shadow 0.15s ease"},children:[e.jsx("p",{style:{...z,color:p,fontSize:11},children:r}),e.jsx("h3",{style:{fontFamily:"var(--sp-heading-font)",fontSize:24,fontWeight:500,margin:"0 0 8px"},children:n}),e.jsx("p",{style:{fontSize:14,color:"var(--sp-text-mid)",margin:"0 0 12px",lineHeight:1.5},children:f}),e.jsx("span",{style:{fontSize:13,color:p,fontWeight:600},children:"Continue →"})]})}function ue({itinerary:t}){const r=t.duration_type?le[t.duration_type]:null;return e.jsxs(y,{to:`/itinerary/${t.slug}`,style:{display:"block",textDecoration:"none",color:"inherit",background:"#fff",borderRadius:12,overflow:"hidden",boxShadow:"0 4px 24px rgba(42, 42, 42, 0.08)"},children:[t.hero_image_url&&e.jsx("div",{style:{aspectRatio:"4 / 5",background:"var(--sp-guide-cream, #FAF6F0)"},children:e.jsx(F,{src:t.hero_image_url,alt:t.title,loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover"}})}),e.jsxs("div",{style:{padding:16},children:[r&&e.jsx("p",{style:{...z,fontSize:11,margin:"0 0 6px"},children:r}),e.jsx("h3",{style:{fontFamily:"var(--sp-heading-font)",fontSize:22,fontWeight:500,margin:"0 0 6px",lineHeight:1.2},children:t.title}),t.subtitle&&e.jsx("p",{style:{margin:0,fontSize:13,color:"var(--sp-text-mid)",lineHeight:1.5},children:t.subtitle})]})]})}function ge({story:t}){return e.jsxs(y,{to:`/${t.slug}`,style:{display:"block",textDecoration:"none",color:"inherit",background:"#fff",borderRadius:12,overflow:"hidden",boxShadow:"0 4px 24px rgba(42, 42, 42, 0.06)"},children:[t.featured_image_url&&e.jsx("div",{style:{aspectRatio:"16 / 9",background:"var(--sp-guide-cream, #FAF6F0)"},children:e.jsx(F,{src:t.featured_image_url,alt:t.title,loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover"}})}),e.jsxs("div",{style:{padding:16},children:[e.jsx("h3",{style:{fontFamily:"var(--sp-heading-font)",fontSize:22,fontWeight:500,margin:"0 0 8px",lineHeight:1.25},children:t.title}),t.excerpt&&e.jsx("p",{style:{margin:0,fontSize:14,color:"var(--sp-text-mid)",lineHeight:1.5},children:t.excerpt}),t.author&&e.jsxs("p",{style:{margin:"12px 0 0",fontSize:12,color:"var(--sp-text-muted)"},children:["By ",t.author]})]})]})}function fe({title:t,excerpt:r,image:n,href:f,originName:p,label:l}){return e.jsxs("a",{href:f,target:"_blank",rel:"noopener noreferrer",style:{display:"block",textDecoration:"none",color:"inherit",background:"#fff",borderRadius:12,overflow:"hidden",border:"1px solid var(--sp-border-light)",boxShadow:"0 4px 24px rgba(42, 42, 42, 0.04)",position:"relative"},children:[n&&e.jsx("div",{style:{aspectRatio:"16 / 9",background:"var(--sp-guide-cream, #FAF6F0)"},children:e.jsx(F,{src:n,alt:t,loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover"}})}),e.jsxs("div",{style:{padding:16},children:[e.jsx("p",{style:{...z,fontSize:11,color:"var(--sp-guide-fog, #7A9CAB)",margin:"0 0 6px"},children:l??`From ${p}`}),e.jsx("h3",{style:{fontFamily:"var(--sp-heading-font)",fontSize:22,fontWeight:500,margin:"0 0 8px",lineHeight:1.25},children:t}),r&&e.jsx("p",{style:{margin:0,fontSize:14,color:"var(--sp-text-mid)",lineHeight:1.5},children:r})]})]})}function he(){return e.jsx(ae,{})}function xe({weather:t}){const r=ne(t.current.weatherCode,t.current.isDay);return e.jsx("section",{style:{background:"#fff",padding:"24px 0",borderBottom:"1px solid var(--sp-border-light)"},children:e.jsxs("div",{style:{maxWidth:1200,margin:"0 auto",padding:"0 24px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:16,flexWrap:"wrap"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16},children:[e.jsx("span",{style:{fontSize:40}
6,"aria-hidden":!0,children:r.icon}),e.jsxs("div",{children:[e.jsx("p",{style:{...z,margin:"0 0 2px"},children:"Today on the water"}),e.jsxs("p",{style:{margin:0,fontFamily:"var(--sp-heading-font)",fontSize:22,fontWeight:500},children:[t.current.temperatureF,"° · ",r.label," · wind ",t.current.windMph," mph"]})]})]}),e.jsx(y,{to:"/weather",style:{padding:"10px 20px",fontSize:14,fontWeight:600,color:"#fff",background:"var(--sp-guide-fog, #7A9CAB)",borderRadius:999,textDecoration:"none"},children:"Full forecast & surf report →"})]})})}function me({issue:t}){if(!t.slug)return null;const r=`/magazine/${t.slug}`;return e.jsxs(_,{background:"var(--sp-guide-cream, #FAF6F0)",children:[e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"minmax(180px, 280px) 1fr",gap:32,alignItems:"center"},children:[e.jsx(y,{to:r,style:{display:"block"},children:t.cover_image_url?e.jsx(F,{src:t.cover_image_url,alt:`${t.title??"Latest issue"} cover`,loading:"lazy",style:{width:"100%",aspectRatio:"8.5 / 11",objectFit:"cover",borderRadius:8,boxShadow:"0 12px 32px rgba(42, 42, 42, 0.18)"}}):e.jsx("div",{style:{width:"100%",aspectRatio:"8.5 / 11",background:"#fff",borderRadius:8,boxShadow:"0 12px 32px rgba(42, 42, 42, 0.18)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:48},"aria-hidden":!0,children:"📘"})}),e.jsxs("div",{children:[e.jsx("p",{style:z,children:"The magazine"}),e.jsx("h2",{style:D,children:t.title??"Latest issue"}),t.description&&e.jsx("p",{style:{fontSize:15,color:"var(--sp-text-mid)",lineHeight:1.6,margin:"0 0 20px"},children:t.description}),e.jsxs("div",{style:{display:"flex",gap:12,flexWrap:"wrap"},children:[e.jsx(y,{to:r,style:{display:"inline-block",padding:"14px 28px",fontSize:15,fontWeight:600,color:"#fff",background:"var(--sp-guide-coral, #E8A598)",borderRadius:999,textDecoration:"none"},children:"Read the magazine →"}),e.jsx(X,{})]})]})]}),e.jsx("style",{children:`
7        @media (max-width: 720px) {
8          section > div > div { grid-template-columns: 1fr !important; text-align: center; }
9        }
10      `})]})}export{Ie 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.