1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[604],{21434:function(e,i,t){"use strict";var n,a=t(67294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(null,arguments)}var o=function(e){return a.createElement("svg",s({width:12,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=a.createElement("path",{d:"M6 8V6m0-2h.005M11 6A5 5 0 1 1 1 6a5 5 0 0 1 10 0Z",stroke:"#ED1C24",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};i.Z=o},21916:function(e,i,t){"use strict";var n,a=t(67294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(null,arguments)}var o=function(e){return a.createElement("svg",s({width:8,height:14,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=a.createElement("path",{d:"m1 13 6-6-6-6",stroke:"#221E20",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};i.Z=o},61744:function(){},62190:function(){},58880:function(){},73273:function(){},54073:function(){},47588:function(e,i,t){"use strict";var n=t(85893),a=t(3292),s=t.n(a),o=t(21434),l=t(40450),d=t(21916),c=t(1736),p=t(74595),r=t(11163),u=t(74684),_=t(1576),m=t(84117),h=t(9473),v=t(81431),f=function(e){var i=e.headline,t=(e.name,e.description),a=(e.data,e.validity,e.amount),f=e.plan,g=e.source,x=e.mediaIconsList,b=e.clickHandler,j=(0,r.useRouter)(),y=(0,h.I0)(),w=function(){var e,n;y((0,v.R_)(null==f?void 0:f.widgetTitle)),y((0,v.CB)(t)),(0,m.y)({event:"select_item",ecommerce:{currency:_.t7,items:[{item_name:i,item_id:"ADDON_".concat(null==f?void 0:f.activationId),price:null!==(e=Number((Number(a)/_.$l).toFixed(2)))&&void 0!==e?e:null,item_category:"Addon",item_category2:null!==(n=null==f?void 0:f.widgetTitle)&&void 0!==n?n:"",item_variant:null!=t?t:""},]}})},N=function(){w(),j.push({pathname:"/recharge/plandetails",query:{id:f.id,source:g}})};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:s().plan,children:[(0,n.jsx)("div",{className:s().partA,children:(0,n.jsxs)("div",{className:s().socialmediasection,children:[(0,n.jsxs)("div",{className:s().socialMediaHeading,children:[(0,n.jsx)("div",{className:"body2Ooredo",children:i}),(0,n.jsx)("div",{style:{marginLeft:"5px"},onClick:function(){return b(f)},children:(0,n.jsx)(l.Z,{children:(0,n.jsx)(o.Z,{})})})]}),(0,n.jsx)("div",{className:s().description+" body2",children:t}),(0,n.jsx)("div",{className:s().share_image_section,children:x.map(function(e,i){return(0,n.jsx)(u.Z,{src:e.mediaIconUrl,height:"17px",width:"17px"},i+"")})})]})}),(0,n.jsxs)("div",{className:s().partB,children:[(0,n.jsxs)("div",{className:s().price,children:[(0,n.jsxs)("div",{className:"h4_ooredoo ".concat(s().h4_ooredoo),children:[f.benefitTiny," ",(0,n.jsx)("span",{children:f.benefitRateTiny})]}),(0,n.jsx)("div",{className:"caption_regular ".concat(s().caption_regular),children:f.benefitUnitTiny})]}),(0,n.jsxs)("div",{className:s().validity,children:[(0,n.jsx)("div",{className:"h4_ooredoo ".concat(s().h4_ooredoo),children:f.validityTiny}),(0,n.jsx)("div",{className:"caption_regular ".concat(s().caption_regular),children:"Validity"})]}),(0,n.jsx)("div",{className:s().proceed_button,children:(0,n.jsx)(c.Z,{isShadowRequired:!1,icon:(0,n.jsx)(d.Z,{className:"stroke-red"}),iconPosition:"right",type:p.Z.OUTLINED,label:"MVR "+a,size:"small",paddingRight:"1px",style:{whiteSpace:"nowrap"},clickHandler:function(){return N(a)}})})]})]})})};i.Z=f},50711:function(e,i,t){"use strict";t.r(i);var n=t(47568),a=t(70655),s=t(85893),o=t(10139),l=t.n(o),d=t(1736),c=t(74595);t(61744),t(54073),t(73273),t(62190),t(58880),t(74684);var p=t(21916),r=t(47588),u=t(67294),_=t(47865);t(49778),t(93659);var m=t(8094);t(16502);var h=t(32357),v=t(79577),f=t(11163),g=t(14682),x=function(e){var i,t,o,x,b,j,y,w=(0,f.useRouter)(),N=(0,_.Z)({breakpoint:601}),k=(0,_.Z)({breakpoint:901}),L=e.sectionDetails,Z=(0,u.useState)(null!==(y=L.data)&&void 0!==y?y:[]),T=Z[0],E=Z[1],I=(0,u.useState)([]),D=I[0],S=I[1],B=(0,u.useState)(Math.ceil((null===(t=null===(i=L.widgets[0])||void 0===i?void 0:i.widgets[0])||void 0===t?void 0:t.t
1itle.length)*11)),H=B[0],O=B[1],R=(0,u.useState)(0),M=R[0],P=R[1],A=(0,u.useState)(null===(x=null===(o=L.widgets[0])||void 0===o?void 0:o.widgets[0])||void 0===x?void 0:x.title),q=A[0],C=A[1],G=u.createRef(),V=(0,u.useState)(!1),z=V[0],U=V[1],W=(0,u.useState)(!1);W[0],W[1];var F=function(){w.push({pathname:"/explore-packs",query:{context:L.context,source:"adons"}})};(0,u.useEffect)(function(){var e,i,t,n,a,s,o,l=document.createElement("canvas").getContext("2d").measureText(null===(i=null===(e=L.widgets[0])||void 0===e?void 0:e.widgets[0])||void 0===i?void 0:i.title).width;O(Math.ceil((null===(n=null===(t=L.widgets[0])||void 0===t?void 0:t.widgets[0])||void 0===n?void 0:n.title.length)*10.5)),O(1.9*Math.ceil(l)),document.getElementById("a_0_div")&&(P(document.getElementById("a_0_div").offsetLeft),O(document.getElementById("a_0_div").offsetWidth)),P(0),E(null!==(o=L.data)&&void 0!==o?o:[]),C(null===(s=null===(a=L.widgets[0])||void 0===a?void 0:a.widgets[0])||void 0===s?void 0:s.title),T&&T.length>0&&G&&G.current&&(G.current.scrollLeft=0)},[w.query]),(0,u.useEffect)(function(){document.getElementById("a_0_div")&&(P(document.getElementById("a_0_div").offsetLeft),O(document.getElementById("a_0_div").offsetWidth))},[]);var K=function(e,i){G.current.scrollLeft=i.target.offsetLeft,P(i.target.offsetLeft),O(i.target.offsetWidth),C(e),J(e)},J=function(e){(0,n.Z)(function(){var i;return(0,a.__generator)(this,function(i){switch(i.label){case 0:return[4,(0,m.GV)("product/getPostpaidPlans",e,L.id)];case 1:return E(i.sent()),[2]}})})()},X=function(e,i){S(e),U(!0),N||(document.getElementById("overlay").style.visibility="unset")},Q=function(){U(!1)};return(0,s.jsxs)(s.Fragment,{children:[(null===(b=null==L?void 0:L.widgets[0])||void 0===b?void 0:null===(j=b.widgets)||void 0===j?void 0:j.length)>0&&(0,s.jsx)("section",{className:l().section,children:(0,s.jsx)(g.Z,{children:(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:l().heading,children:L.widgets[0].displayTitle}),(0,s.jsxs)("div",{className:l().buttonssection,ref:G,children:[L.widgets[0].widgets.map(function(e,i){return(0,s.jsx)(d.Z,{id:"a_"+i,isShadowRequired:!1,isHoverEnabled:!1,type:c.Z.TEXT,label:e.displayTitle,backgroundColor:"transparent",style:{zIndex:"1000"},color:q==e.title?"#ffffff":"#221E20",clickHandler:function(i){return K(e.title,i)}},i+"")}),(0,s.jsx)("div",{style:{backgroundColor:"var(--primary-red-color)",height:30,width:H,position:"absolute",zIndex:999,borderRadius:48,left:M,transition:"all 0.5s cubic-bezier(0, 0, 0.2, 1) 0s",margin:"5px 0px"}})]}),(0,s.jsx)("div",{className:l().planssection,children:T&&T.length>0?T.map(function(e,i){if(N){if(i<3)return(0,s.jsx)(r.Z,{source:"postpaid",headline:e.name,description:e.moreDetails,data:e.benefitText,validity:e.validityLongText,amount:e.amount,mediaIconsList:e.mediaIconsList,plan:e,clickHandler:function(i){return X(e,i)}},i+"")}else if(k){if(i<4)return(0,s.jsx)(r.Z,{source:"postpaid",headline:e.name,description:e.moreDetails,data:e.benefitText,validity:e.validityLongText,amount:e.amount,mediaIconsList:e.mediaIconsList,plan:e,clickHandler:function(i){return X(e,i)}},i+"")}else if(i<6)return(0,s.jsx)(r.Z,{source:"postpaid",headline:e.name,description:e.moreDetails,data:e.benefitText,validity:e.validityLongText,amount:e.amount,mediaIconsList:e.mediaIconsList,plan:e,clickHandler:function(i){return X(e,i)}},i+"")}):"No Packs found for selected category"}),T&&T.length>0&&(0,s.jsxs)("div",{className:l().buttonexplore,children:[" ",(0,s.jsx)(d.Z,{isShadowRequired:!1,paddingLeft:16,paddingRight:16,paddingTop:16,paddingBottom:16,backgroundColor:"#DDDDDD",icon:(0,s.jsx)(p.Z,{className:"stroke-red"}),type:c.Z.TEXT,label:"Explore All Packs",clickHandler:function(){return F()}})]})]})},"postpaid_plan")}),N?(0,s.jsx)(h.Z,{show:z,placement:"BOTTOM",close:Q,children:(0,s.jsx)("div",{style:{padding:"45px 22px"},children:(0,s.jsxs)("div",{className:l().mobilepopupcontainer,children:[(0,s.jsx)("div",{className:l().mobilepopuptitle,children:D.name}),(0,s.jsxs)("div",{className:l().mobilepopupbody,children:[(0,s.jsxs)("div",{className:l().mobilepopupdetails,children:[(0,s.jsx)("div",{className:l().mobilepopupdetailsheading,children:"Details"}),(0,s.jsxs)("div",{className:l().mobilepopupdetailsdata,children:[D.benefitText," "]})]}),(0,s.jsxs)("div",{className:l().mobilepopuprates,children:[(0,s.jsx)("div",{className:l().mobilepopupratesheading,children:"Rates"}),(0,s.jsxs)("div",{className:l().mobilepopupratesdata,children:[D.amount," "]})]})]})]})})}):(0,s.jsx)(v.Z,{visible:z,setShowMoreDetails:U,children:(0,s.jsx)("div",{style:{padding:"45px 22px"},children:(0,s.jsxs)("div",{className:l().mobilepopupcontainer,children:[(0,s.jsx)("div",{className:l().mobilepopuptitle,children:D.name}),(0,s.jsxs)("div",{className:l().mobilepopupbody,children:[(0,s.jsxs)("div",{className:l().mobilepopupdetails,children:[(0,s.jsx)("div",{className:l().mobilepopupdetailsheading,children:"Details"}),(0,s.jsxs)("div",{className:l().mobilepopupdetailsdata,children:[D.details," "]})]}),(0,s.jsxs)("div",{className:l().mobilepopuprates,children:[(0,s.jsx)("div",{className:l().mobilepopupratesheading,children:"Rates"}),(0,s.jsxs)("div",{className:l().mobilepopupratesdata,children:[D.amount," "]})]})]})]})})})]})};i.default=x},84117:function(e,i,t){"use strict";t.d(i,{y:function(){return n}});var n=function(e){window.dataLayer&&window.dataLayer.push(e)}},3292:function(e){e.exports={plan:"plan_plan__Vif0n",socialMediaHeading:"plan_socialMediaHeading__dKPc_",description:"plan_description__iQ1xI",share_image_section:"plan_share_image_section__Px7Tc",partA:"plan_partA__TGs6L",partB:"plan_partB___h_wt",price:"plan_price__3rRLa",h4_ooredoo:"plan_h4_ooredoo__us1cp",caption_regular:"plan_caption_regular__vLF9_",proceed_button:"plan_proceed_button___TEia"}},10139:function(e){e.exports={section:"postpaid-plans-section_section__HoE1P",heading:"postpaid-plans-section_heading__3PKZ9",buttonssection:"postpaid-plans-section_buttonssection__Ga_oc",planssection:"postpaid-plans-section_planssection__KdOIl",plan:"postpaid-plans-section_plan__yZSd1",socialmediasubtitle:"postpaid-plans-section_socialmediasubtitle__gUGZu",socialmediaheading:"postpaid-plans-section_socialmediaheading__OOMUj",description:"postpaid-plans-section_description__ngr5I",title:"postpaid-plans-section_title__869_4",share_image_section:"postpaid-plans-section_share_image_section__r0lSD",plandesc:"postpaid-plans-section_plandesc__hMhb_",price:"postpaid-plans-section_price__1PIDd",pricequantity:"postpaid-plans-section_pricequantity__kH6f0",pricedesc:"postpaid-plans-section_pricedesc__PVwrs",validity:"postpaid-plans-section_validity__JjlIp",validityquantity:"postpaid-plans-section_validityquantity__TqrE8",validitydesc:"postpaid-plans-section_validitydesc__RM7SL",proceed_button:"postpaid-plans-section_proceed_button__Z87pJ",buttonexplore:"postpaid-plans-section_buttonexplore__nMGeS",partA:"postpaid-plans-section_partA__WDOmB",mobilepopupcontainer:"postpaid-plans-section_mobilepopupcontainer__BBdH5",mobilepopuptitle:"postpaid-plans-section_mobilepopuptitle__SAVes",mobilepopupbody:"postpaid-plans-section_mobilepopupbody__fCHu_",mobilepopupdetails:"postpaid-plans-section_mobilepopupdetails__Gzi8O",mobilepopupdetailsheading:"postpaid-plans-section_mobilepopupdetailsheading__A7sUG",mobilepopupdetailsdata:"postpaid-plans-section_mobilepopupdetailsdata__Ad6aZ",mobilepopuprates:"postpaid-plans-section_mobilepopuprates__fwHol",mobilepopupratesheading:"postpaid-plans-section_mobilepopupratesheading__r5ezn",mobilepopupratesdata:"postpaid-plans-section_mobilepopupratesdata__oenxd"}}}]);
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.