@kissmy/vue-hotel-datepicker
Version:
A responsive date range picker for Vue.js that displays the number of nights selected and allow several useful options like custom check-in/check-out rules, localization support and more
2 lines • 101 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vueHotelDatepicker"]=e():t["vueHotelDatepicker"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="739c")}({"006d":function(t,e){e.f=Object.getOwnPropertySymbols},"00d2":function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},"019e":function(t,e,n){var i=n("38e0"),r=n("87ef"),o=n("ebce"),a=n("eacb").f,s=n("afee"),c=r((function(){a(1)})),u=!s||c;i({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},"0270":function(t,e){t.exports={}},"02a3":function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"036c":function(t,e,n){"use strict";var i=n("adfa"),r=n("923d"),o=RegExp.prototype.exec,a=String.prototype.replace,s=o,c=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),u=r.UNSUPPORTED_Y||r.BROKEN_CARET,h=void 0!==/()??/.exec("")[1],d=c||h||u;d&&(s=function(t){var e,n,r,s,d=this,l=u&&d.sticky,f=i.call(d),p=d.source,v=0,y=t;return l&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="g"),y=String(t).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==t[d.lastIndex-1])&&(p="(?: "+p+")",y=" "+y,v++),n=new RegExp("^(?:"+p+")",f)),h&&(n=new RegExp("^"+p+"$(?!\\s)",f)),c&&(e=d.lastIndex),r=o.call(l?n:d,y),l?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=d.lastIndex,d.lastIndex+=r[0].length):d.lastIndex=0:c&&r&&(d.lastIndex=d.global?r.index+r[0].length:e),h&&r&&r.length>1&&a.call(r[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(r[s]=void 0)})),r}),t.exports=s},"054c":function(t,e,n){"use strict";var i=n("38e0"),r=n("e924"),o=n("4733"),a=n("b85f"),s=n("800a"),c=n("b99c"),u=n("0994"),h=n("c7eb"),d=n("87ef"),l=n("796d"),f=n("9c17"),p=n("6916");t.exports=function(t,e,n){var v=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),g=v?"set":"add",m=r[t],k=m&&m.prototype,D=m,b={},w=function(t){var e=k[t];a(k,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!h(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!h(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!h(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(o(t,"function"!=typeof m||!(y||k.forEach&&!d((function(){(new m).entries().next()})))))D=n.getConstructor(e,t,v,g),s.REQUIRED=!0;else if(o(t,!0)){var O=new D,x=O[g](y?{}:-0,1)!=O,_=d((function(){O.has(1)})),I=l((function(t){new m(t)})),S=!y&&d((function(){var t=new m,e=5;while(e--)t[g](e,e);return!t.has(-0)}));I||(D=e((function(e,n){u(e,D,t);var i=p(new m,e,D);return void 0!=n&&c(n,i[g],i,v),i})),D.prototype=k,k.constructor=D),(_||S)&&(w("delete"),w("has"),v&&w("get")),(S||x)&&w(g),y&&k.clear&&delete k.clear}return b[t]=D,i({global:!0,forced:D!=m},b),f(D,t),y||n.setStrong(D,t,v),D}},"084e":function(t,e,n){"use strict";var i=n("ead5"),r=n.n(i);r.a},"0994":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"0ac2":function(t,e,n){var i=n("cf8d"),r=n("560f"),o="["+r+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),c=function(t){return function(e){var n=String(i(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},"0d2e":function(t,e,n){var i=n("afee"),r=n("d096"),o=n("b04a"),a=n("decd");t.exports=i?Object.defineProperties:function(t,e){o(t);var n,i=a(e),s=i.length,c=0;while(s>c)r.f(t,n=i[c++],e[n]);return t}},"11c4":function(t,e,n){"use strict";var i=n("38e0"),r=n("afee"),o=n("e924"),a=n("a04b"),s=n("c7eb"),c=n("d096").f,u=n("9ae9"),h=o.Symbol;if(r&&"function"==typeof h&&(!("description"in h.prototype)||void 0!==h().description)){var d={},l=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof l?new h(t):void 0===t?h():h(t);return""===t&&(d[e]=!0),e};u(l,h);var f=l.prototype=h.prototype;f.constructor=l;var p=f.toString,v="Symbol(test)"==String(h("test")),y=/^Symbol\((.*)\)[^)]+$/;c(f,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(a(d,t))return"";var n=v?e.slice(7,-1):e.replace(y,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:l})}},1652:function(t,e,n){var i=n("38e0"),r=n("ec5f"),o=n("796d"),a=!o((function(t){Array.from(t)}));i({target:"Array",stat:!0,forced:a},{from:r})},"1a06":function(t,e,n){"use strict";var i=n("38e0"),r=n("e924"),o=n("7b26"),a=n("ab27"),s=n("afee"),c=n("3bca"),u=n("5748"),h=n("87ef"),d=n("a04b"),l=n("8346"),f=n("c7eb"),p=n("b04a"),v=n("39d3"),y=n("ebce"),g=n("2523"),m=n("6559"),k=n("416b"),D=n("decd"),b=n("9457"),w=n("cb6f"),O=n("006d"),x=n("eacb"),_=n("d096"),I=n("5108"),S=n("3190"),T=n("b85f"),C=n("5807"),M=n("f22e"),P=n("6377"),E=n("2a07"),A=n("dc77"),N=n("d91a"),j=n("2991"),B=n("9c17"),H=n("b893"),Y=n("33e4").forEach,F=M("hidden"),R="Symbol",L="prototype",$=A("toPrimitive"),z=H.set,W=H.getterFor(R),V=Object[L],U=r.Symbol,q=o("JSON","stringify"),G=x.f,K=_.f,Z=w.f,X=I.f,J=C("symbols"),Q=C("op-symbols"),tt=C("string-to-symbol-registry"),et=C("symbol-to-string-registry"),nt=C("wks"),it=r.QObject,rt=!it||!it[L]||!it[L].findChild,ot=s&&h((function(){return 7!=k(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=G(V,e);i&&delete V[e],K(t,e,n),i&&t!==V&&K(V,e,i)}:K,at=function(t,e){var n=J[t]=k(U[L]);return z(n,{type:R,tag:t,description:e}),s||(n.description=e),n},st=u?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof U},ct=function(t,e,n){t===V&&ct(Q,e,n),p(t);var i=g(e,!0);return p(n),d(J,i)?(n.enumerable?(d(t,F)&&t[F][i]&&(t[F][i]=!1),n=k(n,{enumerable:m(0,!1)})):(d(t,F)||K(t,F,m(1,{})),t[F][i]=!0),ot(t,i,n)):K(t,i,n)},ut=function(t,e){p(t);var n=y(e),i=D(n).concat(pt(n));return Y(i,(function(e){s&&!dt.call(n,e)||ct(t,e,n[e])})),t},ht=function(t,e){return void 0===e?k(t):ut(k(t),e)},dt=function(t){var e=g(t,!0),n=X.call(this,e);return!(this===V&&d(J,e)&&!d(Q,e))&&(!(n||!d(this,e)||!d(J,e)||d(this,F)&&this[F][e])||n)},lt=function(t,e){var n=y(t),i=g(e,!0);if(n!==V||!d(J,i)||d(Q,i)){var r=G(n,i);return!r||!d(J,i)||d(n,F)&&n[F][i]||(r.enumerable=!0),r}},ft=function(t){var e=Z(y(t)),n=[];return Y(e,(function(t){d(J,t)||d(P,t)||n.push(t)})),n},pt=function(t){var e=t===V,n=Z(e?Q:y(t)),i=[];return Y(n,(function(t){!d(J,t)||e&&!d(V,t)||i.push(J[t])})),i};if(c||(U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=E(t),n=function(t){this===V&&n.call(Q,t),d(this,F)&&d(this[F],e)&&(this[F][e]=!1),ot(this,e,m(1,t))};return s&&rt&&ot(V,e,{configurable:!0,set:n}),at(e,t)},T(U[L],"toString",(function(){return W(this).tag})),T(U,"withoutSetter",(function(t){return at(E(t),t)})),I.f=dt,_.f=ct,x.f=lt,b.f=w.f=ft,O.f=pt,N.f=function(t){return at(A(t),t)},s&&(K(U[L],"description",{configurable:!0,get:function(){return W(this).description}}),a||T(V,"propertyIsEnumerable",dt,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:U}),Y(D(nt),(function(t){j(t)})),i({target:R,stat:!0,forced:!c},{for:function(t){var e=String(t);if(d(tt,e))return tt[e];var n=U(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(d(et,t))return et[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!s},{create:ht,defineProperty:ct,defineProperties:ut,getOwnPropertyDescriptor:lt}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ft,getOwnPropertySymbols:pt}),i({target:"Object",stat:!0,forced:h((function(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(v(t))}}),q){var vt=!c||h((function(){var t=U();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))}));i({target:"JSON",stat:!0,forced:vt},{stringify:function(t,e,n){var i,r=[t],o=1;while(arguments.length>o)r.push(arguments[o++]);if(i=e,(f(e)||void 0!==t)&&!st(t))return l(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!st(e))return e}),r[1]=e,q.apply(null,r)}})}U[L][$]||S(U[L],$,U[L].valueOf),B(U,R),P[F]=!0},2523:function(t,e,n){var i=n("c7eb");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},2991:function(t,e,n){var i=n("e2e6"),r=n("a04b"),o=n("d91a"),a=n("d096").f;t.exports=function(t){var e=i.Symbol||(i.Symbol={});r(e,t)||a(e,t,{value:o.f(t)})}},"2a07":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+i).toString(36)}},"308e":function(t,e,n){var i=n("7a50"),r=n("0270"),o=n("dc77"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||r[i(t)]}},3135:function(t,e,n){var i=n("38e0"),r=n("afee"),o=n("c892"),a=n("ebce"),s=n("eacb"),c=n("b668");i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){var e,n,i=a(t),r=s.f,u=o(i),h={},d=0;while(u.length>d)n=r(i,e=u[d++]),void 0!==n&&c(h,e,n);return h}})},3190:function(t,e,n){var i=n("afee"),r=n("d096"),o=n("6559");t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"31dc":function(t,e,n){var i=n("87ef"),r=n("924e"),o="".split;t.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?o.call(t,""):Object(t)}:Object},3363:function(t,e,n){"use strict";var i=n("bdf4").charAt,r=n("b893"),o=n("bd2a"),a="String Iterator",s=r.set,c=r.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=c(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=i(n,r),e.index+=t.length,{value:t,done:!1})}))},3399:function(t,e,n){var i=n("e924"),r=n("9959"),o=n("d299"),a=n("3190"),s=n("dc77"),c=s("iterator"),u=s("toStringTag"),h=o.values;for(var d in r){var l=i[d],f=l&&l.prototype;if(f){if(f[c]!==h)try{a(f,c,h)}catch(v){f[c]=h}if(f[u]||a(f,u,d),r[d])for(var p in o)if(f[p]!==o[p])try{a(f,p,o[p])}catch(v){f[p]=o[p]}}}},"33e4":function(t,e,n){var i=n("bf7c"),r=n("31dc"),o=n("39d3"),a=n("ba98"),s=n("eb77"),c=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,h=4==t,d=6==t,l=5==t||d;return function(f,p,v,y){for(var g,m,k=o(f),D=r(k),b=i(p,v,3),w=a(D.length),O=0,x=y||s,_=e?x(f,w):n?x(f,0):void 0;w>O;O++)if((l||O in D)&&(g=D[O],m=b(g,O,k),t))if(e)_[O]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return O;case 2:c.call(_,g)}else if(h)return!1;return d?-1:u||h?h:_}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},"374d":function(t,e,n){"use strict";var i=n("afee"),r=n("e924"),o=n("4733"),a=n("b85f"),s=n("a04b"),c=n("924e"),u=n("6916"),h=n("2523"),d=n("87ef"),l=n("416b"),f=n("9457").f,p=n("eacb").f,v=n("d096").f,y=n("0ac2").trim,g="Number",m=r[g],k=m.prototype,D=c(l(k))==g,b=function(t){var e,n,i,r,o,a,s,c,u=h(t,!1);if("string"==typeof u&&u.length>2)if(u=y(u),e=u.charCodeAt(0),43===e||45===e){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+u}for(o=u.slice(2),a=o.length,s=0;s<a;s++)if(c=o.charCodeAt(s),c<48||c>r)return NaN;return parseInt(o,i)}return+u};if(o(g,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,O=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof O&&(D?d((function(){k.valueOf.call(n)})):c(n)!=g)?u(new m(b(e)),n,O):b(e)},x=i?f(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;x.length>_;_++)s(m,w=x[_])&&!s(O,w)&&v(O,w,p(m,w));O.prototype=k,k.constructor=O,a(r,g,O)}},"38e0":function(t,e,n){var i=n("e924"),r=n("eacb").f,o=n("3190"),a=n("b85f"),s=n("8ee9"),c=n("9ae9"),u=n("4733");t.exports=function(t,e){var n,h,d,l,f,p,v=t.target,y=t.global,g=t.stat;if(h=y?i:g?i[v]||s(v,{}):(i[v]||{}).prototype,h)for(d in e){if(f=e[d],t.noTargetGet?(p=r(h,d),l=p&&p.value):l=h[d],n=u(y?d:v+(g?".":"#")+d,t.forced),!n&&void 0!==l){if(typeof f===typeof l)continue;c(f,l)}(t.sham||l&&l.sham)&&o(f,"sham",!0),a(h,d,f,t)}}},"391e":function(t,e,n){var i=n("924e"),r=n("036c");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"39d3":function(t,e,n){var i=n("cf8d");t.exports=function(t){return Object(i(t))}},"3bca":function(t,e,n){var i=n("87ef");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},"3dd5":function(t,e,n){"use strict";var i=n("38e0"),r=n("33e4").filter,o=n("4c7a"),a=n("effa"),s=o("filter"),c=a("filter");i({target:"Array",proto:!0,forced:!s||!c},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},"416b":function(t,e,n){var i,r=n("b04a"),o=n("0d2e"),a=n("02a3"),s=n("6377"),c=n("46d3"),u=n("ef77"),h=n("f22e"),d=">",l="<",f="prototype",p="script",v=h("IE_PROTO"),y=function(){},g=function(t){return l+p+d+t+l+"/"+p+d},m=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},k=function(){var t,e=u("iframe"),n="java"+p+":";return e.style.display="none",c.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},D=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(e){}D=i?m(i):k();var t=a.length;while(t--)delete D[f][a[t]];return D()};s[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(y[f]=r(t),n=new y,y[f]=null,n[v]=t):n=D(),void 0===e?n:o(n,e)}},4223:function(t,e,n){"use strict";var i=n("e721"),r=n("7a50");t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},4243:function(t,e,n){"use strict";n("8d8a");var i=n("b85f"),r=n("87ef"),o=n("dc77"),a=n("036c"),s=n("3190"),c=o("species"),u=!r((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){return"$0"==="a".replace(/./,"$0")}(),d=o("replace"),l=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),f=!r((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,d){var p=o(t),v=!r((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),y=v&&!r((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return e=!0,null},n[p](""),!e}));if(!v||!y||"replace"===t&&(!u||!h||l)||"split"===t&&!f){var g=/./[p],m=n(p,""[t],(function(t,e,n,i,r){return e.exec===a?v&&!r?{done:!0,value:g.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),{REPLACE_KEEPS_$0:h,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:l}),k=m[0],D=m[1];i(String.prototype,t,k),i(RegExp.prototype,p,2==e?function(t,e){return D.call(t,this,e)}:function(t){return D.call(t,this)})}d&&s(RegExp.prototype[p],"sham",!0)}},"452e":function(t,e,n){var i=n("afee"),r=n("d096").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,c="name";i&&!(c in o)&&r(o,c,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},"46d3":function(t,e,n){var i=n("7b26");t.exports=i("document","documentElement")},4733:function(t,e,n){var i=n("87ef"),r=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==u||n!=c&&("function"==typeof e?i(e):!!e)},a=o.normalize=function(t){return String(t).replace(r,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},"483d":function(t,e,n){var i=n("ab8d");t.exports=function(t){if(i(t))throw TypeError("The method doesn't accept regular expressions");return t}},"4a51":function(t,e,n){"use strict";var i=n("054c"),r=n("6665");t.exports=i("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},"4c7a":function(t,e,n){var i=n("87ef"),r=n("dc77"),o=n("b431"),a=r("species");t.exports=function(t){return o>=51||!i((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"4cc3":function(t,e,n){"use strict";var i=n("38e0"),r=n("33e4").map,o=n("4c7a"),a=n("effa"),s=o("map"),c=a("map");i({target:"Array",proto:!0,forced:!s||!c},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},"4f10":function(t,e,n){var i=n("b85f");t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},"4f10e":function(t,e,n){var i=n("dc77"),r=i("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(i){}}return!1}},5108:function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},5227:function(t,e,n){var i=n("38e0"),r=n("39d3"),o=n("decd"),a=n("87ef"),s=a((function(){o(1)}));i({target:"Object",stat:!0,forced:s},{keys:function(t){return o(r(t))}})},"52cf":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},"540f":function(t,e,n){var i=n("87ef");t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"560f":function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},5748:function(t,e,n){var i=n("3bca");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5807:function(t,e,n){var i=n("ab27"),r=n("97d2");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"5a44":function(t,e,n){"use strict";var i,r,o,a=n("cdeb"),s=n("3190"),c=n("a04b"),u=n("dc77"),h=n("ab27"),d=u("iterator"),l=!1,f=function(){return this};[].keys&&(o=[].keys(),"next"in o?(r=a(a(o)),r!==Object.prototype&&(i=r)):l=!0),void 0==i&&(i={}),h||c(i,d)||s(i,d,f),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:l}},"61f6":function(t,e,n){var i=n("ebce"),r=n("ba98"),o=n("7ab2"),a=function(t){return function(e,n,a){var s,c=i(e),u=r(c.length),h=o(a,u);if(t&&n!=n){while(u>h)if(s=c[h++],s!=s)return!0}else for(;u>h;h++)if((t||h in c)&&c[h]===n)return t||h||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},6377:function(t,e){t.exports={}},6387:function(t,e,n){var i=n("87ef");t.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},6466:function(t,e,n){var i=n("dc77"),r=n("416b"),o=n("d096"),a=i("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},"653f":function(t,e,n){var i=n("b04a"),r=n("9648"),o=n("dc77"),a=o("species");t.exports=function(t,e){var n,o=i(t).constructor;return void 0===o||void 0==(n=i(o)[a])?e:r(n)}},6559:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6665:function(t,e,n){"use strict";var i=n("d096").f,r=n("416b"),o=n("4f10"),a=n("bf7c"),s=n("0994"),c=n("b99c"),u=n("bd2a"),h=n("72dd"),d=n("afee"),l=n("800a").fastKey,f=n("b893"),p=f.set,v=f.getterFor;t.exports={getConstructor:function(t,e,n,u){var h=t((function(t,i){s(t,h,e),p(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),d||(t.size=0),void 0!=i&&c(i,t[u],t,n)})),f=v(e),y=function(t,e,n){var i,r,o=f(t),a=g(t,e);return a?a.value=n:(o.last=a={index:r=l(e,!0),key:e,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),d?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},g=function(t,e){var n,i=f(t),r=l(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==e)return n};return o(h.prototype,{clear:function(){var t=this,e=f(t),n=e.index,i=e.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;e.first=e.last=void 0,d?e.size=0:t.size=0},delete:function(t){var e=this,n=f(e),i=g(e,t);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==i&&(n.first=r),n.last==i&&(n.last=o),d?n.size--:e.size--}return!!i},forEach:function(t){var e,n=f(this),i=a(t,arguments.length>1?arguments[1]:void 0,3);while(e=e?e.next:n.first){i(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!g(this,t)}}),o(h.prototype,n?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),d&&i(h.prototype,"size",{get:function(){return f(this).size}}),h},setStrong:function(t,e,n){var i=e+" Iterator",r=v(e),o=v(i);u(t,e,(function(t,e){p(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){var t=o(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),h(e)}}},6916:function(t,e,n){var i=n("c7eb"),r=n("77c1");t.exports=function(t,e,n){var o,a;return r&&"function"==typeof(o=e.constructor)&&o!==n&&i(a=o.prototype)&&a!==n.prototype&&r(t,a),t}},"6c80":function(t,e,n){(function(e){var n="Expected a function",i=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,h="object"==typeof e&&e&&e.Object===Object&&e,d="object"==typeof self&&self&&self.Object===Object&&self,l=h||d||Function("return this")(),f=Object.prototype,p=f.toString,v=Math.max,y=Math.min,g=function(){return l.Date.now()};function m(t,e,i){var r,o,a,s,c,u,h=0,d=!1,l=!1,f=!0;if("function"!=typeof t)throw new TypeError(n);function p(e){var n=r,i=o;return r=o=void 0,h=e,s=t.apply(i,n),s}function m(t){return h=t,c=setTimeout(w,e),d?p(t):s}function k(t){var n=t-u,i=t-h,r=e-n;return l?y(r,a-i):r}function b(t){var n=t-u,i=t-h;return void 0===u||n>=e||n<0||l&&i>=a}function w(){var t=g();if(b(t))return x(t);c=setTimeout(w,k(t))}function x(t){return c=void 0,f&&r?p(t):(r=o=void 0,s)}function _(){void 0!==c&&clearTimeout(c),h=0,r=u=o=c=void 0}function I(){return void 0===c?s:x(g())}function S(){var t=g(),n=b(t);if(r=arguments,o=this,u=t,n){if(void 0===c)return m(u);if(l)return c=setTimeout(w,e),p(u)}return void 0===c&&(c=setTimeout(w,e)),s}return e=O(e)||0,D(i)&&(d=!!i.leading,l="maxWait"in i,a=l?v(O(i.maxWait)||0,e):a,f="trailing"in i?!!i.trailing:f),S.cancel=_,S.flush=I,S}function k(t,e,i){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError(n);return D(i)&&(r="leading"in i?!!i.leading:r,o="trailing"in i?!!i.trailing:o),m(t,e,{leading:r,maxWait:e,trailing:o})}function D(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function b(t){return!!t&&"object"==typeof t}function w(t){return"symbol"==typeof t||b(t)&&p.call(t)==r}function O(t){if("number"==typeof t)return t;if(w(t))return i;if(D(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=D(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=s.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):a.test(t)?i:+t}t.exports=k}).call(this,n("52cf"))},"6de1":function(t,e,n){"use strict";var i=n("38e0"),r=n("483d"),o=n("cf8d"),a=n("4f10e");i({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(o(this)).indexOf(r(t),arguments.length>1?arguments[1]:void 0)}})},"6fda":function(t,e,n){"use strict";var i=n("38e0"),r=n("e9a7");i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},7019:function(t,e,n){"use strict";var i=n("38e0"),r=n("c7eb"),o=n("8346"),a=n("7ab2"),s=n("ba98"),c=n("ebce"),u=n("b668"),h=n("dc77"),d=n("4c7a"),l=n("effa"),f=d("slice"),p=l("slice",{ACCESSORS:!0,0:0,1:2}),v=h("species"),y=[].slice,g=Math.max;i({target:"Array",proto:!0,forced:!f||!p},{slice:function(t,e){var n,i,h,d=c(this),l=s(d.length),f=a(t,l),p=a(void 0===e?l:e,l);if(o(d)&&(n=d.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[v],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return y.call(d,f,p);for(i=new(void 0===n?Array:n)(g(p-f,0)),h=0;f<p;f++,h++)f in d&&u(i,h,d[f]);return i.length=h,i}})},"72dd":function(t,e,n){"use strict";var i=n("7b26"),r=n("d096"),o=n("dc77"),a=n("afee"),s=o("species");t.exports=function(t){var e=i(t),n=r.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},"739c":function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var i=window.document.currentScript,r=n("cb6d");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var o=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("div",{ref:"DatePicker-"+t.hash,staticClass:"vhd-datepicker__wrapper",class:{"vhd-datepicker__wrapper--grid":t.gridStyle,"vhd-datepicker__wrapper--booking":t.bookings.length>0,datepicker__fullview:t.alwaysVisible}},[t.isOpen?n("div",{staticClass:"vhd-datepicker__close-button -vhd-hide-on-desktop",on:{click:t.closeMobileDatepicker}},[n("i",[t._v("+")])]):t._e(),n("div",{staticClass:"vhd-datepicker__dummy-wrapper",class:{"vhd-datepicker__dummy-wrapper--is-active":t.isOpen}},[n("date-input",{attrs:{i18n:t.i18n,"input-date":t.formatDate(t.checkIn),"input-date-type":"check-in","is-open":t.isOpen,"toggle-datepicker":t.toggleDatepicker,"single-day-selection":t.singleDaySelection}}),t.singleDaySelection?t._e():n("date-input",{attrs:{i18n:t.i18n,"input-date":t.formatDate(t.checkOut),"input-date-type":"check-out","is-open":t.isOpen,"toggle-datepicker":t.toggleDatepicker,"single-day-selection":t.singleDaySelection}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showClearSelectionButton,expression:"showClearSelectionButton"}],staticClass:"vhd-datepicker__clear-button",attrs:{tabindex:"0"},on:{click:t.clearSelection}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 68"}},[n("path",{attrs:{d:"M6.5 6.5l55 55M61.5 6.5l-55 55"}})])]),n("div",{staticClass:"vhd-datepicker",class:{"vhd-datepicker--open":t.isOpen&&!t.alwaysVisible,"vhd-datepicker--closed":!t.isOpen&&!t.alwaysVisible,"vhd-datepicker--right":t.positionRight}},[n("div",{staticClass:"-vhd-hide-on-desktop"},[t.isOpen?n("div",{staticClass:"vhd-datepicker__dummy-wrapper vhd-datepicker__dummy-wrapper--no-border",class:{"vhd-datepicker__dummy-wrapper--is-active":t.isOpen},on:{click:t.toggleDatepicker}},[n("div",{staticClass:"vhd-datepicker__input",class:{"vhd-datepicker__dummy-input--is-active":t.isOpen&&null==t.checkIn},attrs:{tabindex:"0",type:"button"}},[t._v(" "+t._s(""+(t.checkIn?t.dateFormater(t.checkIn):t.i18n["check-in"]))+" ")]),n("div",{staticClass:"vhd-datepicker__input",class:{"vhd-datepicker__dummy-input--is-active":t.isOpen&&null==t.checkOut&&null!==t.checkIn},attrs:{tabindex:"0",type:"button"}},[t._v(" "+t._s(""+(t.checkOut?t.dateFormater(t.checkOut):t.i18n["check-out"]))+" ")])]):t._e()]),t.isOpen||t.alwaysVisible?n("div",{staticClass:"vhd-datepicker__inner"},[n("div",{staticClass:"vhd-datepicker__header"},[n("button",{staticClass:"vhd-datepicker__month-button vhd-datepicker__month-button--prev -vhd-hide-up-to-tablet",attrs:{type:"button",tabindex:t.isOpen?0:-1,disabled:0===t.activeMonthIndex},on:{click:t.renderPreviousMonth,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),e.preventDefault(),t.renderPreviousMonth(e))}}}),n("button",{staticClass:"vhd-datepicker__month-button vhd-datepicker__month-button--next -vhd-hide-up-to-tablet",attrs:{type:"button",disabled:t.isPreventedMaxMonth,tabindex:t.isOpen?0:-1},on:{click:t.renderNextMonth,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),e.preventDefault(),t.renderNextMonth(e))}}})]),"desktop"===t.screenSize||t.alwaysVisible?n("div",{staticClass:"vhd-datepicker__months",class:{"vhd-datepicker__months--full":t.showSingleMonth}},t._l(t.paginateDesktop,(function(e,i){return n("div",{key:t.datepickerMonthKey+"-"+e,ref:"datepickerMonth",refInFor:!0,staticClass:"vhd-datepicker__month"},[n("p",{staticClass:"vhd-datepicker__month-name"},[t._v(" "+t._s(t.getMonth(t.months[t.activeMonthIndex+e].days[15].date))+" ")]),n("div",{staticClass:"vhd-datepicker__week-row -vhd-hide-up-to-tablet"},t._l(t.i18n["day-names"],(function(e,i){return n("div",{key:t.datepickerWeekKey+"-"+i,staticClass:"vhd-datepicker__week-name"},[t._v(" "+t._s(e)+" ")])})),0),t._l(t.months[t.activeMonthIndex+e].days,(function(e,r){return n("div",{key:t.datepickerDayKey+"-"+i+"-"+r,staticClass:"vhd-square",on:{mouseenter:function(n){return t.mouseEnterDay(e)}}},[n("Day",{attrs:{activeMonthIndex:t.activeMonthIndex,belongsToThisMonth:e.belongsToThisMonth,bookings:t.sortBookings,checkIn:t.checkIn,checkIncheckOutHalfDay:t.checkIncheckOutHalfDay,checkInPeriod:t.checkInPeriod,checkOut:t.checkOut,date:e.date,disableCheckoutOnCheckin:t.disableCheckoutOnCheckin,duplicateBookingDates:t.duplicateBookingDates,hoveringDate:t.hoveringDate,hoveringPeriod:t.hoveringPeriod,i18n:t.i18n,isOpen:t.isOpen,minNightCount:t.minNightCount,nextDisabledDate:t.nextDisabledDate,nextPeriodDisableDates:t.nextPeriodDisableDates,options:t.$props,screenSize:t.screenSize,showCustomTooltip:t.showCustomTooltip,showPrice:t.showPrice,sortedDisabledDates:t.sortedDisabledDates,sortedPeriodDates:t.sortedPeriodDates,tooltipMessage:t.customTooltipMessage},on:{clearSelection:t.clearSelection,bookingClicked:t.handleBookingClicked,dayClicked:t.handleDayClick}})],1)}))],2)})),0):t._e(),"desktop"!==t.screenSize&&t.isOpen&&!t.alwaysVisible?n("div",{class:{"vhd-show-tooltip":t.showCustomTooltip&&t.hoveringTooltip}},[t.hoveringTooltip?n("div",{staticClass:"vhd-datepicker__tooltip--mobile"},[t.customTooltipMessage?[t._v(" "+t._s(t.cleanString(t.customTooltipMessage))+" ")]:t._e()],2):t._e(),n("div",{staticClass:"vhd-datepicker__week-row"},t._l(this.i18n["day-names"],(function(e,i){return n("div",{key:t.datepickerWeekKey+i,staticClass:"vhd-datepicker__week-name"},[t._v(" "+t._s(e)+" ")])})),0),n("div",{ref:"swiperWrapper",staticClass:"vhd-datepicker__months",attrs:{id:"swiperWrapper"}},t._l(t.months,(function(e,i){return n("div",{key:t.datepickerMonthKey+"-"+i,ref:"datepickerMonth",refInFor:!0,staticClass:"vhd-datepicker__month"},[n("p",{staticClass:"vhd-datepicker__month-name"},[t._v(" "+t._s(t.getMonth(t.months[i].days[15].date))+" ")]),n("div",{staticClass:"vhd-datepicker__week-row -vhd-hide-up-to-tablet"},t._l(t.i18n["day-names"],(function(e,i){return n("div",{key:"datepicker__month-name-datepicker__week-name-"+i,staticClass:"vhd-datepicker__week-name"},[t._v(" "+t._s(e)+" ")])})),0),t._l(t.months[i].days,(function(e,r){return n("div",{key:t.datepickerDayKey+"-"+i+"-"+r,staticClass:"vhd-square",on:{mouseenter:function(n){return t.mouseEnterDay(e)}}},[n("Day",{attrs:{activeMonthIndex:t.activeMonthIndex,belongsToThisMonth:e.belongsToThisMonth,bookings:t.sortBookings,checkIn:t.checkIn,checkIncheckOutHalfDay:t.checkIncheckOutHalfDay,checkInPeriod:t.checkInPeriod,checkOut:t.checkOut,date:e.date,disableCheckoutOnCheckin:t.disableCheckoutOnCheckin,duplicateBookingDates:t.duplicateBookingDates,hoveringDate:t.hoveringDate,hoveringPeriod:t.hoveringPeriod,i18n:t.i18n,isOpen:t.isOpen,minNightCount:t.minNightCount,nextDisabledDate:t.nextDisabledDate,nextPeriodDisableDates:t.nextPeriodDisableDates,options:t.$props,screenSize:t.screenSize,showPrice:t.showPrice,sortedDisabledDates:t.sortedDisabledDates,sortedPeriodDates:t.sortedPeriodDates,tooltipMessage:t.customTooltipMessage},on:{clearSelection:t.clearSelection,bookingClicked:t.handleBookingClicked,dayClicked:t.handleDayClick}})],1)}))],2)})),0)]):t._e(),t._t("content")],2):t._e()])]):t._e()},s=[];n("e168"),n("3dd5"),n("a6a9"),n("6fda"),n("d987"),n("d299"),n("e224"),n("4cc3"),n("8b03"),n("7019"),n("374d"),n("5227"),n("90c8"),n("8d8a"),n("4a51"),n("6de1"),n("3363"),n("9d08"),n("b7ea"),n("f2e9"),n("3399"),n("1a06"),n("019e"),n("3135");function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function l(t){if(Array.isArray(t))return d(t)}n("11c4"),n("8c2f"),n("1652");function f(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n("452e"),n("fa87");function p(t,e){if(t){if("string"===typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(t){return l(t)||f(t)||p(t)||v()}var g=n("6c80"),m=n.n(g),k=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,D="[1-9]\\d?",b="\\d\\d",w="\\d{3}",O="\\d{4}",x="[^\\s]+",_=/\[([^]*?)\]/gm;function I(t,e){for(var n=[],i=0,r=t.length;i<r;i++)n.push(t[i].substr(0,e));return n}var S=function(t){return function(e,n){var i=n[t].map((function(t){return t.toLowerCase()})),r=i.indexOf(e.toLowerCase());return r>-1?r:null}};function T(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,r=e;i<r.length;i++){var o=r[i];for(var a in o)t[a]=o[a]}return t}var C=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],M=["January","February","March","April","May","June","July","August","September","October","November","December"],P=I(M,3),E=I(C,3),A={dayNamesShort:E,dayNames:C,monthNamesShort:P,monthNames:M,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},N=T({},A),j=function(t){return N=T(N,t)},B=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},H=function(t,e){void 0===e&&(e=2),t=String(t);while(t.length<e)t="0"+t;return t},Y={D:function(t){return String(t.getDate())},DD:function(t){return H(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return H(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return H(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return H(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return H(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return H(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return H(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return H(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return H(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return H(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return H(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+H(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+H(Math.floor(Math.abs(e)/60),2)+":"+H(Math.abs(e)%60,2)}},F=function(t){return+t-1},R=[null,D],L=[null,x],$=["isPm",x,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],z=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],W={D:["day",D],DD:["day",b],Do:["day",D+x,function(t){return parseInt(t,10)}],M:["month",D,F],MM:["month",b,F],YY:["year",b,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",D,void 0,"isPm"],hh:["hour",b,void 0,"isPm"],H:["hour",D],HH:["hour",b],m:["minute",D],mm:["minute",b],s:["second",D],ss:["second",b],YYYY:["year",O],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",b,function(t){return 10*+t}],SSS:["millisecond",w],d:R,dd:R,ddd:L,dddd:L,MMM:["month",x,S("monthNamesShort")],MMMM:["month",x,S("monthNames")],a:$,A:$,ZZ:z,Z:z},V={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},U=function(t){return T(V,t)},q=function(t,e,n){if(void 0===e&&(e=V["default"]),void 0===n&&(n={}),"number"===typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=V[e]||e;var i=[];e=e.replace(_,(function(t,e){return i.push(e),"@@@"}));var r=T(T({},N),n);return e=e.replace(k,(function(e){return Y[e](t,r)})),e.replace(/@@@/g,(function(){return i.shift()}))};function G(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=V[e]||e,t.length>1e3)return null;var i=new Date,r={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],a=[],s=e.replace(_,(function(t,e){return a.push(B(e)),"@@@"})),c={},u={};s=B(s).replace(k,(function(t){var e=W[t],n=e[0],i=e[1],r=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,r&&(u[r]=!0),o.push(e),"("+i+")"})),Object.keys(u).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),s=s.replace(/@@@/g,(function(){return a.shift()}));var h=t.match(new RegExp(s,"i"));if(!h)return null;for(var d=T(T({},N),n),l=1;l<h.length;l++){var f=o[l-1],p=f[0],v=f[2],y=v?v(h[l],d):+h[l];if(null==y)return null;r[p]=y}1===r.isPm&&null!=r.hour&&12!==+r.hour?r.hour=+r.hour+12:0===r.isPm&&12===+r.hour&&(r.hour=0);for(var g=new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond),m=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],D=(l=0,m.length);l<D;l++)if(c[m[l][0]]&&r[m[l][0]]!==g[m[l][1]]())return null;return null==r.timezoneOffset?g:new Date(Date.UTC(r.year,r.month,r.day,r.hour,r.minute-r.timezoneOffset,r.second,r.millisecond))}var K={format:q,parse:G,defaultI18n:A,setGlobalDateI18n:j,setGlobalDateMasks:U},Z=K,X=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.showTooltip&&t.options.hoveringTooltip?n("div",{staticClass:"vhd-datepicker__tooltip",domProps:{innerHTML:t._s(t.tooltipMessageDisplay)}}):t._e(),n("div",{ref:"day",staticClass:"vhd-datepicker__month-day",class:[t.dayClass,t.checkinCheckoutClass,t.bookingClass,{"vhd-datepicker__month-day--today":t.isToday}],attrs:{tabindex:t.tabIndex},on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.dayClicked(e,t.date)}}},[n("div",{staticClass:"vhd-datepicker__month-day-wrapper"},[n("span",[t._v(t._s(t.dayNumber))]),t.showPrice&&t.dayPrice?n("strong",{staticStyle:{"font-size":"10px"}},[t._v(" "+t._s(t.dayPrice)+" ")]):t._e()])]),t.currentBooking&&t.belongsToThisMonth&&!t.isDisabled?n("BookingBullet",{attrs:{currentBooking:t.currentBooking,duplicateBookingDates:t.duplicateBookingDates,formatDate:t.formatDate,previousBooking:t.previousBooking}}):t._e()],1)},J=[],Q=(n("a18d"),{getNextDate:function(t,e){var n=new Date(e),i=1/0;return t.forEach((function(t){var e=new Date(t);e>=n&&e<i&&(i=t)})),i===1/0?null:i},nextDateByDayOfWeek:function(t,e){for(var n=new Date(e),i=t.toLowerCase(),r=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],o=n.getDay(),a=7;a--;)if(i===r[a]){i=a<=o?a+7:a;break}var s=i-o;return n.setDate(n.getDate()+s)},nextDateByDayOfWeekArray:function(t,e){for(var n=[],i=0;i<t.length;i++)n.push(new Date(this.nextDateByDayOfWeek(t[i],e)));return this.getNextDate(n,e)},countDays:function(t,e){var n=864e5,i=new Date(t),r=new Date(e);return Math.round(Math.abs((i.getTime()-r.getTime())/n))},addDays:function(t,e){var n=new Date(t);return n.setDate(n.getDate()+e),n},getDayDiff:function(t,e){var n=new Date(e).getTime(),i=new Date(t).getTime();return parseInt((n-i)/864e5,10)},getFirstDay:function(t,e){var n=this.getFirstDayOfMonth(t),i=0;return e>0&&(i=0===n.getDay()?-7+e:e),new Date(n.setDate(n.getDate()-(n.getDay()-i)))},getFirstDayOfMonth:function(t){return new Date(t.getFullYear(),t.getMonth(),1)},getNextMonth:function(t){var e;return e=11===t.getMonth()?new Date(t.getFullYear()+1,0,1):new Date(t.getFullYear(),t.getMonth()+1,1),e},handleTouchStart:function(t){this.isTouchMove=!1,this.isOpen&&(this.xDown=t.touches[0].clientX,this.yDown=t.touches[0].clientY)},handleTouchMove:function(t){this.xDown&&this.yDown?(this.isTouchMove=!0,this.xUp=t.touches[0].clientX,this.yUp=t.touches[0].clientY):this.isTouchMove=!1},handleTouchEnd:function(){if(this.isTouchMove&&this.xDown&&this.yDown){var t=this.xDown-this.xUp,e=this.yDown-this.yUp;Math.abs(t)<Math.abs(e)&&e>0&&!this.isPreventedMaxMonth?this.renderNextMonth():this.renderPreviousMonth(),this.xDown=null,this.yDown=null}},validateDateBetweenTwoDates:function(t,e,n){var i=function(t){var e=new Date(t).setHours(0,0,0,0);return new Date(e)};return i(n)<=i(e)&&i(n)>=i(t)},validateDateBetweenDate:function(t,e){var n=function(t){return new Date(t)};return n(e)<=n(t)},getMonthDiff:function(t,e){var n=new Date(t),i=new Date(e),r=n.getFullYear(),o=i.getFullYear(),a=n.getMonth(),s=i.getMonth();return s+12*o-(a+12*r)},shortenString:function(t,e){for(var n=[],i=0,r=t.length;i<r;i++)n.push(t[i].substr(0,e));return n},getDaysArray:function(t,e){for(var n=[],i=new Date(t);i<=e;i.setDate(i.getDate()+1))n.push(new Date(i));return n},dateFormater:function(t,e){var n=e||"YYYY-MM-DD";return t?Z.format(t,n):""},pluralize:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"night";return"week"===e?t>7?this.i18n.weeks:this.i18n.week:1!==t?this.i18n.nights:this.i18n.night},isDateLessOrEquals:function(t,e){return new Date(t)<new Date(e)},compareDay:function(t,e){var n=Z.format(new Date(t),"YYYYMMDD"),i=Z.format(new Date(e),"YYYYMMDD");return n>i?1:n===i?0:n<i?-1:null}}),tt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("i",{staticClass:"vhd-parent-bullet"},[t.previousBooking&&t.duplicateBookingDates.includes(t.formatDate)?n("i",{staticClass:"vhd-bullet",class:[{checkInCheckOut:t.duplicateBookingDates.includes(t.formatDate)}],style:t.previousBooking.style}):t._e(),t.previousBooking&&t.duplicateBookingDates.includes(t.formatDate)?n("i",{staticClass:"vhd-pipe vhd-checkInCheckOut",style:t.previousBooking.style}):t._e(),!t.currentBooking||t.currentBooking.checkInDate!==t.formatDate&&t.currentBooking.checkOutDate!==t.formatDate?t._e():n("i",{staticClass:"vhd-bullet",class:[{checkIn:t.currentBooking.checkInDate===t.formatDate,checkOut:t.currentBooking.checkOutDate===t.formatDate}],style:t.currentBooking.style}),t.currentBooking?n("i",{staticClass:"vhd-pipe",class:[{checkIn:t.currentBooking.checkInDate===t.formatDate,checkOut:t.currentBooking.checkOutDate===t.formatDate}],style:t.currentBooking.style}):t._e()])},et=[],nt={name:"BookingBullet",props:{currentBooking:{type:Object,default:function(){return{}}},duplicateBookingDates:{type:Array,default:function(){return[]}},formatDate:{type:String,default:""},previousBooking:{type:Object,default:function(){return{}}}}},it=nt;function rt(t,e,n,i,r,o,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):r&&(c=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var h=u.render;u.render=function(t,e){return c.call(e),h(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:u}}var ot=rt(it,tt,et,!1,null,null,null),at=ot.exports,st={name:"Day",components:{BookingBullet:at},props:{bookings:{type:Array,default:function(){return[]}},activeMonthIndex:{type:Number},belongsToThisMonth:{type:Boolean,default:!1},checkIn:{type:Date},checkIncheckOutHalfDay:{type:Object,default:function(){return{}}},checkInPeriod:{type:Object,default:function(){return{}}},checkOut:{type:Date},date:{type:Date},disableCheckoutOnCheckin:{type:Boolean,default:!1},duplicateBookingDates:{type:Array,default:function(){return[]}},hoveringDate:{type:Date},hoveringPeriod:{type:Object,default:function(){return{}}},hoveringTooltip:{default:!0,type:Boolean},i18n:{type:Object,default:function(){return{}}},isOpen:{type:Boolean,required:!0},minNightCount:{type:Number,default:0},nextDisabledDate:{type:[Date,Number,String]},nextPeriodDisableDates:{type:Array,default:function(){return[]}},options:{type:Object},screenSize:{type:String,default:""},showCustomTooltip:{default:!1,type:Boolean},showPrice:{type:Boolean,default:!1},sortedDisabledDates:{type:Array,default:function(){return[]}},sortedPeriodDates:{type:Array,default:function(){return[]}},tooltipMessage:{default:null,type:String}},data:function(){return{currentDate:new Date,isDisabled:!1,isHighlighted:!1}},computed:{previousBooking:function(){var t=this,e=null;return this.currentBooking&&this.duplicateBookingDates.includes(this.currentBooking.checkInDate)&&(e=this.bookings.find((function(e){return e.checkOutDate===t.formatDate&&t.duplicateBookingDates.includes(e.checkOutDate)}))),e},currentBooking:function(){var t=this;return this.bookings.find((function(e){return t.duplicateBookingDates.includes(t.formatDate)&&e.checkInDate===t.formatDate||!t.duplicateBookingDates.includes(t.formatDate)&&t.validateDateBetweenTwoDates(e.checkInDate,e.checkOutDate,t.formatDate)}))},dayNumber:function(){return Z.format(this.date,"D")},dayPrice:function(){var t=this,e=null;return this.sortedPeriodDates.forEach((function(n){t.validateDateBetweenTwoDates(n.startAt,n.endAt,t.formatDate)&&(e=n)})),e?"nightly"===e.periodType?e.price:Math.round(e.price/7):""},halfDayClass:function(){if(Object.keys(this.checkIncheckOutHalfDay).length>0){var t=this.dateFormater(this.date);if(this.checkIncheckOutHalfDay[t]&&this.checkIncheckOutHalfDay[t].checkIn)return this.checkIn&&!this.checkOut?"vhd-datepicker__month-day--halfCheckIn vhd-datepicker__month-day--valid":"vhd-datepicker__month-day--halfCheckIn vhd-datepicker__month-day--invalid";if(this.checkIncheckOutHalfDay[t]&&this.checkIncheckOutHalfDay[t].checkOut)return"vhd-datepicker__month-day--halfCheckOut vhd-datepicker__month-day--valid"}return!1},bookingClass:function(){if(this.bookings.length>0&&this.currentBooking){if(!this.isDisabled&&this.validateDateBetweenTwoDates(this.currentBooking.checkInDate,this.currentBooking.checkOutDate,this.hoveringDate))return this.checkIncheckOutHalfDay[this.formatDate]?this.checkIn&&!this.checkOut||this.checkIncheckOutHalfDay[this.formatDate].checkOut?"vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--hovering":"vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--invalid":this.checkIn&&!this.checkOut?"vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--invalid":"vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--hovering";if(this.checkIncheckOutHalfDay[this.formatDate]&&this.checkIncheckOutHalfDay[this.formatDate].checkOut&&!this.duplicateBookingDates.includes(this.formatDate)){if(!this.checkIn)return"vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--hovering";if(this.checkIn&&this.checkIn===this.date||this.checkIn&&this.checkOut)return"vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--hovering"}return this.checkIn&&!this.checkOut&&this.hoveringDate===this.date?"vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--hovering":"vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--invalid"}return""},dayClass:function(){var t=this;if(this.belongsToThisMonth){var e=this.addDays(this.checkIn,this.minNightCount),n=this.getDayDiff(this.hoveringDate,e)<=0;if(!n&&!this.checkOut&&!this.isDisabled&&1===this.compareDay(this.date,this.checkIn)&&this.minNightCount>0&&-1===this.compareDay(this.date,this.addDays(this.checkIn,this.minNightCount)))return"vhd-datepicker__month-day--valid vhd-datepicker__month-day--disabled vhd-datepicker__month-day--not-allowed vhd-minimumDurationUnvalidDay";if(!this.isDisabled&&this.date===this.hoveringDate&&null!==this.checkIn&&null==this.checkOut)return"vhd-datepicker__month-day--selected vhd-datepicker__month-day--hovering vhd-currentDay";if(null!==this.checkIn&&this.dateFormater(this.checkIn)===this.dateFormater(this.date))return 0===this.minNightCount?"vhd-datepicker__month-day--first-day-selected vhd-checkIn":"vhd-datepicker__month-day--disabled vhd-datepicker__month-day--first-day-selected vhd-checkIn";if(null!==this.checkOut&&this.dateFormater(this.checkOut)===this.dateFormater(this.date))return this.halfDayClass?"vhd-datepicker__month-day--disabled vhd-datepicker__month-day--last-day-selected ".concat(this.halfDayClass," vhd-checkOut"):"vhd-datepicker__month-day--disabled vhd-datepicker__month-day--last-day-selected vhd-checkOut";if(this.isHighlighted&&!this.isDisabled){if(this.options.disabledDaysOfWeek.some((function(e){return e===Z.format(t.date,"dddd")})))return"vhd-datepicker__month-day--selected vhd-datepicker__month-day--disabled vhd-afterMinimumDurationValidDay";if(Object.keys(this.checkInPeriod).length>0&&this.checkInPeriod.periodType.includes("weekly")&&this.hoveringDate&&("weekly_by_saturday"===this.checkInPeriod.periodType&&6===this.hoveringDate.getDay()||"weekly_by_sunday"===this.checkInPeriod.periodType&&0===this.hoveringDate.getDay())&&this.isDateLessOrEquals(this.date,this.hoveringDate)){if(1===this.checkInPeriod.minimumDuration)return"vhd-datepicker__month-day--selected vhd-afterMinimumDurationValidDay";if(this.getDayDiff(this.hoveringDate,this.checkInPeriod.nextValidDate)<=0)return"vhd-datepicker__month-day--selected vhd-afterMinimumDurationValidDay"}else if(Object.keys(this.checkInPeriod).length>0&&"nightly"===this.checkInPeriod.periodType&&this.hoveringDate&&this.hoveringPeriod.periodType.includes("weekly")&&("weekly_by_saturday"===this.hoveringPeriod.periodType&&6===this.hoveringDate.getDay()||"weekly_by_sunday"===this.hoveringPeriod.periodType&&0===this.hoveringDate.getDay()&&this.isDateLessOrEquals(this.date,this.hoveringDate)))return"vhd-datepicker__month-day--selected vhd-afterMinimumDurationValidDay";if("nightly"===this.hoveringPeriod.periodType&&this.isDateLessOrEquals(this.date,this.hoveringDate))return"vhd-datepicker__month-day--selected vhd-afterMinimumDurationValidDay";if(this.checkIn&&this.checkOut)return"vhd-datepicker__month-day--selected"}if(this.isDisabled||this.options.disabledDaysOfWeek.some((function(e){return e===Z.format(t.date,"dddd")})))return"vhd-datepicker__month-day--disabled"}else if(!this.belongsToThisMonth)return"vhd-datepicker__month-day--hidden";return this.halfDayClass?"".concat(this.halfDayClass):"vhd-datepicker__month-day--valid"},checkinCheckoutClass:function(){var t=this,e=null;return this.sortedPeriodDates.forEach((function(n){n.endAt===t.formatDate||n.startAt!==t.formatDate&&!t.validateDateBetweenTwoDates(n.startAt,n.endAt,t.formatDate)||(e=n)})),this.nextPeriodDisableDates&&this.nextPeriodDisableDates.some((function(e){return 0===t.compareDay(e,t.date)}))?"vhd-datepicker__month-day--disabled vhd-datepicker__month-day--not-allowed vhd-nightly":e?"nightly"===e.periodType&&this.belongsToThisMonth&&!this.isDisabled?(!this.checkIn&&!this.checkOut||this.checkIn&&this.checkOut)&&this.notAllowedDayDueToNextPeriod(e)?"vhd-datepicker__month-day--disabled vhd-datepicker__month-day--not-allowed vhd-nightly":"vhd-nightly":"weekly_by_saturday"===e.periodType&&e.startAt!==this.formatDate&&e.endAt!==this.formatDate&&6!==this.date.getDay()||this.notAllowDaysBetweenCheckInAndNextValidDate(6)?"vhd-datepicker__month-day--disabled vhd-datepicker__month-day--not-allowed vhd-weekly_by_saturday":"weekly_by_sunday"===e.periodType&&e.startAt!==this.formatDate&&e.endAt!==this.formatDate&&0!==this.date.getDay()||this.notAllowDaysBetweenCheckInAndNextValidDate(0)?"vhd-datepicker__month-day--disabled vhd-datepicker__month-day--not-allowed vhd-weekly_by_sunday":"":""},formatDate:function(){return this.dateFormater(this.date)},tabIndex:function(){return this.isOpen&&this.belongsToThisMonth&&!this.isDisabled&&this.isClickable()?0:-1},nightsCount:function(){return this.countDays(this.checkIn,this.hoveringDate)},tooltipMessageDisplay:function(){var t=this.validateDateBetweenTwoDates(this.hoveringPeriod.startAt,this.hoveringPeriod.endAt,this.date),e=this.validateDateBetweenTwoDates(this.hoveringPeriod.startAt,this.hoveringPeriod.endAt,this.checkIn);return this.tooltipMessage?this.tooltipMessage:this.hoveringPeriod&&"nightly"!==this.hoveringPeriod.type&&t&&e&&this.nightsCount>=7?"".concat(this.nightsCount/7," ").concat(this.pluralize(this.nightsCount,"week")):this.nightsCount>=1?"".concat(this.nightsCount," ").concat(1!==this.nightsCount?this.i18n.nights:this.i18n.night):""},showTooltip:function(){if("desktop"===this.screenSize||"tablet"===this.screenSize){var t=this.showCustomTooltip&&this.date===this.hoveringDate,e=!this.isDisabled&&this.belongsToThisMonth&&this.date===this.hoveringDate&&this.tooltipMessageDisplay.length>0&&null!==this.checkIn&&null===this.checkOut;return t||e}return!1},isToday:function(){return 0===this.compareDay(this.currentDate,this.date)}},watch:{hoveringDate:function(){null!==this.checkIn&&null==this.checkOut&&!1===this.isDisabled&&(this.isDateLessOrEquals(this.checkIn,this.date)&&this.isDateLessOrEquals(this.date,this.hoveringDate)?this.isHighlighted=!0:this.isHighlighted=!1)},activeMonthIndex:function(){this.checkIfDisabled(),this.checkIfHighlighted(),null!==this.checkIn&&null!==this.checkOut?this.isDateLessOrEquals(this.checkIn,this.date)&&this.isDateLessOrEquals(this.date,this.checkOut)?this.isHighlighted=!0:this.isHighlighted=!1:null!==this.checkIn&&null===this.checkOut&&this.disableNextDays()},nextDisabledDate:function(){this.disableNextDays()}},beforeMount:function(){this.checkIfDisabled(),this.checkIfHighlighted()},methods:h(h({},Q),{},{notAllowDaysBetweenCheckInAndNextValidDate:function(t){return this.checkIn&&!this.checkOut&&this.date.getDay()===t&&Object.keys(this.hoveringPeriod).length>0&&this.validateDateBetweenTwoDates(this.checkIn,this.hoveringPeriod.nextValidDate,this.date)&&this.dateFormater(this.checkIn)!==this.formatDate&&this.dateFormater(this.hoveringPeriod.nextValidDate)!==this.formatDate},notAllowedDayDueToNextPeriod:function(t){var e=new Date(t.endAt),n=null;if(this.sortedPeriodDates.forEach((function(t){var i=new Date(t.startAt).setHours(0,0,0,0),r=new Date(e).setHours(0,0,0,0);i===r&&(n=t)})),n){var i=new Date(n.startAt).setHours(0,0,0,0),r=new Date(i),o=new Date(r.setDate(r.getDate()-t.minimumDuration));if(!this.validateDateBetweenTwoDates(t.startAt,o,this.date))return!0}return!1},isClickable:function(){return!this.$refs||!this.$refs.day||"none"!==getComputedStyle(this.$refs.day).pointerEvents},dayClicked:function(t,e){var n=!1,i=!this.disableCheckoutOnCheckin;if(this.checkIncheckOutHalfDay[this.formatDate]||!this.currentBooking){if(this.disableCheckoutOnCheckin&&(this.checkIn&&this.checkIn===e?this.checkOut?(i=!0,n=!0):(i=!1,this.$emit("clearSelection")):i=!0),i)if(!this.isDisabled||this.isClickable()){var r=this.dateFormater(e);this.$emit("dayClicked",t,e,r,n)}else this.$emit("clearSelection"),this.dayClicked(t,e)}else this.$emit("bookingClicked",t,e,this.currentBooking)},compareEndDay:function(){return this.options.endDate!==1/0&&1===this.compareDay(this.date,this.options.endDate)},checkIfDisabled:function(){var t=this;this.isDisabled=(this.sortedDisabledDates?this.sortedDisabledDates.some((function(e){return 0===t.compareDay(e,t.date)})):null)||-1===this.compareDay(this.date,this.options.startDate)||this.compareEndDay()||this.options.disabledDaysOfWeek.some((function(e){return e===Z.format(t.date,"dddd")})),this.options.enableCheckout&&1===this.compareDay(this.date,this.checkIn)&&-1===this.compareDay(this.date,this.checkOut)&&(this.isDisabled=!1)},checkIfHighlighted:function(){null!==this.checkIn&&null!==this.checkOut&&!1===this.isDisabled&&(this.isDateLessOrEquals(this.checkIn,this.date)&&this.isDateLessOrEquals(this.date,this.checkOut)?this.isHighlighted=!0:this.isHighlighted=!1)},disableNextDays:function(){this.isDateLessOrEquals(this.date,this.nextDisabledDate)||this.nextDisabledDate===1/0?this.isDateLessOrEquals(this.date,this.checkIn)&&(this.isDisabled=!0):this.isDisabled=!0,0===this.compareDay(this.date,this.checkIn)&&0===this.minNightCount&&(this.isDisabled=!1),this.isDateLessOrEquals(this.checkIn,this.date)&&this.options.enableCheckout&&(this.isDisabled=!1)}})},ct=st,ut=rt(ct,X,J,!1,null,null,null),ht=ut.exports,dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vhd-datepicker__input",class:t.inputClass,attrs:{"data-qa":"datepickerInput",tabindex:t.tabIndex},on:{click:t.toggleDatepicker,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),e.preventDefault(),t.toggleDatepicker(e))}}},[t._v(" "+t._s(t.inputDate?t.inputDate:t.i18n[t.inputDateType])+" ")])},lt=[],ft={props:{isOpen:{type:Boolean,required:!0},inputDate:{type:String,default:null},inputDateType:{type:String,default:"check-in"},singleDaySelection:{type:Boolean,default:!1},toggleDatepicker:{type:Function,required:!0},i18n:{type:Object,required:!0}},computed:{inputClass:function(){return{"vhd-datepicker__input--is-active":this.isOpen&&null==this.inputDate,"vhd-datepicker__input--single-date":this.singleDaySelection}},tabIndex:function(){return"check-in"===this.inputDateType?0:-1}}},pt=ft,vt=rt(pt,dt,lt,!1,null,null,null),yt=vt.exports,gt={night:"Night",nights:"Nights",week:"week",weeks:"weeks","day-names":["Sun","Mon","Tue","Wed","Thur","Fri","Sat"],"check-in":"Check-in","check-out":"Check-out","month-names":["January","February","March","April","May","June","July","August","September","October","November","December"],tooltip:{halfDayCheckIn:"Available CheckIn",halfDayCheckOut:"Available CheckOut",saturdayToSaturday:"Only Saturday to Saturday",sundayToSunday:"Only Sunday to Sunday",minimumRequiredPeriod:"%{minNightInPeriod} %{night} minimum."}},mt={name:"HotelDatePicker",components:{Day:ht,DateInput:yt},props:{bookings:{type:Array,default:function(){return[]}},alwaysVisible:{type:Boolean,default:!1},disableCheckoutOnCheckin:{type:Boolean,default:!1},lastDateAvailable:{type:[Number,Date],default:1/0},showPrice:{type:Boolean,default:!1},periodDates:{type:Array,default:function(){return[]}},gridStyle:{type:Boolean,default:!0},positionRight:{type:Boolean,default:!1},value:{type:String},startingDateValue:{type:Date,default:null},endingDateValue:{type:Date,default:null},format:{type:String,default:"YYYY-MM-DD"},startDate:{type:[Date,String],default:function(){return new Date}},endDate:{type:[Date,String,Number],default:1/0},firstDayOfWeek:{type:Number,default:0},minNights:{type:Number,default:1},maxNights:{type:Number,default:null},halfDay:{type:Boolean,default:!0},disabledDates:{type:Array,default:function(){return[]}},disabledDaysOfWeek:{type:Array,default:function(){return[]}},hoveringTooltip:{default:!0,type:[Boolean,Function]},tooltipMessage:{type:String,default:null},i18n:{type:Object,default:function(){return gt}},enableCheckout:{type:Boolean,default:!1},showSingleMonth:{type:Boolean,default:!1},singleDaySelection:{type:Boolean,default:!1},showYear:{type:Boolean,default:!1},closeDatepickerOnClickOutside:{type:Boolean,default:!0},displayClearButton:{type:Boolean,default:!0}},data:function(){return{activeMonthIndex:0,checkIn:this.startingDateValue,checkIncheckOutHalfDay:{},checkInPeriod:{},checkOut:this.endingDateValue,hoveringPeriod:{},customTooltip:"",customTooltipHalfday:"",datepickerDayKey:0,datepickerMonthKey:0,datepickerWeekKey:0,dynamicNightCounts:null,hash:Date.now(),hoveringDate:null,isOpen:!1,isTouchMove:!1,months:[],nextDisabledDate:null,nextPeriodDisableDates:[],screenSize:null,show:!0,showCustomTooltip:!1,sortedDisabledDates:null,xDown:null,xUp:null,yDown:null,yUp:null}},computed:{sortBookings:function(){if(this.bookings.length>0){var t=y(this.bookings);return t.sort((function(t,e){var n=t.checkInDate.split("/").reverse().join(),i=e.checkOutDate.split("/").reverse().join();return n<i?-1:n>i?1:0}))}return[]},duplicateBookingDates:function(){return this.baseHalfDayDates.filter(function(t){return function(e){return t.has(e)||!t.add(e)}}(new Set))},baseHalfDayDates:function(){if(this.sortBookings.length>0){var t=this.sortBookings.map((function(t){return[t.checkInDate,t.checkOutDate]}));return t.reduce((function(t,e){return t.concat(e)}))}return this.disabledDates},paginateDesktop:function(){return this.showSingleMonth||this.alwaysVisible&&"desktop"!==this.screenSize?[0]:[0,1]},customTooltipMessage:function(){var t="";return this.hoveringDate&&(this.customTooltip||this.customTooltipHalfday)?(t=this.customTooltip&&this.customTooltipHalfday?"".concat(this.customTooltipHalfday,". <br/> ").concat(this.customTooltip):this.customTooltipHalfday&&!this.customTooltip?this.customTooltipHalfday:this.customTooltip,t):this.tooltipMessage},sortedPeriodDates:function(){if(this.periodDates){var t=y(this.periodDates);return t.sort((function(t,e){var n=t.startAt.split("/").reverse().join(),i=e.startAt.split("/").reverse().join();return n<i?-1:n>i?1:0}))}return this.periodDates},sliceMonthMobile:function(){var t=4;return this.activeMonthIndex>=t?this.months.slice(this.activeMonthIndex-3,this.activeMonthIndex+1):this.months.slice(0,t)},isPreventedMaxMonth:function(){var t=this.getMonthDiff(this.startDate,this.lastDateAvailable);return this.activeMonthIndex>=t-1},minNightCount:function(){return this.dynamicNightCounts||this.minNights},showClearSelectionButton:function(){return Boolean((this.checkIn||this.checkOut)&&this.displayClearButton)}},watch:{bookings:function(){this.createHalfDayDates(this.baseHalfDayDates)},isOpen:function(t){var e=this;if("desktop"!==this.screenSize&&!this.alwaysVisible){var n=document.querySelector("body");t?(n.style.overflow="hidden",this.$nextTick((function(){if(e.$refs){var t=e.$refs.swiperWrapper,n=e.$refs.datepickerMonth[0].offsetHeight,i=e.checkOut?e.getMonthDiff(new Date,e.checkOut):0;t.scrollTop=i*n}}))):n.style.overflow=""}},checkIn:function(t){this.$emit("check-in-changed",t)},checkOut:function(t){null!==this.checkOut&&(this.hoveringDate=null,this.nextDisabledDate=null,this.createHalfDayDates(this.baseHalfDayDates),this.reRender(),this.showCustomTooltip=!1,this.isOpen=!1),this.$emit("check-out-changed",t)}},created:function(){if(Z.i18n={dayNames:this.i18n["day-names"],dayNamesShort:this.shortenString(this.i18n["day-names"],3),monthNames:this.i18n["month-names"],monthNamesShort:this.shortenString(this.i18n["month-names"],3),amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10)*t%10]}},this.checkIn&&(this.getMonthDiff(this.getNextMonth(new Date(this.startDate)),this.checkIn)>0||this.getMonthDiff(this.startDate,this.checkIn)>0)){this.createMonth(new Date(this.startDate));for(var t=this.getMonthDiff(this.startDate,this.checkIn),e=new Date(this.startDate),n=0;n<=t;n++){var i=this.getNextMonth(e);this.createMonth(i),e=i}this.checkOut&&this.getMonthDiff(this.checkIn,this.checkOut)>0&&(this.createMonth(this.getNextMonth(e)),this.activeMonthIndex=1),this.activeMonthIndex+=t}else this.createMonth(new Date(this.startDate)),this.createMonth(this.getNextMonth(new Date(this.startDate)))},mounted:function(){var t=this;this.handleWindowResize(),window.addEventListener("resize",this.handleWindowResize),"desktop"!==this.screenSize?(document.addEventListener("touchstart",this.handleTouchStart,!1),document.addEventListener("touchmove",this.handleTouchMove,!1),document.addEventListener("touchend",this.handleTouchEnd,!1)):(document.addEventListener("click",this.handleClickOutside,!1),document.addEventListener("keyup",this.escFunction,!1)),this.onElementHeightChange(document.body,(function(){t.emitHeighChangeEvent()})),this.createHalfDayDates(this.baseHalfDayDates)},destroyed:function(){window.removeEventListener("resize",this.handleWindowResize),"desktop"!==this.screenSize?(document.removeEventListener("touchstart",this.handleTouchStart),document.removeEventListener("touchmove",this.handleTouchMove),document.removeEventListener("touchend",this.handleTouchEnd)):(document.removeEventListener("keyup",this.escFunction,!1),document.removeEventListener("click",this.handleClickOutside))},methods:h(h({},Q),{},{handleBookingClicked:function(t,e,n){this.$emit("bookingClicked",t,e,n)},escFunction:function(t){var e=27;t.keyCode===e&&this.isOpen&&this.checkIn&&this.clearSelection()},formatDate:function(t){return this.dateFormater(t,this.format)},cleanString:function(t){return t.replace(/\<br\/>/g,"")},dateIsInCheckInCheckOut:function(t){var e=this,n=this.dateFormater(t),i=null;return this.sortedPeriodDates.forEach((function(t){t.endAt===n||t.startAt!==n&&!e.validateDateBetweenTwoDates(t.startAt,t.endAt,n)||(i=t)})),i},dayIsDisabled:function(t){return!(!this.checkIn||this.checkOut||this.isDateLessOrEquals(t,this.nextDisabledDate)||this.nextDisabledDate===1/0)||!(!this.checkIn||this.checkOut||!this.isDateLessOrEquals(t,this.checkIn))},mouseEnterDay:function(t){var e=this.dateFormater(t.date),n=Object.keys(this.checkIncheckOutHalfDay),i=this.disabledDates.filter((function(t){return!n.includes(t)})).includes(e);this.dayIsDisabled(t.date)||!t.belongsToThisMonth||i||this.setCustomTooltipOnHover(t)},setCurrentPeriod:function(t,e){var n=this,i={};this.sortedPeriodDates.length>0?(this.sortedPeriodDates.forEach((function(r){"click"===e&&(r.startAt===n.dateFormater(t)||r.endAt!==n.dateFormater(t)&&n.validateDateBetweenTwoDates(r.startAt,r.endAt,t))?i=r:"hover"!==e||r.startAt!==n.dateFormater(t)&&!n.validateDateBetweenTwoDates(r.startAt,r.endAt,t)||(i=r)})),Object.keys(i).length>0?this.hoveringPeriod=i:(this.minNightCount>0&&this.checkIn,this.hoveringPeriod={periodType:"nightly",minimumDuration:this.minNightCount,startAt:this.checkIn,endAt:this.addDays(this.checkIn,this.minNightCount)})):this.minNightCount>0&&(this.hoveringPeriod={periodType:"nightly",minimumDuration:this.minNightCount,startAt:this.checkIn,endAt:this.addDays(this.checkIn,this.minNightCount)})},setCustomTooltipOnHover:function(t){var e=t.date;if(this.hoveringDate=e,this.showCustomTooltip&&(this.showCustomTooltip=!1),this.setCurrentPeriod(e,"hover"),Object.keys(this.hoveringPeriod).length>0)if("weekly_by_saturday"===this.hoveringPeriod.periodType){var n=6,i=this.i18n.tooltip.saturdayToSaturday;this.showTooltipWeeklyOnHover(e,n,i)}else if("weekly_by_sunday"===this.hoveringPeriod.periodType){var r=0,o=this.i18n.tooltip.sundayToSunday;this.showTooltipWeeklyOnHover(e,r,o)}else"nightly"===this.hoveringPeriod.periodType?this.showTooltipNightlyOnHover(e):(this.showCustomTooltip=!1,this.customTooltip="");else this.hoveringPeriod={};this.halfDay&&this.createHalfDayTooltip(t.date)},handleDayClick:function(t,e,n,i){var r=this;if(this.nextPeriodDisableDates=[],i)return this.clearSelection(),void this.$nextTick((function(){r.handleDayClick(t,e,n,!1)}));var o=(this.maxNights?this.addDays(e,this.maxNights):null)||this.getNextDate(this.sortedDisabledDates,e)||this.nextDateByDayOfWeekArray(this.disabledDaysOfWeek,e)||this.nextBookingDate(e)||1/0;this.dynamicNightCounts=null,this.enableCheckout&&(o=1/0),null==this.checkIn&&!1===this.singleDaySelection?(this.checkIn=e,this.setMinimumDuration(e)):!0===this.singleDaySelection?(this.checkIn=e,this.checkOut=e):null!==this.checkIn&&null==this.checkOut?(this.checkOut=e,this.$emit("periodSelected",t,this.checkIn,this.checkOut)):(this.checkOut=null,this.checkIn=e,this.setMinimumDuration(e)),this.checkIn&&!this.checkOut&&(this.setCurrentPeriod(e,"click"),this.checkInPeriod=this.hoveringPeriod,this.setCustomTooltipOnClick()),this.nextDisabledDate=o,this.$emit("dayClicked",e,n,o)},nextBookingDate:function(t){var e=this,n=1/0;if(this.sortBookings.length>0){var i=this.dateFormater(this.addDays(t,1)),r=this.sortBookings.find((function(t){return e.validateDateBetweenDate(t.checkInDate,i)||e.validateDateBetweenTwoDates(t.checkInDate,t.checkOutDate,i)}));n=r?r.checkInDate:1/0}return n},setCustomTooltipOnClick:function(){if(Object.keys(this.checkInPeriod).length>0&&this.checkInPeriod.periodType.includes("weekly")){var t=this.addDays(this.checkIn,this.minNightCount);this.checkInPeriod.nextValidDate=t,this.showTooltipWeeklyOnClick()}else"nightly"===this.checkInPeriod.periodType&&this.showTooltipNightlyOnClick()},showTooltipWeeklyOnHover:function(t,e,n){var i=this.countDays(this.checkIn,t),r=t.getDay()!==e,o=this.checkIn&&this.checkOut,a=!this.checkIn&&r,s=this.checkIn&&!this.checkOut,c=!this.validateDateBetweenTwoDates(this.checkIn,this.checkOut,t),u=this.hoveringPeriod.nextValidDate&&this.validateDateBetweenTwoDates(this.checkIn,this.hoveringPeriod.nextValidDate,this.hoveringDate)&&this.dateFormater(this.checkIn)!==this.dateFormater(this.hoveringDate)&&this.dateFormater(this.hoveringPeriod.nextValidDate)!==this.dateFormater(this.hoveringDate),h=Object.keys(this.checkIncheckOutHalfDay).length>0&&this.checkIncheckOutHalfDay[this.dateFormater(t)]&&this.checkIncheckOutHalfDay[this.dateFormater(t)].checkIn;if(a?(this.showCustomTooltip=!0,this.customTooltip=n):(this.showCustomTooltip=!1,this.customTooltip=""),s){var d=this.addDays(this.checkIn,this.minNightCount),l=this.getDayDiff(t,d)<=0;if(l&&r)this.showCustomTooltip=!0,this.customTooltip=n;else if(r||u)if(this.checkInPeriod&&"nightly"===this.checkInPeriod.periodType)this.showCustomTooltip=!1,this.customTooltip="";else{var f=this.pluralize(this.minNightCount,"week");this.showCustomTooltip=!0,this.customTooltip=this.completeTrad(this.i18n.tooltip.minimumRequiredPeriod,{minNightInPeriod:this.minNightCount/7,night:f})}else h?"nightly"!==this.checkInPeriod.periodType?this.customTooltip="".concat(i/7," ").concat(this.pluralize(this.minNightCount,"week")):"nightly"===this.checkInPeriod.periodType&&(this.customTooltip="".concat(i," ").concat(1!==i?this.i18n.nights:this.i18n.night)):(this.showCustomTooltip=!1,this.customTooltip="")}else o&&r&&c&&(this.showCustomTooltip=!0,this.customTooltip=n)},showTooltipWeeklyOnClick:function(){var t=this.pluralize(this.minNightCount,"week");this.showCustomTooltip=!0,this.customTooltip=this.completeTrad(this.i18n.tooltip.minimumRequiredPeriod,{minNightInPeriod:this.minNightCount/7,night:t})},showTooltipNightlyOnHover:function(t){if(this.checkIn&&!this.checkOut){var e=this.addDays(this.checkIn,this.minNightCount),n=this.getDayDiff(t,e)<=0,i=this.countDays(this.checkIn,t),r=this.pluralize(Math.max(this.minNightCount,i));if(n)this.customTooltip="".concat(i," ").concat(r);else{var o=this.hoveringPeriod.minimumDuration;this.showCustomTooltip=!0,this.customTooltip=this.completeTrad(this.i18n.tooltip.minimumRequiredPeriod,{minNightInPeriod:o,night:r})}}else this.customTooltip=""},showTooltipNightlyOnClick:function(){var t=this.hoveringPeriod.minimumDuration,e=this.pluralize(this.minNightCount);this.showCustomTooltip=!0,this.customTooltip=this.completeTrad(this.i18n.tooltip.minimumRequiredPeriod,{minNightInPeriod:t,night:e})},createHalfDayTooltip:function(t){this.customTooltipHalfday="";var e=this.dateFormater(t);this.checkIncheckOutHalfDay[e]&&(this.showCustomTooltip=!0,this.checkIncheckOutHalfDay[e].checkIn?this.customTooltipHalfday=this.i18n.tooltip.halfDayCheckOut:this.checkIncheckOutHalfDay[e].checkOut&&(this.customTooltipHalfday=this.i18n.tooltip.halfDayCheckIn))},completeTrad:function(t,e){var n=t,i=Object.keys(e);return i.forEach((function(t){n=n.replace("%{".concat(t,"}"),e[t])})),n},handleClickOutside:function(t){var e=this.$refs["DatePicker-".concat(this.hash)];if(e){var n=e.contains(t.target);n||this.hideDatepicker()}},handleWindowResize:function(){return window.innerWidth<480?this.screenSize="smartphone":window.innerWidth>=480&&window.innerWidth<768?this.screenSize="tablet":window.innerWidth>=768&&(this.screenSize="desktop"),this.screenSize},onElementHeightChange:function(t,e){var n=t.clientHeight,i=n,r=t;(function o(){i=t.clientHeight,n!==i&&e(),n=i,r.onElementHeightChangeTimer&&clearTimeout(t.onElementHeightChangeTimer),r.onElementHeightChangeTimer=setTimeout(o,1e3)})()},emitHeighChangeEvent:function(){this.$emit("height-changed")},reRender:function(){this.datepickerDayKey+=1,this.datepickerMonthKey+=1,this.datepickerWeekKey+=1},clearSelection:function(){this.hoveringDate=null,this.checkIn=null,this.checkOut=null,this.nextDisabledDate=null,this.nextPeriodDisableDates=[],this.showCustomTooltip=!1,this.hoveringPeriod={},this.checkInPeriod={},this.createHalfDayDates(this.baseHalfDayDates),this.reRender(),this.$emit("clear-selection")},closeMobileDatepicker:function(){this.hideDatepicker()},hideDatepicker:function(){this.clearCheckIn(),this.isOpen=!1},showDatepicker:function(){this.isOpen=!0},toggleDatepicker:function(){this.clearCheckIn(),this.isOpen=!this.isOpen},clearCheckIn:function(){this.checkIn&&!this.checkOut&&this.clearSelection()},clickOutside:function(){this.show&&this.closeDatepickerOnClickOutside&&this.hideDatepicker()},setMinimumDuration:function(t){var e=this;if(this.sortedPeriodDates){var n=null,i=null,r=this.dateFormater(t);if(this.sortedPeriodDates.forEach((function(n){n.endAt===r||n.startAt!==r&&!e.validateDateBetweenTwoDates(n.startAt,n.endAt,t)||(i=n)})),i){if(this.sortedPeriodDates.forEach((function(t){t.startAt===i.endAt&&(n=t)})),this.checkIn&&!this.checkOut&&n){var o=this.addDays(n.startAt,n.minimumDuration-1),a=this.addDays(n.startAt,1),s=this.getDaysArray(a,o);this.nextPeriodDisableDates=s}if("nightly"===i.periodType&&i.endAt!==t&&(this.dynamicNightCounts=i.minimumDuration),"weekly_by_saturday"===i.periodType||"weekly_by_sunday"===i.periodType){var c=7*i.minimumDuration;this.dynamicNightCounts=c}}else this.dynamicNightCounts=0}},renderPreviousMonth:function(){this.activeMonthIndex>=1&&this.activeMonthIndex--},renderNextMonth:m()((function(){var t;this.activeMonthIndex<this.months.length-2?this.activeMonthIndex++:(t="desktop"!==this.screenSize?this.months[this.months.length-1].days.filter((function(t){return!0===t.belongsToThisMonth})):this.months[this.activeMonthIndex+1].days.filter((function(t){return!0===t.belongsToThisMonth})),this.endDate!==1/0&&Z.format(t[0].date,"YYYYMM")===Z.format(new Date(this.endDate),"YYYYMM")||(this.createMonth(this.getNextMonth(t[0].date)),this.activeMonthIndex++))}),350),setCheckIn:function(t){this.checkIn=t},setCheckOut:function(t){this.checkOut=t},getMonth:function(t){return this.i18n["month-names"][Z.format(t,"M")-1]+(this.showYear?Z.format(t," YYYY"):"")},createMonth:function(t){for(var e=this.getFirstDay(t,this.firstDayOfWeek),n={days:[]},i=0;i<42;i++)n.days.push({date:this.addDays(e,i),belongsToThisMonth:this.addDays(e,i).getMonth()===t.getMonth()});this.months.push(n)},createHalfDayDates:function(t){var e=[],n={},i=y(t);if(i.sort((function(t,e){var n=t.split("/").reverse().join(),i=e.split("/").reverse().join();return n<i?-1:n>i?1:0})),0===this.sortBookings.length)for(var r=0;r<i.length;r++){var o=i[r];if(this.halfDay){var a=i[r+1];0===r&&(n[o]={checkIn:!0}),!n[o]&&i[r+1]&&this.getDayDiff(o,a)>1&&(n[o]={checkOut:!0},n[a]={checkIn:!0}),r===i.length-1&&(n[i[i.length-1]]={checkOut:!0})}e[r]=i[r]}else this.sortBookings.forEach((function(t){n[t.checkInDate]={checkIn:!0},n[t.checkOutDate]={checkOut:!0}}));if(this.halfDay){var s=Object.keys(n);e=e.filter((function(t){return!s.includes(t)}))}e=e.map((function(t){return new Date(t)})),this.sortedDisabledDates=e.sort((function(t,e){return t-e})),this.checkIncheckOutHalfDay=n,this.$emit("handleCheckIncheckOutHalfDay",this.checkIncheckOutHalfDay)}})},kt=mt,Dt=(n("084e"),rt(kt,a,s,!1,null,null,null)),bt=Dt.exports,wt=bt;e["default"]=wt},7706:function(t,e,n){var i=n("dc77"),r=n("0270"),o=i("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},"773d":function(t,e,n){"use strict";var i=n("5a44").IteratorPrototype,r=n("416b"),o=n("6559"),a=n("9c17"),s=n("0270"),c=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=r(i,{next:o(1,n)}),a(t,u,!1,!0),s[u]=c,t}},"77c1":function(t,e,n){var i=n("b04a"),r=n("ea3a");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return i(n),r(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},"796d":function(t,e,n){var i=n("dc77"),r=i("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(c){}return n}},"7a50":function(t,e,n){var i=n("e721"),r=n("924e"),o=n("dc77"),a=o("toStringTag"),s="Arguments"==r(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(n){}};t.exports=i?r:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=Object(t),a))?n:s?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},"7ab2":function(t,e,n){var i=n("00d2"),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},"7b26":function(t,e,n){var i=n("e2e6"),r=n("e924"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t])||o(r[t]):i[t]&&i[t][e]||r[t]&&r[t][e]}},"800a":function(t,e,n){var i=n("6377"),r=n("c7eb"),o=n("a04b"),a=n("d096").f,s=n("2a07"),c=n("6387"),u=s("meta"),h=0,d=Object.isExtensible||function(){return!0},l=function(t){a(t,u,{value:{objectID:"O"+ ++h,weakData:{}}})},f=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,u)){if(!d(t))return"F";if(!e)return"E";l(t)}return t[u].objectID},p=function(t,e){if(!o(t,u)){if(!d(t))return!0;if(!e)return!1;l(t)}return t[u].weakData},v=function(t){return c&&y.REQUIRED&&d(t)&&!o(t,u)&&l(t),t},y=t.exports={REQUIRED:!1,fastKey:f,getWeakData:p,onFreeze:v};i[u]=!0},8346:function(t,e,n){var i=n("924e");t.exports=Array.isArray||function(t){return"Array"==i(t)}},"87ef":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"8b03":function(t,e,n){"use strict";var i=n("38e0"),r=n("8ecb").left,o=n("ad41"),a=n("effa"),s=o("reduce"),c=a("reduce",{1:0});i({target:"Array",proto:!0,forced:!s||!c},{reduce:function(t){return r(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"8c2f":function(t,e,n){var i=n("2991");i("iterator")},"8d8a":function(t,e,n){"use strict";var i=n("38e0"),r=n("036c");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},"8ecb":function(t,e,n){var i=n("9648"),r=n("39d3"),o=n("31dc"),a=n("ba98"),s=function(t){return function(e,n,s,c){i(n);var u=r(e),h=o(u),d=a(u.length),l=t?d-1:0,f=t?-1:1;if(s<2)while(1){if(l in h){c=h[l],l+=f;break}if(l+=f,t?l<0:d<=l)throw TypeError("Reduce of empty array with no initial value")}for(;t?l>=0:d>l;l+=f)l in h&&(c=n(c,h[l],l,u));return c}};t.exports={left:s(!1),right:s(!0)}},"8ee9":function(t,e,n){var i=n("e924"),r=n("3190");t.exports=function(t,e){try{r(i,t,e)}catch(n){i[t]=e}return e}},"90c8":function(t,e,n){var i=n("e721"),r=n("b85f"),o=n("4223");i||r(Object.prototype,"toString",o,{unsafe:!0})},"923d":function(t,e,n){"use strict";var i=n("87ef");function r(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=i((function(){var t=r("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=i((function(){var t=r("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},"924e":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},9457:function(t,e,n){var i=n("bc46"),r=n("02a3"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},9648:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"97d2":function(t,e,n){var i=n("e924"),r=n("8ee9"),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},9959:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"9ae9":function(t,e,n){var i=n("a04b"),r=n("c892"),o=n("eacb"),a=n("d096");t.exports=function(t,e){for(var n=r(e),s=a.f,c=o.f,u=0;u<n.length;u++){var h=n[u];i(t,h)||s(t,h,c(e,h))}}},"9c17":function(t,e,n){var i=n("d096").f,r=n("a04b"),o=n("dc77"),a=o("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},"9d08":function(t,e,n){"use strict";var i=n("4243"),r=n("b04a"),o=n("39d3"),a=n("ba98"),s=n("00d2"),c=n("cf8d"),u=n("a35c"),h=n("391e"),d=Math.max,l=Math.min,f=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g,y=function(t){return void 0===t?t:String(t)};i("replace",2,(function(t,e,n,i){var g=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=i.REPLACE_KEEPS_$0,k=g?"$":"$0";return[function(n,i){var r=c(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,r,i):e.call(String(r),n,i)},function(t,i){if(!g&&m||"string"===typeof i&&-1===i.indexOf(k)){var o=n(e,t,this,i);if(o.done)return o.value}var c=r(t),f=String(this),p="function"===typeof i;p||(i=String(i));var v=c.global;if(v){var b=c.unicode;c.lastIndex=0}var w=[];while(1){var O=h(c,f);if(null===O)break;if(w.push(O),!v)break;var x=String(O[0]);""===x&&(c.lastIndex=u(f,a(c.lastIndex),b))}for(var _="",I=0,S=0;S<w.length;S++){O=w[S];for(var T=String(O[0]),C=d(l(s(O.index),f.length),0),M=[],P=1;P<O.length;P++)M.push(y(O[P]));var E=O.groups;if(p){var A=[T].concat(M,C,f);void 0!==E&&A.push(E);var N=String(i.apply(void 0,A))}else N=D(T,f,C,M,E,i);C>=I&&(_+=f.slice(I,C)+N,I=C+T.length)}return _+f.slice(I)}];function D(t,n,i,r,a,s){var c=i+t.length,u=r.length,h=v;return void 0!==a&&(a=o(a),h=p),e.call(s,h,(function(e,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,i);case"'":return n.slice(c);case"<":s=a[o.slice(1,-1)];break;default:var h=+o;if(0===h)return e;if(h>u){var d=f(h/10);return 0===d?e:d<=u?void 0===r[d-1]?o.charAt(1):r[d-1]+o.charAt(1):e}s=r[h-1]}return void 0===s?"":s}))}}))},a04b:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},a18d:function(t,e,n){"use strict";var i=n("38e0"),r=n("33e4").some,o=n("ad41"),a=n("effa"),s=o("some"),c=a("some");i({target:"Array",proto:!0,forced:!s||!c},{some:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},a35c:function(t,e,n){"use strict";var i=n("bdf4").charAt;t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},a4ab:function(t,e,n){var i=n("b04a");t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(a){var o=t["return"];throw void 0!==o&&i(o.call(t)),a}}},a620:function(t,e,n){var i=n("97d2"),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(t){return r.call(t)}),t.exports=i.inspectSource},a6a9:function(t,e,n){"use strict";var i=n("38e0"),r=n("33e4").find,o=n("6466"),a=n("effa"),s="find",c=!0,u=a(s);s in[]&&Array(1)[s]((function(){c=!1})),i({target:"Array",proto:!0,forced:c||!u},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},a777:function(t,e,n){var i=n("afee"),r=n("87ef"),o=n("ef77");t.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},a9b1:function(t,e,n){var i=n("e924"),r=n("a620"),o=i.WeakMap;t.exports="function"===typeof o&&/native code/.test(r(o))},ab27:function(t,e){t.exports=!1},ab8d:function(t,e,n){var i=n("c7eb"),r=n("924e"),o=n("dc77"),a=o("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==r(t))}},ad41:function(t,e,n){"use strict";var i=n("87ef");t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){throw 1},1)}))}},adfa:function(t,e,n){"use strict";var i=n("b04a");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},afee:function(t,e,n){var i=n("87ef");t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},b04a:function(t,e,n){var i=n("c7eb");t.exports=function(t){if(!i(t))throw TypeError(String(t)+" is not an object");return t}},b431:function(t,e,n){var i,r,o=n("e924"),a=n("ec46"),s=o.process,c=s&&s.versions,u=c&&c.v8;u?(i=u.split("."),r=i[0]+i[1]):a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=i[1]))),t.exports=r&&+r},b668:function(t,e,n){"use strict";var i=n("2523"),r=n("d096"),o=n("6559");t.exports=function(t,e,n){var a=i(e);a in t?r.f(t,a,o(0,n)):t[a]=n}},b7ea:function(t,e,n){"use strict";var i=n("4243"),r=n("ab8d"),o=n("b04a"),a=n("cf8d"),s=n("653f"),c=n("a35c"),u=n("ba98"),h=n("391e"),d=n("036c"),l=n("87ef"),f=[].push,p=Math.min,v=4294967295,y=!l((function(){return!RegExp(v,"y")}));i("split",2,(function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(a(this)),o=void 0===n?v:n>>>0;if(0===o)return[];if(void 0===t)return[i];if(!r(t))return e.call(i,t,o);var s,c,u,h=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,y=new RegExp(t.source,l+"g");while(s=d.call(y,i)){if(c=y.lastIndex,c>p&&(h.push(i.slice(p,s.index)),s.length>1&&s.index<i.length&&f.apply(h,s.slice(1)),u=s[0].length,p=c,h.length>=o))break;y.lastIndex===s.index&&y.lastIndex++}return p===i.length?!u&&y.test("")||h.push(""):h.push(i.slice(p)),h.length>o?h.slice(0,o):h}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var r=a(this),o=void 0==e?void 0:e[t];return void 0!==o?o.call(e,r,n):i.call(String(r),e,n)},function(t,r){var a=n(i,t,this,r,i!==e);if(a.done)return a.value;var d=o(t),l=String(this),f=s(d,RegExp),g=d.unicode,m=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(y?"y":"g"),k=new f(y?d:"^(?:"+d.source+")",m),D=void 0===r?v:r>>>0;if(0===D)return[];if(0===l.length)return null===h(k,l)?[l]:[];var b=0,w=0,O=[];while(w<l.length){k.lastIndex=y?w:0;var x,_=h(k,y?l:l.slice(w));if(null===_||(x=p(u(k.lastIndex+(y?0:w)),l.length))===b)w=c(l,w,g);else{if(O.push(l.slice(b,w)),O.length===D)return O;for(var I=1;I<=_.length-1;I++)if(O.push(_[I]),O.length===D)return O;w=b=x}}return O.push(l.slice(b)),O}]}),!y)},b85f:function(t,e,n){var i=n("e924"),r=n("3190"),o=n("a04b"),a=n("8ee9"),s=n("a620"),c=n("b893"),u=c.get,h=c.enforce,d=String(String).split("String");(t.exports=function(t,e,n,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,l=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||r(n,"name",e),h(n).source=d.join("string"==typeof e?e:"")),t!==i?(c?!l&&t[e]&&(u=!0):delete t[e],u?t[e]=n:r(t,e,n)):u?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},b893:function(t,e,n){var i,r,o,a=n("a9b1"),s=n("e924"),c=n("c7eb"),u=n("3190"),h=n("a04b"),d=n("f22e"),l=n("6377"),f=s.WeakMap,p=function(t){return o(t)?r(t):i(t,{})},v=function(t){return function(e){var n;if(!c(e)||(n=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var y=new f,g=y.get,m=y.has,k=y.set;i=function(t,e){return k.call(y,t,e),e},r=function(t){return g.call(y,t)||{}},o=function(t){return m.call(y,t)}}else{var D=d("state");l[D]=!0,i=function(t,e){return u(t,D,e),e},r=function(t){return h(t,D)?t[D]:{}},o=function(t){return h(t,D)}}t.exports={set:i,get:r,has:o,enforce:p,getterFor:v}},b99c:function(t,e,n){var i=n("b04a"),r=n("7706"),o=n("ba98"),a=n("bf7c"),s=n("308e"),c=n("a4ab"),u=function(t,e){this.stopped=t,this.result=e},h=t.exports=function(t,e,n,h,d){var l,f,p,v,y,g,m,k=a(e,n,h?2:1);if(d)l=t;else{if(f=s(t),"function"!=typeof f)throw TypeError("Target is not iterable");if(r(f)){for(p=0,v=o(t.length);v>p;p++)if(y=h?k(i(m=t[p])[0],m[1]):k(t[p]),y&&y instanceof u)return y;return new u(!1)}l=f.call(t)}g=l.next;while(!(m=g.call(l)).done)if(y=c(l,k,m.value,h),"object"==typeof y&&y&&y instanceof u)return y;return new u(!1)};h.stop=function(t){return new u(!0,t)}},ba98:function(t,e,n){var i=n("00d2"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},bc46:function(t,e,n){var i=n("a04b"),r=n("ebce"),o=n("61f6").indexOf,a=n("6377");t.exports=function(t,e){var n,s=r(t),c=0,u=[];for(n in s)!i(a,n)&&i(s,n)&&u.push(n);while(e.length>c)i(s,n=e[c++])&&(~o(u,n)||u.push(n));return u}},bd2a:function(t,e,n){"use strict";var i=n("38e0"),r=n("773d"),o=n("cdeb"),a=n("77c1"),s=n("9c17"),c=n("3190"),u=n("b85f"),h=n("dc77"),d=n("ab27"),l=n("0270"),f=n("5a44"),p=f.IteratorPrototype,v=f.BUGGY_SAFARI_ITERATORS,y=h("iterator"),g="keys",m="values",k="entries",D=function(){return this};t.exports=function(t,e,n,h,f,b,w){r(n,e,h);var O,x,_,I=function(t){if(t===f&&P)return P;if(!v&&t in C)return C[t];switch(t){case g:return function(){return new n(this,t)};case m:return function(){return new n(this,t)};case k:return function(){return new n(this,t)}}return function(){return new n(this)}},S=e+" Iterator",T=!1,C=t.prototype,M=C[y]||C["@@iterator"]||f&&C[f],P=!v&&M||I(f),E="Array"==e&&C.entries||M;if(E&&(O=o(E.call(new t)),p!==Object.prototype&&O.next&&(d||o(O)===p||(a?a(O,p):"function"!=typeof O[y]&&c(O,y,D)),s(O,S,!0,!0),d&&(l[S]=D))),f==m&&M&&M.name!==m&&(T=!0,P=function(){return M.call(this)}),d&&!w||C[y]===P||c(C,y,P),l[e]=P,f)if(x={values:I(m),keys:b?P:I(g),entries:I(k)},w)for(_ in x)(v||T||!(_ in C))&&u(C,_,x[_]);else i({target:e,proto:!0,forced:v||T},x);return x}},bdf4:function(t,e,n){var i=n("00d2"),r=n("cf8d"),o=function(t){return function(e,n){var o,a,s=String(r(e)),c=i(n),u=s.length;return c<0||c>=u?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},bf7c:function(t,e,n){var i=n("9648");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},c7eb:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},c892:function(t,e,n){var i=n("7b26"),r=n("9457"),o=n("006d"),a=n("b04a");t.exports=i("Reflect","ownKeys")||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},cb6d:function(t,e,n){var i,r,o;(function(n,a){r=[],i=a,o="function"===typeof i?i.apply(e,r):i,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,i,r,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(f.stack)||a.exec(f.stack),c=s&&s[1]||!1,u=s&&s[2]||!1,h=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");c===h&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(i,"$1").trim());for(var l=0;l<d.length;l++){if("interactive"===d[l].readyState)return d[l];if(d[l].src===c)return d[l];if(c===h&&d[l].innerHTML&&d[l].innerHTML.trim()===r)return d[l]}return null}}return t}))},cb6f:function(t,e,n){var i=n("ebce"),r=n("9457").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(i(t))}},cdeb:function(t,e,n){var i=n("a04b"),r=n("39d3"),o=n("f22e"),a=n("540f"),s=o("IE_PROTO"),c=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=r(t),i(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},cf8d:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},d096:function(t,e,n){var i=n("afee"),r=n("a777"),o=n("b04a"),a=n("2523"),s=Object.defineProperty;e.f=i?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),r)try{return s(t,e,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},d299:function(t,e,n){"use strict";var i=n("ebce"),r=n("6466"),o=n("0270"),a=n("b893"),s=n("bd2a"),c="Array Iterator",u=a.set,h=a.getterFor(c);t.exports=s(Array,"Array",(function(t,e){u(this,{type:c,target:i(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},d91a:function(t,e,n){var i=n("dc77");e.f=i},d987:function(t,e,n){"use strict";var i=n("38e0"),r=n("61f6").includes,o=n("6466"),a=n("effa"),s=a("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:!s},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},dc77:function(t,e,n){var i=n("e924"),r=n("5807"),o=n("a04b"),a=n("2a07"),s=n("3bca"),c=n("5748"),u=r("wks"),h=i.Symbol,d=c?h:h&&h.withoutSetter||a;t.exports=function(t){return o(u,t)||(s&&o(h,t)?u[t]=h[t]:u[t]=d("Symbol."+t)),u[t]}},decd:function(t,e,n){var i=n("bc46"),r=n("02a3");t.exports=Object.keys||function(t){return i(t,r)}},e168:function(t,e,n){"use strict";var i=n("38e0"),r=n("87ef"),o=n("8346"),a=n("c7eb"),s=n("39d3"),c=n("ba98"),u=n("b668"),h=n("eb77"),d=n("4c7a"),l=n("dc77"),f=n("b431"),p=l("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",g=f>=51||!r((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),m=d("concat"),k=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},D=!g||!m;i({target:"Array",proto:!0,forced:D},{concat:function(t){var e,n,i,r,o,a=s(this),d=h(a,0),l=0;for(e=-1,i=arguments.length;e<i;e++)if(o=-1===e?a:arguments[e],k(o)){if(r=c(o.length),l+r>v)throw TypeError(y);for(n=0;n<r;n++,l++)n in o&&u(d,l,o[n])}else{if(l>=v)throw TypeError(y);u(d,l++,o)}return d.length=l,d}})},e224:function(t,e,n){"use strict";var i=n("38e0"),r=n("31dc"),o=n("ebce"),a=n("ad41"),s=[].join,c=r!=Object,u=a("join",",");i({target:"Array",proto:!0,forced:c||!u},{join:function(t){return s.call(o(this),void 0===t?",":t)}})},e2e6:function(t,e,n){var i=n("e924");t.exports=i},e721:function(t,e,n){var i=n("dc77"),r=i("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},e924:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("52cf"))},e9a7:function(t,e,n){"use strict";var i=n("33e4").forEach,r=n("ad41"),o=n("effa"),a=r("forEach"),s=o("forEach");t.exports=a&&s?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},ea3a:function(t,e,n){var i=n("c7eb");t.exports=function(t){if(!i(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},eacb:function(t,e,n){var i=n("afee"),r=n("5108"),o=n("6559"),a=n("ebce"),s=n("2523"),c=n("a04b"),u=n("a777"),h=Object.getOwnPropertyDescriptor;e.f=i?h:function(t,e){if(t=a(t),e=s(e,!0),u)try{return h(t,e)}catch(n){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},ead5:function(t,e,n){},eb77:function(t,e,n){var i=n("c7eb"),r=n("8346"),o=n("dc77"),a=o("species");t.exports=function(t,e){var n;return r(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?i(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},ebce:function(t,e,n){var i=n("31dc"),r=n("cf8d");t.exports=function(t){return i(r(t))}},ec46:function(t,e,n){var i=n("7b26");t.exports=i("navigator","userAgent")||""},ec5f:function(t,e,n){"use strict";var i=n("bf7c"),r=n("39d3"),o=n("a4ab"),a=n("7706"),s=n("ba98"),c=n("b668"),u=n("308e");t.exports=function(t){var e,n,h,d,l,f,p=r(t),v="function"==typeof this?this:Array,y=arguments.length,g=y>1?arguments[1]:void 0,m=void 0!==g,k=u(p),D=0;if(m&&(g=i(g,y>2?arguments[2]:void 0,2)),void 0==k||v==Array&&a(k))for(e=s(p.length),n=new v(e);e>D;D++)f=m?g(p[D],D):p[D],c(n,D,f);else for(d=k.call(p),l=d.next,n=new v;!(h=l.call(d)).done;D++)f=m?o(d,g,[h.value,D],!0):h.value,c(n,D,f);return n.length=D,n}},ef77:function(t,e,n){var i=n("e924"),r=n("c7eb"),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},effa:function(t,e,n){var i=n("afee"),r=n("87ef"),o=n("a04b"),a=Object.defineProperty,s={},c=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],u=!!o(e,"ACCESSORS")&&e.ACCESSORS,h=o(e,0)?e[0]:c,d=o(e,1)?e[1]:void 0;return s[t]=!!n&&!r((function(){if(u&&!i)return!0;var t={length:-1};u?a(t,1,{enumerable:!0,get:c}):t[1]=1,n.call(t,h,d)}))}},f22e:function(t,e,n){var i=n("5807"),r=n("2a07"),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},f2e9:function(t,e,n){var i=n("e924"),r=n("9959"),o=n("e9a7"),a=n("3190");for(var s in r){var c=i[s],u=c&&c.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(h){u.forEach=o}}},fa87:function(t,e,n){"use strict";var i=n("b85f"),r=n("b04a"),o=n("87ef"),a=n("adfa"),s="toString",c=RegExp.prototype,u=c[s],h=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=u.name!=s;(h||d)&&i(RegExp.prototype,s,(function(){var t=r(this),e=String(t.source),n=t.flags,i=String(void 0===n&&t instanceof RegExp&&!("flags"in c)?a.call(t):n);return"/"+e+"/"+i}),{unsafe:!0})}})}));
//# sourceMappingURL=vueHotelDatepicker.umd.min.js.map