PageSourceSearch

https://www.matterhorngotthardbahn.ch/_nuxt/interest-card.afWijK9T.js

js matterhorngotthardbahn.ch collected 2026-10-02 03:10:31 UTC 3,694 bytes, 7 lines download raw bytes

1import{L as h,ad as m,a6 as k,N as f,a7 as w,a8 as v,R as a,T as r,aa as o,ab as c,O as C,aC as _,a9 as y}from"./entry.EKnbqgTX.js";import{J as B}from"./Button.fhvNspso.js";import"./generic-link.koezWb8b.js";import"./index.tsdXPcWo.js";import"./icon-svg.V2h_sL4l.js";const I={name:"InterestLikeButton",components:{JButton:B},props:{like:{type:Boolean},title:{type:String,required:!1,default:""}},computed:{...m({translate:"config/translate"}),iconClass(){return{"james-icon-heart-outline":!this.like,"james-icon-heart":this.like}},buttonClass(){return{liked:this.like}},ariaLabel(){const e=this.like?"button.dislike.aria_label":"button.like.aria_label";return this.translate(e,null,{"{title}":this.title})}}};function L(e,s,i,p,l,t){const n=k("JButton");return f(),w(n,{"aria-label":t.ariaLabel,neutral:"",class:r(["like-button like-button--add-shadow",t.buttonClass])},{default:v(()=>[a("span",{class:r(["like-button__icon",t.iconClass])},null,2)]),_:1},8,["aria-label","class"])}const g=h(I,[["render",L],["__scopeId","data-v-6c4e9ff1"]]),D=Object.freeze(Object.defineProperty({__proto__:null,default:g},Symbol.toStringTag,{value:"Module"})),d=576,u=1200,z={name:"InterestCard",components:{InterestLikeButton:o(()=>c(()=>Promise.resolve().then(()=>D),void 0,import.meta.url)),ResponsiveImage:o(()=>c(()=>import("./image.JWT_36EI.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url))},props:{interest:{type:Object,required:!0},interestPage:{type:Boolean}},data(){return{isMobile:!1,like:!1,isDesktop:!0}},computed:{...m({__:"config/__"}),imageWidth(){return this.interestPage&&this.isDesktop?360:this.isMobile?158:220},imageHeight(){return this.interestPage&&this.isDesktop?270:this.isMobile?118:165},cardClass(){return{"interest__card--page":this.interestPage}}},mounted(){window.addEventListener("resize",this.windowResize),this.isMobile=window.innerWidth<=d,this.isDesktop=window.innerWidth>=u},unmounted(){window.removeEventListener("resize",this.windowResize)},methods:{windowResize(e){e.target.innerWidth>=u?(this.isDesktop=!0,this.isMobile=!1):e.target.innerWidth>d?(this.isMobile=!1,this.isDesktop=!1):(this.isMobile=!0,this.isDesktop=!1)},async likeCard(e){this.like?(this.$emit("dislike"),this.like=!1,await this.$store.dispatch("user/interest/unlikeInterest",e)||(this.like=!0)):(this.$emit("like"),this.like=!0,await this.$store.dispatch("user/interest/likeInterest",e)||(this.like=!1))}}},P={class:"interest__card__wrapper"},R={class:"interest__body"},x={class:"interest__body__text"};function M(e,s,i,p,l,t){const n=k("ResponsiveImage"),b=g;return f(),C("div",P,[a("button",{class:r(["james-div-styles interest__card",t.cardClass]),type:"button",onClick:s[0]||(s[0]=E=>t.likeCard(i.interest.id))},[_(n,{"focus-area":i.interest.imageFocusArea,lazy:"",url:i.interest.image.url,"image-alt-text":i.interest.image.title,"image-title-tag":i.interest.image.title,"image-configurations":[],"fallback-width":t.imageWidth,"fallback-height":t.imageHeight,"intrinsic-width":t.imageWidth,"intrinsic-height":t.imageHeight},null,8,["focus-area","url","image-alt-text","image-title-tag","fallback-width","fallback-height","intrinsic-width","intrinsic-height"]),_(b,{class:"interest__like-button",like:l.like,title:e.__(i.interest.title)},null,8,["like","title"]),a("div",R,[a("p",x,y(e.__(i.interest.title)),1)])],2)])}const J=h(z,[["render",M],["__scopeId","data-v-5f6cc5d2"]]);export{J as default};
2function __vite__mapDeps(indexes) {
3  if (!__vite__mapDeps.viteFileDeps) {
4    __vite__mapDeps.viteFileDeps = ["./image.JWT_36EI.js","./entry.EKnbqgTX.js","./entry.O9KOVcsn.css","./image.PFnR9wBi.js","./safe-access.ZLlTBWHi.js"]
5  }
6  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
7}

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.