hubs-travel-js 0.0.35 → 0.0.37

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.
@@ -1,2 +1,2 @@
1
- (()=>{var h=(t,e)=>()=>(t&&(e=t(t=0)),e);var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);function l(){let t=document.querySelectorAll("[data-target-destination]"),e=document.querySelectorAll("[data-faq-destination]");function f(n){e.forEach(a=>{let i=a.getAttribute("data-faq-destination")===n;a.style.display=i?"block":"none"})}t.forEach(n=>{n.addEventListener("click",()=>{let a=n.getAttribute("data-target-destination");t.forEach(c=>{let o=c.querySelector("a");o&&o.classList.remove("active")});let i=n.querySelector("a");i&&i.classList.add("active"),f(a),document.querySelectorAll(".faq-list-wrapper").forEach(c=>{let o=Array.from(c.children).filter(s=>s.hasAttribute("data-faq-destination")),u=o.length>0&&o.every(s=>s.style.display==="none"),r=c.closest(".section");r&&(r.style.display=u?"none":"")})})}),t.length>0&&t[0].click()}var d=h(()=>{});var q=y(()=>{d();document.addEventListener("DOMContentLoaded",function(){l()})});q();})();
1
+ (()=>{var h=(t,e)=>()=>(t&&(e=t(t=0)),e);var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);function d(){let t=document.querySelectorAll("[data-target-destination]"),e=document.querySelectorAll("[data-faq-destination]");function f(n){e.forEach(a=>{let i=a.getAttribute("data-faq-destination")===n||a.getAttribute("data-faq-destination")==="";a.style.display=i?"block":"none"})}t.forEach(n=>{n.addEventListener("click",()=>{let a=n.getAttribute("data-target-destination");t.forEach(c=>{let o=c.querySelector("a");o&&o.classList.remove("active")});let i=n.querySelector("a");i&&i.classList.add("active"),f(a),document.querySelectorAll(".faq-list-wrapper").forEach(c=>{let o=Array.from(c.children).filter(s=>s.hasAttribute("data-faq-destination")),u=o.length>0&&o.every(s=>s.style.display==="none"),r=c.closest(".section");r&&(r.style.display=u?"none":"")})})}),t.length>0&&t[0].click()}var l=h(()=>{});var q=y(()=>{l();document.addEventListener("DOMContentLoaded",function(){d()})});q();})();
2
2
  //# sourceMappingURL=bundle-faqs.min.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../pages/faqs/faq-tabs.js", "../pages/faqs/index.js"],
4
- "sourcesContent": ["export function initFaqTabs () {\n const tabs = document.querySelectorAll(\"[data-target-destination]\");\n const faqs = document.querySelectorAll(\"[data-faq-destination]\");\n\n function showFAQsFor(destinationId) {\n faqs.forEach(faq => {\n const matchesDestination = faq.getAttribute(\"data-faq-destination\") === destinationId;\n faq.style.display = matchesDestination ? \"block\" : \"none\";\n });\n }\n\n tabs.forEach(tab => {\n tab.addEventListener(\"click\", () => {\n const selectedId = tab.getAttribute(\"data-target-destination\");\n\n // UI update for active tab (on anchor child)\n tabs.forEach(t => {\n const anchor = t.querySelector(\"a\");\n if (anchor) anchor.classList.remove(\"active\");\n });\n\n const currentAnchor = tab.querySelector(\"a\");\n if (currentAnchor) currentAnchor.classList.add(\"active\");\n\n showFAQsFor(selectedId);\n\n // Show/hide \"no FAQs\" message if all children are hidden\n document.querySelectorAll('.faq-list-wrapper').forEach(wrapper => {\n const children = Array.from(wrapper.children).filter(child => child.hasAttribute('data-faq-destination'));\n const allHidden = children.length > 0 && children.every(child => child.style.display === 'none');\n const section = wrapper.closest('.section');\n if (section) {\n section.style.display = allHidden ? 'none' : '';\n }\n });\n });\n });\n\n //Trigger first tab\n if (tabs.length > 0) {\n tabs[0].click();\n }\n}", "import { initFaqTabs } from \"./faq-tabs.js\";\n\ndocument.addEventListener('DOMContentLoaded', function() {\n initFaqTabs();\n});"],
5
- "mappings": "uGAAO,SAASA,GAAe,CAC7B,IAAMC,EAAO,SAAS,iBAAiB,2BAA2B,EAC5DC,EAAO,SAAS,iBAAiB,wBAAwB,EAE/D,SAASC,EAAYC,EAAe,CAClCF,EAAK,QAAQG,GAAO,CAClB,IAAMC,EAAqBD,EAAI,aAAa,sBAAsB,IAAMD,EACxEC,EAAI,MAAM,QAAUC,EAAqB,QAAU,MACrD,CAAC,CACH,CAEAL,EAAK,QAAQM,GAAO,CAClBA,EAAI,iBAAiB,QAAS,IAAM,CAClC,IAAMC,EAAaD,EAAI,aAAa,yBAAyB,EAG7DN,EAAK,QAAQQ,GAAK,CAChB,IAAMC,EAASD,EAAE,cAAc,GAAG,EAC9BC,GAAQA,EAAO,UAAU,OAAO,QAAQ,CAC9C,CAAC,EAED,IAAMC,EAAgBJ,EAAI,cAAc,GAAG,EACvCI,GAAeA,EAAc,UAAU,IAAI,QAAQ,EAEvDR,EAAYK,CAAU,EAGtB,SAAS,iBAAiB,mBAAmB,EAAE,QAAQI,GAAW,CAChE,IAAMC,EAAW,MAAM,KAAKD,EAAQ,QAAQ,EAAE,OAAOE,GAASA,EAAM,aAAa,sBAAsB,CAAC,EAClGC,EAAYF,EAAS,OAAS,GAAKA,EAAS,MAAMC,GAASA,EAAM,MAAM,UAAY,MAAM,EACzFE,EAAUJ,EAAQ,QAAQ,UAAU,EACtCI,IACFA,EAAQ,MAAM,QAAUD,EAAY,OAAS,GAEjD,CAAC,CACH,CAAC,CACH,CAAC,EAGGd,EAAK,OAAS,GAChBA,EAAK,CAAC,EAAE,MAAM,CAElB,CA1CA,IAAAgB,EAAAC,EAAA,QCAA,IAAAC,EAAAC,EAAA,KAAAC,IAEA,SAAS,iBAAiB,mBAAoB,UAAW,CACvDC,EAAY,CACd,CAAC",
4
+ "sourcesContent": ["export function initFaqTabs () {\n const tabs = document.querySelectorAll(\"[data-target-destination]\");\n const faqs = document.querySelectorAll(\"[data-faq-destination]\");\n\n function showFAQsFor(destinationId) {\n faqs.forEach(faq => {\n const matchesDestination = faq.getAttribute(\"data-faq-destination\") === destinationId || faq.getAttribute(\"data-faq-destination\") === \"\";\n faq.style.display = matchesDestination ? \"block\" : \"none\";\n });\n }\n\n tabs.forEach(tab => {\n tab.addEventListener(\"click\", () => {\n const selectedId = tab.getAttribute(\"data-target-destination\");\n\n // UI update for active tab (on anchor child)\n tabs.forEach(t => {\n const anchor = t.querySelector(\"a\");\n if (anchor) anchor.classList.remove(\"active\");\n });\n\n const currentAnchor = tab.querySelector(\"a\");\n if (currentAnchor) currentAnchor.classList.add(\"active\");\n\n showFAQsFor(selectedId);\n\n // Show/hide \"no FAQs\" message if all children are hidden\n document.querySelectorAll('.faq-list-wrapper').forEach(wrapper => {\n const children = Array.from(wrapper.children).filter(child => child.hasAttribute('data-faq-destination'));\n const allHidden = children.length > 0 && children.every(child => child.style.display === 'none');\n const section = wrapper.closest('.section');\n if (section) {\n section.style.display = allHidden ? 'none' : '';\n }\n });\n });\n });\n\n //Trigger first tab\n if (tabs.length > 0) {\n tabs[0].click();\n }\n}", "import { initFaqTabs } from \"./faq-tabs.js\";\n\ndocument.addEventListener('DOMContentLoaded', function() {\n initFaqTabs();\n});"],
5
+ "mappings": "uGAAO,SAASA,GAAe,CAC7B,IAAMC,EAAO,SAAS,iBAAiB,2BAA2B,EAC5DC,EAAO,SAAS,iBAAiB,wBAAwB,EAE/D,SAASC,EAAYC,EAAe,CAClCF,EAAK,QAAQG,GAAO,CAClB,IAAMC,EAAqBD,EAAI,aAAa,sBAAsB,IAAMD,GAAiBC,EAAI,aAAa,sBAAsB,IAAM,GACtIA,EAAI,MAAM,QAAUC,EAAqB,QAAU,MACrD,CAAC,CACH,CAEAL,EAAK,QAAQM,GAAO,CAClBA,EAAI,iBAAiB,QAAS,IAAM,CAClC,IAAMC,EAAaD,EAAI,aAAa,yBAAyB,EAG7DN,EAAK,QAAQQ,GAAK,CAChB,IAAMC,EAASD,EAAE,cAAc,GAAG,EAC9BC,GAAQA,EAAO,UAAU,OAAO,QAAQ,CAC9C,CAAC,EAED,IAAMC,EAAgBJ,EAAI,cAAc,GAAG,EACvCI,GAAeA,EAAc,UAAU,IAAI,QAAQ,EAEvDR,EAAYK,CAAU,EAGtB,SAAS,iBAAiB,mBAAmB,EAAE,QAAQI,GAAW,CAChE,IAAMC,EAAW,MAAM,KAAKD,EAAQ,QAAQ,EAAE,OAAOE,GAASA,EAAM,aAAa,sBAAsB,CAAC,EAClGC,EAAYF,EAAS,OAAS,GAAKA,EAAS,MAAMC,GAASA,EAAM,MAAM,UAAY,MAAM,EACzFE,EAAUJ,EAAQ,QAAQ,UAAU,EACtCI,IACFA,EAAQ,MAAM,QAAUD,EAAY,OAAS,GAEjD,CAAC,CACH,CAAC,CACH,CAAC,EAGGd,EAAK,OAAS,GAChBA,EAAK,CAAC,EAAE,MAAM,CAElB,CA1CA,IAAAgB,EAAAC,EAAA,QCAA,IAAAC,EAAAC,EAAA,KAAAC,IAEA,SAAS,iBAAiB,mBAAoB,UAAW,CACvDC,EAAY,CACd,CAAC",
6
6
  "names": ["initFaqTabs", "tabs", "faqs", "showFAQsFor", "destinationId", "faq", "matchesDestination", "tab", "selectedId", "t", "anchor", "currentAnchor", "wrapper", "children", "child", "allHidden", "section", "init_faq_tabs", "__esmMin", "require_faqs", "__commonJSMin", "init_faq_tabs", "initFaqTabs"]
7
7
  }
@@ -1,2 +1,2 @@
1
- (()=>{var p=(o,r)=>()=>(o&&(r=o(o=0)),r);var T=(o,r)=>()=>(r||o((r={exports:{}}).exports,r),r.exports);var y,g=p(()=>{y=function(){let o,r=null,t=null;function i(){let e=document.querySelector(t.swiperWrapper);if(r=document.querySelector(t.pagination),!e||!r)return console.error("Required elements not found"),null;let n=new Swiper(t.swiper,{slidesPerView:1,grid:{rows:5},spaceBetween:0,pagination:{el:t.pagination,clickable:!0}});return o=n,n.on("slideChange",function(){}),n}return{init:function(e){t=e,document.addEventListener("DOMContentLoaded",function(){i()})}}}()});var S,v=p(()=>{S=function(){let o={};function r(e,n,s){let a=document.querySelector(e),c=document.querySelector(`${e}.w-dropdown`),u=a.querySelector(`${e} .w-dropdown-toggle`),l=a.querySelector(`${e} .w-dropdown-list`),d=a.querySelector(`${e} .dropdown-selected-value`),f=a.querySelectorAll(`${e} .dropdown-item`);if(o[e]={container:a,dropdown:c,dropdownToggle:u,dropdownList:l,selectedItemValueContainer:d,collectionItems:f,onChange:n},f.forEach(w=>{w.addEventListener("click",function(R){R.preventDefault();let m=this;t(e,m),n&&n(m),l.classList.remove("w--open"),c.blur()})}),s){let w=i(e,s);w&&setTimeout(()=>{w.click()},200)}}function t(e,n){let s=o[e];if(!s)return;let a=s.selectedItemValueContainer;for(;a.firstChild;)a.removeChild(a.firstChild);let c=n;if(c){let u=c.cloneNode(!0);a.appendChild(u);let l=c.getAttribute("data-value");s.dropdown.setAttribute("data-current-value",l)}else console.error("SelectedItem Element not found.",n)}function i(e,n){let s=o[e];return Array.from(s.collectionItems).find(a=>a.getAttribute("data-value")===n)}return{init:function({selector:e,onChange:n,initialValue:s}){document.addEventListener("DOMContentLoaded",function(){r(e,n,s)})},setValue:function(e,n){let s=i(e,n);s?s.click():n!=null&&console.error(`No item with value '${n}' found in dropdown '${e}'`)},getValue:function(e){return o[e].dropdown.getAttribute("data-current-value")}}}()});function C(){document.querySelectorAll("#edition-cards-section .edition-card-item").forEach(r=>{let t=r.querySelectorAll("a"),i=r.getAttribute("data-editionslug"),e=r.getAttribute("data-bookingstate");t.forEach(n=>{if(e=="Available Soon"){n.setAttribute("href","#"),n.style.cursor="auto";let s=n.querySelector(".edition-card-image");s.style.opacity=.4}else if(i){let s=n.getAttribute("href").split("?")[0];n.setAttribute("href",`${s}?edition=${encodeURIComponent(i)}`)}})})}var E,B=p(()=>{E=function(){let o,r,t=null,i=[],e=null;function n(){let a=document.querySelector(e.refContainer),c=document.querySelector(e.swiperWrapper);if(r=document.querySelector(e.prevButton),t=document.querySelector(e.nextButton),i=Array.from(document.querySelectorAll("#edition-cards-section .swiper .swiper-slide")),!a||!c||!r||!t)return console.error("Required elements not found"),null;let l=a.getBoundingClientRect().left,d=new Swiper(e.swiper,{slidesPerView:"auto",spaceBetween:16,freeMode:!1,slidesOffsetBefore:l,slidesOffsetAfter:16,navigation:{nextEl:e.nextButton,prevEl:e.prevButton},watchOverflow:!0});return o=d,s(),d.on("slideChange",s),window.addEventListener("resize",()=>{let f=a.getBoundingClientRect().left;d&&d.params&&(d.params.slidesOffsetBefore=f,d.update())}),d}function s(){if(!r||!t)return;r.style.opacity=o.isBeginning?"0.5":"1",r.style.pointerEvents=o.isBeginning?"none":"auto";let a=o.maxTranslate();o.translate<=a+5?(t.style.opacity="0.5",t.style.pointerEvents="none"):(t.style.opacity="1",t.style.pointerEvents="auto")}return{init:function(a){e=a,document.addEventListener("DOMContentLoaded",function(){let c=document.querySelector(e.swiperWrapper);c.style.gap="0",n()})},filterSeason(a){if(!o)return;let c=i.filter(u=>a==="all"||a===u.getAttribute("data-season"));o.removeAllSlides(),o.addSlide(0,c),o.slideTo(0,0,!1),s()}}}()});function b(){let o=document.querySelectorAll(".filter-button"),r=document.querySelectorAll(".filter-list-item");o.forEach(i=>{i.addEventListener("click",function(){o.forEach(n=>n.classList.remove("active")),this.classList.add("active");let e=this.getAttribute("data-season");e==="all"?r.forEach(n=>{n.classList.remove("filtered-out")}):r.forEach(n=>{n.getAttribute("data-season")===e?n.classList.remove("filtered-out"):n.classList.add("filtered-out")})})});let t=document.querySelector('[data-season="all"]');t&&t.click()}var q=p(()=>{});var h,A=p(()=>{h=function(){let o,r,t=null,i=null;function e(){let s=document.querySelector(i.refContainer),a=document.querySelector(i.swiperWrapper);if(r=document.querySelector(i.prevButton),t=document.querySelector(i.nextButton),!s||!a||!r||!t)return console.error("Required elements not found"),null;let u=s.getBoundingClientRect().left,l=new Swiper(i.swiper,{slidesPerView:"auto",spaceBetween:16,freeMode:!1,slidesOffsetBefore:u,slidesOffsetAfter:16,navigation:{nextEl:i.nextButton,prevEl:i.prevButton},watchOverflow:!0});return o=l,n(),l.on("slideChange",n),window.addEventListener("resize",()=>{let d=s.getBoundingClientRect().left;l&&l.params&&(l.params.slidesOffsetBefore=d,l.update())}),l}function n(){if(!r||!t)return;r.style.opacity=o.isBeginning?"0.5":"1",r.style.pointerEvents=o.isBeginning?"none":"auto";let s=o.maxTranslate();o.translate<=s+5?(t.style.opacity="0.5",t.style.pointerEvents="none"):(t.style.opacity="1",t.style.pointerEvents="auto")}return{init:function(s){i=s,document.addEventListener("DOMContentLoaded",function(){let a=document.querySelector(i.swiperWrapper);a.style.gap="0",e()})}}}()});function L(){document.querySelectorAll("#testimonial-cards-section .testimonial-card-slide").forEach(t=>{t.style.position="static"}),document.querySelectorAll("#testimonial-cards-section .swiper-slide-shadow").forEach(t=>{t.style.borderRadius="16px"})}var x,O=p(()=>{x=function(){function o(t){let i=new Swiper(t,{effect:"cards",grabCursor:!0,navigation:{nextEl:"#testimonial-cards-swiper-next-btn",prevEl:"#testimonial-cards-swiper-prev-btn"}});return r(i),i.on("slideChange",function(){r(i)}),i}function r(t){let i=document.querySelector("#testimonial-cards-swiper-prev-btn"),e=document.querySelector("#testimonial-cards-swiper-next-btn");i.style.opacity=t.isBeginning?"0.5":"1",i.style.pointerEvents=t.isBeginning?"none":"auto",e.style.opacity=t.isEnd?"0.5":"1",e.style.pointerEvents=t.isEnd?"none":"auto"}return{initSwiper:o}}()});var D=T(()=>{g();v();B();q();A();O();document.addEventListener("DOMContentLoaded",function(){C(),b(),L()});S.init({selector:"#destination-dropdown",onChange:o=>{let r=o.getAttribute("data-value")||o.textContent.trim(),t=document.querySelector("#find-workation-button"),i=t.getAttribute("href").split("?")[0];t.setAttribute("href",`${i}?location=${encodeURIComponent(r)}`)}});y.init({swiper:"#special-room-offers-section .swiper",swiperWrapper:"#special-room-offers-section .swiper-wrapper",pagination:"#special-room-offers-section .swiper-pagination"});E.init({refContainer:"#edition-cards-swiper-ref-container",swiper:"#edition-cards-section .swiper",swiperWrapper:"#edition-cards-section .swiper-wrapper",prevButton:"#edition-cards-swiper-prev-btn",nextButton:"#edition-cards-swiper-next-btn"});h.init({refContainer:"#activity-cards-swiper-ref-container",swiper:"#activity-cards-section .swiper",swiperWrapper:"#activity-cards-section .swiper-wrapper",prevButton:"#activity-cards-swiper-prev-btn",nextButton:"#activity-cards-swiper-next-btn"});x.initSwiper("#testimonial-cards-section .swiper")});D();})();
1
+ (()=>{var p=(o,r)=>()=>(o&&(r=o(o=0)),r);var T=(o,r)=>()=>(r||o((r={exports:{}}).exports,r),r.exports);var y,g=p(()=>{y=function(){let o,r=null,t=null;function i(){let e=document.querySelector(t.swiperWrapper);if(r=document.querySelector(t.pagination),!e||!r)return console.error("Required elements not found"),null;let n=new Swiper(t.swiper,{slidesPerView:1,grid:{rows:5},spaceBetween:0,pagination:{el:t.pagination,clickable:!0}});return o=n,n.on("slideChange",function(){}),n}return{init:function(e){t=e,document.addEventListener("DOMContentLoaded",function(){i()})}}}()});var S,v=p(()=>{S=function(){let o={};function r(e,n,s){let a=document.querySelector(e),c=document.querySelector(`${e}.w-dropdown`),u=a.querySelector(`${e} .w-dropdown-toggle`),l=a.querySelector(`${e} .w-dropdown-list`),d=a.querySelector(`${e} .dropdown-selected-value`),f=a.querySelectorAll(`${e} .dropdown-item`);if(o[e]={container:a,dropdown:c,dropdownToggle:u,dropdownList:l,selectedItemValueContainer:d,collectionItems:f,onChange:n},f.forEach(w=>{w.addEventListener("click",function(R){R.preventDefault();let m=this;t(e,m),n&&n(m),l.classList.remove("w--open"),c.blur()})}),s){let w=i(e,s);w&&setTimeout(()=>{w.click()},200)}}function t(e,n){let s=o[e];if(!s)return;let a=s.selectedItemValueContainer;for(;a.firstChild;)a.removeChild(a.firstChild);let c=n;if(c){let u=c.cloneNode(!0);a.appendChild(u);let l=c.getAttribute("data-value");s.dropdown.setAttribute("data-current-value",l)}else console.error("SelectedItem Element not found.",n)}function i(e,n){let s=o[e];return Array.from(s.collectionItems).find(a=>a.getAttribute("data-value")===n)}return{init:function({selector:e,onChange:n,initialValue:s}){document.addEventListener("DOMContentLoaded",function(){r(e,n,s)})},setValue:function(e,n){let s=i(e,n);s?s.click():n!=null&&console.error(`No item with value '${n}' found in dropdown '${e}'`)},getValue:function(e){return o[e].dropdown.getAttribute("data-current-value")}}}()});function C(){document.querySelectorAll("#edition-cards-section .edition-card-item").forEach(r=>{let t=r.querySelectorAll("a"),i=r.getAttribute("data-editionslug"),e=r.getAttribute("data-bookingstate");t.forEach(n=>{if(e=="Available Soon"){n.setAttribute("href","#"),n.style.cursor="auto";let s=n.querySelector(".edition-card-image");s.style.opacity=.4}else if(i){let s=n.getAttribute("href").split("?")[0];n.setAttribute("href",`${s}?edition=${encodeURIComponent(i)}`)}})})}var E,B=p(()=>{E=function(){let o,r,t=null,i=[],e=null;function n(){let a=document.querySelector(e.refContainer),c=document.querySelector(e.swiperWrapper);if(r=document.querySelector(e.prevButton),t=document.querySelector(e.nextButton),i=Array.from(document.querySelectorAll("#edition-cards-section .swiper .swiper-slide")),!a||!c||!r||!t)return console.error("Required elements not found"),null;let l=a.getBoundingClientRect().left,d=new Swiper(e.swiper,{slidesPerView:"auto",spaceBetween:16,freeMode:!1,slidesOffsetBefore:l,slidesOffsetAfter:16,navigation:{nextEl:e.nextButton,prevEl:e.prevButton},watchOverflow:!0});return o=d,s(),d.on("slideChange",s),window.addEventListener("resize",()=>{let f=a.getBoundingClientRect().left;d&&d.params&&(d.params.slidesOffsetBefore=f,d.update())}),d}function s(){if(!r||!t)return;r.style.opacity=o.isBeginning?"0.5":"1",r.style.pointerEvents=o.isBeginning?"none":"auto";let a=o.maxTranslate();o.translate<=a+5?(t.style.opacity="0.5",t.style.pointerEvents="none"):(t.style.opacity="1",t.style.pointerEvents="auto")}return{init:function(a){e=a,document.addEventListener("DOMContentLoaded",function(){let c=document.querySelector(e.swiperWrapper);c.style.gap="0",n()})},filterSeason(a){if(!o)return;let c=i.filter(u=>a==="all"||a===u.getAttribute("data-season"));o.removeAllSlides(),o.addSlide(0,c),o.slideTo(0,0,!1),s()}}}()});function b(){let o=document.querySelectorAll(".filter-button"),r=document.querySelectorAll(".filter-list-item");o.forEach(i=>{i.addEventListener("click",function(){o.forEach(n=>n.classList.remove("active")),this.classList.add("active");let e=this.getAttribute("data-season");e==="all"?r.forEach(n=>{n.classList.remove("filtered-out")}):r.forEach(n=>{n.getAttribute("data-season")===e?n.classList.remove("filtered-out"):n.classList.add("filtered-out")})})});let t=document.querySelector('[data-season="all"]');t&&t.click()}var q=p(()=>{});var h,A=p(()=>{h=function(){let o,r,t=null,i=null;function e(){let s=document.querySelector(i.refContainer),a=document.querySelector(i.swiperWrapper);if(r=document.querySelector(i.prevButton),t=document.querySelector(i.nextButton),!s||!a||!r||!t)return console.error("Required elements not found"),null;let u=s.getBoundingClientRect().left,l=new Swiper(i.swiper,{slidesPerView:"auto",spaceBetween:16,freeMode:!1,slidesOffsetBefore:u,slidesOffsetAfter:16,navigation:{nextEl:i.nextButton,prevEl:i.prevButton},watchOverflow:!0});return o=l,n(),l.on("slideChange",n),window.addEventListener("resize",()=>{let d=s.getBoundingClientRect().left;l&&l.params&&(l.params.slidesOffsetBefore=d,l.update())}),l}function n(){if(!r||!t)return;r.style.opacity=o.isBeginning?"0.5":"1",r.style.pointerEvents=o.isBeginning?"none":"auto";let s=o.maxTranslate();o.translate<=s+5?(t.style.opacity="0.5",t.style.pointerEvents="none"):(t.style.opacity="1",t.style.pointerEvents="auto")}return{init:function(s){i=s,document.addEventListener("DOMContentLoaded",function(){let a=document.querySelector(i.swiperWrapper);a.style.gap="0",e()})}}}()});function L(){document.querySelectorAll("#testimonial-cards-section .testimonial-card-slide").forEach(t=>{t.style.position="static"}),document.querySelectorAll("#testimonial-cards-section .swiper-slide-shadow").forEach(t=>{t.style.borderRadius="16px"})}var x,O=p(()=>{x=function(){function o(t){let i=new Swiper(t,{effect:"cards",grabCursor:!0,navigation:{nextEl:"#testimonial-cards-swiper-next-btn",prevEl:"#testimonial-cards-swiper-prev-btn"},breakpoints:{0:{effect:"slide"},768:{effect:"cards"}}});return r(i),i.on("slideChange",function(){r(i)}),i}function r(t){let i=document.querySelector("#testimonial-cards-swiper-prev-btn"),e=document.querySelector("#testimonial-cards-swiper-next-btn");i.style.opacity=t.isBeginning?"0.5":"1",i.style.pointerEvents=t.isBeginning?"none":"auto",e.style.opacity=t.isEnd?"0.5":"1",e.style.pointerEvents=t.isEnd?"none":"auto"}return{initSwiper:o}}()});var D=T(()=>{g();v();B();q();A();O();document.addEventListener("DOMContentLoaded",function(){C(),b(),L()});S.init({selector:"#destination-dropdown",onChange:o=>{let r=o.getAttribute("data-value")||o.textContent.trim(),t=document.querySelector("#find-workation-button"),i=t.getAttribute("href").split("?")[0];t.setAttribute("href",`${i}?location=${encodeURIComponent(r)}`)}});y.init({swiper:"#special-room-offers-section .swiper",swiperWrapper:"#special-room-offers-section .swiper-wrapper",pagination:"#special-room-offers-section .swiper-pagination"});E.init({refContainer:"#edition-cards-swiper-ref-container",swiper:"#edition-cards-section .swiper",swiperWrapper:"#edition-cards-section .swiper-wrapper",prevButton:"#edition-cards-swiper-prev-btn",nextButton:"#edition-cards-swiper-next-btn"});h.init({refContainer:"#activity-cards-swiper-ref-container",swiper:"#activity-cards-section .swiper",swiperWrapper:"#activity-cards-section .swiper-wrapper",prevButton:"#activity-cards-swiper-prev-btn",nextButton:"#activity-cards-swiper-next-btn"});x.initSwiper("#testimonial-cards-section .swiper")});D();})();
2
2
  //# sourceMappingURL=bundle-homepage.min.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../components/special-room-offers-cards.js", "../controls/collectionListDropdown.js", "../components/upcoming-editions.js", "../components/upcoming-editions-filter.js", "../components/activity-cards.js", "../components/testimonial-cards.js", "../pages/homepage/index.js"],
4
- "sourcesContent": ["export const SpecialRoomOffersCardsCarousel = (function () {\n\tlet swiperInstance, pagination = null;\n let SELECTORS = null;\n\n function initSwiper() {\n const swiperWrapper = document.querySelector(SELECTORS.swiperWrapper);\n pagination = document.querySelector(SELECTORS.pagination);\n\n if (!swiperWrapper || !pagination) { \n console.error('Required elements not found');\n return null;\n } \n\n // Initialize Swiper\n const swiper = new Swiper(SELECTORS.swiper, {\n slidesPerView: 1,\n grid: {\n rows: 5,\n },\n spaceBetween: 0,\n pagination: {\n el: SELECTORS.pagination,\n clickable: true,\n },\n });\n\n\t\tswiperInstance = swiper;\n\n // Add event listeners to update button states when slides change\n swiper.on('slideChange', function () {\n });\n\n return swiper;\n }\n\n // Public methods\n return {\n init: function(selectors) {\n SELECTORS = selectors;\n document.addEventListener('DOMContentLoaded', function() {\n\n // Initialize swiper\n initSwiper();\n });\n }\n };\n})();\n\n", "export const CollectionListDropDown = (function () {\n // Store dropdown instances to access them later\n const dropdowns = {};\n \n function initDropDown(selector, onChange, initialValue) {\n const container = document.querySelector(selector);\n const dropdown = document.querySelector(`${selector}.w-dropdown`);\n const dropdownToggle = container.querySelector(`${selector} .w-dropdown-toggle`); \n const dropdownList = container.querySelector(`${selector} .w-dropdown-list`);\n const selectedItemValueContainer = container.querySelector(`${selector} .dropdown-selected-value`);\n const collectionItems = container.querySelectorAll(`${selector} .dropdown-item`);\n \n // Store this dropdown instance data for later access\n dropdowns[selector] = {\n container,\n dropdown,\n dropdownToggle,\n dropdownList,\n selectedItemValueContainer,\n collectionItems,\n onChange\n };\n \n collectionItems.forEach(item => {\n item.addEventListener('click', function(event) {\n event.preventDefault(); // Prevent default link behavior if using Link Blocks\n const selectedOption = this;\n selectDropDownElement(selector, selectedOption);\n \n onChange && onChange(selectedOption);\n // Close the dropdown\n dropdownList.classList.remove('w--open'); // Close the dropdown\n // Move focus away to reset dropdown behavior\n dropdown.blur();\n });\n });\n \n if (initialValue) {\n const item = getElementByItemValue(selector, initialValue);\n if (item) { \n setTimeout(() => {\n item.click(); // Simulate a click on the matching item to activate filter\n }, 200);\n }\n }\n }\n \n function selectDropDownElement(selector, selectedItem) {\n const dropdown = dropdowns[selector];\n if (!dropdown) return;\n \n const selectedItemValueContainer = dropdown.selectedItemValueContainer;\n \n while (selectedItemValueContainer.firstChild) {\n selectedItemValueContainer.removeChild(selectedItemValueContainer.firstChild);\n }\n \n const sourceElement = selectedItem;\n if (sourceElement) {\n const clonedElement = sourceElement.cloneNode(true);\n selectedItemValueContainer.appendChild(clonedElement);\n const currentValue = sourceElement.getAttribute('data-value');\n dropdown.dropdown.setAttribute('data-current-value', currentValue);\n } else {\n console.error(\"SelectedItem Element not found.\", selectedItem);\n }\n }\n \n function getElementByItemValue(selector, value) {\n const dropdown = dropdowns[selector];\n return Array.from(dropdown.collectionItems).find((x) => {\n return x.getAttribute('data-value') === value;\n });\n }\n \n // Public methods\n return {\n init: function({ selector, onChange, initialValue }) {\n document.addEventListener('DOMContentLoaded', function() {\n initDropDown(selector, onChange, initialValue);\n });\n },\n // Add a new public method to change dropdown value from outside\n setValue: function(selector, value) {\n const item = getElementByItemValue(selector, value);\n if (item) {\n item.click(); // Trigger the click event on the item\n } else if (value !== undefined && value !== null) {\n console.error(`No item with value '${value}' found in dropdown '${selector}'`);\n }\n },\n // Get currently selected dropdown value\n getValue: function(selector) {\n const dropdown = dropdowns[selector];\n return dropdown.dropdown.getAttribute('data-current-value');\n }\n };\n})();", "export const EditionCardsCarousel = (function () {\n let swiperInstance, prevButton, nextButton = null;\n let allSlides = []; // we need to store them for filtering \n let SELECTORS = null; \n\n function initSwiper() {\n const refContainer = document.querySelector(SELECTORS.refContainer); \n const swiperWrapper = document.querySelector(SELECTORS.swiperWrapper);\n prevButton = document.querySelector(SELECTORS.prevButton);\n nextButton = document.querySelector(SELECTORS.nextButton);\n allSlides = Array.from(document.querySelectorAll('#edition-cards-section .swiper .swiper-slide'));\n\n if (!refContainer || !swiperWrapper || !prevButton || !nextButton) {\n console.error('Required elements not found');\n return null;\n } \n \n\t\tconst refRect = refContainer.getBoundingClientRect();\n \tconst offsetBefore = refRect.left;\n\n // Initialize Swiper\n const swiper = new Swiper(SELECTORS.swiper, {\n slidesPerView: \"auto\",\n spaceBetween: 16,\n freeMode: false,\n slidesOffsetBefore: offsetBefore,\n slidesOffsetAfter: 16,\n navigation: {\n nextEl: SELECTORS.nextButton,\n \tprevEl: SELECTORS.prevButton,\n },\n watchOverflow: true,\n });\n\n\tswiperInstance = swiper;\n\n // Set initial state of buttons\n updateButtonsState();\n\n // Add event listeners to update button states when slides change\n swiper.on('slideChange', updateButtonsState);\n \n // Add resize event listener separately\n window.addEventListener('resize', () => {\n const newOffsetBefore = refContainer.getBoundingClientRect().left;\n\n // Check if Swiper instance exists and has a method to update params\n if (swiper && swiper.params) {\n swiper.params.slidesOffsetBefore = newOffsetBefore;\n swiper.update(); // Refresh Swiper\n }\n });\n\n return swiper;\n }\n\n // Function to update button states\n function updateButtonsState() {\n \tif (!prevButton || !nextButton) return;\n \n prevButton.style.opacity = swiperInstance.isBeginning ? '0.5' : '1';\n prevButton.style.pointerEvents = swiperInstance.isBeginning ? 'none' : 'auto'; \n\n //nextButton.style.opacity = swiperInstance.isEnd ? '0.5' : '1';\n //nextButton.style.pointerEvents = swiperInstance.isEnd ? 'none' : 'auto';\n // Get Swiper's max translate position\n const maxTranslate = swiperInstance.maxTranslate();\n const currentTranslate = swiperInstance.translate;\n\n if (currentTranslate <= maxTranslate + 5) { // buffer of 5 to prevent minor calculation errors.\n nextButton.style.opacity = '0.5';\n nextButton.style.pointerEvents = 'none';\n } else {\n nextButton.style.opacity = '1';\n nextButton.style.pointerEvents = 'auto';\n }\n }\n\n // Public methods\n return {\n init: function(selectors) {\n SELECTORS = selectors;\n document.addEventListener('DOMContentLoaded', function() {\n \tconst swiperWrapper = document.querySelector(SELECTORS.swiperWrapper);\n swiperWrapper.style.gap = '0';\n \t\n // Initialize swiper\n initSwiper();\n });\n },\n filterSeason(season) {\n \tif (!swiperInstance) return;\n \n \t// Collect slides to keep\n \tconst slidesToKeep = allSlides.filter(slideEl => \n \t\tseason === 'all' || \n \t\tseason === slideEl.getAttribute('data-season')\n \t);\n \n swiperInstance.removeAllSlides();\n\n // Add filtered slides\n swiperInstance.addSlide(0, slidesToKeep);\n\n // Reset to first slide\n swiperInstance.slideTo(0, 0, false);\n \n updateButtonsState();\n }\n };\n})();\n\n\n// loop through all edition cards and add the edition query param to all URLs\n// because we are linking to a destination page and want to pre-set the edition dropdown \nexport function updateEditionCardLinkUrls() {\n\tconst allEditionCards = document.querySelectorAll(\"#edition-cards-section .edition-card-item\");\n \n allEditionCards.forEach((editionCard) => {\n \tconst editionLinkElems = editionCard.querySelectorAll(\"a\"); // we defined the card multiple times in the collection item\n const editionSlug = editionCard.getAttribute(\"data-editionslug\");\n const bookingState = editionCard.getAttribute(\"data-bookingstate\");\n\n editionLinkElems.forEach((link) => {\n \t// remove link from card and give bg less opacity for booking state \"available soon\"\n \tif (bookingState == \"Available Soon\") {\n \t\tlink.setAttribute(\"href\", \"#\");\n link.style.cursor = \"auto\";\n \n const bgImage = link.querySelector(\".edition-card-image\");\n bgImage.style.opacity = 0.4;\n } else if (editionSlug) {\n const baseUrl = link.getAttribute(\"href\").split(\"?\")[0]; // Remove existing query params\n // Update the link's href with the new query parameter\n link.setAttribute(\"href\", `${baseUrl}?edition=${encodeURIComponent(editionSlug)}`);\n }\n });\n });\n}\n", "export function initUpcomingEditionsFilter() {\n // Set up filter buttons\n const filterButtons = document.querySelectorAll('.filter-button');\n const allItems = document.querySelectorAll('.filter-list-item');\n\n // Add click event to each filter button\n filterButtons.forEach(button => {\n button.addEventListener('click', function() {\n // Remove active class from all buttons\n filterButtons.forEach(btn => btn.classList.remove(\"active\"));\n \n // Add active class to current button\n this.classList.add(\"active\");\n \n // Get the season value from the button's data attribute\n const season = this.getAttribute('data-season');\n \n // If \"All\" is selected, show all items\n if (season === 'all') {\n allItems.forEach(item => {\n item.classList.remove(\"filtered-out\");\n \t});\n } else {\n \t// Filter items based on the selected season\n \tallItems.forEach(item => {\n const itemSeason = item.getAttribute('data-season');\n if (itemSeason === season) {\n item.classList.remove(\"filtered-out\");\n } else {\n item.classList.add(\"filtered-out\");\n }\n });\n }\n });\n });\n \n // Trigger \"All\" filter on page load\n const allButton = document.querySelector('[data-season=\"all\"]');\n if (allButton) {\n allButton.click();\n }\n}", "export const ActivityCardsCarousel = (function () {\n let swiperInstance, prevButton, nextButton = null;\n let SELECTORS = null;\n\n function initSwiper() {\n const refContainer = document.querySelector(SELECTORS.refContainer); \n const swiperWrapper = document.querySelector(SELECTORS.swiperWrapper);\n prevButton = document.querySelector(SELECTORS.prevButton);\n nextButton = document.querySelector(SELECTORS.nextButton);\n\n if (!refContainer || !swiperWrapper || !prevButton || !nextButton) {\n console.error('Required elements not found');\n return null;\n } \n \n const refRect = refContainer.getBoundingClientRect();\n const offsetBefore = refRect.left;\n\n // Initialize Swiper\n const swiper = new Swiper(SELECTORS.swiper, {\n slidesPerView: \"auto\",\n spaceBetween: 16,\n freeMode: false,\n slidesOffsetBefore: offsetBefore,\n slidesOffsetAfter: 16,\n navigation: {\n nextEl: SELECTORS.nextButton,\n prevEl: SELECTORS.prevButton,\n },\n watchOverflow: true,\n });\n\n swiperInstance = swiper;\n\n // Set initial state of buttons\n updateButtonsState();\n\n // Add event listeners to update button states when slides change\n swiper.on('slideChange', updateButtonsState);\n \n // Add resize event listener separately\n window.addEventListener('resize', () => {\n const newOffsetBefore = refContainer.getBoundingClientRect().left;\n // Check if Swiper instance exists and has a method to update params\n if (swiper && swiper.params) {\n swiper.params.slidesOffsetBefore = newOffsetBefore;\n swiper.update(); // Refresh Swiper\n }\n });\n\n return swiper;\n }\n\n // Function to update button states\n function updateButtonsState() {\n if (!prevButton || !nextButton) return;\n \n prevButton.style.opacity = swiperInstance.isBeginning ? '0.5' : '1';\n prevButton.style.pointerEvents = swiperInstance.isBeginning ? 'none' : 'auto'; \n\n //nextButton.style.opacity = swiperInstance.isEnd ? '0.5' : '1';\n ////nextButton.style.pointerEvents = swiperInstance.isEnd ? 'none' : 'auto';\n // Get Swiper's max translate position\n const maxTranslate = swiperInstance.maxTranslate();\n const currentTranslate = swiperInstance.translate;\n\n if (currentTranslate <= maxTranslate + 5) { // buffer of 5 to prevent minor calculation errors.\n nextButton.style.opacity = '0.5';\n nextButton.style.pointerEvents = 'none';\n } else {\n nextButton.style.opacity = '1';\n nextButton.style.pointerEvents = 'auto';\n }\n }\n\n // Public methods\n return {\n init: function(selectors) {\n SELECTORS = selectors;\n\n document.addEventListener('DOMContentLoaded', function() {\n const swiperWrapper = document.querySelector(SELECTORS.swiperWrapper);\n swiperWrapper.style.gap = '0';\n\n // Initialize swiper\n initSwiper();\n });\n }\n };\n})();", "export const TestimonialCardsCarousel = (function () {\n function initSwiper(selector) {\n // Initialize Swiper\n const swiper = new Swiper(selector, {\n effect: \"cards\",\n grabCursor: true,\n navigation: {\n nextEl: '#testimonial-cards-swiper-next-btn',\n prevEl: '#testimonial-cards-swiper-prev-btn',\n },\n });\n\n // Set initial state of buttons\n updateButtonsState(swiper);\n\n // Add event listeners to update button states when slides change\n swiper.on('slideChange', function() {\n updateButtonsState(swiper);\n });\n\n return swiper;\n }\n\n // Function to update button states\n function updateButtonsState(swiper) {\n const prevButton = document.querySelector('#testimonial-cards-swiper-prev-btn');\n const nextButton = document.querySelector('#testimonial-cards-swiper-next-btn');\n\n prevButton.style.opacity = swiper.isBeginning ? '0.5' : '1';\n prevButton.style.pointerEvents = swiper.isBeginning ? 'none': 'auto'; \n\n nextButton.style.opacity = swiper.isEnd ? '0.5' : '1';\n nextButton.style.pointerEvents = swiper.isEnd ? 'none' : 'auto';\n }\n \n // Public API\n return {\n initSwiper\n };\n})();\n\nexport function initTestimonialCards() {\n //fix webflow designer display\n const slides = document.querySelectorAll('#testimonial-cards-section .testimonial-card-slide');\n slides.forEach(slide => {\n slide.style.position = \"static\";\n });\n \n //fix error of shadows\n const shadows = document.querySelectorAll('#testimonial-cards-section .swiper-slide-shadow');\n shadows.forEach(shadow => {\n shadow.style.borderRadius = \"16px\";\n });\n}", "import { SpecialRoomOffersCardsCarousel } from \"../../components/special-room-offers-cards\"; \nimport { CollectionListDropDown } from \"../../controls/collectionListDropdown\"\nimport { EditionCardsCarousel, updateEditionCardLinkUrls } from \"../../components/upcoming-editions\";\nimport { initUpcomingEditionsFilter } from \"../../components/upcoming-editions-filter\";\nimport { ActivityCardsCarousel } from \"../../components/activity-cards\";\nimport { TestimonialCardsCarousel, initTestimonialCards } from \"../../components/testimonial-cards\";\n\ndocument.addEventListener('DOMContentLoaded', function() {\n // Update edition card links\n updateEditionCardLinkUrls();\n\n // Initialize the upcoming editions filter\n initUpcomingEditionsFilter();\n\n // Initialize the testimonial cards\n initTestimonialCards();\n});\n\n// Initialize the Location Filter Dropdown in the Hero Section\nCollectionListDropDown.init({ selector: \"#destination-dropdown\", onChange: (selectedItem) => {\n\tconst selectedValue = selectedItem.getAttribute(\"data-value\") || selectedItem.textContent.trim(); \n const linkElement = document.querySelector(\"#find-workation-button\");\n const baseUrl = linkElement.getAttribute(\"href\").split(\"?\")[0]; // Remove existing query params\n\n // Update the link's href with the new query parameter\n linkElement.setAttribute(\"href\", `${baseUrl}?location=${encodeURIComponent(selectedValue)}`);\n}});\n\n// Initialize the carousel\nSpecialRoomOffersCardsCarousel.init({\n swiper: '#special-room-offers-section .swiper',\n swiperWrapper: '#special-room-offers-section .swiper-wrapper', \n pagination: '#special-room-offers-section .swiper-pagination',\n});\n\n// Initialize the carousel\nEditionCardsCarousel.init({\n refContainer: \"#edition-cards-swiper-ref-container\", // this is needed for calculating the left offset\n swiper: '#edition-cards-section .swiper',\n swiperWrapper: '#edition-cards-section .swiper-wrapper', \n prevButton: '#edition-cards-swiper-prev-btn',\n nextButton: '#edition-cards-swiper-next-btn'\n});\n\n// Initialize the carousel\nActivityCardsCarousel.init({\n refContainer: \"#activity-cards-swiper-ref-container\", // this is needed for calculating the left offset\n swiper: '#activity-cards-section .swiper',\n swiperWrapper: '#activity-cards-section .swiper-wrapper', \n prevButton: '#activity-cards-swiper-prev-btn',\n nextButton: '#activity-cards-swiper-next-btn'\n});\n\nTestimonialCardsCarousel.initSwiper(\"#testimonial-cards-section .swiper\");\n"],
5
- "mappings": "uGAAA,IAAaA,EAAbC,EAAAC,EAAA,KAAaF,EAAkC,UAAY,CAC1D,IAAIG,EAAgBC,EAAa,KAC5BC,EAAY,KAEhB,SAASC,GAAa,CACpB,IAAMC,EAAgB,SAAS,cAAcF,EAA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,OAE/DG,EAAW,MAAM,QAAUH,EAAO,MAAQ,MAAQ,IAClDG,EAAW,MAAM,cAAgBH,EAAO,MAAQ,OAAS,MAC3D,CAGA,MAAO,CACL,WAAAF,CACF,CACF,EAAG,ICvCH,IAAAM,EAAAC,EAAA,KAAAC,IACAC,IACAC,IACAC,IACAC,IACAC,IAEA,SAAS,iBAAiB,mBAAoB,UAAW,CAEvDC,EAA0B,EAG1BC,EAA2B,EAG3BC,EAAqB,CACvB,CAAC,EAGDC,EAAuB,KAAK,CAAE,SAAU,wBAAyB,SAAWC,GAAiB,CAC5F,IAAMC,EAAgBD,EAAa,aAAa,YAAY,GAAKA,EAAa,YAAY,KAAK,EACxFE,EAAc,SAAS,cAAc,wBAAwB,EAC7DC,EAAUD,EAAY,aAAa,MAAM,EAAE,MAAM,GAAG,EAAE,CAAC,EAG7DA,EAAY,aAAa,OAAQ,GAAGC,CAAO,aAAa,mBAAmBF,CAAa,CAAC,EAAE,CAC7F,CAAC,CAAC,EAGFG,EAA+B,KAAK,CAClC,OAAQ,uCACR,cAAe,+CACf,WAAY,iDACd,CAAC,EAGDC,EAAqB,KAAK,CACxB,aAAc,sCACd,OAAQ,iCACR,cAAe,yCACf,WAAY,iCACZ,WAAY,gCACd,CAAC,EAGDC,EAAsB,KAAK,CACzB,aAAc,uCACd,OAAQ,kCACR,cAAe,0CACf,WAAY,kCACZ,WAAY,iCACd,CAAC,EAEDC,EAAyB,WAAW,oCAAoC",
4
+ "sourcesContent": ["export const SpecialRoomOffersCardsCarousel = (function () {\n\tlet swiperInstance, pagination = null;\n let SELECTORS = null;\n\n function initSwiper() {\n const swiperWrapper = document.querySelector(SELECTORS.swiperWrapper);\n pagination = document.querySelector(SELECTORS.pagination);\n\n if (!swiperWrapper || !pagination) { \n console.error('Required elements not found');\n return null;\n } \n\n // Initialize Swiper\n const swiper = new Swiper(SELECTORS.swiper, {\n slidesPerView: 1,\n grid: {\n rows: 5,\n },\n spaceBetween: 0,\n pagination: {\n el: SELECTORS.pagination,\n clickable: true,\n },\n });\n\n\t\tswiperInstance = swiper;\n\n // Add event listeners to update button states when slides change\n swiper.on('slideChange', function () {\n });\n\n return swiper;\n }\n\n // Public methods\n return {\n init: function(selectors) {\n SELECTORS = selectors;\n document.addEventListener('DOMContentLoaded', function() {\n\n // Initialize swiper\n initSwiper();\n });\n }\n };\n})();\n\n", "export const CollectionListDropDown = (function () {\n // Store dropdown instances to access them later\n const dropdowns = {};\n \n function initDropDown(selector, onChange, initialValue) {\n const container = document.querySelector(selector);\n const dropdown = document.querySelector(`${selector}.w-dropdown`);\n const dropdownToggle = container.querySelector(`${selector} .w-dropdown-toggle`); \n const dropdownList = container.querySelector(`${selector} .w-dropdown-list`);\n const selectedItemValueContainer = container.querySelector(`${selector} .dropdown-selected-value`);\n const collectionItems = container.querySelectorAll(`${selector} .dropdown-item`);\n \n // Store this dropdown instance data for later access\n dropdowns[selector] = {\n container,\n dropdown,\n dropdownToggle,\n dropdownList,\n selectedItemValueContainer,\n collectionItems,\n onChange\n };\n \n collectionItems.forEach(item => {\n item.addEventListener('click', function(event) {\n event.preventDefault(); // Prevent default link behavior if using Link Blocks\n const selectedOption = this;\n selectDropDownElement(selector, selectedOption);\n \n onChange && onChange(selectedOption);\n // Close the dropdown\n dropdownList.classList.remove('w--open'); // Close the dropdown\n // Move focus away to reset dropdown behavior\n dropdown.blur();\n });\n });\n \n if (initialValue) {\n const item = getElementByItemValue(selector, initialValue);\n if (item) { \n setTimeout(() => {\n item.click(); // Simulate a click on the matching item to activate filter\n }, 200);\n }\n }\n }\n \n function selectDropDownElement(selector, selectedItem) {\n const dropdown = dropdowns[selector];\n if (!dropdown) return;\n \n const selectedItemValueContainer = dropdown.selectedItemValueContainer;\n \n while (selectedItemValueContainer.firstChild) {\n selectedItemValueContainer.removeChild(selectedItemValueContainer.firstChild);\n }\n \n const sourceElement = selectedItem;\n if (sourceElement) {\n const clonedElement = sourceElement.cloneNode(true);\n selectedItemValueContainer.appendChild(clonedElement);\n const currentValue = sourceElement.getAttribute('data-value');\n dropdown.dropdown.setAttribute('data-current-value', currentValue);\n } else {\n console.error(\"SelectedItem Element not found.\", selectedItem);\n }\n }\n \n function getElementByItemValue(selector, value) {\n const dropdown = dropdowns[selector];\n return Array.from(dropdown.collectionItems).find((x) => {\n return x.getAttribute('data-value') === value;\n });\n }\n \n // Public methods\n return {\n init: function({ selector, onChange, initialValue }) {\n document.addEventListener('DOMContentLoaded', function() {\n initDropDown(selector, onChange, initialValue);\n });\n },\n // Add a new public method to change dropdown value from outside\n setValue: function(selector, value) {\n const item = getElementByItemValue(selector, value);\n if (item) {\n item.click(); // Trigger the click event on the item\n } else if (value !== undefined && value !== null) {\n console.error(`No item with value '${value}' found in dropdown '${selector}'`);\n }\n },\n // Get currently selected dropdown value\n getValue: function(selector) {\n const dropdown = dropdowns[selector];\n return dropdown.dropdown.getAttribute('data-current-value');\n }\n };\n})();", "export const EditionCardsCarousel = (function () {\n let swiperInstance, prevButton, nextButton = null;\n let allSlides = []; // we need to store them for filtering \n let SELECTORS = null; \n\n function initSwiper() {\n const refContainer = document.querySelector(SELECTORS.refContainer); \n const swiperWrapper = document.querySelector(SELECTORS.swiperWrapper);\n prevButton = document.querySelector(SELECTORS.prevButton);\n nextButton = document.querySelector(SELECTORS.nextButton);\n allSlides = Array.from(document.querySelectorAll('#edition-cards-section .swiper .swiper-slide'));\n\n if (!refContainer || !swiperWrapper || !prevButton || !nextButton) {\n console.error('Required elements not found');\n return null;\n } \n \n\t\tconst refRect = refContainer.getBoundingClientRect();\n \tconst offsetBefore = refRect.left;\n\n // Initialize Swiper\n const swiper = new Swiper(SELECTORS.swiper, {\n slidesPerView: \"auto\",\n spaceBetween: 16,\n freeMode: false,\n slidesOffsetBefore: offsetBefore,\n slidesOffsetAfter: 16,\n navigation: {\n nextEl: SELECTORS.nextButton,\n \tprevEl: SELECTORS.prevButton,\n },\n watchOverflow: true,\n });\n\n\tswiperInstance = swiper;\n\n // Set initial state of buttons\n updateButtonsState();\n\n // Add event listeners to update button states when slides change\n swiper.on('slideChange', updateButtonsState);\n \n // Add resize event listener separately\n window.addEventListener('resize', () => {\n const newOffsetBefore = refContainer.getBoundingClientRect().left;\n\n // Check if Swiper instance exists and has a method to update params\n if (swiper && swiper.params) {\n swiper.params.slidesOffsetBefore = newOffsetBefore;\n swiper.update(); // Refresh Swiper\n }\n });\n\n return swiper;\n }\n\n // Function to update button states\n function updateButtonsState() {\n \tif (!prevButton || !nextButton) return;\n \n prevButton.style.opacity = swiperInstance.isBeginning ? '0.5' : '1';\n prevButton.style.pointerEvents = swiperInstance.isBeginning ? 'none' : 'auto'; \n\n //nextButton.style.opacity = swiperInstance.isEnd ? '0.5' : '1';\n //nextButton.style.pointerEvents = swiperInstance.isEnd ? 'none' : 'auto';\n // Get Swiper's max translate position\n const maxTranslate = swiperInstance.maxTranslate();\n const currentTranslate = swiperInstance.translate;\n\n if (currentTranslate <= maxTranslate + 5) { // buffer of 5 to prevent minor calculation errors.\n nextButton.style.opacity = '0.5';\n nextButton.style.pointerEvents = 'none';\n } else {\n nextButton.style.opacity = '1';\n nextButton.style.pointerEvents = 'auto';\n }\n }\n\n // Public methods\n return {\n init: function(selectors) {\n SELECTORS = selectors;\n document.addEventListener('DOMContentLoaded', function() {\n \tconst swiperWrapper = document.querySelector(SELECTORS.swiperWrapper);\n swiperWrapper.style.gap = '0';\n \t\n // Initialize swiper\n initSwiper();\n });\n },\n filterSeason(season) {\n \tif (!swiperInstance) return;\n \n \t// Collect slides to keep\n \tconst slidesToKeep = allSlides.filter(slideEl => \n \t\tseason === 'all' || \n \t\tseason === slideEl.getAttribute('data-season')\n \t);\n \n swiperInstance.removeAllSlides();\n\n // Add filtered slides\n swiperInstance.addSlide(0, slidesToKeep);\n\n // Reset to first slide\n swiperInstance.slideTo(0, 0, false);\n \n updateButtonsState();\n }\n };\n})();\n\n\n// loop through all edition cards and add the edition query param to all URLs\n// because we are linking to a destination page and want to pre-set the edition dropdown \nexport function updateEditionCardLinkUrls() {\n\tconst allEditionCards = document.querySelectorAll(\"#edition-cards-section .edition-card-item\");\n \n allEditionCards.forEach((editionCard) => {\n \tconst editionLinkElems = editionCard.querySelectorAll(\"a\"); // we defined the card multiple times in the collection item\n const editionSlug = editionCard.getAttribute(\"data-editionslug\");\n const bookingState = editionCard.getAttribute(\"data-bookingstate\");\n\n editionLinkElems.forEach((link) => {\n \t// remove link from card and give bg less opacity for booking state \"available soon\"\n \tif (bookingState == \"Available Soon\") {\n \t\tlink.setAttribute(\"href\", \"#\");\n link.style.cursor = \"auto\";\n \n const bgImage = link.querySelector(\".edition-card-image\");\n bgImage.style.opacity = 0.4;\n } else if (editionSlug) {\n const baseUrl = link.getAttribute(\"href\").split(\"?\")[0]; // Remove existing query params\n // Update the link's href with the new query parameter\n link.setAttribute(\"href\", `${baseUrl}?edition=${encodeURIComponent(editionSlug)}`);\n }\n });\n });\n}\n", "export function initUpcomingEditionsFilter() {\n // Set up filter buttons\n const filterButtons = document.querySelectorAll('.filter-button');\n const allItems = document.querySelectorAll('.filter-list-item');\n\n // Add click event to each filter button\n filterButtons.forEach(button => {\n button.addEventListener('click', function() {\n // Remove active class from all buttons\n filterButtons.forEach(btn => btn.classList.remove(\"active\"));\n \n // Add active class to current button\n this.classList.add(\"active\");\n \n // Get the season value from the button's data attribute\n const season = this.getAttribute('data-season');\n \n // If \"All\" is selected, show all items\n if (season === 'all') {\n allItems.forEach(item => {\n item.classList.remove(\"filtered-out\");\n \t});\n } else {\n \t// Filter items based on the selected season\n \tallItems.forEach(item => {\n const itemSeason = item.getAttribute('data-season');\n if (itemSeason === season) {\n item.classList.remove(\"filtered-out\");\n } else {\n item.classList.add(\"filtered-out\");\n }\n });\n }\n });\n });\n \n // Trigger \"All\" filter on page load\n const allButton = document.querySelector('[data-season=\"all\"]');\n if (allButton) {\n allButton.click();\n }\n}", "export const ActivityCardsCarousel = (function () {\n let swiperInstance, prevButton, nextButton = null;\n let SELECTORS = null;\n\n function initSwiper() {\n const refContainer = document.querySelector(SELECTORS.refContainer); \n const swiperWrapper = document.querySelector(SELECTORS.swiperWrapper);\n prevButton = document.querySelector(SELECTORS.prevButton);\n nextButton = document.querySelector(SELECTORS.nextButton);\n\n if (!refContainer || !swiperWrapper || !prevButton || !nextButton) {\n console.error('Required elements not found');\n return null;\n } \n \n const refRect = refContainer.getBoundingClientRect();\n const offsetBefore = refRect.left;\n\n // Initialize Swiper\n const swiper = new Swiper(SELECTORS.swiper, {\n slidesPerView: \"auto\",\n spaceBetween: 16,\n freeMode: false,\n slidesOffsetBefore: offsetBefore,\n slidesOffsetAfter: 16,\n navigation: {\n nextEl: SELECTORS.nextButton,\n prevEl: SELECTORS.prevButton,\n },\n watchOverflow: true,\n });\n\n swiperInstance = swiper;\n\n // Set initial state of buttons\n updateButtonsState();\n\n // Add event listeners to update button states when slides change\n swiper.on('slideChange', updateButtonsState);\n \n // Add resize event listener separately\n window.addEventListener('resize', () => {\n const newOffsetBefore = refContainer.getBoundingClientRect().left;\n // Check if Swiper instance exists and has a method to update params\n if (swiper && swiper.params) {\n swiper.params.slidesOffsetBefore = newOffsetBefore;\n swiper.update(); // Refresh Swiper\n }\n });\n\n return swiper;\n }\n\n // Function to update button states\n function updateButtonsState() {\n if (!prevButton || !nextButton) return;\n \n prevButton.style.opacity = swiperInstance.isBeginning ? '0.5' : '1';\n prevButton.style.pointerEvents = swiperInstance.isBeginning ? 'none' : 'auto'; \n\n //nextButton.style.opacity = swiperInstance.isEnd ? '0.5' : '1';\n ////nextButton.style.pointerEvents = swiperInstance.isEnd ? 'none' : 'auto';\n // Get Swiper's max translate position\n const maxTranslate = swiperInstance.maxTranslate();\n const currentTranslate = swiperInstance.translate;\n\n if (currentTranslate <= maxTranslate + 5) { // buffer of 5 to prevent minor calculation errors.\n nextButton.style.opacity = '0.5';\n nextButton.style.pointerEvents = 'none';\n } else {\n nextButton.style.opacity = '1';\n nextButton.style.pointerEvents = 'auto';\n }\n }\n\n // Public methods\n return {\n init: function(selectors) {\n SELECTORS = selectors;\n\n document.addEventListener('DOMContentLoaded', function() {\n const swiperWrapper = document.querySelector(SELECTORS.swiperWrapper);\n swiperWrapper.style.gap = '0';\n\n // Initialize swiper\n initSwiper();\n });\n }\n };\n})();", "export const TestimonialCardsCarousel = (function () {\n function initSwiper(selector) {\n // Initialize Swiper\n const swiper = new Swiper(selector, {\n effect: \"cards\",\n grabCursor: true,\n navigation: {\n nextEl: '#testimonial-cards-swiper-next-btn',\n prevEl: '#testimonial-cards-swiper-prev-btn',\n },\n breakpoints: {\n // For screens <= 767px (mobile), remove \"cards\" effect\n 0: {\n effect: \"slide\"\n },\n // For screens > 767px, use \"cards\" effect\n 768: {\n effect: \"cards\"\n }\n }\n });\n\n // Set initial state of buttons\n updateButtonsState(swiper);\n\n // Add event listeners to update button states when slides change\n swiper.on('slideChange', function() {\n updateButtonsState(swiper);\n });\n\n return swiper;\n }\n\n // Function to update button states\n function updateButtonsState(swiper) {\n const prevButton = document.querySelector('#testimonial-cards-swiper-prev-btn');\n const nextButton = document.querySelector('#testimonial-cards-swiper-next-btn');\n\n prevButton.style.opacity = swiper.isBeginning ? '0.5' : '1';\n prevButton.style.pointerEvents = swiper.isBeginning ? 'none': 'auto'; \n\n nextButton.style.opacity = swiper.isEnd ? '0.5' : '1';\n nextButton.style.pointerEvents = swiper.isEnd ? 'none' : 'auto';\n }\n \n // Public API\n return {\n initSwiper\n };\n})();\n\nexport function initTestimonialCards() {\n //fix webflow designer display\n const slides = document.querySelectorAll('#testimonial-cards-section .testimonial-card-slide');\n slides.forEach(slide => {\n slide.style.position = \"static\";\n });\n \n //fix error of shadows\n const shadows = document.querySelectorAll('#testimonial-cards-section .swiper-slide-shadow');\n shadows.forEach(shadow => {\n shadow.style.borderRadius = \"16px\";\n });\n}", "import { SpecialRoomOffersCardsCarousel } from \"../../components/special-room-offers-cards\"; \nimport { CollectionListDropDown } from \"../../controls/collectionListDropdown\"\nimport { EditionCardsCarousel, updateEditionCardLinkUrls } from \"../../components/upcoming-editions\";\nimport { initUpcomingEditionsFilter } from \"../../components/upcoming-editions-filter\";\nimport { ActivityCardsCarousel } from \"../../components/activity-cards\";\nimport { TestimonialCardsCarousel, initTestimonialCards } from \"../../components/testimonial-cards\";\n\ndocument.addEventListener('DOMContentLoaded', function() {\n // Update edition card links\n updateEditionCardLinkUrls();\n\n // Initialize the upcoming editions filter\n initUpcomingEditionsFilter();\n\n // Initialize the testimonial cards\n initTestimonialCards();\n});\n\n// Initialize the Location Filter Dropdown in the Hero Section\nCollectionListDropDown.init({ selector: \"#destination-dropdown\", onChange: (selectedItem) => {\n\tconst selectedValue = selectedItem.getAttribute(\"data-value\") || selectedItem.textContent.trim(); \n const linkElement = document.querySelector(\"#find-workation-button\");\n const baseUrl = linkElement.getAttribute(\"href\").split(\"?\")[0]; // Remove existing query params\n\n // Update the link's href with the new query parameter\n linkElement.setAttribute(\"href\", `${baseUrl}?location=${encodeURIComponent(selectedValue)}`);\n}});\n\n// Initialize the carousel\nSpecialRoomOffersCardsCarousel.init({\n swiper: '#special-room-offers-section .swiper',\n swiperWrapper: '#special-room-offers-section .swiper-wrapper', \n pagination: '#special-room-offers-section .swiper-pagination',\n});\n\n// Initialize the carousel\nEditionCardsCarousel.init({\n refContainer: \"#edition-cards-swiper-ref-container\", // this is needed for calculating the left offset\n swiper: '#edition-cards-section .swiper',\n swiperWrapper: '#edition-cards-section .swiper-wrapper', \n prevButton: '#edition-cards-swiper-prev-btn',\n nextButton: '#edition-cards-swiper-next-btn'\n});\n\n// Initialize the carousel\nActivityCardsCarousel.init({\n refContainer: \"#activity-cards-swiper-ref-container\", // this is needed for calculating the left offset\n swiper: '#activity-cards-section .swiper',\n swiperWrapper: '#activity-cards-section .swiper-wrapper', \n prevButton: '#activity-cards-swiper-prev-btn',\n nextButton: '#activity-cards-swiper-next-btn'\n});\n\nTestimonialCardsCarousel.initSwiper(\"#testimonial-cards-section .swiper\");\n"],
5
+ "mappings": "uGAAA,IAAaA,EAAbC,EAAAC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EAEMA,CACT,CAGA,SAASC,EAAmBD,EAAQ,CAClC,IAAME,EAAa,SAAS,cAAc,oCAAoC,EACxEC,EAAa,SAAS,cAAc,oCAAoC,EAE9ED,EAAW,MAAM,QAAUF,EAAO,YAAc,MAAQ,IACxDE,EAAW,MAAM,cAAiBF,EAAO,YAAc,OAAQ,OAE/DG,EAAW,MAAM,QAAUH,EAAO,MAAQ,MAAQ,IAClDG,EAAW,MAAM,cAAgBH,EAAO,MAAQ,OAAS,MAC3D,CAGA,MAAO,CACL,WAAAF,CACF,CACF,EAAG,ICjDH,IAAAM,EAAAC,EAAA,KAAAC,IACAC,IACAC,IACAC,IACAC,IACAC,IAEA,SAAS,iBAAiB,mBAAoB,UAAW,CAEvDC,EAA0B,EAG1BC,EAA2B,EAG3BC,EAAqB,CACvB,CAAC,EAGDC,EAAuB,KAAK,CAAE,SAAU,wBAAyB,SAAWC,GAAiB,CAC5F,IAAMC,EAAgBD,EAAa,aAAa,YAAY,GAAKA,EAAa,YAAY,KAAK,EACxFE,EAAc,SAAS,cAAc,wBAAwB,EAC7DC,EAAUD,EAAY,aAAa,MAAM,EAAE,MAAM,GAAG,EAAE,CAAC,EAG7DA,EAAY,aAAa,OAAQ,GAAGC,CAAO,aAAa,mBAAmBF,CAAa,CAAC,EAAE,CAC7F,CAAC,CAAC,EAGFG,EAA+B,KAAK,CAClC,OAAQ,uCACR,cAAe,+CACf,WAAY,iDACd,CAAC,EAGDC,EAAqB,KAAK,CACxB,aAAc,sCACd,OAAQ,iCACR,cAAe,yCACf,WAAY,iCACZ,WAAY,gCACd,CAAC,EAGDC,EAAsB,KAAK,CACzB,aAAc,uCACd,OAAQ,kCACR,cAAe,0CACf,WAAY,kCACZ,WAAY,iCACd,CAAC,EAEDC,EAAyB,WAAW,oCAAoC",
6
6
  "names": ["SpecialRoomOffersCardsCarousel", "init_special_room_offers_cards", "__esmMin", "swiperInstance", "pagination", "SELECTORS", "initSwiper", "swiperWrapper", "swiper", "selectors", "CollectionListDropDown", "init_collectionListDropdown", "__esmMin", "dropdowns", "initDropDown", "selector", "onChange", "initialValue", "container", "dropdown", "dropdownToggle", "dropdownList", "selectedItemValueContainer", "collectionItems", "item", "event", "selectedOption", "selectDropDownElement", "getElementByItemValue", "selectedItem", "sourceElement", "clonedElement", "currentValue", "value", "x", "updateEditionCardLinkUrls", "editionCard", "editionLinkElems", "editionSlug", "bookingState", "link", "bgImage", "baseUrl", "EditionCardsCarousel", "init_upcoming_editions", "__esmMin", "swiperInstance", "prevButton", "nextButton", "allSlides", "SELECTORS", "initSwiper", "refContainer", "swiperWrapper", "offsetBefore", "swiper", "updateButtonsState", "newOffsetBefore", "maxTranslate", "selectors", "season", "slidesToKeep", "slideEl", "initUpcomingEditionsFilter", "filterButtons", "allItems", "button", "btn", "season", "item", "allButton", "init_upcoming_editions_filter", "__esmMin", "ActivityCardsCarousel", "init_activity_cards", "__esmMin", "swiperInstance", "prevButton", "nextButton", "SELECTORS", "initSwiper", "refContainer", "swiperWrapper", "offsetBefore", "swiper", "updateButtonsState", "newOffsetBefore", "maxTranslate", "selectors", "initTestimonialCards", "slide", "shadow", "TestimonialCardsCarousel", "init_testimonial_cards", "__esmMin", "initSwiper", "selector", "swiper", "updateButtonsState", "prevButton", "nextButton", "require_homepage", "__commonJSMin", "init_special_room_offers_cards", "init_collectionListDropdown", "init_upcoming_editions", "init_upcoming_editions_filter", "init_activity_cards", "init_testimonial_cards", "updateEditionCardLinkUrls", "initUpcomingEditionsFilter", "initTestimonialCards", "CollectionListDropDown", "selectedItem", "selectedValue", "linkElement", "baseUrl", "SpecialRoomOffersCardsCarousel", "EditionCardsCarousel", "ActivityCardsCarousel", "TestimonialCardsCarousel"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hubs-travel-js",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/mediakular/hubs.travel-js-public#readme",
6
6
  "bugs": {