1"use strict";(globalThis.webpackChunkwips_components_scripts||=[]).push([[15837],{e0d9ebdefeb04c8f(e,a,t){t.r(a),t.d(a,{default:()=>c});var l=t("b641633d6c906d19"),d=t("82d8eefb58430341");const i={class:"image-input"},o=["id","autocomplete","disabled","name","placeholder","readonly","required"],n=["value"];var u=t("ff648e253e9692fe"),r=t("365a0dd40e975768"),s=t("edce56f4b3afa74f");const p={extends:u.A,mixins:[r.A],name:"WInputTypeImage",props:{allowGraphic:{type:Boolean,default:()=>!1},allowImage:{type:Boolean,default:()=>!0}},computed:{fileTypesList(){return[...this.allowImage?["image"]:[],...this.allowGraphic?["graphic"]:[]]}},methods:{selectImage(){s.A.getFiles(e=>{this.currentValue=e[0].url},this.fileTypesList)}}},c=(0,t("461bee8a7784aa7f").A)(p,[["render",function(e,a,t,u,r,s){return(0,l.uX)(),(0,l.CE)("div",i,[(0,l.bo)((0,l.Lk)("input",(0,l.v6)({id:e.inputId,autocomplete:e.autocomplete,disabled:e.disabled,name:e.name,placeholder:e.placeholder,readonly:e.readonly,required:e.required,type:"text","onUpdate:modelValue":a[0]||(a[0]=a=>e.currentValue=a)},(0,l.Tb)(e.events,!0)),null,16,o),[[d.Jo,e.currentValue]]),(0,l.Lk)("input",{onClick:a[1]||(a[1]=e=>s.selectImage()),type:"button",value:e.$t("Select image")},null,8,n)])}],["__scopeId","data-v-53e50f2a"]])}}]);
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.