PageSourceSearch

https://www.dekra-akademie.de/resource/1789527341000/eCom_FrontendV3/assets/js/EcomCountrySelection.js

js dekra-akademie.de collected 2026-09-25 04:07:41 UTC 1,528 bytes, 1 lines download raw bytes

1import{$ as y,C as g,R as b,S,V as C,g as h,m as l,y as x}from"./runtime-dom.esm-bundler.js";import{a as V}from"./useContext.js";import{s as B}from"./customvalidation.js";import{t as E}from"./Dropdown.js";import{t as q}from"./InfoIcon.js";var I=g({__name:"EcomCountrySelection",props:{modelValue:{default:"DE",type:String},name:{default:"country",type:String},label:{default:"",type:String},errorMessage:{default:"",type:String},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},invalid:{default:()=>({}),type:Object},helpText:{default:"",type:String}},emits:["update:modelValue","change","blur"],setup(e,{emit:s}){const a=e,o=s,{pageLabel:r}=V(),{countries:u,mapCountriesToOptions:i,findPreselectedCountry:d}=B(),c=l(()=>a.label||r("PlaceHolder_Country")),m=l(()=>a.errorMessage||r("CountryName_Invalid")),f=l(()=>i(u.value)),p=l(()=>a.modelValue?d(a.modelValue):{text:"",value:""});function v(t){o("update:modelValue",t.value),o("change",t)}return(t,n)=>(b(),h(E,{class:"relative",name:e.name,options:f.value,"pre-selected":p.value,label:c.value,"error-message":m.value,required:e.required,disabled:e.disabled,invalid:e.invalid,onInput:v,onBlur:n[0]||(n[0]=T=>o("blur"))},x({_:2},[t.$slots.icon||e.helpText?{name:"icon",fn:y(()=>[C(t.$slots,"icon",{},()=>[S(q,{class:"w-8 h-8 absolute right-3 inset-y-0 transform translate-y-1/2",text:e.helpText},null,8,["text"])])]),key:"0"}:void 0]),1032,["name","options","pre-selected","label","error-message","required","disabled","invalid"]))}}),P=I;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.