1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6370],{96370:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var n=a(95155),r=a(12115),o=a(7788),s=a(22066),l=a(93739),i=a(22426);let u=function({pgContent:e,styles:t}){let a=(0,o.wA)(),u=(0,s.Gu)(l.G0),c=u&&u.loggedIn,[d,g]=(0,r.useState)({}),[p,h]=(0,r.useState)(""),[m]=(0,r.useState)(!!(u&&u.loggedIn)),[v,f]=(0,r.useState)(""),y=async e=>{e.preventDefault();let{phone:t}=d;t=t?.replace(/\s/g,"");let n=await (0,s.Dj)({mobile:t},l.yMC);if(n)return h(n.mobile);let r={mobile:Number(t)};return a((0,s.uu)(l.cZE,r)).then(e=>e.payload.success?(h(""),m||(d.phone=""),f("Congratulations! Youâve registered successfully. Youâll receive a coupon code soon. Stay tuned!")):(f(""),m||(d.phone=""),h("Your are already register with us. Youâll receive a coupon code soon. Stay tuned!"))),!1},b=e=>{if(e){if(e.toString().length>5){let t=[];for(let a=0;a<e.toString().length;a+=5)t.push(e.toString().slice(a,a+5));return t.join(" ")}return e}};return(0,n.jsx)("section",{className:t["festive-email-container"],children:(0,n.jsxs)("div",{className:t["festive-email-section"],style:{backgroundRepeat:"no-repeat",backgroundSize:"100%",backgroundImage:`url("${e.backGroundImage}")`},children:[(0,n.jsxs)("div",{className:t["email-input"],children:[(0,n.jsx)("div",{className:t["email-info"],children:"Register your Mobile no. for a special reward"}),(0,n.jsx)("input",{type:"text",name:"phone",placeholder:"Enter your Mobile No. here",maxLength:"11",onChange:e=>{var t;e.persist(),h(""),g({...d,[e.target.name]:(t=e.target.value.replace(/[\D+]/g,""))?t.toString().replace(/\s/g,""):""}),f("")},value:c&&c.loggedIn?b((0,i.c7K)("phoneNo")):void 0!==d.phone?b(d.phone):"",onKeyDown:i.Sx0,onKeyUp:i.Sx0}),(0,n.jsx)("input",{type:"submit",onClick:y})]}),v&&""!=v&&(0,n.jsx)("div",{className:t["email-success"],children:v}),p&&""!=p&&(0,n.jsx)("div",{className:t["email-error"],children:p})]})})}}}]);
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.