1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8488],{44510:function(e,s,t){"use strict";var n=t(64836);s.Z=void 0;var a=n(t(64938)),r=t(85893),i=(0,a.default)((0,r.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");s.Z=i},60888:function(e,s,t){"use strict";var n=t(64836);s.Z=void 0;var a=n(t(64938)),r=t(85893),i=(0,a.default)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");s.Z=i},89572:function(e,s,t){"use strict";var n=t(64836);s.Z=void 0;var a=n(t(64938)),r=t(85893),i=(0,a.default)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");s.Z=i},47673:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/resetPassword",function(){return t(32735)}])},30563:function(e,s,t){"use strict";var n=t(85893),a=t(67294),r=t(86010),i=t(45697),o=t.n(i),l=t(90948),c=t(86886),d=t(26447),u=t(15861),h=t(60888),m=t(44510),x=t(19160);let g="PasswordCheck",f={contains:"".concat(g,"-contains"),success:"".concat(g,"-success"),warning:"".concat(g,"-warning")},p=(0,l.ZP)(c.ZP)(()=>({["& .".concat(f.contains)]:{marginLeft:10,width:"200px",height:"25px",fontSize:"14px",fontWeight:500,letterSpacing:"0.17px",textAlign:"left"},["& .".concat(f.success)]:{color:"rgba(16, 27, 33, 0.6)"},["& .".concat(f.warning)]:{color:"#e84121"}})),w=e=>{let{password:s=""}=e,{t}=(0,x.$G)("sign"),[i,o]=(0,a.useState)(!1),[l,g]=(0,a.useState)(!1),[w,Z]=(0,a.useState)(!1),[P,j]=(0,a.useState)(!1),[y,v]=(0,a.useState)(!1),C=[[t("mustContains.containsLL"),l],[t("mustContains.containsUL"),i],[t("mustContains.containsN"),w],[t("mustContains.containsSC"),P],[t("mustContains.contains8C"),y]];return(0,a.useEffect)(()=>{o(s.toLowerCase()!==s),g(s.toUpperCase()!==s),Z(/\d/.test(s)),j(/[~`!#$%^&@*+=\-[\]\\';,/{}|\\":<>]/g.test(s)),v(s.length>=12)},[s]),(0,n.jsxs)(d.Z,{children:[(0,n.jsx)(u.Z,{variant:"subtext2Regular",children:t("authorize.password_at_least")}),(0,n.jsx)(p,{container:!0,spacing:{xs:0},sx:{mt:1.5,mb:1.5},children:C.map((e,s)=>(0,n.jsx)(c.ZP,{item:!0,xs:6,sm:5,sx:{mb:{xs:"10px",sm:0}},children:e[1]?(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start"},children:[(0,n.jsx)(h.Z,{fontSize:"small",style:{fill:"#4BAF4F"}}),(0,n.jsx)(u.Z,{className:(0,r.Z)(f.contains,f.success),children:e[0]})]}):(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start"},children:[(0,n.jsx)(m.Z,{fontSize:"small",style:{fill:"#e84121"}}),(0,n.jsx)(u.Z,{className:(0,r.Z)(f.contains,f.warning),children:e[0]})]})},s))}),(0,n.jsx)(u.Z,{variant:"subtext2Regular",children:t("authorize.password_needs_include")})]})};w.propTypes={password:o().string},s.Z=w},99916:function(e,s,t){"use strict";var n=t(85893),a=t(87357),r=t(83321),i=t(98456),o=t(26447),l=t(45697),c=t.n(l);let d=e=>{let{ButtonProps:s={},label:t,isSubmitting:l,id:c}=e;return(0,n.jsx)(a.Z,{sx:{textAlign:"center"},children:(0,n.jsx)(r.Z,{id:c||void 0,fullWidth:!0,sx:{fontWeight:600,fontSize:"14px",textTransform:"none",height:"42px"},type:"submit",variant:"contained",disabled:l,endIcon:l&&(0,n.jsx)(i.Z,{disableShrink:!0,variant:"indeterminate",size:18,sx:{color:"#FFF",marginLeft:1}}),...s,children:(0,n.jsx)(o.Z,{direction:"row",alignItems:"center",children:(0,n.jsx)(a.Z,{sx:{height:"26px",fontSize:"15px",fontWeight:"bold",lineHeight:1.73,letterSpacing:" 0.46px",textTransform:"none",color:"#fff"},children:t})})})})};d.propTypes={label:c().string.isRequired,ButtonProps:c().object,isSubmitting:c().bool,id:c().string},s.Z=d},59413:function(e,s,t){"use strict";t.d(s,{S4:function(){return p},dm:function(){return x},ek:function(){return f},if:function(){return g}});var n=t(74231);let a=e=>n.Z_().required(e("schema.required")).matches(/^.{6,}$/,{message:e("schema.minChar"),excludeEmptyString:!1}).default(""),r=e=>n.Z_().required(e("schema.required")).matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[~`
1!#$%^&@*+=\-[\]\\';,/{}|\\":<>])(?=.{12,})/,{message:" ",excludeEmptyString:!1}).default(""),i=e=>n.Z_().email(e("schema.mailFormat")).max(200,e("schema.mailMaxChar")).matches(/^(([^<>()\[\]\\.,;:\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,}))$/,{message:e("schema.mailFormat")}).required(e("schema.required")).default(""),o=e=>n.Z_().required(e("schema.required")).min(5,e("schema.nameSurnameMinChar")).max(100,e("schema.nameSurnameMaxChar")).test("hasSurname",e("schema.surnameRequired"),e=>{if(!e||"string"!=typeof e)return!1;let s=e.trim(),t=s.lastIndexOf(" ");if(t<=0)return!1;let n=s.substring(t+1).trim();return n.length>=2}).default(""),l=e=>n.Z_().nullable().min(4,e("schema.companyNameMinChar")).max(100,e("schema.companyNameMaxChar")).default(null),c=/^[0-9]*$/,d=/^[1-9][0-9]{9}$/,u=e=>n.Z_().required(e("schema.required")).matches(c,{message:e("schema.phoneOnlyDigits")}).when(["phoneCode"],(s,t)=>{let n=String(s||"").trim();return"+90"===n?t.matches(d,{message:e("schema.trMaxDigit")}):t.min(5,e("schema.phoneMinLength")).max(15,e("schema.phoneMaxLength"))}).default(""),h=e=>n.O7().default(!1).oneOf([!0]," "),m=()=>n.Z_().default("TR"),x=e=>n.Ry().shape({email:i(e),password:a(e),turnstileToken:n.Z_().required(e("schema.captchaRequired"))}),g=e=>n.Ry().shape({email:i(e),password:r(e),fullName:o(e),jobTitle:l(e),phoneNumber:u(e),phoneCode:m(),userAgreement:h(e),grantedElectronicCommPermission:n.O7(),explicitConsent:n.O7().default(!1).oneOf([!0]," "),securityToken:n.Z_().required(e("schema.required"))}),f=e=>n.Ry().shape({email:i(e)}),p=e=>n.Ry().shape({newPassword:r(e),userAgreement:h(e),grantedElectronicCommPermission:n.O7(),explicitConsent:n.O7().default(!1).oneOf([!0]," ")})},32735:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSG:function(){return S},default:function(){return b}});var n=t(85893),a=t(67294),r=t(19160),i=t(69915),o=t(26447),l=t(83321),c=t(98456),d=t(15861),u=t(67591),h=t(87109),m=t(93946),x=t(82175),g=t(59413),f=t(39765),p=t(99916),w=t(88169),Z=(0,w.Z)((0,n.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),P=(0,w.Z)((0,n.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),j=t(30563),y=t(23248),v=t(11163);let C=()=>{let{t:e}=(0,r.$G)("sign"),s=(0,y.kt)(!1),[t,w]=(0,a.useState)(),C=(0,v.useRouter)(),S=(0,y.kt)(!0);(0,a.useEffect)(()=>{let e=async()=>{let{code:e}=C.query;if(console.log("code",e),!e)return;let s=await fetch("api/verify-reset-password-code",{method:"POST",body:JSON.stringify({code:e})}).then(async e=>({status:e.status,ok:e.ok,json:await e.json()}));s.ok||(w({status:s.ok,data:s.json}),console.log(s.json)),S.setFalse()};-1===C.asPath.indexOf("?")&&C.isReady?w({status:!1}):e()},[C.query]);let b=(0,x.TA)({initialValues:{newPassword:"",userAgreement:!0,grantedElectronicCommPermission:!0,explicitConsent:!0},validationSchema:(0,g.S4)(e),onSubmit:async e=>{let{newPassword:s}=e,t=await fetch("/api/update-password",{method:"PUT",body:JSON.stringify({code:C.query.code,password:s})});w({status:t.ok,data:t.json})}});if(t){let z=null==t?void 0:t.status;return(0,n.jsx)(i.Z,{showLogos:!1,children:(0,n.jsx)(o.Z,{sx:{width:"100%",minHeight:240},justifyContent:"center",alignItems:"center",children:(0,n.jsx)(f.Z,{status:z?"success":"error",title:e(z?"resetPasswordPage.success":"resetPasswordPage.error"),subtitle:e(z?"resetPasswordPage.successInfo":"resetPasswordPage.notVerifiedCode"),hideIcon:!1===z,children:(0,n.jsx)(l.Z,{sx:{width:1},variant:"contained",size:"large",href:z?"https://ship.navlungo.com":"/forgotPassword",children:e(z?"resetPasswordPage.login":"resetPasswordPage.tryAgain")})})})})}return S.value||b.isSubmitting?(0,n.jsx)(i.Z,{children:(0,n.jsxs)(o.Z,{sx:{width:1,height:1,alignItems:"center",justifyContent:"center",gap:5},children:[(0,n.jsx)(c.Z,{disableShrink:!0,variant:"indeterminate",size:44}),(0,n.jsx)(d.Z,{color:"text.secondary",variant:"subtext2Regular",children:e("authorize.validatingResetCode")})]})}):(0,n.jsxs)(i.Z,{children:[(0,n.jsx)(d.Z,{variant:"h4",component:"span",sx:{textAlign:"center",mb:2},children:e("resetPasswordPage.setPassword")}),(0,n.jsx)(d.Z,{variant:"subtext2Regular",component:"span",sx:{textAlign:"center",mb:4},children:e("resetPasswordPage.setPasswordDescription")}),(0,n.jsx)("form",{noValidate:!0,onSubmit:b.handleSubmit,style:{width:"100%"},children:(0,n.jsxs)(o.Z,{sx:{gap:3,width:"100%",minWidth:"337px"},children:[(0,n.jsx)(u.Z,{variant:"outlined",fullWidth:!0,label:e("resetPasswordPage.newPassword"),type:s.value?"text":"password",name:"newPassword",value:b.values.newPassword,onBlur:e=>b.setFieldTouched(e.target.name),onChange:b.handleChange,error:b.touched.newPassword&&Boolean(b.errors.newPassword),helperText:b.touched.newPassword&&b.errors.newPassword,InputProps:{endAdornment:(0,n.jsx)(h.Z,{position:"end",children:(0,n.jsx)(m.Z,{edge:"end","aria-label":"toggle password visibility",onClick:s.toggle,size:"large",children:s.value?(0,n.jsx)(P,{sx:{color:b.touched.newPassword&&b.errors.newPassword?"error.main":0===b.values.newPassword.length?"grey.500":"primary.main"}}):(0,n.jsx)(Z,{sx:{color:b.touched.newPassword&&b.errors.newPassword?"error.main":0===b.values.newPassword.length?"grey.500":"primary.main"}})})})}}),(0,n.jsx)(j.Z,{password:b.values.newPassword}),(0,n.jsx)(p.Z,{label:e("resetPasswordPage.update"),isSubmitting:b.isSubmitting})]})})]})};var S=!0,b=C}},function(e){e.O(0,[7514,1645,7591,2175,1663,502,281,9774,2888,179],function(){return e(e.s=47673)}
1),_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.