PageSourceSearch

https://www.mannings.com.hk/72.9586e0294e7120f28173.js

js mannings.com.hk collected 2026-10-01 14:10:13 UTC 22,038 bytes, 79 lines download raw bytes

1/*! @version pwa-studio: 0.0.1, @magento/venia-ui: ~11.3.0, @magento/upward-security-headers: ~1.0.14, @magento/pwa-theme-venia: ~2.4.0, @magento/pwa-buildpack: ~11.4.3, @magento/peregrine: ~15.5.2, @magento/pagebuilder: ~9.2.1, @magento/eslint-config: ~1.5.0, @magento/babel-preset-peregrine: ~1.2.3, @apollo/client: ~3.5.0 */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[72],{NtSL:function(e,n,t){"use strict"
3var r=t("JPst"),a=t.n(r),o=t("q8oi"),i=a()(function(e){return e[1]})
4i.i(o.a,"",!0),i.push([e.i,".resetPassword-root-Qv- {\n    grid-template-columns: minmax(auto, 440px);\n}\n\n.resetPassword-header-86U {\n}\n\n.resetPassword-form-s66 {\n}\n\n.resetPassword-description-pMw {\n}\n\n.resetPassword-submitButton-cyo {\n}\n\n.resetPassword-invalidToken-qXS,\n.resetPassword-successMessage-r4c {\n}\n\n.resetPassword-invalidToken-qXS {\n}\n\n.resetPassword-mtCaptcha-5T1 {\n}\n\n.resetPassword-resendOtp-5gW {\n    font-size: 14px;\n}\n\n.resetPassword-countdown-GT5 {\n}\n\n.resetPassword-countdown-GT5 span{\n    padding-right: 4px;\n}\n",""]),i.locals={root:"resetPassword-root-Qv- grid gap-y-6 justify-center p-4 mb-6 text-center",header:"resetPassword-header-86U capitalize text-lg font-bold",form:"resetPassword-form-s66 gap-6 grid justify-items-stretch lg_mb-md",description:"resetPassword-description-pMw font-light leading-5",submitButton:"resetPassword-submitButton-cyo "+o.a.locals.root_highPriority+" justify-self-center w-full",invalidToken:"resetPassword-invalidToken-qXS p-sm text-center text-error",successMessage:"resetPassword-successMessage-r4c p-sm text-center",mtCaptcha:"resetPassword-mtCaptcha-5T1 m-auto",resendOtp:"resetPassword-resendOtp-5gW mt-2",countdown:"resetPassword-countdown-GT5 resetPassword-resendOtp-5gW mt-2"},n.a=i},Q84e:function(e,n,t){"use strict"
5var r=t("q1tI"),a=t.n(r),o=t("y1Xp"),i=t("LboF"),s=t.n(i),d=t("Z1Wd"),l={injectType:"singletonStyleTag",insert:"head",singleton:!0},c=(s()(d.a,l),d.a.locals||{})
6n.a=function PageContent(e){var n=e.children,t=Object(o.a)(c,e.classes)
7return a.a.createElement("div",{className:t.root},n)}},Z1Wd:function(e,n,t){"use strict"
8var r=t("JPst"),a=t.n(r)()(function(e){return e[1]})
9a.push([e.i,".PageContent-root-MwL {\n}\n\n\n",""]),a.locals={root:"PageContent-root-MwL max-w-site mx-auto"},n.a=a},xCbB:function(e,n,t){"use strict"
10t.r(n),t.d(n,"default",function(){return R})
11var r=t("pVnL"),a=t.n(r),s=t("yXPU"),d=t.n(s),l=t("J4zp"),c=t.n(l),u=t("lSNA"),m=t.n(u),p=t("q1tI"),g=t.n(p),w=t("dDsW"),v=t("kriW"),k=t("17x9"),P=t("8UhI"),b=t("J3e4"),y=t("Ty5D"),h=t("52Kp"),O=t("pZLH"),N=t("gcQ7")
12function ownKeys(e,n){var t=Object.keys(e)
13if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
14n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{}
15n%2?ownKeys(Object(t),!0).forEach(function(n){m()(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function _regenerator(){var e,n,t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",a=t.toStringTag||"@@toStringTag"
16function i(t,r,a,i){var s=r&&r.prototype instanceof Generator?r:Generator,d=Object.create(s.prototype)
17return _regeneratorDefine2(d,"_invoke",function(t,r,a){var i,s,l,c=0,u=a||[],m=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(n,t){return i=n,s=0,l=e,p.n=t,o}}
18function d(t,r){for(s=t,l=r,n=0;!m&&c&&!a&&n<u.length;n++){var a,i=u[n],d=p.p,f=i[2]
19t>3?(a=f===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((a=t<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<f&&(a=t<3||i[0]>r||r>f)&&(i[4]=t,i[5]=r,p.n=f,s=0))}if(a||t>1)return o
20throw m=!0,r}return function(a,u,f){if(c>1)throw TypeError("Generator is already running")
21for(m&&1===u&&d(u,f),s=u,l=f;(n=s<2?e:l)||!m;){i||(s?s<3?(s>1&&(p.n=-1),d(s,l)):p.n=l:p.v=l)
22try{if(c=2,i){if(s||(a="next"),n=i[a]){if(!(n=n.call(i,l)))throw TypeError("iterator result is not an object")
23if(!n.done)return n
24l=n.value,s<2&&(s=0)}else 1===s&&(n=i.return)&&n.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),s=1)
25i=e}else if((n=(m=p.n<0)?l:t.call(r,p))!==o)break}catch(n){i=e,s=1,l=n}finally{c=1}}return{value:n,done:m}}}(t,a,i),!0),d}var o={}
26function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}n=Object.getPrototypeOf
27var s=[][r]?n(n([][r]())):(_regeneratorDefine2(n={},r,function(){return this}),n),l=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(s)
28function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,a,"GeneratorFunction")),e.prototype=Object.create(l),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(l,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,a,"GeneratorFunction"),_regeneratorDefine2(l),_regeneratorDefine2(l,a,"Generator"),_regeneratorDefine2(l,r,function(){return this}),_regeneratorDefine2(l,"toString",function(){return"[object Generator]"}),(_regenerator=function _regenerator(){return{w:i,m:f}})()}function _regeneratorDefine2(e,n,t,r){var a=Object.defineProperty
29try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function _regeneratorDefine(e,n,t,r){function o(n,t){_regeneratorDefine2(e,n,function(e){return this._invoke(n,t,e)})}n?a?a(e,n,{value:t,enumerable:!r,configurable:!r,writable:!r}):e[n]=t:(o("next",0),o("throw",1),o("return",2))})(e,n,t,r)}var T=t("y1Xp"),S=t("/MDx"),j=t("X5qW"),_=t("z8z7"),D=t("+OuV"),G=t("FB2Q"),E=t("lcLu"),F=t("HiI3"),M=t("ZLnw"),V=t("BBzE"),B=t("Q84e"),C=t("LboF"),x=t.n(C),$=t("NtSL"),I={injectType:"singletonStyleTag",insert:"head",singleton:!0},A=(x()($.a,I),$.a.locals||{}),L={queries:{},mutations:{resetPasswordMutation:{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"resetPassword"}
29,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"token"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"newPassword"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"otp"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"resetPassword"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"resetPasswordToken"},value:{kind:"Variable",name:{kind:"Name",value:"token"}}},{kind:"Argument",name:{kind:"Name",value:"newPassword"},value:{kind:"Variable",name:{kind:"Name",value:"newPassword"}}},{kind:"Argument",name:{kind:"Name",value:"otp"},value:{kind:"Variable",name:{kind:"Name",value:"otp"}}}],directives:[]}]}}],loc:{start:0,end:301,source:{body:"\n    mutation resetPassword(\n        $email: String!\n        $token: String!\n        $newPassword: String!\n        $otp: String!\n    ) {\n        resetPassword(\n            email: $email\n            resetPasswordToken: $token\n            newPassword: $newPassword\n            otp: $otp\n        )\n    }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},resetPasswordByPhoneOtpMutation:{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"changePasswordByPhoneOTP"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phoneId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"newPassword"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"otp"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changePasswordByPhoneOTP"},arguments:[{kind:"Argument",name:{kind:"Name",value:"phoneId"},value:{kind:"Variable",name:{kind:"Name",value:"phoneId"}}},{kind:"Argument",name:{kind:"Name",value:"newPassword"},value:{kind:"Variable",name:{kind:"Name",value:"newPassword"}}},{kind:"Argument",name:{kind:"Name",value:"otp"},value:{kind:"Variable",name:{kind:"Name",value:"otp"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:335,source:{body:"\n    mutation changePasswordByPhoneOTP(\n        $phoneId: String!\n        $newPassword: String!\n        $otp: String!\n    ) {\n        changePasswordByPhoneOTP(\n            phoneId: $phoneId\n            newPassword: $newPassword\n            otp: $otp\n        ){\n            message # string\n            status # Boolean\n        }\n    }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},resetPasswordByEmailOtpMutation:{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangePasswordByEmailOTP"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"newPassword"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}
29,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"otp"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changePasswordByEmailOTP"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"newPassword"},value:{kind:"Variable",name:{kind:"Name",value:"newPassword"}}},{kind:"Argument",name:{kind:"Name",value:"otp"},value:{kind:"Variable",name:{kind:"Name",value:"otp"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:329,source:{body:"\n    mutation ChangePasswordByEmailOTP(\n        $email: String!\n        $newPassword: String!\n        $otp: String!\n    ) {\n        changePasswordByEmailOTP(\n            email: $email\n            newPassword: $newPassword\n            otp: $otp\n        ){\n            message # string\n            status # Boolean\n        }\n    }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},requestPasswordResetPhoneMutation:{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ForgotpasswordOTP"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phoneId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"forgotpasswordOTP"},arguments:[{kind:"Argument",name:{kind:"Name",value:"phoneId"},value:{kind:"Variable",name:{kind:"Name",value:"phoneId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:173,source:{body:"\n    mutation ForgotpasswordOTP($phoneId: String!) {\n        forgotpasswordOTP(phoneId: $phoneId){\n            message # string\n            status # Boolean\n        }\n    }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}}}}
30function resetPassword_regenerator(){var e,n,t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",a=t.toStringTag||"@@toStringTag"
31function i(t,r,a,i){var s=r&&r.prototype instanceof Generator?r:Generator,d=Object.create(s.prototype)
32return resetPassword_regeneratorDefine2(d,"_invoke",function(t,r,a){var i,s,l,c=0,u=a||[],m=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(n,t){return i=n,s=0,l=e,p.n=t,o}}
33function d(t,r){for(s=t,l=r,n=0;!m&&c&&!a&&n<u.length;n++){var a,i=u[n],d=p.p,f=i[2]
34t>3?(a=f===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((a=t<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<f&&(a=t<3||i[0]>r||r>f)&&(i[4]=t,i[5]=r,p.n=f,s=0))}if(a||t>1)return o
35throw m=!0,r}return function(a,u,f){if(c>1)throw TypeError("Generator is already running")
36for(m&&1===u&&d(u,f),s=u,l=f;(n=s<2?e:l)||!m;){i||(s?s<3?(s>1&&(p.n=-1),d(s,l)):p.n=l:p.v=l)
37try{if(c=2,i){if(s||(a="next"),n=i[a]){if(!(n=n.call(i,l)))throw TypeError("iterator result is not an object")
38if(!n.done)return n
39l=n.value,s<2&&(s=0)}else 1===s&&(n=i.return)&&n.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),s=1)
40i=e}else if((n=(m=p.n<0)?l:t.call(r,p))!==o)break}catch(n){i=e,s=1,l=n}finally{c=1}}return{value:n,done:m}}}(t,a,i),!0),d}var o={}
41function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}n=Object.getPrototypeOf
42var s=[][r]?n(n([][r]())):(resetPassword_regeneratorDefine2(n={},r,function(){return this}),n),l=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(s)
43function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,resetPassword_regeneratorDefine2(e,a,"GeneratorFunction")),e.prototype=Object.create(l),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,resetPassword_regeneratorDefine2(l,"constructor",GeneratorFunctionPrototype),resetPassword_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",resetPassword_regeneratorDefine2(GeneratorFunctionPrototype,a,"GeneratorFunction"),resetPassword_regeneratorDefine2(l),resetPassword_regeneratorDefine2(l,a,"Generator"),resetPassword_regeneratorDefine2(l,r,function(){return this}),resetPassword_regeneratorDefine2(l,"toString",function(){return"[object Generator]"}),(resetPassword_regenerator=function _regenerator(){return{w:i,m:f}})()}function resetPassword_regeneratorDefine2(e,n,t,r){var a=Object.defineProperty
44try{a({},"",{})}catch(e){a=0}(resetPassword_regeneratorDefine2=function _regeneratorDefine(e,n,t,r){function o(n,t){resetPassword_regeneratorDefine2(e,n,function(e){return this._invoke(n,t,e)})}n?a?a(e,n,{value:t,enumerable:!r,configurable:!r,writable:!r}):e[n]=t:(o("next",0),o("throw",1),o("return",2))})(e,n,t,r)}function resetPassword_ownKeys(e,n){var t=Object.keys(e)
45if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
46n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}var q=function ResetPassword(e){var n=e.classes,t=Object(w.a)().formatMessage,r=Object(T.a)(A,n),o=function useResetPassword(e){var n=e.mutations,t=Object(p.useState)(!1),r=c()(t,2),a=r[0],o=r[1],i=Object(y.h)(),s=Object(O.a)(n.resetPasswordByEmailOtpMutation),l=c()(s,2),u=l[0],m=l[1],f=m.error,g=m.loading,w=Object(O.a)(n.resetPasswordByPhoneOtpMutation),v=c()(w,2),k=v[0],P=v[1],b=P.error,T=P.loading,S=Object(O.a)(n.requestPasswordResetPhoneMutation,{fetchPolicy:"no-cache"}),j=c()(S,2),_=j[0],D=j[1].error,G=Object(N.a)({currentForm:"CUSTOMER_FORGOT_PASSWORD",formAction:"resetPassword"}),E=G.generateMTCaptchaData,F=G.resetMTCaptcha,M=G.mtCaptchaLoading,V=G.mtCaptchaWidgetProps,B=Object(p.useMemo)(function(){return new URLSearchParams(i.search)},[i]),C=B.get("email_hash"),x=B.get("phoneId"),$=B.get("vtoken")
47C&&(C=h.a.decode(C)),x&&(x=h.a.decode(x))
48var I=Object(p.useCallback)(d()(_regenerator().m(function _callee(){var e,n
49return _regenerator().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,_({variables:{phoneId:x,loading:!0}})
50case 1:return e=t.v,n=e.data,t.a(2,n)
51case 2:t.p=2,t.v
52case 3:return t.a(2)}},_callee,null,[[0,2]])})),[_]),A=Object(p.useCallback)((L=d()(_regenerator().m(function _callee2(e){var n,t,r,a
53return _regenerator().w(function(i){for(;;)switch(i.p=i.n){case 0:if(n=e.newPassword,t=e.otp,r=void 0===t?$:t,i.p=1,!n||!r){i.n=7
54break}return i.n=2,E()
55case 2:if(a=i.v,null==V||!V.shouldRender||a.context.headers["X-MTCaptcha"]){i.n=3
56break}return setIsSubmitting(!1),i.a(2)
57case 3:if(!C){i.n=5
58break}return i.n=4,u(_objectSpread({variables:{email:C,newPassword:n,otp:r,loading:!0}},a))
59case 4:i.n=6
60break
61case 5:if(!x){i.n=6
62break}return i.n=6,k(_objectSpread({variables:{phoneId:x,newPassword:n,otp:r,loading:!0}},a))
63case 6:o(!0)
64case 7:i.n=9
65break
66case 8:i.p=8,i.v,o(!1)
67case 9:return i.a(2)}},_callee2,null,[[1,8]])})),function(e){return L.apply(this,arguments)}),[E,u,k,C,x,$])
68var L
69return Object(p.useEffect)(function(){(f||b)&&F()},[f,b]),{formErrors:C?[f]:[b],resendPhoneOTPError:D,handleResendOTP:I,handleSubmit:A,hasCompleted:a,loading:g||T||M,email:C,phoneId:x,mtCaptchaWidgetProps:V}}(function resetPassword_objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{}
70n%2?resetPassword_ownKeys(Object(t),!0).forEach(function(n){m()(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):resetPassword_ownKeys(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({},L)),i=o.hasCompleted,s=o.loading,l=o.email,u=(o.token,o.formErrors),f=o.handleResendOTP,k=o.handleSubmit,C=o.mtCaptchaWidgetProps,x=Object(b.a)(),$=c()(x,2)[1].addToast,I=Object(p.useState)(60),q=c()(I,2),R=q[0],W=q[1],Q=Object(p.useState)(!0),X=c()(Q,2),K=X[0],z=X[1],J=t({id:"resetPassword.title",defaultMessage:"Change password"}),U=[{text:J}],H=Object(p.useCallback)(d()(resetPassword_regenerator().m(function _callee(){var e,n
71return resetPassword_regenerator().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f()
72case 1:null!=(e=t.v)&&e.forgotpasswordOTP&&($({type:"success",message:null==e?void 0:null===(n=e.forgotpasswordOTP)||void 0===n?void 0:n.message,timeout:5e3}),W(60),z(!0))
73case 2:return t.a(2)}},_callee)})),[f,$,t])
74Object(p.useEffect)(function(){if(i)$({type:"info",message:t({id:"resetPassword.savedPasswordText",defaultMessage:"Your new password has been saved."}),timeout:5e3})
75else if(!l){var e
76return K&&R>0?e=setTimeout(function(){return W(R-1)},1e3):0===R&&z(!1),function(){return clearTimeout(e)}}},[$,t,i,l,R,K])
77var Z=i?g.a.createElement("div",{className:r.successMessage},g.a.createElement(v.a,{id:"resetPassword.successMessage",defaultMessage:"Your new password has been saved. Please use this password to sign into your Account."})):g.a.createElement(p.Fragment,null,g.a.createElement(P.b,{className:r.form,onSubmit:k},!l&&g.a.createElement("div",null,g.a.createElement(_.a,{label:t({id:"global.otpText",defaultMessage:"One-time password"})},g.a.createElement(M.a,{field:"otp",validate:Object(S.a)([S.b],{id:"global.otpRequired"}),validateOnBlur:!0,mask:function mask(e){return e&&e.trim()},maskOnBlur:!0})),K?g.a.createElement("div",{className:r.countdown},g.a.createElement("span",null,R),t({id:"global.sec",defaultMessage:"sec"})):g.a.createElement("div",{className:r.resendOtp},g.a.createElement("a",{className:"global-links",href:"javascript:void(0)",onClick:H},g.a.createElement(v.a,{id:"accountVerify.resendOtpText",defaultMessage:"Resend OTP"})))),g.a.createElement(F.a,{id:"newPassword",autoComplete:"new-password",fieldName:"newPassword",isToggleButtonHidden:!1,label:t({id:"resetPassword.newPasswordText",defaultMessage:"New password (Min 6 Alphanumeric)"}),validate:S.g,validateOnBlur:!0,mask:function mask(e){return e&&e.trim()},maskOnBlur:!0}),g.a.createElement(F.a,{id:"ConfirmPassword",autoComplete:"new-password",fieldName:"confirmPassword",isToggleButtonHidden:!1,label:t({id:"resetPassword.confirmPasswordText",defaultMessage:"Confirm password"}),validate:function validate(e,n){return Object(S.d)(e,{password:n.newPassword})},validateOnBlur:!0,mask:function mask(e){return e&&e.trim()},maskOnBlur:!0}),g.a.createElement(G.a,a()({classes:{root:r.mtCaptcha}},C)),g.a.createElement(D.a,{errors:u,allowErrorMessages:!0}),g.a.createElement(j.a,{className:r.submitButton,type:"submit",priority:"high",disabled:s},g.a.createElement(v.a,{id:"resetPassword.savePassword",defaultMessage:"Save Password"}))))
78return g.a.createElement(B.a,null,g.a.createElement(V.a,{pathMap:U}),g.a.createElement("div",{className:r.root},g.a.createElement(E.b,null,J),g.a.createElement("h1",{"aria-live":"polite",className:r.header},g.a.createElement(v.a,{id:"resetPassword.title",defaultMessage:"Change password"})),Z))},R=q
79q.propTypes={classes:Object(k.shape)({root:k.string,header:k.string,contentContainer:k.string,form:k.string,description:k.string,invali
79dToken:k.string,buttonContainer:k.string,submitButton:k.string,successMessage:k.string})}}}])

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.