HEX
Server: LiteSpeed
System: Linux pulsar191.sitesanctuary.org 5.14.0-284.30.1.el9.tuxcare.els9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jan 10 17:34:05 UTC 2025 x86_64
User: lgooir (1604)
PHP: 8.1.32
Disabled: exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/lgooir/.trash/rising-bamboo/dist/js/frontend/components/countdown.js
/*! For license information please see countdown.js.LICENSE.txt */
(()=>{var t={7596:(t,e,n)=>{var s,o,a;!function(i){"use strict";o=[n(5311)],s=function(t){var e=[],n=[],s={precision:100,elapse:!1,defer:!1};function o(t){if(t instanceof Date)return t;if(String(t).match(n))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.")}n.push(/^[0-9]*$/.source),n.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),n.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),n=new RegExp(n.join("|"));var a={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"};function i(t){var e=t.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(e)}function r(t){return function(e){var n=e.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(n)for(var s=0,o=n.length;s<o;++s){var r=n[s].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),c=i(r[0]),u=r[1]||"",h=r[3]||"",f=null;r=r[2],a.hasOwnProperty(r)&&(f=a[r],f=Number(t[f])),null!==f&&("!"===u&&(f=l(h,f)),""===u&&f<10&&(f="0"+f.toString()),e=e.replace(c,f.toString()))}return e=e.replace(/%%/,"%")}}function l(t,e){var n="s",s="";return t&&(1===(t=t.replace(/(:|;|\s)/gi,"").split(/\,/)).length?n=t[0]:(s=t[0],n=t[1])),Math.abs(e)>1?n:s}var c=function(n,o,a){this.el=n,this.$el=t(n),this.interval=null,this.offset={},this.options=t.extend({},s),this.instanceNumber=e.length,e.push(this),this.$el.data("countdown-instance",this.instanceNumber),a&&("function"==typeof a?(this.$el.on("update.countdown",a),this.$el.on("stoped.countdown",a),this.$el.on("finish.countdown",a)):this.options=t.extend({},s,a)),this.setFinalDate(o),!1===this.options.defer&&this.start()};t.extend(c.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),e[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(t){this.finalDate=o(t)},update:function(){if(0!==this.$el.closest("html").length){var e,n=void 0!==t._data(this.el,"events"),s=new Date;e=this.finalDate.getTime()-s.getTime(),e=Math.ceil(e/1e3),e=!this.options.elapse&&e<0?0:Math.abs(e),this.totalSecsLeft!==e&&n&&(this.totalSecsLeft=e,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(e){var n=t.Event(e+".countdown");n.finalDate=this.finalDate,n.elapsed=this.elapsed,n.offset=t.extend({},this.offset),n.strftime=r(this.offset),this.$el.trigger(n)}}),t.fn.countdown=function(){var n=Array.prototype.slice.call(arguments,0);return this.each((function(){var s=t(this).data("countdown-instance");if(void 0!==s){var o=e[s],a=n[0];c.prototype.hasOwnProperty(a)?o[a].apply(o,n.slice(1)):null===String(a).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(o.setFinalDate.call(o,a),o.start()):t.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,a))}else new c(this,n[0],n[1])}))}},void 0===(a="function"==typeof s?s.apply(e,o):s)||(t.exports=a)}()},5311:t=>{"use strict";t.exports=jQuery}},e={};function n(s){var o=e[s];if(void 0!==o)return o.exports;var a=e[s]={exports:{}};return t[s](a,a.exports,n),a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";n(7596);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e,n){for(var s=0;s<n.length;s++){var o=n[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(a=o.key,i=void 0,i=function(e,n){if("object"!==t(e)||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var o=s.call(e,n||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(a,"string"),"symbol"===t(i)?i:String(i)),o)}var a,i}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.render()}var n,s,o;return n=t,(s=[{key:"render",value:function(t){jQuery(document).ready((function(){var e=jQuery("[data-countdown-date]");void 0!==t&&(e=jQuery(t)),e.length&&e.each((function(){var t=jQuery(this),e=t.data("countdownDate")||{},n='<div class="item-time days"><span class="data-number">%D</span><span class="name-time">Day%!H</span></div><div class="item-time"><span class="data-number">%H</span><span class="name-time">Hour%!H</span></div><div class="item-time"><span class="data-number">%M</span><span class="name-time">Min%!H</span></div><div class="item-time"><span class="data-number">%S</span><span class="name-time">Sec</span></div>';t.html().length&&(n=t.html()),t.countdown(e,(function(e){t.html(e.strftime(n))}))}))}))}}])&&e(n.prototype,s),o&&e(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}();setTimeout((function(){window.RbbCountdown=new s}),2e3)})()})();