PageSourceSearch

https://www.shephards.com/integration/tc-theme/public/js/chunk/4774-797c335f73b995fe2501.js

js shephards.com collected 2026-09-29 08:49:24 UTC 8,661 bytes, 1 lines download raw bytes

1"use strict";(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[4774],{2637(t,e,o){var i=o(8972),s=o(958);const{isNullOrUndefined:n}=i._0,r={methods:{async fetchDynamicBrandData(){if(n(window.brandModule)||n(window.brandModule[this.configs.blockId]))return;const t=window.brandModule[this.configs.blockId].url;this.brandInfo=await s.b.getStorage("brand",t,!0),this.isLoadingBrand=!1},async fetchDynamicHotelsData(){if(n(window.hotelModule)||n(window.hotelModule[this.configs.blockId]))return;const t=window.hotelModule[this.configs.blockId].url;let e=[],o=await s.b.getStorage("hotels",t,!0);!n(this.configs.selectedHotelId)&&this.configs.selectedHotelId.length&&(e=a(o,this.configs.selectedHotelId)),(n(e)||0===e.length)&&(e=o),e&&(this.hotelsInfo=e,this.isLoadingHotels=!1)},async fetchDynamicHotelData(t=!0){if(n(window.hotelModule)||n(window.hotelModule[this.configs.blockId]))return;const e=window.hotelModule[this.configs.blockId].url;let o=[],i=await s.b.getStorage("hotels",e,!0);!n(this.configs.selectedHotelId)&&this.configs.selectedHotelId.length&&(o=l(i,this.configs.selectedHotelId)),(n(o)||0===o.length)&&(o=l(i,this.configs.hotelId)),o&&(this.hotelInfo=o,this.isLoadingHotel=!1)},async fetchDynamicPoisData(){if(n(window.poisModule)||n(window.poisModule[this.configs.blockId]))return;const t=window.poisModule[this.configs.blockId].url;let e=[],o=await s.b.getStorage("pois",t,!0),i=!n(this.configs.selectedHotelId)&&this.configs.selectedHotelId.length?this.configs.selectedHotelId:this.configs.hotelId;!n(this.configs.selectedHotelId)&&this.configs.selectedHotelId.length&&(e=o.filter(t=>t.hotel_id.find(t=>t===parseInt(i))===parseInt(i))),(n(e)||0===e.length)&&(e=o),e&&(this.poisInfo=e,this.isLoadingPois=!1)},async fetchDynamicCallOutData(){if(n(window.callOutModule)||n(window.callOutModule[this.configs.blockId]))return;const t=window.callOutModule[this.configs.blockId].url,e=this.configs.websiteType,o=parseInt(this.configs.selectedHotelId),i=await s.b.getStorage("callout",t,!0),r=d(i,e,o,this.configs.hotelId);r&&(this.calloutInfo=r),this.isLoadingCallout=!1},async fetchDynamicRoomsData(){if(n(window.roomsModule)||n(window.roomsModule[this.configs.blockId]))return;const t=window.roomsModule[this.configs.blockId].url,e=window.roomsModule[this.configs.blockId].categoryId,o=this.configs.websiteType;let i=await s.b.getStorage("rooms",t,!0),r=new Array,l=parseInt(this.configs.selectedHotelId);const a=d(i,o,l,this.configs.hotelId);a&&(i=a),e&&i.map(t=>{t.room_category_id===e?r.push(t):t.room_categories.length>0&&t.room_categories.map(o=>{o.id===e&&r.push(t)})}),this.roomsInfo=r,r.length>0?this.roomsInfo=r:e&&"0"!==e||(this.roomsInfo=i),this.isLoadingRooms=!1},async fetchDynamicSuitesData(){if(n(window.suitesModule)||n(window.suitesModule[this.configs.blockId]))return;const t=window.suitesModule[this.configs.blockId].url,e=window.suitesModule[this.configs.blockId].categoryId,o=this.configs.websiteType;let i=await s.b.getStorage("suites",t,!0),r=new Array,l=parseInt(this.configs.selectedHotelId);const a=d(i,o,l,this.configs.hotelId);a&&(i=a),e&&i.map(t=>{t.all_category_name.length>0&&t.all_category_name.map(o=>{o.id===e&&r.push(t)})}),this.suitesInfo=r,r.length>0?this.suitesInfo=r:e&&"0"!==e||(this.suitesInfo=i),this.isLoadingSuites=!1},async fetchDynamicMeetingRoomsData(){if(n(window.meetingRoomModule)||n(window.meetingRoomModule[this.configs.blockId]))return;const t=window.meetingRoomModule[this.configs.blockId].url,e=this.configs.websiteType,o=this.configs.categoryId,i=this.configs.featuredStatus;let r=await s.b.getStorage("meeting_room",t,!0),l=parseInt(this.configs.selectedHotelId),a=new Array;const c=d(r,e,l,this.configs.hotelId);c&&(r=c),o&&r.map(t=>{t.meeting_room_category_id===o?a.push(t):t.categories.length>0&&t.categories.map(e=>{e.id===o&&a.push(t)})}),i&&(a=a.length>0?a.filter(t=>{if(1===t.is_featured)return t}):r.filter(t=>{if(1===t.is_featured)return t})),a.length>0?this.meetingRoomInfo=a:this.meetingRoomInfo=r,this.isLoadingMeetingRoom=!1},async fetchDynamicRestaurantsData(){if(n(window.restaurantsModule)||n(window.restaurantsModule[this.configs.blockId]))return;const t=window.restaurantsModule[this.configs.blockId].url,e=this.configs.websiteType,o=this.configs.sliderBlock.featuredOnly;this.restaurantsInfo=await s.b.getStorage("restaurants",t,!0);let i=parseInt(this.configs.selectedHotelId);const r=d(this.restaurantsInfo,e,i,this.configs.hotelId);r&&(this.restaurantsInfo=r),o&&this.restaurantsInfo.length>0&&(this.restaurantsInfo=this.restaurantsInfo.filter(t=>{if(1===t.is_featured)return t})),this.isLoadingRestaurants=!1},async fetchDynamicOffersData(){if(n(window.offersModule)||n(window.offersModule[this.configs.blockId]))return;const t=window.offersModule[this.configs.blockId].url,e=window.offersCategoryModule[this.configs.blockId].url,o=window.offersModule,i=this.configs.featuredOnly,r=parseInt(this.configs.maxItemCount),l=window.offersModule[this.configs.blockId].category,d=await s.b.getStorage("offers",t,!0),c=await s.b.getStorage("offersCategory",e,!0),h=this.configs.websiteType;let f=!1,g=new Array,u=parseInt(this.configs.selectedHotelId),p=[];if(c.map(t=>{t.category_offer_mb_id===parseInt(l)&&p.push(t.offer_id)}),"brand"===h&&!u&&this.configs?.hotelId?(g=d.filter(t=>{if(t.brand_id?.length&&t.brand_id?.includes(parseInt(this.configs.hotelId)))return t}),g.sort(function(t,e){return t.position_b-e.position_b})):"hotel"===h&&this.configs?.hotelId?u=parseInt(this.configs.hotelId):(g=d,g.sort(function(t,e){return t.position_b-e.position_b})),u&&(g=d.filter(t=>{let e=a(t.hotel,u);if(f=!0,e.length)return t})),i&&(g=g.filter(t=>{if(1===t.is_featured)return t})),l.length&&(g=g.filter(function(t){return this.includes(t.id)},p)),r>1&&g.length>r){let t=Array();g.map((e,o)=>{o<r&&t.push(e)}),g=t}g.length>0&&g.map(t=>{let e=t.hotel,i=t.booking_engine_urls,s=new Array,n=new Array,r=new Array;e.length>0&&(s=e.filter(t=>{if(t.location_id===parseInt(o.locationId))return n.push(t.id),t})),s.length>0&&(t.hotel=s,t.hotelIDs=n),i.length>0&&n.length>0&&(r=i.filter(e=>{if(n.includes(parseInt(e.id))&&""!==e.url)return t})),r.length>0?t.booking_engine_urls=r:t.booking_engine_urls=[],f&&(t.nb_hotel=1)}),this.offersInfo=g,this.isLoadingOffers=!1},async fetchDynamicAmenitiesMBData(){if(n(window.amenitiesMbModule)||n(window.amenitiesMbModule[this.configs.blockId]))return;const t=window.amenitiesMbModule[this.configs.blockId].url;let e=await s.b.getStorage("amenities_mb",t,!0);this.amenitiesMBInfo=e,this.isLoadingAmenitiesMB=!1}}},l=function(t,e){return t.find(t=>
1t.id===parseInt(e))},a=function(t,e){return t.filter(t=>t.id===parseInt(e))},d=(t,e,o,i)=>{let s=o;return"hotel"===e&&i&&(s=parseInt(i)),!!s&&t.filter(t=>{if(t.hotel_id===s)return t})};o.d(e,["A",0,r])},8434(t,e,o){o.d(e,{A:()=>a});var i=o(1425);const s=["id"];var n=o(8972);const{fireEvent:r}=n.Wp,l={name:"BlockWrapper",props:{classList:{type:String},blockStyles:{type:Object},anchorId:String},computed:{cssProps(){if(!this.blockStyles)return;const t=this.blockStyles;let e="",o="left",i="none",s="no-repeat",n="initial",r="initial",l=15,a=15,d=15,c=15,h=15,f=15;t.textColor&&(e=t.textColor),t.textAlign&&(o=t.textAlign);let g=t.backgroundSettings;g&&("color"===g.type?i=`${g.color}`:"picture"===g.type&&(i=`url('${g.image}')`,g.repeat?s="repeat":(s="no-repeat",n="center",r="cover")));let u=t.paddingSettings;return u&&(u.desktop?.enabled&&(u.desktop?.top&&(l=u.desktop.top),u.desktop?.bottom&&(a=u.desktop.bottom)),u.tablet?.enabled&&(u.tablet?.top&&(d=u.tablet.top),u.tablet?.bottom&&(c=u.tablet.bottom)),u.mobile?.enabled&&(u.mobile?.top&&(h=u.mobile.top),u.mobile?.bottom&&(f=u.mobile.bottom))),{"--base-content-color":e,"--base-content-alignment":o,"--wrapper-background":i,"--wrapper-background-repeat":s,"--wrapper-background-position":n,"--wrapper-background-size":r,"--wrapper-desktop-padding-top":l+"px","--wrapper-desktop-padding-bottom":a+"px","--wrapper-tablet-padding-top":d+"px","--wrapper-tablet-padding-bottom":c+"px","--wrapper-mobile-padding-top":h+"px","--wrapper-mobile-padding-bottom":f+"px"}},processedAnchorId(){if(this.anchorId)return this.removeSpecialCharactersAndSpaces(this.anchorId)}},methods:{removeSpecialCharactersAndSpaces:t=>t.replace(/[^a-zA-Z0-9]/g,"")},mounted(){document.body.classList.contains("header3")&&this.anchorId&&r("hc::block::mounted",{name:this.anchorId,anchorId:this.processedAnchorId})}},a=(0,o(6262).A)(l,[["render",function(t,e,o,n,r,l){return(0,i.uX)(),(0,i.CE)("div",{id:l.processedAnchorId,class:(0,i.C4)(["block-wrapper common-component",o.classList]),style:(0,i.Tr)(l.cssProps)},[(0,i.RG)(t.$slots,"default")],14,s)}]])}}]);

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.