1"use strict";(self.webpackChunksemi_wallet=self.webpackChunksemi_wallet||[]).push([[551],{6551:((ee,A,e)=>{e.r(A),e.d(A,{default:()=>Z});var r=e(2540),v=e(3696);const ae={mainBg:"var(--main-bg)",GameContainerBg:"var(--game-container-bg)",GameFilterBtnContainer:"var(--game-filter-btn-container)",GameFilterShadow:"var(--game-filter-shadow)",GameButtonCommonShadow:"var(--game-button-common-shadow)",AppGameUserInfoBackground:"var(--app-game-user-info-background)",AppGamePwInfoBackground:"var(--app-game-pw-info-background)",AppGameUserInfoTextColor:"var(--app-game-user-info-text-color)",AppGamePwInfoTextColor:"var(--app-game-pw-info-text-color)",FontSize16:"var(--fontSize16)",FontSize20:"var(--fontSize20)",MainTxt:"var(--main-txt)",AppGamePlayGameBackground:"var(--app-game-play-game-button-background)",MainBorder:"var(--main-border)",AppGamePlayGameBtnBorder:"var(--app-game-play-game-button-border)",AppGameWarningColor:"var(--app-game-warning-color)",AppGameAlertBackground:"var(--app-game-alert-background)",AppGamePlayGameText:"var(--app-game-play-game-text)",SubTxt:"var(--sub-txt)",BtnDisabledTxt:"var(--btn-disabled-txt)",BtnChangePassTxt:"var(--btn-change-pass-txt)",GameFilterSelected:"var(--game-filter-selected)",GameSearchIconBg:"var(--game-search-icon-bg)",GameSearchIconShadow:"var(--game-search-icon-shadow)",GameSearchIconBorder:"var(--game-search-icon-border)",SideMenuResponsiveWidth:"1281px",GreenTimer:"var(--timer-green)",YellowTimer:"var(--timer-yellow)",RedTimer:"var(--timer-red)"};var F=e(8680),S=e(6644),j=e(7409),N=e(328),M=e(8615),O=e(2469),I=e(5475),R=e(3417),V=e(3258),b=e(3160),w=e(8219),x=e(1988),E=e(8763),D=Object.defineProperty,U=Object.defineProperties,z=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,y=(o,a,t)=>a in o?D(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,L=(o,a)=>{for(var t in a||(a={}))W.call(a,t)&&y(o,t,a[t]);if(G)for(var t of G(a))$.call(a,t)&&y(o,t,a[t]);return o},Q=(o,a)=>U(o,z(a)),Y=(o,a,t)=>new Promise((T,l)=>{var d=n=>{try{m(t.next(n))}catch(c){l(c)}},u=n=>{try{m(t.throw(n))}catch(c){l(c)}},m=n=>n.done?T(n.value):Promise.resolve(n.value).then(d,u);m((t=t.apply(o,a)).next())});function Z(){var o;const{pushMsgModal:a}=(0,x.Eg)(),t=(0,O.useNav)(),T=(0,b.wA)(),{t:l}=(0,F.B)(),d="password",u="googleAuth",m=(0,v.useRef)(null),n=(0,v.useRef)(null),c=(0,v.useRef)(null),k=(0,V.Ez)(),[p,H]=(0,v.useState)({}),{profile:P}=(0,b.d4)(({user:s})=>s),J=((o=P==null?void 0:P.mobileNumber)==null?void 0:o.toString())||"",B=s=>{const{name:i,value:g}=s;H(h=>Q(L({},h),{[i]:g}))},K=()=>Y(null,null,function*(){if(yield n.current.ValidateValue()){const i=p[d],g=p[u];X(i,()=>{q({token:g,googleAuthStatus:!1})})}}),X=(s,i)=>{w.Ay.VerifyPassword({showErrDialog:!1,userId:J,password:s,success:i,error:g=>{var h;const{errcode:f,msg:_}=g||{};if(f=="102"){const C=(h=n.current.getTextFieldRefByName(d))==null?void 0:h.current;C&&C.setErrMsg("dialog.err.wrongPass",!0)}else a(new x.Qb({content:(0,r.jsx)(E.A,{title:f?`${f}: ${_}`:"dialog.err.someErr"})}))}})},q=({token:s,googleAuthStatus:i})=>{w.Ay.UpdateGoogleAuthStatus({token:s,googleAuthStatus:i,success:()=>{t(-1)}})};return(0,r.jsx)("div",{className:"unbindGoogleTwoFAAuth-container container-padding",children:(0,r.jsxs)("div",{className:"unbindGoogleTwoFAAuth-style",children:[(0,r.jsx)("div",{className:"unbindGoogleTwoFAAuth-sticky-header",children:(0,r.jsx)(S.A,{title:l("security.googleAuth.unbindTitle"),rightComponent:(0,r.jsx)(j.A,{style:{visibility:"hidden"}})})}),(0,r.jsxs)("div",{ref:m,className:"unbindGoogleTwoFAAuth-content",children:[(0,r.jsxs)(M.A,{ref:n,frameRef:m,submitBtnRef:c,className:"unbindGoogleTwoFAAuth-form-container",children:[(0,r.jsx)(I.A,{isFormChild:!0,name:d,placeholder:l("general.placeholder.mobileOrPin"),value:p[d]||"",onChange:B,formatValidation:!1,isRequired:!0}),(0,r.jsx)(R.A,{isFormChild:!0,icon:k.googleAuth,name:u,placeholder:l("general.placeholder.googleAuth"),value:p[u]||"",onChange:B,isRequired:!0,inputMode:"numeric",maxDigits:6,allowFirstZero:!0})]}),(0,r.jsx)(N.A,{ref:c,text:l("general.btn.submit"),btnClassName:"btnV2-container-row-center-p17-r10-mainshadow",btnTextClassName:"btnV2-btn-txt-s20-w700-cMain",onClick:()=>{K()}})]})]})})}})}]);
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.