1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2294],{55012:function(e,n,t){"use strict";t.d(n,{Z:function(){return Mn}});var r=t(67294),i=t(59499),o=t(25409),a=t(71397),l=t(10609),s=t.n(l),c=t(56320),u=t(93967),d=t.n(u),p=t(65851),v=t(85893),m=function(e){var n,t=e.activeForm,l=e.regAbResponse;(0,o.$c)(!("register_pg_1"===t||"register_pg_2"===t)),(0,r.useEffect)((function(){return document.body.style.overflow="login"===t?"hidden":"",function(){document.body.style.overflow=""}}),[t]);var u="B"===(null===l||void 0===l||null===(n=l.LOGIN_UI_REVAMP_WEB_AND_MSITE)||void 0===n?void 0:n.bucket),m=p.Z.isMobile();return t?(0,v.jsxs)(v.Fragment,{children:["login"===t&&(0,v.jsx)("div",{className:d()(s().wrapper,(0,i.Z)({},s().loginMigrationBucket,u)),children:(0,v.jsx)(a.Z,{regAbResponse:l,isLoginMigrationBucket:u,isMobile:m})}),"vipshaadi"===t&&(0,v.jsxs)("div",{className:s().wrapper,children:[(0,v.jsx)("iframe",{src:"https://www.vipshaadi.com/vipshaadi/?source=Shaadi_WebSite_home",title:"VIP Shaadi",width:"90%"}),(0,v.jsx)(c.Z,{})]}),"vipshaadi-join-now"===t&&(0,v.jsxs)("div",{className:s().wrapper,children:[(0,v.jsx)("iframe",{src:"https://www.vipshaadi.com/vipshaadi/?source=Shaadi_WebSite_SEM",title:"VIP Shaadi",width:"90%"}),(0,v.jsx)(c.Z,{})]})]}):null},g=t(50029),f=t(17674),h=t(64687),b=t.n(h),_=t(39636),x=t(82285),j=t(52663),y=t(95477),w=t(73637),O=t(13457),C=t(16490),P=t(17812),S=t(69826),E=t(26729),k=t(46066),I=t(73337),N=t(4730),B=t(16204),Z=t(67265),M=t(52174),L=t.n(M),T=["selectedOption","selectedImg","valueLabel","onClick"];function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function F(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A=function(e){var n=e.selectedOption,t=e.selectedImg,r=e.valueLabel,i=e.onClick,o=(0,N.Z)(e,T);return(0,v.jsx)("div",{className:L().root,children:r.length>0&&r.map((function(e){return(0,v.jsx)(B.Z,F(F({className:L().chip},o),{},{avatar:(0,v.jsx)(Z.Z,{src:n===e.value?t:"",className:L().avatar,children:""}),label:e.label,onClick:function(){return i(e.value)}}),e.value)}))})},R=t(37925),W=function(e){return e.text},G=function(e){return{value:e.id,label:e.text}},V=function(e,n,t){return e[0].items=n[0].frequent.list.map(t),e[1].items=n[1].other.list.map(t),e},H=function(){return[{type:"group",name:"Frequently Used",items:[]},{type:"group",name:"All",items:[]}].filter((function(e){return!!e.type}))},U=function(e){return V(H(),e,W)},q=t(23748),Q=function(e){var n=(0,E.cl)().values;return function(){var t=n[e]||"",r={fieldValue:null!==t&&void 0!==t&&t.value?null===t||void 0===t?void 0:t.value:t,fieldName:e};return(0,q.kw)(r)}},$=t(74904),z=t(22318),Y=t(13113),K=t.n(Y),J=t(18362),X=function(){return(0,v.jsxs)("div",{className:K().safetyComBanner,children:[(0,v.jsx)(J.Z,{style:{color:"rgba(249, 155, 72, 1)"}}),(0,v.jsx)("p",{children:"Shaadi.com is built for genuine match-seekers. Any falsification, commercial use or marriage bureaus is strictly prohibited & may be reported to law enforcement."})]})},ee=function(e){var n,t=e.disabled,r=e.onClick,o=e.styles,a=e.btnState,l=e.loading,s=void 0!==l&&l,c=e.children,u=s||"loading"===a,p="done"===a;return(0,v.jsx)("div",{className:o.ctaWrap,children:(0,v.jsxs)("button",{type:"button",className:d()(o.cta,(n={},(0,i.Z)(n,o.removeBg,p),(0,i.Z)(n,o.isLoading,u),n)),disabled:t||u,onClick:r,children:[(0,v.jsx)("span",{className:d()(o.textWrap,(0,i.Z)({},o.hideText,p||u)),children:c}),u&&(0,v.jsx)("div",{className:o.absoluteCenter,children:(0,v.jsx)(y.Z,{size:"1.5rem",color:"inherit"})}),p&&(0,v.jsx)("span",{className:o.checkmarkWrap,children:(0,v.jsx)("svg",{viewBox:"0 0 24 24",fill:"#ffffff",children:(0,v.jsx)("path",{d:"M9 16.2l-3.5-3.5a.9839.9839 0 00-1.4 0c-.39.39-.39 1.01 0 1.4l4.19 4.19c.39.39 1.02.39 1.41 0L20.3 7.7c.39-.39.39-1.01 0-1.4a.9839.9839 0 00-1.4 0L9 16.2z"})})})]})})},ne=function(e){var n,t,i,o,a,l=e.enableCta,s=e.onCompletion,c=e.regAbResponse,u=(0,r.useContext)(R.L),d=u.loading,m=u.formData,g=!d&&m.postedBy.map(W),f=!d&&(null===g||void 0===g?void 0:g.map((function(e){return{label:"Self"===e?"Myself":"My ".concat(e),value:e}}))),h=(0,E.U$)("postedby"),b=(0,E.U$)("gender"),_=(0,r.useState)(""),x=_[0],j=_[1],y=(0,r.useState)(""),O=y[0],C=y[1],P=(0,r.useState)(!1),S=P[0],k=P[1],N={Son:"Male",Daughter:"Female",Brother:"Male",
1Sister:"Female",Self:"",Relative:"",Friend:""},B="B"===(null===c||void 0===c||null===(n=c[p.Z.isMobile()?"LEGAL_DISCLAIMER_WAP":"LEGAL_DISCLAIMER_WEB"])||void 0===n?void 0:n.bucket),Z=Q("postedby"),M=Q("gender"),L=function(){(0,$.Ie)({fieldName:"Page One",fieldValue:"Continue_Success"}),s(),(0,$.bq)({fieldValue:"Reg page 2 visit"})};(0,r.useEffect)((function(){S&&setTimeout((function(){L()}),500)}),[S]),(0,r.useEffect)((function(){(0,$.bq)({fieldValue:"Reg page 1 visit"})}),[]);var T,D=!(null!==(t=(0,E.cl)().values)&&void 0!==t&&t.postedby),F=!(null!==(i=(0,E.cl)().values)&&void 0!==i&&i.gender),G=D||F,V=(T=null!==(o=null===(a=(0,E.cl)().values)||void 0===a?void 0:a.postedby)&&void 0!==o?o:"",["Self","Friend","Relative"].includes(T));return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:K().pageOneIcon}),(0,v.jsxs)("div",{className:K().formFirstPageFieldsWrap,children:[(0,v.jsxs)("div",{className:K().fieldWrap,children:[(0,v.jsx)("div",{className:K().heading,children:"This Profile is for"}),(0,v.jsx)(A,{selectedOption:x,selectedImg:"https://img2.shaadi.com/assests/2022/images/icoSelected.svg",onClick:function(e){var n,t;null===h||void 0===h||null===(n=h.input)||void 0===n||n.onChange(e),null===b||void 0===b||null===(t=b.input)||void 0===t||t.onChange(N[e]),j(e),setTimeout((function(){C(N[e])}),200),""===N[e]||l||k(!0)},onKeyDown:function(e){9===e.keyCode&&G&&e.preventDefault()},valueLabel:f})]}),V&&(0,v.jsx)(w.Z,{in:V,timeout:{enter:1e3,exit:100},children:(0,v.jsxs)("div",{className:K().fieldWrap,children:[(0,v.jsx)("div",{className:K().heading,children:"Gender"}),(0,v.jsx)(A,{selectedOption:O,selectedImg:"https://img2.shaadi.com/assests/2022/images/icoSelected.svg",onClick:function(e){var n;null===b||void 0===b||null===(n=b.input)||void 0===n||n.onChange(e),C(e),l||k(!0)},onKeyDown:function(e){9===e.keyCode&&G&&e.preventDefault()},valueLabel:[{label:"Male",value:"Male"},{label:"Female",value:"Female"}]})]})})]}),l&&(0,v.jsx)("div",{className:K().ctaWrap,children:(0,v.jsx)(ee,{styles:K(),onClick:L,disabled:G,children:(0,v.jsx)(z.Z,{className:K().ctaText,children:"Continue"})})}),B&&(0,v.jsx)(X,{}),(0,v.jsx)(I.GU,{name:"postedby",children:Z}),(0,v.jsx)(I.GU,{name:"gender",children:M})]})},te=t(33426),re=t(43734);function ie(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function oe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ie(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ae(){var e,n=null===(e=(0,E.cl)().values)||void 0===e?void 0:e.first_name,t=(0,r.useState)(""),i=t[0],o=t[1],a=(0,r.useState)(!1),l=a[0],s=a[1],c=""===i?"Please enter a first name":"Please enter a valid first name",u=(0,r.useState)(c),d=u[0],p=u[1],m=(0,E.U$)("first_name"),g=Q("first_name");(0,r.useEffect)((function(){void 0!==n&&o(n)}),[n]),(0,r.useEffect)((function(){(0,re.Ql)(i)||p(c)}),[i]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(O.Z,{theme:C.y3,children:(0,v.jsx)(te.Z,oe(oe({label:"First name",variant:"outlined"},{value:i,onChange:function(e){var n;o((0,re.HJ)(e.target.value)),null===m||void 0===m||null===(n=m.input)||void 0===n||n.onChange((0,re.HJ)(e.target.value))},onBlur:function(){s(!(0,re.Ql)(i)),g()},onFocus:function(){s(!1)},onPaste:function(){(0,q.yI)({fieldName:"PAGE_1_2_FIRST_NAME"})},classes:{root:K().formInputField},inputProps:{maxLength:20}}),{},{error:l}))}),(0,v.jsx)("div",{className:K().errorMessage,children:l?d:""})]})}function le(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function se(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?le(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ce(){var e,n=null===(e=(0,E.cl)().values)||void 0===e?void 0:e.last_name,t=(0,r.useState)(""),i=t[0],o=t[1],a=(0,r.useState)(!1),l=a[0],s=a[1],c=""===i?"Please enter a last name":"Please enter a valid last name",u=(0,r.useState)(c),d=u[0],p=u[1],m=(0,E.U$)("last_name"),g=Q("last_name");(0,r.useEffect)((function(){void 0!==n&&o(n)}),[n]),(0,r.useEffect)((function(){(0,re.Ql)(i)||p(c)}),[i]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(O.Z,{theme:C.y3,children:(0,v.jsx)(te.Z,se(se({label:"Last name",variant:"outlined"},{value:i,onChange:function(e){var n;o((0,re.HJ)(e.target.value)),null===m||void 0===m||null===(n=m.input)||void 0===n||n.onChange((0,re.HJ)(e.target.value))},onBlur:function(){s(!(0,re.Ql)(i)),g()},onFocus:function(){s(!1)},onPaste:function(){(0,q.yI)({fieldName:"PAGE_1_2_LAST_NAME"})},classes:{root:K().lastNameInputField},inputProps:{maxLength:20}}),{},{error:l}))}),(0,v.jsx)("div",{className:K().errorMessage,children:l?d:""})]})}var ue={Male:"His name",Female:"Her name","":"Your name"};function de(){var e,n,t,r,i,o;return(0,v.jsxs)("div",{className:K().fieldWrap,children:[(0,v.jsx)("div",{className:K().heading,children:(i=null!==(e=null===(n=(0,E.cl)().values)||void 0===n?void 0:n.postedby)&&void 0!==e?e:"",o=null!==(t=null===(r=(0,E.cl)().values)||void 0===r?void 0:r.gender)&&void 0!==t?t:"","Self"===i?"Your name":ue[o])}),(0,v.jsx)(ae,{}),(0,v.jsx)(ce,{})]})}function pe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pe(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function me(){var e,n,t,i,o,a,l,s,c=(0,r.useState)(""),u=c[0],d=c[1],m=(0,r.useState)(!1),g=m[0],f=m[1],h=(0,r.useState)(""),b=h[0],_=h[1],x=(0,r.useState)(!1),j=x[0],y=x[1],w=(0,r.useState)(""),P=w[0],S=w[1],k=(0,r.useState)(!1),I=k[0],N=k[1],B=(0,r.useState)("Please enter a DOB"),Z=B[0],M=B[1],L=(0,E.U$)("day"),T=(0,E.U$)("month"),D=(0,E.U$)("year"),F=null===(e=(0,E.cl)().values)||void 0===e?void 0:e.gender,A=(0,r.useState)(!1),R=A[0],W=A[1],G=(0,re.MN)(u)&&((0,re.T1)(u,31)||!(0,re.T1)(u,0)),V=(0,re.MN)(b)&&((0,re.T1)(b,12)||!(0,re.T1)(b,0)),H=!(null!==(n=(0,E.cl)().values)&&void 0!==n&&n.first_name),U=!(null!==(t=(0,E.cl)().values)&&void 0!==t&&t.last_name),Q=!(null!==(i=(0,E.cl)().values)&&void 0!==i&&i.day),$=!(null!==(o=(0,E.cl)().values)&&void 0!==o&&o.month),z=!(null!==(a=(0,E.cl)().values)&&void 0!==a&&a.year),Y=H||U||Q||$||z,J=null!==(l=document.querySelector("input[name=month]"))&&void 0!==l?l:void 0,X=null!==(s=document.querySelector("input[name=year]"))&&void 0!==s?s:void 0;(0,r.useEffect)((function(){var e;!(0,re.x$)(u)||G?null===L||void 0===L||null===(e=L.input)||void 0===e||e.onChange(""):void 0!==J&&J.focus()}),[u]),(0,r.useEffect)((function(){var e;!(0,re.x$)(b)||V?null===T||void 0===T||null===(e=T.input)||void 0===e||e.onChange(""):void 0!==X&&(0,re.x$)(u)&&!G&&X.focus()}),[b]),(0,r.useEffect)((function(){var e;(0,re.hl)(P)||null===D||void 0===D||null===(e=D.input)||void 0===e||e.onChange("")}),[P]),(0,r.useEffect)((function(){if((0,re.x$)(u)&&(0,re.x$)(b)&&(0,re.hl)(P)){var e,n,t,r,i,o,a=(0,re.yO)(F,u,b,P);if(void 0!==a)null===L||void 0===L||null===(e=L.input)||void 0===e||e.onChange(""),null===T||void 0===T||null===(n=T.input)||void 0===n||n.onChange(""),null===D||void 0===D||null===(t=D.input)||void 0===t||t.onChange(""),W(!0),M(a);else null===L||void 0===L||null===(r=L.input)||void 0===r||r.onChange(u),
1(0,q.kw)({fieldName:"day",fieldValue:u}),null===T||void 0===T||null===(i=T.input)||void 0===i||i.onChange(b),(0,q.kw)({fieldName:"month",fieldValue:b}),null===D||void 0===D||null===(o=D.input)||void 0===o||o.onChange(P),(0,q.kw)({fieldName:"year",fieldValue:P}),W(!1),X.blur()}}),[u,b,P]);return(0,v.jsxs)("div",{className:K().fieldWrap,children:[(0,v.jsx)("div",{className:K().heading,children:"Date of birth"}),(0,v.jsx)("div",{className:K().columnFieldsWrap,children:(0,v.jsxs)(O.Z,{theme:C.y3,children:[(0,v.jsx)(te.Z,ve(ve({label:"Day",placeholder:"DD",variant:"outlined",InputLabelProps:{shrink:!0}},{value:u,onChange:function(e){d((0,re.an)(e.target.value))},onBlur:function(){var e;1===u.length&&(d("0".concat(u)),null===L||void 0===L||null===(e=L.input)||void 0===e||e.onChange("0".concat(u))),f(!(0,re.MN)(u)||G),G&&M("Please enter a valid DOB")},onFocus:function(){f(!1)},classes:{root:K().dayInputField},inputProps:p.Z.isMobile()?{maxLength:2,type:"tel",pattern:"[0-9]*"}:{maxLength:2}}),{},{error:g||R})),(0,v.jsx)(te.Z,ve(ve({label:"Month",placeholder:"MM",variant:"outlined",InputLabelProps:{shrink:!0}},{value:b,name:"month",onChange:function(e){_((0,re.an)(e.target.value))},onBlur:function(){var e;1===b.length&&(_("0".concat(b)),null===T||void 0===T||null===(e=T.input)||void 0===e||e.onChange("0".concat(b))),y(!(0,re.MN)(b)||V),V&&M("Please enter a valid DOB")},onFocus:function(){y(!1)},classes:{root:K().monthInputField},inputProps:p.Z.isMobile()?{maxLength:2,type:"tel",pattern:"[0-9]*"}:{maxLength:2}}),{},{error:j||R})),(0,v.jsx)(te.Z,ve(ve({label:"Year",placeholder:"YYYY",variant:"outlined",InputLabelProps:{shrink:!0}},{value:P,name:"year",onChange:function(e){S((0,re.an)(e.target.value))},onBlur:function(){N(!(0,re.MN)(P)||!(0,re.hl)(P)),(0,re.hl)(P)||M("Please enter a valid DOB")},onFocus:function(){N(!1)},onKeyDown:function(e){9===e.keyCode&&Y&&e.preventDefault()},classes:{root:K().yearInputField},inputProps:p.Z.isMobile()?{maxLength:4,type:"tel",pattern:"[0-9]*"}:{maxLength:4}}),{},{error:I||R}))]})}),(0,v.jsx)("div",{className:K().errorMessage,children:g||j||I||R?Z:""})]})}var ge=t(87063),fe=t(51859),he=t(45651),be=function(e){var n,t,i,o,a=(0,r.useState)(!1),l=a[0],s=a[1],c=null===(n=(0,E.cl)().values)||void 0===n?void 0:n.first_name,u=null===(t=(0,E.cl)().values)||void 0===t?void 0:t.last_name,d=null===(i=(0,E.cl)().values)||void 0===i?void 0:i.mother_tongue,p=null===(o=(0,E.cl)().values)||void 0===o?void 0:o.community,v=(0,r.useContext)(R.L),m=v.formData,g=v.setMotherTongueOptions,f=v.setReligionOptions,h=(0,r.useContext)(he.q).token,b=(0,E.U$)("mother_tongue"),_=(0,E.U$)("community"),x=(0,fe.e)("prefillingRegAb");return(0,r.useMemo)((function(){"B"===x?l&&(0,ge.n)(h,c,u).then((function(n){var t,r,i,o,a,l,c,u=n?function(e){return[{type:"group",name:"frequently used",items:null===e||void 0===e?void 0:e.suggestions},{type:"group",name:"All",items:null===e||void 0===e?void 0:e.all}]}(null===n||void 0===n?void 0:n.mothertongue):[],v=n?function(e){return e.map((function(e){return{value:e,label:e}}))}(null===n||void 0===n||null===(t=n.religion)||void 0===t?void 0:t.suggestions):[];g(n?u:U(null===m||void 0===m?void 0:m.motherTongues)),f(n?v:null===m||void 0===m?void 0:m.religions),_.input.onChange(n?null===n||void 0===n||null===(r=n.religion)||void 0===r?void 0:r.prefill:""),p&&(null===n||void 0===n||null===(i=n.religion)||void 0===i?void 0:i.prefill)&&(0,$.uG)({fieldValue:null===n||void 0===n||null===(o=n.religion)||void 0===o?void 0:o.prefill,fieldName:"prefilled_religion_value"}),b.input.onChange(n?null===n||void 0===n||null===(a=n.mothertongue)||void 0===a?void 0:a.prefill:""),d&&(null===n||void 0===n||null===(l=n.mothertongue)||void 0===l?void 0:l.prefill)&&(0,$.uG)({fieldValue:null===n||void 0===n||null===(c=n.mothertongue)||void 0===c?void 0:c.prefill,fieldName:"prefilled_motherTongue_value"}),s(!1),e()})).catch((function(){s(!1),e()})):(g(U(null===m||void 0===m?void 0:m.motherTongues)),f(null===m||void 0===m?void 0:m.religions))}),[c,p,d,u,l]),{loadedPredictionData:l,setLoadedPredictionData:s}},_e=function(e){var n,t,i,o,a,l=e.onCompletion,s=null===(n=(0,E.cl)().values)||void 0===n?void 0:n.first_name,c=(0,r.useState)(!0),u=c[0],d=c[1],p=null===(t=(0,E.cl)().values)||void 0===t?void 0:t.last_name,m=(0,r.useState)(!0),g=m[0],f=m[1],h=be(l),b=h.loadedPredictionData,_=h.setLoa
1dedPredictionData;(0,r.useEffect)((function(){void 0!==s&&d(!1)}),[s]),(0,r.useEffect)((function(){void 0!==p&&f(!1)}),[p]);var x=!(null!==(i=(0,E.cl)().values)&&void 0!==i&&i.day),j=!(null!==(o=(0,E.cl)().values)&&void 0!==o&&o.month),y=!(null!==(a=(0,E.cl)().values)&&void 0!==a&&a.year),w=u||g||x||j||y,O=(0,fe.e)("prefillingRegAb");return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:K().pageTwoIcon}),(0,v.jsxs)("div",{className:K().formFieldsWrap,children:[(0,v.jsx)(de,{}),(0,v.jsx)(me,{})]}),(0,v.jsx)("div",{className:K().ctaWrap,children:(0,v.jsx)(ee,{styles:K(),loading:b,onClick:function(){(0,$.Ie)({fieldName:"Page Two",fieldValue:"Continue_Success"}),(0,$.bq)({fieldValue:"Reg page 3 visit"}),"B"===O&&_(!0),"B"!==O&&l()},disabled:w,children:(0,v.jsx)(z.Z,{className:K().ctaText,children:"Continue"})})})]})},xe=t(64436),je=t(85161),ye=t(64105),we=t(37702),Oe={Male:"His religion",Female:"Her religion","":"Your religion"};function Ce(e){e.religion;var n,t,i,o,a,l,s,c,u=e.disableBrowserBack,d=e.enableBrowserBack,p=(0,E.U$)("community"),m=(0,r.useContext)(R.L),g=(m.formData,m.loading,m.religionOptions),f=Q("community");return(0,v.jsxs)("div",{className:K().fieldWrap,children:[(0,v.jsx)("div",{className:K().heading,children:(s=null!==(n=null===(t=(0,E.cl)().values)||void 0===t?void 0:t.postedby)&&void 0!==n?n:"",c=null!==(i=null===(o=(0,E.cl)().values)||void 0===o?void 0:o.gender)&&void 0!==i?i:"","Self"===s?"Your religion":Oe[c])}),(0,v.jsx)(xe.Z,{variant:"outlined",className:K().formInputField,children:(0,v.jsxs)(O.Z,{theme:C.y3,children:[(0,v.jsx)(je.Z,{children:"Religion"}),(0,v.jsx)(ye.Z,{value:null!==(a=null===(l=(0,E.cl)().values)||void 0===l?void 0:l.community)&&void 0!==a?a:"",onChange:function(e){var n;null===p||void 0===p||null===(n=p.input)||void 0===n||n.onChange(e.target.value)},onOpen:u,onClose:d,label:"Religion",inputProps:{name:"community",classes:{icon:K().selectIcon},tabIndex:-1},children:null===g||void 0===g?void 0:g.map((function(e,n){return(0,v.jsx)(we.Z,{className:K().optionsItem,value:e.value,children:e.label},n)}))})]})}),(0,v.jsx)(I.GU,{name:"community",children:f})]})}function Pe(e){e.mothertongue;var n,t,i,o=e.disableBrowserBack,a=e.enableBrowserBack,l=(0,E.U$)("mother_tongue"),s=(0,r.useContext)(R.L).motherTongueOptions,c=!(null!==(n=(0,E.cl)().values)&&void 0!==n&&n.community),u=Q("mother_tongue");return(0,v.jsx)(w.Z,{in:!c,timeout:1e3,children:(0,v.jsxs)("div",{className:K().fieldWrap,children:[(0,v.jsx)("div",{className:K().heading,children:"Community"}),(0,v.jsxs)("div",{className:K().columnFieldsWrap,children:[(0,v.jsx)(xe.Z,{variant:"outlined",className:K().formInputField,children:(0,v.jsxs)(O.Z,{theme:C.y3,children:[(0,v.jsx)(je.Z,{children:"Community"}),(0,v.jsx)(ye.Z,{value:null!==(t=null===(i=(0,E.cl)().values)||void 0===i?void 0:i.mother_tongue)&&void 0!==t?t:"",onChange:function(e){var n;null===l||void 0===l||null===(n=l.input)||void 0===n||n.onChange(e.target.value)},onOpen:o,onClose:a,label:"Community",inputProps:{name:"mother_tongue",classes:{icon:K().selectIcon},tabIndex:-1},children:function(){var e=[],n=[];return null===s||void 0===s||s.map((function(t){var r=t.name,i=t.items;n.push((0,v.jsx)(we.Z,{className:K().optionsHeading,disabled:!0,children:"All"===r?"All Communities":"Frequently used Communities"},r)),null===i||void 0===i||i.map((function(t){!e.includes(t)&&n.push((0,v.jsx)(we.Z,{className:K().optionsItem,value:t,children:t},Math.random())),e.push(t)}))})),n}()})]})}),(0,v.jsx)("div",{className:"".concat(K().communityHelp," ").concat(K().tooltip),children:(0,v.jsx)("span",{className:K().tooltiptext,children:"Please select the native language that best represents your family background."})})]}),(0,v.jsx)(I.GU,{name:"mother_tongue",children:u})]})})}function Se(e){var n,t,i,o,a,l,s=e.disableBrowserBack,c=e.enableBrowserBack,u=(0,E.U$)("countryofresidence"),d=(0,r.useContext)(R.L),p=d.formData,m=!d.loading&&(l=p.countries,V(H(),l,G)),g=!(null!==(n=(0,E.cl)().values)&&void 0!==n&&n.community),f=!(null!==(t=(0,E.cl)().values)&&void 0!==t&&t.mother_tongue),h=!(null!==(i=(0,E.cl)().values)&&void 0!==i&&i.countryofresidence),b=g||f||h,_=Q("countryofresidence");return(0,v.jsx)(w.Z,{in:!g&&!f,timeout:1e3,children:(0,v.jsxs)("div",{className:K().fieldWrap,children:[(0,v.jsx)("div",{className:K().heading,children:"Living in"}),(0,v.jsx)(xe.Z,{variant:"outlined",className:K().formInputField,children:(0,v.jsxs)(O.Z,{theme:C.y3,children:[(0,v.jsx)(je.Z,{children:"Country"}),(0,v.jsx)(ye.Z,{value:null!==(o=null===(a=(0,E.cl)().values)||void 0===a?void 0:a.countryofresidence)&&void 0!==o?o:"",onCh
1ange:function(e){var n;null===u||void 0===u||null===(n=u.input)||void 0===n||n.onChange(e.target.value)},onOpen:s,onClose:c,onKeyDown:function(e){9===e.keyCode&&b&&e.preventDefault()},label:"Country",inputProps:{name:"countryofresidence",classes:{icon:K().selectIcon},tabIndex:-1},children:function(){var e=[],n=[];return null===m||void 0===m||m.map((function(t){var r;n.push((0,v.jsx)(we.Z,{className:K().optionsHeading,disabled:!0,children:"All"===t.name?"All Countries":"Frequently used Countries"},t.name)),null===(r=t.items)||void 0===r||r.map((function(t){!e.includes(t.value)&&n.push((0,v.jsx)(we.Z,{className:K().optionsItem,value:t.value,children:t.label},Math.random())),e.push(t.value)}))})),n}()})]})}),(0,v.jsx)(I.GU,{name:"countryofresidence",children:_})]})})}var Ee=function(e){var n,t,r,i=e.religion,o=e.mothertongue,a=e.disableBrowserBack,l=e.enableBrowserBack,s=e.onCompletion,c=!(null!==(n=(0,E.cl)().values)&&void 0!==n&&n.community),u=!(null!==(t=(0,E.cl)().values)&&void 0!==t&&t.mother_tongue),d=!(null!==(r=(0,E.cl)().values)&&void 0!==r&&r.countryofresidence),p=c||u||d;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:K().pageThreeIcon}),(0,v.jsxs)("div",{className:K().formFieldsWrap,children:[(0,v.jsx)(Ce,{disableBrowserBack:a,enableBrowserBack:l,religion:i}),(0,v.jsx)(Pe,{disableBrowserBack:a,enableBrowserBack:l,mothertongue:o}),(0,v.jsx)(Se,{disableBrowserBack:a,enableBrowserBack:l})]}),(0,v.jsx)("div",{className:K().ctaWrap,children:(0,v.jsx)(ee,{styles:K(),disabled:p,onClick:function(){(0,$.Ie)({fieldName:"Page Three",fieldValue:"Continue_Success"}),(0,$.bq)({fieldValue:"Reg page 4 visit"}),s()},children:(0,v.jsx)(z.Z,{className:K().ctaText,children:"Continue"})})})]})},ke=t(14971),Ie=t(61944),Ne=function(e){var n=e.isRegRevamp,t=(0,ke.rD)().baseUrl;return(0,v.jsx)("div",{className:K().policyAndTerms,children:n?(0,v.jsxs)("p",{className:K().policyAndTermsText,children:["By continuing, you agree to our"," ",(0,v.jsx)("a",{tabIndex:-1,href:"".concat(t,"/shaadi-info/index/privacy"),target:"_blank",rel:"noopener noreferrer",onClick:function(){return(0,Ie.jG)(Ie.VQ.PRIVACY_POLICY_TAPPED)},children:"Privacy Policy"})," ","and"," ",(0,v.jsx)("a",{tabIndex:-1,href:"".concat(t,"/shaadi-info/index/terms"),target:"_blank",rel:"noopener noreferrer",onClick:function(){return(0,Ie.jG)(Ie.VQ.TERMS_TAPPED)},children:"T&C"}),"."]}):(0,v.jsxs)(v.Fragment,{children:["By creating account, you agree to our",p.Z.isDesktop()&&" ",p.Z.isMobile()&&(0,v.jsx)("br",{}),(0,v.jsx)("a",{tabIndex:-1,href:"".concat(t,"/shaadi-info/index/privacy"),target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})," ","and"," ",(0,v.jsx)("a",{tabIndex:-1,href:"".concat(t,"/shaadi-info/index/terms"),target:"_blank",rel:"noopener noreferrer",children:"T&C."})]})})},Be=t(16962),Ze=t(41521),Me=t(86010),Le=t(50030),Te=t.n(Le),De=t(42190),Fe=function(e){var n=e.styles,t=e.setEmail,i=(0,r.useContext)(Ze.t),o=i.setActiveForm,a=i.setSignupEmail,l=(0,E.cl)().values;return(0,v.jsxs)("p",{className:(0,Me.Z)(n,Te().switcher),children:["Already a Member?"," ",(0,v.jsx)("a",{"data-testid":"modal_login",href:"",onClick:function(e){e.preventDefault(),function(e){var n;o(e),t&&a(null!==(n=l.email)&&void 0!==n?n:""),(0,De.Ng)({fieldValue:"Login"})}("login")},children:"Login"})]})};function Ae(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Re(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ae(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ae(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function We(e){var n,t,i=e.regSubmit,o=(0,Be.Z)(),a=(0,f.Z)(o,2)[1].type,l=(0,r.useContext)(Ze.t).setSignupEmail,s=null===(n=(0,E.cl)().values)||void 0===n?void 0:n.email,c=(0,r.useState)(""),u=c[0],d=c[1],p=(0,r.useState)(!1),m=p[0],g=p[1],h=(0,r.useState)(!1),b=h[0],_=h[1],x=(0,r.useState)("Please enter a email ID"),j=x[0],y=x[1],w=(0,E.U$)("email"),P=null!==(t=document.querySelector("input[name=mobileNo]"))&&void 0!==t?t:void 0,S=Q("email"),k=function(){(0,re.Y7)(u).then((function(e){var n,t;e===re.xx?(g(!0),_(!0),y("This email ID is already registered."),l(u),null===w||void 0===w||null===(n=w.input)||void 0===n||n.onChange("")):(g(!1),_(!1),""!==u&&(null===w||void 0===w||null===(t=w.input)||void 0===t||t.onChange(u)))}))};(0,r.useEffect)((function(){"google"===a&&void 0!==s&&d(s)}),[a,s]),(0,r.useEffect)((function(){var e;(0,re.ZO)(u)?k():(""!==u&&y("Please enter a valid email ID"),null===w||void 0===w||null===(e=w.input)||void 0===e||e.onChange(""))}),[u]);return(0,v.jsxs)("div",{className:K().fieldWrap,children:[(0,v.jsx)("div",{className:K().heading,children:"Email ID"}),(0,v.jsx)(O.Z,{theme:C.y3,children:(0,v.jsx)(te.Z,Re(Re({inputProps:{tabIndex:-1},label:"Email ID",type:"email",variant:"outlined"},{value:u,onChange:function(e){d(e.target.value)},onBlur:function(){g(!(0,re.ZO)(u)),""===u&&y("Please enter a email ID"),""!==u&&(0,re.ZO)(u)&&k(),S()},onFocus:function(){g(!1),void 0!==P&&(P.tabIndex=0)},onPaste:function(){(0,q.yI)({fieldName:"PAGE_1_4_EMAIL"})},classes:{root:K().formInputField}}),{},{disabled:"google"===a||i,error:m}))}),(0,v.jsx)("div",{className:K().errorMessage,children:m?j:""}),b&&(0,v.jsx)(Fe,{styles:K().loginLink,setEmail:!1})]})}var Ge=t(33994),Ve=t(84001);function He(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ue(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?He(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function qe(e){var n,t,i,o,a,l=e.disableBrowserBack,s=e.enableBrowserBack,c=e.regSubmit,u=(0,r.useState)(""),d=u[0],m=u[1],g=(0,r.useState)(!1),h=g[0],b=g[1],_=(0,r.useState)(!1),x=_[0],j=_[1],y=(0,r.useState)(void 0),w=y[0],P=y[1],S=(0,E.U$)("country_code"),k=(0,E.U$)("contact_mobile_number"),N=function(e){var n=e.split("|"),t=(0,f.Z)(n,2),r=t[0],i=t[1];return"".concat(i," (").concat(r,")")},B=null===Ge||void 0===Ge?void 0:Ge.map((function(e){return{value:e.id,label:N(e.text)}})),Z=function(e){var n=e.split("|");return(0,f.Z)(n,1)[0]},M=null===(n=(0,E.cl)().values)||void 0===n?void 0:n.country_code,L=(0,r.useState)(Z(M)),T=L[0],D=L[1],F=null!==(t=document.getElementById("mui-component-select-country_code"))&&void 0!==t?t:void 0,A=null!==(i=document.querySelector("input[name=mobileNo]"))&&void 0!==i?i:void 0,R=Q("country_code"),W=Q("contact_mobile_number");(0,r.useEffect)((function(){void 0!==F&&(F.innerText=T)}),[F,T]),(0,r.useEffect)((function(){var e,n,t,r=(0,Ve.n6)(d,M);void 0!==r?(null===k||void 0===k||null===(e=k.input)||void 0===e||e.onChange(""),h&&j(!0),P(r),b(!0)):(j(!1),void 0===(0,Ve.gc)(d,M)?null===k||void 0===k||null===(n=k.input)||void 0===n||n.onChange(d):null===k||void 0===k||null===(t=k.input)||void 0===t||t.onChange(""))}),[d]);return(0,v.jsxs)("div",{className:K().fieldWrap,children:[(0,v.jsx)("div",{className:K().heading,children:"Mobile no."}),(0,v.jsxs)("div",{className:K().columnFieldsWrap,children:[(0,v.jsx)(xe.Z,{variant:"outlined",className:K().isdInputField,children:(0,v.jsx)(O.Z,{theme:C.y3,children:(0,v.jsxs)(ye.Z,{value:null!==(o=null===(a=(0,E.cl)().values)||void 0===a?void 0:a.country_code)&&void 0!==o?o:B[0],onChange:function(e){var n,t;null===S||void 0===S||null===(n=S.input)||void 0===n||n.onChange(e.target.value),D(Z(e.target.value)),j(!1),null===k||void 0===k||null===(t=k.input)||void 0===t||t.onChange(""),m("")},onOpen:l,onClose:s,inputProps:{name:"country_code",classes:{icon:K().selectIcon},tabIndex:-1},disabled:c,children:[(0,v.jsx)(we.Z,{className:K().optionsHeading,disabled:!0,children:"Select country code"},Math.random()),null===B||void 0===B?void 0:B.map((function(e){return(0,v.jsx)(we.Z,{className:K().optionsItem,value:e.value,children:e.label},e.value)}))]})})}),(0,v.jsx)(O.Z,{theme:C.y3,children:(0,v.jsx)(te.Z,Ue(Ue({label:"Mobile no.",variant:"outlined"},{value:d,name:"mobileNo",onChange:function(e){m((0,Ve.gX)(e.target.value,M))},onBlur:function(){var e=(0,Ve.gc)(d,M);j(void 0!==e),P(e),W()},onFocus:function(){j(!1),A.tabIndex=-1},onKeyDown:function(e){9===e.keyCode&&e.preventDefault()},onPaste:function(){(0,q.yI)({fieldName:"PAGE_1_4_MOBILE_NUMBER"})},classes:{root:K().formInputField},inputProps:p.Z.isMobile()?{type:"tel",pattern:"[0-9]*",tabIndex:-1}:{tabIndex:-1}}),{},{error:x,disabled:c}))})]}),(0,v.jsx)("div",{className:K().errorMessage,children:x?w:""}),(0,v.jsx)(I.GU,{name:"country_code",children:R})]})}var Qe=function(e){var n,t,i,o=e.disableBrowserBack,a=e.enableBrowserBack,l=e.handleArrow,s=e.onCompletion,c=(0,r.useState)("initial"),u=c[0],d=c[1],p=(0,r.useState)(!1),m=p[0],g=p[1],f=!(null!==(n=(0,E.cl)().values)&&void 0!==n&&n.email),h=!(null!==(t=(0,E.cl)().values)&&void 0!==t&&t.country_code),b=!(null!==(i=(0,E.cl)().values)&&void 0!==i&&i.contact_mobile_number),_=f||h||b;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:K().pageFourIcon}),(0,v.jsxs)("div",{className:K().subHeading,children:["An active email ID & phone no.",(0,v.jsx)("br",{}),"are required to secure your Profile"]}),(0,v.jsxs)("div",{className:K().formFieldsWrap,children:[(0,v.jsx)(We,{regSubmit:m}),(0,v.jsx)(qe,{disableBrowserBack:o,enableBrowserBack:a,regSubmit:m})]}),(0,v.jsx)("div",{className:K().ctaWrap,children:(0,v.jsx)(ee,{disabled:_,btnState:u,onClick:function(){l(),o(),g(!0),d("loading"),setTimeout((function(){d("done"),(0,$.Ie)({fieldName:"Page Four",fieldValue:"Submit_Success"}),s()}),1e3)},styles:K(),children:(0,v.jsx)(z.Z,{className:K().ctaText,children:"Submit"})})}),(0,v.jsx)(w.Z,{in:"done"!==u,timeout:1e3,children:(0,v.jsx)("div",{children:(0,v.jsx)(Ne,{})})})]})},$e=function(e,n){var t=null===e||void 0===e?void 0:e.split(".");return"acq_".concat(null===t||void 0===t?void 0:t[0],"_").concat(n)},ze=t(42193),Ye=t(68079),Ke=t(21609);function Je(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Xe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?Je(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Je(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var en=(0,r.forwardRef)((function(e,n){return(0,v.jsx)(x.Z,Xe({direction:"up",ref:n},e))})),nn=function(e){var n,t=e.activeForm,i=e.religion,a=e.mothertongue,l=e.regAbResponse,s="register_pg_1"===t,c=(0,r.useState)(!0),u=c[0],d=c[1],m=(0,r.useState)(!1),h=m[0],x=m[1],I=(0,r.useState)(!0),N=I[0],B=I[1],Z=(0,r.useState)(!0),M=Z[0],L=Z[1],T=(0,r.useState)(0),D=T[0],F=T[1],A=(0,r.useState)(!1),R=A[0],W=A[1],G=(0,Be.Z)(),V=(0,f.Z)(G,3),H=V[0],U=V[2],q=(0,r.useContext)(Ze.t).setActiveForm,Q=(0,Be.Z)(),$=(0,f.Z)(Q,2)[1],z=$.type,Y=$.first_name,J=$.last_name,X=$.email,ee=$.authToken,te="google"===z,re=(0,ke.rD)(),ie=re.baseUrl,oe=re.countryByIp,ae=re.countryCodeByIp,le=(0,r.useRef)(null),se=(0,r.useRef)(null),ce=(0,r.useRef)(M),ue=(0,r.useRef)(0),de=(0,r.useRef)(!1),pe=(0,Ke.i)(),ve=pe.getFingerprint,me=pe.ready,he=function(e){ce.current=e,L(e)},be={arrows:!1,infinite:!1,draggable:!1,swipe:!1,touchMove:!1,slidesToShow:1,slidesToScroll:1,afterChange:function(e){localStorage.setItem("acqStep","".concat(e)),de.current?de.current=!1:(s&&e>0&&window.history.pushState({step:e},"","".concat(window.location.pathname).concat(window.location.search)),ue.current=e)}};(0,r.useEffect)((function(){localStorage.setItem("acqStep","-1"),ue.current=0;var e=function(){var e=(0,g.Z)(b().mark((function e(){var n,t,r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,ge.LP)();case 3:return n=e.sent,e.next=6,(0,ge.RI)(n);case 6:t=e.sent,r=t.recaptcha,x(r.user_creation.execution),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),console.error("err",e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),(0,r.useEffect)((function(){if(s)return 0===D&&(F(window.outerHeight),localStorage.setItem("acqStep","0")),setTimeout((function(){d(!1)}),1e3),setTimeout((function(){var e;null===le||void 0===le||null===(e=le.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}),1250),localStorage.setItem("acqStep","0"),ue.current=0,window.history.pushState(null,"","".concat(window.location.pathname).concat(window.location.search)),window.addEventListener("popstate",ye),function(){window.removeEventListener("popstate",ye)}}),[s]);var xe=function(){(0,o.$c)(!0),q(""),setTimeout((function(){W(!1),d(!0),F(0),null===U||void 0===U||U(H)}),1e3)},je=function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null===se||void 0===se||null===(e=se.current)||void 0===e||e.slickPrev(),"0"===localStorage.getItem("acqStep")&&(xe(),localStorage.setItem("acqStep","-1")),null===le||void 0===le||null===(n=le.current)||void 0===n||n.scrollIntoView({behavior:"smooth"}),W(!0),t&&window.history.back()},ye=function(e){e.preventDefault();var n=localStorage.getItem("acqStep");s&&("0"===n?(xe(),localStorage.setItem("acqStep","-1")):ce.current&&(de.current=!0,je()))},we=function(){var e,n;null===se||void 0===se||null===(e=se.current)||void 0===e||e.slickNext(),null===le||void 0===le||null===(n=le.current)||void 0===n||n.scrollIntoView({behavior:"smooth"})},Oe=function(){return B(!1)},Ce=function(){return he(!1)},Pe=function(){return he(!0)},Se=function(e){if(e.country_code){var n="string"===typeof e.country_code?e.country_code.split("|"):e.country_code.value.split("|");e.contact_isd=n[0],e.contact_isd_country=n[1]}e.password1="testpass",(0,o.Uj)().then((function(n){var t,r,i="".concat((0,Ye.bC)(ie),"/registration/user"),o=te?z:"NA",a=(0,ze.e)(),s=(null===a||void 0===a||null===(t=a.value)||void 0===t?void 0:t.value)||null,c=(null===a||void 0===a?void 0:a.expires)||null,u=Xe(Xe(Xe(Xe({},e),function(){var e,n,t=window.location.href,r=window.location.pathname,i=null!==(e=null===(n=document)||void 0===n?void 0:n.referrer)&&void 0!==e?e:t,o=(0,ke.rD)(),a=o.domainName,l=o.baseUrl,s=$e(a,"homepage");return r.startsWith("/lets-begin")&&(s=$e(a,"sem_lets_begin")),r.startsWith("/join-now")&&(s=$e(a,"sem_join_now")),r.startsWith("/matrimony")&&(s=$e(a,"seo_matrimony")),r.startsWith("/horoscope-compatibility")&&(s=$e(a,"seo_horoscope")),r.startsWith("/dating")&&(s=$e(a,"seo_dating")),s="".concat(s,"_redesign"),{form_referral_url:i,form_url:["/matrimony","/dating","/horoscope-compatibility"].some((function(e){return r.startsWith(e)}))?t:l,form_name:s,frompage:"From Redesign Reg",oscode:p.Z.isDesktop()?"0":"5"}}()),{},{"g-recaptcha-response":n,authToken:ee,regType:o,"x-session-id":(0,fe.e)("reg_ust")},s&&{gclid:s}),c&&{gclid_expiry:c}),d=document.createElement("form");if(d.setAttribute("name","frmRegistration"),d.setAttribute("id","frmRegistration"),d.setAttribute("method","post"),d.setAttribute("action",i),Object.keys(u).forEach((function(e){var n=e,t="object"===typeof u[e]?u[e].value:u[e];d.appendChild(function(e,n){var t=document.createElement("input");return t.setAttribute("type","hidden"),t.setAttribute("name",e),t.setAttribute("value",n),t}(n,t))})),document.body.appendChild(d),document.getElementById("frmRegistration").submit(),"B"===(null===l||void 0===l||null===(r=l.SIGN3_INSIGHTS_W
1EB)||void 0===r?void 0:r.bucket)){var v=function(){var e=(0,g.Z)(b().mark((function e(){var n,t,r,i,o;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(me){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,ve({userId:""});case 5:return r=e.sent,i=(0,fe.e)("reg_logger")||(0,fe.e)("abc"),e.next=9,fetch("".concat((0,ge.xe)(),"/api/digital-fingerprint-request-id"),{method:"POST",headers:Xe({"Content-Type":"application/json"},i&&{"x-access-token":i}),body:JSON.stringify({request_id:r.requestId,memberlogin:"",platform:p.Z.isMobile()?"wap":"web",device_platform:(null===(n=window)||void 0===n||null===(t=n.navigator)||void 0===t?void 0:t.platform)||"",referrer:"REGISTRATION"})});case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),console.error("Fingerprint collection failed:",null!==(o=null===e.t0||void 0===e.t0?void 0:e.t0.message)&&void 0!==o?o:e.t0);case 14:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(){return e.apply(this,arguments)}}();v()}setTimeout((function(){xe()}),2500)}))},Ie=Xe(Xe(Xe(Xe({},"Select"!==i&&{community:i}),"Select"!==a&&{mother_tongue:a}),{},{countryofresidence:oe},te&&{first_name:Y,last_name:J,email:X}),{},{country_code:ae}),Ne=function(){return(0,v.jsxs)(v.Fragment,{children:[u&&(0,v.jsxs)("div",{className:K().loadingWrap,children:[(0,v.jsx)(O.Z,{theme:C.rJ,children:(0,v.jsx)(y.Z,{size:40})}),(0,v.jsxs)("div",{className:K().loadingText,children:["Let\u2019s add your details while we"," ",p.Z.isMobile()&&(0,v.jsx)("br",{}),"find ",p.Z.isDesktop()&&(0,v.jsx)("br",{}),"Matches for you"]})]}),!u&&(0,v.jsx)(w.Z,{in:!0,timeout:1300,children:(0,v.jsxs)("div",{ref:le,children:[N&&(0,v.jsx)("div",{className:K().backArrow,children:(0,v.jsx)(O.Z,{theme:C.af,children:(0,v.jsx)(P.Z,{color:"primary",onClick:function(e){je(!0)},tabIndex:-1,children:(0,v.jsx)(S.Z,{style:{fontSize:p.Z.isMobile()?"1em":"1.2em",color:"#95959d"}})})})}),(0,v.jsx)(E.l0,{onSubmit:Se,initialValues:Ie,render:function(e){var n=e.handleSubmit;return(0,v.jsx)("form",{onSubmit:n,children:(0,v.jsx)("div",{className:K().slidePageWrap,children:(0,v.jsxs)(k.Z,Xe(Xe({ref:se},be),{},{children:[(0,v.jsx)(ne,{enableCta:R,onCompletion:we,regAbResponse:l}),(0,v.jsx)(_e,{onCompletion:we}),(0,v.jsx)(Ee,{religion:i,mothertongue:a,disableBrowserBack:Ce,enableBrowserBack:Pe,onCompletion:we}),(0,v.jsx)(Qe,{disableBrowserBack:Ce,enableBrowserBack:Pe,handleArrow:Oe,onCompletion:n})]}))})})}})]})})]})},Me={borderRadius:"24px 24px 0 0"},Le={borderRadius:"8px",maxWidth:"unset",maxHeight:"unset",width:"645px",height:"160px",transition:"height 200ms"},Te={height:"210px",transition:"height 300ms"},De="B"===(null===l||void 0===l||null===(n=l[p.Z.isMobile()?"LEGAL_DISCLAIMER_WAP":"LEGAL_DISCLAIMER_WEB"])||void 0===n?void 0:n.bucket);return u||(Me={borderRadius:"unset"},Le=Xe(Xe({},Le),{},{height:"575px"}),Te=Xe(Xe({},Te),{},{height:"".concat(D,"px")}),De&&(Le=Xe(Xe({},Le),{},{minHeight:"575px",height:"unset",maxHeight:"fit-content"})),h&&(0,o.tv)()),(0,v.jsxs)(v.Fragment,{children:[p.Z.isMobile()&&(0,v.jsx)(_.ZP,{transitionDuration:200,anchor:"bottom",open:s,SlideProps:{unmountOnExit:!0},PaperProps:{style:Me},children:(0,v.jsx)("div",{className:K().innerWrap,style:Te,children:Ne()})}),p.Z.isDesktop()&&(0,v.jsx)(j.Z,{keepMounted:!0,disableEscapeKeyDown:!0,open:s,scroll:"body",PaperProps:{style:Le},TransitionComponent:en,onClose:function(e,n){"backdropClick"!==n&&xe()},children:(0,v.jsx)("div",{className:K().innerWrap,children:Ne()})})]})},tn=(t(98322),t(98745),t(42573)),rn=t.n(tn),on=t(47785),an=t(79587),ln=t(47640),sn=t(1094),cn=t(5741),un=t.n(cn),dn=t(94175),pn=t.n(dn),vn=t(67756),mn=function(e){var n=e.icon,t=e.label,r=e.onClick,i=e.gsiHostRef,o=e.ariaLabel,a=e.disabled;return(0,v.jsxs)("div",{className:rn().optionButtonWrap,children:[(0,v.jsxs)("button",{type:"button",className:rn().optionButton,onClick:r,"aria-label":o||t,disabled:a,children:[n,(0,v.jsx)("span",{children:t})]}),i&&(0,v.jsx)("div",{ref:i,className:rn().optionButtonGsi,"aria-label":o||t,style:a?{pointerEvents:"none"}:void 0})]})},gn=function(e){var n=e.icon,t=e.label,i=e.ariaLabel,o=e.disabled,a=e.regAbResponse,l=e.gsiRemountKey,s=e.onGoogleIdentitySignedIn,c=e.onGoogleButtonClick,u=(0,r.useRef)(null);return(0,vn.Z)({autoPrompt:!1,hostRef:u,regAbResponseProp:a,gsiRemountKey:l,onGoogleIdentitySignedIn:s,onGoogleButtonClick:c}),(0,v.jsx)(mn,{icon:n,label:t,gsiHostRef:u,ariaLabel:i,disabled:o},l)},fn=t(63933),hn=t(29450),bn=t(54386),_n=t(48902),xn=t(89865);function jn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function yn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?jn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):jn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var wn=function(e){return e.mobile_country||function(e){var n,t=e||"+91",r=Ge.find((function(e){return e.id.startsWith("".concat(t,"|"))}));return null!==(n=null===r||void 0===r?void 0:r.id.split("|")[1])&&void 0!==n?n:""}(e.country_code_login)},On=function(e){var n,t,i=e.regAbResponse,a=e.otpShellExpanded,l=e.showOtpUi,s=e.onOtpStepChange,c=e.isActive,u=void 0===c||c,m=(0,r.useContext)(Ze.t),f=m.setActiveForm,h=m.setSignupEmail,_=m.setLoginInputModeOnOpen,x=(0,E.cI)(),j=(0,E.cl)({subscription:{values:!0}}).values,y=(0,Ke.i)(),w=y.getFingerprint,k=y.ready,I=(0,ke.rD)().domainName,N=(0,r.useState)("mobile"),B=N[0],Z=N[1],M=(0,r.useState)(null),L=M[0],T=M[1],D=(0,r.useState)(""),F=D[0],A=D[1],R=(0,r.useState)(!1),W=R[0],G=R[1],V=(0,r.useState)(!1),H=V[0],U=V[1],q=(0,r.useState)(0),Q=q[0],$=q[1],z=(0,r.useState)(""),Y=z[0],K=z[1],J="C"===(null===i||void 0===i||null===(n=i.REG_REVAMP_WEB_AND_MSITE)||void 0===n?void 0:n.bucket),X="B"===(null===i||void 0===i||null===(t=i.LOGIN_UI_REVAMP_WEB_AND_MSITE)||void 0===t?void 0:t.bucket),ee=function(){var e=(0,g.Z)(b().mark((function e(n){var t,r,i,a,l,c,u,d,p,v,m,g;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.id_token,!W){e.next=3;break}return e.abrupt("return");case 3:return G(!0),A(""),e.prev=5,e.next=8,(0,o.Uj)();case 8:return c=e.sent,e.next=11,(0,ge.a2)({reg_type:"GOOGLE",token:t,"g-recaptcha-response":c});case 11:if(null===(u=e.sent)||void 0===u||null===(r=u.error)||void 0===r||!r.message){e.next=16;break}return(0,De.kO)({fieldValue:"Get_OTP_Button_Error"}),A(u.error.message),e.abrupt("return");case 16:if(!(d=null===u||void 0===u||null===(i=u.data)||void 0===i?void 0:i.temp_token)){e.next=24;break}return e.next=20,(0,_n.gr)(d);case 20:p=e.sent,(0,bn.k)(p,I,X),e.next=25;break;case 24:"MOBILE_NUMBER_PAGE"===(null!==(a=null===u||void 0===u||null===(l=u.data)||void 0===l?void 0:l.next_step)&&void 0!==a?a:null===u||void 0===u?void 0:u.next_step)&&((g=null!==(v=null===u||void 0===u||null===(m=u.data)||void 0===m?void 0:m.journey_id)&&void 0!==v?v:null===u||void 0===u?void 0:u.journey_id)&&K(g),T("mobileCapture"),null===s||void 0===s||s(!0));case 25:e.next=31;break;case 27:e.prev=27,e.t0=e.catch(5),(0,De.kO)({fieldValue:"Get_OTP_Button_Error"}),A("Something went wrong. Please try again.");case 31:return e.prev=31,G(!1),e.finish(31);case 34:case"end":return e.stop()}}),e,null,[[5,27,31,34]])})));return function(n){return e.apply(this,arguments)}}(),ne=u?ee:void 0,te=(0,r.useCallback)((function(){return(0,Ie.jG)(Ie.VQ.GOOGLE_TAPPED)}),[]),re=(0,on.rb)(j.email,j.country_code_login),ie="mobile"===B?re:(0,on.JR)(j.email);(0,r.useEffect)((function(){u||(x.change("email",""),A(""),Z("mobile"),T(null),K(""),G(!1),U(!1),$((function(e){return e+1})),h(""),null===s||void 0===s||s(!1))}),[u]),(0,r.useEffect)((function(){var e;if(l&&p.Z.isMobile()&&window.matchMedia("(hover: none) and (pointer: coarse)").matches){var n=function(){return window.scrollTo(0,0)};return n(),null===(e=window.visualViewport)||void 0===e||e.addEventListener("scroll",n),function(){var e;return null===(e=window.visualViewport)||void 0===e?void 0:e.removeEventListener("scroll",n)}}}),[l]),(0,r.useEffect)((function(){l&&"mobileCapture"===L&&(0,Ie.mG)(Ie.VQ.MOBILE_SCREEN_LOADED)}),[l,L]);var oe=function(){if(!W&&ie){var e="mobile"===B?(0,on.vT)(j.email,j.country_code_login):(0,on.Zd)(j.email);e?A(e):(A(""),(0,Ie.IQ)(),G(!0),(0,o.Uj)().then(function(){var e=(0,g.Z)(b().mark((function e(n){var t,r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,hn.Hv)();case 2:if(t=e.sent,r="mobile"===B?{reg_type:"MOBILE",mobile:j.email||"",isd:j.country_code_login||"",request_id:t,mobile_country:wn(j)}:{reg_type:"EMAIL",email:j.email||"",request_id:t},(0,fn.e)()){e.next=6;break}return e.abrupt("return",(0,ge.a2)(yn(yn({},r),{},{"g-recaptcha-response":n})));case 6:return e.abrupt("return",(0,fn.x)(JSON.stringify(r)).then((function(e){return(0,ge.a2)({payload:e,"g-recaptcha-response":n})})));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()).then((function(e){var n,t;return null!==e&&void 0!==e&&null!==(n=e.data)&&void 0!==n&&n.journey_id&&K(e.data.journey_id),null!==e&&void 0!==e&&null!==(t=e.error)&&void 0!==t&&t.message?((0,Ie.Nz)(),(0,De.kO)({fieldValue:"Get_OTP_Button_Error"}),void A(e.error.message)):null!==e&&void 0!==e&&e.message&&200!==(null===e||void 0===e?void 0:e.status)?((0,Ie.Nz)(),(0,De.kO)({fieldValue:"Get_OTP_Button_Error"}),void A(e.message)):((0,Ie.QW)(),(0,De.kO)({fieldValue:"Get_OTP_Button"}),void(null===s||void 0===s||s(!0)))})).catch((function(){(0,Ie.Nz)(),(0,De.kO)({fieldValue:"Get_OTP_Button_Error"}),A("Something went wrong. Please try again.")})).finally((function(){return G(!1)})))}},ae=function(){T(null),null===s||void 0===s||s(!1),$((function(e){return e+1}))},le=function(){if(!W&&re){var e=(0,on.vT)(j.email,j.country_code_login);e?A(e):(A(""),(0,Ie.jG)(Ie.VQ.MOBILE_GET_OTP_TAPPED),G(!0),(0,o.Uj)().then((function(e){return(0,ge.a2)({reg_type:"MOBILE",mobile:j.email||"",isd:j.country_code_login||"","g-recaptcha-response":e,mobile_country:wn(j)},{journeyId:Y})})).then((function(e){var n,t;return null!==e&&void 0!==e&&null!==(n=e.data)&&void 0!==n&&n.journey_id&&K(e.data.journey_id),null!==e&&void 0!==e&&null!==(t=e.error)&&void 0!==t&&t.message?((0,De.kO)({fieldValue:"Get_OTP_Button_Error"}),void A(e.error.message)):null!==e&&void 0!==e&&e.message&&200!==(null===e||void 0===e?void 0:e.status)?((0,De.kO)({fieldValue:"Get_OTP_Button_Error"}),void A(e.message)):((0,Ie.jG)(Ie.VQ.MOBILE_GET_OTP_SUCCESS),(0,De.kO)({fieldValue:"Get_OTP_Button"}),void T("mobileOtp"))})).catch((function(){(0,De.kO)({fieldValue:"Get_OTP_Button_Error"})})).finally((function(){return G(!1)})))}},se=function(){W||((0,Ie.jG)("mobile"===B?Ie.VQ.EMAIL_MODE_TAPPED:Ie.VQ.MOBILE_MODE_TAPPED),x.change("email",""),A(""),Z((function(e){return"mobile"===e?"email":"mobile"})))};if(l&&"mobileCapture"===L)return(0,v.jsx)("div",{className:rn().otpWrap,children:(0,v.jsxs)("div",{className:d()(pn().root,pn().regRevamp),children:[(0,v.jsx)("div",{className:pn().backRow,children:(0,v.jsx)(O.Z,{theme:C.af,children:(0,v.jsx)(P.Z,{color:"primary",onClick:function(){(0,Ie.jG)(Ie.VQ.MOBILE_BACK_TAPPED),x.change("email",""),A(""),ae()},"aria-label":"Back to registration",tabIndex:-1,style:{padding:"0px",marginLeft:"-11px"},children:(0,v.jsx)(S.Z,{style:{fontSize:"1em",color:"#41414d"}})})})}),(0,v.jsx)("div",{className:rn().mobileCaptureIcon,"aria-hidden":!0,
1children:(0,v.jsx)(Cn,{})}),(0,v.jsx)("h2",{className:d()(pn().title,rn().mobileCaptureTitle),children:"Enter your mobile number"}),(0,v.jsx)("p",{className:d()(pn().subtitle,rn().mobileCaptureSubtitle),children:"OTP will be sent for verification."}),(0,v.jsxs)("div",{className:rn().formContent,children:[(0,v.jsx)(on.ZP,{mode:"mobile",externalError:F,onEnter:le,loading:W,isLoginPage:!1,isRegRevampFlow:!0,regRevampCountryCodeFieldValue:Ie.VQ.MOBILE_COUNTRY_CODE_TAPPED,openLoginModal:function(){W||((0,Ie.jG)(Ie.VQ.MOBILE_LOGIN_WITH_EMAIL_TAPPED),_("email"),f("login"))}}),(0,v.jsx)("div",{className:rn().primaryCta,"data-reg-keyboard-anchor":!0,children:(0,v.jsx)(an.Z,{onClick:le,loading:W,disabled:!re})})]})]})});if(l)return(0,v.jsx)("div",{className:rn().otpWrap,children:(0,v.jsx)(sn.Z,{onBack:"mobileOtp"===L?function(){x.change("email",""),A(""),T("mobileCapture")}:ae,value:j.email||"",countryCode:j.country_code_login,regAbResponse:i,getFingerprint:w,sign3Ready:k,isRegRevamp:!0,journeyId:Y,inputMode:"mobileOtp"===L?"mobile":B,onRegEmailVerified:"email"!==B||L?void 0:function(e){x.change("email",""),A(""),e&&K(e),T("mobileCapture")},onRegResendCode:"mobileOtp"===L?le:oe,onRegMultipleAccountsError:function(e){A(e),"mobileOtp"!==L?(T(null),null===s||void 0===s||s(!1),Z("mobile")):T("mobileCapture")}})});if(a)return(0,v.jsx)("div",{className:rn().otpWrap,"aria-hidden":!0});var ce=W?{pointerEvents:"none",opacity:.5}:void 0;return(0,v.jsxs)("div",{className:rn().contentWrap,style:H?{pointerEvents:"none"}:void 0,children:[(0,v.jsx)("h2",{className:rn().heading,children:"Register for Free"}),(0,v.jsxs)("div",{className:rn().formContent,children:[(0,v.jsx)(on.ZP,{mode:B,externalError:F,onEnter:oe,loading:W,isLoginPage:!1,handleToggleLoginInputMode:se,isRegRevampFlow:!0,openLoginModal:function(){W||((0,Ie.jG)(Ie.VQ.LOGIN_WITH_EMAIL_TAPPED),_("email"),f("login"))}}),(0,v.jsx)("div",{className:rn().primaryCta,"data-reg-keyboard-anchor":!0,children:(0,v.jsx)(an.Z,{onClick:oe,loading:W,disabled:!ie})}),(0,v.jsxs)("div",{className:un().loginFormMobileActions,style:ce,children:[(0,v.jsx)("div",{className:d()(un().orSeparator,un().orSeparatorText),children:(0,v.jsx)("span",{className:un().txtOrSeparator,children:"Or"})}),J?(0,v.jsx)(ln.Z,{regAbResponse:i,setIsLoginRedirecting:U,onGoogleIdentitySignedIn:ne,onGoogleButtonClick:te}):(0,v.jsxs)("div",{className:rn().optionButtonRow,children:[(0,v.jsx)(gn,{icon:(0,v.jsx)(Pn,{}),label:"Google",ariaLabel:"Continue with Google",disabled:W,regAbResponse:i,gsiRemountKey:Q,onGoogleIdentitySignedIn:ne,onGoogleButtonClick:te}),(0,v.jsx)(mn,{icon:"mobile"===B?(0,v.jsx)(Sn,{}):(0,v.jsx)(xn.pY,{width:16,height:16}),label:"mobile"===B?"Email":"Mobile",onClick:se,disabled:W})]})]}),(0,v.jsx)("div",{className:rn().policyWrap,children:(0,v.jsx)(Ne,{isRegRevamp:!0})})]})]})},Cn=function(){return(0,v.jsxs)("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[(0,v.jsx)("rect",{width:"64",height:"64",rx:"32",fill:"#FFF7EF"}),(0,v.jsx)("path",{d:"M27.8634 22.124L27.5032 21.3136C27.0181 20.2219 26.7755 19.6761 26.3763 19.2903C26.1128 19.0357 25.8027 18.8341 25.4629 18.6968C24.9482 18.4886 24.3509 18.4886 23.1564 18.4886C21.3777 18.4886 20.4883 18.4886 19.7954 18.9205C19.3704 19.1853 18.9639 19.635 18.7432 20.0845C18.3832 20.8173 18.4649 21.6247 18.6282 23.2396C19.9832 36.6395 27.3606 44.0169 40.7605 45.372C42.3753 45.5352 43.1828 45.6169 43.9157 45.2569C44.3651 45.0362 44.8148 44.6297 45.0797 44.2048C45.5115 43.5119 45.5114 42.6224 45.5114 40.8438C45.5114 39.6492 45.5115 39.0519 45.3034 38.5372C45.166 38.1974 44.9645 37.8874 44.7097 37.6239C44.324 37.2246 43.7782 36.982 42.6866 36.4969L41.8761 36.1366C40.9197 35.7115 40.4414 35.4991 39.9617 35.4587C39.4514 35.4157 38.9388 35.5109 38.478 35.7341C38.0446 35.9441 37.6746 36.3141 36.9345 37.0543C36.2063 37.7824 35.8422 38.1465 35.368 38.3608C34.9067 38.5695 34.2583 38.6582 33.7578 38.5812C33.2435 38.5019 32.8655 38.2887 32.1094 37.8624C29.4292 36.3507 27.6494 34.5708 26.1378 31.8907C25.7114 31.1347 25.4982 30.7567 25.419 30.2424C25.3419 29.7419 25.4306 29.0934 25.6392 28.6321C25.8536 28.1579 26.2177 27.7938 26.9459 27.0656C27.686 26.3255 28.0561 25.9554 28.266 25.5221C28.4893 25.0613 28.5844 24.5488 28.5415 24.0385C28.5011 23.5587 28.2885 23.0805 27.8634 22.124Z",fill:"#FF8888"})]})},Pn=function(){return(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"16",height:"16",children:[(0,v.jsx)("path",{fill:"#FFC107",d:"M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z"}),(0,v.jsx)("path",{fill:"#FF3D00",d:"M6.306 14.691l6.571 4.819C14.655 15.108 18.961 12 24
112c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z"}),(0,v.jsx)("path",{fill:"#4CAF50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238C29.211 35.091 26.715 36 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z"}),(0,v.jsx)("path",{fill:"#1976D2",d:"M43.611 20.083H42V20H24v8h11.303c-.792 2.237-2.231 4.166-4.087 5.571l6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z"})]})},Sn=function(){return(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,v.jsx)("path",{d:"M3.86682 4.8667L6.62817 6.8263C7.77162 7.50237 8.22869 7.50237 9.37215 6.8263L12.1335 4.8667",stroke:"#41404D",strokeWidth:"1.38462",strokeLinecap:"round",strokeLinejoin:"round"}),(0,v.jsx)("path",{d:"M1.34377 8.98392C1.38735 11.0276 1.40914 12.0494 2.16323 12.8064C2.91731 13.5634 3.96681 13.5897 6.06581 13.6424C7.35945 13.675 8.64039 13.675 9.93405 13.6424C12.0331 13.5897 13.0825 13.5634 13.8367 12.8064C14.5907 12.0494 14.6125 11.0276 14.6561 8.98392C14.6701 8.32678 14.6701 7.67352 14.6561 7.01645C14.6125 4.97274 14.5907 3.95089 13.8367 3.19394C13.0825 2.43698 12.0331 2.41062 9.93405 2.35788C8.64039 2.32537 7.35945 2.32537 6.0658 2.35787C3.9668 2.4106 2.91731 2.43697 2.16322 3.19393C1.40913 3.95088 1.38735 4.97273 1.34376 7.01638C1.32975 7.67352 1.32975 8.32678 1.34377 8.98392Z",stroke:"#41404D",strokeWidth:"1.38462",strokeLinejoin:"round"})]})},En=function(e){var n=e.regAbResponse,t=e.otpShellExpanded,r=e.showOtpUi,i=e.onOtpStepChange,o=e.isActive;return(0,v.jsx)(E.l0,{onSubmit:function(){},initialValues:{email:"",country_code_login:"+91"},render:function(){return(0,v.jsx)(On,{regAbResponse:n,otpShellExpanded:t,showOtpUi:r,onOtpStepChange:i,isActive:o})}})};function kn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function In(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?kn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Nn=(0,r.forwardRef)((function(e,n){return(0,v.jsx)(x.Z,In({direction:"up",ref:n},e))})),Bn=function(){return p.Z.isMobile()&&window.matchMedia("(hover: none) and (pointer: coarse)").matches},Zn=function(e){var n=e.activeForm,t=e.regAbResponse,i="register_pg_1"===n,a=(0,r.useContext)(Ze.t).setActiveForm,l=(0,r.useState)(!1),s=l[0],u=l[1],d=(0,r.useState)(!1),m=d[0],g=d[1],f=(0,r.useState)(0),h=f[0],b=f[1],x=(0,r.useState)("none"),y=x[0],w=x[1],O=(0,r.useRef)(null),C=(0,r.useRef)(0),P=(0,r.useRef)(0),S=(0,r.useRef)(0),E=(0,r.useCallback)((function(){w("none"),b(0)}
1),[]),k=(0,r.useCallback)((function(){if(Bn()&&!s){var e=O.current;if(e){var n=document.activeElement,t=n instanceof HTMLElement&&e.contains(n)&&n.matches("input, textarea, select"),r=window.visualViewport;if(t&&r){var i=C.current||window.innerHeight;if(i-window.innerHeight>120)E();else{var o=Math.round(Math.max(0,i-r.height-r.offsetTop));o<120&&(o=Math.round(.45*i));var a=i-o,l=e.querySelector("[data-reg-keyboard-anchor]"),c=l?l.getBoundingClientRect().bottom+r.offsetTop+P.current:i;S.current=e.offsetHeight-P.current;var u=Math.round(c+40-a);b(u>0?u:0)}}else E()}else E()}else E()}),[s,E]);(0,r.useEffect)((function(){P.current=h}),[h]),(0,r.useEffect)((function(){i?(C.current=window.innerHeight,(0,Ie.hk)(),(0,o.tv)(),window.requestAnimationFrame((function(){O.current&&(S.current=O.current.offsetHeight)}))):(u(!1),g(!1))}),[i]),(0,r.useEffect)((function(){var e,n;if(i&&Bn()&&!s){var t=function(){return window.requestAnimationFrame(k)},r=function(e){var n;e.target instanceof HTMLElement&&null!==(n=O.current)&&void 0!==n&&n.contains(e.target)&&e.target.matches("input, textarea, select")&&(k(),window.requestAnimationFrame(k),window.requestAnimationFrame((function(){return window.requestAnimationFrame(k)})))},o=function(e){var n;e.target instanceof HTMLElement&&null!==(n=O.current)&&void 0!==n&&n.contains(e.target)&&window.setTimeout((function(){var e;null!==(e=O.current)&&void 0!==e&&e.contains(document.activeElement)||E()}),100)};return k(),null===(e=window.visualViewport)||void 0===e||e.addEventListener("resize",t),null===(n=window.visualViewport)||void 0===n||n.addEventListener("scroll",t),document.addEventListener("focusin",r,!0),document.addEventListener("focusout",o,!0),function(){var e,n;null===(e=window.visualViewport)||void 0===e||e.removeEventListener("resize",t),null===(n=window.visualViewport)||void 0===n||n.removeEventListener("scroll",t),document.removeEventListener("focusin",r,!0),document.removeEventListener("focusout",o,!0),E()}}E()}),[i,s,E,k]),(0,r.useEffect)((function(){if(s){var e=(p.Z.isMobile(),0),n=window.setTimeout((function(){return g(!0)}),e);return function(){return window.clearTimeout(n)}}g(!1)}),[s]);var I=In(In({borderRadius:s?"0":"24px 24px 0 0"},!s&&S.current>0&&{height:S.current+h}),{},{transition:y}),N={height:s&&p.Z.isMobile()?"100dvh":void 0,transition:"height ".concat(0,"ms")},B={borderRadius:"8px",maxWidth:"unset",maxHeight:"unset",width:"645px",height:p.T.isDesktop()&&1!==window.devicePixelRatio?"520px":"575px"},Z=(0,v.jsx)(En,{regAbResponse:t,otpShellExpanded:s,showOtpUi:m,onOtpStepChange:u,isActive:i}),M="".concat(K().innerWrap," ").concat(rn().regShell).concat(s?" ".concat(rn().regShellOtp):"");return(0,v.jsxs)(v.Fragment,{children:[p.Z.isMobile()&&(0,v.jsx)(_.ZP,{transitionDuration:200,anchor:"bottom",open:i,SlideProps:{unmountOnExit:!0},ModalProps:{disableEnforceFocus:!0,disableRestoreFocus:!0},PaperProps:{style:I},children:(0,v.jsxs)("div",{ref:O,className:M,style:N,children:[!s&&(0,v.jsx)(c.Z,{isRevamp:!0}),Z]})}),p.Z.isDesktop()&&(0,v.jsx)(j.Z,{keepMounted:!0,disableEscapeKeyDown:!0,disableEnforceFocus:!0,disableRestoreFocus:!0,open:i,scroll:"body",PaperProps:{style:B},TransitionComponent:Nn,onClose:function(e,n){"backdropClick"!==n&&a("")},children:(0,v.jsxs)("div",{className:M,children:[!s&&(0,v.jsx)(c.Z,{isRevamp:!0}),Z]})})]})},Mn=function(e){var n,t,r=e.activeForm,i=e.religion,o=e.mothertongue,a=e.regAbResponse,l="B"===(null===a||void 0===a||null===(n=a.REG_REVAMP_WEB_AND_MSITE)||void 0===n?void 0:n.bucket)||"C"===(null===a||void 0===a||null===(t=a.REG_REVAMP_WEB_AND_MSITE)||void 0===t?void 0:t.bucket);return(0,v.jsxs)(v.Fragment,{children:[l?(0,v.jsx)(Zn,{activeForm:r,regAbResponse:a}):(0,v.jsx)(nn,{activeForm:r,religion:i,mothertongue:o,regAbResponse:a}),(0,v.jsx)(m,{activeForm:r,religion:i,mothertongue:o,regAbResponse:a})]})}},3667:function(e,n,t){"use strict";var r=t(59499),i=t(9008),o=t.n(i),a=(t(67294),t(14971)),l=t(52931),s=t(85893);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?c(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.title,t=e.description,r=(e.metatags,e.metaImage),i=e.domainLogo,c=e.canonicalLink,d=e.faqData,p=e.customSchema,v=(0,a.rD)(),m=v.baseUrl,g=v.baseDomain,f=v.formattedDomainName,h=v.domainName,b={"@context":"http://schema.org",name:f,url:m},_=u(u({},b),{},{"@type":"WebSite"}),x=u(u({},b),{},{"@type":"Organization",contactPoint:[{"@type":"ContactPoint",telephone:"+91-8095031111",contactType:"Customer Service"}],logo:i,sameAs:["https://www.facebook.com/shaadicom","https://twitter.com/shaadidotcom","https://www.youtube.com/user/shaaditv","https://www.linkedin.com/company/people-interactive"]},{aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",reviewCount:"10"}}),j=u(u({},b),{},{"@type":"Product",brand:{"@type":"Brand",name:f},description:"Leading ".concat(g," matchmaking service with 35 lakh+ verified profiles and 5 lakh success stories. Go beyond matrimony and start your journey with ").concat(h,". Register free!"),aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",reviewCount:"10",bestRating:"5",worstRating:"1"},review:(0,l.Bc)(h)}),y=d&&d.length>0?d.map((function(e){return{"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}})):(0,l.Dh)(h),w=u(u({},b),{},{"@type":"FAQPage",mainEntity:y});return(0,s.jsxs)(o(),{children:[(0,s.jsx)("title",{"data-react-helmet":"true",children:n}),(0,s.jsx)("meta",{"data-react-helmet":"true",name:"description",content:t}),(0,s.jsx)("meta",{"data-react-helmet":"true",name:"robots",content:"index, follow"}),(0,s.jsx)("meta",{"data-react-helmet":"true",property:"og:url",content:m}),(0,s.jsx)("meta",{"data-react-helmet":"true",property:"og:title",content:n}),(0,s.jsx)("meta",{"data-react-helmet":"true",property:"og:description",content:t}),(0,s.jsx)("meta",{"data-react-helmet":"true",property:"og:image",content:r}),(0,s.jsx)("meta",{"data-react-helmet":"true",property:"twitter:url",content:m}),(0,s.jsx)("meta",{"data-react-helmet":"true",property:"twitter:title",content:n}),(0,s.jsx)("meta",{"data-react-helmet":"true",property:"twitter:description",content:t}),(0,s.jsx)("meta",{"data-react-helmet":"true",property:"twitter:image",content:r}),(0,s.jsx)("link",{rel:"shortcut icon",type:"image/png",href:"https://img2.shaadi.com/assests/2021/images/favicon-32.png"}),(0,s.jsx)("link",{rel:"canonical",href:c||m}),(0,s.jsx)("link",{rel:"preconnect",href:"http://cdn.mouseflow.com",as:"script",crossOrigin:"true"}),(0,s.jsx)("link",{rel:"preconnect",href:"http://amplifypixel.outbrain.com",as:"script",crossOrigin:"true"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://www.googletagmanager.com",as:"script",crossOrigin:"true"}),(0,s.jsx)("link",{rel:"preconnect",href:"http://amplify.outbrain.com",as:"script",crossOrigin:"true"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://bat.bing.com",as:"script",crossOrigin:"true"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://ww4.shaadi.com",crossOrigin:"true"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://www.google.com"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://www.gstatic.com",crossOrigin:"true"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"true"}),(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(_)}}),(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(x)}}),(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(j)}}),"object"===typeof p?(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(p)}}):(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(w)}})]})}},10609:function(e){e.exports={wrapper:"Modal_wrapper___aNGu",loginMigrationBucket:"Modal_loginMigrationBucket__mnOgy"}},52174:function(e){e.exports={root:"ChipGroup_root__vNvtH",chip:"ChipGroup_chip__pdrHT",avatar:"ChipGroup_avatar__0L3BE"}},42573:function(e){e.exports={regShell:"revampedreg_regShell__ngnoz",regShellOtp:"revampedreg_regShellOtp__M2c0_",otpWrap:"revampedreg_otpWrap__d21Br",contentWrap:"revampedreg_contentWrap__AzC77",heading:"revampedreg_heading__ZVBe_",formContent:"revampedreg_formContent__jh8Wg",primaryCta:"revampedreg_primaryCta__EL_cP",policyWrap:"revampedreg_policyWrap__uIflS",regFooter:"revampedreg_regFooter__tpmzn",regFooterText:"revampedreg_regFooterText__RAvWX",regFooterLogin:"revampedreg_regFooterLogin__DaXCQ",optionButtonRow:"revampedreg_optionButtonRow__yNv5i",optionButtonWrap:"revampedreg_optionButtonWrap__euhST",optionButton:"revampedreg_optionButton__wlC2X",optionButtonGsi:"revampedreg_optionButtonGsi__w__d_",mobileCaptureIcon:"revampedreg_mobileCaptureIcon__ijtY3",mobileCaptureTitle:"revampedreg_mobileCaptureTitle__ByBKB",mobileCaptureSubtitle:"revampedreg_mobileCaptureSubtitle__n4Kl3"}},13113:function(e){e.exports={innerWrap:"revisedreg_innerWrap__RaGkB",loadingWrap:"revisedreg_loadingWrap__bVlAB",loadingText:"revisedreg_loadingText__CeNHg",backArrow:"revisedreg_backArrow__SLM_3",slidePageWrap:"revisedreg_slidePageWrap__Y5ij3",pageOneIcon:"revisedreg_pageOneIcon__zXO0n",pageTwoIcon:"revisedreg_pageTwoIcon__N4dHN",pageThreeIcon:"revisedreg_pageThreeIcon__nAC91",pageFourIcon:"revisedreg_pageFourIcon__tdgE_",formFieldsWrap:"revisedreg_formFieldsWrap__8v0yg",formFirstPageFieldsWrap:"revisedreg_formFirstPageFieldsWrap__H8owN",columnFieldsWrap:"revisedreg_columnFieldsWrap__EoSdg",fieldWrap:"revisedreg_fieldWrap__KHKlA",heading:"revisedreg_heading__D22Xj",subHeading:"revisedreg_subHeading__a_gTb",errorMessage:"revisedreg_errorMessage__sYlC_",loginLink:"revisedreg_loginLink___JL2Q",policyAndTerms:"revisedreg_policyAndTerms___LCtr",formInputField:"revisedreg_formInputField__GrEG9",yearInputField:"revisedreg_yearInputField__XS46_",lastNameInputField:"revisedreg_lastNameInputField__PxrfO",dayInputField:"revisedreg_dayInputField__4Pp9H",monthInputField:"revisedreg_monthInputField__qoCnh",isdInputField:"revisedreg_isdInputField__sQ_TL",selectIcon:"revisedreg_selectIcon__6mdo8",optionsHeading:"revisedreg_optionsHeading__FVC6_",optionsItem:"revisedreg_optionsItem__UarLr",ctaWrap:"revisedreg_ctaWrap__WW7nr",cta:"revisedreg_cta__0fZ8B",isLoading:"revisedreg_isLoading__OSe4t",removeBg:"revisedreg_removeBg__1UMld",ctaText:"revisedreg_ctaText__7U99_",policyAndTermsText:"revisedreg_policyAndTermsText__ewG5K",communityHelp:"revisedreg_communityHelp__kA0zB",tooltip:"revisedreg_tooltip__an3Lo",tooltiptext:"revisedreg_tooltiptext__EuLDb",safetyComBanner:"revisedreg_safetyComBanner__vRm01",checkmarkWrap:"revisedreg_checkmarkWrap__lbSEQ",textWrap:"revisedreg_textWrap__WMYaj",hideText:"revisedreg_hideText__UFrz4",absoluteCenter:"revisedreg_absoluteCenter___vd_w"}}}]);
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.