PageSourceSearch

https://www.shephards.com/integration/tc-theme/public/js/chunk/chunk-tc-GMS-9ebdd0853703d3e6826b.js

js shephards.com collected 2026-09-29 08:48:59 UTC 3,927 bytes, 1 lines download raw bytes

1"use strict";(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[7500],{7834(e,t,o){var n=o(8972),s=o(4692);const{X5:r,qv:a}=n.iW;var c=window.GMS;const i="("+["ihotelier.com","reservations.travelclick.com","search.travelclick.com"].join("|")+")",m=function(e){const t=new URL(e);try{if(window.GLXExtensions.tcGuestPortal?.getBEIdToken){const e=window.GLXExtensions.tcGuestPortal.getBEIdToken();if(e&&"hash"===e.type)return t.hash=`${e.param}=${e.value}`,t.href();if(e&&"parameter"===e.type)return t.searchParams.set(e.param,e.value),t.href()}}catch(e){console.warn(e,"gms-user-token not coming from guest portal")}if(null!==t.hostname.match(i)){const o=window.GMS?c.infos.getUserToken():null;return o?(t.searchParams.set("token",o),t.href()):e}if(null!==t.hostname.match(r)){const o=function(){const e=localStorage.getItem("gms_synxis_token");return e&&e.length>0?base64(e,"decode"):null}();return o?(t.searchParams.set("session",o),t.href()):e}return e},d=function(){new Promise(function(e,t){try{if(window.tcGMSHelpers.syncedStorage.getItem("gms_profil_data")){let t=JSON.parse(window.tcGMSHelpers.syncedStorage.getItem("gms_profil_data"));t&&t.timestamp&&((+new Date-t.timestamp)/1e3/60<45&&e(t))}t()}catch(e){t(e)}}).then(function(e){l(e)}).catch(function(){g()})},l=function(e){!function(e){["points","nights","stays","cashValue"].forEach(function(t){let o=e[t]||0;s(`.js-gms-${t}`).text(o),s(`.js-gms-${t}-text`).text(function(){return 1==o?s(this).data("singular"):s(this).data("plural")})})}(e),s(".js-gms-fullname:not(.js-name-no-override)").text(e.firstName),s(".js-gms-tier").text(e.levelName||""),s(".js-gms-tier-background").css("backgroundColor",window.gmsDefaultTierColor),s(".js-gms-tier-background").css("color",window.gmsDefaultTierColorText),s(".js-gms-small-data").css("backgroundColor",window.gmsMembershipBgColor),s(".js-gms-small-data").css("color",window.gmsMembershipTxtColor),s("body").addClass("gms-connected"),s(document).trigger("forceResizeHeader"),s(document).trigger("gms-connected")},g=function(){s("body").removeClass("gms-connected"),s(document).trigger("forceResizeHeader"),s(document).trigger("gms-disconnected")};o.d(t,["initGMS",0,function(){d(),s(".js-module-gms")?.length>0&&function(){let e=s(s("#gms-header-dropdown-menu").html());const t=s(s("#gms-header-dropdown-head-desktop").html());t.filter(".header-connected__dropdown").append(e),s(".js-insert-gms-header:not(.header-gms-container-mobile)").append(t);const o=s(s("#gms-header-dropdown-head-mobile").html()),n=o.find(".header-connected__dropdown-head").detach();e=s(s("#gms-header-dropdown-menu").html()),e.prepend(n),o.filter(".header-connected__dropdown").append(e),s(".js-insert-gms-header.header-gms-container-mobile").append(o),s("body").addClass("gms-data-loaded"),0==s(".js-gms-not-connected").length&&s(".header-gms-container-mobile").css("display","none")}(),function(){const e=s("#gms-navigation"),t=s(".breadcrumb-container:first");e.length&&t.length&&e.after(t.detach())}(),s(document).on("click","a.js-reservation-link, .js-galaxy-book-body",function(e){e.preventDefault();let t=m(this.href);t&&a(t)}).on("click",".js-offer-modal-trigger",function(){s(".modal-offer__select-container option").each(function(){let e=s(this),t=e.val();t.length>0&&e.val(m(t))})}).on("click",".js-gms-logout-action",function(e){e.preventDefault(),document.dispatchEvent(new CustomEvent("EVT_AMA_HOS_GMS_LOGOUT")),window.tcGMSHelpers.syncedStorage.removeItem("gms_profil_data"),window.tcGMSHelpers.syncedStorage.removeItem("gms_profile_id"),localStorage.removeItem("gms_token"),localStorage.removeItem("gms_user-token"),localStorage.removeItem("gms_token-type"),localStorage.removeItem("gms_synxis_token"),localStorage.removeItem("current_res"),"auth"==window.GMS_required_status?window.gmsLoginURL&&(document.location=window.gmsLoginURL):s(document).trigger("gmsProfilData")}).on("gmsProfilData",function(){d()})}])}}]);

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.