text: var e=Object.defineProperty,a=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=(a,t,r)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[t]=r;import{d as n,r as l,e as s,c as o,a as u,t as d,b as c,w as p,M as f,m,F as b,C as v,o as y}from"./globals.a6fc57ea.js";var g=n({name:"ComponentListItem",components:{},props:{fieldAttributes:Object,instructions:String,label:{type:String,required:!0},name:{type:String,required:!0},options:{type:Array,required:!0},placeholder:String,required:{type:Boolean,default:!1},startingValue:{type:String,default:""}},emits:["value-changed"],setup:e=>{const n=l({fieldValue:""});return n.fieldValue=JSON.parse(JSON.stringify(e.startingValue)),((e,n)=>{for(var l in n||(n={}))t.call(n,l)&&i(e,l,n[l]);if(a)for(var l of a(n))r.call(n,l)&&i(e,l,n[l]);return e})({},s(n))},methods:{setFieldValue(e){this.fieldValue=e}},watch:{fieldValue(){this.$emit("value-changed",this.fieldValue)}}});const h={class:"heading"},w={class:"input ltr"},V={class:"select fullwidth"};g.render=function(e,a,t,r,i,n){return y(),o("div",{id:`${e.name}-field`,class:"field"},[u("div",h,[u("label",{id:`${e.name}-label`,class:e.required?"required":null,for:e.name},d(e.label),11,["id","for"])]),e.instructions?(y(),o("div",{key:0,id:`${e.name}-instructions`,class:"instructions"},[u("p",{innerHTML:e.instructions},null,8,["innerHTML"])],8,["id"])):c("",!0),u("div",w,[u("div",V,[p(u("select",m({id:e.name,"onUpdate:modelValue":a[1]||(a[1]=a=>e.fieldValue=a),name:e.name,"aria-describedby":e.instructions?`${e.name}-instructions`:null},e.fieldAttributes),[(y(!0),o(b,null,v(e.options,(e=>(y(),o("option",{key:e.value,value:e.value},d(e.label),9,["value"])))),128))],16,["id","name","aria-describedby"]),[[f,e.fieldValue]])])])],8,["id"])};const k={},O={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},j=u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"},null,-1),S=u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"},null,-1);k.render=function(e,a){return y(),o("svg",O,[j,S])};export{g as _,k as a};
  