1import{L as g,a9 as a,z as m,ac as d,a4 as u,N as t,O as p,a5 as n,aa as l}from"./entry.PaVUAErV.js";import{C as h}from"./client-oauth2.XPK7XmWI.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.dUM7FOcT.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),AuthPrompt:a(()=>l(()=>import("./auth-prompt.7oQXRkvb.js"),__vite__mapDeps([5,1,2,6,7,8,9,10,11,12,13,14]),import.meta.url))},setup(){m({title:"MyMoments"})},data(){return{...s}},computed:{...d({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 L=g(_,[["render",y]]);export{L as default}; 2function __vite__mapDeps(indexes) { 3 if (!__vite__mapDeps.viteFileDeps) { 4 __vite__mapDeps.viteFileDeps = ["./my-moments.dUM7FOcT.js","./entry.PaVUAErV.js","./entry.O9KOVcsn.css","./customParseFormat.Vm8uRMdO.js","./my-moments.u8hrDvpu.css","./auth-prompt.7oQXRkvb.js","./rich-text-document.uGnGtynR.js","./generic-link.aHjndsKA.js","./index.tsdXPcWo.js","./link.9CXS5nMR.js","./link.hcze6LbP.css","./rich-text-document.eJU1TWYj.css","./Button.YHDSgye5.js","./Button.ZpRhhRh-.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.