1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8006],{44688:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password",function(){return n(58065)}])},63185:function(e,s,n){"use strict";var t=n(85893),a=(n(67294),n(97029)),i=n.n(a);s.Z=function(e){var s=e.title,n=(e.type,e.icon),a=e.desc,r=void 0===a?null:a,c=e.show,l=void 0!==c&&c;return(0,t.jsx)(t.Fragment,{children:l&&(0,t.jsxs)("div",{className:i().container,style:{color:"#212529",backgroundColor:"#e5f5ec"},children:[n&&(0,t.jsx)("img",{src:n,alt:"alert icon"}),(0,t.jsxs)("div",{className:i().content,children:[(0,t.jsx)("span",{className:i().title,children:s}),r&&(0,t.jsx)("span",{className:i().description,children:"desc"})]})]})})}},45789:function(e,s,n){"use strict";var t=n(26042),a=n(69396),i=n(85893),r=(n(67294),n(58285)),c=n.n(r),l=(n(98093),n(11382)),o=n(50888),d=(0,i.jsx)(o.Z,{style:{fontSize:20},spin:!0});s.Z=function(e){return(0,i.jsx)(i.Fragment,{children:e.loading?(0,i.jsxs)("button",(0,a.Z)((0,t.Z)({},e),{className:c().container.concat(" ",e.selected_class?e.selected_class:"").concat(" ",c().disabled).concat(" ",e.className?e.className:""),children:[(0,i.jsx)("div",{className:c().loader,children:(0,i.jsx)(l.Z,{indicator:d,spinning:e.loading})}),e.children]})):(0,i.jsx)("button",(0,a.Z)((0,t.Z)({},e),{className:c().container.concat(" ",e.selected_class?e.selected_class:"").concat(" ",e.disabled?c().disabled:"").concat(" ",e.className?e.className:""),children:e.children}))})}},18740:function(e,s,n){"use strict";var t=n(26042),a=n(85893),i=n(67294),r=n(9100),c=n.n(r),l=n(49093),o=n(41664),d=n.n(o);s.Z=function(e){var s=(0,i.useState)(""),n=s[0],r=s[1],o=(0,i.useState)(!1),u=o[0],p=o[1];(0,i.useEffect)((function(){if(void 0!==e.valueparam){var s=(0,l.s)(e.rules,e.label,e.valueparam);s.status?r(""):r(s.message)}}),[e.valueparam]);return(0,a.jsxs)("div",{className:c().container.concat(" ",e.customContainer?e.customContainer:""),children:[e.label&&(0,a.jsx)("label",{htmlFor:e.name,children:e.label}),(0,a.jsxs)("div",{className:c().input,children:[e.link&&!e.clickableLink&&(0,a.jsx)("div",{className:c().link,children:(0,a.jsx)(d(),{href:e.link?e.link:"/",children:e.link_text})}),e.clickableLink&&(0,a.jsx)("div",{className:c().link,onClick:e.clickableLink,children:(0,a.jsx)("span",{children:e.link_text})}),e.leftIcon&&(0,a.jsx)("div",{className:c().leftIcon,children:e.leftIcon}),(0,a.jsx)("input",(0,t.Z)({type:u?"text":"password"===e.el_type?"password":"text",name:e.name,placeholder:e.placeholder?e.placeholder:e.label,value:e.valueparam||"",className:e.leftIcon&&c().leftIconInput},e)),e.el_type&&"password"===e.el_type&&(0,a.jsx)("div",{className:c().icon,onClick:function(){p(!u)},children:u?(0,a.jsx)("img",{src:"/static/images/icons/eye.png",alt:"eye icon"}):(0,a.jsx)("img",{src:"/static/images/icons/eye-close.png",alt:"eye icon"})}),e.description&&(0,a.jsx)("span",{className:c().description,children:e.description})]}),(0,a.jsx)("span",{className:c().error,style:n?{display:"block"}:{display:"none"},children:n||"Error"})]})}},71058:function(e,s,n){"use strict";var t=n(26042),a=n(69396),i=n(85893),r=(n(67294),n(41664)),c=n.n(r);s.Z=function(e){return(0,i.jsx)(c(),{href:"/",children:(0,i.jsx)("a",(0,a.Z)((0,t.Z)({title:"Home page - pickvisa.com"},e),{style:{display:"flex"},children:(0,i.jsx)("img",{src:"/static/images/logos/logo-".concat("en","-dark.svg")})}))})}},82609:function(e,s,n){"use strict";var t=n(85893),a=(n(67294),n(58637)),i=n.n(a),r=n(11382),c=n(50888);s.Z=function(e){var s=e.loading,n=e.withoutSpin,a=void 0!==n&&n,l=e.children,o=(0,t.jsx)(c.Z,{style:{fontSize:32},spin:!0});return(0,t.jsxs)("div",{className:i().container,children:[s&&(0,t.jsx)("div",{className:i().loader,children:!a&&(0,t.jsx)(r.Z,{indicator:o,spinning:s})}),l]})}},98093:function(e,s,n){"use strict";var t=n(85893),a=(n(67294),n(11382)),i=n(50888),r=n(33793),c=n.n(r);s.Z=function(e){var s=e.spinning,n=void 0!==s&&s,r=e.hasText,l=void 0===r||r,o=e.children,d=(0,t.jsx)(i.Z,{style:{fontSize:32},spin:!0});return(0,t.jsx)(t.Fragment,{children:n?(0,t.jsx)("div",{className:c().container,children:(0,t.jsxs)("div",{className:c().content,children:[l&&(0,t.jsx)("span",{children:"Please wait a second..."}),(0,t.jsx)(a.Z,{indicator:d,spinning:n})]})}):o})}},49093:function(e,s,n){"use strict";function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,t=e.split("|"),a="",i=!0;return t.map((function(e){if("required"===e)(!n||n.length<1)&&(i=!1,a=s+" can not be blank");else if(i&&"email"===e){n.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)||(i=!1,a=s+" must be email format")}})),{message:a,status:i}}n.d(s,{s:function(){return t}})},38965:function(e,s,n){"use strict";var t=n(85893),a=(n(67294),n(22943)),i=n.n(a),r=n(71058);s.Z=function(e){var s=e.type,n=e.children;return(0,t.jsxs)("div",{className:i().container,children:[(0,t.jsxs)("div",{className:i().left,children:[(0,t.jsx)(r.Z,{}),(0,t.jsx)("div",{className:i().leftContent,children:n})]}),(0,t.jsxs)("div",{className:i().right,children:[(0,t.jsx)("h4",{className:i().title,children:"We support our customers in travel, education and business visit visas to any country worldwide."}),"login"===s?(0,t.jsx)("img",{src:"/static/images/backgrounds/woolly-come-back-later__login.png",alt:"pickvisa login",className:i().bg}):(0,t.jsx)("img",{src:"/static/images/backgrounds/woolly-message-sent-register.png",alt:"pickvisa registration",className:i().bg}),(0,t.jsxs)("div",{className:i().bottom,children:[(0,t.jsx)("h3",{children:"Our awards"}),(0,t.jsx)("div",{children:(0,t.jsx)("img",{src:"/static/images/backgrounds/awards.svg",alt:"pickisa awards"})})]})]})]})}},58065:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return b}});var t=n(47568),a=n(34051),i=n.n(a),r=n(85893),c=n(67294),l=n(74248),o=n(38965),d=n(71125),u=n.n(d),p=n(82609),_=n(18740),m=n(63185),h=n(45789),g=n(84669),f=n(12461),x=n(70620),v=n(11163),j=function(e){e.isMobile;var s=(0,l.$G)().t,n=(0,v.useRouter)(),t=(0,c.useState)(void 0),a=t[0],i=t[1],d=(0,c.useState)(void 0),j=d[0],w=d[1],b=(0,c.useState)(!1),P=b[0],N=b[1],k=(0,c.useState)([]),y=k[0],Z=k[1],C=(0,c.useState)(!1),S=C[0],I=C[1];return(0,r.jsx)(o.Z,{type:"login",children:(0,r.jsxs)("div",{className:u().container,children:[(0,r.jsx)("h4",{className:u().title,children:"Set the New Password"}),(0,r.jsx)("div",{className:u().content,children:(0,r.jsxs)(p.Z,{loading:S,children:[(0,r.jsx)(_.Z,{customContainer:u().passwordInput,n
1ame:"new_password",placeholder:"Password",label:"Password",valueparam:a,rules:"required",onChange:function(e){i(e.target.value);var s=y;e.target.value.length>=8?y.includes(4)||(s.push(4),Z(s)):y.includes(4)&&(s=(0,g.PI)(s,4),Z(s)),/\d/.test(e.target.value)?y.includes(2)||(s.push(2),Z(s)):y.includes(2)&&(s=(0,g.PI)(s,2),Z(s)),/[A-Z]/.test(e.target.value)?y.includes(3)||(s.push(3),Z(s)):y.includes(3)&&(s=(0,g.PI)(s,3),Z(s)),/[a-z]/.test(e.target.value)?y.includes(1)||(s.push(1),Z(s)):y.includes(1)&&(s=(0,g.PI)(s,1),Z(s)),s.length>3?N(!0):N(!1)},el_type:"password"}),(0,r.jsx)(_.Z,{customContainer:u().passwordInput,name:"new_password_confirm",placeholder:"Password Confirmation",label:"Password Confirmation",valueparam:j,rules:"required",onChange:function(e){return w(e.target.value)},el_type:"password"}),(0,r.jsx)(m.Z,{title:s("SECURE_PASSWORD"),icon:"/static/images/icons/password_lock.svg",show:P}),!P&&(0,r.jsxs)("div",{className:u().labels,children:[(0,r.jsxs)("ul",{className:u().rules,children:[(0,r.jsx)("li",{className:y.includes(1)?u().completed:"",children:"At lease 1 lowercase letter"}),(0,r.jsx)("li",{className:y.includes(3)?u().completed:"",children:"At least 1 uppercase letter"})]}),(0,r.jsxs)("ul",{className:u().rules.concat(" ",u().right_rules),children:[(0,r.jsx)("li",{className:y.includes(2)?u().completed:"",children:s("password_number")}),(0,r.jsx)("li",{className:y.includes(4)?u().completed:"",children:s("password_characters")})]})]}),(0,r.jsx)("div",{className:u().btnContainer,children:(0,r.jsx)(h.Z,{className:u().btn,disabled:!P,onClick:function(){if(a===j){if(P){var e=n.query.token;I(!0),(0,x.Z)(a,e,(function(){f.ZP.success("Password updated successfully"),n.push("/login").then((function(){I(!1)}))}),(function(e){I(!1),f.ZP.error("Something went wrong")}))}}else f.ZP.error("Password confirmation is not match")},children:"Submit"})})]})})]})})},w=function(e){var s=e.isMobile;return(0,r.jsx)(j,{isMobile:s})};w.getInitialProps=function(){var e=(0,t.Z)(i().mark((function e(s){var n,t,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.req,s.res,t=n?n.headers["user-agent"]:navigator.userAgent,a=Boolean(t.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i)),e.abrupt("return",{isMobile:a});case 5:case"end":return e.stop()}}),e)})));return function(s){return e.apply(this,arguments)}}();var b=w},70620:function(e,s,n){"use strict";n.d(s,{Z:function(){return c},x:function(){return r}});var t=n(84325),a=n(12461),i=n(1893);function r(e,s,n){return(0,t.c3)("/users/password_reset","post",{token:(0,i.LP)(),password:e},s,(function(e){e.response.data&&e.response.data.message&&a.ZP.error(e.response.data.message),n(e)}))}function c(e,s,n,i){return(0,t.c3)("/users/password_reset","post",{token:s,password:e},n,(function(e){e.response.data&&e.response.data.message&&a.ZP.error(e.response.data.message),i(e)}))}},97029:function(e){e.exports={container:"SimpleAlert_container__GQOik",content:"SimpleAlert_content___cf3K",title:"SimpleAlert_title__Bc6nB",description:"SimpleAlert_description__QzBaJ"}},58285:function(e){e.exports={container:"SimpleButton_container__96xui",loader:"SimpleButton_loader__ymKT0",disabled:"SimpleButton_disabled__3qO7M"}},9100:function(e){e.exports={container:"SimpleInput_container__xFAfO",input:"SimpleInput_input__7zfiz",leftIcon:"SimpleInput_leftIcon__Bj34j",leftIconInput:"SimpleInput_leftIconInput__LXUe1",link:"SimpleInput_link__ObNs3",icon:"SimpleInput_icon__RzZ9s",description:"SimpleInput_description__L3ksQ",error:"SimpleInput_error__Nlshk"}},58637:function(e){e.exports={container:"OverlayLoading_container__EpRM6",loader:"OverlayLoading_loader__PbIJH"}},33793:function(e){e.exports={container:"Spinner_container__8Ptvf",content:"Spinner_content__0LldC"}},71125:function(e){e.exports={container:"ResetPasswordPageContainer_container__Tvyws",title:"ResetPasswordPageContainer_title__RZuEF",content:"ResetPasswordPageContainer_content__qWrbQ",passwordInput
1:"ResetPasswordPageContainer_passwordInput__FcO_E",labels:"ResetPasswordPageContainer_labels__q2FFC",rules:"ResetPasswordPageContainer_rules__Fa53W",rule_title:"ResetPasswordPageContainer_rule_title__Wiyue",holder:"ResetPasswordPageContainer_holder__yeVIT",right_rules:"ResetPasswordPageContainer_right_rules__X_7PD",completed:"ResetPasswordPageContainer_completed__vcBsn",btnContainer:"ResetPasswordPageContainer_btnContainer__Dhp3K",btn:"ResetPasswordPageContainer_btn__Zk_w2"}},22943:function(e){e.exports={container:"AuthWebLayout_container__FYqs8",left:"AuthWebLayout_left__ALxtU",leftContent:"AuthWebLayout_leftContent__YN9wP",right:"AuthWebLayout_right__Wybco",title:"AuthWebLayout_title__htJ8W",bg:"AuthWebLayout_bg__q9qxT",bottom:"AuthWebLayout_bottom__4_FVr"}},11163:function(e,s,n){e.exports=n(90387)}},function(e){e.O(0,[6888,1664,1893,9774,2888,179],(function(){return s=44688,e(e.s=s);var s}));var s=e.O();_N_E=s}]);
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.