PageSourceSearch

https://shop.mycma.ch/_nuxt/index.WUWh-wFc.js

js mycma.ch collected 2026-09-24 10:05:22 UTC 2,959 bytes, 7 lines download raw bytes

1import{N as g,aa as a,z as d,ad as m,a6 as u,P as t,Q as p,a7 as n,ab as l}from"./entry.IRopAhUk.js";import{C as h}from"./client-oauth2.7NV_tTky.js";import"./index.UNxH2UQT.js";const s={loggedOutInfoSlug:"my-moments-logged-out-info",skilineInfoSlug:"my-moments-skiline-info"},_={name:"MyMomentsIndex",components:{MyMoments:a(()=>l(()=>import("./my-moments.4X02lbXD.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),AuthPrompt:a(()=>l(()=>import("./auth-prompt.aBsyy3Xf.js"),__vite__mapDeps([5,1,2,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url))},setup(){d({title:"MyMoments"})},data(){return{...s}},computed:{...m({isGuest:"user/index/isGuest",isSkilineConnected:"user/index/isSkilineConnected",__:"config/__"}),shopLoginURL(){return this.$store.getters["config/byKey"]("shopLoginURL","#")},oAuthSettings(){return this.$store.getters["config/byKey"]("skilineOAuthSettings",null)},errorMessage(){return this.$route.query&&this.$route.query.status&&this.$route.query.status==="error"?"Your attempt to connect Skiline was not successful. Please try again.":""}},async mounted(){this.$digitalDataLayer?.pushPage({},!1,"",document.referrer);try{await Promise.all([this.$store.dispatch("user/index/loadSkilineToken"),this.$store.dispatch("skiline/loadResorts"),this.$store.dispatch("pages/loadBySlug",s.loggedOutInfoSlug),this.$store.dispatch("pages/loadBySlug",s.skilineInfoSlug),this.$store.dispatch("navigation/headerState","colored")])}catch(e){console.error(e)}},methods:{redirectToLogin(){return this.$router.push(this.localePath("/user/login"))},redirectToSkiline(){if(!this.oAuthSettings)return;const i=new h(this.oAuthSettings).token.getUri();window.location.replace(i)}}},k={class:"my-moments-wrapper bg-non-prominent"};function y(e,i,f,S,C,o){const r=u("AuthPrompt"),c=u("MyMoments");return t(),p("div",k,[e.isGuest?(t(),n(r,{key:0,"button-text":e.__("Login now"),"page-slug":e.loggedOutInfoSlug,onButtonClick:o.redirectToLogin},null,8,["button-text","page-slug","onButtonClick"])):e.isSkilineConnected?(t(),n(c,{key:2})):(t(),n(r,{key:1,"button-text":e.__("Connect Skiline"),"button-color":"#b871a9","page-slug":e.skilineInfoSlug,"error-message":o.errorMessage,onButtonClick:o.redirectToSkiline},null,8,["button-text","page-slug","error-message","onButtonClick"]))])}const P=g(_,[["render",y]]);export{P as default};
2function __vite__mapDeps(indexes) {
3  if (!__vite__mapDeps.viteFileDeps) {
4    __vite__mapDeps.viteFileDeps = ["./my-moments.4X02lbXD.js","./entry.IRopAhUk.js","./entry.O9KOVcsn.css","./customParseFormat.T8R2EfMS.js","./my-moments.u8hrDvpu.css","./auth-prompt.aBsyy3Xf.js","./rich-text-document.wOwJtSYQ.js","./generic-link.PubmXkgH.js","./index.tsdXPcWo.js","./link.bsqX5Gdx.js","./link.hcze6LbP.css","./rich-text-document.eJU1TWYj.css","./Button.ESSauv6W.js","./icon-svg.BWRi8_RI.js","./icon-svg.3pVHMq3X.css","./Button.eUkKJYuQ.css","./auth-prompt.fNGYxIhb.css"]
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.