1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1207],{52849:function(e,t,l){"use strict";l.d(t,{Z:function(){return x}});var s=l(85893),r=l(67294),n=l(95011),a=l.n(n),i=l(1485),o=l(86619),d=l(11163),c=l(77029);c.jq,c.jq,c.jq,c.jq,c.jq,c.jq,c.jq,c.vd,c.jq;let u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\w\s]/g,"")};var x=e=>{let{handleKeySearched:t,handleSuggestionClick:l,setShowSuggetionsDropdown:n}=e,c=(0,r.useRef)(null),x=(0,d.useRouter)(),h="string"==typeof x.query.q?x.query.q:"",[p,m]=(0,r.useState)(h);return(0,r.useEffect)(()=>{m(h)},[h]),(0,s.jsx)("div",{className:a()["search-items"],children:(0,s.jsx)("div",{className:"input-search flex items-stretch rounded-[8px] ".concat(a()["global-search-input-bg-color"]),children:(0,s.jsxs)("div",{className:"w-full rounded-[8px] flex items-center relative ".concat(a()["search-box"]),children:[(0,s.jsx)("input",{ref:c,value:p,placeholder:"Find products, services and more...",onChange:e=>{var l;let s=u(e.target.value||"");if(m(s),(null==s?void 0:null===(l=s.trim())||void 0===l?void 0:l.length)<2){null==n||n(!1);return}t({...e,target:{...e.target,value:s||""}})},onKeyDown:e=>{if("Enter"===e.key){var t,s,r;e.preventDefault();let a=u((null===(t=c.current)||void 0===t?void 0:t.value)||"");if((null==a?void 0:null===(s=a.trim())||void 0===s?void 0:s.length)<2){null==n||n(!1);return}l(a||""),null===(r=c.current)||void 0===r||r.blur()}},className:"px-2 border-[1px] focus:border-none focus:outline-none md:py-[12.5px] lg:py-5 xl:pl-6 w-full h-full text-body-m font-Telkom123-Regular placeholder:font-Telkom123-Regular text-[#005288] rounded-[8px] placeholder-shown:opacity-70 placeholder-shown:text-[#7D8B94] !border-[#DADEE0] caret-secondary-grey outline-none md:placeholder:text-body-m"}),(0,s.jsxs)("div",{className:"absolute right-0 flex gap-3 items-center",children:[p&&(0,s.jsx)("button",{onClick:()=>{var e;m(""),t({target:{value:""}}),null===(e=c.current)||void 0===e||e.blur()},children:(0,s.jsx)(i.ZP,{alt:"Close",src:o.a$,width:13,height:13})}),(0,s.jsx)("button",{className:" bg-[#88D0FF] rounded-[8px] px-3 md:px-6 lg:px-[20px] py-[7.5px] lg:py-[20px] md:py-3 ",onClick:()=>{var e;let t=u(p||"");if((null==t?void 0:null===(e=t.trim())||void 0===e?void 0:e.length)<2){null==n||n(!1);return}l(t||"")},children:(0,s.jsx)(i.ZP,{alt:"Search",src:"/assets/images/header/search.svg",width:24,height:24})})]})]})})})}},29353:function(e,t,l){"use strict";function s(e){if(!e||"string"!=typeof e||""===e.trim())return null;try{let{pathname:t,search:l}=new URL(e);return t+l}catch(t){return console.error("â Invalid URL:",e,t.message),null}}l.d(t,{j1:function(){return s}}),l(77014)},6924:function(e,t,l){"use strict";l.d(t,{Z:function(){return E},t:function(){return S}});var s=l(85893),r=l(67294),n=l(96337),a=l(73294),i=l(77585),o=l(23279),d=l.n(o),c=l(51241),u=l(5152),x=l.n(u),h=l(86619),p=l(1485),m=l(82461),v=l.n(m),f=l(52849),g=l(66200);let b=x()(()=>Promise.all([l.e(5383),l.e(8836)]).then(l.bind(l,68836)),{loadableGenerated:{webpack:()=>[68836]},ssr:!1}),w=e=>{let{activeGroup:t,close:l,handleSuggestionClick:r}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"md:block md:search-content-display mt-5 mb-3 md:my-5",children:(0,s.jsxs)("div",{className:"row mt-5 search_btn",children:[(0,s.jsx)("p",{className:"font-Telkom123-Bold text-body-s text-[#005288] mb-3 md:mb-5 ",children:"Popular searches"}),(0,s.jsx)("div",{className:"flex justify-start gap-3",children:(0,s.jsxs)("ul",{className:"flex gap-2 flex-nowrap overflow-y-scroll "+v()["search-category-items"],style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:[(0,s.jsx)("li",{className:"min-w-[90px]",children:(0,s.jsx)(g.default,{onClick:()=>r("samsung"),className:"block font-Telkom123-Regular text-body-xs lg:text-body-s rounded-[8px] text-center text-[#0099FF] p-2 border border-[#0099FF] hover:shadow-[4px_4px_4px_0px_#002E4D4D,2px_2px_0px_0px_#51647166] hover:bg-[#F3F4F5]",children:"Samsung"})}),(0,s.jsx)("li",{className:"min-w-[90px]",children:(0,s.jsx)(g.default,{onClick:()=>r("fibre"),className:"block font-Telkom123-Regular text-body-xs lg:text-body-s rounded-[8px] text-center text-[#0099FF] p-2 border border-[#0099FF] hover:shadow-[4px_4px_4px_0px_#002E4D4D,2px_2px_0px_0px_#51647166] hover:bg-[#F3F4F5]",children:"Fibre"})}),(0,s.jsx)("li",{className:"min-w-[90px]",children:(0,s.jsx)(g.default,{onClick:()=>r("deals"),className:"block font-Telkom123-Regular text-body-xs lg:text-body-s rounded-[8px] text-center text-[#0099FF] p-2 border border-[#0099FF] hover:shadow-[4px_4px_4px_0px_#002E4D4D,2px_2px_0px_0px_#51647166] hover:bg-[#F3F4F5]",children:"Deals"})})]})})]})})})};var j=e=>{let{flow:t,viewState:l,searchSuggestions:n,isLoading:a=!1,globalSearchPopupOpen:i=!1,sortPopupOpen:o=!1,searchSuggestionsTerm:d="",activeGroup:c="",activeSort:u="",sortOptions:x=[],showSuggestionDropdown:m=!1,elasticSearchResponse:g,eurekaSearchResponse:j,handleDeleteHistorySuggestion:y=e=>{},setShowSuggetionsDropdown:C=e=>{},toggleGlobalSearchPopup:k=e=>{},toggleSortPopup:N=()=>{},onChangeSearch:_=e=>{},onChangeGroup:L=e=>{},onChangeSort:F=e=>{},onSearchClick:E=e=>{},close:T=()=>{}}=e,R=(0,r.useMemo)(()=>o?"overflow-y-auto":"",[o]);if((0,r.useEffect)(()=>(i?document.body.style.overflow="hidden":document.body.style.overflow="auto",()=>{document.body.style.overflow="auto"}),[i]),!i)return null;let M=e=>{d=e,E(e),C(!1)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"relative z-10 ",children:(0,s.jsx)("div",{className:"".concat(v().animation," overflow-y-auto"),children:(0,s.jsx)("div",{className:"flex min-h-full justify-center text-center",children:(0,s.jsx)("div",{className:"w-full bg-white text-left align-middle shadow-xl pb-6 ".concat(v()["popup-bg-color"]),children:(0,s.jsxs)("div",{className:" px-5 md:px-24 rounded-md mx-auto relative pt-5 mt-16 max-w-[1370px] "+v()["global-search"],children:[(0,s.jsxs)("div",{className:"flex flex-row justify-center items-center popup-close cursor-pointer gap-2 absolute right-4 md:right-24 -top-10 ",onClick:()=>k(!1),children:[(0,s.jsx)("span",{className:"underline font-Telkom123-Bold text-button-s lg:text-button-l text-[#0099FF] md:pr-1",children:"Close"}),(0,s.jsx)(p.ZP,{className:"cursor-pointer mt-[7px] md:mt-[8px] "+v()["cross-icon"],alt:"Icon",fallbackurl:"/assets/images/global-search/close.svg",src:h.x8,layout:"intrinsic",width:12,height:12})]}),(0,s.jsx)(f.Z,{search:d,selectedValue:c,handleKeySearched:_,handleSelectChange:L,handleSuggestionClick:M,setIsUserTyping:()=>{}}),(0,s.jsx)(w,{activeGroup:c,close:T,handleSuggestionClick:M}),a?(0,s.jsxs)("div",{className:"absolute bg-white border top-16 sm:top-[5.5rem] rounded-[8px] w-full max-w-[90%] md:max-w-[75%] xl:max-w-[81%] 2xl:max-w-[86%] z-[600] px-4 py-2 flex items-baseline gap-[5px] font-body-m font-Telkom123-Bold text-[#005288]",children:[(0,s.jsx)("span",{children:"Loading"})," ",(0,s.jsx)("span",{className:"dot"}),(0,s.jsx)("span",{className:"dot"}),(0,s.jsx)("span",{className:"dot"})]}):(0,s.jsx)(s.Fragment,{children:l.shouldShowEqureSearchView&&m&&(0,s.jsx)("div",{className:"absolute bg-white border top-16 max-h-72 overflow-y-scroll md:top-20 lg:top-24 2xl:top-[5.4rem] rounded-[8px] w-full max-w-[90%] md:max-w-[75%] xl:max-w-[81%] 2xl:max-w-[86%] z-[600]",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:n.data.length>0?n.data.map((e,t)=>(0,s.jsxs)("div",{className:"group border-b-[1px] last:border-none first:rounded-t-[8px] last:rounded-b-[8px] rounded-none flex text-[14px] font-Telkom123-Regular text-[#005288] cursor-pointer hover:bg-gray-100 py-4 px-[15px] relative",onClick:()=>M(e.phrase),children:["history"===e.type?(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.25 9H12.75V12.31L14.055 13.7455L12.945 14.7545L11.25 12.89V9Z",fill:"#005288"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6C14.22 6 16.1597 7.2059 17.1975 9H15V10.5H19.5V6H18V7.49954C16.6321 5.6786 14.4542 4.5 12 4.5C7.85787 4.5 4.5 7.85786 4.5 12C4.5 16.1421 7.85786 19.5 12 19.5C16.1421 19.5 19.5 16.1421 19.5 12H18Z",fill:"#005288"})]}):(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 10.5C15 12.9853 12.9853 15 10.5 15C8.01472 15 6 12.9853 6 10.5C6 8.01472 8.01472 6 10.5 6C12.9853 6 15 8.01472 15 10.5ZM14.1793 15.2399C13.1632 16.0297 11.8865 16.5 10.5 16.5C7.18629 16.5 4.5 13.8137 4.5 10.5C4.5 7.18629 7.18629 4.5 10.5 4.5C13.8137 4.5 16.5 7.18629 16.5 10.5C16.5 11.8865 16.0297 13.1632 15.2399 14.1792L20.0304 18.9697L18.9697 20.0303L14.1793 15.2399Z",fill:"#005288"})}),S(e.phrase,d),"history"===e.type&&(0,s.jsx)("button",{className:" text-xs ml-2 absolute right-10 hidden group-hover:flex ",onClick:t=>{t.stopPropagation(),y(e.phrase)},children:(0,s.jsx)(p.ZP,{className:"cursor-pointer mt-1 md:mt-0.5 "+v()["cross-icon"],alt:"Icon",fallbackurl:"/assets/images/global-search/close.svg",src:h.x8,layout:"intrinsic",width:22,height:22})})]},t)):(0,s.jsx)("div",{className:"px-4 py-2 text-[#005288] italic",onClick:()=>M(d),children:'You are searching for "'.concat(d,'"')})})})]})})})})}),o&&(0,s.jsx)(b,{flow:null==t?void 0:t.toLowerCase(),isOpen:!0,closeModal:N,sortByList:x,selectedSortItem:u,applySorting:F,overflowClass:R})]})},y=l(11163),C=l(23403),k=l(47734),N=l.n(k);let _=x()(()=>Promise.all([l.e(5383),l.e(8836)]).then(l.bind(l,68836)),{loadableGenerated:{webpack:()=>[68836]},ssr:!1});var L=e=>{let{flow:t,viewState:l,searchSuggestions:a,isLoading:o=!1,globalSearchPopupOpen:d=!1,sortPopupOpen:c=!1,searchSuggestionsTerm:u="",activeGroup:x="",activeSort:m="",sortOptions:v=[],showSuggestionDropdown:g=!1,handleDeleteHistorySuggestion:b=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l]},setShowSuggetionsDropdown:w=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l]},toggleGlobalSearchPopup:j=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l]},toggleSortPopup:C=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l]},onChangeSearch:k=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l]},onChangeGroup:L=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l]},onChangeSort:F=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l]},onSearchClick:E=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l]},close:T=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l]},isSearchSubmittedRef:R}=e,M=(0,r.useMemo)(()=>c?"overflow-y-auto":"",[c]),B=(0,y.useRouter)(),P=(0,n.TL)();(0,r.useEffect)(()=>{"string"==typeof B.query.q&&P((0,i.e8)(B.query.q))},[B.query.q,P]);let Z=e=>{R.current=!0,u=e,E(e),w(!1)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mx-auto px-6 relative",children:(0,s.jsxs)("div",{className:"relative w-[385px]",children:[(0,s.jsx)(f.Z,{search:u,selectedValue:x,handleKeySearched:k,handleSelectChange:L,handleSuggestionClick:Z,setIsUserTyping:()=>{},setShowSuggetionsDropdown:w}),o?(0,s.jsxs)("div",{className:"absolute bg-white border top-16 sm:top-[5.5rem] rounded-[8px] w-full max-w-[90%] md:max-w-[75%] xl:max-w-[81%] 2xl:max-w-[86%] z-[600] px-4 py-2 flex items-baseline gap-[5px] font-body-m font-Telkom123-Bold text-[#005288]",children:[(0,s.jsx)("span",{children:"Loading"})," ",(0,s.jsx)("span",{className:"dot"}),(0,s.jsx)("span",{className:"dot"}),(0,s.jsx)("span",{className:"dot"})]}):(0,s.jsx)(s.Fragment,{children:l.shouldShowEqureSearchView&&g&&(0,s.jsx)("div",{className:"absolute bg-white border top-16 max-h-72 overflow-y-scroll md:top-20 lg:top-22 2xl:top-[4.4rem] rounded-[8px] w-full max-w-[90%] md:max-w-[75%] xl:max-w-[81%] 2xl:max-w-[86%] z-[600]",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:a.data.length>0?a.data.map((e,t)=>(0,s.jsxs)("div",{className:"group border-b-[1px] last:border-none first:rounded-t-[8px] last:rounded-b-[8px] rounded-none flex text-[14px] font-Telkom123-Regular text-[#005288] cursor-pointer hover:bg-gray-100 py-4 px-[15px] relative",onClick:()=>Z(e.phrase),children:["history"===e.type?(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.25 9H12.75V12.31L14.055 13.7455L12.945 14.7545L11.25 12.89V9Z",fill:"#005288"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6C14.22 6 16.1597 7.2059 17.1975 9H15V10.5H19.5V6H18V7.49954C16.6321 5.6786 14.4542 4.5 12 4.5C7.85787 4.5 4.5 7.85786 4.5 12C4.5 16.1421 7.85786 19.5 12 19.5C16.1421 19.5 19.5 16.1421 19.5 12H18Z",fill:"#005288"})]}):(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 10.5C15 12.9853 12.9853 15 10.5 15C8.01472 15 6 12.9853 6 10.5C6 8.01472 8.01472 6 10.5 6C12.9853 6 15 8.01472 15 10.5ZM14.1793 15.2399C13.1632 16.0297 11.8865 16.5 10.5 16.5C7.18629 16.5 4.5 13.8137 4.5 10.5C4.5 7.18629 7.18629 4.5 10.5 4.5C13.8137 4.5 16.5 7.18629 16.5 10.5C16.5 11.8865 16.0297 13.1632 15.2399 14.1792L20.0304 18.9697L18.9697 20.0303L14.1793 15.2399Z",fill:"#005288"})}),S(e.phrase,u),"history"===e.type&&(0,s.jsx)("button",{className:" text-xs ml-2 absolute right-10 hidden group-hover:flex ",onClick:t=>{t.stopPropagation(),b(e.phrase)},children:(0,s.jsx)(p.ZP,{className:"cursor-pointer mt-1 md:mt-0.5 "+N()["cross-icon"],alt:"Icon",fallbackurl:"/assets/images/global-search/close.svg",src:h.x8,layout:"intrinsic",width:22,height:22})})]},t)):(0,s.jsx)("div",{className:"px-4 py-2 text-[#005288] italic",onClick:()=>Z(u),children:'You are searching for "'.concat(u,'"')})})})]})}),c&&(0,s.jsx)(_,{flow:null==t?void 0:t.toLowerCase(),isOpen:!0,closeModal:C,sortByList:v,selectedSortItem:m,applySorting:F,overflowClass:M})]})},F=l(21876).Buffer;let S=(e,t)=>{if(!e||!t)return(0,s.jsx)("span",{children:e});let l=t.replace(/[.*+?^${}
1()|[\]\\]/g,"\\$&").split(/\s+/).filter(Boolean),r=RegExp("\\b(".concat(l.join("|"),")"),"gi"),n=e.split(r);return(0,s.jsx)("p",{className:"ml-2 lg:ml-[10px]",children:n.map((e,t)=>r.test(e)?(0,s.jsx)("span",{className:"font-Telkom123-Bold",children:e},t):(0,s.jsx)("span",{children:e},t))})};var E=e=>{var t;let{close:l}=e,o=(0,y.useRouter)(),u=(0,n.TL)(),{flow:x,globalSearchPopUp:h}=(0,n.CG)(a.Yv),p=(0,n.iP)(),[m,v]=(0,r.useReducer)(i.OI,i.E3),[f,g]=(0,r.useState)(!1),[b,w]=(0,r.useState)(!1),k=(0,r.useRef)(!1);(0,r.useEffect)(()=>{x&&v((0,i.YK)(x))},[x]);let{searchProvider:N,response:_,eurekaSearchResponse:S,loading:E,filter:T,sort:R,group:M,searchSuggestions:B,searchSuggestionsTerm:P}=m,Z="loading"===_.status&&N===c.cM.ELASTIC||E,D="searchHistory";(0,r.useEffect)(()=>{var e,t,l;let s=(null==B?void 0:null===(e=B.data)||void 0===e?void 0:e.length)>0,r=!!(null==P?void 0:P.trim());if(!((null==S?void 0:null===(l=S.data)||void 0===l?void 0:null===(t=l.items)||void 0===t?void 0:t.length)>0)&&(s||r)?w(!0):w(!1),k.current){w(!1);return}},[null==B?void 0:B.data,P,null==S?void 0:null===(t=S.data)||void 0===t?void 0:t.items]);let I=(0,r.useMemo)(()=>{let{deals:e,products:t,status:l}=_;if(N===c.cM.EUREKA)return{status:l,shouldShowEqureSearchView:!0};let s=!!e.length,r=!!t.length,n=s||r;return{status:l,sortFilterView:!0,hasItems:n,hasDeals:s,hasProducts:r,responsiveSortFilterView:n||s&&r,shouldShowDealsList:(T===i.gU.ALL||T===i.gU.PRODUCTS)&&s,shouldShowProductsList:(T===i.gU.ALL||T===i.gU.PRODUCTS)&&r}},[N,_,T]),H=()=>g(e=>!e),A=e=>{!e&&p.width>768&&l(),u(a.rY.setGlobalSearchPopUp(e))},V=e=>{v((0,i.HD)(e))},O=(0,r.useCallback)(d()(i.Xc,600),[]),G=(0,r.useCallback)(e=>{O({dispatch:v,searchSuggestionsTerm:e,vendorType:M})},[M,v]),U=(0,r.useCallback)(e=>{v((0,i.oA)()),k.current=!1;let t=e.target.value;if(v((0,i.e8)(t)),!e.target.value){w(!1);return}G(t)},[M]),q=(0,r.useCallback)(e=>{v((0,i.oA)()),v((0,i.YK)(e.value)),O({dispatch:v,searchSuggestionsTerm:P,vendorType:e.value})},[P,O]),[Y,z]=(0,r.useState)((()=>{try{return JSON.parse(sessionStorage.getItem(D)||"[]")}catch(e){return[]}})()),W=e=>{if(null==e?void 0:e.trim())try{let t=JSON.parse(sessionStorage.getItem(D)||"[]");(t=t.filter(t=>t!==e)).unshift(e),t.length>2&&(t=t.slice(0,2)),sessionStorage.setItem(D,JSON.stringify(t)),z(t)}catch(e){}},J=e=>{try{let t=Y.filter(t=>t!==e);sessionStorage.setItem(D,JSON.stringify(t)),z(t)}catch(e){}},K=()=>{let e=new Date().toISOString(),t=(0,C.WJ)(C.zU),l="".concat(t,"~").concat(P,"~").concat(e);return F.from(l).toString("base64")},Q=(0,r.useCallback)(e=>{W(e),u((0,i.qP)(e));let t=K();sessionStorage.setItem("SEARCH_SESSION_ID",t),u((0,i.oA)()),o.push({pathname:"/search",query:{q:e,sort:R}}),w(!1),l&&l()},[M,v,w]),$=(0,r.useMemo)(()=>[...Y.slice(0,2).map(e=>({phrase:e,type:"history"})),...((null==B?void 0:B.data)||[]).map(e=>({...e,type:"api"}))],[B,Y]);return e.newNav?(0,s.jsx)(L,{flow:M===i.oG.GENERAL?i.oG.PERSONAL:M,isLoading:Z,viewState:I,searchSuggestions:{data:$},globalSearchPopupOpen:h||!0,sortPopupOpen:f,searchSuggestionsTerm:P,activeGroup:M,activeSort:R,sortOptions:i.yt.sort,toggleGlobalSearchPopup:A,toggleSortPopup:H,onChangeSearch:U,onChangeGroup:q,onChangeSort:V,onSearchClick:Q,showSuggestionDropdown:b,close:l,handleDeleteHistorySuggestion:J,isSearchSubmittedRef:k}):(0,s.jsx)(j,{flow:M===i.oG.GENERAL?i.oG.PERSONAL:M,isLoading:Z,viewState:I,searchSuggestions:{data:$},globalSearchPopupOpen:h||!0,sortPopupOpen:f,searchSuggestionsTerm:P,activeGroup:M,activeSort:R,sortOptions:i.yt.sort,toggleGlobalSearchPopup:A,toggleSortPopup:H,onChangeSearch:U,onChangeGroup:q,onChangeSort:V,onSearchClick:Q,showSuggestionDropdown:b,close:l,elasticSearchResponse:_,eurekaSearchResponse:S,handleDeleteHistorySuggestion:J})}},91807:function(e,t,l){"use strict";l.d(t,{Z:function(){return i}});var s=l(85893);l(67294);var r=l(34243),n=l.n(r),a=e=>{let{children:t,style:l}=e;return(0,s.jsx)("div",{className:"w-[60px] h-[60px] z-[1] absolute backdrop-blur-[blur(2px)] shadow-[0px_5px_8px_rgba(0,_143,_224,_0.15)] rounded-full",style:l,children:(0,s.jsxs)("div",{className:"".concat(n().main," bg-[").concat(l.backgroundColor,"]"),children:[(0,s.jsx)("div",{className:"".concat(n().topTip," bg-[").concat(l.backgroundColor,"]")}),(0,s.jsx)("div",{className:"".concat(n().sub," bg-[").concat(l.backgroundColor,"]")}),(0,s.jsx)("p",{className:n().para,children:t})]})})},i=e=>{let{children:t,className:l,style:r,shapeType:n="",...i}=e;return"bell"===n?(0,s.jsx)(a,{style:r,...i,children:t}):(0,s.jsx)("span",{style:r,className:"px-[10px] py-[7px] text-display-xl-xs3 ".concat(l||""),children:t})}},95187:function(e,t,l){"use strict";var s=l(85893),r=l(67294);t.Z=e=>{let{price:t,className:l,centsClassName:n,digitClassName:a}=e,i=(0,r.useMemo)(()=>{let e={price:"",cents:""};if(t){let l=t.split(",");e.price=l[0],2===l.length&&(e.cents=l[1])}return e},[t]);return(0,s.jsxs)("span",{className:l||"",children:[(0,s.jsx)("span",{className:a||"",children:i.price}),i.cents?(0,s.jsx)("sup",{className:n||"",children:i.cents}):""]})}},91207:function(e,t,l){"use strict";l.d(t,{ZP:function(){return ez},Yw:function(){return eY}});var s=l(85893),r=l(166),n=l(67294),a=l(96337),i=l(10642),o=l(73294),d=l(74319),c=l(23403),u=l(62283),x=l(56546),h=l(53195);let p=()=>(0,s.jsxs)("svg",{width:"129",height:"52",viewBox:"0 0 129 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{"clip-path":"url(#clip0_336_7060)",children:[(0,s.jsx)("path",{d:"M32.87 14.1926H27.8892V18.9156H32.87C33.0108 18.15 33.0844 17.3608 33.0844 16.5541C33.0844 15.7474 33.0108 14.9582 32.87 14.1926Z",fill:"#91E200"}),(0,s.jsx)("path",{d:"M114.32 37.5572V26.9608C114.32 22.4385 112.484 20.3325 108.543 20.3325C106.504 20.3325 104.852 21.2474 103.738 22.9849C102.911 21.2247 101.223 20.3325 98.7123 20.3325C96.8561 20.3325 95.2734 21.1298 94.1947 22.5929C94.1187 22.1509 93.9723 21.4514 93.8462 21.0688C93.7999 20.929 93.7531 20.836 93.7177 20.777C93.0385 20.6405 92.3362 20.5687 91.6169 20.5687C90.8976 20.5687 90.2057 20.6395 89.5312 20.7736V37.5572C90.3559 37.7216 91.2084 37.8075 92.0807 37.8075C92.953 37.8075 93.8055 37.7211 94.6302 37.5572V28.8093C94.6302 25.9892 95.4647 24.7858 97.4215 24.7858C98.8941 24.7858 99.3763 25.6308 99.3763 28.1344V37.5572C100.201 37.7211 101.053 37.8075 101.926 37.8075C102.799 37.8075 103.651 37.7216 104.475 37.5572V28.8093C104.475 25.9892 105.31 24.7858 107.266 24.7858C108.739 24.7858 109.221 25.6308 109.221 28.1344V37.5568C110.045 37.7206 110.898 37.8071 111.77 37.8071C112.643 37.8071 113.495 37.7211 114.32 37.5568",fill:"#0099FF"}),(0,s.jsx)("path",{d:"M46.6802 13.8621V34.9738C46.6802 36.539 47.9488 37.8076 49.5135 37.8076C50.3254 37.8076 51.1155 37.7164 51.875 37.544V13.8621C51.0357 13.692 50.1671 13.6023 49.2773 13.6023C48.3875 13.6023 47.519 13.692 46.6797 13.8621",fill:"#0099FF"}),(0,s.jsx)("path",{d:"M26.0001 37.5478V14.1926H14.4071C14.2663 14.9582 14.1926 15.7474 14.1926 16.5541C14.1926 17.3608 14.2663 18.15 14.4071 18.9156H20.8048V37.5478C21.6441 37.7183 22.5126 37.8075 23.4024 37.8075C24.2922 37.8075 25.1608 37.7178 26.0001 37.5478Z",fill:"#0099FF"}),(0,s.jsx)("path",{d:"M39.5418 27.1459C39.4091 25.2841 38.3738 24.1813 36.7387 24.1813C34.8547 24.1813 33.7982 25.1519 33.5148 27.1459H39.5418ZM37.4419 38.0437C34.585 38.0437 32.352 37.2866 30.8057 35.7937C29.2457 34.2875 28.4546 32.0994 28.4546 29.2911C28.4546 26.7015 29.2207 24.4821 30.6701 22.873C32.1669 21.2115 34.2856 20.333 36.7977 20.333C41.3153 20.333 44.3503 23.5801 44.3503 28.4126C44.3503 29.0847 44.3314 30.0472 44.1661 30.6419L44.1193 30.8109H33.4775C33.7165 32.9145 35.1773 33.9805 37.8231 33.9805C39.1998 33.9805 40.7027 33.7113 42.1696 33.2027L42.3562 33.1379L42.4493 33.3118C42.6996 33.7817 42.9064 34.2937 43.0817 34.8769C43.246 35.4532 43.3452 36.044 43.4127 36.8568L43.4274 37.033L43.2611 37.093C41.5183 37.724 39.5607 38.0442 37.4424 38.0442",fill:"#0099FF"}),(0,s.jsx)("path",{d:"M59.8095 37.5478V13.8625C58.9703 13.692 58.1017 13.6028 57.2119
113.6028C56.3221 13.6028 55.4535 13.6925 54.6143 13.8625V37.5478C55.4535 37.7183 56.3221 37.8076 57.2119 37.8076C58.1017 37.8076 58.9703 37.7183 59.8095 37.5478Z",fill:"#0099FF"}),(0,s.jsx)("path",{d:"M79.0121 24.1813C77.4408 24.1813 76.1622 25.4371 76.1622 26.9811V31.3663C76.1622 32.9263 77.4408 34.1954 79.0121 34.1954C80.5834 34.1954 81.8912 32.9528 81.8912 31.3663V26.9811C81.8912 25.4371 80.5995 24.1813 79.0121 24.1813ZM79.0121 38.0437C73.9283 38.0437 70.77 34.6616 70.77 29.2174C70.77 26.5919 71.5172 24.3744 72.9313 22.8041C74.3874 21.1874 76.49 20.3325 79.0121 20.3325C81.5342 20.3325 83.625 21.1831 85.0816 22.7927C86.5032 24.3631 87.2546 26.5848 87.2546 29.2179C87.2546 34.662 84.0964 38.0442 79.0126 38.0442",fill:"#0099FF"}),(0,s.jsx)("path",{d:"M65.9272 28.5892L70.3299 20.7641C69.4684 20.6352 68.5871 20.5686 67.6898 20.5686C66.7116 20.5686 65.7519 20.6479 64.8168 20.8005L60.5859 28.7974L65.5167 37.5713C66.4604 37.7267 67.4295 37.8075 68.4171 37.8075C69.3192 37.8075 70.2057 37.7399 71.0719 37.6096L65.9272 28.5892Z",fill:"#0099FF"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_336_7060",children:(0,s.jsx)("rect",{width:"128.512",height:"52",fill:"white"})})})]}),m=()=>(0,s.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5 10.5C15.5 12.9853 13.4853 15 11 15C8.51472 15 6.5 12.9853 6.5 10.5C6.5 8.01472 8.51472 6 11 6C13.4853 6 15.5 8.01472 15.5 10.5ZM14.6793 15.2399C13.6632 16.0297 12.3865 16.5 11 16.5C7.68629 16.5 5 13.8137 5 10.5C5 7.18629 7.68629 4.5 11 4.5C14.3137 4.5 17 7.18629 17 10.5C17 11.8865 16.5297 13.1632 15.7399 14.1792L20.5304 18.9697L19.4697 20.0303L14.6793 15.2399Z",fill:"#005288"})}),v=()=>(0,s.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.91442 6H4.25V4.5H7.08558L7.83558 7.5H19.435L17.758 15.0461C18.2173 15.5188 18.5 16.1639 18.5 16.875C18.5 18.3247 17.3247 19.5 15.875 19.5C14.4253 19.5 13.25 18.3247 13.25 16.875C13.25 16.4724 13.3406 16.091 13.5026 15.75H11.4974C11.6594 16.091 11.75 16.4724 11.75 16.875C11.75 18.3247 10.5747 19.5 9.125 19.5C7.67525 19.5 6.5 18.3247 6.5 16.875C6.5 15.8741 7.06021 15.004 7.88419 14.5612L6.52 8.42233L5.91442 6ZM15.875 14.25H16.3984L17.565 9H8.18496L9.35163 14.25H15.875ZM15.875 15.75C15.2537 15.75 14.75 16.2537 14.75 16.875C14.75 17.4963 15.2537 18 15.875 18C16.4963 18 17 17.4963 17 16.875C17 16.2537 16.4963 15.75 15.875 15.75ZM8 16.875C8 16.2537 8.50368 15.75 9.125 15.75C9.74632 15.75 10.25 16.2537 10.25 16.875C10.25 17.4963 9.74632 18 9.125 18C8.50368 18 8 17.4963 8 16.875Z",fill:"#005288"})}),f=()=>(0,s.jsx)("svg",{width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.1875 7.21002C4.1875 6.89798 4.44046 6.64502 4.7525 6.64502H24.5931C24.9051 6.64502 25.1581 6.89798 25.1581 7.21002C25.1581 7.52206 24.9051 7.77502 24.5931 7.77502H4.7525C4.44046 7.77502 4.1875 7.52206 4.1875 7.21002ZM4.1875 13.922C4.1875 13.61 4.44046 13.357 4.7525 13.357H24.5931C24.9051 13.357 25.1581 13.61 25.1581 13.922C25.1581 14.234 24.9051 14.487 24.5931 14.487H4.7525C4.44046 14.487 4.1875 14.234 4.1875 13.922ZM4.7525 20.3571C4.44046 20.3571 4.1875 20.61 4.1875 20.9221C4.1875 21.2341 4.44046 21.4871 4.7525 21.4871H24.5931C24.9051 21.4871 25.1581 21.2341 25.1581 20.9221C25.1581 20.61 24.9051 20.3571 24.5931 20.3571H4.7525Z",fill:"#3C5564"})}),g=()=>(0,s.jsx)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.58572 7.5L0.292786 12.7929L1.707 14.2072L6.99999 8.91426L12.2929 14.2072L13.7072 12.7929L8.41425 7.5L13.7071 2.20718L12.2928 0.792969L6.99999 6.08573L1.70716 0.792969L0.292945 2.20718L5.58572 7.5Z",fill:"#005288"})});var b=l(66200),w=l(1485),j=l(42356),y=e=>{var t,l,r,n,a,i,o,d,c,u,x,h,p;return e.serviceData&&e.serviceData.title?(0,s.jsxs)("div",{className:"grid col
1-span-4 border-[1px] border-[#F3F4F5] p-2 rounded-lg ",children:[(0,s.jsx)("div",{className:"flex flex-col lg:flex-row min-h-[10px] w-full ",children:(0,s.jsxs)("div",{className:"flex flex-col item-center text-[14px] align-center w-full",children:[(0,s.jsxs)("div",{className:"flex item-center text-[14px] align-center w-full justify-between ",children:[(0,s.jsx)("div",{className:"font-Telkom123-Bold text-bodyAlt-m pb-4 text-[#002E4D]",dangerouslySetInnerHTML:{__html:e.serviceData.title}}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 max-md:-mt-1 font-Telkom123-Regular min-h-[10px] text-button-s",children:[(0,s.jsx)(b.default,{onClick:()=>{e.serviceData.catalougeCta.link&&-1===e.serviceData.catalougeCta.link.indexOf("#")&&e.close()},className:" text-button-s !px-0",...e.serviceData.catalougeCta}),(0,s.jsx)(b.default,{onClick:()=>{e.serviceData.contactCta.link&&-1===e.serviceData.contactCta.link.indexOf("#")&&e.close()},className:"font-Telkom123-Regular text-[#003F6A]",...e.serviceData.contactCta,children:(e=>{let t=/(\d{3}\s?\d{3}\s?\d{4})/;return e.split(t).map((e,l)=>t.test(e)?(0,s.jsx)("span",{className:"font-bold",children:e},l):e)})(e.serviceData.contactCta.label)})]})]}),(null==e?void 0:null===(l=e.serviceData)||void 0===l?void 0:null===(t=l.cta)||void 0===t?void 0:t.length)>0&&(0,s.jsx)("div",{className:"w-full pt-4 border-t border-[#F3F4F5]",children:(0,s.jsxs)("div",{className:"".concat(e.serviceData.cta.length>1?"md:flex-row flex-col gap-3 ":"flex-row items-center"," flex justify-between w-full"),children:[(0,s.jsx)("div",{className:"".concat(e.serviceData.cta.length>1?"text-start":"text-center"," font-Telkom123-Regular text-body-s text-[#002E4D]"),dangerouslySetInnerHTML:{__html:(null===(r=e.serviceData)||void 0===r?void 0:r.description)||""}}),(0,s.jsx)("div",{className:"flex items-center gap-x-3",children:e.serviceData.cta.map(t=>{var l;return(0,s.jsx)(b.default,{onClick:()=>{t.link&&-1===t.link.indexOf("#")&&e.close()},...t,className:"flex justify-center text-center !rounded-[8px] px-4 py-3 font-Telkom123-Bold text-button-s"},null===(l=t.label)||void 0===l?void 0:l.replace(/\s/g,"_"))})})]})})]})}),(0,s.jsxs)("div",{className:"".concat((null==e?void 0:null===(a=e.serviceData)||void 0===a?void 0:null===(n=a.smartCta)||void 0===n?void 0:n.length)>0?"play_store flex flex-col lg:flex-row pt-1 lg:pt-0 lg:items-center justify-between w-full border-t border-[#F3F4F5] ":""),children:[(null==e?void 0:null===(o=e.serviceData)||void 0===o?void 0:null===(i=o.smartCta)||void 0===i?void 0:i.length)>0&&(null==e?void 0:null===(d=e.serviceData)||void 0===d?void 0:d.description)?(0,s.jsx)("div",{className:"font-Telkom123-Regular text-[14px] text-[#002E4D]",dangerouslySetInnerHTML:{__html:null==e?void 0:null===(c=e.serviceData)||void 0===c?void 0:c.description}}):"",(0,s.jsx)("div",{className:"".concat((null==e?void 0:null===(x=e.serviceData)||void 0===x?void 0:null===(u=x.smartCta)||void 0===u?void 0:u.length)>0?"flex mt-[20px] media-cions gap-2":""),children:null==e?void 0:null===(p=e.serviceData)||void 0===p?void 0:null===(h=p.smartCta)||void 0===h?void 0:h.map(e=>(0,s.jsx)("div",{className:"app_store",children:(0,s.jsx)("a",{className:"",href:e.link,rel:"noreferrer noopener",target:"_blank",children:(0,s.jsx)(w.ZP,{priority:!0,src:e.iconUrl,alt:"",layout:"fixed",width:"137",height:"45",blurDataURL:e.iconUrl,placeholder:"blur",fallbackurl:e.iconUrl})})},"SmartCTA_"+(0,j.f$)(e.link)))})]})]}):(0,s.jsx)(s.Fragment,{})},C=e=>{let{item:t}=e;return(0,s.jsx)("div",{className:"flex items-center mx-auto justify-center gap-4",children:t.icon?(0,s.jsx)(w.ZP,{src:t.icon,fallbackurl:"/assets/images/header/fallback.svg",width:56,height:56}):(0,s.jsx)(s.Fragment,{})})},k=e=>{let{item:t}=e;return(0,s.jsxs)("div",{className:"flex items-center gap-[16px]",children:[(0,s.jsx)("div",{className:"md:w-[56px] md:h-[56px] w-[40px] h-[40px] rounded-full bg-[#BFE6FF] flex items-center justify-center shadow-[-1px_-1px_1px_0px_#E7F6FF33,_1px_1px_3px_0px_#002E4D4D]",children:t.icon?(0,s.jsx)(w.ZP,{src:t.icon,fallbackurl:"/assets/images/header/fallback.svg",width:26,height:26,sizes:"(max-width: 768px) 15px, 26px",className:"w-auto h-auto"}):(0,s.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"#005288",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,s.jsx)("path",{d:"M3 9h18M9 21V9"})]})}),(0,s.jsx)("p",{className:"text-bodyAlt-s font-Telkom123-Bold text-secondary-blue-grey",children:t.title})]})},N=e=>{var t;let{item:l}=e;return(0,s.jsx)("div",{className:"w-full bg-[#E7F6FF] rounded-[8px] px-4 py-3 flex flex-col md:flex-row md:items-start",children:null==l?void 0:null===(t=l.children)||void 0===t?void 0:t.map((e,t)=>{var r;let n=t===(null==l?void 0:null===(r=l.children)||void 0===r?void 0:r.length)-1;return(0,s.jsxs)("div",{className:"flex flex-col md:flex-row md:flex-1 w-full",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3 w-full",children:[(0,s.jsx)("div",{className:"flex-shrink-0 mt-[2px]",children:(0,s.jsx)(w.ZP,{src:e.icon,fallbackurl:"/assets/images/header/fallback.svg",width:20,height:20,className:"w-[20px] h-[20px]"})}),(0,s.jsx)("p",{className:"text-sm text-[#005288] leading-relaxed [&_a]:text-[#0099FF] [&_a]:font-semibold [&_a]:underline",dangerouslySetInnerHTML:{__html:e.title}}
1)]}),!n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"md:hidden flex justify-center py-3",children:(0,s.jsx)("div",{className:"w-full h-px bg-[#CFE8FF]"})}),(0,s.jsx)("div",{className:"hidden md:block w-px bg-[#CFE8FF] mx-6 self-center h-[60px]"})]})]},t)})})},_=l(91807),L=l(823),F=l(59336),S=e=>{var t;let{item:l}=e,{vendorType:r,amount:a,planPeriod:i,title:o}=(null==l?void 0:l.variation)||{},d=null==l?void 0:null===(t=l.productTags)||void 0===t?void 0:t.split(","),{exclusive:c=[],deals:u=[]}=(0,n.useMemo)(()=>(0,L.S_)(d,r),[d,r]);return(0,s.jsxs)("div",{className:"relative w-full h-full flex flex-col",children:[(0,s.jsxs)("div",{className:"min-h-[24px] flex items-start justify-between w-full",children:[(0,s.jsx)("div",{className:"flex flex-col gap-1 items-end",children:null==c?void 0:c.map(e=>(0,s.jsx)(_.Z,{style:{...e.style,zIndex:1},className:"backdrop-blur-[blur(2px)] shadow-[0px_5px_8px_rgba(0,_143,_224,_0.15)] text-white",children:e.name},"Badge_Exclusive_"+(0,j.f$)(e.name)))}),(0,s.jsx)("div",{className:"flex flex-col gap-1 items-start",children:null==u?void 0:u.map(e=>(0,s.jsx)(_.Z,{style:{...e.style,zIndex:1},className:"backdrop-blur-[blur(2px)] shadow-[0px_5px_8px_rgba(0,_143,_224,_0.15)] text-white",children:e.name},"Badge_Deals_"+(0,j.f$)(e.name)))})]}),(0,s.jsxs)("div",{className:"flex md:flex-row flex-col gap-5 items-start",children:[(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)(w.ZP,{src:l.imageUrl,fallbackurl:"/assets/images/header/fallback.svg",width:150,className:"object-contain",height:100})}
1),(0,s.jsxs)("div",{className:"md:flex-1 flex-1 min-w-0 w-full",children:[(0,s.jsx)("p",{className:"text-[#0099FF] font-degular-BoldBlack text-display-xl-xs mb-1 truncate",title:l.title,children:l.title}),(0,s.jsx)("p",{className:"text-[#005288] text-bodyAlt-m font-Telkom123-Bold mb-3 truncate",title:l.plan||o,children:l.plan||o}),(0,s.jsxs)("div",{className:"bg-[#E7F6FF] font-degular-BoldBlack rounded-[8px] px-4 w-full py-2 inline-flex items-end gap-2",children:[(0,s.jsx)("span",{className:"text-[#005288] text-display-xl-s font-degular-BoldBlack",children:(0,F.c)(a)}),(0,s.jsx)("span",{className:"text-[#005288] text-display-xl-xs3 pb-[3px]",children:i})]})]})]}),(0,s.jsx)("div",{className:"border border-1 my-[16px] border-[#DADEE0]"}),(0,s.jsx)("div",{className:"mt-auto text-center text-button-s w-full bg-[#8EE000] hover:bg-[#7ACC00] text-[#002A3A] font-Telkom123-Bold py-3 rounded-[8px]",children:"Buy now"})]})};function E(e){var t;let{item:l}=e;return(0,s.jsxs)("div",{className:"w-full max-w-[860px] flex overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex flex-col relative flex-1",children:[(0,s.jsx)("h3",{className:"text-[#0099FF] font-degular-BoldBlack text-display-xl-s",children:l.title}),(0,s.jsx)("p",{className:"text-[#3C525F] text-body-m mt-2",children:null==l?void 0:l.description}),(0,s.jsxs)("div",{className:"flex items-center gap-2 absolute bottom-2 text-[#0099FF] text-button-s font-Telkom123-Bold group my-2 underline hover:text-[#005288] stroke-[#09F] hover:stroke-[#005288]",children:[(0,s.jsx)("span",{className:"font-Telkom123-Bold text-button-s underline hover:mr-[8px] transition-all duration-300 ease-in-out",dangerouslySetInnerHTML:{__html:null==l?void 0:null===(t=l.cta)||void 0===t?void 0:t.ctaLabel}}),(0,s.jsx)("span",{className:" ml-[6px] relative w-[24px] h-[24px] chevron-right-custom pt-[2px] ",children:(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",className:"fill-[#0099FF] group-hover:fill-[#005288] transition-colors duration-200",d:"M17.6492 11.2501L12.7904 6.53852L13.8346 5.46167L20.5774 12.0001L13.8346 18.5385L12.7904 17.4617L17.6492 12.7501H3V11.2501H17.6492Z"})})})]})]}),(0,s.jsx)("div",{className:"w-[140px] h-full",children:(0,s.jsx)(w.ZP,{src:l.icon,fallbackurl:"/assets/images/header/fallback.svg",width:140,height:160,className:"object-cover h-full w-full"})})]})}var T=e=>{let{item:t}=e;switch(t.tileType){case"iconText":return(0,s.jsx)(k,{item:t});case"richCard":return(0,s.jsx)(E,{item:t});case"promotions":return(0,s.jsx)(S,{item:t});case"instructionCard":return(0,s.jsx)(N,{item:t});default:return(0,s.jsx)(C,{item:t})}},R=l(77029),M=l(29353);let B=e=>{let t=new Set;return e.filter(e=>!t.has(e.title)&&(t.add(e.title),!0))},P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.some(e=>["richCard","promotions","instructionCard"].includes(e.tileType)),l=(0,c.zP)(R.JO,!0);return t?"grid-cols-1 lg:grid-cols-1 xl:grid-cols-2 3xl:grid-cols-3 min-[".concat(l,"]:grid-cols-3"):"grid-cols-1 md:grid-cols-2 xl:grid-cols-3 3xl:grid-cols-4 min-[".concat(l,"]:grid-cols-4")},Z=e=>{var t;let l=(null==e?void 0:null===(t=e.cta)||void 0===t?void 0:t.ctaLink)||(null==e?void 0:e.href),s=null==l?void 0:l.trim();return(null==e?void 0:e.isExternal)||!s||s.startsWith("/")?s:(0,M.j1)(s)};var D=e=>{let{groups:t,onOpenGroup:l,levelStack:r,setLevelStack:a,selfService:i,close:o,setSelfService:d}=e,c=[...new Map(r.map(e=>[null==e?void 0:e.title,e])).values()];(0,n.useEffect)(()=>{window.scroll(0,0)},[c]);let x=(()=>{for(let t=c.length-1;t>=0;t--){var e;if(null===(e=c[t])||void 0===e?void 0:e.assistance)return c[t].assistance}return null})();return(0,s.jsxs)("div",{className:"px-2 relative flex flex-col h-full",children:[(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[c.length>2&&(0,s.jsxs)(b.default,{className:"flex items-center gap-2 text-[#0099FF] text-button-s font-Telkom123-Bold hover:underline",onClick:()=>
1{if(c.length<=2)return;let e=c.slice(0,-1);a(e);let t=e[e.length-1]||null;l(t),d(t)},children:[(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.35 12.75L11.2 17.46L10.16 18.54L3.42 12L10.16 5.46L11.2 6.54L6.35 11.25H21V12.75H6.35Z",fill:"#0099FF"})}),"Back"]}),(0,s.jsx)("div",{className:"ml-auto",children:(0,s.jsx)("svg",{width:"32",height:"32",className:"cursor-pointer",onClick:()=>o(),viewBox:"0 0 32 32",fill:"none",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5859 16L9.29297 21.2929L10.7072 22.7072L16.0002 17.4143L21.2931 22.7072L22.7074 21.2929L17.4144 16L22.7072 10.7072L21.293 9.29297L16.0002 14.5857L10.7073 9.29297L9.29313 10.7072L14.5859 16Z",fill:"#005288"})})})]}),null==t?void 0:t.map(e=>{var t,r,n;let i=B(e.children||[]);return(0,s.jsxs)("div",{className:"mb-12",children:[(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("h6",{className:"text-[#002E4D] text-display-xl-xs font-degular-BoldBlack my-[24px]",children:e.title}),(null==e?void 0:null===(t=e.cta)||void 0===t?void 0:t.ctaLabel)&&(0,s.jsxs)(b.default,{link:null==e?void 0:null===(r=e.cta)||void 0===r?void 0:r.ctaLink,viewType:"colorBlue",className:"ml-auto group flex underline items-center",onClick:()=>o(),children:[(0,s.jsx)("span",{className:"font-Telkom123-Bold text-button-s underline hover:mr-[8px] transition-all duration-300 ease-in-out",dangerouslySetInnerHTML:{__html:null==e?void 0:null===(n=e.cta)||void 0===n?void 0:n.ctaLabel}}),(0,s.jsx)("span",{className:" ml-[6px] relative w-[24px] h-[24px] chevron-right-custom pt-[2px] ",children:(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",className:"fill-[#0099FF] group-hover:fill-[#005288] transition-colors duration-200",d:"M17.6492 11.2501L12.7904 6.53852L13.8346 5.46167L20.5774 12.0001L13.8346 18.5385L12.7904 17.4617L17.6492 12.7501H3V11.2501H17.6492Z"})})})]})]}),(0,s.jsx)("div",{className:"grid items-stretch auto-rows-fr gap-[24px] ".concat(P(i)),children:i.map(e=>{let t=e.hasChildren;return"instructionCard"===e.tileType?(0,s.jsx)("div",{children:(0,s.jsx)(N,{item:e})},e.title):(0,s.jsxs)(u.Z,{isExternal:e.isExternal,href:t?"#":Z(e),className:" border border-[#DADEE0] shadow-[0px_4px_12px_0px_#00000014] rounded-[8px] bg-white p-[16px] flex items-center justify-between min-h-[88px] ",onClick:()=>{t?(a([...c,e]),l(e),d(e)):o()},children:[(0,s.jsx)(T,{item:e}),e.isThirdParty?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 19.5049H19.5V11.7549H21V20.2549L20.25 21.0049H3.75L3 20.2549V3.75488L3.75 3.00488H12.25V4.50488H4.5V19.5049ZM19.5 5.56488V9.25488H21V3.00488H14.75V4.50488H18.44L10.97 11.9749L12.03 13.0349L19.5 5.56488Z",fill:"#0099FF"})})}):(0,s.jsx)(s.Fragment,{children:t&&(0,s.jsx)("svg",{width:"20",height:"20",fill:"none",stroke:"#2A7FE8",strokeWidth:"2",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M9 5l7 7-7 7"})})})]},e.title)})})]},e.title)})]}),x&&(0,s.jsx)("div",{className:"mt-auto pt-6",children:(0,s.jsx)(y,{serviceData:x,close:o})})]})},I=l(11163),H=l(38161),A=l(6924),V=l(97479),O=e=>{let{utilityMenu:t=[],cartCountLoading:l=!1,cartCount:r="",activeTab:i,setActiveTab:d,setActiveRightSideTab:c,lastActiveTab:p,setLastActiveTab:m,onRightTabClose:f}=e,{handleCartRedirection:g}=(0,V.o)(),b=(0,I.useRouter)(),j=(0,a.TL)(),[C,k]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(b.pathname.startsWith("/cart")){k("Cart");return}let e=t.find(e=>Z(e)===b.pathname);k((null==e?void 0:e.title)||null)},[b.pathname,t]),(0,s.jsx)("div",{className:"ml-auto flex items-center justify-center gap-[20px] xl:gap-[25px]",children:t.map(e=>{let a=e.hasChildren,N=e.isExternal,_=(0,s.jsx)(w.ZP,{fallbackurl:"/assets/images/header/get_help_icon.svg",src:e.icon,width:18,height:18,className:"object-contain"});if(a)return(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(x.vb,{as:"ul",className:"flex gap-[22px]",children:(0,s.jsx)(x.J2,{as:"li",className:"mega-drop-down",children:l=>{let{open:r}=l;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(x.O7,{onClick:()=>
1{if(r){if(f(p),c(!1),b.pathname.startsWith("/cart"))k("Cart");else{let e=t.find(e=>Z(e)===b.pathname);k((null==e?void 0:e.title)||null)}}else m(i),d(""),c(!0),j(o.rY.setFlow("")),k(e.title)},className:"flex flex-col text-[#005288] items-center ".concat(r?" font-Telkom123-Bold ":" font-Telkom123-Regular "),children:[_,(0,s.jsx)("span",{className:"flex items-center gap-1 text-body-s 2xl:text-body-m",children:e.title})]}),(0,s.jsx)(h.u,{as:n.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 -translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-1",children:(0,s.jsx)(x.Hi,{className:"absolute h-[100dvh] left-0 top-full w-full z-50 bg-white border-t",children:t=>{var l;let{close:r}=t;return(0,s.jsxs)("div",{className:"h-[calc(100vh-174px)] overflow-y-auto p-[20px] flex flex-col",children:[(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)("svg",{width:"32",height:"32",className:"cursor-pointer",onClick:()=>{c(!1),f(p),r()},viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5859 16L9.29297 21.2929L10.7072 22.7072L16.0002 17.4143L21.2931 22.7072L22.7074 21.2929L17.4144 16L22.7072 10.7072L21.293 9.29297L16.0002 14.5857L10.7073 9.29297L9.29313 10.7072L14.5859 16Z",fill:"#005288"})})}),(0,s.jsx)("div",{className:"flex-grow",children:null===(l=e.children)||void 0===l?void 0:l.map(e=>{var t;return(0,s.jsxs)("div",{className:"mb-10",children:[(0,s.jsx)("h6",{className:"text-[#002E4D] text-left text-display-xl-xs font-degular-BoldBlack mb-5",children:e.title}),(0,s.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-[24px]",children:null===(t=e.children)||void 0===t?void 0:t.map(e=>{var t;return(0,s.jsxs)(u.Z,{href:null!==(t=Z(e))&&void 0!==t?t:"#",onClick:()=>{c(!1),r()},isExternal:e.isExternal,className:"border border-[#DADEE0] shadow-[0_4px_12px_#00000014] rounded-[8px] bg-white p-4 hover:shadow-[0_6px_18px_#00000024] flex items-center justify-between min-h-[88px]",children:[(0,s.jsx)(T,{item:e}),e.hasChildren&&(0,s.jsx)("svg",{width:"10",height:"18",viewBox:"0 0 8 14",children:(0,s.jsx)("path",{fill:"#0099FF",d:"M5.47 6.53L0 1.06 1.06 0 7.59 6.53 1.06 13.06 0 12l5.47-5.47z"})})]},e.title)})})]},e.title)})}),(null==e?void 0:e.assistance)&&(0,s.jsx)("div",{children:(0,s.jsx)(y,{serviceData:null==e?void 0:e.assistance,close:r})})]})}})})]})}})})},e.title);if("Cart"===e.title)return(0,s.jsx)("div",{className:"text-center",children:(0,s.jsxs)(u.Z,{href:g(),prefetch:!1,onClick:()=>{k("Cart"),d(""),j(o.rY.setFlow(""))},className:"relative flex flex-col items-center text-secondary-blue-grey ".concat("Cart"===C?"font-Telkom123-Bold":"font-Telkom123-Regular"),children:[(0,s.jsx)("div",{className:"absolute top-0 right-[2px] z-[1] flex items-center justify-center w-[10px] h-[10px] rounded-full bg-[#91E200]",children:l?(0,s.jsx)("span",{className:"animate-ping absolute h-full w-full rounded-full bg-secondary-columbia-blue opacity-75"}):(0,s.jsx)("span",{className:"text-[6px] leading-none",children:r})}),(0,s.jsx)(v,{}),(0,s.jsx)("span",{className:"block -mt-1.5",children:"Cart"})]})},e.title);let L=C===e.title;return(0,s.jsx)("div",{className:"text-center",children:(0,s.jsxs)(u.Z,{href:Z(e),prefetch:!1,isExternal:N,onClick:()=>{k(e.title),d("")},className:"flex flex-col text-body-m items-center text-[#005288] ".concat(L?"font-Telkom123-Bold":"font-Telkom123-Regular"),children:[_,(0,s.jsx)("span",{className:"block",children:e.title})]})},e.title)})})},G=l(45002),U=e=>{var t,l,r,i;let d=(null===(t=e.menus)||void 0===t?void 0:t.profileTabs)||[],{flow:c}=(0,a.CG)(o.Yv),[m,v]=(0,n.useState)((null==d?void 0:d[0])||null),[f,g]=(0,n.useState)(null),[w,j]=(0,n.useState)(0),[y,C]=(0,n.useState)(null),[k,N]=(0,n.useState)([]),_=(0,I.useRouter)(),[L,F]=(0,n.useState)(c),[S,E]=(0,n.useState)(!1),[T,R]=(0,n.useState)(c),M=(0,a.TL)(),B=null==_?void 0:null===(r=_.asPath)||void 0===r?void 0:null===(l=r.split("/"))||void 0===l?void 0:l[1],P=(0,n.useRef)(c),V=(0,n.useRef)(0),U=(0,n.useRef)(!1),q=(0,n.useRef)(!1),Y=(0,n.useCallback)(e=>{P.current=e,R(e)},[]),z=(0,n.useCallback)(e=>{let t=e||P.current;V.current=2,F(t),M(o.rY.setFlow((null==t?void 0:t.toLowerCase())||""))},[M]);(0,n.useEffect)(()=>{U.current=!1},[B]);let W=["cart","help-guide","telkom-app","nationalrelaysystem","storelocator","telkom-insure","telkom-lend","telkom-pay","telkom-invest","internet-speed-test","plugd","telkom-lte-educational","international-roaming","direct-carrier-billing","reseller-applications","deregister","compare","tap2win","prepaid-services"];(0,n.useEffect)(()=>{var e;if(!d.length)return;if(B.includes("search")){q.current||(q.current=!0,F(""),v(d[0]));return}q.current=!1;let t=null===(e=_.query)||void 0===e?void 0:e.venderType;if(t){F(t),M(o.rY.setFlow(t));return}if(W.includes(B)){U.current||(""!==c&&M(o.rY.setFlow("")),F(""),v(d[0]));return}if(V.current>0){V.current-=1;return}let l=d.find(e=>e.title.toLowerCase()===B.toLowerCase());if(l){c!==l.title.toLowerCase()?(F(l.title),v(l),M(o.rY.setFlow(l.title.toLowerCase()))):v(l);return}if(""===c){F(""),W.includes(B)&&v(d[0]);return}if(B){let e=d.find(e=>e.title.toLowerCase()===(c||B.toLowerCase()));if(e){v(e);return}}v(d[0])},[c,d,B]);
1let[J,K]=(0,n.useState)(!1);(0,n.useEffect)(()=>{var e,t,l,s,r,n;M(H.E1.setPause(J)),J?null===(l=document)||void 0===l||null===(t=l.body)||void 0===t||null===(e=t.classList)||void 0===e||e.add("overflow-y-hidden"):null===(n=document)||void 0===n||null===(r=n.body)||void 0===r||null===(s=r.classList)||void 0===s||s.remove("overflow-y-hidden")},[J]);let Q=()=>{g(null),N([])},$=e=>{var t,l,s,r,n;return e?[null!==(t=e.title)&&void 0!==t?t:"",null!==(l=e.href)&&void 0!==l?l:"",null!==(s=e.link)&&void 0!==s?s:"",null!==(r=e.icon)&&void 0!==r?r:"",null!==(n=e.menuType)&&void 0!==n?n:""].join("|"):""},X=e=>{let t=$(e);return k.some(e=>$(e)===t)},ee=null!==(i=null==m?void 0:m.children)&&void 0!==i?i:[],et=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!1===S)return e.includes("/business")?"Business":["/"].includes(e)||e.includes("/personal")?"Personal":e.includes("/enterprise")?"Enterprise":e},el=e=>{N([e]),j(e=>e+1)};(0,n.useEffect)(()=>{let e=null==k?void 0:k[0],t=(null==e?void 0:e.children)||[];if(!t.length)return;let l=t[0];$(null==k?void 0:k[1])!==$(l)&&(g(l),C(l),N([e,l]))},[w]);let es=()=>{let e=document.querySelector(".rightScrollContainer");e&&(e.scrollTop=0)};return(0,s.jsx)("div",{className:"".concat(e.className),children:(0,s.jsxs)("div",{className:"bg-white shadow-[0px_2px_10px_0px_#01272F0D]",children:[(0,s.jsxs)("nav",{className:"px-[30px] bg-[#F3F4F5] flex items-center h-[78px]",children:[(0,s.jsx)(u.Z,{href:"/",onClick:()=>F(c||""),children:(0,s.jsx)(p,{})}),(0,s.jsx)("div",{className:"flex ml-[40px] gap-[16px]",children:d.map(e=>(0,s.jsx)(b.default,{className:"px-[16px] py-[8px] rounded-[6px] border text-[15px] font-medium\n ".concat(et(L?null==m?void 0:m.title:null==_?void 0:_.asPath)===e.title?"bg-[#0099FF] border-[#0099FF] text-white":"bg-white border-[#0099FF] text-[#0099FF]"),onClick:()=>{U.current=!0,V.current=1,v(e),F(e.title),E(!1),Q(),M(o.rY.setFlow(e.title.toLowerCase()))},children:e.title},e.title))}),(0,s.jsx)(O,{utilityMenu:e.menus.utilityMenu,cartCount:e.cartCount,cartCountLoading:e.cartCountLoading,activeTab:L,setActiveTab:F,setActiveRightSideTab:E,lastActiveTab:T,setLastActiveTab:Y,onRightTabClose:z})]}),(0,s.jsxs)(x.vb,{as:"ul",className:"".concat(G.QV?"py-[16px] ":"py-[30px] "," flex justify-between items-center ml-[40px] gap-[22px] "),children:[(0,s.jsx)("div",{className:"flex gap-[22px]",children:ee.map(e=>{var t,l;let r=(null===(t=e.children)||void 0===t?void 0:t.length)>0,a=X(e);return r?(0,s.jsx)(x.J2,{as:"li",className:"mega-drop-down",children:t=>{let{open:l}=t;return K(l),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(x.O7,{className:"flex items-center text-[#005288] text-bodyAlt-m gap-1 cursor-pointer ".concat(l?"font-Telkom123-Bold":"font-Telkom123-Regular"),onClick:()=>{var t,l;N([e]),el(e),g(null!==(l=null===(t=e.children)||void 0===t?void 0:t[0])&&void 0!==l?l:null),U.current=!0,!L&&T?(V.current=1,F(T),M(o.rY.setFlow(T))):T||(V.current=1,F(c||"personal"),M(o.rY.setFlow(c||"personal"))),E(!1)},children:[e.title,(0,s.jsx)("svg",{width:"15",height:"15",className:"transition ".concat(l?"-rotate-180":""),viewBox:"0 0 16 16",children:(0,s.jsx)("path",{d:"M8 9.3L11.6 5.6 12.3 6.3 8 10.7 3.6 6.3 4.3 5.6z",fill:"#005288"})})]}),(0,s.jsx)(h.u,{as:n.Fragment,enter:"transition ease-out duration-150",enterFrom:"opacity-0 translate-y-2",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-2",children:(0,s.jsx)(x.Hi,{className:"absolute left-0 top-full w-full z-10 bg-white border-t",children:t=>{var l,r;let{close:n}=t;return(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsxs)("div",{className:"w-[350px] shadow-[2px_2px_4px_0px_#2E3F4B26] bg-[#E7F6FF] p-[30px] h-[calc(100vh-174px)] overflow-y-auto",children:[(null==m?void 0:m.subTitle)&&(0,s.jsxs)(u.Z,{onClick:()=>n(),href:"#"!==e.href?Z(e):Z(m),className:"flex gap-[10px] mt-[10px] mb-[40px]",children:[(0,s.jsx)("span",{children:(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8749 8.5625L9.99988 2.65625L2.12488 8.5625L2.49988 9.6875H3.12488V16.875H16.8749V9.6875H17.4999L17.8749 8.5625ZM4.37488 15.625V8.4375L9.99988 4.21875L15.6249 8.4375V15.625H12.5V11.9444L11.875 11.3194H8.12494L7.49994 11.9444V15.625H4.37488ZM8.74996 15.625H11.25V12.5694H8.74996V15.625Z",fill:"#002E4D"})})}),(0,s.jsx)("h5",{className:"text-[#003F6A] text-button-s font-Telkom123-Bold",children:null!==(r=null==e?void 0:e.subTitle)&&void 0!==r?r:null==m?void 0:m.subTitle})]}),null===(l=e.children)||void 0===l?void 0:l.map(t=>{var l;let r=X(t);return(0,s.jsxs)(u.Z,{href:(null==t?void 0:t.hasChildren)?"#":Z(t),onClick:e=>{(null==t?void 0:t.hasChildren)||(!L&&T&&(F(T),M(o.rY.setFlow(T))),n())},onMouseOver:()=>{g(t),C(t),es(),N([e,t])},className:"px-[20px] py-[20px] rounded-[6px] flex justify-between items-center cursor-pointer ".concat(r?"bg-[#B0DFFF] text-[#005288]":"hover:bg-[#
1E9F4FF] text-[#004A70]"),children:[t.title,(null===(l=t.children)||void 0===l?void 0:l.length)>0&&(0,s.jsx)("svg",{width:"6",height:"9",children:(0,s.jsx)("path",{d:"M3.6 4.35L0 0.7 0.7 0 5 4.35 0.7 8.7 0 8z",fill:"#002E4D"})})]},t.title)})]}),(0,s.jsx)("div",{className:"rightScrollContainer flex-1 p-[20px] h-[calc(100vh-174px)] overflow-y-auto",children:(0,s.jsx)(D,{groups:(null==f?void 0:f.children)||[],levelStack:k,setLevelStack:N,selfService:y,setSelfService:C,onOpenGroup:e=>{g(e),es(),N(t=>[...t,e])},close:n},e.title)})]})}})})]})}},e.title):(0,s.jsx)("li",{children:(0,s.jsx)(u.Z,{href:null!==(l=Z(e))&&void 0!==l?l:"#",isExternal:e.isExternal,className:"flex items-center text-[#005288] text-bodyAlt-m cursor-pointer\n ".concat(a?"font-Telkom123-Bold":"font-Telkom123-Regular"),children:e.title})},e.title)})}),G.QV&&(0,s.jsx)("div",{children:(0,s.jsx)(A.Z,{newNav:!0,close:()=>close()})})]})]})})},q=l(76742),Y=l.n(q);function z(e){let{toggleMenus:t,item:l,onOpen:r}=e,n=(0,a.TL)(),i=l.children&&l.children.length>0;return"instructionCard"===l.tileType?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(N,{item:l})}):(0,s.jsxs)("div",{onClick:()=>r(l),className:"bg-white w-full p-4 border shadow-[2px_2px_4px_0px_#2E3F4B26] border-[#DADEE0] rounded-[8px] flex items-center ".concat("brandLogo"===l.tileType?"justify-center":"justify-between"," cursor-pointer hover:bg-gray-50"),children:[(0,s.jsx)(u.Z,{href:"/check-coverage"===l.href?"#":i?"#":Z(l),onClick:e=>{if("/check-coverage"===l.href){e.preventDefault(),t(!1),n(o.rY.setCoveragePopup(!0));return}i||t(!1)},className:"flex items-center gap-3 w-full",isExternal:l.isExternal,children:l.tileType?(0,s.jsx)(T,{item:l}):(0,s.jsxs)(s.Fragment,{children:[l.icon&&(0,s.jsx)("div",{className:"md:w-[56px] md:h-[56px] w-[40px] h-[40px] rounded-full bg-[#BFE6FF] flex items-center justify-center shadow-[-1px_-1px_1px_0px_#E7F6FF33,_1px_1px_3px_0px_#002E4D4D]",children:(0,s.jsx)(w.ZP,{src:l.icon,alt:"",width:26,height:26})}),(0,s.jsx)("span",{className:"text-bodyAlt-s font-Telkom123-Bold text-secondary-blue-grey",children:l.title})]})}),i&&(0,s.jsx)("svg",{width:"20",height:"20",fill:"none",stroke:"#2A7FE8",strokeWidth:"2",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M9 5l7 7-7 7"})})]})}var W=l(1816),J=l.n(W),K=l(47567),Q=e=>{let{items:t,toggleMenus:l,handleOpen:r}=e,{windowSize:n}=(0,d.a)(),a=(null==n?void 0:n.width)<=664,i={dots:!1,infinite:(null==t?void 0:t.length)>1,speed:500,arrows:!1,autoplay:(null==t?void 0:t.length)>1,slidesToShow:1.1,slidesToScroll:1,centerPadding:"0px",pauseOnHover:!0,adaptiveHeight:!0};return a?(null==t?void 0:t.length)>0?(0,s.jsx)(K.default,{settings:i,children:t.map((e,t)=>(0,s.jsx)(z,{toggleMenus:l,item:e,onOpen:r},t))}):null:(0,s.jsx)(s.Fragment,{children:null==t?void 0:t.map((e,t)=>(0,s.jsx)(z,{toggleMenus:l,item:e,onOpen:r},t))})},$=e=>{let{onClose:t}=e;return(0,s.jsxs)("div",{className:"sticky bottom-0 bg-white border-t px-4 py-5",children:[(0,s.jsx)(u.Z,{isExternal:!0,href:"https://selfservice.telkom.co.za/rococo/public/content/interstitial",onClick:t,className:"block text-[#0099FF] border border-[#0099FF] font-Telkom123-Bold p-4 rounded-lg mb-4 text-center",children:"Login"}),(0,s.jsxs)("p",{className:"text-secondary-blue-grey text-body-s text-center",children:["Don't have an account?",(0,s.jsx)(u.Z,{isExternal:!0,href:"https://apps.telkom.co.za/alpha/public/register",onClick:t,className:"ml-2 text-[#0099FF] underline font-semibold",children:"Sign up"})]})]})};function X(e){var t;let{toggleMenus:l,showMenu:r,menus:a}=e,i=(null==a?void 0:a.profileTabs)||[],o=(null==a?void 0:a.utilityMenu)||[],[d,c]=(0,n.useState)((null==i?void 0:null===(t=i[0])||void 0===t?void 0:t.title)||"Personal"),[x,h]=(0,n.useState)([]),[p,m]=(0,n.use
1State)([]),[v,f]=(0,n.useState)(null),[g,w]=(0,n.useState)(null),[j,C]=(0,n.useState)(null),[k,N]=(0,n.useState)([]);(0,n.useEffect)(()=>{var e;m([...(null==i?void 0:null===(e=i[0])||void 0===e?void 0:e.children)||[],...o]),w(null==i?void 0:i[0]),c("Personal")},[i,r]);let _=e=>{c(e.title),h([]),m([...e.children||[],...o]),w(e)},L=e=>{var t;(null===(t=e.children)||void 0===t?void 0:t.length)>0&&(h(e=>[...e,p]),N(t=>[...t,e]),0===x.length&&C(e),f(e),m(e.children))},F=0===x.length,S=1===x.length,E=(()=>{for(let t=k.length-1;t>=0;t--){var e;if(null===(e=k[t])||void 0===e?void 0:e.assistance)return k[t].assistance}return null})();return(0,s.jsxs)("div",{className:"".concat(F?"bg-[#E7F6FF]":"bg-white"," flex flex-col min-h-[calc(100dvh-80px)] relative ").concat(J().mobile_menu),children:[(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto p-4 flex flex-col",children:[!F&&(0,s.jsxs)(b.default,{onClick:()=>{0!==x.length&&(h(e=>{f(e);let t=[...e];return m(t.pop()||[]),t}),1===x.length&&C(null),N(e=>e.slice(0,-1)))},className:"group font-Telkom123-Bold mb-4 text-[#0099FF] w-fit flex gap-3 items-center text-button-s",children:[(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.35003 12.7499L11.2088 17.4615L10.1646 18.5383L3.42188 11.9999L10.1646 5.46149L11.2088 6.53834L6.35003 11.2499H20.9992V12.7499H6.35003Z",fill:"#0099FF"})}),(0,s.jsx)("span",{className:"underline",children:"Back"})]}),F&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex gap-3 mb-4 pb-4 border-b border-[#DADEE0]",children:i.map((e,t)=>(0,s.jsx)(b.default,{onClick:()=>_(e),className:"flex-1 text-center px-4 py-3 rounded-lg ".concat(d===e.title?"bg-[#0099FF] text-white":"bg-white border border-[#0099FF] text-[#0099FF]"),children:e.title},t))}),(null==g?void 0:g.subTitle)?(0,s.jsxs)("div",{children:[(0,s.jsxs)(u.Z,{href:null==g?void 0:g.href,onClick:close,className:"flex gap-[10px] mb-[30px] ",children:[(0,s.jsx)("span",{children:(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8749 8.5625L9.99988 2.65625L2.12488 8.5625L2.49988 9.6875H3.12488V16.875H16.8749V9.6875H17.4999L17.8749 8.5625ZM4.37488 15.625V8.4375L9.99988 4.21875L15.6249 8.4375V15.625H12.5V11.9444L11.875 11.3194H8.12494L7.49994 11.9444V15.625H4.37488ZM8.74996 15.625H11.25V12.5694H8.74996V15.625Z",fill:"#002E4D"})})}),(0,s.jsx)("h5",{className:"text-[#003F6A] text-button-s font-Telkom123-Bold ",children:null==g?void 0:g.subTitle})]}),(0,s.jsx)("div",{className:"border-t mb-[30px] border-[#DADEE0]"})]}):""]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[S&&j&&(0,s.jsx)(s.Fragment,{children:["Self service","Help"].includes(j.title)?"":(0,s.jsx)("p",{className:"col-span-1 md:col-span-2 m-0 mb-3 font-degular-BoldBlack text-[#002E4D] text-display-xl-xs2",children:j.title})}),p.map((e,t)=>{var r,a,i,o;
1if(["cart","login"].includes(null===(r=e.title)||void 0===r?void 0:r.toLowerCase()))return null;let d="groupMenu"===e.menuType;return(0,s.jsxs)(n.Fragment,{children:[d&&(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("p",{className:"col-span-1 md:col-span-2 m-0 font-degular-BoldBlack text-[#002E4D] text-display-xl-xs2",children:e.title}),(null==e?void 0:null===(a=e.cta)||void 0===a?void 0:a.ctaLabel)&&(0,s.jsxs)(b.default,{link:null==e?void 0:null===(i=e.cta)||void 0===i?void 0:i.ctaLink,viewType:"colorBlue",className:"ml-auto group flex underline items-center",children:[(0,s.jsx)("span",{className:"font-Telkom123-Bold text-button-s underline hover:mr-[8px] transition-all duration-300 ease-in-out",dangerouslySetInnerHTML:{__html:null==e?void 0:null===(o=e.cta)||void 0===o?void 0:o.ctaLabel}}),(0,s.jsx)("span",{className:" ml-[6px] relative w-[24px] h-[24px] chevron-right-custom pt-[2px] ",children:(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",className:"fill-[#0099FF] group-hover:fill-[#005288] transition-colors duration-200",d:"M17.6492 11.2501L12.7904 6.53852L13.8346 5.46167L20.5774 12.0001L13.8346 18.5385L12.7904 17.4617L17.6492 12.7501H3V11.2501H17.6492Z"})})})]})]}),d?(()=>{var t,r;let n=null===(t=e.children)||void 0===t?void 0:t.filter(e=>"promotions"===e.tileType),a=null===(r=e.children)||void 0===r?void 0:r.filter(e=>"promotions"!==e.tileType);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Q,{items:n,handleOpen:L,toggleMenus:l}),null==a?void 0:a.map((e,t)=>(0,s.jsx)(z,{toggleMenus:l,item:e,onOpen:L},t))]})})():(0,s.jsx)(z,{toggleMenus:l,item:e,onOpen:L})]},t)})]}),E&&(0,s.jsx)("div",{className:"mt-auto pt-6",children:(0,s.jsx)(y,{serviceData:E,close:close})})]}),F&&(0,s.jsx)("div",{className:"sticky bottom-0 z-[9999] bg-white",children:(0,s.jsx)($,{onClose:()=>l(!1)})})]})}let ee=()=>{let e=(0,I.useRouter)(),[t,l]=(0,n.useState)(!1),s=()=>{e.asPath.includes("#dealsmenu")&&e.replace({pathname:e.pathname,query:e.query},void 0,{shallow:!0})};return(0,n.useEffect)(()=>{document.body.style.overflow=t?"hidden":""},[t]),{isOpen:t,toggleMenu:e=>{e||s(),l(e)}}},et=()=>{(0,n.useEffect)(()=>{let e=()=>{let e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh","".concat(e,"px"))};return e(),window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}},[])};var el=l(32699),es=l(46488),er=l(22029),en=e=>{let{cartCount:t,cartCountLoading:l,onMenuToggle:r,onSearch:n,onClearAddress:a,showHamburger:i,showClose:o}=e,d=(0,er.$V)(es.uS),{handleCartRedirection:c}=(0,V.o)();return(0,s.jsxs)("div",{className:"flex items-center px-4 py-3 shadow bg-white",children:[(0,s.jsx)(u.Z,{href:"/",onClick:()=>r(!1),children:(0,s.jsx)(p,{})}),(0,s.jsxs)("div",{className:"ml-auto flex items-center relative",children:[G.QV&&(0,s.jsx)(u.Z,{href:"#",onClick:n,children:(0,s.jsx)(m,{})}),d&&(0,s.jsx)("div",{className:"absolute left-[-5%] top-0",children:(0,s.jsx)(el.q,{id:es.uS})}),(0,s.jsxs)(u.Z,{href:c(),prefetch:!1,onClick:()=>r(!1),className:"ml-3 flex items-center",children:[(0,s.jsx)(v,{}),!l&&(0,s.jsx)("span",{className:"relative bg-[#91E200] rounded-full w-[10px] h-[10px] -top-[6px] -left-[10px] text-[7px] flex items-center justify-center",children:t})]}),i&&(0,s.jsx)("span",{className:"ml-2 cursor-pointer",onClick:()=>{null==a||a(),r(!0)},children:(0,s.jsx)(f,{})}),o&&(0,s.jsx)("span",{className:"ml-3 cursor-pointer",onClick:()=>r(!1),children:(0,s.jsx)(g,{})})]})]})},ea=e=>{let t=(0,a.TL)(),{isOpen:l,toggleMenu:r}=ee();et();let n=()=>{t(o.rY.setGlobalSearchPopUp(!0))};return(0,s.jsxs)("div",{className:e.className,children:[(0,s.jsx)(en,{cartCount:e.cartCount,cartCountLoading:e.cartCountLoading,onMenuToggle:r,onSearch:n,onClearAddress:e.doEmptyAddressInfo,showHamburger:!0}),l&&(0,s.jsx)("div",{className:"".concat(Y().menus," fixed inset-x-0 top-0 z-[9999] bg-white"),children:(0,s.jsxs)("div",{className:"flex flex-col h-full",children:[(0,s.jsx)("div",{className:"sticky top-0 z-20",children:(0,s.jsx)(en,{cartCount:e.cartCount,cartCountLoading:e.cartCountLoading,onMenuToggle:r,onSearch:n,showClose:!0})}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,s.jsx)(X,{toggleMenus:r,showMenu:l,menus:e.menus})})]})})]})},ei=(0,n.memo)(()=>{let e=(0,a.TL)(),{data:t}=(0,o.ic)(),l=(0,n.useRef)(null),{ready:r,status:u,cartCount:x,countLoading:h}=(0,a.CG)(e=>e.cart),{coveragePopUp:p}=(0,a.CG)(e=>e.shop),{globalSearchPopUp:m}=(0,a.CG)(e=>e.layout);(0,a.CG)(e=>e.cart.cartTypeCount);let v=(0,n.useCallback)(()=>{(p.addressInfo.isReady||p.addressInfo.info.addressInfo.address)&&e(i.shopSliceActions.resetCoverageInfo())},[p.addressInfo.isReady,p.addressInfo.info.addressInfo.address]),{windowSize:f}
1=(0,d.a)(),[g,b]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=()=>{let e=parseInt((0,c.WJ)("amdocs_cart")||"0",10),t=parseInt((0,c.WJ)("telkom_cart")||"0",10);e>0?b(e):t>0?b(t):b(0)};return e(),window.addEventListener("cartUpdated",e),()=>{window.removeEventListener("cartUpdated",e)}},[]),(0,s.jsxs)("header",{className:"sticky top-0 z-10 bg-white/90 backdrop-blur-[30px] shadow-[0_2px_6px_rgba(0,0,0,0.1)]",children:[f&&(null==f?void 0:f.width)<992?(0,s.jsx)(ea,{cartCount:g,menus:t,className:"block lg:hidden",doEmptyAddressInfo:v,cartCountLoading:h}):(0,s.jsx)(U,{cartCount:g,menus:t,className:"hidden lg:block",doEmptyAddressInfo:v,ready:r&&"fulfilled"===u,cartCountLoading:h,myElementRef:l}),G.QV&&m&&(0,s.jsx)(A.Z,{})]})}),eo=l(37482),ed=l(17766),ec=l(9791),eu=l(5152),ex=l.n(eu),eh=l(38530),ep=l(25206);let em=ex()(()=>Promise.all([l.e(1094),l.e(5383),l.e(6478),l.e(858),l.e(1695)]).then(l.bind(l,21695)),{loadableGenerated:{webpack:()=>[21695]},ssr:!1});var ev=(0,n.memo)(()=>{let e=(0,I.useRouter)(),t=(0,a.TL)(),l=(0,eh.Q)(),{flow:r,loader:u,isRedirecting:x,coverageFlowInfo:h,tokens:p,globalCoveragePopUp:m}=(0,a.CG)(o.Yv),{coveragePopUp:v}=(0,a.CG)(i.DF),{data:f}=(0,ec.x6)(),{data:g}=(0,ec.G5)();(0,a.WH)(),(0,n.useEffect)(()=>{l.globalPageView({url:window.location.href})},[]),(0,n.useEffect)(()=>{t((0,ep.getCartCount)())},[p]);let b=!1,w=async()=>{if(!b){b=!0;try{let e=await ed.Z.get(ed.Z.URLS.lambda.GET_SESSION_TOKEN);if((null==e?void 0:e.data)&&"string"==typeof(null==e?void 0:e.data))(0,c.FY)(c.zU,null==e?void 0:e.data,{path:"/",maxAge:3456e4,secure:!0}),t(o.rY.setTokens({token:e.data,accessToken:""}));else throw Error("failed to generate token")}catch(e){}}};(0,c.WJ)("amdocs_cart")||(0,c.FY)("amdocs_cart",0,{path:"/",maxAge:3456e4,secure:!0}),(0,c.WJ)("telkom_cart")||(0,c.FY)("telkom_cart",0,{path:"/",maxAge:3456e4,secure:!0}),(0,n.useEffect)(()=>{e.isReady&&t(o.rY.setGlobalSearchPopUp(!1))},[e]),(0,n.useEffect)(()=>{if(!e.isReady)return;let l=e.query.vendorType,s=r;if(l)s=l;else{let t=e.asPath;s="/"===t||t.indexOf("/personal")>-1?"personal":t.indexOf("/business")>-1?"business":s}r!=s&&t(o.rY.setFlow(s))},[e.isReady,e.asPath]),(0,n.useEffect)(()=>{(0,c.WJ)(c.zU)&&"object"!=typeof(0,c.WJ)(c.zU)?t(o.rY.setTokens({token:(0,c.WJ)(c.zU),accessToken:""})):w()},[]),(0,n.useEffect)(()=>{let l=e.asPath;l&&e.isReady&&((v.addressInfo.isReady||v.addressInfo.isRedirecting)&&(0===l.indexOf("/personal/")||0===l.indexOf("/business/")||0===l.indexOf("/check-coverage")?v.addressInfo.isRedirecting&&t(i.shopSliceActions.setCoverageAddressInfoRedirection(!1)):t(i.shopSliceActions.resetCoverageInfo())),0!==l.indexOf("/check-coverage")&&t(o.rY.setCoverageSelection({flow:"",subCategory:"",provider:""})))},[e.isReady,e.asPath]);let{windowSize:j}=(0,d.a)();(0,n.useEffect)(()=>{if(!e.isReady)return;let t=!1;e.asPath&&j.width<=601&&(t=-1!==e.asPath.indexOf("checkout")||-1!==e.asPath.indexOf("cart")||e.asPath.split("?")[0].split("/").length>3),t?document.body.setAttribute("clevva-widget","false"):document.body.setAttribute("clevva-widget","true")},[e.isReady,e.asPath,j]);let y=(0,n.useCallback)((l,s)=>{let{shallow:r}=s;"string"!=typeof l||r||t(o.rY.setIsRedirecting({status:!0,current:e.asPath}))},[e]),C=(e,s)=>{let{shallow:r}=s;"string"==typeof e&&(r||l.globalPageView({url:e}),t(o.rY.setIsRedirecting({status:!1,current:e})))},k=(e,l,s)=>{e&&(t(o.rY.setIsRedirecting({status:!1,current:l})),console.error(e))};return(0,n.useEffect)(()=>(e.events.on("routeChangeStart",y),e.events.on("routeChangeComplete",C),e.events.on("routeChangeError",k),()=>{e.events.off("routeChangeStart",y),e.events.off("routeChangeComplete",C),e.events.off("routeChangeError",k)})),(0,n.useEffect)(()=>{f.isReady&&!h.isReady&&t(o.rY.setCoverageFlowInfo(f))},[f.isReady,h]),(0,n.useEffect)(()=>{(null==g?void 0:g.length)>0&&t(o.rY.setLeadTypesInfo(g))},[g]),(0,s.jsxs)(s.Fragment,{children:[x.status||u?(0,s.jsx)(eo.Z,{}):null,m.open?(0,s.jsx)(em,{setOpen:e=>{t(o.rY.setCoveragePopup(e))},open:m.open}):null]})}),ef=()=>{let{windowSize:e}=(0,d.a)();return(0,n.useEffect)(()=>{if(window&&document){let t=document.getElementsByClassName("clevva-widget");if(t&&t.length&&document.querySelector){let t=document.querySelectorAll(".clevva-widget > button:first-of-type"),l=document.querySelectorAll('.clevva-widget > iframe[role*="dialog"]:first-of-type'),s=document.querySelectorAll('.clevva-widget > div[role*="note"]:first-of-type');t&&l&&s&&t.length&&l.length&&s.length&&(t=t[0],l=l[0],s=s[0],e.width>1440?(t.style.right=(e.width-1440)/2+16+"px",l.style.right=(e.width-1440)/2+16+"px",s.style.right=(e.width-1440)/2+80+"px"):(t.style.right="16px",l.style.right="16px",s.style.right="80px"))}}},[e]),(0,s.jsx)(s.Fragment,{})},eg=l(13114),eb=l(89681),ew=l(95187),ej=l(1756),ey=l(11316),eC=l(12663),ek=l(45578),eN=l.n(ek),e_=l(10064),eL=e=>{let{flow:t,isMobile:l,className:r,paymentMethod:n,enableCheckout:a,hasF500KEnabled:i,enableCheckoutProcess:o,onBeginCheckout:d,onOpenF500KPopup:c,onClickBlockedCheckout:u,onCartAction:x}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex gap-4 justify-center max-sm:mt-3"+r,children:[(0,s.jsx)(b.default,{link:"/cart?vendorType=".concat(t,"&orderPaymentType=").concat(n),isExternalUrl:!1,viewT
1ype:(0,R.xn)(t),className:" w-full text-center hover:!border-[#005288] hover:!text-[#005288] hover:shadow-[4px_4px_4px_0px_#002E4D4D,2px_2px_0px_0px_#51647166] text-sm py-2.5 rounded-lg font-Telkom123-Bold ",label:"View Cart",onClick:()=>{null==x||x("View Cart")}}),(0,s.jsx)(s.Fragment,{children:i&&l?(0,s.jsx)(b.default,{link:"",onClick:()=>{null==c||c()},isExternalUrl:!1,viewType:(0,R.j)(t),className:"w-full text-center flex-1 text-sm py-2.5 rounded-lg font-Telkom123-Bold ",label:"Continue"}):(0,s.jsx)(b.default,{link:a&&o&&n&&!i?"/".concat(t,"/checkout/").concat(n.toLowerCase()):"",onClick:e=>{a&&o&&n&&(null==x||x("Checkout"),null==d||d(e)),!o&&u&&u(t)},isExternalUrl:!1,viewType:a?(0,R.j)(t):"bgSecondaryGreycolorWhiteDisabled",className:"!rounded-[10px] py-[10px] font-Telkom123-Bold text-sm w-full text-center ",label:"Checkout"})})]})})},eF=l(79091),eS=l.n(eF),eE=l(73935);let eT=["/cart","/personal/checkout/contract?phase=accountDetails","/personal/checkout/contract?phase=deliveryDetails","/personal/checkout/contract?phase=paymentDetails","/personal/checkout/contract?phase=emailVerification","/business/checkout/contract?phase=accountDetails","/business/checkout/contract?phase=deliveryDetails","/business/checkout/contract?phase=paymentDetails","/business/checkout/contract?phase=documents","/personal/order-summary","/business/order-summary","/personal/checkout/contract?phase=enterIdOrPassportNumber"],eR="miniCartShown";function eM(){let e=(0,I.useRouter)(),t=(0,eh.Q)(),l=(0,a.TL)(),[r,i]=(0,n.useState)(!1),[o,d]=(0,n.useState)(!1),[c,u]=(0,n.use
1State)(!1),[x,h]=(0,n.useState)("personal"),p=(0,n.useRef)(100),m=(0,n.useRef)(null),v=(0,n.useRef)(null),f=(0,n.useRef)(12e3),{ordersList:g,paymentMethod:j,paymentMethods:y,ready:C}=(0,a.CG)(ej.qZ),k=(0,a.CG)(e=>(0,eC.Fw)(e,{vendorType:x,paymentMethod:j})),N=(0,n.useRef)(k),_=(0,a.CG)(e=>{var t;return null==e?void 0:null===(t=e.cart)||void 0===t?void 0:t.ordersList}),{defaultVendorType:L,hasBusinessItems:S,hasPersonalItems:E}=(0,a.CG)(eC.iT),T=(0,a.CG)(e=>{var t;return null==e?void 0:null===(t=e.cart)||void 0===t?void 0:t.stockData}),R=(0,n.useMemo)(()=>{if(!y||!y.length)return[];let e=null==y?void 0:y.filter(e=>(null==e?void 0:e.vendorType)==x);return[...eN()(e,e=>null==e?void 0:e.key)].filter(e=>!(null==e?void 0:e.hide))},[y,x]),M=!(null==T?void 0:T.loading)&&(null==k?void 0:k.some(e=>(null==e?void 0:e.f500kEnable)===!0)),B=!!(null==_?void 0:_.length),P=(0,n.useMemo)(()=>(0,ey.PE)(x,null==j?void 0:j.key,k),[x,null==j?void 0:j.key,k]),Z=(0,n.useMemo)(()=>{var e;return(null==T||!T.loading)&&!M&&(null==P?void 0:P.enableCheckout)&&(null==P?void 0:null===(e=P.groups)||void 0===e?void 0:e.length)>0},[null==T?void 0:T.loading,M,P]);(0,n.useEffect)(()=>u(!0),[]),(0,n.useEffect)(()=>{try{sessionStorage.getItem(eR)||l((0,ep.getCartListAsync)({}))}catch(e){l((0,ep.getCartListAsync)({}))}},[l]),(0,n.useEffect)(()=>{let e=()=>d(window.innerWidth<768);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,n.useEffect)(()=>{if(!B){let e=setTimeout(()=>i(!1),300);return()=>clearTimeout(e)}},[B]);let D=(0,n.useCallback)(e=>{l(ej.Up.onChangePaymentMethod(e))},[l]),H=(0,n.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(h(e),t){let t=null==y?void 0:y.filter(t=>(null==t?void 0:t.vendorType)===e),l=eN()(t,e=>null==e?void 0:e.key);l.length&&D({...null==l?void 0:l[0],vendorType:e})}},[y,D]),A=(0,n.useCallback)(()=>{m.current&&cancelAnimationFrame(m.current)},[]),V=(0,n.useCallback)(()=>{A()},[A]),O=(0,n.useCallback)(()=>{A(),p.current=100,f.current=12e3,(e=>{let t=performance.now(),l=s=>{let r=s-t,n=Math.max(0,100-(12e3-e+r)/12e3*100);p.current=n,v.current&&(v.current.style.width="".concat(n,"%")),r<e?m.current=requestAnimationFrame(l):(p.current=0,i(!1))};A(),m.current=requestAnimationFrame(l)})(12e3)},[A]),G=(0,n.useRef)(!1);(0,n.useEffect)(()=>{r&&B&&!G.current&&O(),r||A(),G.current=r},[r,B,O,A]);let U=(0,n.useCallback)(()=>{i(!1),V();try{sessionStorage.setItem(eR,"true")}catch(e){}},[V]);(0,n.useEffect)(()=>{L&&!e.asPath.startsWith("/cart")&&H(L)},[L,H,e.asPath]),(0,n.useEffect)(()=>{N.current=k},[k]),(0,n.useEffect)(()=>{var t;if(eT.some(t=>e.asPath.startsWith(t))){i(!1),V();return}let l=!1;if(C){try{l=!!sessionStorage.getItem(eR)}catch(e){}if(!l&&(null===(t=N.current)||void 0===t?void 0:t.length)){i(!0);try{sessionStorage.setItem(eR,"true")}catch(e){}}return()=>V()}},[e.asPath,C,V]);let q=(0,n.useCallback)(e=>{t.updateCartItemQuantity({orderItem:e,quantity:(null==e?void 0:e.quantity)-1,actionedfrom:"reminder"}),l(ej.Up.onDeleteItem({orderItem:e,vaeItem:null}))},[l,t]),Y=(0,n.useCallback)(e=>{"View Cart"===e&&t.reminderViewCart({step:x,summary:P,orders:g}),"Checkout"===e&&t.beginCheckout({summary:P,flow:x,orders:g,actionedfrom:"reminder"})},[t,x,P,g]);if(!c)return null;if(o){var z;let e=null!==(z=null==_?void 0:_.length)&&void 0!==z?z:0;return(0,eE.createPortal)((0,s.jsx)(eg.M,{children:r&&B&&(0,s.jsx)(eb.E.div,{initial:{y:80,opacity:0},animate:{y:0,opacity:1},exit:{y:80,opacity:0},transition:{type:"spring",stiffness:300,damping:28},className:"fixed bottom-[7.5rem] left-4 right-4 z-[999]",children:(0,s.jsxs)("div",{className:"relative bg-[#003F6A] rounded-[8px] pl-[16px] pr-[22px] pt-4 pb-4 flex items-center justify-between gap-3 shadow-lg",children:[(0,s.jsx)("button",{onClick:U,"aria-label":"Close cart popup",className:"absolute top-[-4px] right-[-2px] w-8 h-8 flex items-center justify-center text-[10px] text-[#fff] font-Telkom123-Bold rounded-full",children:"â"}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"bg-white/10 rounded-[8px] w-9 h-9 flex items-center justify-center flex-shrink-0 ",children:(0,s.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.91442 6H4.25V4.5H7.08558L7.83558 7.5H19.435L17.758 15.0461C18.2173 15.5188 18.5 16.1639 18.5 16.875C18.5 18.3247 17.3247 19.5 15.875 19.5C14.4253 19.5 13.25 18.3247 13.25 16.875C13.25 16.4724 13.3406 16.091 13.5026 15.75H11.4974C11.6594 16.
1091 11.75 16.4724 11.75 16.875C11.75 18.3247 10.5747 19.5 9.125 19.5C7.67525 19.5 6.5 18.3247 6.5 16.875C6.5 15.8741 7.06021 15.004 7.88419 14.5612L6.52 8.42233L5.91442 6ZM15.875 14.25H16.3984L17.565 9H8.18496L9.35163 14.25H15.875ZM15.875 15.75C15.2537 15.75 14.75 16.2537 14.75 16.875C14.75 17.4963 15.2537 18 15.875 18C16.4963 18 17 17.4963 17 16.875C17 16.2537 16.4963 15.75 15.875 15.75ZM8 16.875C8 16.2537 8.50368 15.75 9.125 15.75C9.74632 15.75 10.25 16.2537 10.25 16.875C10.25 17.4963 9.74632 18 9.125 18C8.50368 18 8 17.4963 8 16.875Z",fill:"white"})})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-white text-body-s font-Telkom123-Bold leading-tight",children:[e," ",1===e?"item":"items"," in your cart"]}),(0,s.jsx)("p",{className:"text-white/60 text-body-xs font-Telkom123-Regular leading-tight mt-0.5",children:"Pick up where you left off"})]})]}),(0,s.jsxs)(b.default,{link:"/cart",onClick:()=>t.reminderViewCart({step:x,summary:P,orders:g}),className:"bg-[#91E200] text-[#003F6A] text-body-xs font-Telkom123-Bold px-4 py-2 rounded-[5px] flex items-center gap-1.5 whitespace-nowrap flex-shrink-0 active:scale-95 transition-transform",children:[(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:"View"}}),(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6",stroke:"#003F6A",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})})}),document.body)}return(0,eE.createPortal)((0,s.jsx)(eg.M,{children:r&&B&&(0,s.jsxs)(eb.E.div,{onMouseEnter:()=>{A(),f.current=p.current/100*12e3},onMouseLeave:()=>{let e=f.current;if(e<=0)return;let t=performance.now(),l=s=>{let r=s-t,n=Math.max(0,(e-r)/12e3*100);p.current=n,v.current&&(v.current.style.width="".concat(n,"%")),r<e?m.current=requestAnimationFrame(l):(p.current=0,i(!1))};A(),m.current=requestAnimationFrame(l)},onWheelCapture:e=>e.stopPropagation(),initial:{opacity:0,x:95},animate:{opacity:1,x:[120,-6,0]},exit:{opacity:0,x:60},transition:{duration:.6,ease:[.22,1,.36,1]},className:"fixed md:top-[90px] lg:top-[180px] md:right-2 lg:right-4 w-[300px] \n bg-white shadow-xl rounded-lg border-[0px] border-gray-100 border-t-white border-t-[0.1px] overflow-hidden pb-3 z-[999] right-4 max-h-auto ".concat(eS().scrollbg," "),children:[(0,s.jsx)("div",{style:{height:3,width:"100%",background:"#e0e0e0"},children:(0,s.jsx)("div",{ref:v,style:{height:"100%",width:"100%",background:"#0099FF",borderRadius:"2px 0px 0px 2px",transition:"width 0.1s linear"}})}),(0,s.jsxs)("div",{className:"flex justify-between px-4 pt-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-semibold text-[16px]",children:"Item added to cart"}),(0,s.jsx)("p",{className:"text-[11.5px] text-gray-500",children:"Your item is waiting in the cart."})]}),(0,s.jsx)("button",{onClick:U,className:"text-gray-400 hover:text-gray-700","aria-label":"Close cart popup",children:"â"})]}),S&&E?(0,s.jsx)("div",{className:"flex gap-2 mt-2 mb-1 px-4",children:["personal","business"].map(e=>(0,s.jsx)("button",{onClick:()=>H(e),className:"flex-1 text-sm py-[5px] rounded-lg border capitalize ".concat(x===e?"bg-[#09F] text-white":"bg-gray-100"),children:e},e))}):null,(0,s.jsx)("div",{className:"w-full overflow-hidden",children:(0,s.jsx)("div",{className:"overflow-x-auto overflow-y-hidden mt-[3px] mx-4 border-b ".concat(eS().scrollbg),style:{WebkitOverflowScrolling:"touch",touchAction:"pan-x"},onWheel:e=>{e.currentTarget.scrollLeft+=e.deltaY},children:(0,s.jsx)("div",{className:"flex min-w-max gap-2 mb-[4px]",children:null==R?void 0:R.map(e=>(null==e?void 0:e.hide)?null:(0,s.jsx)("button",{onClick:()=>D(e),className:"cursor-pointer text-nowrap text-center px-2 pt-1 rounded-sm ".concat((null==e?void 0:e.key)===(null==j?void 0:j.key)?"border-[#09F] !border-b-[3px] font-normal text-tablet-bodyAlt-xs text-[#09F]":"text-[#005288] text-tablet-bodyAlt-xs"),children:e.label},"payment-tab-".concat(e.key)))})})}),(0,s.jsx)("div",{className:"max-h-[180px] min-h-[160px] overflow-y-auto [&::-webkit-scrollbar]:hidden my-[5px]",children:C?null==k?void 0:k.map((e,t)=>{var l,r,n,a,i,o,d;let c=!!e&&!!(!(0,e_._)(null==e?void 0:e.cartType)||(null==e?void 0:null===(o=e.vaeItems)||void 0===o?void 0:o.some(e=>!(0,e_._)(null==e?void 0:e.cartType)))||(null==e?void 0:null===(d=e.includedItems)||void 0===d?void 0:d.some(e=>!(0,e_._)(null==e?void 0:e.cartType))));return(0,s.jsxs)("div",{className:"flex items-start gap-3 py-2 relative px-4",children:[(0,s.jsx)("div",{className:"my-auto",children:(0,s.jsx)(w.ZP,{src:null==e?void 0:e.thumbnailImageUrl,alt:null!==(l=null==e?void 0:e.variationTitle)&&void 0!==l?l:"",fallbackurl:"/assets/images/common/placeholder.png",className:"rounded-md object-contain",width:48,height:48})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-[#0099FF] truncate",children:null==e?void 0:e.productTitle}),(0,s.jsx)("p",{className:"text-xs text-gray-800 truncate",children:null==e?void 0:e.planPeriod}),(0,s.jsx)("p",{className:"text-xs font-semibold text-[#003F6A] mt-1",children:(0,s.jsx)(ew.Z,{className:"inline-flex items-center gap-[1px]",price:function(e){var t,l;if(!e)return 0;let s=parseFloat(null===(l=String(e))||void 0===l?void 0:null===(t=l.replace(/R|,/g,""))||void 0===t?void 0:t.trim());return isNaN(s)?0:s}(null==e?void 0:e.costPrice)>0&&(0,ey.WI)(null!==(r=null==e?void 0:e.costPrice)&&void 0!==r?r:0,null!==(n=null==e?void 0:e.discount)&&void 0!==n?n:0,null!==(a=null==e?void 0:e.quantity)&&void 0!==a?a:1)||""})}),(null==e?void 0:e.orderOutOfStock)===!0&&!c&&(0,s.jsxs)("div",{className:"".concat(eS()["out-of-stock"]," absolute bottom-[5px] right-4 ml-auto flex items-center gap-[5px] rounded-[4px] border border-[#B7C2C8] px-[6px] py-[4px] lg:max-w-[110px]"),children:[(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0 mt-[2px]",children:(0,s.jsx)("path",{d:"M18.564 18.4078C22.6281 14.3437 22.6281 7.75446 18.564 3.69035C14.4999 -0.373761 7.91063 -0.373761 3.84652 3.69035M18.564 18.4078C14.4999 22.4719 7.91063 22.4719 3.84652 18.4078C-0.217595 14.3437 -0.217595 7.75446 3.84652 3.69035M18.564 18.4078L3.84652 3.69035",stroke:"#3C5564",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,s.jsx)("span",{className:"text-[11px] leading-[12px] text-secondary-blue-grey font-Telkom123-Light whitespace-nowrap",children:"Out of Stock"})]})]}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)("div",{className:"relative w-[25px] h-[25px]",children:(0,s.jsx)(w.ZP,{onClick:()=>q(e),layout:"fill",className:"cursor-pointer",src:"/assets/images/cart/delete.svg",unoptimized:!0,alt:"Delete item"})})})]},null!==(i=null==e?void 0:e.orderItemId)&&void 0!==i?i:t)}):(0,s.jsx)("div",{className:"animate-pulse space-y-4",children:[1,2,3].map(e=>(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)("div",{className:"w-16 h-16 bg-gray-200 rounded-md"}),(0,s.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,s.jsx)("div",{className:"h-3 bg-gray-200 rounded w-3/4"}),(0,s.jsx)("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]})]},e))})}),(0,s.jsx)("div",{className:"h-px border-gray-200 border-b-[1px] mb-1 mx-4"}),(0,s.jsxs)("div",{className:"flex justify-between text-[12px] font-semibold pb-2 mx-4",children:[(0,s.jsx)("span",{children:"Subtotal :"}),(0,s.jsx)(ew.Z,{price:(0,F.c)(null==P?void 0:P.total)})]}),(0,s.jsx)("div",{className:"px-4",children:(0,s.jsx)(eL,{paymentMethod:null==P?void 0:P.paramkey,enableCheckout:Z,enableCheckoutProcess:null==P?void 0:P.enableCheckoutProcess,flow:x,ordersList:g,hasF500KEnabled:M,isMobile:o,onOpenF500KPopup:()=>!1,onCartAction:Y})})]})}),document.body)}let eB=ex()(()=>Promise.all([l.e(8520),l.e(5383),l.e(6478),l.e(4236)]).then(l.bind(l,44236)),{loadableGenerated:{webpack:()=>[44236]},ssr:!1}),eP=ex()(()=>Promise.all([l.e(5383),l.e(8922)]).then(l.bind(l,18922)),{loadableGenerated:{webpack:()=>[18922]},ssr:!1}),eZ=ex()(()=>Promise.all([l.e(6091),l.e(5383),l.e(6478),l.e(1223),l.e(3910),l.e(6228)]).then(l.bind(l,36228)),{loadableGenerated:{webpack:()=>[36228]},ssr:!1}),eD=ex()(()=>Promise.all([l.e(490),l.e(5383),l.e(9264)]).then(l.bind(l,59264)),{loadableGenerated:{webpack:()=>[59264]},ssr:!1}),eI=ex()(()=>Promise.all([l.e(5476),l.e(5383),l.e(5789)]).then(l.bind(l,75789)),{loadableGenerated:{webpack:()=>[75789]},ssr:!1}),eH=ex()(()=>Promise.all([l.e(272),l.e(5383),l.e(6478),l.e(867)]).then(l.bind(l,40867)),{loadableGenerated:{webpack:()=>[40867]},ssr:!1}),eA=ex()(()=>Promise.all([l.e(5383),l.e(3335)]).then(l.bind(l,93335)),{loadableGenerated:{webpack:()=>[93335]},ssr:!1}),eV=ex()(()=>Promise.all([l.e(1094),l.e(5383),l.e(6478),l.e(2188),l.e(6008),l.e(5895)]).then(l.bind(l,5895)),{loadableGenerated:{webpack:()=>[5895]},ssr:!1}),eO=ex()(()=>Promise.all([l.e(1094),l.e(5383),l.e(6478),l.e(2188),l.e(2751)]).then(l.bind(l,22751)),{loadableGenerated:{webpack:()=>[22751]},ssr:!1});function eG(e){let{children:t,header:l,footer:n}=e,{callMeBackPopUp:i,CallMeBackStore:o,blogCallMeBackPopup:d,f500kCallMeBackPopup:c}=(0,a.CG)(e=>e.layout),{findPinInfo:u,findPinForm:x,findPinMobileVerfy:h,findPinAddressForm:p}=(0,a.CG)(e=>e.findpin),{cartPaymentNotification:m}=(0,a.CG)(e=>e.cart);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ef,{}),(0,s.jsx)(ev,{}),(0,s.jsxs)("main",{className:"w-full mx-auto",children:[l?(0,s.jsx)(ei,{}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)("section",{className:" min-h-[calc(100vh_-_178px)]",children:t}),(0,s.jsx)(eM,{}),n?(0,s.jsx)(r.Z,{}):(0,s.jsx)(s.Fragment,{}),(i.open||(null==i?void 0:i.notification))&&(0,s.jsx)(eZ,{}),c.open&&(0,s.jsx)(eP,{}),u.open&&(0,s.jsx)(eI,{}),x.open&&(0,s.jsx)(eH,{}),p.open&&(0,s.jsx)(eB,{}),h.open&&(0,s.jsx)(eD,{}),(d.open||d.notification)&&(0,s.jsx)(eV,{}),o.open&&(0,s.jsx)(eO,{}),m.open&&(0,s.jsx)(eA,{})]})]})}function eU(e){return(0,s.jsx)(eG,{header:!0,footer:!0,children:e})}function eq(e){return(0,s.jsx)(eG,{header:!0,footer:!1,children:e})}function eY(e){return e.getLayout=eq,e}var ez=function(e){return e.getLayout=eU,e}},9791:function(e,t,l){"use strict";l.d(t,{G5:function(){return d},vs:function(){return c},x6:function(){return o}});var s=l(67294),r=l(16976),n=l(17766),a=l(42356);let i=e=>{let t=JSON.parse(JSON.stringify(e?[...e]:[]));return t.map((e,t)=>{var l,s;return{index:t,name:null===(s=e.name)||void 0===s?void 0:null===(l=s.toLowerCase())||void 0===l?void 0:l.trim()}}).filter(e=>{let{name:t}=e;return"fibre"===t||"fibre-to-the-room"===t||"fibre to the room"===t}
1).forEach(e=>{var l,s,r,n;let{index:i}=e;(null===(r=t[i])||void 0===r?void 0:null===(s=r.name)||void 0===s?void 0:null===(l=s.toLowerCase())||void 0===l?void 0:l.trim())==="fibre-to-the-room"&&(t[i].name="fibre to the room"),t[i].providers&&t[i].providers.length&&(t[i].providers.some(e=>{var t,l;return(null==e?void 0:null===(l=e.name)||void 0===l?void 0:null===(t=l.toLowerCase())||void 0===t?void 0:t.trim())==="all"})||t[i].providers.unshift({id:-1,name:"All",color:""}),(null===(n=t[i])||void 0===n?void 0:n.category)&&"home_internet"===(0,a.f$)(t[i].category,"_",!0)&&(t[i].providers=t[i].providers.filter(e=>!["seacom"].includes((0,a.f$)(null==e?void 0:e.name,"",!0)))))}),t};function o(){let{data:e,isLoading:t,error:l}=(0,r.ZP)("cache/layout/coverage-subcategories",()=>n.Z.get(n.Z.URLS.lambdaCache.GET_COVERAGE_SUBCATEGORIES_API_URL),{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateOnMount:!0,dedupingInterval:36e5});return{data:(0,s.useMemo)(()=>{var s,r;let n={isReady:!1,personal:[],business:[]};if(!t&&!l&&(null==e?void 0:e.data)&&(null===(s=e.data.business)||void 0===s?void 0:s.length)&&(null===(r=e.data.personal)||void 0===r?void 0:r.length)){let{personal:t,business:l,...s}=e.data;n={...n,...s,personal:i(t),business:i(l),isReady:!0}}return n},[e,t,l]),isLoading:t,error:l}}function d(){let{data:e,isLoading:t,error:l}=(0,r.ZP)("cache/layout/leadTypes",()=>n.Z.get(n.Z.URLS.lambdaCache.GET_LEAD_TYPES_SUBCATEGORIES_API_URL),{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateOnMount:!0,dedupingInterval:36e5});return{data:(0,s.useMemo)(()=>{var t;return null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[]},[null==e?void 0:e.data]),isLoading:t,error:l}}async function c(e){try{var t;let l=await n.Z.post(n.Z.URLS.lambda.COMPARE_PRODUCTS_API_URL,e);return null!==(t=null==l?void 0:l.data)&&void 0!==t?t:null}catch(e){console.error("compareProductsApi failed:",e)}}},97479:function(e,t,l){"use strict";l.d(t,{o:function(){return i}});var s=l(11163),r=l(23403),n=l(96337),a=l(1756);let i=()=>{let e=(0,s.useRouter)(),t=(0,n.TL)();return{handleAddToCartType:(l,s,n)=>{let i="personal"===l.category.vendorType&&(l.category.name.includes("Mobile")||l.category.name.includes("Devices")),o=i?"amdocs_cart":"telkom_cart",d=i?"telkom_cart":"amdocs_cart",c=parseInt((0,r.WJ)(d)||0,10),u=parseInt((0,r.WJ)(o)||0,10);if(c>0){n({visible:!0,cartType:d});return}if(i){let l=u+1;(0,r.FY)(o,l,{path:"/",maxAge:3456e4,secure:!0}),window.dispatchEvent(new Event("cartUpdated")),localStorage.setItem("cartCount",String(l)),t(a.Up.setCartTypeCount(l)),e.push("/online-shop/cart")}else s()},handleCartRedirection:()=>parseInt((0,r.WJ)("amdocs_cart")||0,10)>0?"/online-shop/cart":"/cart"}}},95011:function(e){e.exports={"business-page-dropdown":"EurekaInputSearchBox_business-page-dropdown__bgd_x","search-product-cards":"EurekaInputSearchBox_search-product-cards__b9LQp","search-items":"EurekaInputSearchBox_search-items__SpoH4","search-icon":"EurekaInputSearchBox_search-icon__ofpB8","search-category-items":"EurekaInputSearchBox_search-category-items__gWq67","tabs-list":"EurekaInputSearchBox_tabs-list__ZNNr7",slidecards:"EurekaInputSearchBox_slidecards__HjDS_","global-search-input-bg-color":"EurekaInputSearchBox_global-search-input-bg-color__OKXIU","select-page":"EurekaInputSearchBox_select-page__1XSLi","global-search":"EurekaInputSearchBox_global-search__x_BOo","search-box":"EurekaInputSearchBox_search-box__aSxzW","drop-down-icon":"EurekaInputSearchBox_drop-down-icon___4eVv","input-search-box":"EurekaInputSearchBox_input-search-box__rTTcs"}},82461:function(e){e.exports={animation:"EurekaSearchView_animation__PmRFL",myfirst:"EurekaSearchView_myfirst__sRbbg","popup-bg-color":"EurekaSearchView_popup-bg-color__4l947"}},34243:function(e){e.exports={main:"BellBadge_main__uYroB",sub:"BellBadge_sub__CzXV7",topTip:"BellBadge_topTip__Uo1Hx",para:"BellBadge_para__h1Xrx"}},79091:function(e){e.exports={scrollbg:"MiniCartPopup_scrollbg__MbVKT","out-of-stock":"MiniCartPopup_out-of-stock__A8_33"}},47734:function(e){e.exports={animation:"EurekaSearchNew_animation__a1qqF",myfirst:"EurekaSearchNew_myfirst__RrQvM","popup-bg-color":"EurekaSearchNew_popup-bg-color__taIiJ"}},76742:function(e){e.exports={submenus:"MobileMenu_submenus__ZwOdB",menus:"MobileMenu_menus__ujrYh","mobile-footer":"MobileMenu_mobile-footer__gRt5X","scroll-area":"MobileMenu_scroll-area__L2jTj"}},1816:function(e){e.exports={mobile_menu:"MobileMenuNew_mobile_menu___YyJG"}}}]);
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.