PageSourceSearch

https://southernfm.com.au/assets/GetInvolved-BfSlBdE9.js

js southernfm.com.au collected 2026-09-24 21:13:21 UTC 10,929 bytes, 1 lines download raw bytes

1import{k as G,r as m,u as p,l as D,j as e,L as J,S as W,C as I,n as O,B as P,i as U,A as K}from"./index-CysU2Jg9.js";import{p as Q,f as V,a as X,E as Y}from"./EnquiryForm-CmyUN08j.js";import{P as Z}from"./PageHeader-tcsahsuR.js";import{J as ee}from"./JustifiedGallery-Ctm_7sc4.js";import{s as te}from"./shuffle-BcLUN6dP.js";import{r as b}from"./resolve-icon-CakB_cEu.js";import"./input-UNMuvhAA.js";import"./label-CLsWIlGF.js";import"./textarea-BId7pPGh.js";import"./checkbox-BpTkFBno.js";import"./check-CMDL-7uT.js";import"./select-D_KGIcT1.js";import"./upload-rules-Qd9pVdD-.js";import"./form-config-DBWkGO_e.js";import"./arrow-left-DtRFkuOL.js";import"./send-2tuXyMJR.js";import"./map-pin-DCjLi05Y.js";import"./chevron-left-DZiAb83u.js";import"./chevron-right-C4GdRsTP.js";import"./sparkles-CLxxs2QB.js";import"./mic-vocal-B-zapFJF.js";import"./wrench-B8lZnE01.js";const $=()=>{if(typeof window>"u")return 2;const s=window.innerWidth;return s>=1024?6:s>=768?3:2};function se(s,i){if(!s||!s.includes("{{studioFees}}"))return s;if(!i)return s.replace("{{studioFees}}","");const x=parseFloat(String(i.ratePerShow).replace(/[^0-9.]/g,""))||0,d=parseInt(String(i.weeksInAdvance),10)||0,j=x&&d?`$${(x*d).toFixed(x%1?2:0)}`:"",u=d&&x?` (e.g. ${d} weeks × ${i.ratePerShow} = ${j})`:"",v=`<p><strong>Studio Fees:</strong> ${i.intro} The current rate is <strong>${i.ratePerShow} per show</strong>, paid six months in advance${u}. ${i.sponsorWaiverNote}</p>`;return s.replace("{{studioFees}}",v)}const Se=()=>{var _,S;const s=G("get-involved"),[i,x]=m.useState(null),[d,j]=m.useState($),[u,v]=m.useState(null),h=m.useRef(null),w=p("header_get_involved"),N=D("global","gallery"),F=m.useMemo(()=>te(N),[N]),E=p("tab_role_presenting"),C=p("tab_role_programming"),L=p("tab_role_technology"),R=p("tab_role_fundraising"),H=p("tab_role_marketing"),M=p("tab_role_administration"),A={tab_role_presenting:E,tab_role_programming:C,tab_role_technology:L,tab_role_fundraising:R,tab_role_marketing:H,tab_role_administration:M};m.useEffect(()=>{var o;if(typeof window>"u")return;const t=window.location.hash.replace(/^#/,"");if(!t)return;const[r,l]=t.split("?");if(r==="enquire"){const n=new URLSearchParams(l??""),a=n.get("interest"),f=n.get("show")??void 0;if(a){const k=s.roles.find(B=>B.interest.toLowerCase()===a.toLowerCase());k&&x(k.title)}(o=h.current)==null||o.prefill({intent:"get-involved",area:a??void 0,vacantShowId:f})}},[s.roles]),m.useEffect(()=>{if(typeof window>"u")return;const t=()=>j($());return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);const z=t=>{var r;(r=h.current)==null||r.prefill({intent:"get-involved",area:t,skipToStep:1})},T=t=>x(r=>r===t?null:t),g=i?s.roles.findIndex(t=>t.title===i):-1,q=g>=0?Math.min(Math.floor(g/d)*d+d-1,s.roles.length-1):-1,c=g>=0?s.roles[g]:null,y=c?b(c.icon):null;return e.jsxs(J,{children:[e.jsx(W,{title:"Get Involved - 88.3 Southern FM",description:"Become a presenter, volunteer or member of 88.3 Southern FM — Bayside Melbourne's community radio station.",path:"/get-involved"}),e.jsx(Z,{title:s.header.title,description:s.header.description,backgroundImage:w.src,backgroundImageSrcSet:w.srcSet}),e.jsx("div",{className:"bg-muted/30",children:e.jsxs("div",{className:"page-content w-full py-10",children:[e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-3 mb-12",children:s.roles.map((t,r)=>{const l=i===t.title,o=b(t.icon),n=t.photoSlot?A[t.photoSlot]:void 0;return e.jsxs(m.Fragment,{children:[e.jsxs("button",{type:"button",onClick:()=>T(t.title),"aria-expanded":l,className:`text-left bg-card rounded-2xl border transition-all duration-200 group overflow-hidden ${l?"border-sfm-blue shadow-md":"border-border hover:border-sfm-blue/40 hover:shadow-sm"}`,children:[n?e.jsx("div",{className:"aspect-[4/3] w-full overflow-hidden bg-muted",children:e.jsx("img",{src:n.src,srcSet:n.srcSet,sizes:"(min-width: 1024px) 15vw, (min-width: 768px) 30vw, 45vw",alt:`${t.title} at Southern FM`,loading:"lazy",className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"})}):e.jsx("div",{className:"aspect-[4/3] w-full flex items-center justify-center bg-gradient-to-br from-sfm-blue/10 to-sfm-blue/5",children:e.jsx(o,{className:"h-10 w-10 text-sfm-blue"})}),e.jsx("div",{className:"p-4",children:e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("h2",{className:"font-display text-sm font-bold text-foreground",children:t.title}),e.jsx(I,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 flex-shrink-0 ${l?"rotate-180":""}`})]})})]}),r===q&&c&&y&&e.jsx("div",{className:"col-span-2 md:col-span-3 lg:col-span-6 bg-card rounded-3xl border border-border shadow-sm overflow-hidden animate-in fade-in slide-in-from-top-2 duration-200",children:e.jsxs("div",{className:"p-6 md:p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"h-12 w-12 rounded-2xl bg-sfm-blue/10 flex items-center justify-center",children:e.jsx(y,{className:"h-6 w-6 text-sfm-blue"})}),e.jsx("h3",{className:"font-display text-2xl font-bold text-foreground",children:c.title})]}),e.jsx("div",{className:"text-sm text-muted-foreground leading-relaxed [&_p]:mb-3 [&_p:last-child]:mb-0 [&_strong]:text-foreground",dangerouslySetInnerHTML:{__html:O(se(c.details,s.studioFees))}}),e.jsx("div",{className:"mt-6",children:e.jsxs(P,{variant:"hero",size:"lg",className:"px-4 sm:px-8 text-xs sm:text-base whitespace-normal text-center",onClick:()=>z(c.interest),children:["Enquire About ",c.title]})})]})},`${c.title}
1-details`)]},t.title)})}),((S=(_=s.schools)==null?void 0:_.programs)==null?void 0:S.length)>0&&(()=>{const t=s.schools.programs,r=t.find(o=>o.key===u),l=r?b(r.icon):null;return e.jsx("div",{id:"schools",className:"scroll-mt-24 mb-12",children:e.jsxs("div",{className:"bg-card rounded-2xl border border-border p-4 sm:p-5",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[e.jsxs("p",{className:"text-sm text-muted-foreground",children:[e.jsxs("span",{className:"font-semibold text-foreground",children:[s.schools.prompt," "]}),s.schools.subtext]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.map(o=>{const n=b(o.icon),a=u===o.key;return e.jsxs("button",{type:"button",onClick:()=>v(a?null:o.key),"aria-expanded":a,className:`inline-flex items-center gap-1.5 text-sm font-semibold rounded-full pl-3 pr-2.5 py-1.5 border transition-colors ${a?"bg-sfm-blue text-white border-sfm-blue":"bg-card text-foreground border-border hover:border-sfm-blue/40"}`,children:[e.jsx(n,{className:"h-3.5 w-3.5"}),o.tabLabel,e.jsx(I,{className:`h-3.5 w-3.5 transition-transform duration-200 ${a?"rotate-180":""}`})]},o.key)})})]}),r&&l&&e.jsx("div",{className:"mt-4 pt-4 border-t border-border animate-in fade-in slide-in-from-top-2 duration-200",children:e.jsxs("div",{className:"grid md:grid-cols-[minmax(0,1fr),minmax(0,1.2fr)] gap-6",children:[e.jsxs("div",{className:"min-w-0 flex flex-col justify-center",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("div",{className:"h-10 w-10 rounded-xl bg-sfm-blue/10 flex items-center justify-center flex-shrink-0",children:e.jsx(l,{className:"h-5 w-5 text-sfm-blue"})}),e.jsx("span",{className:"text-xs font-bold text-primary uppercase tracking-widest",children:r.eyebrow})]}),e.jsx("h2",{className:"font-display text-xl md:text-2xl font-bold text-foreground mb-2",children:r.heading}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-4",children:r.body}),e.jsx("div",{children:e.jsx(P,{asChild:!0,variant:"hero",className:"h-auto py-2.5 px-4 sm:px-8 text-xs sm:text-base whitespace-normal text-center",children:e.jsxs(U,{to:r.ctaHref,children:[r.ctaLabel,e.jsx(K,{className:"ml-1 h-4 w-4 flex-shrink-0"})]})})})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-widest text-muted-foreground mb-3",children:r.logosHeading}),r.images&&r.images.length>0?e.jsx("div",{className:"grid gap-3",style:{gridTemplateColumns:"repeat(auto-fit, minmax(90px, 1fr))"},children:r.images.map((o,n)=>{const a=typeof o=="string"?{src:o,href:void 0}:o,f=e.jsx("div",{className:"h-20 flex items-center justify-center",children:e.jsx("img",{src:a.src,alt:`${r.tabLabel} ${n+1}`,loading:"lazy",className:"h-full max-w-full object-contain rounded-lg"})});return a.href?e.jsx("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",className:"block transition-opacity hover:opacity-85",children:f},n):e.jsx("div",{children:f},n)})}):e.jsx("div",{className:"rounded-lg border border-dashed border-border p-5 text-center text-sm text-muted-foreground",children:"Images will appear here once added."})]})]})})]})})})(),e.jsxs("div",{id:"membership",className:"scroll-mt-24",children:[e.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold text-foreground mb-2",children:s.membershipHeading.heading}),e.jsx("p",{className:"text-muted-foreground mb-6 max-w-2xl",children:s.membershipHeading.body}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-6 gap-4",children:s.memberships.map(t=>{const r=Q(t.price),l=r&&!r.isFullPrice;return e.jsxs("button",{type:"button",onClick:()=>{var o;return(o=h.current)==null?void 0:o.prefill({intent:"become-member",membership:t.value,skipToStep:1})},className:"text-left bg-card rounded-2xl p-5 border border-border hover:border-sfm-blue/60 hover:shadow-md hover:-translate-y-0.5 transition-all duration-200",children:[e.jsx("h3",{className:"font-display text-base font-bold text-foreground",children:t.name}),e.jsxs("p",{className:"font-display text-2xl font-bold text-sfm-blue mt-1 mb-1",children:[t.price,e.jsx("span",{className:"text-xs font-medium text-muted-foreground ml-1",children:"/ year"})]}),l&&e.jsxs("p",{className:"text-xs font-semibold text-primary mb-2",children:[V(r.prorated)," pro-rata until ",X(r.nextReset)]}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t.description})]},t.value)})}),e.jsx("p",{className:"text-xs text-muted-foreground mt-6 max-w-3xl leading-relaxed",children:s.membershipFootnote})]})]})}),e.jsx("section",{className:"bg-muted/30 py-10",children:e.jsxs("div",{className:"page-content w-full",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("span",{className:"inline-flex items-center gap-2 text-xs font-bold text-primary uppercase tracking-widest mb-3",children:s.galleryHeading.eyebrow}),e.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold text-foreground",children:s.galleryHeading.heading})]}),e.jsx(ee,{photos:F,rowHeight:240,className:"rounded-3xl"})]})}),e.jsx("section",{className:"bg-muted/30 py-10",children:e.jsx("div",{className:"page-content w-full",children:e.jsx(Y,{ref:h,defaultIntent:"get-involved"})})})]})};export{Se 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.