PageSourceSearch

https://www.hoyts.com.au/vue/20260924.2/chunk-CaOmddSp.js

js hoyts.com.au collected 2026-09-24 18:55:05 UTC 15,511 bytes, 1 lines download raw bytes

1import{m as J,p as L,d as j,q as H,c as S,r as v,o as Q,a as r,f as e,b as u,h as a,t as y,F as b,s as p,v as $,n as f,g as x,i as h,x as D,y as X,z as Z,A as V,B,C as ee,O as F,D as se,e as n,E as le,G as te,H as oe}from"./index.js";import{_ as i}from"./chunk-CXQCcojo.js";import{E as ae}from"./chunk-CdcZSLRR.js";import{_ as ie}from"./chunk-DrwsHpsw.js";import{l as ne}from"./chunk-DLNflsLw.js";import{m as U}from"./chunk-C57x0oRI.js";import"./chunk-DlAUqK2U.js";import"./chunk-CE1G-McA.js";const re=J("enquiries",{actions:{async sendBirthdayEnquiry(E){await L.post("/enquiries/birthday-packages",E)}}}),de={class:"modal__panel"},ue={class:"modal__content"},me={class:"modal__header"},ce={class:"modal__heading"},_e={class:"modal__list"},pe={class:"modal__list-item"},fe={class:"modal__list-bullet"},he={class:"modal__list-item"},ve={class:"modal__list-bullet"},be={class:"modal__list-item"},ke={class:"modal__list-bullet"},ge={class:"modal__list-item"},ye={class:"modal__list-bullet"},xe={class:"modal__list-item"},we={class:"modal__list-bullet"},qe={class:"modal__list-item"},Ce={class:"modal__list-bullet"},Se={class:"modal__list-item"},De={class:"modal__list-bullet"},Ve={class:"modal__list"},Be={class:"modal__list-item"},Ee={class:"modal__list-bullet"},Ge={class:"modal__list-item"},Me={class:"modal__list-bullet"},Oe={class:"modal__list-item"},Pe={class:"modal__list-bullet"},Te={class:"modal__list-item"},$e={class:"modal__list-bullet"},Fe={class:"modal__list-item"},Ue={class:"modal__list-bullet"},Ae={class:"modal__list-item"},ze={class:"modal__list-bullet"},Ne={class:"modal__list-item"},We={class:"modal__list-bullet"},Ie={class:"modal__list-item"},Ye={class:"modal__list-bullet"},Ke={class:"modal__list-item"},Re={class:"modal__list-bullet"},Je={class:"form-group"},Le={class:"form-row"},je={class:"form-column form-column--full form-column--flush"},He={class:"form-placeholder"},Qe=["label"],Xe=["value"],Ze=["value"],es={class:"form-placeholder__select-value"},ss={key:0,class:"form-error"},ls={class:"form-row"},ts={class:"form-column form-column--full"},os={class:"form-placeholder"},as=["value"],is={class:"form-placeholder__select-value"},ns={key:0,class:"form-error"},rs={class:"form-row"},ds={class:"form-column form-column--full"},us={class:"form-placeholder"},ms={key:0,class:"form-error"},cs={class:"form-group"},_s={class:"form-row"},ps={class:"form-column form-column--auto"},fs={class:"form-checkbox"},hs={class:"form-checkbox__container"},vs={class:"form-column form-column--auto"},bs={class:"form-checkbox"},ks={class:"form-checkbox__container"},gs={class:"form-column form-column--auto"},ys={class:"form-checkbox"},xs={class:"form-checkbox__container"},ws={key:0,class:"form-error"},qs={class:"form-group"},Cs={class:"form-row"},Ss={class:"form-column form-column--full form-column--flush"},Ds={class:"form-placeholder"},Vs={key:0,class:"form-error"},Bs={class:"form-row"},Es={class:"form-column form-column--full"},Gs={class:"form-placeholder"},Ms={key:0,class:"form-error"},Os={class:"form-row"},Ps={class:"form-column form-column--full"},Ts={class:"form-placeholder"},$s={key:0,class:"modal__footer"},Fs=["disabled"],Rs=j({__name:"App",setup(E){const G=H(),A=re(),w=S(()=>G.getCinemas),M=S(()=>G.getRegions),O=U().startOf("day").add(1,"day").toDate(),z=U().endOf("day").add(1,"year").toDate(),N={modelType:"yyyy-MM-dd",autoApply:!0,formats:{input:"dd/MM/yyyy"},minDate:O,maxDate:z,startDate:O,timeConfig:{enableTimePicker:!1},textInput:{format:"dd/MM/yyyy",maskFormat:"DD/MM/YYYY"}},W=o=>({type:"text",id:"form-placeholder__input-enquiry--date",autocomplete:"off",placeholder:" ",class:["form-placeholder__input",d("eventDate")&&"is-error"],value:o.value,onInput:o.onInput,onFocus:o.onFocus,onBlur:o.onBlur,onKeydownEnter:o.onEnter,onKeydown:o.onKeypress,onClick:o.openMenu}),I=S(()=>P.value!==!0?!1:(t.value.eventTime=c.value.join(","),[t.value.eventPackage,t.value.eventDate,t.value.eventTime,t.value.preferredCinema,t.value.numberOfGuests,t.value.name,t.value.phone].every(s=>s?.toString().trim().length))),t=v({}),c=v([]),k=v(),m=v([]),q=v(!1),C=v(!1),P=v(!1),Y=async()=>{q.value=!0,t.value.recaptchaToken=await ee("enquiry");try{await A.sendBirthdayEnquiry(t.value),k.value=2}catch{k.value=3,q.value=!1;return}},K=o=>{t.value.eventPackage=o,C.value=!0,F.lock()},T=()=>{C.value=!1,t.value={},c.value=[],k.value=null,F.unlock()},R=o=>{P.value=o.status===2,t.value.email=o.email},_=o=>{const s=m.value.indexOf(o);s!==-1&&m.value.splice(s,1),o==="preferredCinema"&&!(t.value.preferredCinema?.length>0)&&m.value.push(o),o==="numberOfGuests"&&!(t.value.numberOfGuests>0)&&m.value.push(o),o==="eventDate"&&!(t.value.eventDate?.length>0)&&m.value.push(o),o==="timeSlots"&&!(c.value?.length>0)&&m.value.push(o),o==="name"&&!(t.value.name?.length>0)&&m.value.push(o),o==="email"&&!se.isValidEmail(t.value.email)&&m.value.push(o),o==="phone"&&!(t.value.phone?.length>0)&&m.value.push(o)},d=o=>m.value.indexOf(o)!==-1;return Q(async()=>{const o=document.getElementsByClassName("card-tile__enquire-now");for(let s=0;s<o.length;s++){const l=o[s];let g=l.getAttribute("data-package");l.addEventListener("click",()=>K(g),!1)}}),(o,s)=>(n(),r("div",{class:f(["modal",{"is-active":C.value}])},[e("div",de,[e("div",ue,[e("div",me,[e("h2",ce,"Birthday "+y(t.value.eventPackage)+" Enquiry",1),e("button",{class:"modal__close-button",type:"button",onClick:T},[a(i,{id:"cross",class:"modal__close-icon",width:"20",height:"20",title:"Close"})])]),t.value.eventPackage==="Plus Package"?(n(),r(b,{key:0},[s[24]||(s[24]=e("h3",{class:"modal__list-heading"}
1,"$29.95 per child",-1)),s[25]||(s[25]=e("p",{class:"modal__list-subheading"},"What's included",-1)),e("ul",_e,[e("li",pe,[e("span",fe,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[17]||(s[17]=e("span",{class:"modal__list-text"},"Movie ticket (G or PG movie)",-1))]),e("li",he,[e("span",ve,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[18]||(s[18]=e("span",{class:"modal__list-text"},"Snack Popcorn",-1))]),e("li",be,[e("span",ke,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[19]||(s[19]=e("span",{class:"modal__list-text"},"Snack Drink (Fruit Juice or Water)",-1))]),e("li",ge,[e("span",ye,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[20]||(s[20]=e("span",{class:"modal__list-text"},"2 x Adults admitted free with each booking",-1))]),e("li",xe,[e("span",we,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[21]||(s[21]=e("span",{class:"modal__list-text"},"Free Gift Voucher for the birthday child",-1))]),e("li",qe,[e("span",Ce,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[22]||(s[22]=e("span",{class:"modal__list-text"},"Birthday cake to share",-1))]),e("li",Se,[e("span",De,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[23]||(s[23]=e("span",{class:"modal__list-text"},"Access to you own party room",-1))])])],64)):u("",!0),t.value.eventPackage==="Extras Package"?(n(),r(b,{key:1},[s[35]||(s[35]=e("h3",{class:"modal__list-heading"},"$34.95 per child",-1)),s[36]||(s[36]=e("p",{class:"modal__list-subheading"},"What's included",-1)),e("ul",Ve,[e("li",Be,[e("span",Ee,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[26]||(s[26]=e("span",{class:"modal__list-text"},"Movie ticket (G or PG movie)",-1))]),e("li",Ge,[e("span",Me,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[27]||(s[27]=e("span",{class:"modal__list-text"},"Snack Popcorn",-1))]),e("li",Oe,[e("span",Pe,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[28]||(s[28]=e("span",{class:"modal__list-text"},"Snack Drink (Fruit Juice or Water)",-1))]),e("li",Te,[e("span",$e,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[29]||(s[29]=e("span",{class:"modal__list-text"},"2 x Adults admitted free with each booking",-1))]),e("li",Fe,[e("span",Ue,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[30]||(s[30]=e("span",{class:"modal__list-text"},"Free Gift Voucher for the birthday child",-1))]),e("li",Ae,[e("span",ze,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[31]||(s[31]=e("span",{class:"modal__list-text"},"Birthday cake to share",-1))]),e("li",Ne,[e("span",We,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[32]||(s[32]=e("span",{class:"modal__list-text"},"Access to you own party room",-1))]),e("li",Ie,[e("span",Ye,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[33]||(s[33]=e("span",{class:"modal__list-text"},"Two slices of pizza per child",-1))]),e("li",Ke,[e("span",Re,[a(i,{id:"tick",class:"modal__list-icon",width:"8",height:"8"})]),s[34]||(s[34]=e("span",{class:"modal__list-text"},"Chips and M&Ms to share",-1))])])],64)):u("",!0),k.value!==2?(n(),r(b,{key:2},[e("div",Je,[e("div",Le,[e("div",je,[e("div",He,[p(e("select",{class:f(["form-placeholder__select",{"is-placeholder-shown":!t.value.preferredCinema,"is-error":d("preferredCinema")}]),id:"form-placeholder__select--preferred-cinema","onUpdate:modelValue":s[0]||(s[0]=l=>t.value.preferredCinema=l),onBlur:s[1]||(s[1]=l=>_("preferredCinema"))},[s[37]||(s[37]=e("option",{value:""},"Please select",-1)),M.value?.length?(n(!0),r(b,{key:0},x(M.value,l=>(n(),r("optgroup",{label:l.name},[(n(!0),r(b,null,x(w.value.filter(g=>g.state===l.name),g=>(n(),r("option",{value:g.id},y(g.name),9,Xe))),256))],8,Qe))),256)):(n(!0),r(b,{key:1},x(w.value,l=>(n(),r("option",{value:l.id},y(l.name),9,Ze))),256))],34),[[$,t.value.preferredCinema]]),s[38]||(s[38]=e("label",{class:"form-placeholder__label",for:"form-placeholder__select--preferred-cinema"},[h("Which Cinema would you like to host? "),e("span",{class:"form-required"},"*")],-1)),e("span",es,y(w.value.find(l=>
1l.id===t.value.preferredCinema)?.name??"Please select"),1),a(i,{id:"caret-down",class:"form-placeholder__select-arrow",width:"14",height:"9"})]),d("preferredCinema")?(n(),r("span",ss,"This field is required")):u("",!0)])]),e("div",ls,[e("div",ts,[e("div",os,[p(e("select",{class:f(["form-placeholder__select",{"is-placeholder-shown":!t.value.numberOfGuests,"is-error":d("numberOfGuests")}]),id:"form-placeholder__select--group-size","onUpdate:modelValue":s[2]||(s[2]=l=>t.value.numberOfGuests=l),onBlur:s[3]||(s[3]=l=>_("numberOfGuests"))},[s[39]||(s[39]=e("option",{value:""},"Please select",-1)),(n(),r(b,null,x(21,l=>e("option",{value:l+9},y(l+9),9,as)),64))],34),[[$,t.value.numberOfGuests]]),s[40]||(s[40]=e("label",{class:"form-placeholder__label",for:"form-placeholder__select--group-size"},[h("Group Size "),e("span",{class:"form-required"},"*")],-1)),e("span",is,y(t.value.numberOfGuests??"Please select"),1),a(i,{id:"caret-down",class:"form-placeholder__select-arrow",width:"14",height:"9"})]),d("numberOfGuests")?(n(),r("span",ns,"This field is required")):u("",!0)])]),e("div",rs,[e("div",ds,[e("div",us,[a(Z(ne),X({modelValue:t.value.eventDate,"onUpdate:modelValue":s[4]||(s[4]=l=>t.value.eventDate=l)},N,{"onUpdate:modelValue":s[5]||(s[5]=l=>_("eventDate"))}),{"dp-input":D(l=>[e("input",te(oe(W(l))),null,16),s[41]||(s[41]=e("label",{class:"form-placeholder__label",for:"form-placeholder__input-enquiry--date"},[h("When is the party? "),e("span",{class:"form-required"},"*")],-1)),l.value?u("",!0):(n(),le(i,{key:0,id:"calendar",class:"form-placeholder__calendar",width:"18",height:"18"}))]),_:1},16,["modelValue"])]),d("eventDate")?(n(),r("span",ms,"This field is required")):u("",!0)])])]),e("div",cs,[s[45]||(s[45]=e("div",{class:"form-row"},[e("div",{class:"form-column form-column--full form-column--flush"},[e("label",{class:"form-heading"},[h("What times could work for your party? "),e("span",{class:"form-required"},"*")])])],-1)),e("div",_s,[e("div",ps,[e("div",fs,[e("div",hs,[p(e("input",{class:f(["form-checkbox__input",{"is-error":d("timeSlots")}]),id:"form-checkbox__input-enquiry--morning",type:"checkbox",autocomplete:"off","onUpdate:modelValue":s[6]||(s[6]=l=>c.value=l),value:"9am-12pm",onBlur:s[7]||(s[7]=l=>_("timeSlots"))},null,34),[[V,c.value]]),a(i,{id:"tick",class:"form-checkbox__tick",width:"10",height:"8"})]),s[42]||(s[42]=e("label",{class:"form-checkbox__label form-checkbox__label--bright",for:"form-checkbox__input-enquiry--morning"},"9am - 12pm",-1))])]),e("div",vs,[e("div",bs,[e("div",ks,[p(e("input",{class:f(["form-checkbox__input",{"is-error":d("timeSlots")}]),id:"form-checkbox__input-enquiry--noon",type:"checkbox",autocomplete:"off","onUpdate:modelValue":s[8]||(s[8]=l=>c.value=l),value:"12pm-3pm",onBlur:s[9]||(s[9]=l=>_("timeSlots"))},null,34),[[V,c.value]]),a(i,{id:"tick",class:"form-checkbox__tick",width:"10",height:"8"})]),s[43]||(s[43]=e("label",{class:"form-checkbox__label form-checkbox__label--bright",for:"form-checkbox__input-enquiry--noon"},"12pm - 3pm",-1))])]),e("div",gs,[e("div",ys,[e("div",xs,[p(e("input",{class:f(["form-checkbox__input",{"is-error":d("timeSlots")}]),id:"form-checkbox__input-enquiry--afternoon",type:"checkbox",autocomplete:"off","onUpdate:modelValue":s[10]||(s[10]=l=>c.value=l),value:"3pm-6pm",onBlur:s[11]||(s[11]=l=>_("timeSlots"))},null,34),[[V,c.value]]),a(i,{id:"tick",class:"form-checkbox__tick",width:"10",height:"8"})]),s[44]||(s[44]=e("label",{class:"form-checkbox__label form-checkbox__label--bright",for:"form-checkbox__input-enquiry--afternoon"},"3pm - 6pm",-1))])])]),d("timeSlots")?(n(),r("span",ws,"This field is required")):u("",!0)]),e("div",qs,[e("div",Cs,[e("div",Ss,[e("div",Ds,[p(e("input",{class:f(["form-placeholder__input",{"is-error":d("name")}]),id:"form-placeholder__input-enquiry--name",placeholder:" ","onUpdate:modelValue":s[12]||(s[12]=l=>t.value.name=l),onBlur:s[13]||(s[13]=l=>_("name"))},null,34),[[B,t.value.name]]),s[46]||(s[46]=e("label",{class:"form-placeholder__label",for:"form-placeholder__input-enquiry--name"},[h("Name "),e("span",{class:"form-required"},"*")],-1))]),d("name")?(n(),r("span",Vs,"This field is required")):u("",!0)])]),a(ae,{onChange:R}),e("div",Bs,[e("div",Es,[e("div",Gs,[p(e("input",{class:f(["form-placeholder__input",{"is-error":d("phone")}]),id:"form-placeholder__input-enquiry--phone",placeholder:" ","onUpdate:modelValue":s[14]||(s[14]=l=>t.value.phone=l),onBlur:s[15]||(s[15]=l=>_("phone"))},null,34),[[B,t.value.phone]]),s[47]||(s[47]=e("label",{class:"form-placeholder__label",for:"form-placeholder__input-enquiry--phone"},[h("Phone "),e("span",{class:"form-required"},"*")],-1))]),d("phone")?(n(),r("span",Ms,"This field is required")):u("",!0)])]),e("div",Os,[e("div",Ps,[e("div",Ts,[p(e("textarea",{class:"form-placeholder__input form-placeholder__input--textarea",id:"form-placeholder__input-enquiry--requirements",placeholder:"Tell us if you have special dietary or seating requirements, etc","onUpdate:modelValue":s[16]||(s[16]=l=>t.value.requirements=l)},null,512),[[B,t.value.requirements]]),s[48]||(s[48]=e("label",{class:"form-placeholder__label form-placeholder__label--textarea",for:"form-placeholder__input-enquiry--requirements"},"Special requirements",-1))])])])])],64)):u("",!0),a(ie,{class:"toast--large",status:k.value},{success:D(()=>[...s[49]||(s[49]=[h(" Thanks, your enquiry has been sent! ",-1)])]),error:D(()=>[...s[50]||(s[50]=[h(" Sorry, an unexpected error has occured. Please try again. ",-1)])]),_:1},8,["status"])]),k.value!==2?(n(),r("div",$s,[e("button",{class:"modal__save-button",type:"button",onClick:Y,disabled:!I.value||q.value},"Send Enquiry",8,Fs)])):u("",!0)]),e("span",{class:"modal__background",onClick:T})],2))}});
1export{Rs 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.