1import{f as ne,a6 as se,r as f,h as le,j as e,A as Q,m as Z,s as ie,a8 as J}from"./index-BQMq430i.js";import{H as ce}from"./Header-Y8QN0AeW.js";import{P as de}from"./PromoHeader-B-1AnINZ.js";import{F as me}from"./FloatingTabMenu-BJlJrNql.js";import{P as he}from"./PageTransition-CqrpBRDM.js";import{S as ue}from"./SEOHead-As_b_QYN.js";import{C as pe,a as xe}from"./card-CHcTRSgj.js";import{I as q}from"./input-BP7Py1Is.js";import{L as G}from"./label-rYocCHVx.js";import{B as fe}from"./button-BsvbXC3d.js";import{C as ge}from"./checkbox-fxIGP3HJ.js";import{u as we}from"./useLocationsData-C6pzb_bQ.js";import{s as be}from"./geoProxy-DoTt1UoO.js";import{s as ye}from"./TelegramFailedNotification-BNQ5WIHy.js";import{U as ve}from"./user-Cm2bxa88.js";import{P as je}from"./phone-UZwa2WV8.js";import{C as ee}from"./chevron-down-Dfk7nldf.js";import{S as te}from"./search-SBU4vSbn.js";import{M as Ne}from"./mail-DAZuUMIp.js";import{M as Me}from"./map-pin-C6h6B2vT.js";import{M as Ce}from"./message-circle-4DO6Cf2U.js";import{T as Te}from"./target-3bagXkx4.js";import{A as Se}from"./activity-_wCuM_st.js";import{G as ke}from"./gift-CDdfOZHp.js";import"./SmartForm-EEJQRo_p.js";import"./User-DAsZXEzB.js";import"./_rollupPluginBabelHelpers-3bc641ae-BvzpwIKU.js";import"./index-Ct6kPtID.js";import"./ArrowDown2-BvuBzevL.js";import"./Location-BvaGDYTq.js";import"./clock-DaPrWaqm.js";import"./Category-Dok3wMC2.js";import"./index-DM5PHXEV.js";import"./index-CqRmq7Np.js";import"./check-DJ5o7Z3G.js";import"./locations-BpQ-72a-.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 K=ne("Ghost",[["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}],["path",{d:"M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z",key:"uwwb07"}]]),ae=[{code:"ID",name:"Indonesia",dialCode:"+62",flag:"ð®ð©"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"ð¸ð¬"},{code:"MY",name:"Malaysia",dialCode:"+60",flag:"ð²ð¾"},{code:"US",name:"United States",dialCode:"+1",flag:"ðºð¸"},{code:"AU",name:"Australia",dialCode:"+61",flag:"ð¦ðº"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"ð³ð¬"},{code:"CI",name:"Côte d'Ivoire",dialCode:"+225",flag:"ð¨ð®"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"ð¿ð¦"},{code:"AO",name:"Angola",dialCode:"+244",flag:"ð¦ð´"}],Ae=["Vampire","Zombie","Witch","Ghost","Pirate","Superhero","Other"],Pe=()=>{const{trackFormOpen:M,trackButtonClick:T,trackFormConversion:L}=se(),{locations:u}=we(),i=f.useMemo(()=>u.filter(t=>String(t.status||"").toLowerCase()!=="closed"),[u]),[o,a]=f.useState({fullName:"",email:"",phone:"",selectedBranch:"",costumeTheme:"",agreeToTerms:!1}),[g,A]=f.useState({}),[I,z]=f.useState(!1),[R,F]=f.useState(!1),[m,E]=f.useState(ae[0]),[y,P]=f.useState(!1),[d,O]=f.useState(""),[B,_]=f.useState(!1),[j,w]=f.useState(""),D=ae.filter(t=>(t.name+" "+t.dialCode).toLowerCase().includes(d.toLowerCase())),H=i.map(t=>({label:`${t.name} - ${t.area}`,value:t.name})).filter(t=>t.label.toLowerCase().includes(j.toLowerCase()));le.useEffect(()=>{M("halloween_event_form")},[M]);const k=(t,r)=>{switch(t){case"fullName":return String(r).trim()?void 0:"Nama lengkap wajib diisi";case"phone":return String(r).replace(/\D/g,"").length<8?"Nomor WhatsApp minimal 8 angka":void 0;case"selectedBranch":return String(r).trim()?void 0:"Pilih lokasi gym";case"agreeToTerms":return r?void 0:"Wajib menyetujui syarat & ketentuan";default:return}},N=(t,r)=>{a(n=>({...n,[t]:r})),g[t]&&A(n=>({...n,[t]:void 0}))},$=t=>{let r=t.replace(/\D/g,"");m.code==="ID"&&(r.startsWith("62")?r=r.substring(2):r.startsWith("0")&&(r=r.substring(1))),r=r.substring(0,13);const n=[];r.length>0&&n.push(r.substring(0,4)),r.length>4&&n.push(r.substring(4,8)),r.length>8&&n.push(r.substring(8));const p=n.join("-");a(v=>({...v,phone:p})),g.phone&&A(v=>({...v,phone:void 0}))},W=async t=>{t.preventDefault(),T("submit_halloween_event_form",{branch:o.selectedBranch,costume:o.costumeTheme||"none",country:m.code});const r={};
6if(Object.keys(o).forEach(n=>{const p=k(n,o[n]);p&&(r[n]=p)}),A(r),!(Object.keys(r).length>0)){z(!0);try{const n=new Date,p=n.toLocaleDateString("id-ID"),v=n.toLocaleTimeString("id-ID"),b=o.phone.replace(/-/g,""),C=`${m.dialCode}${b}`,h={fullName:o.fullName,email:o.email,phone:b,phone_with_plus:C,phone_without_plus:b,country_code:m.code,branch:o.selectedBranch,costumeTheme:o.costumeTheme,timestamp:{date:p,time:v},formType:"halloween_event",metadata:{userAgent:navigator.userAgent,formUrl:window.location.href}},c=be("bCKl4IZoD1tEK0BVVhEvX",h),x=ie.from("website_leads").insert({full_name:h.fullName,email:h.email,phone:h.phone_with_plus,branch:h.branch,source:"Halloween Event",ip_address:"",location:"",metadata:{...h.metadata,costumeTheme:h.costumeTheme,formType:"halloween_event",fbc:J("_fbc"),fbp:J("_fbp")},status:"new"}),[l,s]=await Promise.all([c,x]);if(s!=null&&s.error)throw console.error("Supabase DB error:",s.error),new Error(`Database error: ${s.error.message}`);l.ok||(console.warn("Webhook delivery warning (data safely preserved in DB):",l.error||l.status),ye()),L(h),T("halloween_event_form_success",{branch:o.selectedBranch,country:m.code}),F(!0),a({fullName:"",email:"",phone:"",selectedBranch:"",costumeTheme:"",agreeToTerms:!1})}catch(n){console.error("Error submitting form:",n),T("halloween_event_form_error",{error:n instanceof Error?n.message:"Unknown error",branch:o.selectedBranch}),window.location.href="/gagal-terkirim"}finally{z(!1)}}};return e.jsx(pe,{className:"bg-white",children:e.jsx(xe,{className:"p-4",children:e.jsxs("form",{onSubmit:W,className:"space-y-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs(G,{htmlFor:"fullName",className:"flex items-center gap-1",children:[e.jsx(ve,{className:"w-4 h-4"})," Nama Lengkap"]}),e.jsx(q,{id:"fullName",name:"fullName",placeholder:"Mis. Katon Baskoro",value:o.fullName,onChange:t=>N("fullName",t.target.value)}),g.fullName&&e.jsx("p",{className:"text-red-600 text-xs",children:g.fullName})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs(G,{htmlFor:"phone",className:"flex items-center gap-1",children:[e.jsx(je,{className:"w-4 h-4"})," Nomor WhatsApp"]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("button",{type:"button",onClick:()=>P(t=>!t),className:"flex items-center gap-2 px-3 py-2.5 border border-gray-300 rounded-lg bg-white hover:bg-gray-50 h-11 transition-colors","aria-label":"Country selector",children:[e.jsx("span",{className:"text-lg",children:m.flag}),e.jsx("span",{className:"text-sm font-medium",children:m.dialCode}),e.jsx(ee,{className:"w-4 h-4 text-gray-400"})]}),e.jsx(Q,{children:y&&e.jsxs(Z.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0,y:-5},className:"absolute top-full left-0 mt-1 w-64 bg-white border border-gray-200 rounded-lg shadow-lg z-50 max-h-64 overflow-hidden",children:[e.jsx("div",{className:"p-3 border-b border-gray-200",children:e.jsxs("div",{className:"relative",children:[e.jsx(te,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),e.jsx("input",{type:"text",placeholder:"Cari negara...",value:d,onChange:t=>O(t.target.value),className:"w-full pl-10 pr-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",autoFocus:!0})]})}),e.jsx("div",{className:"max-h-48 overflow-y-auto",children:D.length>0?D.map(t=>e.jsxs("button",{type:"button",onClick:()=>{E(t),P(!1),O("")},className:"w-full flex items-center gap-3 px-3 py-2 hover:bg-gray-100 text-left transition-colors",children:[e.jsx("span",{className:"text-lg",children:t.flag}),e.jsx("span",{className:"text-sm font-medium",children:t.dialCode}),e.jsx("span",{className:"text-sm text-gray-600",children:t.name})]},t.code)):e.jsx("div",{className:"px-3 py-4 text-center text-sm text-gray-500",children:"Tidak ada negara"})})]})})]}),e.jsx(q,{id:"phone",name:"phone",placeholder:"812-3456-7890",value:o.phone,onChange:t=>$(t.target.value),className:`flex-1 h-11 ${g.phone?"border-red-500 focus-visible:ring-red-500":""}`})]}),g.phone&&e.jsx("p",{className:"text-red-600 text-xs",children:g.phone})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs(G,{htmlFor:"email",className:"flex items-center gap-1",children:[e.jsx(Ne,{className:"w-4 h-4"})," Email (opsional)"]}),e.jsx(q,{id:"email",name:"email",type:"email",placeholder:"[email protected]",value:o.email,onChange:t=>N("email",t.target.value)})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs(G,{htmlFor:"selectedBranch",className:"flex items-center gap-1",children:[e.jsx(Me,{className:"w-4 h-4"})," Lokasi Gym"]}),e.jsxs("div",{className:"relative",children:[e.jsxs("button",{type:"button",onClick:()=>_(t=>!t),className:"w-full flex items-center justify-between gap-2 px-3 py-2.5 border border-gray-300 rounded-lg bg-white hover:bg-gray-50 h-11 transition-colors text-left",children:[e.jsx("span",{className:"text-sm text-gray-700",children:o.selectedBranch||"Pilih lokasi"}),e.jsx(ee,{className:"w-4 h-4 text-gray-400"})]}),e.jsx(Q,{children:B&&e.jsxs(Z.div,{initial:{opacity:0,y:-5}
6,animate:{opacity:1,y:0},exit:{opacity:0,y:-5},className:"absolute top-full left-0 mt-1 w-full bg-white border border-gray-200 rounded-lg shadow-lg z-50 max-h-64 overflow-hidden",children:[e.jsx("div",{className:"p-3 border-b border-gray-200",children:e.jsxs("div",{className:"relative",children:[e.jsx(te,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),e.jsx("input",{type:"text",placeholder:"Cari cabang...",value:j,onChange:t=>w(t.target.value),className:"w-full pl-10 pr-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",autoFocus:!0})]})}),e.jsx("div",{className:"max-h-48 overflow-y-auto",children:H.length>0?H.map(t=>e.jsx("button",{type:"button",onClick:()=>{N("selectedBranch",t.value),_(!1),w("")},className:"w-full flex items-center gap-3 px-3 py-2 hover:bg-gray-100 text-left transition-colors",children:e.jsx("span",{className:"text-sm font-medium text-gray-800",children:t.label})},t.value)):e.jsx("div",{className:"px-3 py-4 text-center text-sm text-gray-500",children:"Tidak ada cabang"})})]})})]}),g.selectedBranch&&e.jsx("p",{className:"text-red-600 text-xs",children:g.selectedBranch})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs(G,{htmlFor:"costumeTheme",className:"flex items-center gap-1",children:[e.jsx(K,{className:"w-4 h-4"})," Tema Kostum (opsional)"]}),e.jsxs("select",{id:"costumeTheme",name:"costumeTheme",value:o.costumeTheme,onChange:t=>N("costumeTheme",t.target.value),className:"w-full rounded-md px-3 py-2 border",children:[e.jsx("option",{value:"",children:"Pilih tema"}),Ae.map(t=>e.jsx("option",{value:t,children:t},t))]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(ge,{id:"agreeToTerms",checked:o.agreeToTerms,onCheckedChange:t=>N("agreeToTerms",!!t)}),e.jsx(G,{htmlFor:"agreeToTerms",className:"text-sm",children:"Saya menyetujui Syarat & Ketentuan event Halloween"})]}),g.agreeToTerms&&e.jsx("p",{className:"text-red-600 text-xs",children:g.agreeToTerms})]}),e.jsx(fe,{type:"submit",disabled:I,className:"w-full font-semibold",children:I?"Mengirim...":"Daftar Halloween"}),R&&e.jsx("div",{className:"mt-2 text-xs",children:"Terima kasih! Kami akan menghubungi Anda segera."})]})})})},Be=({minimalist:M=!1})=>e.jsxs("div",{className:`pointer-events-none fixed inset-0 halloween-atmosphere${M?" minimalist":""}`,children:[e.jsx("div",{className:"fog-layer fog-1"}),e.jsx("div",{className:"fog-layer fog-2"}),e.jsx("div",{className:"fog-layer fog-3"}),!M&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"ghost ghost-1",children:e.jsx(K,{className:"w-8 h-8 text-white opacity-80"})}),e.jsx("div",{className:"ghost ghost-2",children:e.jsx(K,{className:"w-10 h-10 text-white opacity-70"})}),e.jsx("div",{className:"ghost ghost-3",children:e.jsx(K,{className:"w-6 h-6 text-white opacity-75"})})]})]}),_e=({intensity:M="light",showLightning:T=!1})=>{const L=f.useRef(null),u=f.useRef(null),i=f.useRef(null);return f.useEffect(()=>{const o=L.current;if(!o)return;const a=o.getContext("2d");if(!a||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const A=()=>{o.width=window.innerWidth,o.height=window.innerHeight};A();const I=window.innerWidth<=480,R=Math.max(70,Math.floor((M==="heavy"?260:M==="medium"?180:120)*(I?.6:1))),F=Math.floor(R*.5),m=Math.floor(R*.33),E=R-F-m,y=(t,r,n)=>{const p=Math.random()*(t[1]-t[0])+t[0],v=Math.random()*(r[1]-r[0])+r[0],b=Math.random()*.7+.15,C=Math.random()*(n[1]-n[0])+n[0];return{x:Math.random()*o.width,y:Math.random()*o.height,len:p,speedY:v,driftX:b,opacity:C,noisePhase:Math.random()*Math.PI*2,noiseAmp:Math.random()*.4+.1}},P=Array.from({length:F},()=>y([4,10],[2.2,3.4],[.18,.35])),d=Array.from({length:m},()=>y([6,14],[2.6,4],[.28,.55])),O=Array.from({length:E},()=>y([10,20],[3,5.2],[.45,.75])),B=[],_=(t,r)=>{B.length>40||B.push({x:t,y:r,life:1,maxLife:1,scale:Math.random()*.8+.6})};let j=0,w=[],D=[],S=0,H=0;const k=t=>{w=[],D=[];let n=o.width*(.3+Math.random()*.4),p=-10;const v=10+Math.floor(Math.random()*8);for(let b=0;b<v;b++){const C=(Math.random()-.5)*40,h=24+Math.random()*42,c=n+C,x=p+h;if(w.push({x1:n,y1:p,x2:c,y2:x,w:2.2-b*.08}),b>2&&Math.random()<.18){let l=c,s=x;const U=4+Math.floor(Math.random()*4);for(let X=0;X<U;X++){const re=(Math.random()-.5)*34,oe=18+Math.random()*28,V=l+re,Y=s+oe;D.push({x1:l,y1:s,x2:V,y2:Y,w:Math.max(1,1.8-X*.2)}),l=V,s=Y}}n=c,p=x}S=.9,H=t};let N=performance.now();const $=t=>{const r=Math.min(32,t-N);N=t,a.clearRect(0,0,o.width,o.height);const n=t*.0015,p=Math.sin(n)*.6+Math.sin(n*.47)*.25,v=.85+.25*Math.sin(n*.6)+.15*Math.sin(n*.21+1.7),b=Math.max(.6,Math.min(1.2,v)),C=(h,c,x)=>{a.save(),a.strokeStyle=c.color,a.lineWidth=c.lineWidth,a.lineCap="round",c.shadow&&(a.shadowColor=c.color,a.shadowBlur=c.shadow);for(let l=0;l<h.length;l++){const s=h[l],U=Math.sin(t*.004+s.noisePhase)*s.noiseAmp;a.globalAlpha=s.opacity*b,a.beginPath(),a.moveTo(s.x+U,s.y),a.lineTo(s.x+U-(s.driftX+p*x)*s.len,s.y+s.len),a.stroke(),s.x-=(s.driftX+p*x)*(r/16),s.y+=s.speedY*(r/16),s.y>o.height-6&&x>=.9&&Math.random()<.07&&_(s.x,o.height-4),(s.y>o.height+24||s.x<-24)&&(s.x=Math.random()*o.width,s.y=-Math.random()*80,Math.random()<.04&&x>=.9?(s.len=18+Math.random()*16,s.speedY=4+Math.random()*2.8,s.opacity=.65+Math.random()*.2):(s.len=s.len*(Math.random()*.6+.7),s.speedY=s.speedY*(Math.random()*.6+.7),s.opacity=Math.min(.85,Math.max(.15,s.opacity*(Math.random()*.6+.7)))),s.driftX=Math.random()*.7+.15,s.noisePhase=Math.random()*Math.PI*2,s.noiseAmp=Math.random()*.4+.1)}
6a.restore()};if(C(P,{color:"rgba(200,220,255,0.45)",lineWidth:.8},.4),C(d,{color:"rgba(210,230,255,0.6)",lineWidth:1},.7),C(O,{color:"rgba(220,240,255,0.75)",lineWidth:1.2,shadow:1.5},1),B.length){a.save();for(let h=B.length-1;h>=0;h--){const c=B[h],x=c.life*.6,l=4*c.scale;a.strokeStyle=`rgba(230,240,255,${x})`,a.lineWidth=1,a.beginPath(),a.moveTo(c.x-l,c.y),a.lineTo(c.x-l*.6,c.y-l*.8),a.moveTo(c.x,c.y),a.lineTo(c.x,c.y-l),a.moveTo(c.x+l,c.y),a.lineTo(c.x+l*.6,c.y-l*.8),a.stroke(),c.life-=.06*(r/16),c.life<=0&&B.splice(h,1)}a.restore()}if(T){if(Math.random()<.0015&&S<=0&&t-H>1600&&k(t),S>0&&w.length){a.save(),a.strokeStyle=`rgba(255,255,255,${S})`,a.lineCap="round",a.shadowColor="rgba(255,255,255,0.85)",a.shadowBlur=6;for(const l of w)a.lineWidth=l.w,a.beginPath(),a.moveTo(l.x1,l.y1),a.lineTo(l.x2,l.y2),a.stroke();a.shadowBlur=4;for(const l of D)a.lineWidth=l.w,a.beginPath(),a.moveTo(l.x1,l.y1),a.lineTo(l.x2,l.y2),a.stroke();const h=w.reduce((l,s)=>l+s.x2,0)/w.length,c=w.reduce((l,s)=>l+s.y2,0)/w.length,x=a.createRadialGradient(h,c,10,h,c,Math.min(o.width,o.height)*.6);x.addColorStop(0,`rgba(255,255,255,${S*.25})`),x.addColorStop(1,"rgba(255,255,255,0)"),a.fillStyle=x,a.fillRect(0,0,o.width,o.height),S-=.04,S<0&&(S=0,w=[],D=[]),a.restore()}Math.random()<.001&&j<=0&&(j=.18+Math.random()*.1),j>0&&(a.fillStyle=`rgba(255,255,255,${j})`,a.fillRect(0,0,o.width,o.height),j-=.015,j<0&&(j=0))}u.current=requestAnimationFrame($)};u.current=requestAnimationFrame($);const W=()=>A();return window.addEventListener("resize",W),i.current=new ResizeObserver(A),i.current.observe(document.body),()=>{var t;u.current&&cancelAnimationFrame(u.current),window.removeEventListener("resize",W),(t=i.current)==null||t.disconnect()}},[M,T]),e.jsx("div",{className:"pointer-events-none fixed inset-0 z-30",children:e.jsx("canvas",{ref:L,className:"w-full h-full"})})},De=()=>{const M=f.useRef(null),T=f.useRef(null),L=f.useRef(null);return f.useEffect(()=>{const u=M.current;if(!u)return;const i=u.getContext("2d");if(!i)return;const o=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=()=>{const m=Math.max(1,Math.min(2,window.devicePixelRatio||1));u.width=Math.floor(window.innerWidth*m),u.height=Math.floor(window.innerHeight*m),u.style.width=`${window.innerWidth}px`,u.style.height=`${window.innerHeight}px`,i.setTransform(m,0,0,m,0,0)};a();const g=[],A=()=>{g.length=0;const m=u.width/(i.getTransform().a||1),E=u.height/(i.getTransform().a||1),y=48,P=window.innerWidth<=480?2:3;for(let d=0;d<P;d++){const O=Math.random()<.5?y+Math.random()*(m*.25):m-y-Math.random()*(m*.25),B=Math.random()<.5?y+Math.random()*(E*.25):E-y-Math.random()*(E*.25),_={x:O,y:B},j=[],w=[],D=[],S=2+Math.floor(Math.random()*2);for(let k=0;k<S;k++)D.push({x:_.x,y:_.y,r:10+k*8+Math.random()*4,a:.08+k*.02});const H=6+Math.floor(Math.random()*5);for(let k=0;k<H;k++){let N=Math.random()*Math.PI*2;const $=8+Math.floor(Math.random()*6);let W=_.x,t=_.y,r=1.2;for(let n=0;n<$;n++){N+=(Math.random()-.5)*.22;const p=18+Math.random()*28,v=W+Math.cos(N)*p,b=t+Math.sin(N)*p;if(j.push({x1:W,y1:t,x2:v,y2:b,w:Math.max(.6,r),a:.16-n*.01}),n>1&&Math.random()<.25){const C=N+(Math.random()<.5?-1:1)*(.35+Math.random()*.35),h=12+Math.random()*22,c=W+Math.cos(C)*h,x=t+Math.sin(C)*h;w.push({x1:W,y1:t,x2:c,y2:x,w:Math.max(.5,r*.8),a:.12})}W=v,t=b,r*=.92}}g.push({origin:_,main:j,branches:w,rings:D})}};A();let I=performance.now(),z=Math.random()*Math.PI*2;const R=m=>{const E=Math.min(32,m-I);I=m,z+=E*.001,i.clearRect(0,0,u.width,u.height),i.save(),i.lineCap="round",i.shadowColor="rgba(255,255,255,0.5)",i.shadowBlur=1.5;const y=o?0:(Math.sin(z*.6)+Math.sin(z*.37))*.02;for(const P of g){for(const d of P.rings)i.beginPath(),i.strokeStyle=`rgba(255,255,255,${Math.max(0,d.a+y)})`,i.lineWidth=.7,i.arc(d.x,d.y,d.r,0,Math.PI*2),i.stroke();for(const d of P.main)i.beginPath(),i.strokeStyle=`rgba(255,255,255,${Math.max(0,d.a+y)})`,i.lineWidth=d.w,i.moveTo(d.x1,d.y1),i.lineTo(d.x2,d.y2),i.stroke();i.shadowBlur=1;for(const d of P.branches)i.beginPath(),i.strokeStyle=`rgba(255,255,255,${Math.max(0,d.a+y*.8)})`,i.lineWidth=d.w,i.moveTo(d.x1,d.y1),i.lineTo(d.x2,d.y2),i.stroke()}
6i.restore(),T.current=requestAnimationFrame(R)};T.current=requestAnimationFrame(R);const F=()=>{a(),A()};return window.addEventListener("resize",F),L.current=new ResizeObserver(F),L.current.observe(document.body),()=>{var m;T.current&&cancelAnimationFrame(T.current),window.removeEventListener("resize",F),(m=L.current)==null||m.disconnect()}},[]),e.jsx("div",{className:"pointer-events-none fixed inset-0 z-40",children:e.jsx("canvas",{ref:M,className:"w-full h-full"})})},ft=()=>(se(),e.jsxs(he,{children:[e.jsx(ue,{title:"Halloween Special Event - WillFitness",description:"Ikuti event spesial Halloween di WillFitness. Dapatkan konsultasi fitness gratis dan penawaran khusus saat Halloween.",keywords:"halloween, event halloween, konsultasi fitness gratis, penawaran khusus",canonicalUrl:"/halloween"}),e.jsxs("div",{className:"min-h-screen bg-[#0b0f14] text-red-300",children:[e.jsx(Be,{minimalist:!0}),e.jsx(_e,{intensity:"medium",showLightning:!0}),e.jsx(De,{}),e.jsx("div",{className:"relative",children:e.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-purple-900/20 via-transparent to-transparent"})}),e.jsxs("div",{className:"max-w-md mx-auto bg-[#111318] shadow-lg min-h-screen",children:[e.jsx(de,{}),e.jsx(ce,{background:"black",logoTint:"red",hideTrialButton:!0}),e.jsxs("main",{className:"pb-20",children:[e.jsxs("div",{className:"px-4 py-4",children:[e.jsx("div",{className:"relative pb-[56.25%] h-0 rounded-2xl overflow-hidden shadow-2xl",children:e.jsx("iframe",{id:"js_video_iframe",src:"https://jumpshare.com/embed/vopZIbcdtbtvPKAzOTEH",frameBorder:"0",allowFullScreen:!0,className:"absolute top-0 left-0 w-full h-full"})}),e.jsxs("div",{className:"mt-3 px-1",children:[e.jsx("h1",{className:"font-creepster text-3xl text-red-500 mb-2",children:"HALLOWEEN SPECIAL CLASS"}),e.jsx("p",{className:"text-sm text-red-500 leading-relaxed",children:"Join special event Halloween!"})]})]}),e.jsxs("div",{className:"relative mb-6",children:[e.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-12 bg-gradient-to-r from-[#111318] via-[#111318]/80 to-transparent z-10 pointer-events-none"}),e.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-12 bg-gradient-to-l from-[#111318] via-[#111318]/80 to-transparent z-10 pointer-events-none"}),e.jsxs("div",{className:"flex gap-3 overflow-x-auto scrollbar-hide py-2 px-4",children:[e.jsxs("div",{className:"flex items-center gap-1.5 bg-red-500/10 rounded-full px-3 py-1.5 whitespace-nowrap border border-red-500/20",children:[e.jsx(Ce,{className:"w-3.5 h-3.5 text-red-300"}),e.jsx("span",{className:"text-xs font-medium text-red-300",children:"Special Halloween Offers!"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 bg-red-500/10 rounded-full px-3 py-1.5 whitespace-nowrap border border-red-500/20",children:[e.jsx(Te,{className:"w-3.5 h-3.5 text-red-300"}),e.jsx("span",{className:"text-xs font-medium text-red-300",children:"Goal Assessment"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 bg-red-500/10 rounded-full px-3 py-1.5 whitespace-nowrap border border-red-500/20",children:[e.jsx(Se,{className:"w-3.5 h-3.5 text-red-300"}),e.jsx("span",{className:"text-xs font-medium text-red-300",children:"Exclusive Bonus"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 bg-red-500/10 rounded-full px-3 py-1.5 whitespace-nowrap border border-red-500/20",children:[e.jsx(ke,{className:"w-3.5 h-3.5 text-red-300"}),e.jsx("span",{className:"text-xs font-medium text-red-300",children:"Limited Time"})]})]}),e.jsx("div",{className:"px-4",children:e.jsx(Pe,{})})]})]})]}),e.jsx(me,{})]})]}));export{ft 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.