diff --git a/BBjGridExWidget.bbj b/BBjGridExWidget.bbj index c58dac2e..0139fa8a 100644 --- a/BBjGridExWidget.bbj +++ b/BBjGridExWidget.bbj @@ -755,15 +755,9 @@ class public BBjGridExWidget extends BBjWidget close (ch) #HTMLView!.injectScript(script$,1) fi - - ch=unt - open (ch)"BBjGridExWidget/js/dist/bbj-masks-bundle.min.js" - read record (ch,siz=5512000)script$ - close (ch) - #HTMLView!.injectScript(script$) ch=unt - open (ch)"BBjGridExWidget/js/dist/agc-basic.min.js" + open (ch)"BBjGridExWidget/js/dist/agc-basic-bundle.min.js" read record (ch,siz=5512000)script$ close (ch) #HTMLView!.injectScript(script$) diff --git a/js/dist/agc-basic-bundle.min.js b/js/dist/agc-basic-bundle.min.js new file mode 100644 index 00000000..0ffa45e3 --- /dev/null +++ b/js/dist/agc-basic-bundle.min.js @@ -0,0 +1 @@ +var Basis=Basis||{};Basis.AgGridComponents=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=25)}([function(e,t,n){"use strict";function r(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:null,r=this.getWin(t).AGridComponentsMetaConfig;return t.hasOwnProperty("CONFIG_CONTEXT")&&(r=r[t.CONFIG_CONTEXT]),r&&r.hasOwnProperty(t.column.colId)&&r[t.column.colId].hasOwnProperty(e)?r[t.column.colId][e]:t[e]||n}}])&&r(t.prototype,n),i&&r(t,i),e}()},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(o=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),a=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(a).concat([i]).join("\n")}var o;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i=0&&u.splice(t,1)}function g(e){var t=document.createElement("style");return e.attrs.type="text/css",y(t,e.attrs),p(e,t),t}function y(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function v(e,t){var n,r,i,a;if(t.transform&&e.css){if(!(a=t.transform(e.css)))return function(){};e.css=a}if(t.singleton){var o=l++;n=c||(c=g(t)),r=k.bind(null,n,o,!1),i=k.bind(null,n,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",y(t,e.attrs),p(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,a=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||a)&&(r=d(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var o=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return f(n,t),function(e){for(var r=[],i=0;i0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._build(t,n,r)}var t,n,i;return t=e,(n=[{key:"getValue",value:function(){return this.input.checked}},{key:"focus",value:function(){this.component.focus()}},{key:"toggle",value:function(){this.input.checked=!this.input.checked}},{key:"check",value:function(){this.input.checked=!0}},{key:"uncheck",value:function(){this.input.checked=!1}},{key:"enable",value:function(){this.input.disabled=!1}},{key:"disable",value:function(){this.input.disabled=!0}},{key:"destroy",value:function(){this.component.removeEventListener("click",this._onClick.bind(this)),this.component.removeEventListener("keydown",this._onChange.bind(this)),this.disable()}},{key:"_build",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=arguments.length>2?arguments[2]:void 0;this.component=t.createElement("div"),this.component.className="BooleanSwitch",this.component.tabIndex="-1",this.slider=t.createElement("span"),this.slider.className="slider round",this.input=t.createElement("input"),this.input.type="checkbox",this.input.checked=e,this.input.tabIndex="0",this.component.appendChild(this.input),this.component.appendChild(this.slider),this.component.addEventListener("click",this._onClick.bind(this,n)),this.component.addEventListener("keydown",this._onChange.bind(this,n))}},{key:"_onClick",value:function(e,t){this.toggle(),e&&e(this)}},{key:"_onChange",value:function(e,t){var n=t.which||t.keyCode;32==n?(this.toggle(),e&&e(this),t.stopPropagation()):39==n?(this.check(),e&&e(this),t.stopPropagation()):37==n&&(this.uncheck(),e&&e(this),t.stopPropagation())}}])&&r(t.prototype,n),i&&r(t,i),e}()},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.doc=n,this.options=r({dateFormat:this._mapMask(t.mask),onReady:this._onReady.bind(this)},t),this._build(this.options,this.doc)}var t,n,a;return t=e,(n=[{key:"setDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.flatpickr.setDate(e||"",t)}},{key:"setOption",value:function(e,t){this.flatpickr.set(e,t)}},{key:"open",value:function(){this.flatpickr.open(),this.flatpickr.input.focus()}},{key:"close",value:function(){this.flatpickr.close()}},{key:"enable",value:function(){this.input.disabled=!1}},{key:"disable",value:function(){this.input.disabled=!0}},{key:"destroy",value:function(){this.flatpickr.destroy(),this.clearButton.removeEventListener("click",this._onClearButtonClick.bind(this)),this.component.removeEventListener("keydown",this._onKeyDown.bind(this))}},{key:"_build",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;this.component=t.createElement("div"),this.component.className="DateTimesDialog",this.component.tabIndex="0",this.input=t.createElement("input"),this.component.appendChild(this.input),this.flatpickr=flatpickr(this.input,e),this.component.addEventListener("keydown",this._onKeyDown.bind(this))}},{key:"_onKeyDown",value:function(e){var t=e.which||e.keyCode;if([37,39].indexOf(t)>-1)e.stopPropagation();else if(38===t){var n=this.flatpickr.input.value,r=Date.parse(n);r instanceof Date||(r=new Date(n)),r.setDate(r.getDate()+1),this.flatpickr.setDate(r),this.flatpickr.input.value=BBj.Masks.Types.date(r,this.options.mask),e.stopPropagation()}else if(40===t){var i=this.flatpickr.input.value,a=Date.parse(i);a instanceof Date||(next=new Date(i)),a.setDate(a.getDate()-1),this.flatpickr.setDate(a),this.flatpickr.input.value=BBj.Masks.Types.date(a,this.options.mask),e.stopPropagation()}else 9===t&&this.setDate(this.flatpickr.input.value,!0)}},{key:"_onReady",value:function(e,t,n){n.calendarContainer.querySelector(".flatpickr-clear")||(this.clearButton=this.doc.createElement("button"),this.clearButton.className="flatpickr-clear",this.clearButton.innerHTML="Clear",n.calendarContainer.appendChild(this.clearButton),this.clearButton.addEventListener("click",this._onClearButtonClick.bind(this,n)))}},{key:"_onClearButtonClick",value:function(e){e.clear(),e.close(),this.options.hasOwnProperty("onClear")&&this.options.onClear()}},{key:"_mapMask",value:function(e){var t=this._getMasksMapping(),n=e;for(var r in t)n=n.replace(new RegExp("(%"+r+")","g"),t[r]);return n}},{key:"_getMasksMapping",value:function(){return{Yz:"y",Ys:"Y",Yl:"Y",Yp:"Y",Yd:"Y",Y:"Y",Mz:"m",Ms:"n",Ml:"n",Mp:"n",Md:"n",M:"n",Dz:"d",Ds:"j",Dl:"j",Dp:"j",Dd:"j",D:"j",Hz:"H",Hs:"H",Hl:"H",Hp:"H",Hd:"H",H:"H",hz:"h",hs:"h",hl:"h",hp:"h",hd:"h",h:"h",mz:"i",ms:"i",ml:"i",mp:"i",md:"i",m:"i",sz:"S",ss:"s",sl:"s",sp:"s",sd:"s",s:"s",PP:"K",P:"K",pp:"K",p:"K"}}}])&&i(t.prototype,n),a&&i(t,a),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(3),i=n(0);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n\n
  • '.concat(n||"◉ True",'
  • \n
  • ').concat(r||"◎ False",'
  • \n
  • ').concat(i||"◍ None","
  • \n \n "),this.filterElements=this.gui.querySelectorAll("li");for(var a=0;a=s&&n<=c}else if(void 0!==i){t=new Date(i)===n}else t=!0;return t}},{key:"isFilterActive",value:function(){return Array.isArray(this.filterDates)&&this.filterDates.length}},{key:"getModel",value:function(){return{value:this.filterDates}}},{key:"getModelAsString",value:function(){var e=this.getOption("FILTER_MASK",this.params),t=o(this.filterDates,2),n=t[0],r=t[1],i="";return n&&(i+="".concat(BBj.Masks.Types.date(n,e))),r&&(i+=" - ".concat(BBj.Masks.Types.date(r,e))),i}}])&&s(n.prototype,c),l&&s(n,l),t}()},function(e,t,n){var r=n(15);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:function(){return window.top.document.head}};n(2)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".flatpickr-calendar{font-size:13px;border-radius:5px}.flatpickr-calendar .flatpickr-clear{padding:7px;margin:12px;text-align:center;background-color:#569ff7;color:#fff;outline:0;border:0;min-width:100px;cursor:pointer;box-shadow:0 0 2px 0 transparent;transition:box-shadow .36s}.flatpickr-calendar .flatpickr-clear:focus,.flatpickr-calendar .flatpickr-clear:hover{box-shadow:0 0 2px 0 #9e9e9e}.DateTimesDialog{max-width:307.875px;overflow:hidden}.DateTimesDialog input{min-width:100%;max-width:100%;width:100%;height:100%;margin-left:auto;margin-right:auto;padding:3px;outline:0;border:none}",""])},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(0);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n'):this.container.innerHTML=e.value}},{key:"getGui",value:function(){return this.container}}])&&a(n.prototype,o),s&&a(n,s),t}()},function(e,t,n){var r=n(18);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:function(){return window.top.document.head}};n(2)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".BasicImagesRenderer img{display:block;margin-left:auto;margin-right:auto}",""])},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(0);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n12?"PM":"AM",pp:e.hours24>12?"pm":"am",p:e.hours24>12?"pm":"am",Jz:1==String(e.dayOfYear).length?"0"+e.dayOfYear:e.dayOfYear,Js:e.dayOfYear,Jl:e.dayOfYear,Jd:e.dayOfYear,J:e.dayOfYear,Wz:1==String(e.dayOfWeek).length?"0"+e.dayOfWeek:e.dayOfWeek,Ws:e.dayOfWeek,Wl:e.dayOfWeek,Wp:String.fromCharCode(e.dayOfWeek),Wd:e.dayOfWeek,W:e.dayOfWeek}}},{key:"_getDayOfYear",value:function(e){var t=new Date(e),n=new Date(t.getFullYear(),0,0),r=t-n+60*(n.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(r/864e5)}}])&&r(t.prototype,n),i&&r(t,i),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DateMask",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Types",{enumerable:!0,get:function(){return i.default}});var r=a(n(0)),i=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(3)),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=0;n0?e.substring(0,h):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),y=f-g,v=e.substring(y,y+1),b=y+("."===v||","===v?1:0),w=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(h,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",a=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(l=t.split("."))[1]||l[1]&&l[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(a),e[0]=u.join(""),(o=e[0]&&e[0].indexOf("0"))>-1)for(;l[0].lengtht?1:0;throw new TypeError(e+" - "+t)},o.equals=function(e,t){return 0===e.compareTo(t)},o.getDayNumberFromName=function(e){for(var t=c.dayNames,n=c.abbreviatedDayNames,r=c.shortestDayNames,i=e.toLowerCase(),a=0;a=e.getTime()&&this.getTime()<=t.getTime()},s.isAfter=function(e){return 1===this.compareTo(e||new Date)},s.isBefore=function(e){return-1===this.compareTo(e||new Date)},s.isToday=function(){return this.isSameDay(new Date)},s.isSameDay=function(e){return this.clone().clearTime().equals(e.clone().clearTime())},s.addMilliseconds=function(e){return this.setMilliseconds(this.getMilliseconds()+e),this},s.addSeconds=function(e){return this.addMilliseconds(1e3*e)},s.addMinutes=function(e){return this.addMilliseconds(6e4*e)},s.addHours=function(e){return this.addMilliseconds(36e5*e)},s.addDays=function(e){return this.setDate(this.getDate()+e),this},s.addWeeks=function(e){return this.addDays(7*e)},s.addMonths=function(e){var t=this.getDate();return this.setDate(1),this.setMonth(this.getMonth()+e),this.setDate(Math.min(t,o.getDaysInMonth(this.getFullYear(),this.getMonth()))),this},s.addYears=function(e){return this.addMonths(12*e)},s.add=function(e){if("number"==typeof e)return this._orient=e,this;var t=e;return t.milliseconds&&this.addMilliseconds(t.milliseconds),t.seconds&&this.addSeconds(t.seconds),t.minutes&&this.addMinutes(t.minutes),t.hours&&this.addHours(t.hours),t.weeks&&this.addWeeks(t.weeks),t.months&&this.addMonths(t.months),t.years&&this.addYears(t.years),t.days&&this.addDays(t.days),this},s.getWeek=function(){var e,t,r,o,s,c,l;return n=n||this.getFullYear(),i=i||this.getMonth()+1,a=a||this.getDate(),i<=2?(l=(t=((e=n-1)/4|0)-(e/100|0)+(e/400|0))-(((e-1)/4|0)-((e-1)/100|0)+((e-1)/400|0)),r=0,o=a-1+31*(i-1)):(r=1+(l=(t=((e=n)/4|0)-(e/100|0)+(e/400|0))-(((e-1)/4|0)-((e-1)/100|0)+((e-1)/400|0))),o=a+(153*(i-3)+2)/5+58+l),n=i=a=null,(c=o+3-(o+(s=(e+t)%7)-r)%7|0)<0?53-((s-l)/5|0):c>364+l?1:1+(c/7|0)},s.getISOWeek=function(){return n=this.getUTCFullYear(),i=this.getUTCMonth()+1,a=this.getUTCDate(),l(this.getWeek())},s.setWeek=function(e){return this.moveToDayOfWeek(1).addWeeks(e-this.getWeek())},o._validate=function(e,t,n,r){if(void 0===e)return!1;if("number"!=typeof e)throw new TypeError(e+" is not a Number.");if(en)throw new RangeError(e+" is not a valid value for "+r+".");return!0},o.validateMillisecond=function(e){return o._validate(e,0,999,"millisecond")},o.validateSecond=function(e){return o._validate(e,0,59,"second")},o.validateMinute=function(e){return o._validate(e,0,59,"minute")},o.validateHour=function(e){return o._validate(e,0,23,"hour")},o.validateDay=function(e,t,n){return o._validate(e,1,o.getDaysInMonth(t,n),"day")},o.validateMonth=function(e){return o._validate(e,0,11,"month")},o.validateYear=function(e){return o._validate(e,0,9999,"year")},s.set=function(e){return o.validateMillisecond(e.millisecond)&&this.addMilliseconds(e.millisecond-this.getMilliseconds()),o.validateSecond(e.second)&&this.addSeconds(e.second-this.getSeconds()),o.validateMinute(e.minute)&&this.addMinutes(e.minute-this.getMinutes()),o.validateHour(e.hour)&&this.addHours(e.hour-this.getHours()),o.validateMonth(e.month)&&this.addMonths(e.month-this.getMonth()),o.validateYear(e.year)&&this.addYears(e.year-this.getFullYear()),o.validateDay(e.day,this.getFullYear(),this.getMonth())&&this.addDays(e.day-this.getDate()),e.timezone&&this.setTimezone(e.timezone),e.timezoneOffset&&this.setTimezoneOffset(e.timezoneOffset),e.week&&o._validate(e.week,0,53,"week")&&this.setWeek(e.week),this},s.moveToFirstDayOfMonth=function(){return this.set({day:1})},s.moveToLastDayOfMonth=function(){return this.set({day:o.getDaysInMonth(this.getFullYear(),this.getMonth())})},s.moveToNthOccurrence=function(e,t){var n=0;if(t>0)n=t-1;else if(-1===t)return this.moveToLastDayOfMonth(),this.getDay()!==e&&this.moveToDayOfWeek(e,-1),this;return this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(e,1).addWeeks(n)},s.moveToDayOfWeek=function(e,t){var n=(e-this.getDay()+7*(t||1))%7;return this.addDays(0===n?n+=7*(t||1):n)},s.moveToMonth=function(e,t){var n=(e-this.getMonth()+12*(t||1))%12;return this.addMonths(0===n?n+=12*(t||1):n)},s.getOrdinalNumber=function(){return Math.ceil((this.clone().clearTime()-new Date(this.getFullYear(),0,1))/864e5)+1},s.getTimezone=function(){return o.getTimezoneAbbreviation(this.getUTCOffset())},s.setTimezoneOffset=function(e){var t=this.getTimezoneOffset(),n=-6*Number(e)/10;return this.addMinutes(n-t)},s.setTimezone=function(e){return this.setTimezoneOffset(o.getTimezoneOffset(e))},s.hasDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!==Date.today().set({month:6,day:1}).getTimezoneOffset()},s.isDaylightSavingTime=function(){return this.hasDaylightSavingTime()&&(new Date).getTimezoneOffset()===Date.today().set({month:6,day:1}).getTimezoneOffset()},s.getUTCOffset=function(){var e,t=-10*this.getTimezoneOffset()/6;return t<0?(e=(t-1e4).toString()).charAt(0)+e.substr(2):"+"+(e=(t+1e4).toString()).substr(1)},s.getElapsed=function(e){return(e||new Date)-this},s.toISOString||(s.toISOString=function(){function e(e){return e<10?"0"+e:e}return'"'+this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+'Z"'}),s._toString=s.toString,s.toString=function(e){var t=this;if(e&&1==e.length){var n=c.formatPatterns;switch(t.t=t.toString,e){case"d":return t.t(n.shortDate);case"D":return t.t(n.longDate);case"F":return t.t(n.fullDateTime);case"m":return t.t(n.monthDay);case"r":return t.t(n.rfc1123);case"s":return t.t(n.sortableDateTime);case"t":return t.t(n.shortTime);case"T":return t.t(n.longTime);case"u":return t.t(n.universalSortableDateTime);case"y":return t.t(n.yearMonth)}}return e?e.replace(/(\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S)/g,function(e){if("\\"===e.charAt(0))return e.replace("\\","");switch(t.h=t.getHours,e){case"hh":return l(t.h()<13?0===t.h()?12:t.h():t.h()-12);case"h":return t.h()<13?0===t.h()?12:t.h():t.h()-12;case"HH":return l(t.h());case"H":return t.h();case"mm":return l(t.getMinutes());case"m":return t.getMinutes();case"ss":return l(t.getSeconds());case"s":return t.getSeconds();case"yyyy":return l(t.getFullYear(),4);case"yy":return l(t.getFullYear());case"dddd":return c.dayNames[t.getDay()];case"ddd":return c.abbreviatedDayNames[t.getDay()];case"dd":return l(t.getDate());case"d":return t.getDate();case"MMMM":return c.monthNames[t.getMonth()];case"MMM":return c.abbreviatedMonthNames[t.getMonth()];case"MM":return l(t.getMonth()+1);case"M":return t.getMonth()+1;case"t":return t.h()<12?c.amDesignator.substring(0,1):c.pmDesignator.substring(0,1);case"tt":return t.h()<12?c.amDesignator:c.pmDesignator;case"S":return function(e){switch(1*e){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}}(t.getDate());default:return e}}):this._toString()},function(){var e=Date,t=e.prototype,n=e.CultureInfo,r=Number.prototype;t._orient=1,t._nth=null,t._is=!1,t._same=!1,t._isSecond=!1,r._dateElement="day",t.next=function(){return this._orient=1,this},e.next=function(){return e.today().next()},t.last=t.prev=t.previous=function(){return this._orient=-1,this},e.last=e.prev=e.previous=function(){return e.today().last()},t.is=function(){return this._is=!0,this},t.same=function(){return this._same=!0,this._isSecond=!1,this},t.today=function(){return this.same().day()},t.weekday=function(){return!!this._is&&(this._is=!1,!this.is().sat()&&!this.is().sun())},t.at=function(t){return"string"==typeof t?e.parse(this.toString("d")+" "+t):this.set(t)},r.fromNow=r.after=function(e){var t={};return t[this._dateElement]=this,(e?e.clone():new Date).add(t)},r.ago=r.before=function(e){var t={};return t[this._dateElement]=-1*this,(e?e.clone():new Date).add(t)};var i,a="sunday monday tuesday wednesday thursday friday saturday".split(/\s/),o="january february march april may june july august september october november december".split(/\s/),s="Millisecond Second Minute Hour Day Week Month Year".split(/\s/),c="Milliseconds Seconds Minutes Hours Date Week Month FullYear".split(/\s/),l="final first second third fourth fifth".split(/\s/);t.toObject=function(){for(var e={},t=0;tr)throw new RangeError(e.getDayName(t)+" does not occur "+n+" times in the month of "+e.getMonthName(r.getMonth())+" "+r.getFullYear()+".");return this}return this.moveToDayOfWeek(t,this._orient)}},d=function(t){return function(){var r=e.today(),i=t-r.getDay();return 0===t&&1===n.firstDayOfWeek&&0!==r.getDay()&&(i+=7),r.addDays(i)}},f=0;f-1;a--){if(t[r=s[a].toLowerCase()]!=n[r])return!1;if(i==r)break}return!0}return"s"!=e.substring(e.length-1)&&(e+="s"),this["add"+e](this._orient)}},y=function(e){return function(){return this._dateElement=e,this}},v=0;v0&&!d)try{c=r.call(this,o[1])}catch(e){d=!0}else d=!0;if(d||0!==c[1].length||(d=!0),!d){for(var h=[],p=0;p0&&(l[0]=l[0].concat(s[0]),l[1]=s[1])}if(l[1].length1?t=Array.prototype.slice.call(arguments):arguments[0]instanceof Array&&(t=arguments[0]),!t)return e.apply(null,arguments);for(var r=0,i=t.shift();r2?n:n+(n+2e3e.getDaysInMonth(this.year,this.month))throw new RangeError(this.day+" is not a valid value for days.");var i=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);return this.timezone?i.set({timezone:this.timezone}):this.timezoneOffset&&i.set({timezoneOffset:this.timezoneOffset}),i},finish:function(t){if(0===(t=t instanceof Array?n(t):[t]).length)return null;for(var r=0;r11)]},M:function(e,t){return p(e.getMonth(),!0,t)},S:function(e){return n(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return n(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return n(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return n(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},u={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"]},d=function(e){var t=e.config,n=void 0===t?g:t,r=e.l10n,i=void 0===r?u:r;return function(e,t,r){if(void 0!==n.formatDate)return n.formatDate(e,t);var a=r||i;return t.split("").map(function(t,r,i){return l[t]&&"\\"!==i[r-1]?l[t](e,a,n):"\\"!==t?t:""}).join("")}},f=function(e){var t=e.config,n=void 0===t?g:t,r=e.l10n,i=void 0===r?u:r;return function(e,t,r){if(0===e||e){var a,o=e;if(e instanceof Date)a=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)a=new Date(e);else if("string"==typeof e){var l=t||(n||g).dateFormat,u=String(e).trim();if("today"===u)a=new Date,r=!0;else if(/Z$/.test(u)||/GMT$/.test(u))a=new Date(e);else if(n&&n.parseDate)a=n.parseDate(e,l);else{a=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var d=void 0,f=[],h=0,p=0,m="";h",noCalendar:!1,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};function y(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function v(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function b(e,t){var n=v("div","numInputWrapper"),r=v("input","numInput "+e),i=v("span","arrowUp"),a=v("span","arrowDown");if(r.type="text",r.pattern="\\d*",void 0!==t)for(var o in t)r.setAttribute(o,t[o]);return n.appendChild(r),n.appendChild(i),n.appendChild(a),n}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;no&&(d=i===s.hourElement?d-o-r(!s.amPM):a,h&&I(void 0,1,s.hourElement)),s.amPM&&f&&(1===c?d+l===23:Math.abs(d-l)>c)&&(s.amPM.textContent=s.l10n.amPM[r(s.amPM.textContent===s.l10n.amPM[0])]),i.value=n(d)}}(e),0!==s.selectedDates.length&&("input"!==e.type?(D(),ne()):setTimeout(function(){D(),ne()},k))}function D(){if(void 0!==s.hourElement&&void 0!==s.minuteElement){var e,t,n=(parseInt(s.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(s.minuteElement.value,10)||0)%60,a=void 0!==s.secondElement?(parseInt(s.secondElement.value,10)||0)%60:0;void 0!==s.amPM&&(e=n,t=s.amPM.textContent,n=e%12+12*r(t===s.l10n.amPM[1]));var o=void 0!==s.config.minTime||s.config.minDate&&s.minDateHasTime&&s.latestSelectedDateObj&&0===h(s.latestSelectedDateObj,s.config.minDate,!0);if(void 0!==s.config.maxTime||s.config.maxDate&&s.maxDateHasTime&&s.latestSelectedDateObj&&0===h(s.latestSelectedDateObj,s.config.maxDate,!0)){var c=void 0!==s.config.maxTime?s.config.maxTime:s.config.maxDate;(n=Math.min(n,c.getHours()))===c.getHours()&&(i=Math.min(i,c.getMinutes()))}if(o){var l=void 0!==s.config.minTime?s.config.minTime:s.config.minDate;(n=Math.max(n,l.getHours()))===l.getHours()&&(i=Math.max(i,l.getMinutes()))}x(n,i,a)}}function M(e){var t=e||s.latestSelectedDateObj;t&&x(t.getHours(),t.getMinutes(),t.getSeconds())}function x(e,t,i){void 0!==s.latestSelectedDateObj&&s.latestSelectedDateObj.setHours(e%24,t,i||0,0),s.hourElement&&s.minuteElement&&!s.isMobile&&(s.hourElement.value=n(s.config.time_24hr?e:(12+e)%12+12*r(e%12==0)),s.minuteElement.value=n(t),void 0!==s.amPM&&(s.amPM.textContent=s.l10n.amPM[r(e>=12)]),void 0!==s.secondElement&&(s.secondElement.value=n(i)))}function C(e){var t=parseInt(e.target.value)+(e.delta||0);4!==t.toString().length&&"Enter"!==e.key||(s.currentYearElement.blur(),/[^\d]/.test(t.toString())||Y(t))}function T(e,t,n,r){return t instanceof Array?t.forEach(function(t){return T(e,t,n,r)}):e instanceof Array?e.forEach(function(e){return T(e,t,n,r)}):(e.addEventListener(t,n,r),void s._handlers.push({element:e,event:t,handler:n}))}function O(e){return function(t){1===t.which&&e(t)}}function E(){X("onChange")}function _(e){var t=void 0!==e?s.parseDate(e):s.latestSelectedDateObj||(s.config.minDate&&s.config.minDate>s.now?s.config.minDate:s.config.maxDate&&s.config.maxDates.minRangeDate&&ts.selectedDates[0]&&(s.maxRangeDate=t)),"range"===s.config.mode&&(function(e){return!("range"!==s.config.mode||s.selectedDates.length<2)&&h(e,s.selectedDates[0])>=0&&h(e,s.selectedDates[1])<=0}(t)&&!ee(t)&&a.classList.add("inRange"),1===s.selectedDates.length&&void 0!==s.minRangeDate&&void 0!==s.maxRangeDate&&(ts.maxRangeDate)&&a.classList.add("notAllowed")),s.weekNumbers&&"prevMonthDay"!==e&&n%7==1&&s.weekNumbers.insertAdjacentHTML("beforeend",""+s.config.getWeek(t)+""),X("onDayCreate",a),a}function N(e,t){var n=e+t||0,r=void 0!==e?s.days.childNodes[n]:s.selectedDateElem||s.todayDateElem||s.days.childNodes[0];void 0===r&&0!==t&&(t>0?(s.changeMonth(1,!0,!0),n%=42):t<0&&(s.changeMonth(-1,!0,!0),n+=42)),(r=r||s.days.childNodes[n]).focus(),"range"===s.config.mode&&B(r)}function P(){if(void 0!==s.daysContainer){var e=(new Date(s.currentYear,s.currentMonth,1).getDay()-s.l10n.firstDayOfWeek+7)%7,t="range"===s.config.mode,n=s.utils.getDaysInMonth((s.currentMonth-1+12)%12),r=s.utils.getDaysInMonth(),i=window.document.createDocumentFragment(),a=n+1-e,o=0;for(s.weekNumbers&&s.weekNumbers.firstChild&&(s.weekNumbers.textContent=""),t&&(s.minRangeDate=new Date(s.currentYear,s.currentMonth-1,a),s.maxRangeDate=new Date(s.currentYear,s.currentMonth+1,(42-e)%r));a<=n;a++,o++)i.appendChild(j("prevMonthDay",new Date(s.currentYear,s.currentMonth-1,a),a,o));for(a=1;a<=r;a++,o++)i.appendChild(j("",new Date(s.currentYear,s.currentMonth,a),a,o));for(var c=r+1;c<=42-e;c++,o++)i.appendChild(j("nextMonthDay",new Date(s.currentYear,s.currentMonth+1,c%r),c,o));t&&1===s.selectedDates.length&&i.childNodes[0]?(s._hidePrevMonthArrow=s._hidePrevMonthArrow||!!s.minRangeDate&&s.minRangeDate>i.childNodes[0].dateObj,s._hideNextMonthArrow=s._hideNextMonthArrow||!!s.maxRangeDate&&s.maxRangeDate0&&e\n "+t.join("")+"\n \n ",s.weekdayContainer}function A(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=t?e:e-s.currentMonth;r<0&&s._hidePrevMonthArrow||r>0&&s._hideNextMonthArrow||(s.currentMonth+=r,(s.currentMonth<0||s.currentMonth>11)&&(s.currentYear+=s.currentMonth>11?1:-1,s.currentMonth=(s.currentMonth+12)%12,X("onYearChange")),P(),X("onMonthChange"),te(),n&&document.activeElement&&document.activeElement.$i&&N(document.activeElement.$i,0))}function H(e){return!(!s.config.appendTo||!s.config.appendTo.contains(e))||s.calendarContainer.contains(e)}function F(e){if(s.isOpen&&!s.config.inline){var t=H(e.target),n=e.target===s.input||e.target===s.altInput||s.element.contains(e.target)||e.path&&e.path.indexOf&&(~e.path.indexOf(s.input)||~e.path.indexOf(s.altInput)),r="blur"===e.type?n&&e.relatedTarget&&!H(e.relatedTarget):!n&&!t,i=!s.config.ignoredFocusElements.some(function(t){return t.contains(e.target)});r&&i&&(s.close(),"range"===s.config.mode&&1===s.selectedDates.length&&(s.clear(!1),s.redraw()))}}function Y(e){if(!(!e||s.currentYearElement.getAttribute("data-min")&&eparseInt(s.currentYearElement.getAttribute("data-max")))){var t=e,n=s.currentYear!==t;s.currentYear=t||s.currentYear,s.config.maxDate&&s.currentYear===s.config.maxDate.getFullYear()?s.currentMonth=Math.min(s.config.maxDate.getMonth(),s.currentMonth):s.config.minDate&&s.currentYear===s.config.minDate.getFullYear()&&(s.currentMonth=Math.max(s.config.minDate.getMonth(),s.currentMonth)),n&&(s.redraw(),X("onYearChange"))}}function L(e,t){void 0===t&&(t=!0);var n=s.parseDate(e,void 0,t);if(s.config.minDate&&n&&h(n,s.config.minDate,void 0!==t?t:!s.minDateHasTime)<0||s.config.maxDate&&n&&h(n,s.config.maxDate,void 0!==t?t:!s.maxDateHasTime)>0)return!1;if(!s.config.enable.length&&!s.config.disable.length)return!0;if(void 0===n)return!1;for(var r=s.config.enable.length>0,i=r?s.config.enable:s.config.disable,a=0,o=void 0;a=o.from.getTime()&&n.getTime()<=o.to.getTime())return r}return!r}function z(e){var t=e.target===s._input,n=H(e.target),r=s.config.allowInput,i=s.isOpen&&(!r||!t),a=s.config.inline&&t&&!r;if(13===e.keyCode&&t){if(r)return s.setDate(s._input.value,!0,e.target===s.altInput?s.config.altFormat:s.config.dateFormat),e.target.blur();s.open()}else if(n||i||a){var o=!!s.timeContainer&&s.timeContainer.contains(e.target);switch(e.keyCode){case 13:o?ne():V(e);break;case 27:e.preventDefault(),s.close();break;case 8:case 46:t&&!s.config.allowInput&&s.clear();break;case 37:case 39:if(o)s.hourElement&&s.hourElement.focus();else if(e.preventDefault(),s.daysContainer){var c=39===e.keyCode?1:-1;e.ctrlKey?A(c,!0,!0):N(e.target.$i,c)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;s.daysContainer&&void 0!==e.target.$i?e.ctrlKey?(Y(s.currentYear-l),N(e.target.$i,0)):o||N(e.target.$i,7*l):s.config.enableTime&&(!o&&s.hourElement&&s.hourElement.focus(),g(e),s._debouncedChange());break;case 9:e.target===s.hourElement?(e.preventDefault(),s.minuteElement.select()):e.target===s.minuteElement&&(s.secondElement||s.amPM)?(e.preventDefault(),void 0!==s.secondElement?s.secondElement.focus():void 0!==s.amPM&&s.amPM.focus()):e.target===s.secondElement&&s.amPM&&(e.preventDefault(),s.amPM.focus())}switch(e.key){case s.l10n.amPM[0].charAt(0):void 0!==s.amPM&&e.target===s.amPM&&(s.amPM.textContent=s.l10n.amPM[0],D(),ne());break;case s.l10n.amPM[1].charAt(0):void 0!==s.amPM&&e.target===s.amPM&&(s.amPM.textContent=s.l10n.amPM[1],D(),ne())}X("onKeyDown",e)}}function B(e){if(1===s.selectedDates.length&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&void 0!==s.minRangeDate&&void 0!==s.maxRangeDate){for(var t=e.dateObj,n=s.parseDate(s.selectedDates[0],void 0,!0),r=Math.min(t.getTime(),s.selectedDates[0].getTime()),i=Math.max(t.getTime(),s.selectedDates[0].getTime()),a=!1,o=r;os.maxRangeDate.getTime(),d=s.days.childNodes[o];if(u)return d.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){d.classList.remove(e)}),"continue";if(a&&!u)return"continue";["startRange","inRange","endRange","notAllowed"].forEach(function(e){d.classList.remove(e)});var f=Math.max(s.minRangeDate.getTime(),r),h=Math.min(s.maxRangeDate.getTime(),i);e.classList.add(tt&&l===n.getTime()&&d.classList.add("endRange"),l>=f&&l<=h&&d.classList.add("inRange")},l=0,u=s.days.childNodes[l].dateObj;l<42;l++,u=s.days.childNodes[l]&&s.days.childNodes[l].dateObj)c(l,u)}}function W(){!s.isOpen||s.config.static||s.config.inline||J()}function U(e){return function(t){var n=s.config["_"+e+"Date"]=s.parseDate(t,s.config.dateFormat),r=s.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(s["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),s.selectedDates&&(s.selectedDates=s.selectedDates.filter(function(e){return L(e)}),s.selectedDates.length||"min"!==e||M(n),ne()),s.daysContainer&&(K(),void 0!==n?s.currentYearElement[e]=n.getFullYear().toString():s.currentYearElement.removeAttribute(e),s.currentYearElement.disabled=!!r&&void 0!==n&&r.getFullYear()===n.getFullYear())}}function G(){"object"!=typeof s.config.locale&&void 0===w.l10ns[s.config.locale]&&s.config.errorHandler(new Error("flatpickr: invalid locale "+s.config.locale)),s.l10n=t({},w.l10ns.default,"object"==typeof s.config.locale?s.config.locale:"default"!==s.config.locale?w.l10ns[s.config.locale]:void 0),c.K="("+s.l10n.amPM[0]+"|"+s.l10n.amPM[1]+"|"+s.l10n.amPM[0].toLowerCase()+"|"+s.l10n.amPM[1].toLowerCase()+")",s.formatDate=d(s)}function J(e){if(void 0!==s.calendarContainer){X("onPreCalendarPosition");var t=e||s._positionElement,n=Array.prototype.reduce.call(s.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),r=s.calendarContainer.offsetWidth,i=s.config.position,a=t.getBoundingClientRect(),o=window.innerHeight-a.bottom,c="above"===i||"below"!==i&&on,l=window.pageYOffset+a.top+(c?-n-2:t.offsetHeight+2);if(y(s.calendarContainer,"arrowTop",!c),y(s.calendarContainer,"arrowBottom",c),!s.config.inline){var u=window.pageXOffset+a.left,d=window.document.body.offsetWidth-a.right,f=u+r>window.document.body.offsetWidth;y(s.calendarContainer,"rightMost",f),s.config.static||(s.calendarContainer.style.top=l+"px",f?(s.calendarContainer.style.left="auto",s.calendarContainer.style.right=d+"px"):(s.calendarContainer.style.left=u+"px",s.calendarContainer.style.right="auto"))}}}function K(){s.config.noCalendar||s.isMobile||(R(),te(),P())}function V(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(e.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,r=s.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=r.getMonth()!==s.currentMonth&&"range"!==s.config.mode;if(s.selectedDateElem=n,"single"===s.config.mode)s.selectedDates=[r];else if("multiple"===s.config.mode){var a=ee(r);a?s.selectedDates.splice(parseInt(a),1):s.selectedDates.push(r)}else"range"===s.config.mode&&(2===s.selectedDates.length&&s.clear(),s.selectedDates.push(r),0!==h(r,s.selectedDates[0],!0)&&s.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(D(),i){var o=s.currentYear!==r.getFullYear();s.currentYear=r.getFullYear(),s.currentMonth=r.getMonth(),o&&X("onYearChange"),X("onMonthChange")}if(P(),s.config.minDate&&s.minDateHasTime&&s.config.enableTime&&0===h(r,s.config.minDate)&&M(s.config.minDate),ne(),s.config.enableTime&&setTimeout(function(){return s.showTimeInput=!0},50),"range"===s.config.mode&&(1===s.selectedDates.length?(B(n),s._hidePrevMonthArrow=s._hidePrevMonthArrow||void 0!==s.minRangeDate&&s.minRangeDate>s.days.childNodes[0].dateObj,s._hideNextMonthArrow=s._hideNextMonthArrow||void 0!==s.maxRangeDate&&s.maxRangeDate0,s.latestSelectedDateObj=s.selectedDates[0],s.redraw(),_(),M(),ne(t),t&&X("onChange")},s.toggle=function(){if(s.isOpen)return s.close();s.open()};var q={locale:[G]};function Z(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return s.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[s.parseDate(e,t)];else if("string"==typeof e)switch(s.config.mode){case"single":n=[s.parseDate(e,t)];break;case"multiple":n=e.split(s.config.conjunction).map(function(e){return s.parseDate(e,t)});break;case"range":n=e.split(s.l10n.rangeSeparator).map(function(e){return s.parseDate(e,t)})}else s.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));s.selectedDates=n.filter(function(e){return e instanceof Date&&L(e,!1)}),"range"===s.config.mode&&s.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function $(e){return e.map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?s.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:s.parseDate(e.from,void 0),to:s.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function X(e,t){var n=s.config[e];if(void 0!==n&&n.length>0)for(var r=0;n[r]&&rs.config.maxDate.getMonth():s.currentYear>s.config.maxDate.getFullYear()))}function ne(e){if(void 0===e&&(e=!0),!s.selectedDates.length)return s.clear(e);void 0!==s.mobileInput&&s.mobileFormatStr&&(s.mobileInput.value=void 0!==s.latestSelectedDateObj?s.formatDate(s.latestSelectedDateObj,s.mobileFormatStr):"");var t="range"!==s.config.mode?s.config.conjunction:s.l10n.rangeSeparator;s.input.value=s.selectedDates.map(function(e){return s.formatDate(e,s.config.dateFormat)}).join(t),void 0!==s.altInput&&(s.altInput.value=s.selectedDates.map(function(e){return s.formatDate(e,s.config.altFormat)}).join(t)),!1!==e&&X("onValueUpdate")}function re(e){e.preventDefault();var t=s.prevMonthNav.contains(e.target),n=s.nextMonthNav.contains(e.target);t||n?A(t?-1:1):e.target===s.currentYearElement?s.currentYearElement.select():"arrowUp"===e.target.className?s.changeYear(s.currentYear+1):"arrowDown"===e.target.className&&s.changeYear(s.currentYear-1)}return function(){s.element=s.input=e,s.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],i=t({},o,JSON.parse(JSON.stringify(e.dataset||{}))),c={};s.config.parseDate=i.parseDate,s.config.formatDate=i.formatDate,Object.defineProperty(s.config,"enable",{get:function(){return s.config._enable||[]},set:function(e){s.config._enable=$(e)}}),Object.defineProperty(s.config,"disable",{get:function(){return s.config._disable||[]},set:function(e){s.config._disable=$(e)}}),!i.dateFormat&&i.enableTime&&(c.dateFormat=i.noCalendar?"H:i"+(i.enableSeconds?":S":""):w.defaultConfig.dateFormat+" H:i"+(i.enableSeconds?":S":"")),i.altInput&&i.enableTime&&!i.altFormat&&(c.altFormat=i.noCalendar?"h:i"+(i.enableSeconds?":S K":" K"):w.defaultConfig.altFormat+" h:i"+(i.enableSeconds?":S":"")+" K"),Object.defineProperty(s.config,"minDate",{get:function(){return s.config._minDate},set:U("min")}),Object.defineProperty(s.config,"maxDate",{get:function(){return s.config._maxDate},set:U("max")});var u=function(e){return function(t){s.config["min"===e?"_minTime":"_maxTime"]=s.parseDate(t,"H:i")}};Object.defineProperty(s.config,"minTime",{get:function(){return s.config._minTime},set:u("min")}),Object.defineProperty(s.config,"maxTime",{get:function(){return s.config._maxTime},set:u("max")}),Object.assign(s.config,c,i);for(var d=0;ds.now.getTime()?s.config.minDate:s.config.maxDate&&s.config.maxDate.getTime()0||s.config.minDate.getMinutes()>0||s.config.minDate.getSeconds()>0),s.maxDateHasTime=!!s.config.maxDate&&(s.config.maxDate.getHours()>0||s.config.maxDate.getMinutes()>0||s.config.maxDate.getSeconds()>0),Object.defineProperty(s,"showTimeInput",{get:function(){return s._showTimeInput},set:function(e){s._showTimeInput=e,s.calendarContainer&&y(s.calendarContainer,"showTimeInput",e),s.isOpen&&J()}})}(),s.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=s.currentMonth),void 0===t&&(t=s.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:s.l10n.daysInMonth[e]}},s.isMobile||function(){var e=window.document.createDocumentFragment();if(s.calendarContainer=v("div","flatpickr-calendar"),s.calendarContainer.tabIndex=-1,!s.config.noCalendar){if(e.appendChild(function(){var e=window.document.createDocumentFragment();s.monthNav=v("div","flatpickr-month"),s.prevMonthNav=v("span","flatpickr-prev-month"),s.prevMonthNav.innerHTML=s.config.prevArrow,s.currentMonthElement=v("span","cur-month");var t=b("cur-year",{tabindex:"-1"});return s.currentYearElement=t.childNodes[0],s.config.minDate&&s.currentYearElement.setAttribute("data-min",s.config.minDate.getFullYear().toString()),s.config.maxDate&&(s.currentYearElement.setAttribute("data-max",s.config.maxDate.getFullYear().toString()),s.currentYearElement.disabled=!!s.config.minDate&&s.config.minDate.getFullYear()===s.config.maxDate.getFullYear()),s.nextMonthNav=v("span","flatpickr-next-month"),s.nextMonthNav.innerHTML=s.config.nextArrow,s.navigationCurrentMonth=v("div","flatpickr-current-month"),s.navigationCurrentMonth.appendChild(s.currentMonthElement),s.navigationCurrentMonth.appendChild(t),e.appendChild(s.prevMonthNav),e.appendChild(s.navigationCurrentMonth),e.appendChild(s.nextMonthNav),s.monthNav.appendChild(e),Object.defineProperty(s,"_hidePrevMonthArrow",{get:function(){return s.__hidePrevMonthArrow},set:function(e){s.__hidePrevMonthArrow!==e&&(s.prevMonthNav.style.display=e?"none":"block"),s.__hidePrevMonthArrow=e}}),Object.defineProperty(s,"_hideNextMonthArrow",{get:function(){return s.__hideNextMonthArrow},set:function(e){s.__hideNextMonthArrow!==e&&(s.nextMonthNav.style.display=e?"none":"block"),s.__hideNextMonthArrow=e}}),te(),s.monthNav}()),s.innerContainer=v("div","flatpickr-innerContainer"),s.config.weekNumbers){var t=function(){s.calendarContainer.classList.add("hasWeeks");var e=v("div","flatpickr-weekwrapper");e.appendChild(v("span","flatpickr-weekday",s.l10n.weekAbbreviation));var t=v("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),i=t.weekWrapper,a=t.weekNumbers;s.innerContainer.appendChild(i),s.weekNumbers=a,s.weekWrapper=i}s.rContainer=v("div","flatpickr-rContainer"),s.rContainer.appendChild(R()),s.daysContainer||(s.daysContainer=v("div","flatpickr-days"),s.daysContainer.tabIndex=-1),P(),s.rContainer.appendChild(s.daysContainer),s.innerContainer.appendChild(s.rContainer),e.appendChild(s.innerContainer)}s.config.enableTime&&e.appendChild(function(){s.calendarContainer.classList.add("hasTime"),s.config.noCalendar&&s.calendarContainer.classList.add("noCalendar"),s.timeContainer=v("div","flatpickr-time"),s.timeContainer.tabIndex=-1;var e=v("span","flatpickr-time-separator",":"),t=b("flatpickr-hour");s.hourElement=t.childNodes[0];var i=b("flatpickr-minute");if(s.minuteElement=i.childNodes[0],s.hourElement.tabIndex=s.minuteElement.tabIndex=-1,s.hourElement.value=n(s.latestSelectedDateObj?s.latestSelectedDateObj.getHours():s.config.time_24hr?s.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(s.config.defaultHour)),s.minuteElement.value=n(s.latestSelectedDateObj?s.latestSelectedDateObj.getMinutes():s.config.defaultMinute),s.hourElement.setAttribute("data-step",s.config.hourIncrement.toString()),s.minuteElement.setAttribute("data-step",s.config.minuteIncrement.toString()),s.hourElement.setAttribute("data-min",s.config.time_24hr?"0":"1"),s.hourElement.setAttribute("data-max",s.config.time_24hr?"23":"12"),s.minuteElement.setAttribute("data-min","0"),s.minuteElement.setAttribute("data-max","59"),s.timeContainer.appendChild(t),s.timeContainer.appendChild(e),s.timeContainer.appendChild(i),s.config.time_24hr&&s.timeContainer.classList.add("time24hr"),s.config.enableSeconds){s.timeContainer.classList.add("hasSeconds");var a=b("flatpickr-second");s.secondElement=a.childNodes[0],s.secondElement.value=n(s.latestSelectedDateObj?s.latestSelectedDateObj.getSeconds():s.config.defaultSeconds),s.secondElement.setAttribute("data-step",s.minuteElement.getAttribute("data-step")),s.secondElement.setAttribute("data-min",s.minuteElement.getAttribute("data-min")),s.secondElement.setAttribute("data-max",s.minuteElement.getAttribute("data-max")),s.timeContainer.appendChild(v("span","flatpickr-time-separator",":")),s.timeContainer.appendChild(a)}return s.config.time_24hr||(s.amPM=v("span","flatpickr-am-pm",s.l10n.amPM[r((s.latestSelectedDateObj?s.hourElement.value:s.config.defaultHour)>11)]),s.amPM.title=s.l10n.toggleTitle,s.amPM.tabIndex=-1,s.timeContainer.appendChild(s.amPM)),s.timeContainer}()),y(s.calendarContainer,"rangeMode","range"===s.config.mode),y(s.calendarContainer,"animate",s.config.animate),s.calendarContainer.appendChild(e);var o=void 0!==s.config.appendTo&&s.config.appendTo.nodeType;if((s.config.inline||s.config.static)&&(s.calendarContainer.classList.add(s.config.inline?"inline":"static"),s.config.inline&&(!o&&s.element.parentNode?s.element.parentNode.insertBefore(s.calendarContainer,s._input.nextSibling):void 0!==s.config.appendTo&&s.config.appendTo.appendChild(s.calendarContainer)),s.config.static)){var c=v("div","flatpickr-wrapper");s.element.parentNode&&s.element.parentNode.insertBefore(c,s.element),c.appendChild(s.element),s.altInput&&c.appendChild(s.altInput),c.appendChild(s.calendarContainer)}s.config.static||s.config.inline||(void 0!==s.config.appendTo?s.config.appendTo:window.document.body).appendChild(s.calendarContainer)}(),function(){if(s.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(s.element.querySelectorAll("[data-"+e+"]"),function(t){return T(t,"click",s[e])})}),s.isMobile)!function(){var e=s.config.enableTime?s.config.noCalendar?"time":"datetime-local":"date";s.mobileInput=v("input",s.input.className+" flatpickr-mobile"),s.mobileInput.step=s.input.getAttribute("step")||"any",s.mobileInput.tabIndex=1,s.mobileInput.type=e,s.mobileInput.disabled=s.input.disabled,s.mobileInput.required=s.input.required,s.mobileInput.placeholder=s.input.placeholder,s.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",s.selectedDates.length&&(s.mobileInput.defaultValue=s.mobileInput.value=s.formatDate(s.selectedDates[0],s.mobileFormatStr)),s.config.minDate&&(s.mobileInput.min=s.formatDate(s.config.minDate,"Y-m-d")),s.config.maxDate&&(s.mobileInput.max=s.formatDate(s.config.maxDate,"Y-m-d")),s.input.type="hidden",void 0!==s.altInput&&(s.altInput.type="hidden");try{s.input.parentNode&&s.input.parentNode.insertBefore(s.mobileInput,s.input.nextSibling)}catch(e){}T(s.mobileInput,"change",function(e){s.setDate(e.target.value,!1,s.mobileFormatStr),X("onChange"),X("onClose")})}();else{var e=i(W,50);s._debouncedChange=i(E,k),s.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&T(s.daysContainer,"mouseover",function(e){"range"===s.config.mode&&B(e.target)}),T(window.document.body,"keydown",z),s.config.static||T(s._input,"keydown",z),s.config.inline||s.config.static||T(window,"resize",e),void 0!==window.ontouchstart&&T(window.document,"touchstart",F),T(window.document,"mousedown",O(F)),T(window.document,"focus",F,{capture:!0}),!0===s.config.clickOpens&&(T(s._input,"focus",s.open),T(s._input,"mousedown",O(s.open))),void 0!==s.daysContainer&&(T(s.monthNav,"mousedown",O(re)),T(s.monthNav,["keyup","increment"],C),T(s.daysContainer,"mousedown",O(V))),void 0!==s.timeContainer&&void 0!==s.minuteElement&&void 0!==s.hourElement&&(T(s.timeContainer,["input","increment"],g),T(s.timeContainer,"mousedown",O(S)),T(s.timeContainer,["input","increment"],s._debouncedChange,{passive:!0}),T([s.hourElement,s.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==s.secondElement&&T(s.secondElement,"focus",function(){return s.secondElement&&s.secondElement.select()}),void 0!==s.amPM&&T(s.amPM,"mousedown",O(function(e){g(e),E()})))}}(),(s.selectedDates.length||s.config.noCalendar)&&(s.config.enableTime&&M(s.config.noCalendar?s.latestSelectedDateObj||s.config.minDate:void 0),ne(!1)),s.showTimeInput=s.selectedDates.length>0||s.config.noCalendar,void 0!==s.weekWrapper&&void 0!==s.daysContainer&&(s.calendarContainer.style.visibility="hidden",s.calendarContainer.style.display="block",s.calendarContainer.style.width=s.daysContainer.offsetWidth+s.weekWrapper.offsetWidth+"px",s.calendarContainer.style.visibility="visible",s.calendarContainer.style.display=null);var c=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!s.isMobile&&c&&J(),X("onReady")}(),s}function M(e,t){for(var n=Array.prototype.slice.call(e),r=[],i=0;i2&&void 0!==arguments[2]?arguments[2]:null,r=this.getWin(t).AGridComponentsMetaConfig;return t.hasOwnProperty("CONFIG_CONTEXT")&&(r=r[t.CONFIG_CONTEXT]),r&&r.hasOwnProperty(t.column.colId)&&r[t.column.colId].hasOwnProperty(e)?r[t.column.colId][e]:t[e]||n}}])&&r(t.prototype,n),a&&r(t,a),e}()},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=(o=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([a]).join("\n")}var o;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a=0&&u.splice(t,1)}function g(e){var t=document.createElement("style");return e.attrs.type="text/css",b(t,e.attrs),h(e,t),t}function b(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function y(e,t){var n,r,a,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var o=s++;n=c||(c=g(t)),r=k.bind(null,n,o,!1),a=k.bind(null,n,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",b(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,a=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||i)&&(r=f(r));a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var o=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(o),l&&URL.revokeObjectURL(l)}.bind(null,n,t),a=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),a=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return d(n,t),function(e){for(var r=[],a=0;a0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=d-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),w=g>0?e.substring(v,d):"";if(n=(t="-"===(e=e.substring(p,v)).charAt(0)?-t:+t)<0?t=-t:0,a=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(a),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(s=t.split("."))[1]||s[1]&&s[1].length<=l)&&(t=(+t).toFixed(l+1)),u=e[0].split(i),e[0]=u.join(""),(o=e[0]&&e[0].indexOf("0"))>-1)for(;s[0].length12?"PM":"AM",pp:e.hours24>12?"pm":"am",p:e.hours24>12?"pm":"am",Jz:1==String(e.dayOfYear).length?"0"+e.dayOfYear:e.dayOfYear,Js:e.dayOfYear,Jl:e.dayOfYear,Jd:e.dayOfYear,J:e.dayOfYear,Wz:1==String(e.dayOfWeek).length?"0"+e.dayOfWeek:e.dayOfWeek,Ws:e.dayOfWeek,Wl:e.dayOfWeek,Wp:String.fromCharCode(e.dayOfWeek),Wd:e.dayOfWeek,W:e.dayOfWeek}}},{key:"_getDayOfYear",value:function(e){var t=new Date(e),n=new Date(t.getFullYear(),0,0),r=t-n+60*(n.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(r/864e5)}}])&&r(t.prototype,n),a&&r(t,a),e}();t.default=a}])},e.exports=r()},function(e,t,n){"use strict";function r(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._build(t,n)}var t,n,a;return t=e,(n=[{key:"getValue",value:function(){return this.input.checked}},{key:"focus",value:function(){this.component.focus()}},{key:"toggle",value:function(){this.input.checked=!this.input.checked}},{key:"check",value:function(){this.input.checked=!0}},{key:"uncheck",value:function(){this.input.checked=!1}},{key:"enable",value:function(){this.input.disabled=!1}},{key:"disable",value:function(){this.input.disabled=!0}},{key:"_build",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;this.component=t.createElement("label"),this.component.className="BooleanSwitch",this.component.tabIndex="0",this.slider=t.createElement("span"),this.slider.className="slider round",this.input=t.createElement("input"),this.input.type="checkbox",this.input.checked=e,this.component.appendChild(this.input),this.component.appendChild(this.slider)}}])&&r(t.prototype,n),a&&r(t,a),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(21),a=n.n(r),i=n(3),o=(n.n(i),n(22));n.n(o);function l(){return(l=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.doc=n,this.options=l({inline:!0,dateFormat:this._mapMask(t.mask),onReady:this._onReady.bind(this)},t),this._build(this.options,this.doc)}var t,n,r;return t=e,(n=[{key:"setDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.flatpickr.setDate(e||"",t)}},{key:"setOption",value:function(e,t){this.flatpickr.set(e,t)}},{key:"open",value:function(){this.flatpickr.open(),this.flatpickr.input.focus()}},{key:"close",value:function(){this.flatpickr.close()}},{key:"enable",value:function(){this.input.disabled=!1}},{key:"disable",value:function(){this.input.disabled=!0}},{key:"destroy",value:function(){this.flatpickr.destroy(),this.clearButton.removeEventListener("click",this._onClearButtonClick.bind(this)),this.component.removeEventListener("keydown",this._onKeyDown.bind(this))}},{key:"_build",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;this.component=t.createElement("div"),this.component.className="DateTimesDialog",this.component.tabIndex="0",this.input=t.createElement("input"),this.component.appendChild(this.input),this.flatpickr=a()(this.input,e),this.component.addEventListener("keydown",this._onKeyDown.bind(this))}},{key:"_onKeyDown",value:function(e){var t=e.which||e.keyCode;if([37,39].indexOf(t)>-1)e.stopPropagation();else if(38===t){var n=this.flatpickr.input.value,r=Date.parse(n);r instanceof Date||(r=new Date(n)),r.setDate(r.getDate()+1),this.flatpickr.setDate(r),this.flatpickr.input.value=BBj.Masks.date(r,this.options.mask),e.stopPropagation()}else if(40===t){var a=this.flatpickr.input.value,i=Date.parse(a);i instanceof Date||(next=new Date(a)),i.setDate(i.getDate()-1),this.flatpickr.setDate(i),this.flatpickr.input.value=BBj.Masks.date(i,this.options.mask),e.stopPropagation()}}},{key:"_onReady",value:function(e,t,n){n.calendarContainer.querySelector(".flatpickr-clear")||(this.clearButton=this.doc.createElement("button"),this.clearButton.className="flatpickr-clear",this.clearButton.innerHTML="Clear",n.calendarContainer.appendChild(this.clearButton),this.clearButton.addEventListener("click",this._onClearButtonClick.bind(this,n)))}},{key:"_onClearButtonClick",value:function(e){e.clear(),e.close(),this.options.hasOwnProperty("onClear")&&this.options.onClear()}},{key:"_mapMask",value:function(e){var t=this._getMasksMapping(),n=e;for(var r in t)n=n.replace(new RegExp("(%"+r+")","g"),t[r]);return n}},{key:"_getMasksMapping",value:function(){return{Yz:"y",Ys:"Y",Yl:"Y",Yp:"Y",Yd:"Y",Y:"Y",Mz:"m",Ms:"n",Ml:"n",Mp:"n",Md:"n",M:"n",Dz:"d",Ds:"j",Dl:"j",Dp:"j",Dd:"j",D:"j",Hz:"H",Hs:"H",Hl:"H",Hp:"H",Hd:"H",H:"H",hz:"h",hs:"h",hl:"h",hp:"h",hd:"h",h:"h",mz:"i",ms:"i",ml:"i",mp:"i",md:"i",m:"i",sz:"S",ss:"s",sl:"s",sp:"s",sd:"s",s:"s",PP:"K",P:"K",pp:"K",p:"K"}}}])&&c(t.prototype,n),r&&c(t,r),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7);n.d(t,"BasicBooleansRenderer",function(){return r.c}),n.d(t,"BasicBooleansEditor",function(){return r.a}),n.d(t,"BasicBooleansFilter",function(){return r.b});var a=n(14);n.d(t,"BasicNumbersRenderer",function(){return a.b}),n.d(t,"BasicNumbersEditor",function(){return a.a});var i=n(19);n.d(t,"BasicDateTimesEditor",function(){return i.a}),n.d(t,"BasicDateTimesRenderer",function(){return i.c}),n.d(t,"BasicDateTimesFilter",function(){return i.b});var o=n(28);n.d(t,"BasicImagesRenderer",function(){return o.a})},function(e,t,n){"use strict";var r=n(8),a=(n.n(r),n(11));n.d(t,"c",function(){return a.a});var i=n(12);n.d(t,"a",function(){return i.a});var o=n(13);n.d(t,"b",function(){return o.a})},function(e,t,n){var r=n(9);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:function(){return window.top.document.head}};n(2)(r,a);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,'.BasicBooleansRenderer{display:block;margin-left:auto;margin-right:auto;text-align:center}.BasicBooleansFilter ul{display:block;list-style:none;margin:0;padding:0;cursor:pointer}.BasicBooleansFilter ul li{padding:10px;-webkit-transition:.4s;transition:.4s;border-bottom:thin solid #ccc}.BasicBooleansFilter ul li.selected{background:#569ff7;color:#fff}.BasicBooleansFilter ul li:last-child{border-bottom:none}.BooleanSwitch{outline:none;position:relative;display:block;margin-left:auto;margin-right:auto;width:40px;height:20px}.BooleanSwitch input{display:none}.BooleanSwitch .slider{cursor:pointer;top:20%;left:0;right:0;bottom:10%;background-color:#ccc}.BooleanSwitch .slider,.BooleanSwitch .slider:before{position:absolute;-webkit-transition:.4s;transition:.4s}.BooleanSwitch .slider:before{content:"";height:12px;width:12px;left:1px;top:1px;bottom:1px;right:1px;background-color:#fff}.BooleanSwitch input:checked+.slider{background-color:#569ff7}.BooleanSwitch input:focus+.slider{box-shadow:0 0 1px #569ff7}.BooleanSwitch input:checked+.slider:before{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translateX(26px)}.BooleanSwitch .slider.round{border-radius:28px}.BooleanSwitch .slider.round:before{border-radius:50%}',""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var a,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(a=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")})}},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(4),a=n(0);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n\n
  • '.concat(n||"◉ True",'
  • \n
  • ').concat(r||"◎ False",'
  • \n
  • ').concat(a||"◍ None","
  • \n \n "),this.filterElements=this.gui.querySelectorAll("li");for(var i=0;i11)]},M:function(e,t){return h(e.getMonth(),!0,t)},S:function(e){return n(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return n(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return n(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return n(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},u={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"]},f=function(e){var t=e.config,n=void 0===t?g:t,r=e.l10n,a=void 0===r?u:r;return function(e,t,r){if(void 0!==n.formatDate)return n.formatDate(e,t);var i=r||a;return t.split("").map(function(t,r,a){return s[t]&&"\\"!==a[r-1]?s[t](e,i,n):"\\"!==t?t:""}).join("")}},d=function(e){var t=e.config,n=void 0===t?g:t,r=e.l10n,a=void 0===r?u:r;return function(e,t,r){if(0===e||e){var i,o=e;if(e instanceof Date)i=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)i=new Date(e);else if("string"==typeof e){var s=t||(n||g).dateFormat,u=String(e).trim();if("today"===u)i=new Date,r=!0;else if(/Z$/.test(u)||/GMT$/.test(u))i=new Date(e);else if(n&&n.parseDate)i=n.parseDate(e,s);else{i=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var f=void 0,d=[],p=0,h=0,m="";p",noCalendar:!1,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};function b(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function y(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function v(e,t){var n=y("div","numInputWrapper"),r=y("input","numInput "+e),a=y("span","arrowUp"),i=y("span","arrowDown");if(r.type="text",r.pattern="\\d*",void 0!==t)for(var o in t)r.setAttribute(o,t[o]);return n.appendChild(r),n.appendChild(a),n.appendChild(i),n}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;no&&(f=a===l.hourElement?f-o-r(!l.amPM):i,p&&I(void 0,1,l.hourElement)),l.amPM&&d&&(1===c?f+s===23:Math.abs(f-s)>c)&&(l.amPM.textContent=l.l10n.amPM[r(l.amPM.textContent===l.l10n.amPM[0])]),a.value=n(f)}}(e),0!==l.selectedDates.length&&("input"!==e.type?(x(),ne()):setTimeout(function(){x(),ne()},k))}function x(){if(void 0!==l.hourElement&&void 0!==l.minuteElement){var e,t,n=(parseInt(l.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(l.minuteElement.value,10)||0)%60,i=void 0!==l.secondElement?(parseInt(l.secondElement.value,10)||0)%60:0;void 0!==l.amPM&&(e=n,t=l.amPM.textContent,n=e%12+12*r(t===l.l10n.amPM[1]));var o=void 0!==l.config.minTime||l.config.minDate&&l.minDateHasTime&&l.latestSelectedDateObj&&0===p(l.latestSelectedDateObj,l.config.minDate,!0);if(void 0!==l.config.maxTime||l.config.maxDate&&l.maxDateHasTime&&l.latestSelectedDateObj&&0===p(l.latestSelectedDateObj,l.config.maxDate,!0)){var c=void 0!==l.config.maxTime?l.config.maxTime:l.config.maxDate;(n=Math.min(n,c.getHours()))===c.getHours()&&(a=Math.min(a,c.getMinutes()))}if(o){var s=void 0!==l.config.minTime?l.config.minTime:l.config.minDate;(n=Math.max(n,s.getHours()))===s.getHours()&&(a=Math.max(a,s.getMinutes()))}C(n,a,i)}}function D(e){var t=e||l.latestSelectedDateObj;t&&C(t.getHours(),t.getMinutes(),t.getSeconds())}function C(e,t,a){void 0!==l.latestSelectedDateObj&&l.latestSelectedDateObj.setHours(e%24,t,a||0,0),l.hourElement&&l.minuteElement&&!l.isMobile&&(l.hourElement.value=n(l.config.time_24hr?e:(12+e)%12+12*r(e%12==0)),l.minuteElement.value=n(t),void 0!==l.amPM&&(l.amPM.textContent=l.l10n.amPM[r(e>=12)]),void 0!==l.secondElement&&(l.secondElement.value=n(a)))}function M(e){var t=parseInt(e.target.value)+(e.delta||0);4!==t.toString().length&&"Enter"!==e.key||(l.currentYearElement.blur(),/[^\d]/.test(t.toString())||L(t))}function E(e,t,n,r){return t instanceof Array?t.forEach(function(t){return E(e,t,n,r)}):e instanceof Array?e.forEach(function(e){return E(e,t,n,r)}):(e.addEventListener(t,n,r),void l._handlers.push({element:e,event:t,handler:n}))}function O(e){return function(t){1===t.which&&e(t)}}function _(){X("onChange")}function T(e){var t=void 0!==e?l.parseDate(e):l.latestSelectedDateObj||(l.config.minDate&&l.config.minDate>l.now?l.config.minDate:l.config.maxDate&&l.config.maxDatel.minRangeDate&&tl.selectedDates[0]&&(l.maxRangeDate=t)),"range"===l.config.mode&&(function(e){return!("range"!==l.config.mode||l.selectedDates.length<2)&&p(e,l.selectedDates[0])>=0&&p(e,l.selectedDates[1])<=0}(t)&&!ee(t)&&i.classList.add("inRange"),1===l.selectedDates.length&&void 0!==l.minRangeDate&&void 0!==l.maxRangeDate&&(tl.maxRangeDate)&&i.classList.add("notAllowed")),l.weekNumbers&&"prevMonthDay"!==e&&n%7==1&&l.weekNumbers.insertAdjacentHTML("beforeend",""+l.config.getWeek(t)+""),X("onDayCreate",i),i}function R(e,t){var n=e+t||0,r=void 0!==e?l.days.childNodes[n]:l.selectedDateElem||l.todayDateElem||l.days.childNodes[0];void 0===r&&0!==t&&(t>0?(l.changeMonth(1,!0,!0),n%=42):t<0&&(l.changeMonth(-1,!0,!0),n+=42)),(r=r||l.days.childNodes[n]).focus(),"range"===l.config.mode&&W(r)}function P(){if(void 0!==l.daysContainer){var e=(new Date(l.currentYear,l.currentMonth,1).getDay()-l.l10n.firstDayOfWeek+7)%7,t="range"===l.config.mode,n=l.utils.getDaysInMonth((l.currentMonth-1+12)%12),r=l.utils.getDaysInMonth(),a=window.document.createDocumentFragment(),i=n+1-e,o=0;for(l.weekNumbers&&l.weekNumbers.firstChild&&(l.weekNumbers.textContent=""),t&&(l.minRangeDate=new Date(l.currentYear,l.currentMonth-1,i),l.maxRangeDate=new Date(l.currentYear,l.currentMonth+1,(42-e)%r));i<=n;i++,o++)a.appendChild(j("prevMonthDay",new Date(l.currentYear,l.currentMonth-1,i),i,o));for(i=1;i<=r;i++,o++)a.appendChild(j("",new Date(l.currentYear,l.currentMonth,i),i,o));for(var c=r+1;c<=42-e;c++,o++)a.appendChild(j("nextMonthDay",new Date(l.currentYear,l.currentMonth+1,c%r),c,o));t&&1===l.selectedDates.length&&a.childNodes[0]?(l._hidePrevMonthArrow=l._hidePrevMonthArrow||!!l.minRangeDate&&l.minRangeDate>a.childNodes[0].dateObj,l._hideNextMonthArrow=l._hideNextMonthArrow||!!l.maxRangeDate&&l.maxRangeDate0&&e\n "+t.join("")+"\n \n ",l.weekdayContainer}function A(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=t?e:e-l.currentMonth;r<0&&l._hidePrevMonthArrow||r>0&&l._hideNextMonthArrow||(l.currentMonth+=r,(l.currentMonth<0||l.currentMonth>11)&&(l.currentYear+=l.currentMonth>11?1:-1,l.currentMonth=(l.currentMonth+12)%12,X("onYearChange")),P(),X("onMonthChange"),te(),n&&document.activeElement&&document.activeElement.$i&&R(document.activeElement.$i,0))}function F(e){return!(!l.config.appendTo||!l.config.appendTo.contains(e))||l.calendarContainer.contains(e)}function Y(e){if(l.isOpen&&!l.config.inline){var t=F(e.target),n=e.target===l.input||e.target===l.altInput||l.element.contains(e.target)||e.path&&e.path.indexOf&&(~e.path.indexOf(l.input)||~e.path.indexOf(l.altInput)),r="blur"===e.type?n&&e.relatedTarget&&!F(e.relatedTarget):!n&&!t,a=!l.config.ignoredFocusElements.some(function(t){return t.contains(e.target)});r&&a&&(l.close(),"range"===l.config.mode&&1===l.selectedDates.length&&(l.clear(!1),l.redraw()))}}function L(e){if(!(!e||l.currentYearElement.getAttribute("data-min")&&eparseInt(l.currentYearElement.getAttribute("data-max")))){var t=e,n=l.currentYear!==t;l.currentYear=t||l.currentYear,l.config.maxDate&&l.currentYear===l.config.maxDate.getFullYear()?l.currentMonth=Math.min(l.config.maxDate.getMonth(),l.currentMonth):l.config.minDate&&l.currentYear===l.config.minDate.getFullYear()&&(l.currentMonth=Math.max(l.config.minDate.getMonth(),l.currentMonth)),n&&(l.redraw(),X("onYearChange"))}}function H(e,t){void 0===t&&(t=!0);var n=l.parseDate(e,void 0,t);if(l.config.minDate&&n&&p(n,l.config.minDate,void 0!==t?t:!l.minDateHasTime)<0||l.config.maxDate&&n&&p(n,l.config.maxDate,void 0!==t?t:!l.maxDateHasTime)>0)return!1;if(!l.config.enable.length&&!l.config.disable.length)return!0;if(void 0===n)return!1;for(var r=l.config.enable.length>0,a=r?l.config.enable:l.config.disable,i=0,o=void 0;i=o.from.getTime()&&n.getTime()<=o.to.getTime())return r}return!r}function B(e){var t=e.target===l._input,n=F(e.target),r=l.config.allowInput,a=l.isOpen&&(!r||!t),i=l.config.inline&&t&&!r;if(13===e.keyCode&&t){if(r)return l.setDate(l._input.value,!0,e.target===l.altInput?l.config.altFormat:l.config.dateFormat),e.target.blur();l.open()}else if(n||a||i){var o=!!l.timeContainer&&l.timeContainer.contains(e.target);switch(e.keyCode){case 13:o?ne():J(e);break;case 27:e.preventDefault(),l.close();break;case 8:case 46:t&&!l.config.allowInput&&l.clear();break;case 37:case 39:if(o)l.hourElement&&l.hourElement.focus();else if(e.preventDefault(),l.daysContainer){var c=39===e.keyCode?1:-1;e.ctrlKey?A(c,!0,!0):R(e.target.$i,c)}break;case 38:case 40:e.preventDefault();var s=40===e.keyCode?1:-1;l.daysContainer&&void 0!==e.target.$i?e.ctrlKey?(L(l.currentYear-s),R(e.target.$i,0)):o||R(e.target.$i,7*s):l.config.enableTime&&(!o&&l.hourElement&&l.hourElement.focus(),g(e),l._debouncedChange());break;case 9:e.target===l.hourElement?(e.preventDefault(),l.minuteElement.select()):e.target===l.minuteElement&&(l.secondElement||l.amPM)?(e.preventDefault(),void 0!==l.secondElement?l.secondElement.focus():void 0!==l.amPM&&l.amPM.focus()):e.target===l.secondElement&&l.amPM&&(e.preventDefault(),l.amPM.focus())}switch(e.key){case l.l10n.amPM[0].charAt(0):void 0!==l.amPM&&e.target===l.amPM&&(l.amPM.textContent=l.l10n.amPM[0],x(),ne());break;case l.l10n.amPM[1].charAt(0):void 0!==l.amPM&&e.target===l.amPM&&(l.amPM.textContent=l.l10n.amPM[1],x(),ne())}X("onKeyDown",e)}}function W(e){if(1===l.selectedDates.length&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&void 0!==l.minRangeDate&&void 0!==l.maxRangeDate){for(var t=e.dateObj,n=l.parseDate(l.selectedDates[0],void 0,!0),r=Math.min(t.getTime(),l.selectedDates[0].getTime()),a=Math.max(t.getTime(),l.selectedDates[0].getTime()),i=!1,o=r;ol.maxRangeDate.getTime(),f=l.days.childNodes[o];if(u)return f.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){f.classList.remove(e)}),"continue";if(i&&!u)return"continue";["startRange","inRange","endRange","notAllowed"].forEach(function(e){f.classList.remove(e)});var d=Math.max(l.minRangeDate.getTime(),r),p=Math.min(l.maxRangeDate.getTime(),a);e.classList.add(tt&&s===n.getTime()&&f.classList.add("endRange"),s>=d&&s<=p&&f.classList.add("inRange")},s=0,u=l.days.childNodes[s].dateObj;s<42;s++,u=l.days.childNodes[s]&&l.days.childNodes[s].dateObj)c(s,u)}}function z(){!l.isOpen||l.config.static||l.config.inline||K()}function U(e){return function(t){var n=l.config["_"+e+"Date"]=l.parseDate(t,l.config.dateFormat),r=l.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(l["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),l.selectedDates&&(l.selectedDates=l.selectedDates.filter(function(e){return H(e)}),l.selectedDates.length||"min"!==e||D(n),ne()),l.daysContainer&&(V(),void 0!==n?l.currentYearElement[e]=n.getFullYear().toString():l.currentYearElement.removeAttribute(e),l.currentYearElement.disabled=!!r&&void 0!==n&&r.getFullYear()===n.getFullYear())}}function G(){"object"!=typeof l.config.locale&&void 0===w.l10ns[l.config.locale]&&l.config.errorHandler(new Error("flatpickr: invalid locale "+l.config.locale)),l.l10n=t({},w.l10ns.default,"object"==typeof l.config.locale?l.config.locale:"default"!==l.config.locale?w.l10ns[l.config.locale]:void 0),c.K="("+l.l10n.amPM[0]+"|"+l.l10n.amPM[1]+"|"+l.l10n.amPM[0].toLowerCase()+"|"+l.l10n.amPM[1].toLowerCase()+")",l.formatDate=f(l)}function K(e){if(void 0!==l.calendarContainer){X("onPreCalendarPosition");var t=e||l._positionElement,n=Array.prototype.reduce.call(l.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),r=l.calendarContainer.offsetWidth,a=l.config.position,i=t.getBoundingClientRect(),o=window.innerHeight-i.bottom,c="above"===a||"below"!==a&&on,s=window.pageYOffset+i.top+(c?-n-2:t.offsetHeight+2);if(b(l.calendarContainer,"arrowTop",!c),b(l.calendarContainer,"arrowBottom",c),!l.config.inline){var u=window.pageXOffset+i.left,f=window.document.body.offsetWidth-i.right,d=u+r>window.document.body.offsetWidth;b(l.calendarContainer,"rightMost",d),l.config.static||(l.calendarContainer.style.top=s+"px",d?(l.calendarContainer.style.left="auto",l.calendarContainer.style.right=f+"px"):(l.calendarContainer.style.left=u+"px",l.calendarContainer.style.right="auto"))}}}function V(){l.config.noCalendar||l.isMobile||(N(),te(),P())}function J(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(e.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,r=l.latestSelectedDateObj=new Date(n.dateObj.getTime()),a=r.getMonth()!==l.currentMonth&&"range"!==l.config.mode;if(l.selectedDateElem=n,"single"===l.config.mode)l.selectedDates=[r];else if("multiple"===l.config.mode){var i=ee(r);i?l.selectedDates.splice(parseInt(i),1):l.selectedDates.push(r)}else"range"===l.config.mode&&(2===l.selectedDates.length&&l.clear(),l.selectedDates.push(r),0!==p(r,l.selectedDates[0],!0)&&l.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(x(),a){var o=l.currentYear!==r.getFullYear();l.currentYear=r.getFullYear(),l.currentMonth=r.getMonth(),o&&X("onYearChange"),X("onMonthChange")}if(P(),l.config.minDate&&l.minDateHasTime&&l.config.enableTime&&0===p(r,l.config.minDate)&&D(l.config.minDate),ne(),l.config.enableTime&&setTimeout(function(){return l.showTimeInput=!0},50),"range"===l.config.mode&&(1===l.selectedDates.length?(W(n),l._hidePrevMonthArrow=l._hidePrevMonthArrow||void 0!==l.minRangeDate&&l.minRangeDate>l.days.childNodes[0].dateObj,l._hideNextMonthArrow=l._hideNextMonthArrow||void 0!==l.maxRangeDate&&l.maxRangeDate0,l.latestSelectedDateObj=l.selectedDates[0],l.redraw(),T(),D(),ne(t),t&&X("onChange")},l.toggle=function(){if(l.isOpen)return l.close();l.open()};var $={locale:[G]};function Z(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return l.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[l.parseDate(e,t)];else if("string"==typeof e)switch(l.config.mode){case"single":n=[l.parseDate(e,t)];break;case"multiple":n=e.split(l.config.conjunction).map(function(e){return l.parseDate(e,t)});break;case"range":n=e.split(l.l10n.rangeSeparator).map(function(e){return l.parseDate(e,t)})}else l.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));l.selectedDates=n.filter(function(e){return e instanceof Date&&H(e,!1)}),"range"===l.config.mode&&l.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function q(e){return e.map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?l.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:l.parseDate(e.from,void 0),to:l.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function X(e,t){var n=l.config[e];if(void 0!==n&&n.length>0)for(var r=0;n[r]&&rl.config.maxDate.getMonth():l.currentYear>l.config.maxDate.getFullYear()))}function ne(e){if(void 0===e&&(e=!0),!l.selectedDates.length)return l.clear(e);void 0!==l.mobileInput&&l.mobileFormatStr&&(l.mobileInput.value=void 0!==l.latestSelectedDateObj?l.formatDate(l.latestSelectedDateObj,l.mobileFormatStr):"");var t="range"!==l.config.mode?l.config.conjunction:l.l10n.rangeSeparator;l.input.value=l.selectedDates.map(function(e){return l.formatDate(e,l.config.dateFormat)}).join(t),void 0!==l.altInput&&(l.altInput.value=l.selectedDates.map(function(e){return l.formatDate(e,l.config.altFormat)}).join(t)),!1!==e&&X("onValueUpdate")}function re(e){e.preventDefault();var t=l.prevMonthNav.contains(e.target),n=l.nextMonthNav.contains(e.target);t||n?A(t?-1:1):e.target===l.currentYearElement?l.currentYearElement.select():"arrowUp"===e.target.className?l.changeYear(l.currentYear+1):"arrowDown"===e.target.className&&l.changeYear(l.currentYear-1)}return function(){l.element=l.input=e,l.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],a=t({},o,JSON.parse(JSON.stringify(e.dataset||{}))),c={};l.config.parseDate=a.parseDate,l.config.formatDate=a.formatDate,Object.defineProperty(l.config,"enable",{get:function(){return l.config._enable||[]},set:function(e){l.config._enable=q(e)}}),Object.defineProperty(l.config,"disable",{get:function(){return l.config._disable||[]},set:function(e){l.config._disable=q(e)}}),!a.dateFormat&&a.enableTime&&(c.dateFormat=a.noCalendar?"H:i"+(a.enableSeconds?":S":""):w.defaultConfig.dateFormat+" H:i"+(a.enableSeconds?":S":"")),a.altInput&&a.enableTime&&!a.altFormat&&(c.altFormat=a.noCalendar?"h:i"+(a.enableSeconds?":S K":" K"):w.defaultConfig.altFormat+" h:i"+(a.enableSeconds?":S":"")+" K"),Object.defineProperty(l.config,"minDate",{get:function(){return l.config._minDate},set:U("min")}),Object.defineProperty(l.config,"maxDate",{get:function(){return l.config._maxDate},set:U("max")});var u=function(e){return function(t){l.config["min"===e?"_minTime":"_maxTime"]=l.parseDate(t,"H:i")}};Object.defineProperty(l.config,"minTime",{get:function(){return l.config._minTime},set:u("min")}),Object.defineProperty(l.config,"maxTime",{get:function(){return l.config._maxTime},set:u("max")}),Object.assign(l.config,c,a);for(var f=0;fl.now.getTime()?l.config.minDate:l.config.maxDate&&l.config.maxDate.getTime()0||l.config.minDate.getMinutes()>0||l.config.minDate.getSeconds()>0),l.maxDateHasTime=!!l.config.maxDate&&(l.config.maxDate.getHours()>0||l.config.maxDate.getMinutes()>0||l.config.maxDate.getSeconds()>0),Object.defineProperty(l,"showTimeInput",{get:function(){return l._showTimeInput},set:function(e){l._showTimeInput=e,l.calendarContainer&&b(l.calendarContainer,"showTimeInput",e),l.isOpen&&K()}})}(),l.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=l.currentMonth),void 0===t&&(t=l.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:l.l10n.daysInMonth[e]}},l.isMobile||function(){var e=window.document.createDocumentFragment();if(l.calendarContainer=y("div","flatpickr-calendar"),l.calendarContainer.tabIndex=-1,!l.config.noCalendar){if(e.appendChild(function(){var e=window.document.createDocumentFragment();l.monthNav=y("div","flatpickr-month"),l.prevMonthNav=y("span","flatpickr-prev-month"),l.prevMonthNav.innerHTML=l.config.prevArrow,l.currentMonthElement=y("span","cur-month");var t=v("cur-year",{tabindex:"-1"});return l.currentYearElement=t.childNodes[0],l.config.minDate&&l.currentYearElement.setAttribute("data-min",l.config.minDate.getFullYear().toString()),l.config.maxDate&&(l.currentYearElement.setAttribute("data-max",l.config.maxDate.getFullYear().toString()),l.currentYearElement.disabled=!!l.config.minDate&&l.config.minDate.getFullYear()===l.config.maxDate.getFullYear()),l.nextMonthNav=y("span","flatpickr-next-month"),l.nextMonthNav.innerHTML=l.config.nextArrow,l.navigationCurrentMonth=y("div","flatpickr-current-month"),l.navigationCurrentMonth.appendChild(l.currentMonthElement),l.navigationCurrentMonth.appendChild(t),e.appendChild(l.prevMonthNav),e.appendChild(l.navigationCurrentMonth),e.appendChild(l.nextMonthNav),l.monthNav.appendChild(e),Object.defineProperty(l,"_hidePrevMonthArrow",{get:function(){return l.__hidePrevMonthArrow},set:function(e){l.__hidePrevMonthArrow!==e&&(l.prevMonthNav.style.display=e?"none":"block"),l.__hidePrevMonthArrow=e}}),Object.defineProperty(l,"_hideNextMonthArrow",{get:function(){return l.__hideNextMonthArrow},set:function(e){l.__hideNextMonthArrow!==e&&(l.nextMonthNav.style.display=e?"none":"block"),l.__hideNextMonthArrow=e}}),te(),l.monthNav}()),l.innerContainer=y("div","flatpickr-innerContainer"),l.config.weekNumbers){var t=function(){l.calendarContainer.classList.add("hasWeeks");var e=y("div","flatpickr-weekwrapper");e.appendChild(y("span","flatpickr-weekday",l.l10n.weekAbbreviation));var t=y("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),a=t.weekWrapper,i=t.weekNumbers;l.innerContainer.appendChild(a),l.weekNumbers=i,l.weekWrapper=a}l.rContainer=y("div","flatpickr-rContainer"),l.rContainer.appendChild(N()),l.daysContainer||(l.daysContainer=y("div","flatpickr-days"),l.daysContainer.tabIndex=-1),P(),l.rContainer.appendChild(l.daysContainer),l.innerContainer.appendChild(l.rContainer),e.appendChild(l.innerContainer)}l.config.enableTime&&e.appendChild(function(){l.calendarContainer.classList.add("hasTime"),l.config.noCalendar&&l.calendarContainer.classList.add("noCalendar"),l.timeContainer=y("div","flatpickr-time"),l.timeContainer.tabIndex=-1;var e=y("span","flatpickr-time-separator",":"),t=v("flatpickr-hour");l.hourElement=t.childNodes[0];var a=v("flatpickr-minute");if(l.minuteElement=a.childNodes[0],l.hourElement.tabIndex=l.minuteElement.tabIndex=-1,l.hourElement.value=n(l.latestSelectedDateObj?l.latestSelectedDateObj.getHours():l.config.time_24hr?l.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(l.config.defaultHour)),l.minuteElement.value=n(l.latestSelectedDateObj?l.latestSelectedDateObj.getMinutes():l.config.defaultMinute),l.hourElement.setAttribute("data-step",l.config.hourIncrement.toString()),l.minuteElement.setAttribute("data-step",l.config.minuteIncrement.toString()),l.hourElement.setAttribute("data-min",l.config.time_24hr?"0":"1"),l.hourElement.setAttribute("data-max",l.config.time_24hr?"23":"12"),l.minuteElement.setAttribute("data-min","0"),l.minuteElement.setAttribute("data-max","59"),l.timeContainer.appendChild(t),l.timeContainer.appendChild(e),l.timeContainer.appendChild(a),l.config.time_24hr&&l.timeContainer.classList.add("time24hr"),l.config.enableSeconds){l.timeContainer.classList.add("hasSeconds");var i=v("flatpickr-second");l.secondElement=i.childNodes[0],l.secondElement.value=n(l.latestSelectedDateObj?l.latestSelectedDateObj.getSeconds():l.config.defaultSeconds),l.secondElement.setAttribute("data-step",l.minuteElement.getAttribute("data-step")),l.secondElement.setAttribute("data-min",l.minuteElement.getAttribute("data-min")),l.secondElement.setAttribute("data-max",l.minuteElement.getAttribute("data-max")),l.timeContainer.appendChild(y("span","flatpickr-time-separator",":")),l.timeContainer.appendChild(i)}return l.config.time_24hr||(l.amPM=y("span","flatpickr-am-pm",l.l10n.amPM[r((l.latestSelectedDateObj?l.hourElement.value:l.config.defaultHour)>11)]),l.amPM.title=l.l10n.toggleTitle,l.amPM.tabIndex=-1,l.timeContainer.appendChild(l.amPM)),l.timeContainer}()),b(l.calendarContainer,"rangeMode","range"===l.config.mode),b(l.calendarContainer,"animate",l.config.animate),l.calendarContainer.appendChild(e);var o=void 0!==l.config.appendTo&&l.config.appendTo.nodeType;if((l.config.inline||l.config.static)&&(l.calendarContainer.classList.add(l.config.inline?"inline":"static"),l.config.inline&&(!o&&l.element.parentNode?l.element.parentNode.insertBefore(l.calendarContainer,l._input.nextSibling):void 0!==l.config.appendTo&&l.config.appendTo.appendChild(l.calendarContainer)),l.config.static)){var c=y("div","flatpickr-wrapper");l.element.parentNode&&l.element.parentNode.insertBefore(c,l.element),c.appendChild(l.element),l.altInput&&c.appendChild(l.altInput),c.appendChild(l.calendarContainer)}l.config.static||l.config.inline||(void 0!==l.config.appendTo?l.config.appendTo:window.document.body).appendChild(l.calendarContainer)}(),function(){if(l.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(l.element.querySelectorAll("[data-"+e+"]"),function(t){return E(t,"click",l[e])})}),l.isMobile)!function(){var e=l.config.enableTime?l.config.noCalendar?"time":"datetime-local":"date";l.mobileInput=y("input",l.input.className+" flatpickr-mobile"),l.mobileInput.step=l.input.getAttribute("step")||"any",l.mobileInput.tabIndex=1,l.mobileInput.type=e,l.mobileInput.disabled=l.input.disabled,l.mobileInput.required=l.input.required,l.mobileInput.placeholder=l.input.placeholder,l.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",l.selectedDates.length&&(l.mobileInput.defaultValue=l.mobileInput.value=l.formatDate(l.selectedDates[0],l.mobileFormatStr)),l.config.minDate&&(l.mobileInput.min=l.formatDate(l.config.minDate,"Y-m-d")),l.config.maxDate&&(l.mobileInput.max=l.formatDate(l.config.maxDate,"Y-m-d")),l.input.type="hidden",void 0!==l.altInput&&(l.altInput.type="hidden");try{l.input.parentNode&&l.input.parentNode.insertBefore(l.mobileInput,l.input.nextSibling)}catch(e){}E(l.mobileInput,"change",function(e){l.setDate(e.target.value,!1,l.mobileFormatStr),X("onChange"),X("onClose")})}();else{var e=a(z,50);l._debouncedChange=a(_,k),l.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&E(l.daysContainer,"mouseover",function(e){"range"===l.config.mode&&W(e.target)}),E(window.document.body,"keydown",B),l.config.static||E(l._input,"keydown",B),l.config.inline||l.config.static||E(window,"resize",e),void 0!==window.ontouchstart&&E(window.document,"touchstart",Y),E(window.document,"mousedown",O(Y)),E(window.document,"focus",Y,{capture:!0}),!0===l.config.clickOpens&&(E(l._input,"focus",l.open),E(l._input,"mousedown",O(l.open))),void 0!==l.daysContainer&&(E(l.monthNav,"mousedown",O(re)),E(l.monthNav,["keyup","increment"],M),E(l.daysContainer,"mousedown",O(J))),void 0!==l.timeContainer&&void 0!==l.minuteElement&&void 0!==l.hourElement&&(E(l.timeContainer,["input","increment"],g),E(l.timeContainer,"mousedown",O(S)),E(l.timeContainer,["input","increment"],l._debouncedChange,{passive:!0}),E([l.hourElement,l.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==l.secondElement&&E(l.secondElement,"focus",function(){return l.secondElement&&l.secondElement.select()}),void 0!==l.amPM&&E(l.amPM,"mousedown",O(function(e){g(e),_()})))}}(),(l.selectedDates.length||l.config.noCalendar)&&(l.config.enableTime&&D(l.config.noCalendar?l.latestSelectedDateObj||l.config.minDate:void 0),ne(!1)),l.showTimeInput=l.selectedDates.length>0||l.config.noCalendar,void 0!==l.weekWrapper&&void 0!==l.daysContainer&&(l.calendarContainer.style.visibility="hidden",l.calendarContainer.style.display="block",l.calendarContainer.style.width=l.daysContainer.offsetWidth+l.weekWrapper.offsetWidth+"px",l.calendarContainer.style.visibility="visible",l.calendarContainer.style.display=null);var c=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!l.isMobile&&c&&K(),X("onReady")}(),l}function D(e,t){for(var n=Array.prototype.slice.call(e),r=[],a=0;a=o&&n<=c}else if(void 0!==a){t=new Date(a)===n}else t=!0;return t}},{key:"isFilterActive",value:function(){return Array.isArray(this.filterDates)&&this.filterDates.length}},{key:"getModel",value:function(){return{value:this.filterDates}}},{key:"getModelAsString",value:function(){var e=this.getOption("FILTER_MASK",this.params),t=l(this.filterDates,2),n=t[0],r=t[1],a="";return n&&(a+="".concat(BBj.Masks.date(n,e))),r&&(a+=" - ".concat(BBj.Masks.date(r,e))),a}}])&&c(n.prototype,r),s&&c(n,s),t}()},function(e,t,n){var r=n(27);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:function(){return window.top.document.head}};n(2)(r,a);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".flatpickr-calendar{font-size:13px;border-radius:0}.flatpickr-calendar .flatpickr-clear{padding:7px;margin:12px;text-align:center;background-color:#569ff7;color:#fff;outline:0;border:0;min-width:100px;cursor:pointer;box-shadow:0 0 2px 0 transparent;transition:box-shadow .36s}.flatpickr-calendar .flatpickr-clear:focus,.flatpickr-calendar .flatpickr-clear:hover{box-shadow:0 0 2px 0 #9e9e9e}.DateTimesDialog{max-width:307.875px;overflow:hidden}.DateTimesDialog input{min-width:100%;max-width:100%;width:100%;height:100%;margin-left:auto;margin-right:auto;padding:3px;outline:0;border:none;background:inherit}",""])},function(e,t,n){"use strict";var r=n(29);n.d(t,"a",function(){return r.a});var a=n(30);n.n(a)},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(0);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n'):this.container.innerHTML=e.value}},{key:"getGui",value:function(){return this.container}}])&&i(n.prototype,o),l&&i(n,l),t}()},function(e,t,n){var r=n(31);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:function(){return window.top.document.head}};n(2)(r,a);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".BasicImagesRenderer img{display:block;margin-left:auto;margin-right:auto}",""])}]); \ No newline at end of file diff --git a/js/dist/bbj-grid-widget.min.js b/js/dist/bbj-grid-widget.min.js index e92659e8..69912935 100644 --- a/js/dist/bbj-grid-widget.min.js +++ b/js/dist/bbj-grid-widget.min.js @@ -1 +1 @@ -!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_setQuickFilter=function(e){gw_options.api.setQuickFilter(e)},t.gw_expandAll=function(){gw_options.api.expandAll()},t.gw_collapseAll=function(){gw_options.api.collapseAll()},t.gw_setVisibleRow=function(e,t){gw_options.api.ensureIndexVisible(e,t)},t.gw_navigateToNextRow=function(e){var t=e.previousCellDef,n=e.nextCellDef;switch(e.key){case 40:return t=e.previousCellDef,gw_options.api.forEachNode(function(e){t.rowIndex+1===e.rowIndex&&e.setSelected(!0)}),n;case 38:return t=e.previousCellDef,gw_options.api.forEachNode(function(e){t.rowIndex-1===e.rowIndex&&e.setSelected(!0)}),n;case 37:case 39:return n;default:throw new Error("You have super strange keyboard")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var r=n(3);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var i=n(7);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var a=n(11);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_debounce=function(e,t,n){var o;return function(){var r=this,i=arguments,a=n&&!o;clearTimeout(o),o=setTimeout(function(){o=null,n||e.apply(r,i)},t),a&&e.apply(r,i)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var r=n(5);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var i=n(6);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_postEvent=function(e){window.basisDispatchCustomEvent(e,e.payload)},t.gw_sendEvent=function(e){var t=$doc.getElementById("eventTransporterDiv"),n=new Event("click");n.payload=e,t.dispatchEvent(n)},t.gw_parseNodeFromEvent=function(e){return!0!==e.node.group&&{id:e.node.id,childIndex:e.node.childIndex,selected:Boolean(e.node.selected),data:e.node.data,parentKey:e.node.hasOwnProperty("parent")?e.node.parent.key:""}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_onRowDoubleClicked=function(e){gw_sendEvent({type:"grid-row-doubleclick",detail:[[gw_parseNodeFromEvent(e)]]})},t.gw_onRowSelected=function(e){o.push(e)},t.gw_onSelectionChanged=function(){var e=[];o.forEach(function(t){var n=gw_parseNodeFromEvent(t);n&&e.push(n)}),e.length&&(t.gw_selectedRowsStack=o=[],gw_sendEvent({type:"grid-row-select",detail:[e]}))},t.gw_selectedRowsStack=void 0;var o=[];t.gw_selectedRowsStack=o},function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t-1&&(t.setSelected(!0),t.expanded=!0)}.bind(this)),gw_options.api.onGroupExpandedOrCollapsed()},t.gw_selectAll=function(e){1===e?gw_options.api.selectAllFiltered():gw_options.api.selectAll()},t.gw_deselectAll=function(e){1===e?gw_options.api.deselectAllFiltered():gw_options.api.deselectAll()},t.gw_setVisibleColumn=function(e){gw_options.api.ensureColumnVisible(e)},t.gw_setColumnWidth=function(e,t){gw_options.columnApi.setColumnWidth(e,Number(t))},t.gw_pinColumn=function(e,t){gw_options.columnApi.setColumnPinned(e,t)},t.gw_moveColumn=function(e,t){gw_options.columnApi.moveColumn(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_cellStyler=function(e){var t=e.column.colDef.cellStyleDefaults||{},n={};e.data.meta&&(n=e.data.meta[e.column.colId]||{});var o={};n.FGCOLOR?o.color=n.FGCOLOR:t.FGCOLOR&&(o.color=t.FGCOLOR);n.BGCOLOR?o["background-color"]=n.BGCOLOR:t.BGCOLOR&&(o["background-color"]=t.BGCOLOR);n.ALIGN?o["text-align"]=n.ALIGN:t.ALIGN&&(o["text-align"]=t.ALIGN);return o.color||o["background-color"]||o["text-align"]?o:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_setState=function(e){gw_options.columnApi.setColumnState(e)},t.gw_getState=function(){var e=gw_options.columnApi.getColumnState();try{return JSON.stringify(e)}catch(e){console.warn("Failed to parse state",e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_getSupportedColumnTypes=o,t.gw_getDefaultComponents=r,t.gw_init=i,t.gw_setData=function(e,t){var n=$doc.getElementById("grid");if(n.innerHTML="",window.gw_meta=e[0].meta,window.AGridComponentsMetaConfig=gw_meta,window.gw_options=t,window.gw_instance=i(n,"",e,t),gw_options.hasOwnProperty("__enterKeyBehavior")){var o=gw_options.__enterKeyBehavior;switch(o){case"next":n.addEventListener("keydown",ge_onMoveToNextCell)}}};n(0);function o(){return{"basic-boolean":{cellRenderer:"BasicBooleansRenderer",cellRendererParams:{RENDERER_TRUE:"switch",RENDERER_FALSE:"switch"},cellEditor:"BasicBooleansEditor",filter:"BasicBooleansFilter"},"basic-number":{cellRenderer:"BasicNumbersRenderer",cellEditor:"BasicNumbersEditor",filter:"agNumberColumnFilter",filterParams:{inRangeInclusive:!0},floatingFilter:"agNumberColumnFilter",floatingFilterParams:{inRangeInclusive:!0}},"basic-date":{cellRenderer:"BasicDateTimesRenderer",cellRendererParams:{RENDERER_MASK:"%Y/%Mz/%Dz"},cellEditor:"BasicDateTimesEditor",cellEditorParams:{EDITOR_MASK:"%Y/%Mz/%Dz",EDITOR_ALLOW_INPUT:!0},filter:"BasicDateTimesFilter",filterParams:{FILTER_MASK:"%Y/%Mz/%Dz",FILTER_ALLOW_INPUT:!0}},"basic-timestamp":{cellRenderer:"BasicDateTimesRenderer",cellRendererParams:{RENDERER_MASK:"%Y/%Mz/%Dz %Hz:%mz:%sz"},cellEditor:"BasicDateTimesEditor",cellEditorParams:{EDITOR_MASK:"%Y/%Mz/%Dz %Hz:%mz:%sz",EDITOR_ENABLE_TIME:!0,EDITOR_ALLOW_INPUT:!0},filter:"BasicDateTimesFilter",filterParams:{FILTER_MASK:"%Y/%Mz/%Dz %Hz:%mz:%sz",FILTER_ENABLE_TIME:!0,FILTER_ALLOW_INPUT:!0}},"basic-image":{cellRenderer:"BasicImagesRenderer",suppressMenu:!0,suppressFilter:!0,cellRendererParams:{IMAGE_WIDTH:"25px",IMAGE_HEIGHT:"25px"}},"basic-image-filterable":{cellRenderer:"BasicImagesRenderer",cellRendererParams:{IMAGE_WIDTH:"25px",IMAGE_HEIGHT:"25px"}}}}function r(){return{BasicBooleansRenderer:Basis.AgGridComponents.BasicBooleansRenderer,BasicBooleansEditor:Basis.AgGridComponents.BasicBooleansEditor,BasicBooleansFilter:Basis.AgGridComponents.BasicBooleansFilter,BasicNumbersRenderer:Basis.AgGridComponents.BasicNumbersRenderer,BasicNumbersEditor:Basis.AgGridComponents.BasicNumbersEditor,BasicDateTimesEditor:Basis.AgGridComponents.BasicDateTimesEditor,BasicDateTimesRenderer:Basis.AgGridComponents.BasicDateTimesRenderer,BasicDateTimesFilter:Basis.AgGridComponents.BasicDateTimesFilter,BasicImagesRenderer:Basis.AgGridComponents.BasicImagesRenderer}}function i(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};agGrid.LicenseManager&&agGrid.LicenseManager.setLicenseKey(t);var i=Object.assign(o,{rowData:n,getDocument:function(){return $doc},columnTypes:{"basic-boolean":{cellRenderer:"BasicBooleansRenderer",cellRendererParams:{RENDERER_TRUE:"switch",RENDERER_FALSE:"switch"},cellEditor:"BasicBooleansEditor",filter:"BasicBooleansFilter"},"basic-number":{cellRenderer:"BasicNumbersRenderer",cellEditor:"BasicNumbersEditor",filter:"agNumberColumnFilter",filterParams:{inRangeInclusive:!0},floatingFilter:"agNumberColumnFilter",floatingFilterParams:{inRangeInclusive:!0}},"basic-date":{cellRenderer:"BasicDateTimesRenderer",cellRendererParams:{RENDERER_MASK:"%Y/%Mz/%Dz"},cellEditor:"BasicDateTimesEditor",cellEditorParams:{EDITOR_MASK:"%Y/%Mz/%Dz",EDITOR_ALLOW_INPUT:!0},filter:"BasicDateTimesFilter",filterParams:{FILTER_MASK:"%Y/%Mz/%Dz",FILTER_ALLOW_INPUT:!0}},"basic-timestamp":{cellRenderer:"BasicDateTimesRenderer",cellRendererParams:{RENDERER_MASK:"%Y/%Mz/%Dz %Hz:%mz:%sz"},cellEditor:"BasicDateTimesEditor",cellEditorParams:{EDITOR_MASK:"%Y/%Mz/%Dz %Hz:%mz:%sz",EDITOR_ENABLE_TIME:!0,EDITOR_ALLOW_INPUT:!0},filter:"BasicDateTimesFilter",filterParams:{FILTER_MASK:"%Y/%Mz/%Dz %Hz:%mz:%sz",FILTER_ENABLE_TIME:!0,FILTER_ALLOW_INPUT:!0}},"basic-image":{cellRenderer:"BasicImagesRenderer",suppressMenu:!0,suppressFilter:!0,cellRendererParams:{IMAGE_WIDTH:"25px",IMAGE_HEIGHT:"25px"}},"basic-image-filterable":{cellRenderer:"BasicImagesRenderer",cellRendererParams:{IMAGE_WIDTH:"25px",IMAGE_HEIGHT:"25px"}}},components:r(),onRowDoubleClicked:gw_onRowDoubleClicked,onRowSelected:gw_onRowSelected,onSelectionChanged:gw_onSelectionChanged,onCellEditingStarted:gw_onCellEditingsEvent,onCellEditingStopped:gw_onCellEditingsEvent,onCellValueChanged:gw_onCellEditingsEvent,onRowEditingStarted:gw_onRowEditingsEvent,onRowEditingStopped:gw_onRowEditingsEvent,onRowValueChanged:gw_onRowEditingsEvent,getNodeChildDetails:function(e){var t=e[gw_options.__getParentNodeId];return e.__node__children?{group:!0,expanded:!1,children:e.__node__children,key:t||-1}:null}});for(var a in gw_options.hasOwnProperty("__getRowNodeId")&&(i.getRowNodeId=function(e){var t=e[gw_options.__getRowNodeId];return t=t||Math.random()}),gw_options.hasOwnProperty("__navigateToNextCell")&&gw_options.__navigateToNextCell&&(i.navigateToNextCell=gw_navigateToNextRow),i.columnDefs)i.columnDefs[a].cellStyle=gw_cellStyler;return new agGrid.Grid(e,i)}}])); \ No newline at end of file +!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_setQuickFilter=function(e){gw_options.api.setQuickFilter(e)},t.gw_expandAll=function(){gw_options.api.expandAll()},t.gw_collapseAll=function(){gw_options.api.collapseAll()},t.gw_setVisibleRow=function(e,t){gw_options.api.ensureIndexVisible(e,t)},t.gw_navigateToNextRow=function(e){var t=e.previousCellDef,n=e.nextCellDef;switch(e.key){case 40:return t=e.previousCellDef,gw_options.api.forEachNode(function(e){t.rowIndex+1===e.rowIndex&&e.setSelected(!0)}),n;case 38:return t=e.previousCellDef,gw_options.api.forEachNode(function(e){t.rowIndex-1===e.rowIndex&&e.setSelected(!0)}),n;case 37:case 39:return n;default:throw new Error("You have super strange keyboard")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var r=n(3);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var i=n(8);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var a=n(12);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_debounce=function(e,t,n){var o;return function(){var r=this,i=arguments,a=n&&!o;clearTimeout(o),o=setTimeout(function(){o=null,n||e.apply(r,i)},t),a&&e.apply(r,i)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var r=n(5);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var i=n(6);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var a=n(7);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})})},function(e,t){!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_postEvent=function(e){window.basisDispatchCustomEvent(e,e.payload)},t.gw_sendEvent=function(e){var t=$doc.getElementById("eventTransporterDiv"),n=new CustomEvent("click");n.payload=e,t.dispatchEvent(n)},t.gw_parseNodeFromEvent=function(e){return!0!==e.node.group&&{id:e.node.id,childIndex:e.node.childIndex,selected:Boolean(e.node.selected),data:e.node.data,parentKey:e.node.hasOwnProperty("parent")?e.node.parent.key:""}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_onRowDoubleClicked=function(e){gw_sendEvent({type:"grid-row-doubleclick",detail:[[gw_parseNodeFromEvent(e)]]})},t.gw_onRowSelected=function(e){o.push(e)},t.gw_onSelectionChanged=function(){var e=[];o.forEach(function(t){var n=gw_parseNodeFromEvent(t);n&&e.push(n)}),e.length&&(t.gw_selectedRowsStack=o=[],gw_sendEvent({type:"grid-row-select",detail:[e]}))},t.gw_selectedRowsStack=void 0;var o=[];t.gw_selectedRowsStack=o},function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t-1&&(t.setSelected(!0),t.expanded=!0)}.bind(this)),gw_options.api.onGroupExpandedOrCollapsed()},t.gw_selectAll=function(e){1===e?gw_options.api.selectAllFiltered():gw_options.api.selectAll()},t.gw_deselectAll=function(e){1===e?gw_options.api.deselectAllFiltered():gw_options.api.deselectAll()},t.gw_setVisibleColumn=function(e){gw_options.api.ensureColumnVisible(e)},t.gw_setColumnWidth=function(e,t){gw_options.columnApi.setColumnWidth(e,Number(t))},t.gw_pinColumn=function(e,t){gw_options.columnApi.setColumnPinned(e,t)},t.gw_moveColumn=function(e,t){gw_options.columnApi.moveColumn(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_cellStyler=function(e){var t=e.column.colDef.cellStyleDefaults||{},n={};e.data.meta&&(n=e.data.meta[e.column.colId]||{});var o={};n.FGCOLOR?o.color=n.FGCOLOR:t.FGCOLOR&&(o.color=t.FGCOLOR);n.BGCOLOR?o["background-color"]=n.BGCOLOR:t.BGCOLOR&&(o["background-color"]=t.BGCOLOR);n.ALIGN?o["text-align"]=n.ALIGN:t.ALIGN&&(o["text-align"]=t.ALIGN);return o.color||o["background-color"]||o["text-align"]?o:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_setState=function(e){gw_options.columnApi.setColumnState(e)},t.gw_getState=function(){var e=gw_options.columnApi.getColumnState();try{return JSON.stringify(e)}catch(e){console.warn("Failed to parse state",e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gw_getSupportedColumnTypes=o,t.gw_getDefaultComponents=r,t.gw_init=i,t.gw_setData=function(e,t){var n=$doc.getElementById("grid");if(n.innerHTML="",window.gw_meta=e[0].meta,window.AGridComponentsMetaConfig=gw_meta,window.gw_options=t,window.gw_instance=i(n,"",e,t),gw_options.hasOwnProperty("__enterKeyBehavior")){var o=gw_options.__enterKeyBehavior;switch(o){case"next":n.addEventListener("keydown",ge_onMoveToNextCell)}}};n(0);function o(){return{"basic-boolean":{cellRenderer:"BasicBooleansRenderer",cellRendererParams:{RENDERER_TRUE:"switch",RENDERER_FALSE:"switch"},cellEditor:"BasicBooleansEditor",filter:"BasicBooleansFilter"},"basic-number":{cellRenderer:"BasicNumbersRenderer",cellEditor:"BasicNumbersEditor",filter:"agNumberColumnFilter",filterParams:{inRangeInclusive:!0},floatingFilter:"agNumberColumnFilter",floatingFilterParams:{inRangeInclusive:!0}},"basic-date":{cellRenderer:"BasicDateTimesRenderer",cellRendererParams:{RENDERER_MASK:"%Y/%Mz/%Dz"},cellEditor:"BasicDateTimesEditor",cellEditorParams:{EDITOR_MASK:"%Y/%Mz/%Dz",EDITOR_ALLOW_INPUT:!0},filter:"BasicDateTimesFilter",filterParams:{FILTER_MASK:"%Y/%Mz/%Dz",FILTER_ALLOW_INPUT:!0}},"basic-timestamp":{cellRenderer:"BasicDateTimesRenderer",cellRendererParams:{RENDERER_MASK:"%Y/%Mz/%Dz %Hz:%mz:%sz"},cellEditor:"BasicDateTimesEditor",cellEditorParams:{EDITOR_MASK:"%Y/%Mz/%Dz %Hz:%mz:%sz",EDITOR_ENABLE_TIME:!0,EDITOR_ALLOW_INPUT:!0},filter:"BasicDateTimesFilter",filterParams:{FILTER_MASK:"%Y/%Mz/%Dz %Hz:%mz:%sz",FILTER_ENABLE_TIME:!0,FILTER_ALLOW_INPUT:!0}},"basic-image":{cellRenderer:"BasicImagesRenderer",suppressMenu:!0,suppressFilter:!0,cellRendererParams:{IMAGE_WIDTH:"25px",IMAGE_HEIGHT:"25px"}},"basic-image-filterable":{cellRenderer:"BasicImagesRenderer",cellRendererParams:{IMAGE_WIDTH:"25px",IMAGE_HEIGHT:"25px"}}}}function r(){return{BasicBooleansRenderer:Basis.AgGridComponents.BasicBooleansRenderer,BasicBooleansEditor:Basis.AgGridComponents.BasicBooleansEditor,BasicBooleansFilter:Basis.AgGridComponents.BasicBooleansFilter,BasicNumbersRenderer:Basis.AgGridComponents.BasicNumbersRenderer,BasicNumbersEditor:Basis.AgGridComponents.BasicNumbersEditor,BasicDateTimesEditor:Basis.AgGridComponents.BasicDateTimesEditor,BasicDateTimesRenderer:Basis.AgGridComponents.BasicDateTimesRenderer,BasicDateTimesFilter:Basis.AgGridComponents.BasicDateTimesFilter,BasicImagesRenderer:Basis.AgGridComponents.BasicImagesRenderer}}function i(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};agGrid.LicenseManager&&agGrid.LicenseManager.setLicenseKey(t);var i=Object.assign(o,{rowData:n,getDocument:function(){return $doc},columnTypes:{"basic-boolean":{cellRenderer:"BasicBooleansRenderer",cellRendererParams:{RENDERER_TRUE:"switch",RENDERER_FALSE:"switch"},cellEditor:"BasicBooleansEditor",filter:"BasicBooleansFilter"},"basic-number":{cellRenderer:"BasicNumbersRenderer",cellEditor:"BasicNumbersEditor",filter:"agNumberColumnFilter",filterParams:{inRangeInclusive:!0},floatingFilter:"agNumberColumnFilter",floatingFilterParams:{inRangeInclusive:!0}},"basic-date":{cellRenderer:"BasicDateTimesRenderer",cellRendererParams:{RENDERER_MASK:"%Y/%Mz/%Dz"},cellEditor:"BasicDateTimesEditor",cellEditorParams:{EDITOR_MASK:"%Y/%Mz/%Dz",EDITOR_ALLOW_INPUT:!0},filter:"BasicDateTimesFilter",filterParams:{FILTER_MASK:"%Y/%Mz/%Dz",FILTER_ALLOW_INPUT:!0}},"basic-timestamp":{cellRenderer:"BasicDateTimesRenderer",cellRendererParams:{RENDERER_MASK:"%Y/%Mz/%Dz %Hz:%mz:%sz"},cellEditor:"BasicDateTimesEditor",cellEditorParams:{EDITOR_MASK:"%Y/%Mz/%Dz %Hz:%mz:%sz",EDITOR_ENABLE_TIME:!0,EDITOR_ALLOW_INPUT:!0},filter:"BasicDateTimesFilter",filterParams:{FILTER_MASK:"%Y/%Mz/%Dz %Hz:%mz:%sz",FILTER_ENABLE_TIME:!0,FILTER_ALLOW_INPUT:!0}},"basic-image":{cellRenderer:"BasicImagesRenderer",suppressMenu:!0,suppressFilter:!0,cellRendererParams:{IMAGE_WIDTH:"25px",IMAGE_HEIGHT:"25px"}},"basic-image-filterable":{cellRenderer:"BasicImagesRenderer",cellRendererParams:{IMAGE_WIDTH:"25px",IMAGE_HEIGHT:"25px"}}},components:r(),onRowDoubleClicked:gw_onRowDoubleClicked,onRowSelected:gw_onRowSelected,onSelectionChanged:gw_onSelectionChanged,onCellEditingStarted:gw_onCellEditingsEvent,onCellEditingStopped:gw_onCellEditingsEvent,onCellValueChanged:gw_onCellEditingsEvent,onRowEditingStarted:gw_onRowEditingsEvent,onRowEditingStopped:gw_onRowEditingsEvent,onRowValueChanged:gw_onRowEditingsEvent,getNodeChildDetails:function(e){var t=e[gw_options.__getParentNodeId];return e.__node__children?{group:!0,expanded:!1,children:e.__node__children,key:t||-1}:null}});for(var a in gw_options.hasOwnProperty("__getRowNodeId")&&(i.getRowNodeId=function(e){var t=e[gw_options.__getRowNodeId];return t=t||Math.random()}),gw_options.hasOwnProperty("__navigateToNextCell")&&gw_options.__navigateToNextCell&&(i.navigateToNextCell=gw_navigateToNextRow),i.columnDefs)i.columnDefs[a].cellStyle=gw_cellStyler;return new agGrid.Grid(e,i)}}])); \ No newline at end of file diff --git a/js/dist/bbj-masks-bundle.min.js b/js/dist/bbj-masks-bundle.min.js deleted file mode 100644 index 5cda8fbe..00000000 --- a/js/dist/bbj-masks-bundle.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Masks=e():(t.BBj=t.BBj||{},t.BBj.Masks=e())}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.number=function(t,e){return(0,r.default)(e,t)},e.date=function(t,e){return(new i.default).maskDate(t,e)},Object.defineProperty(e,"DateMask",{enumerable:!0,get:function(){return i.default}});var r=s(n(1)),i=s(n(2));function s(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){var r,i,s;i=[],void 0===(s="function"==typeof(r=function(){return function(t,e){"use strict";if(!t||isNaN(+e))return e;var n,r,i,s,a,o,u,h,c,d,l=t.length,f=t.search(/[0-9\-\+#]/),y=f>0?t.substring(0,f):"",m=t.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),p=l-g,M=t.substring(p,p+1),v=p+("."===M||","===M?1:0),D=g>0?t.substring(v,l):"";if(n=(e="-"===(t=t.substring(f,v)).charAt(0)?-e:+e)<0?e=-e:0,i=(r=t.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",s=r&&r[1]&&r[0]||",",t=t.split(i),e=+(e=e.toFixed(t[1]&&t[1].length))+"",o=t[1]&&t[1].lastIndexOf("0"),(!(h=e.split("."))[1]||h[1]&&h[1].length<=o)&&(e=(+e).toFixed(o+1)),c=t[0].split(s),t[0]=c.join(""),(a=t[0]&&t[0].indexOf("0"))>-1)for(;h[0].length12?"PM":"AM",pp:t.hours24>12?"pm":"am",p:t.hours24>12?"pm":"am",Jz:1==String(t.dayOfYear).length?"0"+t.dayOfYear:t.dayOfYear,Js:t.dayOfYear,Jl:t.dayOfYear,Jd:t.dayOfYear,J:t.dayOfYear,Wz:1==String(t.dayOfWeek).length?"0"+t.dayOfWeek:t.dayOfWeek,Ws:t.dayOfWeek,Wl:t.dayOfWeek,Wp:String.fromCharCode(t.dayOfWeek),Wd:t.dayOfWeek,W:t.dayOfWeek}}},{key:"_getDayOfYear",value:function(t){var e=new Date(t),n=new Date(e.getFullYear(),0,0),r=e-n+60*(n.getTimezoneOffset()-e.getTimezoneOffset())*1e3;return Math.floor(r/864e5)}}])&&r(e.prototype,n),i&&r(e,i),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(4);var r=n(0);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})})},function(t,e){var n,i,s,a,o,u,h;Date.CultureInfo={name:"en-US",englishName:"English (United States)",nativeName:"English (United States)",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],firstLetterDayNames:["S","M","T","W","T","F","S"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:0,twoDigitYearMax:2029,dateElementOrder:"mdy",formatPatterns:{shortDate:"M/d/yyyy",longDate:"dddd, MMMM dd, yyyy",shortTime:"h:mm tt",longTime:"h:mm:ss tt",fullDateTime:"dddd, MMMM dd, yyyy h:mm:ss tt",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"MMMM dd",yearMonth:"MMMM, yyyy"},regexPatterns:{jan:/^jan(uary)?/i,feb:/^feb(ruary)?/i,mar:/^mar(ch)?/i,apr:/^apr(il)?/i,may:/^may/i,jun:/^jun(e)?/i,jul:/^jul(y)?/i,aug:/^aug(ust)?/i,sep:/^sep(t(ember)?)?/i,oct:/^oct(ober)?/i,nov:/^nov(ember)?/i,dec:/^dec(ember)?/i,sun:/^su(n(day)?)?/i,mon:/^mo(n(day)?)?/i,tue:/^tu(e(s(day)?)?)?/i,wed:/^we(d(nesday)?)?/i,thu:/^th(u(r(s(day)?)?)?)?/i,fri:/^fr(i(day)?)?/i,sat:/^sa(t(urday)?)?/i,future:/^next/i,past:/^last|past|prev(ious)?/i,add:/^(\+|aft(er)?|from|hence)/i,subtract:/^(\-|bef(ore)?|ago)/i,yesterday:/^yes(terday)?/i,today:/^t(od(ay)?)?/i,tomorrow:/^tom(orrow)?/i,now:/^n(ow)?/i,millisecond:/^ms|milli(second)?s?/i,second:/^sec(ond)?s?/i,minute:/^mn|min(ute)?s?/i,hour:/^h(our)?s?/i,week:/^w(eek)?s?/i,month:/^m(onth)?s?/i,day:/^d(ay)?s?/i,year:/^y(ear)?s?/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt|utc)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a(?!u|p)|p)/i},timezones:[{name:"UTC",offset:"-000"},{name:"GMT",offset:"-000"},{name:"EST",offset:"-0500"},{name:"EDT",offset:"-0400"},{name:"CST",offset:"-0600"},{name:"CDT",offset:"-0500"},{name:"MST",offset:"-0700"},{name:"MDT",offset:"-0600"},{name:"PST",offset:"-0800"},{name:"PDT",offset:"-0700"}]},a=Date,o=a.prototype,u=a.CultureInfo,h=function(t,e){return e||(e=2),("000"+t).slice(-1*e)},o.clearTime=function(){return this.setHours(0),this.setMinutes(0),this.setSeconds(0),this.setMilliseconds(0),this},o.setTimeToNow=function(){var t=new Date;return this.setHours(t.getHours()),this.setMinutes(t.getMinutes()),this.setSeconds(t.getSeconds()),this.setMilliseconds(t.getMilliseconds()),this},a.today=function(){return(new Date).clearTime()},a.compare=function(t,e){if(isNaN(t)||isNaN(e))throw new Error(t+" - "+e);if(t instanceof Date&&e instanceof Date)return te?1:0;throw new TypeError(t+" - "+e)},a.equals=function(t,e){return 0===t.compareTo(e)},a.getDayNumberFromName=function(t){for(var e=u.dayNames,n=u.abbreviatedDayNames,r=u.shortestDayNames,i=t.toLowerCase(),s=0;s=t.getTime()&&this.getTime()<=e.getTime()},o.isAfter=function(t){return 1===this.compareTo(t||new Date)},o.isBefore=function(t){return-1===this.compareTo(t||new Date)},o.isToday=function(){return this.isSameDay(new Date)},o.isSameDay=function(t){return this.clone().clearTime().equals(t.clone().clearTime())},o.addMilliseconds=function(t){return this.setMilliseconds(this.getMilliseconds()+t),this},o.addSeconds=function(t){return this.addMilliseconds(1e3*t)},o.addMinutes=function(t){return this.addMilliseconds(6e4*t)},o.addHours=function(t){return this.addMilliseconds(36e5*t)},o.addDays=function(t){return this.setDate(this.getDate()+t),this},o.addWeeks=function(t){return this.addDays(7*t)},o.addMonths=function(t){var e=this.getDate();return this.setDate(1),this.setMonth(this.getMonth()+t),this.setDate(Math.min(e,a.getDaysInMonth(this.getFullYear(),this.getMonth()))),this},o.addYears=function(t){return this.addMonths(12*t)},o.add=function(t){if("number"==typeof t)return this._orient=t,this;var e=t;return e.milliseconds&&this.addMilliseconds(e.milliseconds),e.seconds&&this.addSeconds(e.seconds),e.minutes&&this.addMinutes(e.minutes),e.hours&&this.addHours(e.hours),e.weeks&&this.addWeeks(e.weeks),e.months&&this.addMonths(e.months),e.years&&this.addYears(e.years),e.days&&this.addDays(e.days),this},o.getWeek=function(){var t,e,r,a,o,u,h;return n=n||this.getFullYear(),i=i||this.getMonth()+1,s=s||this.getDate(),i<=2?(h=(e=((t=n-1)/4|0)-(t/100|0)+(t/400|0))-(((t-1)/4|0)-((t-1)/100|0)+((t-1)/400|0)),r=0,a=s-1+31*(i-1)):(r=1+(h=(e=((t=n)/4|0)-(t/100|0)+(t/400|0))-(((t-1)/4|0)-((t-1)/100|0)+((t-1)/400|0))),a=s+(153*(i-3)+2)/5+58+h),n=i=s=null,(u=a+3-(a+(o=(t+e)%7)-r)%7|0)<0?53-((o-h)/5|0):u>364+h?1:1+(u/7|0)},o.getISOWeek=function(){return n=this.getUTCFullYear(),i=this.getUTCMonth()+1,s=this.getUTCDate(),h(this.getWeek())},o.setWeek=function(t){return this.moveToDayOfWeek(1).addWeeks(t-this.getWeek())},a._validate=function(t,e,n,r){if(void 0===t)return!1;if("number"!=typeof t)throw new TypeError(t+" is not a Number.");if(tn)throw new RangeError(t+" is not a valid value for "+r+".");return!0},a.validateMillisecond=function(t){return a._validate(t,0,999,"millisecond")},a.validateSecond=function(t){return a._validate(t,0,59,"second")},a.validateMinute=function(t){return a._validate(t,0,59,"minute")},a.validateHour=function(t){return a._validate(t,0,23,"hour")},a.validateDay=function(t,e,n){return a._validate(t,1,a.getDaysInMonth(e,n),"day")},a.validateMonth=function(t){return a._validate(t,0,11,"month")},a.validateYear=function(t){return a._validate(t,0,9999,"year")},o.set=function(t){return a.validateMillisecond(t.millisecond)&&this.addMilliseconds(t.millisecond-this.getMilliseconds()),a.validateSecond(t.second)&&this.addSeconds(t.second-this.getSeconds()),a.validateMinute(t.minute)&&this.addMinutes(t.minute-this.getMinutes()),a.validateHour(t.hour)&&this.addHours(t.hour-this.getHours()),a.validateMonth(t.month)&&this.addMonths(t.month-this.getMonth()),a.validateYear(t.year)&&this.addYears(t.year-this.getFullYear()),a.validateDay(t.day,this.getFullYear(),this.getMonth())&&this.addDays(t.day-this.getDate()),t.timezone&&this.setTimezone(t.timezone),t.timezoneOffset&&this.setTimezoneOffset(t.timezoneOffset),t.week&&a._validate(t.week,0,53,"week")&&this.setWeek(t.week),this},o.moveToFirstDayOfMonth=function(){return this.set({day:1})},o.moveToLastDayOfMonth=function(){return this.set({day:a.getDaysInMonth(this.getFullYear(),this.getMonth())})},o.moveToNthOccurrence=function(t,e){var n=0;if(e>0)n=e-1;else if(-1===e)return this.moveToLastDayOfMonth(),this.getDay()!==t&&this.moveToDayOfWeek(t,-1),this;return this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(t,1).addWeeks(n)},o.moveToDayOfWeek=function(t,e){var n=(t-this.getDay()+7*(e||1))%7;return this.addDays(0===n?n+=7*(e||1):n)},o.moveToMonth=function(t,e){var n=(t-this.getMonth()+12*(e||1))%12;return this.addMonths(0===n?n+=12*(e||1):n)},o.getOrdinalNumber=function(){return Math.ceil((this.clone().clearTime()-new Date(this.getFullYear(),0,1))/864e5)+1},o.getTimezone=function(){return a.getTimezoneAbbreviation(this.getUTCOffset())},o.setTimezoneOffset=function(t){var e=this.getTimezoneOffset(),n=-6*Number(t)/10;return this.addMinutes(n-e)},o.setTimezone=function(t){return this.setTimezoneOffset(a.getTimezoneOffset(t))},o.hasDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!==Date.today().set({month:6,day:1}).getTimezoneOffset()},o.isDaylightSavingTime=function(){return this.hasDaylightSavingTime()&&(new Date).getTimezoneOffset()===Date.today().set({month:6,day:1}).getTimezoneOffset()},o.getUTCOffset=function(){var t,e=-10*this.getTimezoneOffset()/6;return e<0?(t=(e-1e4).toString()).charAt(0)+t.substr(2):"+"+(t=(e+1e4).toString()).substr(1)},o.getElapsed=function(t){return(t||new Date)-this},o.toISOString||(o.toISOString=function(){function t(t){return t<10?"0"+t:t}return'"'+this.getUTCFullYear()+"-"+t(this.getUTCMonth()+1)+"-"+t(this.getUTCDate())+"T"+t(this.getUTCHours())+":"+t(this.getUTCMinutes())+":"+t(this.getUTCSeconds())+'Z"'}),o._toString=o.toString,o.toString=function(t){var e=this;if(t&&1==t.length){var n=u.formatPatterns;switch(e.t=e.toString,t){case"d":return e.t(n.shortDate);case"D":return e.t(n.longDate);case"F":return e.t(n.fullDateTime);case"m":return e.t(n.monthDay);case"r":return e.t(n.rfc1123);case"s":return e.t(n.sortableDateTime);case"t":return e.t(n.shortTime);case"T":return e.t(n.longTime);case"u":return e.t(n.universalSortableDateTime);case"y":return e.t(n.yearMonth)}}return t?t.replace(/(\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S)/g,function(t){if("\\"===t.charAt(0))return t.replace("\\","");switch(e.h=e.getHours,t){case"hh":return h(e.h()<13?0===e.h()?12:e.h():e.h()-12);case"h":return e.h()<13?0===e.h()?12:e.h():e.h()-12;case"HH":return h(e.h());case"H":return e.h();case"mm":return h(e.getMinutes());case"m":return e.getMinutes();case"ss":return h(e.getSeconds());case"s":return e.getSeconds();case"yyyy":return h(e.getFullYear(),4);case"yy":return h(e.getFullYear());case"dddd":return u.dayNames[e.getDay()];case"ddd":return u.abbreviatedDayNames[e.getDay()];case"dd":return h(e.getDate());case"d":return e.getDate();case"MMMM":return u.monthNames[e.getMonth()];case"MMM":return u.abbreviatedMonthNames[e.getMonth()];case"MM":return h(e.getMonth()+1);case"M":return e.getMonth()+1;case"t":return e.h()<12?u.amDesignator.substring(0,1):u.pmDesignator.substring(0,1);case"tt":return e.h()<12?u.amDesignator:u.pmDesignator;case"S":return function(t){switch(1*t){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}}(e.getDate());default:return t}}):this._toString()},function(){var t=Date,e=t.prototype,n=t.CultureInfo,r=Number.prototype;e._orient=1,e._nth=null,e._is=!1,e._same=!1,e._isSecond=!1,r._dateElement="day",e.next=function(){return this._orient=1,this},t.next=function(){return t.today().next()},e.last=e.prev=e.previous=function(){return this._orient=-1,this},t.last=t.prev=t.previous=function(){return t.today().last()},e.is=function(){return this._is=!0,this},e.same=function(){return this._same=!0,this._isSecond=!1,this},e.today=function(){return this.same().day()},e.weekday=function(){return!!this._is&&(this._is=!1,!this.is().sat()&&!this.is().sun())},e.at=function(e){return"string"==typeof e?t.parse(this.toString("d")+" "+e):this.set(e)},r.fromNow=r.after=function(t){var e={};return e[this._dateElement]=this,(t?t.clone():new Date).add(e)},r.ago=r.before=function(t){var e={};return e[this._dateElement]=-1*this,(t?t.clone():new Date).add(e)};var i,s="sunday monday tuesday wednesday thursday friday saturday".split(/\s/),a="january february march april may june july august september october november december".split(/\s/),o="Millisecond Second Minute Hour Day Week Month Year".split(/\s/),u="Milliseconds Seconds Minutes Hours Date Week Month FullYear".split(/\s/),h="final first second third fourth fifth".split(/\s/);e.toObject=function(){for(var t={},e=0;er)throw new RangeError(t.getDayName(e)+" does not occur "+n+" times in the month of "+t.getMonthName(r.getMonth())+" "+r.getFullYear()+".");return this}return this.moveToDayOfWeek(e,this._orient)}},d=function(e){return function(){var r=t.today(),i=e-r.getDay();return 0===e&&1===n.firstDayOfWeek&&0!==r.getDay()&&(i+=7),r.addDays(i)}},l=0;l-1;s--){if(e[r=o[s].toLowerCase()]!=n[r])return!1;if(i==r)break}return!0}return"s"!=t.substring(t.length-1)&&(t+="s"),this["add"+t](this._orient)}},p=function(t){return function(){return this._dateElement=t,this}},M=0;M0&&!d)try{u=r.call(this,a[1])}catch(t){d=!0}else d=!0;if(d||0!==u[1].length||(d=!0),!d){for(var f=[],y=0;y0&&(h[0]=h[0].concat(o[0]),h[1]=o[1])}if(h[1].length1?e=Array.prototype.slice.call(arguments):arguments[0]instanceof Array&&(e=arguments[0]),!e)return t.apply(null,arguments);for(var r=0,i=e.shift();r2?n:n+(n+2e3t.getDaysInMonth(this.year,this.month))throw new RangeError(this.day+" is not a valid value for days.");var i=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);return this.timezone?i.set({timezone:this.timezone}):this.timezoneOffset&&i.set({timezoneOffset:this.timezoneOffset}),i},finish:function(e){if(0===(e=e instanceof Array?n(e):[e]).length)return null;for(var r=0;r