import{s as e,t,u as n,x as r}from"./_plugin-vue_export-helper-CCRG-STz.js";import{i}from"./vuex.esm-bundler-Ci4zImA8.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(t,i,a,c,l,u){return r(),n(`div`,o,[e(`img`,{src:l.currentImage,alt:``},null,8,s)])}var l=t(a,[[`render`,c],[`__scopeId`,`data-v-08127df6`]]);export{l as default};
//# sourceMappingURL=ImageContent-CPT-Hw_S.js.map