"use strict";const e=require("vue"),d=require("./Shape-D-NzWRg3.cjs"),a=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u=["id"],s={class:"vue-data-ui-legend-item"},g=["onClick","height","width"],f={__name:"Legend",props:{legendSet:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}},id:{type:String,default:""}},emits:["clickMarker"],setup(t,{emit:l}){function r(o,i){l("clickMarker",{legend:o,i})}return(o,i)=>(e.openBlock(),e.createElementBlock("div",{id:t.id,class:"vue-data-ui-legend",style:e.normalizeStyle(`background:${t.config.backgroundColor};font-size:${t.config.fontSize}px;color:${t.config.color};padding-bottom:${t.config.paddingBottom}px;padding-top:${t.config.paddingTop||12}px;font-weight:${t.config.fontWeight}`)},[e.renderSlot(o.$slots,"legendTitle",{titleSet:t.legendSet},void 0,!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.legendSet,(n,c)=>(e.openBlock(),e.createElementBlock("div",s,[n.shape?(e.openBlock(),e.createElementBlock("svg",{key:0,onClick:h=>r(n,c),height:t.config.fontSize,width:t.config.fontSize,viewBox:"0 0 20 20",style:e.normalizeStyle(`overflow: visible;opacity:${n.opacity}`)},[e.createVNode(d._sfc_main,{shape:n.shape,radius:9,stroke:"none",plot:{x:10,y:10},fill:n.color},null,8,["shape","fill"])],12,g)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"item",{legend:n,index:c},void 0,!0)]))),256))],12,u))}},k=a._export_sfc(f,[["__scopeId","data-v-a5a45422"]]);exports.Legend=k;
