PageSourceSearch

https://1whnva.com/resources/v1/app/assets/change-phone-verification-DNCsP5hc.js

js 1whnva.com collected 2026-10-08 05:58:11 UTC 5,603 bytes, 2 lines download raw bytes

1import{toValue as m,watch as V,defineComponent as w,computed as x,withAsyncContext as I,ref as T,onMounted as k,onActivated as D,onUnmounted as P,openBlock as S,createElementBlock as A,createElementVNode as F,normalizeClass as z,toDisplayString as B,unref as _,createBlock as L,resolveDynamicComponent as O,withModifiers as R}from"vue";import{ak as b,ai as q,V as U}from"./merge-translations-CwE51ITD.js";import{bz as $,Z as N}from"./logger-BOxpBNGt.js";import"./use-fingerprint-DE4_EPEE.js";import"vue-router";import{n as H,P as E}from"./index-D8tZys4R.js";import{y as W}from"./plugin-feature-flags-D0H0KyZq.js";import{g as Y}from"./test-manager-BlurlTRy.js";import"./plugin-server-updates-CfH_eELX.js";import"./socket-io-adapter-CN39NsFq.js";import"./use-i18n-B0hP4Z_U.js";import"./define-widget-dVgL_Ppo.js";import"./modal-info-D8JYLd5L.js";import"./modal.vue_vue_type_script_setup_true_lang-C9HJCC6h.js";import"./use-body-scroll-lock-CkQ2xZd3.js";import"./custom-html-DSkscCoV.js";import"./modal-header-BNZ-O5Tg.js";import"./arrow-back-CC1qmhtQ.js";import"./modal-footer-TVzr8gO8.js";import"./buttons-group-qhSEYaGg.js";import"./button-CTQg7Uw-.js";import"./use-modal-C0Sd6Ub4.js";import"./use-feature-flag-CgspxHg2.js";import"./use-server-event-CiJxy1t7.js";import"./use-balances-activated-query-BwSnyv2M.js";import"./social-button-DzwFcR_k.js";import"./checkmark-C0P6RrdZ.js";import"./segment-control-4OlPhpYh.js";import"./use-path-based-route-matcher-u_WwO7dQ.js";import"./tab-C-rSRwXz.js";import"./picture-v2-KA_3OvDf.js";import"./create-mask-image-value-BQDVFb7C.js";import"./icon-box-CebUXsN4.js";import"./badge-base-6J2_ZzEN.js";import"./useMutation-BnvjhEUP.js";import"./use-countdown-C2HYb50l.js";import"./error-captured.vue_vue_type_script_setup_true_lang-CAKKD8xl.js";import"./skeleton-B0OrSZmr.js";import"./index-DOechJbJ.js";import"./icon-sprite-DxqeX5YZ.js";import"./index-vSUUMbpI.js";import"./list-item-DGMBKJne.js";import"./tooltip-CQ7G7tzQ.js";import"./currency-BIKkeMtT.js";import"./index-BkZBUjIo.js";import"./use-recaptcha-C1-k4II9.js";import"./set-window-href-BCtJEGQE.js";import"./clear-redirect-params-Di-g0-RS.js";import"./setup-window-open-interceptor-DSUDlWrW.js";const Z=({formOptions:c,onSuccess:l,onError:a})=>{const n=$(),t={form_type:"confirm_phone"},{requestCode:d,verificationSource:e,updateVerificationSource:p}=b(),{form:f,setFormState:u,getFormState:h,submit:v,isPending:y}=H({formOptions:c,onEvent:({eventName:o,payload:s})=>{n.send(new E(o,{...t,...s,country_code:m(e)?.country}))},onSubmit:async o=>{const s=o;p({regId:crypto.randomUUID(),phone:s.phone,lastValidData:{phone:e.value.phone,country:e.value.country,regId:e.value.regId}}),await d({onSuccess(){l?.()},onAnyError:()=>{p({regId:e.value.lastValidData?.regId,phone:e.value.lastValidData?.phone})},onError:(i,r)=>{r&&["verification.code.wrong","verification.phone.wrong","verification.phone.busy"].includes(r)?u("phone",{customError:{type:"custom",errorMessage:i,isVisible:!0}}):a?.(i,r)}})}}),g=()=>{n.send(new E("change_phone",{...t}))},C=o=>{!o||o==="resolve"||n.send(new E("form_exit",{...t,closure_options:o}))};return V(()=>h("phone","inputValue"),()=>{u("phone",{customError:void 0})}),{form:f,submit:v,isPending:y,handleView:g,handleCloseForm:C}},M="changePhoneFlashCall-form",j=w({__name:"change-phone-verification",props:{lastCloseReason:{},preventOnMounted:{type:Boolean}},emits:["success","tooManyRequestsError","tooManyRequests"],async setup(c,{emit:l}){let a,n;const t=c,d=l,[e,{suspense:p}]=q("modal.auth"),{show:f}=W(),{verificationSource:u,verificationType:h}=b(),v=x(()=>h.value===U.FLASHCALL?[{type:"phone",errorMessage:e.value.phoneError(),isLazy:!0}]:[{errorMessage:"inputPhone_zeroAfterCountryCode",errorCode:"zeroAfterCountryCode",regexp:String.raw`^(?!\+2340\d{8,10}$).+$`,type:"regexp"},{type:"phone",errorMessage:e.value.phoneError(),isLazy:!0},{type:"phoneLib",errorMessage:e.value.phoneError(),isLazy:!0}]),y={testId:M,lockSubmitOnError:!0,blocks:[{id:"phone",type:"phoneInput",autodetectCountry:!1,bypassDetectedCountry:!0,lockRegion:!0,countryCode:m(u).country,marginBottom:"l",autofocus:!0,validators:m(v),fieldsMap:{phone:"inputValue"}},{id:"submit",type:"submit",variant:"primary",isWide:!0,text:e.value.changeSourceConfirmButtonText(),size:"xl"}]};[a,n]=I(()=>p()),await a,n();const{form:g,submit:C,handleView:o,handleCloseForm:s}=Z({formOptions:y,onSuccess:()=>{d("success")},onError:async r=>{f({variant:"error",title:e.value.notificationErrorTitle(),text:r??e.value.notificationErrorUnknownText(),testId:Y("requestCodeErrorSnackbar",M)})}}),i=T(!1);return k(()=>{t.preventOnMounted||(o(),i.value=!0)}),D(()=>{t.preventOnMounted||(i.value?i.value=!1:o())}),P(()=>{s(m(t.lastCloseReason))}),(r,Q)=>(S(),A("div",null,[F("div",{class:z(r.$style.text)},B(_(e).changePhoneText()),3),(S(),L(O(_(g)),{onSubmit:R(_(C),["prevent"])},null,40,["onSubmit"]))]))}}),G="change-phone-verification_text-dbcDT",J={text:G},K={$style:J},je=N(j,[["__cssModules",K]]);export{je as default};
2(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".change-phone-verification_text-dbcDT{margin-bottom:var(--modal-padding-modal-gap-form);color:var(--color-content-base-primary);font-family:var(--font-body-font-family);font-size:var(--font-body-regular-font-size);
2font-weight:var(--font-body-regular-font-weight);letter-spacing:var(--font-body-regular-letter-spacing);line-height:var(--font-body-regular-line-height)}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();

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.