holidoit 1.0.164 → 1.0.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/dist/embed.html +1 -1
- package/dist/holidoit-embed.js +1 -1
- package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/holidoit-embed.js +1 -1
- package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/holidoit.js +1 -1
- package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/holidoit.umd.js +1 -1
- package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/experience-grid-drawer-loader.js +1 -1
- package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/experience-page-drawer-loader.js +1 -1
- package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/inline-book-now-loader.js +1 -1
- package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/widget-booking-box.js +1 -1
- package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/widget-experience-grid.js +1 -1
- package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/widget-experience-page-drawer.js +1 -1
- package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/widget-experience.js +1 -1
- package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/widgets-loader.js +1 -1
- package/dist/holidoit.js +1 -1
- package/dist/holidoit.umd.js +1 -1
- package/dist/release-manifest.json +24 -24
- package/dist/widgets/experience-grid-drawer-loader.js +1 -1
- package/dist/widgets/experience-page-drawer-loader.js +1 -1
- package/dist/widgets/inline-book-now-loader.js +1 -1
- package/dist/widgets/widget-book-now-button.html +1 -1
- package/dist/widgets/widget-booking-box.html +1 -1
- package/dist/widgets/widget-booking-box.js +1 -1
- package/dist/widgets/widget-experience-grid-drawer.html +1 -1
- package/dist/widgets/widget-experience-grid.html +1 -1
- package/dist/widgets/widget-experience-grid.js +1 -1
- package/dist/widgets/widget-experience-page-drawer.html +1 -1
- package/dist/widgets/widget-experience-page-drawer.js +1 -1
- package/dist/widgets/widget-experience.html +1 -1
- package/dist/widgets/widget-experience.js +1 -1
- package/dist/widgets/widgets-loader.js +1 -1
- package/package.json +1 -1
- /package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/embed.html +0 -0
- /package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/payment-redirect.html +0 -0
- /package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/widget-book-now-button.html +0 -0
- /package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/widget-book-now-button.js +0 -0
- /package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/widget-booking-box.html +0 -0
- /package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/widget-experience-grid-drawer.html +0 -0
- /package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/widget-experience-grid-drawer.js +0 -0
- /package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/widget-experience-grid.html +0 -0
- /package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/widget-experience-page-drawer.html +0 -0
- /package/dist/holidoit-js-releases/{20260928135224166-07fe438b66bb-26ef6a21 → 20261002094648885-af688fa62c09-705e151c}/widgets/widget-experience.html +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("HolidoitWidgets",[],e):"object"==typeof exports?exports.HolidoitWidgets=e():t.HolidoitWidgets=e()}(this,()=>(()=>{var t={317:function(t,e,n){t.exports=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),r={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(t){return t+"º"}};return n.default.locale(r,null,!0),r}(n(353))},353:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",u="week",l="month",d="quarter",c="year",f="date",m="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,g={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},v={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,l),a=n-i<0,o=e.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:c,w:u,d:s,D:f,h:o,m:a,s:i,ms:r,Q:d}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",_={};_[w]=g;var b="$isDayjsObject",M=function(t){return t instanceof $||!(!t||!t[b])},T=function t(e,n,r){var i;if(!e)return w;if("string"==typeof e){var a=e.toLowerCase();_[a]&&(i=a),n&&(_[a]=n,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;_[s]=e,i=s}return!r&&i&&(w=i),i||!r&&w},S=function(t,e){if(M(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new $(n)},A=v;A.l=T,A.i=M,A.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var $=function(){function g(t){this.$L=T(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[b]=!0}var y=g.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(A.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(h);if(r){var i=r[2]-1||0,a=(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,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),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 A},y.isValid=function(){return!(this.$d.toString()===m)},y.isSame=function(t,e){var n=S(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return S(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<S(t)},y.$g=function(t,e,n){return A.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=!!A.u(e)||e,d=A.p(t),m=function(t,e){var i=A.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(s)},h=function(t,e){return A.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case c:return r?m(1,0):m(31,11);case l:return r?m(1,g):m(0,g+1);case u:var w=this.$locale().weekStart||0,_=(p<w?p+7:p)-w;return m(r?y-_:y+(6-_),g);case s:case f:return h(v+"Hours",0);case o:return h(v+"Minutes",1);case a:return h(v+"Seconds",2);case i:return h(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,u=A.p(t),d="set"+(this.$u?"UTC":""),m=(n={},n[s]=d+"Date",n[f]=d+"Date",n[l]=d+"Month",n[c]=d+"FullYear",n[o]=d+"Hours",n[a]=d+"Minutes",n[i]=d+"Seconds",n[r]=d+"Milliseconds",n)[u],h=u===s?this.$D+(e-this.$W):e;if(u===l||u===c){var p=this.clone().set(f,1);p.$d[m](h),p.init(),this.$d=p.set(f,Math.min(this.$D,p.daysInMonth())).$d}else m&&this.$d[m](h);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[A.p(t)]()},y.add=function(r,d){var f,m=this;r=Number(r);var h=A.p(d),p=function(t){var e=S(m);return A.w(e.date(e.date()+Math.round(t*r)),m)};if(h===l)return this.set(l,this.$M+r);if(h===c)return this.set(c,this.$y+r);if(h===s)return p(1);if(h===u)return p(7);var g=(f={},f[a]=e,f[o]=n,f[i]=t,f)[h]||1,y=this.$d.getTime()+r*g;return A.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||m;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=A.z(this),a=this.$H,o=this.$m,s=this.$M,u=n.weekdays,l=n.months,d=n.meridiem,c=function(t,n,i,a){return t&&(t[n]||t(e,r))||i[n].slice(0,a)},f=function(t){return A.s(a%12||12,t,"0")},h=d||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(p,function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return A.s(e.$y,4,"0");case"M":return s+1;case"MM":return A.s(s+1,2,"0");case"MMM":return c(n.monthsShort,s,l,3);case"MMMM":return c(l,s);case"D":return e.$D;case"DD":return A.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return c(n.weekdaysMin,e.$W,u,2);case"ddd":return c(n.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(a);case"HH":return A.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(a,o,!0);case"A":return h(a,o,!1);case"m":return String(o);case"mm":return A.s(o,2,"0");case"s":return String(e.$s);case"ss":return A.s(e.$s,2,"0");case"SSS":return A.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,f,m){var h,p=this,g=A.p(f),y=S(r),v=(y.utcOffset()-this.utcOffset())*e,w=this-y,_=function(){return A.m(p,y)};switch(g){case c:h=_()/12;break;case l:h=_();break;case d:h=_()/3;break;case u:h=(w-v)/6048e5;break;case s:h=(w-v)/864e5;break;case o:h=w/n;break;case a:h=w/e;break;case i:h=w/t;break;default:h=w}return m?h:A.a(h)},y.daysInMonth=function(){return this.endOf(l).$D},y.$locale=function(){return _[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=T(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return A.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()},g}(),x=$.prototype;return S.prototype=x,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",l],["$y",c],["$D",f]].forEach(function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),S.extend=function(t,e){return t.$i||(t(e,$,S),t.$i=!0),S},S.locale=T,S.isDayjs=M,S.unix=function(t){return S(1e3*t)},S.en=_[w],S.Ls=_,S.p={},S}()},445:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(t){return new i({date:t,utc:!0,args:arguments})},o.utc=function(e){var n=a(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var u=o.init;o.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 u.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],a=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===a?o:-o}(r),null===r))return this;var o=Math.abs(r)<=16?60*r:r;if(0===o)return this.utc(i);var s=this.clone();if(i)return s.$offset=o,s.$u=!1,s;var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+u,t)).$offset=o,s.$x.$localOffset=u,s};var d=o.format;o.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,e)},o.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var c=o.toDate;o.toDate=function(t){return"s"===t&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var f=o.diff;o.diff=function(t,e,n){if(t&&this.$u===t.$u)return f.call(this,t,e,n);var r=this.local(),i=a(t).local();return f.call(r,i,e,n)}}}()},494:function(t,e,n){t.exports=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function i(t,e,n){var i=r[n];return Array.isArray(i)&&(i=i[e?0:1]),i.replace("%d",t)}var a={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(t){return t+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return n.default.locale(a,null,!0),a}(n(353))},569:function(t){t.exports=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,r,i){var a,o=function(t,n,r){void 0===r&&(r={});var i=new Date(t),a=function(t,n){void 0===n&&(n={});var r=n.timeZoneName||"short",i=t+"|"+r,a=e[i];return a||(a=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}),e[i]=a),a}(n,r);return a.formatToParts(i)},s=function(e,n){for(var r=o(e,n),a=[],s=0;s<r.length;s+=1){var u=r[s],l=u.type,d=u.value,c=t[l];c>=0&&(a[c]=parseInt(d,10))}var f=a[3],m=24===f?0:f,h=a[0]+"-"+a[1]+"-"+a[2]+" "+m+":"+a[4]+":"+a[5]+":000",p=+e;return(i.utc(h).valueOf()-(p-=p%1e3))/6e4},u=r.prototype;u.tz=function(t,e){void 0===t&&(t=a);var n,r=this.utcOffset(),o=this.toDate(),s=o.toLocaleString("en-US",{timeZone:t}),u=Math.round((o-new Date(s))/1e3/60),l=15*-Math.round(o.getTimezoneOffset()/15)-u;if(Number(l)){if(n=i(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(l,!0),e){var d=n.utcOffset();n=n.add(r-d,"minute")}}else n=this.utcOffset(0,e);return n.$x.$timezone=t,n},u.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),n=o(this.valueOf(),e,{timeZoneName:t}).find(function(t){return"timezonename"===t.type.toLowerCase()});return n&&n.value};var l=u.startOf;u.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(n,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,n){var r=n&&e,o=n||e||a,u=s(+i(),o);if("string"!=typeof t)return i(t).tz(o);var l=function(t,e,n){var r=t-60*e*1e3,i=s(r,n);if(e===i)return[r,e];var a=s(r-=60*(i-e)*1e3,n);return i===a?[r,i]:[t-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(t,r).valueOf(),u,o),d=l[0],c=l[1],f=i(d).utcOffset(c);return f.$x.$timezone=o,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){a=t}}}()},813:function(t,e,n){t.exports=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(t){return t+(1===t?"er":"")}};return n.default.locale(r,null,!0),r}(n(353))},826:function(t){t.exports=function(){"use strict";return{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])+"]"}}}()},840:function(t){t.exports=function(){"use strict";return function(t,e,n){var r=e.prototype,i=function(t){return t&&(t.indexOf?t:t.s)},a=function(t,e,n,r,a){var o=t.name?t:t.$locale(),s=i(o[e]),u=i(o[n]),l=s||u.map(function(t){return t.slice(0,r)});if(!a)return l;var d=o.weekStart;return l.map(function(t,e){return l[(e+(d||0))%7]})},o=function(){return n.Ls[n.locale()]},s=function(t,e){return t.formats[e]||function(t){return t.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,n){return e||n.slice(1)})}(t.formats[e.toUpperCase()])},u=function(){var t=this;return{months:function(e){return e?e.format("MMMM"):a(t,"months")},monthsShort:function(e){return e?e.format("MMM"):a(t,"monthsShort","months",3)},firstDayOfWeek:function(){return t.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):a(t,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):a(t,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):a(t,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return s(t.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return u.bind(this)()},n.localeData=function(){var t=o();return{firstDayOfWeek:function(){return t.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(e){return s(t,e)},meridiem:t.meridiem,ordinal:t.ordinal}},n.months=function(){return a(o(),"months")},n.monthsShort=function(){return a(o(),"monthsShort","months",3)},n.weekdays=function(t){return a(o(),"weekdays",null,null,t)},n.weekdaysShort=function(t){return a(o(),"weekdaysShort","weekdays",3,t)},n.weekdaysMin=function(t){return a(o(),"weekdaysMin","weekdays",2,t)}}}()},900:function(t,e,n){t.exports=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),r={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(t){return t+"º"}};return n.default.locale(r,null,!0),r}(n(353))}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var a=e[r]={exports:{}};return t[r].call(a.exports,a,a.exports,n),a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}function i(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,e(i.key),i)}}function a(t,n,r){return(n=e(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}n.r(r),n.d(r,{holidoitWidgetsLoader:()=>H});var o="HOLIDOIT_ANALYTICS_EVENT";function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var l="holidoit_analytics_dedupe_keys",d=new Set;function c(e){return"object"===t(e)&&null!==e&&!Array.isArray(e)}function f(){if("undefined"==typeof window)return null;try{return window.sessionStorage}catch(t){return null}}function m(){var t=f();if(!t)return[];try{var e=t.getItem(l);if(!e)return[];var n=JSON.parse(e);return Array.isArray(n)?n.filter(function(t){return"string"==typeof t&&t.length>0}):[]}catch(t){return[]}}function h(t){if(t){d.add(t);var e=m().filter(function(e){return e!==t});e.push(t),function(t){var e=f();if(e)try{e.setItem(l,JSON.stringify(t.slice(-200)))}catch(t){}}(e)}}function p(t,e){return"undefined"!=typeof window&&(!function(t){return!(!t||!d.has(t)&&(!m().includes(t)||(d.add(t),0)))}(e)&&(Array.isArray(window.dataLayer)||(window.dataLayer=[]),h(e),window.dataLayer.push(t),!0))}function g(t){if(!c(t)||t.type!==o)return null;var e,n=c(t.payload)?t.payload:t,r=n.channel,i=n.dedupeKey,a=n.eventData,s=n.source,u=n.widgetType;return"dataLayer"!==r||"embed"!==s&&"widget"!==s||"string"!=typeof i||""===i.trim()||(!c(e=a)||"string"!=typeof e.event||""===e.event.trim())?null:{channel:r,dedupeKey:i.trim(),eventData:a,source:s,widgetType:"string"==typeof u&&u.trim()?u:void 0}}function y(t){try{return new URL(t,window.location.href).origin}catch(t){return null}}var v=new Set(["holidoit.js","embed.html","payment-redirect.html","widgets/widget-book-now-button.html","widgets/widget-booking-box.html","widgets/widget-experience.html","widgets/widget-experience-grid.html","widgets/widget-experience-grid-drawer.html","widgets/widget-experience-page-drawer.html"]);var w=n(353),_=n.n(w),b=(n(494),n(826),n(317),n(813),n(900),n(840)),M=n.n(b),T=n(569),S=n.n(T),A=n(445),$=n.n(A);_().extend($()),_().extend(S()),_().extend(M());var x=function(t){return t.ITALIAN="it",t.ENGLISH="en",t.SPANISH="es",t.FRENCH="fr",t.GERMAN="de",t}({});_()().locale("it").localeData().months(),_()().locale("it").localeData().weekdays(),_()().locale("en").localeData().months(),_()().locale("en").localeData().weekdays(),_()().locale("de").localeData().months(),_()().locale("de").localeData().weekdays(),_()().locale("es").localeData().months(),_()().locale("es").localeData().weekdays(),_()().locale("fr").localeData().months(),_()().locale("fr").localeData().weekdays();function D(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return L(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var C="holidoitWidget",O=48,k=Object.values(x),Y=function(){return t=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,"config",null),a(this,"widgets",[]),a(this,"isInitialized",!1),a(this,"resizeObserver",null),a(this,"primaryCTAUpdateFrame",null),a(this,"schedulePrimaryCTAUpdate",function(){null===e.primaryCTAUpdateFrame&&(e.primaryCTAUpdateFrame=requestAnimationFrame(function(){e.primaryCTAUpdateFrame=null;var t,n=null,r=1/0,i=D(e.widgets);try{for(i.s();!(t=i.n()).done;){var a=t.value,o=e.updatePrimaryCTAScrollButton(a);null!==o&&o<r&&(n=a,r=o)}}catch(t){i.e(t)}finally{i.f()}var s,u=D(e.widgets);try{for(u.s();!(s=u.n()).done;){var l,d=s.value;d!==n&&(null===(l=d.primaryCTAScrollButton)||void 0===l||l.style.setProperty("display","none","important"))}}catch(t){u.e(t)}finally{u.f()}}))}),a(this,"handleMessage",function(t){var n=t.data||{},r=n.type,i=n.height;if(r!==o)if("HOLIDOIT_WIDGET_RESIZE"!==r||"number"!=typeof i)if("HOLIDOIT_WIDGET_REQUEST_CAPABILITIES"!==r){if("HOLIDOIT_WIDGET_PRIMARY_CTA"===r){var a,s=e.findTrustedWidgetForEvent(t);if(null==s||!s.supportsPrimaryCTAScroll)return;if(!0!==t.data.active)return s.primaryCTAOffsetY=null,s.primaryCTAHeight=0,s.primaryCTAActivationOffsetY=null,null===(a=s.primaryCTAScrollButton)||void 0===a||a.style.setProperty("display","none","important"),void e.schedulePrimaryCTAUpdate();if("number"!=typeof t.data.offsetY||!Number.isFinite(t.data.offsetY)||"number"!=typeof t.data.elementHeight||!Number.isFinite(t.data.elementHeight))return;return s.primaryCTAOffsetY=Math.max(0,t.data.offsetY),s.primaryCTAHeight=Math.max(0,t.data.elementHeight),s.primaryCTAActivationOffsetY="number"==typeof t.data.activationOffsetY&&Number.isFinite(t.data.activationOffsetY)?Math.max(0,t.data.activationOffsetY):null,e.ensurePrimaryCTAScrollButton(s),void e.schedulePrimaryCTAUpdate()}if("HOLIDOIT_WIDGET_LANGUAGE_CHANGED"!==r)if("HOLIDOIT_WIDGET_READY"!==r){if("HOLIDOIT_WIDGET_SCROLL_TO"===r&&"number"==typeof t.data.offsetY){var u,l=e.findTrustedWidgetForEvent(t);if(!l)return;var d=l.iframe.getBoundingClientRect(),c=window.pageYOffset||document.documentElement.scrollTop,f="number"==typeof t.data.topOffset?Math.min(Math.max(t.data.topOffset,0),300):0,m="number"==typeof t.data.elementHeight?Math.max(t.data.elementHeight,0):null,h=d.top+c+t.data.offsetY,p=(null===(u=window.visualViewport)||void 0===u?void 0:u.height)||window.innerHeight;if(null!==m&&h>=c+f&&h+m<=c+p-24)return;var g=Math.max(0,document.documentElement.scrollHeight-p),y=l.isBookingBox&&"nearest"===t.data.alignment&&null!==m,v=y?function(t){var e=t.scrollTop,n=t.viewportHeight,r=t.elementTop,i=t.elementHeight,a=t.topOffset,o=t.bottomOffset,s=t.maxScrollTop,u=r-a,l=r+i-n+o,d=i<=Math.max(0,n-a-o)?Math.min(Math.max(e,l),u):u;return Math.min(Math.max(0,d),s)}({scrollTop:c,viewportHeight:p,elementTop:h,elementHeight:m,topOffset:f,bottomOffset:24,maxScrollTop:g}):Math.min(Math.max(0,h-f),g);if(y&&Math.abs(v-c)<2)return;var w=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth";try{window.scrollTo({top:v,behavior:w})}catch(t){window.scrollTo(0,v)}e.log("Scrolled to position",v)}}else{if(!e.findTrustedWidgetForEvent(t))return;e.log("Widget ready:",t.data)}else{var _,b,M=e.findTrustedWidgetForEvent(t),T=null===(_=t.data)||void 0===_||null===(_=_.payload)||void 0===_?void 0:_.language;if(!M||!k.includes(T))return;M.language=T,M.isExperiencePage?e.renderExperiencePageBookCTA(M):null===(b=M.primaryCTAScrollButton)||void 0===b||b.setAttribute("aria-label",e.getPrimaryCTAScrollLabel(M)),e.schedulePrimaryCTAUpdate()}}else{var S,A=e.findTrustedWidgetForEvent(t);null==A||null===(S=A.iframe.contentWindow)||void 0===S||S.postMessage({type:"HOLIDOIT_WIDGET_CAPABILITIES",primaryCTAHelper:A.supportsPrimaryCTAScroll},t.origin)}else{var $=e.findTrustedWidgetForEvent(t);if(!$)return;if($.hasMeasuredHeight||($.hasMeasuredHeight=!0,$.iframe.style.minHeight="".concat(400,"px"),$.element.dataset.holidoitInitialHeight&&($.element.style.minHeight="")),Math.abs(i-$.lastAppliedHeight)<2)return;var x=function(){$.iframe.style.height="".concat(i,"px"),$.lastAppliedHeight=i,e.schedulePrimaryCTAUpdate(),e.log("Resized widget to",i,"px")};if($.isBookingBox){var D=window.pageYOffset||document.documentElement.scrollTop;x(),requestAnimationFrame(function(){var t,e=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,n=Math.max(0,document.documentElement.scrollHeight-e),r=Math.min(D,n),i=window.pageYOffset||document.documentElement.scrollTop;Math.abs(i-r)>=1&&window.scrollTo(0,r)})}else requestAnimationFrame(x)}else e.handleAnalyticsMessage(t)})},e=[{key:"init",value:function(t){var e=this;this.isInitialized?this.log("Already initialized, skipping"):t.embedId&&(this.config=t,this.isInitialized=!0,this.log("Initializing widgets loader",t),this.setupMessageListener(),this.setupResizeObserver(),this.setupPrimaryCTAViewportListeners(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){return e.scanAndCreateWidgets()}):this.scanAndCreateWidgets(),this.observeForWidgets())}},{key:"scanAndCreateWidgets",value:function(){var t=this;document.querySelectorAll(".".concat(C)).forEach(function(e){var n=e;if("true"!==n.dataset.holidoitProcessed){var r=n.dataset.src;r&&t.createWidget(n,r)}})}},{key:"createWidget",value:function(t,e){var n,r,i,a,o,s,u;t.dataset.holidoitProcessed="true";try{u=new URL(function(t){try{var e=new URL(t,"undefined"==typeof window?void 0:window.location.href),n=new URL("https://cdn.holidoit.com/");if(e.origin!==n.origin||!e.pathname.startsWith(n.pathname))return t;var r=e.pathname.slice(n.pathname.length);return v.has(r)?(e.pathname="".concat(n.pathname,"holidoit-js-releases/").concat("20260928135224166-07fe438b66bb-26ef6a21","/").concat(r),e.toString()):t}catch(e){return t}}(e),window.location.href)}catch(e){return void(t.dataset.holidoitProcessed="false")}null!==(n=this.config)&&void 0!==n&&n.embedId&&!u.searchParams.has("embedId")&&u.searchParams.set("embedId",this.config.embedId),null!==(r=this.config)&&void 0!==r&&r.language&&!u.searchParams.has("lang")&&u.searchParams.set("lang",this.config.language),null!==(i=this.config)&&void 0!==i&&i.withLogo&&!u.searchParams.has("with_logo")&&u.searchParams.set("with_logo","true"),null!==(a=this.config)&&void 0!==a&&a.gift&&!u.searchParams.has("gift")&&u.searchParams.set("gift","true");var l=u.searchParams.get("lang"),d=k.includes(l||"")?l:(null===(o=this.config)||void 0===o?void 0:o.language)||x.ITALIAN,c=u.pathname.endsWith("/widget-booking-box.html"),f=u.pathname.endsWith("/widget-experience.html"),m=c||f,h=Number(t.dataset.holidoitInitialHeight),p=t.getBoundingClientRect().width||window.innerWidth,g=Number.isFinite(h)&&h>0?h:function(t,e){return t.pathname.endsWith("/widget-booking-box.html")?760:t.pathname.endsWith("/widget-experience.html")?e&&e<=600?1863:e&&e<=775?1923:e&&e<=1024?2027:1002:400}(u,p),y=document.createElement("iframe");y.className="holidoit-widget-iframe",y.src=u.toString(),y.allow="payment",t.style.setProperty("overflow-anchor","none"),y.setAttribute("scrolling","no"),y.setAttribute("frameborder","0"),y.style.cssText="\n width: 100% !important;\n height: ".concat(g,"px;\n min-height: ").concat(g,"px !important;\n border: none !important;\n display: block !important;\n overflow: hidden !important;\n overflow-anchor: none !important;\n "),y.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"),t.innerHTML="",t.appendChild(y);var w={element:t,iframe:y,src:u.toString(),language:d,isBookingBox:c,isExperiencePage:f,supportsPrimaryCTAScroll:m,lastAppliedHeight:g,hasMeasuredHeight:!1,primaryCTAOffsetY:null,primaryCTAHeight:0,primaryCTAActivationOffsetY:null,primaryCTAScrollButton:null};this.widgets.push(w),null===(s=this.resizeObserver)||void 0===s||s.observe(t),this.log("Created widget",w)}},{key:"setupPrimaryCTAViewportListeners",value:function(){var t,e;window.addEventListener("scroll",this.schedulePrimaryCTAUpdate,{passive:!0}),window.addEventListener("resize",this.schedulePrimaryCTAUpdate),null===(t=window.visualViewport)||void 0===t||t.addEventListener("scroll",this.schedulePrimaryCTAUpdate,{passive:!0}),null===(e=window.visualViewport)||void 0===e||e.addEventListener("resize",this.schedulePrimaryCTAUpdate)}},{key:"getPrimaryCTAScrollLabel",value:function(t){switch(t.language){case x.ITALIAN:return"Scorri fino al pulsante Prenota";case x.SPANISH:return"Desplázate hasta el botón Reservar";case x.FRENCH:return"Faire défiler jusqu’au bouton Réserver";case x.GERMAN:return"Zum Buchen-Button scrollen";default:return"Scroll to the booking button"}}},{key:"getExperiencePagePrimaryCTALabel",value:function(t){switch(t.language){case x.ITALIAN:return"Prenota";case x.SPANISH:return"Reservar";case x.FRENCH:return"Réserver";case x.GERMAN:return"Buchen";default:return"Book"}}},{key:"ensurePrimaryCTAScrollButton",value:function(t){var e=this;if(t.primaryCTAScrollButton)return t.primaryCTAScrollButton;var n=document.createElement("button");return n.type="button",n.dataset.holidoitPrimaryCtaScroll="true",t.isExperiencePage?(this.renderExperiencePageBookCTA(t,n),n.style.cssText="\n all: initial !important;\n position: fixed !important;\n display: none !important;\n align-items: center !important;\n justify-content: center !important;\n gap: 8px !important;\n box-sizing: border-box !important;\n height: ".concat(54,"px !important;\n bottom: max(").concat(14,'px, env(safe-area-inset-bottom)) !important;\n padding: 0 20px !important;\n border: 0 !important;\n border-radius: 12px !important;\n background: rgb(15, 23, 42) !important;\n color: white !important;\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;\n cursor: pointer !important;\n font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;\n font-size: 16px !important;\n font-weight: 500 !important;\n line-height: 1 !important;\n white-space: nowrap !important;\n touch-action: manipulation !important;\n transition: all 200ms ease-out !important;\n z-index: 2147483000 !important;\n -webkit-tap-highlight-color: transparent !important;\n ')):(n.setAttribute("aria-label",this.getPrimaryCTAScrollLabel(t)),n.innerHTML='\n <svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round" style="display:block!important;width:22px!important;height:22px!important">\n <path d="m6 9 6 6 6-6"></path>\n </svg>\n ',n.style.cssText="\n all: initial !important;\n position: fixed !important;\n display: none !important;\n align-items: center !important;\n justify-content: center !important;\n box-sizing: border-box !important;\n width: ".concat(O,"px !important;\n height: ").concat(O,"px !important;\n bottom: max(").concat(12,"px, env(safe-area-inset-bottom)) !important;\n border: 0 !important;\n border-radius: 9999px !important;\n background: rgb(30, 41, 59) !important;\n color: white !important;\n box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24) !important;\n cursor: pointer !important;\n touch-action: manipulation !important;\n z-index: 2147483000 !important;\n -webkit-tap-highlight-color: transparent !important;\n ")),n.addEventListener("focus",function(){var t=!0;try{t=n.matches(":focus-visible")}catch(t){}t&&(n.style.setProperty("outline","3px solid rgb(37, 99, 235)","important"),n.style.setProperty("outline-offset","3px","important"))}),n.addEventListener("blur",function(){n.style.removeProperty("outline"),n.style.removeProperty("outline-offset")}),n.addEventListener("click",function(){return e.handlePrimaryCTAButtonClick(t)}),document.body.appendChild(n),t.primaryCTAScrollButton=n,n}},{key:"updatePrimaryCTAScrollButton",value:function(t){var e=t.primaryCTAScrollButton;if(!e)return null;var n=window.visualViewport,r=(null==n?void 0:n.offsetTop)||0,i=(null==n?void 0:n.offsetLeft)||0,a=(null==n?void 0:n.height)||window.innerHeight,o=(null==n?void 0:n.width)||window.innerWidth,s=r+a,u=t.iframe.getBoundingClientRect(),l=null===t.primaryCTAOffsetY?null:u.top+t.primaryCTAOffsetY,d=null===t.primaryCTAActivationOffsetY?null:u.top+t.primaryCTAActivationOffsetY,c=u.bottom>r&&u.top<s,f=null!==l&&l>=s,m=null===d||d<=s-O,h=window.matchMedia("(max-width: ".concat(775,"px)")).matches,p=u.width<=1024;if(t.isExperiencePage){var g=Math.max(u.left+14,i+14),y=Math.min(u.right-14,i+o-14);return!p||!c||null===d||y-g<54||d<=s-54?(e.style.setProperty("display","none","important"),null):(e.style.setProperty("left","".concat(g,"px"),"important"),e.style.setProperty("width","".concat(y-g,"px"),"important"),e.style.setProperty("display","flex","important"),d)}var v=Math.max(u.left,i+12),w=Math.min(u.right-O,i+o-12-O);if(!h||!c||!f||!m||w<v)return e.style.setProperty("display","none","important"),null;var _=u.left+(u.width-O)/2,b=Math.min(Math.max(_,v),w);return e.style.setProperty("left","".concat(b,"px"),"important"),e.style.setProperty("display","flex","important"),l}},{key:"renderExperiencePageBookCTA",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.primaryCTAScrollButton;if(e){var n=this.getExperiencePagePrimaryCTALabel(t);e.setAttribute("aria-label",n),e.innerHTML='\n <span style="all:initial!important;color:inherit!important;font:inherit!important;line-height:inherit!important">'.concat(n,'</span>\n <svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round" style="display:block!important;width:20px!important;height:20px!important;flex:none!important">\n <path d="m6 9 6 6 6-6"></path>\n </svg>\n ')}}},{key:"handlePrimaryCTAButtonClick",value:function(t){var e;t.isExperiencePage?(null===(e=t.primaryCTAScrollButton)||void 0===e||e.blur(),this.scrollToPrimaryCTAActivationTarget(t)):this.scrollToPrimaryCTA(t)}},{key:"scrollToPrimaryCTAActivationTarget",value:function(t){if(null!==t.primaryCTAActivationOffsetY){var e=t.iframe.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop,r=window.visualViewport,i=(null==r?void 0:r.height)||window.innerHeight,a=(null==r?void 0:r.offsetTop)||0,o=e.top+n+t.primaryCTAActivationOffsetY,s=Math.max(0,document.documentElement.scrollHeight-i),u=Math.min(Math.max(0,o-a-12),s),l=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth";try{window.scrollTo({top:u,behavior:l})}catch(t){window.scrollTo(0,u)}}else this.scrollToPrimaryCTA(t)}},{key:"scrollToPrimaryCTA",value:function(t){var e;if(null!==t.primaryCTAOffsetY){var n=t.iframe.getBoundingClientRect(),r=window.pageYOffset||document.documentElement.scrollTop,i=window.visualViewport,a=(null==i?void 0:i.height)||window.innerHeight,o=(null==i?void 0:i.offsetTop)||0,s=n.top+r+t.primaryCTAOffsetY+t.primaryCTAHeight,u=Math.max(0,document.documentElement.scrollHeight-a),l=Math.min(Math.max(0,s-a-o+24),u),d=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth";null===(e=t.primaryCTAScrollButton)||void 0===e||e.blur();try{window.scrollTo({top:l,behavior:d})}catch(t){window.scrollTo(0,l)}}}},{key:"observeForWidgets",value:function(){var t=this;new MutationObserver(function(e){var n,r=!1,i=D(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if("childList"===a.type)for(var o=0;o<a.addedNodes.length;o++){var s,u,l=a.addedNodes[o];if(l instanceof HTMLElement&&(null!==(s=l.classList)&&void 0!==s&&s.contains(C)||null!==(u=l.querySelector)&&void 0!==u&&u.call(l,".".concat(C)))){r=!0;break}}if(r)break}}catch(t){i.e(t)}finally{i.f()}r&&(t.log("Detected new widget elements, scanning..."),t.scanAndCreateWidgets())}).observe(document.body,{childList:!0,subtree:!0})}},{key:"setupMessageListener",value:function(){window.addEventListener("message",this.handleMessage)}},{key:"handleAnalyticsMessage",value:function(t){var e=this,n=this.findTrustedWidgetForEvent(t);!function(t){var e=t.event,n=t.isTrustedSource,r=t.widgetSrc,i=t.log;if(n){var a=g(e.data);a&&"widget"===a.source&&(p(a.eventData,a.dedupeKey)?null==i||i("Pushed analytics event to dataLayer",{dedupeKey:a.dedupeKey,widgetType:a.widgetType,src:r}):null==i||i("Skipped duplicate analytics event",a.dedupeKey))}else null==i||i("Ignored analytics message from untrusted iframe",e.origin)}({event:t,isTrustedSource:Boolean(n),widgetSrc:null==n?void 0:n.src,log:function(){return e.log.apply(e,arguments)}})}},{key:"findTrustedWidgetForEvent",value:function(t){return function(t){var e,n=t.widgets,r=t.event,i=t.getWidgetSrc,a=s(n);try{for(a.s();!(e=a.n()).done;){var o=e.value;if(o.iframe.contentWindow===r.source){var u=y(i(o));return u&&r.origin===u?o:null}}}catch(t){a.e(t)}finally{a.f()}return null}({widgets:this.widgets,event:t,getWidgetSrc:function(t){return t.src}})}},{key:"setupResizeObserver",value:function(){var t=this;this.resizeObserver=new ResizeObserver(function(e){var n,r=D(e);try{for(r.s();!(n=r.n()).done;){var i,a=n.value.target,o=D(t.widgets);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.element===a){var u;null===(u=s.iframe.contentWindow)||void 0===u||u.postMessage({type:"HOLIDOIT_REQUEST_HEIGHT"},"*");break}}}catch(t){o.e(t)}finally{o.f()}}}catch(t){r.e(t)}finally{r.f()}})}},{key:"changeLanguage",value:function(t){this.log("Changing language to",t),this.config&&(this.config.language=t);var e,n=D(this.widgets);try{for(n.s();!(e=n.n()).done;){var r,i=e.value;i.language=t,i.isExperiencePage?this.renderExperiencePageBookCTA(i):null===(r=i.primaryCTAScrollButton)||void 0===r||r.setAttribute("aria-label",this.getPrimaryCTAScrollLabel(i))}}catch(t){n.e(t)}finally{n.f()}this.schedulePrimaryCTAUpdate();var a,o=D(this.widgets);try{for(o.s();!(a=o.n()).done;){var s;null===(s=a.value.iframe.contentWindow)||void 0===s||s.postMessage({type:"HOLIDOIT_CHANGE_LANGUAGE",payload:{language:t}},"*")}}catch(t){o.e(t)}finally{o.f()}}},{key:"destroy",value:function(){var t,e,n;this.log("Destroying widgets"),window.removeEventListener("message",this.handleMessage),window.removeEventListener("scroll",this.schedulePrimaryCTAUpdate),window.removeEventListener("resize",this.schedulePrimaryCTAUpdate),null===(t=window.visualViewport)||void 0===t||t.removeEventListener("scroll",this.schedulePrimaryCTAUpdate),null===(e=window.visualViewport)||void 0===e||e.removeEventListener("resize",this.schedulePrimaryCTAUpdate),null!==this.primaryCTAUpdateFrame&&(cancelAnimationFrame(this.primaryCTAUpdateFrame),this.primaryCTAUpdateFrame=null);var r,i=D(this.widgets);try{for(i.s();!(r=i.n()).done;){var a,o=r.value;null===(a=o.primaryCTAScrollButton)||void 0===a||a.remove(),o.iframe.remove(),o.element.dataset.holidoitProcessed="false"}}catch(t){i.e(t)}finally{i.f()}null===(n=this.resizeObserver)||void 0===n||n.disconnect(),this.resizeObserver=null,this.widgets=[],this.config=null,this.isInitialized=!1}},{key:"log",value:function(){var t,e="undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname);if(null!==(t=this.config)&&void 0!==t&&t.debug||e){for(var n,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];(n=console).log.apply(n,["[HolidoitWidgets]"].concat(i))}}}],e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),H=new Y;if("undefined"!=typeof window){var P=document.currentScript;if(P){var I=new URL(P.src),E=I.searchParams.get("embedId")||P.dataset.embedId;if(E){var W=I.searchParams.get("lang")||P.dataset.language;H.init({embedId:E,language:W,debug:"true"===I.searchParams.get("debug")||"true"===P.dataset.debug,withLogo:"true"===I.searchParams.get("with_logo")||"true"===P.dataset.withLogo,gift:"true"===I.searchParams.get("gift")||"true"===P.dataset.gift})}}window.HolidoitWidgets=H}})(),r})());
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("HolidoitWidgets",[],e):"object"==typeof exports?exports.HolidoitWidgets=e():t.HolidoitWidgets=e()}(this,()=>(()=>{var t={317:function(t,e,n){t.exports=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),r={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(t){return t+"º"}};return n.default.locale(r,null,!0),r}(n(353))},353:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",u="week",l="month",d="quarter",c="year",f="date",m="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,g={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},v={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,l),a=n-i<0,o=e.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:c,w:u,d:s,D:f,h:o,m:a,s:i,ms:r,Q:d}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",_={};_[w]=g;var b="$isDayjsObject",M=function(t){return t instanceof $||!(!t||!t[b])},T=function t(e,n,r){var i;if(!e)return w;if("string"==typeof e){var a=e.toLowerCase();_[a]&&(i=a),n&&(_[a]=n,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;_[s]=e,i=s}return!r&&i&&(w=i),i||!r&&w},S=function(t,e){if(M(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new $(n)},A=v;A.l=T,A.i=M,A.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var $=function(){function g(t){this.$L=T(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[b]=!0}var y=g.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(A.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(h);if(r){var i=r[2]-1||0,a=(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,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),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 A},y.isValid=function(){return!(this.$d.toString()===m)},y.isSame=function(t,e){var n=S(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return S(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<S(t)},y.$g=function(t,e,n){return A.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=!!A.u(e)||e,d=A.p(t),m=function(t,e){var i=A.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(s)},h=function(t,e){return A.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case c:return r?m(1,0):m(31,11);case l:return r?m(1,g):m(0,g+1);case u:var w=this.$locale().weekStart||0,_=(p<w?p+7:p)-w;return m(r?y-_:y+(6-_),g);case s:case f:return h(v+"Hours",0);case o:return h(v+"Minutes",1);case a:return h(v+"Seconds",2);case i:return h(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,u=A.p(t),d="set"+(this.$u?"UTC":""),m=(n={},n[s]=d+"Date",n[f]=d+"Date",n[l]=d+"Month",n[c]=d+"FullYear",n[o]=d+"Hours",n[a]=d+"Minutes",n[i]=d+"Seconds",n[r]=d+"Milliseconds",n)[u],h=u===s?this.$D+(e-this.$W):e;if(u===l||u===c){var p=this.clone().set(f,1);p.$d[m](h),p.init(),this.$d=p.set(f,Math.min(this.$D,p.daysInMonth())).$d}else m&&this.$d[m](h);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[A.p(t)]()},y.add=function(r,d){var f,m=this;r=Number(r);var h=A.p(d),p=function(t){var e=S(m);return A.w(e.date(e.date()+Math.round(t*r)),m)};if(h===l)return this.set(l,this.$M+r);if(h===c)return this.set(c,this.$y+r);if(h===s)return p(1);if(h===u)return p(7);var g=(f={},f[a]=e,f[o]=n,f[i]=t,f)[h]||1,y=this.$d.getTime()+r*g;return A.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||m;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=A.z(this),a=this.$H,o=this.$m,s=this.$M,u=n.weekdays,l=n.months,d=n.meridiem,c=function(t,n,i,a){return t&&(t[n]||t(e,r))||i[n].slice(0,a)},f=function(t){return A.s(a%12||12,t,"0")},h=d||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(p,function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return A.s(e.$y,4,"0");case"M":return s+1;case"MM":return A.s(s+1,2,"0");case"MMM":return c(n.monthsShort,s,l,3);case"MMMM":return c(l,s);case"D":return e.$D;case"DD":return A.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return c(n.weekdaysMin,e.$W,u,2);case"ddd":return c(n.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(a);case"HH":return A.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(a,o,!0);case"A":return h(a,o,!1);case"m":return String(o);case"mm":return A.s(o,2,"0");case"s":return String(e.$s);case"ss":return A.s(e.$s,2,"0");case"SSS":return A.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,f,m){var h,p=this,g=A.p(f),y=S(r),v=(y.utcOffset()-this.utcOffset())*e,w=this-y,_=function(){return A.m(p,y)};switch(g){case c:h=_()/12;break;case l:h=_();break;case d:h=_()/3;break;case u:h=(w-v)/6048e5;break;case s:h=(w-v)/864e5;break;case o:h=w/n;break;case a:h=w/e;break;case i:h=w/t;break;default:h=w}return m?h:A.a(h)},y.daysInMonth=function(){return this.endOf(l).$D},y.$locale=function(){return _[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=T(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return A.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()},g}(),x=$.prototype;return S.prototype=x,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",l],["$y",c],["$D",f]].forEach(function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),S.extend=function(t,e){return t.$i||(t(e,$,S),t.$i=!0),S},S.locale=T,S.isDayjs=M,S.unix=function(t){return S(1e3*t)},S.en=_[w],S.Ls=_,S.p={},S}()},445:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(t){return new i({date:t,utc:!0,args:arguments})},o.utc=function(e){var n=a(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var u=o.init;o.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 u.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],a=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===a?o:-o}(r),null===r))return this;var o=Math.abs(r)<=16?60*r:r;if(0===o)return this.utc(i);var s=this.clone();if(i)return s.$offset=o,s.$u=!1,s;var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+u,t)).$offset=o,s.$x.$localOffset=u,s};var d=o.format;o.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,e)},o.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var c=o.toDate;o.toDate=function(t){return"s"===t&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var f=o.diff;o.diff=function(t,e,n){if(t&&this.$u===t.$u)return f.call(this,t,e,n);var r=this.local(),i=a(t).local();return f.call(r,i,e,n)}}}()},494:function(t,e,n){t.exports=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function i(t,e,n){var i=r[n];return Array.isArray(i)&&(i=i[e?0:1]),i.replace("%d",t)}var a={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(t){return t+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return n.default.locale(a,null,!0),a}(n(353))},569:function(t){t.exports=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,r,i){var a,o=function(t,n,r){void 0===r&&(r={});var i=new Date(t),a=function(t,n){void 0===n&&(n={});var r=n.timeZoneName||"short",i=t+"|"+r,a=e[i];return a||(a=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}),e[i]=a),a}(n,r);return a.formatToParts(i)},s=function(e,n){for(var r=o(e,n),a=[],s=0;s<r.length;s+=1){var u=r[s],l=u.type,d=u.value,c=t[l];c>=0&&(a[c]=parseInt(d,10))}var f=a[3],m=24===f?0:f,h=a[0]+"-"+a[1]+"-"+a[2]+" "+m+":"+a[4]+":"+a[5]+":000",p=+e;return(i.utc(h).valueOf()-(p-=p%1e3))/6e4},u=r.prototype;u.tz=function(t,e){void 0===t&&(t=a);var n,r=this.utcOffset(),o=this.toDate(),s=o.toLocaleString("en-US",{timeZone:t}),u=Math.round((o-new Date(s))/1e3/60),l=15*-Math.round(o.getTimezoneOffset()/15)-u;if(Number(l)){if(n=i(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(l,!0),e){var d=n.utcOffset();n=n.add(r-d,"minute")}}else n=this.utcOffset(0,e);return n.$x.$timezone=t,n},u.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),n=o(this.valueOf(),e,{timeZoneName:t}).find(function(t){return"timezonename"===t.type.toLowerCase()});return n&&n.value};var l=u.startOf;u.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(n,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,n){var r=n&&e,o=n||e||a,u=s(+i(),o);if("string"!=typeof t)return i(t).tz(o);var l=function(t,e,n){var r=t-60*e*1e3,i=s(r,n);if(e===i)return[r,e];var a=s(r-=60*(i-e)*1e3,n);return i===a?[r,i]:[t-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(t,r).valueOf(),u,o),d=l[0],c=l[1],f=i(d).utcOffset(c);return f.$x.$timezone=o,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){a=t}}}()},813:function(t,e,n){t.exports=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(t){return t+(1===t?"er":"")}};return n.default.locale(r,null,!0),r}(n(353))},826:function(t){t.exports=function(){"use strict";return{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])+"]"}}}()},840:function(t){t.exports=function(){"use strict";return function(t,e,n){var r=e.prototype,i=function(t){return t&&(t.indexOf?t:t.s)},a=function(t,e,n,r,a){var o=t.name?t:t.$locale(),s=i(o[e]),u=i(o[n]),l=s||u.map(function(t){return t.slice(0,r)});if(!a)return l;var d=o.weekStart;return l.map(function(t,e){return l[(e+(d||0))%7]})},o=function(){return n.Ls[n.locale()]},s=function(t,e){return t.formats[e]||function(t){return t.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,n){return e||n.slice(1)})}(t.formats[e.toUpperCase()])},u=function(){var t=this;return{months:function(e){return e?e.format("MMMM"):a(t,"months")},monthsShort:function(e){return e?e.format("MMM"):a(t,"monthsShort","months",3)},firstDayOfWeek:function(){return t.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):a(t,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):a(t,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):a(t,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return s(t.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return u.bind(this)()},n.localeData=function(){var t=o();return{firstDayOfWeek:function(){return t.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(e){return s(t,e)},meridiem:t.meridiem,ordinal:t.ordinal}},n.months=function(){return a(o(),"months")},n.monthsShort=function(){return a(o(),"monthsShort","months",3)},n.weekdays=function(t){return a(o(),"weekdays",null,null,t)},n.weekdaysShort=function(t){return a(o(),"weekdaysShort","weekdays",3,t)},n.weekdaysMin=function(t){return a(o(),"weekdaysMin","weekdays",2,t)}}}()},900:function(t,e,n){t.exports=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),r={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(t){return t+"º"}};return n.default.locale(r,null,!0),r}(n(353))}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var a=e[r]={exports:{}};return t[r].call(a.exports,a,a.exports,n),a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}function i(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,e(i.key),i)}}function a(t,n,r){return(n=e(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}n.r(r),n.d(r,{holidoitWidgetsLoader:()=>H});var o="HOLIDOIT_ANALYTICS_EVENT";function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var l="holidoit_analytics_dedupe_keys",d=new Set;function c(e){return"object"===t(e)&&null!==e&&!Array.isArray(e)}function f(){if("undefined"==typeof window)return null;try{return window.sessionStorage}catch(t){return null}}function m(){var t=f();if(!t)return[];try{var e=t.getItem(l);if(!e)return[];var n=JSON.parse(e);return Array.isArray(n)?n.filter(function(t){return"string"==typeof t&&t.length>0}):[]}catch(t){return[]}}function h(t){if(t){d.add(t);var e=m().filter(function(e){return e!==t});e.push(t),function(t){var e=f();if(e)try{e.setItem(l,JSON.stringify(t.slice(-200)))}catch(t){}}(e)}}function p(t,e){return"undefined"!=typeof window&&(!function(t){return!(!t||!d.has(t)&&(!m().includes(t)||(d.add(t),0)))}(e)&&(Array.isArray(window.dataLayer)||(window.dataLayer=[]),h(e),window.dataLayer.push(t),!0))}function g(t){if(!c(t)||t.type!==o)return null;var e,n=c(t.payload)?t.payload:t,r=n.channel,i=n.dedupeKey,a=n.eventData,s=n.source,u=n.widgetType;return"dataLayer"!==r||"embed"!==s&&"widget"!==s||"string"!=typeof i||""===i.trim()||(!c(e=a)||"string"!=typeof e.event||""===e.event.trim())?null:{channel:r,dedupeKey:i.trim(),eventData:a,source:s,widgetType:"string"==typeof u&&u.trim()?u:void 0}}function y(t){try{return new URL(t,window.location.href).origin}catch(t){return null}}var v=new Set(["holidoit.js","embed.html","payment-redirect.html","widgets/widget-book-now-button.html","widgets/widget-booking-box.html","widgets/widget-experience.html","widgets/widget-experience-grid.html","widgets/widget-experience-grid-drawer.html","widgets/widget-experience-page-drawer.html"]);var w=n(353),_=n.n(w),b=(n(494),n(826),n(317),n(813),n(900),n(840)),M=n.n(b),T=n(569),S=n.n(T),A=n(445),$=n.n(A);_().extend($()),_().extend(S()),_().extend(M());var x=function(t){return t.ITALIAN="it",t.ENGLISH="en",t.SPANISH="es",t.FRENCH="fr",t.GERMAN="de",t}({});_()().locale("it").localeData().months(),_()().locale("it").localeData().weekdays(),_()().locale("en").localeData().months(),_()().locale("en").localeData().weekdays(),_()().locale("de").localeData().months(),_()().locale("de").localeData().weekdays(),_()().locale("es").localeData().months(),_()().locale("es").localeData().weekdays(),_()().locale("fr").localeData().months(),_()().locale("fr").localeData().weekdays();function D(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return L(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var C="holidoitWidget",O=48,k=Object.values(x),Y=function(){return t=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,"config",null),a(this,"widgets",[]),a(this,"isInitialized",!1),a(this,"resizeObserver",null),a(this,"primaryCTAUpdateFrame",null),a(this,"schedulePrimaryCTAUpdate",function(){null===e.primaryCTAUpdateFrame&&(e.primaryCTAUpdateFrame=requestAnimationFrame(function(){e.primaryCTAUpdateFrame=null;var t,n=null,r=1/0,i=D(e.widgets);try{for(i.s();!(t=i.n()).done;){var a=t.value,o=e.updatePrimaryCTAScrollButton(a);null!==o&&o<r&&(n=a,r=o)}}catch(t){i.e(t)}finally{i.f()}var s,u=D(e.widgets);try{for(u.s();!(s=u.n()).done;){var l,d=s.value;d!==n&&(null===(l=d.primaryCTAScrollButton)||void 0===l||l.style.setProperty("display","none","important"))}}catch(t){u.e(t)}finally{u.f()}}))}),a(this,"handleMessage",function(t){var n=t.data||{},r=n.type,i=n.height;if(r!==o)if("HOLIDOIT_WIDGET_RESIZE"!==r||"number"!=typeof i)if("HOLIDOIT_WIDGET_REQUEST_CAPABILITIES"!==r){if("HOLIDOIT_WIDGET_PRIMARY_CTA"===r){var a,s=e.findTrustedWidgetForEvent(t);if(null==s||!s.supportsPrimaryCTAScroll)return;if(!0!==t.data.active)return s.primaryCTAOffsetY=null,s.primaryCTAHeight=0,s.primaryCTAActivationOffsetY=null,null===(a=s.primaryCTAScrollButton)||void 0===a||a.style.setProperty("display","none","important"),void e.schedulePrimaryCTAUpdate();if("number"!=typeof t.data.offsetY||!Number.isFinite(t.data.offsetY)||"number"!=typeof t.data.elementHeight||!Number.isFinite(t.data.elementHeight))return;return s.primaryCTAOffsetY=Math.max(0,t.data.offsetY),s.primaryCTAHeight=Math.max(0,t.data.elementHeight),s.primaryCTAActivationOffsetY="number"==typeof t.data.activationOffsetY&&Number.isFinite(t.data.activationOffsetY)?Math.max(0,t.data.activationOffsetY):null,e.ensurePrimaryCTAScrollButton(s),void e.schedulePrimaryCTAUpdate()}if("HOLIDOIT_WIDGET_LANGUAGE_CHANGED"!==r)if("HOLIDOIT_WIDGET_READY"!==r){if("HOLIDOIT_WIDGET_SCROLL_TO"===r&&"number"==typeof t.data.offsetY){var u,l=e.findTrustedWidgetForEvent(t);if(!l)return;var d=l.iframe.getBoundingClientRect(),c=window.pageYOffset||document.documentElement.scrollTop,f="number"==typeof t.data.topOffset?Math.min(Math.max(t.data.topOffset,0),300):0,m="number"==typeof t.data.elementHeight?Math.max(t.data.elementHeight,0):null,h=d.top+c+t.data.offsetY,p=(null===(u=window.visualViewport)||void 0===u?void 0:u.height)||window.innerHeight;if(null!==m&&h>=c+f&&h+m<=c+p-24)return;var g=Math.max(0,document.documentElement.scrollHeight-p),y=l.isBookingBox&&"nearest"===t.data.alignment&&null!==m,v=y?function(t){var e=t.scrollTop,n=t.viewportHeight,r=t.elementTop,i=t.elementHeight,a=t.topOffset,o=t.bottomOffset,s=t.maxScrollTop,u=r-a,l=r+i-n+o,d=i<=Math.max(0,n-a-o)?Math.min(Math.max(e,l),u):u;return Math.min(Math.max(0,d),s)}({scrollTop:c,viewportHeight:p,elementTop:h,elementHeight:m,topOffset:f,bottomOffset:24,maxScrollTop:g}):Math.min(Math.max(0,h-f),g);if(y&&Math.abs(v-c)<2)return;var w=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth";try{window.scrollTo({top:v,behavior:w})}catch(t){window.scrollTo(0,v)}e.log("Scrolled to position",v)}}else{if(!e.findTrustedWidgetForEvent(t))return;e.log("Widget ready:",t.data)}else{var _,b,M=e.findTrustedWidgetForEvent(t),T=null===(_=t.data)||void 0===_||null===(_=_.payload)||void 0===_?void 0:_.language;if(!M||!k.includes(T))return;M.language=T,M.isExperiencePage?e.renderExperiencePageBookCTA(M):null===(b=M.primaryCTAScrollButton)||void 0===b||b.setAttribute("aria-label",e.getPrimaryCTAScrollLabel(M)),e.schedulePrimaryCTAUpdate()}}else{var S,A=e.findTrustedWidgetForEvent(t);null==A||null===(S=A.iframe.contentWindow)||void 0===S||S.postMessage({type:"HOLIDOIT_WIDGET_CAPABILITIES",primaryCTAHelper:A.supportsPrimaryCTAScroll},t.origin)}else{var $=e.findTrustedWidgetForEvent(t);if(!$)return;if($.hasMeasuredHeight||($.hasMeasuredHeight=!0,$.iframe.style.minHeight="".concat(400,"px"),$.element.dataset.holidoitInitialHeight&&($.element.style.minHeight="")),Math.abs(i-$.lastAppliedHeight)<2)return;var x=function(){$.iframe.style.height="".concat(i,"px"),$.lastAppliedHeight=i,e.schedulePrimaryCTAUpdate(),e.log("Resized widget to",i,"px")};if($.isBookingBox){var D=window.pageYOffset||document.documentElement.scrollTop;x(),requestAnimationFrame(function(){var t,e=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,n=Math.max(0,document.documentElement.scrollHeight-e),r=Math.min(D,n),i=window.pageYOffset||document.documentElement.scrollTop;Math.abs(i-r)>=1&&window.scrollTo(0,r)})}else requestAnimationFrame(x)}else e.handleAnalyticsMessage(t)})},e=[{key:"init",value:function(t){var e=this;this.isInitialized?this.log("Already initialized, skipping"):t.embedId&&(this.config=t,this.isInitialized=!0,this.log("Initializing widgets loader",t),this.setupMessageListener(),this.setupResizeObserver(),this.setupPrimaryCTAViewportListeners(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){return e.scanAndCreateWidgets()}):this.scanAndCreateWidgets(),this.observeForWidgets())}},{key:"scanAndCreateWidgets",value:function(){var t=this;document.querySelectorAll(".".concat(C)).forEach(function(e){var n=e;if("true"!==n.dataset.holidoitProcessed){var r=n.dataset.src;r&&t.createWidget(n,r)}})}},{key:"createWidget",value:function(t,e){var n,r,i,a,o,s,u;t.dataset.holidoitProcessed="true";try{u=new URL(function(t){try{var e=new URL(t,"undefined"==typeof window?void 0:window.location.href),n=new URL("https://cdn.holidoit.com/");if(e.origin!==n.origin||!e.pathname.startsWith(n.pathname))return t;var r=e.pathname.slice(n.pathname.length);return v.has(r)?(e.pathname="".concat(n.pathname,"holidoit-js-releases/").concat("20261002094648885-af688fa62c09-705e151c","/").concat(r),e.toString()):t}catch(e){return t}}(e),window.location.href)}catch(e){return void(t.dataset.holidoitProcessed="false")}null!==(n=this.config)&&void 0!==n&&n.embedId&&!u.searchParams.has("embedId")&&u.searchParams.set("embedId",this.config.embedId),null!==(r=this.config)&&void 0!==r&&r.language&&!u.searchParams.has("lang")&&u.searchParams.set("lang",this.config.language),null!==(i=this.config)&&void 0!==i&&i.withLogo&&!u.searchParams.has("with_logo")&&u.searchParams.set("with_logo","true"),null!==(a=this.config)&&void 0!==a&&a.gift&&!u.searchParams.has("gift")&&u.searchParams.set("gift","true");var l=u.searchParams.get("lang"),d=k.includes(l||"")?l:(null===(o=this.config)||void 0===o?void 0:o.language)||x.ITALIAN,c=u.pathname.endsWith("/widget-booking-box.html"),f=u.pathname.endsWith("/widget-experience.html"),m=c||f,h=Number(t.dataset.holidoitInitialHeight),p=t.getBoundingClientRect().width||window.innerWidth,g=Number.isFinite(h)&&h>0?h:function(t,e){return t.pathname.endsWith("/widget-booking-box.html")?760:t.pathname.endsWith("/widget-experience.html")?e&&e<=600?1863:e&&e<=775?1923:e&&e<=1024?2027:1002:400}(u,p),y=document.createElement("iframe");y.className="holidoit-widget-iframe",y.src=u.toString(),y.allow="payment",t.style.setProperty("overflow-anchor","none"),y.setAttribute("scrolling","no"),y.setAttribute("frameborder","0"),y.style.cssText="\n width: 100% !important;\n height: ".concat(g,"px;\n min-height: ").concat(g,"px !important;\n border: none !important;\n display: block !important;\n overflow: hidden !important;\n overflow-anchor: none !important;\n "),y.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"),t.innerHTML="",t.appendChild(y);var w={element:t,iframe:y,src:u.toString(),language:d,isBookingBox:c,isExperiencePage:f,supportsPrimaryCTAScroll:m,lastAppliedHeight:g,hasMeasuredHeight:!1,primaryCTAOffsetY:null,primaryCTAHeight:0,primaryCTAActivationOffsetY:null,primaryCTAScrollButton:null};this.widgets.push(w),null===(s=this.resizeObserver)||void 0===s||s.observe(t),this.log("Created widget",w)}},{key:"setupPrimaryCTAViewportListeners",value:function(){var t,e;window.addEventListener("scroll",this.schedulePrimaryCTAUpdate,{passive:!0}),window.addEventListener("resize",this.schedulePrimaryCTAUpdate),null===(t=window.visualViewport)||void 0===t||t.addEventListener("scroll",this.schedulePrimaryCTAUpdate,{passive:!0}),null===(e=window.visualViewport)||void 0===e||e.addEventListener("resize",this.schedulePrimaryCTAUpdate)}},{key:"getPrimaryCTAScrollLabel",value:function(t){switch(t.language){case x.ITALIAN:return"Scorri fino al pulsante Prenota";case x.SPANISH:return"Desplázate hasta el botón Reservar";case x.FRENCH:return"Faire défiler jusqu’au bouton Réserver";case x.GERMAN:return"Zum Buchen-Button scrollen";default:return"Scroll to the booking button"}}},{key:"getExperiencePagePrimaryCTALabel",value:function(t){switch(t.language){case x.ITALIAN:return"Prenota";case x.SPANISH:return"Reservar";case x.FRENCH:return"Réserver";case x.GERMAN:return"Buchen";default:return"Book"}}},{key:"ensurePrimaryCTAScrollButton",value:function(t){var e=this;if(t.primaryCTAScrollButton)return t.primaryCTAScrollButton;var n=document.createElement("button");return n.type="button",n.dataset.holidoitPrimaryCtaScroll="true",t.isExperiencePage?(this.renderExperiencePageBookCTA(t,n),n.style.cssText="\n all: initial !important;\n position: fixed !important;\n display: none !important;\n align-items: center !important;\n justify-content: center !important;\n gap: 8px !important;\n box-sizing: border-box !important;\n height: ".concat(54,"px !important;\n bottom: max(").concat(14,'px, env(safe-area-inset-bottom)) !important;\n padding: 0 20px !important;\n border: 0 !important;\n border-radius: 12px !important;\n background: rgb(15, 23, 42) !important;\n color: white !important;\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;\n cursor: pointer !important;\n font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;\n font-size: 16px !important;\n font-weight: 500 !important;\n line-height: 1 !important;\n white-space: nowrap !important;\n touch-action: manipulation !important;\n transition: all 200ms ease-out !important;\n z-index: 2147483000 !important;\n -webkit-tap-highlight-color: transparent !important;\n ')):(n.setAttribute("aria-label",this.getPrimaryCTAScrollLabel(t)),n.innerHTML='\n <svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round" style="display:block!important;width:22px!important;height:22px!important">\n <path d="m6 9 6 6 6-6"></path>\n </svg>\n ',n.style.cssText="\n all: initial !important;\n position: fixed !important;\n display: none !important;\n align-items: center !important;\n justify-content: center !important;\n box-sizing: border-box !important;\n width: ".concat(O,"px !important;\n height: ").concat(O,"px !important;\n bottom: max(").concat(12,"px, env(safe-area-inset-bottom)) !important;\n border: 0 !important;\n border-radius: 9999px !important;\n background: rgb(30, 41, 59) !important;\n color: white !important;\n box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24) !important;\n cursor: pointer !important;\n touch-action: manipulation !important;\n z-index: 2147483000 !important;\n -webkit-tap-highlight-color: transparent !important;\n ")),n.addEventListener("focus",function(){var t=!0;try{t=n.matches(":focus-visible")}catch(t){}t&&(n.style.setProperty("outline","3px solid rgb(37, 99, 235)","important"),n.style.setProperty("outline-offset","3px","important"))}),n.addEventListener("blur",function(){n.style.removeProperty("outline"),n.style.removeProperty("outline-offset")}),n.addEventListener("click",function(){return e.handlePrimaryCTAButtonClick(t)}),document.body.appendChild(n),t.primaryCTAScrollButton=n,n}},{key:"updatePrimaryCTAScrollButton",value:function(t){var e=t.primaryCTAScrollButton;if(!e)return null;var n=window.visualViewport,r=(null==n?void 0:n.offsetTop)||0,i=(null==n?void 0:n.offsetLeft)||0,a=(null==n?void 0:n.height)||window.innerHeight,o=(null==n?void 0:n.width)||window.innerWidth,s=r+a,u=t.iframe.getBoundingClientRect(),l=null===t.primaryCTAOffsetY?null:u.top+t.primaryCTAOffsetY,d=null===t.primaryCTAActivationOffsetY?null:u.top+t.primaryCTAActivationOffsetY,c=u.bottom>r&&u.top<s,f=null!==l&&l>=s,m=null===d||d<=s-O,h=window.matchMedia("(max-width: ".concat(775,"px)")).matches,p=u.width<=1024;if(t.isExperiencePage){var g=Math.max(u.left+14,i+14),y=Math.min(u.right-14,i+o-14);return!p||!c||null===d||y-g<54||d<=s-54?(e.style.setProperty("display","none","important"),null):(e.style.setProperty("left","".concat(g,"px"),"important"),e.style.setProperty("width","".concat(y-g,"px"),"important"),e.style.setProperty("display","flex","important"),d)}var v=Math.max(u.left,i+12),w=Math.min(u.right-O,i+o-12-O);if(!h||!c||!f||!m||w<v)return e.style.setProperty("display","none","important"),null;var _=u.left+(u.width-O)/2,b=Math.min(Math.max(_,v),w);return e.style.setProperty("left","".concat(b,"px"),"important"),e.style.setProperty("display","flex","important"),l}},{key:"renderExperiencePageBookCTA",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.primaryCTAScrollButton;if(e){var n=this.getExperiencePagePrimaryCTALabel(t);e.setAttribute("aria-label",n),e.innerHTML='\n <span style="all:initial!important;color:inherit!important;font:inherit!important;line-height:inherit!important">'.concat(n,'</span>\n <svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round" style="display:block!important;width:20px!important;height:20px!important;flex:none!important">\n <path d="m6 9 6 6 6-6"></path>\n </svg>\n ')}}},{key:"handlePrimaryCTAButtonClick",value:function(t){var e;t.isExperiencePage?(null===(e=t.primaryCTAScrollButton)||void 0===e||e.blur(),this.scrollToPrimaryCTAActivationTarget(t)):this.scrollToPrimaryCTA(t)}},{key:"scrollToPrimaryCTAActivationTarget",value:function(t){if(null!==t.primaryCTAActivationOffsetY){var e=t.iframe.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop,r=window.visualViewport,i=(null==r?void 0:r.height)||window.innerHeight,a=(null==r?void 0:r.offsetTop)||0,o=e.top+n+t.primaryCTAActivationOffsetY,s=Math.max(0,document.documentElement.scrollHeight-i),u=Math.min(Math.max(0,o-a-12),s),l=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth";try{window.scrollTo({top:u,behavior:l})}catch(t){window.scrollTo(0,u)}}else this.scrollToPrimaryCTA(t)}},{key:"scrollToPrimaryCTA",value:function(t){var e;if(null!==t.primaryCTAOffsetY){var n=t.iframe.getBoundingClientRect(),r=window.pageYOffset||document.documentElement.scrollTop,i=window.visualViewport,a=(null==i?void 0:i.height)||window.innerHeight,o=(null==i?void 0:i.offsetTop)||0,s=n.top+r+t.primaryCTAOffsetY+t.primaryCTAHeight,u=Math.max(0,document.documentElement.scrollHeight-a),l=Math.min(Math.max(0,s-a-o+24),u),d=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth";null===(e=t.primaryCTAScrollButton)||void 0===e||e.blur();try{window.scrollTo({top:l,behavior:d})}catch(t){window.scrollTo(0,l)}}}},{key:"observeForWidgets",value:function(){var t=this;new MutationObserver(function(e){var n,r=!1,i=D(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if("childList"===a.type)for(var o=0;o<a.addedNodes.length;o++){var s,u,l=a.addedNodes[o];if(l instanceof HTMLElement&&(null!==(s=l.classList)&&void 0!==s&&s.contains(C)||null!==(u=l.querySelector)&&void 0!==u&&u.call(l,".".concat(C)))){r=!0;break}}if(r)break}}catch(t){i.e(t)}finally{i.f()}r&&(t.log("Detected new widget elements, scanning..."),t.scanAndCreateWidgets())}).observe(document.body,{childList:!0,subtree:!0})}},{key:"setupMessageListener",value:function(){window.addEventListener("message",this.handleMessage)}},{key:"handleAnalyticsMessage",value:function(t){var e=this,n=this.findTrustedWidgetForEvent(t);!function(t){var e=t.event,n=t.isTrustedSource,r=t.widgetSrc,i=t.log;if(n){var a=g(e.data);a&&"widget"===a.source&&(p(a.eventData,a.dedupeKey)?null==i||i("Pushed analytics event to dataLayer",{dedupeKey:a.dedupeKey,widgetType:a.widgetType,src:r}):null==i||i("Skipped duplicate analytics event",a.dedupeKey))}else null==i||i("Ignored analytics message from untrusted iframe",e.origin)}({event:t,isTrustedSource:Boolean(n),widgetSrc:null==n?void 0:n.src,log:function(){return e.log.apply(e,arguments)}})}},{key:"findTrustedWidgetForEvent",value:function(t){return function(t){var e,n=t.widgets,r=t.event,i=t.getWidgetSrc,a=s(n);try{for(a.s();!(e=a.n()).done;){var o=e.value;if(o.iframe.contentWindow===r.source){var u=y(i(o));return u&&r.origin===u?o:null}}}catch(t){a.e(t)}finally{a.f()}return null}({widgets:this.widgets,event:t,getWidgetSrc:function(t){return t.src}})}},{key:"setupResizeObserver",value:function(){var t=this;this.resizeObserver=new ResizeObserver(function(e){var n,r=D(e);try{for(r.s();!(n=r.n()).done;){var i,a=n.value.target,o=D(t.widgets);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.element===a){var u;null===(u=s.iframe.contentWindow)||void 0===u||u.postMessage({type:"HOLIDOIT_REQUEST_HEIGHT"},"*");break}}}catch(t){o.e(t)}finally{o.f()}}}catch(t){r.e(t)}finally{r.f()}})}},{key:"changeLanguage",value:function(t){this.log("Changing language to",t),this.config&&(this.config.language=t);var e,n=D(this.widgets);try{for(n.s();!(e=n.n()).done;){var r,i=e.value;i.language=t,i.isExperiencePage?this.renderExperiencePageBookCTA(i):null===(r=i.primaryCTAScrollButton)||void 0===r||r.setAttribute("aria-label",this.getPrimaryCTAScrollLabel(i))}}catch(t){n.e(t)}finally{n.f()}this.schedulePrimaryCTAUpdate();var a,o=D(this.widgets);try{for(o.s();!(a=o.n()).done;){var s;null===(s=a.value.iframe.contentWindow)||void 0===s||s.postMessage({type:"HOLIDOIT_CHANGE_LANGUAGE",payload:{language:t}},"*")}}catch(t){o.e(t)}finally{o.f()}}},{key:"destroy",value:function(){var t,e,n;this.log("Destroying widgets"),window.removeEventListener("message",this.handleMessage),window.removeEventListener("scroll",this.schedulePrimaryCTAUpdate),window.removeEventListener("resize",this.schedulePrimaryCTAUpdate),null===(t=window.visualViewport)||void 0===t||t.removeEventListener("scroll",this.schedulePrimaryCTAUpdate),null===(e=window.visualViewport)||void 0===e||e.removeEventListener("resize",this.schedulePrimaryCTAUpdate),null!==this.primaryCTAUpdateFrame&&(cancelAnimationFrame(this.primaryCTAUpdateFrame),this.primaryCTAUpdateFrame=null);var r,i=D(this.widgets);try{for(i.s();!(r=i.n()).done;){var a,o=r.value;null===(a=o.primaryCTAScrollButton)||void 0===a||a.remove(),o.iframe.remove(),o.element.dataset.holidoitProcessed="false"}}catch(t){i.e(t)}finally{i.f()}null===(n=this.resizeObserver)||void 0===n||n.disconnect(),this.resizeObserver=null,this.widgets=[],this.config=null,this.isInitialized=!1}},{key:"log",value:function(){var t,e="undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname);if(null!==(t=this.config)&&void 0!==t&&t.debug||e){for(var n,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];(n=console).log.apply(n,["[HolidoitWidgets]"].concat(i))}}}],e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),H=new Y;if("undefined"!=typeof window){var P=document.currentScript;if(P){var I=new URL(P.src),E=I.searchParams.get("embedId")||P.dataset.embedId;if(E){var W=I.searchParams.get("lang")||P.dataset.language;H.init({embedId:E,language:W,debug:"true"===I.searchParams.get("debug")||"true"===P.dataset.debug,withLogo:"true"===I.searchParams.get("with_logo")||"true"===P.dataset.withLogo,gift:"true"===I.searchParams.get("gift")||"true"===P.dataset.gift})}}window.HolidoitWidgets=H}})(),r})());
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|