"use strict";(self["webpackChunkgolden_software"]=self["webpackChunkgolden_software"]||[]).push([[133],{1088:function(e,t,r){r.d(t,{cE:function(){return n},pQ:function(){return g},uK:function(){return a}});r(7658);const n={white:"bg-white text-black",light:"bg-gray-100 text-black",success:"bg-green-500 text-white",danger:"bg-red-500 text-white",warning:"bg-yellow-500 text-white",info:"bg-blue-500 text-white",gray:"bg-gray-500 text-white",orange:"bg-orange-500 text-white",purple:"bg-purple-500 text-white",pink:"bg-pink-500 text-white",indigo:"bg-indigo-500 text-white",teal:"bg-teal-500 text-white"},o={white:"hover:bg-gray-50",light:"hover:bg-gray-200",success:"hover:bg-green-600",danger:"hover:bg-red-600",warning:"hover:bg-yellow-600",info:"hover:bg-blue-600",gray:"hover:bg-gray-600",orange:"hover:bg-orange-600",purple:"hover:bg-purple-600",pink:"hover:bg-pink-600",indigo:"hover:bg-indigo-600",teal:"hover:bg-teal-600"},l={white:"border-gray-300",light:"border-gray-200 dark:border-gray-400",success:"border-green-600",danger:"border-red-600",warning:"border-yellow-600",info:"border-blue-600",gray:"border-gray-600",orange:"border-orange-600",purple:"border-purple-600",pink:"border-pink-600",indigo:"border-indigo-600",teal:"border-teal-600"},a={white:"text-black dark:text-gray-100",light:"text-gray-500 dark:text-gray-400",success:"text-green-500",litesuccess:"text-green-400",darksuccess:"text-green-800",danger:"text-red-500",warning:"text-yellow-500",info:"text-blue-500",sky:"text-sky-500",rose:"text-rose-500"},i=(a.white,l.white,a.light,l.light,a.success,l.success,a.danger,l.danger,a.warning,l.warning,a.info,l.info,{white:"hover:bg-gray-100 hover:text-gray-900 dark:hover:text-gray-900",light:"hover:bg-gray-100 hover:text-gray-900 dark:hover:text-gray-900",success:"hover:bg-green-500 hover:text-white",danger:"hover:bg-red-500 hover:text-white",warning:"hover:bg-yellow-500 hover:text-white",info:"hover:bg-blue-500 hover:text-white"}),g=(e,t,r)=>{const g=[t?a[e]:n[e],l[e]];return r&&g.push(t?i[e]:o[e]),g}},6133:function(e,t,r){r.r(t),r.d(t,{default:function(){return g}});r(7658);var n=r(3396),o=r(2268),l=r(1088),a={__name:"BaseButton",props:{label:{type:[String,Number],default:null},icon:{type:String,default:null},href:{type:String,default:null},target:{type:String,default:null},to:{type:[String,Object],default:null},type:{type:String,default:null},color:{type:String,default:"white"},colorName:{type:String,default:"teal"},as:{type:String,default:null},small:Boolean,outline:Boolean,active:Boolean,disabled:Boolean,effect:Boolean},setup(e){const t=e,r=(0,n.Fl)((()=>t.as?t.as:t.to?"router-link":t.href?"a":"button")),a=(0,n.Fl)((()=>"button"===r.value?t.type??"button":null)),i=(0,n.Fl)((()=>t.small&&t.icon?"px-1":"px-2")),g=(0,n.Fl)((()=>{let e=["inline-flex","cursor-pointer","justify-center","items-center","whitespace-nowrap","focus:outline-none","transition-colors","focus:ring","duration-150","border","rounded",t.active?"ring ring-black dark:ring-white":"ring-blue-700",t.small?"p-1":"p-2",(0,l.pQ)(t.color,t.outline,!t.disabled)];return t.disabled&&e.push("cursor-not-allowed",t.outline?"opacity-50":"opacity-70"),t.effect&&(e=[],e.push(t.small?"p-1":"p-2","relative inline-flex items-center justify-center overflow-hidden font-mono font-medium tracking-tighter text-white bg-gray-800 rounded-lg group")),e}));return(l,u)=>{const s=(0,n.up)("base-icon");return(0,n.wg)(),(0,n.j4)((0,n.LL)(r.value),{class:(0,o.C_)(g.value),href:e.href,type:a.value,to:e.to,target:e.target,disabled:e.disabled},{default:(0,n.w5)((()=>[e.icon?((0,n.wg)(),(0,n.j4)(s,{key:0,path:e.icon},null,8,["path"])):(0,n.kq)("",!0),e.effect?((0,n.wg)(),(0,n.iD)("span",{key:1,class:(0,o.C_)(`absolute w-0 h-0 transition-all duration-500 ease-out bg-${t.colorName}-700 rounded-full group-hover:w-56 group-hover:h-56 `)},null,2)):(0,n.kq)("",!0),e.effect?((0,n.wg)(),(0,n.iD)("span",{key:2,class:(0,o.C_)(`absolute inset-0 w-full h-full -mt-1 rounded-lg opacity-50 bg-gradient-to-b from-transparent via-transparent to-${t.colorName}-700`)},null,2)):(0,n.kq)("",!0),e.label&&e.effect?((0,n.wg)(),(0,n.iD)("span",{key:3,class:(0,o.C_)(["relative",i.value])},(0,o.zw)(e.label),3)):((0,n.wg)(),(0,n.iD)("span",{key:4,class:(0,o.C_)(i.value)},(0,o.zw)(e.label),3))])),_:1},8,["class","href","type","to","target","disabled"])}}};const i=a;var g=i}}]);
//# sourceMappingURL=133.debaedda.js.map