"use strict";(self["webpackChunkgolden_software"]=self["webpackChunkgolden_software"]||[]).push([[412,660,967],{5660:function(e,t,l){l.r(t),l.d(t,{default:function(){return p}});l(7658);var a=l(3396),r=l(2268),n=l(9242),u=l(6526);const o={key:0,class:"flex items-stretch border-b border-blue-100 dark:border-gray-700"},i=["onClick"],s={key:1,class:"text-center py-24 text-gray-500 dark:text-gray-400"};var d={__name:"CardComponent",props:{title:{type:String,default:null},emptyMessage:{type:String,default:"Please Upload File…"},icon:{type:String,default:null},headerIcon:{type:String,default:null},rounded:{type:String,default:"md:rounded"},hasTable:Boolean,empty:Boolean,form:Boolean,hoverable:Boolean,color:Boolean},emits:["headerIconClicked","submit"],setup(e,{emit:t}){const l=e,d=(0,a.Fl)((()=>l.form?"form":"div")),f=(0,a.Fl)((()=>{const e=[l.rounded];return l.hoverable&&e.push("hover:shadow-xl hover:shadow-[#1670ff70] hover:border-[#80808040] transition duration-500 border"),l.color&&e.push("md:rounded-md lg:rounded-xl shadow-xl shadow-[#1670ff]/[0.2] bg-gradient-to-br from-[#1670ff20] via-[#1670ff10] to-[#1670ff00]"),e})),p=(0,a.Fl)((()=>l.headerIcon??u.Shd)),c=()=>{t("headerIconClicked")},g=e=>{t("submit",e)};return(t,l)=>{const u=(0,a.up)("base-icon");return(0,a.wg)(),(0,a.j4)((0,a.LL)(d.value),{class:(0,r.C_)([f.value,"bg-white border border-blue-100 shadow-lg shadow-blue-100 dark:bg-gray-800 dark:border-gray-700 dark:shadow-md dark:shadow-gray-800"]),onSubmit:g},{default:(0,a.w5)((()=>[e.title?((0,a.wg)(),(0,a.iD)("header",o,[(0,a._)("p",{class:(0,r.C_)(["flex items-center py-3 flex-grow font-bold",[e.icon?"px-4":"px-6"]])},[e.icon?((0,a.wg)(),(0,a.j4)(u,{key:0,path:e.icon,class:"mr-3",size:"20"},null,8,["path"])):(0,a.kq)("",!0),(0,a.Uk)(" "+(0,r.zw)(e.title),1)],2),p.value?((0,a.wg)(),(0,a.iD)("a",{key:0,href:"#",class:"flex items-center py-3 px-4 justify-center ring-blue-700 focus:ring","aria-label":"more options",onClick:(0,n.iM)(c,["prevent"])},[(0,a.Wm)(u,{path:p.value,size:"20"},null,8,["path"])],8,i)):(0,a.kq)("",!0)])):(0,a.kq)("",!0),e.empty?((0,a.wg)(),(0,a.iD)("div",s,[(0,a._)("p",null,(0,r.zw)(e.emptyMessage),1)])):((0,a.wg)(),(0,a.iD)("div",{key:2,class:(0,r.C_)({"p-6":!e.hasTable})},[(0,a.WI)(t.$slots,"default")],2))])),_:3},40,["class"])}}};const f=d;var p=f},5412:function(e,t,l){l.r(t),l.d(t,{default:function(){return c}});var a=l(3396),r=l(2268),n=l(5660),u=l(4967);const o={key:0,class:"text-center space-y-1 md:text-left md:mr-6"},i={class:"text-xl"},s={class:"text-lg leading-tight font-semibold text-gray-500 dark:text-gray-400"},d={key:0,class:"text-3xl leading-tight font-semibold"};var f={__name:"CardWidget",props:{number:{type:Number,default:0},icon:{type:String,default:null},prefix:{type:String,default:null},suffix:{type:String,default:null},label:{type:String,default:null},color:{type:String,default:null},trend:{type:String,default:null},trendType:{type:String,default:null},empty:Boolean},setup(e){return(t,l)=>{const f=(0,a.up)("base-level"),p=(0,a.up)("base-icon");return(0,a.wg)(),(0,a.j4)(n["default"],{hoverable:""},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{type:"justify-start"},{default:(0,a.w5)((()=>[e.empty?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",o,[(0,a._)("h2",i,(0,r.zw)(e.number),1)]))])),_:1}),(0,a.Wm)(f,{mobile:""},{default:(0,a.w5)((()=>[(0,a._)("div",null,[(0,a._)("h3",s,(0,r.zw)(e.label),1),e.empty?((0,a.wg)(),(0,a.iD)("h1",d,[(0,a.Wm)(u["default"],{value:e.number,prefix:e.prefix,suffix:e.suffix},null,8,["value","prefix","suffix"])])):(0,a.kq)("",!0)]),e.icon?((0,a.wg)(),(0,a.j4)(p,{key:0,path:e.icon,size:"48",w:"",h:"h-16",class:(0,r.C_)(e.color)},null,8,["path","class"])):(0,a.kq)("",!0)])),_:1})])),_:1})}}};const p=f;var c=p},4967:function(e,t,l){l.r(t),l.d(t,{default:function(){return s}});var a=l(3396),r=l(2268),n=l(4870);const u={class:"text-lg leading-tight text-gray-500 dark:text-gray-400"};var o={__name:"GrowingNumber",props:{prefix:{type:String,default:null},suffix:{type:String,default:null},value:{type:Number,default:0},duration:{type:Number,default:500}},setup(e){const t=e,l=(0,n.iH)(0),o=(0,a.Fl)((()=>t.value)),i=e=>{const t=Math.ceil(l.value+e);if(t>o.value)return l.value=o.value,!1;l.value=t,setTimeout((()=>{i(e)}),25)},s=()=>{i(t.value/(t.duration/25))};return(0,a.YP)(o,(()=>{s()})),(0,a.bv)((()=>{s()})),(t,l)=>((0,a.wg)(),(0,a.iD)("div",null,[(0,a.Uk)((0,r.zw)(e.prefix)+" ",1),(0,a._)("span",u,(0,r.zw)(e.suffix),1)]))}};const i=o;var s=i}}]);
//# sourceMappingURL=412.93b420a4.js.map