import{d as o,o as e,c as w,f as n,a as l,h as r,u as a}from"./index.DXvi0yH9.js";import{c as s}from"./createLucideIcon.D3XWtEmL.js";/**
 * @license lucide-vue-next v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d=s("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
 * @license lucide-vue-next v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p=s("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/**
 * @license lucide-vue-next v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c=s("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),m=["aria-sort"],v=o({__name:"SortHeader",props:{label:{},column:{},activeColumn:{},activeOrder:{}},emits:["sort"],setup(u){return(t,i)=>(e(),w("button",{type:"button",onClick:i[0]||(i[0]=h=>t.$emit("sort",t.column)),"aria-sort":t.activeColumn===t.column?t.activeOrder==="ASC"?"ascending":"descending":"none",class:"stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-gap-1 stwlite-tw-bg-transparent stwlite-tw-border-0 stwlite-tw-p-0 stwlite-tw-cursor-pointer stwlite-tw-text-xs stwlite-tw-font-medium stwlite-tw-text-gray-500 stwlite-tw-uppercase stwlite-tw-tracking-wider"},[n(l(t.label)+" ",1),t.activeColumn===t.column&&t.activeOrder==="ASC"?(e(),r(a(c),{key:0,"aria-hidden":"true",class:"stwlite-tw-w-3 stwlite-tw-h-3"})):t.activeColumn===t.column&&t.activeOrder==="DESC"?(e(),r(a(d),{key:1,"aria-hidden":"true",class:"stwlite-tw-w-3 stwlite-tw-h-3"})):(e(),r(a(p),{key:2,"aria-hidden":"true",class:"stwlite-tw-w-3 stwlite-tw-h-3 stwlite-tw-text-gray-400"}))],8,m))}});export{v as _};
