PageSourceSearch

https://www.strawberrynet.com/_next/static/chunks/pages/resetpassword-9dfae28a57280d0a.js

js strawberrynet.com collected 2026-10-01 12:30:52 UTC 16,925 bytes, 277 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7794],{15526:(t,e,r)=>{"use strict";r.d(e,{n:()=>p});var i=r(14232),o=r(15154),s=r(55640),n=r(68941),a=r(29382);class l extends a.Q{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let r=this.options;this.options=this.client.defaultMutationOptions(t),(0,o.f8)(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:(0,s.$)(),e={...t,isLoading:"loading"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=e}notify(t){n.j.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,r,i,o,s,n,a,l;t.onSuccess?(null==(e=(r=this.mutateOptions).onSuccess)||e.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(i=(o=this.mutateOptions).onSettled)||i.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(s=(n=this.mutateOptions).onError)||s.call(n,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(l=this.mutateOptions).onSettled)||a.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}var d=r(15379),u=r(85461),c=r(7192);function p(t,e,r){let s=(0,o.GR)(t,e,r),a=(0,u.jE)({context:s.context}),[p]=i.useState(()=>new l(a,s));i.useEffect(()=>{p.setOptions(s)},[p,s]);let m=(0,d.r)(i.useCallback(t=>p.subscribe(n.j.batchCalls(t)),[p]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),x=i.useCallback((t,e)=>{p.mutate(t,e).catch(h)},[p]);if(m.error&&(0,c.G)(p.options.useErrorBoundary,[m.error]))throw m.error;return{...m,mutate:x,mutateAsync:m.mutate}}function h(){}},16966:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var i=r(37876);r(14232);var o=r(76252),s=r(18042),n=r(73894);let a=(0,o.A)(s.A)(({theme:t=""})=>({fontSize:16,borderRadius:"6px",textTransform:"uppercase",cursor:"pointer",...(t=>{switch(t){case"pink":return{color:"white","&, &:hover":{backgroundColor:n.y.pink},"&:hover":{opacity:".8"}};case"black":return{backgroundColor:"black",color:"white","&, &:hover":{backgroundColor:"black"},"&:hover":{opacity:".8"}};case"purple":return{backgroundColor:n.y.button_purple,color:"white","&, &:hover":{backgroundColor:n.y.button_purple},"&:hover":{opacity:".8"}};default:return{fontWeight:"bold",borderRadius:"6px",color:"black","&, &:hover":{border:"2px solid black",opacity:1},"&:disabled":{borderColor:n.y.disabled}}}})(t),"&:disabled":{backgroundColor:n.y.disabled,borderColor:n.y.disabled,color:n.y.disabledText,cursor:"not-allowed"}})),l=t=>{let{fullWidth:e=!0,disableRipple:r=!0,...o}=t;return(0,i.jsx)(a,{disableRipple:r,fullWidth:e,...o,children:t.children})}},18262:(t,e,r)=>{"use strict";r.d(e,{A:()=>m});var i=r(37876),o=r(14232),s=r(42922),n=r(98486),a=r(23074),l=r(78479),d=r(1199),u=r(62597),c=r(76252),p=r(10163);let h=(0,c.A)(p.A)`
2	margin-bottom: 1rem;
3
4	& > .MuiInputLabel-root {
5		color: black;
6		margin-bottom: 10px;
7		font-weight: bold;
8		font-size: 1.2rem;
9		font-family: OutFit;
10	}
11
12	& > .MuiInputLabel-root.Mui-focused {
13		color: black;
14
15		& > fieldset {
16			border: solid 1px #040404;
17		}
18	}
19
20	& > div > .MuiInputBase-input {
21		font-size: 1.1rem;
22	}
23
24	& .MuiInput-underline:after {
25		border-bottom: 1px solid rgba(0, 0, 0, 0.42);
26	}
27
28	& > .MuiFormHelperText-root {
29		min-height: 1.5rem;
30		display: block;
31		margin-top: 4px;
32		margin-bottom: 0;
33	}
34`,m=t=>{let{form:e,name:r="password",margin:c="normal",variant:p="standard",helperText:m="",fullWidth:x=!0,isExitIntent:b=!1}=t,{appData:g}
34=(0,d.T8)(),f=(0,u.N)(g),[v,w]=(0,o.useState)(!f),k=e?.watch(r)??t.value,[j,y]=(0,o.useState)(!1);(0,o.useEffect)(()=>{w(!0)},[]);let A=e?.formState?.errors?.[r]?.message,M=m||A;return(0,i.jsx)(h,{name:r,type:j?"text":"password",value:k,margin:c,variant:p,InputLabelProps:{shrink:v},...e&&e.register(r),error:!!e?.formState?.errors?.[r],helperText:b?M||" ":m||A,...b&&{style:{marginTop:0,marginBottom:0},FormHelperTextProps:{style:{visibility:M?"visible":"hidden",minHeight:"1.2rem",display:"block",marginTop:0,marginBottom:0}}},fullWidth:x,InputProps:{inputProps:{maxLength:15},endAdornment:(0,i.jsx)(n.A,{position:"end",children:(0,i.jsx)(s.A,{tabIndex:-1,"aria-label":"toggle password visibility",sx:{cursor:"pointer"},onClick:()=>y(!j),children:j?(0,i.jsx)(l.A,{}):(0,i.jsx)(a.A,{})})})},...t})}},23074:(t,e,r)=>{"use strict";var i=r(29563);e.A=void 0;var o=i(r(94471)),s=r(37876);e.A=(0,o.default)((0,s.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.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},36853:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(37876),o=r(48222),s=r(63676);let n=({pageTitle:t,headerTitle:e,children:r})=>(0,i.jsx)(s.A,{title:t,noLiveChat:!0,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Y9,{children:(0,i.jsx)("div",{children:(0,i.jsx)("h1",{children:e})})}),(0,i.jsx)(o.mc,{children:r})]})})},36970:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var i=r(37876),o=r(99496),s=r(24379),n=r(8119),a=r(48222);let l=({children:t})=>(0,i.jsx)(o.A,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.A,{noNavMenu:!0}),(0,i.jsx)(a.mO,{children:Array.isArray(t)?t.map((t,e)=>(0,i.jsx)("div",{children:t},e)):(0,i.jsx)(i.Fragment,{children:t})}),(0,i.jsx)(s.A,{})]})})},48222:(t,e,r)=>{"use strict";r.d(e,{Y0:()=>c,Y9:()=>u,fn:()=>p,mO:()=>l,mc:()=>d});var i=r(82598),o=r(13224),s=r(76252),n=r(10163),a=r(80362);let l=s.A.div`
35	background-color: #f4f4f4;
36	padding-bottom: 4rem;
37`,d=s.A.div`
38	margin: 0 auto;
39	margin-bottom: 2rem;
40	display: flex;
41	justify-content: center;
42
43	${(0,o.B)("mobile")} {
44		flex-direction: column;
45		align-items: center;
46	}
47
48	& > div {
49		width: 100%;
50	}
51
52	& > .split {
53		width: auto;
54		margin: 10px 10px;
55	}
56
57	& > h2 {
58		margin: 1.2rem 0;
59		font-size: 20px;
60		font-weight: 900;
61	}
62
63	& > h2:first-of-type {
64		margin-top: 0;
65	}
66`,u=s.A.div`
67	background-color: #fff;
68	margin-bottom: 2rem;
69	padding: 1rem;
70
71	${(0,o.B)("mobile")} {
72		text-align: center;
73		padding: 1rem;
74		margin-bottom: 1rem;
75	}
76
77	div {
78		max-width: ${i.vX.default}px;
79		margin: 0 auto;
80		width: 100%;
81		padding: 0rem 15px;
82
83		& > h1 {
84			font-size: 35px;
85			margin: 0;
86		}
87
88		${(0,o.B)("mobile")} {
89			padding: 0;
90
91			& > h1 {
92				font-size: 20px;
93				letter-spacing: 0;
94			}
95		}
96	}
97`;(0,s.A)(n.A)`
98	margin-bottom: 1rem;
99
100	& > .MuiInputLabel-root {
101		color: black;
102		margin-bottom: 10px;
103		font-weight: bold;
104		font-size: 1.2rem;
105		font-family: OutFit;
106	}
107
108	& > .MuiInputLabel-root.Mui-focused {
109		color: black;
110
111		& > fieldset {
112			border: solid 1px #040404;
113		}
114	}
115
116	& > div > .MuiInputBase-input {
117		font-size: 1.1rem;
118	}
119
120	& .MuiInput-underline:after {
121		border-bottom: 1px solid rgba(0, 0, 0, 0.42);
122	}
123`;let c=s.A.button`
124	margin-top: 2rem;
125	padding: 1rem;
126	font-size: 16px;
127	text-align: center;
128	font-weight: bold;
129	border-radius: 2px;
130	border: solid 2px #121212;
131	color: black;
132	width: 100%;
133	background-color: #fff;
134	cursor: pointer;
135
136	:disabled {
137		border-color: #ddd;
138	}
139`,p=(0,s.A)(a.A)`
140	${(0,o.B)("desktop")} {
141		display: none;
142	}
143`},48397:(t,e,r)=>{"use strict";r.d(e,{A:()=>n,v:()=>s});var i,o=r(34957),s=((i={})[i.Default=0]="Default",i[i.Login=1]="Login",i);let n=(0,o.vt)(t=>({alert:{message:"",type:0,buttonText:"",onClickCloseButtonAction:()=>t({isShow:!1})},isShow:!1,show:e=>t({alert:e,isShow:!0}),hide:()=>t({isShow:!1})}))},48637:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/resetpassword",function(){return r(85708)}])},63676:(t,e,r)=>{"use strict";r.d(e,{A:()=>R});var i=r(37876),o=r(14232),s=r(77328),n=r.n(s),a=r(32937),l=r(8349),d=r(84528),u=r(48230),c=r.n(u),p=r(95795),h=r(69877),m=r(68917),x=r(76252);let b=x.A.nav`
144	padding: 0;
145	padding-top: 10px;
146	margin-bottom: 2rem;
147
148	a:hover {
149		color: black;
150		text-decoration: underline;
151		transition: all 0.3s ease-in-out;
152	}
153`,g=({index:t,label:e,isLast:r=!1,darkBackground:o=!1})=>{let s=r?{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem"}:null;return(0,i.jsxs)(a.A,{sx:{fontSize:12,fontWeight:"bold",display:"inline",color:o?"#fff":"#797979",...r&&{fontWeight:"bold"}},...s,children:[(0,i.jsx)("span",{itemProp:"name",children:e}),r&&(0,i.jsx)("meta",{itemProp:"position",content:t.toString()})]})},f=({index:t,asUrl:e,url:r,label:o,darkBackground:s=!1})=>{let{href:n,as:a}=(0,m.Go)(r,e);return(0,i.jsxs)("span",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:[(0,i.jsx)(c(),{href:n,as:a,title:o,itemProp:"item",itemScope:!0,itemType:"https://schema.org/WebPage",itemID:e||r,children:(0,i.jsx)(g,{label:o,index:t,darkBackground:s})}),(0,i.jsx)("meta",{itemProp:"position",content:t.toString()})]})},v=({crumbList:t,darkBackground:e})=>(0,i.jsx)(b,{children:(0,i.jsx)(({darkBackground:e})=>(0,i.jsxs)(p.A,{separator:"/",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",sx:{"& .MuiBreadcrumbs-separator":{color:e?"#fff":"#797979"}},children:[(0,i.jsx)(f,{index:1,url:h.J.home,label:"Home",asUrl:h.J.home,darkBackground:e}),t?.map((t,r)=>t.url?(0,i.jsx)(f,{index:r+2,asUrl:t.asUrl,url:t.url,label:t.text,darkBackground:e},r):(0,i.jsx)(g,{index:r+2,label:t.text,isLast:!0,darkBackground:e},r))]}),{darkBackground:e})}),w=({metaInfos:t})=>{let{productImage:e}=t;return(0,i.jsxs)(n(),{children:[(0,i.jsx)("meta",{property:"og:image",content:e},"ogImage"),(0,i.jsx)("meta",{property:"og:type",content:"product"},"ogType"),(0,i.jsx)("meta",{name:"twitter:image",content:e},"twitterImage")]})};var k=r(35831),j=r(96988);function y({baseMetaInfo:t}){let{t:e}=(0,k.Bd)(),r=j.A.getState().region,o=t?.description?t?.description:e("arr789").replace("+region+",r),s=t?.keywords?t?.keywords:e("arr694");return(0,i.jsxs)(n(),{children:[(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("meta",{name:"twitter:description",content:o},"twitterDescription"),(0,i.jsx)("meta",{name:"description",content:o},"productDescription"),(0,i.jsx)("meta",{property:"og:description",content:o},"ogDescription")]}),(0,i.jsx)("meta",{name:"keywords",content:s})]})}var A=r(15339),M=r(82598);let R=({title:t="",baseMetaInfo:e,productMetas:r,breadcrumbs:s=[],noBreadcrumbBar:u=!1,noBreadcrumbBarPadding:c=!1,noLiveChat:p=!1,children:h,backgroundImage:m="",backgroundImageMobile:x="",darkBackground:b=!1})=>{let g=(0,l.A)(t=>t.setHasLiveChat),f=(0,A.U)(parseInt(M.hF.mobile));return(0,o.useEffect)(()=>{g(!p)},[p]),(0,i.jsxs)(a.A,{sx:{...f&&!!x&&{backgroundImage:`url(${x??m??""})`,backgroundRepeat:"no-repeat",backgroundPosition:"center top",backgroundAttachment:"fixed",backgroundSize:"cover"},...!f&&!!m&&{backgroundImage:`url(${m??x??""})`,backgroundRepeat:"no-repeat",backgroundPosition:"center top",backgroundAttachment:"fixed",backgroundSize:"cover"}},children:[(0,i.jsxs)(n(),{children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("meta",{property:"og:title",content:t},"ogTitle"),(0,i.jsx)("meta",{name:"twitter:title",content:t},"twitterTitle")]}),(0,i.jsx)(y,{baseMetaInfo:e}),!!r&&(0,i.jsx)(w,{metaInfos:r}),!u&&s.length>0&&(0,i.jsx)(d.A,{sx:{...c&&{p:0}},children:(0,i.jsx)(v,{crumbList:s,darkBackground:b})}),h]})}},78479:(t,e,r)=>{"use strict";var i=r(29563);e.A=void 0;var o=i(r(94471)),s=r(37876);e.A=(0,o.default)((0,s.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 7M2 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 3zM7.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.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},84806:(t,e,r)=>{"use strict";r.d(e,{HH:()=>u,ZQ:()=>p,mo:()=>c,oV:()=>d});var i=r(48230),o=r.n(i),s=r(76252),n=r(32937),a=r(10163),l=r(13224);let d=(0,s.A)(n.A)`
154	background-color: white;
155	padding: 2rem;
156	border-radius: 10px;
157	border: solid 1px #ebebeb;
158	max-width: 550px;
159	height: fit-content;
160
161	> span {
162		color: #080808;
163		font-size: 14px;
164		position: relative;
165		top: -12px;
166	}
167`,u=(0,s.A)(o())`
168	color: #080808;
169	font-weight: 600;
170	text-decoration: underline;
171	font-size: 12px;
172	margin: 0.25rem 0 1rem;
173	cursor: pointer;
174`,c=s.A.div`
175	position: fixed;
176	display: ${t=>
176t.show?"block":"none"};
177	width: 100%;
178	height: 100%;
179	top: 0;
180	left: 0;
181	right: 0;
182	bottom: 0;
183	background: rgba(0, 0, 0, 0.6);
184	z-index: 999;
185	overflow: hidden;
186
187	& > div {
188		position: absolute;
189
190		top: 50%;
191		left: 50%;
192		font-size: 50px;
193		color: white;
194		transform: translate(-50%, -50%);
195		-ms-transform: translate(-50%, -50%);
196		width: 600px;
197		height: auto;
198		border-radius: 24px;
199		border: solid 1px #f4f4f4;
200		background-color: #fff;
201		display: flex;
202		flex-direction: column;
203		align-items: center;
204		padding: 50px 80px;
205		max-width: 95%;
206		color: black;
207
208		${(0,l.B)("mobile")} {
209			padding: 60px 30px;
210		}
211
212		.close-button {
213			position: absolute;
214			top: 24px;
215			right: 24px;
216			cursor: pointer;
217		}
218
219		.reminder {
220			color: #c66ee2;
221			font-size: 30px;
222			font-weight: 600;
223			letter-spacing: 0.45px;
224
225			${(0,l.B)("mobile")} {
226				font-size: 24px;
227			}
228		}
229
230		.description {
231			font-size: 16px;
232			text-align: center;
233			letter-spacing: 0.3px;
234			color: #000;
235
236			${(0,l.B)("mobile")} {
237				font-size: 16px;
238			}
239		}
240
241		.form {
242			font-size: 14px;
243			width: 341px;
244			max-width: 100%;
245			font-weight: 600;
246
247			.button {
248				display: flex;
249				justify-content: center;
250			}
251		}
252	}
253`,p=(0,s.A)(a.A)`
254	width: 100%;
255	margin: 0;
256	height: 48px;
257	padding: 0;
258	font-size: 15px;
259	.MuiInputBase-root {
260		border-radius: 15px;
261
262		.MuiOutlinedInput-notchedOutline {
263			border-color: #a1a1a1;
264		}
265
266		.MuiFilledInput-input {
267			height: 46px;
268			font-size: 18px;
269			padding: 0 0 0 10px;
270			font-weight: bold;
271		}
272
273		&.Mui-focused .MuiOutlinedInput-notchedOutline {
274			border-color: inherit;
275		}
276	}
277`},85708:(t,e,r)=>{"use strict";r.r(e),r.d(e,{__N_SSP:()=>A,default:()=>M});var i=r(37876),o=r(14232),s=r(89099),n=r(15526),a=r(39091),l=r(88992),d=r(71090),u=r(35831),c=r(65648),p=r(72636),h=r(69877),m=r(48397),x=r(36970),b=r(36853),g=r(16966),f=r(18262),v=r(32937),w=r(96988),k=r(98145),j=r(84806);let y=()=>{let t=(0,s.useRouter)(),{t:e}=(0,u.Bd)(),r=t.query.token,x=(0,m.A)(t=>t.show);(0,k.A)(),(0,o.useEffect)(()=>{t.isReady&&(r=t.query.token)},[t.isReady]);let y=a.Ik({newpassword:a.Yj().required(e("arr67")),confirmpassword:a.Yj().required(e("arr67")).oneOf([a.KR("newpassword"),null],"The passwords do not match")}),A=(0,l.mN)({defaultValues:{newpassword:"",confirmpassword:""},resolver:(0,d.t)(y)}),M=(0,n.n)(async()=>r?await p.Di.updatePasswordWithForgetToken({region:w.A.getState().region,body:{token:r,newPassowrd:A.getValues().newpassword}}):void x({message:"Reset Password fail",buttonText:e("ok"),type:m.v.Login}),{onSuccess:e=>{e?.success&&t.replace(h.J.auth.resetPasswordThankyou)},onError:t=>{console.log(t);let r=t?.response?.data;x({message:(r&&r.errors&&r.errors.length>0?r.errors[0]:t.message)||"",buttonText:e("ok"),type:m.v.Login})}}),R=async()=>await M.mutate();return(0,i.jsx)(b.A,{pageTitle:e("arr580"),headerTitle:e("arr580"),children:(0,i.jsxs)(j.oV,{children:[(0,i.jsx)(v.A,{sx:{fontSize:"0.875rem"},children:e("arr581")}),(0,i.jsxs)("form",{noValidate:!0,onSubmit:A.handleSubmit(R),children:[(0,i.jsx)(f.A,{form:A,label:e("arr582"),name:"newpassword"}),(0,i.jsx)(f.A,{form:A,label:e("arr583"),name:"confirmpassword"}),(0,i.jsx)(g.A,{type:"submit",variant:"outlined",sx:{mt:2},disabled:M.isLoading,children:M.isLoading?(0,i.jsx)(c.A,{size:30,sx:{color:"#aaa"}}):e("arr580")})]})]})})};y.layout=x.A;var A=!0;let M=y}},t=>{t.O(0,[6822,413,8992,7972,1653,8119,636,6593,8792],()=>t(t.s=48637)),_N_E=t.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.