1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8171,308,7e3],{50308:function(e){e.exports=function(){}},77e3:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var o=n(67294),r=n(50308),i=n.n(r),a=n(11163),l=n(81203),s=n(2612),c=n(4592),u=n(52015),d=n(38182),p=u.ZP.div.withConfig({displayName:"style__Wrapper",componentId:"sc-16bjiiu-0"})([".otp-form{max-width:22rem;}.otp-input{appearance:none;-webkit-appearance:none;-moz-appearance:textfield;font-size:20px;& + .otp-input{margin-left:20px;}}.ios-otp{width:71%;left:45px;height:4rem;top:100px;background:transparent;color:#ffffff;caret-color:#ffffff;}.otp-error{background-color:#fdf3f4;padding:"," ",';border-radius:0.4rem;&.green-bg{background-color:rgba(96,195,173,0.1);}.text1{color:#e36974;font-family:"Font-Medium";font-size:1.2rem;}.text2{color:#292d32;font-size:1.2rem;}}.otp-box-wrapper{.error-txt{border-color:#e36974;color:#e36974;}}@media (max-width:720px){text-align:center;flex-flow:column-reverse;align-items:center;text-align:center;.otp-form{max-width:100%;}.otp-box-wrapper{margin-left:auto;margin-right:auto;}.btn-wrapper{display:flex;justify-content:center;}.otp-text{display:flex;justify-content:center;align-items:center;flex-direction:column;}}.otp-loader-wrapper{display:flex;justify-content:center;align-items:flex-start;margin:10px 0px;.otp-loader{margin:0px 6px;border-width:2px;border-style:solid;border-color:rgb(96 195 173) rgb(96 195 173) rgb(243,243,243) rgb(243,243,243);;border-image:initial;border-radius:50%;min-width:15px;height:15px;animation:1s linear 0s infinite normal none running spin;}.otp-text{font-size:12px;line-height:14px;}}@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}'],(0,d.em)(6),(0,d.em)(10)),f=n(30621),v=n(54311),m=n(91184),h=n(37842),g=n(85893);function y(e){var t=e.otp,n=void 0===t?["","","",""]:t,r=e.handleOtpChange,u=void 0===r?function(){}:r,d=e.verifyOtp,y=void 0===d?function(){}:d,x=e.mobileNumber,b=void 0===x?"":x,j=e.resendOtp,w=void 0===j?function(){}:j,O=e.userDetails,_=void 0===O?{}:O,N=e.otpErrorMsg,k=void 0===N?"":N,S=e.showOtpError,E=void 0!==S&&S,P=e.isOtpSubmit,D=e.handleChangeMobileNumber,M=void 0===D?function(){}:D,C=e.setShowOtpError,A=void 0===C?function(){}:C,L=e.setOtpNumber,T=void 0===L?function(){}:L,z=e.residenceDetails,I=void 0===z?{}:z,B=e.formType,R=void 0===B?"":B,Z=(0,m.z4)(),W=(0,o.useState)(!1),q=W[0],G=W[1],H=(0,o.useState)(!1),F=H[0],V=H[1],U=(0,a.useRouter)(),Y=U.pathname.includes("/apartments")||U.pathname.includes("/apartment-stays")||U.pathname.includes("/flats"),J=(0,o.useRef)(!1),X=(0,o.useRef)();(0,o.useEffect)((function(){J.current&&(K(null,b,_),J.current=!1)}),[J.current]);var $=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n&&e&&t){var o,r=null===t||void 0===t||null===(o=t.toString())||void 0===o?void 0:o.split("");T(r),J.current=e}};(0,o.useEffect)((function(){if(Z&&!F){var e=function(){var e;null===(e=X.current)||void 0===e||e.focus()};return window.addEventListener("click",e,{once:!0}),function(){return window.removeEventListener("click",e)}}}),[Z,F]),(0,o.useEffect)((function(){var e,t=function(e){var t=e.target.value.replace(/\D/g,"");t.length>=4&&(T(t.substring(0,4).split("")),J.current=!0)},n=setTimeout((function(){var n,o;(e=document.getElementById("ios-otp-autofill"))&&(null===(n=e)||void 0===n||n.addEventListener("keyup",t),null===(o=e)||void 0===o||o.addEventListener("input",t))}),500);return function(){var o,r;null===(o=e)||void 0===o||o.removeEventListener("keyup",t),null===(r=e)||void 0===r||r.removeEventListener("input",t),clearTimeout(n)}}),[]),(0,o.useEffect)((function(){Z&&(0,m.O$)($)}),[]);(0,o.useEffect)((function(){(0,s.Xv)(U.pathname)}),[]);var K=function(e,t,n){var o,r,i,a;(0,f.VI)({formType:R,profession:null===n||void 0===n?void 0:n.profession,selectedCity:(null===n||void 0===n||null===(o=n.city)||void 0===o?void 0:o.value)||"",selectedLocality:(null===n||void 0===n||null===(r=n.locality)||void 0===r?void 0:r.value)||"",preferredTimeSlot:(null===n||void 0===n?void 0:n.timeSlot)||"",couponCode:"NA",selectedDate:null!==n&&void 0!==n&&n.selectedDate?new Date(null===n||void 0===n?void 0:n.selectedDate).toDateString():"",stayDuration:(null===n||void 0===n||null===(i=n.timeDuration)||void 0===i?void 0:i.value)||(null===n||void 0===n||null===(a=n.duration)||void 0===a?void 0:a.value)||"",propertyName:(null===I||void 0===I?void 0:I.name)||"",propertyCity:(null===I||void 0===I?void 0:I.cityName)||"",propertyLocality:(null===I||void 0===I?void 0:I.micromarketName)||"",propertyType:Y?null===v.e_||void 0===v.e_?void 0:v.e_.MANAGED_APARTMENTS:U.query.profession?"co-living":null===v.e_||void 0===v.e_?void 0:v.e_.MODERN_STUDENT_HOUSING,route:null===U||void 0===U?void 0:U.pathname}
1),y(e,t,n)};return(0,g.jsxs)(p,{className:"flex",children:[(0,g.jsxs)("div",{className:"flex-1 relative",children:[(0,g.jsx)("h3",{className:"text-16 text-black font-medium mb-[8px]",children:"We need to confirm your mobile number"}),(0,g.jsxs)("div",{className:"otp-text text-14 text-black",children:["Please enter the 4-digit code sent to you at",(0,g.jsx)("div",{className:"mobile-number",children:b&&(0,g.jsxs)("div",{className:"flex",children:["+91 ".concat(b),(0,g.jsxs)("span",{className:"flex ".concat(P?"disabled:bg-lightGrey":"text-keppel hover:underline cursor-pointer"," ml-2 items-center font-medium "),onClick:P?i():function(){return M()},children:[(0,g.jsx)(l.Z,{fill:P?"#D3D3D3":"#60C3AD"})," ",(0,g.jsx)("span",{className:"ml-1",children:"edit"})," "]})]})})]}),Z&&!F&&(0,g.jsx)("input",{ref:X,type:"text",id:"ios-otp-autofill",inputMode:"numeric",autoComplete:"one-time-code",className:"absolute opacity-0 ios-otp",onChange:function(e){var t=e.target.value.replace(/\D/g,"");if(t.length>=4){var n;T(t.slice(0,4).split("")),V(!0),null===(n=X.current)||void 0===n||n.blur(),J.current=!0}else{var o,r=null===(o=document)||void 0===o?void 0:o.querySelector("#otp_0");r.focus(),T([t,"","",""]);var i=new KeyboardEvent("keyup",{key:"ArrowLeft",code:"ArrowLeft",bubbles:!0,cancelable:!0});null===r||void 0===r||r.dispatchEvent(i)}}}),(0,g.jsxs)("form",{className:"relative otp-form",onSubmit:function(e){return K(e,b,_)},children:[(0,g.jsx)("div",{className:"flex max-w-[220px] mt-[24px] pb-3 otp-box-wrapper",children:n.map((function(e,t){return(0,g.jsx)("input",{id:"otp_".concat(t),disabled:P,pattern:"[0-9]",type:"text",inputMode:"numeric",className:"otp-input ".concat("inputElement-".concat(t)," ",E?"error-txt":""," w-16 flex-1 h-16 text-center border border-brightGrey border-solid relative rounded-[8px] outline-none"),value:e,onChange:function(e){return u(e,t)},tabIndex:t+1,maxLength:1,onKeyUp:function(e){return function(e){if(A(!1),G(!1),"Delete"===e.key||"Backspace"===e.key||"ArrowLeft"===e.key){var t=e.target.tabIndex-2;t>-1&&e.target.form.elements[t].focus()}else if(""!==e.target.value){var n=e.target.tabIndex;n<4&&e.target.form.elements[n].focus()}}(e)},autoFocus:0===t&&!Z},t)}))}),E&&""!==k&&(0,g.jsxs)("div",{className:"otp-error",children:[(0,g.jsx)("span",{className:"text1",children:"Error ! "}),(0,g.jsx)("span",{className:"text2",children:k})]}),E&&""===k&&(0,g.jsxs)("div",{className:"otp-error",children:[(0,g.jsx)("span",{className:"text1",children:"Error ! "}),(0,g.jsx)("span",{className:"text2",children:"Incorrect OTP entered"})]}),q&&(0,g.jsx)("div",{className:"otp-error green-bg",children:(0,g.jsx)("span",{className:"text2",children:"OTP sent successfully"})}),Z&&(0,g.jsxs)("div",{className:"otp-loader-wrapper",children:[(0,g.jsx)("div",{className:"otp-loader"}),(0,g.jsxs)("div",{className:"otp-text",children:[(0,g.jsx)("div",{children:h.OA}),(0,g.jsx)("div",{children:h.L1})]})]}),(0,g.jsxs)("div",{className:"text-12 mt-3",onClick:P?i():function(){var e,t,n,o,r;G(!0),A(!1),T(["","","",""]),document.querySelector(".inputElement-0").focus(),(0,f.u)({formType:R,profession:null===_||void 0===_?void 0:_.profession,selectedCity:(null===_||void 0===_||null===(e=_.city)||void 0===e?void 0:e.value)||"",selectedLocality:(null===_||void 0===_||null===(t=_.locality)||void 0===t?void 0:t.value)||"",preferredTimeSlot:(null===_||void 0===_?void 0:_.timeSlot)||"",couponCode:"NA",selectedDate:null!==_&&void 0!==_&&_.selectedDate?new Date(null===_||void 0===_?void 0:_.selectedDate).toDateString():"",stayDuration:(null===_||void 0===_||null===(n=_.timeDuration)||void 0===n?void 0:n.value)||(null===_||void 0===_||null===(o=_.duration)||void 0===o?void 0:o.value)||"",propertyName:(null===I||void 0===I?void 0:I.name)||"",propertyCity:(null===U||void 0===U||null===(r=U.query)||void 0===r?void 0:r.city)||"",propertyLocality:(null===U||void 0===U?void 0:U.query["mm-seo-slug"])||(null===I||void 0===I?void 0:I.micromarketName)||"",propertyType:Y?null===v.e_||void 0===v.e_?void 0:v.e_.MANAGED_APARTMENTS:U.query.profession?"co-living":null===v.e_||void 0===v.e_?void 0:v.e_.MODERN_STUDENT_HOUSING,route:null===U||void 0===U?void 0:U.pathname}),w(b)},children:["Didn\u2019t receive the code ?"," ",(0,g.jsx)("span",{className:"font-medium ".concat(P?"disabled:bg-lightGrey":"text-keppel hover:underline cursor-pointer"),children:"Resend OTP"})]}),(0,g.jsx)("div",{className:"btn-wrapper",children:(0,g.jsx)(c.Button,{disabled:P,type:"submit",buttonStyle:"solid",className:"mt-[60px]",children:P?"Verifying":"Proceed"})})]})]}),(0,g.jsx)("div",{className:"unlock-img flex items-center",children:(0,g.jsx)("img",{className:"max-w-[152px]",src:"https://asset-cdn.stanzaliving.com/stanza-living/image/upload/f_auto,q_auto/v1654161745/Website%20v5/Common/modal-otp-screen.png",alt:"modal-otp-screen"})})]})}},20759:function(e,t,n){"use strict";var o=n(59499),r=n(92777),i=n(82262),a=n(45959),l=n(63553),s=n(37247),c=(n(96486),n(67294)),u=n(2260),d=n(85893);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?p(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=(0,s.Z)(e);if(t){var r=(0,s.Z)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return(0,l.Z)(this,n)}}var m=null===u.S||void 0===u.S?void 0:u.S.whiteLogo,h=(null===u.S||void 0===u.S?void 0:u.S.blackLogo)||"https://asset-cdn.stanzaliving.com/stanza-living/image/upload/w_220,f_auto,q_50/v1583405334/NewWebsite/Stanza_Living_Logo_3x.png";t.Z=function(e){return function(t){(0,a.Z)(o,t);var n=v(o);function o(){return(0,r.Z)(this,o),n.apply(this,arguments)}return(0,i.Z)(o,[{key:"render",value:function(){return(0,d.jsx)(e,f(f({},this.props),{},{whiteLogo:m,blackLogo:h}))}}]),o}(c.Component)}},45180:function(e,t,n){"use strict";n(67294);var o=n(20759),r=n(23119),i=n(30621),a=n(11163),l=n(2612),s=n(85893);t.Z=(0,o.Z)((function(e){e.pathname,e.whiteLogo;var t=e.blackLogo,n=void 0===t?"":t,o=(0,a.useRouter)(),c=function(e){(0,i.Qk)(null===o||void 0===o?void 0:o.pathname),(0,l.u7)(null===o||void 0===o?void 0:o.pathname)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.WL,{className:"mobile-header mobile-header-sticky global-container hide-desktop",children:(0,s.jsx)("div",{className:"m-auto",children:(0,s.jsx)("img",{className:"stanza-logo",alt:"stanza living logo",src:n,onClick:c})})}),(0,s.jsx)(r.WL,{className:"hide-mobile global-container",children:(0,s.jsx)("div",{className:"m-auto w-[110px]",children:(0,s.jsx)("img",{className:"stanza-logo",alt:"stanza living logo",src:n,onClick:c})})})]})}))},52792:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});n(67294);var o=n(52015).ZP.div.withConfig({displayName:"styles__Container",componentId:"sc-ru8s9s-0"})(["position:sticky;top:0px;left:0px;background-color:rgba(0,0,0,0.5);z-index:9999999;height:100vh;width:100vw;display:flex;justify-content:center;align-items:center;animation:container 3s;position:fixed;svg path{stroke-dasharray:400;stroke-dashoffset:400;animation:animate-logo 2s forwards infinite;}svg g{fill-opacity:0;}@keyframes animate-logo{25%{stroke-dashoffset:0;filter:none;fill-opacity:0;}50%{fill-opacity:1;}75%{fill-opacity:0;stroke-dashoffset:0;filter:none;}100%{stroke-dashoffset:400;filter:none;fill-opacity:0;}}"]),r=n(85893);var i=function(e){return(0,r.jsx)(o,{show:e,children:(0,r.jsx)("svg",{viewBox:"0 0 200 250",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"250",id:"svgAnimation",children:(0,r.jsxs)("g",{strokeWidth:"2",stroke:"#5EBBA0",fill:"#5EBBA0",fillRule:"evenodd",children:[(0,r.jsx)("path",{stroke:"#5EBBA0",fill:"#5EBBA0",className:"svg-elem-1",d:"M 32.076871,130.63673 V 61.633967 L 95.124208,28.20443 143.2983,54.867584 81.779194,87.936371 v 70.189079 z",id:"path218"}),(0,r.jsx)("path",{stroke:"#5EBBA0",fill:"#5EBBA0",className:"svg-elem-1 svg-elem-2",d:"m 95.857972,98.28341 v 70.18908 l -61.519099,33.06878 48.174087,26.66316 63.04734,-33.42954 v -69.00276 z",id:"path218"})]})})})}},17285:function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;var r=((o=n(67294))&&o.__esModule?o:{default:o}).default.createContext({});t.AmpStateContext=r},49546:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=a,t.useAmp=function(){return a(r.default.useContext(i.AmpStateContext))};var o,r=(o=n(67294))&&o.__esModule?o:{default:o},i=n(17285);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,o=e.hybrid,r=void 0!==o&&o,i=e.hasQuery,a=void 0!==i&&i;return n||r&&a}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},16505:function(e,t,n){"use strict";var o=n(930);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}
1Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=d,t.default=void 0;var i,a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(67294)),l=(i=n(70148))&&i.__esModule?i:{default:i},s=n(17285),c=n(60523),u=n(49546);n(67206);function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function p(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var f=["name","httpEquiv","charSet","itemProp"];function v(e,t){return e.reduce((function(e,t){var n=a.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(p,[]).reverse().concat(d(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,o={};return function(r){var i=!0,a=!1;if(r.key&&"number"!==typeof r.key&&r.key.indexOf("$")>0){a=!0;var l=r.key.slice(r.key.indexOf("$")+1);e.has(l)?i=!1:e.add(l)}switch(r.type){case"title":case"base":t.has(r.type)?i=!1:t.add(r.type);break;case"meta":for(var s=0,c=f.length;s<c;s++){var u=f[s];if(r.props.hasOwnProperty(u))if("charSet"===u)n.has(u)?i=!1:n.add(u);else{var d=r.props[u],p=o[u]||new Set;"name"===u&&a||!p.has(d)?(p.add(d),o[u]=p):i=!1}}}return i}}()).reverse().map((function(e,n){var i=e.key||n;if(!t.inAmpMode&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((function(t){return e.props.href.startsWith(t)}))){var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.props||{});return l["data-href"]=l.href,l.href=void 0,l["data-optimized-fonts"]=!0,a.default.cloneElement(e,l)}return a.default.cloneElement(e,{key:i})}))}var m=function(e){var t=e.children,n=a.useContext(s.AmpStateContext),o=a.useContext(c.HeadManagerContext);return a.default.createElement(l.default,{reduceComponentsToState:v,headManager:o,inAmpMode:u.isInAmpMode(n)},t)};t.default=m,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},70148:function(e,t,n){"use strict";var o=n(7980),r=n(33227),i=n(88361),a=(n(92191),n(85971)),l=n(52715),s=n(91193);function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=s(e);if(t){var r=s(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return l(this,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(67294));var d=function(e){a(n,e);var t=c(n);function n(e){var i;return r(this,n),(i=t.call(this,e)).emitChange=function(){i._hasHeadManager&&i.props.headManager.updateHead(i.props.reduceComponentsToState(o(i.props.headManager.mountedInstances),i.props))},i._hasHeadManager=i.props.headManager&&i.props.headManager.mountedInstances,i}return i(n,[{key:"componentDidMount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.add(this),this.emitChange()}},{key:"componentDidUpdate",value:function(){this.emitChange()}},{key:"componentWillUnmount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.delete(this),this.emitChange()}},{key:"render",value:function(){return null}}]),n}(u.Component);t.default=d},83610:function(e,t,n){"use strict";n.r(t);
1var o=n(27812),r=n(67294),i=n(52015),a=n(91184),l=n(77e3),s=n(45180),c=n(4592),u=n(36532),d=n(52792),p=n(11163),f=n(30381),v=n.n(f),m=n(2612),h=n(73893),g=n(30621),y=n(85893),x=i.ZP.div.withConfig({displayName:"exit-process__Wrapper",componentId:"sc-mdk64n-0"})(["@media(max-width:768px){margin-top:30px;.indian-flag-icon{font-size:14px !important;}.form-text.has-flag{padding-left:8rem;height:45px;font-size:14px !important;}}margin-top:20px;.verify-btn{margin:3rem 0;}"]);t.default=function(e){var t=(0,r.useState)(""),n=t[0],i=t[1],f=(0,r.useState)(""),b=f[0],j=f[1],w=(0,r.useState)(!1),O=w[0],_=w[1],N=(0,r.useState)(!1),k=N[0],S=N[1],E=(0,r.useState)(["","","",""]),P=E[0],D=E[1],M=(0,r.useState)(""),C=M[0],A=M[1],L=(0,r.useState)(!1),T=L[0],z=L[1],I=(0,r.useState)(!1),B=I[0],R=I[1],Z=(0,p.useRouter)();(0,r.useEffect)((function(){(0,m.JG)(Z.pathname,"Exit Process Page Viewed"),(0,g.hl)(Z.pathname),(0,h.W)(Z.pathname,a.A5.PAGE_VIEWED)}),[]);var W=function(e){(0,a.er)(e)&&(null===e||void 0===e?void 0:e.length)<10?j("Please enter valid phone number"):(_(!0),(0,u.b9)(e).then((function(e){var t,n;null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.status?(k||S(!0),D(["","","",""]),A("")):A(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.message);_(!1)})).catch((function(e){A("Please try again"),_(!1)})))};return(0,y.jsxs)(y.Fragment,{children:[O&&(0,y.jsx)(d.Z,{}),(0,y.jsx)(s.Z,{}),(0,y.jsx)(x,{className:"global-container",children:(0,y.jsxs)("div",{className:"w-[100%] md:w-[50%] p-5",children:[(0,y.jsx)("h1",{className:"text-30 text-jetBlack",children:"EXIT PROCESS"}),(0,y.jsx)("p",{className:"text-16 text-jetBlack my-[2rem]",children:"Please enter your registered mobile number with Stanza Living"}),(0,y.jsx)(c.Input,{className:"mb-[3rem]",type:"tel",id:"mobile",name:"mobile",placeholder:"Mobile Number",value:n,maxLength:"10",minLength:"9",pattern:"[0-9]*",countryFlag:!0,onChange:function(e){return function(e){var t=e.target.value;(0,a.er)(t)&&10==t.length?j("Please enter valid phone number"):j(""),Number.isNaN(Number(t))||i(t)}(e)}}),b&&(0,y.jsx)("p",{className:"text-error text-12",children:b}),(0,y.jsx)(c.Button,{buttonStyle:"solid",onClick:function(){W(n),(0,m.JG)(Z.pathname,"Mobile Number Submit",{mobile:n})},className:"verify-btn",children:"Verify"})]})}),k&&(0,y.jsx)(c.Modal,{modalHandler:function(){return S(!1)},maxWidth:"570px",modalTitle:"OTP Verification",borderBottomInTitle:!0,className:"otp-modal-wrapper",containerId:C?"Incorrect otp":"OTP Verification",children:(0,y.jsx)(l.default,{otp:P,handleOtpChange:function(e,t){var n=(0,o.Z)(P);e.target.value.length>1||(n[t]=e.target.value,D(n))},verifyOtp:function(e){null===e||void 0===e||e.preventDefault(),_(!0),(0,u.MY)(n,P.join("")).then((function(e){var t,o;null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.status?((0,m.JG)(Z.pathname,"OTP Submitted"),fetch("https://venta.stanzaliving.com/bookingService-v2/internal/booking-details/".concat(n)).then((function(e){return e.json()})).then((function(e){null!==e&&void 0!==e&&e.status?(e.data.startDate=v()(new Date(e.data.contractStartDate)).format("DD MMM 'YY"),e.data.endDate=v()(new Date(e.data.contractEndDate)).format("DD MMM 'YY"),localStorage.setItem("exitData",JSON.stringify(e.data)),Z.push("/exit-process/collect-details"),R(!1)):R(!0)})).catch((function(e){R(!0)})),S(!1)):A(null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.message);_(!1)})).catch((function(e){(0,m.JG)(Z.pathname,"OTP Failed"),A("Please try again."),_(!1)}))},mobileNumber:n,resendOtp:W,otpErrorMsg:C,showOtpError:!!C,handleChangeMobileNumber:function(){S(!1),D(["","","",""]);var e=document.getElementById("mobile");e&&e.focus()}})}),T&&(0,y.jsx)(c.Modal,{modalHandler:function(){return z(!1)},children:(0,y.jsx)(c.ThankYou,{thanksMessage:"Thank you for you account details. we'll initiate the refund ASAP",showMoreInfo:!1,showButton:!1,containerId:"exit-process",heading:"One step closer"})}),B&&(0,y.jsx)(c.Modal,{modalHandler:function(){return R(!1)},children:(0,y.jsx)(c.ThankYou,{thanksMessage:"We couldn't find any booking with your number",showMoreInfo:!1,showButton:!1,containerId:"sorry-modal-exit-process",heading:"Sorry!!",icon:"https://asset-cdn.stanzaliving.com/stanza-living/image/upload/f_auto,q_auto/v1662105139/Website%20v5/Icons/sorry-sad-face.png"})})]})}},2260:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var o={whiteLogo:"https://asset-cdn.stanzaliving.com/stanza-living/image/upload/w_220,f_auto,q_50/v1668526144/Website%20v5/Logo/Stanza_Living_Digital_Logo_white_new.png",blackLogo:"https://asset-cdn.stanzaliving.com/stanza-living/image/upload/w_220,f_auto,q_50/v1583405334/NewWebsite/Stanza_Living_Logo_3x.png"}},14277:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/exit-process",function(){return n(83610)}])}},function(e){e.O(0,[1609,8217,2565,621,4592,9774,2888,179],(function(){return t=14277,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.