vue-spear-tip 0.1.21 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +37 -13
- package/dist/Button-CnxLmWuM.cjs +1 -0
- package/dist/{Button-B5JC_Z3M.js → Button-jDTW2utE.js} +6 -6
- package/dist/CodeHighlight-Byhxopeg.cjs +12 -0
- package/dist/CodeHighlight-cRYe58WO.js +44042 -0
- package/dist/DateField-DFWnFHty.cjs +18 -0
- package/dist/DateField-DeypzFPh.js +1779 -0
- package/dist/Interfaces/IGlobalComponent.d.ts +7 -0
- package/dist/{SelectField-CqIgEXt0.cjs → SelectField-CA-d5mIM.cjs} +1 -1
- package/dist/{SelectField-C-W06YsI.js → SelectField-O0_v8Hhl.js} +1 -1
- package/dist/StringField-Dyt_6I3b.cjs +1 -0
- package/dist/StringField-GNYdeEY4.js +59 -0
- package/dist/components/CodeHighlight/index.d.ts +2 -0
- package/dist/components/Documentation/Guides/guides.routes.d.ts +10 -0
- package/dist/components/Documentation/Kit/kit.routes.d.ts +10 -0
- package/dist/components/Documentation/router.d.ts +19 -0
- package/dist/components/Fields/DateField/index.d.ts +2 -0
- package/dist/components/LazyComponents.d.ts +3 -1
- package/dist/core/DT.d.ts +9 -0
- package/dist/core/EventManager.d.ts +24 -0
- package/dist/grid-style.css +1 -1
- package/dist/index-6ckmdr4W.cjs +1 -0
- package/dist/index-DqCea3It.js +4564 -0
- package/dist/index.d.ts +2 -1
- package/dist/kit/fields/index.d.ts +2 -1
- package/dist/replaceable/BaseComponent.vue +2 -5
- package/dist/vue-spear-tip.cjs.js +1 -1
- package/dist/vue-spear-tip.css +1 -1
- package/dist/vue-spear-tip.es.js +13 -11
- package/docs/index.html +2 -2
- package/docs/static/Button-BYNjxbzy.css +1 -0
- package/docs/static/Button-Cj0SWlj9.js +1 -0
- package/docs/static/CodeHighlight-BcUKYHid.js +12 -0
- package/docs/static/CodeHighlight-CGrGqjhz.css +1 -0
- package/docs/static/DateField-BdXIy9u5.js +18 -0
- package/docs/static/DateField-C4W5EEHZ.css +1 -0
- package/docs/static/{FieldComponent.vue_vue_type_script_lang-BwrX41LK.js → FieldComponent.vue_vue_type_script_lang-C74Z2qOx.js} +1 -1
- package/docs/static/{SelectField-C32fQ45_.css → SelectField-CM692gdJ.css} +1 -1
- package/docs/static/{SelectField-BEvxlKuY.js → SelectField-DyuIqNre.js} +4 -4
- package/docs/static/StringField-B__pgc9Z.css +1 -0
- package/docs/static/StringField-BapMRab1.js +1 -0
- package/docs/static/index-BYmsfhJF.js +2 -0
- package/docs/static/index-BZRwTK7V.js +2 -0
- package/docs/static/index-BlpLaTnO.js +2 -0
- package/docs/static/index-C-tYF7fp.js +2 -0
- package/docs/static/index-j64A2orD.js +2 -0
- package/docs/static/main-DHQAnZD9.js +98 -0
- package/docs/static/main-TZcMwf9S.css +1 -0
- package/package.json +10 -6
- package/dist/Button-BM4dbkA-.cjs +0 -1
- package/dist/StringField-CxzFR0Xg.cjs +0 -1
- package/dist/StringField-hh1z2GxL.js +0 -55
- package/dist/index-BlANuvIl.js +0 -843
- package/dist/index-COcPXtwa.cjs +0 -1
- package/docs/static/Button-CW0489RR.js +0 -1
- package/docs/static/Button-CtZSeU7e.css +0 -1
- package/docs/static/StringField-BHmLwqhr.js +0 -1
- package/docs/static/StringField-T9r0UtfP.css +0 -1
- package/docs/static/Watch-nc5lWXLk.js +0 -1
- package/docs/static/index-DEzBQmYG.js +0 -2
- package/docs/static/index-DRymGyyQ.js +0 -2
- package/docs/static/index-urSlQnTJ.js +0 -2
- package/docs/static/main-brDyF8bF.css +0 -1
- package/docs/static/main-d7PKjD0_.js +0 -22
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";var Nn=Object.defineProperty;var i=(a,o)=>Nn(a,"name",{value:o,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const fe=require("./index-6ckmdr4W.cjs"),j=require("vue"),Yn=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");function Hn(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}i(Hn,"getDefaultExportFromCjs");var oe={exports:{}},jn=oe.exports,Ge;function Ln(){return Ge||(Ge=1,(function(a,o){(function(e,d){d(o)})(jn,(function(e){var d=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},m={weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},firstDayOfWeek:1,ordinal:i(function(){return""},"ordinal"),rangeSeparator:" — ",weekAbbreviation:"Нед.",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};d.l10ns.ru=m;var g=d.l10ns;e.Russian=m,e.default=g,Object.defineProperty(e,"__esModule",{value:!0})}))})(oe,oe.exports)),oe.exports}i(Ln,"requireRu");var Rn=Ln(),Fe=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],X={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:i(function(a){return typeof console<"u"&&console.warn(a)},"errorHandler"),getWeek:i(function(a){var o=new Date(a.getTime());o.setHours(0,0,0,0),o.setDate(o.getDate()+3-(o.getDay()+6)%7);var e=new Date(o.getFullYear(),0,4);return 1+Math.round(((o.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},"getWeek"),hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},ue={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:i(function(a){var o=a%100;if(o>3&&o<21)return"th";switch(o%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},"ordinal"),rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},F=i(function(a,o){return o===void 0&&(o=2),("000"+a).slice(o*-1)},"pad"),L=i(function(a){return a===!0?1:0},"int");function Ze(a,o){var e;return function(){var d=this,m=arguments;clearTimeout(e),e=setTimeout(function(){return a.apply(d,m)},o)}}i(Ze,"debounce");var Pe=i(function(a){return a instanceof Array?a:[a]},"arrayify");function I(a,o,e){if(e===!0)return a.classList.add(o);a.classList.remove(o)}i(I,"toggleClass");function y(a,o,e){var d=window.document.createElement(a);return o=o||"",e=e||"",d.className=o,e!==void 0&&(d.textContent=e),d}i(y,"createElement");function ve(a){for(;a.firstChild;)a.removeChild(a.firstChild)}i(ve,"clearNode");function en(a,o){if(o(a))return a;if(a.parentNode)return en(a.parentNode,o)}i(en,"findParent");function De(a,o){var e=y("div","numInputWrapper"),d=y("input","numInput "+a),m=y("span","arrowUp"),g=y("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?d.type="number":(d.type="text",d.pattern="\\d*"),o!==void 0)for(var w in o)d.setAttribute(w,o[w]);return e.appendChild(d),e.appendChild(m),e.appendChild(g),e}i(De,"createNumberInput");function A(a){try{if(typeof a.composedPath=="function"){var o=a.composedPath();return o[0]}return a.target}catch{return a.target}}i(A,"getEventTarget");var Ae=i(function(){},"doNothing"),be=i(function(a,o,e){return e.months[o?"shorthand":"longhand"][a]},"monthToStr"),Wn={D:Ae,F:i(function(a,o,e){a.setMonth(e.months.longhand.indexOf(o))},"F"),G:i(function(a,o){a.setHours((a.getHours()>=12?12:0)+parseFloat(o))},"G"),H:i(function(a,o){a.setHours(parseFloat(o))},"H"),J:i(function(a,o){a.setDate(parseFloat(o))},"J"),K:i(function(a,o,e){a.setHours(a.getHours()%12+12*L(new RegExp(e.amPM[1],"i").test(o)))},"K"),M:i(function(a,o,e){a.setMonth(e.months.shorthand.indexOf(o))},"M"),S:i(function(a,o){a.setSeconds(parseFloat(o))},"S"),U:i(function(a,o){return new Date(parseFloat(o)*1e3)},"U"),W:i(function(a,o,e){var d=parseInt(o),m=new Date(a.getFullYear(),0,2+(d-1)*7,0,0,0,0);return m.setDate(m.getDate()-m.getDay()+e.firstDayOfWeek),m},"W"),Y:i(function(a,o){a.setFullYear(parseFloat(o))},"Y"),Z:i(function(a,o){return new Date(o)},"Z"),d:i(function(a,o){a.setDate(parseFloat(o))},"d"),h:i(function(a,o){a.setHours((a.getHours()>=12?12:0)+parseFloat(o))},"h"),i:i(function(a,o){a.setMinutes(parseFloat(o))},"i"),j:i(function(a,o){a.setDate(parseFloat(o))},"j"),l:Ae,m:i(function(a,o){a.setMonth(parseFloat(o)-1)},"m"),n:i(function(a,o){a.setMonth(parseFloat(o)-1)},"n"),s:i(function(a,o){a.setSeconds(parseFloat(o))},"s"),u:i(function(a,o){return new Date(parseFloat(o))},"u"),w:Ae,y:i(function(a,o){a.setFullYear(2e3+parseFloat(o))},"y")},J={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},le={Z:i(function(a){return a.toISOString()},"Z"),D:i(function(a,o,e){return o.weekdays.shorthand[le.w(a,o,e)]},"D"),F:i(function(a,o,e){return be(le.n(a,o,e)-1,!1,o)},"F"),G:i(function(a,o,e){return F(le.h(a,o,e))},"G"),H:i(function(a){return F(a.getHours())},"H"),J:i(function(a,o){return o.ordinal!==void 0?a.getDate()+o.ordinal(a.getDate()):a.getDate()},"J"),K:i(function(a,o){return o.amPM[L(a.getHours()>11)]},"K"),M:i(function(a,o){return be(a.getMonth(),!0,o)},"M"),S:i(function(a){return F(a.getSeconds())},"S"),U:i(function(a){return a.getTime()/1e3},"U"),W:i(function(a,o,e){return e.getWeek(a)},"W"),Y:i(function(a){return F(a.getFullYear(),4)},"Y"),d:i(function(a){return F(a.getDate())},"d"),h:i(function(a){return a.getHours()%12?a.getHours()%12:12},"h"),i:i(function(a){return F(a.getMinutes())},"i"),j:i(function(a){return a.getDate()},"j"),l:i(function(a,o){return o.weekdays.longhand[a.getDay()]},"l"),m:i(function(a){return F(a.getMonth()+1)},"m"),n:i(function(a){return a.getMonth()+1},"n"),s:i(function(a){return a.getSeconds()},"s"),u:i(function(a){return a.getTime()},"u"),w:i(function(a){return a.getDay()},"w"),y:i(function(a){return String(a.getFullYear()).substring(2)},"y")},nn=i(function(a){var o=a.config,e=o===void 0?X:o,d=a.l10n,m=d===void 0?ue:d,g=a.isMobile,w=g===void 0?!1:g;return function(C,M,Y){var h=Y||m;return e.formatDate!==void 0&&!w?e.formatDate(C,M,h):M.split("").map(function(T,_,H){return le[T]&&H[_-1]!=="\\"?le[T](C,h,e):T!=="\\"?T:""}).join("")}},"createDateFormatter"),He=i(function(a){var o=a.config,e=o===void 0?X:o,d=a.l10n,m=d===void 0?ue:d;return function(g,w,C,M){if(!(g!==0&&!g)){var Y=M||m,h,T=g;if(g instanceof Date)h=new Date(g.getTime());else if(typeof g!="string"&&g.toFixed!==void 0)h=new Date(g);else if(typeof g=="string"){var _=w||(e||X).dateFormat,H=String(g).trim();if(H==="today")h=new Date,C=!0;else if(e&&e.parseDate)h=e.parseDate(g,_);else if(/Z$/.test(H)||/GMT$/.test(H))h=new Date(g);else{for(var O=void 0,b=[],W=0,ye=0,$="";W<_.length;W++){var K=_[W],U=K==="\\",Ce=_[W-1]==="\\"||U;if(J[K]&&!Ce){$+=J[K];var V=new RegExp($).exec(g);V&&(O=!0)&&b[K!=="Y"?"push":"unshift"]({fn:Wn[K],val:V[++ye]})}else U||($+=".")}h=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),b.forEach(function(z){var G=z.fn,xe=z.val;return h=G(h,xe,Y)||h}),h=O?h:void 0}}if(!(h instanceof Date&&!isNaN(h.getTime()))){e.errorHandler(new Error("Invalid date provided: "+T));return}return C===!0&&h.setHours(0,0,0,0),h}}},"createDateParser");function N(a,o,e){return e===void 0&&(e=!0),e!==!1?new Date(a.getTime()).setHours(0,0,0,0)-new Date(o.getTime()).setHours(0,0,0,0):a.getTime()-o.getTime()}i(N,"compareDates");var Bn=i(function(a,o,e){return a>Math.min(o,e)&&a<Math.max(o,e)},"isBetween"),Ne=i(function(a,o,e){return a*3600+o*60+e},"calculateSecondsSinceMidnight"),$n=i(function(a){var o=Math.floor(a/3600),e=(a-o*3600)/60;return[o,e,a-o*3600-e*60]},"parseSeconds"),Kn={DAY:864e5};function Ye(a){var o=a.defaultHour,e=a.defaultMinute,d=a.defaultSeconds;if(a.minDate!==void 0){var m=a.minDate.getHours(),g=a.minDate.getMinutes(),w=a.minDate.getSeconds();o<m&&(o=m),o===m&&e<g&&(e=g),o===m&&e===g&&d<w&&(d=a.minDate.getSeconds())}if(a.maxDate!==void 0){var C=a.maxDate.getHours(),M=a.maxDate.getMinutes();o=Math.min(o,C),o===C&&(e=Math.min(M,e)),o===C&&e===M&&(d=a.maxDate.getSeconds())}return{hours:o,minutes:e,seconds:d}}i(Ye,"getDefaultHours");typeof Object.assign!="function"&&(Object.assign=function(a){for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];if(!a)throw TypeError("Cannot convert undefined or null to object");for(var d=i(function(C){C&&Object.keys(C).forEach(function(M){return a[M]=C[M]})},"_loop_1"),m=0,g=o;m<g.length;m++){var w=g[m];d(w)}return a});var S=function(){return S=Object.assign||function(a){for(var o,e=1,d=arguments.length;e<d;e++){o=arguments[e];for(var m in o)Object.prototype.hasOwnProperty.call(o,m)&&(a[m]=o[m])}return a},S.apply(this,arguments)},Qe=function(){for(var a=0,o=0,e=arguments.length;o<e;o++)a+=arguments[o].length;for(var d=Array(a),m=0,o=0;o<e;o++)for(var g=arguments[o],w=0,C=g.length;w<C;w++,m++)d[m]=g[w];return d},Vn=300;function qn(a,o){var e={config:S(S({},X),k.defaultConfig),l10n:ue};e.parseDate=He({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=b,e._setHoursFromDate=_,e._positionCalendar=ge,e.changeMonth=Ee,e.changeYear=ce,e.clear=un,e.close=fn,e.onMouseOver=me,e._createElement=y,e.createDay=V,e.destroy=sn,e.isEnabled=q,e.jumpToDate=$,e.updateValue=B,e.open=mn,e.redraw=Ve,e.set=vn,e.setDate=Dn,e.toggle=yn;function d(){e.utils={getDaysInMonth:i(function(n,t){return n===void 0&&(n=e.currentMonth),t===void 0&&(t=e.currentYear),n===1&&(t%4===0&&t%100!==0||t%400===0)?29:e.l10n.daysInMonth[n]},"getDaysInMonth")}}i(d,"setupHelperFunctions");function m(){e.element=e.input=a,e.isOpen=!1,gn(),Ke(),bn(),wn(),d(),e.isMobile||Ce(),ye(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&_(e.config.noCalendar?e.latestSelectedDateObj:void 0),B(!1)),C();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&n&&ge(),E("onReady")}i(m,"init");function g(){var n;return((n=e.calendarContainer)===null||n===void 0?void 0:n.getRootNode()).activeElement||document.activeElement}i(g,"getClosestActiveElement");function w(n){return n.bind(e)}i(w,"bindToInstance");function C(){var n=e.config;n.weekNumbers===!1&&n.showMonths===1||n.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){var t=(e.days.offsetWidth+1)*n.showMonths;e.daysContainer.style.width=t+"px",e.calendarContainer.style.width=t+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}i(C,"setCalendarWidth");function M(n){if(e.selectedDates.length===0){var t=e.config.minDate===void 0||N(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),r=Ye(e.config);t.setHours(r.hours,r.minutes,r.seconds,t.getMilliseconds()),e.selectedDates=[t],e.latestSelectedDateObj=t}n!==void 0&&n.type!=="blur"&&En(n);var l=e._input.value;T(),B(),e._input.value!==l&&e._debouncedChange()}i(M,"updateTime");function Y(n,t){return n%12+12*L(t===e.l10n.amPM[1])}i(Y,"ampm2military");function h(n){switch(n%24){case 0:case 12:return 12;default:return n%12}}i(h,"military2ampm");function T(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var n=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(e.minuteElement.value,10)||0)%60,r=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(n=Y(n,e.amPM.textContent));var l=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&N(e.latestSelectedDateObj,e.config.minDate,!0)===0,u=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&N(e.latestSelectedDateObj,e.config.maxDate,!0)===0;if(e.config.maxTime!==void 0&&e.config.minTime!==void 0&&e.config.minTime>e.config.maxTime){var f=Ne(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),v=Ne(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),c=Ne(n,t,r);if(c>v&&c<f){var D=$n(f);n=D[0],t=D[1],r=D[2]}}else{if(u){var s=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;n=Math.min(n,s.getHours()),n===s.getHours()&&(t=Math.min(t,s.getMinutes())),t===s.getMinutes()&&(r=Math.min(r,s.getSeconds()))}if(l){var p=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;n=Math.max(n,p.getHours()),n===p.getHours()&&t<p.getMinutes()&&(t=p.getMinutes()),t===p.getMinutes()&&(r=Math.max(r,p.getSeconds()))}}H(n,t,r)}}i(T,"setHoursFromInputs");function _(n){var t=n||e.latestSelectedDateObj;t&&t instanceof Date&&H(t.getHours(),t.getMinutes(),t.getSeconds())}i(_,"setHoursFromDate");function H(n,t,r){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(n%24,t,r||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=F(e.config.time_24hr?n:(12+n)%12+12*L(n%12===0)),e.minuteElement.value=F(t),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[L(n>=12)]),e.secondElement!==void 0&&(e.secondElement.value=F(r)))}i(H,"setHours");function O(n){var t=A(n),r=parseInt(t.value)+(n.delta||0);(r/1e3>1||n.key==="Enter"&&!/[^\d]/.test(r.toString()))&&ce(r)}i(O,"onYearInput");function b(n,t,r,l){if(t instanceof Array)return t.forEach(function(u){return b(n,u,r,l)});if(n instanceof Array)return n.forEach(function(u){return b(u,t,r,l)});n.addEventListener(t,r,l),e._handlers.push({remove:i(function(){return n.removeEventListener(t,r,l)},"remove")})}i(b,"bind");function W(){E("onChange")}i(W,"triggerChange");function ye(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(r){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+r+"]"),function(l){return b(l,"click",e[r])})}),e.isMobile){Mn();return}var n=Ze(dn,50);if(e._debouncedChange=Ze(W,Vn),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&b(e.daysContainer,"mouseover",function(r){e.config.mode==="range"&&me(A(r))}),b(e._input,"keydown",We),e.calendarContainer!==void 0&&b(e.calendarContainer,"keydown",We),!e.config.inline&&!e.config.static&&b(window,"resize",n),window.ontouchstart!==void 0?b(window.document,"touchstart",ke):b(window.document,"mousedown",ke),b(window.document,"focus",ke,{capture:!0}),e.config.clickOpens===!0&&(b(e._input,"focus",e.open),b(e._input,"click",e.open)),e.daysContainer!==void 0&&(b(e.monthNav,"click",xn),b(e.monthNav,["keyup","increment"],O),b(e.daysContainer,"click",qe)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var t=i(function(r){return A(r).select()},"selText");b(e.timeContainer,["increment"],M),b(e.timeContainer,"blur",M,{capture:!0}),b(e.timeContainer,"click",K),b([e.hourElement,e.minuteElement],["focus","click"],t),e.secondElement!==void 0&&b(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&b(e.amPM,"click",function(r){M(r)})}e.config.allowInput&&b(e._input,"blur",cn)}i(ye,"bindEvents");function $(n,t){var r=n!==void 0?e.parseDate(n):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),l=e.currentYear,u=e.currentMonth;try{r!==void 0&&(e.currentYear=r.getFullYear(),e.currentMonth=r.getMonth())}catch(f){f.message="Invalid date supplied: "+r,e.config.errorHandler(f)}t&&e.currentYear!==l&&(E("onYearChange"),Z()),t&&(e.currentYear!==l||e.currentMonth!==u)&&E("onMonthChange"),e.redraw()}i($,"jumpToDate");function K(n){var t=A(n);~t.className.indexOf("arrow")&&U(n,t.classList.contains("arrowUp")?1:-1)}i(K,"timeIncrement");function U(n,t,r){var l=n&&A(n),u=r||l&&l.parentNode&&l.parentNode.firstChild,f=Se("increment");f.delta=t,u&&u.dispatchEvent(f)}i(U,"incrementNumInput");function Ce(){var n=window.document.createDocumentFragment();if(e.calendarContainer=y("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(n.appendChild(rn()),e.innerContainer=y("div","flatpickr-innerContainer"),e.config.weekNumbers){var t=ln(),r=t.weekWrapper,l=t.weekNumbers;e.innerContainer.appendChild(r),e.weekNumbers=l,e.weekWrapper=r}e.rContainer=y("div","flatpickr-rContainer"),e.rContainer.appendChild(Le()),e.daysContainer||(e.daysContainer=y("div","flatpickr-days"),e.daysContainer.tabIndex=-1),se(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),n.appendChild(e.innerContainer)}e.config.enableTime&&n.appendChild(on()),I(e.calendarContainer,"rangeMode",e.config.mode==="range"),I(e.calendarContainer,"animate",e.config.animate===!0),I(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(n);var u=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!u&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){var f=y("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(f,e.element),f.appendChild(e.element),e.altInput&&f.appendChild(e.altInput),f.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}i(Ce,"build");function V(n,t,r,l){var u=q(t,!0),f=y("span",n,t.getDate().toString());return f.dateObj=t,f.$i=l,f.setAttribute("aria-label",e.formatDate(t,e.config.ariaDateFormat)),n.indexOf("hidden")===-1&&N(t,e.now)===0&&(e.todayDateElem=f,f.classList.add("today"),f.setAttribute("aria-current","date")),u?(f.tabIndex=-1,Ie(t)&&(f.classList.add("selected"),e.selectedDateElem=f,e.config.mode==="range"&&(I(f,"startRange",e.selectedDates[0]&&N(t,e.selectedDates[0],!0)===0),I(f,"endRange",e.selectedDates[1]&&N(t,e.selectedDates[1],!0)===0),n==="nextMonthDay"&&f.classList.add("inRange")))):f.classList.add("flatpickr-disabled"),e.config.mode==="range"&&Cn(t)&&!Ie(t)&&f.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&n!=="prevMonthDay"&&l%7===6&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(t)+"</span>"),E("onDayCreate",f),f}i(V,"createDay");function z(n){n.focus(),e.config.mode==="range"&&me(n)}i(z,"focusOnDayElem");function G(n){for(var t=n>0?0:e.config.showMonths-1,r=n>0?e.config.showMonths:-1,l=t;l!=r;l+=n)for(var u=e.daysContainer.children[l],f=n>0?0:u.children.length-1,v=n>0?u.children.length:-1,c=f;c!=v;c+=n){var D=u.children[c];if(D.className.indexOf("hidden")===-1&&q(D.dateObj))return D}}i(G,"getFirstAvailableDay");function xe(n,t){for(var r=n.className.indexOf("Month")===-1?n.dateObj.getMonth():e.currentMonth,l=t>0?e.config.showMonths:-1,u=t>0?1:-1,f=r-e.currentMonth;f!=l;f+=u)for(var v=e.daysContainer.children[f],c=r-e.currentMonth===f?n.$i+t:t<0?v.children.length-1:0,D=v.children.length,s=c;s>=0&&s<D&&s!=(t>0?D:-1);s+=u){var p=v.children[s];if(p.className.indexOf("hidden")===-1&&q(p.dateObj)&&Math.abs(n.$i-s)>=Math.abs(t))return z(p)}e.changeMonth(u),ae(G(u),0)}i(xe,"getNextAvailableDay");function ae(n,t){var r=g(),l=de(r||document.body),u=n!==void 0?n:l?r:e.selectedDateElem!==void 0&&de(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&de(e.todayDateElem)?e.todayDateElem:G(t>0?1:-1);u===void 0?e._input.focus():l?xe(u,t):z(u)}i(ae,"focusOnDay");function tn(n,t){for(var r=(new Date(n,t,1).getDay()-e.l10n.firstDayOfWeek+7)%7,l=e.utils.getDaysInMonth((t-1+12)%12,n),u=e.utils.getDaysInMonth(t,n),f=window.document.createDocumentFragment(),v=e.config.showMonths>1,c=v?"prevMonthDay hidden":"prevMonthDay",D=v?"nextMonthDay hidden":"nextMonthDay",s=l+1-r,p=0;s<=l;s++,p++)f.appendChild(V("flatpickr-day "+c,new Date(n,t-1,s),s,p));for(s=1;s<=u;s++,p++)f.appendChild(V("flatpickr-day",new Date(n,t,s),s,p));for(var x=u+1;x<=42-r&&(e.config.showMonths===1||p%7!==0);x++,p++)f.appendChild(V("flatpickr-day "+D,new Date(n,t+1,x%u),x,p));var R=y("div","dayContainer");return R.appendChild(f),R}i(tn,"buildMonthDays");function se(){if(e.daysContainer!==void 0){ve(e.daysContainer),e.weekNumbers&&ve(e.weekNumbers);for(var n=document.createDocumentFragment(),t=0;t<e.config.showMonths;t++){var r=new Date(e.currentYear,e.currentMonth,1);r.setMonth(e.currentMonth+t),n.appendChild(tn(r.getFullYear(),r.getMonth()))}e.daysContainer.appendChild(n),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&me()}}i(se,"buildDays");function Z(){if(!(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")){var n=i(function(l){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&l<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&l>e.config.maxDate.getMonth())},"shouldBuildMonth");e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(n(t)){var r=y("option","flatpickr-monthDropdown-month");r.value=new Date(e.currentYear,t).getMonth().toString(),r.textContent=be(t,e.config.shorthandCurrentMonth,e.l10n),r.tabIndex=-1,e.currentMonth===t&&(r.selected=!0),e.monthsDropdownContainer.appendChild(r)}}}i(Z,"buildMonthSwitch");function an(){var n=y("div","flatpickr-month"),t=window.document.createDocumentFragment(),r;e.config.showMonths>1||e.config.monthSelectorType==="static"?r=y("span","cur-month"):(e.monthsDropdownContainer=y("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),b(e.monthsDropdownContainer,"change",function(v){var c=A(v),D=parseInt(c.value,10);e.changeMonth(D-e.currentMonth),E("onMonthChange")}),Z(),r=e.monthsDropdownContainer);var l=De("cur-year",{tabindex:"-1"}),u=l.getElementsByTagName("input")[0];u.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&u.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(u.setAttribute("max",e.config.maxDate.getFullYear().toString()),u.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());var f=y("div","flatpickr-current-month");return f.appendChild(r),f.appendChild(l),t.appendChild(f),n.appendChild(t),{container:n,yearElement:u,monthElement:r}}i(an,"buildMonth");function je(){ve(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var n=e.config.showMonths;n--;){var t=an();e.yearElements.push(t.yearElement),e.monthElements.push(t.monthElement),e.monthNav.appendChild(t.container)}e.monthNav.appendChild(e.nextMonthNav)}i(je,"buildMonths");function rn(){return e.monthNav=y("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=y("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=y("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,je(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:i(function(){return e.__hidePrevMonthArrow},"get"),set:i(function(n){e.__hidePrevMonthArrow!==n&&(I(e.prevMonthNav,"flatpickr-disabled",n),e.__hidePrevMonthArrow=n)},"set")}),Object.defineProperty(e,"_hideNextMonthArrow",{get:i(function(){return e.__hideNextMonthArrow},"get"),set:i(function(n){e.__hideNextMonthArrow!==n&&(I(e.nextMonthNav,"flatpickr-disabled",n),e.__hideNextMonthArrow=n)},"set")}),e.currentYearElement=e.yearElements[0],he(),e.monthNav}i(rn,"buildMonthNav");function on(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var n=Ye(e.config);e.timeContainer=y("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var t=y("span","flatpickr-time-separator",":"),r=De("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=r.getElementsByTagName("input")[0];var l=De("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=l.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=F(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?n.hours:h(n.hours)),e.minuteElement.value=F(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():n.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(r),e.timeContainer.appendChild(t),e.timeContainer.appendChild(l),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");var u=De("flatpickr-second");e.secondElement=u.getElementsByTagName("input")[0],e.secondElement.value=F(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():n.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(y("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(u)}return e.config.time_24hr||(e.amPM=y("span","flatpickr-am-pm",e.l10n.amPM[L((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}i(on,"buildTime");function Le(){e.weekdayContainer?ve(e.weekdayContainer):e.weekdayContainer=y("div","flatpickr-weekdays");for(var n=e.config.showMonths;n--;){var t=y("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(t)}return Re(),e.weekdayContainer}i(Le,"buildWeekdays");function Re(){if(e.weekdayContainer){var n=e.l10n.firstDayOfWeek,t=Qe(e.l10n.weekdays.shorthand);n>0&&n<t.length&&(t=Qe(t.splice(n,t.length),t.splice(0,n)));for(var r=e.config.showMonths;r--;)e.weekdayContainer.children[r].innerHTML=`
|
|
2
|
+
<span class='flatpickr-weekday'>
|
|
3
|
+
`+t.join("</span><span class='flatpickr-weekday'>")+`
|
|
4
|
+
</span>
|
|
5
|
+
`}}i(Re,"updateWeekdays");function ln(){e.calendarContainer.classList.add("hasWeeks");var n=y("div","flatpickr-weekwrapper");n.appendChild(y("span","flatpickr-weekday",e.l10n.weekAbbreviation));var t=y("div","flatpickr-weeks");return n.appendChild(t),{weekWrapper:n,weekNumbers:t}}i(ln,"buildWeeks");function Ee(n,t){t===void 0&&(t=!0);var r=t?n:n-e.currentMonth;r<0&&e._hidePrevMonthArrow===!0||r>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=r,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,E("onYearChange"),Z()),se(),E("onMonthChange"),he())}i(Ee,"changeMonth");function un(n,t){if(n===void 0&&(n=!0),t===void 0&&(t=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,t===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var r=Ye(e.config),l=r.hours,u=r.minutes,f=r.seconds;H(l,u,f)}e.redraw(),n&&E("onChange")}i(un,"clear");function fn(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),E("onClose")}i(fn,"close");function sn(){e.config!==void 0&&E("onDestroy");for(var n=e._handlers.length;n--;)e._handlers[n].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){var t=e.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(r){try{delete e[r]}catch{}})}i(sn,"destroy");function ie(n){return e.calendarContainer.contains(n)}i(ie,"isCalendarElem");function ke(n){if(e.isOpen&&!e.config.inline){var t=A(n),r=ie(t),l=t===e.input||t===e.altInput||e.element.contains(t)||n.path&&n.path.indexOf&&(~n.path.indexOf(e.input)||~n.path.indexOf(e.altInput)),u=!l&&!r&&!ie(n.relatedTarget),f=!e.config.ignoredFocusElements.some(function(v){return v.contains(t)});u&&f&&(e.config.allowInput&&e.setDate(e._input.value,!1,e.config.altInput?e.config.altFormat:e.config.dateFormat),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&M(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}i(ke,"documentClick");function ce(n){if(!(!n||e.config.minDate&&n<e.config.minDate.getFullYear()||e.config.maxDate&&n>e.config.maxDate.getFullYear())){var t=n,r=e.currentYear!==t;e.currentYear=t||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),r&&(e.redraw(),E("onYearChange"),Z())}}i(ce,"changeYear");function q(n,t){var r;t===void 0&&(t=!0);var l=e.parseDate(n,void 0,t);if(e.config.minDate&&l&&N(l,e.config.minDate,t!==void 0?t:!e.minDateHasTime)<0||e.config.maxDate&&l&&N(l,e.config.maxDate,t!==void 0?t:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(l===void 0)return!1;for(var u=!!e.config.enable,f=(r=e.config.enable)!==null&&r!==void 0?r:e.config.disable,v=0,c=void 0;v<f.length;v++){if(c=f[v],typeof c=="function"&&c(l))return u;if(c instanceof Date&&l!==void 0&&c.getTime()===l.getTime())return u;if(typeof c=="string"){var D=e.parseDate(c,void 0,!0);return D&&D.getTime()===l.getTime()?u:!u}else if(typeof c=="object"&&l!==void 0&&c.from&&c.to&&l.getTime()>=c.from.getTime()&&l.getTime()<=c.to.getTime())return u}return!u}i(q,"isEnabled");function de(n){return e.daysContainer!==void 0?n.className.indexOf("hidden")===-1&&n.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(n):!1}i(de,"isInView");function cn(n){var t=n.target===e._input,r=e._input.value.trimEnd()!==_e();t&&r&&!(n.relatedTarget&&ie(n.relatedTarget))&&e.setDate(e._input.value,!0,n.target===e.altInput?e.config.altFormat:e.config.dateFormat)}i(cn,"onBlur");function We(n){var t=A(n),r=e.config.wrap?a.contains(t):t===e._input,l=e.config.allowInput,u=e.isOpen&&(!l||!r),f=e.config.inline&&r&&!l;if(n.keyCode===13&&r){if(l)return e.setDate(e._input.value,!0,t===e.altInput?e.config.altFormat:e.config.dateFormat),e.close(),t.blur();e.open()}else if(ie(t)||u||f){var v=!!e.timeContainer&&e.timeContainer.contains(t);switch(n.keyCode){case 13:v?(n.preventDefault(),M(),Te()):qe(n);break;case 27:n.preventDefault(),Te();break;case 8:case 46:r&&!e.config.allowInput&&(n.preventDefault(),e.clear());break;case 37:case 39:if(!v&&!r){n.preventDefault();var c=g();if(e.daysContainer!==void 0&&(l===!1||c&&de(c))){var D=n.keyCode===39?1:-1;n.ctrlKey?(n.stopPropagation(),Ee(D),ae(G(1),0)):ae(void 0,D)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:n.preventDefault();var s=n.keyCode===40?1:-1;e.daysContainer&&t.$i!==void 0||t===e.input||t===e.altInput?n.ctrlKey?(n.stopPropagation(),ce(e.currentYear-s),ae(G(1),0)):v||ae(void 0,s*7):t===e.currentYearElement?ce(e.currentYear-s):e.config.enableTime&&(!v&&e.hourElement&&e.hourElement.focus(),M(n),e._debouncedChange());break;case 9:if(v){var p=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(P){return P}),x=p.indexOf(t);if(x!==-1){var R=p[x+(n.shiftKey?-1:1)];n.preventDefault(),(R||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(t)&&n.shiftKey&&(n.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&t===e.amPM)switch(n.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],T(),B();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],T(),B();break}(r||ie(t))&&E("onKeyDown",n)}i(We,"onKeyDown");function me(n,t){if(t===void 0&&(t="flatpickr-day"),!(e.selectedDates.length!==1||n&&(!n.classList.contains(t)||n.classList.contains("flatpickr-disabled")))){for(var r=n?n.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),l=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),u=Math.min(r,e.selectedDates[0].getTime()),f=Math.max(r,e.selectedDates[0].getTime()),v=!1,c=0,D=0,s=u;s<f;s+=Kn.DAY)q(new Date(s),!0)||(v=v||s>u&&s<f,s<l&&(!c||s>c)?c=s:s>l&&(!D||s<D)&&(D=s));var p=Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+"+e.config.showMonths+") > ."+t));p.forEach(function(x){var R=x.dateObj,P=R.getTime(),re=c>0&&P<c||D>0&&P>D;if(re){x.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Q){x.classList.remove(Q)});return}else if(v&&!re)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Q){x.classList.remove(Q)}),n!==void 0&&(n.classList.add(r<=e.selectedDates[0].getTime()?"startRange":"endRange"),l<r&&P===l?x.classList.add("startRange"):l>r&&P===l&&x.classList.add("endRange"),P>=c&&(D===0||P<=D)&&Bn(P,l,r)&&x.classList.add("inRange"))})}}i(me,"onMouseOver");function dn(){e.isOpen&&!e.config.static&&!e.config.inline&&ge()}i(dn,"onResize");function mn(n,t){if(t===void 0&&(t=e._positionElement),e.isMobile===!0){if(n){n.preventDefault();var r=A(n);r&&r.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),E("onOpen");return}else if(e._input.disabled||e.config.inline)return;var l=e.isOpen;e.isOpen=!0,l||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),E("onOpen"),ge(t)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(n===void 0||!e.timeContainer.contains(n.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}i(mn,"open");function Be(n){return function(t){var r=e.config["_"+n+"Date"]=e.parseDate(t,e.config.dateFormat),l=e.config["_"+(n==="min"?"max":"min")+"Date"];r!==void 0&&(e[n==="min"?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(function(u){return q(u)}),!e.selectedDates.length&&n==="min"&&_(r),B()),e.daysContainer&&(Ve(),r!==void 0?e.currentYearElement[n]=r.getFullYear().toString():e.currentYearElement.removeAttribute(n),e.currentYearElement.disabled=!!l&&r!==void 0&&l.getFullYear()===r.getFullYear())}}i(Be,"minMaxDateSetter");function gn(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=S(S({},JSON.parse(JSON.stringify(a.dataset||{}))),o),r={};e.config.parseDate=t.parseDate,e.config.formatDate=t.formatDate,Object.defineProperty(e.config,"enable",{get:i(function(){return e.config._enable},"get"),set:i(function(p){e.config._enable=Ue(p)},"set")}),Object.defineProperty(e.config,"disable",{get:i(function(){return e.config._disable},"get"),set:i(function(p){e.config._disable=Ue(p)},"set")});var l=t.mode==="time";if(!t.dateFormat&&(t.enableTime||l)){var u=k.defaultConfig.dateFormat||X.dateFormat;r.dateFormat=t.noCalendar||l?"H:i"+(t.enableSeconds?":S":""):u+" H:i"+(t.enableSeconds?":S":"")}if(t.altInput&&(t.enableTime||l)&&!t.altFormat){var f=k.defaultConfig.altFormat||X.altFormat;r.altFormat=t.noCalendar||l?"h:i"+(t.enableSeconds?":S K":" K"):f+(" h:i"+(t.enableSeconds?":S":"")+" K")}Object.defineProperty(e.config,"minDate",{get:i(function(){return e.config._minDate},"get"),set:Be("min")}),Object.defineProperty(e.config,"maxDate",{get:i(function(){return e.config._maxDate},"get"),set:Be("max")});var v=i(function(p){return function(x){e.config[p==="min"?"_minTime":"_maxTime"]=e.parseDate(x,"H:i:S")}},"minMaxTimeSetter");Object.defineProperty(e.config,"minTime",{get:i(function(){return e.config._minTime},"get"),set:v("min")}),Object.defineProperty(e.config,"maxTime",{get:i(function(){return e.config._maxTime},"get"),set:v("max")}),t.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,r,t);for(var c=0;c<n.length;c++)e.config[n[c]]=e.config[n[c]]===!0||e.config[n[c]]==="true";Fe.filter(function(p){return e.config[p]!==void 0}).forEach(function(p){e.config[p]=Pe(e.config[p]||[]).map(w)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var c=0;c<e.config.plugins.length;c++){var D=e.config.plugins[c](e)||{};for(var s in D)Fe.indexOf(s)>-1?e.config[s]=Pe(D[s]).map(w).concat(e.config[s]):typeof t[s]>"u"&&(e.config[s]=D[s])}t.altInputClass||(e.config.altInputClass=$e().className+" "+e.config.altInputClass),E("onParseConfig")}i(gn,"parseConfig");function $e(){return e.config.wrap?a.querySelector("[data-input]"):a}i($e,"getInputElem");function Ke(){typeof e.config.locale!="object"&&typeof k.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=S(S({},k.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?k.l10ns[e.config.locale]:void 0),J.D="("+e.l10n.weekdays.shorthand.join("|")+")",J.l="("+e.l10n.weekdays.longhand.join("|")+")",J.M="("+e.l10n.months.shorthand.join("|")+")",J.F="("+e.l10n.months.longhand.join("|")+")",J.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var n=S(S({},o),JSON.parse(JSON.stringify(a.dataset||{})));n.time_24hr===void 0&&k.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=nn(e),e.parseDate=He({config:e.config,l10n:e.l10n})}i(Ke,"setupLocale");function ge(n){if(typeof e.config.position=="function")return void e.config.position(e,n);if(e.calendarContainer!==void 0){E("onPreCalendarPosition");var t=n||e._positionElement,r=Array.prototype.reduce.call(e.calendarContainer.children,(function(Pn,An){return Pn+An.offsetHeight}),0),l=e.calendarContainer.offsetWidth,u=e.config.position.split(" "),f=u[0],v=u.length>1?u[1]:null,c=t.getBoundingClientRect(),D=window.innerHeight-c.bottom,s=f==="above"||f!=="below"&&D<r&&c.top>r,p=window.pageYOffset+c.top+(s?-r-2:t.offsetHeight+2);if(I(e.calendarContainer,"arrowTop",!s),I(e.calendarContainer,"arrowBottom",s),!e.config.inline){var x=window.pageXOffset+c.left,R=!1,P=!1;v==="center"?(x-=(l-c.width)/2,R=!0):v==="right"&&(x-=l-c.width,P=!0),I(e.calendarContainer,"arrowLeft",!R&&!P),I(e.calendarContainer,"arrowCenter",R),I(e.calendarContainer,"arrowRight",P);var re=window.document.body.offsetWidth-(window.pageXOffset+c.right),Q=x+l>window.document.body.offsetWidth,kn=re+l>window.document.body.offsetWidth;if(I(e.calendarContainer,"rightMost",Q),!e.config.static)if(e.calendarContainer.style.top=p+"px",!Q)e.calendarContainer.style.left=x+"px",e.calendarContainer.style.right="auto";else if(!kn)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=re+"px";else{var Oe=pn();if(Oe===void 0)return;var Tn=window.document.body.offsetWidth,Sn=Math.max(0,Tn/2-l/2),In=".flatpickr-calendar.centerMost:before",_n=".flatpickr-calendar.centerMost:after",On=Oe.cssRules.length,Fn="{left:"+c.left+"px;right:auto;}";I(e.calendarContainer,"rightMost",!1),I(e.calendarContainer,"centerMost",!0),Oe.insertRule(In+","+_n+Fn,On),e.calendarContainer.style.left=Sn+"px",e.calendarContainer.style.right="auto"}}}}i(ge,"positionCalendar");function pn(){for(var n=null,t=0;t<document.styleSheets.length;t++){var r=document.styleSheets[t];if(r.cssRules){try{r.cssRules}catch{continue}n=r;break}}return n??hn()}i(pn,"getDocumentStyleSheet");function hn(){var n=document.createElement("style");return document.head.appendChild(n),n.sheet}i(hn,"createStyleSheet");function Ve(){e.config.noCalendar||e.isMobile||(Z(),he(),se())}i(Ve,"redraw");function Te(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}i(Te,"focusAndClose");function qe(n){n.preventDefault(),n.stopPropagation();var t=i(function(p){return p.classList&&p.classList.contains("flatpickr-day")&&!p.classList.contains("flatpickr-disabled")&&!p.classList.contains("notAllowed")},"isSelectable"),r=en(A(n),t);if(r!==void 0){var l=r,u=e.latestSelectedDateObj=new Date(l.dateObj.getTime()),f=(u.getMonth()<e.currentMonth||u.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=l,e.config.mode==="single")e.selectedDates=[u];else if(e.config.mode==="multiple"){var v=Ie(u);v?e.selectedDates.splice(parseInt(v),1):e.selectedDates.push(u)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=u,e.selectedDates.push(u),N(u,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(p,x){return p.getTime()-x.getTime()}));if(T(),f){var c=e.currentYear!==u.getFullYear();e.currentYear=u.getFullYear(),e.currentMonth=u.getMonth(),c&&(E("onYearChange"),Z()),E("onMonthChange")}if(he(),se(),B(),!f&&e.config.mode!=="range"&&e.config.showMonths===1?z(l):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){var D=e.config.mode==="single"&&!e.config.enableTime,s=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(D||s)&&Te()}W()}}i(qe,"selectDate");var pe={locale:[Ke,Re],showMonths:[je,C,Le],minDate:[$],maxDate:[$],positionElement:[ze],clickOpens:[function(){e.config.clickOpens===!0?(b(e._input,"focus",e.open),b(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function vn(n,t){if(n!==null&&typeof n=="object"){Object.assign(e.config,n);for(var r in n)pe[r]!==void 0&&pe[r].forEach(function(l){return l()})}else e.config[n]=t,pe[n]!==void 0?pe[n].forEach(function(l){return l()}):Fe.indexOf(n)>-1&&(e.config[n]=Pe(t));e.redraw(),B(!0)}i(vn,"set");function Je(n,t){var r=[];if(n instanceof Array)r=n.map(function(l){return e.parseDate(l,t)});else if(n instanceof Date||typeof n=="number")r=[e.parseDate(n,t)];else if(typeof n=="string")switch(e.config.mode){case"single":case"time":r=[e.parseDate(n,t)];break;case"multiple":r=n.split(e.config.conjunction).map(function(l){return e.parseDate(l,t)});break;case"range":r=n.split(e.l10n.rangeSeparator).map(function(l){return e.parseDate(l,t)});break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(n)));e.selectedDates=e.config.allowInvalidPreload?r:r.filter(function(l){return l instanceof Date&&q(l,!1)}),e.config.mode==="range"&&e.selectedDates.sort(function(l,u){return l.getTime()-u.getTime()})}i(Je,"setSelectedDate");function Dn(n,t,r){if(t===void 0&&(t=!1),r===void 0&&(r=e.config.dateFormat),n!==0&&!n||n instanceof Array&&n.length===0)return e.clear(t);Je(n,r),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),$(void 0,t),_(),e.selectedDates.length===0&&e.clear(!1),B(t),t&&E("onChange")}i(Dn,"setDate");function Ue(n){return n.slice().map(function(t){return typeof t=="string"||typeof t=="number"||t instanceof Date?e.parseDate(t,void 0,!0):t&&typeof t=="object"&&t.from&&t.to?{from:e.parseDate(t.from,void 0),to:e.parseDate(t.to,void 0)}:t}).filter(function(t){return t})}i(Ue,"parseDateRules");function wn(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;var n=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);n&&Je(n,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}i(wn,"setupDates");function bn(){if(e.input=$e(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=y(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),ze()}i(bn,"setupInputs");function ze(){e._positionElement=e.config.positionElement||e._input}i(ze,"updatePositionElement");function Mn(){var n=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=y("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=n,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=n==="datetime-local"?"Y-m-d\\TH:i:S":n==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}b(e.mobileInput,"change",function(t){e.setDate(A(t).value,!1,e.mobileFormatStr),E("onChange"),E("onClose")})}i(Mn,"setupMobile");function yn(n){if(e.isOpen===!0)return e.close();e.open(n)}i(yn,"toggle");function E(n,t){if(e.config!==void 0){var r=e.config[n];if(r!==void 0&&r.length>0)for(var l=0;r[l]&&l<r.length;l++)r[l](e.selectedDates,e.input.value,e,t);n==="onChange"&&(e.input.dispatchEvent(Se("change")),e.input.dispatchEvent(Se("input")))}}i(E,"triggerEvent");function Se(n){var t=document.createEvent("Event");return t.initEvent(n,!0,!0),t}i(Se,"createEvent");function Ie(n){for(var t=0;t<e.selectedDates.length;t++){var r=e.selectedDates[t];if(r instanceof Date&&N(r,n)===0)return""+t}return!1}i(Ie,"isDateSelected");function Cn(n){return e.config.mode!=="range"||e.selectedDates.length<2?!1:N(n,e.selectedDates[0])>=0&&N(n,e.selectedDates[1])<=0}i(Cn,"isDateInRange");function he(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(n,t){var r=new Date(e.currentYear,e.currentMonth,1);r.setMonth(e.currentMonth+t),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[t].textContent=be(r.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=r.getMonth().toString(),n.value=r.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}i(he,"updateNavigationCurrentMonth");function _e(n){var t=n||(e.config.altInput?e.config.altFormat:e.config.dateFormat);return e.selectedDates.map(function(r){return e.formatDate(r,t)}).filter(function(r,l,u){return e.config.mode!=="range"||e.config.enableTime||u.indexOf(r)===l}).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}i(_e,"getDateStr");function B(n){n===void 0&&(n=!0),e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=_e(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=_e(e.config.altFormat)),n!==!1&&E("onValueUpdate")}i(B,"updateValue");function xn(n){var t=A(n),r=e.prevMonthNav.contains(t),l=e.nextMonthNav.contains(t);r||l?Ee(r?-1:1):e.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):t.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}i(xn,"onMonthNavClick");function En(n){n.preventDefault();var t=n.type==="keydown",r=A(n),l=r;e.amPM!==void 0&&r===e.amPM&&(e.amPM.textContent=e.l10n.amPM[L(e.amPM.textContent===e.l10n.amPM[0])]);var u=parseFloat(l.getAttribute("min")),f=parseFloat(l.getAttribute("max")),v=parseFloat(l.getAttribute("step")),c=parseInt(l.value,10),D=n.delta||(t?n.which===38?1:-1:0),s=c+v*D;if(typeof l.value<"u"&&l.value.length===2){var p=l===e.hourElement,x=l===e.minuteElement;s<u?(s=f+s+L(!p)+(L(p)&&L(!e.amPM)),x&&U(void 0,-1,e.hourElement)):s>f&&(s=l===e.hourElement?s-f-L(!e.amPM):u,x&&U(void 0,1,e.hourElement)),e.amPM&&p&&(v===1?s+c===23:Math.abs(s-c)>v)&&(e.amPM.textContent=e.l10n.amPM[L(e.amPM.textContent===e.l10n.amPM[0])]),l.value=F(s)}}return i(En,"timeWrapper"),m(),e}i(qn,"FlatpickrInstance");function ee(a,o){for(var e=Array.prototype.slice.call(a).filter(function(w){return w instanceof HTMLElement}),d=[],m=0;m<e.length;m++){var g=e[m];try{if(g.getAttribute("data-fp-omit")!==null)continue;g._flatpickr!==void 0&&(g._flatpickr.destroy(),g._flatpickr=void 0),g._flatpickr=qn(g,o||{}),d.push(g._flatpickr)}catch(w){console.error(w)}}return d.length===1?d[0]:d}i(ee,"_flatpickr");typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(a){return ee(this,a)},HTMLElement.prototype.flatpickr=function(a){return ee([this],a)});var k=i(function(a,o){return typeof a=="string"?ee(window.document.querySelectorAll(a),o):a instanceof Node?ee([a],o):ee(a,o)},"flatpickr");k.defaultConfig={};k.l10ns={en:S({},ue),default:S({},ue)};k.localize=function(a){k.l10ns.default=S(S({},k.l10ns.default),a)};k.setDefaults=function(a){k.defaultConfig=S(S({},k.defaultConfig),a)};k.parseDate=He({});k.formatDate=nn({});k.compareDates=N;typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(a){return ee(this,a)});Date.prototype.fp_incr=function(a){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof a=="string"?parseInt(a,10):a))};typeof window<"u"&&(window.flatpickr=k);var we={exports:{}},Jn=we.exports,Xe;function Un(){return Xe||(Xe=1,(function(a,o){(function(e,d){a.exports=d()})(Jn,(function(){/*! *****************************************************************************
|
|
6
|
+
Copyright (c) Microsoft Corporation.
|
|
7
|
+
|
|
8
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
9
|
+
purpose with or without fee is hereby granted.
|
|
10
|
+
|
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
12
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
13
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
14
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
15
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
16
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
18
|
+
***************************************************************************** */var e=i(function(){return e=Object.assign||i(function(C){for(var M,Y=1,h=arguments.length;Y<h;Y++){M=arguments[Y];for(var T in M)Object.prototype.hasOwnProperty.call(M,T)&&(C[T]=M[T])}return C},"__assign"),e.apply(this,arguments)},"__assign");function d(w){try{if(typeof w.composedPath=="function"){var C=w.composedPath();return C[0]}return w.target}catch{return w.target}}i(d,"getEventTarget");var m={confirmIcon:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='17' height='17' viewBox='0 0 17 17'> <g> </g> <path d='M15.418 1.774l-8.833 13.485-4.918-4.386 0.666-0.746 4.051 3.614 8.198-12.515 0.836 0.548z' fill='#000000' /> </svg>",confirmText:"OK ",showAlways:!1,theme:"light"};function g(w){var C=e(e({},m),w),M,Y="flatpickr-confirm";return function(h){return h.config.noCalendar||h.isMobile?{}:e({onKeyDown:i(function(T,_,H,O){var b=d(O),W=!h.config.time_24hr&&b===h.amPM||h.config.time_24hr&&(h.config.enableSeconds&&b===h.secondElement||!h.config.enableSeconds&&b===h.minuteElement);h.config.enableTime&&O.key==="Tab"&&W?(O.preventDefault(),M.focus()):O.key==="Enter"&&b===M&&h.close()},"onKeyDown"),onReady:i(function(){M=h._createElement("div",Y+" "+(C.showAlways?"visible":"")+" "+C.theme+"Theme",C.confirmText),M.tabIndex=-1,M.innerHTML+=C.confirmIcon,M.addEventListener("click",h.close),h.calendarContainer.appendChild(M),h.loadedPlugins.push("confirmDate")},"onReady")},C.showAlways?{}:{onChange:i(function(T,_){var H=h.config.enableTime||h.config.mode==="multiple"||h.loadedPlugins.indexOf("monthSelect")!==-1,O=h.calendarContainer.querySelector("."+Y);if(O){if(_&&!h.config.inline&&H&&O)return O.classList.add("visible");O.classList.remove("visible")}},"onChange")})}}return i(g,"confirmDatePlugin"),g}))})(we)),we.exports}i(Un,"requireConfirmDate");var zn=Un();const Gn=Hn(zn);var Zn=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor,Me=i((a,o,e,d)=>{for(var m=d>1?void 0:d?Qn(o,e):o,g=a.length-1,w;g>=0;g--)(w=a[g])&&(m=(d?w(o,e,m):w(m))||m);return d&&m&&Zn(o,e,m),m},"__decorateClass"),ne;let te=(ne=class extends fe.FieldComponent{withTime=!0;withSeconds=!0;asTemporal=!1;emits=["click"];maxDateInner="";minDateInner="";mounted(){this.nextTick(()=>this.initPicker())}fp=null;addDate(){const o=$VST.DT();this.$emit("update:modelValue",this.value=this.asTemporal?o:this.parseTime(o)),setTimeout(()=>{this.fp||this.initPicker(),this.nextTick(()=>{this.$refs?.picker&&(this.$refs?.picker?.click(),setTimeout(()=>{this.$refs.picker.setAttribute("value",this._formatDate(new Date(o.epochMilliseconds))),this.fp?.open()},70))})},70)}initPicker(){this.$refs.picker&&(this.fp=k(this.$refs.picker,{enableTime:this.withTime,enableSeconds:this.withSeconds,weekNumbers:!0,dateFormat:"Y-m-d H:i:S",minDate:this.minDateInner,maxDate:this.maxDateInner,minuteIncrement:1,secondsIncrement:1,hoursIncrement:1,className:"custom-flatpickr-theme",locale:Rn.Russian,plugins:[new Gn({})],onChange:i(o=>{},"onChange")}))}parseTime(o){return o.toString().split("+")[0].split(".")[0].replace("T"," ").split(this.withTime?"!":" ")[0]}_formatDate(o){const e=new Intl.DateTimeFormat("ru-RU",{month:"short",day:"numeric"}).format(o).replace(/\d+\s?/,""),d=$VST.DT(o.getTime());return`${d.day} ${e} ${d.year}`+(this.withTime?` в ${d.hour.toString().padStart(2,"0")}:${d.minute.toString().padStart(2,"0")}`:"")+(this.withSeconds?`:${d.second.toString().padStart(2,"0")}`:"")}},i(ne,"DateField"),ne);Me([fe.Prop(Boolean)],te.prototype,"withTime",2);Me([fe.Prop(Boolean)],te.prototype,"withSeconds",2);Me([fe.Prop(Boolean)],te.prototype,"asTemporal",2);te=Me([fe.VST],te);function Xn(a,o,e,d,m,g){return j.openBlock(),j.createElementBlock("div",{class:j.normalizeClass(["vst-date-field d-inline-block my1px w100%",{}])},[a.value?j.createCommentVNode("",!0):(j.openBlock(),j.createElementBlock("div",{key:0,class:"h28px flex items-center min-w240px bg-white rounded-3xl justify-center cursor-pointer text-#c1c7cf italic border-solid border-#c1c7cf border-1px hover:border-gray-300 hover:border-#d6ff63! hover:text-lime-500 mx-auto min-h42px!",tabindex:"5",onFocusin:o[0]||(o[0]=w=>a.addDate()),onClick:o[1]||(o[1]=w=>a.addDate())},j.toDisplayString(a.placeholder),33)),j.withDirectives(j.createElementVNode("div",null,[j.createElementVNode("input",{ref:"picker",type:"text",readonly:"",onMousedown:o[2]||(o[2]=j.withModifiers(()=>{},["prevent"]))},null,544)],512),[[j.vShow,a.value]])])}i(Xn,"render");const et=Yn._export_sfc(te,[["render",Xn]]);exports.default=et;
|