1import{_ as B}from"./DIheCY_a.js";import{d as D,Q as N,c as k,q as A,x as f,y as h,z as u,m as e,_ as $,K as l,I as q,H as F,r as _,P as K}from"./BJhlU1rR.js";import{f as S,s as T}from"./BOVKW5Xp.js";import{u as g}from"./BXgMM1f5.js";import{u as V}from"./8mnopAEE.js";import{u as E}from"./C3d4yHX3.js";import{f as I}from"./D0IrxXqU.js";import"./C4-wI4XM.js";import"./v9y1S7hN.js";import"./BkGlnVwb.js";import"./BHREDrN6.js";import"./D7eu--uw.js";import"./BwAlTTr4.js";const L={class:"flex flex-col gap-2xs"},te=D({__name:"phone",async setup(z){let i,p;const b=N(),v=V(),{t,locale:y}=k(),r=_(""),n=_(!1),x=([i,p]=A(()=>E()),i=await i,p(),i);async function C(s){var m,o,c;n.value=!0;const a=await I({mobile:(o=(m=s.tel.parsedPhoneNumber)==null?void 0:m.number)==null?void 0:o.e164},y);a.status===200?(await v.getData(),b.push({path:g("self-service-data"),query:{update:"mobile-phone"}})):(c=a.data)!=null&&c.errorAttributes&&a.data.errorAttributes[0].message?r.value=a.data.errorAttributes[0].message:r.value=t("dbc-error-server-issues"),n.value=!1}return(s,a)=>{const m=B,o=K("FormKit"),c=T,P=$;return f(),h(P,{name:"main-view",headline:e(t)("dbc-btn-text-change-mobile-phone")},{default:u(()=>[l(c,{pt:"formCardPassThrough"in s?s.formCardPassThrough:e(S)},{content:u(()=>[l(o,{actions:!1,type:"form","form-class":"rounded-lg p-4",onSubmit:C,"aria-invalid":e(r)},{default:u(({disabled:w,state:{valid:d}})=>[e(r)?(f(),h(m,{key:0,id:"errorBanner",severity:"warn",message:e(r)},null,8,["message"])):q("",!0),l(o,{id:"tel",type:"dbc-tel","label-input":e(t)("dbc-label-mobile-phone"),name:"tel",options:e(x)??["DE"],"placeholder-select":"DE","placeholder-input":`${e(t)("dbc-placeholder-mobile-phone")}`,validation:"required","label-select":e(t)("dbc-label-country"),"validation-messages":{rule_tel:`${e(t)("dbc-label-mobile-phone")} ${e(t)("dbc-error-invalid")}`}},null,8,["label-input","options","placeholder-input","label-select","validation-messages"]),F("div",L,[l(o,{type:"submit",id:"submit",label:d?e(t)("dbc-btn-text-change-mobile-phone"):e(t)("dbc-text-fill-in-mandatory-fields"),disabled:!!w||!d||e(n),loading:e(n),"aria-label":d?e(n)?e(t)("dbc-text-loading"):e(t)("dbc-btn-text-change-mobile-phone"):e(t)("dbc-text-fill-in-mandatory-fields")},null,8,["label","disabled","loading","aria-label"]),l(o,{type:"button",id:"abort",onClick:a[0]||(a[0]=H=>e(b).push({path:("usePagePath"in s?s.usePagePath:e(g))("self-service-data")})),label:e(t)("dbc-btn-abort")},null,8,["label"])])]),_:1},8,["aria-invalid"])]),_:1},8,["pt"])]),_:1},8,["headline"])}}});export{te 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.