(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[14375,77289,3022,79507,65128,33782],{74049:function(e,o,t){"use strict";var n=t(36257);function i(){}function l(){}l.resetWarningCache=i,e.exports=function(){function e(e,o,t,i,l,a){if(a!==n){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}}function o(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:o,element:e,elementType:e,instanceOf:o,node:e,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:l,resetWarningCache:i};return t.PropTypes=t,t}},40507:function(e,o,t){e.exports=t(74049)()},36257:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4430:function(e,o,t){"use strict";var n=Object.assign||function(e){for(var o=1;o{(0,n.useEffect)((()=>{e?!document.body.classList.contains("disable-scroll")&&document.body.classList.add("disable-scroll"):!e&&document.body.classList.contains("disable-scroll")&&(document.body.classList.remove("disable-scroll"),i.au&&window.scrollTo(0,0))}),[e])}},68203:function(e,o,t){"use strict";t.r(o);var n=t(11527),i=t(85254),l=t(50959),a=t(78664),r=t(97650),s=function(e,o,t,n){return new(t||(t=Promise))((function(i,l){function a(e){try{s(n.next(e))}catch(e){l(e)}}function r(e){try{s(n.throw(e))}catch(e){l(e)}}function s(e){var o;e.done?i(e.value):(o=e.value,o instanceof t?o:new t((function(e){e(o)}))).then(a,r)}s((n=n.apply(e,o||[])).next())}))};const d=l.memo((e=>{const[o,t]=(0,l.useState)("");return(0,l.useEffect)((()=>{o||s(void 0,void 0,void 0,(function*(){try{const{data:e}=yield i.default.get("/bin/googleinvisiblecaptchakey.json");t(e.GOOGLE_INVISIBLE_RECAPTCHA_KEY)}catch(e){t(r.rN)}}))}),[]),o?(0,n.jsx)(a.default,{onResolved:e.resolved,ref:e.forwardedRef,sitekey:o},void 0):null}));o.default=d},35164:function(e,o,t){"use strict";t.r(o),t.d(o,{default:function(){return C}});var n=t(11527),i=t(50959),l=t(24860),a=t(54215),r=t(68203),s=t(31477),d=t(92082),c=t(93577),u=t(48387),m=t(27789);const p=(e,o="")=>null!=e?e:o,v=e=>[{key:"fullName",empty:p(null==e?void 0:e.fullNameEmptyText),invalid:p(null==e?void 0:e.fullNameInvalidText)},{key:"mobileNo",empty:p(null==e?void 0:e.mobileNumberEmptyText),invalid:p(null==e?void 0:e.mobileNumberInvalidText)},{key:"firstName",empty:p(null==e?void 0:e.firstNameEmptyText),invalid:p(null==e?void 0:e.firstNameInvalidText)},{key:"lastName",empty:p(null==e?void 0:e.lastNameEmptyText),invalid:p(null==e?void 0:e.lastNameInvalidText)},{key:"pincode",empty:p(null==e?void 0:e.pincodeEmptyText),invalid:p(null==e?void 0:e.pincodeInvalidText)},{key:"salaryAmount",empty:p(null==e?void 0:e.salaryEmptyText),invalid:p(null==e?void 0:e.salaryInvalidText)}];var f=t(97650),b=t(75936),g=t(82255),x=t(49995),h=function(e,o,t,n){return new(t||(t=Promise))((function(i,l){function a(e){try{s(n.next(e))}catch(e){l(e)}}function r(e){try{s(n.throw(e))}catch(e){l(e)}}function s(e){var o;e.done?i(e.value):(o=e.value,o instanceof t?o:new t((function(e){e(o)}))).then(a,r)}s((n=n.apply(e,o||[])).next())}))};var y=e=>{const o=(0,m.T)(),{data:t}=(0,m.C)((e=>e.validateOTPReducer)),{loading:n,error:r}=(0,m.C)((e=>e.loginReducer)),{isOpen:y,loginOtpType:N}=(0,m.C)((e=>e.loginModalReducer)),{userVerificationStatus:T}=(0,m.C)((e=>e.userVerificationStatusReducer)),[_]=(0,i.useState)((()=>(e=>{const o=e?JSON.parse(e):null;return{optionalFieldValue:"optional",greetingMessage:p(null==o?void 0:o.greetingMessage),headingText:p(null==o?void 0:o.headingText),subHeadingText:p(null==o?void 0:o.subHeadingText),validationMessages:v(o),fullNameSupportText:p(null==o?void 0:o.fullNameSupportText),fullNameLabelText:p(null==o?void 0:o.fullNameLabelText),hideFirstName:(0,s.hb)(p(null==o?void 0:o.hideFirstName,!1)),firstNameSupportText:p(null==o?void 0:o.firstNameSupportText),firstNameLabelText:p(null==o?void 0:o.firstNameLabelText),lastNameSupportText:p(null==o?void 0:o.lastNameSupportText),lastNameLabelText:p(null==o?void 0:o.lastNameLabelText),pincodeSupportText:p(null==o?void 0:o.pincodeSupportText),pincodeLabelText:p(null==o?void 0:o.pincodeLabelText),salariedbuttonText:p(null==o?void 0:o.salariedbuttonText),nonsalariedbuttonText:p(null==o?void 0:o.nonsalariedbuttonText),employmentTypeSupportText:p(null==o?void 0:o.employmentTypeSupportText),mobileNumberSupportText:p(null==o?void 0:o.mobileNumberSupportText),mobileNumberLabelText:p(null==o?void 0:o.mobileNumberLabelText),employmentLabelText:p(null==o?void 0:o.employmentLabelText),submitBtnText:p(null==o?void 0:o.submitBtnText),errorMessages:p(null==o?void 0:o.errorMessages,[]),offersRedirectURL:p(null==o?void 0:o.offersRedirectURL),proceedBtnText:p(null==o?void 0:o.proceedBtnText),formHeadingText:p(null==o?void 0:o.formHeadingText),formSubHeadingText:p(null==o?void 0:o.formSubHeadingText),formSubmitBtnText:p(null==o?void 0:o.formSubmitBtnText),formMobileNumberSupportText:p(null==o?void 0:o.formMobileNumberSupportText),formMobileNumberLabelText:p(null==o?void 0:o.formMobileNumberLabelText),salaryLabelText:p(null==o?void 0:o.salaryLabelText),salaryEmptyText:p(null==o?void 0:o.salaryEmptyText),salaryInvalidText:p(null==o?void 0:o.salaryInvalidText),salarySupportText:p(null==o?void 0:o.salarySupportText),salaryTooltipText:p(null==o?void 0:o.salaryTooltipText),currencySymbol:p(null==o?void 0:o.currencySymbol),minimumSalaryAmount:p(null==o?void 0:o.minimumSalaryAmount),salariedbuttonValue:p(null==o?void 0:o.salariedbuttonValue),nonsalariedbuttonValue:p(null==o?void 0:o.nonsalariedbuttonValue),modalCloseAction:p(null==o?void 0:o.modalCloseAction),modalCloseUrl:p(null==o?void 0:o.modalCloseUrl)}})(e))),{_lsFlag:j}=(0,m.C)((e=>e.isUserLoggedInReducer)),[O,C]=(0,i.useState)({fullName:"",firstName:"",lastName:"",pincode:"",employment:"",mobileNo:"",salaryAmount:""}),[E,L]=(0,i.useState)({fullName:{isError:!1,noError:!1,message:"",isButtonDisabled:!1},firstName:{isError:!1,noError:!1,message:"",isButtonDisabled:!1},lastName:{isError:!1,noError:!1,message:"",isButtonDisabled:!1},pincode:{isError:!1,noError:!1,message:"",isButtonDisabled:!1},mobileNo:{isError:!1,noError:!1,message:"",isButtonDisabled:!1},salaryAmount:{isError:!1,noError:!1,message:"",isButtonDisabled:!1}}),[w,S]=(0,i.useState)(!1),k=e=>{var o,t,n,i;const{type:l,target:a}=e,{name:r,value:s}=a,c=["6","7","8","9"];s.trim()?s.trim()&&("fullName"===r&&(null===(o=s.trim())||void 0===o?void 0:o.length)<3||"firstName"===r&&(null===(t=s.trim())||void 0===t?void 0:t.length)<1||"lastName"===r&&(null===(n=s.trim())||void 0===n?void 0:n.length)<1||"pincode"===r&&!/^([1-9]{1})([0-9]{5})$/.test(s)||"mobileNo"===r&&(null===(i=s.replace(/\D/g,""))||void 0===i?void 0:i.length)<10||"mobileNo"===r&&!c.includes(s[0])||"salaryAmount"===r&&Number(s.replace(/\D/g,""))<=+_.minimumSalaryAmount?L(Object.assign(Object.assign({},E),{[r]:{isError:"blur"===l,message:(0,d.e$)(r,null==_?void 0:_.validationMessages,"invalid"),isButtonDisabled:!0}})):"employment"===r&&s!==(null==_?void 0:_.salariedbuttonValue)?L(Object.assign(Object.assign({},E),{salaryAmount:{isError:!1,noError:!1,message:"",isButtonDisabled:!0}})):L(Object.assign(Object.assign({},E),{[r]:{isError:!1,noError:"blur"===l,message:"",isButtonDisabled:!1}}))):L(Object.assign(Object.assign({},E),{[r]:{isError:"blur"===l,message:(0,d.e$)(r,null==_?void 0:_.validationMessages,"empty"),isButtonDisabled:!0}}))};(0,i.useEffect)((()=>{var e,t;const n=null===(t=null===(e=document.querySelector(".offer-login-otp-modal__login__title"))||void 0===e?void 0:e.textContent)||void 0===t?void 0:t.trim();y&&(o((0,u.Gc)(N)),setTimeout((()=>{const e=[...Array.isArray(window.dataLayer)?window.dataLayer:[]].reverse().find((e=>"click"===e.event&&"application_id"in e&&"cta_text"in e));(0,x.Z)({component:e.component,element:"login_popup_view",event:(null==e?void 0:e.event)||"",sec_title:n,cta_text:(null==e?void 0:e.cta_text)||""})}),200))}),[y]),(0,i.useEffect)((()=>{Object.keys(E).filter((e=>{var o;return null===(o=E[e])||void 0===o?void 0:o.isButtonDisabled})).length?S(!1):O.fullName&&O.mobileNo&&S(!0)}),[E]),(0,i.useEffect)((()=>{var e,t,n;const i=Object.keys(E).filter((e=>{var o;return null===(o=E[e])||void 0===o?void 0:o.isButtonDisabled}));i.length?S(!1):(_.hideFirstName||O.fullName.trim())&&O.mobileNo.trim()?(S(!0),(0,l.ax)()&&N!==f.kQ.WITHOUT_STAMPING&&(!O.employment||(null===(e=null==O?void 0:O.firstName)||void 0===e?void 0:e.length)<1||(null===(t=null==O?void 0:O.lastName)||void 0===t?void 0:t.length)<1||6!==(null===(n=null==O?void 0:O.pincode)||void 0===n?void 0:n.length)||O.employment===(null==_?void 0:_.salariedbuttonValue)&&!O.salaryAmount)&&S(!1)):S(!1),o({type:a.X}),y?!document.body.classList.contains("offer-login-disable-scroll")&&document.body.classList.add("offer-login-disable-scroll"):document.body.classList.remove("offer-login-disable-scroll")}),[y,O]),(0,i.useEffect)((()=>{h(void 0,void 0,void 0,(function*(){var e,o,t,n;const i=yield(0,s.gP)();L(Object.assign(Object.assign({},E),{fullName:{isError:!1,noError:!!(null==_?void 0:_.hideFirstName)||!!i.fullName&&!((null===(e=i.fullName)||void 0===e?void 0:e.length)<3),message:"",isButtonDisabled:!1},firstName:{isError:!1,noError:!(!i.firstName||(null===(o=i.firstName)||void 0===o?void 0:o.length)<1),message:"",isButtonDisabled:!1},lastName:{isError:!1,noError:!(!i.lastName||(null===(t=i.lastName)||void 0===t?void 0:t.length)<1),message:"",isButtonDisabled:!1},mobileNo:{isError:!1,noError:!(!i.mobileNo||(null===(n=i.mobileNo)||void 0===n?void 0:n.length)<10),message:"",isButtonDisabled:!1},pincode:{isError:!1,noError:!1,message:"",isButtonDisabled:!1},salaryAmount:{isError:!1,noError:!1,message:"",isButtonDisabled:!1}})),C(Object.assign(Object.assign({},O),{fullName:(null==_?void 0:_.hideFirstName)?null==_?void 0:_.optionalFieldValue:i.fullName?i.fullName:"",firstName:i.firstName?i.firstName:"",lastName:i.lastName?i.lastName:"",mobileNo:i.mobileNo?i.mobileNo:"",pincode:"",employment:"",salaryAmount:""}))}))}),[_,T,y]),(0,i.useEffect)((()=>{const e=(0,s.ej)("commercialFlowRedirect");"success"!==(null==t?void 0:t.status)&&T!==f._f.verificationSuccessfull||!e||((0,s.kT)("commercialFlowRedirect"),(0,s.C7)(e))}),[t,T]);const{isPerpetuated:I}=(0,m.C)((e=>e.isUserPerpetuatedReducer)),[R,D]=(0,i.useState)("");return window.redirectionWithLogin=(e=window.location.href)=>h(void 0,void 0,void 0,(function*(){D(e),j?window.location.href=e:I?(0,g.fD)(o):o((0,u.pL)(f.kQ.WITHOUT_REDIRECTION))})),(0,i.useEffect)((()=>{j&&R&&(window.location.href=R)}),[j]),{offersLoginData:_,formData:O,onFormInputChange:e=>{const{name:o,value:t}=e.target;if(k(e),"fullName"===o||"firstName"===o||"lastName"===o){const e=t.replace(/[^A-Za-z ]/g,"");e.length<=64&&C(Object.assign(Object.assign({},O),{[o]:e}))}else if("mobileNo"===o){const e=t.replace(/\D/g,"");e.length<=10&&C(Object.assign(Object.assign({},O),{[o]:e}))}else if("pincode"===o){const e=t.replace(/\D/g,"");e.length<=6&&C(Object.assign(Object.assign({},O),{[o]:e}))}else if("salaryAmount"===o){const e=t.replace(/\D/g,"");C(Object.assign(Object.assign({},O),{[o]:e}))}else C(Object.assign(Object.assign({},O),{[o]:t}))},formErrors:E,handleFormErrors:k,onFormSubmit:(e,t)=>{e.preventDefault();try{t.current&&t.current.execute()}catch(e){(0,b.ie)(e.toString())}const n=(null==_?void 0:_.hideFirstName)?{mobileNo:O.mobileNo}:{mobileNo:O.mobileNo,fullName:O.fullName.trim()};if((0,l.ax)()){if(j&&N!==f.kQ.WITHOUT_STAMPING)return void(0,s.gP)().then((({custType:e})=>{if("ETB"!==e){const t={mobileNo:O.mobileNo,firstName:O.firstName,lastName:O.lastName,pinCode:O.pincode,employmentType:O.employment,salaryAmount:(null==O?void 0:O.employment)===(null==_?void 0:_.salariedbuttonValue)?O.salaryAmount:"",custType:e};(0,c.Et)(t),o((0,u.U$)())}}));Object.assign(n,{mobileNo:O.mobileNo,firstName:O.firstName,lastName:O.lastName,pinCode:O.pincode,employmentType:O.employment,salaryAmount:(null==O?void 0:O.employment)===(null==_?void 0:_.salariedbuttonValue)?O.salaryAmount:""})}w&&((null==_?void 0:_.hideFirstName)?(0,s.XG)("fullName",null==_?void 0:_.greetingMessage):(0,s.XG)("fullName",O.fullName.trim()),(0,s.XG)("mobileNo",O.mobileNo),o((0,u._0)(n)))},loading:n,isOpen:y,loginOtpType:N,dispatch:o,isFormValid:w,error:r,recaptchResolved:()=>{},setFormData:C,setFormErrors:L}},N=t(35887),T=t(94644);var _=e=>{const{offersLoginData:o,formData:t,onFormInputChange:l,formErrors:c,onFormSubmit:u,isOpen:m,loginOtpType:p,dispatch:v,isFormValid:b,recaptchResolved:g,error:x,loading:h}=y(e.componentData),_=(0,i.useRef)(null),j=()=>{(0,d.Zp)("close_icon",null==o?void 0:o.headingText),"redirect"===o.modalCloseAction?window.open(o.modalCloseUrl,"_self"):(v({type:a.eM}),o.offersRedirectURL&&window.location.assign(o.offersRedirectURL));const e=document.querySelector(".miscellaneous-hamburger-menu");(null==e?void 0:e.classList.contains("visibility-hidden"))&&e.classList.remove("visibility-hidden")};return(0,T.R)(m,j,{name:"LOGIN_MODAL_FORM",sectionTitle:null==o?void 0:o.headingText}),(0,n.jsx)(n.Fragment,{children:m?(0,n.jsxs)("div",Object.assign({className:"modal offer-login-otp-modal offer-login-otp-modal--login modal--show",role:"dialog"},{children:[(0,n.jsx)("div",{className:"modal__overlay",onClick:j},void 0),p!==f.kQ.WITHOUT_CLOSE_BUTTON?(0,n.jsx)("div",{className:"modal__overlay",onClick:j},void 0):(0,n.jsx)("div",{className:"modal__overlay"},void 0),(0,n.jsx)("div",Object.assign({className:"modal__dialog modal__dialog--center",role:"document"},{children:(0,n.jsx)("div",Object.assign({className:"modal__content"},{children:(0,n.jsx)("div",Object.assign({className:"modal__body"},{children:(0,n.jsxs)("div",Object.assign({className:"offer-login-otp-modal__login"},{children:[p!==f.kQ.WITHOUT_CLOSE_BUTTON?(0,n.jsx)("button",Object.assign({onClick:j,"aria-label":"Close",className:"modal__close",id:"modal-close",type:"button"},{children:(0,n.jsx)("i",{className:"bf-icon-close"},void 0)}),void 0):null,(0,n.jsxs)("div",Object.assign({className:"offer-login-otp-modal__login__content text-center"},{children:[(0,n.jsx)("h2",Object.assign({className:"offer-login-otp-modal__login__title line-clamp-2"},{children:null==o?void 0:o.headingText}),void 0),(0,n.jsx)("p",Object.assign({className:"line-clamp-2"},{children:null==o?void 0:o.subHeadingText}),void 0)]}),void 0),(0,n.jsxs)("form",Object.assign({onSubmit:e=>{(0,d.Q4)(`${null==o?void 0:o.submitBtnText}`,`${null==o?void 0:o.headingText}`),u(e,_)}},{children:[(null==o?void 0:o.hideFirstName)?null:(0,n.jsxs)("div",Object.assign({className:"form-group form-group--float"},{children:[(0,n.jsx)("input",{type:"text",autoComplete:"off",className:"form-control form-control--style-2 "+(c.fullName.isError?"is-invalid":(null==c?void 0:c.fullName.noError)?"is-valid":""),id:"floatingInputInvalid",placeholder:"Full Name",name:"fullName",value:t.fullName,onFocus:e=>{const t={component:"login_popup",event_click:"form_integration",sec_title:`${null==o?void 0:o.headingText}`,field_name:"Full Name"};(0,N.DO)(t,e)},onChange:l,onBlur:l},void 0),(0,n.jsx)("label",Object.assign({htmlFor:"floatingInputInvalid"},{children:null==o?void 0:o.fullNameLabelText}),void 0),c.fullName.isError?(0,n.jsx)("div",Object.assign({className:"invalid-feedback"},{children:c.fullName.message}),void 0):(null==o?void 0:o.fullNameSupportText)?(0,n.jsx)("p",Object.assign({className:"form-text"},{children:null==o?void 0:o.fullNameSupportText}),void 0):null]}),void 0),(0,n.jsxs)("div",Object.assign({className:"form-group form-group--float"},{children:[(0,n.jsx)("input",{type:"tel",autoComplete:"off",maxLength:10,className:"form-control form-control--style-2 "+((null==c?void 0:c.mobileNo.isError)?"is-invalid":(null==c?void 0:c.mobileNo.noError)?"is-valid":""),placeholder:"Mobile No",name:"mobileNo",value:t.mobileNo,onFocus:e=>{const t={amount:"",component:"login_popup",event_click:"form_integration",sec_title:`${null==o?void 0:o.headingText}`,field_name:"Mobile Number"};(0,N.DO)(t,e)},onChange:l,onBlur:l},void 0),(0,n.jsx)("label",Object.assign({htmlFor:"floatingInputInvalid"},{children:null==o?void 0:o.mobileNumberLabelText}),void 0),c.mobileNo.isError?(0,n.jsx)("div",Object.assign({className:"invalid-feedback"},{children:c.mobileNo.message}),void 0):(null==o?void 0:o.mobileNumberSupportText)?(0,n.jsx)("p",Object.assign({className:"form-text"},{children:null==o?void 0:o.mobileNumberSupportText}),void 0):null]}),void 0),(0,n.jsxs)("div",Object.assign({className:"offer-login-otp-modal__login__cta-box"},{children:[(0,n.jsx)(r.default,{resolved:g,forwardedRef:_},void 0),(0,n.jsx)("button",Object.assign({className:"btn btn--primary",title:"Generate OTP",type:"submit",disabled:!b||h},{children:null==o?void 0:o.submitBtnText}),void 0),(null==x?void 0:x.message)?(0,n.jsx)("p",Object.assign({className:"error-msg"},{children:(0,s.ux)(x,o)}),void 0):null]}),void 0)]}),void 0)]}),void 0)}),void 0)}),void 0)}),void 0)]}),void 0):null},void 0)},j=t(73181);var O=e=>{const{offersLoginData:o,formData:t,onFormInputChange:l,formErrors:c,onFormSubmit:u,isOpen:p,dispatch:v,isFormValid:b,recaptchResolved:g,error:x,loading:h}=y(e.componentData),N=(0,i.useRef)(null),{_lsFlag:_}=(0,m.C)((e=>e.isUserLoggedInReducer)),O=()=>{(0,d.Zp)("close_icon",null==o?void 0:o.formHeadingText),v({type:a.eM}),o.offersRedirectURL&&window.location.assign(o.offersRedirectURL)};return(0,T.R)(p,(()=>{v({type:a.eM}),o.offersRedirectURL&&window.location.assign(o.offersRedirectURL)}),{name:f.xZ.LOGIN_MODAL_FORM,sectionTitle:null==o?void 0:o.formHeadingText}),(0,n.jsx)(n.Fragment,{children:p?(0,n.jsxs)("div",Object.assign({className:"modal offer-login-otp-modal offer-login-otp-modal--login modal--show modal-with-details",role:"dialog"},{children:[(0,n.jsx)("div",{className:"modal__overlay",onClick:O},void 0),(0,n.jsx)("div",Object.assign({className:"modal__dialog modal__dialog--center",role:"document"},{children:(0,n.jsx)("div",Object.assign({className:"modal__content"},{children:(0,n.jsx)("div",Object.assign({className:"modal__body"},{children:(0,n.jsxs)("div",Object.assign({className:"offer-login-otp-modal__login"},{children:[(0,n.jsx)("button",Object.assign({onClick:O,"aria-label":"Close",className:"modal__close",id:"modal-close",type:"button"},{children:(0,n.jsx)("i",{className:"bf-icon-close"},void 0)}),void 0),(0,n.jsxs)("div",Object.assign({className:"offer-login-otp-modal__login__content text-center"},{children:[(0,n.jsx)("h2",Object.assign({className:"offer-login-otp-modal__login__title line-clamp-2"},{children:null==o?void 0:o.formHeadingText}),void 0),(0,n.jsx)("p",Object.assign({className:"line-clamp-2"},{children:null==o?void 0:o.formSubHeadingText}),void 0)]}),void 0),(0,n.jsxs)("form",Object.assign({onSubmit:e=>{(0,d.Q4)(`${null==o?void 0:o.submitBtnText}`,`${null==o?void 0:o.formHeadingText}`),u(e,N)}},{children:[(0,n.jsxs)("div",Object.assign({className:"offer-login-otp-modal__name-container"},{children:[(0,n.jsxs)("div",Object.assign({className:"form-group form-group--float"},{children:[(0,n.jsx)("input",{type:"text",autoComplete:"off",className:"form-control form-control--style-2 "+(c.firstName.isError?"is-invalid":(null==c?void 0:c.firstName.noError)?"is-valid":""),id:"floatingInputInvalid",placeholder:null==o?void 0:o.firstNameSupportText,name:"firstName",value:t.firstName,onChange:l,onBlur:e=>{l(e),(0,d.X2)(null==o?void 0:o.formHeadingText,"First Name",c.firstName.isError,c.firstName.message)}},void 0),(0,n.jsx)("label",Object.assign({htmlFor:"floatingInputInvalid"},{children:null==o?void 0:o.firstNameLabelText}),void 0),c.firstName.isError?(0,n.jsx)("div",Object.assign({className:"invalid-feedback"},{children:c.firstName.message}),void 0):(null==o?void 0:o.firstNameSupportText)?(0,n.jsx)("p",Object.assign({className:"form-text"},{children:null==o?void 0:o.firstNameSupportText}),void 0):null]}),void 0),(0,n.jsxs)("div",Object.assign({className:"form-group form-group--float"},{children:[(0,n.jsx)("input",{type:"text",autoComplete:"off",className:"form-control form-control--style-2 "+(c.lastName.isError?"is-invalid":(null==c?void 0:c.lastName.noError)?"is-valid":""),id:"floatingInputInvalid",placeholder:null==o?void 0:o.lastNameSupportText,name:"lastName",value:t.lastName,onChange:l,onBlur:e=>{l(e),(0,d.X2)(null==o?void 0:o.formHeadingText,"Last Name",c.lastName.isError,c.lastName.message)}},void 0),(0,n.jsx)("label",Object.assign({htmlFor:"floatingInputInvalid"},{children:null==o?void 0:o.lastNameLabelText}),void 0),c.lastName.isError?(0,n.jsx)("div",Object.assign({className:"invalid-feedback"},{children:c.lastName.message}),void 0):(null==o?void 0:o.lastNameSupportText)?(0,n.jsx)("p",Object.assign({className:"form-text"},{children:null==o?void 0:o.lastNameSupportText}),void 0):null]}),void 0)]}),void 0),(0,n.jsxs)("div",Object.assign({className:"form-group form-group--float"},{children:[(0,n.jsx)("input",{type:"number",autoComplete:"off",className:"form-control form-control--style-2 "+(c.pincode.isError?"is-invalid":(null==c?void 0:c.pincode.noError)?"is-valid":""),id:"floatingInputInvalid",placeholder:null==o?void 0:o.pincodeSupportText,name:"pincode",value:t.pincode,maxLength:6,onChange:l,onBlur:e=>{l(e),(0,d.X2)(null==o?void 0:o.formHeadingText,"Pincode",c.pincode.isError,c.pincode.message)}},void 0),(0,n.jsx)("label",Object.assign({htmlFor:"floatingInputInvalid"},{children:null==o?void 0:o.pincodeLabelText}),void 0),c.pincode.isError?(0,n.jsx)("div",Object.assign({className:"invalid-feedback"},{children:c.pincode.message}),void 0):(null==o?void 0:o.pincodeSupportText)?(0,n.jsx)("p",Object.assign({className:"form-text"},{children:null==o?void 0:o.pincodeSupportText}),void 0):null]}),void 0),_?"":(0,n.jsxs)("div",Object.assign({className:"form-group form-group--float"},{children:[(0,n.jsx)("input",{type:"tel",autoComplete:"off",maxLength:10,className:"form-control form-control--style-2 "+((null==c?void 0:c.mobileNo.isError)?"is-invalid":(null==c?void 0:c.mobileNo.noError)?"is-valid":""),placeholder:null==o?void 0:o.formMobileNumberSupportText,name:"mobileNo",value:t.mobileNo,onChange:l,onBlur:e=>{l(e),(0,d.X2)(null==o?void 0:o.formHeadingText,"Mobile number",c.mobileNo.isError,c.mobileNo.message)}},void 0),(0,n.jsx)("label",Object.assign({htmlFor:"floatingInputInvalid"},{children:null==o?void 0:o.formMobileNumberLabelText}),void 0),c.mobileNo.isError?(0,n.jsx)("div",Object.assign({className:"invalid-feedback"},{children:c.mobileNo.message}),void 0):(null==o?void 0:o.formMobileNumberSupportText)?(0,n.jsx)("p",Object.assign({className:"form-text"},{children:null==o?void 0:o.formMobileNumberSupportText}),void 0):null]}),void 0),(0,n.jsxs)("div",Object.assign({className:"button-container"},{children:[(0,n.jsx)("p",Object.assign({className:"button-container__label"},{children:null==o?void 0:o.employmentLabelText}),void 0),(0,n.jsx)("input",{type:"radio",name:"employment",value:null==o?void 0:o.salariedbuttonValue,id:null==o?void 0:o.salariedbuttonText,onChange:l,onClick:()=>{(0,d.qP)(null==o?void 0:o.salariedbuttonText,null==o?void 0:o.formHeadingText)}},void 0),(0,n.jsx)("label",Object.assign({className:t.employment===(null==o?void 0:o.salariedbuttonValue)?"custom-label active":"custom-label",htmlFor:null==o?void 0:o.salariedbuttonText},{children:null==o?void 0:o.salariedbuttonText}),void 0),(0,n.jsx)("input",{type:"radio",name:"employment",value:null==o?void 0:o.nonsalariedbuttonValue,id:null==o?void 0:o.nonsalariedbuttonText,onChange:l,onClick:()=>{(0,d.qP)(null==o?void 0:o.nonsalariedbuttonText,null==o?void 0:o.formHeadingText)}},void 0),(0,n.jsx)("label",Object.assign({className:t.employment===(null==o?void 0:o.nonsalariedbuttonValue)?"custom-label active":"custom-label",htmlFor:null==o?void 0:o.nonsalariedbuttonText},{children:null==o?void 0:o.nonsalariedbuttonText}),void 0)]}),void 0),(0,n.jsx)("p",Object.assign({className:"form-text"},{children:null==o?void 0:o.employmentTypeSupportText}),void 0),t.employment===(null==o?void 0:o.salariedbuttonValue)?(0,n.jsxs)("div",Object.assign({className:"form-group form-group--float"},{children:[(0,n.jsx)("input",{type:"text",autoComplete:"off",className:"form-control form-control--style-2 "+(c.salaryAmount.isError?"is-invalid":(null==c?void 0:c.salaryAmount.noError)?"is-valid":""),placeholder:null==o?void 0:o.salarySupportText,name:"salaryAmount",value:`${null==o?void 0:o.currencySymbol} ${t.salaryAmount?(0,s.cK)(t.salaryAmount):""}`,onChange:l,onBlur:e=>{l(e),(0,d.X2)(null==o?void 0:o.formHeadingText,"salaryAmount",c.salaryAmount.isError,c.salaryAmount.message)}},void 0),(0,n.jsx)("label",{children:null==o?void 0:o.salaryLabelText},void 0),c.salaryAmount.isError?(0,n.jsx)("div",Object.assign({className:"invalid-feedback"},{children:c.salaryAmount.message}),void 0):(null==o?void 0:o.salarySupportText)?(0,n.jsx)("p",Object.assign({className:"form-text"},{children:null==o?void 0:o.salarySupportText}),void 0):null,o.salaryTooltipText?(0,n.jsx)(j.default,{text:o.salaryTooltipText},void 0):null]}),void 0):null,(0,n.jsxs)("div",Object.assign({className:"offer-login-otp-modal__login__cta-box"},{children:[(0,n.jsx)(r.default,{resolved:g,forwardedRef:N},void 0),(0,n.jsx)("button",Object.assign({className:"btn btn--primary",title:"Generate OTP",type:"submit",disabled:!b||h},{children:_?null==o?void 0:o.proceedBtnText:null==o?void 0:o.formSubmitBtnText}),void 0),(null==x?void 0:x.message)?(0,n.jsx)("p",Object.assign({className:"error-msg"},{children:(0,s.ux)(x,o)}),void 0):null]}),void 0)]}),void 0)]}),void 0)}),void 0)}),void 0)}),void 0)]}),void 0):null},void 0)};var C=e=>{const[o,t]=(0,i.useState)((0,l.ax)()),{isOpen:a,loginOtpType:r}=(0,m.C)((e=>e.loginModalReducer));return(0,i.useEffect)((()=>{a&&(r===f.kQ.WITHOUT_STAMPING?t(!1):t((0,l.ax)()))}),[a]),o?(0,n.jsx)(O,Object.assign({},e),void 0):(0,n.jsx)(_,Object.assign({},e),void 0)}},92082:function(e,o,t){"use strict";t.d(o,{Q4:function(){return r},VH:function(){return s},X2:function(){return c},Zp:function(){return a},e$:function(){return l},qP:function(){return d}});var n=t(55381),i=t(49995);const l=(e,o,t)=>{var n,i;let l="";const a=null==o?void 0:o.filter((o=>(null==o?void 0:o.key)===e));return l=(null==a?void 0:a.length)?"empty"===t?null===(n=a[0])||void 0===n?void 0:n.empty:null===(i=a[0])||void 0===i?void 0:i.invalid:"",l},a=(e,o)=>{const t={component:"login_popup",event_click:"icon_click",target:"login_popup_icon",cta_text:e.trim(),sec_title:o};(0,i.Z)(t)},r=(e,o)=>{const t={component:"login_popup",event_click:"button_click",target:"login_popup_submit_cta",cta_text:e.trim(),sec_title:o};(0,i.Z)(t)},s=(e,o)=>{const t={component:"login_popup",event_click:"link_click",target:"login_popup_link_cta",cta_text:e.trim(),sec_title:o};(0,i.Z)(t)},d=(e,o)=>{const t={component:"login_popup",event:"bfl_piifieldTiming",eventType:"NA",element:"login_popup",form_name:"PL form",field_name:"Employment Type",field_value:null==e?void 0:e.trim(),sec_title:o};(0,n.a)(t)},c=(e,o,t,i,l)=>{const a={component:"login_popup",event:"bfl_piifieldTiming",eventType:"NA",element:"login_popup",form_name:"PL form",sec_title:e,field_name:o,field_value:null!=l?l:"",submission_status:t?"Fail":"Success",validation_error:t?i:""};(0,n.a)(a)}},73181:function(e,o,t){"use strict";t.r(o),t.d(o,{default:function(){return m}});var n=t(11527),i=t(97650),l=t(50959),a=t(47430),r=t(49995),s=t(45889),d=t(95222);var c=({isPositionLeft:e,tooltipSectionTitle:o,headerText:t,closeCtaText:n,isCloseIcon:c,componentTypeDL:u=i.Li.CALCULATOR,targetDL:m=d.dV.CALCULATOR_INFO_CLICK})=>{const[p,v]=(0,l.useState)(!1),[f,b]=(0,l.useState)(!1),[g,x]=(0,l.useState)(!1),h=document.getElementsByTagName("BODY")[0];(0,s.default)(a.tq&&p);const y=(0,l.useRef)();return{showToolTip:p,hideToolTip:f,leftAlign:g||e,tooltipMessageBox:y,handleToolTip:e=>{const n=e.target.ariaLabel;if((()=>{var e,o;const t=document.documentElement.clientWidth;(null===(o=null===(e=y.current)||void 0===e?void 0:e.getBoundingClientRect())||void 0===o?void 0:o.right)>t&&x(!0)})(),b(!1),v(!0),a.tq){h.classList.add("tooltip-open");const i=e.target.closest(".loan-calculator-box");null==i||i.classList.add("loan-calculator-box--tooltip-open"),o&&n&&(0,r.Z)({component:u,event_click:d.dV.ICON_CLICK,event:d.dV.CLICK,target:m,cta_text:"info icon",sec_title:o,sub_section:t})}},closeToolTip:e=>{const l=e.target.ariaLabel;if(b(!0),v(!1),a.tq){h.classList.remove("tooltip-open");const a=e.target.closest(".loan-calculator-box");null==a||a.classList.remove("loan-calculator-box--tooltip-open"),!o||u!==i.Li.CALCULATOR||l!==i.Li.CLOSE_CTA&&l!==i.Li.CLOSE_ICON||(0,r.Z)({component:"info_popup",event_click:l===i.Li.CLOSE_CTA?d.dV.BUTTON_CLICK:d.dV.ICON_CLICK,event:d.dV.CLICK,target:l===i.Li.CLOSE_CTA?"info_popup_button_click":"info_popup_icon_click",cta_text:l===i.Li.CLOSE_CTA?n:"close icon",sec_title:o,sub_section:t})}},onBackButtonClose:e=>{if(b(!0),v(!1),a.tq){h.classList.remove("tooltip-open");const o=e.target.closest(".loan-calculator-box");null==o||o.classList.remove("loan-calculator-box--tooltip-open")}},showHeader:a.tq&&!(!t&&!c)}},u=t(94644);var m=({text:e,headerText:o,isCloseIcon:t=!1,isCtaPrimary:l=!1,closeCtaText:a,tooltipSectionTitle:r,componentTypeDL:s,targetDL:d,isPositionLeft:m})=>{const{showToolTip:p,hideToolTip:v,leftAlign:f,tooltipMessageBox:b,handleToolTip:g,closeToolTip:x,onBackButtonClose:h,showHeader:y}=c({tooltipSectionTitle:r,headerText:o,closeCtaText:a,isCloseIcon:t,componentTypeDL:s,targetDL:d,isPositionLeft:m});return(0,u.R)(p,(()=>h((0,u.O)({target:document.querySelector(".tooltip")}))),{name:i.xZ.TOOL_TIP}),e?(0,n.jsxs)("div",Object.assign({className:"tooltip",onMouseDown:x},{children:[(0,n.jsx)("span",Object.assign({className:"tooltip__toggle",onClick:g,onMouseEnter:g},{children:(0,n.jsx)("span",Object.assign({className:"bf-icon-info","aria-label":"tooltip-icon"},{children:"‌"}),void 0)}),void 0),(0,n.jsx)("div",{className:"overlay"},void 0),(0,n.jsx)("div",Object.assign({className:`tooltip_wrapper ${p&&"tooltip__box-container"}`},{children:(0,n.jsxs)("div",Object.assign({className:`tooltip__box ${f?"tooltip__box--left-align":""} ${v&&"hide-tooltip"}`,ref:b},{children:[y?(0,n.jsxs)("div",Object.assign({className:"tooltip__wrapper"},{children:[o?(0,n.jsx)("h2",Object.assign({className:"tooltip__wrapper__header"},{children:o}),void 0):null,t?(0,n.jsx)("a",Object.assign({onClick:x,title:o,"aria-label":i.Li.CLOSE_ICON,className:"bf-icon-close tooltip__wrapper__close",type:"button"},{children:(0,n.jsx)("span",{},void 0)}),void 0):null]}),void 0):null,(0,n.jsx)("span",Object.assign({className:"tooltip__text"},{children:e}),void 0),(0,n.jsx)("span",Object.assign({className:""+(l?"tooltip__close--cta":"tooltip__close"),"aria-label":i.Li.CLOSE_CTA},{children:a||"Done"}),void 0)]}),void 0)}),void 0)]}),void 0):null}},24860:function(e,o,t){"use strict";t.d(o,{ax:function(){return d},cZ:function(){return s},u0:function(){return r}});var n=t(50478),i=t(31477),l=t(97650),a=function(e,o,t,n){return new(t||(t=Promise))((function(i,l){function a(e){try{s(n.next(e))}catch(e){l(e)}}function r(e){try{s(n.throw(e))}catch(e){l(e)}}function s(e){var o;e.done?i(e.value):(o=e.value,o instanceof t?o:new t((function(e){e(o)}))).then(a,r)}s((n=n.apply(e,o||[])).next())}))};const r=e=>a(void 0,void 0,void 0,(function*(){try{const{cartDetails:o}=yield n.Z.getCart(),t=e.split(",").map((e=>e.toUpperCase()));for(let e=0;ee.has(o.prod.toUpperCase()))):void 0;if(t)return{product:n,applicationID:t.appId,prodCode:t.prod}}}return null}catch(e){return null}}));function s(e){var o;const[t]=null!==(o=Object.entries(l.pm).find((([o,t])=>t.types.has(e.toUpperCase()))))&&void 0!==o?o:[];return t}const d=()=>{var e;return"TRUE"===(null===(e=(0,i.C2)("login-stamp-details"))||void 0===e?void 0:e.toUpperCase())}},50478:function(e,o,t){"use strict";t.d(o,{Z:function(){return m}});var n=t(31477),i=t(95086);var l=t(19843),a=t(396),r=function(e,o,t,n){return new(t||(t=Promise))((function(i,l){function a(e){try{s(n.next(e))}catch(e){l(e)}}function r(e){try{s(n.throw(e))}catch(e){l(e)}}function s(e){var o;e.done?i(e.value):(o=e.value,o instanceof t?o:new t((function(e){e(o)}))).then(a,r)}s((n=n.apply(e,o||[])).next())}))};const s=()=>r(void 0,void 0,void 0,(function*(){const e=l.Z.getState(),{cartRead:o}=l.Z.getState().centralLoginApiReducer,{data:t}=e.cartReducer;if(null==t?void 0:t.cartCount)return t;try{const{mobileNo:e}=yield(0,n.gP)(),t=null!=o?o:yield(0,a.uQ)(a.xo,"POST","/api/v1/cart/read",{mobileNo:e},null,s);return l.Z.dispatch((e=>({type:i.NO,payload:e}))(t.data)),t.data}catch(e){throw e.message+="/api/v1/cart/read",e}})),d=e=>r(void 0,void 0,void 0,(function*(){const{data:{cartDetails:o}}=l.Z.getState().cartReducer,t=o.find((o=>o.appId===e));if(null==t?void 0:t.trackerData)return t.trackerData;const{mobileNo:r}=yield(0,n.gP)(),s=null==t?void 0:t.prod;try{const o=yield(0,a.uQ)(a.J6,"POST","/api/v1/cart/tracker",{id:e,prodCode:s,mobileNo:r},null,(()=>d(e)));return o.data.trackerDetailsList=o.data.trackerDetailsList.sort(((e,o)=>+e.eventSeq-+o.eventSeq)),l.Z.dispatch((c=o.data,{type:i.xP,payload:c})),o.data}catch(e){throw e.message+="/api/v1/cart/tracker",e}var c})),c=e=>r(void 0,void 0,void 0,(function*(){var o;const{data:t}=l.Z.getState().cartReducer,r=null===(o=t.cartDetails.find((o=>o.appId===e)))||void 0===o?void 0:o.channel;if(!r)return null;try{const{mobileNo:o}=yield(0,n.gP)(),t=yield(0,a.uQ)(a.J6,"POST","/api/v1/cart/delete",{mobileNo:o,appId:e,channel:r},null,(()=>c(e)));return l.Z.dispatch((e=>({type:i.El,payload:e}))({appId:e})),t}catch(e){throw e.message+="/api/v1/cart/delete",e}})),u=()=>r(void 0,void 0,void 0,(function*(){var e;const{data:o}=l.Z.getState().cartReducer;if(null===(e=o.cmsData)||void 0===e?void 0:e.length)return o.cmsData;try{const e=yield(0,a.uQ)(a.J6,"POST","/api/v1/cart/cmscartproducts",{channel:"web",prodcode:"all"},null,u);return l.Z.dispatch((e=>({type:i.Rg,payload:e}))(e.data)),e.data}catch(e){throw e.message+="/api/v1/cart/cmscartproducts",e}}));var m={getCart:s,getTracker:d,deleteItem:c,getCms:u}},27789:function(e,o,t){"use strict";t.d(o,{C:function(){return l},T:function(){return i}});var n=t(89406);const i=()=>(0,n.I0)(),l=n.v9},94644:function(e,o,t){"use strict";t.d(o,{O:function(){return d},R:function(){return c}});var n=t(50959),i=t(47430),l=t(49995),a=t(69949),r=t(75936),s=t(31477);const d=(e={})=>Object.assign({preventDefault:()=>{}},e),c=(e,o,t)=>{const d=()=>{if(e)try{o(),(0,l.Z)({event:a.Yh.CLICK,element:a.Yh.BROWSER_BACK_BTN_CLICK,event_type:a.Yh.CLICK,event_click:a.Yh.ICON_CLICK,component:t.name,sec_title:(0,s.QX)((0,s.hb)(t.sectionTitle),t.sectionTitle,"")}),document.getElementsByTagName("body")[0].classList.remove("modal-open","overflow-hidden")}catch(e){(0,r.ie)(e,{errorType:"FrontEnd Error",componentName:t.name})}};(0,n.useEffect)((()=>{if(i.tq){try{e&&(window.history.pushState({modalOpen:!0},""),window.addEventListener("popstate",d))}catch(e){(0,r.ie)(e,{errorType:"FrontEnd Error",componentName:t.name})}return()=>{var o;try{if(!i.tq)return;window.removeEventListener("popstate",d),e&&(null===(o=window.history.state)||void 0===o?void 0:o.modalOpen)&&window.history.back()}catch(e){(0,r.ie)(e,{errorType:"FrontEnd Error",componentName:t.name})}}}}),[e])}},40614:function(e){for(var o=[],t=0;t<256;++t)o[t]=(t+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,i=o;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}},10537:function(e){var o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(o){var t=new Uint8Array(16);e.exports=function(){return o(t),t}}else{var n=new Array(16);e.exports=function(){for(var e,o=0;o<16;o++)0==(3&o)&&(e=4294967296*Math.random()),n[o]=e>>>((3&o)<<3)&255;return n}}},85234:function(e,o,t){var n=t(10537),i=t(40614);e.exports=function(e,o,t){var l=o&&t||0;"string"==typeof e&&(o="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,o)for(var r=0;r<16;++r)o[l+r]=a[r];return o||i(a)}}}]);