1var Re=Object.defineProperty,ve=Object.defineProperties;var Se=Object.getOwnPropertyDescriptors;var ne=Object.getOwnPropertySymbols;var Oe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable;var te=(e,i,t)=>i in e?Re(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,O=(e,i)=>{for(var t in i||(i={}))Oe.call(i,t)&&te(e,t,i[t]);if(ne)for(var t of ne(i))Ae.call(i,t)&&te(e,t,i[t]);return e},A=(e,i)=>ve(e,Se(i));import{r as a,ej as Ie,fh as Me,fj as De,l as ae,fk as $e,B as F,fl as Le,fm as ke,A as n,S as W}from"./index.5036f488.1791295314721.js";import{u as I,r as se}from"./agentation.8cf2c154.1791295314721.js";import{l as $}from"./index.4b42b1f7.1791295314721.js";import{n as oe,a as ce}from"./inputUtils.c4219def.1791295314721.js";import He from"./breadcrumbs.1d285bdf.1791295314721.js";import{T as Fe}from"./turnstile.39063b3e.1791295314721.js";import"./index.e3336abf.1791295314721.js";import"./index.105f36bc.1791295314721.js";import"./index-layout-lite.4d13f1d9.1791295314721.js";import"./user-slice.c57d34c1.1791295314721.js";import"./usePreloadTheme.d944b684.1791295314721.js";import"./staticContentModules.1e6f8d24.1791295314721.js";import"./luckyWheelModules.fef33147.1791295314721.js";import"./ms-hook.dd8a1dba.1791295314721.js";const We="_resetPasswordContainer_xhjys_9",Be="_formSkeleton_xhjys_15",Ge="_topbar_xhjys_34",Ve="_helperText_xhjys_37",qe="_toggleRow_xhjys_42",we="_tab_xhjys_50",Ue="_active_xhjys_60",Ke="_telCodePhoneContainer_xhjys_64",Ye="_fieldInlineRight_xhjys_69",Ze="_label_xhjys_74",ze="_req_xhjys_78",Je="_selectWrap_xhjys_82",Qe="_input_xhjys_85",Xe="_select_xhjys_82",Pe="_error_xhjys_96",en="_field_xhjys_69",nn="_inputWrap_xhjys_113",tn="_inputWrapRow_xhjys_116",on="_arrowIcon_xhjys_136",cn="_suffixBtn_xhjys_148",ln="_icon_xhjys_162",an="_btnSendOtp_xhjys_167",sn="_sendOTPContainer_xhjys_194",pn="_errorText_xhjys_224",mn="_actions_xhjys_228",un="_copyright_xhjys_234",hn="_copyrightIcon_xhjys_246",rn="_btn_xhjys_167",dn="_btnGhost_xhjys_258",fn="_btnPrimary_xhjys_262",xn="_successContainer_xhjys_271",yn="_successTitle_xhjys_277",_n="_successDesc_xhjys_288",jn="_dropdownContainer_xhjys_291",Cn="_dropdownTrigger_xhjys_302",bn="_downArrow_xhjys_315",Tn="_dropdownContentSelected_xhjys_320",En="_dropdownMenu_xhjys_328",gn="_dropdownContent_xhjys_320",Nn="_dropdownContentItem_xhjys_340",o={resetPasswordContainer:We,formSkeleton:Be,"skeleton-loading-effect":"_skeleton-loading-effect_xhjys_1",topbar:Ge,helperText:Ve,toggleRow:qe,tab:we,active:Ue,telCodePhoneContainer:Ke,fieldInlineRight:Ye,label:Ze,req:ze,selectWrap:Je,input:Qe,select:Xe,error:Pe,field:en,inputWrap:nn,inputWrapRow:tn,arrowIcon:on,suffixBtn:cn,icon:ln,btnSendOtp:an,sendOTPContainer:sn,errorText:pn,actions:mn,copyright:un,copyrightIcon:hn,btn:rn,btnGhost:dn,btnPrimary:fn,successContainer:xn,successTitle:yn,successDesc:_n,dropdownContainer:jn,dropdownTrigger:Cn,downArrow:bn,dropdownContentSelected:Tn,dropdownMenu:En,dropdownContent:gn,dropdownContentItem:Nn},Rn="/public/html/default_whitelabel/template/images/international-icon",vn=60,ie={telCode:"",mobile:"",sendTo:"PHONE",otp:"",newPassword:"",confirmNewPassword:"",captchaToken:"",email:"",contactType:""},le="RESET_PASSWORD",Sn=["PHONE","WHATSAPP"],On=["PHONE","EMAIL"];function An(){const[e,i]=a.useState({loaded:!1,regionSettings:[],phoneChannels:[],authMethod:[]}),[t,f]=a.useState({newPassword:"",confirmNewPassword:""}),[x,C]=a.useState("PENDING"),r=m=>{f(u=>A(O({},u),{[m]:!u[m]}))},[h,s]=a.useState(1),{t:y}=I(["liteResetPassword","liteAuth"]),[c,l]=a.useState(ie),g=a.useMemo(()=>c.contactType?"v2":"v1"),[E,pe]=a.useState(null);a.useEffect(()=>{var m;Promise.all([Ie(),Me({isPublic:!0,currencyCode:(m=_==null?void 0:_.currentLanguage)==null?void 0:m.currency,moduleType:le,isNew:!0})]).then(([u,p])=>{var D,T,k,z,J,Q;const b=((T=((D=window==null?void 0:window.portalSettings)==null?void 0:D.telCodes)||"66,60")==null?void 0:T.split(",").map(d=>"+".concat(d)))||[],j=u.filter(d=>b.includes(d.telCode)).map(({telCode:d,countryCode:v})=>d&&v?{telCode:d,countryCode:v,telCodeFlag:"".concat(Rn,"/").concat(v,".png")}
1:null).filter(Boolean),R=((z=(k=p==null?void 0:p.OTP)==null?void 0:k.authMethod)==null?void 0:z.filter(d=>On.includes(d)))||[];i({loaded:!0,regionSettings:[...j],authMethod:R||[],phoneChannels:((Q=(J=p==null?void 0:p.OTP)==null?void 0:J.authMethod)==null?void 0:Q.filter(d=>Sn.includes(d)))||[]}),l(d=>{var X,P,ee;const v=R.filter(S=>S==="PHONE"||S==="WHATSAPP"),Te=v.length>0,Ee=R.includes("EMAIL"),H=Te?"PHONE":Ee?"EMAIL":d.contactType,ge=(X=_==null?void 0:_.currentLanguage)==null?void 0:X.countryCode,Y=(P=j==null?void 0:j.find)==null?void 0:P.call(j,S=>(S==null?void 0:S.countryCode)===ge),Ne=d.telCode||(Y==null?void 0:Y.telCode)||((ee=j==null?void 0:j[0])==null?void 0:ee.telCode)||"";return A(O({},d),{contactType:H,telCode:H==="PHONE"?Ne:"",sendTo:H==="PHONE"&&(d.sendTo||v[0])||"",email:H==="EMAIL"?d.email:""})})}).finally(()=>{C("LOAD")})},[]);const[M,B]=a.useState(""),[me,G]=a.useState(!1),L=a.useRef(0),ue=a.useCallback(async(m,u)=>{var b,j,R,D;if(!m||!u){B(""),G(!1);return}const p=++L.current;G(!0);try{await De({phone:"".concat(m).concat(u)}),L.current===p&&B("")}catch(T){if(L.current===p){const k=(D=(R=(j=(b=T==null?void 0:T.response)==null?void 0:b.data)==null?void 0:j.message)!=null?R:T==null?void 0:T.message)!=null?D:"liteResetPassword:invalidPhone";B(k)}}finally{L.current===p&&G(!1)}},[]),[N,V]=a.useState("");a.useEffect(()=>{if(c.contactType!=="EMAIL"&&g!=="v1"){V("");return}if(!c.email){V("");return}const m=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c.email);V(m?"":"liteResetPassword:invalidEmail")},[c.contactType,c.email,g]);const[q,Z]=a.useState(""),[w,U]=a.useState("");a.useEffect(()=>{/^[A-Za-z0-9]{6,}$/.test(c.newPassword)?Z(""):Z("liteResetPassword:invalidPassword")},[c.newPassword]),a.useEffect(()=>{c.confirmNewPassword&&c.confirmNewPassword!==c.newPassword?U("liteResetPassword:passwordNotMatch"):U("")},[c.confirmNewPassword,c.newPassword]);const _=ae.useSelector(m=>m.language),he=a.useRef(0),[re,de]=a.useState(0),[K,fe]=a.useState(!1),xe=a.useMemo(()=>c.contactType==="EMAIL"?!!c.email&&!N:!!(c.telCode&&c.mobile)&&!M,[c.contactType,c.email,c.telCode,c.mobile,N,M]),ye=a.useCallback(()=>{var u;const m=Date.now()+vn*1e3;he.current=m,de(m),fe(!0),$e(A(O({verificationType:le,verificationMethod:c.contactType==="EMAIL"?"EMAIL":c.sendTo},c.contactType==="EMAIL"?{email:c.email}:{phone:"".concat(c.telCode).concat(c.mobile)}),{currencyCode:(u=_==null?void 0:_.currentLanguage)==null?void 0:u.currency,isPublic:!0})).then(({status:p})=>{p===200&&F.toast.success(y("liteTransfer:requestOTPSuccess","Request OTP Success"))}).catch(p=>{const b=p!=null&&p.attempt?"".concat(y("liteAuth:maxAttempt1","You have reached the OTP limit:")," ").concat(p==null?void 0:p.attempt,". ").concat(y("liteAuth:maxAttempt2","Please contact Customer Service for assistance.")):y("liteAuth:error.".concat(p==null?void 0:p.code));pe({message:b,exist:!0})})},[c]),_e=a.useCallback((m,u)=>{l(p=>{const b=A(O({},p),{[m]:u});return(m==="mobile"||m==="telCode")&&ue(b.telCode,b.mobile),b})},[]),je=a.useCallback(()=>l(ie),[]),Ce=a.useMemo(()=>g==="v1"?!c.email||!!N:h===1?c.contactType==="EMAIL"?!(K&&c.email&&c.otp)||!!N:!(K&&c.telCode&&c.mobile&&c.otp)||!!M:h===2?!!q||!!w||c.confirmNewPassword!==c.newPassword:!1,[h,c,K,M,N,q,w]),be=a.useCallback(()=>{var m;if(!c.contactType){Le({email:c.email,captchaToken:null}).then(({status:u})=>{u!==200&&F.toast.error(y("liteResetPassword:contactCustomerService","Reset Password Error! Please Try Again. Contact customer service if error persist.")),u===200&&s(3)});return}ke(A(O({captchaToken:c.captchaToken,otpCode:c.otp,newPassword:c.confirmNewPassword,domain:window.location.hostname,isVipLogin:!1,merchantCode:window.merchantCode,rememberMe:!1},c.contactType==="EMAIL"?{email:c.email}:{phone:"".concat(c.telCode).concat(c.mobile)}),{resetWithPhone:c.contactType==="PHONE",contact:c.contactType==="EMAIL"?c.email:"".concat(c.telCode).concat(c.mobile),verificationMethod:c.contactType==="EMAIL"?"EMAIL":c.sendTo,contactType:c.contactType,version:"v2",currency:(m=_==null?void 0:_.currentLanguage)==null?void 0:m.currency})).then(({status:u})=>{u!==200&&F.toast.error(y("liteResetPassword:contactCustomerService","Reset Password Error
1! Please Try Again. Contact customer service if error persist.")),u===200&&h===1&&s(2),u===200&&h===2&&s(3)}).catch(()=>{F.toast.error(y("liteResetPassword:contactCustomerService","Reset Password Error! Please Try Again. Contact customer service if error persist."))})},[c]);return{remoteData:e,loadingState:x,form:c,setField:_e,clearForm:je,sendOtp:ye,confirm:be,isConfirmDisabled:Ce,steps:h,showPassword:t,toggleHideShow:r,canSendBase:xe,otpUntil:re,phoneError:M,phoneValidating:me,passwordError:q,confirmPasswordError:w,emailError:N,sendError:E,version:g}}const In=()=>n.jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("circle",{cx:"10.5977",cy:"10.0469",r:"10",fill:"#28DB00"}),n.jsx("path",{d:"M9.01002 14.0467C8.74913 14.0467 8.48825 13.9509 8.28744 13.7626L5.79359 11.4026C5.38853 11.0194 5.38338 10.3918 5.78157 10.0021C6.17977 9.61232 6.83198 9.60736 7.23703 9.99052L9.02375 11.6817L13.9737 7.2044C14.3873 6.8295 15.0395 6.84932 15.4291 7.24734C15.8188 7.64535 15.7982 8.27293 15.3845 8.64783L9.71372 13.7775C9.51462 13.9575 9.26232 14.0467 9.0083 14.0467H9.01002Z",fill:"white"})]}),Mn=({selectedTelCode:e,toggleDropdown:i,setSelectedTelCodes:t,isOpen:f,telCodes:x=[]})=>{const{t:C}=I(["liteResetPassword"]),r=a.useMemo(()=>x.find(s=>(s==null?void 0:s.telCode)===e),[x,e]),h=()=>n.jsxs("span",{className:o.dropdownContentSelected,children:[n.jsx("img",{width:"24",height:"24",src:(r==null?void 0:r.telCodeFlag)||"/public/html/default_whitelabel/template/images/international-icon/TH.png",alt:(r==null?void 0:r.countryCode)||""}),n.jsx("span",{children:e})]});return n.jsxs("div",{className:o.dropdownContainer,children:[n.jsxs("button",{onClick:i,className:o.dropdownTrigger,children:[e?h():C("liteRegister:selectTelCode"),n.jsx(W,{category:"SVGMenu",name:"arrowDown",className:o.downArrow})]}),f&&n.jsx("div",{className:o.dropdownMenu,children:n.jsx("ul",{className:o.dropdownContent,children:(x||[]).map(s=>n.jsxs("li",{className:o.dropdownContentItem,onClick:()=>{t(s.telCode),i()},children:[n.jsx("img",{width:"24",height:"24",src:s==null?void 0:s.telCodeFlag,alt:(s==null?void 0:s.countryCode)||""}),n.jsx("span",{children:s==null?void 0:s.telCode})]},(s==null?void 0:s.countryCode)||(s==null?void 0:s.telCode)))})})]})};function Pn(){var h;const{t:e}=I(["liteResetPassword"]),i=se.useHistory(),t=An(),f=(t==null?void 0:t.steps)===1||(t==null?void 0:t.steps)===2,x=((h=t==null?void 0:t.remoteData)==null?void 0:h.authMethod)||[],C=x.includes("PHONE")||x.includes("WHATSAPP"),r=x.includes("EMAIL");return n.jsxs("div",{className:o.resetPasswordContainer,children:[n.jsx("div",{className:o.topbar,children:n.jsx(He,{title:e("liteResetPassword:resetPassword","Reset Password"),backAction:()=>i.push("/home")})}),(t==null?void 0:t.loadingState)==="PENDING"&&n.jsx(Hn,{}),(t==null?void 0:t.loadingState)==="LOAD"&&n.jsxs(n.Fragment,{children:[(t==null?void 0:t.steps)===1&&(C||r)&&n.jsxs("div",{className:o.toggleRow,children:[C&&n.jsx("button",{type:"button",className:"".concat(o.tab," ").concat((t==null?void 0:t.form.contactType)==="PHONE"?o.active:""),onClick:()=>t==null?void 0:t.setField("contactType","PHONE"),children:e("liteResetPassword:tab.PHONE","Mobile")}),r&&n.jsx("button",{type:"button",className:"".concat(o.tab," ").concat((t==null?void 0:t.form.contactType)==="EMAIL"?o.active:""),onClick:()=>t==null?void 0:t.setField("contactType","EMAIL"),children:e("liteResetPassword:tab.EMAIL","Email")})]}),f&&n.jsx("p",{className:o.helperText,children:(t==null?void 0:t.steps)===1?(t==null?void 0:t.form.contactType)==="PHONE"?e("liteResetPassword:helperPhone","Enter your registered phone number to reset password."):e("liteResetPassword:helperEmail","Enter your registered email address to reset password. If you don't have an email address, please contact customer service."):e("liteResetPassword:helper2","Please enter your new password.")}),(t==null?void 0:t.steps)===1&&n.jsx(Dn,{resetPassword:t}),(t==null?void 0:t.steps)===2&&n.jsx($n,{resetPassword:t}),(t==null?void 0:t.steps)===3&&n.jsx(Ln,{}),f&&n.jsxs("div",{className:o.actions,children:[n.jsx("button",{type:"button",className:"".concat(o.btn," ").concat(o.btnGhost),onClick:()=>i.push("/home"),children:e("liteResetPassword:cancel","Cancel")}),n.jsx("button",{type:"button",className:"".concat(o.btn," ").concat(o.btnPrimary),disabled:t==null?void 0:t.isConfirmDisabled,onClick:t==null?void 0:t.confirm,children:(t==null?void 0:t.steps)===1?e("liteResetPassword:confirm","Confirm"):e("liteResetPassword:resetPassword","Reset Password")})]}),n.jsxs("div",{className:o.copyright,children:[n.jsx("span",{children:e("liteResetPassword:copyright-pt1","Copyright K929 © 2025. All rights reserved.")}),n.jsx("span",{className:o.copyrightIcon,children:n.jsx(W,{category:"SVGCommon",name:"D-above18",className:o.icon})}),n.jsx("span",{children:e("liteResetPassword:copyright-pt2","above only")})]})]})]})}const Dn=({resetPassword:e})=>{var h,s,y,c;const{t:i}=I(["liteResetPassword"]),t="RESET_PASSWORD",f="TURNSTILE_OTP",[x,C]=a.useState(!1),r=()=>{C(l=>!l)};return n.jsxs(n.Fragment,{children:[(e==null?void 0:e.form.contactType)==="PHONE"&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:o.telCodePhoneContainer,children:[n.jsx(Mn,{selectedTelCode:e==null?void 0:e.form.telCode,toggleDropdown:r,setSelectedTelCodes:l=>e==null?void 0:e.setField("telCode",l),isOpen:x,telCodes:(h=e==null?void 0:e.remoteData)==null?void 0:h.regionSettings}),n.jsxs("div",{className:o.fieldInlineRight,children:[n.jsx($.DebounceInput,{type:"number",debounceTimeout:500,onPaste:l=>oe(l,!1),onKeyDown:l=>ce(l,!1),className:"".concat(o.input," ").concat((e==null?void 0:e.phoneError)&&o.error),placeholder:i("liteResetPassword:mobilePlaceholder","Mobile No."),value:e==null?void 0:e.form.mobile,onChange:l=>e==null?void 0:e.setField("mobile",l.target.value.replace(/[^\d]/g,""))}
1),!!(e!=null&&e.phoneError)&&n.jsx("div",{className:o.errorText,children:i(e.phoneError,e.phoneError)})]})]}),n.jsx(Fe,{moduleType:t,validateType:f,onVerifyCallback:l=>e==null?void 0:e.setField("captchaToken",l)}),n.jsx("div",{className:o.sendOTPContainer,children:n.jsxs("div",{className:o.inputWrap,children:[n.jsx("select",{className:o.input,value:e==null?void 0:e.form.sendTo,onChange:l=>e==null?void 0:e.setField("sendTo",l.target.value),children:(y=(s=e==null?void 0:e.remoteData)==null?void 0:s.phoneChannels)==null?void 0:y.map(l=>n.jsx("option",{value:l,children:i("liteResetPassword:channel.".concat(l),l)},l))}),n.jsx("div",{className:o.arrowIcon,children:n.jsx("img",{className:o.arrow,src:"/public/html/images/sp2lite/nav/arrow.png",alt:"type-history-arrow"})})]})})]}),((e==null?void 0:e.form.contactType)==="EMAIL"||(e==null?void 0:e.version)==="v1")&&n.jsxs("div",{className:o.field,children:[n.jsx($.DebounceInput,{type:"email",debounceTimeout:300,className:"".concat(o.input," ").concat((e==null?void 0:e.emailError)&&o.error),placeholder:i("liteResetPassword:emailPlaceholder","Email Address"),value:e==null?void 0:e.form.email,onChange:l=>e==null?void 0:e.setField("email",l.target.value)}),!!(e!=null&&e.emailError)&&n.jsx("div",{className:o.errorText,children:i(e.emailError,e.emailError)})]}),(e==null?void 0:e.form.contactType)&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:o.field,children:n.jsxs("div",{className:"".concat(o.inputWrap," ").concat(o.inputWrapRow),children:[n.jsx($.DebounceInput,{type:"text",onPaste:l=>oe(l,!1),onKeyDown:l=>ce(l,!1),debounceTimeout:500,className:"".concat(o.input," ").concat((e==null?void 0:e.sendError)&&o.error),placeholder:i("liteResetPassword:otpPlaceholder","Enter OTP"),value:e==null?void 0:e.form.otp,onChange:l=>e==null?void 0:e.setField("otp",l.target.value.replace(/[^\d]/g,""))}),n.jsx(kn,{className:o.btnSendOtp,onClick:e.sendOtp,canSendBase:e.canSendBase,otpUntil:e.otpUntil,label:i("liteResetPassword:sendOtp","Send OTP")})]})}),!!(e!=null&&e.sendError)&&n.jsx("p",{className:o.errorText,children:(c=e==null?void 0:e.sendError)==null?void 0:c.message})]})]})},$n=({resetPassword:e})=>{const{t:i}=I(["liteResetPassword"]);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:o.field,children:[n.jsxs("div",{className:o.inputWrap,children:[n.jsx($.DebounceInput,{type:e!=null&&e.showPassword.newPassword?"text":"password",debounceTimeout:500,className:"".concat(o.input," ").concat((e==null?void 0:e.passwordError)&&o.error),placeholder:i("liteResetPassword:newPassword","New Password"),onChange:t=>e==null?void 0:e.setField("newPassword",t.target.value)}),n.jsx("button",{type:"button",onClick:()=>e==null?void 0:e.toggleHideShow("newPassword"),className:o.suffixBtn,"aria-label":"Toggle password visibility",children:n.jsx(W,{category:"SVGReactIcons",name:e!=null&&e.showPassword.newPassword?"AiOutlineEye":"AiOutlineEyeInvisible",className:o.icon})})]}),!!(e!=null&&e.passwordError)&&n.jsx("div",{className:o.errorText,children:i(e.passwordError,e.passwordError)})]}),n.jsxs("div",{className:o.field,children:[n.jsxs("div",{className:o.inputWrap,children:[n.jsx($.DebounceInput,{type:e!=null&&e.showPassword.confirmNewPassword?"text":"password",debounceTimeout:500,className:"".concat(o.input," ").concat((e==null?void 0:e.confirmPasswordError)&&o.error),placeholder:i("liteResetPassword:confirmNewPassword","Confirm New Password"),onChange:t=>e==null?void 0:e.setField("confirmNewPassword",t.target.value)}),n.jsx("button",{type:"button",onClick:()=>e==null?void 0:e.toggleHideShow("confirmNewPassword"),className:o.suffixBtn,"aria-label":"Toggle password visibility",children:n.jsx(W,{category:"SVGReactIcons",name:e!=null&&e.showPassword.confirmNewPassword?"AiOutlineEye":"AiOutlineEyeInvisible",className:o.icon})})]}),!!(e!=null&&e.confirmPasswordError)&&n.jsx("div",{className:o.errorText,children:i(e.confirmPasswordError,e.confirmPasswordError)})]})]})},Ln=()=>{const{t:e}=I(["liteResetPassword"]),i=se.useHistory();return n.jsxs("div",{className:o.successContainer,children:[n.jsxs("p",{className:o.successTitle,children:[n.jsx(In,{}),e("liteResetPassword:success","Success")]}),n.jsx("p",{className:o.successDesc,children:e("liteResetPassword:successMessage","Your account password has been successfully changed.")}),n.jsx("button",{type:"button",className:"".concat(o.btn," ").concat(o.btnPrimary),onClick:()=>
1i.push("/login"),children:e("liteResetPassword:login","Login")})]})};function kn({className:e,onClick:i,canSendBase:t,otpUntil:f,label:x}){const[C,r]=a.useState(Date.now());a.useEffect(()=>{if(f>Date.now()&&r(Date.now()),!f||f<=Date.now())return;const E=setInterval(()=>r(Date.now()),1e3);return()=>clearInterval(E)},[f]);const h=Math.max(0,Math.ceil((f-C)/1e3)),s=ae.useSelector(E=>E==null?void 0:E.turnstile),{otpTurnstileEnabled:y,turnstileToken:c}=s,l=y?!c:!1,g=!t||h>0||l;return n.jsx("button",{type:"button",className:e,onClick:i,disabled:g,children:h>0?"Resend in ".concat(h,"s"):x})}const Hn=()=>n.jsx("div",{className:o.formSkeleton});export{Pn 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.