PageSourceSearch

https://www.hetgoedemoment.org/assets/InputFile-B3AGMHIU.js

js hetgoedemoment.org collected 2026-10-04 01:25:26 UTC 1,611 bytes, 1 lines download raw bytes

1import{_ as I,j as N,u as S,i as C,r as k,o as u,g as c,a as w,b as o,n as f,e as F,h as V,f as D,t as $,l as j,p as A,m,M as E}from"./index-MSa8avpS.js";import{F as R}from"./Files-hQBUJWyi.js";import"./Image-3znyceed.js";const z=["id","accept","disabled","multiple"],M=["for"],T={__name:"InputFile",props:{id:String,accept:{type:String,default:"image/*"},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1}},emits:["change","dragover","dragleave"],setup(t,{expose:g,emit:v}){const _=t,n=v,{postSideNotification:y}=N(),{t:h}=S(),{id:b,accept:r,multiple:d}=C(_),i=A(),p=m(()=>b.value||"file"+E(1)),x=m(()=>new RegExp(r.value.replaceAll(/ |\+/g,"").split(",").join("|"))),B=s=>{const e=new R(s.target.files).filter(a=>{const l=x.value.test(a.type.replaceAll("+",""));return l||y({text:"errors.input_file_type_is_not_allowed",type:"error",delay:1e4,data:{name:a.name}}),l});e.length&&n("change",d.value?e:e[0]),i.value.value=""};return g({input:i}),(s,e)=>{const a=k("fa-icon");return u(),c("div",null,[w("input",{type:"file",class:f(["inputfile",{"inputfile--hidden":t.hidden}]),ref_key:"input",ref:i,id:p.value,accept:o(r),disabled:t.disabled,multiple:o(d),onDragover:e[0]||(e[0]=l=>n("dragover")),onDragleave:e[1]||(e[1]=l=>n("dragleave")),onChange:B},null,42,z),t.hidden?j("",!0):(u(),c("label",{key:0,for:p.value,class:f({"inputfile--disabled":t.disabled})},[F(a,{class:"margin__r--6",icon:["far","file-image"]}),V(s.$slots,"label",{},()=>[D($(o(h)("literal.upload_image")),1)],!0)],10,M))])}}},J=I(T,[["__scopeId","data-v-5e4846a6"]]);export{J 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.