PageSourceSearch

https://vasgallery.org.au/_s/assets/TicketChangeVueApp-OPUQe_1a.js

js vasgallery.org.au collected 2026-10-02 10:03:58 UTC 8,511 bytes, 4 lines download raw bytes

1import{V as d}from"./vue.esm-D6kxFMzM.js";import"./global-jquery-CDd9sieU.js";import{h as i}from"./moment-QfiTXYh-.js";import{n as c}from"./_plugin-vue2_normalizer-p4i_2SC9.js";import{I as u}from"./InputDate-BRZ5gTyX.js";import{$ as o}from"./jquery-WKbeL-yW.js";import"./flatpickr-BDVoli39.js";import"./graphql-lsp-B6A8sSuz.js";const h={name:"TicketChangeDateTicket",props:{ticket:Object,selected:Boolean},computed:{prettyStart(){return this.ticket.condition&&this.ticket.condition.starts?i(this.ticket.condition.starts,"X").format("lll"):""},prettyEnd(){return this.ticket.condition&&this.ticket.condition.ends?i(this.ticket.condition.ends,"X").format("lll"):""},today(){return this.ticket.condition&&this.ticket.condition.starts?i(this.ticket.condition.starts,"X").format("YYYY-MM-DD")==i().format("YYYY-MM-DD"):!1}}};var m=function(){var t=this,e=t._self._c;return e("div",[e("label",[e("div",{staticClass:"callout ticket-box",class:t.selected?"info":""},[e("div",{staticClass:"ticket-check"},[(t.ticket.status&7)==0&&!t.today?e("input",{attrs:{type:"checkbox"},domProps:{checked:t.selected},on:{change:function(s){return t.$emit("check",t.ticket)}}}):t._e()]),e("div",[e("div",[e("strong",[t._v(t._s(t.ticket.type)+" - "+t._s(t.ticket.heads))]),t._v("       "),(t.ticket.status&7)==0?e("span",[t._v("Ticket has not been used")]):t._e(),(t.ticket.status&1)==1?e("span",[t._v("Ticket has already been used")]):t._e(),(t.ticket.status&2)==2?e("span",[t._v("Ticket has already been refunded")]):t._e(),(t.ticket.status&4)==4?e("span",[t._v("Ticket has already been cancelled")]):t._e(),t.today?e("span",[t._v("Ticket is for today, cannot be changed until tomorrow")]):t._e()]),e("div",[e("small",[t._v("Valid between "+t._s(t.prettyStart)+" and "+t._s(t.prettyEnd))])])])])])])},p=[],k=c(h,m,p,!1,null,"1b38c600");const v=k.exports,f={name:"event-date-picker",data(){return{dateValue:""}},props:{date:String,days:Object},methods:{sel(a){this.$emit("choose",a)}},watch:{date(a){this.dateValue=a}},computed:{goodDays(){const a=this.days||{};return Object.keys(a).filter(t=>{let e=0;const s=this.days[t],n=Object.keys(s);return n.forEach(r=>{e+=Math.min(1,s[r])}),e=e/n.length,e<1})},firstDate(){const a=this.goodDays.slice().sort();return a.length>0?i(a[0],"YYYY-MM-DD").toDate():i().toDate()},lastDate(){const a=this.goodDays.slice().sort();return a.length>0?i(a[a.length-1],"YYYY-MM-DD").toDate():i().toDate()},hiddenDays(){const a=this.goodDays;return Object.keys(this.days||{}).filter(t=>a.indexOf(t)<0)}},components:{InputDate:u},template:`  <div>
2    <input-date :value="dateValue"  @input="sel" :start-date="firstDate"
3                :end-date="lastDate" :disable-dates="hiddenDays"></input-date>
4  </div>`},l="Could not find your ticket, please check your email address and ticket id and try again.",g={name:"TicketChangeDate",components:{EventDatePicker:f,TicketChangeDateTicket:v},props:{styleId:Number,paraClass:String},data(){return{step:1,error:"",loading:!1,email:"",ticketid:"",tickets:[],selectIds:[],calendar:[],sessions:[],newDate:i().format("YYYY-MM-DD"),newSession:0}},computed:{availSess(){if(!this.newDate)return[];const a=i(this.newDate,"YYYY-MM-DD").format("YYYY-MM-DD"),t=this.calendar.days[a];return Object.keys(t).filter(s=>t[s]<1).map(s=>this.sessions[s]).sort((s,n)=>n.sorder-s.sorder)},buttonClass(){return`MES${this.styleId}`}},methods:{lookupTickets(){this.loading=!0;const a={email:this.email,ticketid:this.ticketid.replaceAll(/-/g,"")};o.post({data:a,url:"/~ticket/changeticket/find",dataType:"json"}).then(t=>{this.loading=!1,t&&t.found?(this.error="",this.step=2,this.tickets=t.tickets):this.error=l},t=>{this.loading=!1,this.error=l})},selTicket(a){const t=a.gid,e=this.selectIds.indexOf(t);e>=0?this.selectIds.splice(e,1):this.selectIds.push(t)},selDate(a){this.newDate=a,this.newSession=0},lookupDate(){if(this.selectIds.length>0){this.error="",this.loading=!0;const a={email:this.email,ticketid:this.ticketid,ids:this.selectIds};o.post({data:a,url:"/~ticket/changeticket/avail",dataType:"json"}).then(t=>{t.found===!0?(this.step=3,this.calendar=t.calendar,this.sessions=t.sessions):this.error=t&&t.error||"No Dates could be found",this.loading=!1},t=>{this.error="Unable to lookup session availability",this.loading=!1})}else this.error="You need to select at least 1 Ticket"},changeTickets(){if(this.newSession>0){this.loading=!0;const a={email:this.email,ticketid:this.ticketid,ids:this.selectIds,date:this.newDate,session:this.newSession};o.post({data:a,url:"/~ticket/changeticket/change",dataType:"json"}).then(t=>{t.found===!0?(this.step=4,this.newTickets=t.newTickets):this.error=t&&t.error||"A problem occurred changing over your tickets",this.loading=!1},t=>{this.error="Unable to to change over your tickets",this.loading=!1})}else this.error="You need to select a session"}}};var _=function(){var t=this,e=t._self._c;return e("div",[t.error?e("div",{staticClass:"callout warning"},[t._v(t._s(t.error))]):t._e(),t.step==1?e("div",[e("div",{staticClass:"row"},[e("div",{staticClass:"column medium-4 small-12"},[e("h5",{class:t.paraClass},[e("label",[t._v("Email Address:")])])]),e("div",{staticClass:"column medium-8 small-12"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],attrs:{type:"email",disabled:t.loading},domProps:{value:t.email},on:{input:function(s){s.target.composing||(t.email=s.target.value)}}}),e("small",[t._v("You must enter the email address you used when purchasing these tickets. ")])])]),e("br"),e("div",{staticClass:"row"},[e("div",{staticClass:"column medium-4 small-12"},[e("h5",{class:t.paraClass},[e("label",[t._v("ID of One Ticket:")])])]),e("div",{staticClass:"column medium-8 small-12"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ticketid,expression:"ticketid"}],attrs:{type:"text",disabled:t.loading},domProps:{value:t.ticketid},on:{input:function(s){s.target.composing||(t.ticketid=s.target.value)}}}),e("small",[t._v("Please note the ticket ID can be found on your ticket near the bottom. It is in the format of XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX. ")])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"column medium-4 small-12"}),e("div",{staticClass:"column medium-8 small-12"},[e("div",{staticStyle:{"text-align":"right"}},[e("button",{staticClass:"button",class:t.buttonClass,attrs:{disabled:t.loading},on:{click:function(s){return s.preventDefault(),t.lookupTickets.apply(null,arguments)}}},[t._v(" Lookup Tickets ")])])])])]):t._e(),t.step==2?e("div",[e("h5",{class:t.paraClass},[t._v("Ticket List")]),e("small",[t._v("Please select the tickets you with to change the date of:")]),t._l(t.tickets,function(s){return e("div",[e("ticket-change-date-ticket",{attrs:{ticket:s,selected:t.selectIds.indexOf(s.gid)>=0},on:{check:t.selTicket}})],1)}),e("div",{staticStyle:{"text-align":"right"}},[e("button",{staticClass:"button",class:t.buttonClass,attrs:{disabled:t.loading},on:{click:function(s){return s.preventDefault(),t.lookupDate.apply(null,arguments)}}},[t._v(" Next > ")])])],2):t._e(),t.step==3?e("div",[e("h5",{class:t.paraClass},[t._v("Choose a New Date")]),e("event-date-picker",{attrs:{days:t.calendar.days,date:t.newDate},on:{choose:t.selDate}}),t.availSess.length>0?e("div",[e("h5",{class:t.paraClass},[t._v("Choose a New Session Time")]),t._l(t.availSess,function(s){return e("div",{key:s.id},[e("label",[e("div",{staticClass:"callout"},[e("h5",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newSession,expression:"newSession"}],attrs:{type:"radio",disabled:t.loading},domProps:{value:s.id,checked:t._q(t.newSession,s.id)},on:{change:function(n){t.newSession=s.id}}}),t._v("    "+t._s(s.title)+" ")])])])])}),e("div",{staticStyle:{"text-align":"right"}},[e("button",{staticClass:"button",class:t.buttonClass,attrs:{disabled:t.loading},on:{click:function(s){return s.preventDefault(),t.changeTickets.apply(null,arguments)}}},[t._v(" Change Date ")])])],2):t._e()],1):t._e(),t.step==4?e("div",[e("h5",{class:t.paraClass},[t._v("Your tickets have been changed over")]),e("p",{class:t.paraClass},[t._v(" You will receive an email with your new tickets attached very shortly. ")]),e("p",{class:t.paraClass},[t._v("Please discard your old tickets.")])]):t._e(),e("div",{staticStyle:{height:"15px"}})])},y=[],D=c(g,_,y,!1,null,"2155e6c4");const b=D.exports;class M{constructor(t,e){console.log(e),this.vue=new d({el:t,data(){return{styleId:e.styleId,paraClass:e.class}},components:{TicketChangeDate:b}})}}export{M 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.