1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./chunk-vendor-vue-tel-input-C1UdxEgb.js","./chunk-vendor-runtime-B9_QDvFA.js","./assets/vendor-vue-tel-input-BOZuHHa1.css"])))=>i.map(i=>d[i]); 2import{_ as U,A as G,d as C,l as H,P as R,a as M}from"./entry-entry-CpB_oO5m.js";import{_ as z,a as J}from"./chunk-index-BG11ZAR1.js";import{_ as X}from"./chunk-useReviewDecryptPrefill-WxRpOvh9.js";import{b as B,j as o,c as _,p as Y,l as Z,aa as K,B as Q,C as n,T as r,I as p,H as m,V as W,Z as c,ai as O,J as j,a4 as ee,X as ae,L as te,Y as le,G as oe}from"./chunk-vendor-runtime-B9_QDvFA.js";import{u as ne}from"./chunk-index-3tBD5d43.js";const re={class:"field-block__wrap"},se={class:"field-block__controls"},ue={__name:"BasePhone",props:{theme:{type:String,default:"light"},label:{type:String,default:""},placeholder:{type:String,default:""},name:{type:String,default:""},modelValue:{type:[String,Number],default:""},customError:{type:String,default:""},validator:{type:[Object,Boolean],default:!1},disabled:{type:Boolean,default:!1},defaultCountry:{type:[Boolean,String],default:!1},tooltip:{type:String,default:""}},emits:["update:modelValue","change","input","isValid"],setup(l,{emit:S}){const w=ee({loader:()=>C(()=>import("./chunk-vendor-vue-tel-input-C1UdxEgb.js").then(t=>t.v),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>t.VueTelInput)}),a=l,u=S,v=B("registerValidator",null),V=B("unregisterValidator",null),I=G(),y=o(()=>a.defaultCountry?a.defaultCountry:I.code),g=_(null),f=_(!1),i=_(a.modelValue??""),{newPhoneVaildation:E}=ne();C(()=>import("./chunk-vendor-vue-tel-input-C1UdxEgb.js").then(t=>t.a),__vite__mapDeps([0,1,2]),import.meta.url),Y(()=>a.modelValue,()=>{a.modelValue===""&&(i.value="")});const s=o(()=>{var t;return!!((t=a==null?void 0:a.validator)!=null&&t.required)}),d=o(()=>{var t,e;return a.validator&&((e=(t=a.validator.$errors)==null?void 0:t[0])==null?void 0:e.$message)||a.customError}),P=o(()=>{const t=["field-block input-block",`field-block_theme-${a.theme}`];return d.value&&t.push("input-block_error"),t}),D=R((t,e)=>{e!=null&&e.formatted&&(u("update:modelValue",e.number),u("change",e.number),f.value=e.valid,u("isValid",e.valid))},50),x={input(t,e){e!=null&&e.formatted&&(e!=null&&e.country)?D(t,e):g.value=50,f.value=!!(e!=null&&e.valid),u("isValid",!!(e!=null&&e.valid))}},k=o(()=>a.name||"phone"),L=()=>s.value&&!a.modelValue?!1:f.value;Z(()=>{s.value&&v&&v(k.value,{phone:E(L)})}),K(()=>{s.value&&V&&V(k.value)});const T=o(()=>s.value&&!a.label?`${a.placeholder} *`:a.placeholder),$=o(()=>({mode:"national",defaultCountry:y.value,autoFormat:!0,dropdownOptions:{showDialCodeInSelection:!0,showSearchBox:!0,width:"260px",disabled:!1,searchBoxPlaceholder:"",showDialCodeInList:!0,showFlags:!0,tabindex:0},validCharactersOnly:!1,inputOptions:{autocomplete:"off",maxlength:g.value,showSearchBox:!0,showDialCode:!1,placeholder:T.value,name:a.name,id:a.name},autoDefaultCountry:!1,disabled:a.disabled,preferredCountries:["US","CA","IN","DE","FR","GB","IT"]}));return(t,e)=>{const b=z,A=H,N=M,h=X,q=J;return n(),Q("div",{class:oe(P.value)},[l.label?(n(),r(b,{key:0,"for-name":l.name,required:s.value,text:l.label},null,8,["for-name","required","text"])):p("",!0),m("div",re,[W(A,null,{default:c(()=>[(n(),r(O,null,{fallback:c(()=>e[3]||(e[3]=[m("span",{class:"input-fallback"},null,-1)])),default:c(()=>[(n(),r(j(w),ae({key:y.value,value:i.value,modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=F=>i.value=F)},{...t.$attrs,...$.value},{onClick:e[1]||(e[1]=te(()=>{},["stop"]))},le(x),{onOnInput:x.input,class:"text-md border-sm input-block__input"}),{"arrow-icon":c(()=>e[2]||(e[2]=[m("span",{class:"input-block__dropdown-icon"},null,-1)])),_:1},16,["value","modelValue","onOnInput"]))]),_:1}))]),_:1}),m("div",se,[d.value&&!l.disabled?(n(),r(N,{key:0,path:"form-fields",i:"error",class:"field-block__error-icon"})):l.tooltip?(n(),r(h,{key:1,content:l.tooltip,icon:"addon-info2","bg-color":!1,class:"field-block__tooltip"},null,8,["content"])):p("",!0)])]),d.value&&!l.disabled?(n(),r(q,{key:1,text:d.value},null,8,["text"])):p("",!0)],2)}}},_e=U(ue,[["__scopeId","data-v-53095ea3"]]);export{_e as _};
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.