1"use strict";(self.webpackChunktataplay_getconnection=self.webpackChunktataplay_getconnection||[]).push([[5800],{52132(e,t,n){n.r(t),n.d(t,{default:()=>l});var s,a=n(96540),r=n(88827),o=n(49862),i=n(45853),c=n(74848);let l=(0,i.y)(s=class extends a.Component{constructor(...e){super(...e),this.state={button:{buttonConfig:{type:"button",class:"wAutoLgBlue okButton"},text:"Ok"}},this.getHeading=e=>{const t=e.split("@");return{heading:t.length>1?t[0]:e,subHeading:t.length>1?t[1]:""}}}redirect(){const{history:e}=this.props,t=!o.A.isServer()&&localStorage.getItem("SOURCE")||"",n={PROMOTION:{url:`/${o.A.connection_path}`},ATL:{url:`/${o.A.atl_unauth_recommendation_path}/choose-stb`},COMBOJOURNEY:{url:`/${o.A.sellingCombos_path}/listing`},UPGRADE_STB:{url:`/${o.A.upgrade_stb_path}/choose-stb`},default:{url:`/${o.A.connection_path}`}};if("PROMOTION"===t)window.location=n[t].url;else if("ATL"===t){window.location=n[t].url;const e=getSession(o.A.sessionNames.atlUnauth);e.stepDone=6,setSession(o.A.sessionNames.atlUnauth,e)}else"COMBOJOURNEY"===t||"UPGRADE_STB"===t?e.push(n[t].url):(!o.A.isServer()&&localStorage.clear(),window.location=n.default.url)}render(){const{button:e}=this.state,{modalParameters:{message:t,modalId:n}}=this.props;return(0,c.jsxs)("div",{className:"heading-sm text-center",style:{marginBottom:"0px"},children:[this.getHeading(t).heading&&(0,c.jsx)("h1",{id:n?`t-${n}`:void 0,className:"heading1 gradient",children:this.getHeading(t).heading}),this.getHeading(t).subHeading&&(0,c.jsx)("h3",{className:"heading2",children:this.getHeading(t).subHeading}),(0,c.jsxs)("div",{className:"okButton",children:[(0,c.jsx)("p",{children:"Â "}),(0,c.jsx)(r.A,{config:e.buttonConfig,content:e.text,onClick:()=>this.redirect()})]})]})}})||s},88827(e,t,n){var s=n(64467),a=n(80045),r=(n(96540),n(5556)),o=n.n(r),i=n(51891),c=n(74848);const l=["content","config","disabled","redBorder"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,s)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,s.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const d=e=>{const{content:t,config:n,disabled:s=!1,redBorder:r}=e,o=(0,a.A)(e,l),u=["animated1","fadeIn1","btn"];switch(r&&u.push("redBorder"),n.class){case"blue":u.push("btn-primary btn-lg");break;case"white":u.push("btn-secondary btn-lg");break;case"smallBlue":u.push("btn-primary mT10");break;case"mediumBlue":u.push("btn-primary btn-medium");break;case"smallWhite":u.push("btn-secondary");break;case"innerBlue":default:u.push("btn-primary");break;case"wAutoBlue":u.push("btn-primary w-auto");break;case"wAutoWhite":u.push("btn-secondary w-auto");break;case"wAutoLgBlue":u.push("btn-primary w-auto btn-lg");break;case"wAutoLgWhite":u.push("btn-secondary w-auto btn-lg");break;case"wAutoBtnLink":u.push("btn-link continue-btn w-auto btn-lg");break;case"wAutoBtnContinue":u.push("btn btn-lg w-auto btn-link continue-btn");break;case"wSmallBlue":u.push("btn btn-primary w-auto add-offer-btn waves-effect waves-light");break;case"btnLink":u.push("btn-secondary btn-link");break;case"availOffer":u.push("waves-effect waves-light btn-lh-h");break;case"removeBtn":u.push("btn-remove")}return(0,c.jsx)(i.A,b(b({type:n.type,disabled:s,className:u.join(" "),id:n.id?n.id:null},o),{},{children:(0,c.jsx)("span",{children:t})}))},h=d;d.propTypes={config:o().object.isRequired,content:o().string.isRequired},n.d(t,["A",0,h])}}]);
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.