import{b as t,r as i,_ as c}from"./plugin-vueexport-helper-CbnxLGQU.js";import"./index-IODHZcPW.js";const s=VueDemi.defineComponent({name:"tmagic-img",props:{config:{type:Object,required:!0},iteratorIndex:Array,iteratorContainerId:Array,containerIndex:Number,model:{type:Object,default:()=>({})}},setup(e){const r=()=>{e.config.url&&(window.location.href=e.config.url)},n=t(e);return i(n),{clickHandler:r}}}),a=["src"];function d(e,r,n,l,u,f){return Vue.openBlock(),Vue.createElementBlock("img",{src:e.config.src,onClick:r[0]||(r[0]=(...o)=>e.clickHandler&&e.clickHandler(...o))},null,8,a)}const g=c(s,[["render",d]]);export{g as default}; //# sourceMappingURL=index-CpO1gUPV.js.map