import{h as t}from"./p-ec7718e6.js";function n(t,n){return t?(Object.keys(t).forEach((e=>{n[t[e]||e]=function(t,n){if(!t.includes("."))return n[t];let e=n;return t.split(".").forEach((t=>{e&&(e=e[t])})),e}(e,n)})),n):n}const e=(e,o,i,c,r,u)=>{const{data:b,ui:a}=r;if(a.componentTag)return t(a.componentTag,{index:e,item:i});const f=a.scale||"medium",s=a.shape||("icon-button"===a.buttonType?"circle":"rectangular"),l=a.tint||"primary",v=a.view||"solid",d="icon-button"===a.buttonType?a.label:void 0,j="icon-button"===a.buttonType?void 0:a.label,m="button"===(a.buttonType||"button")?"dvn-button":"dvn-icon-button",O=function(t={}){const{conversionConfig:e}=t;return n(e,function(t,n){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&n.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)n.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(e[o[i]]=t[o[i]])}return e}(t,["conversionConfig"]))}(Object.assign(Object.assign(Object.assign({},(null==b?void 0:b.params)||{}),o),{item:i}));return t(m,{abbrTitle:d,key:a.name,scale:f,shape:s,tint:l,view:v,iconName:a.iconName,onClick:()=>c.emit(Object.assign(Object.assign({},b),{name:a.name,params:O})),leaned:u?u.leaned:void 0},j)};export{n as c,e as g}