import{f as l,aX as e}from"./utils-lib.js?v=20260328163632";import{B as n,E as i}from"./naive-ui.js?v=20260328163632";import{N as o,r as a,O as t,s}from"./base-lib.js?v=20260328163632";const r=r=>{const p=o(r.options)?r.options:a(r.options);return{BtOperation:o=>t("div",{class:"flex items-center"},[p.value.map((o=>{var a;if(!(null==o?void 0:o.hide))return"button"!==o.type&&(null==o?void 0:o.type)?"link"===o.type?t(n,s({text:!0,tag:"a",class:"mr-[10px]",href:null==o?void 0:o.href},o,{type:"primary",onClick:o.onClick},o.href?{target:"_blank"}:{}),{default:()=>[o.icon&&t(l,{icon:o.icon},null),o.label&&t("span",null,[o.label])]}):"dropdown"===o.type?t("div",{class:"flex"},[t(n,{class:"rounded-r-none",onClick:()=>o.onClick()},{default:()=>[o.label&&t("span",{class:"flex items-center",innerHTML:o.label},null)]}),t(i,{options:null==(a=o.options)?void 0:a.map((l=>e(l)?{label:l,key:l}:l)),"show-arrow":!0,onSelect:o.onClick,trigger:"hover"},{default:()=>[t(n,{class:"rounded-l-none relative -left-1px px-10px"},{default:()=>[t(l,{icon:"el-arrow-down"},null)]})]})]):"divider"===o.type?t("span",{class:"bg-light w-[1px] h-[16px] mx-[16px]"},null):o.render&&o.render():t(n,{title:o.title,icon:o.icon,type:(null==o?void 0:o.active)?"primary":"default",onClick:o.onClick},{default:()=>[o.icon&&t(l,{icon:o.icon,size:o.size||14,class:"mr-2px"},null),o.label&&t("span",{class:"flex items-center",innerHTML:o.label},null)]})}))])}};export{r as u};
