@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.
Files changed (79) hide show
  1. package/dist/css/revolugo.29.min.css +1 -1
  2. package/dist/css/revolugo.30.min.css +1 -1
  3. package/dist/css/revolugo.32.min.css +1 -1
  4. package/dist/css/revolugo.33.min.css +1 -1
  5. package/dist/css/revolugo.34.min.css +1 -1
  6. package/dist/css/revolugo.35.min.css +1 -0
  7. package/dist/index.min.js +1 -1
  8. package/dist/revolugo.1.js +0 -11
  9. package/dist/revolugo.1.min.js +1 -1
  10. package/dist/revolugo.10.js +13 -0
  11. package/dist/revolugo.10.min.js +2 -2
  12. package/dist/revolugo.11.js +13 -0
  13. package/dist/revolugo.11.min.js +2 -2
  14. package/dist/revolugo.12.js +13 -0
  15. package/dist/revolugo.12.min.js +2 -2
  16. package/dist/revolugo.13.js +13 -0
  17. package/dist/revolugo.13.min.js +2 -2
  18. package/dist/revolugo.14.js +13 -0
  19. package/dist/revolugo.14.min.js +2 -2
  20. package/dist/revolugo.15.js +13 -0
  21. package/dist/revolugo.15.min.js +2 -2
  22. package/dist/revolugo.16.js +13 -0
  23. package/dist/revolugo.16.min.js +2 -2
  24. package/dist/revolugo.17.js +13 -0
  25. package/dist/revolugo.17.min.js +1 -1
  26. package/dist/revolugo.18.js +2 -0
  27. package/dist/revolugo.18.min.js +1 -1
  28. package/dist/revolugo.19.js +2 -0
  29. package/dist/revolugo.19.min.js +1 -1
  30. package/dist/revolugo.20.js +2 -0
  31. package/dist/revolugo.20.min.js +2 -2
  32. package/dist/revolugo.21.js +13 -0
  33. package/dist/revolugo.21.min.js +2 -2
  34. package/dist/revolugo.22.js +2 -0
  35. package/dist/revolugo.22.min.js +1 -1
  36. package/dist/revolugo.23.js +2 -0
  37. package/dist/revolugo.23.min.js +1 -1
  38. package/dist/revolugo.24.js +2 -0
  39. package/dist/revolugo.24.min.js +1 -1
  40. package/dist/revolugo.25.js +11 -0
  41. package/dist/revolugo.25.min.js +1 -1
  42. package/dist/revolugo.26.js +2 -0
  43. package/dist/revolugo.26.min.js +1 -1
  44. package/dist/revolugo.29.js +1460 -997
  45. package/dist/revolugo.29.min.js +1 -1
  46. package/dist/revolugo.30.js +1141 -35810
  47. package/dist/revolugo.30.min.js +1 -1
  48. package/dist/revolugo.31.js +1359 -2190
  49. package/dist/revolugo.31.min.js +1 -1
  50. package/dist/revolugo.32.js +36689 -1836
  51. package/dist/revolugo.32.min.js +1 -1
  52. package/dist/revolugo.33.js +1724 -1437
  53. package/dist/revolugo.33.min.js +1 -1
  54. package/dist/revolugo.34.js +1576 -6567
  55. package/dist/revolugo.34.min.js +1 -1
  56. package/dist/revolugo.35.js +5198 -909
  57. package/dist/revolugo.35.min.js +1 -1
  58. package/dist/revolugo.36.js +680 -1607
  59. package/dist/revolugo.36.min.js +1 -1
  60. package/dist/revolugo.37.js +2986 -250
  61. package/dist/revolugo.37.min.js +1 -1
  62. package/dist/revolugo.38.js +1819 -0
  63. package/dist/revolugo.38.min.js +1 -0
  64. package/dist/revolugo.39.js +579 -0
  65. package/dist/revolugo.39.min.js +1 -0
  66. package/dist/revolugo.4.js +11 -0
  67. package/dist/revolugo.4.min.js +1 -1
  68. package/dist/revolugo.5.js +2 -0
  69. package/dist/revolugo.5.min.js +1 -1
  70. package/dist/revolugo.9.js +13 -0
  71. package/dist/revolugo.9.min.js +2 -2
  72. package/dist/revolugo.en-US.js +7 -0
  73. package/dist/revolugo.en-US.min.js +1 -1
  74. package/dist/revolugo.fr-FR.js +7 -0
  75. package/dist/revolugo.fr-FR.min.js +1 -1
  76. package/dist/revolugo.js +10 -8
  77. package/dist/revolugo.min.js +1 -1
  78. package/package.json +1 -1
  79. /package/dist/css/{revolugo.36.min.css → revolugo.37.min.css} +0 -0
@@ -1 +1 @@
1
- (window["revolugo_jsonp"]=window["revolugo_jsonp"]||[]).push([[37],{"4a48":function(n,e,t){function a(){var n="/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/LangSwitchButton/LangSwitchButton.props.ts",e="b0b3d93c7c8e40768c4894718af8a4d622b68202",t=new Function("return this")(),l="__coverage__",o={path:"/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/LangSwitchButton/LangSwitchButton.props.ts",statementMap:{0:{start:{line:1,column:37},end:{line:6,column:1}}},fnMap:{},branchMap:{},s:{0:0},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b0b3d93c7c8e40768c4894718af8a4d622b68202"},c=t[l]||(t[l]={});c[n]&&c[n].hash===e||(c[n]=o);var s=c[n];return a=function(){return s},s}t.d(e,"a",(function(){return l})),a();const l=(a().s[0]++,{modalDirection:{type:String,default:"right"}})},"8e95":function(n,e,t){var a=function(){var n=this,e=n._self._c;n._self._setupProxy;return e("v-menu",{staticClass:"z-index-over-map",attrs:{"offset-y":"",attach:"",right:"right"===n.modalDirection,left:"left"===n.modalDirection,eager:""},scopedSlots:n._u([{key:"activator",fn:function({on:t,attrs:a}){return[e("v-btn",n._g(n._b({attrs:{color:"primary",outlined:"",dark:"",small:""}},"v-btn",a,!1),t),[n._v(" "+n._s(n.selectedLang.substring(0,2))+" "),e("v-icon",{staticClass:"ml-2"},[n._v(" fa fa-caret-down ")])],1)]}}])},[e("v-list",[e("p",{staticClass:"mb-2 px-3 text--secondary"},[n._v(" "+n._s(n.$t("title"))+" ")]),n._l(n.locales,(function(t){return e("v-list-item",{key:t.name,class:n.selectedLang===t.code?"grey lighten-4":null,attrs:{link:"",dense:""},on:{click:function(e){return n.onItemClick(t.code)}}},[e("span",{class:n.selectedLang===t.code?"font-weight-bold":""},[n._v(" "+n._s(t.name)+" "+n._s(t.icon)+" ")])])}))],2)],1)},l=[],o=t("946e"),c=t("f6d7"),s=t("ad27"),i=t("6337"),u=t("4a48");function r(){var n="/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/LangSwitchButton/LangSwitchButton.ts",e="f4e6b4ea73a879991e905d71cc2127fd0ff9a9f4",t=new Function("return this")(),a="__coverage__",l={path:"/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/RevolugoElements/LangSwitchButton/LangSwitchButton.ts",statementMap:{0:{start:{line:12,column:12},end:{line:12,column:54}},1:{start:{line:16,column:12},end:{line:16,column:90}},2:{start:{line:21,column:12},end:{line:21,column:71}},3:{start:{line:26,column:12},end:{line:26,column:34}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:8},end:{line:11,column:9}},loc:{start:{line:11,column:18},end:{line:13,column:9}},line:11},1:{name:"(anonymous_1)",decl:{start:{line:14,column:8},end:{line:14,column:9}},loc:{start:{line:14,column:23},end:{line:17,column:9}},line:14},2:{name:"(anonymous_2)",decl:{start:{line:20,column:8},end:{line:20,column:9}},loc:{start:{line:20,column:23},end:{line:22,column:9}},line:20},3:{name:"(anonymous_3)",decl:{start:{line:25,column:8},end:{line:25,column:9}},loc:{start:{line:25,column:26},end:{line:27,column:9}},line:25}},branchMap:{0:{loc:{start:{line:16,column:19},end:{line:16,column:89}},type:"cond-expr",locations:[{start:{line:16,column:71},end:{line:16,column:73}},{start:{line:16,column:76},end:{line:16,column:89}}],line:16},1:{loc:{start:{line:16,column:19},end:{line:16,column:68}},type:"binary-expr",locations:[{start:{line:16,column:19},end:{line:16,column:51}},{start:{line:16,column:55},end:{line:16,column:68}}],line:16}},s:{0:0,1:0,2:0,3:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f4e6b4ea73a879991e905d71cc2127fd0ff9a9f4"},o=t[a]||(t[a]={});o[n]&&o[n].hash===e||(o[n]=l);var c=o[n];return r=function(){return c},c}r();var m=s["a"].extend({name:"LangSwitchButton",mixins:[Object(i["a"])("components/RevolugoElements/LangSwitchButton")],props:u["a"],computed:{locales(){return r().f[0]++,r().s[0]++,Object.values(c["f"])},selectedLang(){var n;return r().f[1]++,r().s[1]++,r().b[1][0]++,null!==(n=this.config.lang)&&(r().b[1][1]++,void 0!==n)?(r().b[0][0]++,n):(r().b[0][1]++,c["g"].EN_US)}},watch:{selectedLang(){r().f[2]++,r().s[2]++,this.$eventBus.$emit(o["d"].LANG_UPDATE,this.config.lang)}},methods:{onItemClick(n){r().f[3]++,r().s[3]++,this.updateLang(n)}}}),d=m,p=t("f0a0"),f=t("61eb"),b=t.n(f),g=t("0a65"),h=t("fbf8"),_=t("c533"),v=t("dc7f"),w=t("f119"),L=Object(p["a"])(d,a,l,!1,null,null,null,!0);e["a"]=L.exports;b()(L,{VBtn:g["a"],VIcon:h["a"],VList:_["a"],VListItem:v["a"],VMenu:w["a"]})},9081:function(n,e,t){t.r(e);var a=function(){var n=this,e=n._self._c;n._self._setupProxy;return e("web-component-wrapper",[e("lang-switch-button",n._b({},"lang-switch-button",n.$props,!1))],1)},l=[],o=t("ad27"),c=t("4a48"),s=t("8e95"),i=t("9825");function u(){var n="/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/web-components/LangSwitchButton/LangSwitchButton.ts",e="c1a8f41b551785d61167115e8a7a4eabda6b8099",t=new Function("return this")(),a="__coverage__",l={path:"/opt/atlassian/pipelines/agent/build/libs/elements/core/src/components/web-components/LangSwitchButton/LangSwitchButton.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c1a8f41b551785d61167115e8a7a4eabda6b8099"},o=t[a]||(t[a]={});o[n]&&o[n].hash===e||(o[n]=l);var c=o[n];return u=function(){return c},c}u();var r=o["a"].extend({components:{LangSwitchButton:s["a"],WebComponentWrapper:i["a"]},props:c["a"]}),m=r,d=t("f0a0"),p=Object(d["a"])(m,a,l,!1,null,null,null,!0);e["default"]=p.exports}}]);
1
+ (window["revolugo_jsonp"]=window["revolugo_jsonp"]||[]).push([[37],{"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}}]);