1"use strict";(self["webpackChunkfrontend"]=self["webpackChunkfrontend"]||[]).push([[1734],{3953:function(e,a,l){const t={props:{model:Object,modelValue:[String,Number,Boolean,Array,Object],id:String,type:String,name:String,maxlength:[String,Number],placeholder:String,autocomplete:String,mandatory:{type:Boolean,default:!1},rows:String,multiple:Boolean,error:String,customProps:Object,index:{type:Number},isComponent:{type:String},prevComponent:{type:String},nextComponent:{type:String}}};l.d(a,["D",0,t])},5193:function(e,a,l){l.r(a),l.d(a,{default:function(){return c}});var t=l(9726);const i=["name","id","data-umb","multiple","data-val","data-val-required","onChange"],n=["for"],r=["name","value"];function o(e,a,l,o,d,s){const u=(0,t.g2)("BaseFormField");return a[0]||((0,t.Vq)(-1),a[0]=(0,t.bF)(u,(0,t.v6)(e.$props,{"module-suffix":"__file-upload",class:e.$style["base-file-upload"]}),{default:(0,t.k6)(({variant:a,isFormChild:l,cssModule:o})=>[(0,t.Lk)("div",{class:(0,t.C4)([e.$style["base-file-upload__wrapper"],o("__wrapper")])},[(0,t.Lk)("input",{class:(0,t.C4)([e.$style["base-file-upload__input"],o("__input"),{"input-validation-error":!!e.error}]),type:"file",name:e.name||e.model?.name,id:e.id||e.model?.id,"data-umb":e.id||e.model?.id,multiple:e.multiple||e.model?.allowMultipleFileUploads,"data-val":!e.isValid||"","data-val-required":e.isValid?"":e.model.requiredErrorMessage,onChange:e.uploadFiles},null,42,i),(0,t.Lk)("div",{class:(0,t.C4)([e.$style["base-file-upload__content"],o("__content")])},[(0,t.Lk)("label",{for:e.id||e.model.id,class:(0,t.C4)([e.$style["base-file-upload__label"],e.$style["variant--"+a],{[e.$style["form--child"]]:l},o("__label"),o("variant--"+a),{[o("form--child")]:l}])},[(0,t.Lk)("span",null,(0,t.v_)(e.customProps?.buttonLabel||"Choose file"),1)],10,n),(0,t.bo)((0,t.Lk)("span",{class:(0,t.C4)([e.$style["base-file-upload__files"],o("__files")])}," ("+(0,t.v_)([...new Set(e.currentFiles.concat(e.uploadedFiles))].join(", "))+") ",3),[[t.aG,e.currentFiles.length||e.uploadedFiles.length]])],2),((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(e.modelValue||e.model?.values,a=>((0,t.uX)(),(0,t.CE)("input",{key:a,type:"hidden",name:(e.name||e.model?.name)+"_file_"+e.getFileName(a),value:a},null,8,r))),128))],2)]),_:1},16,["class"]),(0,t.Vq)(1),a[0])}l(3725),l(1339);var d=l(3953),s=(0,t.pM)({props:{...d.D.props,modelValue:Array},setup(e,{emit:a}){const l=(0,t.EW)(()=>(e.modelValue||e.model?.values)?.map(e=>r(e))||[]),i=(0,t.KR)([]),n=e=>{const l=e.target.files;i.value=l?Array.from(l).map(e=>e.name):[],a("update:modelValue",i.value)},r=e=>e.replace(/^.*[\\\/]/,"").replace(/^.*\*\*\*\|\*\*\*/,"");return{currentFiles:l,uploadedFiles:i,uploadFiles:n,getFileName:r,isValid:(0,t.EW)(()=>e.model?.mandatory&&!!e.model?.values&&e.model?.values.length||!e.model?.mandatory)}}}),u={"base-file-upload__input":"base-file-upload__input__f1cee1","base-file-upload__label":"base-file-upload__label__a155a9","form--child":"form--child__e21e59","variant--primary":"variant--primary__a59272","variant--secondary":"variant--secondary__f81ca8","variant--cta":"variant--cta__a0dab9","variant--orange":"variant--orange__e13aef","variant--red":"variant--red__d5bdf4","variant--white":"variant--white__af3f2a","variant--grey":"variant--grey__d46b58","variant--file-upload":"variant--file-upload__f8df79","variant--modal-close":"variant--modal-close__d59249","variant--default":"variant--default__ab536b","variant--default-inverted":"variant--default-inverted__a66853","is--loading":"is--loading__ce011b",disabled:"disabled__d25aa6","base-file-upload__content":"base-file-upload__content__f0b7b1"},p=l(6262);const _={};_["$style"]=u;const m=(0,p.A)(s,[["render",o],["__cssModules",_]]);var c=m}}]);
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.