import{h as t}from"./p-c1e62c18.js";function n(t,n){return t?(Object.keys(t).forEach((o=>{n[t[o]||o]=function(t,n){if(!t.includes("."))return n[t];let o=n;return t.split(".").forEach((t=>{o&&(o=o[t])})),o}(o,n)})),n):n}const o=(o,e,i,c,r,u)=>{const{data:b,ui:a}=r;if(a.componentTag)return t(a.componentTag,{index:o,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:o}=t;return n(o,function(t,n){var o={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(o[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(e=Object.getOwnPropertySymbols(t);i<e.length;i++)n.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(t,e[i])&&(o[e[i]]=t[e[i]])}return o}(t,["conversionConfig"]))}(Object.assign(Object.assign(Object.assign({},(null==b?void 0:b.params)||{}),e),{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,o as g}