PageSourceSearch

https://www.royalcaribbean.com/etc.clientlibs/rcg/core/clientlibs/…-925c7c239033bfc90ad5468b5275a136-lc.min.js

js royalcaribbean.com collected 2026-09-24 08:32:43 UTC 7,873 bytes, 1 lines download raw bytes

1!function(){"use strict";function e(e){document.addEventListener("DOMContentLoaded",e),document.addEventListener("TargetScriptLoaded",e),document.addEventListener("ComponentScriptLoaded",e)}const t={componentScriptLoaded:new CustomEvent("ComponentScriptLoaded",{bubbles:!0,detail:{source:"client-lib-loader"}}),targetScriptLoaded:new Event("TargetScriptLoaded")};function o(e){if(window.matchMedia("(max-width: 767px)").matches){document.querySelectorAll(".footer__main-category__links-area").forEach(t=>{t.id!==`links-area-${e.dataset.index}`&&"links-area-section"!==t.id&&(t.classList.remove("--flex"),t.classList.add("--none"))});const t=document.querySelector(`#links-area-${e.dataset.index}`);t.classList.contains("--none")?(t.classList.remove("--none"),t.classList.add("--flex")):(t.classList.remove("--flex"),t.classList.add("--none")),document.querySelectorAll(".footer__main-category__categories__category").forEach(t=>{t!==e&&t.classList.remove("footer__main-category__categories__category--active")}),e.classList.toggle("footer__main-category__categories__category--active")}else{document.querySelectorAll(".footer__main-category__links-area").forEach(e=>{"links-area-section"!==e.id&&(e.classList.remove("--flex"),e.classList.add("--none"))});const t=document.getElementById("links-area-section");t&&(t.classList.add("--flex"),t.classList.remove("--none")),document.querySelectorAll(".footer__main-category__categories__category").forEach(e=>{e.classList.remove("footer__main-category__categories__category--active")});const o=document.querySelector(`#links-area-${e.dataset.index}`);o.classList.remove("--none"),o.classList.add("--flex"),e.classList.add("footer__main-category__categories__category--active")}}function n(){if(window.footerEventListenersAttached)return;window.footerEventListenersAttached=!0;const e=document.querySelectorAll(".footer__main-category__categories__category");e.forEach(t=>{t.addEventListener("keydown",function(t){"Enter"!==t.key&&" "!==t.key&&"Spacebar"!==t.key||(e.forEach(e=>{e.setAttribute("aria-expanded","false")}),this.setAttribute("aria-expanded","true"),o(this),t.preventDefault(),function(){const e=document.querySelectorAll(".footer__main-category__categories__category"),t=document.querySelector(".js-footer__main-category__links-area"),o=t?.querySelector(".js-footer__main-category__links-area .--flex"),n=o?.querySelectorAll(".js-footer__main-category__links-area__links-row__link")??[];n&&n.length>0&&n[0]&&(n[0].setAttribute("tabindex","-1"),n[0].querySelector("a")?.focus(),n[0].addEventListener("keydown",d));const r=n&&n.length>0?n[n.length-1]:null,i=e&&e.length>0?e[e.length-1]:null;function c(e){if("Tab"===e.key||9===e.keyCode){const e=document.querySelector(".footer__main-category__categories__category--active");e&&(e.setAttribute("tabindex","-1"),e.querySelector("button")?.focus()),r?.removeEventListener("keydown",c)}}r&&!i.classList.contains("footer__main-category__categories__category--active")&&r?.addEventListener("keydown",c)}())}),t.addEventListener("click",function(t){e.forEach(e=>{e.setAttribute("aria-expanded","false")}),this.setAttribute("aria-expanded","true"),o(this),t.preventDefault()})})}window.initAemComponentAccessibility=function(){const e=document?.querySelectorAll(".aem-component");e?.forEach((e,t)=>{const o=e?.id||`aem-component-${t+1}`;e.id=o,e.setAttribute("tabindex","-1")})},window.triggerComponentInitialization=function(e=document){e.dispatchEvent(t.componentScriptLoaded),e.dispatchEvent(t.targetScriptLoaded)},document.addEventListener("DOMContentLoaded",function(){window.initAemComponentAccessibility()}),window.addCustomDocumentContentLoadListener=e;let r=0;function i(e,t){e&&t&&(e.classList.remove("open"),t.style.opacity="0",t.style.visibility="hidden",document.body.style.position="",document.body.style.top="",window.scrollTo({top:r,behavior:"auto"}),document.body.style.width="")}function c(){const e=window.matchMedia("(max-width: 767px)").matches;if(document.querySelectorAll(".footer__main-category__categories__category").forEach(t=>{const o=t.dataset.index,n=document.querySelector(`#links-area-${o}`);if(e)t.insertAdjacentElement("afterend",n);else{document.getElementById("links-area-section").appendChild(n)}}),!e){if(!document.querySelector(".footer__main-category__categories__category--active")){const e=document.querySelector(".footer__main-category__categories__category");e&&o(e)}}}function a(){const e=document.querySelectorAll(".footer__mandatory-links > .footer__mandatory-links__mandatory-link");
1e.forEach(e=>{const t=e.querySelector(".footer__mandatory-links__link-divider");t&&(t.style.display="inline")});let t=null;e.forEach((o,n)=>{const r=o.offsetTop;if(t!==r){if(n>0){const t=e[n-1].querySelector(".footer__mandatory-links__link-divider");t&&(t.style.display="none")}t=r}});const o=e[e.length-1]?.querySelector(".footer__mandatory-links__link-divider");o&&(o.style.display="none")}e(()=>{window.addEventListener("resize",c),window.addEventListener("DOMContentLoaded",c),window.addEventListener("TargetScriptLoaded",c),document.body.addEventListener("click",e=>{const t=document.getElementById("locationDrawer"),o=document.getElementById("drawerOverlay");if(!t||!o)return;e.target.closest("#locationDropdown")&&(t.classList.contains("open")?i(t,o):function(e,t){e&&t&&(r=window.scrollY||document.documentElement.scrollTop,document.body.style.position="fixed",document.body.style.top=`-${r}px`,document.body.style.width="100%",e.style.position="fixed",e.style.top="0",window.scrollTo({top:0,behavior:"smooth"}),e.classList.add("open"),t.style.opacity="1",t.style.visibility="visible")}(t,o)),"drawerOverlay"!==e.target.id&&"closeDrawerButton"!==e.target.id||i(t,o)});const e=document.querySelector(".footer__drawer__input-section__input-field");e&&e.addEventListener("pointerdown",e=>{const t=e.target.closest(".footer__drawer__input-section__input-field__field");if(t){const e=t.querySelector("input");e&&e.focus()}}),n()}),e(a),window.addEventListener("resize",a);const s=new MutationObserver(()=>{a()});function d(e){if(e.shiftKey&&"Tab"===e.key){const e=document.querySelector(".footer__main-category__categories__category--active");e&&(e.setAttribute("tabindex","-1"),e.querySelector("button")?.focus())}}document.querySelector(".footer__mandatory-links")&&s.observe(document.querySelector(".footer__mandatory-links"),{childList:!0,subtree:!0});function l(e){const t=e.country();if(!t)return;let o=t.name||"";const n=o.split("(");n.length>0&&(o=n[0].trim());const r=document.querySelector(".footer__section--down__location-dropdown__location-flag img"),i=document.querySelector(".footer__section--down__location-dropdown__location-text");r&&(r.src=t.flagPath||""),i&&(i.textContent=o)}function _(){!function(){const e=(new Date).getFullYear(),t=document.querySelector(".footer .footer__section--down .footer__copyright");t&&(t.textContent=t.textContent.replace("{dynamicYear}",`${e}`))}();const e=document.querySelector(".footer__section--down__location-dropdown");e?.addEventListener("click",e=>{window.location.href="/resources/select-location"});const t="undefined"!=typeof window?window.rcg&&window.rcg.g11n:null;t&&(t.ready().then(()=>l(t)).catch(()=>{}),t.on("change",()=>{t.ready().then(()=>l(t)).catch(()=>{})})),function(e=".js-lazy-loading"){const t=document.querySelectorAll(e)??[];if("undefined"!=typeof IntersectionObserver){const e=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(e.isIntersecting){const o=e.target;o.getAttribute("data-src")?(o.src=o.getAttribute("data-src"),o.classList.remove("js-lazy-loading"),t.unobserve(o)):o.getAttribute("src")&&t.unobserve(o)}})},{rootMargin:"100px 0px"});t.forEach(t=>e.observe(t))}else t.forEach(e=>{e.src=e.getAttribute("data-src"),e.removeAttribute("data-src")})}()}document.addEventListener("DOMContentLoaded",_),document.addEventListener("TargetScriptLoaded",_)}();

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.