PageSourceSearch

https://www.melbournehotel.com.au/integration/tc-ext-guest-portal/…/gms-hero-image.f1660d3224e6535f4f69.js

js melbournehotel.com.au collected 2026-09-26 11:07:33 UTC 6,763 bytes, 2 lines download raw bytes

1/*! For license information please see gms-hero-image.f1660d3224e6535f4f69.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[295],{74862(e,s,t){t.r(s),t.d(s,{default:()=>l});var a=t(81610);const i={components:{},name:"HeroImageContent",props:{configs:{type:Object,required:!0,default:()=>({})},messages:{type:Object,default:()=>({})}},computed:{hasTitle(){return!!this.configs.showGuestName||!!this.messages.title.before.trim().length||!!this.messages.title.after.trim().length},hasBirthdayMessage(){if(this.configs.showBirthdayMessage){if(this.messages.birthday.before.trim().length)return!0;if(this.messages.birthday.after.trim().length)return!0}return!1},hasReservationMessage(){return!(!this.configs.showReservationyMessage||!this.messages.reservation.trim().length)},hasSubtitle(){return!!this.messages.subtitle.trim().length},hasContent(){return!!(this.hasTitle||this.hasBirthdayMessage||this.hasReservationMessage||this.hasSubtitle)},displayName(){return this.$store.getters.getFirstName||""}}};var r=t(67658);const o=(0,r.A)(i,function(){var e=this,s=e._self._c;return e.hasContent?s("div",{staticClass:"gms-hero-image--content js-gms-birthday-wrapper js-gms-upcoming-res-wrapper"},[s("div",{staticClass:"container"},[e.hasTitle?s("div",{staticClass:"gms-hero-title js-gms-hide-on-birthday",attrs:{role:"heading","aria-level":"1"}}
2,[e._v("\n      "+e._s(e.messages.title.before)+"\n      "),e.configs.showGuestName?s("span",{staticClass:"js-gms-fullname js-name-no-override"},[e._v(e._s(e.displayName))]):e._e(),e._v("\n      "+e._s(e.messages.title.after)+"\n    ")]):e._e(),e._v(" "),e.hasBirthdayMessage?s("div",{staticClass:"gms-hero-title on-birthday js-gms-on-birthday",attrs:{role:"heading","aria-level":"1"}},[e._v("\n      "+e._s(e.messages.birthday.before)+"\n      "),e.configs.showGuestName?s("span",{staticClass:"js-gms-fullname js-name-no-override"},[e._v(e._s(e.displayName))]):e._e(),e._v("\n      "+e._s(e.messages.birthday.after)+"\n    ")]):e._e(),e._v(" "),e.hasReservationMessage?s("div",{staticClass:"gms-hero-subtitle js-gms-upcoming-res js-gms-if-upcoming-res-show js-gms-replace-reservation"},[e._v("\n      "+e._s(e.messages.reservation)+"\n    ")]):e._e(),e._v(" "),e.hasSubtitle?s("div",{staticClass:"gms-hero-subtitle js-gms-if-upcoming-res-hide"},[e._v("\n      "+e._s(e.messages.subtitle)+"\n    ")]):e._e()])]):e._e()},[],!1,null,null,null).exports;var g=t(42971);const n={components:{HeroImageContent:o},name:"HeroImage",props:{configs:{type:Object,required:!0,default:()=>({})},messages:{type:Object,default:()=>({})}},data:()=>({user:JSON.parse((0,g.OK)())}),computed:{enabled(){return this.configs.enabled},getHeightType(){if(this.configs.height.trim().length&&"none"!=this.configs.height.trim().toLowerCase())return this.configs.height.trim().toLowerCase()},hasTierMobileImage(){return this.user.levelMobileImage?.trim().length>0},hasTierTabletImage(){return this.user.levelTabletImage?.trim().length>0},hasTierDesktopImage(){return this.user.levelDesktopImage?.trim().length>0},hasMobileImage(){return!!this.configs.images.mobile.src.trim().length},hasTabletImage(){return!!this.configs.images.tablet.src.trim().length},hasDesktopImage(){return!!this.configs.images.desktop.src.trim().length},hasOverlay(){return this.configs.overlay.enabled},overlayStyles(){let e={};return this.configs.overlay.enabled&&this.configs.overlay.height.trim().length&&(e.height=`${this.configs.overlay.height.trim()}px`),this.configs.overlay.enabled&&this.configs.overlay.color.trim().length&&(e.backgroundImage=`linear-gradient(to bottom, rgba(0, 0, 0, 0),${this.configs.overlay.color.trim()})`),e},getVerticalAlignment(){let e="center-align",s=this.configs.height.trim().toLowerCase();switch(this.configs.verticalAlignment.desktopAlignment){case"Top":e="top-align";break;case"Center":default:e="center-align";break;case"Bottom":e="bottom-align";break;case"No cropping":e="long"==s?"no-cropping":"center-align"}return e},getMobileVerticalAlignment(){let e="mobile-center-align",s=this.configs.height.trim().toLowerCase();switch(this.configs.verticalAlignment.mobileAlignment){case"Top":e="mobile-top-align";break;case"Center":default:e="mobile-center-align";break;case"Bottom":e="mobile-bottom-align";break;case"No cropping":e="long"==s?"mobile-no-cropping":"mobile-center-align"}return e},getHeroBackground(){let e=this.configs.verticalAlignment.backgroundSettings,s="",t="none",a="no-repeat",i="cover",r=this.configs.height.trim().toLowerCase();return"long"==r&&"color"==e.type.toLowerCase()&&(s=e.color?e.color:""),"long"==r&&"picture"==e.type.toLowerCase()&&(t=`url('${e.image}')`,a=e.repeat?"repeat":"no-repeat",i=e.repeat?"":"cover"),{"--hero-background-color":s,"--hero-background-image":t,"--hero-background-repeat":a,"--hero-background-size":i}},getHeroClasses(){return[this.getHeightType,this.getVerticalAlignment,this.getMobileVerticalAlignment].join(" ")}},mounted(){this.$nextTick(function(){(0,a.A)()})}},l=(0,r.A)(n,function(){var e=this,s=e._self._c;return e.enabled?s("div",{staticClass:"gms-hero-image-wrapper",class:e.getHeroClasses,style:e.getHeroBackground},[e.hasTierMobileImage||e.hasTierTabletImage||e.hasTierDesktopImage?s("picture",{staticClass:"gms-hero-image"},[e.hasTierMobileImage||e.hasTierDesktopImage?s("source",{attrs:{media:"(max-width: 767px)",srcset:e.hasTierMobileImage?e.user.levelMobileImage:e.user.levelDesktopImage}}):e._e(),e._v(" "),e.hasTierTabletImage?s("source",{attrs:{media:"(max-width: 1199px)",srcset:e.user.levelTabletImage}}
2):e._e(),e._v(" "),e.hasTierDesktopImage?s("img",{attrs:{src:e.user.levelDesktopImage,alt:e.user.levelName}}):e.hasTierTabletImage?s("img",{attrs:{src:e.user.levelTabletImage,alt:e.user.levelName}}):e.hasTierMobileImage?s("img",{attrs:{src:e.user.levelMobileImage,alt:e.user.levelName}}):e._e()]):s("picture",{staticClass:"gms-hero-image"},[e.hasMobileImage?s("source",{attrs:{media:"(max-width: 767px)",srcset:e.configs.images.mobile.src}}):e.hasDesktopImage?s("source",{attrs:{media:"(max-width: 767px)",srcset:e.configs.images.desktop.src}}):e._e(),e._v(" "),e.hasTabletImage?s("source",{attrs:{media:"(max-width: 1199px)",srcset:e.configs.images.tablet.src}}):e._e(),e._v(" "),e.hasDesktopImage?s("img",{attrs:{src:e.configs.images.desktop.src,alt:e.configs.images.desktop.alt}}):e.hasTabletImage?s("img",{attrs:{src:e.configs.images.tablet.src,alt:e.configs.images.tablet.alt}}):e.hasMobileImage?s("img",{attrs:{src:e.configs.images.mobile.src,alt:e.configs.images.mobile.alt}}):e._e()]),e._v(" "),s("hero-image-content",{attrs:{configs:e.configs,messages:e.messages}}),e._v(" "),e.hasOverlay?s("div",{staticClass:"gms-hero-image--slide__overlay",style:e.overlayStyles}):e._e()],1):e._e()},[],!1,null,null,null).exports}}]);

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.