import{A as e,D as t,E as n,I as r,N as i,O as a,Xt as o,et as s,k as c,ot as l,qt as u,rt as d}from"./vue-vendor-DMUmTARL.js";import{t as f}from"./ProBadge-C3e4Zz30.js";var p={class:`flex-1`},m={class:`flex items-center text-base font-medium text-primary`},h={key:0,class:`mt-0.5 text-xs text-secondary`},g={key:1},_=r({__name:`AdminSettingHeader`,props:{title:{},description:{},icon:{},iconClass:{},containerClass:{},pro:{type:Boolean}},setup(r){let _=r,v=[[`bg-blue-50`,`dark:bg-blue-500/20`],[`text-blue-600`,`dark:text-blue-300`],[`bg-indigo-50`,`dark:bg-indigo-500/20`],[`text-indigo-600`,`dark:text-indigo-300`],[`bg-purple-50`,`dark:bg-purple-500/20`],[`text-purple-600`,`dark:text-purple-300`],[`bg-orange-50`,`dark:bg-orange-500/20`],[`text-orange-600`,`dark:text-orange-300`],[`bg-amber-50`,`dark:bg-amber-500/20`],[`text-amber-600`,`dark:text-amber-300`],[`bg-green-50`,`dark:bg-emerald-500/20`],[`text-green-600`,`dark:text-emerald-300`],[`bg-rose-50`,`dark:bg-rose-500/20`],[`text-rose-600`,`dark:text-rose-300`]],y=n(()=>{let e=_.iconClass||`bg-blue-50 text-blue-600`;return[e,...v.filter(([t])=>e.includes(t)).map(([e,t])=>t),`border border-current/10 dark:border-white/10`]});return(n,_)=>r.title||n.$slots.title?(s(),e(`div`,{key:0,class:u([`flex items-center gap-3`,r.containerClass])},[r.icon||n.$slots.icon?(s(),e(`div`,{key:0,class:u([`flex shrink-0 items-center justify-center rounded-lg p-1.5`,y.value])},[d(n.$slots,`icon`,{},()=>[(s(),a(l(r.icon),{class:`h-5 w-5`}))])],2)):c(``,!0),t(`div`,p,[t(`h3`,m,[d(n.$slots,`title`,{},()=>[i(o(r.title),1)]),r.pro?(s(),a(f,{key:0})):c(``,!0)]),r.description||n.$slots.description?(s(),e(`p`,h,[d(n.$slots,`description`,{},()=>[i(o(r.description),1)])])):c(``,!0)]),n.$slots.action?(s(),e(`div`,g,[d(n.$slots,`action`)])):c(``,!0)],2)):c(``,!0)}});export{_ as t};