PageSourceSearch

https://pgav.org.au/_s/assets/ProdFormTicketDate-BaC7weY_.js

js pgav.org.au collected 2026-10-02 10:26:29 UTC 1,709 bytes, 1 lines download raw bytes

1import"./global-jquery-CDd9sieU.js";import{f}from"./flatpickr-BDVoli39.js";import{h as i}from"./moment-QfiTXYh-.js";import{i as D}from"./handlerShim-BYTyRQMS.js";import{$ as m}from"./jquery-WKbeL-yW.js";import"./graphql-lsp-B6A8sSuz.js";class u{constructor(s,t){this.$el=s,this.opt=t,this.sold={},this.instance=null,this.show=!1,this.$input=this.$el.find("input"),this.dateEl=this.$input.get(0),this.$el.on("sessionchange",(r,a)=>{this.sold=a,this.instance&&this.instance.redraw()});let e=i(t.after);e=e.isValid()?e:i();let n=i(t.before);n=n.isValid()?n:i().add(6,"months"),parseInt(t.dow,10),this.sold=t.sold,this.instance=f(this.dateEl,{dateFormat:"d/m/Y",maxDate:n.toDate(),minDate:new Date(Math.max(e.toDate(),i().toDate())),showMonths:1,disableMobile:!0,disable:[r=>{const a=this.sold,o=i(r).format("YYYY-MM-DD");return!a.hasOwnProperty(o)||t.noTicketDays.indexOf(o)>=0||!a.hasOwnProperty(o)?!0:a[o]&&(a[o]>=1||a[o]<0)}],onDayCreate:(r,a,o,d)=>{const h=this.sold,c=d.dateObj,l=i(c).format("YYYY-MM-DD");h[l]&&h[l]>.6&&(h[l]>.9?h[l]>=1?d.classList.add("me-soldout"):d.classList.add("me-limited"):d.classList.add("me-sellfast"))},onChange:r=>{r.length!==0&&this.onDateChanged(i(r[0]).format("YYYY-MM-DD"))}}),this.dateEl.pikaday=this.instance,this.instance&&(this.instance.setDate(e.toDate()),setTimeout(()=>{this.onDateChanged(e.format("YYYY-MM-DD"))},10))}static frontend(s,t){return new this(m(s),t)}static pad2(s){return`0${s}`.slice(-2)}onDateChanged(s){const t=[2,128,64,32,16,8,4],e=i(s,"YYYY-MM-DD").toDate().getDay();let n=t[e];this.opt.publicHols.indexOf(s)>=0&&(n=1),this.$input.attr("data-dow",n),this.$input.trigger("datechanged",s)}}const O=D(u);export{u as ProdFormTicketDate,O as handler};

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.