PageSourceSearch

https://asset.nykaa.com/dstatic/5672.97634bdf0a.chunk.js

js nykaa.com collected 2026-10-01 10:19:34 UTC 26,736 bytes, 255 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5672],{80831:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(67294);const r=()=>a.createElement("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{y:"0.546875",width:"24",height:"23.8659",fill:"white"}),a.createElement("path",{d:"M22 12.701C22 11.8834 21.9319 11.2867 21.7846 10.668H12.2041V14.3583H17.8276C17.7143 15.2754 17.1021 16.6566 15.7415 17.5846L15.7224 17.7082L18.7516 19.9951L18.9615 20.0155C20.8889 18.2808 22 15.7284 22 12.701Z",fill:"#4285F4"}),a.createElement("path",{d:"M12.2041 22.4228C14.9591 22.4228 17.272 21.5388 18.9614 20.0141L15.7414 17.5832C14.8798 18.1688 13.7233 18.5776 12.2041 18.5776C9.50565 18.5776 7.21542 16.843 6.39902 14.4453L6.27935 14.4552L3.12957 16.8308L3.08838 16.9424C4.76637 20.1908 8.21309 22.4228 12.2041 22.4228Z",fill:"#34A853"}),a.createElement("path",{d:"M6.39905 14.4458C6.18363 13.8271 6.05897 13.1641 6.05897 12.479C6.05897 11.794 6.18363 11.131 6.38772 10.5123L6.38201 10.3805L3.19276 7.9668L3.08841 8.01517C2.39683 9.36317 2 10.8769 2 12.479C2 14.0812 2.39683 15.5948 3.08841 16.9429L6.39905 14.4458Z",fill:"#FBBC05"}),a.createElement("path",{d:"M12.2041 6.38022C14.1201 6.38022 15.4126 7.1868 16.1496 7.86084L19.0294 5.12065C17.2608 3.51853 14.9591 2.53516 12.2041 2.53516C8.21309 2.53516 4.76637 4.76706 3.08838 8.01547L6.38769 10.5126C7.21542 8.11495 9.50566 6.38022 12.2041 6.38022Z",fill:"#EB4335"}))},74449:(e,t,n)=>{n.d(t,{ED:()=>p,Is:()=>f,U3:()=>d,Yc:()=>g,Z0:()=>c,a1:()=>E,b1:()=>s,e2:()=>o,g7:()=>h,i:()=>m,iV:()=>u,n5:()=>l,yt:()=>i});var a=n(72618),r=n(65415);const l=a.z.div`
2  display: flex;
3  justify-content: center;
4  align-items: center;
5  margin-bottom: ${e=>{let{theme:t}=e;return t.spacing.spacing80}};
6  position: relative;
7  caret-color: ${e=>{let{theme:t}=e;return t.colors.primary}};
8  gap: ${e=>{let{theme:t}=e;return t.spacing.spacing40}};
9  flex-direction: ${e=>{let{columnView:t}=e;return t?"column":"row"}};
10`;l.displayName="FormWrapper";const i=a.z.span`
11    width: 100%;
12    flex: 1;
13`,o=a.z.div`
14    align-self: flex-start;
15`,s=a.z.div`
16    width: 100%;
17    display: flex;
18    gap: ${e=>{let{theme:t}=e;return t.spacing.spacing60}};
19    button {
20        flex: 1;
21    }
22`,c=(0,a.z)(r.default)`
23   justify-content: space-between;
24   color: ${e=>{let{theme:{colors:t}}=e;return t.textSecondary}};
25`,u=a.z.div`
26    display: flex;
27    align-items: center;
28    justify-content: center;
29`,d=a.z.span`
30   ${e=>{let{theme:t}=e;return t.typography.buttonSmall}};
31   color: ${e=>{let{theme:{colors:t}}=e;return t.textSecondary}};
32
33   &:hover {
34    cursor: pointer;
35   }
36`,m=a.z.div`
37    margin-bottom: ${e=>{let{theme:t}=e;return t.spacing.spacing80}};
38`,p=a.z.div`
39    margin-bottom: ${e=>{let{theme:t}=e;return t.spacing.spacing80}};
40`,g=a.z.div`
41    display: flex;
42    width: 100%;
43    margin: ${e=>{let{theme:t}=e;return`${t.spacing.spacing120} ${t.spacing.spacing0}`}};
44`,h=a.z.span`
45    ${e=>{let{theme:t}=e;return t.typography.bodyLarge}};
46    color: ${e=>{let{theme:{colors:t}}=e;return t.textSecondary}};
47`,E=a.z.div`
48    svg, path {
49        fill: #faac01;
50    }
51`,f=a.z.div`
52  position: absolute;
53  left: -10000px;
54  width: 1px;
55  height: 1px;
56  overflow: hidden;
57`},55931:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(67294),r=n(44565),l=n(73039),i=n(74449);const o=e=>{let{message:t}=e;return(0,l.M_)(t)&&a.createElement(i.Yc,null,a.createElement(i.a1,null,a.createElement(r.Z,null)),a.createElement(i.g7,null,t))};o.displayName="AlertMessage";const s=o},53657:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(67294),r=n(65415),l=n(74449),i=n(60551);const o=e=>{let{CTAText:t=i.D2,isDisabled:n,handleSubmit:o}=e;return a.createElement(l.e2,null,a.createElement(r.default,{kind:r.KIND.primary,size:r.SIZE.large,shape:r.SHAPE.default,disabled:n,onClick:o},t||""))};o.displayName="CTAButton";const s=o}
57,80228:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(67294),r=n(65415),l=n(74449),i=n(60551);const o=e=>{let{primaryCTAText:t=i.pn,secondaryCTAText:n=i.ZU,isPrimaryDisabled:o,isSecondaryDisabled:s,onPrimaryAction:c,onSecondaryAction:u}=e;return a.createElement(l.b1,null,a.createElement(r.default,{kind:r.KIND.secondary,size:r.SIZE.large,shape:r.SHAPE.default,disabled:s,onClick:u},n||""),a.createElement(r.default,{kind:r.KIND.primary,size:r.SIZE.large,shape:r.SHAPE.default,disabled:o,onClick:c},t||""))};o.displayName="CTAButtonGroup";const s=o},47832:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(67294),r=n(89513),l=n(10594),i=n(1107),o=n(74449),s=n(44783),c=n(60551),u=n(72618);const d=u.z.div`
58  position: absolute;
59  z-index: 1;
60  text-align: start;
61  top: 50px;
62  width: 100%;
63  border-radius: ${e=>{let{theme:t}=e;return t.spacing.spacing40}};
64  padding: ${e=>{let{theme:t}=e;return`${t.spacing.spacing40} ${t.spacing.spacing0}`}};
65  background: ${e=>{let{theme:t}=e;return t.colors.snow100}};
66  border:  1px solid ${e=>{let{theme:t}=e;return t.colors.textDecorative}};
67  box-shadow: ${e=>{let{theme:t}=e;return t.elevations.shadow100}};
68  overflow: scroll;
69  max-height: 108px;
70  ${e=>{let{applyHeight:t}=e;return t?"height: 100%":""}};
71`,m=u.z.div`
72  display: flex;
73  flex-direction: row;
74  align-self: stretch;
75  padding: ${e=>{let{theme:t}=e;return`${t.spacing.spacing40} ${t.spacing.spacing60}`}};
76  color: ${e=>{let{theme:t}=e;return t.colors.surfaceInverse10}};
77
78  background: ${e=>{let{theme:t,isActive:n}=e,a=`${t.colors.white}`;return n&&(a=`${t.colors.surface20}`),a}};
79`,p=e=>{let{suggestions:t=[],focusedIndex:n,handleSelectSuggetion:r,applyHeight:l}=e;return(0,s.qc)(t)&&a.createElement(d,{applyHeight:l},t.map(((e,t)=>a.createElement(m,{isActive:n===t,key:e,onMouseDown:()=>{r(e,!0)}},e))))},g=e=>{let{errorText:t,value:n,setValue:u,emailSuggestionList:d,applyHeight:m,handleBlur:g,disabled:h}=e;const E=(0,a.useRef)(0),[f,b]=(0,a.useState)(""),[v,y]=(0,a.useState)([]),[x,S]=(0,a.useState)(0),[T,$]=(0,a.useState)(t),[C,w]=(0,a.useState)(""),{default:A,error:L}=l.STATE,k=t?L:A,[B,P]=(0,a.useState)(k);(0,a.useEffect)((()=>{P(k)}),[k]);const D=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u(`${f}@${e}`),t&&y([])};return a.createElement(o.yt,null,a.createElement(o.Is,{role:"alert","aria-live":"assertive","aria-atomic":"true"},C),a.createElement(r.ZP,{label:c.Jd,type:l.w.text,value:n,onChange:e=>{const{value:t}=e.target;u(t),(e=>{const t=d&&Object.keys(d).length,n=e&&e.includes("@");if(t&&n){const{firstCharAfterAt:t,substrAfterAt:n,splitEmail:a}=(0,s.hC)(e);b(a[0]),y([]);const{foundIndex:r,updatedList:l}=(0,s.kI)({emailSuggestionList:d,firstCharAfterAt:t,substrAfterAt:n});r>-1&&(y(l),S(0))}else y([])})(t);const n=E.current;0===n&&(E.current=n+1,(0,i.AB)(c.oS))},onBlur:()=>{(0,s.qc)(v)||(n&&!(0,s.us)(n)?($(c.Il),w(c.Il),P(L)):(P(A),w(""))),(0,s.Ey)(g)&&g()},onFocus:()=>{P(A),w("")},state:B,supportiveText:B===L?T:"",onKeyDown:e=>{const{keyCode:t}=e;(0,s.qc)(v)&&((0,s.TB)(t)&&x>0?(D(v[x-1]),S(x-1)):(0,s.GF)(t)&&x<v.length-1?(D(v[x+1]),S(x+1)):(0,s.rR)(t)&&D(v[x],!0))},disabled:h,required:!0,ariaRequired:!0,ariaInvalid:B===L,ariaLabel:c.Jd}),(0,s.qc)(v)&&a.createElement(p,{suggestions:v,focusedIndex:x,handleSelectSuggetion:D,applyHeight:m}))}},50591:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(67294),r=n(89513),l=n(10594),i=n(1107),o=n(74449),s=n(44783),c=n(60551);const u=e=>{let{value:t,setValue:n,errorText:u,handleMobileFocus:d,handleBlur:m}=e;const p=(0,a.useRef)(0),[g,h]=(0,a.useState)(u),{default:E,error:f}=l.STATE,b=u?f:E,[v,y]=(0,a.useState)(b),[x,S]=(0,a.useState)("");(0,a.useEffect)((()=>{y(b)}),[b]);const T=(0,a.useCallback)((()=>{t&&!(0,s.Kv)(t)?(h(c.MB),y(f),S(c.MB)):(y(E),S("")),(0,s.Ey)(m)&&m()}),[t]);return a.createElement(o.yt,{onClick:()=>{!t&&(0,s.Ey)(d)&&d()}},a.createElement(o.Is,{role:"alert","aria-live":"assertive","aria-atomic":"true"},x),a.createElement(r.ZP,{label:c.CE,type:"tel",prefixText:c.Jx,value:t,maxLength:10,onChange:e=>{const{value:t}=e.target;n(t);const a=p.current;0===a&&(p.current=a+1,(0,i.AB)(c.iL))},onBlur:T,onFocus:()=>{y(E),S("")},state:v,supportiveText:v===f?g:"",autoComplete:"tel",required:!0,ariaRequired:!0,ariaInvalid:v===f,ariaLabel:c.CE,"data-cs-mask":!0}))}}
79,21402:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(67294),r=n(65415),l=n(74449);const i=e=>{let{CTAText:t,icon:n,handleSocialLogin:i}=e;return a.createElement(a.Fragment,null,t&&a.createElement(l.Z0,{fullWidth:!0,kind:r.KIND.secondary,size:r.SIZE.large,shape:r.SHAPE.default,onClick:i},t,n&&n))}},25672:(e,t,n)=>{n.d(t,{vm:()=>me,ND:()=>xe,_t:()=>p,a_:()=>T,Gk:()=>ge,eo:()=>Se,H3:()=>ie,bA:()=>F});var a=n(67294),r=n(8575),l=n(10291),i=n(65415),o=n(72618);const s=o.z.div`
80  margin-bottom: ${e=>{let{theme:t}=e;return t.spacing.spacing160}};
81`;s.displayName="RadioGroupWrapper";const c=(0,o.z)(i.default)`
82  margin-bottom: ${e=>{let{theme:t}=e;return t.spacing.spacing80}};
83`;c.displayName="ButtonWrapper";const u=(0,o.z)(i.default)`
84  color: ${e=>{let{theme:t}=e;return t.colors.textSecondary}};
85`;u.displayName="SecondaryButton";var d=n(60551),m=n(44783);const p=e=>{let{emailList:t,getOTP:n,createAccount:o}=e;const[p,g]=(0,a.useState)("");return a.createElement(a.Fragment,null,a.createElement(s,null,a.createElement(l.Z,{align:r.Hp.vertical,value:"",changeHandler:e=>g(e)},null==t?void 0:t.map(((e,t)=>a.createElement(r.ZP,{key:`email_list${t+1}`,value:`${t}`,label:e.value}))))),a.createElement(c,{kind:i.KIND.primary,size:i.SIZE.large,shape:i.SHAPE.pill,fullWidth:!0,disabled:!p,onClick:()=>{if((0,m.Ey)(n)){const e=null==t?void 0:t[Number(p)],{value:a,id:r,signUpSource:l,userVersion:i}=e||{};a&&r&&n({email:a,customerId:r,signUpSource:l,userVersion:i})}}},d.D2),a.createElement(u,{kind:i.KIND.secondary,size:i.SIZE.large,shape:i.SHAPE.pill,fullWidth:!0,onClick:o},d.tT))};var g=n(10328),h=n(74449);const E=o.z.span`
86  ${e=>{let{theme:t}=e;return t.typography.subTitleSmall}};
87  color: ${e=>{let{theme:{colors:t}}=e;return t.primary}};
88  cursor: pointer;
89`;E.displayName="SwitchCTA";const f=(0,o.z)(h.iV)`
90  margin-top: ${e=>{let{theme:t}=e;return t.spacing.spacing200}};
91`,b=o.z.form`
92  caret-color: ${e=>{let{theme:t}=e;return t.colors.primary}};
93`;b.displayName="MobileProfileForm";const v=o.z.span`
94  ${e=>{let{theme:t}=e;return t.typography.bodySmall}}
95  color: ${e=>{let{theme:{colors:t}}=e;return t.textSecondary}};
96`,y=o.z.div`
97  text-align: center;
98  margin-top: ${e=>{let{theme:t}=e;return t.spacing.spacing80}};
99`,x=o.z.div`
100  z-index: 1;
101  width: 100%;
102  height: 100%;
103  position: absolute;
104  display: flex;
105  align-items: center;
106  justify-content: center;
107  top: 50%;
108  left: 50%;
109  transform: translate(-50%, -50%);
110  background: ${e=>{let{theme:{colors:t}}=e;return t.textDisabled}};
111  ${e=>{let{isBottomSheet:t,theme:{spacing:{spacing80:n,spacing0:a}}}=e;return t&&`border-radius:  ${n} ${n} ${a} ${a}`}}
112  padding: ${e=>{let{theme:{spacing:t}}=e;return`${t.spacing320}`}};
113`,S=o.z.div`
114  position: absolute;
115  width: 1px;
116  height: 1px;
117  padding: 0px;
118  margin: -1px;
119  overflow: hidden;
120  clip: rect(0, 0, 0, 0);
121  whiteSpace: nowrap;
122  borderWidth: 0,
123`,T=e=>{let{isBottomSheet:t}=e;return a.createElement(x,{isBottomSheet:t},a.createElement(S,{role:"status","aria-live":"assertive","aria-atomic":"true"},d.hv),a.createElement(g.Spinner,{indeterminateTime:2,size:"medium",value:0,withBackground:!0}))};var $=n(1107),C=n(89513),w=n(10594),A=n(73609);const L=o.z.div`
124  text-align: center;
125  ${e=>{let{theme:t}=e;return t.typography.bodySmall}}
126  color: ${e=>{let{theme:{colors:t}}=e;return t.textSecondary}};
127  margin: ${e=>{let{theme:{spacing:{spacing40:t}}}=e;return`${t} auto}`}};
128`,k=o.z.a`
129  ${e=>{let{theme:t}=e;return t.typography.bodySmall}}
130  color: ${e=>{let{theme:{colors:t}}=e;return t.textSecondary}};
131  text-decoration: underline;
132`,B=e=>{let{tncUrl:t}=e;return a.createElement(L,null,d.w_," ",a.createElement(k,{target:"_blank",href:t||""},"T&Cs"))};var P=n(53657);const D=o.z.div`
133  flex: 1;
134  margin-right: ${e=>{let{theme:t}=e;return t.spacing.spacing40}};
135`,z=(0,o.z)(b)`
136  display: flex;
137`,O=(0,o.z)(A.Z)`
138  cursor: pointer;
139  path {
140    fill: ${e=>{let{theme:t}=e;return t.colors.primary}};
141  }
142`,I=(0,o.z)(A.Z)`
143  cursor: pointer;
144`;I.displayName="ClosedEyeIcon";const F=e=>{let{switchBtnCallback:t,error:n,onSubmit:r,tncUrl:l,origin:i,handleBlur:o}=e;const[s,c]=(0,a.useState)(""),u=(0,m.sf)(i),p=e=>{e.preventDefault(),(0,m.Ey)(r)&&s&&r(s)},{default:g,error:h}=w.STATE,b=n?h:g,[v,y]=(0,a.useState)(b),[x,S]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{y(b)}),[b]),a.createElement(a.Fragment,null,a.createElement(z,{onSubmit:p},a.createElement(D,null,a.createElement(C.ZP,{label:d.eA,type:x?w.w.text:w.w.password,onChange:e=>{const{value:t}=e.target;c(t)},onFocus:()=>{y(g)},onBlur:()=>{(0,m.Ey)(o)&&o()}
144,state:v,value:s,trailingIcon:x?a.createElement(O,null):a.createElement(I,null),trailingIconAction:()=>{S(!x)},supportiveText:v===h?n:""})),a.createElement(P.Z,{CTAText:d.D2,isDisabled:!s,handleSubmit:p})),a.createElement(f,null,a.createElement(E,{onClick:()=>{(0,m.Ey)(t)&&((0,$.AB)(d.AUTH_EVENTS.PASSWORD_TO_OTP_SWITCH),t())}},u)),a.createElement(B,{tncUrl:l}))};var Z=n(77907);const N=o.z.div`
145  margin-bottom: ${e=>{let{theme:t}=e;return t.spacing.spacing80}};
146`,_=o.z.fieldset`
147  display: flex;
148  width: 100%;
149  justify-content: space-around;
150  border: none;
151`,H=o.z.legend`
152  position: absolute;
153  left: -10000px;
154  width: 1px;
155  height: 1px;
156  overflow: hidden;
157`,V=o.z.span`
158  position: absolute;
159  left: -10000px;
160  width: 1px;
161  height: 1px;
162  overflow: hidden;
163`,M=o.z.div`
164  display: flex;
165  position: relative;
166  overflow: hidden;
167  width: 48px;
168  height: 48px;
169  border-radius: ${e=>{let{theme:t}=e;return t.spacing.spacing40}};
170  padding: ${e=>{let{theme:t}=e;return t.spacing.spacing60}};
171  margin-right: ${e=>{let{theme:t}=e;return t.spacing.spacing40}};
172
173  &:last-child {
174    margin-right: ${e=>{let{theme:t}=e;return t.spacing.spacing0}};
175  }
176
177  border: 1px solid ${e=>{let{theme:t}=e;return(0,Z.oo)(t.colors.surfaceInverse50,.5)}};
178  border-bottom: none;
179
180  background: ${e=>{let{theme:t,hasError:n}=e,a=`${t.colors.surface20}`;return n&&(a=(0,Z.oo)(`${t.colors.negative}`,.08)),a}};
181`,R=o.z.input`
182  display: inline-block;
183  width: 100%;
184  ${e=>{let{theme:t}=e;return t.typography.bodyLarge}};
185  text-align: center;
186  color: ${e=>{let{theme:{colors:t}}=e;return(0,Z.oo)(t.textPrimary,.92)}};
187  caret-color: ${e=>{let{theme:t}=e;return t.colors.primary}};
188  background: transparent;
189  border: none;
190
191  &:focus {
192    outline: none;
193  }
194`,j=o.z.div`
195  position: absolute;
196  bottom: 0;
197  left: 0;
198  width: 48px;
199  overflow: overlay;
200  ${e=>{let{theme:t,hasError:n,isFocused:a}=e,r="1px",l=`${t.colors.textOutline}`;return n?l=`${t.colors.negative}`:a&&(r="4px",l=`${t.colors.primary}`),`\n      height: ${r};\n      background: ${l};\n    `}}
201`,U=o.z.div`
202  display: flex;
203  align-items: center;
204  justify-content: end;
205  ${e=>{let{theme:t}=e;return t.typography.bodySmall}}
206  color: ${e=>{let{theme:t}=e;return t.colors.surfaceInverse10}}
207`;U.displayName="ResendOTPContainer";const W=(0,o.z)(i.default)`
208  margin-left: ${e=>{let{theme:t}=e;return t.spacing.spacing20}};
209`;function G(e){var{isFocused:t,hasError:n,value:r,isBlur:l}=e,i=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["isFocused","hasError","value","isBlur"]);const o=(0,a.useRef)(null),s=function(e){const t=(0,a.useRef)();return(0,a.useEffect)((()=>{t.current=e}),[e]),t.current}(t);return(0,a.useEffect)((()=>{o.current&&t&&(o.current.focus(),t!==s&&o.current.select())}),[t,l,s]),a.createElement(M,{hasError:n},a.createElement(R,Object.assign({ref:o,value:r},i)),a.createElement(j,{hasError:n,isFocused:t&&!l,isFilled:()=>(0,m.QG)(r)}))}const K=(0,a.memo)(G),q=o.z.div`
210  position: absolute;
211  width: 1px;
212  height: 1px;
213  padding: 0px;
214  margin: -1px;
215  overflow: hidden;
216  clip: rect(0, 0, 0, 0);
217  whiteSpace: nowrap;
218  borderWidth: 0,
219`,Y=function(e){let{isFlowDisabled:t,sendOTP:n,otpTimer:r,isSourceEmail:l,sendOtpToWhatsapp:o,otpStatus:s}=e;const c=Number.isInteger(r)?r:d.VU,[u,p]=(0,a.useState)(c),[g,h]=(0,a.useState)(""),E=(0,a.useRef)(!1);(0,a.useEffect)((()=>{p(c),E.current=!1,h(`OTP sent. Resend OTP available in ${(0,m.Rp)(c)}.`)}),[r]),(0,a.useEffect)((()=>{const e=u>0&&setInterval((()=>p(u-1)),d.w9);return 10!==u||E.current||t||(E.current=!0,h(`${(0,m.Rp)(u)} remaining to resend OTP.`)),0===u&&h("You can now resend the OTP."),()=>{e&&clearInterval(e)}}),[u]);const f=u>0||t,b=u>0&&!t,v=e=>a.createElement(W,{kind:i.KIND.secondary,size:i.SIZE.small,disabled:f,onClick:()=>{return e=n,void((0,m.Ey)(e)&&((0,$.AB)(d.AUTH_EVENTS.RESEND_OTP_CLICKED,{resendOtpStatus:s}),e()));var e},"aria-label":e},e||"");return a.createElement(a.Fragment,null,a.createElement(q,{role:"status","aria-live":"polite","aria-atomic":"true"},g),a.createElement(U,{"aria-hidden":"true"},(b||!l)&&d.xj,b?a.createElement(a.Fragment,null,` ${d.Nf} ${(0,m.Rp)(u)}`):l?v(d.xj):a.createElement(a.Fragment,null,` ${d.i3} `,v(d.yW),(0,m.Ey)(o)&&v(d.Q2))))};var J=n(44565);const Q=o.z.div`
220  display: flex;
221  margin-top: ${e=>{let{theme:t}=e;return t.spacing.spacing20}};
222  justify-content: space-between;
223  align-items: center;
224
225  svg path{
226    fill: ${e=>{let{theme:t}=e;return t.colors.negative}};
227  }
228`,X=o.z.div`
229  text-align: left;
230  ${e=>{let{theme:t}=e;return t.typography.bodySmall}};
231  color: ${e=>{let{theme:t}=e;return t.colors.negative}};
232`,ee=function(e){let{message:t}=e;return a.createElement(Q,null,a.createElement(X,{role:"alert"},t),a.createElement(J.Z,{size:"16px"}))};var te=n(95463);const ne=o.z.div`
233  position: fixed;
234  bottom: 0;
235  left: 0;
236  border-radius: ${e=>{let{theme:t}=e;return`${t.borders.radius30}`}};
237  width: 100%;
238  z-index: 2;
239  padding: ${e=>{let{theme:t}=e;return`${t.spacing.spacing100}`}};
240  box-shadow: 0 1px 15px 0 rgba(0, 0, 0, 0.4);
241  display: flex;
242  justify-content: space-between;
243  background-color: ${e=>{let{theme:t}=e;return t.colors.surface}};
244  align-items: center;
245  @media (min-width: 767px) {
246    position: absolute;
247    margin: ${e=>{let{theme:t}=e;return`${t.spacing.spacing320} auto ${t.spacing.spacing0}`}};
248    width: 360px;
249    overflow-y: auto;
250  }
251
252  @media (max-width: 766px) {
253    width: 100%;
254  }
255`,ae=function(e){let{handleOnRead:t,handleManualInput:n}=e;const r=(0,a.useRef)(new AbortController);return(0,a.useEffect)((()=>{const e=r.current,a={otp:{transport:["sms"]},signal:e.signal};return window.navigator.credentials.get(a).then((e=>{if(e){const n=e,{code:a}=n;t(a)}})).catch((e=>{te.k.error(e,d.Lv),n()})).then((()=>{n()}
255)),()=>{e.abort()}}),[]),a.createElement(ne,null,d.yV)},re=o.z.div``;function le(e){let{error:t,isDisabled:n,otpLength:r=6,verifyOTPCallback:l,sendOTP:i,otpTimer:o,sendOtpToWhatsapp:s,source:c,isPasswordExist:u,switchBtnCallback:p,tncUrl:g,hideOtpTimer:h,otpStatus:f,handleBlur:b,webOtpAutoRead:x,isOtpAutoFillEnable:S}=e;const T=!(0,m.xT)(c),[C,w]=(0,a.useState)(""),[A,L]=(0,a.useState)(-1),[k,P]=(0,a.useState)(Array(r).fill("")),[D,z]=(0,a.useState)(!1),[O,I]=(0,a.useState)(!1),[F,Z]=(0,a.useState)(!1);(0,a.useEffect)((()=>{w(`Enter OTP received on ${c}`)}),[c]),(0,a.useEffect)((()=>{const e=(0,m.Ov)();let t=!1;x&&e&&(t=!0),I(t),t||Z(!0)}),[x]);const M=e=>{const t=null==e?void 0:e.join("");t.length===d.L4?(l(t),z(!0)):z(!1)},R=(0,a.useCallback)((e=>{M(e)}),[M]),j=(0,a.useCallback)((e=>{const t=[...k];t[A]=e[0]||"",P(t),R(t)}),[A,k]),{onFocus:U,onBlur:W,handleInputFocusChange:G,onKeyDown:q,onPaste:J}=(e=>{let{otpLength:t,otpValues:n,setOtpValues:r,changeCodeAtFocus:l,activePosition:i,setActivePosition:o,verifyOTPCallback:s}=e;const c=(0,a.useCallback)((e=>{const n=Math.max(Math.min(t-1,e),0);o(n)}),[t]),u=(0,a.useCallback)((e=>{const t=e===d.zb?i+1:i-1;c(t)}),[i,c]),p=(0,a.useCallback)((e=>{c(e)}),[c]),g=(0,a.useCallback)((e=>{switch(e.key){case d.gH.BACKSPACE:case d.gH.DELETE:n[i]?l(""):u(d.Z0);break;case d.gH.ARROW_LEFT:u(d.Z0);break;case d.gH.ARROW_RIGHT:u(d.zb)}}),[i,l,u,n]),h=e=>{const t=e;return t&&(0,m.GU)(t)?t:""},E=(0,a.useCallback)((e=>{e.preventDefault();const a=e.clipboardData.getData("text/plain").trim(),l=t-i,c=(0,m.GU)(a,l).split("");if(c){let e=0;const a=[...n];a.forEach(((t,n)=>{if(n>=i){const r=h(c.shift()||t);r&&(a[n]=r,e=n)}})),r(a);const l=null==a?void 0:a.join("");l.length===d.L4&&(0,m.Ey)(s)&&s(l);const u=Math.min(e+1,t-1);o(u)}}),[i,h,t,n]);return{onFocus:p,onBlur:()=>{o(-1)},handleInputFocusChange:u,onKeyDown:g,onPaste:E}})({otpLength:r,otpValues:k,setOtpValues:P,changeCodeAtFocus:j,activePosition:A,setActivePosition:L,verifyOTPCallback:l}),Q=(0,a.useCallback)((e=>{const{value:t}=e.target,n=(0,m.GU)(t);if(t&&n)if(t.length===r&&S){const e=t.split("");P(e),R(e)}else j(t),G(d.zb);else e.preventDefault()}),[j,G]),X=!!t,te=()=>{I(!1),Z(!0)};return a.createElement(a.Fragment,null,a.createElement(re,null,a.createElement(V,{role:"status","aria-live":"polite","aria-atomic":"true"},C),a.createElement(N,null,a.createElement(_,{role:"group"},a.createElement(H,null,`Enter OTP received on ${c}`),(0,m.qc)(k)&&k.map(((e,t)=>{const l=A===t;return a.createElement(K,{type:"tel",isFocused:l,value:k&&k[t],onFocus:()=>(e=>{z(!1),U(e)})(t),onBlur:()=>(e=>{e===d.L4-1&&(W(),(0,m.Ey)(b)&&b(),setTimeout((()=>z(!0)),0))})(t),onChange:Q,onKeyDown:q,isBlur:D,onPaste:J,disabled:n,hasError:X,autoFocus:0===t&&!!F,"aria-label":`Digit ${t+1} of ${r}`})}))),X&&a.createElement(ee,{message:t})),!h&&a.createElement(Y,{sendOTP:i,isFlowDisabled:n,otpTimer:o,isSourceEmail:T,sendOtpToWhatsapp:s,otpStatus:f}),O&&a.createElement(ae,{handleOnRead:e=>{if(e){let t=0;const n=e.split(""),a=[...k];a.forEach(((e,r)=>{if(r>=A){const l=n.shift()||e;l&&(a[r]=l,t=r)}})),P(a);const i=null==a?void 0:a.join("");i.length===d.L4&&(0,m.Ey)(l)&&l(i);const o=Math.min(t+1,r-1);L(o)}te()},handleManualInput:te})),a.createElement(y,null,u&&a.createElement(a.Fragment,null,a.createElement(v,null,d.HZ," "),a.createElement(E,{onClick:()=>{(0,m.Ey)(p)&&((0,$.AB)(d.AUTH_EVENTS.OTP_TO_PASSWORD_SWITCH),p())}},d.TB)),a.createElement(B,{tncUrl:g})))}const ie=(0,a.memo)(le);var oe=n(21402);const se=e=>{let{isMobileLogin:t,ctaCallBack:n}=e;const[r,l]=(0,a.useState)(t);return a.createElement(h.iV,{role:"button"},a.createElement(h.U3,{onClick:()=>{l(!r),n()},"aria-label":r?d.E0:d.k5},r?d.E0:d.k5))};var ce=n(80831);const ue=e=>{let{children:t,handleLogin:n,handleSocialLogin:r,switchBtnCallback:l,value:i,isDisabled:o,CTAText:s,isMobileLogin:c,loginPage:u,hideSocialLogin:p,authTrackingFixEnabled:g}=e;const{LOGIN_SIGNUP_START:E,LOGIN_PROCEED_CLICKED:f}=d.AUTH_EVENTS,{PHONE:v}=d.LOGINTYPE,y=e=>{e.preventDefault(),(0,m.Ey)(n)&&(g?(0,$.AB)(E,{loginType:(0,m.xT)(i)?v:d.LOGINTYPE.EMAIL,login_page:u}):(0,m.xT)(i)?(0,$.AB)(E,{loginType:v,login_page:u}):(0,$.AB)(f,{loginType:d.LOGINTYPE.EMAIL,login_page:u}),n(i))};return a.createElement(a.Fragment,null,a.createElement(b,{onSubmit:y},a.createElement(h.n5,null,t,a.createElement(P.Z,{isDisabled:o,handleSubmit:y,CTAText:s}))),!p&&a.createElement(h.ED,null,a.createElement(oe.Z,{CTAText:d.f5,icon:a.createElement(ce.Z,null),handleSocialLogin:()=>{(0,m.Ey)(r)&&r()}})),a.createElement(se,{isMobileLogin:c,ctaCallBack:l}))};var de=n(47832);h.n5.displayName="EmailFormWrapper";const me=e=>{let{banner:t,handleLogin:n,emailSuggestionList:r,handleSocialLogin:l,switchBtnCallback:i,errorText:o,initialValue:s,loginPage:c,handleBlur:u,hideSocialLogin:p,authTrackingFixEnabled:g}=e;const[h,E]=(0,a.useState)(s||"");return a.createElement(a.Fragment,null,a.createElement(ue,{banner:t,handleLogin:n,handleSocialLogin:l,switchBtnCallback:i,isDisabled:!(0,m.us)(h),value:h,CTAText:d.D2,loginPage:c,hideSocialLogin:p,authTrackingFixEnabled:g},a.createElement(de.Z,{value:h,setValue:e=>E(e),emailSuggestionList:r,errorText:o,handleBlur:u})))};var pe=n(50591);h.n5.displayName="MobileFormWrapper";const ge=e=>{let{banner:t,handleLogin:n,handleSocialLogin:r,switchBtnCallback:l,errorText:i,initialValue:o,handleMobileFocus:s,handleBlur:c,loginPage:u,hide
255SocialLogin:p}=e;const[g,h]=(0,a.useState)(o||"");return a.createElement(a.Fragment,null,a.createElement(ue,{banner:t,handleLogin:n,handleSocialLogin:r,switchBtnCallback:l,isDisabled:!(0,m.Kv)(g),value:g,CTAText:d.nB,isMobileLogin:!0,loginPage:u,hideSocialLogin:p},a.createElement(pe.Z,{value:g,setValue:e=>h(e),errorText:i,handleMobileFocus:s,handleBlur:c})))},he=e=>{let{value:t,setValue:n,errorText:r,handleBlur:l}=e;const{default:i,error:o}=w.STATE,[s,c]=(0,a.useState)(r),[u,p]=(0,a.useState)(i);return a.createElement(h.i,null,a.createElement(C.ZP,{label:d.jF,type:w.w.text,value:t,onChange:e=>{const{value:t}=e.target;n(t)},onBlur:()=>{t&&!(0,m.r1)(t)?(c(d.ex),p(o)):p(i),(0,m.Ey)(l)&&l()},onFocus:()=>{p(i)},state:u,supportiveText:u===o?s:""}))};he.displayName="NameInput";const Ee=he;var fe=n(80228),be=n(55931);const ve=e=>{let{children:t,handleLogin:n,isDisabled:r,name:l,emailPhone:i,CTAText:o,alertMessage:s,secondaryCTAText:c,handleSkip:u,isSecondaryDisabled:d,showButtonGroup:p,buttonGroupVariant:g}=e;const[E,f]=(0,a.useState)(l||""),v=e=>{null==e||e.preventDefault(),n(E,i)},y=!(r&&(0,m.r1)(E)),x={primaryCTAText:o,secondaryCTAText:c,isPrimaryDisabled:!1,isSecondaryDisabled:d,onPrimaryAction:v,onSecondaryAction:e=>{null==e||e.preventDefault(),u?u():(0,m.I_)()}};return a.createElement(a.Fragment,null,a.createElement(b,null,a.createElement(Ee,{value:E,setValue:e=>f(null==e?void 0:e.trim())}),a.createElement(h.n5,{columnView:g},t,!g&&a.createElement(P.Z,{isDisabled:y,handleSubmit:v,CTAText:o}),a.createElement(be.Z,{message:s}),p&&a.createElement(fe.Z,Object.assign({},x)))))};ve.displayName="ProfileInfoWrapper";const ye=ve,xe=e=>{let{handleLogin:t,emailSuggestionList:n,errorText:r,initialValues:l,applyHeight:i,handleBlur:o,showButtonGroup:s,showAlert:c,handleSkip:u}=e;const{email:p,name:g}=l||{},[h,E]=(0,a.useState)(p||""),f=(0,m.us)(h),b=f&&c?d.pp.replace("{email}",h):"",v=f&&s,y=s?d.pn:d.D2;return a.createElement(a.Fragment,null,a.createElement(ye,{CTAText:y,emailPhone:h,isDisabled:f,name:g,alertMessage:b,showButtonGroup:v,buttonGroupVariant:s,handleLogin:t,handleSkip:u},a.createElement(de.Z,{value:h,setValue:e=>E(e),emailSuggestionList:n,errorText:r,applyHeight:i,handleBlur:o})))},Se=e=>{let{handleLogin:t,initialValues:n,errorText:r,handleBlur:l}=e;const{mobile:i,name:o}=n||{},[s,c]=(0,a.useState)(i||""),u=(0,m.Kv)(s);return a.createElement(a.Fragment,null,a.createElement(ye,{handleLogin:t,isDisabled:u,CTAText:d.nB,emailPhone:s,name:o},a.createElement(pe.Z,{value:s,setValue:e=>c(e),errorText:r,handleBlur:l})))}}}]);

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.