Get the Best IPTV Service
/* * XenForo pikaday.min.js * Copyright 2010-2024 XenForo Ltd. * Released under the XenForo License Agreement: https://xenforo.com/license-agreement */ /* Pikaday Copyright ? 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday */ 'use strict';(function(z,A){if("object"===typeof exports){try{var E=require("moment")}catch(k){}module.exports=A(E)}else"function"===typeof define&&define.amd?define(function(k){try{E=k("moment")}catch(K){}return A(E)}):z.Pikaday=A(z.moment)})(this,function(z){var A="function"===typeof z,E=!!window.addEventListener,k=window.document,K=window.setTimeout,x=function(a,b,d,c){E?a.addEventListener(b,d,!!c):a.attachEvent("on"+b,d)},B=function(a,b,d,c){E?a.removeEventListener(b,d,!!c):a.detachEvent("on"+ b,d)},q=function(a,b){return-1!==(" "+a.className+" ").indexOf(" "+b+" ")},O=function(a,b){q(a,b)||(a.className=""===a.className?b:a.className+" "+b)},P=function(a,b){b=(" "+a.className+" ").replace(" "+b+" "," ");b=b.trim?b.trim():b.replace(/^\s+|\s+$/g,"");a.className=b},Q=function(a){return/Array/.test(Object.prototype.toString.call(a))},r=function(a){return/Date/.test(Object.prototype.toString.call(a))&&!isNaN(a.getTime())},V=function(a,b){return[31,0===a%4&&0!==a%100||0===a%400?29:28,31,30,31, 30,31,31,30,31,30,31][b]},L=function(a){r(a)&&a.setHours(0,0,0,0)},M=function(a,b){return a.getTime()===b.getTime()},I=function(a,b,d){var c,e;for(c in b)if((e=void 0!==a[c])&&"object"===typeof b[c]&&null!==b[c]&&void 0===b[c].nodeName)r(b[c])?d&&(a[c]=new Date(b[c].getTime())):Q(b[c])?d&&(a[c]=b[c].slice(0)):a[c]=I({},b[c],d);else if(d||!e)a[c]=b[c];return a},W=function(a,b,d){if(k.createEvent){var c=k.createEvent("HTMLEvents");c.initEvent(b,!0,!1);c=I(c,d);a.dispatchEvent(c)}else k.createEventObject&& (c=k.createEventObject(),c=I(c,d),a.fireEvent("on"+b,c))},X=function(a){0>a.month&&(a.year-=Math.ceil(Math.abs(a.month)/12),a.month+=12);11';var v=!0,J=!0;var F=[];for(f=0;12>f;f++)F.push('");e='
'+h.i18n.months[c]+'
";if(Q(h.yearRange)){f=h.yearRange[0];var N=h.yearRange[1]+1}else f=d-h.yearRange,N=1+d+h.yearRange;for(F=[];f=h.minYear&&F.push('");d='
'+d+h.yearSuffix+ '
";l=h.showMonthAfterYear?l+(d+e):l+(e+d);p&&(0===c||h.minMonth>=c)&&(v=!1);t&&(11===c||h.maxMonth<=c)&&(J=!1);0===b&&(l+='");b===a._o.numberOfMonths-1&&(l+='");return l+""},Z=function(a){var b=this,d=b.config(a);b._onMouseDown= function(c){if(b._v){c=c||window.event;var e=c.target||c.srcElement;if(e)if(q(e,"is-disabled")||(!q(e,"pika-button")||q(e,"is-empty")||q(e.parentNode,"is-disabled")?q(e,"pika-prev")?b.prevMonth():q(e,"pika-next")&&b.nextMonth():(b.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),d.bound&&K(function(){b.hide();d.blurFieldOnSelect&&d.field&&d.field.blur()},100))),q(e,"pika-select"))b._c=!0;else if(c.preventDefault)c.preventDefault(); else return c.returnValue=!1}};b._onChange=function(c){c=c||window.event;(c=c.target||c.srcElement)&&(q(c,"pika-select-month")?b.gotoMonth(c.value):q(c,"pika-select-year")&&b.gotoYear(c.value))};b._onKeyChange=function(c){c=c||window.event;if(b.isVisible())switch(c.keyCode){case 13:case 27:d.field&&d.field.blur();break;case 37:b.adjustDate("subtract",1);break;case 38:b.adjustDate("subtract",7);break;case 39:b.adjustDate("add",1);break;case 40:b.adjustDate("add",7)}};b._parseFieldValue=function(){if(d.parse)return d.parse(d.field.value, d.format);if(A){var c=z(d.field.value,d.format,d.formatStrict);return c&&c.isValid()?c.toDate():null}return new Date(Date.parse(d.field.value))};b._onInputChange=function(c){c.firedBy!==b&&(c=b._parseFieldValue(),r(c)&&b.setDate(c),b._v||b.show())};b._onInputFocus=function(){b.show()};b._onInputClick=function(){b.show()};b._onInputBlur=function(){var c=k.activeElement;do if(q(c,"pika-single"))return;while(c=c.parentNode);b._c||(b._b=K(function(){b.hide()},50));b._c=!1};b._onClick=function(c){c=c|| window.event;var e=c=c.target||c.srcElement;if(c){E||!q(c,"pika-select")||c.onchange||(c.setAttribute("onchange","return;"),x(c,"change",b._onChange));do if(q(e,"pika-single")||e===d.trigger)return;while(e=e.parentNode);b._v&&c!==d.trigger&&e!==d.trigger&&b.hide()}};b.el=k.createElement("div");b.el.className="pika-single"+(d.isRTL?" is-rtl":"")+(d.theme?" "+d.theme:"");x(b.el,"mousedown",b._onMouseDown,!0);x(b.el,"touchend",b._onMouseDown,!0);x(b.el,"change",b._onChange);d.keyboardInput&&x(k,"keydown", b._onKeyChange);d.field&&(d.container?d.container.appendChild(b.el):d.bound?k.body.appendChild(b.el):d.field.parentNode.insertBefore(b.el,d.field.nextSibling),x(d.field,"change",b._onInputChange),d.defaultDate||(d.defaultDate=b._parseFieldValue(),d.setDefaultDate=!0));a=d.defaultDate;r(a)?d.setDefaultDate?b.setDate(a,!0):b.gotoDate(a):b.gotoDate(new Date);d.bound?(this.hide(),b.el.className+=" is-bound",x(d.trigger,"click",b._onInputClick),x(d.trigger,"focus",b._onInputFocus),x(d.trigger,"blur",b._onInputBlur)): this.show()};Z.prototype={config:function(a){this._o||(this._o=I({},y,!0));a=I(this._o,a,!0);a.isRTL=!!a.isRTL;a.field=a.field&&a.field.nodeName?a.field:null;a.theme="string"===typeof a.theme&&a.theme?a.theme:null;a.bound=!!(void 0!==a.bound?a.field&&a.bound:a.field);a.trigger=a.trigger&&a.trigger.nodeName?a.trigger:a.field;a.disableWeekends=!!a.disableWeekends;a.disableDayFn="function"===typeof a.disableDayFn?a.disableDayFn:null;var b=parseInt(a.numberOfMonths,10)||1;a.numberOfMonths=4c&&(a=c);this._d=new Date(a.getTime());L(this._d);this.gotoDate(this._d);this._o.field&&(this._o.field.value=this.toString(),W(this._o.field,"change",{firedBy:this}));b||"function"!==typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(a){var b=!0;if(r(a)){if(this.calendars){b=new Date(this.calendars[0].year,this.calendars[0].month,1);var d=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length- 1].month,1),c=a.getTime();d.setMonth(d.getMonth()+1);d.setDate(d.getDate()-1);b=c=c&&(this._y=c,!isNaN(l)&&this._m>l&&(this._m=l));for(c=0;c";this.el.innerHTML=a;b.bound&&"hidden"!==b.field.type&&K(function(){b.trigger.focus()},1);if("function"===typeof this._o.onDraw)this._o.onDraw(this);b.bound&&b.field.setAttribute("aria-label",b.ariaLabel)}},adjustPosition:function(){var a,b;if(!this._o.container){this.el.style.position="absolute";var d=a=this._o.trigger;var c=this.el.offsetWidth;var e=this.el.offsetHeight;var l= window.innerWidth||k.documentElement.clientWidth;var f=window.innerHeight||k.documentElement.clientHeight;var h=window.pageYOffset||k.body.scrollTop||k.documentElement.scrollTop;var p=b=!0;if("function"===typeof a.getBoundingClientRect){d=a.getBoundingClientRect();var t=d.left+window.pageXOffset;var v=d.bottom+window.pageYOffset}else for(t=d.offsetLeft,v=d.offsetTop+d.offsetHeight;d=d.offsetParent;)t+=d.offsetLeft,v+=d.offsetTop;if(this._o.reposition&&t+c>l||-1f+h||-1f&&(f+=7));for(var t=0===b?11:b-1,v=11===b?0:b+1,J=0===b?a-1:a,F=11===b?a+1:a,N=V(J,t),R=l+f,w=R;7=l+f,G=1+(w-f),T=b,U=a,ba=c.startRange&&M(c.startRange,u),ca=c.endRange&&M(c.endRange,u),da=c.startRange&&c.endRange&&c.startRangec.maxDate)&&(H=c.disableWeekends)&& (H=u.getDay(),H=0===H||6===H);u=H||c.disableDayFn&&c.disableDayFn(u);n&&(w"}m.call(C,g);7===++D&&(c.showWeekNumber&&(D=p,C=D.unshift,m=new Date(a,b,w-f),A?m=z(m).isoWeek():(m.setHours(0,0,0,0),g=m.getDate(),n=m.getDay(),m.setDate(g+3-(n+7-1)%7),g=new Date(m.getFullYear(),0,4),m=(m.getTime()-g.getTime())/864E5,m=1+Math.round((m-3+(g.getDay()+7-1)%7)/7)),C.call(D,''+m+"")),D=h,C=D.push,p=''+(c.isRTL?p.reverse():p).join("")+"",C.call(D,p),p=[],D=0,S=!1)}b=[];c.showWeekNumber&&b.push("");for(a=0;7>a;a++)b.push(''+Y(c,a,!0)+"");c=""+(c.isRTL?b.reverse():b).join("")+"";return''+c+(""+h.join("")+"
")},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v= !0,this.draw(),P(this.el,"is-hidden"),this._o.bound&&(x(k,"click",this._onClick),this.adjustPosition()),"function"===typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var a=this._v;!1!==a&&(this._o.bound&&B(k,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",O(this.el,"is-hidden"),this._v=!1,void 0!==a&&"function"===typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var a=this._o;this.hide();B(this.el,"mousedown", this._onMouseDown,!0);B(this.el,"touchend",this._onMouseDown,!0);B(this.el,"change",this._onChange);a.keyboardInput&&B(k,"keydown",this._onKeyChange);a.field&&(B(a.field,"change",this._onInputChange),a.bound&&(B(a.trigger,"click",this._onInputClick),B(a.trigger,"focus",this._onInputFocus),B(a.trigger,"blur",this._onInputBlur)));this.el.parentNode&&this.el.parentNode.removeChild(this.el)}};return Z}); 'use strict';!function(k,l,m,n){XF.DateInput=XF.Element.newHandler({options:{weekStart:0,minDate:null,maxDate:null,disableWeekends:!1,yearRange:null,showWeekNumber:!1,showDaysInNextAndPreviousMonths:!0},picker:null,init:function(){var e=this.options.minDate,f=this.options.maxDate;if(e){var c=Date.parse(e.replace(/-/g,"/"));e=new Date(c)}f&&(c=Date.parse(f.replace(/-/g,"/")),f=new Date(c));var g=this,h=this.$target;c=h.val();e={format:"YYYY-MM-DD",toString:function(a,d){d=a.getDate();const b=a.getMonth()+ 1;return a.getFullYear()+"-"+b+"-"+d},parse:function(a,d){var b=a.split("-");a=parseInt(b[0],10);d=parseInt(b[1],10)-1;b=parseInt(b[2],10);return new Date(a,d,b)},onSelect:function(){var a=this._d,d=String(a.getDate()),b=String(a.getMonth()+1);a=String(a.getFullYear());g.$target.val(a+"-"+(10>b?"0"+b:b)+"-"+(10>d?"0"+d:d))},onOpen:function(){h.prop("readonly")&&this.hide()},showTime:!1,firstDay:this.options.weekStart,minDate:e,maxDate:f,disableWeekends:this.options.disableWeekends,yearRange:this.options.yearRange, showWeekNumber:this.options.showWeekNumber,showDaysInNextAndPreviousMonths:this.options.showDaysInNextAndPreviousMonths,i18n:{previousMonth:"",nextMonth:"",weekdays:[0,1,2,3,4,5,6].map(function(a){return XF.phrase("day"+a)}),weekdaysShort:[0,1,2,3,4,5,6].map(function(a){return XF.phrase("dayShort"+a)}),months:[0,1,2,3,4,5,6,7,8,9,10,11].map(function(a){return XF.phrase("month"+a)})},isRTL:!1,field:this.$target[0]};c&&(f=c.match(/^(\d{4})-(\d\d?)-(\d\d?)$/))&&(e.defaultDate=new Date(parseInt(f[1], 10),parseInt(f[2],10)-1,parseInt(f[3])),e.setDefaultDate=!0);this.picker=new Pikaday(e);this.$target.val(c);c=this.$target.parent().find(".js-dateTrigger");if(c.length)c.on("click",function(){g.picker.show()})}});XF.Element.register("date-input","XF.DateInput")}(jQuery,window,document); Flash Sale Popup