import{n as s}from"./index-Ms_1iFoB.js";const a={mdi:{size:24,viewbox:"0 0 24 24"},"simple-icons":{size:24,viewbox:"0 0 24 24"},default:{size:0,viewbox:"0 0 0 0"}},l={name:"icon",props:{type:String,path:{type:String,required:!0},size:{type:[String,Number],default:24},viewbox:String,flip:{type:String,validator:i=>["horizontal","vertical","both","none"].includes(i)},rotate:{type:Number,default:0}},computed:{styles(){return{"--sx":["both","horizontal"].includes(this.flip)?"-1":"1","--sy":["both","vertical"].includes(this.flip)?"-1":"1","--r":isNaN(this.rotate)?this.rotate:this.rotate+"deg"}},defaults(){return a[this.type]||a.default},sizeValue(){return this.size||this.defaults.size},viewboxValue(){return this.viewbox||this.defaults.viewbox}}};var n=function(){var e=this,t=e._self._c;return t("svg",{style:e.styles,attrs:{width:e.sizeValue,height:e.sizeValue,viewBox:e.viewboxValue}},[t("path",{attrs:{d:e.path}})])},r=[],u=s(l,n,r,!1,null,"76aa6b74");const o=u.exports,d={props:{value:{type:Object,required:!0,default:()=>({align:"left",icon:"",size:24,iconStyle:"",displayValue:"",displayStyle:"",description:"",rawValue:void 0})}},components:{SvgIcon:o}};var v=function(){var e=this,t=e._self._c;return t("div",{attrs:{title:e.value.description}},[e.value!==void 0&&e.value.icon===""?t("span",{style:"padding-top: 4px; "+e.value.displayStyle},[e._v(e._s(e.value.displayValue))]):e._e(),e.value!==void 0&&e.value.icon!==""?t("v-layout",{attrs:{label:e.value.description,"justify-start":e.value.align==="left","justify-center":e.value.align==="center","justify-end":e.value.align==="right"}},[t("svg-icon",{style:e.value.iconStyle,attrs:{type:"mdi",path:e.value.icon,size:e.value.size||24}}),e.value!==void 0&&e.value.displayValue?t("span",{style:"padding-top: 4px; "+e.value.displayStyle},[e._v(e._s(e.value.displayValue))]):e._e()],1):e.value&&e.value.loading?t("v-progress-circular",{attrs:{color:"primary",size:e.value.size||24,indeterminate:""}}):e._e()],1)},p=[],c=s(d,v,p,!1,null,null);const f=c.exports;export{f as default};
