PageSourceSearch

https://megatix.com.sg/_nuxt/ClAW1vKc.js

js megatix.com.sg collected 2026-09-29 09:39:02 UTC 10,650 bytes, 1 lines download raw bytes

1import{H as te,a8 as oe,aG as ve,i,aH as xe,ad as ge,ae as be,aI as _e,aJ as ye,aK as he,aL as we,x as ke,aM as Ce,c as A,d as se,e as ae,o as C,ab as Ee,_ as Ne,a as I,n as U,v as K,z as Se,A as Te,L as O,w as W,b as s,g as y,u as a,t as h,l as Y,h as Ve,E as w,C as H,ah as J,j as Z,F as Q,f as X,D as Re,U as ee}from"./BQpfZyYh.js";import{_ as Ie}from"./BMmygSrB.js";import{_ as $e,u as qe}from"./BsZhZXRm.js";import{_ as Pe}from"./CSRIRz6Z.js";import{_ as Le}from"./DI23b6a0.js";import{u as Oe}from"./HvbCAaJ-.js";import"./De7ECYav.js";function Ue(o){return ge()?(be(o),!0):!1}function G(){const o=new Set,d=t=>{o.delete(t)};return{on:t=>{o.add(t);const r=()=>d(t);return Ue(r),{off:r}},off:d,trigger:(...t)=>Promise.all(Array.from(o).map(r=>r(...t)))}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ae=()=>{};function De(...o){if(o.length!==1)return oe(...o);const d=o[0];return typeof d=="function"?ve(xe(()=>({get:d,set:Ae}))):i(d)}function ne(o,d,n){return te(o,(t,r,b)=>{t&&d(t,r,b)},{...n,once:!1})}var j=(o=>(o.Init="init",o.Verified="verified",o.Expired="expired",o.Error="error",o))(j||{});function je({root:o=i(),options:d={}}){const n=_e(),c=i(),t=ye(),r=G(),b=G(),f=G(),v=De(o),p=i("init");return ne(v,async _=>{const x=await t.render(_,{...d,sitekey:n,callback:r.trigger,"expired-callback":b.trigger,"error-callback":f.trigger});c.value=x}),r.on(()=>{p.value="verified"}),b.on(()=>{p.value="expired"}),f.on(()=>{p.value="error"}),{root:v,widgetID:c,execute(){typeof c.value<"u"&&t.execute(c.value)},reset(){p.value="init",typeof c.value<"u"&&t.reset(c.value)},state:p,onVerify:r.on,onExpired:b.on,onError:f.on}}function Me(){const o=he();o.scriptInjected?we("`useRecaptchaProvider` is used multiple time"):(o.scriptInjected=!0,o.useScriptProvider(),ke(()=>{Ce()}))}function Be(o,d,n){const{root:c,state:t,widgetID:r,onError:b,onExpired:f,onVerify:v,reset:p,execute:_}=je({options:o||{}}),x=A(()=>t.value===j.Expired),E=A(()=>t.value===j.Error),N=A(()=>t.value===j.Verified);return ne(r,g=>{n("load",g),n("update:widgetId",g)}),te(d,(g,T)=>{!g&&T&&!x.value&&m()}),f(()=>{n("update:modelValue",null),n("expired",r.value)}),b(g=>{n("error",g)}),v(g=>{n("success",g),n("update:modelValue",g)}),{root:c,widgetID:r,state:t,isError:E,isExpired:x,isVerified:N,reset:m,execute:_};function m(){p(),S()}function S(){n("update:modelValue",null)}}const ze=se({__name:"Checkbox",props:{as:{default:"div"},widgetId:{},size:{default:"normal"},theme:{default:"light"},tabindex:{},modelValue:{}},emits:["load","error","expired","success","update:widgetId","update:modelValue"],setup(o,{emit:d}){const n=o,c=d,{root:t}=Be({theme:n.theme,size:n.size,tabindex:n.tabindex},oe(n,"modelValue"),c);return(r,b)=>(C(),ae(Ee(r.as),{ref_key:"root",ref:t},null,512))}}),Fe={name:"MainPageBg",props:{bgClass:{type:String,required:!1,default:"bg-white"},widthClass:{type:String,required:!1,default:"max-w-7xl"}}};function We(o,d,n,c,t,r){return C(),I("div",{class:U(["absolute inset-0 -z-50 mx-auto flex min-h-screen flex-col content-center justify-center overflow-hidden",[n.bgClass,n.widthClass]])},null,2)}const He=Ne(Fe,[["render",We]]);function Ge(o){return o&&o.split(/(?=[A-Z])/).map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join(" ")}const Ke={class:"page-container-padding relative flex flex-grow flex-col items-center bg-surface-brand pb-20"},Ye={class:"flex w-full max-w-6xl flex-col items-center justify-center rounded-2xl border border-ink-subtle bg-white px-8 py-5 md:flex-row md:justify-between"},Je={class:"pb-3 text-center text-xl font-bold text-brand md:pb-0 md:text-left"},Ze={class:"flex w-full max-w-6xl flex-col items-center pt-8","data--aos":"fade-up","data--aos-delay":"700"},Qe={class:"w-full pb-4 pl-2 text-left text-xl font-semibold leading-10 text-neutral-700 md:text-2xl"},Xe={class:"umagrid w-full max-w-6xl grid-cols-1 gap-x-8 gap-y-6 rounded-2xl bg-white px-4 py-2 shadow-mt1 sm:grid-cols-2"},et={class:"sm:col-span-2"},tt=["value"],ot={class:"text-error"},st={class:"sm:col-span-2"},at=["value"],nt={class:"text-error"},rt={class:"sm:col-span-2"},lt={key:1,class:"text-error"},ut={class:"grid grid-cols-1 pb-8 sm:grid-cols-2","data-aos":"fade-up","data-aos-delay":"700"},it={class:"flex flex-col items-center pt-2 sm:col-span-2"},ct={class:"text-error"},dt={class:"mt-8 flex flex-row justify-center sm:col-span-2"},_t=se({__name:"index",setup(o){const d=K("countryName"),n=Se(),c=A(()=>n.theme);Me(),Oe({title:`Contact ${c.value.properName} ${d.value} Support`,ogTitle:`Contact ${c.value.properName} Support`,ogDescription:`Contact ${c.value.properName}
1 support`});const t=Te().user,r=K("countryCode"),b=["I can't find my Tickets","I'm having problems purchasing Tickets","I would like more information about an Event","I would like to change the details on my Ticket","Technical Support","Other"],f=i(t?t.first_name:""),v=i(t?t.last_name:""),p=i(t?t.email:""),_=i(""),x=i(r.value&&O[r.value]?O[r.value].name:"Other / Not Listed"),E=i(""),N=i(""),m=i(""),S=i(""),g=A(()=>Object.entries(O).map(([u,e])=>({code:u,name:e.name}))),T=i(""),M=i(""),D=i(""),$=i(""),q=i(""),re=i(""),V=i(""),B=i(""),z=i(!1);async function le(){if(ce(),!ue())return;const u={name:`${f.value} ${v.value}`,message:m.value,issue:_.value,email:p.value,country:x.value,order_number:N.value.replace(/\s+/g,"")||void 0,event_name:E.value||void 0,"g-recaptcha-response":S.value};await qe().support.contactSupport(u).then(k=>{ee("Support ticket created! Thanks for contacting us. We will respond to your request as soon as possible.",{type:"success"}),ie(),z.value=!1}).catch(k=>{k.data.errors?de(k.data.errors):ee("Something went wrong! Please try again or email us at [email protected]",{type:"error"}),z.value=!1})}function ue(){var k;const u={firstName:{ref:f,errorRef:T},lastName:{ref:v,errorRef:M},email:{ref:p,errorRef:D},country:{ref:x,errorRef:$},issueType:{ref:_,errorRef:q},message:{ref:m,errorRef:V},recaptchaResponse:{ref:S,errorRef:B}};let e=!0;for(const P of Object.keys(u))if(!((k=u[P].ref.value)!=null&&k.trim().length)){const F=Ge(P);u[P].errorRef.value=`${F} is required`,e=!1}return e}function ie(){f.value=t?t.first_name:"",v.value=t?t.last_name:"",p.value=t?t.email:"",_.value="",x.value=r.value&&O[r.value]?O[r.value].name:"Other / Not Listed",E.value="",N.value="",m.value=""}function ce(){T.value="",M.value="",D.value="",$.value="",q.value="",re.value="",V.value=""}function de(u){T.value=R(u.name)??"",D.value=R(u.email)??"",V.value=R(u.message)??"",q.value=R(u.issue)??"",$.value=R(u.country)??"",B.value=R(u["g-recaptcha-response"])??""}function R(u){return u?Array.isArray(u)?u[0]:u:null}return(u,e)=>{const k=He,P=Ie,F=Ve,L=$e,pe=ze,me=Pe,fe=Le;return C(),ae(fe,{hideBgColour:""},{default:W(()=>[s("section",Ke,[y(k,{class:"shadow-sm"}),y(P,{loading:a(z)},null,8,["loading"]),e[17]||(e[17]=s("div",{class:"h-8 md:h-20"},null,-1)),s("div",Ye,[s("h2",Je,h(u.$t("support_faq_title")),1),y(F,{to:"faq",class:"mt-btn btn-light btn-dark-outline cursor-pointer px-6 py-2"},{default:W(()=>[Y(h(u.$t("support_faq_cta")),1)]),_:1})]),e[18]||(e[18]=s("div",{class:"h-2"},null,-1)),s("div",Ze,[s("h2",Qe,h(u.$t("support_contact_support")),1),s("div",Xe,[y(L,{label:"First Name *",name:"first-name",autocomplete:"given-name",value:a(f),"onUpdate:value":e[0]||(e[0]=l=>w(f)?f.value=l:null),required:"",errorText:a(T)},null,8,["value","errorText"]),y(L,{label:"Last Name *",name:"last-name",autocomplete:"family-name",value:a(v),"onUpdate:value":e[1]||(e[1]=l=>w(v)?v.value=l:null),required:"",errorText:a(M)},null,8,["value","errorText"]),y(L,{label:"Email *",value:a(p),"onUpdate:value":e[2]||(e[2]=l=>w(p)?p.value=l:null),containerClasses:"sm:col-span-2",type:"email",name:"email",autocomplete:"email",required:"",errorText:a(D)},null,8,["value","errorText"]),s("div",et,[e[10]||(e[10]=s("label",{for:"country",class:"mt-4 block text-label-lg font-bold leading-6 text-ink"}," Country * ",-1)),H(s("select",{class:U(["w-full rounded-lg border-neutral-300 p-3 text-md shadow-none",a($)?"megatix-input-container-errors":"input"]),id:"country",name:"country","onUpdate:modelValue":e[3]||(e[3]=l=>w(x)?x.value=l:null),required:""},[(C(!0),I(Q,null,Z(a(g),l=>(C(),I("option",{key:l.code,value:l.name},h(l.name),9,tt))),128)),e[9]||(e[9]=s("option",{value:"Other / Not Listed"},"Other / Not Listed",-1))],2),[[J,a(x)]]),s("p",ot,h(a($)),1)]),y(L,{label:"Event Name (Optional)",value:a(E),"onUpdate:value":e[4]||(e[4]=l=>w(E)?E.value=l:null),containerClasses:"sm:col-span-2",name:"event"},null,8,["value"]),y(L,{label:"Order Number (Optional, please provide if you have one)",value:a(N),"onUpdate:value":e[5]||(e[5]=l=>w(N)?N.value=l:null),containerClasses:"sm:col-span-2",name:"order-number"},null,8,["value"]),s("div",st,[e[12]||(e[12]=s("label",{for:"issue-type",class:"mt-4 block text-label-lg font-bold leading-6 text-ink"}," What Type Of Issue Are You Having? * ",-1)),H(s("select",{class:U(["w-full rounded-lg border-neutral-300 p-3 text-md shadow-none",a(q)?"megatix-input-container-errors":"input"]),id:"issue-type",name:"issue-type","onUpdate:modelValue":e[6]||(e[6]=l=>w(_)?_.value=l:null),required:""},[e[11]||(e[11]=s("option",{value:""},"Please Select...",-1)),(C(),I(Q,null,Z(b,l=>s("option",{value:l},h(l),9,at)),64))],2),[[J,a(_)]]),s("p",nt,h(a(q)),1)]),s("div",rt,[e[13]||(e[13]=s("label",{for:"message",class:"mt-4 block text-label-lg font-bold leading-6 text-ink"}," Please Describe Your Issue * ",-1)),H(s("textarea",{required:"",maxlength:"1000",name:"message",id:"message",rows:"4",class:U(["w-full rounded-lg border-neutral-300 p-3 text-md",a(V)?"megatix-input-container-errors":"input"]),"onUpdate:modelValue":e[7]||
1(e[7]=l=>w(m)?m.value=l:null),placeholder:"Please describe how we can help you in as much detail as possible"},null,2),[[Re,a(m)]]),a(m).length>900?(C(),I("p",{key:0,class:U(["fadeIntoExistence mt-1",[a(m).length===1e3?"text-danger":"text-neutral-500 transition-all",a(m).length>900?"opacity-1":"opacity-0"]])},h(a(m).length)+" / 1000 ",3)):X("",!0),a(V)?(C(),I("p",lt,h(a(V)),1)):X("",!0)]),e[15]||(e[15]=s("div",{class:"sm:col-span-2"},[s("p",{class:"mt-4 text-sm text-neutral-600"}," Please submit only one support request per issue. We will respond to your request as soon as possible. ")],-1)),e[16]||(e[16]=s("hr",{class:"mb-4 mt-6"},null,-1)),s("div",ut,[s("div",it,[y(pe,{modelValue:a(S),"onUpdate:modelValue":e[8]||(e[8]=l=>w(S)?S.value=l:null)},null,8,["modelValue"]),s("p",ct,h(a(B)),1)]),s("div",dt,[y(me,{onClick:le,class:"mt-btn btn-md btn-primary w-full md:max-w-96"},{default:W(()=>e[14]||(e[14]=[Y("Submit")])),_:1})])])])])])]),_:1})}}});export{_t 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.