(function(t){function e(e){for(var o,i,s=e[0],l=e[1],c=e[2],u=0,m=[];u({}),computed:{count(){return Math.ceil(this.items.length/this.showCount)}},methods:{showImg(t){const e=(t-1)*this.showCount;let a=e+this.showCount;return a>=this.items.length&&(a=this.items.length),this.items.slice(e,a)}}},P=M,L=(a("dce7"),a("2877")),T=Object(L["a"])(P,x,O,!1,null,null,null),I=T.exports,$=a("3f5e"),q={name:"Home",components:{CarouselMultiPic:I},data:()=>({logoList:null}),created(){let t=null;t=Object.keys(this.$route.query).length&&Object.prototype.hasOwnProperty.call(this.$route.query,"locale")?this.$route.query.locale:window.localStorage.getItem("locale"),null!==t&&this.$store.commit("locale/set",{locale:t}),this.loadLogo()},computed:{...Object(w["b"])("locale",["locale","localeItems"]),isShowZhTitle(){return"zh-tw"===this.locale},carouselLogo(){return null==this.logoList?[]:this.logoList.logo.map(t=>"https://vmx-production-webbucket-11jsmiztxwc9m.s3.ap-northeast-1.amazonaws.com/"+t)}},methods:{signInUrl(){try{$["a"].api("https://b5qmgoq4lk.execute-api.ap-northeast-1.amazonaws.com/Prod/oauth","POST",{operation:"loginUrl",redirectUrl:"https://portal.imacloud.com.tw/"}).then(t=>{this.routerHandler(t.data.data)})}catch(t){console.log("Failed to get sign in url! "+t)}},routerHandler(t){window.location.href=t},changeLocaleHandler(t){this.$store.commit("locale/set",{locale:t}),window.localStorage.setItem("locale",t)},loadLogo(){try{$["a"].api("info.json").then(t=>{this.logoList=t.data})}catch(t){console.log("Failed to load logo! "+t)}}}},B=q,H=(a("f970"),a("0a29"),a("e0b7"),Object(L["a"])(B,_,b,!1,null,null,null)),Z=H.exports,D=a("8c4f");o["a"].use(D["a"]);const z=[{path:"/",name:"Home",component:Z},{path:"/error",name:"Error",component:()=>a.e("chunk-2d22996d").then(a.bind(null,"dda8"))},{path:"*",redirect:"/error"}],U=new D["a"]({base:"",routes:z});var A=U;o["a"].config.productionTip=!1,new o["a"]({router:A,store:r["a"],vuetify:i["a"],i18n:n["a"],render:t=>t(Z)}).$mount("#app")},dce7:function(t,e,a){"use strict";a("0db4")},e0b7:function(t,e,a){"use strict";a("2813")},f970:function(t,e,a){"use strict";a("2870")}}); //# sourceMappingURL=index.08844e47.js.map