import{c as i,b as c}from"./BasePage-aJlR_RJI.js";import{_ as b}from"./USelect.vue_vue_type_script_setup_true_lang-Cw4e8KSA.js";import{_ as V}from"./UInput.vue_vue_type_script_setup_true_lang-BjaSJgmr.js";import{m as f,f as $,h as v,o as h,w as n,a as d}from"./index-CdEV5Lsj.js";const A={__name:"AddressForm",props:f({states:{type:Array,default:()=>[]}},{modelValue:{type:Object,default:()=>({})},modelModifiers:{}}),emits:["update:modelValue"],setup(u){const e=$(u,"modelValue");return(l,a)=>{const t=V,m=i,r=b,p=c;return h(),v(p,null,{default:n(()=>[d(t,{modelValue:e.value.accountName,"onUpdate:modelValue":a[0]||(a[0]=o=>e.value.accountName=o),label:l.$t("label.nameOnAccount"),placeholder:l.$t("placeholder.nameOnAccount")},null,8,["modelValue","label","placeholder"]),d(m,null,{default:n(()=>[d(t,{modelValue:e.value.address,"onUpdate:modelValue":a[1]||(a[1]=o=>e.value.address=o),label:l.$t("label.address"),placeholder:l.$t("placeholder.address")},null,8,["modelValue","label","placeholder"]),d(t,{modelValue:e.value.city,"onUpdate:modelValue":a[2]||(a[2]=o=>e.value.city=o),label:l.$t("label.city"),placeholder:l.$t("placeholder.city")},null,8,["modelValue","label","placeholder"])]),_:1}),d(m,null,{default:n(()=>{var o;return[d(r,{modelValue:e.value.state,"onUpdate:modelValue":a[3]||(a[3]=s=>e.value.state=s),searchable:"",options:u.states,label:l.$t("label.state"),placeholder:l.$t("placeholder.state"),disabled:!((o=u.states)!=null&&o.length),"value-key":"value"},null,8,["modelValue","options","label","placeholder","disabled"]),d(t,{modelValue:e.value.zipCode,"onUpdate:modelValue":a[4]||(a[4]=s=>e.value.zipCode=s),label:l.$t("label.zipCode"),placeholder:l.$t("placeholder.zipCode")},null,8,["modelValue","label","placeholder"])]}),_:1})]),_:1})}}};export{A as _};
