1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9011],{35802:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/myoffers/verify-number",function(){return t(99173)}])},34972:function(e,n,t){"use strict";t.d(n,{z:function(){return o.z}});var o=t(39479)},93516:function(e,n,t){"use strict";var o=t(85893),i=t(67294),r=t(66161),l=t(73220);n.Z=(0,i.memo)(function(e){let{children:n}=e,{isBackToBKashButtonVisible:t}=(0,r.Z)({channelNameApiValue:void 0,loggedInUserInfo:{show_header:void 0,show_footer:void 0}});return(0,o.jsxs)(o.Fragment,{children:[n,t&&(0,o.jsx)(l.Z,{})]})})},96764:function(e,n,t){"use strict";t.d(n,{o:function(){return x}});var o=t(85893),i=t(57747),r=t(71293),l=t(31955),s=t(11163),a=t(67294),c=t(59157),u=t(55135),d=function(e){let{className:n}=e,{currentLang:t,toggleLanguage:i,router:r,isRedirected:l}=(0,u.Z)();return(0,o.jsx)("button",{className:n,type:"button",onClick:i,children:"en"==t?"বাà¦à¦²à¦¾":"English"})},p=t(20755);let x=e=>{let{showBackIcon:n=!0}=e,{router:t,pathname:u,asPath:x,locale:f}=(0,s.useRouter)(),[h,m]=(0,a.useState)({position:"relative",borderBottom:{base:"1px solid rgba(0, 0, 0, 0.06)",md:"none"},transition:!1}),[g,b]=(0,a.useState)("");(0,a.useEffect)(()=>(window.addEventListener("scroll",v),()=>window.removeEventListener("scroll",v)));let v=()=>{b(window.scrollY)};(0,a.useEffect)(()=>{g>=80?m({position:"fixed",borderBottom:"1px solid rgba(0, 0, 0, 0.06)",transition:"background 0.1s"}):m({position:"fixed",borderBottom:{base:"1px solid rgba(0, 0, 0, 0.06)",md:"none"}})},[g]);let w=(0,a.useMemo)(()=>{var e;return!!(null==x?void 0:null===(e=x.includes)||void 0===e?void 0:e.call(x,"/cfs"))},[x]);return(0,o.jsx)(o.Fragment,{children:"bKash"==l.Z.get("channelName")||"Citybank"==l.Z.get("channelName")?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(i.xu,{position:h.position,top:"0",borderBottom:h.borderBottom,width:"100%",zIndex:"99",backgroundColor:"#ededed",children:(0,o.jsxs)(i.xu,{maxWidth:"1920px",mx:"auto",py:"16px",px:"24px",display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#ffffff",children:[n&&(0,o.jsx)(i.xu,{cursor:"pointer",onClick:()=>t.back(),children:(0,o.jsx)(c.p,{})}),w&&(0,o.jsx)(i.xu,{textAlign:"center",width:{base:"60px",md:"100px"}}),(0,o.jsx)(i.xu,{left:"0",right:"0",mx:"auto",children:(0,o.jsx)(p.T,{})}),w&&(0,o.jsx)(i.xu,{textAlign:"center",width:{base:"60px",md:"100px"},children:(0,o.jsx)(d,{})}),(0,o.jsxs)(i.xu,{children:["/internet-package-activation/step-1/[slug]"==u||"/offer-purchase/step-1/[slug]"==u?(0,o.jsx)(r.x,{fontSize:"13px",lineHeight:"15px",fontWeight:"400",color:"#979797",mb:0,children:"Step 1/2"}):"","/internet-package-activation/[slug]"==u?(0,o.jsx)(r.x,{fontSize:"13px",lineHeight:"15px",fontWeight:"400",color:"#979797",mb:0,children:"Step 2/2"}):""]})]})})})}},55135:function(e,n,t){"use strict";var o=t(11163),i=t(67294);let r=["en","bn"],l={en:!0,default:!0,"":!0};function s(e){var n;return null!==(n=null==l?void 0:l[null!=e?e:""])&&void 0!==n&&n}n.Z=function(){let e=(0,i.useRef)(!0),[n,t]=(0,i.useState)(!1),l=(0,o.useRouter)(),[a,c]=(0,i.useState)(()=>{var n;return e.current||void 0===(null==l?void 0:l.locale)?"bn":s(null==l?void 0:l.locale)?"en":"string"!=typeof(null==l?void 0:l.locale)?"bn":(null==r?void 0:null===(n=r.includes)||void 0===n?void 0:n.call(r,null==l?void 0:l.locale))?null==l?void 0:l.locale:"bn"});return(0,i.useEffect)(()=>{if(null==e?void 0:e.current){var n,o;e.current=!1,c("bn"),console.log("\uD83D\uDE80 ~ useReverseDefaultLang ~ router?.locale:",null==l?void 0:l.locale),(null==l?void 0:null===(o=l.locale)||void 0===o?void 0:null===(n=o.toLowerCase())||void 0===n?void 0:n.trim())!=="bn"?l.replace("/bn".concat(null==l?void 0:l.asPath),void 0,{locale:"bn"}):t(!0)}else(null==e?void 0:e.current)||(null==l?void 0:l.locale)!=="bn"||t(!0)},[l]),{currentLang:a,toggleLanguage:(0,i.useCallback)(()=>{var e;let n=s(null==l?void 0:l.locale),t=null!==(e=r.findIndex(e=>n?"en"===e:e===(null==l?void 0:l.locale)))&&void 0!==e?e:-1,o=(null==r?void 0:r.length)-1;-1!==t&&(o=(t+1)%r.length);let i=null==r?void 0:r[o],a="".concat("en"===i?"":"/".concat(i)).concat(null==l?void 0:l.asPath);c(i),l.replace(a,void 0,{locale:i})},[l]),router:l,isRedirected:n}}},59157:function(e,n,t){"use strict";t.d(n,{p:function(){return i}});var o=t(85893);let i=()=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"15",viewBox:"0 0 14 15",children:(0,o.jsx)("path",{d:"M12.9999 7.00002H3.3999L7.6999 2.70002C7.9999 2.40002 8.0999 2.10002 7.9999 1.70002C7.8999 1.40002 7.5999 1.10002 7.2999 1.00002C6.9999 0.900024 6.5999 1.00002 6.2999 1.30002L0.299903 7.30002C0.199903 7.40002 0.0999023 7.50002 0.0999023 7.60002C-9.76548e-05 7.80002 -9.76548e-05 8.10002 0.0999023 8.40002C0.0999023 8.50002 0.199903 8.60002 0.299903 8.70002L6.2999 14.7C6.4999 14.9 6.6999 15 6.9999 15C7.2999 15 7.4999 14.9 7.6999 14.7C7.8999 14.5 7.9999 14.3 7.9999 14C7.9999 13.7 7.8999 13.5 7.6999 13.3L3.3999 9.00002H12.9999C13.5999 9.00002 13.9999 8.60002 13.9999 8.00002C13.9999 7.40002 13.5999 7.00002 12.9999 7.00002Z",fill:"black"})})},99173:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return j}});var o=t(85893),i=t(9008),r=t.n(i),l=t(11163),s=t(57747),a=t(71293),c=t(67294),u=t
1(22757),d=t(18020),p=t(66529),x=t(33090),f=t(72516),h=t(34972),m=t(40746),g=t(31955);let b=()=>{let e=(0,l.useRouter)(),{locale:n}=e,[t,i]=(0,c.useState)(""),[r,b]=(0,c.useState)(""),[v,w]=(0,c.useState)(!1),[j,y]=(0,c.useState)(30),k=(0,m.Z)(n,g.Z.get()),{query:{offer_msisdn:C}}=e;(0,c.useEffect)(()=>{let e=setInterval(()=>{j>0?y(e=>e-1):w(!0)},1e3);return()=>clearInterval(e)},[j]);let _=async e=>{try{let{data:{status:e}}=await (0,f.r2)({msisdn:C},k);e?(w(!1),y(30),b("")):b("OOPs! Something went wrong.")}catch(e){b("Please! Try again.")}},N=async n=>{if(""!==t&&t.length>=4)try{let{data:{status:n,data:o,token:i}}=await (0,f.qJ)({msisdn:C,otp:parseInt(t)},{});if(n){let n=o.filter(e=>null==e?void 0:e.offerId).map(e=>{var n,t,o;return{offer_id:e.offerId,offerPrice:e.offerPrice,offerName:null===(n=e.offerName)||void 0===n?void 0:n.split(":").pop(),validity:e.offerDescription.includes("-")?null===(t=e.offerDescription)||void 0===t?void 0:t.split("-").pop():null===(o=e.offerDescription)||void 0===o?void 0:o.split(" ").pop(),keyword:e.keyword}});g.Z.set("my_offers_token",i,{path:"/",sameSite:"none",secure:!0,domain:".grameenphone.com",expires:1/24}),localStorage.setItem("myOfferData",JSON.stringify(n)),e.push({pathname:"/myoffers/showoffers",query:{offer_msisdn:C}})}else g.Z.set("my_offers_token",i,{path:"/",sameSite:"none",secure:!0,domain:".grameenphone.com",expires:1/24}),e.push({pathname:"/myoffers/nooffer",query:{offer_msisdn:C}})}catch(e){b(e.response.data.message[0].msg),console.log("errors",e.response)}else b("Please enter PIN.")};return(0,o.jsx)(s.xu,{pt:"112px",pb:"132px",backgroundColor:{base:"white",md:"#F5F5F5"},children:(0,o.jsxs)(s.xu,{w:{base:"auto",md:"416px"},p:{base:"15px",md:"32px"},m:"auto",backgroundColor:"white",children:[(0,o.jsx)(u.X,{mb:0,as:"h1",fontWeight:"700",fontSize:{base:"24px",md:"32px"},lineHeight:{base:"32px",md:"40px"},textAlign:"center",pb:"20px",children:"en"==n?"Verify Number":"নমà§à¦¬à¦° à¦à§à¦°à¦¿à¦«à¦¿à¦à§à¦¶à¦¨"}),(0,o.jsxs)(a.x,{mb:0,fontWeight:"400",fontSize:"13px",lineHeight:"18px",pb:"20px",children:["en"==n?"A PIN Number has been sent to":"à¦à¦ নমà§à¦¬à¦° à¦à¦à¦à¦¿ পিন নমà§à¦¬à¦°à§ পাঠানৠহà§à§à¦à§"," ",(0,o.jsx)("b",{children:C})," "]}),(0,o.jsxs)(d.NI,{children:[(0,o.jsxs)(p.l,{fontWeight:"700",fontSize:"13px",lineHeight:"18px",mb:"9px",mr:0,children:["en"==n?"Enter PIN number":"পিন নমà§à¦¬à¦°à¦à¦¿ লিà¦à§à¦¨"," "]}),(0,o.jsxs)(s.xu,{mb:"18px",children:[(0,o.jsx)(x.I,{type:"number",h:"48px",px:"13.5px",py:"7px",borderRadius:4.5,value:t,onChange:e=>{let{target:{value:n}}=e;return i(n)},isInvalid:!!r}),r&&(0,o.jsx)(s.xu,{display:"inline-block",fontSize:"13px",lineHeight:"20px",fontWeight:"400",textAlign:"left",color:"1a1a1a",borderBottom:"1px solid #ffb4b4","padding-top":" 6px","padding-bottom":"4px",width:"100%",children:r})]}),v?(0,o.jsx)(a.x,{cursor:"pointer",mb:0,textAlign:"center",fontWeight:"400",fontSize:"13px",lineHeight:"18px",pb:"18px",color:"#007AD0",onClick:_,children:"en"==n?"Resend Pin":"পà§à¦¨à¦°à¦¾à§ পিন পà§à¦¤à§ à¦à¦à¦¾à¦¨à§ à¦à§à¦²à¦¿à¦ à¦à¦°à§à¦¨"}):(0,o.jsxs)(a.x,{mb:0,fontWeight:"400",fontSize:"13px",lineHeight:"18px",pb:"18px",color:"#767676",textAlign:"center",children:["Resend PIN in: 0:",j," "]}),(0,o.jsx)(h.z,{onClick:N,w:"full",px:"20px",py:"11px",mt:"16px",fontWeight:"400",fontSize:"18px",lineHeight:"26px",color:"white",children:"en"==n?"Submit":"সাবমিà¦"})]})]})})};var v=t(93516),w=t(96764),j=()=>{let{locale:e,asPath:n}=(0,l.useRouter)(),t=new Date().getFullYear();return(0,o.jsxs)(s.xu,{backgroundColor:{base:"white",md:"#F5F5F5"},height:"100vh",children:[(0,o.jsxs)(r(),{children:[(0,o.jsx)("title",{children:"en"==e?"Verify Number | Grameenphone":"নমà§à¦¬à¦° à¦à§à¦°à¦¿à¦«à¦¿à¦à§à¦¶à¦¨ | à¦à§à¦°à¦¾à¦®à§à¦£à¦«à§à¦¨"}),(0,o.jsx)("meta",{property:"og:title",content:"en"==e?"Verify Number | Grameenphone":"নমà§à¦¬à¦° à¦à§à¦°à¦¿à¦«à¦¿à¦à§à¦¶à¦¨ | à¦à§à¦°à¦¾à¦®à§à¦£à¦«à§à¦¨"}),(0,o.jsx)("meta",{property:"og:url",content:"".concat("https://www.grameenphone.com").concat("en"==e?"":"/bn").concat(n)}),(0,o.jsx)("meta",{name:"keywords",content:"gp, grameenphone, best telecom, 4G"}),(0,o.jsx)("meta",{name:"description",content:"Grameenphone is the leading telecom operator with highest number of subscribers & widest network in Bangladesh, providing best 4G internet service nationwide."})]}),(0,o.jsxs)(v.Z,{children:[(0,o.jsx)(w.o,{}),(0,o.jsx)(b,{}),(0,o.jsx)(s.xu,{width:"100%",bottom:0,backgroundColor:"white",height:"98px",position:"fixed",justifyContent:"center",display:"flex",textAlign:"center",borderTop:{base:"1px solid #F5F5F5",md:"0px"},children:(0,o.jsx)(a.x,{fontWeight:"400",fontSize:"13px",lineHeight:"98px",color:"rgb(118, 118, 118)",textAlign:"center",children:"\xa9 ".concat(t," Grameenphone Limited | Part of Telenor Group")})})]})]})}},66529:function(e,n,t){"use strict";t.d(n,{l:function(){return u}});var o=t(18020),i=t(16554),r=t(27440),l=t(33179),s=t(16914),a=t(25432),c=t(85893),u=(0,i.G)(function(e,n){var t;let i=(0,r.mq)("FormLabel",e),u=(0,l.Lr)(e),{className:p,children:x,requiredIndicator:f=(0,
1c.jsx)(d,{}),optionalIndicator:h=null,...m}=u,g=(0,o.NJ)(),b=null!=(t=null==g?void 0:g.getLabelProps(m,n))?t:{ref:n,...m};return(0,c.jsxs)(s.m.label,{...b,className:(0,a.cx)("chakra-form__label",u.className),__css:{display:"block",textAlign:"start",...i},children:[x,(null==g?void 0:g.isRequired)?f:h]})});u.displayName="FormLabel";var d=(0,i.G)(function(e,n){let t=(0,o.NJ)(),i=(0,o.e)();if(!(null==t?void 0:t.isRequired))return null;let r=(0,a.cx)("chakra-form__required-indicator",e.className);return(0,c.jsx)(s.m.span,{...null==t?void 0:t.getRequiredIndicatorProps(e,n),__css:i.requiredIndicator,className:r})});d.displayName="RequiredIndicator"}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=35802)}),_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.