PageSourceSearch

https://www.oferefrigerated.com.au/wc/5.0.0/plugins/form-editor/js…/combodate.js?current_gen=090725-b465f861

js oferefrigerated.com.au collected 2026-10-08 16:16:33 UTC 8,393 bytes, 18 lines download raw bytes

1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(c,g,a){c instanceof String&&(c=String(c));for(var b=c.length,f=0;f<b;f++){var d=c[f];if(g.call(a,d,f,c))return{i:f,v:d}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;
2$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(c,g,a){if(c==Array.prototype||c==Object.prototype)return c;c[g]=a.value;return c};$jscomp.getGlobal=function(c){c=["object"==typeof globalThis&&globalThis,c,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var g=0;g<c.length;++g){var a=c[g];if(a&&a.Math==Math)return a}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
3$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");var $jscomp$lookupPolyfilledValue=function(c,g){var a=$jscomp.propertyToPolyfillSymbol[g];if(null==a)return c[g];a=c[a];return void 0!==a?a:c[g]};$jscomp.polyfill=function(c,g,a,b){g&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(c,g,a,b):$jscomp.polyfillUnisolated(c,g,a,b))};
4$jscomp.polyfillUnisolated=function(c,g,a,b){a=$jscomp.global;c=c.split(".");for(b=0;b<c.length-1;b++){var f=c[b];f in a||(a[f]={});a=a[f]}c=c[c.length-1];b=a[c];g=g(b);g!=b&&null!=g&&$jscomp.defineProperty(a,c,{configurable:!0,writable:!0,value:g})};
5$jscomp.polyfillIsolated=function(c,g,a,b){var f=c.split(".");c=1===f.length;b=f[0];b=!c&&b in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var d=0;d<f.length-1;d++){var e=f[d];e in b||(b[e]={});b=b[e]}f=f[f.length-1];a=$jscomp.IS_SYMBOL_NATIVE&&"es6"===a?b[f]:null;g=g(a);null!=g&&(c?$jscomp.defineProperty($jscomp.polyfills,f,{configurable:!0,writable:!0,value:g}):g!==a&&($jscomp.propertyToPolyfillSymbol[f]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(f):$jscomp.POLYFILL_PREFIX+f,f=$jscomp.propertyToPolyfillSymbol[f],
6$jscomp.defineProperty(b,f,{configurable:!0,writable:!0,value:g})))};$jscomp.polyfill("Array.prototype.find",function(c){return c?c:function(c,a){return $jscomp.findInternal(this,c,a).v}},"es6","es3");
7(function(c){var g=function(a,b){this.$element=c(a);this.$element.is("input")?(this.options=c.extend({},c.fn.combodate.defaults,b,this.$element.data()),this.init()):c.error("Combodate should be applied to INPUT element")};g.prototype={constructor:g,init:function(){this.map={day:["D","date"],month:["M","month"],year:["Y","year"],hour:["[Hh]","hours"],minute:["m","minutes"],second:["s","seconds"],ampm:["[Aa]",""]};this.$widget=c('<span class="combodate"></span>').html(this.getTemplate());this.initCombos();
8this.$widget.on("change","select",c.proxy(function(a){this.$element.val(this.getValue()).change();this.$element.trigger("validate");this.options.smartDays&&(c(a.target).is(".month")||c(a.target).is(".year"))&&this.fillCombo("day")},this));this.$widget.find("select").css("width","auto");this.$element.hide().after(this.$widget);this.setValue(this.$element.val()||this.options.value)},getTemplate:function(){var a=this.options.template,b=this.options.customClass;c.each(this.map,function(b,c){c=c[0];b=
9new RegExp(c+"+");c=1<c.length?c.substring(1,2):c;a=a.replace(b,"{"+c+"}")});a=a.replace(/ /g,"&nbsp;");c.each(this.map,function(c,d){d=d[0];d=1<d.length?d.substring(1,2):d;a=a.replace("{"+d+"}",'<select class="'+c+" "+b+'"></select>')});return a},initCombos:function(){for(var a in this.map){var b=this.$widget.find("."+a);this["$"+a]=b.length?b:null;this.fillCombo(a)}},fillCombo:function(a){var b=this["$"+a];if(b){a=this["fill"+a.charAt(0).toUpperCase()+a.slice(1)]();var c=b.val();b.empty();for(var d=
100;d<a.length;d++)b.append('<option value="'+a[d][0]+'">'+a[d][1]+"</option>");b.val(c)}},fillCommon:function(a){var b=[];if("name"===this.options.firstItem){var c=moment.relativeTime||moment.localeData()._relativeTime;a="function"===typeof c[a]?c[a](1,!0,a,!1):c[a];a=a.split(" ").reverse()[0];b.push(["",a])}
10else"empty"===this.options.firstItem&&b.push(["",""]);return b},fillDay:function(){var a=this.fillCommon("d"),b=-1!==this.options.template.indexOf("DD"),c=31;if(this.options.smartDays&&this.$month&&
11this.$year){var d=parseInt(this.$month.val(),10);var e=parseInt(this.$year.val(),10);isNaN(d)||isNaN(e)||(c=moment([e,d]).daysInMonth())}for(e=1;e<=c;e++)d=b?this.leadZero(e):e,a.push([e,d]);return a},fillMonth:function(){var a=this.fillCommon("M"),b,c=-1!==this.options.template.indexOf("MMMM"),d=-1!==this.options.template.indexOf("MMM"),e=-1!==this.options.template.indexOf("MM");for(b=0;11>=b;b++){var g=c?moment().date(1).month(b).format("MMMM"):d?moment().date(1).month(b).format("MMM"):e?this.leadZero(b+
121):b+1;a.push([b,g])}return a},fillYear:function(){var a=[],b,c=-1!==this.options.template.indexOf("YYYY");for(b=this.options.maxYear;b>=this.options.minYear;b--){var d=c?b:(b+"").substring(2);a[this.options.yearDescending?"push":"unshift"]([b,d])}return a=this.fillCommon("y").concat(a)},fillHour:function(){var a=this.fillCommon("h"),b;var c=-1!==this.options.template.indexOf("h");this.options.template.indexOf("H");var d=-1!==this.options.template.toLowerCase().indexOf("hh"),e=c?12:23;for(b=c?1:0;b<=
13e;b++)c=d?this.leadZero(b):b,a.push([b,c]);return a},fillMinute:function(){var a=this.fillCommon("m"),b,c=-1!==this.options.template.indexOf("mm");for(b=0;59>=b;b+=this.options.minuteStep){var d=c?this.leadZero(b):b;a.push([b,d])}return a},fillSecond:function(){var a=this.fillCommon("s"),b,c=-1!==this.options.template.indexOf("ss");for(b=0;59>=b;b+=this.options.secondStep){var d=c?this.leadZero(b):b;a.push([b,d])}return a},fillAmpm:function(){var a=-1!==this.options.template.indexOf("a");this.options.template.indexOf("A");
14var b=this.fillCommon("a");b.push(["am",a?"am":"AM"]);b.push(["pm",a?"pm":"PM"]);return b},getValue:function(a){var b={},f=this,d=!1;c.each(this.map,function(a,c){if("ampm"!==a&&(c="day"===a?1:0,b[a]=f["$"+a]?parseInt(f["$"+a].val(),10):c,isNaN(b[a])))return d=!0,!1});if(d)return"";this.$ampm&&(b.hour=12===b.hour?"am"===this.$ampm.val()?0:12:"am"===this.$ampm.val()?b.hour:b.hour+12);var e=moment([b.year,b.month,b.day,b.hour,b.minute,b.second]);this.highlight(e);a=void 0===a?this.options.format:a;
15return null===a?e.isValid()?e:null:e.isValid()?e.format(a):""},setValue:function(a){function b(a,b){var d={};a.children("option").each(function(a,e){a=c(e).attr("value");""!==a&&(e=Math.abs(a-b),"undefined"===typeof d.distance||e<d.distance)&&(d={value:a,distance:e})});return d.value}if(a){var f="string"===typeof a?moment(a,this.options.format,!0):moment(a),d=this,e={};f.isValid()&&(c.each(this.map,function(a,b){"ampm"!==a&&(e[a]=f[b[1]]())}),this.$ampm&&(12<=e.hour?(e.ampm="pm",12<e.hour&&(e.hour-=
1612)):(e.ampm="am",0===e.hour&&(e.hour=12))),c.each(e,function(a,c){d["$"+a]&&("minute"===a&&1<d.options.minuteStep&&d.options.roundTime&&(c=b(d["$"+a],c)),"second"===a&&1<d.options.secondStep&&d.options.roundTime&&(c=b(d["$"+a],c)),d["$"+a].val(c))}),this.options.smartDays&&this.fillCombo("day"),this.$element.val(f.format(this.options.format)).change())}},highlight:function(a){a.isValid()?this.options.errorClass?this.$widget.removeClass(this.options.errorClass):this.$widget.find("select").css("border-color",
17this.borderColor):this.options.errorClass?this.$widget.addClass(this.options.errorClass):(this.borderColor||(this.borderColor=this.$widget.find("select").css("border-color")),this.$widget.find("select").css("border-color","red"))},leadZero:function(a){return 9>=a?"0"+a:a},destroy:function(){this.$widget.remove();this.$element.removeData("combodate").show()}};c.fn.combodate=function(a){var b,f=Array.apply(null,arguments);f.shift();return"getValue"===a&&this.length&&(b=this.eq(0).data("combodate"))?
18b.getValue.apply(b,f):this.each(function(){var b=c(this),e=b.data("combodate"),h="object"==typeof a&&a;e||b.data("combodate",e=new g(this,h));"string"==typeof a&&"function"==typeof e[a]&&e[a].apply(e,f)})};c.fn.combodate.defaults={format:"DD-MM-YYYY HH:mm",template:"D / MMM / YYYY   H : mm",value:null,minYear:1970,maxYear:2015,yearDescending:!0,minuteStep:5,secondStep:1,firstItem:"empty",errorClass:null,customClass:"",roundTime:!0,smartDays:!1}})(window.jQuery);

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.