PageSourceSearch

https://dev.app.uscore.no/assets/UInputNumber-W9qV1UQB.js

js uscore.no collected 2026-10-09 17:05:55 UTC 1,891 bytes, 1 lines download raw bytes

1import{$ as e,E as t,L as n,V as r,Y as i,dt as a,m as o,tt as s,u as c,y as l}from"./runtime-core.esm-bundler-jrQIZ0n_.js";import{t as u}from"./UInput-b4JOCE1m.js";var d=(e=`0`,t=2)=>(typeof e==`string`?parseFloat(e):e).toFixed(t).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1 `),f=e=>e===0?e.toString():e?(e=e.toString(),e.replace(`.`,`,`)):``,p=l({__name:`UInputNumber`,props:t({label:{},required:{type:Boolean,default:!1},placeholder:{default:``},disabled:{type:Boolean},name:{default:``},maxlength:{},minlength:{},size:{},autocomplete:{default:`off`},hasDecimal:{type:Boolean,default:!0},helperAlwaysVisible:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let l=t,p=i(t,`modelValue`),m=a(``);e(()=>p.value,e=>{m.value=h(e,l.hasDecimal&&(e??0)%1!=0)},{immediate:!0}),e(()=>m.value,e=>{l.hasDecimal?p.value=g(e,/[,.][0-9]+/.test(e)):p.value=g(e,!1)});function h(e,t=!0){if(e===void 0)return``;if(!t)return d(e,0);let n=0;return e%1!=0&&(n=e*10%1==0?1:2),f(d(e,n))}function g(e,t=!0){if(e===``||e===`0,0`)return;let n;return n=t?parseFloat(e.replace(`,`,`.`).replace(/[^0-9.]/g,``)):parseInt(e.replace(/[^0-9.]/g,``)),isNaN(n)?void 0:n}function _(){m.value=m.value.replace(/[^0-9., ]/g,``)}return(e,i)=>(n(),c(u,{modelValue:m.value,"onUpdate:modelValue":i[0]||=e=>m.value=e,minlength:t.minlength,maxlength:t.maxlength,size:t.size,placeholder:t.placeholder,required:t.required,disabled:t.disabled,autocomplete:t.autocomplete,label:t.label,name:t.name,"helper-always-visible":t.helperAlwaysVisible,onBlur:_},o({_:2},[e.$slots.before?{name:`before`,fn:s(()=>[r(e.$slots,`before`)]),key:`0`}:void 0,e.$slots.after?{name:`after`,fn:s(()=>[r(e.$slots,`after`)]),key:`1`}:void 0]),1032,[`modelValue`,`minlength`,`maxlength`,`size`,`placeholder`,`required`,`disabled`,`autocomplete`,`label`,`name`,`helper-always-visible`]))}});export{p as t};

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.