1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[634],{223:()=>{},890:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var s=t(2969),r=t(3857),a=t(3081),i=t.n(a),o=t(1777),l=t(1992);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,s)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach(function(n){(0,s.A)(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}var d={refetchOnWindowFocus:!1,retry:!1,keepPreviousData:!0,cacheTime:6e5,staleTime:12e4};let m=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=(0,o.d4)(function(e){return e.AUTH}),c=(0,o.d4)(function(e){return e.CLUBMSELECT});return(0,l.useQuery)(e,(0,r.A)(i().mark(function e(){var s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return null===(s=a.user_access_token)&&(s=a.static_token),null===s&&(s=a.prospect_static_token),null===s&&(s=null==c?void 0:c.clubm_token),e.abrupt("return",n(s,t));case 5:case"end":return e.stop()}},e)})),u(u({},d),s))}},2866:(e,n,t)=>{"use strict";t(4525)},3274:()=>{},3706:()=>{},3736:()=>{},4588:(e,n,t)=>{"use strict";t.d(n,{A:()=>O});var s=t(890),r=t(6047);t(2866);var a=t(2933),i=(0,a.I)("div")({name:"HeadStyle",class:"hkppeyf"}),o=(0,a.I)("div")({name:"LeftSideStyle",class:"ltcnj9d"}),l=(0,a.I)("div")({name:"RightSideStyle",class:"r15r1wbc"});(0,a.I)("div")({name:"PopupOverlay",class:"p1k9plp7"}),(0,a.I)("div")({name:"OnboardingHeaderStyle",class:"oeda2iz"}),(0,a.I)("div")({name:"KYCHeaderStyle",class:"kzcaudr"}),(0,a.I)("div")({name:"PopupCard",class:"p6gwiqz"});var c=(0,a.I)("div")({name:"FixPartStyle",class:"f1ja9u3n"});t(5296);var u=t(9099),d=t(4232),m=t(236),h=t(7876);let p=function(){return(0,h.jsxs)("div",{className:"dropdown-menu skeleton",children:[(0,h.jsxs)("div",{className:"dropdown-section",children:[(0,h.jsx)("div",{className:"skeleton-title"}),(0,m.A)([,,,,]).map(function(e,n){return(0,h.jsxs)("div",{className:"dropdown-item skeleton",children:[(0,h.jsx)("div",{className:"skeleton-icon"}),(0,h.jsx)("div",{className:"skeleton-text"}),(0,h.jsx)("div",{className:"skeleton-arrow"})]},n)})]}),(0,h.jsxs)("div",{className:"dropdown-section",children:[(0,h.jsx)("div",{className:"skeleton-title"}),(0,m.A)([,,]).map(function(e,n){return(0,h.jsxs)("div",{className:"dropdown-item skeleton",children:[(0,h.jsx)("div",{className:"skeleton-icon"}),(0,h.jsx)("div",{className:"skeleton-text"}),(0,h.jsx)("div",{className:"skeleton-arrow"})]},n)})]})]})},v=function(){return(0,h.jsxs)(o,{children:[(0,h.jsxs)("div",{className:"logo skeleton",children:[(0,h.jsx)("div",{className:"skeleton-logo-img"}),(0,h.jsx)("div",{className:"skeleton-logo-text"}),(0,h.jsx)("div",{className:"skeleton-logo-subtext"})]}),(0,h.jsxs)("nav",{className:"nav-items",children:[Array.from({length:3}).map(function(e,n){return(0,h.jsxs)("div",{className:"nav-item skeleton",children:[(0,h.jsx)("div",{className:"skeleton-icon"}),(0,h.jsx)("div",{className:"skeleton-text"})]},n)}),(0,h.jsxs)("div",{className:"nav-item dropdown skeleton",children:[(0,h.jsx)("div",{className:"skeleton-text"}),(0,h.jsx)("div",{className:"skeleton-arrow"})]})]})]})};var f=t(5794),x=t(453);function j(){var e=(0,d.useState)(!1),n=e[0],t=e[1],r=(0,d.useState)(""),a=r[0],i=r[1],o=(0,d.useState)(""),l=o[0],c=o[1],u=(0,d.useState)(null),m=u[0],p=u[1],v=(0,d.useRef)(null),j="/keystone",b=(0,s.A)(["getProspectSearchResult",l],x.kG,{searchQuery:l},{enabled:!!l,select:function(e){return null==e?void 0:e.data}}),g=b.data,y=b.isFetching;return(0,d.useEffect)(function(){g&&p(g)},[g]),(0,d.useEffect)(function(){var e=[document.querySelector("nav.nav-items"),document.querySelector(".member-login-box"),document.querySelector(".search-box")];return e.forEach(function(e){return null==e?void 0:e.classList.toggle("search-active",n)}),function(){return e.forEach(function(e){return null==e?void 0:e.classList.remove("search-active")})}},[n]),(0,h.jsxs)("div",{className:"nav-item search",children:[(0,h.jsx)("div",{className:"search-box",onClick:function(){return t(!0)},children:(0,h.jsx)("img",{src:"".concat(j,"/images/header/search-black.png"),alt:"search"})}),n&&(0,h.jsx)("div",{className:"search_box_open ".concat(n?"active":""),children:(0,h.jsxs)("form",{className:"search_form",onSubmit:function(e){return e.preventDefault()},children:[(0,h.jsx)("div",{className:"search_icon_sec",children:(0,h.jsx)("input",{type:"submit",className:"search_icon"})}),(0,h.jsxs)("div",{className:"searchbox_main",children:[(0,h.jsx)("input",{type:"search",className:"searchbox main_search_head",autoF
1ocus:n,value:a,onChange:function(e){var n=e.target.value;i(n),v.current&&clearTimeout(v.current),v.current=setTimeout(function(){n.length>=3&&c(n)},500)},placeholder:"Searchâ¦"}),y&&(0,h.jsx)("div",{className:"loading",children:"Searchingâ¦"}),m&&(0,h.jsxs)("ul",{className:"search-dropdown",children:[Object.entries(m).map(function(e){var n=(0,f.A)(e,2),t=n[0],s=n[1];return Array.isArray(s)&&0!==s.length?(0,h.jsxs)("li",{className:"search-category",children:[(0,h.jsx)("strong",{children:t.toUpperCase()}),(0,h.jsx)("ul",{children:s.map(function(e){var n=e._source;return(0,h.jsx)("li",{className:"search-item",onClick:function(){return window.location.href=n.url},children:(0,h.jsx)("span",{className:"search-title",children:n.title})},n.id)})})]},t):null}),(0,h.jsxs)("li",{className:"search-all",onClick:function(){return window.location.href=m.detail_redirection_link},children:["Show all results for ",(0,h.jsxs)("b",{children:["'",l,"'..."]})]})]})]}),(0,h.jsx)("div",{className:"search_cross",onClick:function(){t(!1),i(""),c(""),p(null)},children:(0,h.jsx)("img",{src:"".concat(j,"/images/Keystone/close.svg"),alt:"cancel"})})]})})]})}var b="/keystone";let g=function(){var e=(0,u.useRouter)(),n=(0,d.useState)(!1),t=n[0],a=n[1],i=function(n){(null==n?void 0:n.url_type)=="internal"?e.push(b+(null==n?void 0:n.menu_url)):window.location.href=null==n?void 0:n.menu_url},l=function(n){var t=null==e?void 0:e.pathname;return t==="".concat(b,"/plans")&&"Plans"===n.menu_title||t==="".concat(b,"/compare")&&"Compare"===n.menu_title||t==="".concat(b,"/help")&&"Keystone"===n.menu_title||(null==e?void 0:e.asPath)==="".concat(b,"?key=quiz")&&"Keystone"===n.menu_title?"active":""},c=(0,s.A)("keyStoneMenu",r.yy,{portalCode:"Keystone-prospect",pageName:"Keystone",menuType:"cr-top-menu"},{staleTime:12e5,cacheTime:18e5,select:function(e){return null==e?void 0:e.data}}),m=c.data,f=c.isFetching,x=(0,s.A)("keyStoneSubMenu",r.yy,{portalCode:"Keystone-prospect",pageName:"Keystone",menuType:"more-menu"},{staleTime:12e5,cacheTime:18e5,select:function(e){return null==e?void 0:e.data},enabled:t}),g=x.data;return(x.isFetching,f)?(0,h.jsx)(v,{}):(0,h.jsxs)(o,{children:[(0,h.jsx)("div",{className:"logo",onClick:function(){return e.push("https://clubmahindra.com/")},children:(0,h.jsx)("img",{src:"".concat(b,"/images/header/Frame.svg"),alt:"ClubMahindra"})}),(0,h.jsxs)("nav",{className:"nav-items",children:[null==m?void 0:m.map(function(n){return"KEYSTONE"===n.menu_title?(0,h.jsxs)("div",{className:"nav-item dropdown ".concat(l(n)," ").concat(t?"dropdown-active":""),onMouseEnter:function(){return a(!0)},onMouseLeave:function(){return a(!1)},children:[(0,h.jsxs)("div",{className:"flex gap-2 md:flex-row flex-row-reverse align-items-center",style:{alignItems:"center"},onMouseEnter:function(){return a(!0)},onMouseLeave:function(){return a(!1)},onClick:function(){return e.push("".concat(b)||"/")},children:[(0,h.jsx)("img",{className:"k-logo",src:"".concat(b,"/images/header/klogo.gif"),alt:"Keystone"}),(0,h.jsx)("span",{className:"flex",children:n.menu_title})]}),(0,h.jsx)(p,{}),(0,h.jsx)("div",{className:"dropdown-menu",children:["EXPLORE","SUPPORT"].map(function(n){var t=null==g?void 0:g.filter(function(e){return e.menu_desc.startsWith(n)});return(0,h.jsxs)("div",{className:"dropdown-section",children:[(0,h.jsx)("h4",{children:n}),null==t?void 0:t.map(function(n){return(0,h.jsxs)("div",{className:"dropdown-item",onClick:function(){"Buy New Plan"===n.menu_title?e.push("".concat(b,"/plans")):i(n)},children:[(0,h.jsx)("img",{src:null==n?void 0:n.image,alt:"",className:"dropdown-icon"}),(0,h.jsx)("span",{children:n.menu_title}),(0,h.jsx)("img",{src:"".concat(b,"/images/Keystone/right_arrow.svg"),alt:"",className:"dropdown-arrow"})]},n.menu_id)})]},n)})})]},n.menu_id):(0,h.jsxs)("div",{className:"nav-item ".concat(l(n)),onClick:function(){return i(n)},"data-menu":null==n?void 0:n.menu_title,children:[(0,h.jsx)("img",{src:null==n?void 0:n.image,className:"star"}),(0,h.jsx)("span",{children:null==n?void 0:n.menu_title})]},null==n?void 0:n.menu_id)}),(0,h.jsx)("div",{className:"nav-item ",onClick:function(){return window.open("https://holidays.clubmahindra.com/","_blank")},children:(0,h.jsx)("span",{className:"memberlogin",children:"Member Login"})})]}),(0,h.jsx)(j,{})]})};var y=t(6876);let w=function(e){e.loadingMenu,e.membershipData,(0,d.useEffect)(function(){localStorage.getItem("scrollToKeystone")&&setTimeout(function(){var e=document.getElementById("keystone-form");if(e){var n=e.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:n-35,behavior:"smooth"})}localStorage.removeItem("scrollToKeystone")},1e3)},[]);var n=(0,d.useState)(!1),t=n[0],s=n[1];return(0,h.jsxs)(l,{children:[t&&(0,h.jsx)(y.A,{onClose:function(){return s(!1)}}),(0,h.jsx)("div",{className:"user-info",children:(0,h.jsxs)("button",{className:"join_the_club_btn cta",onClick:function(){return s(!0)},children:["Join ",(0,h.jsx)("b",{children:"KEYSTONE"})]})})]})};(0,a.I)("div")({name:"HamburgerMenuStyle",class:"h9vzuhw"}),t(3706);var C="/keystone";let N=function(e){e.loadingMenu,e.membershipData;var n=(0,u.useRouter)(),t=(0,d.useState)(!1),s=t[0],r=t[1];return(0,d.useEffect)(function(){var e=document.querySelector(".nav-items");return e&&(s?e.classList.add("open"):e.classList.remove("open")),function(){e&&e.classList.remove("open")}},[s]),(0,h.jsx)(c,{className:"mobfixFooter",children:(0,h.jsx)("div",{className:"mobfixFooter",children:(0,h.jsx)("div",{className:"nav",children:(0,h.jsxs)("ul",{children:[(0,h.jsxs)("li",{onClick:function(){return n.push("https://www.clubmahindra.com/")},style:{cursor:"pointer"},children:[(0,h.jsx)("span",{className:"icon-mob",children:(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,h.jsx)("path",{d:"M1.76563 5.96197C3.44258 1.97877 8.03398 0.108459 12.0172 1.78893C16.0004 3.4694 17.8672 8.05729 16.1902 12.0405C14.5133 16.0237 9.92188 17.8905 5.93867 16.21C3.03828 14.9901 1.15039 12.146 1.15039 8.99947C1.15039 7.95533 1.35781 6.92174 1.76563 5.96197ZM8.95508 15.7495C12.6816 15.7495 15.7051 12.726 15.7051 8.99947C15.7051 5.27291 12.6816 2.24947 8.95508 2.24947C5.22852 2.24947 2.20508 5.27291 2.20508 8.99947C2.20508 12.726 5.22852 15.7495 8.95508 15.7495ZM7.9707 4.94596L3.91719 8.99947L7.9707 13.053L8.71602 12.3077L5.93164 9.52682H13.2512V8.47213H5.93164L8.7125 5.69127L7.9707 4.94596Z",fill:"#71787E"})})}),"Home"]}),(0,h.jsxs)("li",{onClick:function(){return n.push("".concat(C,"/plans"))},style:{cursor:"pointer"},children:[(0,h.jsx)("span",{className:"icon-mob",children:(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,h.jsx)("path",{d:"M17.02 6.99989C16.8828 6.5651 16.5063 6.24841 16.0535 6.18494L11.98 5.56487L10.2012 1.73228C10.0182 1.28936 9.58533 1 9.10433 1C8.62333 1 8.19049 1.28936 8.00743 1.73228L6.22864 5.56487L2.10775 6.18494C1.65935 6.25654 1.28803 6.57027 1.14351 6.99915C0.998984 7.42803 1.10571 7.90194 1.41996 8.22822L4.38459 11.2873L3.70866 15.5748C3.62861 16.0332 3.82576 16.4953 4.21264 16.7559C4.58989 17.0253 5.09017 17.0504 5.49336 16.8209L9.08052 14.8483L12.6677 16.8267C13.0716 17.0725 13.5838 17.0555 13.9706 16.7839C14.3575 16.5115 14.5443 16.0361 14.4465 15.5748L13.7468 11.2873L16.7114 8.22818C17.0442 7.91297 17.1643 7.4339 17.0198 6.99985L17.02 6.99989ZM12.6976 10.679C12.5679 10.8119 12.5086 10.9979 12.5375 11.181L13.2312 15.7931L9.35942 13.6554C9.17562 13.5499 8.95031 13.5499 8.7665 13.6554L4.85318 15.7636L5.60027 11.181C5.63584 10.9972 5.57581 10.8082 5.44018 10.679L2.2858 7.35422L6.67346 6.68099C6.86764 6.65073 7.0344 6.52671 7.11817 6.35029L9.08081 2.21647L11.0197 6.35029C11.1035 6.52671 11.2702 6.65072 11.4644 6.68099L15.864 7.40737L12.6976 10.679Z",fill:"#71787E"})})}),"Plans"]}),(0,h.jsx)("li",{onClick:function(){return n.push("".concat(C))},style:{cursor:"pointer"},children:(0,h.jsx)("img",{className:"k-logo",src:"".concat(C,"/images/header/klogo.gif"),alt:"Keystone"})}),(0,h.jsxs)("li",{onClick:function(){return n.push("".concat(C,"/compare"))},style:{cursor:"pointer"},children:[(0,h.jsx)("span",{className:"icon-mob",children:(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,h.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.32736 2C1.59429 2 1 2.59428 1 3.32737V6.52422C1 7.25731 1.59429 7.85159 2.32736 7.85159H5.52422C6.25729 7.85159 6.85159 7.25731 6.85159 6.52422V3.32737C6.85159 2.59428 6.25729 2 5.52422 2H2.32736ZM2.0458 3.32737C2.0458 3.17187 2.17185 3.04581 2.32736 3.04581H5.52422C5.67973 3.04581 5.80579 3.17187 5.80579 3.32737V6.52422C5.80579 6.67972 5.67973 6.80578 5.52422 6.80578H2.32736C2.17185 6.80578 2.0458 6.67972 2.0458 6.52422V3.32737Z",fill:"#71787E"}),(0,h.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.6692 2C11.9361 2 11.3418 2.59428 11.3418 3.32737V6.52422C11.3418 7.25731 11.9361 7.851
159 12.6692 7.85159H15.866C16.5991 7.85159 17.1934 7.25731 17.1934 6.52422V3.32737C17.1934 2.59428 16.5991 2 15.866 2H12.6692ZM12.3876 3.32737C12.3876 3.17187 12.5137 3.04581 12.6692 3.04581H15.866C16.0215 3.04581 16.1476 3.17187 16.1476 3.32737V6.52422C16.1476 6.67972 16.0215 6.80578 15.866 6.80578H12.6692C12.5137 6.80578 12.3876 6.67972 12.3876 6.52422V3.32737Z",fill:"#71787E"}),(0,h.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.4263 9.84268H16.6722C16.961 9.84268 17.1951 9.60858 17.1951 9.31978C17.1951 9.03099 16.961 8.79688 16.6722 8.79688H1.52289C1.23411 8.79688 1 9.03099 1 9.31978C1 9.60858 1.23411 9.84268 1.52289 9.84268H7.73904L5.33491 14.0068C4.824 14.8917 5.46264 15.9978 6.48445 15.9978H11.6809C12.7027 15.9978 13.3413 14.8917 12.8304 14.0068L10.4263 9.84268ZM9.32649 10.0294C9.21811 9.84172 8.94718 9.84172 8.8388 10.0294L6.2406 14.5297C6.13224 14.7174 6.26769 14.952 6.48445 14.952H11.6809C11.8976 14.952 12.0331 14.7174 11.9247 14.5297L9.32649 10.0294Z",fill:"#71787E"})]})}),"Compare"]}),(0,h.jsxs)("li",{className:"hamburger-menu ".concat(s?"open":""),onClick:function(){return r(!s)},children:[(0,h.jsx)("span",{className:"icon-mob",children:(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,h.jsx)("path",{d:"M17.0281 4.19931H0.972805C0.711616 4.19931 0.5 3.93042 0.5 3.59965C0.5 3.26889 0.711614 3 0.971921 3H17.0272C17.2884 3 17.5 3.26889 17.5 3.59965C17.5 3.93042 17.2884 4.19931 17.0281 4.19931ZM17.5 9C17.5 8.66924 17.2884 8.40035 17.0281 8.40035H4.74998C4.48968 8.40035 4.27806 8.66924 4.27806 9C4.27806 9.33076 4.48968 9.59965 4.74998 9.59965H17.0281C17.2884 9.59965 17.5 9.33076 17.5 9ZM17.5 14.4003C17.5 14.0696 17.2884 13.8007 17.0281 13.8007H8.52807C8.26776 13.8007 8.05615 14.0696 8.05615 14.4003C8.05615 14.7311 8.26776 15 8.52807 15H17.0281C17.2884 15 17.5 14.7311 17.5 14.4003Z",fill:"#666666"})})}),"More"]})]})})})})};var k=(0,t(7545).I)("div")({name:"StickyBtn",class:"s1uu4po0"});function S(e){var n=e.display,t=e.show,s=e.upgradeProductDetailsData,r=e.setShowMembershipFormPopup,a=(0,u.useRouter)();return n?(0,h.jsx)(k,{className:void 0===t||t?"visible":"",children:(0,h.jsxs)("div",{className:"fixed-btns",children:[(0,h.jsx)("button",{onClick:function(){a.push("".concat("/keystone","/payment/").concat((null==s?void 0:s.productId)||(null==s?void 0:s.Current_ProductID)))},children:"Buy Membership"}),(0,h.jsx)("button",{className:"buy",onClick:function(){r(!0)},children:"Request a Call"})]})}):(0,h.jsx)(h.Fragment,{})}t(3736);let O=function(e){var n=e.upgradeProductDetailsData,t=e.showStickyBtn,s=e.setShowMembershipFormPopup,r=(0,u.useRouter)(),a="/[productId]"===r.pathname,o="/payment/[productId]"===r.pathname;return(0,h.jsxs)(i,{children:[(0,h.jsxs)("div",{className:"container-wrap",children:[(0,h.jsx)(g,{}),(0,h.jsx)(w,{}),!o&&(0,h.jsx)(N,{})]}),a&&(0,h.jsx)(S,{display:t,show:t,upgradeProductDetailsData:n,setShowMembershipFormPopup:s})]})}},5296:()=>{},6047:(e,n,t)=>{"use strict";t.d(n,{yy:()=>r});var s=t(4525),r=function(e,n){return s.A.staticDataApiCall("GET","/getMenu",n,{Authorization:"Bearer ".concat(e)})}},6130:()=>{},6876:(e,n,t)=>{"use strict";t.d(n,{A:()=>A});var s=t(3857),r=t(2969),a=t(3081),i=t.n(a),o=t(4232),l=t(8477),c=t(1777),u=t(9750),d=t(890),m=t(9795),h=t(236),p=t(2933),v=(0,p.I)("div")({name:"OTPPopupStyle",class:"o1tmpgyj"});t(6130);var f=t(7876);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,s)}return t}function j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach(function(n){(0,r.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}let b=function(e){var n=e.onClose,t=e.phoneNumber,s=e.onVerify,r=e.onResend,a=e.loading,i=void 0!==a&&a,l=e.validationParams,c=void 0===l?{}:l,u=e.isVerifying,d=e.setIsVerifying,m=e.errorMessage,p=void 0===m?"":m,x=(0,o.useState)(["","","","","",""]),b=x[0],g=x[1],y=(0,o.useState)(26),w=y[0],C=y[1];(0,o.useEffect)(function(){if(p){var e;
1g(["","","","","",""]),null==(e=document.getElementById("membership-otp-0"))||e.focus()}},[p]),(0,o.useEffect)(function(){if(w>0){var e=setInterval(function(){return C(w-1)},1e3);return function(){return clearInterval(e)}}},[w]);var N=function(e,n){if(n.length<=1&&/^[0-9]*$/.test(n)){var t,s=(0,h.A)(b);s[e]=n,g(s),n&&e<b.length-1&&(null==(t=document.getElementById("membership-otp-".concat(e+1)))||t.focus())}};return(0,f.jsx)(v,{children:(0,f.jsxs)("div",{className:"popup",children:[(0,f.jsx)("button",{onClick:n,className:"close-button",children:"â"}),(0,f.jsxs)("div",{className:"header",children:[(0,f.jsx)("h2",{className:"title",children:"We've just sent an OTP"}),(0,f.jsx)("p",{className:"description",children:"Enter the OTP sent via SMS on"}),(0,f.jsx)("p",{className:"phone-number",children:t})]}),p&&(0,f.jsx)("p",{className:"otp-error",role:"alert",children:p}),(0,f.jsx)("div",{className:"otp-container",children:b.map(function(e,n){return(0,f.jsx)("input",{id:"membership-otp-".concat(n),type:"text",value:e,onChange:function(e){return N(n,e.target.value)},className:"otp-input",maxLength:"1",disabled:i},n)})}),(0,f.jsxs)("div",{className:"timer-container",children:[(0,f.jsx)("span",{children:"\uD83D\uDD50"}),(0,f.jsxs)("span",{children:["00:",w.toString().padStart(2,"0")]}),(0,f.jsx)("span",{children:"|"}),(0,f.jsx)("button",{onClick:function(){C(26),g(["","","","","",""]),null==r||r()},className:"resend-button",disabled:w>0||i,children:"Resend OTP â»"})]}),(0,f.jsx)("button",{className:"submit-button",onClick:function(){var e=b.join("");6===e.length&&s&&(null==d||d(!0),Promise.resolve(s(e,j(j({},c),{},{otp:e}))).catch(function(){}).finally(function(){return null==d?void 0:d(!1)}))},disabled:6!==b.join("").length||i||u,children:i||u?"Verifying...":"Submit"})]})})};var g=(0,p.I)("div")({name:"CongratulationsPopupOverlay",class:"ck4iml5"}),y=(0,p.I)("div")({name:"BlurBox",class:"b14176df"}),w=(0,p.I)("div")({name:"PopupContent",class:"p1t5xzl9"}),C=(0,p.I)("button")({name:"CloseButton",class:"c8bbmmn"}),N=(0,p.I)("h2")({name:"Title",class:"t1j1s8yv"}),k=(0,p.I)("p")({name:"Subtitle",class:"szyu5gx"});(0,p.I)("p")({name:"ContractId",class:"cnodfyq"}),(0,p.I)("span")({name:"TransactionIdText",class:"tw304oy"}),t(3274);let S=function(e){var n=e.onClose,t=e.message,s=e.responseData,r="/keystone";return(0,f.jsxs)(g,{children:[(0,f.jsx)(y,{}),(0,f.jsxs)(w,{children:[(0,f.jsx)(C,{onClick:n,children:(0,f.jsx)("img",{src:"".concat(r,"/images/Keystone/close.svg"),alt:"Close"})}),(0,f.jsxs)("div",{className:"modal-wrap-content",children:[(0,f.jsx)("img",{src:"".concat(r,"/images/Keystone/payment-success.svg"),alt:"success",className:"success-image"}),(0,f.jsx)(N,{children:(null==s?void 0:s.text1)||"Thank You!"}),(0,f.jsx)(k,{children:(null==s?void 0:s.text2)||t||"For Submitting your details, we'll connect with you soon."}),((null==s?void 0:s.fbImage)||(null==s?void 0:s.instaImage))&&(0,f.jsxs)("div",{className:"social-links",children:[(0,f.jsx)("p",{children:(null==s?void 0:s.text3)||"Follow"}),(0,f.jsxs)("div",{children:[(null==s?void 0:s.fbImage)&&(0,f.jsx)("a",{href:"https://www.facebook.com/clubmahindra",target:"_blank",rel:"noopener noreferrer",children:(0,f.jsx)("img",{src:s.fbImage,alt:"Facebook"})}),(null==s?void 0:s.instaImage)&&(0,f.jsx)("a",{href:"https://www.instagram.com/clubmahindra",target:"_blank",rel:"noopener noreferrer",children:(0,f.jsx)("img",{src:s.instaImage,alt:"Instagram"})})]})]})]})]})]})};var O=t(4941),P=t(453),I=t(920),_=(0,p.I)("div")({name:"MembershipModalStyle",class:"m140zh8y"});function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,s)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach(function(n){(0,r.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}t(223);var M="/keystone";let A=function(e){var n,t,a,h,p,v=e.onClose,x=(0,c.d4)(function(e){return e.AUTH.user_access_token}),j=(0,c.d4)(function(e){return e.AUTH.prospect_static_token}),g=(0,o.useState)(!1),y=g[0],w=g[1],C=(0,o.useState)(!1),N=C[0],k=C[1],L=(0,o.useState)(!1),A=L[0],D=L[1],T=(0,o.useState)(!1),H=T[0],K=T[1],F=(0,o.useState)(!1),B=F[0],V=F[1],Z=(0,o.useState)(""),R=Z[0],z=Z[1],q=(0,o.useState)(null),Y=q[0],U=q[1],G=(0,o.useState)(""),W=G[0],$=G[1],Q=(0,o.useState)(!1),X=Q[0],J=Q[1],ee=(0,o.useState)(""),en=ee[0],et=ee[1],es=(0,o.useState)(!1),er=es[0],ea=es[1],ei=(0,o.useState)({name:"",city:"",mobile:"",age:"",email:"",consent:!1}),eo=ei[0],el=ei[1],ec=(0,o.useState)({name:"",city:"",mobile:"",age:"",email:""}),eu=ec[0],ed=ec[1],em=(0,u.A)().width<=768;(0,o.useEffect)(function(){return k(!0)},[]);var eh=(0,d.A)("citiesData",P.MV,{memberId:"guest",portalCode:"default",membershipId:"guest"},{select:function(e){return null==e?void 0:e.data}}).data,ep=(0,o.useCallback)(function(e,n){var t={name:function(){return n.trim()?"":"Name field should not be empty"},mobile:function(){return n.trim()?/^\+?[0-9]{10}$/.test(n)?"":"Please enter a valid mobile number":"Number field should not be empty"},email:function(){return n.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)?"":"Please enter a valid email":"Email field should not be empty"},age:function(){return n?"":"Please select your age"},city:function(){return n.trim()?(null==eh?void 0:eh.some(function(e){return e.name.toLowerCase()===n.toLowerCase()}
1))?"":"Please select a valid city from the list":"City field should not be empty"}};return t[e]?t[e]():""},[eh]),ev=function(e){var n=e.target,t=n.name,s=n.value,a=n.type,i=n.checked;if("checkbox"===a)return void el(function(e){return E(E({},e),{},(0,r.A)({},t,i))});var o="name"===t?s.replace(/[^a-zA-Z ]/g,"").slice(0,20):"mobile"===t?s.replace(/[^0-9+]/g,"").slice(0,15):s;el(function(e){return E(E({},e),{},(0,r.A)({},t,o))}),ed(function(e){return E(E({},e),{},(0,r.A)({},t,ep(t,o)))})},ef=function(e){el(function(n){return E(E({},n),{},{city:e})}),et(e),ea(!1),ed(function(n){return E(E({},n),{},{city:ep("city",e)})})},ex=(null==eh?void 0:eh.filter(function(e){return e.name.toLowerCase().includes(en.toLowerCase())}))||[],ej=(n=(0,s.A)(i().mark(function e(){var n;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return D(!0),e.prev=1,e.next=4,(0,P.$K)(x,{name:eo.name,mobileno:eo.mobile,email:eo.email,age:eo.age,city:eo.city,type:"Keystone-prospect"});case 4:(null==(n=e.sent)?void 0:n.status)==="success"&&(z((null==n?void 0:n.message)||"Your request has been submitted successfully."),U(null==n?void 0:n.data),V(!0)),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("Form submission error:",e.t0),(0,O.h9)();case 12:return e.prev=12,D(!1),e.finish(12);case 15:case"end":return e.stop()}},e,null,[[1,8,12,15]])})),function(){return n.apply(this,arguments)}),eb=(t=(0,s.A)(i().mark(function e(){return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return D(!0),$(""),e.prev=2,e.next=5,(0,I.z_)(j,{mobile:eo.mobile,type:"Keystone-prospect",memberId:"guest",memberShipId:"guest",portalCode:"default"});case 5:K(!0),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),(0,O.h9)();case 11:return e.prev=11,D(!1),e.finish(11);case 14:case"end":return e.stop()}},e,null,[[2,8,11,14]])}
1)),function(){return t.apply(this,arguments)}),eg=(a=(0,s.A)(i().mark(function e(n){var t;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),ed(t=Object.keys(eu).reduce(function(e,n){return e[n]=ep(n,eo[n]),e},{})),!(Object.values(t).some(function(e){return e})||!eo.consent)){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,eb();case 7:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)}),ey=function(e){ed(function(n){return E(E({},n),{},(0,r.A)({},e,ep(e,eo[e])))})},ew=!eo.consent||Object.values(eo).some(function(e){return!e&&!1!==e})||Object.values(eu).some(function(e){return e})||A,eC=(0,f.jsxs)(_,{children:[(0,f.jsx)(m.Ay,{display:A}),(0,f.jsx)("div",{className:"membership-modal-overlay ".concat(em?"mobile":""," ").concat(y?"closing":"opening"),role:"dialog","aria-modal":"true","aria-labelledby":"membership-modal-title",children:(0,f.jsxs)("div",{className:"membership-modal",children:[(0,f.jsx)("div",{className:"modal-left",children:(0,f.jsx)("img",{src:"".concat(M,"/images/Keystone/popup-form.png"),alt:""})}),(0,f.jsxs)("div",{className:"modal-right",children:[(0,f.jsx)("button",{className:"modal-close","aria-label":"Close",onClick:function(){em?(w(!0),setTimeout(function(){w(!1),v()},320)):v()}}),(0,f.jsxs)("h3",{id:"membership-modal-title",className:"modal-title",children:["Know More About",(0,f.jsx)("br",{}),"Keystone Programme"]}),(0,f.jsx)("form",{className:"modal-form",onSubmit:eg,children:(0,f.jsxs)("div",{className:"form-grid",children:[(0,f.jsxs)("div",{className:"field",children:[(0,f.jsxs)("label",{htmlFor:"mfp-name",children:["Name ",(0,f.jsx)("sup",{children:"*"})]}),(0,f.jsx)("input",{id:"mfp-name",type:"text",name:"name",value:eo.name,onChange:ev,onBlur:function(){return ey("name")},placeholder:"Enter Your Name"}),eu.name&&(0,f.jsx)("span",{className:"error",children:eu.name})]}),(0,f.jsxs)("div",{className:"field",children:[(0,f.jsxs)("label",{htmlFor:"mfp-city",children:["City ",(0,f.jsx)("sup",{children:"*"})]}),(0,f.jsxs)("div",{className:"input-with-icon",children:[(0,f.jsx)("input",{id:"mfp-city",type:"text",name:"city",value:en||eo.city,onChange:function(e){var n=e.target.value.replace(/[0-9]/g,"");et(n),ea(!0),el(function(e){return E(E({},e),{},{city:n})}),ed(function(e){return E(E({},e),{},{city:ep("city",n)})})},onFocus:function(){return ea(!0)},onBlur:function(){setTimeout(function(){return ea(!1)},200),ey("city")},placeholder:"Enter Your City"}),(0,f.jsx)("img",{src:"".concat(M,"/images/Keystone/Icon_search.svg"),alt:""})]}),er&&ex.length>0&&(0,f.jsx)("div",{className:"city-dropdown",children:ex.slice(0,10).map(function(e){return(0,f.jsx)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(){return ef(e.name)},children:e.name},e.name)})}),eu.city&&(0,f.jsx)("span",{className:"error",children:eu.city})]}),(0,f.jsxs)("div",{className:"field",children:[(0,f.jsxs)("label",{htmlFor:"mfp-mobile",children:["Mobile No. ",(0,f.jsx)("sup",{children:"*"})]}),(0,f.jsx)("input",{id:"mfp-mobile",type:"tel",name:"mobile",value:eo.mobile,onChange:ev,onBlur:function(){return ey("mobile")},placeholder:"Enter Mobile Number"}),eu.mobile&&(0,f.jsx)("span",{className:"error",children:eu.mobile})]}),(0,f.jsxs)("div",{className:"field",children:[(0,f.jsxs)("label",{htmlFor:"mfp-age",children:["Age ",(0,f.jsx)("sup",{children:"*"})]}),(0,f.jsxs)("select",{id:"mfp-age",name:"age",value:eo.age,onChange:ev,children:[(0,f.jsx)("option",{value:"",children:"Select Your Age Group"}),(0,f.jsx)("option",{value:"<24",children:"Under 24"}),(0,f.jsx)("option",{value:"25-28",children:"25-28"}),(0,f.jsx)("option",{value:"29-35",children:"29-35"}),(0,f.jsx)("option",{value:"36-49",children:"36-49"}),(0,f.jsx)("option",{value:"50-55",children:"50-55"}),(0,f.jsx)("option",{value:">55",children:"Above 55"})]}),eu.age&&(0,f.jsx)("span",{className:"error",children:eu.age})]}),(0,f.jsxs)("div",{className:"field full",children:[(0,f.jsxs)("label",{htmlFor:"mfp-email",children:["Email ID ",(0,f.jsx)("sup",{children:"*"})]}),(0,f.jsx)("input",{id:"mfp-email",type:"email",name:"email",value:eo.email,onChange:ev,onBlur:function(){return ey("email")},placeholder:"Enter Email Id"}),eu.email&&(0,f.jsx)("span",{className:"error",children:eu.email})]}),(0,f.jsxs)("label",{className:"checkbox",children:[(0,f.jsx)("input",{type:"checkbox",name:"consent",checked:eo.consent,onChange:ev}),(0,f.jsx)("span",{children:"I authorise Club Mahindra to contact me for membership plans and ongoing promotions and offers"})]}),(0,f.jsx)("div",{className:"field full submit-wrap",children:(0,f.jsx)("button",{type:"submit",className:"btn-submit",disabled:ew,children:"Get in Touch"})})]})})]})]})}),B&&(0,f.jsx)(S,{onClose:function(){V(!1),el({name:"",city:"",mobile:"",age:"",email:"",consent:!1}),ed({name:"",city:"",mobile:"",age:"",email:""}),v()},message:R,responseData:Y}),H&&(0,f.jsx)(b,{onClose:function(){return K(!1)},errorMessage:W,phoneNumber:"+91 - ******".concat((null==(p=eo.mobile)?void 0:p.slice(-4))||"****"),onVerify:(h=(0,s.A)(i().mark(function e(n){var t,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return J(!0),e.prev=1,e.next=4,(0,I.X3)(j,{mobile:eo.mobile,otp:n,type:"Keystone-prospect",memberId:"guest",memberShipId:"guest",portalCode:"default"});case 4:if((null==(t=e.sent)?void 0:t.status)!=="error"){e.next=9;break}throw $(s=(null==t?void 0:t.msg)||(null==t?void 0:t.message)||"Please enter a valid OTP"),Error(s);case 9:return $(""),K(!1),e.next=13,ej();case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),null!==e.t0&&void 0!==e.t0&&e.t0.message?$(e.t0.message):(0,O.h9)();case 18:return e.prev=18,J(!1),e.finish(18);case 21:case"end":return e.stop()}},e,null,[[1,15,18,21]])})),function(e){return h.apply(this,arguments)}),onResend:eb,accessToken:j,validationParams:{userId:"guest",portalCode:"Keystone-prospect",mobile:eo.mobile,type:4},isVerifying:X,setIsVerifying:J})]});return N?(0,l.createPortal)(eC,document.body):null}},9750:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var s=t(4232);
1let r=function(){var e=(0,s.useState)({width:void 0,height:void 0}),n=e[0],t=e[1];return(0,s.useEffect)(function(){function e(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}},[]),n}}}]);
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.