@geoblink/design-system
Version:
Geoblink Design System for Vue.js
1 lines • 72.5 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("lodash")):"function"==typeof define&&define.amd?define(["lodash"],e):"object"==typeof exports?exports["components/GeoCalendar"]=e(require("lodash")):t["components/GeoCalendar"]=e(t.lodash)}(window,function(t){return n={},e.m=r={"/Tr7":function(t,e,r){"use strict";function n(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}r.d(e,"a",function(){return n})},"/h9T":function(t,e,r){"use strict";function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}r.d(e,"a",function(){return n})},"1/CV":function(t,e,r){"use strict";r.r(e);var n=r("J4zp"),a=r.n(n),i=r("lSNA"),o=r.n(i),s=r("YLtl"),u=r.n(s),c=r("d60l"),l=r("L8hi"),d=r("jKzE"),h=r("/Tr7");function f(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object(h.a)(t),r=e.getMonth(),n=r-r%3+3;return e.setMonth(n,0),e.setHours(23,59,59,999),e}var m=r("sWYD"),g=r("cHAT"),w=r("cnyc"),b=r("Se/U");function p(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object(h.a)(t),r=e.getMonth(),n=r-r%3;return e.setMonth(n,1),e.setHours(0,0,0,0),e}function D(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object(h.a)(t),r=e.getFullYear();return e.setFullYear(r+1,0,0),e.setHours(23,59,59,999),e}var y=r("9ig3");function T(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object(h.a)(t),r=new Date(0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}var v=r("aetl"),F=r("JCDJ"),O=r("M34a"),x=864e5;function E(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(h.a)(t),n=Object(h.a)(e),a=r.getTime()-n.getTime();return a<0?-1:0<a?1:a}function C(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(h.a)(t),n=Object(h.a)(e),a=E(r,n),i=Math.abs(function(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(O.a)(t),n=Object(O.a)(e),a=r.getTime()-Object(F.a)(r),i=n.getTime()-Object(F.a)(n);return Math.round((a-i)/x)}(r,n));r.setDate(r.getDate()-a*i);var o=a*(i-(E(r,n)===-a));return 0==o?0:o}function j(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(h.a)(t),n=Object(h.a)(e),a=E(r,n),i=Math.abs(function(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(h.a)(t),n=Object(h.a)(e);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(r,n));r.setMonth(r.getMonth()-a*i);var o=a*(i-(E(r,n)===-a));return 0==o?0:o}var I=r("iSMj"),R=r("g9KO");function M(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in e=e||{})e.hasOwnProperty(r)&&(t[r]=e[r]);return t}var U=r("Ib5w"),S=r("3REe"),k=r("/h9T"),_=r("Szzx");function q(t,e,r){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=r||{},a=n.locale,i=a&&a.options&&a.options.weekStartsOn,o=null==i?0:Object(k.a)(i),s=null==n.weekStartsOn?o:Object(k.a)(n.weekStartsOn);if(!(0<=s&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=Object(h.a)(t),c=Object(k.a)(e),l=((7+c%7)%7<s?7:0)+c-u.getUTCDay();return u.setUTCDate(u.getUTCDate()+l),u}var Y=r("lgZR"),N=r("ErpD"),P=r("tpup"),A=r("1vjI"),L=/^(1[0-2]|0?\d)/,H=/^(3[0-1]|[0-2]?\d)/,B=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,G=/^(5[0-3]|[0-4]?\d)/,W=/^(2[0-3]|[0-1]?\d)/,Q=/^(2[0-4]|[0-1]?\d)/,X=/^(1[0-1]|0?\d)/,z=/^(1[0-2]|0?\d)/,V=/^[0-5]?\d/,K=/^[0-5]?\d/,$=/^\d/,J=/^\d{1,2}/,Z=/^\d{1,3}/,tt=/^\d{1,4}/,et=/^-?\d+/,rt=/^-?\d/,nt=/^-?\d{1,2}/,at=/^-?\d{1,3}/,it=/^-?\d{1,4}/,ot=/^([+-])(\d{2})(\d{2})?|Z/,st=/^([+-])(\d{2})(\d{2})|Z/,ut=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,ct=/^([+-])(\d{2}):(\d{2})|Z/,lt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function dt(t,e,r){var n=e.match(t);if(!n)return null;var a=parseInt(n[0],10);return{value:r?r(a):a,rest:e.slice(n[0].length)}}function ht(t,e){var r=e.match(t);return r?"Z"===r[0]?{value:0,rest:e.slice(1)}:{value:("+"===r[1]?1:-1)*(36e5*(r[2]?parseInt(r[2],10):0)+6e4*(r[3]?parseInt(r[3],10):0)+1e3*(r[5]?parseInt(r[5],10):0)),rest:e.slice(r[0].length)}:null}function ft(t,e){return dt(et,t,e)}function mt(t,e,r){switch(t){case 1:return dt($,e,r);case 2:return dt(J,e,r);case 3:return dt(Z,e,r);case 4:return dt(tt,e,r);default:return dt(new RegExp("^\\d{1,"+t+"}"),e,r)}}function gt(t,e,r){switch(t){case 1:return dt(rt,e,r);case 2:return dt(nt,e,r);case 3:return dt(at,e,r);case 4:return dt(it,e,r);default:return dt(new RegExp("^-?\\d{1,"+t+"}"),e,r)}}function wt(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function bt(t,e){var r,n=0<e,a=n?e:1-e;if(a<=50)r=t||100;else{var i=a+50;r=t+100*Math.floor(i/100)-(i%100<=t?100:0)}return n?r:1-r}var pt=[31,28,31,30,31,30,31,31,30,31,30,31],Dt=[31,29,31,30,31,30,31,31,30,31,30,31];function yt(t){return t%400==0||t%4==0&&t%100!=0}var Tt={G:{priority:140,parse:function(t,e,r,n){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}},set:function(t,e,r,n){return e.era=r,t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(t,e,r,n){function a(t){return{year:t,isTwoDigitYear:"yy"===e}}switch(e){case"y":return mt(4,t,a);case"yo":return r.ordinalNumber(t,{unit:"year",valueCallback:a});default:return mt(e.length,t,a)}},validate:function(t,e,r){return e.isTwoDigitYear||0<e.year},set:function(t,e,r,n){var a=t.getUTCFullYear();if(r.isTwoDigitYear){var i=bt(r.year,a);return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}var o="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(t,e,r,n){function a(t){return{year:t,isTwoDigitYear:"YY"===e}}switch(e){case"Y":return mt(4,t,a);case"Yo":return r.ordinalNumber(t,{unit:"year",valueCallback:a});default:return mt(e.length,t,a)}},validate:function(t,e,r){return e.isTwoDigitYear||0<e.year},set:function(t,e,r,n){var a=Object(_.a)(t,n);if(r.isTwoDigitYear){var i=bt(r.year,a);return t.setUTCFullYear(i,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(A.a)(t,n)}var o="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(o,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(A.a)(t,n)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(t,e,r,n){return gt("R"===e?4:e.length,t)},set:function(t,e,r,n){var a=new Date(0);return a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0),Object(P.a)(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(t,e,r,n){return gt("u"===e?4:e.length,t)},set:function(t,e,r,n){return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(t,e,r,n){switch(e){case"Q":case"QQ":return mt(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return 1<=e&&e<=4},set:function(t,e,r,n){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(t,e,r,n){switch(e){case"q":case"qq":return mt(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return 1<=e&&e<=4},set:function(t,e,r,n){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(t,e,r,n){function a(t){return t-1}switch(e){case"M":return dt(L,t,a);case"MM":return mt(2,t,a);case"Mo":return r.ordinalNumber(t,{unit:"month",valueCallback:a});case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return 0<=e&&e<=11},set:function(t,e,r,n){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(t,e,r,n){function a(t){return t-1}switch(e){case"L":return dt(L,t,a);case"LL":return mt(2,t,a);case"Lo":return r.ordinalNumber(t,{unit:"month",valueCallback:a});case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return 0<=e&&e<=11},set:function(t,e,r,n){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(t,e,r,n){switch(e){case"w":return dt(G,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return mt(e.length,t)}},validate:function(t,e,r){return 1<=e&&e<=53},set:function(t,e,r,n){return Object(A.a)(function(t,e,r){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(h.a)(t),a=Object(k.a)(e),i=Object(N.a)(n,r)-a;return n.setUTCDate(n.getUTCDate()-7*i),n}(t,r,n),n)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(t,e,r,n){switch(e){case"I":return dt(G,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return mt(e.length,t)}},validate:function(t,e,r){return 1<=e&&e<=53},set:function(t,e,r,n){return Object(P.a)(function(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(h.a)(t),n=Object(k.a)(e),a=Object(Y.a)(r)-n;return r.setUTCDate(r.getUTCDate()-7*a),r}(t,r,n),n)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,parse:function(t,e,r,n){switch(e){case"d":return dt(H,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return mt(e.length,t)}},validate:function(t,e,r){var n=yt(t.getUTCFullYear()),a=t.getUTCMonth();return n?1<=e&&e<=Dt[a]:1<=e&&e<=pt[a]},set:function(t,e,r,n){return t.setUTCDate(r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,parse:function(t,e,r,n){switch(e){case"D":case"DD":return dt(B,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return mt(e.length,t)}},validate:function(t,e,r){return yt(t.getUTCFullYear())?1<=e&&e<=366:1<=e&&e<=365},set:function(t,e,r,n){return t.setUTCMonth(0,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(t,e,r,n){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return 0<=e&&e<=6},set:function(t,e,r,n){return(t=q(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(t,e,r,n){function a(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e}switch(e){case"e":case"ee":return mt(e.length,t,a);case"eo":return r.ordinalNumber(t,{unit:"day",valueCallback:a});case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return 0<=e&&e<=6},set:function(t,e,r,n){return(t=q(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(t,e,r,n){function a(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e}switch(e){case"c":case"cc":return mt(e.length,t,a);case"co":return r.ordinalNumber(t,{unit:"day",valueCallback:a});case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return 0<=e&&e<=6},set:function(t,e,r,n){return(t=q(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(t,e,r,n){function a(t){return 0===t?7:t}switch(e){case"i":case"ii":return mt(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return r.day(t,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return r.day(t,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a});case"iiii":default:return r.day(t,{width:"wide",context:"formatting",valueCallback:a})||r.day(t,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a})}},validate:function(t,e,r){return 1<=e&&e<=7},set:function(t,e,r,n){return(t=function(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(k.a)(e);r%7==0&&(r-=7);var n=Object(h.a)(t),a=((7+r%7)%7<1?7:0)+r-n.getUTCDay();return n.setUTCDate(n.getUTCDate()+a),n}(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(t,e,r,n){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(wt(r),0,0,0),t},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(t,e,r,n){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(wt(r),0,0,0),t},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(t,e,r,n){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(wt(r),0,0,0),t},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(t,e,r,n){switch(e){case"h":return dt(z,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return mt(e.length,t)}},validate:function(t,e,r){return 1<=e&&e<=12},set:function(t,e,r,n){var a=12<=t.getUTCHours();return a&&r<12?t.setUTCHours(r+12,0,0,0):a||12!==r?t.setUTCHours(r,0,0,0):t.setUTCHours(0,0,0,0),t},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(t,e,r,n){switch(e){case"H":return dt(W,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return mt(e.length,t)}},validate:function(t,e,r){return 0<=e&&e<=23},set:function(t,e,r,n){return t.setUTCHours(r,0,0,0),t},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(t,e,r,n){switch(e){case"K":return dt(X,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return mt(e.length,t)}},validate:function(t,e,r){return 0<=e&&e<=11},set:function(t,e,r,n){return 12<=t.getUTCHours()&&r<12?t.setUTCHours(r+12,0,0,0):t.setUTCHours(r,0,0,0),t},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(t,e,r,n){switch(e){case"k":return dt(Q,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return mt(e.length,t)}},validate:function(t,e,r){return 1<=e&&e<=24},set:function(t,e,r,n){var a=r<=24?r%24:r;return t.setUTCHours(a,0,0,0),t},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(t,e,r,n){switch(e){case"m":return dt(V,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return mt(e.length,t)}},validate:function(t,e,r){return 0<=e&&e<=59},set:function(t,e,r,n){return t.setUTCMinutes(r,0,0),t},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(t,e,r,n){switch(e){case"s":return dt(K,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return mt(e.length,t)}},validate:function(t,e,r){return 0<=e&&e<=59},set:function(t,e,r,n){return t.setUTCSeconds(r,0),t},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(t,e,r,n){return mt(e.length,t,function(t){return Math.floor(t*Math.pow(10,3-e.length))})},set:function(t,e,r,n){return t.setUTCMilliseconds(r),t},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(t,e,r,n){switch(e){case"X":return ht(ot,t);case"XX":return ht(st,t);case"XXXX":return ht(ut,t);case"XXXXX":return ht(lt,t);case"XXX":default:return ht(ct,t)}},set:function(t,e,r,n){return e.timestampIsSet?t:new Date(t.getTime()-r)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(t,e,r,n){switch(e){case"x":return ht(ot,t);case"xx":return ht(st,t);case"xxxx":return ht(ut,t);case"xxxxx":return ht(lt,t);case"xxx":default:return ht(ct,t)}},set:function(t,e,r,n){return e.timestampIsSet?t:new Date(t.getTime()-r)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(t,e,r,n){return ft(t)},set:function(t,e,r,n){return[new Date(1e3*r),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(t,e,r,n){return ft(t)},set:function(t,e,r,n){return[new Date(r),{timestampIsSet:!0}]},incompatibleTokens:"*"}},vt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ft=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ot=/^'([^]*?)'?$/,xt=/''/g,Et=/\S/,Ct=/[a-zA-Z]/;function jt(t,e){if(e.timestampIsSet)return t;var r=new Date(0);return r.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),r.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),r}var It=r("FI6L"),Rt=r("qSxj"),Mt={name:"GeoCalendar",status:"ready",release:"23.2.0",mixins:[r("m9Aq").a,Rt.a,It.a],data:function(){return{fromFormattedDate:"",toFormattedDate:"",fromRawDate:null,toRawDate:null,currentMonth:null,currentYear:null,showFromFormatError:!1,showToFormatError:!1,currentInitialYearInRange:0,currentEndYearInRange:0,lastInputFieldFocused:null,isSomeInputFieldExplicitlyFocused:!1}},computed:{hasFromDate:function(){return!!this.fromRawDate},shouldRenderCalendarSidebar:function(){return this.$slots.pickerGranularity||this.$slots.pickerAliases},showSetEarliestDateButton:function(){return this.earliestDate&&this.isGranularityWithoutRangeConstraints},showSetLatestDateButton:function(){return this.latestDate&&this.isGranularityWithoutRangeConstraints},isGranularityWithoutRangeConstraints:function(){var t;return this.granularityId in(t={},o()(t,c.GRANULARITY_IDS.day,c.GRANULARITY_IDS.day),o()(t,c.GRANULARITY_IDS.month,c.GRANULARITY_IDS.month),o()(t,c.GRANULARITY_IDS.year,c.GRANULARITY_IDS.year),t)},isDateWithinBounds:function(){var t=this;return function(e){return!Object(c.isBefore)(e,t.earliestDate)&&!Object(c.isAfter)(e,t.latestDate)}},isFromInputFieldFocused:function(){return this.lastInputFieldFocused===c.FOCUSABLE_INPUT_FIELDS.FROM_DATE},isToInputFieldFocused:function(){return this.lastInputFieldFocused===c.FOCUSABLE_INPUT_FIELDS.TO_DATE},isFromInputFieldExplicitlyFocused:function(){return this.isFromInputFieldFocused&&this.isSomeInputFieldExplicitlyFocused},isToInputFieldExplicitlyFocused:function(){return this.isToInputFieldFocused&&this.isSomeInputFieldExplicitlyFocused},isValidDate:function(){var t=this;return function(e){return e&&Object(b.a)(e)&&t.isDateWithinBounds(e)}},isFromInputReadOnly:function(){return this.granularityId!==c.GRANULARITY_IDS.day||this.isFromDateDisabled},isToInputReadOnly:function(){return this.granularityId!==c.GRANULARITY_IDS.day||this.isToDateDisabled}},watch:{granularityId:function(){this.deleteFromFormattedDate(),this.deleteToFormattedDate(),this.lastInputFieldFocused=this.isFromDateDisabled?c.FOCUSABLE_INPUT_FIELDS.TO_DATE:c.FOCUSABLE_INPUT_FIELDS.FROM_DATE},defaultFromDate:function(){this.fromRawDate=this.defaultFromDate,this.setFormattedDates()},defaultToDate:function(){this.toRawDate=this.defaultToDate,this.setFormattedDates()}},beforeMount:function(){this.currentMonth=this.defaultToDate?Object(g.a)(this.defaultToDate):Object(g.a)(this.initialDateInGrid),this.currentYear=this.defaultToDate?Object(w.a)(this.defaultToDate):Object(w.a)(this.initialDateInGrid),this.fromRawDate=this.defaultFromDate||null,this.toRawDate=this.defaultToDate||null,this.setFormattedDates(),this.isFromDateReadOnly?this.focusToDateInput():this.isToDateReadOnly&&this.focusFromDateInput()},methods:{applyFromFormattedDate:function(){if(!this.fromFormattedDate)return this.fromRawDate=null,this.showFromFormatError=!1,void this.emitFromDate({fromDate:this.fromRawDate});var t=this.parseDate(this.fromFormattedDate);this.isValidDate(t)?(this.fromRawDate=t,this.showFromFormatError=!1,this.currentMonth=Object(g.a)(this.fromRawDate),this.currentYear=Object(w.a)(this.fromRawDate)):this.showFromFormatError=""!==this.fromFormattedDate,this.selectDay(t)},applyToFormattedDate:function(){if(!this.toFormattedDate)return this.toRawDate=null,this.showToFormatError=!1,void this.emitToDate({toDate:this.toRawDate});var t=this.parseDate(this.toFormattedDate);this.isValidDate(t)?(this.toRawDate=t,this.showToFormatError=!1,this.currentMonth=Object(g.a)(this.toRawDate),this.currentYear=Object(w.a)(this.toRawDate)):this.showToFormatError=""!==this.toFormattedDate,this.selectDay(t)},formatDate:function(t){return Object(m.a)(t,"dd/MM/yyyy")},goToMonth:function(t){this.currentMonth=t},goToYear:function(t){this.currentYear=t},goToYearRange:function(t){var e=a()(t,2);this.currentInitialYearInRange=e[0],this.currentEndYearInRange=e[1]},parseDate:function(t){var e=function(t,e,r,n){if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");var a=String(t),i=String(e),o=n||{},s=o.locale||I.a;if(!s.match)throw new RangeError("locale must contain match property");var u=s.options&&s.options.firstWeekContainsDate,c=null==u?1:Object(k.a)(u),l=null==o.firstWeekContainsDate?c:Object(k.a)(o.firstWeekContainsDate);if(!(1<=l&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,f=null==d?0:Object(k.a)(d),m=null==o.weekStartsOn?f:Object(k.a)(o.weekStartsOn);if(!(0<=m&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===i)return""===a?Object(h.a)(r):new Date(NaN);var g,w={firstWeekContainsDate:l,weekStartsOn:m,locale:s},b=[{priority:10,set:jt,index:0}],p=i.match(Ft).map(function(t){var e=t[0];return"p"!==e&&"P"!==e?t:(0,U.a[e])(t,s.formatLong,w)}).join("").match(vt),D=[];for(g=0;g<p.length;g++){var y=p[g];!o.useAdditionalWeekYearTokens&&Object(S.b)(y)&&Object(S.c)(y),!o.useAdditionalDayOfYearTokens&&Object(S.a)(y)&&Object(S.c)(y);var T=y[0],v=Tt[T];if(v){var O=v.incompatibleTokens;if(Array.isArray(O)){for(var x=void 0,E=0;E<D.length;E++){var C=D[E].token;if(-1!==O.indexOf(C)||C===T){x=D[E];break}}if(x)throw new RangeError("The format string mustn't contain `".concat(x.fullToken,"` and `").concat(y,"` at the same time"))}else if("*"===v.incompatibleTokens&&D.length)throw new RangeError("The format string mustn't contain `".concat(y,"` and any other token at the same time"));D.push({token:T,fullToken:y});var j=v.parse(a,y,s.match,w);if(!j)return new Date(NaN);b.push({priority:v.priority,set:v.set,validate:v.validate,value:j.value,index:b.length}),a=j.rest}else{if(T.match(Ct))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");if("''"===y?y="'":"'"===T&&(y=y.match(Ot)[1].replace(xt,"'")),0!==a.indexOf(y))return new Date(NaN);a=a.slice(y.length)}}if(0<a.length&&Et.test(a))return new Date(NaN);var _=b.map(function(t){return t.priority}).sort(function(t,e){return e-t}).filter(function(t,e,r){return r.indexOf(t)===e}).map(function(t){return b.filter(function(e){return e.priority===t}).reverse()}).map(function(t){return t[0]}),q=Object(h.a)(r);if(isNaN(q))return new Date(NaN);var Y=Object(R.a)(q,Object(F.a)(q)),N={};for(g=0;g<_.length;g++){var P=_[g];if(P.validate&&!P.validate(Y,P.value,w))return new Date(NaN);var A=P.set(Y,N,P.value,w);A[0]?(Y=A[0],M(N,A[1])):Y=A}return Y}(t,"dd/MM/yyyy",new Date);return Object(b.a)(e)?e:null},selectDay:function(t){var e=u.a.isNull(t)?new Date(0):t,r=this.hasFromDate&&Object(c.isBefore)(e,this.fromRawDate),n=this.getDateDistances(e,C),a=n.distanceToFromDate,i=n.distanceToToDate,o=!this.isToInputFieldExplicitlyFocused&&!this.isFromDateDisabled&&(this.isToDateDisabled||!this.hasFromDate||r||this.isFromInputFieldExplicitlyFocused||a<i),s=this.getUnverifiedRange(t,t,o),l=this.getValidRange(s),d=this.getUTCValidatedRange(l);this.fromRawDate=d.start,this.toRawDate=d.end,this.setFormattedDates(),this.emitFromDate({fromDate:this.fromRawDate}),this.emitToDate({toDate:this.toRawDate}),this.resetInputFocus()},selectMonth:function(t){this.currentMonth=t;var e=Object(y.a)(new Date(this.currentYear,this.currentMonth)),r=Object(c.isAfter)(this.earliestDate,e)?this.earliestDate:e,n=Object(d.a)(e),a=Object(c.isBefore)(this.latestDate,n)?this.latestDate:n,i=this.hasFromDate&&this.currentMonth<Object(g.a)(this.fromRawDate),o=this.getDateDistances(e,j),s=o.distanceToFromDate,u=o.distanceToToDate,l=!this.isToInputFieldExplicitlyFocused&&!this.isFromDateDisabled&&(this.isToDateDisabled||!this.hasFromDate||i||this.isFromInputFieldExplicitlyFocused||s<u),h=this.getUnverifiedRange(r,a,l),f=this.getValidRange(h,y.a,d.a),m=this.getUTCValidatedRange(f);this.fromRawDate=m.start,this.toRawDate=m.end,this.setFormattedDates(),this.emitFromDate({fromDate:this.fromRawDate}),this.emitToDate({toDate:this.toRawDate}),this.resetInputFocus()},selectQuarter:function(t){var e=p(new Date(this.currentYear,t)),r=Object(c.isAfter)(this.earliestDate,e)?this.earliestDate:e,n=f(new Date(this.currentYear,t)),a=Object(c.isBefore)(this.latestDate,n)?this.latestDate:n,i=u.a.isNull(e)?new Date(0):e,o=this.hasFromDate&&Object(c.isBefore)(i,this.fromRawDate),s=this.getDateDistances(i,C),l=s.distanceToFromDate,d=s.distanceToToDate,h=!this.isToInputFieldExplicitlyFocused&&!this.isFromDateDisabled&&(this.isToDateDisabled||!this.hasFromDate||o||this.isFromInputFieldExplicitlyFocused||l<d),m=this.getUnverifiedRange(r,a,h),g=this.getValidRange(m,p,f),w=this.getUTCValidatedRange(g);this.fromRawDate=w.start,this.toRawDate=w.end,this.setFormattedDates(),this.emitFromDate({fromDate:this.fromRawDate}),this.emitToDate({toDate:this.toRawDate}),this.resetInputFocus()},selectWeek:function(t){var e=this,r=t.fromDate,n=t.toDate,a=Object(c.isAfter)(this.earliestDate,r)?this.earliestDate:r,i=Object(c.isBefore)(this.latestDate,n)?this.latestDate:n,o=u.a.isNull(r)?new Date(0):r,s=this.hasFromDate&&Object(c.isBefore)(o,this.fromRawDate),d=this.getDateDistances(o,C),h=d.distanceToFromDate,f=d.distanceToToDate,m=!this.isToInputFieldExplicitlyFocused&&!this.isFromDateDisabled&&(this.isToDateDisabled||!this.hasFromDate||s||this.isFromInputFieldExplicitlyFocused||h<f),g=this.getUnverifiedRange(a,i,m),w=this.getValidRange(g,function(t){return Object(v.a)(t,{locale:e.locale})},function(t){return Object(l.a)(t,{locale:e.locale})}),b=this.getUTCValidatedRange(w);this.fromRawDate=b.start,this.toRawDate=b.end,this.setFormattedDates(),this.emitFromDate({fromDate:this.fromRawDate}),this.emitToDate({toDate:this.toRawDate}),this.resetInputFocus()},selectYear:function(t){this.currentYear=t;var e=new Date(this.currentYear,0),r=Object(c.isAfter)(this.earliestDate,e)?this.earliestDate:e,n=D(new Date(this.currentYear,0)),a=Object(c.isBefore)(this.latestDate,n)?this.latestDate:n,i=this.hasFromDate&&this.currentYear<Object(w.a)(this.fromRawDate),o=this.getDateDistances(e,j),s=o.distanceToFromDate,u=o.distanceToToDate,l=!this.isToInputFieldExplicitlyFocused&&!this.isFromDateDisabled&&(this.isToDateDisabled||!this.hasFromDate||i||this.isFromInputFieldExplicitlyFocused||s<u),d=this.getUnverifiedRange(r,a,l),h=this.getValidRange(d,T,D),f=this.getUTCValidatedRange(h);this.fromRawDate=f.start,this.toRawDate=f.end,this.setFormattedDates(),this.emitFromDate({fromDate:this.fromRawDate}),this.emitToDate({toDate:this.toRawDate}),this.resetInputFocus()},resetInputFocus:function(){this.isSomeInputFieldExplicitlyFocused=!1,this.lastInputFieldFocused=null},getDateDistances:function(t,e){return{distanceToFromDate:Math.abs(e(t,this.fromRawDate)),distanceToToDate:this.toRawDate?Math.abs(e(t,this.toRawDate)):0}},setEarliestDate:function(){if(this.earliestDate){this.showFromFormatError=!1,this.currentMonth=Object(g.a)(this.earliestDate),this.currentYear=Object(w.a)(this.earliestDate);var t=this.getUTCValidatedRange({start:this.earliestDate});this.fromRawDate=t.start,this.fromFormattedDate=this.formatDate(this.fromRawDate),this.emitFromDate({fromDate:this.fromRawDate})}},emitFromDate:function(t){var e=t.fromDate;this.$emit("emit-from-date",{fromDate:e})},setFormattedDates:function(){this.fromFormattedDate=this.fromRawDate?this.formatDate(this.fromRawDate):null,this.toFormattedDate=this.toRawDate?this.formatDate(this.toRawDate):null,Object(b.a)(this.fromRawDate)&&(this.showFromFormatError=!1),Object(b.a)(this.toRawDate)&&(this.showToFormatError=!1)},getUTCValidatedRange:function(t){return{start:t.start&&this.formatDateToUTC(Object(O.a)(t.start)),end:t.end&&this.formatDateToUTC(Object(O.a)(t.end))}},deleteFromFormattedDate:function(){this.fromFormattedDate="",this.fromRawDate=null,this.showFromFormatError=!1,this.emitFromDate({fromDate:this.fromRawDate})},deleteToFormattedDate:function(){this.toFormattedDate="",this.toRawDate=null,this.showToFormatError=!1,this.emitToDate({toDate:this.toRawDate})},setLatestDate:function(){if(this.latestDate){this.showToFormatError=!1,this.currentMonth=Object(g.a)(this.latestDate),this.currentYear=Object(w.a)(this.latestDate);var t=this.getUTCValidatedRange({end:this.latestDate});this.toRawDate=t.end,this.toFormattedDate=this.formatDate(this.toRawDate),this.emitToDate({toDate:this.toRawDate})}},emitToDate:function(t){var e=t.toDate;this.$emit("emit-to-date",{toDate:e})},focusFromDateInput:function(){this.isFromDateDisabled||(this.isSomeInputFieldExplicitlyFocused=!0,this.lastInputFieldFocused=c.FOCUSABLE_INPUT_FIELDS.FROM_DATE)},focusToDateInput:function(){this.isToDateDisabled||(this.isSomeInputFieldExplicitlyFocused=!0,this.lastInputFieldFocused=c.FOCUSABLE_INPUT_FIELDS.TO_DATE)},getUnverifiedRange:function(t,e,r){return r?{start:t,end:this.toRawDate}:{start:this.fromRawDate,end:e}},validateRange:function(t,e){var r=u.a.isNull(t)?new Date(0):t;return!e||Object(c.isBefore)(r,e)||Object(c.isEqual)(r,e)},getValidRange:function(t,e,r){var n=1<arguments.length&&void 0!==e?e:u.a.identity,a=2<arguments.length&&void 0!==r?r:u.a.identity,i=t;return this.validateRange(t.start,t.end)||(i=this.isToDateDisabled?{start:n(t.start),end:null}:this.isFromDateDisabled?{start:null,end:a(t.end)}:{start:n(t.end),end:a(t.start)}),i},highlightInputForDayUnit:function(t){if(!this.isSomeInputFieldExplicitlyFocused){var e=this.hasFromDate&&Object(c.isBefore)(t,this.fromRawDate),r=this.getDateDistances(t,C),n=r.distanceToFromDate,a=r.distanceToToDate,i=!this.isFromDateDisabled&&(this.isToDateDisabled||!this.hasFromDate||e||this.isFromInputFieldExplicitlyFocused||n<a);this.lastInputFieldFocused=i?c.FOCUSABLE_INPUT_FIELDS.FROM_DATE:c.FOCUSABLE_INPUT_FIELDS.TO_DATE}},highlightInputForMonthUnit:function(t){if(!this.isSomeInputFieldExplicitlyFocused){var e=new Date(Date.UTC(this.currentYear,t)),r=this.hasFromDate&&t<Object(g.a)(this.fromRawDate),n=this.getDateDistances(e,j),a=n.distanceToFromDate,i=n.distanceToToDate,o=!this.isFromDateDisabled&&(this.isToDateDisabled||!this.hasFromDate||r||this.isFromInputFieldExplicitlyFocused||a<i);this.lastInputFieldFocused=o?c.FOCUSABLE_INPUT_FIELDS.FROM_DATE:c.FOCUSABLE_INPUT_FIELDS.TO_DATE}},highlightInputForYearUnit:function(t){if(!this.isSomeInputFieldExplicitlyFocused){var e=new Date(t,0),r=this.hasFromDate&&t<Object(w.a)(this.fromRawDate),n=this.getDateDistances(e,j),a=n.distanceToFromDate,i=n.distanceToToDate,o=!this.isFromDateDisabled&&(this.isToDateDisabled||!this.hasFromDate||r||this.isFromInputFieldExplicitlyFocused||a<i);this.lastInputFieldFocused=o?c.FOCUSABLE_INPUT_FIELDS.FROM_DATE:c.FOCUSABLE_INPUT_FIELDS.TO_DATE}},formatDateToUTC:function(t){if(t)return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()))}}},Ut=r("KHd+"),St=Object(Ut.a)(Mt,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"geo-calendar"},[t.shouldRenderCalendarSidebar?r("div",{staticClass:"geo-calendar__sidebar-container"},[t._t("pickerGranularity"),t._v(" "),t._t("pickerAliases")],2):t._e(),t._v(" "),r("div",{staticClass:"geo-calendar__picker-controls"},[r("div",{staticClass:"geo-calendar__input-ranges"},[r("div",[r("geo-input",{attrs:{placeholder:t.fromInputPlaceholder,type:"text","read-only":t.isFromInputReadOnly,error:t.showFromFormatError,focus:t.isFromInputFieldFocused,disabled:t.isFromDateDisabled},on:{focus:t.focusFromDateInput,blur:t.applyFromFormattedDate,"delete-value":t.deleteFromFormattedDate},nativeOn:{click:function(e){return t.focusFromDateInput(e)}},model:{value:t.fromFormattedDate,callback:function(e){t.fromFormattedDate=e},expression:"fromFormattedDate"}}),t._v(" "),t.showFromFormatError?r("geo-input-message",{attrs:{slot:"message",variant:"error"},slot:"message"},[t._t("formatError")],2):t._e(),t._v(" "),t.showSetEarliestDateButton?r("geo-tertiary-button",{on:{click:t.setEarliestDate}},[t._t("earliestDatePlaceholder")],2):t._e()],1),t._v(" "),r("font-awesome-icon",{staticClass:"geo-calendar__input-range-icon",attrs:{icon:t.inputRangeIcon,"fixed-width":""}}),t._v(" "),r("div",[r("geo-input",{attrs:{placeholder:t.toInputPlaceholder,type:"text","read-only":t.isToInputReadOnly,error:t.showToFormatError,focus:t.isToInputFieldFocused,disabled:t.isToDateDisabled},on:{focus:t.focusToDateInput,blur:function(e){return t.applyToFormattedDate(e)},"delete-value":t.deleteToFormattedDate},nativeOn:{click:function(e){return t.focusToDateInput(e)}},model:{value:t.toFormattedDate,callback:function(e){t.toFormattedDate=e},expression:"toFormattedDate"}}),t._v(" "),t.showToFormatError?r("geo-input-message",{attrs:{slot:"message",variant:"error"},slot:"message"},[t._t("formatError")],2):t._e(),t._v(" "),t.showSetLatestDateButton?r("geo-tertiary-button",{on:{click:t.setLatestDate}},[t._t("latestDatePlaceholder")],2):t._e()],1)],1),t._v(" "),r("geo-calendar-picker",{ref:"calendarPicker",attrs:{"calendar-navigation-select-icon":t.calendarNavigationSelectIcon,"current-month":t.currentMonth,"current-year":t.currentYear,"current-initial-year-in-range":t.currentInitialYearInRange,"current-end-year-in-range":t.currentEndYearInRange,"earliest-date":t.earliestDate,"granularity-id":t.granularityId,"latest-date":t.latestDate,"next-date-in-selected-granularity-icon":t.nextDateInSelectedGranularityIcon,locale:t.locale,"picker-date-unit":t.pickerDateUnit,"previous-date-in-selected-granularity-icon":t.previousDateInSelectedGranularityIcon,"selected-from-day":t.fromRawDate,"selected-to-day":t.toRawDate},on:{"go-to-month":t.goToMonth,"go-to-year":t.goToYear,"go-to-year-range":t.goToYearRange,"select-day":function(e){return t.selectDay(e)},"select-month":t.selectMonth,"select-quarter":function(e){return t.selectQuarter(e)},"select-week":function(e){return t.selectWeek(e)},"select-year":function(e){return t.selectYear(e)},"day-unit-mouseover":function(e){return t.highlightInputForDayUnit(e)},"month-unit-mouseover":function(e){return t.highlightInputForMonthUnit(e)},"year-unit-mouseover":function(e){return t.highlightInputForYearUnit(e)}}})],1)])},[],!1,null,null,null);e.default=St.exports},"1vjI":function(t,e,r){"use strict";r.d(e,"a",function(){return i});var n=r("/h9T"),a=r("/Tr7");function i(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=e||{},i=r.locale,o=i&&i.options&&i.options.weekStartsOn,s=null==o?0:Object(n.a)(o),u=null==r.weekStartsOn?s:Object(n.a)(r.weekStartsOn);if(!(0<=u&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(a.a)(t),l=c.getUTCDay(),d=(l<u?7:0)+l-u;return c.setUTCDate(c.getUTCDate()-d),c.setUTCHours(0,0,0,0),c}},20:function(t,e,r){t.exports=r("1/CV")},"3REe":function(t,e,r){"use strict";r.d(e,"a",function(){return i}),r.d(e,"b",function(){return o}),r.d(e,"c",function(){return s});var n=["D","DD"],a=["YY","YYYY"];function i(t){return-1!==n.indexOf(t)}function o(t){return-1!==a.indexOf(t)}function s(t){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===t)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===t)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===t)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}},"9ig3":function(t,e,r){"use strict";r.d(e,"a",function(){return a});var n=r("/Tr7");function a(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object(n.a)(t);return e.setDate(1),e.setHours(0,0,0,0),e}},ErpD:function(t,e,r){"use strict";r.d(e,"a",function(){return u});var n=r("/Tr7"),a=r("1vjI"),i=r("/h9T"),o=r("Szzx"),s=6048e5;function u(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=Object(n.a)(t),u=Object(a.a)(r,e).getTime()-function(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=e||{},n=r.locale,s=n&&n.options&&n.options.firstWeekContainsDate,u=null==s?1:Object(i.a)(s),c=null==r.firstWeekContainsDate?u:Object(i.a)(r.firstWeekContainsDate),l=Object(o.a)(t,e),d=new Date(0);return d.setUTCFullYear(l,0,c),d.setUTCHours(0,0,0,0),Object(a.a)(d,e)}(r,e).getTime();return Math.round(u/s)+1}},FI6L:function(t,e,r){"use strict";e.a={props:{calendarNavigationSelectIcon:{type:Array,required:!1,default:function(){return["fal","chevron-down"]}},closeCalendarIcon:{type:Array,required:!1,default:function(){return["fal","times"]}},defaultFromDate:{type:Date,required:!1},defaultToDate:{type:Date,required:!1},earliestDate:{type:Date,required:!1},fromInputPlaceholder:{type:String,required:!1},initialDateInGrid:{type:Date,default:function(){return new Date}},inputRangeIcon:{type:Array,required:!1,default:function(){return["fal","arrow-right"]}},latestDate:{type:Date,required:!1},locale:{type:Object,required:!0},nextDateInSelectedGranularityIcon:{type:Array,required:!1,default:function(){return["fal","chevron-right"]}},previousDateInSelectedGranularityIcon:{type:Array,required:!1,default:function(){return["fal","chevron-left"]}},toInputPlaceholder:{type:String,required:!1},popupClass:{type:[String,Array,Object],required:!1},isFromDateDisabled:{type:Boolean,required:!1},isToDateDisabled:{type:Boolean,required:!1}}}},Ib5w:function(t,e,r){"use strict";function n(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function a(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}var i={p:a,P:function(t,e){var r,i=t.match(/(P+)(p+)?/),o=i[1],s=i[2];if(!s)return n(t,e);switch(o){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;case"PPPP":default:r=e.dateTime({width:"full"})}return r.replace("{{date}}",n(o,e)).replace("{{time}}",a(s,e))}};e.a=i},J4zp:function(t,e,r){var n=r("wTVA"),a=r("m0LI"),i=r("ZhPi"),o=r("wkBT");t.exports=function(t,e){return n(t)||a(t,e)||i(t,e)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},JCDJ:function(t,e,r){"use strict";r.d(e,"a",function(){return a});var n=6e4;function a(t){var e=new Date(t.getTime()),r=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var a=e.getTime()%n;return r*n+a}},"KHd+":function(t,e,r){"use strict";function n(t,e,r,n,a,i,o,s){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):a&&(u=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:c}}r.d(e,"a",function(){return n})},L8hi:function(t,e,r){"use strict";r.d(e,"a",function(){return i});var n=r("/Tr7"),a=r("/h9T");function i(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=e||{},i=r.locale,o=i&&i.options&&i.options.weekStartsOn,s=null==o?0:Object(a.a)(o),u=null==r.weekStartsOn?s:Object(a.a)(r.weekStartsOn);if(!(0<=u&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(n.a)(t),l=c.getDay(),d=6+(l<u?-7:0)-(l-u);return c.setDate(c.getDate()+d),c.setHours(23,59,59,999),c}},M34a:function(t,e,r){"use strict";r.d(e,"a",function(){return a});var n=r("/Tr7");function a(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object(n.a)(t);return e.setHours(0,0,0,0),e}},"Se/U":function(t,e,r){"use strict";r.d(e,"a",function(){return a});var n=r("/Tr7");function a(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object(n.a)(t);return!isNaN(e)}},Szzx:function(t,e,r){"use strict";r.d(e,"a",function(){return o});var n=r("/h9T"),a=r("/Tr7"),i=r("1vjI");function o(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=Object(a.a)(t,e),o=r.getUTCFullYear(),s=e||{},u=s.locale,c=u&&u.options&&u.options.firstWeekContainsDate,l=null==c?1:Object(n.a)(c),d=null==s.firstWeekContainsDate?l:Object(n.a)(s.firstWeekContainsDate);if(!(1<=d&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(o+1,0,d),h.setUTCHours(0,0,0,0);var f=Object(i.a)(h,e),m=new Date(0);m.setUTCFullYear(o,0,d),m.setUTCHours(0,0,0,0);var g=Object(i.a)(m,e);return r.getTime()>=f.getTime()?o+1:r.getTime()>=g.getTime()?o:o-1}},WkPL:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.__esModule=!0,t.exports.default=t.exports},YLtl:function(e,r){e.exports=t},ZhPi:function(t,e,r){var n=r("WkPL");t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},aetl:function(t,e,r){"use strict";r.d(e,"a",function(){return i});var n=r("/Tr7"),a=r("/h9T");function i(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=e||{},i=r.locale,o=i&&i.options&&i.options.weekStartsOn,s=null==o?0:Object(a.a)(o),u=null==r.weekStartsOn?s:Object(a.a)(r.weekStartsOn);if(!(0<=u&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(n.a)(t),l=c.getDay(),d=(l<u?7:0)+l-u;return c.setDate(c.getDate()-d),c.setHours(0,0,0,0),c}},cHAT:function(t,e,r){"use strict";r.d(e,"a",function(){return a});var n=r("/Tr7");function a(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(n.a)(t).getMonth()}},cnyc:function(t,e,r){"use strict";r.d(e,"a",function(){return a});var n=r("/Tr7");function a(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(n.a)(t).getFullYear()}},d60l:function(t,e,r){"use strict";r.r(e),r.d(e,"PICKER_DATE_UNITS",function(){return i}),r.d(e,"GRANULARITY_IDS",function(){return o}),r.d(e,"YEAR_GRID_CONSTANTS",function(){return s}),r.d(e,"DAY_GRID_CONSTANTS",function(){return u}),r.d(e,"MONTH_GRID_CONSTANTS",function(){return c}),r.d(e,"FOCUSABLE_INPUT_FIELDS",function(){return l}),r.d(e,"isDayUnavailable",function(){return d}),r.d(e,"isBefore",function(){return h}),r.d(e,"isAfter",function(){return f}),r.d(e,"isEqual",function(){return m}),r.d(e,"isWithinInterval",function(){return g});var n=r("/Tr7"),a=r("M34a"),i={day:"day",month:"month",year:"year"},o={day:"day",week:"week",month:"month",quarter:"quarter",year:"year"},s={MAX_YEAR:2099,MIN_YEAR:1970,YEARS_IN_GRID:16},u={TOTAL_DAYS_IN_WEEK:7,MONDAY_INDEX_IN_WEEK:1},c={NUMBER_OF_MONTHS_IN_GREGORIAN_CALENDAR:12},l={FROM_DATE:"FROM_DATE",TO_DATE:"TO_DATE"},d=function(t,e){return h(e,t.earliestDate)||f(e,t.latestDate)},h=function(t,e){return function(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(n.a)(t),a=Object(n.a)(e);return