PageSourceSearch

https://302.ai/_nuxt/tLgwF2vl.js

js 302.ai collected 2026-09-25 19:22:01 UTC 42,835 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BDtqlYrC.js","./BgSMWdKf.js","./8aDKkotK.js"])))=>i.map(i=>d[i]);
2import{n as he,aO as pt,bW as ft,ad as G,Y as Te,y as le,c9 as mt,o as w,c as N,Q as ke,b0 as ue,U as T,a as W,j as E,k as U,t as K,a7 as me,ai as Ge,R as ht,L as vt,P as yt,bX as gt,bY as Fe,aU as Oe,x as v,m as L,br as be,g as Ue,D as Re,e as H,Z as Ce,T as bt,_ as Ae,ca as We,w as _,b as O,ba as Pe,cb as Ke,cc as He,cd as Ct,G as wt,d as De,A as re,ce as _t,cf as St}from"./7sqbLYD6.js";import{F as It,a as xt}from"./CcVkeUWj.js";import{I as kt}from"./D6yMKjHN.js";import{A as Ot}from"./BaVuc2ay.js";import{S as Me}from"./HljoNYmk.js";import{P as Dt}from"./DMO6_Ktr.js";import{R as Qe}from"./Duw-4cq5.js";import{n as Nt,p as Bt,w as Tt,i as Ee}from"./BpQBPfDL.js";import{u as Je}from"./bsuM6hrK.js";import{I as Ye}from"./DLDciKMC.js";import"./CTFkmXix.js";import{r as Ze}from"./BTPuOec1.js";import{C as Xe}from"./DBsXxCsL.js";import{s as et}from"./BgC1I2in.js";let Ne=null,Rt=null;async function At(){if(!Ne){console.log("🔥 Lazy loading Firebase...");try{const e=await he(()=>import("./BDtqlYrC.js"),__vite__mapDeps([0,1]),import.meta.url);Ne=e.firebaseApp,Rt=e.analytics,console.log("✅ Firebase loaded successfully")}catch(e){throw console.error("❌ Failed to load Firebase:",e),e}}return Ne}async function Mt(){const e=await At(),{getAuth:r}=await he(async()=>{const{getAuth:p}=await import("./8aDKkotK.js");return{getAuth:p}},__vite__mapDeps([2,1]),import.meta.url);return r(e)}function Lt(){var e=Nt(arguments),r=e.text,p=e.options,s=e.metadata;return Bt(r,p,s)}function fe(){return Tt(Lt,arguments)}const Vt=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (République démocratique du C
vendor: 7,009 bytes, line 2
2ongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["North Macedonia (Северна Македонија)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],
vendor: 3,356 bytes, line 2
2Ft=Vt.map(([e,r,p,s=0,l=null])=>({name:e,iso2:r.toUpperCase(),dialCode:p,priority:s,areaCodes:l}));function Pt(){return fetch("https://ip2c.org/s").then(e=>e.text()).then(e=>{const r=(e||"").toString();if(!r||r[0]!=="1")throw new Error("unable to fetch the country");return r.substr(2,2)})}function Et(e,r){if(e.setSelectionRange)e.focus(),e.setSelectionRange(r,r);else if("createTextRange"in e&&typeof e.createTextRange=="function"){const p=e.createTextRange();p.collapse(!0),p.moveEnd("character",r),p.moveStart("character",r),p.select()}}const $t=[{name:"allCountries",type:Array,default:Ft,description:"All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",inDemo:!1},{name:"autoFormat",type:Boolean,default:!0,description:"Auto update the input to the formatted phone number when it's valid",inDemo:!0},{name:"customValidate",type:[Boolean,RegExp],default:!1,description:"Custom validation RegExp for input",inDemo:!1},{name:"defaultCountry",default:"",type:[String,Number],description:"Default country (by iso2 or dialCode), will override the country fetched from IP address of user",inDemo:!1},{name:"disabled",default:!1,type:Boolean,description:"Disable <code>vue-tel-input</code>, including the input & flag dropdown",inDemo:!1},{name:"autoDefaultCountry",default:!0,type:Boolean,description:"To fetch default country based on IP address of user",inDemo:!1},{name:"dropdownOptions",type:Object,description:"Options for dropdown, see below",inDemo:!1},{name:"dropdownOptions.ariaLabel",default:"Country Code Selector",type:String,description:"Aria label for the country code selector dropdown",inDemo:!1},{name:"dropdownOptions.disabled",default:!1,type:Boolean,description:"Disable dropdown",inDemo:!1},{name:"dropdownOptions.showDialCodeInList",default:!0,type:Boolean,description:"Show dial code in the dropdown list",inDemo:!0},{name:"dropdownOptions.showDialCodeInSelection",default:!1,type:Boolean,description:"Show dial code in the dropdown selection",inDemo:!0},{name:"dropdownOptions.showFlags",default:!0,type:Boolean,description:"Show flags in the dropdown selection and list",inDemo:!0},{name:"dropdownOptions.showSearchBox",default:!1,type:Boolean,description:"Show country search box",inDemo:!0},{name:"dropdownOptions.searchBoxPlaceholder",default:"",type:String,description:"Placeholder for the search box",inDemo:!1},{name:"dropdownOptions.tabindex",default:0,type:Number,description:"Native dropdown <code>tabindex</code> attribute",inDemo:!1},{name:"ignoredCountries",default:[],type:Array,description:"List of countries will NOT be shown on the dropdown",inDemo:!1},{name:"inputOptions",type:Object,description:"Options for input, see below",inDemo:!1},{name:"inputOptions.autocomplete",type:String,default:"on",description:"Native input <code>autocomplete</code> attribute",inDemo:!1},{name:"inputOptions.autofocus",type:Boolean,default:!1,description:"Native input <code>autofocus</code> attribute",inDemo:!1},{name:"inputOptions.aria-describedby",default:"",type:String,description:"Native input <code>aria-describedby</code> attribute",inDemo:!1},{name:"inputOptions.id",default:"",type:String,description:"Native input <code>id</code> attribute",inDemo:!1},{name:"inputOptions.maxlength",default:25,type:Number,description:"Native input <code>maxlength</code> attribute",inDemo:!1}
2,{name:"inputOptions.name",default:"telephone",type:String,description:"Native input <code>name</code> attribute",inDemo:!1},{name:"inputOptions.showDialCode",default:!1,type:Boolean,description:"Show dial code in input",inDemo:!1},{name:"inputOptions.placeholder",default:"Enter a phone number",type:String,description:"Placeholder for the input",inDemo:!1},{name:"inputOptions.readonly",default:!1,type:Boolean,description:"Native input <code>readonly</code> attribute",inDemo:!1},{name:"inputOptions.required",default:!1,type:Boolean,description:"Native input <code>required</code> attribute",inDemo:!1},{name:"inputOptions.tabindex",default:0,type:Number,description:"Native input <code>tabindex</code> attribute",inDemo:!1},{name:"inputOptions.type",default:"tel",type:String,description:"Native input <code>type</code> attribute",inDemo:!1},{name:"inputOptions.styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the <code>input</code>",inDemo:!1},{name:"invalidMsg",default:"",type:String,description:"",inDemo:!1},{name:"mode",default:"auto",type:String,description:"Allowed values: <code>'auto'</code> (Default set by phone),  <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",inDemo:!0,options:["auto","national","international"]},{name:"onlyCountries",default:[],type:Array,description:"List of countries will be shown on the dropdown",inDemo:!1},{name:"preferredCountries",default:[],type:Array,description:"Preferred countries list, will be on top of the dropdown",inDemo:!1},{name:"styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the wrapper",inDemo:!1},{name:"validCharactersOnly",default:!1,type:Boolean,description:"Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",inDemo:!1},{name:"strictValidation",default:!1,type:Boolean,description:"Use strict phone number validation with full metadata (libphonenumber-js/max). When false (default), uses minimal metadata for smaller bundle size. When true, validates phone number patterns more precisely but increases bundle size by ~145KB.",inDemo:!1}],jt=[...$t].reduce((e,r)=>{if(r.name.includes(".")){const[p,s]=r.name.split(".");e[p]?Object.assign(e[p],{[s]:r.default}):Object.assign(e,{[p]:{[s]:r.default}})}else Object.assign(e,{[r.name]:r.default});return e},{}),$e={options:{...jt}};function D(e){const r=$e.options[e];return typeof r>"u"?$e.options[e]:r}function ce(e){return e?.toLowerCase()}function de(e){return e?.toUpperCase()}let ae=null,Be=null;async function zt(){return ae||Be||(Be=he(()=>import("./DVXVtk1t.js"),[],import.meta.url).then(e=>(ae=e.parsePhoneNumberFromString,ae)),Be)}function je(e,r,p=!1){return p&&ae?r?ae(e,r):ae(e):r?fe(e,r):fe(e)}function ze(){return ae!==null}const qt={beforeMount(e,r,p){if(typeof r.value!="function"){const s=p.context.name;let l=`[Vue-click-outside:] provided expression ${r.expression} is not a function, but has to be`;s&&(l+=`Found in component ${s}`),console.warn(l)}e.clickOutsideEvent=function(s){const l=s.composedPath?s.composedPath():s.path;e===s.target||e.contains(s.target)||l.includes(e)||r.value(s,e)},document.body.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.body.removeEventListener("click",e.clickOutsideEvent)}},Gt=["aria-label","aria-expanded","tabindex"],Ut={class:"vti__selection"},Wt={key:1,class:"vti__country-code"},Kt={class:"vti__dropdown-arrow"},Ht={key:0,class:"vti__search_box_container"},Qt=["placeholder"],Jt=["onClick","onMousemove","aria-selected"],Yt={key:1},Zt=["type","autocomplete","autofocus","disabled","id","maxlength","name","placeholder","readonly","required","tabindex","value","aria-describedby"],Xt=pt({name:"VueTelInput",directives:{clickOutside:qt},__name:"vue-tel-input",props:Fe({allCountries:{type:Array,default:()=>D("allCountries")},autoFormat:{type:Boolean,default:()=>D("autoFormat")},customValidate:{type:[Boolean,RegExp],default:()=>D("customValidate")},defaultCountry:{type:[String,Number],default:()=>D("defaultCountry")},disabled:{type:Boolean,default:()=>D("disabled")},autoDefaultCountry:{type:Boolean,default:()=>D("autoDefaultCountry")},dropdownOptions:{type:Object,default:()=>D("dropdownOptions")},ignoredCountries:{type:Array,default:()=>D("ignoredCountries")},inputOptions:{type:Object,default:()=>D("inputOptions")},invalidMsg:{type:String,default:()=>D("invalidMsg")},mode:{type:String,default:()=>D("mode")},onlyCountries:{type:Array,default:()=>D("onlyCountries")},preferredCountries:{type:Array,default:()=>D("preferredCountries")}
2,validCharactersOnly:{type:Boolean,default:()=>D("validCharactersOnly")},styleClasses:{type:[String,Array,Object],default:()=>D("styleClasses")},strictValidation:{type:Boolean,default:()=>D("strictValidation")}},{modelValue:{type:String},modelModifiers:{}}),emits:Fe(["blur","close","country-changed","enter","focus","on-input","open","space","validate"],["update:modelValue"]),setup(e,{expose:r,emit:p}){const s=Oe(),l=Oe(),d=Oe(),m=p,o=e,b=v(ze()),C=ft(e,"modelValue");G(C,(a,n)=>{Q()?t.phone=a??"":be(()=>{t.phone=n??"",F()})});const t=Te({phone:"",activeCountryCode:void 0,open:!1,finishMounted:!1,selectedIndex:null,typeToFindInput:"",typeToFindTimer:void 0,dropdownOpenDirection:"below",parsedPlaceholder:o.inputOptions.placeholder,searchQuery:""});G(()=>t.open,a=>{a?(_e(),m("open")):m("close")});const I=L(()=>o.onlyCountries.length?o.allCountries.filter(({iso2:a})=>o.onlyCountries.some(n=>de(n)===a)):o.ignoredCountries.length?o.allCountries.filter(({iso2:a})=>!o.ignoredCountries.includes(de(a))&&!o.ignoredCountries.includes(ce(a))):o.allCountries),M=L(()=>z(t.activeCountryCode));G(M,(a,n)=>{if(!a&&n!=null&&n.iso2){t.activeCountryCode=n.iso2;return}a!=null&&a.iso2&&m("country-changed",a)});const $=L(()=>{var a;const n=ce(o.mode);return n==="auto"?(a=t.phone)!=null&&a.startsWith("+")?"international":"national":["national","international","e.164","rfc3966","idd"].includes(n)?n:(console.error('Invalid value of prop "mode"'),"international")}),k=L(()=>{const a=[...R(o.preferredCountries).map(f=>({...f,preferred:!0})),...I.value];if(!o.dropdownOptions.showSearchBox)return a;const n=t.searchQuery.toLowerCase().replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]/g,"");return a.filter(f=>new RegExp(n,"i").test(f.name)||new RegExp(n,"i").test(f.iso2)||new RegExp(n,"i").test(f.dialCode))}),y=L(()=>{var a;b.value;const n=t.phone.startsWith("+")?je(t.phone,void 0,o.strictValidation):je(t.phone,t.activeCountryCode,o.strictValidation),f={country:n?.country,countryCode:n?.country,formatted:t.phone,valid:n?.isValid(),possible:(a=n?.isPossible)==null?void 0:a.call(n),nationalNumber:n?.nationalNumber};return f.valid&&(f.formatted=n?.format(de($.value))),n!=null&&n.country&&(o.ignoredCountries.length||o.onlyCountries.length)&&!z(n.country)&&(f.valid=!1,f.possible=!1,n.country=null),n?{...f,...n}:f});G(()=>y.value.countryCode,a=>{a&&(t.activeCountryCode=a)}),G(()=>y.value.valid,()=>{m("validate",y.value)}),G(()=>y.value.formatted,a=>{!o.autoFormat||o.customValidate||(J(a),be(()=>{a&&!C.value&&(t.phone=a)}))}),G(()=>o.inputOptions.placeholder,V),le(()=>{o.strictValidation&&!ze()&&zt().then(()=>{b.value=!0,m("validate",y.value)}),C.value&&(t.phone=C.value.trim()),A(),j().then(()=>{var a;!t.phone&&(a=o.inputOptions)!=null&&a.showDialCode&&t.activeCountryCode&&(t.phone=`+${t.activeCountryCode}`),m("validate",y.value)}).catch(console.error).then(()=>{t.finishMounted=!0})});function V(){t.parsedPlaceholder=o.inputOptions.placeholder}function j(){return new Promise(a=>{var n;if(((n=t.phone)==null?void 0:n[0])==="+"){a();return}if(o.defaultCountry){if(typeof o.defaultCountry=="string"){S(o.defaultCountry),a();return}if(typeof o.defaultCountry=="number"){const h=u(o.defaultCountry);if(h){S(h.iso2),a();return}}}const f=o.preferredCountries[0]||I.value[0];o.autoDefaultCountry?Pt().then(h=>{S(h||t.activeCountryCode)}).catch(h=>{console.warn(h),S(f)}).then(()=>{a()}):(S(f),a())})}function R(a=[]){return a.map(z).filter(Boolean)}function z(a=""){return I.value.find(n=>n.iso2===de(a))}function u(a){return I.value.find(n=>Number(n.dialCode)===a)}function i(a,n){const f=t.selectedIndex===a,h=a===o.preferredCountries.length-1,x=o.preferredCountries.some(se=>de(se)===n);return{highlighted:f,"last-preferred":h,preferred:x}}function S(a){var n,f,h;let x=a;if(typeof x=="string"&&(x=z(x)),!!x){if(((n=t.phone)==null?void 0:n[0])==="+"&&x.iso2&&y.value.nationalNumber){t.activeCountryCode=x.iso2,t.phone=((f=fe(y.value.nationalNumber,x.iso2))==null?void 0:f.formatInternational())??"";return}if((h=o.inputOptions)!=null&&h.showDialCode&&x){t.phone=`+${x.dialCode}`,t.activeCountryCode=x.iso2;return}t.activeCountryCode=x.iso2,J(t.phone)}}function A(){const a=t.phone;if(o.validCharactersOnly){const n=t.phone.match(/[()\-+0-9\s]*/g);t.phone=n.join("")}if(o.customValidate&&o.customValidate instanceof RegExp){const n=t.phone.match(o.customValidate);t.phone=n.join("")}a!==t.phone&&J(t.phone)}function Q(){return o.validCharactersOnly&&!/^[()\-+0-9\s]*$/.test(t.phone)?!1:o.customValidate?ve():!0}function ve(){return o.customValidate instanceof RegExp?o.customValidate.test(t.phone):!1}function F(){var a;(a=d.value)==null||a.setCustomValidity(y.value.valid?"":o.invalidMsg),J(t.phone)}function J(a){C.value=a,m("on-input",a,y.value,d.value)}function ne(a){m("blur",a)}function oe(a){Et(d.value,t.phone.length),m("focus",a)}function Y(a){m("enter",a)}function Z(a){m("space",a)}function ee(){var a;(a=d.value)==null||a.focus()}function ye(){var a;(a=d.value)==null||a.blur()}function te(){o.disabled||o.dropdownOptions.disabled||(t.searchQuery="",t.open=!t.open)}function we(){t.open=!1}function X(a){if(a.keyCode===40){a.preventDefault(),t.open=!0,t.selectedIndex===null?t.selectedIndex=0:t.selectedIndex=Math.min(k.value.length-1,t.selectedIndex+1);const n=l.value.children[t.selectedIndex];n.focus(),n.offsetTop+n.clientHeight>l.value.scrollTop+l.value.clientHeight&&(l.value.scrollTop=n.offsetTop-l.value.clientHeight+n.clientHeight)}else if(a.keyCode===38){a.preventDefault(),t.open=!0,t.selectedIndex===null?t.selectedIndex=k.value.length-1:t.selectedIndex=Math.max(0,t.selectedIndex-1);const n=l.value.children[t.selectedIndex];n.focus(),n.offsetTop<l.value.scrollTop&&(l.value.scrollTop=n.offsetTop)}else if(a.keyCode===13)t.selectedIndex!==null&&S(k.value[t.selectedIndex]),t.open=!t.open;else if(t.open){t.typeToFindInput+=a.key,clearTimeout(t.typeToFindTimer),t.typeToFindTimer=setTimeout(()=>{t.typeToFindInput=""},700);const n=k.value.slice(o.preferredCountries.length).findIndex(f=>ce(f.name).startsWith(t.typeToFindInput));if(n>=0){t.selectedIndex=o.preferredCountries.length+n;const f=l.value.children[t.selectedIndex],h=f.offsetTop<l.value.scrollTop,x=f.offsetTop+f.clientHeight>l.value.scrollTop+l.value.clientHeight;(h||x)&&(l.value.scrollTop=f.offsetTop-l.value.clientHeight/2)}}}function ie(){t.selectedIndex=k.value.map(a=>a.iso2).indexOf(t.activeCountryCode),t.open=!1}function _e(){window.innerHeight-s.value.getBoundingClientRect().bottom>200?t.dropdownOpenDirection="below":t.dropdownOpenDirection="above"}return r({focus:ee,blur:ye}),(a,n)=>{const f=mt("click-outside");return w(),N("div",{ref_key:"refRoot",ref:s,class:T(["vue-tel-input",e.styleClasses,{disabled:e.disabled}])},[ke((w(),N("div",{"aria-label":e.dropdownOptions.ariaLabel,"aria-haspopup":"listbox","aria-expanded":t.open,role:"button",class:T(["vti__dropdown",{open:t.open,disabled:e.dropdownOptions.disabled}]),tabindex:e.dropdownOptions.tabindex,onKeydown:[X,ue(te,["space"]),ue(ie,["esc"]),ue(ie,["tab"])],onClick:te},[W("span",Ut,[e.dropdownOptions.showFlags?(w(),N("span",{key:0,class:T(["vti__flag",E(ce)(t.activeCountryCode)])},null,2)):U("",!0),e.dropdownOptions.showDialCodeInSelection?(w(),N("span",Wt," +"+K(M.value&&M.value.dialCode),1)):U("",!0),me(a.$slots,"arrow-icon",{open:t.open},()=>[W("span",Kt,K(t.open?"▲":"▼"),1)])]),t.open?(w(),N("ul",{key:0,ref_key:"refList",ref:l,class:T(["vti__dropdown-list",t.dropdownOpenDirection]),role:"listbox"},[e.dropdownOptions.showSearchBox?(w(),N("div",Ht,[me(a.$slots,"search-icon"),ke(W("input",{class:T(["vti__input","vti__search_box"]),"aria-label":"Search by country name or country code",placeholder:e.dropdownOptions.searchBoxPlaceholder||(k.value.length?k.value[0].name:""),type:"text","onUpdate:modelValue":n[0]||(n[0]=h=>t.searchQuery=h),onClick:n[1]||(n[1]=Ge(()=>{},["stop"]))},null,8,Qt),[[ht,t.searchQuery]])])):U("",!0),(w(!0),N(vt,null,yt(k.value,(h,x)=>(w(),N("li",{role:"option",class:T(["vti__dropdown-item",i(x,h.iso2)]),key:h.iso2+(h.preferred?"-preferred":""),tabindex:"-1",onClick:se=>S(h),onMousemove:se=>t.selectedIndex=x,"aria-selected":t.activeCountryCode===h.iso2&&!h.preferred},[e.dropdownOptions.showFlags?(w(),N("span",{key:0,class:T(["vti__flag",E(ce)(h.iso2)])},null,2)):U("",!0),W("strong",null,K(h.name),1),e.dropdownOptions.showDialCodeInList?(w(),N("span",Yt," +"+K(h.dialCode),1)):U("",!0)],42,Jt))),128))],2)):U("",!0)],42,Gt)),[[f,we]]),ke(W("input",{"onUpdate:modelValue":n[2]||(n[2]=h=>t.phone=h),ref_key:"refInput",ref:d,type:e.inputOptions.type,autocomplete:e.inputOptions.autocomplete,autofocus:e.inputOptions.autofocus,class:T(["vti__input","vti__phone",e.inputOptions.styleClasses]),disabled:e.disabled,id:e.inputOptions.id,maxlength:e.inputOptions.maxlength,name:e.inputOptions.name,placeholder:t.parsedPlaceholder,readonly:e.inputOptions.readonly,required:e.inputOptions.required,tabindex:e.inputOptions.tabindex,value:C.value,"aria-describedby":e.inputOptions["aria-describedby"],onBlur:ne,onFocus:oe,onInput:F,onKeyup:[ue(Y,["enter"]),ue(Z,["space"])]},null,42,Zt),[[gt,t.phone]]),me(a.$slots,"icon-right")],2)}}}),ea={__name:"LoginModalComponentsTelInput",props:{value:{type:String,default:""},style:{type:Object,default:()=>({})}},emits:["country-changed","update:value","focus","blur"],setup(e,{expose:r,emit:p}){"use client";const s=p,l=e,{t:d}=Ue(),m=v(""),o=L({get:()=>l.value,set:i=>{s("update:value",i)}}),b=v(),C=v();G(b,i=>{let S="";setTimeout(()=>
2{i&&(S=i.$el.getBoundingClientRect().width),C.value=S===0?void 0:`${S}px`},1e3)});let t=!1;t=location.hostname.includes("-cn")||location.hostname.includes(".cn");const I=L(()=>t?86:""),M=L(()=>!t),$=L(()=>t?["cn"]:[]),k=L(()=>({placeholder:d("login.form.required.phone"),showDialCode:!0})),y=L(()=>({showFlags:!0,showSearchBox:!t,showDialCodeInList:!0})),V=i=>{let S=!1;const A=i??o.value;return t?S=A.startsWith("+86")&&Ee(A,m.value):S=Ee(A,m.value),S},j=i=>{m.value=i.iso2,s("country-changed",i.iso2)},R=i=>i.valid;function z(){(b.value?.$el?.querySelector(".vti__input")).classList.add("arco-input-focus"),s("focus",arguments)}function u(){(b.value?.$el?.querySelector(".vti__input")).classList.remove("arco-input-focus"),s("blur",arguments)}return le(()=>{const i=b.value?.$el?.querySelector(".vti__input");i&&(i.addEventListener("focus",z),i.addEventListener("blur",u))}),Re(()=>{const i=b.value?.$el?.querySelector(".vti__input");i&&(i.removeEventListener("focus",z),i.removeEventListener("blur",u))}),r({validate:V}),(i,S)=>(w(),H(E(Xt),{ref_key:"vueTelRef",ref:b,modelValue:E(o),"onUpdate:modelValue":S[0]||(S[0]=A=>bt(o)?o.value=A:null),mode:"international",class:"custom-tel-input","only-countries":E($),"default-country":E(I),"autoDefault-country":E(M),"input-options":E(k),"dropdown-options":E(y),style:Ce({width:"100%",...e.style,"--input-width":E(C)}),onValidate:R,onCountryChanged:j},null,8,["modelValue","only-countries","default-country","autoDefault-country","input-options","dropdown-options","style"]))}},ta={__name:"Captcha",props:{rowProps:{typeof:Object,default:()=>({})},contentColProps:{typeof:Object,default:()=>({flex:"1"})},captchaColProps:{typeof:Object,default:()=>({flex:"137px",style:{marginLeft:"15px"}})},captchaStyle:{typeof:Object,default:()=>({width:"137px",height:"60px"})}},emits:["update:code"],setup(e,{expose:r,emit:p}){const s=p,l=v(""),d=v(!1),m=We("captcha-code",""),o=()=>(m.value=`${Ze(12)}-${Date.now()}`,s("update:code",m.value),m.value),b=async()=>{if(console.log("clicked"),!d.value){d.value=!0;try{const C=await He({code:o()});l.value=URL.createObjectURL(C.data)}catch(C){console.warn("🚀 ~ loadCaptcha ~ error:",C)}finally{d.value=!1}}};return le(()=>{b()}),r({refresh:b}),(C,t)=>{const I=Xe,M=Me,$=Ke,k=Ye,y=Qe;return w(),H(y,{align:"middle",justify:"space-between",style:{width:"100%"}},{default:_(()=>[O(I,Pe({style:{display:"flex","align-items":"center"},class:"content-col"},e.contentColProps),{default:_(()=>[me(C.$slots,"default",{},void 0,!0)]),_:3},16),O(I,Pe(e.captchaColProps,{class:"captcha-col",style:{"align-items":"center"}}),{default:_(()=>[W("div",{style:Ce({width:e.captchaStyle.width||"105px",height:e.captchaStyle.height||"40px"}),class:T(`captcha-img-wrapper ${l.value?"":"loading"}`)},[!l.value&&d.value?(w(),H(M,{key:0,dot:"",size:4,loading:d.value},null,8,["loading"])):(w(),H(k,{key:1,width:"100%",height:"100%",class:"code-img",src:l.value,preview:!1,style:Ce(e.captchaStyle),onClick:b},{"error-icon":_(()=>[O($)]),_:1},8,["src","style"]))],6)]),_:1},16)]),_:3})}}},aa=Ae(ta,[["__scopeId","data-v-1b21c3ad"]]),na={__name:"CaptchaBasic",emits:["update:code"],setup(e,{expose:r,emit:p}){const s=p,l=v(""),d=We("captcha-code",""),m=v(!1),o=()=>(d.value=`${Ze(12)}-${Date.now()}`,s("update:code",d.value),d.value),b=async()=>{if(!m.value){m.value=!0;try{const C=await He({code:o()});l.value=URL.createObjectURL(C.data)}catch(C){console.warn("🚀 ~ loadCaptcha ~ error:",C)}finally{m.value=!1}}};return le(()=>{b()}),r({refresh:b}),(C,t)=>{const I=Me,M=Ke,$=Ye;return w(),N("div",{class:T(`captcha-img-wrapper ${l.value?"":"loading"}`),style:{}},[!l.value&&m.value?(w(),H(I,{key:0,dot:"",size:4,loading:m.value},null,8,["loading"])):(w(),N("div",{key:1,onClick:b},[O($,{width:"100",height:"40",class:"code-img",src:l.value,preview:!1},{"error-icon":_(()=>[O(M)]),_:1},8,["src"])]))],2)}}},oa=Ae(na,[["__scopeId","data-v-079932c6"]]),qe=50,ia={__name:"CaptchaAliyunCaptcha",props:{sceneId:{type:String,required:!0},language:{type:String,default:"cn"},slideStyle:{type:Object,default:()=>({width:360,height:40})},uid:{type:String,default:Math.random().toString(36).substring(2,10)}},emits:["update:code","update:captcha","success","fail","ready"],setup(e,{expose:r,emit:p}){const s=e,l=p,{currentLocale:d}=Je(),m=v(null),o=v(null),b=v(!1),C=`aliyun-captcha-btn-${s.uid}`,t=`aliyun-captcha-ele-${s.uid}`;function I(u){switch(u){case"zh-CN":return"cn";case"ja-jp":return"ja";default:return"en"}}function M(u){o.value=u}function $(u){console.log("[AliyunCaptcha] verification success",u),l("update:captcha",u),l("update:code",Math.random().toString(36).slice(2)),l("success",u)}function k(u){console.error("[AliyunCaptcha] verification failed:",u),l("fail",u)}let y=null,V=0;function j(){typeof window<"u"&&window.initAliyunCaptcha?(y&&(clearInterval(y),y=null),window.initAliyunCaptcha({SceneId:s.sceneId,mode:"popup",element:`#${t}`,button:`#${C}`,success:$,fail:k,getInstance:M,slideStyle:s.slideStyle,onClose:R,language:I(d.value)}),b.value=!0,l("ready")):V<qe&&(y||(y=et(()=>{V++,window.initAliyunCaptcha?j():V>=qe&&(clearInterval(y),y=null,console.warn("[AliyunCaptcha] SDK loading timeout"))},100)))}le(()=>{be(()=>{j()})}),Re(()=>{y&&(clearInterval(y),y=null),o.value=null});
2function R(){V=0,b.value=!1,o.value=null,be(()=>{j()})}function z(){if(!b.value){console.warn("[AliyunCaptcha] not ready yet");return}const u=document.getElementById(C);u?u.click():console.warn("[AliyunCaptcha] trigger button not found")}return r({refresh:R,trigger:z,isReady:b}),(u,i)=>(w(),N("div",{ref_key:"wrapperRef",ref:m,class:"aliyun-captcha-wrapper"},[W("div",{id:t,class:"aliyun-captcha-element"}),W("div",{id:C,class:"aliyun-captcha-trigger",onClick:i[0]||(i[0]=Ge(()=>{},["prevent","stop"]))},[me(u.$slots,"default",{},void 0,!0)])],512))}},ra=Ae(ia,[["__scopeId","data-v-63a63338"]]);function la(){const e=v(null);return{captchaRef:e,refreshCaptcha:()=>{e.value&&e.value.refresh()},BasicCaptcha:oa,Captcha:aa,AliyunCaptcha:ra}}let ge=null,pe=null;function sa(){const e=v("");return{sceneId:e,loadConfig:async()=>{if(ge)return e.value=ge.sceneId,ge;if(pe){const s=await pe;return e.value=s.sceneId,s}return pe=$fetch("/api/captcha-config").then(s=>(ge=s,e.value=s.sceneId||"",s)).catch(s=>(console.warn("Failed to fetch captcha config:",s),pe=null,{prefix:"",sceneId:""})),await pe}}}const ua={class:"phone-login-form"},ca={key:0},da={key:0},ka={__name:"LoginModalComponentsPhone",props:{customNewForm:{type:Boolean,default:!0},type:{default:"login"},showConfirmButton:{default:!0},captchaActive:{type:Boolean,default:!0},setConfirmLoading:{default:()=>()=>{}},validForm:{default:()=>async()=>{}}},emits:["success"],setup(e,{expose:r,emit:p}){const s=p,l=e,{t:d}=Ue(),{currentLocale:m}=Je(),{AliyunCaptcha:o,captchaRef:b}=la(),{sceneId:C,loadConfig:t}=sa();le(()=>t());const I=v(!1),M=v(!1),$=v(!1),k=g=>{$.value=g},y=v(),V=v(),j=[];let R=null;const z=G(y,g=>{let c="";R&&clearTimeout(R),R=setTimeout(()=>{g&&(c=g.$el.getBoundingClientRect().width),V.value=c===0?void 0:`${c}px`,console.log(V.value),R=null},1e3)});j.push(z);const u=Te({captcha:"",captchaCode:"",countryCode:"",phoneNumber:"",code:""}),i=Te({phoneNumber:{status:"",msg:""},code:{status:"",msg:""},captcha:{status:"",msg:""},captchaCode:{status:"",msg:""}});let S=!1;S=location.hostname.includes("-cn")||location.hostname.includes(".cn");const A=L(()=>S||u.phoneNumber.startsWith("+86")),Q=v(),ve=v(),F=v(),J=v(),ne=v();let oe=null;const Y=v(60),Z=v(!1);let ee=null;const ye=()=>{Z.value=!0,ee=et(()=>{Y.value=Y.value-1,Y.value<=0&&(Z.value=!1,Y.value=60,clearInterval(ee))},1e3)},te=v(!1),we=async()=>{if(await X())try{oe=await Mt(),oe.languageCode=m.value.split("-")[0],te.value=!0,setLoadingCaptcha(!0),Q.value="",F.value=null,F.value=null,J.value="",setTimeout(async()=>{const{RecaptchaVerifier:g}=await he(async()=>{const{RecaptchaVerifier:c}=await import("./8aDKkotK.js");return{RecaptchaVerifier:c}},__vite__mapDeps([2,1]),import.meta.url);window.recaptchaVerifier=F.value=new g(oe,ve.value,{callback:c=>{console.log("RecaptchaVerifier response:",c),te.value=!1,a()},"expired-callback":()=>{Q.value=d("auth/captcha-expired")}}),F.value.render().then(c=>{window.recaptchaWidgetId=J.value=c,setTimeout(()=>{setLoadingCaptcha(!1)},2e3)}).catch(c=>{re.error(d("auth/internal-error")),Q.value=c.message,console.log("appVerifier.value.render error:",c)}).finally(()=>{setLoadingCaptcha(!1)})},500)}catch(g){console.error("Failed to load Firebase Auth:",g),re.error(d("auth/internal-error")),setLoadingCaptcha(!1)}},X=async()=>!await Ie.value.validateField(["phoneNumber","captcha"]),ie=()=>u.code?u.code.length<(A.value?4:6)?(i.code.status="error",i.code.msg=d("login.form.codeError"),!1):(i.code.status="success",i.code.msg="",!0):(i.code.status="error",i.code.msg=d("login.form.required.code"),!1),_e=()=>F.value.recaptcha.getResponse(J.value)?!0:(i.captcha.status="error",i.captcha.msg=d("login.form.required.captcha"),!1),a=async()=>{if(!await X()||!_e())return;i.captcha.status="success",i.captcha.msg="",I.value=!0,ne.value=null;const g=u.phoneNumber;try{const{signInWithPhoneNumber:c}=await he(async()=>{const{signInWithPhoneNumber:q}=await import("./8aDKkotK.js");return{signInWithPhoneNumber:q}},__vite__mapDeps([2,1]),import.meta.url),B=await c(oe,g,F.value);
2ne.value=B,window.confirmationResult=B,i.code.status="validating",i.code.msg=d("login.form.codeSended"),ye()}catch(c){const B=c.code;if(console.log("🚀 ~ getCode ~ errCode:",B),St.includes(B))return re.error(d(B));re.error(`${d("login.form.codeSendError")}: ${B}`)}finally{I.value=!1}},n=()=>u.captcha.trim()===""?(i.captcha.status="error",i.captcha.msg=d("login.form.captcha.errMsg"),!1):u.captcha.length<6?(i.captcha.status="error",i.captcha.msg=d("login.form.captchaError",{length:6}),!1):!0,f=async()=>{await X()&&n()&&(i.captcha.status="success",i.captcha.msg="",I.value=!0,_t({mobile:u.phoneNumber,captcha:u.captcha,code:u.captchaCode}).then(()=>{re.success(d("login.form.codeSent",{phone:u.phoneNumber})),ye()}).catch(()=>{b.value?.refresh?.()}).finally(()=>{I.value=!1}))},h=async()=>{await X()&&b.value?.trigger()},x=()=>{f()},se=async()=>{if(!await l.validForm?.()&&await X()&&ie()){if(!ne.value){i.captcha.status="error",i.captcha.msg=d("login.form.required.captcha");return}return k(!0),l.setConfirmLoading?.(!0),new Promise((c,B)=>{ne.value.confirm(u.code).then(q=>{s("success",q.user),c(q)}).catch(q=>{B(q),console.log("confirmationResult error:",q),re.error(d("login.form.codeError"))}).finally(()=>{k(!1),l.setConfirmLoading?.(!1)})})}},tt=async()=>{if(await l.validForm?.()||!await X()||!ie())return;k(!0),l.setConfirmLoading?.(!0);const c={accessToken:"",sms_code:u.code,phone_number:u.phoneNumber};return s("success",c),l.setConfirmLoading?.(!1),k(!1),{user:c}},at=L(()=>u.phoneNumber),nt=G(at,()=>{u.code="",i.code.status="",i.code.msg="",i.captcha.status="",i.captcha.msg=""});j.push(nt);const ot=async()=>A.value?tt():se(),Se=v(),Ie=v(),it=async()=>{const g=await Ie.value.validateField("phoneNumber"),c=Se.value.$el;g?c.classList.add("arco-input-error"):c.classList.remove("arco-input-error")};return Re(()=>{if(j.forEach(g=>{typeof g=="function"&&g()}),R&&(clearTimeout(R),R=null),ee&&(clearInterval(ee),ee=null),F.value&&F.value.clear)try{F.value.clear()}catch(g){console.warn("Failed to clear Firebase verifier:",g)}}),r({confirm:ot}),(g,c)=>{const B=It,q=Ct,rt=kt,xe=Xe,Le=wt,lt=Ot,st=Me,ut=Dt,ct=Qe,dt=xt;return w(),N("div",ua,[O(dt,{ref_key:"loginFormRef",ref:Ie,model:u,class:T({"custom-new-form":e.customNewForm})},{default:_(()=>[O(B,{"hide-label":"",field:"phoneNumber",rules:[{required:!0,message:g.$t("login.form.required.phone")},{validator:(P,Ve)=>{console.log("validate",P),Se.value.validate(P)?Ve():Ve(g.$t("login.form.required.phoneError"))}}],class:T({"custom-new-form-item":e.customNewForm})},{default:_(()=>[O(ea,{ref_key:"telInputRef",ref:Se,modelValue:u.phoneNumber,"onUpdate:modelValue":c[0]||(c[0]=P=>u.phoneNumber=P),class:"arco-input-wrapper",onBlur:it},null,8,["modelValue"])]),_:1},8,["rules","class"]),e.captchaActive&&A.value?(w(),H(E(o),{key:0,ref_key:"captchaRef",ref:b,uid:"phone-control","scene-id":E(C),"onUpdate:code":c[1]||(c[1]=P=>u.captchaCode=P),"onUpdate:captcha":c[2]||(c[2]=P=>u.captcha=P),onSuccess:x},{default:_(()=>[...c[5]||(c[5]=[W("span",{class:"hidden"},null,-1)])]),_:1},8,["scene-id"])):U("",!0),O(ct,null,{default:_(()=>[O(xe,{flex:"1"},{default:_(()=>[O(B,{class:T({"custom-new-form-item":e.customNewForm}),"hide-label":"",help:i.code.msg,"validate-status":i.code.status},{default:_(()=>[O(rt,{modelValue:u.code,"onUpdate:modelValue":c[3]||(c[3]=P=>u.code=P),"max-length":A.value?4:6,placeholder:g.$t("login.form.required.code"),onBlur:ie},{prefix:_(()=>[O(q)]),_:1},8,["modelValue","max-length","placeholder"])]),_:1},8,["class","help","validate-status"])]),_:1}),A.value?(w(),H(xe,{key:0,flex:"140px",class:"phone-code-col !ml-[15px]"},{default:_(()=>[O(B,{class:T({"custom-new-form-item":e.customNewForm,"!mb-0":!0}),"hide-label":""},{default:_(()=>[O(Le,{type:"outline",disabled:Z.value,loading:I.value,class:"recaptcha-btn",onClick:h},{default:_(()=>[De(K(g.$t("login.phone.getCode"))+" ",1),Z.value?(w(),N("span",ca,"("+K(Y.value)+"s)",1)):U("",!0)]),_:1},8,["disabled","loading"])]),_:1},8,["class"])]),_:1})):(w(),H(xe,{key:1,flex:"140px",class:"phone-code-col !ml-[15px]"},{default:_(()=>[O(B,{class:T({"custom-new-form-item":e.customNewForm,"!mb-0":!0}),"hide-label":"",help:i.captcha.msg,"validate-status":i.captcha.status},{default:_(()=>[O(ut,{"popup-visible":te.value,"onUpdate:popupVisible":c[4]||(c[4]=P=>te.value=P),trigger:"contextMenu","popup-container":"phone-login-form",class:"recaptcha-popup"},{content:_(()=>[O(st,{loading:M.value},{default:_(()=>
2[Q.value?(w(),H(lt,{key:0,type:"error"},{default:_(()=>[De(K(Q.value),1)]),_:1})):U("",!0),W("div",{id:"recaptcha-container",class:"recaptcha-container",ref_key:"recaptchaContainer",ref:ve,style:Ce({minWidth:V.value,minHeight:"78px"})},null,4)]),_:1},8,["loading"])]),default:_(()=>[O(Le,{type:"outline",class:"recaptcha-btn",disabled:Z.value,loading:I.value,onClick:we},{default:_(()=>[De(K(g.$t("login.phone.getCode"))+" ",1),Z.value?(w(),N("span",da,"("+K(Y.value)+"s)",1)):U("",!0)]),_:1},8,["disabled","loading"])]),_:1},8,["popup-visible"])]),_:1},8,["class","help","validate-status"])]),_:1}))]),_:1})]),_:1},8,["model","class"])])}}};export{ka as _,la as a,Mt as g,sa as u};

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.