1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8350],{80760:function(e,t,r){var a=r(89881);e.exports=function(e,t){var r=[];return a(e,function(e,a,n){t(e,a,n)&&r.push(e)}),r}},63105:function(e,t,r){var a=r(34963),n=r(80760),s=r(67206),i=r(1469);e.exports=function(e,t){return(i(e)?a:n)(e,s(t,3))}},31959:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/newsletter-subscribe",function(){return r(33876)}])},33876:function(e,t,r){"use strict";r.r(t);var a=r(85893),n=r(67294),s=r(59335);r(87066),r(63105),r(75472);var i=r(27680),o=r(41664),l=r.n(o);r(91444);var c=r(70961),u=r(89407),d=r(60990),m=r(51634),f=r(34853);r(92022),r(90109),r(596);var x=r(31955),p=r(76265),h=r(87473),v=r(53461),b=r(2664);let y={initial:{opacity:0},whileInView:{opacity:1},transition:{duration:1.5},viewport:{once:!0}},g={minWidth:"100px","& .MuiInputLabel-root":{fontSize:"13px"}},w={firstname:"",lastname:"",email:"",country:"",title:""},j=["Mr","Ms","Mrs"],k=()=>{let[e,t]=(0,n.useState)(w),[r,o]=(0,n.useState)({}),[k,N]=(0,n.useState)(!1),C=(0,n.useRef)(null),[E,_]=(0,n.use
1State)(!1),[O,A]=(0,n.useState)(!1),[S,z]=(0,n.useState)(!1),Z=(0,b.useSelector)(e=>e.user);(0,n.useEffect)(()=>{"true"==x.Z.get("newslettersubmit")&&z(!0)},[]);let T=a=>{let{name:n,value:s}=a.target;o({...r,[n]:!1}),t({...e,[n]:s})},F=()=>{let t={};for(let r in e)e[r]||(t[r]="".concat(r," is required"));return t},I=async a=>{try{var n,s,i;a.preventDefault(),A(!0);let l=F();if(Object.keys(l).length>0){A(!1),o(l),console.log(r);return}if(i=e.email,!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(i)){A(!1),o({...r,email:!0});return}if(k)o({...r,terms:!1});else{A(!1),o({...r,terms:!0});return}let c=await (null===(n=C.current)||void 0===n?void 0:n.executeAsync());if(null===(s=C.current)||void 0===s||s.reset(),!c){A(!1),_(!0);return}let u=await (0,v.wu)({title:e.title,fullName:"".concat(e.firstname," ").concat(e.lastname),emailid:e.email,city:void 0==Z.location||""==Z.location?"Bangalore":Z.location,country:e.country,createdon:new Date});if(200==u.status){A(!1),t(w),o({});let e=new Date(new Date().getTime()+9e5);x.Z.set("newslettersubmit","true",{expires:e}),z(!0)}else A(!1),console.error(u.error),o({})}catch(e){A(!1),console.log(e)}};return(0,a.jsxs)("div",{className:"bg-[#FAF8F5] overflow-x-hidden h-screen overflow-y-scroll text-[#fff]",children:[(0,a.jsxs)("div",{className:"flex fixed drop-shadow-sm bg-[#FAF8F5] top-0 w-full items-center py-4 z-20",children:[(0,a.jsxs)(l(),{href:"/",target:"_self",className:"flex items-center gap-2 w-1/3 pl-4 text-black",children:[(0,a.jsx)(i.u1R,{size:30,className:"w-4 4k:w-8"}),(0,a.jsx)("p",{className:"4k:text-[30px]",children:"BACK"})]}),(0,a.jsx)("p",{className:"text-black w-1/3 text-center text-[25px] sm:text-[16px]"}),(0,a.jsx)("div",{className:"w-1/3"})]}),(0,a.jsx)("div",{className:"w-[70%] z-10 text-[#000] my-20 mx-auto md:w-[90%] sm:w-[90vw] sm:my-16 bg-[#F5F0EB] h-auto",children:S?(0,a.jsx)(p.E.div,{...y,className:"w-[90%] text-center justify-center text-[30px] sm:text-[20px] sm:w-[100%] mx-auto h-[70vh] flex flex-col gap-4 p-4",children:"Thank you for subscribing to our luxury newsletter."}):(0,a.jsxs)("div",{className:"w-[70%] md:w-[90%] sm:w-[100%] mx-auto h-full flex flex-col gap-4 p-4",children:[(0,a.jsx)("p",{className:"text-[30px] sm:text-[24px] 4k:text-[50px] text-center",children:"The Official Hype Newsletter"}),(0,a.jsx)("p",{className:"text-center mb-10 sm:text-xs 4k:text-[30px] sm:mb-4 ",children:"Subscribe to recieve the Hype newsletter. Each month you will recieve exclusive offers, latest developments and exciting events from Hype"}),(0,a.jsx)("p",{className:" 4k:text-[20px] text-lg",children:"Personal Information"}),(0,a.jsx)(c.Z,{fullWidth:!0,size:"small",disableClearable:!0,disablePortal:!0,value:e.title?e.title:"",autoHighlight:!0,onChange:(a,n)=>{o({...r,title:!1}),t({...e,title:"".concat(n)})},options:j,renderInput:e=>(0,a.jsx)(u.Z,{variant:"standard",sx:g,size:"small",autoComplete:"off",fullWidth:!0,...e,label:"TITLE *"})}),r.title&&(0,a.jsx)("p",{className:"text-xs 4k:text-sm text-error relative bottom-2 left-0",children:"*title is required"}),(0,a.jsx)(u.Z,{variant:"standard",label:"FIRST NAME",name:"firstname",sx:g,value:e.firstname?e.firstname:"",onChange:T,autoCorrect:"false",autoComplete:"off",required:!0,error:r.firstname}),(0,a.jsx)(u.Z,{variant:"standard",label:"LAST NAME",name:"lastname",value:e.lastname?e.lastname:"",error:r.lastname,onChange:T,sx:g,autoCorrect:"false",autoComplete:"off",required:!0}),(0,a.jsx)(u.Z,{variant:"standard",label:"EMAIL",sx:g,name:"email",value:e.email?e.email:"",error:r.email,onChange:T,autoCorrect:"false",autoComplete:"off",required:!0}),(0,a.jsx)(c.Z,{fullWidth:!0,size:"small",disableClearable:!0,disablePortal:!0,value:e.country?e.country:"",autoHighlight:!0,onChange:(a,n)=>{o({...r,country:!1}),t({...e,country:"".concat(null==n?void 0:n.label)})},options:m,renderOption:(e,t)=>{let{key:r,...n}=e;return(0,a.jsxs)(d.Z,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...n,children:[(0,a.jsx)("img",{loading:"lazy",width:"20",srcSet:"https://flagcdn.com/w40/".concat(t.code.toLowerCase(),".png 2x"),src:"https://flagcdn.com/w20/".concat(t.code.toLowerCase(),".png"),alt:""}),(0,a.jsxs)("p",{className:"text-xs",children:[t.label," (",t.code,")"]})]},r)},renderInput:e=>(0,a.jsx)(u.Z,{variant:"standard",sx:g,size:"small",fullWidth:!0,...e,label:"COUNTRY *"})}),r.country&&(0,a.jsx)("p",{className:"text-xs 4k:text-sm text-error relative bottom-2 left-0",children:"*country is required"}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(s.Checkbox,{id:"checkbox",ripple:!1,checked:k,onChange:e=>{N(!k)},className:"rounded-sm w-4 h-4"}),(0,a.jsxs)("label",{htmlFor:"checkbox2",className:"ml-2 4k:text-[16
1px] cursor-pointer sm:text-xs text-gray-700 text-sm",children:["I consent to recieve exclusive marketing communications from Hype, Further details on how we process your personal data can be found in our"," ",(0,a.jsx)(l(),{href:"/privacy",target:"_blank",className:"underline",children:"privacy policy."})," ",'You can opt out of further marketing emails at any time by clicking "unsubscribe" in any marketing email.']})]}),r.terms&&(0,a.jsx)("span",{className:"text-xs text-error",children:"Please accept terms and conditions"}),(0,a.jsxs)("div",{children:[(0,a.jsx)(f.Z,{ref:C,sitekey:"6LfzNUctAAAAAOX2wGOxdNze-MV6vY5MEbVeXxaL",size:"invisible",badge:"bottomright"}),E&&(0,a.jsx)("span",{className:"text-xs text-error",children:"Please submit captcha"})]}),(0,a.jsx)("button",{onClick:I,className:"w-[40%] sm:w-[70%] mx-auto bg-black rounded-md py-2 4k:text-[20px] 4k:py-4 text-sm tracking-wider my-8 sm:my-4 hover:text-[#000] text-[#fff] hover:bg-[#CFBCA0] text-center uppercase duration-500",children:O?(0,a.jsx)(h.Z,{color:"#fff",size:20}):"Subscribe"})]})})]})};t.default=k,k.getInitialProps=()=>({noLayout:!0})},53461:function(e,t,r){"use strict";r.d(t,{Cm:function(){return c},I4:function(){return o},t2:function(){return i},wu:function(){return l}});var a=r(596),n=r(90109),s=r(80092);let i=async e=>{try{return await (0,n.ET)((0,n.hJ)(a.db,"prive_requests"),e),await (0,s.qu)({email:e.email,fname:e.firstname,lname:e.lastname,phone:e.phone,dial_code:e.dialcode,fleettype:"Prive Membership"}),{status:200,message:"Added document successfully"}}catch(e){return{status:400,message:"Error adding document",error:e}}},o=async e=>{try{return await (0,n.ET)((0,n.hJ)(a.db,"investor_requests"),e),await (0,s.qu)({email:e.email,fullname:e.fullname,phone:e.phone,dial_code:e.dialcode,fleettype:"Investor"}),{status:200,message:"Added document successfully"}}catch(e){return{status:400,message:"Error adding document",error:e}}},l=async e=>{try{return await (0,n.ET)((0,n.hJ)(a.db,"subscriptions"),e),{status:200,message:"Added document successfully"}}catch(e){return{status:400,message:"Error adding document",error:e}}},c=async e=>{try{return await (0,n.ET)((0,n.hJ)(a.db,"club_enquiries"),e),await (0,s.qu)({email:e.email,fullname:e.name,phone:e.phone_number||e.phone,dial_code:e.dial_code,city:e.location,fleettype:"Club"}),{status:200,message:"Added document successfully"}}catch(e){return{status:400,message:"Error adding document",error:e}}}},87473:function(e,t,r){"use strict";var a=r(67294),n=r(62045),s=r(32919),i=function(){return(i=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},o=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>t.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r},l=(0,s.i)("ClipLoader","0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}","clip");t.Z=function(e){var t=e.loading,r=e.color,s=void 0===r?"#000000":r,c=e.speedMultiplier,u=e.cssOverride,d=e.size,m=void 0===d?35:d,f=o(e,["loading","color","speedMultiplier","cssOverride","size"]),x=i({background:"transparent !important",width:(0,n.E)(m),height:(0,n.E)(m),borderRadius:"100%",border:"2px solid",borderTopColor:s,borderBottomColor:"transparent",borderLeftColor:s,borderRightColor:s,display:"inline-block",animation:"".concat(l," ").concat(.75/(void 0===c?1:c),"s 0s infinite linear"),animationFillMode:"both"},void 0===u?{}:u);return void 0===t||t?a.createElement("span",i({style:x},f)):null}},32919:function(e,t,r){"use strict";r.d(t,{i:function(){return a}});var a=function(e,t,r){var a="react-spinners-".concat(e,"-").concat(r);if("undefined"==typeof window||!window.document)return a;var n=document.createElement("style");document.head.appendChild(n);var s=n.sheet,i="\n @keyframes ".concat(a," {\n ").concat(t,"\n }\n ");return s&&s.insertRule(i,0),a}},62045:function(e,t,r){"use strict";r.d(t,{E:function(){return s},h:function(){return n}});var a={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function n(e){if("number"==typeof e)return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);var n=(e.match(/[^0-9]*$/)||"").toString();return a[n]?{value:t,unit:n}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function s(e){var t=n(e);return"".concat(t.value).concat(t.unit)}}},function(e){e.O(0,[9866,7066,5551,7663,5472,2888,9774,179],function(){return e(e.s=31959)}),_N_E=e.O()}]);
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.