Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/public_html/components/com_sppagebuilder--/assets/js/ |
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(o){"use strict";var n=[],e=[],i={precision:100,elapse:!1,defer:!1};e.push(/^[0-9]*$/.source),e.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),e.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),e=new RegExp(e.join("|"));function a(t,e,s){this.el=t,this.$el=o(t),this.interval=null,this.offset={},this.options=o.extend({},i),this.instanceNumber=n.length,n.push(this),this.$el.data("countdown-instance",this.instanceNumber),s&&("function"==typeof s?(this.$el.on("update.countdown",s),this.$el.on("stoped.countdown",s),this.$el.on("finish.countdown",s)):this.options=o.extend({},i,s)),this.setFinalDate(e),!1===this.options.defer&&this.start()}var g={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"};o.extend(a.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var t=this;this.update(),this.interval=setInterval(function(){t.update.call(t)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),n[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(t){this.finalDate=function(t){if(t instanceof Date)return t;if(String(t).match(e))return String(t).match(/^[0-9]*$/)&&(t=Number(t)),String(t).match(/\-/)&&(t=String(t).replace(/\-/g,"/")),new Date(t);throw new Error("Couldn't cast `"+t+"` to a date object.")}(t)},update:function(){if(0!==this.$el.closest("html").length){var t,e=void 0!==o._data(this.el,"events"),s=new Date;t=this.finalDate.getTime()-s.getTime(),t=Math.ceil(t/1e3),t=!this.options.elapse&&t<0?0:Math.abs(t),this.totalSecsLeft!==t&&e&&(this.totalSecsLeft=t,this.elapsed=s>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-s.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))}else this.remove()},dispatchEvent:function(t){var e=o.Event(t+".countdown");e.finalDate=this.finalDate,e.elapsed=this.elapsed,e.offset=o.extend({},this.offset),e.strftime=function(v){return function(t){var e,s,i,o,n,a,h=t.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(h)for(var l=0,r=h.length;l<r;++l){var c=h[l].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),f=(n=c[0],void 0,a=n.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),new RegExp(a)),u=c[1]||"",d=c[3]||"",p=null;c=c[2],g.hasOwnProperty(c)&&(p=g[c],p=Number(v[p])),null!==p&&("!"===u&&(s=p,o=i=void 0,i="s",o="",(e=d)&&(e=e.replace(/(:|;|\s)/gi,"").split(/\,/),i=1===e.length?e[0]:(o=e[0],e[1])),p=1<Math.abs(s)?i:o),""===u&&p<10&&(p="0"+p.toString()),t=t.replace(f,p.toString()))}return t.replace(/%%/,"%")}}(this.offset),this.$el.trigger(e)}}),o.fn.countdown=function(){var i=Array.prototype.slice.call(arguments,0);return this.each(function(){var t=o(this).data("countdown-instance");if(void 0!==t){var e=n[t],s=i[0];a.prototype.hasOwnProperty(s)?e[s].apply(e,i.slice(1)):null===String(s).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(e.setFinalDate.call(e,s),e.start()):o.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,s))}else new a(this,i[0],i[1])})}});