@revolugo/elements 4.13.18-beta.4 → 4.13.18-beta.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/css/revolugo.29.min.css +1 -1
- package/dist/css/revolugo.30.min.css +1 -1
- package/dist/css/revolugo.32.min.css +1 -1
- package/dist/css/revolugo.33.min.css +1 -1
- package/dist/css/revolugo.34.min.css +1 -1
- package/dist/css/revolugo.35.min.css +1 -0
- package/dist/index.min.js +1 -1
- package/dist/revolugo.1.js +0 -11
- package/dist/revolugo.1.min.js +1 -1
- package/dist/revolugo.10.js +13 -0
- package/dist/revolugo.10.min.js +2 -2
- package/dist/revolugo.11.js +13 -0
- package/dist/revolugo.11.min.js +2 -2
- package/dist/revolugo.12.js +13 -0
- package/dist/revolugo.12.min.js +2 -2
- package/dist/revolugo.13.js +13 -0
- package/dist/revolugo.13.min.js +2 -2
- package/dist/revolugo.14.js +13 -0
- package/dist/revolugo.14.min.js +2 -2
- package/dist/revolugo.15.js +13 -0
- package/dist/revolugo.15.min.js +2 -2
- package/dist/revolugo.16.js +13 -0
- package/dist/revolugo.16.min.js +2 -2
- package/dist/revolugo.17.js +13 -0
- package/dist/revolugo.17.min.js +1 -1
- package/dist/revolugo.18.js +2 -0
- package/dist/revolugo.18.min.js +1 -1
- package/dist/revolugo.19.js +2 -0
- package/dist/revolugo.19.min.js +1 -1
- package/dist/revolugo.20.js +2 -0
- package/dist/revolugo.20.min.js +2 -2
- package/dist/revolugo.21.js +13 -0
- package/dist/revolugo.21.min.js +2 -2
- package/dist/revolugo.22.js +2 -0
- package/dist/revolugo.22.min.js +1 -1
- package/dist/revolugo.23.js +2 -0
- package/dist/revolugo.23.min.js +1 -1
- package/dist/revolugo.24.js +2 -0
- package/dist/revolugo.24.min.js +1 -1
- package/dist/revolugo.25.js +11 -0
- package/dist/revolugo.25.min.js +1 -1
- package/dist/revolugo.26.js +2 -0
- package/dist/revolugo.26.min.js +1 -1
- package/dist/revolugo.29.js +1460 -997
- package/dist/revolugo.29.min.js +1 -1
- package/dist/revolugo.30.js +1141 -35810
- package/dist/revolugo.30.min.js +1 -1
- package/dist/revolugo.31.js +1359 -2190
- package/dist/revolugo.31.min.js +1 -1
- package/dist/revolugo.32.js +36689 -1836
- package/dist/revolugo.32.min.js +1 -1
- package/dist/revolugo.33.js +1724 -1437
- package/dist/revolugo.33.min.js +1 -1
- package/dist/revolugo.34.js +1576 -6567
- package/dist/revolugo.34.min.js +1 -1
- package/dist/revolugo.35.js +5198 -909
- package/dist/revolugo.35.min.js +1 -1
- package/dist/revolugo.36.js +680 -1607
- package/dist/revolugo.36.min.js +1 -1
- package/dist/revolugo.37.js +2986 -250
- package/dist/revolugo.37.min.js +1 -1
- package/dist/revolugo.38.js +1819 -0
- package/dist/revolugo.38.min.js +1 -0
- package/dist/revolugo.39.js +579 -0
- package/dist/revolugo.39.min.js +1 -0
- package/dist/revolugo.4.js +11 -0
- package/dist/revolugo.4.min.js +1 -1
- package/dist/revolugo.5.js +2 -0
- package/dist/revolugo.5.min.js +1 -1
- package/dist/revolugo.9.js +13 -0
- package/dist/revolugo.9.min.js +2 -2
- package/dist/revolugo.en-US.js +7 -0
- package/dist/revolugo.en-US.min.js +1 -1
- package/dist/revolugo.fr-FR.js +7 -0
- package/dist/revolugo.fr-FR.min.js +1 -1
- package/dist/revolugo.js +10 -8
- package/dist/revolugo.min.js +1 -1
- package/package.json +1 -1
- /package/dist/css/{revolugo.36.min.css → revolugo.37.min.css} +0 -0
package/dist/revolugo.36.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(window["revolugo_jsonp"]=window["revolugo_jsonp"]||[]).push([[36],{"05ef":function(e,t,n){(function(e,o){n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));n("c3d6"),n("c2fc"),n("3639"),n("45a8"),n("c9b3");var i={474:function(e){e.exports=function(){var e=1e3,t=6e4,n=36e5,o="millisecond",i="second",r="minute",a="hour",l="day",c="week",s="month",u="quarter",f="year",d="date",m="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},_=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+_(o,2,"0")+":"+_(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var o=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(o,s),r=n-i<0,a=t.clone().add(o+(r?-1:1),s);return+(-(o+(n-i)/(r?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:f,w:c,d:l,D:d,h:a,m:r,s:i,ms:o,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",g={};g[y]=b;var $=function(e){return e instanceof M},P=function e(t,n,o){var i;if(!t)return y;if("string"==typeof t){var r=t.toLowerCase();g[r]&&(i=r),n&&(g[r]=n,i=r);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var l=t.name;g[l]=t,i=l}return!o&&i&&(y=i),i||!o&&y},D=function(e,t){if($(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new M(n)},O=v;O.l=P,O.i=$,O.w=function(e,t){return D(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var M=function(){function b(e){this.$L=P(e.locale,null,!0),this.parse(e)}var _=b.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(O.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(p);if(o){var i=o[2]-1||0,r=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],i,o[3]||1,o[4]||0,o[5]||0,o[6]||0,r)):new Date(o[1],i,o[3]||1,o[4]||0,o[5]||0,o[6]||0,r)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return O},_.isValid=function(){return!(this.$d.toString()===m)},_.isSame=function(e,t){var n=D(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return D(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<D(e)},_.$g=function(e,t,n){return O.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,o=!!O.u(t)||t,u=O.p(e),m=function(e,t){var i=O.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return o?i:i.endOf(l)},p=function(e,t){return O.w(n.toDate()[e].apply(n.toDate("s"),(o?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,b=this.$M,_=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case f:return o?m(1,0):m(31,11);case s:return o?m(1,b):m(0,b+1);case c:var y=this.$locale().weekStart||0,g=(h<y?h+7:h)-y;return m(o?_-g:_+(6-g),b);case l:case d:return p(v+"Hours",0);case a:return p(v+"Minutes",1);case r:return p(v+"Seconds",2);case i:return p(v+"Milliseconds",3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=O.p(e),u="set"+(this.$u?"UTC":""),m=(n={},n[l]=u+"Date",n[d]=u+"Date",n[s]=u+"Month",n[f]=u+"FullYear",n[a]=u+"Hours",n[r]=u+"Minutes",n[i]=u+"Seconds",n[o]=u+"Milliseconds",n)[c],p=c===l?this.$D+(t-this.$W):t;if(c===s||c===f){var h=this.clone().set(d,1);h.$d[m](p),h.init(),this.$d=h.set(d,Math.min(this.$D,h.daysInMonth())).$d}else m&&this.$d[m](p);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[O.p(e)]()},_.add=function(o,u){var d,m=this;o=Number(o);var p=O.p(u),h=function(e){var t=D(m);return O.w(t.date(t.date()+Math.round(e*o)),m)};if(p===s)return this.set(s,this.$M+o);if(p===f)return this.set(f,this.$y+o);if(p===l)return h(1);if(p===c)return h(7);var b=(d={},d[r]=t,d[a]=n,d[i]=e,d)[p]||1,_=this.$d.getTime()+o*b;return O.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||m;var o=e||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),r=this.$H,a=this.$m,l=this.$M,c=n.weekdays,s=n.months,u=function(e,n,i,r){return e&&(e[n]||e(t,o))||i[n].slice(0,r)},f=function(e){return O.s(r%12||12,e,"0")},d=n.meridiem||function(e,t,n){var o=e<12?"AM":"PM";return n?o.toLowerCase():o},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:O.s(l+1,2,"0"),MMM:u(n.monthsShort,l,s,3),MMMM:u(s,l),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,c,2),ddd:u(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(r),HH:O.s(r,2,"0"),h:f(1),hh:f(2),a:d(r,a,!0),A:d(r,a,!1),m:String(a),mm:O.s(a,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return o.replace(h,(function(e,t){return t||p[e]||i.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(o,d,m){var p,h=O.p(d),b=D(o),_=(b.utcOffset()-this.utcOffset())*t,v=this-b,y=O.m(this,b);return y=(p={},p[f]=y/12,p[s]=y,p[u]=y/3,p[c]=(v-_)/6048e5,p[l]=(v-_)/864e5,p[a]=v/n,p[r]=v/t,p[i]=v/e,p)[h]||v,m?y:O.a(y)},_.daysInMonth=function(){return this.endOf(s).$D},_.$locale=function(){return g[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),o=P(e,t,!0);return o&&(n.$L=o),n},_.clone=function(){return O.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},b}(),C=M.prototype;return D.prototype=C,[["$ms",o],["$s",i],["$m",r],["$H",a],["$W",l],["$M",s],["$y",f],["$D",d]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),D.extend=function(e,t){return e.$i||(e(t,M,D),e.$i=!0),D},D.locale=P,D.isDayjs=$,D.unix=function(e){return D(1e3*e)},D.en=g[y],D.Ls=g,D.p={},D}()},213:function(e){e.exports=function(e,t,n){t.prototype.isBetween=function(e,t,o,i){var r=n(e),a=n(t),l="("===(i=i||"()")[0],c=")"===i[1];return(l?this.isAfter(r,o):!this.isBefore(r,o))&&(c?this.isBefore(a,o):!this.isAfter(a,o))||(l?this.isBefore(r,o):!this.isAfter(r,o))&&(c?this.isAfter(a,o):!this.isBefore(a,o))}}},618:function(e){e.exports=function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}},357:function(e){e.exports=function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}},298:function(e){var t,n;e.exports=(t={year:0,month:1,day:2,hour:3,minute:4,second:5},n={},function(e,o,i){var r,a=function(e,t,o){void 0===o&&(o={});var i=new Date(e),r=function(e,t){void 0===t&&(t={});var o=t.timeZoneName||"short",i=e+"|"+o,r=n[i];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:o}),n[i]=r),r}(t,o);return r.formatToParts(i)},l=function(e,n){for(var o=a(e,n),r=[],l=0;l<o.length;l+=1){var c=o[l],s=c.type,u=c.value,f=t[s];f>=0&&(r[f]=parseInt(u,10))}var d=r[3],m=24===d?0:d,p=r[0]+"-"+r[1]+"-"+r[2]+" "+m+":"+r[4]+":"+r[5]+":000",h=+e;return(i.utc(p).valueOf()-(h-=h%1e3))/6e4},c=o.prototype;c.tz=function(e,t){void 0===e&&(e=r);var n=this.utcOffset(),o=this.toDate(),a=o.toLocaleString("en-US",{timeZone:e}),l=Math.round((o-new Date(a))/1e3/60),c=i(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(o.getTimezoneOffset()/15)-l,!0);if(t){var s=c.utcOffset();c=c.add(n-s,"minute")}return c.$x.$timezone=e,c},c.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var s=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return s.call(this,e,t);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return s.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var o=n&&t,a=n||t||r,c=l(+i(),a);if("string"!=typeof e)return i(e).tz(a);var s=function(e,t,n){var o=e-60*t*1e3,i=l(o,n);if(t===i)return[o,t];var r=l(o-=60*(i-t)*1e3,n);return i===r?[o,i]:[e-60*Math.min(i,r)*1e3,Math.max(i,r)]}(i.utc(e,o).valueOf(),c,a),u=s[0],f=s[1],d=i(u).utcOffset(f);return d.$x.$timezone=a,d},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){r=e}})},381:function(e){var t,n,o;e.exports=(t="minute",n=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g,function(e,i,r){var a=i.prototype;r.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(e){var n=r(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},a.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var l=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),l.call(this,e)};var c=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var s=a.utcOffset;a.utcOffset=function(e,i){var r=this.$utils().u;if(r(e))return this.$u?0:r(this.$offset)?s.call(this):this.$offset;if("string"==typeof e&&(e=function(e){void 0===e&&(e="");var t=e.match(n);if(!t)return null;var i=(""+t[0]).match(o)||["-",0,0],r=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===r?a:-a}(e),null===e))return this;var a=Math.abs(e)<=16?60*e:e,l=this;if(i)return l.$offset=a,l.$u=0===e,l;if(0!==e){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(l=this.local().add(a+c,t)).$offset=a,l.$x.$localOffset=c}else l=this.utc();return l};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var o=this.local(),i=r(e).local();return d.call(o,i,t,n)}})}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var l={};(()=>{a.d(l,{b4:()=>It,eE:()=>At,HO:()=>Lt,Ms:()=>kt});var t=a(474),n=a.n(t),i=a(213),r=a.n(i),c=a(618),s=a.n(c),u=a(357),f=a.n(u),d=a(298),m=a.n(d),p=a(381),h=a.n(p),b=Object.prototype;const _=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||b)},v=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var y=Object.prototype.hasOwnProperty;const g=function(e){if(!_(e))return v(e);var t=[];for(var n in Object(e))y.call(e,n)&&"constructor"!=n&&t.push(n);return t},$="object"==typeof e&&e&&e.Object===Object&&e;var P="object"==typeof self&&self&&self.Object===Object&&self;const D=$||P||Function("return this")(),O=D.Symbol;var M=Object.prototype,C=M.hasOwnProperty,w=M.toString,S=O?O.toStringTag:void 0;const j=function(e){var t=C.call(e,S),n=e[S];try{e[S]=void 0;var o=!0}catch(e){}var i=w.call(e);return o&&(t?e[S]=n:delete e[S]),i};var x=Object.prototype.toString;const T=function(e){return x.call(e)};var z=O?O.toStringTag:void 0;const B=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?j(e):T(e)},k=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},A=function(e){if(!k(e))return!1;var t=B(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},I=D["__core-js_shared__"];var L,F=(L=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"";const E=function(e){return!!F&&F in e};var H=Function.prototype.toString;const Y=function(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var R=/^\[object .+?Constructor\]$/,U=Function.prototype,W=Object.prototype,N=U.toString,Z=W.hasOwnProperty,V=RegExp("^"+N.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const q=function(e){return!(!k(e)||E(e))&&(A(e)?V:R).test(Y(e))},J=function(e,t){return null==e?void 0:e[t]},G=function(e,t){var n=J(e,t);return q(n)?n:void 0},Q=G(D,"DataView"),K=G(D,"Map"),X=G(D,"Promise"),ee=G(D,"Set"),te=G(D,"WeakMap");var ne="[object Map]",oe="[object Promise]",ie="[object Set]",re="[object WeakMap]",ae="[object DataView]",le=Y(Q),ce=Y(K),se=Y(X),ue=Y(ee),fe=Y(te),de=B;(Q&&de(new Q(new ArrayBuffer(1)))!=ae||K&&de(new K)!=ne||X&&de(X.resolve())!=oe||ee&&de(new ee)!=ie||te&&de(new te)!=re)&&(de=function(e){var t=B(e),n="[object Object]"==t?e.constructor:void 0,o=n?Y(n):"";if(o)switch(o){case le:return ae;case ce:return ne;case se:return oe;case ue:return ie;case fe:return re}return t});const me=de,pe=function(e){return null!=e&&"object"==typeof e},he=function(e){return pe(e)&&"[object Arguments]"==B(e)};var be=Object.prototype,_e=be.hasOwnProperty,ve=be.propertyIsEnumerable;const ye=he(function(){return arguments}())?he:function(e){return pe(e)&&_e.call(e,"callee")&&!ve.call(e,"callee")},ge=Array.isArray,$e=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Pe=function(e){return null!=e&&$e(e.length)&&!A(e)},De=function(){return!1};var Oe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Me=Oe&&"object"==typeof o&&o&&!o.nodeType&&o,Ce=Me&&Me.exports===Oe?D.Buffer:void 0;const we=(Ce?Ce.isBuffer:void 0)||De;var Se={};Se["[object Float32Array]"]=Se["[object Float64Array]"]=Se["[object Int8Array]"]=Se["[object Int16Array]"]=Se["[object Int32Array]"]=Se["[object Uint8Array]"]=Se["[object Uint8ClampedArray]"]=Se["[object Uint16Array]"]=Se["[object Uint32Array]"]=!0,Se["[object Arguments]"]=Se["[object Array]"]=Se["[object ArrayBuffer]"]=Se["[object Boolean]"]=Se["[object DataView]"]=Se["[object Date]"]=Se["[object Error]"]=Se["[object Function]"]=Se["[object Map]"]=Se["[object Number]"]=Se["[object Object]"]=Se["[object RegExp]"]=Se["[object Set]"]=Se["[object String]"]=Se["[object WeakMap]"]=!1;const je=function(e){return pe(e)&&$e(e.length)&&!!Se[B(e)]},xe=function(e){return function(t){return e(t)}};var Te="object"==typeof exports&&exports&&!exports.nodeType&&exports,ze=Te&&"object"==typeof o&&o&&!o.nodeType&&o,Be=ze&&ze.exports===Te&&$.process,ke=function(){try{var e=ze&&ze.require&&ze.require("util").types;return e||Be&&Be.binding&&Be.binding("util")}catch(e){}}(),Ae=ke&&ke.isTypedArray;const Ie=Ae?xe(Ae):je;var Le=Object.prototype.hasOwnProperty;const Fe=function(e){if(null==e)return!0;if(Pe(e)&&(ge(e)||"string"==typeof e||"function"==typeof e.splice||we(e)||Ie(e)||ye(e)))return!e.length;var t=me(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(_(e))return!g(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Ee=function(e){for(var t=-1,n=null==e?0:e.length,o=0,i=[];++t<n;){var r=e[t];r&&(i[o++]=r)}return i},He=G(Object,"create"),Ye=function(){this.__data__=He?He(null):{},this.size=0},Re=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Ue=Object.prototype.hasOwnProperty;const We=function(e){var t=this.__data__;if(He){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ue.call(t,e)?t[e]:void 0};var Ne=Object.prototype.hasOwnProperty;const Ze=function(e){var t=this.__data__;return He?void 0!==t[e]:Ne.call(t,e)},Ve=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=He&&void 0===t?"__lodash_hash_undefined__":t,this};function qe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}qe.prototype.clear=Ye,qe.prototype.delete=Re,qe.prototype.get=We,qe.prototype.has=Ze,qe.prototype.set=Ve;const Je=qe,Ge=function(){this.__data__=[],this.size=0},Qe=function(e,t){return e===t||e!=e&&t!=t},Ke=function(e,t){for(var n=e.length;n--;)if(Qe(e[n][0],t))return n;return-1};var Xe=Array.prototype.splice;const et=function(e){var t=this.__data__,n=Ke(t,e);return!(n<0)&&(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,!0)},tt=function(e){var t=this.__data__,n=Ke(t,e);return n<0?void 0:t[n][1]},nt=function(e){return Ke(this.__data__,e)>-1},ot=function(e,t){var n=this.__data__,o=Ke(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function it(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}it.prototype.clear=Ge,it.prototype.delete=et,it.prototype.get=tt,it.prototype.has=nt,it.prototype.set=ot;const rt=it,at=function(){this.size=0,this.__data__={hash:new Je,map:new(K||rt),string:new Je}},lt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},ct=function(e,t){var n=e.__data__;return lt(t)?n["string"==typeof t?"string":"hash"]:n.map},st=function(e){var t=ct(this,e).delete(e);return this.size-=t?1:0,t},ut=function(e){return ct(this,e).get(e)},ft=function(e){return ct(this,e).has(e)},dt=function(e,t){var n=ct(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function mt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}mt.prototype.clear=at,mt.prototype.delete=st,mt.prototype.get=ut,mt.prototype.has=ft,mt.prototype.set=dt;const pt=mt,ht=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},bt=function(e){return this.__data__.has(e)};function _t(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new pt;++t<n;)this.add(e[t])}_t.prototype.add=_t.prototype.push=ht,_t.prototype.has=bt;const vt=_t,yt=function(e,t,n,o){for(var i=e.length,r=n+(o?1:-1);o?r--:++r<i;)if(t(e[r],r,e))return r;return-1},gt=function(e){return e!=e},$t=function(e,t,n){for(var o=n-1,i=e.length;++o<i;)if(e[o]===t)return o;return-1},Pt=function(e,t,n){return t==t?$t(e,t,n):yt(e,gt,n)},Dt=function(e,t){return!(null==e||!e.length)&&Pt(e,t,0)>-1},Ot=function(e,t,n){for(var o=-1,i=null==e?0:e.length;++o<i;)if(n(t,e[o]))return!0;return!1},Mt=function(e,t){return e.has(t)},Ct=function(){},wt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},St=ee&&1/wt(new ee([,-0]))[1]==1/0?function(e){return new ee(e)}:Ct,jt=function(e,t,n){var o=-1,i=Dt,r=e.length,a=!0,l=[],c=l;if(n)a=!1,i=Ot;else if(r>=200){var s=t?null:St(e);if(s)return wt(s);a=!1,i=Mt,c=new vt}else c=t?[]:l;e:for(;++o<r;){var u=e[o],f=t?t(u):u;if(u=n||0!==u?u:0,a&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),l.push(u)}else i(c,f,n)||(c!==l&&c.push(f),l.push(u))}return l},xt=function(e){return e&&e.length?jt(e):[]};n().extend(h()),n().extend(m()),n().extend(r()),n().extend(s()),n().extend(f());const Tt=e=>n()(e).add(1,"day").utc().format();function zt(e){return/\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])T(?:[01]\d|2[0-3])(?::[0-5]\d){2}(?:\.\d+|)(?:Z|[+-]\d{2}:?\d{2})/u.test(e)}const Bt=({cancellationPolicies:e,date:t})=>e.filter(e=>n()(t).isBetween(e.date_from,e.date_to,void 0,"[)")),kt=({bookingDatetime:e,cancellationPolicies:t,checkInDate:o,releaseDate:i,timezone:r})=>{if(!e)throw new Error('Missing "bookingDatetime" option');if(!o)throw new Error('Missing "checkInDate" option');if(!r)throw new Error('Missing "timezone" option');const a=n()(e).utc().format(),l=n().tz(o,r).startOf("day").utc().format(),c=Tt(l),s=i&&n().tz(i,r).startOf("day").utc().format();if(n()(a).isAfter(c))return kt({bookingDatetime:l,cancellationPolicies:t,checkInDate:o,releaseDate:i,timezone:r});if(Fe(t))return n()(a).isBefore(l)?s?n()(s).isBefore(a)?[{date_from:a,date_to:c,penalty_percentage:100}]:[{date_from:a,date_to:s,penalty_percentage:0},{date_from:s,date_to:c,penalty_percentage:100}]:[{date_from:a,date_to:l,penalty_percentage:0},{date_from:l,date_to:c,penalty_percentage:100}]:[{date_from:a,date_to:c,penalty_percentage:100}];let u=Ee(t);if(!u.every(e=>e.date_from&&e.date_to&&n()(e.date_from).isBefore(e.date_to)))return[{date_from:a,date_to:c,penalty_percentage:100}];u=u.filter(e=>n()(e.date_to).diff(n()(e.date_from),"minutes")>=20).sort((e,t)=>n()(e.date_from).isAfter(n()(t.date_from))?1:-1).map(e=>(e.date_from=n().tz(e.date_from,r).utc(zt(e.date_from)).utc().format(),e.date_to=n().tz(e.date_to,r).utc(zt(e.date_to)).utc().format(),e)),s&&n()(s).isBetween(n()(a),n()(u[0].date_from,void 0,"[)"))&&u.push({date_from:a,date_to:s,penalty_percentage:0},{date_from:s,date_to:u[0].date_from,penalty_percentage:100});const f=u.reduce((e,t)=>(e.push(n()(t.date_from).utc().format(),n()(t.date_to).utc().format()),e),[]).concat(a,c),d=xt(f).sort((e,t)=>n()(e).isAfter(n()(t))?1:-1);let m=[],p=0,h="";for(const[b,_]of d.entries()){const e=Bt({cancellationPolicies:u,date:_});let t=null;t=Fe(e)?s&&n()(s).isBefore(n()(a))?100:0:Math.max(...e.map(e=>e.penalty_percentage)),h?(Fe(e)&&(t=100),p===t&&b!==d.length-1||(m.push({date_from:h,date_to:_,penalty_percentage:p}),h=_,p=t)):(h=_,p=t)}return m=m.filter(e=>!n()(e.date_to).isSameOrBefore(a)&&!n()(e.date_from).isSameOrAfter(c)),m[0].date_from=a,m.at(-1).date_to=c,m},At=({bookingDatetime:e,cancellationPolicies:t,checkInDate:o,datetime:i,releaseDate:r,timezone:a})=>{if(!e)throw new Error('Missing "bookingDatetime" option');if(!o)throw new Error('Missing "checkInDate" option');if(!i)throw new Error('Missing "datetime" option');if(!a)throw new Error('Missing "timezone" option');const l=n()(i).utc().format(),c=n()(e).utc().format(),s=n().tz(o,a).startOf("day").utc().format(),u=Tt(s);if(n()(l).isSameOrAfter(n()(u)))return 100;if(n()(l).isBefore(n()(c)))return 0;const f=kt({bookingDatetime:e,cancellationPolicies:t,checkInDate:o,releaseDate:r,timezone:a}),d=Bt({cancellationPolicies:f,date:i});return d[0]&&d[0].penalty_percentage},It=({bookingDatetime:e,cancellationPolicies:t,checkInDate:o,releaseDate:i,timezone:r})=>{const a=n()().utc().format();return At({bookingDatetime:e,cancellationPolicies:t,checkInDate:o,datetime:a,releaseDate:i,timezone:r})},Lt=(e,t)=>!!Fe(e)||!Fe(t)&&(e[0].dateTo?t.every(t=>{const o=e.find(e=>n()(t.date_to).isBetween(e.date_from,e.date_to,null,"[]"));return!o||t.penalty_percentage>=o.penalty_percentage}):t.every(t=>{const o=e.find(e=>n()(t.dateTo).isBetween(e.dateFrom,e.dateTo,null,"[]"));return!o||t.penaltyPercentage>=o.penaltyPercentage}))})();var c=l.b4,s=(l.eE,l.HO,l.Ms)}).call(this,n("35b1"),n("9fc2")(e))},"21ba":function(e,t,n){n.r(t);var o=n("c59f");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i)},"57b9":function(e,t,n){var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("ul",[e._l(e.sanitizedCancellationPolicies,(function(n,o){return[t("section",{key:o},[0===o&&0===n.penaltyPercentage?[t("li",{staticClass:"success--text text--lighten-1",domProps:{innerHTML:e._s(e.$t("CancellationPoliciesList.freeCancellationBefore",{date:e.formatDate(n.dateTo)}))}})]:0===n.penaltyPercentage?[t("li",{staticClass:"success--text text--lighten-1",domProps:{innerHTML:e._s(e.$t("CancellationPoliciesList.freeCancellationBetween",{from:e.formatDate(n.dateFrom),to:e.formatDate(n.dateTo)}))}})]:100===n.penaltyPercentage&&o===e.cancellationPolicies.length-1?[t("li",{domProps:{innerHTML:e._s(e.$t("CancellationPoliciesList.nonRefundableAfter",{from:e.formatDate(n.dateFrom)}))}})]:[t("li",{domProps:{innerHTML:e._s(e.$t("CancellationPoliciesList.partiallyRefundableCondition",{percentage:n.penaltyPercentage,from:e.formatDate(n.dateFrom),to:e.formatDate(n.dateTo)}))}})]],2)]})),100!==e.sanitizedCancellationPolicies[e.sanitizedCancellationPolicies.length-1].penaltyPercentage?[t("li",{domProps:{innerHTML:e._s(e.$t("CancellationPoliciesList.nonRefundableAfter",{from:e.formatDate(e.sanitizedCancellationPolicies[e.sanitizedCancellationPolicies.length-1].dateTo)}))}})]:e._e()],2)},i=[],r=n("05ef"),a=n("cbfb"),l=n.n(a),c=n("1eef"),s=n.n(c),u=n("ad27"),f=n("6337"),d=n("5b96");function m(){var e="/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/CancellationPoliciesList/CancellationPoliciesList.ts",t="ba816124a95aa3930c41f3193e80052b04dab9ee",n=new Function("return this")(),o="__coverage__",i={path:"/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/CancellationPoliciesList/CancellationPoliciesList.ts",statementMap:{0:{start:{line:13,column:12},end:{line:20,column:13}},1:{start:{line:14,column:16},end:{line:19,column:17}},2:{start:{line:15,column:20},end:{line:15,column:65}},3:{start:{line:18,column:20},end:{line:18,column:30}},4:{start:{line:21,column:12},end:{line:21,column:45}},5:{start:{line:24,column:12},end:{line:35,column:16}},6:{start:{line:26,column:86},end:{line:32,column:17}},7:{start:{line:40,column:12},end:{line:46,column:15}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:8},end:{line:12,column:9}},loc:{start:{line:12,column:42},end:{line:22,column:9}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:23,column:8},end:{line:23,column:9}},loc:{start:{line:23,column:40},end:{line:36,column:9}},line:23},2:{name:"(anonymous_2)",decl:{start:{line:26,column:79},end:{line:26,column:80}},loc:{start:{line:26,column:86},end:{line:32,column:17}},line:26},3:{name:"(anonymous_3)",decl:{start:{line:39,column:8},end:{line:39,column:9}},loc:{start:{line:39,column:24},end:{line:47,column:9}},line:39}},branchMap:{0:{loc:{start:{line:13,column:12},end:{line:20,column:13}},type:"if",locations:[{start:{line:13,column:12},end:{line:20,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:13},1:{loc:{start:{line:25,column:33},end:{line:25,column:69}},type:"binary-expr",locations:[{start:{line:25,column:33},end:{line:25,column:49}},{start:{line:25,column:53},end:{line:25,column:69}}],line:25}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ba816124a95aa3930c41f3193e80052b04dab9ee"},r=n[o]||(n[o]={});r[e]&&r[e].hash===t||(r[e]=i);var a=r[e];return m=function(){return a},a}m();var p=u["a"].extend({name:"CancellationPoliciesList",mixins:[Object(f["a"])("components/RevolugoElements/CancellationPoliciesList")],props:d["a"],computed:{parsedInputCancellationPolicies(){if(m().f[0]++,m().s[0]++,"string"===typeof this.cancellationPolicies){m().b[0][0]++,m().s[1]++;try{return m().s[2]++,JSON.parse(this.cancellationPolicies)}catch{return m().s[3]++,[]}}else m().b[0][1]++;return m().s[4]++,this.cancellationPolicies},sanitizedCancellationPolicies(){return m().f[1]++,m().s[5]++,l()(Object(r["b"])({bookingDatetime:(m().b[1][0]++,this.initialDate||(m().b[1][1]++,s()().format())),cancellationPolicies:this.parsedInputCancellationPolicies.map(e=>(m().f[2]++,m().s[6]++,{date_from:e.dateFrom,date_to:e.dateTo,penalty_percentage:e.penaltyPercentage})),checkInDate:this.checkInDate,timezone:this.timezone}))}},methods:{formatDate(e){return m().f[3]++,m().s[7]++,new Date(e).toLocaleTimeString(this.$i18n.locale,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}}}),h=p,b=n("f0a0"),_=Object(b["a"])(h,o,i,!1,null,null,null,!0);t["a"]=_.exports},"5b96":function(e,t,n){function o(){var e="/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/CancellationPoliciesList/CancellationPoliciesList.props.ts",t="6bb8f7144431d66e79f442ad870f35b536b15bbb",n=new Function("return this")(),i="__coverage__",r={path:"/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/CancellationPoliciesList/CancellationPoliciesList.props.ts",statementMap:{0:{start:{line:1,column:45},end:{line:17,column:1}}},fnMap:{},branchMap:{},s:{0:0},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6bb8f7144431d66e79f442ad870f35b536b15bbb"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=r);var l=a[e];return o=function(){return l},l}n.d(t,"a",(function(){return i})),o();const i=(o().s[0]++,{cancellationPolicies:{required:!0,type:[String,Array]},checkInDate:{required:!0,type:String},initialDate:{type:String},timezone:{required:!0,type:String}})},9720:function(e,t,n){n.d(t,"a",(function(){return r}));var o=n("5b96");function i(){var e="/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/CancellationPoliciesBadge/CancellationPoliciesBadge.props.ts",t="bd770b6d34809454f62b6079a3fecac4f8ee0deb",n=new Function("return this")(),o="__coverage__",r={path:"/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/CancellationPoliciesBadge/CancellationPoliciesBadge.props.ts",statementMap:{0:{start:{line:2,column:46},end:{line:5,column:1}}},fnMap:{},branchMap:{},s:{0:0},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"bd770b6d34809454f62b6079a3fecac4f8ee0deb"},a=n[o]||(n[o]={});a[e]&&a[e].hash===t||(a[e]=r);var l=a[e];return i=function(){return l},l}i();const r=(i().s[0]++,{...o["a"],tagClasses:{type:String}})},"9ed2":function(e,t,n){var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("span",{staticClass:"d-inline-block"},[t("v-tooltip",{attrs:{attach:e.$parent.$el,color:"grey darken-3","content-class":"text-left",disabled:!e.isTooltipEnabled,top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:o}){return[t("v-chip",e._g(e._b({staticClass:"d-inline-block",attrs:{label:"",small:!e.regular}},"v-chip",{...o,...e.$attrs},!1),n),[e.preIcon?t("v-icon",{attrs:{left:""}},[e._v(" "+e._s(e.preIcon)+" ")]):e._e(),e._t("default"),e.postIcon?t("v-icon",{staticClass:"ml-1",attrs:{right:""}},[e._v(" "+e._s(e.postIcon)+" ")]):e._e()],2)]}}],null,!0)},[e._t("tooltipContent",(function(){return[e._v(" "+e._s(e.tooltipContent)+" ")]}))],2)],1)},i=[],r=n("ad27");function a(){var e="/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/ui/BTag/BTag.ts",t="0d3b585bef7ead7a12d97bdb04d081021b459219",n=new Function("return this")(),o="__coverage__",i={path:"/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/ui/BTag/BTag.ts",statementMap:{0:{start:{line:2,column:21},end:{line:7,column:1}},1:{start:{line:14,column:12},end:{line:14,column:190}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:8},end:{line:12,column:9}},loc:{start:{line:12,column:27},end:{line:15,column:9}},line:12}},branchMap:{0:{loc:{start:{line:14,column:20},end:{line:14,column:188}},type:"binary-expr",locations:[{start:{line:14,column:20},end:{line:14,column:97}},{start:{line:14,column:101},end:{line:14,column:188}}],line:14},1:{loc:{start:{line:14,column:23},end:{line:14,column:96}},type:"cond-expr",locations:[{start:{line:14,column:78},end:{line:14,column:84}},{start:{line:14,column:87},end:{line:14,column:96}}],line:14},2:{loc:{start:{line:14,column:23},end:{line:14,column:75}},type:"binary-expr",locations:[{start:{line:14,column:23},end:{line:14,column:58}},{start:{line:14,column:62},end:{line:14,column:75}}],line:14},3:{loc:{start:{line:14,column:104},end:{line:14,column:187}},type:"cond-expr",locations:[{start:{line:14,column:169},end:{line:14,column:175}},{start:{line:14,column:178},end:{line:14,column:187}}],line:14},4:{loc:{start:{line:14,column:104},end:{line:14,column:166}},type:"binary-expr",locations:[{start:{line:14,column:104},end:{line:14,column:149}},{start:{line:14,column:153},end:{line:14,column:166}}],line:14}},s:{0:0,1:0},f:{0:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0d3b585bef7ead7a12d97bdb04d081021b459219"},r=n[o]||(n[o]={});r[e]&&r[e].hash===t||(r[e]=i);var l=r[e];return a=function(){return l},l}a();const l=(a().s[0]++,{postIcon:{type:String},preIcon:{type:String},regular:{type:Boolean},tooltipContent:{type:String}});var c=r["a"].extend({name:"BTag",props:l,computed:{isTooltipEnabled(){var e,t;return a().f[0]++,a().s[1]++,a().b[0][0]++,a().b[2][0]++,!!(null===(e=this.tooltipContent)||(a().b[2][1]++,void 0===e)?void a().b[1][0]++:(a().b[1][1]++,e.length))||(a().b[0][1]++,a().b[4][0]++,!!(null===(t=this.$slots["tooltipContent"])||(a().b[4][1]++,void 0===t)?void a().b[3][0]++:(a().b[3][1]++,t.length)))}}}),s=c,u=n("f0a0"),f=n("61eb"),d=n.n(f),m=n("dcde"),p=n("fbf8"),h=n("9be7");function b(e){var t=n("21ba");t.__inject__&&t.__inject__(e)}var _=Object(u["a"])(s,o,i,!1,b,"06038fd6",null,!0);t["a"]=_.exports;d()(_,{VChip:m["a"],VIcon:p["a"],VTooltip:h["a"]})},c59f:function(e,t,n){},d406:function(e,t,n){var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("b-tag",{attrs:{color:e.color,outlined:!e.isRefundable,"pre-icon":e.preIcon,"text-color":e.isRefundable?"white":void 0},scopedSlots:e._u([{key:"tooltipContent",fn:function(){return[t("div",[t("b",[e._v(e._s(e.$t("CancellationPoliciesBadge.cancellationPolicies")))])]),t("cancellation-policies-list",{attrs:{"cancellation-policies":e.sanitizedCancellationPolicies,"check-in-date":e.checkInDate,"initial-date":e.initialDate,timezone:e.timezone}})]},proxy:!0}])},[0===e.currentCancellationPolicy.penaltyPercentage?t("span",[e._v(" "+e._s(e.$t("CancellationPoliciesBadge.freeCancellationBefore"))+" ")]):100===e.currentCancellationPolicy.penaltyPercentage?t("span",[e._v(" "+e._s(e.$t("CancellationPoliciesBadge.nonRefundable"))+" ")]):t("span",[e._v(" "+e._s(e.$t("CancellationPoliciesBadge.partiallyRefundable"))+" ")])])},i=[],r=n("05ef"),a=n("cbfb"),l=n.n(a),c=n("1eef"),s=n.n(c),u=n("5ecd"),f=n.n(u),d=n("ad27"),m=n("57b9"),p=n("9ed2"),h=n("6337"),b=n("9720");function _(){var e="/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/CancellationPoliciesBadge/CancellationPoliciesBadge.ts",t="bbe4b3f811d308f499340429b020afde1691694a",n=new Function("return this")(),o="__coverage__",i={path:"/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/CancellationPoliciesBadge/CancellationPoliciesBadge.ts",statementMap:{0:{start:{line:10,column:0},end:{line:10,column:18}},1:{start:{line:21,column:12},end:{line:28,column:13}},2:{start:{line:22,column:16},end:{line:27,column:17}},3:{start:{line:23,column:20},end:{line:23,column:65}},4:{start:{line:26,column:20},end:{line:26,column:30}},5:{start:{line:29,column:12},end:{line:29,column:45}},6:{start:{line:32,column:12},end:{line:43,column:16}},7:{start:{line:34,column:81},end:{line:40,column:17}},8:{start:{line:47,column:12},end:{line:49,column:13}},9:{start:{line:48,column:16},end:{line:48,column:34}},10:{start:{line:50,column:12},end:{line:52,column:13}},11:{start:{line:51,column:16},end:{line:51,column:26}},12:{start:{line:53,column:12},end:{line:53,column:36}},13:{start:{line:56,column:12},end:{line:56,column:58}},14:{start:{line:59,column:12},end:{line:59,column:177}},15:{start:{line:59,column:70},end:{line:59,column:133}},16:{start:{line:63,column:12},end:{line:63,column:165}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:20,column:8},end:{line:20,column:9}},loc:{start:{line:20,column:37},end:{line:30,column:9}},line:20},1:{name:"(anonymous_1)",decl:{start:{line:31,column:8},end:{line:31,column:9}},loc:{start:{line:31,column:40},end:{line:44,column:9}},line:31},2:{name:"(anonymous_2)",decl:{start:{line:34,column:74},end:{line:34,column:75}},loc:{start:{line:34,column:81},end:{line:40,column:17}},line:34},3:{name:"(anonymous_3)",decl:{start:{line:45,column:8},end:{line:45,column:9}},loc:{start:{line:45,column:18},end:{line:54,column:9}},line:45},4:{name:"(anonymous_4)",decl:{start:{line:55,column:8},end:{line:55,column:9}},loc:{start:{line:55,column:16},end:{line:57,column:9}},line:55},5:{name:"(anonymous_5)",decl:{start:{line:58,column:8},end:{line:58,column:9}},loc:{start:{line:58,column:36},end:{line:60,column:9}},line:58},6:{name:"(anonymous_6)",decl:{start:{line:59,column:60},end:{line:59,column:61}},loc:{start:{line:59,column:70},end:{line:59,column:133}},line:59},7:{name:"(anonymous_7)",decl:{start:{line:61,column:8},end:{line:61,column:9}},loc:{start:{line:61,column:23},end:{line:64,column:9}},line:61}},branchMap:{0:{loc:{start:{line:21,column:12},end:{line:28,column:13}},type:"if",locations:[{start:{line:21,column:12},end:{line:28,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:21},1:{loc:{start:{line:33,column:33},end:{line:33,column:69}},type:"binary-expr",locations:[{start:{line:33,column:33},end:{line:33,column:49}},{start:{line:33,column:53},end:{line:33,column:69}}],line:33},2:{loc:{start:{line:47,column:12},end:{line:49,column:13}},type:"if",locations:[{start:{line:47,column:12},end:{line:49,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:47},3:{loc:{start:{line:47,column:17},end:{line:47,column:112}},type:"cond-expr",locations:[{start:{line:47,column:83},end:{line:47,column:89}},{start:{line:47,column:92},end:{line:47,column:112}}],line:47},4:{loc:{start:{line:47,column:17},end:{line:47,column:80}},type:"binary-expr",locations:[{start:{line:47,column:17},end:{line:47,column:63}},{start:{line:47,column:67},end:{line:47,column:80}}],line:47},5:{loc:{start:{line:50,column:12},end:{line:52,column:13}},type:"if",locations:[{start:{line:50,column:12},end:{line:52,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:50},6:{loc:{start:{line:50,column:17},end:{line:50,column:112}},type:"cond-expr",locations:[{start:{line:50,column:83},end:{line:50,column:89}},{start:{line:50,column:92},end:{line:50,column:112}}],line:50},7:{loc:{start:{line:50,column:17},end:{line:50,column:80}},type:"binary-expr",locations:[{start:{line:50,column:17},end:{line:50,column:63}},{start:{line:50,column:67},end:{line:50,column:80}}],line:50},8:{loc:{start:{line:56,column:19},end:{line:56,column:57}},type:"cond-expr",locations:[{start:{line:56,column:39},end:{line:56,column:48}},{start:{line:56,column:51},end:{line:56,column:57}}],line:56},9:{loc:{start:{line:59,column:20},end:{line:59,column:175}},type:"binary-expr",locations:[{start:{line:59,column:20},end:{line:59,column:134}},{start:{line:59,column:138},end:{line:59,column:175}}],line:59},10:{loc:{start:{line:63,column:20},end:{line:63,column:157}},type:"cond-expr",locations:[{start:{line:63,column:151},end:{line:63,column:153}},{start:{line:63,column:156},end:{line:63,column:157}}],line:63},11:{loc:{start:{line:63,column:20},end:{line:63,column:148}},type:"binary-expr",locations:[{start:{line:63,column:20},end:{line:63,column:131}},{start:{line:63,column:135},end:{line:63,column:148}}],line:63},12:{loc:{start:{line:63,column:26},end:{line:63,column:121}},type:"cond-expr",locations:[{start:{line:63,column:92},end:{line:63,column:98}},{start:{line:63,column:101},end:{line:63,column:121}}],line:63},13:{loc:{start:{line:63,column:26},end:{line:63,column:89}},type:"binary-expr",locations:[{start:{line:63,column:26},end:{line:63,column:72}},{start:{line:63,column:76},end:{line:63,column:89}}],line:63}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"bbe4b3f811d308f499340429b020afde1691694a"},r=n[o]||(n[o]={});r[e]&&r[e].hash===t||(r[e]=i);var a=r[e];return _=function(){return a},a}_(),_().s[0]++,Object(c["extend"])(f.a);var v=d["a"].extend({name:"CancellationPolicyBadge",components:{BTag:p["a"],CancellationPoliciesList:m["a"]},mixins:[Object(h["a"])("components/RevolugoElements/CancellationPoliciesBadge")],props:b["a"],computed:{parsedCancellationPolicies(){if(_().f[0]++,_().s[1]++,"string"===typeof this.cancellationPolicies){_().b[0][0]++,_().s[2]++;try{return _().s[3]++,JSON.parse(this.cancellationPolicies)}catch{return _().s[4]++,[]}}else _().b[0][1]++;return _().s[5]++,this.cancellationPolicies},sanitizedCancellationPolicies(){return _().f[1]++,_().s[6]++,l()(Object(r["b"])({bookingDatetime:(_().b[1][0]++,this.initialDate||(_().b[1][1]++,s()().format())),cancellationPolicies:this.parsedCancellationPolicies.map(e=>(_().f[2]++,_().s[7]++,{date_from:e.dateFrom,date_to:e.dateTo,penalty_percentage:e.penaltyPercentage})),checkInDate:this.checkInDate,timezone:this.timezone}))},preIcon(){var e,t;return _().f[3]++,_().s[8]++,0===(_().b[4][0]++,null===(e=this.currentCancellationPolicy)||(_().b[4][1]++,void 0===e)?void _().b[3][0]++:(_().b[3][1]++,e.penaltyPercentage))?(_().b[2][0]++,_().s[9]++,"fa-check"):(_().b[2][1]++,_().s[10]++,100===(_().b[7][0]++,null===(t=this.currentCancellationPolicy)||(_().b[7][1]++,void 0===t)?void _().b[6][0]++:(_().b[6][1]++,t.penaltyPercentage))?(_().b[5][0]++,_().s[11]++,""):(_().b[5][1]++,_().s[12]++,"fa-info-circle"))},color(){return _().f[4]++,_().s[13]++,this.isRefundable?(_().b[8][0]++,"success"):(_().b[8][1]++,"grey")},currentCancellationPolicy(){return _().f[5]++,_().s[14]++,_().b[9][0]++,this.sanitizedCancellationPolicies.find(e=>(_().f[6]++,_().s[15]++,s()().isBetween(s()(e.dateFrom),s()(e.dateTo))))||(_().b[9][1]++,this.sanitizedCancellationPolicies[0])},isRefundable(){var e,t;return _().f[7]++,_().s[16]++,_().b[11][0]++,(null!==(_().b[13][0]++,t=null===(e=this.currentCancellationPolicy)||(_().b[13][1]++,void 0===e)?void _().b[12][0]++:(_().b[12][1]++,e.penaltyPercentage))&&(_().b[11][1]++,void 0!==t)?(_().b[10][0]++,t):(_().b[10][1]++,0))<100}}}),y=v,g=n("f0a0"),$=Object(g["a"])(y,o,i,!1,null,null,null,!0);t["a"]=$.exports},ee1a:function(e,t,n){n.r(t);var o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("web-component-wrapper",[t("cancellation-policies-badge",e._b({},"cancellation-policies-badge",e.$props,!1))],1)},i=[],r=n("ad27"),a=n("9720"),l=n("d406"),c=n("9825");function s(){var e="/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/web-components/CancellationPoliciesBadge/CancellationPoliciesBadge.ts",t="12c211d8d8e0a7c45ba358610dc7f3e07f46f514",n=new Function("return this")(),o="__coverage__",i={path:"/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/web-components/CancellationPoliciesBadge/CancellationPoliciesBadge.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"12c211d8d8e0a7c45ba358610dc7f3e07f46f514"},r=n[o]||(n[o]={});r[e]&&r[e].hash===t||(r[e]=i);var a=r[e];return s=function(){return a},a}s();var u=r["a"].extend({components:{CancellationPoliciesBadge:l["a"],WebComponentWrapper:c["a"]},props:a["a"]}),f=u,d=n("f0a0"),m=Object(d["a"])(f,o,i,!1,null,null,null,!0);t["default"]=m.exports}}]);
|
1
|
+
(window["revolugo_jsonp"]=window["revolugo_jsonp"]||[]).push([[36],{"05ef":function(t,e,n){(function(t,r){n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return u}));n("c3d6"),n("c2fc"),n("3639"),n("45a8"),n("c9b3");var i={474:function(t){t.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",c="week",u="month",l="quarter",f="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},_={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,u),o=n-i<0,a=e.clone().add(r+(o?-1:1),u);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:f,w:c,d:s,D:h,h:a,m:o,s:i,ms:r,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",b={};b[g]=v;var $=function(t){return t instanceof M},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var o=e.toLowerCase();b[o]&&(i=o),n&&(b[o]=n,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var s=e.name;b[s]=e,i=s}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if($(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new M(n)},D=_;D.l=w,D.i=$,D.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var M=function(){function v(t){this.$L=w(t.locale,null,!0),this.parse(t)}var y=v.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(D.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return D},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return O(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<O(t)},y.$g=function(t,e,n){return D.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,r=!!D.u(e)||e,l=D.p(t),d=function(t,e){var i=D.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(s)},p=function(t,e){return D.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,v=this.$M,y=this.$D,_="set"+(this.$u?"UTC":"");switch(l){case f:return r?d(1,0):d(31,11);case u:return r?d(1,v):d(0,v+1);case c:var g=this.$locale().weekStart||0,b=(m<g?m+7:m)-g;return d(r?y-b:y+(6-b),v);case s:case h:return p(_+"Hours",0);case a:return p(_+"Minutes",1);case o:return p(_+"Seconds",2);case i:return p(_+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,c=D.p(t),l="set"+(this.$u?"UTC":""),d=(n={},n[s]=l+"Date",n[h]=l+"Date",n[u]=l+"Month",n[f]=l+"FullYear",n[a]=l+"Hours",n[o]=l+"Minutes",n[i]=l+"Seconds",n[r]=l+"Milliseconds",n)[c],p=c===s?this.$D+(e-this.$W):e;if(c===u||c===f){var m=this.clone().set(h,1);m.$d[d](p),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[D.p(t)]()},y.add=function(r,l){var h,d=this;r=Number(r);var p=D.p(l),m=function(t){var e=O(d);return D.w(e.date(e.date()+Math.round(t*r)),d)};if(p===u)return this.set(u,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===s)return m(1);if(p===c)return m(7);var v=(h={},h[o]=e,h[a]=n,h[i]=t,h)[p]||1,y=this.$d.getTime()+r*v;return D.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=D.z(this),o=this.$H,a=this.$m,s=this.$M,c=n.weekdays,u=n.months,l=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},f=function(t){return D.s(o%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:D.s(s+1,2,"0"),MMM:l(n.monthsShort,s,u,3),MMMM:l(u,s),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,c,2),ddd:l(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:D.s(o,2,"0"),h:f(1),hh:f(2),a:h(o,a,!0),A:h(o,a,!1),m:String(a),mm:D.s(a,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:i};return r.replace(m,(function(t,e){return e||p[t]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,d){var p,m=D.p(h),v=O(r),y=(v.utcOffset()-this.utcOffset())*e,_=this-v,g=D.m(this,v);return g=(p={},p[f]=g/12,p[u]=g,p[l]=g/3,p[c]=(_-y)/6048e5,p[s]=(_-y)/864e5,p[a]=_/n,p[o]=_/e,p[i]=_/t,p)[m]||_,d?g:D.a(g)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return b[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return D.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),j=M.prototype;return O.prototype=j,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",u],["$y",f],["$D",h]].forEach((function(t){j[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,M,O),t.$i=!0),O},O.locale=w,O.isDayjs=$,O.unix=function(t){return O(1e3*t)},O.en=b[g],O.Ls=b,O.p={},O}()},213:function(t){t.exports=function(t,e,n){e.prototype.isBetween=function(t,e,r,i){var o=n(t),a=n(e),s="("===(i=i||"()")[0],c=")"===i[1];return(s?this.isAfter(o,r):!this.isBefore(o,r))&&(c?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(o,r):!this.isAfter(o,r))&&(c?this.isAfter(a,r):!this.isBefore(a,r))}}},618:function(t){t.exports=function(t,e){e.prototype.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)}}},357:function(t){t.exports=function(t,e){e.prototype.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)}}},298:function(t){var e,n;t.exports=(e={year:0,month:1,day:2,hour:3,minute:4,second:5},n={},function(t,r,i){var o,a=function(t,e,r){void 0===r&&(r={});var i=new Date(t),o=function(t,e){void 0===e&&(e={});var r=e.timeZoneName||"short",i=t+"|"+r,o=n[i];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),n[i]=o),o}(e,r);return o.formatToParts(i)},s=function(t,n){for(var r=a(t,n),o=[],s=0;s<r.length;s+=1){var c=r[s],u=c.type,l=c.value,f=e[u];f>=0&&(o[f]=parseInt(l,10))}var h=o[3],d=24===h?0:h,p=o[0]+"-"+o[1]+"-"+o[2]+" "+d+":"+o[4]+":"+o[5]+":000",m=+t;return(i.utc(p).valueOf()-(m-=m%1e3))/6e4},c=r.prototype;c.tz=function(t,e){void 0===t&&(t=o);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:t}),s=Math.round((r-new Date(a))/1e3/60),c=i(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-s,!0);if(e){var u=c.utcOffset();c=c.add(n-u,"minute")}return c.$x.$timezone=t,c},c.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var u=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return u.call(this,t,e);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return u.call(n,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,n){var r=n&&e,a=n||e||o,c=s(+i(),a);if("string"!=typeof t)return i(t).tz(a);var u=function(t,e,n){var r=t-60*e*1e3,i=s(r,n);if(e===i)return[r,e];var o=s(r-=60*(i-e)*1e3,n);return i===o?[r,i]:[t-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(t,r).valueOf(),c,a),l=u[0],f=u[1],h=i(l).utcOffset(f);return h.$x.$timezone=a,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){o=t}})},381:function(t){var e,n,r;t.exports=(e="minute",n=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g,function(t,i,o){var a=i.prototype;o.utc=function(t){return new i({date:t,utc:!0,args:arguments})},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var c=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var u=a.utcOffset;a.utcOffset=function(t,i){var o=this.$utils().u;if(o(t))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(n);if(!e)return null;var i=(""+e[0]).match(r)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(t),null===t))return this;var a=Math.abs(t)<=16?60*t:t,s=this;if(i)return s.$offset=a,s.$u=0===t,s;if(0!==t){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+c,e)).$offset=a,s.$x.$localOffset=c}else s=this.utc();return s};var l=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=a.diff;a.diff=function(t,e,n){if(t&&this.$u===t.$u)return h.call(this,t,e,n);var r=this.local(),i=o(t).local();return h.call(r,i,e,n)}})}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return i[t].call(n.exports,n,n.exports,a),n.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var s={};(()=>{a.d(s,{b4:()=>Ee,eE:()=>ke,HO:()=>Ie,Ms:()=>Le});var e=a(474),n=a.n(e),i=a(213),o=a.n(i),c=a(618),u=a.n(c),l=a(357),f=a.n(l),h=a(298),d=a.n(h),p=a(381),m=a.n(p),v=Object.prototype;const y=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||v)},_=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object);var g=Object.prototype.hasOwnProperty;const b=function(t){if(!y(t))return _(t);var e=[];for(var n in Object(t))g.call(t,n)&&"constructor"!=n&&e.push(n);return e},$="object"==typeof t&&t&&t.Object===Object&&t;var w="object"==typeof self&&self&&self.Object===Object&&self;const O=$||w||Function("return this")(),D=O.Symbol;var M=Object.prototype,j=M.hasOwnProperty,S=M.toString,x=D?D.toStringTag:void 0;const C=function(t){var e=j.call(t,x),n=t[x];try{t[x]=void 0;var r=!0}catch(t){}var i=S.call(t);return r&&(e?t[x]=n:delete t[x]),i};var P=Object.prototype.toString;const z=function(t){return P.call(t)};var A=D?D.toStringTag:void 0;const T=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":A&&A in Object(t)?C(t):z(t)},L=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},k=function(t){if(!L(t))return!1;var e=T(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},E=O["__core-js_shared__"];var I,H=(I=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";const F=function(t){return!!H&&H in t};var U=Function.prototype.toString;const Y=function(t){if(null!=t){try{return U.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var B=/^\[object .+?Constructor\]$/,R=Function.prototype,W=Object.prototype,N=R.toString,Z=W.hasOwnProperty,q=RegExp("^"+N.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const V=function(t){return!(!L(t)||F(t))&&(k(t)?q:B).test(Y(t))},J=function(t,e){return null==t?void 0:t[e]},G=function(t,e){var n=J(t,e);return V(n)?n:void 0},Q=G(O,"DataView"),X=G(O,"Map"),K=G(O,"Promise"),tt=G(O,"Set"),et=G(O,"WeakMap");var nt="[object Map]",rt="[object Promise]",it="[object Set]",ot="[object WeakMap]",at="[object DataView]",st=Y(Q),ct=Y(X),ut=Y(K),lt=Y(tt),ft=Y(et),ht=T;(Q&&ht(new Q(new ArrayBuffer(1)))!=at||X&&ht(new X)!=nt||K&&ht(K.resolve())!=rt||tt&&ht(new tt)!=it||et&&ht(new et)!=ot)&&(ht=function(t){var e=T(t),n="[object Object]"==e?t.constructor:void 0,r=n?Y(n):"";if(r)switch(r){case st:return at;case ct:return nt;case ut:return rt;case lt:return it;case ft:return ot}return e});const dt=ht,pt=function(t){return null!=t&&"object"==typeof t},mt=function(t){return pt(t)&&"[object Arguments]"==T(t)};var vt=Object.prototype,yt=vt.hasOwnProperty,_t=vt.propertyIsEnumerable;const gt=mt(function(){return arguments}())?mt:function(t){return pt(t)&&yt.call(t,"callee")&&!_t.call(t,"callee")},bt=Array.isArray,$t=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},wt=function(t){return null!=t&&$t(t.length)&&!k(t)},Ot=function(){return!1};var Dt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Mt=Dt&&"object"==typeof r&&r&&!r.nodeType&&r,jt=Mt&&Mt.exports===Dt?O.Buffer:void 0;const St=(jt?jt.isBuffer:void 0)||Ot;var xt={};xt["[object Float32Array]"]=xt["[object Float64Array]"]=xt["[object Int8Array]"]=xt["[object Int16Array]"]=xt["[object Int32Array]"]=xt["[object Uint8Array]"]=xt["[object Uint8ClampedArray]"]=xt["[object Uint16Array]"]=xt["[object Uint32Array]"]=!0,xt["[object Arguments]"]=xt["[object Array]"]=xt["[object ArrayBuffer]"]=xt["[object Boolean]"]=xt["[object DataView]"]=xt["[object Date]"]=xt["[object Error]"]=xt["[object Function]"]=xt["[object Map]"]=xt["[object Number]"]=xt["[object Object]"]=xt["[object RegExp]"]=xt["[object Set]"]=xt["[object String]"]=xt["[object WeakMap]"]=!1;const Ct=function(t){return pt(t)&&$t(t.length)&&!!xt[T(t)]},Pt=function(t){return function(e){return t(e)}};var zt="object"==typeof exports&&exports&&!exports.nodeType&&exports,At=zt&&"object"==typeof r&&r&&!r.nodeType&&r,Tt=At&&At.exports===zt&&$.process,Lt=function(){try{var t=At&&At.require&&At.require("util").types;return t||Tt&&Tt.binding&&Tt.binding("util")}catch(t){}}(),kt=Lt&&Lt.isTypedArray;const Et=kt?Pt(kt):Ct;var It=Object.prototype.hasOwnProperty;const Ht=function(t){if(null==t)return!0;if(wt(t)&&(bt(t)||"string"==typeof t||"function"==typeof t.splice||St(t)||Et(t)||gt(t)))return!t.length;var e=dt(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(y(t))return!b(t).length;for(var n in t)if(It.call(t,n))return!1;return!0},Ft=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Ut=G(Object,"create"),Yt=function(){this.__data__=Ut?Ut(null):{},this.size=0},Bt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Rt=Object.prototype.hasOwnProperty;const Wt=function(t){var e=this.__data__;if(Ut){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Rt.call(e,t)?e[t]:void 0};var Nt=Object.prototype.hasOwnProperty;const Zt=function(t){var e=this.__data__;return Ut?void 0!==e[t]:Nt.call(e,t)},qt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ut&&void 0===e?"__lodash_hash_undefined__":e,this};function Vt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Vt.prototype.clear=Yt,Vt.prototype.delete=Bt,Vt.prototype.get=Wt,Vt.prototype.has=Zt,Vt.prototype.set=qt;const Jt=Vt,Gt=function(){this.__data__=[],this.size=0},Qt=function(t,e){return t===e||t!=t&&e!=e},Xt=function(t,e){for(var n=t.length;n--;)if(Qt(t[n][0],e))return n;return-1};var Kt=Array.prototype.splice;const te=function(t){var e=this.__data__,n=Xt(e,t);return!(n<0)&&(n==e.length-1?e.pop():Kt.call(e,n,1),--this.size,!0)},ee=function(t){var e=this.__data__,n=Xt(e,t);return n<0?void 0:e[n][1]},ne=function(t){return Xt(this.__data__,t)>-1},re=function(t,e){var n=this.__data__,r=Xt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function ie(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ie.prototype.clear=Gt,ie.prototype.delete=te,ie.prototype.get=ee,ie.prototype.has=ne,ie.prototype.set=re;const oe=ie,ae=function(){this.size=0,this.__data__={hash:new Jt,map:new(X||oe),string:new Jt}},se=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},ce=function(t,e){var n=t.__data__;return se(e)?n["string"==typeof e?"string":"hash"]:n.map},ue=function(t){var e=ce(this,t).delete(t);return this.size-=e?1:0,e},le=function(t){return ce(this,t).get(t)},fe=function(t){return ce(this,t).has(t)},he=function(t,e){var n=ce(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function de(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}de.prototype.clear=ae,de.prototype.delete=ue,de.prototype.get=le,de.prototype.has=fe,de.prototype.set=he;const pe=de,me=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ve=function(t){return this.__data__.has(t)};function ye(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new pe;++e<n;)this.add(t[e])}ye.prototype.add=ye.prototype.push=me,ye.prototype.has=ve;const _e=ye,ge=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1},be=function(t){return t!=t},$e=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1},we=function(t,e,n){return e==e?$e(t,e,n):ge(t,be,n)},Oe=function(t,e){return!(null==t||!t.length)&&we(t,e,0)>-1},De=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1},Me=function(t,e){return t.has(e)},je=function(){},Se=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},xe=tt&&1/Se(new tt([,-0]))[1]==1/0?function(t){return new tt(t)}:je,Ce=function(t,e,n){var r=-1,i=Oe,o=t.length,a=!0,s=[],c=s;if(n)a=!1,i=De;else if(o>=200){var u=e?null:xe(t);if(u)return Se(u);a=!1,i=Me,c=new _e}else c=e?[]:s;t:for(;++r<o;){var l=t[r],f=e?e(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var h=c.length;h--;)if(c[h]===f)continue t;e&&c.push(f),s.push(l)}else i(c,f,n)||(c!==s&&c.push(f),s.push(l))}return s},Pe=function(t){return t&&t.length?Ce(t):[]};n().extend(m()),n().extend(d()),n().extend(o()),n().extend(u()),n().extend(f());const ze=t=>n()(t).add(1,"day").utc().format();function Ae(t){return/\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])T(?:[01]\d|2[0-3])(?::[0-5]\d){2}(?:\.\d+|)(?:Z|[+-]\d{2}:?\d{2})/u.test(t)}const Te=({cancellationPolicies:t,date:e})=>t.filter(t=>n()(e).isBetween(t.date_from,t.date_to,void 0,"[)")),Le=({bookingDatetime:t,cancellationPolicies:e,checkInDate:r,releaseDate:i,timezone:o})=>{if(!t)throw new Error('Missing "bookingDatetime" option');if(!r)throw new Error('Missing "checkInDate" option');if(!o)throw new Error('Missing "timezone" option');const a=n()(t).utc().format(),s=n().tz(r,o).startOf("day").utc().format(),c=ze(s),u=i&&n().tz(i,o).startOf("day").utc().format();if(n()(a).isAfter(c))return Le({bookingDatetime:s,cancellationPolicies:e,checkInDate:r,releaseDate:i,timezone:o});if(Ht(e))return n()(a).isBefore(s)?u?n()(u).isBefore(a)?[{date_from:a,date_to:c,penalty_percentage:100}]:[{date_from:a,date_to:u,penalty_percentage:0},{date_from:u,date_to:c,penalty_percentage:100}]:[{date_from:a,date_to:s,penalty_percentage:0},{date_from:s,date_to:c,penalty_percentage:100}]:[{date_from:a,date_to:c,penalty_percentage:100}];let l=Ft(e);if(!l.every(t=>t.date_from&&t.date_to&&n()(t.date_from).isBefore(t.date_to)))return[{date_from:a,date_to:c,penalty_percentage:100}];l=l.filter(t=>n()(t.date_to).diff(n()(t.date_from),"minutes")>=20).sort((t,e)=>n()(t.date_from).isAfter(n()(e.date_from))?1:-1).map(t=>(t.date_from=n().tz(t.date_from,o).utc(Ae(t.date_from)).utc().format(),t.date_to=n().tz(t.date_to,o).utc(Ae(t.date_to)).utc().format(),t)),u&&n()(u).isBetween(n()(a),n()(l[0].date_from,void 0,"[)"))&&l.push({date_from:a,date_to:u,penalty_percentage:0},{date_from:u,date_to:l[0].date_from,penalty_percentage:100});const f=l.reduce((t,e)=>(t.push(n()(e.date_from).utc().format(),n()(e.date_to).utc().format()),t),[]).concat(a,c),h=Pe(f).sort((t,e)=>n()(t).isAfter(n()(e))?1:-1);let d=[],p=0,m="";for(const[v,y]of h.entries()){const t=Te({cancellationPolicies:l,date:y});let e=null;e=Ht(t)?u&&n()(u).isBefore(n()(a))?100:0:Math.max(...t.map(t=>t.penalty_percentage)),m?(Ht(t)&&(e=100),p===e&&v!==h.length-1||(d.push({date_from:m,date_to:y,penalty_percentage:p}),m=y,p=e)):(m=y,p=e)}return d=d.filter(t=>!n()(t.date_to).isSameOrBefore(a)&&!n()(t.date_from).isSameOrAfter(c)),d[0].date_from=a,d.at(-1).date_to=c,d},ke=({bookingDatetime:t,cancellationPolicies:e,checkInDate:r,datetime:i,releaseDate:o,timezone:a})=>{if(!t)throw new Error('Missing "bookingDatetime" option');if(!r)throw new Error('Missing "checkInDate" option');if(!i)throw new Error('Missing "datetime" option');if(!a)throw new Error('Missing "timezone" option');const s=n()(i).utc().format(),c=n()(t).utc().format(),u=n().tz(r,a).startOf("day").utc().format(),l=ze(u);if(n()(s).isSameOrAfter(n()(l)))return 100;if(n()(s).isBefore(n()(c)))return 0;const f=Le({bookingDatetime:t,cancellationPolicies:e,checkInDate:r,releaseDate:o,timezone:a}),h=Te({cancellationPolicies:f,date:i});return h[0]&&h[0].penalty_percentage},Ee=({bookingDatetime:t,cancellationPolicies:e,checkInDate:r,releaseDate:i,timezone:o})=>{const a=n()().utc().format();return ke({bookingDatetime:t,cancellationPolicies:e,checkInDate:r,datetime:a,releaseDate:i,timezone:o})},Ie=(t,e)=>!!Ht(t)||!Ht(e)&&(t[0].dateTo?e.every(e=>{const r=t.find(t=>n()(e.date_to).isBetween(t.date_from,t.date_to,null,"[]"));return!r||e.penalty_percentage>=r.penalty_percentage}):e.every(e=>{const r=t.find(t=>n()(e.dateTo).isBetween(t.dateFrom,t.dateTo,null,"[]"));return!r||e.penaltyPercentage>=r.penaltyPercentage}))})();var c=s.b4,u=(s.eE,s.HO,s.Ms)}).call(this,n("35b1"),n("9fc2")(t))},"17d8":function(t,e,n){class r{constructor(t={}){if(!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=t.maxSize,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(t,e){if(this.cache.set(t,e),this._size++,this._size>=this.maxSize){if(this._size=0,"function"===typeof this.onEviction)for(const[t,e]of this.oldCache.entries())this.onEviction(t,e);this.oldCache=this.cache,this.cache=new Map}}get(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t)){const e=this.oldCache.get(t);return this.oldCache.delete(t),this._set(t,e),e}}set(t,e){return this.cache.has(t)?this.cache.set(t,e):this._set(t,e),this}has(t){return this.cache.has(t)||this.oldCache.has(t)}peek(t){return this.cache.has(t)?this.cache.get(t):this.oldCache.has(t)?this.oldCache.get(t):void 0}delete(t){const e=this.cache.delete(t);return e&&this._size--,this.oldCache.delete(t)||e}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[t]of this)yield t}*values(){for(const[,t]of this)yield t}*[Symbol.iterator](){for(const t of this.cache)yield t;for(const t of this.oldCache){const[e]=t;this.cache.has(e)||(yield t)}}get size(){let t=0;for(const e of this.oldCache.keys())this.cache.has(e)||t++;return Math.min(this._size+t,this.maxSize)}}t.exports=r},2444:function(t,e,n){var r,i=n("50b4"),o=n("de39"),a=n("7edb"),s=n("23d9"),c=n("ce02"),u=n("6e0f"),l=n("2cac"),f=">",h="<",d="prototype",p="script",m=l("IE_PROTO"),v=function(){},y=function(t){return h+p+f+t+h+"/"+p+f},_=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=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(y("document.F=Object")),t.close(),t.F},b=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&r?_(r):g():_(r);var t=a.length;while(t--)delete b[d][a[t]];return b()};s[m]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[d]=i(t),n=new v,v[d]=null,n[m]=t):n=b(),void 0===e?n:o.f(n,e)}},"45a8":function(t,e,n){var r=n("4b31"),i=n("368f"),o=n("c944"),a=n("015b"),s=n("7310");r({target:"Array",proto:!0},{at:function(t){var e=i(this),n=o(e),r=a(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}}),s("at")},5375:function(t,e,n){const r=/[\p{Lu}]/u,i=/[\p{Ll}]/u,o=/^[\p{Lu}](?![\p{Lu}])/gu,a=/([\p{Alpha}\p{N}_]|$)/u,s=/[_.\- ]+/,c=new RegExp("^"+s.source),u=new RegExp(s.source+a.source,"gu"),l=new RegExp("\\d+"+a.source,"gu"),f=(t,e,n)=>{let o=!1,a=!1,s=!1;for(let c=0;c<t.length;c++){const u=t[c];o&&r.test(u)?(t=t.slice(0,c)+"-"+t.slice(c),o=!1,s=a,a=!0,c++):a&&s&&i.test(u)?(t=t.slice(0,c-1)+"-"+t.slice(c-1),s=a,a=!1,o=!0):(o=e(u)===u&&n(u)!==u,s=a,a=n(u)===u&&e(u)!==u)}return t},h=(t,e)=>(o.lastIndex=0,t.replace(o,t=>e(t))),d=(t,e)=>(u.lastIndex=0,l.lastIndex=0,t.replace(u,(t,n)=>e(n)).replace(l,t=>e(t))),p=(t,e)=>{if("string"!==typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");if(e={pascalCase:!1,preserveConsecutiveUppercase:!1,...e},t=Array.isArray(t)?t.map(t=>t.trim()).filter(t=>t.length).join("-"):t.trim(),0===t.length)return"";const n=!1===e.locale?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e.locale),r=!1===e.locale?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e.locale);if(1===t.length)return e.pascalCase?r(t):n(t);const i=t!==n(t);return i&&(t=f(t,n,r)),t=t.replace(c,""),t=e.preserveConsecutiveUppercase?h(t,n):n(t),e.pascalCase&&(t=r(t.charAt(0))+t.slice(1)),d(t,r)};t.exports=p,t.exports.default=p},"57b9":function(t,e,n){var r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("ul",[t._l(t.sanitizedCancellationPolicies,(function(n,r){return[e("section",{key:r},[0===r&&0===n.penaltyPercentage?[e("li",{staticClass:"success--text text--lighten-1",domProps:{innerHTML:t._s(t.$t("CancellationPoliciesList.freeCancellationBefore",{date:t.formatDate(n.dateTo)}))}})]:0===n.penaltyPercentage?[e("li",{staticClass:"success--text text--lighten-1",domProps:{innerHTML:t._s(t.$t("CancellationPoliciesList.freeCancellationBetween",{from:t.formatDate(n.dateFrom),to:t.formatDate(n.dateTo)}))}})]:100===n.penaltyPercentage&&r===t.cancellationPolicies.length-1?[e("li",{domProps:{innerHTML:t._s(t.$t("CancellationPoliciesList.nonRefundableAfter",{from:t.formatDate(n.dateFrom)}))}})]:[e("li",{domProps:{innerHTML:t._s(t.$t("CancellationPoliciesList.partiallyRefundableCondition",{percentage:n.penaltyPercentage,from:t.formatDate(n.dateFrom),to:t.formatDate(n.dateTo)}))}})]],2)]})),100!==t.sanitizedCancellationPolicies[t.sanitizedCancellationPolicies.length-1].penaltyPercentage?[e("li",{domProps:{innerHTML:t._s(t.$t("CancellationPoliciesList.nonRefundableAfter",{from:t.formatDate(t.sanitizedCancellationPolicies[t.sanitizedCancellationPolicies.length-1].dateTo)}))}})]:t._e()],2)},i=[],o=n("05ef"),a=n("cbfb"),s=n.n(a),c=n("1eef"),u=n.n(c),l=n("ad27"),f=n("6337"),h=n("5b96");function d(){var t="/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/CancellationPoliciesList/CancellationPoliciesList.ts",e="ba816124a95aa3930c41f3193e80052b04dab9ee",n=new Function("return this")(),r="__coverage__",i={path:"/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/CancellationPoliciesList/CancellationPoliciesList.ts",statementMap:{0:{start:{line:13,column:12},end:{line:20,column:13}},1:{start:{line:14,column:16},end:{line:19,column:17}},2:{start:{line:15,column:20},end:{line:15,column:65}},3:{start:{line:18,column:20},end:{line:18,column:30}},4:{start:{line:21,column:12},end:{line:21,column:45}},5:{start:{line:24,column:12},end:{line:35,column:16}},6:{start:{line:26,column:86},end:{line:32,column:17}},7:{start:{line:40,column:12},end:{line:46,column:15}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:8},end:{line:12,column:9}},loc:{start:{line:12,column:42},end:{line:22,column:9}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:23,column:8},end:{line:23,column:9}},loc:{start:{line:23,column:40},end:{line:36,column:9}},line:23},2:{name:"(anonymous_2)",decl:{start:{line:26,column:79},end:{line:26,column:80}},loc:{start:{line:26,column:86},end:{line:32,column:17}},line:26},3:{name:"(anonymous_3)",decl:{start:{line:39,column:8},end:{line:39,column:9}},loc:{start:{line:39,column:24},end:{line:47,column:9}},line:39}},branchMap:{0:{loc:{start:{line:13,column:12},end:{line:20,column:13}},type:"if",locations:[{start:{line:13,column:12},end:{line:20,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:13},1:{loc:{start:{line:25,column:33},end:{line:25,column:69}},type:"binary-expr",locations:[{start:{line:25,column:33},end:{line:25,column:49}},{start:{line:25,column:53},end:{line:25,column:69}}],line:25}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ba816124a95aa3930c41f3193e80052b04dab9ee"},o=n[r]||(n[r]={});o[t]&&o[t].hash===e||(o[t]=i);var a=o[t];return d=function(){return a},a}d();var p=l["a"].extend({name:"CancellationPoliciesList",mixins:[Object(f["a"])("components/RevolugoElements/CancellationPoliciesList")],props:h["a"],computed:{parsedInputCancellationPolicies(){if(d().f[0]++,d().s[0]++,"string"===typeof this.cancellationPolicies){d().b[0][0]++,d().s[1]++;try{return d().s[2]++,JSON.parse(this.cancellationPolicies)}catch{return d().s[3]++,[]}}else d().b[0][1]++;return d().s[4]++,this.cancellationPolicies},sanitizedCancellationPolicies(){return d().f[1]++,d().s[5]++,s()(Object(o["b"])({bookingDatetime:(d().b[1][0]++,this.initialDate||(d().b[1][1]++,u()().format())),cancellationPolicies:this.parsedInputCancellationPolicies.map(t=>(d().f[2]++,d().s[6]++,{date_from:t.dateFrom,date_to:t.dateTo,penalty_percentage:t.penaltyPercentage})),checkInDate:this.checkInDate,timezone:this.timezone}))}},methods:{formatDate(t){return d().f[3]++,d().s[7]++,new Date(t).toLocaleTimeString(this.$i18n.locale,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}}}),m=p,v=n("f0a0"),y=Object(v["a"])(m,r,i,!1,null,null,null,!0);e["a"]=y.exports},"5b96":function(t,e,n){function r(){var t="/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/CancellationPoliciesList/CancellationPoliciesList.props.ts",e="6bb8f7144431d66e79f442ad870f35b536b15bbb",n=new Function("return this")(),i="__coverage__",o={path:"/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/CancellationPoliciesList/CancellationPoliciesList.props.ts",statementMap:{0:{start:{line:1,column:45},end:{line:17,column:1}}},fnMap:{},branchMap:{},s:{0:0},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6bb8f7144431d66e79f442ad870f35b536b15bbb"},a=n[i]||(n[i]={});a[t]&&a[t].hash===e||(a[t]=o);var s=a[t];return r=function(){return s},s}n.d(e,"a",(function(){return i})),r();const i=(r().s[0]++,{cancellationPolicies:{required:!0,type:[String,Array]},checkInDate:{required:!0,type:String},initialDate:{type:String},timezone:{required:!0,type:String}})},7310:function(t,e,n){var r=n("1860"),i=n("2444"),o=n("3ce5").f,a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},8306:function(t,e,n){n.r(e);var r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("web-component-wrapper",[e("cancellation-policies-list",t._b({},"cancellation-policies-list",t.$props,!1))],1)},i=[],o=n("ad27"),a=n("5b96"),s=n("57b9"),c=n("9825");function u(){var t="/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/web-components/CancellationPoliciesList/CancellationPoliciesList.ts",e="a5a3a8541e29f494d2a07671b9721eabc904bb28",n=new Function("return this")(),r="__coverage__",i={path:"/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/web-components/CancellationPoliciesList/CancellationPoliciesList.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a5a3a8541e29f494d2a07671b9721eabc904bb28"},o=n[r]||(n[r]={});o[t]&&o[t].hash===e||(o[t]=i);var a=o[t];return u=function(){return a},a}u();var l=o["a"].extend({components:{CancellationPoliciesList:s["a"],WebComponentWrapper:c["a"]},props:a["a"]}),f=l,h=n("f0a0"),d=Object(h["a"])(f,r,i,!1,null,null,null,!0);e["default"]=d.exports},"9e3f":function(t,e,n){const r=t=>"object"===typeof t&&null!==t,i=Symbol("skip"),o=t=>r(t)&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date),a=(t,e,n,r=new WeakMap)=>{if(n={deep:!1,target:{},...n},r.has(t))return r.get(t);r.set(t,n.target);const{target:s}=n;delete n.target;const c=t=>t.map(t=>o(t)?a(t,e,n,r):t);if(Array.isArray(t))return c(t);for(const[u,l]of Object.entries(t)){const f=e(u,l,t);if(f===i)continue;let[h,d,{shouldRecurse:p=!0}={}]=f;"__proto__"!==h&&(n.deep&&p&&o(d)&&(d=Array.isArray(d)?c(d):a(d,e,n,r)),s[h]=d)}return s};t.exports=(t,e,n)=>{if(!r(t))throw new TypeError(`Expected an object, got \`${t}\` (${typeof t})`);return a(t,e,n)},t.exports.mapObjectSkip=i},c9b3:function(t,e,n){var r=n("4b31"),i=n("d244"),o=n("7768"),a=n("015b"),s=n("b0b4"),c=n("8659"),u=i("".charAt),l=c((function(){return"\ud842"!=="𠮷".at(-2)}));r({target:"String",proto:!0,forced:l},{at:function(t){var e=s(o(this)),n=e.length,r=a(t),i=r>=0?r:n+r;return i<0||i>=n?void 0:u(e,i)}})},cbfb:function(t,e,n){const r=n("9e3f"),i=n("5375"),o=n("17d8"),a=(t,e)=>t.some(t=>"string"===typeof t?t===e:(t.lastIndex=0,t.test(e))),s=new o({maxSize:1e5}),c=t=>"object"===typeof t&&null!==t&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date),u=(t,e)=>{if(!c(t))return t;e={deep:!1,pascalCase:!1,...e};const{exclude:n,pascalCase:o,stopPaths:u,deep:l}=e,f=new Set(u),h=t=>(e,u)=>{if(l&&c(u)){const n=void 0===t?e:`${t}.${e}`;f.has(n)||(u=r(u,h(n)))}if(!n||!a(n,e)){const t=o?e+"_":e;if(s.has(t))e=s.get(t);else{const n=i(e,{pascalCase:o,locale:!1});e.length<100&&s.set(t,n),e=n}}return[e,u]};return r(t,h(void 0))};t.exports=(t,e)=>Array.isArray(t)?Object.keys(t).map(n=>u(t[n],e)):u(t,e)},ce02:function(t,e,n){var r=n("a542");t.exports=r("document","documentElement")},de39:function(t,e,n){var r=n("1616"),i=n("7ded"),o=n("3ce5"),a=n("50b4"),s=n("52b6"),c=n("e23e");e.f=r&&!i?Object.defineProperties:function(t,e){a(t);var n,r=s(e),i=c(e),u=i.length,l=0;while(u>l)o.f(t,n=i[l++],r[n]);return t}},e23e:function(t,e,n){var r=n("6a9b"),i=n("7edb");t.exports=Object.keys||function(t){return r(t,i)}}}]);
|