import{h as t}from"./p-1ea36ff3.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=(n,o,i,c,r,u)=>{const{data:a,ui:b}=r;return b.componentTag?t(b.componentTag,{index:n,item:i,data:a}):t("button"===(b.buttonType||"button")?"dvn-button":"dvn-icon-button",{abbrTitle:"icon-button"===b.buttonType?b.label:void 0,key:b.name,scale:b.scale||"medium",shape:b.shape||("icon-button"===b.buttonType?"circle":"rectangular"),tint:b.tint||"primary",view:b.view||"solid",iconName:b.iconName,onClick:()=>c.emit(e(o,i,a,b.name)),leaned:u?u.leaned:void 0},"icon-button"===b.buttonType?void 0:b.label)},e=(t,o,e,i)=>{const c=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==e?void 0:e.params)||{}),t),{item:o}));return Object.assign(Object.assign({},e),{name:i||e.name,params:c})};export{o as a,n as c,e as g}