PageSourceSearch

https://www.mob.ch/_nuxt/interest-card.4P0K1lSl.js

js mob.ch collected 2026-10-02 04:50:52 UTC 3,663 bytes, 7 lines download raw bytes

1import{K as h,aa as m,a3 as k,M as f,a4 as w,a5 as v,Q as a,S as r,a7 as o,a8 as c,N as y,ay as _,a6 as B}from"./entry.nP9U-F0k.js";import{J as C}from"./Button.s7BydATz.js";import"./generic-link.9desWZgJ.js";import"./index.tsdXPcWo.js";const I={name:"InterestLikeButton",components:{JButton:C},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 D(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",D],["__scopeId","data-v-6c4e9ff1"]]),L=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(()=>L),void 0,import.meta.url)),ResponsiveImage:o(()=>c(()=>import("./image.RXEYfakc.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))}}},M={class:"interest__card__wrapper"},P={class:"interest__body"},x={class:"interest__body__text"};function R(e,s,i,p,l,t){const n=k("ResponsiveImage"),b=g;return f(),y("div",M,[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",P,[a("p",x,B(e.__(i.interest.title)),1)])],2)])}const A=h(z,[["render",R],["__scopeId","data-v-5f6cc5d2"]]);export{A as default};
2function __vite__mapDeps(indexes) {
3  if (!__vite__mapDeps.viteFileDeps) {
4    __vite__mapDeps.viteFileDeps = ["./image.RXEYfakc.js","./entry.nP9U-F0k.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.