import{c as e,d as t,t as n,w as r}from"./_plugin-vue_export-helper-Conii5fq.js";import{i}from"./vuex.esm-bundler-CDO_-3pz.js";var a={name:`ImageContent`,data(){return{defaultImage:`/images/homepage1.png`,currentImage:`/images/homepage1.png`}},computed:{...i([`menuData`])},watch:{$route:{immediate:!0,handler(){this.updateImage()}}},methods:{updateImage(){let e=this.$route.path,t=this.menuData,n=this.findMenuItemByPath(t,e);n&&n.image?this.currentImage=`/images/${n.image}`:this.currentImage=this.defaultImage},findMenuItemByPath(e,t){for(let n of e){if(n.link===t)return n;if(n.submenu){let e=this.findMenuItemByPath(n.submenu,t);if(e)return e}}return null}}},o={class:`side-image`},s=[`src`];function c(n,i,a,c,l,u){return r(),t(`div`,o,[e(`img`,{src:l.currentImage,alt:``},null,8,s)])}var l=n(a,[[`render`,c],[`__scopeId`,`data-v-08127df6`]]);export{l as default};
//# sourceMappingURL=ImageContent-C7mJWORV.js.map