PageSourceSearch

https://www.vretreats.com/_next/static/chunks/pages/_app-17cd9141b5c07816.js

js vretreats.com collected 2026-10-03 21:36:28 UTC 33,806 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{7484:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="week",o="month",a="quarter",l="year",s="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|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,d=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},h="en",_={};_[h]={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]||"th")+"]"}};var m="$isDayjsObject",g=function(e){return e instanceof T||!(!e||!e[m])},p=function e(t,n,r){var i;if(!t)return h;if("string"==typeof t){var o=t.toLowerCase();_[o]&&(i=o),n&&(_[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var l=t.name;_[l]=t,i=l}return!r&&i&&(h=i),i||!r&&h},v=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)},y={s:d,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+d(Math.floor(n/60),2,"0")+":"+d(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,o),a=n-i<0,l=t.clone().add(r+(a?-1:1),o);return+(-(r+(n-i)/(a?i-l:l-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:o,y:l,w:i,d:"day",D:s,h:r,m:n,s:t,ms:e,Q:a})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};y.l=p,y.i=g,y.w=function(e,t){return v(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function d(e){this.$L=p(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var h=d.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(y.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(u);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},h.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()},h.$utils=function(){return y},h.isValid=function(){return this.$d.toString()!==c},h.isSame=function(e,t){var n=v(e);return this.startOf(t)<=n&&n<=this.endOf(t)},h.isAfter=function(e,t){return v(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<v(e)},h.$g=function(e,t,n){return y.u(e)?this[t]:this.set(n,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,a){var c=this,u=!!y.u(a)||a,f=y.p(e),d=function(e,t){var n=y.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?n:n.endOf("day")},h=function(e,t){return y.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},_=this.$W,m=this.$M,g=this.$D,p="set"+(this.$u?"UTC":"");switch(f){case l:return u?d(1,0):d(31,11);case o:return u?d(1,m):d(0,m+1);case i:var v=this.$locale().weekStart||0,T=(_<v?_+7:_)-v;return d(u?g-T:g+(6-T),m);case"day":case s:return h(p+"Hours",0);case r:return h(p+"Minutes",1);case n:return h(p+"Seconds",2);case t:return h(p+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(i,a){var c,u=y.p(i),f="set"+(this.$u?"UTC":""),d=((c={}).day=f+"Date",c[s]=f+"Date",c[o]=f+"Month",c[l]=f+"FullYear",c[r]=f+"Hours",c[n]=f+"Minutes",c[t]=f+"Seconds",c[e]=f+"Milliseconds",c)[u],h="day"===u?this.$D+(a-this.$W):a;if(u===o||u===l){var _=this.clone().set(s,1);
1_.$d[d](h),_.init(),this.$d=_.set(s,Math.min(this.$D,_.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[y.p(e)]()},h.add=function(e,a){var s,c=this;e=Number(e);var u=y.p(a),f=function(t){var n=v(c);return y.w(n.date(n.date()+Math.round(t*e)),c)};if(u===o)return this.set(o,this.$M+e);if(u===l)return this.set(l,this.$y+e);if("day"===u)return f(1);if(u===i)return f(7);var d=((s={})[n]=6e4,s[r]=36e5,s[t]=1e3,s)[u]||1,h=this.$d.getTime()+e*d;return y.w(h,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=y.z(this),o=this.$H,a=this.$m,l=this.$M,s=n.weekdays,u=n.months,d=n.meridiem,h=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},_=function(e){return y.s(o%12||12,e,"0")},m=d||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(f,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return y.s(t.$y,4,"0");case"M":return l+1;case"MM":return y.s(l+1,2,"0");case"MMM":return h(n.monthsShort,l,u,3);case"MMMM":return h(u,l);case"D":return t.$D;case"DD":return y.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(n.weekdaysMin,t.$W,s,2);case"ddd":return h(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(o);case"HH":return y.s(o,2,"0");case"h":return _(1);case"hh":return _(2);case"a":return m(o,a,!0);case"A":return m(o,a,!1);case"m":return String(a);case"mm":return y.s(a,2,"0");case"s":return String(t.$s);case"ss":return y.s(t.$s,2,"0");case"SSS":return y.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(e,s,c){var u,f=this,d=y.p(s),h=v(e),_=(h.utcOffset()-this.utcOffset())*6e4,m=this-h,g=function(){return y.m(f,h)};switch(d){case l:u=g()/12;break;case o:u=g();break;case a:u=g()/3;break;case i:u=(m-_)/6048e5;break;case"day":u=(m-_)/864e5;break;case r:u=m/36e5;break;case n:u=m/6e4;break;case t:u=m/1e3;break;default:u=m}return c?u:y.a(u)},h.daysInMonth=function(){return this.endOf(o).$D},h.$locale=function(){return _[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=p(e,t,!0);return r&&(n.$L=r),n},h.clone=function(){return y.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}(),U=T.prototype;return v.prototype=U,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",o],["$y",l],["$D",s]].forEach(function(e){U[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),v.extend=function(e,t){return e.$i||(e(t,T,v),e.$i=!0),v},v.locale=p,v.isDayjs=g,v.unix=function(e){return v(1e3*e)},v.en=_[h],v.Ls=_,v.p={},v},e.exports=t()},9387:function(e){var t;t=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var o,a=function(e,n,r){void 0===r&&(r={});var i,o,a,l,s=new Date(e);return(void 0===(i=r)&&(i={}),(l=t[a=n+"|"+(o=i.timeZoneName||"short")])||(l=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:o}),t[a]=l),l).formatToParts(s)},l=function(t,n){for(var r=a(t,n),o=[],l=0;l<r.length;l+=1){var s=r[l],c=s.type,u=s.value,f=e[c];f>=0&&(o[f]=parseInt(u,10))}var d=o[3],h=o[0]+"-"+o[1]+"-"+o[2]+" "+(24===d?0:d)+":"+o[4]+":"+o[5]+":000",_=+t;return(i.utc(h).valueOf()-(_-=_%1e3))/6e4},s=r.prototype;s.tz=function(e,t){void 0===e&&(e=o);var n,r=this.utcOffset(),a=this.toDate(),l=a.toLocaleString("en-US",{timeZone:e}),s=Math.round((a-new Date(l))/1e3/60),c=-(15*Math.round(a.getTimezoneOffset()/15))-s;if(Number(c)){if(n=i(l,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),t){var u=n.utcOffset();n=n.add(r-u,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},s.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 c=s.startOf;s.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,a=n||t||o,s=l(+i(),a);if("string"!=typeof e)return i(e).tz(a);var c=function(e,t,n){var r=e-60*t*1e3,i=l(r,n);if(t===i)return[r,t];var o=l(r-=60*(i-t)*1e3,n);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(e,r).valueOf(),s,a),u=c[0],f=c[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){o=e}}},e.exports=t()},178:function(e){var t;t=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new i(t)},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var 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 s=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 s.call(this)};var c=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r)))return this;var a=16>=Math.abs(r)?60*r:r,l=this;if(i)return l.$offset=a,l.$u=0===r,l;if(0!==r){var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(l=this.local().add(a+s,e)).$offset=a,l.$x.$localOffset=s}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?o(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 r=this.local(),i=o(e).local();return d.call(r,i,t,n)}}},e.exports=t()},1752:function(e,t,n){e.exports=n(7500)},1118:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(4926)}])},1079:function(e,t,n){"use strict";n.d(t,{G6:function(){return u},P$:function(){return f},Sc:function(){return s},f3:function(){return l},wY:function(){return c}});var r=n(7849);n(1632);var i=n(1752);let{publicRuntimeConfig:o}=n.n(i)()(),{processEnv:a}=o;function l(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=location.origin;if(console.log("getImageBase - NODE_ENV:",a.NODE_ENV),console.log("getImageBase - origine:",e),console.log("getImageBase - inMagnoliaEnv:",r.T.inMagnoliaEnv()),"development"===a.NODE_ENV)return console.log("getImageBase - Utilizzo percorso development con DAM PUBBLICO"),a.NEXT_PUBLIC_MGNL_DAM_RAW_PUBLIC;if(r.T.inMagnoliaEnv())return console.log("getImageBase - Utilizzo ambiente Magnolia con DAM AUTHOR"),a.NEXT_PUBLIC_MGNL_DAM_RAW_AUTHOR;let t=e===a.NEXT_PUBLIC_FE_HOST_AUTHOR||e===a.NEXT_PUBLIC_FE_URL_AUTHOR?a.NEXT_PUBLIC_MGNL_DAM_RAW_AUTHOR:a.NEXT_PUBLIC_MGNL_DAM_RAW_PUBLIC;return console.log("getImageBase - Risultato finale:",t),t}function s(e,t){if(!e||!t||"undefined"===e)return console.warn("buildImageUrl - link o imageBase mancanti o undefined",{link:e,imageBase:t}),null;console.log("buildImageUrl - link:",e),console.log("buildImageUrl - imageBase:",t);let n="";if("development"===a.NODE_ENV)n="".concat(a.NEXT_PUBLIC_MGNL_DAM_RAW_PUBLIC,"/dam");else{let e=window.location.origin;if(r.T.inMagnoliaEnv())n="".concat(a.NEXT_PUBLIC_MGNL_DAM_RAW_AUTHOR,"/author/dam");else switch(e){case a.NEXT_PUBLIC_FE_HOST:n="".concat(a.NEXT_PUBLIC_MGNL_DAM_RAW_PUBLIC,"/dam");break;case a.NEXT_PUBLIC_FE_HOST_AUTHOR:case a.NEXT_PUBLIC_FE_URL_AUTHOR:n="".concat(a.NEXT_PUBLIC_MGNL_DAM_RAW_AUTHOR,"/author/dam");break;case a.NEXT_PUBLIC_MGNL_DAM_RAW_PUBLIC:default:n="".concat(a.NEXT_PUBLIC_MGNL_DAM_RAW_PUBLIC,"/dam")}}let i="";if(e.includes("/dam/")){let t=e.indexOf("/dam/")+5;i=e.substring(t)}else i=e.startsWith("/")&&e.startsWith("/")?e.substring(1):e;console.log("buildImageUrl - damBase:",n),console.log("buildImageUrl - imagePath:",i);let o="".concat(n,"/").concat(i).trim().replace(/\s+/g,"%20");if(!(n.includes("alpitour-magnolia-helm-author")||n.includes("magnolia.alpitour.it")&&n.includes("/author/"))&&(n.includes("static.vretreats.com")||n.includes("alpitour-magnolia-helm")||n.includes("magnolia.alpitour.it"))){let e=o.includes("?")?"&":"?";o="".concat(o).concat(e,"quality=70&format=webp")}return console.log("buildImageUrl - URL finale:",o),o}function c(){let e="";if("development"===a.NODE_ENV)e="".concat(a.NEXT_PUBLIC_MGNL_DAM_RAW_PUBLIC,"/dam");else{let t=location.origin;if(r.T.inMagnoliaEnv())e="".concat(a.NEXT_PUBLIC_MGNL_DAM_RAW_AUTHOR,"/author/dam");else switch(t){case a.NEXT_PUBLIC_FE_HOST:e="".concat(a.NEXT_PUBLIC_MGNL_DAM_RAW_PUBLIC,"/dam");break;case a.NEXT_PUBLIC_FE_HOST_AUTHOR:case a.NEXT_PUBLIC_FE_URL_AUTHOR:e="".concat(a.NEXT_PUBLIC_MGNL_DAM_RAW_AUTHOR,"/author/dam");break;case a.NEXT_PUBLIC_MGNL_DAM_RAW_PUBLIC:default:e="".concat(a.NEXT_PUBLIC_MGNL_DAM_RAW_PUBLIC,"/dam")}}return e}function u(e,t){let n="";if("development"===a.NODE_ENV)n=a.NEXT_PUBLIC_MGNL_BASE_AUTHOR||"";else if(e){var i,o,l,s;let t=null==e?void 0:null===(o=e.req)||void 0===o?void 0:null===(i=o.headers)||void 0===i?void 0:i.host;if("undefined"!==t){let r=null===(s=a.NEXT_PUBLIC_FE_HOST_AUTHOR)||void 0===s?void 0:null===(l=s.split("//"))||void 0===l?void 0:l[1];n=void 0!==(null==e?void 0:e.query.mgnlPreview)||void 0!==(null==e?void 0:e.query.mgnlPreviewAsVisitor)||void 0!==(null==e?void 0:e.query.null)||t===r?a.NEXT_PUBLIC_MGNL_BASE_AUTHOR||"":a.NEXT_PUBLIC_MGNL_BASE_PUBLIC||""}else n=e.isMagnoliaEdit?a.NEXT_PUBLIC_MGNL_BASE_AUTHOR||"":a.NEXT_PUBLIC_MGNL_BASE_PUBLIC||""}else{let e=location.origin;if(r.T.inMagnoliaEnv())n=t?a.NEXT_PUBLIC_MGNL_BASE_AUTHOR:a.NEXT_PUBLIC_MGNL_BASE_LINK_AUTHOR;else switch(e){case a.NEXT_PUBLIC_FE_HOST:n=t?a.NEXT_PUBLIC_MGNL_BASE_PUBLIC:a.NEXT_PUBLIC_MGNL_BASE_LINK_PUBLIC;break;case a.NEXT_PUBLIC_FE_URL_AUTHOR:n=a.NEXT_PUBLIC_MGNL_BASE_AUTHOR;break;case a.NEXT_PUBLIC_FE_HOST_AUTHOR:case a.NEXT_PUBLIC_FE_HOST_AUTHOR_HTTPS:n=t?a.NEXT_PUBLIC_MGNL_BASE_AUTHOR:a.NEXT_PUBLIC_MGNL_BASE_LINK_AUTHOR;break;case a.NEXT_PUBLIC_MGNL_DAM_RAW_PUBLIC:default:n=a.NEXT_PUBLIC_MGNL_BASE_PUBLIC}}return n}function f(e){return"development"===a.NODE_ENV?a.NEXT_PUBLIC_FE_HOST_PUBLIC||"":e.includes("/author")?a.NEXT_PUBLIC_FE_HOST_AUTHOR:a.NEXT_PUBLIC_FE_HOST}},7849:function(e,t,n){"use strict";n.d(t,{T:function(){return h}});var r=n(4887),i=n(1752);let{publicRuntimeConfig:o}=n.n(i)()(),{processEnv:a}=o,l="mgnlPreview",s="mgnlPreviewAsVisitor",c=()=>
1{if(window.location.search.includes(l)){let e=r.Z.parse(decodeURIComponent(window.location.search));return(null==e?void 0:e[l])==="false"}return!1},u=()=>{if(window.location.search.includes(l)){let e=r.Z.parse(decodeURIComponent(window.location.search));return(null==e?void 0:e[l])==="true"}return!1},f=()=>{if(window.location.search.includes(s)){let e=r.Z.parse(decodeURIComponent(window.location.search));return(null==e?void 0:e[s])==="true"}return!1},d=()=>location.origin===a.NEXT_PUBLIC_FE_HOST_AUTHOR||location.origin===a.NEXT_PUBLIC_FE_URL_AUTHOR,h={inEditor:c,inEditorPreview:u,inMagnoliaEnv:()=>c()||u()||f()||d()}},1632:function(e,t,n){"use strict";var r=n(7484),i=n.n(r),o=n(178),a=n.n(o),l=n(9387),s=n.n(l),c=n(1752);let{publicRuntimeConfig:u}=n.n(c)()(),{processEnv:f}=u;i().extend(a()),i().extend(s())},5461:function(e,t,n){"use strict";n.d(t,{H8:function(){return c},M6:function(){return m},Rg:function(){return _},Zb:function(){return g}});var r=n(5893);n(7849),n(7294);var i=n(1752),o=n.n(i),a=n(1079);let{publicRuntimeConfig:l}=o()(),{processEnv:s}=l,c=e=>{let t=[];return e&&e["@nodes"]&&e["@nodes"].length>0&&e["@nodes"].map(n=>{e[n]&&t.push(e[n])}),t},u=e=>{if("undefined"==typeof document)return"";for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return""},f=e=>u("id_token"),d=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e={};return e.refresh_token=u("refresh_token"),e.access_token=u("access_token"),e.id_token=u("id_token"),e},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=t&&Object.keys(t).length>0,r=e;if("string"==typeof r&&(n||f())){var i,o;let{refresh_token:e,access_token:a,id_token:l}=n?t:d();r=null==r?void 0:null===(o=r.replace("{{idToken}}",l))||void 0===o?void 0:null===(i=o.replace("{{accessToken}}",a))||void 0===i?void 0:i.replace("{{refreshToken}}",e)}return r},_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=(null==e?void 0:e.linkTarget)&&e[e.linkTarget]||null;n=e.anchor?"".concat(n).concat(e.anchor,"-id"):n;let r="true"===e.openNewTab||!0===e.openNewTab?"_blank":"_self";if((null==e?void 0:e.linkTarget)==="internal"&&n){let e=(0,a.G6)(t);n.includes(e)||(e=s.NEXT_PUBLIC_MGNL_BASE_LINK_PUBLIC,n.includes(e)||(e=s.NEXT_PUBLIC_MGNL_BASE_LINK_AUTHOR)),(".html"===(n=(n=(n=n.replace("".concat(e,"/vretreats-home"),"")).replace("".concat(e,"/fallback/vretreats-home"),"")).replace("".concat(e,"/fallback"),""))||""==n)&&(n="/"),n=n.replace(".html","")}return(null==e?void 0:e.linkTarget)==="download"&&(null==e?void 0:e.select)&&(n=null==(n=null==(n=null==e?void 0:e.select["@link"])?void 0:n.replace("/vretreats-home",""))?void 0:n.replace("/vretreats-home/vretreats-home","")),(null==e?void 0:e.linkTarget)==="telephoneLink"&&(n="tel:".concat(null==e?void 0:e.telephone)),(null==e?void 0:e.linkTarget)==="linkWhatsapp"&&(n="https://api.whatsapp.com/send?phone=".concat(null==e?void 0:e.telephoneNumber)),(null==e?void 0:e.linkTarget)==="external"&&n&&(n=h(n)),(null==e?void 0:e.linkTarget)==="tooltip"?null==e?void 0:e.text:{href:n,target:r,type:null==e?void 0:e.linkTarget}},m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments.length>1&&arguments[1];let t=(null==e?void 0:e.linkTarget)&&e[e.linkTarget]||null;t=e.anchor?"".concat(t).concat(e.anchor,"-id"):t;let n="true"===e.openNewTab||!0===e.openNewTab?"_blank":"_self";if((null==e?void 0:e.linkTarget)==="internal"&&t){console.log("[getCardPanelLink] DEBUG - href originale:",t),console.log("[getCardPanelLink] DEBUG - typeof window:","client");let e=t.replace(/https?:\/\/[^\/]+/,"");console.log("[getCardPanelLink] DEBUG - dopo rimozione dominio:",e);let n=e.replace(/\/author\//,"/");console.log("[getCardPanelLink] DEBUG - dopo rimozione /author/:",n);let r=n.replace(/\/vretreats-home/,"");console.log("[getCardPanelLink] DEBUG - dopo rimozione /vretreats-home:",r);let i=r.replace(/\/fallback/,"");console.log("[getCardPanelLink] DEBUG - dopo rimozione /fallback:",i),(".html"===i||""==i)&&(i="/");let o=i.replace(".html","");console.log("[getCardPanelLink] DEBUG - dopo rimozione .html:",o);let a="";console.log("[getCardPanelLink] DEBUG - frontendDomain scelto:",a=window.location.origin.includes("author")?window.location.origin.startsWith("https://")?s.NEXT_PUBLIC_FE_HOST_AUTHOR_HTTPS:s.NEXT_PUBLIC_FE_HOST_AUTHOR:s.NEXT_PUBLIC_FE_HOST),console.log("[getCardPanelLink] DEBUG - path finale da aggiungere:",o),console.log("[getCardPanelLink] href finale con dominio corretto:",t="".concat(a).concat(o))}return(null==e?void 0:e.linkTarget)==="download"&&(null==e?void 0:e.select)&&(t=null==(t=null==(t=null==e?void 0:e.select["@link"])?void 0:t.replace("/vretreats-home",""))?void 0:t.replace("/vretreats-home/vretreats-home","")),(null==e?void 0:e.linkTarget)==="telephoneLink"&&(t="tel:".concat(null==e?void 0:e.telephone)),(null==e?void 0:e.linkTarget)==="linkWhatsapp"&&(t="https://api.whatsapp.com/se
1nd?phone=".concat(null==e?void 0:e.telephoneNumber)),(null==e?void 0:e.linkTarget)==="external"&&t&&(t=h(t)),(null==e?void 0:e.linkTarget)==="tooltip"?null==e?void 0:e.text:{href:t,target:n,type:null==e?void 0:e.linkTarget}},g=e=>{let{path:t="",tileColor:n="#2d89ef"}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"".concat(t,"/apple-touch-icon.png")}),(0,r.jsx)("link",{rel:"icon",type:"image/x-icon",href:"".concat(t,"/favicon.ico")}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"".concat(t,"/favicon-32x32.png")}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"".concat(t,"/favicon-16x16.png")}),(0,r.jsx)("link",{rel:"manifest",href:"".concat(t,"/site.webmanifest")}),(0,r.jsx)("meta",{name:"msapplication-TileColor",content:n}),(0,r.jsx)("meta",{name:"theme-color",content:"#ffffff"})]})}},4926:function(e,t,n){"use strict";n.r(t);var r=n(5893);n(3434);var i=n(9629),o=n.n(i),a=n(174),l=n.n(a),s=n(697),c=n.n(s),u=n(9008),f=n.n(u),d=n(4298),h=n.n(d);n(1632);var _=n(7294),m=n(7849),g=n(5461),p=n(8636),v=n(1079),y=n(1752);let{publicRuntimeConfig:T}=n.n(y)()(),{processEnv:U}=T;t.default=function(e){var t,n,i,a,s,u,d,y,T,N;let{Component:L,pageProps:E}=e,[$,O]=(0,_.useState)(!1),[C,k]=(0,_.useState)(!1),[M,b]=(0,_.useState)(""),[I,S]=(0,_.useState)(""),[B,A]=(0,_.useState)("");m.T.inMagnoliaEnv();let{page:w={},children:P,authoring:D,pagePath:x,firstBreakpoint:j,pageLang:H,allLanguagesUrl:R=[],entities:F=[],destinations:X=[]}=E;console.log(E,"pageProps");let[G,z]=(0,_.useState)(H||"it"),W=(0,v.f3)((null===(n=E.req)||void 0===n?void 0:null===(t=n.headers)||void 0===t?void 0:t.host)||"");W?console.log("_app.js - imageBase impostato correttamente:",W):console.warn("_app.js - imageBase \xe8 vuoto!",{host:null===(T=E.req)||void 0===T?void 0:null===(y=T.headers)||void 0===y?void 0:y.host,pagePath:x,pageLang:H,isServer:!1});let Y=null===(i=E.page)||void 0===i?void 0:i.langCode;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(f(),{children:[(0,r.jsx)("title",{children:w.title}),(0,r.jsx)("meta",{name:"description",content:null===(N=w.SEO)||void 0===N?void 0:N.metadescription}),(0,r.jsx)("meta",{name:"keywords",content:(null===(a=w.SEO)||void 0===a?void 0:a.keywords)||""}),(0,r.jsx)("meta",{name:"robots",content:null===(s=w.SEO)||void 0===s?void 0:s.index}),(0,r.jsx)("meta",{name:"og:locale",content:Y}),(0,g.Zb)({path:""}),null==R?void 0:null===(u=R.results)||void 0===u?void 0:u.map(e=>{let t=null==e?void 0:e.split("/")[1];if(Y)return(0,r.jsx)(r.Fragment,{children:("en"==t?t===Y:"it"===Y)&&(0,r.jsx)("link",{rel:"canonical",href:"".concat(U.NEXT_PUBLIC_FE_HOST).concat(e,"/")})})}),null==R?void 0:null===(d=R.results)||void 0===d?void 0:d.map(e=>{let t="en"==(null==e?void 0:e.split("/")[1]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("link",{rel:"alternate",hreflang:t?"en":"it",href:"".concat(U.NEXT_PUBLIC_FE_HOST).concat(e,"/")}),!t&&(0,r.jsx)("link",{rel:"alternate",hreflang:"x-default",href:"".concat(U.NEXT_PUBLIC_FE_HOST).concat(e,"/")})]})}),(0,r.jsx)("meta",{name:"og:title",content:w.title}),(0,r.jsx)("meta",{property:"og:image",content:""})]}),(0,r.jsx)("div",{className:"".concat(o().className," ").concat(o().variable," ").concat(l().variable," ").concat(c().variable),children:(0,r.jsx)(p.T.Provider,{value:{page:w,pageLang:H,allLanguagesUrl:R,currentLang:G,setCurrentLang:z,entities:F,destinations:X,imageBase:W},children:(0,r.jsx)(L,{...E})})}),(0,r.jsx)(h(),{id:"gtm-script",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;
1j.src=\n    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n    })(window,document,'script','dataLayer','GTM-N9FJN3V');"}}),(0,r.jsx)(h(),{id:"Cookiebot",src:"https://consent.cookiebot.com/uc.js","data-cbid":"6bd30ada-e2e0-4449-a2d0-6689f80eaa65","data-blockingmode":"auto",strategy:"lazyOnload",async:!0}),(0,r.jsx)(h(),{id:"secondary-tracking",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:"\n           \n            window.addEventListener('load', function() {\n           \n              console.log('Secondary tracking scripts loaded after page load');\n            });\n          "}}),(0,r.jsx)(h(),{id:"material-icons-font",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:"\n            const link = document.createElement('link');\n            link.rel = 'stylesheet';\n            link.href = 'https://fonts.googleapis.com/icon?family=Material+Icons';\n            document.head.appendChild(link);\n          "}})]})}},8636:function(e,t,n){"use strict";n.d(t,{T:function(){return r}}),n(5893);let r=(0,n(7294).createContext)({currentLang:"it",setCurrentLang:()=>{},allLanguagesUrl:[],page:{},destinations:[],entities:[],imageBase:"",magnoliaContext:{}})},3434:function(){},9629:function(e){e.exports={style:{fontFamily:"'__Montserrat_f56828', '__Montserrat_Fallback_f56828'",fontStyle:"normal"},className:"__className_f56828",variable:"__variable_f56828"}},697:function(e){e.exports={style:{fontFamily:"'__anstery_c3b446', '__anstery_Fallback_c3b446'",fontWeight:400,fontStyle:"normal"},className:"__className_c3b446",variable:"__variable_c3b446"}},174:function(e){e.exports={style:{fontFamily:"'__butler_acd88c', '__butler_Fallback_acd88c'"},className:"__className_acd88c",variable:"__variable_acd88c"}},9008:function(e,t,n){e.exports=n(3867)},4298:function(e,t,n){e.exports=n(3381)},4887:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r={};n.r(r),n.d(r,{exclude:function(){return N},extract:function(){return g},parse:function(){return p},parseUrl:function(){return y},pick:function(){return U},stringify:function(){return v},stringifyUrl:function(){return T}});let i="%[a-f0-9]{2}",o=RegExp("("+i+")|([^%]+?)","gi"),a=RegExp("("+i+")+","gi");function l(e,t){if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];let n=e.indexOf(t);return -1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}let s=e=>null==e,c=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),u=Symbol("encodeFragmentIdentifier");function f(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function d(e,t){return t.encode?t.strict?c(e):encodeURIComponent(e):e}function h(e,t){return t.decode?function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){let t={"%FE%FF":"��","%FF%FE":"��"},n=a.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{let e=function(e){try{return decodeURIComponent(e)}catch{let t=e.match(o)||[];for(let n=1;n<t.length;n++)t=(e=(function e(t,n){try{return[decodeURIComponent(t.join(""))]}catch{}if(1===t.length)return t;n=n||1;let r=t.slice(0,n),i=t.slice(n);return Array.prototype.concat.call([],e(r),e(i))})(t,n).join("")).match(o)||[];return e}}(n[0]);e!==n[0]&&(t[n[0]]=e)}n=a.exec(e)}for(let n of(t["%C2"]="�",Object.keys(t)))e=e.replace(RegExp(n,"g"),t[n]);return e}(e)}}(e):e}function _(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function m(e,t,n){return"string"===n&&"string"==typeof e?e:"function"==typeof n&&"string"==typeof e?n(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())?"true"===e.toLowerCase():("number"!==n||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim())&&(!t.parseNumbers||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim())?e:Number(e)}function g(e){let t=(e=_(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function p(e,t){f((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t}).arrayFormatSeparator);let n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),!t){r[e]=n;return}void 0===r[e]&&(r[e]={}),r[e][t[1]]=n};case"bracket":return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),!t){r[e]=n;return}if(void 0===r[e]){r[e]=[n];return}r[e]=[...r[e],n]};case"colon-list-separator":return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){r[e]=n;return}if(void 0===r[e]){r[e]=[n];return}r[e]=[...r[e],n]};case"comma":case"separator":return(t,n,r)=>{let i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&h(n,e).includes(e.arrayFormatSeparator);n=o?h(n,e):n;let a=i||o?n.split(e.arrayFormatSeparator).map(t=>h(t,e)):null===n?n:h(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!i){r[t]=n?h(n,e):n;return}let o=null===n?[]:h(n,e).split(e.arrayFormatSeparator);if(void 0===r[t]){r[t]=o;return}
1r[t]=[...r[t],...o]};default:return(e,t,n)=>{if(void 0===n[e]){n[e]=t;return}n[e]=[...[n[e]].flat(),t]}}}(t),r=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return r;for(let i of e.split("&")){if(""===i)continue;let e=t.decode?i.replaceAll("+"," "):i,[o,a]=l(e,"=");void 0===o&&(o=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:h(a,t),n(h(o,t),a,r)}for(let[e,n]of Object.entries(r))if("object"==typeof n&&null!==n&&"string"!==t.types[e])for(let[r,i]of Object.entries(n)){let o=t.types[e]?t.types[e].replace("[]",""):void 0;n[r]=m(i,t,o)}else"object"==typeof n&&null!==n&&"string"===t.types[e]?r[e]=Object.values(n).join(t.arrayFormatSeparator):r[e]=m(n,t,t.types[e]);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return e[t]=n&&"object"==typeof n&&!Array.isArray(n)?function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):n,e},Object.create(null))}function v(e,t){if(!e)return"";f((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);let n=n=>t.skipNull&&s(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{let i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[d(t,e),"[",i,"]"].join("")]:[...n,[d(t,e),"[",d(i,e),"]=",d(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[d(t,e),"[]"].join("")]:[...n,[d(t,e),"[]=",d(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[d(t,e),":list="].join("")]:[...n,[d(t,e),":list=",d(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length)?[[d(n,e),t,d(i,e)].join("")]:[[r,d(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,d(t,e)]:[...n,[d(t,e),"=",d(r,e)].join("")]}}(t),i={};for(let[t,r]of Object.entries(e))n(t)||(i[t]=r);let o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(n=>{let i=e[n];return void 0===i?"":null===i?d(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?d(n,t)+"[]":i.reduce(r(n),[]).join("&"):d(n,t)+"="+d(i,t)}).filter(e=>e.length>0).join("&")}function y(e,t){t={decode:!0,...t};let[n,r]=l(e,"#");return void 0===n&&(n=e),{url:n?.split("?")?.[0]??"",query:p(g(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:h(r,t)}:{}}}function T(e,t){t={encode:!0,strict:!0,[u]:!0,...t};let n=_(e.url).split("?")[0]||"",r=v({...p(g(e.url),{sort:!1}),...e.query},t);r&&=`?${r}`;let i=function(e){let t="",n=e.indexOf("#");return -1!==n&&(t=e.slice(n)),t}(e.url);if("string"==typeof e.fragmentIdentifier){let r=new URL(n);r.hash=e.fragmentIdentifier,i=t[u]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${i}`}function U(e,t,n){let{url:r,query:i,fragmentIdentifier:o}=y(e,n={parseFragmentIdentifier:!0,[u]:!1,...n});return T({url:r,query:function(e,t){let n={};if(Array.isArray(t))for(let r of t){let t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){let o=e[r];t(r,o,e)&&Object.defineProperty(n,r,i)}}return n}(i,t),fragmentIdentifier:o},n)}function N(e,t,n){return U(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}var L=r}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(1118),t(3079)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.