1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4066],{21385:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var l=n(85893),o=n(18020),i=n(66529),r=n(82140),a=n(32735),s=n(33090);let c=e=>{let{variant:t,icon:n=null,disabled:c=!1,label:u="",isError:d=!1,errorMessage:p="",successMessage:x="",placeholder:v="basic usage",height:h="48px",color:m="text.black",leftIcon:f=null,inputfieldPaddingLeft:g,backgroundColor:b,formControlPadding:_,fromControlMargin:y,inputFontSize:j,isFocused:k=()=>{},autoFocus:w=!1,onChange:S=()=>{},value:C="",onKeyDown:I=()=>{}}=e;return(0,l.jsxs)(o.NI,{isInvalid:d,padding:_,margin:y,children:[!!(null==u?void 0:u.length)&&(0,l.jsx)(i.l,{children:u}),(0,l.jsxs)(r.B,{children:[!!f&&(0,l.jsx)(a.Z,{height:"48px",width:"48px",children:f}),!!n&&(0,l.jsx)(a.x,{paddingRight:"12px",pointerEvents:"none",children:n}),(0,l.jsx)(s.I,{placeholder:v,variant:t,isDisabled:c,height:h,color:m,paddingLeft:g,_placeholder:{color:"#676767"},backgroundColor:b,fontSize:j,onFocus:k,autoFocus:w,onChange:S,value:C,onKeyDown:I})]})]})}},62576:function(e,t,n){"use strict";n.d(t,{F:function(){return c}});var l=n(85893);n(67294);var o=n(3078),i=n(93717),r=n(32883),a=n(41664),s=n.n(a);let c=e=>{let{children:t,link:n="",justifyContent:a="left",color:c="telenor.link",fontSize:u="18px",lineHeight:d="28px",fill:p,...x}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(i.k,{alignItems:"center",color:c,justifyContent:a,...x,children:[(0,l.jsx)(s(),{href:n||"/",passHref:!0,legacyBehavior:!0,children:(0,l.jsx)(r.r,{mr:"8px",fontSize:u,fontWeight:"400",lineHeight:d,_hover:{textDecoration:"none"},children:t})}),(0,l.jsx)(o.e,{fill:p})]})})}},30905:function(e,t,n){"use strict";n.d(t,{f:function(){return j}});var l=n(85893),o=n(67294),i=n(57747),r=n(93717),a=n(71293),s=n(33815),c=n(39479),u=n(62576),d=n(8163),p=n(41664),x=n.n(p),v=n(40746),h=n(31955),m=n(49282),f=n(9473),g=n(2069),b=n(45866),_=n(25517);let y=["bkash","citybank"],j=e=>{let{slug:t,from:n}=e,{delivery:p}=(0,f.v9)(e=>e.cart),j=(0,f.I0)(),[w,S]=(0,o.useState)(null),[C,I]=(0,o.useState)(null),N=(0,v.Z)("en",h.Z.get());("bKash"==h.Z.get("channelName")||"Citybank"==h.Z.get("channelName"))&&h.Z.get("micrositeService"),(0,o.useEffect)(()=>{I(localStorage.getItem("mixpanelData")?JSON.parse(localStorage.getItem("mixpanelData")):null),(async()=>{try{if("cod"!==n){let{data:{child_orders:e},status:n}=(await (0,s.NJ)({order_number:t},N)).data;if(n){let t=null==e?void 0:e.map(e=>null==e?void 0:e.order_number);S(t)}}else{let{data:{child_order_numbers:e},status:n}=(await (0,s.Zf)({order_number:t},N)).data;if(n){let t=null==e?void 0:e.map(e=>null==e?void 0:e.order_number);S(t)}}}catch(e){console.log("Transaction verification failed. ",e)}})();let e=localStorage.getItem("mixpanelData")?JSON.parse(localStorage.getItem("mixpanelData")):[],l=localStorage.getItem("ga4PurchaseData")?JSON.parse(localStorage.getItem("ga4PurchaseData")):{},o=(Array.isArray(e)?e:[]).reduce((e,t)=>{let n=(t.sku||"")+"|"+(t.variant||""),l=e.find(e=>e._key===n);return l?l.quantity=(l.quantity||1)+(t.quantity||1):e.push({...t,_key:n,quantity:t.quantity||1}),e},[]),i=JSON.parse(sessionStorage.getItem("promo")||"{}"),r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new Map(e.map(e=>[e.item_id,e]));return t.map(e=>({...e,...n.get(e.sku)||{},price:e.price}))}(null==i?void 0:i.discountedItems,o),a=function(){var e,t;arguments.length>0&&void 0!==arguments[0]&&arguments[0];let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=JSON.parse(sessionStorage.getItem("cartItemsDetails")||"{}"),o=!!sessionStorage.getItem("promo"),i=k((null==l?void 0:null===(e=l.totalPrice)||void 0===e?void 0:e.price)||0),r=k((null==l?void 0:null===(t=l.totalPrice)||void 0===t?void 0:t.vat_amount)||0),a=k(null==n?void 0:n.fee);if(!o)return i+r+a;let s=JSON.parse(sessionStorage.getItem("promo")||"{}"),c=k(null==s?void 0:s.productDiscount),u=k(null==s?void 0:s.deliveryDiscount);return i+k(null==s?void 0:s.promoVat)+a-(c+u)}([],p);(0,b.Qc)({transaction_id:t,value:a,shipping:parseFloat(l.shipping)||0,payment_type:l.payment_type||"N/A",coupon:"N/A",tax:function(){let e=JSON.parse(sessionStorage.getItem("cartItemsDetails")||"{}");if(!sessionStorage.getItem("promo")){var t;return k((null==e?void 0:null===(t=e.totalPrice)||void 0===t?void 0:t.vat_amount)||0)}let n=JSON.parse(sessionStorage.getItem("promo")||"{}");return k(null==n?void 0:n.promoVat)}()||"N/A",items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((e,t)=>({sku:(null==e?void 0:e.sku)||"N/A",discount:k(null==e?void 0:e.discount)+k(null==e?void 0:e.product_discount),price:k(null==e?void 0:e.price),coupon:(null==e?void 0:e.coupon)||"N/A",quantity:k(null==e?void 0:e.quantity),item_variant:(null==e?void 0:e.variant)||"
1N/A",index:t}))}(r)}),localStorage.removeItem("cart"),localStorage.removeItem("delivery"),localStorage.removeItem("orderId"),localStorage.removeItem("checkout"),localStorage.removeItem("ga4PurchaseData"),sessionStorage.removeItem("promo"),j((0,m.s9)({cart_item_count:null,cart_quantity_count:null,products:[],mixpanel:[],preorder:!1,token:null,order_id:null})),j((0,m.Yl)({delivery:{fee:0}}))},[]);let L=(0,o.useMemo)(()=>(0,_.Z)({whiteListedArray:y}),[]);return(0,l.jsx)(d.u,{mt:"50px",containerConfig:{maxW:"848px",px:{base:"16px",md:"0px"},py:{base:"30px",md:"50px"}},children:(0,l.jsxs)(i.xu,{p:{base:"0 8px",md:"40px 40px 20px"},mt:"25px",maxW:"420px",borderRadius:"8px",mx:"auto",mb:{base:"20px",md:"0px"},bg:"#F5F5F5",children:[(0,l.jsxs)(r.k,{pb:"22px",justifyContent:"center",alignItems:"center",pt:{base:"32px",md:"0"},children:[(0,l.jsx)(i.xu,{bg:"#8BE18D",borderRadius:"50%",w:"38px",h:"38px",height:"38px",width:"38px",display:"flex",justifyContent:"center",alignItems:"center",children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"20",viewBox:"0 0 26 20",fill:"none",children:(0,l.jsx)("path",{d:"M22.5002 1.39999L8.5002 15.5L3.5002 10.5C2.9002 9.89999 2.0002 9.89999 1.4002 10.5C0.800195 11.1 0.800195 12 1.4002 12.6L7.5002 18.7C7.8002 19 8.1002 19.2 8.6002 19.2C9.1002 19.2 9.4002 19 9.7002 18.7L24.9002 3.49999C25.4002 2.99999 25.5002 2.59999 25.4002 1.99999C25.2002 1.49999 24.8002 1.09999 24.3002 0.89999C23.5002 0.79999 22.8002 0.89999 22.5002 1.39999Z",fill:"white"})})}),(0,l.jsx)(a.x,{fontSize:"24px",lineHeight:"32px",fontWeight:"500",mb:0,ml:"10px",children:"Order Successful"})]}),(0,l.jsxs)(a.x,{fontSize:"20px",my:"10px",textAlign:"center",children:["Order NO: ",(null==w?void 0:w.length)?[t,...w].join(", "):t]}),(0,l.jsx)(a.x,{fontSize:"16px",lineHeight:"24px",fontWeight:"400",textAlign:"center",pb:"24px",mb:"0",children:"Your order has been completed. You will receive an SMS with your order details."}),(0,l.jsx)(x(),{href:L&&"alo"==h.Z.get("micrositeService")?"/shop/devices/iot-products":"/shop",children:(0,l.jsx)(c.z,{onClick:()=>(0,g.bD)("gpshop_go_to_shop",{...(0,g.hl)()}),color:"#fff",w:"full",mb:"14px",children:"Go To Shop"})}),!L&&(0,l.jsx)(x(),{href:"/shop/user/track_order",children:(0,l.jsx)(c.z,{onClick:()=>(0,g.bD)("gpshop_track_order_click",{cart:C,...(0,g.hl)()}),color:"#fff",w:"full",mb:"24px",children:"Track Order"})}),!L&&(0,l.jsx)(u.F,{justifyContent:"center",pb:"30px",children:"Go to Grameenphone Home"})]})})};function k(e){return e?Math.max(0,Math.abs(parseFloat(e))):0}},93516:function(e,t,n){"use strict";var l=n(85893),o=n(67294),i=n(66161),r=n(73220);t.Z=(0,o.memo)(function(e){let{children:t}=e,{isBackToBKashButtonVisible:n}=(0,i.Z)({channelNameApiValue:void 0,loggedInUserInfo:{show_header:void 0,show_footer:void 0}});return(0,l.jsxs)(l.Fragment,{children:[t,n&&(0,l.jsx)(r.Z,{})]})})},96764:function(e,t,n){"use strict";n.d(t,{o:function(){return x}});var l=n(85893),o=n(57747),i=n(71293),r=n(31955),a=n(11163),s=n(67294),c=n(59157),u=n(55135),d=function(e){let{className:t}=e,{currentLang:n,toggleLanguage:o,router:i,isRedirected:r}=(0,u.Z)();return(0,l.jsx)("button",{className:t,type:"button",onClick:o,children:"en"==n?"বাà¦à¦²à¦¾":"English"})},p=n(20755);let x=e=>{let{showBackIcon:t=!0}=e,{router:n,pathname:u,asPath:x,locale:v}=(0,a.useRouter)(),[h,m]=(0,s.useState)({position:"relative",borderBottom:{base:"1px solid rgba(0, 0, 0, 0.06)",md:"none"},transition:!1}),[f,g]=(0,s.useState)("");(0,s.useEffect)(()=>(window.addEventListener("scroll",b),()=>window.removeEventListener("scroll",b)));let b=()=>{g(window.scrollY)};(0,s.useEffect)(()=>{f>=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"}})},[f]);let _=(0,s.useMemo)(()=>{var e;return!!(null==x?void 0:null===(e=x.includes)||void 0===e?void 0:e.call(x,"/cfs"))},[x]);return(0,l.jsx)(l.Fragment,{children:"bKash"==r.Z.get("channelName")||"Citybank"==r.Z.get("channelName")?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(o.xu,{position:h.position,top:"0",borderBottom:h.borderBottom,width:"100%",zIndex:"99",backgroundColor:"#ededed",children:(0,l.jsxs)(o.xu,{maxWidth:"1920px",mx:"auto",py:"16px",px:"24px",display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#ffffff",children:[t&&(0,l.jsx)(o.xu,{cursor:"pointer",onClick:()=>n.back(),children:(0,l.jsx)(c.p,{})}),_&&(0,l.jsx)(o.xu,{textAlign:"center",width:{base:"60px",md:"100px"}}),(0,l.jsx)(o.xu,{left:"0",right:"0",mx:"auto",children:(0,l.jsx)(p.T,{})}),_&&(0,l.jsx)(o.xu,{textAlign:"center",width:{base:"60px",md:"100px"},children:(0,l.jsx)(d,{})}),(0,l.jsxs)(o.xu,{children:["/internet-package-activation/step-1/[slug]"==u||"/offer-purchase/step-1/[slug]"==u?(0,l.jsx)(i.x,{fontSize:"13px",lineHeight:"15px",fontWeight:"400",color:"#979797",mb:0,children:"Step 1/2"}):"","/internet-package-activation/[slug]"==u?(0,l.jsx)(i.x,{fontSize:"13px",lineHeight:"15px",fontWeight:"400",color:"#979797",mb:0,children:"Step 2/2"}):""]})]})})})}},91099:function(e,t,n){"use strict";n.d(t,{C:function(){return p}});var l=n(85893),o=n(41664),i=n.n(o),r=n(30719),a=n(8163),s=n(34773),c=n(93037),u=n.n(c),d=n(11163);let p=e=>{var t;let{offers_you_may_like_data:n,sectionTitle:o="Offers you may like",sectionTitleBangla:c="à¦à¦°à¦ দà§à¦à¦¤à§ পারà§à¦¨"}=e,{locale:p}=(0,d.useRouter)();return(0,l.jsx)(a.u,{containerConfig:{maxW:"864px",pb:"33px",px:{base:"0px",md:"8px"}},sectionTitle:"en"==p?o:c,marginTop:"20px",headingConfig:{fontSize:{base:"22px",md:"30px"},fontWeight:{base:"500",md:"500"},lineHeight:{base:"30px",md:"42px"},textAlign:"center",pb:"43px"},children:(null==n?void 0:n.data)&&(0,l.jsx)(r.tq,{slidesOffsetAfter:16,slidesOffsetBefore:16,spaceBetween:16,slidesPerView:"auto",breakpoints:{0:{slidesPerView:1.3},400:{slidesPerView:1.4},768:{slidesPerView:2.5},1064:{slidesPerView:3}},className:u().offer_like_slider,style:{userSelect:"none"},children:null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.map((e,t)=>(0,l.jsx)(r.o5,{children:(0,l.jsx)(i(),{href:e.metatag.canonical_url||"/",children:(0,l.jsx)(s.T7,{justifyContent:"center",title:e.title,learnMoreTitle:e.field_teaser,img:{src:e.field_thumb_image},textAlign:"center",color:"#767676",fill:"#767676"})})},t))})})}},55135:function(e,t,n){"use strict";var l=n(11163),o=n(67294);let i=["en","bn"],r={en:!0,default:!0,"":!0};function a(e){var t;return null!==(t=null==r?void 0:r[null!=e?e:""])&&void 0!==t&&t}t.Z=function(){let e=(0,o.useRef)(!0),[t,n]=(0,o.useState)(!1),r=(0,l.useRouter)(),[s,c]=(0,o.useState)(()=>{var t;return e.current||void 0===(null==r?void 0:r.locale)?"bn":a(null==r?void 0:r.locale)?"en":"string"!=typeof(null==r?void 0:r.locale)?"bn":(null==i?void 0:null===(t=i.includes)||void 0===t?void 0:t.call(i,null==r?void 0:r.locale))?null==r?void 0:r.locale:"bn"});return(0,o.useEffect)(()=>
1{if(null==e?void 0:e.current){var t,l;e.current=!1,c("bn"),console.log("\uD83D\uDE80 ~ useReverseDefaultLang ~ router?.locale:",null==r?void 0:r.locale),(null==r?void 0:null===(l=r.locale)||void 0===l?void 0:null===(t=l.toLowerCase())||void 0===t?void 0:t.trim())!=="bn"?r.replace("/bn".concat(null==r?void 0:r.asPath),void 0,{locale:"bn"}):n(!0)}else(null==e?void 0:e.current)||(null==r?void 0:r.locale)!=="bn"||n(!0)},[r]),{currentLang:s,toggleLanguage:(0,o.useCallback)(()=>{var e;let t=a(null==r?void 0:r.locale),n=null!==(e=i.findIndex(e=>t?"en"===e:e===(null==r?void 0:r.locale)))&&void 0!==e?e:-1,l=(null==i?void 0:i.length)-1;-1!==n&&(l=(n+1)%i.length);let o=null==i?void 0:i[l],s="".concat("en"===o?"":"/".concat(o)).concat(null==r?void 0:r.asPath);c(o),r.replace(s,void 0,{locale:o})},[r]),router:r,isRedirected:t}}},59157:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var l=n(85893);let o=()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"15",viewBox:"0 0 14 15",children:(0,l.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"})})},25517:function(e,t,n){"use strict";var l=n(31955);t.Z=function(e){let{whiteListedArray:t,cookieName:n="channelName"}=e;try{var o,i,r,a,s,c;let e=null!==(a=null===l.Z||void 0===l.Z?void 0:null===(o=l.Z.get)||void 0===o?void 0:o.call(l.Z,n))&&void 0!==a?a:"",u=(null==(e=(null==e?void 0:null===(i=e.trim)||void 0===i?void 0:i.call(e))||"")?void 0:null===(r=e.toLowerCase)||void 0===r?void 0:r.call(e))||"";if("string"!=typeof u)throw Error("".concat(n," stored in cookies is not valid"));if(!(null==u?void 0:u.length))throw Error("".concat(n," stored in cookies is empty"));let d=Array.isArray(t);if(!d||d&&!(null==t?void 0:t.length))return console.info("whiteListedArray is not a valid array and no proper information available. So returning no match (false)"),!1;let p=!1;for(let e of t){let t=typeof e;if("number"!==t&&"string"!==t){console.info("Current channel name is not valid. It must be a string or number. Current channel name: ".concat(e,", type: ").concat(typeof t));continue}let n=String(e),l=null==n?void 0:null===(s=n.trim)||void 0===s?void 0:s.call(n),o=null==l?void 0:null===(c=l.toLowerCase)||void 0===c?void 0:c.call(l);if(u===o){p=!0;break}}return p}catch(t){let e=t&&t instanceof Error?t.message:"";return console.info("Returned matched (true) to keep everything visible when ".concat(n," is not whitelisted or not found in cookies or improper whiteListedArray."),e?"checkIsCookieValueInWhitelistedList ~ error message: ":"checkIsCookieValueInWhitelistedList ~ error: ",e||t),!0}}},93037:function(e){e.exports={product_like_slider:"offer-like_product_like_slider__Q1LcT",offer_like_slider:"offer-like_offer_like_slider__VyFXy"}},66529:function(e,t,n){"use strict";n.d(t,{l:function(){return u}});var l=n(18020),o=n(16554),i=n(27440),r=n(33179),a=n(16914),s=n(25432),c=n(85893),u=(0,o.G)(function(e,t){var n;let o=(0,i.mq)("FormLabel",e),u=(0,r.Lr)(e),{className:p,children:x,requiredIndicator:v=(0,c.jsx)(d,{}),optionalIndicator:h=null,...m}=u,f=(0,l.NJ)(),g=null!=(n=null==f?void 0:f.getLabelProps(m,t))?n:{ref:t,...m};return(0,c.jsxs)(a.m.label,{...g,className:(0,s.cx)("chakra-form__label",u.className),__css:{display:"block",textAlign:"start",...o},children:[x,(null==f?void 0:f.isRequired)?v:h]})});u.displayName="FormLabel";var d=(0,o.G)(function(e,t){let n=(0,l.NJ)(),o=(0,l.e)();if(!(null==n?void 0:n.isRequired))return null;let i=(0,s.cx)("chakra-form__required-indicator",e.className);return(0,c.jsx)(a.m.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:o.requiredIndicator,className:i})});d.displayName="RequiredIndicator"}}]);
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.