PageSourceSearch

https://uhishop.co.uk/assets/TmlStat.7f0c5d77.js

js uhishop.co.uk collected 2026-10-01 02:44:37 UTC 3,134 bytes, 2 lines download raw bytes

1import{_ as E,ba as w}from"./index.ddc2eb7f.js";import B from"./TmlPingEffect.adc4c29c.js";import I from"./TmlAnimatedNumber.cf3c735a.js";import{N as s,D as a,E as c,H as r,G as u,W as d,Q as v,S as _,f as h,U as g,R as p,a4 as o,a0 as l,F as C,a3 as T}from"./vue.00f7c436.js";import"./sentry.09480738.js";import"./animation.79625fb7.js";const N={name:"TmlStat",components:{TmlLoader:w,TmlPingEffect:B,TmlAnimatedNumber:I},props:{title:String,value:{type:[Number,String]},icon:Object,positiveIcon:Object,negativeIcon:Object,positiveExpression:Function,negativeExpression:Function,prefix:String,suffix:String,pingOnIncrease:Boolean,pingOnDecrease:Boolean,bold:Boolean,decimalPlaces:Number,align:{type:String,default:"center"},white:Boolean,statColour:String,inlineIcon:Boolean,titleType:{type:String,default:"p"},loading:Boolean,lightSpinner:Boolean,animate:Boolean,animationTime:{type:Number,default:1e3},polarityColouredStat:{type:Boolean,default:!1}},data(){return{ping:!1}},computed:{getIcon(){return this.negativeExpression&&this.negativeExpression(this.value)?this.negativeIcon:this.positiveExpression&&this.positiveExpression(this.value)?this.positiveIcon:this.icon},getClass(){return this.negativeExpression&&this.negativeExpression(this.value)?"negative":this.positiveExpression&&this.positiveExpression(this.value)?"positive":"neutral"}},watch:{value(t,i){(this.pingOnIncrease&&t>i||this.pingOnDecrease&&t<i)&&(this.ping=!0)}},methods:{round(t,i){return i!==null?(t||0).toLocaleString(void 0,{minimumFractionDigits:i,maximumFractionDigits:i}):(t||0).toLocaleString()}}};function D(t,i,e,k,f,n){const x=s("font-awesome-icon"),y=s("tml-ping-effect"),S=s("tml-animated-number"),b=s("tml-loader");return a(),c("div",{class:r(["tml-stat my-4 flex justify-center flex-wrap",[n.getClass,e.bold?"bold-stat":"",e.align]]),style:p({flexDirection:e.inlineIcon?"row":"column"})},[n.getIcon||t.$slots.icon||t.$slots.iconExtra?(a(),c("div",{key:0,class:r(["icon polarity-coloured mx-2 mb-4",{"text-white":e.white}])},[u(t.$slots,"icon",{},()=>[n.getIcon?(a(),d(x,{key:0,size:"lg",icon:n.getIcon},null,8,["icon"])):v("",!0)],!0),u(t.$slots,"icon-extra",{},void 0,!0)],2)):v("",!0),_("h3",{class:r(["mx-2 mb-4 postition-relative",{"text-white":e.white,"polarity-coloured":e.polarityColouredStat}])},[h(b,{loading:e.loading||e.value===null,height:"1em",light:e.lightSpinner,class:"relative"},{default:g(()=>[h(y,{modelValue:f.ping,"onUpdate:modelValue":i[0]||(i[0]=m=>f.ping=m)},null,8,["modelValue"]),_("span",{style:p({color:e.statColour})},[o(l(e.prefix)+" ",1),e.animate?(a(),d(S,{key:0,value:e.value,time:e.animationTime},{default:g(({animation:m})=>[o(l(n.round(m.berp,e.decimalPlaces)),1)]),_:1},8,["value","time"])):(a(),c(C,{key:1},[o(l(n.round(e.value,e.decimalPlaces)),1)],64)),o(" "+l(e.suffix)+" ",1),u(t.$slots,"value-extra",{},void 0,!0)],4)]),_:3},8,["loading","light"])],2),(a(),d(T(e.titleType),{class:r(["w-full",{"text-white":e.white}])},{default:g(()=>[o(l(e.title),1)]),_:1},8,["class"]))],6)}const P=E(N,[["render",D],["__scopeId","data-v-ed258952"]]);export{P as default};
2//# sourceMappingURL=TmlStat.7f0c5d77.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.