1import{g as z,k as U,A as C,o as n,c as _,w as b,a as c,e as r,_ as D,B as I,s as R,u as e,b as h,C as d,d as i,f as N,an as P,h as k,G as T,D as E,ao as F}from"./CO3rmisD.js";import j from"./CRi5lzwR.js";import{_ as q}from"./CyMLsrLF.js";import{_ as G}from"./C2kDVKXN.js";import L from"./CpNIp6Dl.js";import M from"./DodfbJgy.js";import O from"./CII5e-e6.js";import"./CuGWsV6L.js";import"./Cb5Zzlfc.js";import"./LcFuntGO.js";try{let u=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new u.Error().stack;p&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[p]="73fee3f1-50d6-4e20-9643-b6426c5f59e8",u._sentryDebugIdIdentifier="sentry-dbid-73fee3f1-50d6-4e20-9643-b6426c5f59e8")}catch{}const H={class:"text-center"},J={class:"container max-w-full mx-auto",style:{width:"800px"}},K={key:0,class:"grid grid-cols-1 sm:grid-cols-2 sm:gap-lg"},Q={key:3,class:"flex gap-lg"},W={class:"flex gap-lg justify-center mt-2xl"},ne={__name:"Address",setup(u){const p=z();U();const g=C(),y=N().public.brand,o=k(!1),s=k({setAddress:!0,zip:"",city:"",street:"",building:"",stair:"",door:""}),v=()=>{s.value={...s.value,...o.value},p.errors.address={}},w=async()=>{P({id:"setAddress",data:s.value,form:"address",success:async l=>{await T(),g.push(E("profile")),F(d("address_text_changeAddressSuccess"))}})};return(l,a)=>{const f=D,$=j,A=q,m=G,B=L,V=M,S=O;return n(),_(S,null,{default:b(()=>[c("h1",H,[r(f,{name:"address_headline_changeAddress"})]),c("div",J,[r($,{requests:"setAddress"}),c("form",{onSubmit:a[8]||(a[8]=I(t=>w(),["prevent"])),id:"address"},[r(B,null,{default:b(()=>[r(A,{id:"city",onAddressFound:v,modelValue:e(o),"onUpdate:modelValue":a[0]||(a[0]=t=>R(o)?o.value=t:null)},null,8,["modelValue"]),e(o)?(n(),h("div",K,[e(o)?(n(),_(m,{key:0,modelValue:e(s).zip,"onUpdate:modelValue":a[1]||(a[1]=t=>e(s).zip=t),name:"zip",id:"zip",label:("__"in l?l.__:e(d))("global_label_zip"),placeholder:("__"in l?l.__:e(d))("global_label_zip$placeholder"),readonly:!!e(o).zip,autocomplete:"postal-code"},null,8,["modelValue","label","placeholder","readonly"])):i("",!0),e(o)?(n(),_(m,{key:1,modelValue:e(s).city,"onUpdate:modelValue":a[2]||(a[2]=t=>e(s).city=t),name:"city",id:"city",label:("__"in l?l.__:e(d))("global_label_city"),placeholder:("__"in l?l.__:e(d))("global_label_city$placeholder"),readonly:!!e(o).city,autocomplete:"address-level2"},null,8,["modelValue","label","placeholder","readonly"])):i("",!0),e(o)?(n(),_(m,{key:2,modelValue:e(s).street,"onUpdate:modelValue":a[3]||(a[3]=t=>e(s).street=t),name:"street",id:"street",label:("__"in l?l.__:e(d))("global_label_street"),placeholder:("__"in l?l.__:e(d))("global_label_street$placeholder"),readonly:!!e(o).street,autocomplete:"street-address"},null,8,["modelValue","label","placeholder","readonly"])):i("",!0),e(o)?(n(),h("div",Q,[e(o)?(n(),_(m,{key:0,modelValue:e(s).building,"onUpdate:modelValue":a[4]||(a[4]=t=>e(s).building=t),name:"building",id:"building",class:"w-full",label:("__"in l?l.__:e(d))("global_label_building"),placeholder:("__"in l?l.__:e(d))("global_label_building$placeholder"),autocomplete:"address-line1"},null,8,["modelValue","label","placeholder"])):i("",!0),e(o)&&e(y)!=="hotsi"?(n(),_(m,{key:1,modelValue:e(s).stair,"onUpdate:modelValue":a[5]||(a[5]=t=>e(s).stair=t),name:"stair",id:"stair",class:"w-full",label:("__"in l?l.__:e(d))("global_label_stair"),placeholder:("__"in l?l.__:e(d))("global_label_stair$placeholder"),autocomplete:"address-line2"},null,8,["modelValue","label","placeholder"])):i("",!0),e(o)&&e(y)!=="hotsi"?(n(),_(m,{key:2,modelValue:e(s).door,"onUpdate:modelValue":a[6]||(a[6]=t=>e(s).door=t),name:"door",id:"door",class:"w-full",label:("__"in l?l.__:e(d))("global_label_door"),placeholder:("__"in l?l.__:e(d))("global_label_door$placeholder"),autocomplete:"address-line3"},null,8,["modelValue","label","placeholder"])):i("",!0)])):i("",!0)])):i("",!0)]),_:1}),c("div",W,[r(V,{color:"outline",onClick:a[7]||(a[7]=t=>e(g).back())},{default:b(()=>[r(f,{name:"global_action_back"})]),_:1}),r(V,{type:"submit"},{default:b(()=>[r(f,{name:"global_action_save"})]),_:1})])],32)])]),_:1})}}};export{ne as default};
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.