PageSourceSearch

https://www.hetgoedemoment.org/assets/InputAmount-q3CZUZv3.js

js hetgoedemoment.org collected 2026-10-04 01:25:21 UTC 2,373 bytes, 1 lines download raw bytes

1import{_ as I,u as N,ag as g,F as T,x as q,M as z,o as n,g as u,a as O,b as a,t as i,l as m,e as j,n as S,H as v,f,z as E,m as o}from"./index-MSa8avpS.js";import{u as H}from"./useMoney-Co_2sL_v.js";import{_ as L,S as P,M as R}from"./InputCleave-B1QgYts0.js";const U=["for","aria-label"],_={key:0,class:"input--errors input--error"},G={__name:"InputAmount",props:E({id:{type:String,default:()=>Math.random().toString()},placeholder:{type:String,default:"..."},disabled:{type:Boolean,default:!1},currency:{type:String},showCurrency:{type:Boolean,default:!0},v:Object},{modelValue:{type:[Number,String],default:null},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const{t:l}=N(),{getCode:h,getThousandsSeparator:C,getDecimalsSeparator:M,getFractionDigits:V}=g(),{currency:$}=T(g()),{getFormatedAmount:k}=H(),d=q(e,"modelValue"),x=`input_amount${z(1)}`,r=o(()=>e.currency||$.value),A=o(()=>C(r.value)),y=o(()=>M(r.value)),B=o(()=>V(r.value)),c=o(()=>({delimiter:A.value,numeralDecimalMark:y.value,numeralDecimalScale:B.value,numeralPositiveOnly:!0,numeral:!0})),p=o({get:()=>d.value?(d.value/100).toString().replace(".",y.value):0,set:t=>d.value=Math.round(t.toFixed(2)*100)}),D=t=>t?R(t,c.value):"",w=t=>t?P(t,c.value):0,F=()=>e.v?.$touch();return(t,s)=>(n(),u("div",{class:S(["input--border input--radius bg__color--white",{"input--disabled":e.disabled}])},[O("div",{class:S({input__area:e.showCurrency})},[e.showCurrency?(n(),u("label",{key:0,for:e.id,class:"cursor--pointer","aria-label":a(l)(`currencies.${r.value.toLowerCase()}_label`)},i(a(h)(r.value)),9,U)):m("",!0),j(a(L),{type:"text",class:"input",id:e.id,placeholder:e.placeholder,name:x,disabled:e.disabled,options:c.value,format:D,unformat:w,modelValue:p.value,"onUpdate:modelValue":s[0]||(s[0]=b=>p.value=b),modelModifiers:{number:!0},onBlur:s[1]||(s[1]=b=>F())},null,8,["id","placeholder","disabled","options","modelValue"])],2),e.v?.$error?(n(),u("p",_,[e.v.numeric?.$invalid?(n(),u(v,{key:0},[f(i(a(l)("errors.input_number_not_numeric")),1)],64)):e.v.required?.$invalid?(n(),u(v,{key:1},[f(i(a(l)("errors.input_number_required")),1)],64)):e.v.minAmount?.$invalid?(n(),u(v,{key:2},[f(i(a(l)("errors.input_number_min_value_currency",{value:a(k)({amount:e.v.minAmount.$params.min,currency:r.value})})),1)],64)):m("",!0)])):m("",!0)],2))}},W=I(G,[["__scopeId","data-v-c9b9d85b"]]);export{W as default};

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.