1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8006],{44688:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password",function(){return r(21746)}])},73270:function(e,t){"use strict";t.Z={src:"/_next/static/media/bg-login.67f7bb56.jpg",height:982,width:1512,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIAAUACAMBIgACEQEDEQH/xAAoAAEBAAAAAAAAAAAAAAAAAAAABwEBAQAAAAAAAAAAAAAAAAAAAQP/2gAMAwEAAhADEAAAAKyLn//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Af//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Af//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Af//Z",blurWidth:8,blurHeight:5}},66134:function(e,t){"use strict";t.Z={src:"/_next/static/media/logo-dark.0741e17d.svg",height:32,width:130,blurWidth:0,blurHeight:0}},49082:function(e,t,r){"use strict";var n=r(85893),s=r(82175),i=r(18403),a=r(67294);let l=e=>{let{name:t}=e,r=(0,a.useRef)(),{getFieldProps:l,setFieldValue:o,getFieldMeta:u}=(0,s.u6)(),c=l(t),d=u(t);return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(i.Nc,{ref:r,className:"mx-auto",siteKey:"0x4AAAAAAAWIGaWV3sOoKPb0",onSuccess:e=>o(null==c?void 0:c.name,e),onExpire:()=>{var e;return null===(e=r.current)||void 0===e?void 0:e.reset()},options:{theme:"light"}}),(null==d?void 0:d.error)?(0,n.jsx)("p",{className:"text-xs font-thin bg-red-100 absolute bottom-1 px-2 rounded right-1",children:null==d?void 0:d.error}):null]})};t.Z=l},55326:function(e,t,r){"use strict";var n=r(85893),s=r(11163),i=r(96486);let a=()=>{let e=(0,s.useRouter)(),t=[{label:"English",value:"en"},{label:"Chinese",value:"cn"},{label:"Hindi",value:"hi"},{label:"Arabic",value:"ar"}],r=t=>{t.preventDefault();let r=new URLSearchParams((0,i.omit)(null==e?void 0:e.query,["locale"]));location.href="".concat("en"===t.target.value?"":"/".concat(t.target.value)).concat(null==e?void 0:e.pathname).concat((null==r?void 0:r.size)>0?"?":"").concat(r.toString())};return(0,n.jsx)("select",{defaultValue:"en",value:(null==e?void 0:e.locale)||"en",className:"outline-none bg-white border rounded-md border-primary text-primary text-xs py-2 w-24 px-4",onChange:r,children:null==t?void 0:t.map(e=>(0,n.jsx)("option",{value:null==e?void 0:e.value,children:null==e?void 0:e.label},"language".concat(null==e?void 0:e.value)))})};t.Z=a},86574:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(85893),s=r(16870),i=r(82175),a=r(89583),l=r(53854),o=r(14640),u=r(16310);let c=e=>(0,u.Ry)().shape({email:(0,u.Z_)().email().required(e("required")),pin:(0,u.Z_)().required(e("required")),password:(0,u.Z_)().required(e("required")),password_confirmation:(0,u.Z_)().oneOf([(0,u.iH)("password"),null],e("password_confirmation")).required(e("required"))});var d=r(22920),A=r(69941),m=r(11163);let h=()=>{let e=(0,m.useRouter)(),t=(0,o.useTranslations)(),r=async(r,n)=>{A.Z.formikFormActions=n;try{let s=await A.Z.post("api/v1/user/reset_password",{...r});(null==s?void 0:s.status)===200&&(d.Am.success(t("ResetPassword.save_toast_success")),n.resetForm(),e.push("/"))}catch(e){d.Am.error(e)}};return{handleSubmitFormik:r}};var f=r(49082);let p=()=>{let e=(0,o.useTranslations)("Validations"),t=(0,o.useTranslations)("ResetPassword"),r=(0,o.useTranslations)("Fields"),u=(0,o.useTranslations)("PasswordHint"),{handleSubmitFormik:d}=h();return(0,n.jsx)(i.J9,{initialValues:{email:"",pin:"",password:"",password_confirmation:"",captcha:""},validationSchema:c(e),onSubmit:d,validateOnBlur:!1,validateOnChange:!1,children:e=>{let{handleSubmit:i,isSubmitting:o,values:c}=e;return(0,n.jsxs)("form",{className:"space-y-4",onSubmit:i,children:[(0,n.jsx)(s.II,{name:"email",label:r("email"),type:"email"}),(0,n.jsx)(s.II,{name:"pin",label:r("pin"),type:"text"}),(0,n.jsx)(s.II,{name:"password",label:r("password"),type:"password"}),(0,n.jsxs)("ul",{className:"bg-red-100 rounded list-inside list-disc p-1",children:[(0,n.jsx)("li",{className:"text-sm",children:u("hint_1")}),(0,n.jsx)("li",{className:"text-sm",children:u("hint_2")}),(0,n.jsx)("li",{className:"text-sm",children:u("hint_3")}),(0,n.jsx)("li",{className:"text-sm",children:u("hint_4")})]}),(0,n.jsx)(s.II,{name:"password_confirmation",label:r("confirm_password"),type:"password"}),(0,n.jsx)("div",{children:(0,n.jsxs)("button",{disabled:!(null==c?void 0:c.captcha),type:"submit",className:"inline-flex items-center justify-center gap-x-2 rounded-md bg-primary-500 py-4 px-10 text-lg text-white shadow-sm hover:bg-primary-600 transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500 w-full text-center disabled:bg-blue-200",children:[o?(0,n.jsx)(a.koH,{className:" animate-spin"}):null,(0,n.jsx)("p",{children:t("submit_button_label")}),(0,n.jsx)(l.WFu,{className:"-mr-0.5 h-5 w-5","aria-hidden":"true"})]})}),(0,n.jsx)(f.Z,{name:"captcha"})]})}})};var x=p},21746:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return p},default:function(){return x}});var n=r(85893),s=r(9008),i=r.n(s),a=r(25675),l=r.n(a),o=r(66134),u=r(73270),c=r(14640),d=r(55326),A=r(86574),m=r(53854),h=r(41664),f=r.n(h);r(4298);var p=!0;function x(){let e=(0,c.useTranslations)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:e("ResetPassword.page_title")})}),(0,n.jsxs)("div",{className:"flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8 relative",children:[(0,n.jsx)("div",{className:"fixed top-4 right-4 z-10",children:(0,n.jsx)(d.Z,{route:"/login"})}),(0,n.jsxs)("div",{className:"relative z-10",children:[(0,n.jsx)("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:(0,n.jsx)(f(),{href:"/",children:(0,n.jsx)(l(),{src:o.Z,width:130,height:31,priority:!0,className:"h-8 mx-auto w-auto mt-20",alt:"eVisaPH"})})}),(0,n.jsx)("div",{className:"mt-8 sm:mx-auto sm:w-full sm:max-w-lg",children:(0,n.jsxs)("div",{className:"bg-white px-4 pt-4 pb-10 shadow sm:rounded-3xl sm:p-12",children:[(0,n.jsx)("h2",{className:"text-center text-xl sm:text-3xl font-semibold text-slate-900 mb-2",children:e("ResetPassword.title")}),(0,n.jsx)(A.Z,{}),(0,n.jsx)("div",{className:"mt-10 space-y-4",children:(0,n.jsxs)(f(),{href:"/",className:"flex items-center justify-center text-sm gap-x-2 text-slate-900 font-normal hover:text-primary-500 transition",children:[(0,n.jsx)(m.siY,{className:"w-4 h-4 flex-shrink-0"})," ",e("Login.back_to_home_link")]})})]})})]}),(0,n.jsx)(l(),{src:u.Z,width:2e3,height:2e3,priority:!0,className:"w-full h-full object-cover fixed inset-0",alt:"eVisaPH"})]})]})}},4298:function(e,t,r){e.exports=r(85442)},18403:function(e,t,r){"use strict";r.d(t,{Nc:function(){return A}});var n=r(85893),s=r(67294);let i=({as:e="div",...t},r)=>(0,n.jsx)(e,{...t,ref:r}),a=(0,s.forwardRef)(i),l="cf-turnstile-script",o="onloadTurnstileCallback",u=e=>!!document.getElementById(e),c=({render:e="explicit",onLoadCallbackName:t=o,scriptOptions:{nonce:r="",defer:n=!0,async:s=!0,id:i="",appendTo:a,onError:c,crossOrigin:d=""}={}})=>{let A=i||l;if(u(A))return;let m=document.createElement("script");
1if(m.id=A,m.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?onload=${t}&render=${e}`,document.querySelector(`script[src="${m.src}"]`))return;m.defer=!!n,m.async=!!s,r&&(m.nonce=r),d&&(m.crossOrigin=d),c&&(m.onerror=c);let h="body"===a?document.body:document.getElementsByTagName("head")[0];h.appendChild(m)},d={normal:{width:300,height:65},compact:{width:130,height:120},invisible:{width:0,height:0,overflow:"hidden"},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}},A=(0,s.forwardRef)((e,t)=>{let{scriptOptions:r,options:i={},siteKey:A,onWidgetLoad:m,onSuccess:h,onExpire:f,onError:p,onBeforeInteractive:x,onAfterInteractive:w,onUnsupported:v,onLoadScript:b,id:g,style:y,as:j="div",injectScript:_=!0,...E}=e,N=i.size||"normal",[T,I]=(0,s.useState)("execute"===i.execution?d.invisible:"interaction-only"===i.appearance?d.interactionOnly:d[N]),k=(0,s.useRef)(null),R=(0,s.useRef)(!1),[C,Q]=(0,s.useState)(!1),P=(0,s.useRef)(),Z=(0,s.useRef)(!1),S=g||"cf-turnstile",B=_?r?.id||`${l}__${S}`:r?.id||l,F=function(e=l){let[t,r]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let t=()=>{u(e)&&r(!0)},n=new MutationObserver(t);return n.observe(document,{childList:!0,subtree:!0}),t(),()=>{n.disconnect()}},[e]),t}(B),D=r?.onLoadCallbackName?`${r.onLoadCallbackName}__${S}`:`${o}__${S}`,O=(0,s.useMemo)(()=>{let e;return{sitekey:A,action:i.action,cData:i.cData,callback:e=>{Z.current=!0,h?.(e)},"error-callback":p,"expired-callback":f,"before-interactive-callback":x,"after-interactive-callback":w,"unsupported-callback":v,theme:i.theme||"auto",language:i.language||"auto",tabindex:i.tabIndex,"response-field":i.responseField,"response-field-name":i.responseFieldName,size:("invisible"!==N&&(e=N),e),retry:i.retry||"auto","retry-interval":i.retryInterval||8e3,"refresh-expired":i.refreshExpired||"auto",execution:i.execution||"render",appearance:i.appearance||"always"}},[A,i,h,p,f,N,x,w,v]),M=(0,s.useMemo)(()=>JSON.stringify(O),[O]),q=(0,s.useCallback)(()=>"undefined"!=typeof window&&!!window.turnstile,[]);return(0,s.useImperativeHandle)(t,()=>{let{turnstile:e}=window;return{getResponse(){if(!e?.getResponse||!P.current||!q()){console.warn("Turnstile has not been loaded");return}return e.getResponse(P.current)},getResponsePromise:async(e=3e4,t=100)=>new Promise((r,n)=>{let s;let i=async()=>{if(Z.current&&window.turnstile&&P.current)try{let e=window.turnstile.getResponse(P.current);if(s&&clearTimeout(s),e)return r(e);return n(Error("No response received"))}catch(e){return s&&clearTimeout(s),console.warn("Failed to get response",e),n(Error("Failed to get response"))}s||(s=setTimeout(()=>{s&&clearTimeout(s),n(Error("Timeout"))},e)),await new Promise(e=>setTimeout(e,t)),await i()};i()}),reset(){if(!e?.reset||!P.current||!q()){console.warn("Turnstile has not been loaded");return}"execute"===i.execution&&I(d.invisible);try{console.log("resetting..."),Z.current=!1,e.reset(P.current)}catch(e){console.warn(`Failed to reset Turnstile widget ${P}`,e)}},remove(){if(!e?.remove||!P.current||!q()){console.warn("Turnstile has not been loaded");return}I(d.invisible),Z.current=!1,e.remove(P.current),P.current=null},render(){if(!e?.render||!k.current||!q()||P.current){console.warn("Turnstile has not been loaded or widget already rendered");return}let t=e.render(k.current,O);return P.current=t,"execute"!==i.execution&&I(d[N]),t},execute(){if("execute"===i.execution){if(!e?.execute||!k.current||!P.current||!q()){console.warn("Turnstile has not been loaded or widget has not been rendered");return}e.execute(k.current,O),I(d[N])}},isExpired(){if(!e?.isExpired||!P.current||!q()){console.warn("Turnstile has not been loaded");return}return e.isExpired(P.current)}}},[P,i.execution,N,O,k,q]),(0,s.useEffect)(()=>(window[D]=()=>Q(!0),()=>{delete window[D]}),[D]),(0,s.useEffect)(()=>{_&&!C&&c({onLoadCallbackName:D,scriptOptions:{...r,id:B}})},[_,C,D,r,B]),(0,s.useEffect)(()=>{F&&!C&&window.turnstile&&Q(!0)},[C,F]),(0,s.useEffect)(()=>{if(!A){console.warn("sitekey was not provided");return}if(!F||!k.current||!C||R.current)return;let e=window.turnstile.render(k.current,O);P.current=e,R.current=!0},[F,A,O,R,C]),(0,s.useEffect)(()=>
1{if(window.turnstile&&k.current&&P.current){u(P.current)&&window.turnstile.remove(P.current);let e=window.turnstile.render(k.current,O);P.current=e,R.current=!0}},[M,A]),(0,s.useEffect)(()=>{if(window.turnstile&&P.current&&u(P.current))return m?.(P.current),()=>{P.current&&window.turnstile&&window.turnstile.remove(P.current)}},[P,m]),(0,s.useEffect)(()=>{I("execute"===i.execution?d.invisible:"interaction-only"===O.appearance?d.interactionOnly:d[N])},[i.execution,N,O.appearance]),(0,s.useEffect)(()=>{F&&"function"==typeof b&&b()},[F,b]),(0,n.jsx)(a,{ref:k,as:j,id:S,style:{...T,...y},...E})});A.displayName="Turnstile"}},function(e){e.O(0,[6556,3662,260,1228,2013,5445,571,5929,2298,5427,514,1664,3723,4296,6310,4576,9774,2888,179],function(){return e(e.s=44688)}),_N_E=e.O()}]);
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.