1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3095],{13095:function(e,n,t){"use strict";t.r(n);var i=t(22678),o=t(11010),a=t(48564),s=t(18007),r=t(72253),u=t(53304),c=t(10092),l=t(85893),_=t(67294),p=t(6805),g=t(41664),d=t.n(g),m=t(90251),v=t.n(m),h=t(37241),f=t(99099),M=t(71282),y=t(40842),k=t(36808),S=t.n(k),b=t(2664),w=t(28201),N=t(67745),O=t(74542),P=t(78002),x=t(2204),R=t(46037),C=t(5152),j=t.n(C),A=t(17028),D=t(39173),B=j()(function(){return Promise.all([t.e(7165),t.e(9927)]).then(t.bind(t,39927))},{loadableGenerated:{webpack:function(){return[39927]}},loading:function(){return(0,l.jsx)(l.Fragment,{})},ssr:!0}),q=j()(function(){return t.e(6998).then(t.bind(t,86998))},{loadableGenerated:{webpack:function(){return[86998]}},loading:function(){return(0,l.jsx)(l.Fragment,{})},ssr:!0}),L=j()(function(){return t.e(8046).then(t.bind(t,98046))},{loadableGenerated:{webpack:function(){return[98046]}},loading:function(){return(0,l.jsx)(l.Fragment,{})},ssr:!0}),F=function(e){(0,s._)(Navigation,e);var n=(0,u._)(Navigation);function Navigation(){var e;return(0,a._)(this,Navigation),e=n.apply(this,arguments),e.state={isSubMenuOpen:!0,open:!1,open_myaccount:!1,canRenderSubMenu:!1,canRenderSubMenuMyAccount:!1,mouseOver:!1,combinedUrl:"",isMobile:!1},e.toggleSubMenu=function(){e.setState({isSubMenuOpen:!e.state.isSubMenuOpen})},e.closeMenu=function(n){"my_account"==n?e.setState({open_myaccount:!1,mouseOver:!1}):e.setState({open:!1,mouseOver:!1})},e.onMouseOver=function(){e.setState({mouseOver:!0})},e.toggleMenu=function(n){"my_account"==n?e.setState({canRenderSubMenuMyAccount:!e.state.canRenderSubMenuMyAccount}):e.setState({canRenderSubMenu:!e.state.canRenderSubMenu})},e.signOut=function(){var n;(null===(n=e.props.cart)||void 0===n?void 0:n.quantity)>0?e.props.setSignOutAlert(!0):(0,M.lv)().then(function(){(0,O.DN)({}),e.props.setIsAuthenticate(!1),S().remove("customer_personal_details"),S().remove("is_authenticate"),e.props.deleteCart(!1),window.location.href=window.location.origin}).catch(function(e){console.log("err =>",e)})},e.openMenu=function(n){"my_account"==n?e.setState({open_myaccount:!0,canRenderSubMenuMyAccount:!0}):e.setState({open:!0,canRenderSubMenu:!0})},e.componentDidUpdate=function(){e.setState({combinedUrl:(0,f.aZ)("/home-repair-maintenance-plans",(0,f.VC)())}),e.setState({isMobile:window.innerWidth<991})},e.componentDidMount=function(){e.setState({isMobile:window.innerWidth<991})},e.handle_nav=function(n){e.props.router.push("/".concat((0,f.aZ)(n,(0,f.VC)()))),"login"==n&&(0,P.Kw)((0,r._)({},(0,x.VQ)(e.props.router),(0,f.We)())),setTimeout(function(){e.props.toggleNav()},100)},e.onClickSection=function(n){e.props.toggleProfile(n)},e.onProfileLogout=function(){e.signOut()},e.getActivatePlans=function(e){return e.filter(function(e){if("Activation Pending"===e.plan_status)return e})},e.getActivateLink=function(){if(!e.props.customer.is_authenticate)return"/login/";var n=(0,A.wT)(),t={};if(n){t={token_id:n.token_id,phone:n.phone,activation_orders:!0};var a,s=(0,i._)(e);(0,D.Sz)({application:"website",data:JSON.stringify(t)}).then((a=(0,o._)(function(e){var n;return(0,c.Jh)(this,function(t){switch(t.label){case 0:if(!e.data.plans)return[3,2];return[4,s.getActivatePlans(e.data.plans)];case 1:return[2,(n=t.sent()).length>1?"/account/activation":"/account/activation/".concat(n[0].osid)];case 2:return[2]}})}),function(e){return a.apply(this,arguments)})).catch(function(e){console.log("error",e)})}},e}return Navigation.prototype.render=function(){var e,n,t,i,o=this,a=this.props,s=a.isOpen,u=a.toggleNav,c=a.category_links,g=a.isProfileOpen,d=a.toggleProfile,m=[{title:"Device & Plans",link:"./",isNew:!1,isBtn:!1,hasMenu:!0,menuName:"device_plan",menu:this.state.canRenderSubMenu&&(0,l.jsx)(q,{router:this.props.router,category_links:c,isDirectLink:!1,toggleNav:u,open:this.state.open,closeMenu:this.closeMenu,isMobile:this.state.isMobile,onMouseOver:this.onMouseOver,mouseOver:this.state.mouseOver})},{title:"Activate Plan",link:"/account/activation?nav=header",isNew:!1,isBtn:!1,hasMenu:!1,isDirectLink:!1,menu:null,external:!0},{title:"Track Service Request",link:"/selfserve/tracker",isNew:!1,isBtn:!1,hasMenu:!1,menu:null,isDirectLink:!1,external:!0},{title:"Raise Service Request",link:"/account/plans",isNew:!1,isBtn:!1,hasMenu:!1,menu:null,isDirectLink:!1,external:!0},{title:"Sign In",link:"/login",isBtn:!0,hasMenu:!0,isNew:!1,menuName:"my_account",menu:this.state.canRenderSubMenuMyAccount&&(0,l.jsx)(L,{isDirectLink:!1,router:this.props.router,toggleNav:u,open:this.state.open_myaccount,closeMenu:this.closeMenu,isMobile:this.state.isMobile,onMouseOver:this.onMouseOver,mouseOver:this.state.mouseOver,customer:this.props.customer,cart:this.props.cart})}],h=(null===(n=this.props.customer)||void 0===n?void 0:null===(e=n.name)||void 0===e?void 0:e.length)==0?"My Account":(null===(i=this.props.customer)||void 0===i?void 0:null===(t=i.name)||void 0===t?void 0:t.length)>10?"Hi, "+this.props.customer.name.substring(0,10)+"...":"Hi, "+this.props.customer.name,f=this.state.isMobile;return(0,l.jsxs)(_.Fragment,{children:[(0,l.jsx)("nav",{role:"navigation","aria-label":"Main Navigation",className:"".concat(v().nav," container ").concat(s?v().__open:v().__hidden),"data-disabled":this.props.isDisabled,"data-inverse":this.props.isInverse,children:(0,l.jsx)(p.EA.ul,{className:v()._list,variants:{open:{transition:{staggerChildren:.07,delayChildren:.2}},closed:{transition:{staggerChildren:.05,staggerDirection:-1}}},children:!(0,R.wM)(this.props.router)&&m.map(function(e,n){if(o.props.customer.is_authenticate&&("Sign In"===e.title||""===e.title)&&(e.title=h,e.link="/account/plans"),!f&&"Raise Service Request"!==e.title||f)return!(f&&"my_account"===e.menuName)&&(0,l.jsx)(MenuItem,{isBtn:e.isBtn,isSubMenuOpen:o.state.isSubMenuOpen,toggleSubMenu:o.toggleSubMenu,hasMenu:e.hasMenu,menu:e.menu,title:e.title,link:e.link,menuName:e.menuName,open:o.state.open_myaccount,openMenu:o.openMenu,closeMenu:o.closeMenu,isDirectLink:e.isDirectLink,external:null==e?void 0:e.external,isNew:e.isNew,setJourneyStart:e.setJourneyStart,customer_name:o.props.customer.name,isInverse:o.props.isInverse,toggleNav:u,router:o.props.router,isMobile:f},"nav-".concat(n))})})}),(0,l.jsxs)("nav",{className:"".concat(v().profile_info," ").concat(g?v().__openProfile:v().__hiddenProfile," "),children:[(0,l.jsx)("div",{className:"".concat(v().profile_empty),onClick:function(e){d(e)}}),(0,l.jsxs)("div",{className:"".concat(v().profile_container," ").concat(g?v().__openProfile:v().__hiddenProfile),children:[g&&f&&(0,l.jsx)(B,(0,r._)({signOutAlert:this.onProfileLogout,onSection:this.onClickSection},this.props)),(0,l.jsx)("div",{className:"".concat(v().close_sign),onClick:function(e){d(e)}})]})]})]})},Navigation}(_.PureComponent),MenuItem=function(e){var n=e.isMobile&&"Sign In"==e.title,onClickHandler=function(n){return"/login"==e.link?(0,P.Kw)((0,r._)({},(0,x.VQ)(e.router),(0,f.We)())):"/activation"==e.link?(0,P.xF)({}):(0,P.wO)((0,r._)({target_url:e.link},(0,x.VQ)(e.router),(0,f.We)())),e.setJourneyStart&&window.localStorage.setItem("journey_starts_from",e.setJourneyStart),e.hasMenu?(n.preventDefault(),e.isMobile&&e.toggleSubMenu()):e.toggleNav(),e.link&&"device_plan"!=e.menuName&&e.router.push(e.link),!0},t=e.isNew?v().nav_new:"";t+=e.isBtn?v().data_btn:"";var i=e.isDirectLink?(0,l.jsx)("a",{href:e.link,onClick:function(n){onClickHandler(n),e.toggleNav()},children:e.title}):(0,l.jsx)("a",{href:e.link,className:t,onClick:function(e){return onClickHandler(e)},"data-inverse":e.isInverse,children:(0,l.jsxs)(l.Fragment,{children:[e.isBtn&&(0,l.jsx)(w.Z,{style:{verticalAlign:"middle",width:"24",height:"24"}}),(0,l.jsx)("span",{className:e.isBtn?v().btn_title:"",children:e.title})]})});return(0,l.jsxs)(p.EA.li,{variants:{open:{y:0,opacity:1,transition:{y:{stiffness:1e3,velocity:-100}}},closed:{y:50,opacity:0,transition:{y:{stiffness:1e3}}}},className:v()._list__item,"data-btn":e.isBtn,"data-menu":e.hasMenu,"data-open":e.open,onMouseOver:function(){return!!e.hasMenu&&("my_account"==e.menuName?e.openMenu("my_account"):e.openMenu(),!0)},onMouseOut:function(){return!!e.hasMenu&&("my_account"==e.menuName?e.closeMenu("my_account"):e.closeMenu(),!0)},children:[!n&&e.external?"Logout"==e.title?e.customer_name?(0,l.jsx)(d(),{className:t,href:"Logout"==e.title?"#":e.link,onClick:function(){e.isBtn&&(0,h.i)(),"L
1ogout"==e.title&&e.signOut(),e.toggleNav(),(0,P.wO)((0,r._)({target_url:e.link},(0,x.VQ)(e.router),(0,f.We)()))},children:e.title}):"":(0,l.jsx)(d(),{className:t,href:e.link,onClick:function(){e.isBtn&&(0,h.i)(),e.toggleNav(),"Activate Plan"==e.title?(0,P.xF)({}):(0,P.wO)((0,r._)({target_url:e.link},(0,x.VQ)(e.router),(0,f.We)()))},children:e.title}):i,e.hasMenu&&null!==e.menu&&e.isSubMenuOpen&&e.menu]})};n.default=(0,b.$j)(function(e){return{customer:e.customerReducer,cart:e.cart}},function(e){return{setSignOutAlert:function(n){return e((0,y.Dp)(n))},setIsAuthenticate:function(n){return e((0,y.K4)(n))},deleteCart:function(n){return e((0,N.al)(n))}}})(F)},37241:function(e,n,t){"use strict";t.d(n,{K:function(){return trackPage},i:function(){return raiseServiceRequestTrigeer}});var i=t(72253),o=t(2204),a=t(42151),trackPage=function(e,n){try{(0,o.Yq)({gtm:!0,segment:!0},{segment:{event:"Page View",payload:(0,i._)({page_type:e},n)},gtm:{event:"pageview",payload:(0,i._)({page_type:e,category:"Page View"},n)}})}catch(e){console.log("error while pushing to datalater")}},raiseServiceRequestTrigeer=function(){try{(0,a.o)("RSR_Website_Header",{category:"Raise Service Request",action:"RSR_Website_Buttonclick",page_name:"Home Page",field_name:"Raise Service Request"})}catch(e){console.log("error while pushing to datalater")}}},74542:function(e,n,t){"use strict";t.d(n,{DN:function(){return logOutClicked},O0:function(){return raiseSrPageViewed},he:function(){return loginSuccess},pi:function(){return notFindMyPlanClicked},ve:function(){return otpRequestSuccess}});var i=t(72253),o=t(2204),otpRequestSuccess=function(e){try{(0,o.kv)({gtm:!1,segment:!0},{segment:{event:"OTP Requested",payload:(0,i._)({},e)}})}catch(e){console.log("error while pushing to datalayer")}},loginSuccess=function(e){try{(0,o.kv)({gtm:!1,segment:!0},{segment:{event:"Login Success",payload:(0,i._)({},e)}})}catch(e){console.log("error while pushing to datalayer")}},raiseSrPageViewed=function(e){try{(0,o.kv)({gtm:!1,segment:!0},{segment:{event:"Raise SR Page Viewed",payload:(0,i._)({},e)}})}catch(e){console.log("error while pushing to datalayer")}},notFindMyPlanClicked=function(e){try{(0,o.kv)({gtm:!1,segment:!0},{segment:{event:"Don't Find My Plan Clicked",payload:(0,i._)({},e)}})}catch(e){console.log("error while pushing to datalayer")}},logOutClicked=function(e){try{(0,o.kv)({gtm:!1,segment:!0},{segment:{event:"Logout Successful",payload:(0,i._)({},e)}})}catch(e){console.log("error while pushing to datalayer")}}},90251:function(e){e.exports={nav:"nav_nav__1bIB1",__open:"nav___open__d59SP",__hidden:"nav___hidden__qbiqt",_list:"nav__list__dZDmb",signin:"nav_signin__CCDFa",text:"nav_text__Tan_G",_list__item:"nav__list__item__7Q3BP",nav_new:"nav_nav_new__qz3fK",category_title:"nav_category_title__Ngnoe",open_menu:"nav_open_menu__PZcBE",data_btn:"nav_data_btn__AvlUY",btn_title:"nav_btn_title__6OZok",partner_sign_in:"nav_partner_sign_in__uuiRE",menu:"nav_menu__SEh6s",_menu_row:"nav__menu_row__6eFQr",_menu_col:"nav__menu_col__0R_Q4",superscript:"nav_superscript__XFbVl",_menu_list:"nav__menu_list__5nukm",menu_account:"nav_menu_account__p0k8A",profile_info:"nav_profile_info__4M5Pi",profile_empty:"nav_profile_empty__ozlEZ",profile_container:"nav_profile_container__uqG_9",close_sign:"nav_close_sign__p_jWB",__openProfile:"nav___openProfile___6kJh",__hiddenProfile:"nav___hiddenProfile__VFgbr"}}}]); 2//# sourceMappingURL=3095.903a3a7709bc7d97.js.map
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.