1import{c as l,w as y,n as i,l as u,g as s,m as o,h as r,a as m,e as k,o as t,t as c}from"./app-d55f542b.js";import{_ as g}from"./_plugin-vue_export-helper-c27b6911.js";const h={props:{href:{type:String,default:void 0},label:{type:String,default:void 0},more:{type:Boolean,default:!1},inertia:{type:Boolean,default:!0},color:{type:Boolean,default:!1},target:{type:String,default:"_blank"},details:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},moreLeft:{type:Boolean,default:!1},iconLeft:{type:String,default:void 0}},emits:["click","click:stop","click:prevent"]},x={key:0},v=["href","target"],w={key:0},B=["disabled"],L={key:0};function _(a,d,e,C,S,N){const n=k("cl-icon"),b=k("inertia-link");return e.inertia&&e.href?(t(),l(b,{key:0,class:i([{"text-blue-700 hover:text-black dark:text-blue-500 dark:hover:text-blue-300":e.color,"text-black hover:text-gray-700 dark:text-gray-200 dark:hover:text-gray-100":!e.color,"cursor-default":e.disabled,"rounded border border-gray-500 p-2 hover:border-gray-700 dark:border-gray-600 dark:hover:border-gray-400":e.bordered},"inline-flex items-center space-x-1.5 text-sm"]),href:e.disabled?"":e.href,onClick:d[0]||(d[0]=u(()=>{},["stop"]))},{default:y(()=>[o(a.$slots,"left"),e.iconLeft?(t(),l(n,{key:0,name:e.iconLeft,class:"mr-1 h-auto w-4"},null,8,["name"])):r("",!0),e.moreLeft?(t(),l(n,{key:1,class:"h-auto w-4",name:"more"})):r("",!0),o(a.$slots,"default",{},()=>[e.label?(t(),s("span",x,c(e.label),1)):r("",!0)]),e.more?(t(),l(n,{key:2,class:"h-auto w-4",name:"more"})):e.details?(t(),l(n,{key:3,class:i([{"text-gray-400 group-hover:text-gray-900 dark:text-gray-300 dark:group-hover:text-gray-100":!e.disabled,"text-gray-200 dark:text-gray-700":e.disabled},"h-auto w-5 -rotate-90 transform"]),name:"chevron-down"},null,8,["class"])):r("",!0),o(a.$slots,"right")]),_:3},8,["class","href"])):e.href?(t(),s("a",{key:1,class:i([{"text-blue-700 hover:text-black dark:text-blue-500 dark:hover:text-blue-300":e.color,"text-black hover:text-gray-700 dark:text-gray-300 dark:hover:text-gray-100":!e.color,"cursor-default":e.disabled,"rounded border border-gray-500 p-2 hover:border-gray-700 dark:border-gray-600 dark:hover:border-gray-400":e.bordered},"inline-flex items-center space-x-1.5 text-sm"]),href:e.disabled?"":e.href,target:e.target},[o(a.$slots,"left"),e.iconLeft?(t(),l(n,{key:0,name:e.iconLeft,class:"mr-1 h-auto w-4"},null,8,["name"])):r("",!0),o(a.$slots,"default",{},()=>[e.label?(t(),s("span",w,c(e.label),1)):r("",!0)]),e.more?(t(),l(n,{key:1,class:"h-auto w-4",name:"more"})):r("",!0),o(a.$slots,"right")],10,v)):(t(),s("button",{key:2,class:i([{"text-blue-700 hover:text-black dark:text-blue-500 dark:hover:text-blue-300":e.color,"text-black hover:text-gray-700 dark:text-gray-300 dark:hover:text-gray-100":!e.color&&!e.disabled,"cursor-not-allowed text-gray-600 dark:text-gray-500":e.disabled,"rounded border border-gray-500 p-2 hover:border-gray-700 dark:border-gray-600 dark:hover:border-gray-400":e.bordered},"focus:outline-none inline-flex items-center space-x-1.5 text-sm"]),disabled:e.disabled,onClick:[d[1]||(d[1]=f=>a.$emit("click")),d[2]||(d[2]=u(f=>a.$emit("click:stop"),["stop"])),d[3]||(d[3]=u(f=>a.$emit("click:prevent"),["prevent"]))]},[o(a.$slots,"left"),e.iconLeft?(t(),l(n,{key:0,name:e.iconLeft,class:"mr-1 h-auto w-4"},null,8,["name"])):r("",!0),m("span",null,[o(a.$slots,"default",{},()=>[e.label?(t(),s("span",L,c(e.label),1)):r("",!0)])]),e.more?(t(),l(n,{key:1,class:"h-auto w-4",name:"more"})):r("",!0),o(a.$slots,"right")],10,B))}const D=g(h,[["render",_]]);export{D as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.