"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4329],{"+oO3":(t,e,n)=>{n.d(e,{X:()=>h});var o=n("XLRv"),r=n("mXGw"),i=n("injf"),u=n("oNR1"),c=n("EtIi"),s=n("iKgc"),a=n("siP3"),l=n("bn7j"),d=n("tR6V"),g=n("ujRB"),f=n("gDpn"),p=n("0j4A"),v=f.Ay.div.withConfig({componentId:"sc-yrivrf-0"})(["display:flex;align-items:center;height:",";padding:",";margin-right:",";font-size:",";white-space:nowrap;background:",";"," border-radius:",";cursor:pointer;",";"],(0,s.KQt)(64),(0,s.KQt)(0,24),(0,s.KQt)(16),(0,s.KQt)(28),p.oXL,c.lY7&&"border: ".concat((0,s.KQt)(2)," solid ").concat(p.Kf6,";"),(0,s.KQt)(40),(function(t){return t.active?(0,f.AH)(["font-weight:bold;color:",";background:",";"],p.Wdf,p.Nhs):s.zPi}));const m=f.Ay.div.withConfig({componentId:"sc-yrivrf-1"})(["display:flex;padding:",";overflow-x:auto;color:",";",";border-bottom:"," solid ",";"],(0,s.KQt)(24),p.jde,(function(){return s.tGk&&s.ohi?(0,f.AH)(["&::after{content:'';min-width:",";}"],(0,s.KQt)(12)):null}),(0,s.KQt)(2),p.M0r);var b=function(t){var e=t.filterIds,n=void 0===e?[]:e,g=t.sectionName,f=void 0===g?"current":g,p=t.couponName,b=t.scrollToSticky,h=void 0===b?function(){}:b,w=(0,i.d4)((function(t){return(0,l.A)(t,{filterIds:n})})),E=(0,i.d4)((function(t){return t.getIn(["marketFilter",f,"filterId"])})),I=(0,d.A)([a.gQO.P8,a.P39.statisticsPush]),A=(0,o.A)(I,2),y=A[0],K=A[1],C=(0,r.useRef)(null),O=(0,u.zy)(),Q=c.G2_.home===O.pathname?c.STD.HOME:c.STD.SPORT_POPULAR;return(0,r.useEffect)((function(){n.length&&!n.includes(E)&&y(n[0],f)}),[n]),(0,r.useEffect)((function(){C&&(0,s.HEn)({selectedItemElement:C.current})}),[E,n,C]),r.createElement(m,null,w.map((function(t){var e,n,o=t.id,i=t.name;return r.createElement(v,{key:o,onClick:(e=o,n=i,function(){Q&&K(c.Ib3.TAP_EVENT,{action:c.uOK.SELECT,feature:c.aHF.MARKET,order:w.findIndex((function(t){return t.id===e})),screen:Q,value:n,sub_value:p}),y(e,f),h()}),active:o===E,ref:o===E?C:null},i)})))},h=(0,g.A)(b)},J9C1:(t,e,n)=>{n.d(e,{A:()=>B});var o=n("kvBl"),r=n("mXGw"),i=n("XLRv"),u=n("injf"),c=n("oNR1"),s=n("3KFY"),a=n("iKgc"),l=n("EtIi");const d=(0,n("7oZZ").Mz)((function(t){return t.get("eventEntities",(0,s.Map)())}),(function(t,e){return e}),(function(t){return t.get("marketEntities",(0,s.Map)())}),(function(t){return t.getIn(["removedEntities","markets"],(0,s.Set)())}),(function(t){return t.getIn(["removedEntities","events"],(0,s.Set)())}),(function(t,e,n,o,r){return!!e&&e.some((function(e){var i=t.get(e);return!(!i||r.includes(e))&&i.get("markets",(0,s.Map)()).some((function(t){var e=n.get(t);return!o.includes(t)&&e.get("tags",(0,s.List)()).includes(l.KGO.EARLY_SETTLEMENT)}))}))}));const g=function(t){var e=t.sev,n=void 0!==e&&e,o=t.mev,g=void 0!==o&&o,f=t.coupon,p=void 0!==f&&f,v=t.topCoupon,m=void 0!==v&&v,b=t.couponId,h=t.sportCategoryId,w=t.topCouponId,E=t.marketsHaveEarlySettlement,I=t.eventIds,A=(0,c.zy)(),y=(0,r.useState)(!1),K=(0,i.A)(y,2),C=K[0],O=K[1],Q=(0,u.d4)((function(t){return t.get("activeSportId",null)})),k=(0,u.d4)((function(t){return t.getIn(["appConfig","features","2UP","advert"],(0,s.Map)())})),T=(0,u.d4)((function(t){return t.getIn(["appConfig","featuresEnabled","2UP"],!1)})),P=(0,u.d4)((function(t){return t.getIn(["couponEntities",b,"eventsTree","categories"],(0,s.List)())})),S=(0,u.d4)((function(t){return t.getIn(["widgets","topCouponEntities",w,"categories"],(0,s.List)())})),L=m?S.first(null):P.first(null),x=(0,u.d4)((function(t){return t.getIn(["userSettings","userId"],"")})),R=(0,u.d4)((function(t){return d(t,I)}));if((0,r.useEffect)((function(){var t=(0,a.pTY)(window.localStorage.getItem("twoUpAdvert"),{});O(x in t&&t[x].closed)}),[x]),!T)return{showTwoUpBanner:!1,setTwoUpAdvertClosed:O};var U=k.get("sev",!1),B=k.get("mev",!1),j=k.get("sportsList",(0,s.List)()),M=k.get("homeCouponsWidget",!1),z=n&&(!U||!E||!j.includes(Q)),D=g&&(!B||!R||!j.includes(Q||h)),Y=!R||!j.includes(L);Y=A.pathname===l.G2_.home?!M||Y:!B||Y;var V=p&&(P.size>1||Y)||m&&(S.size>1||Y);return{showTwoUpBanner:!(C||z||D||V),setTwoUpAdvertClosed:O}};var f=n("siP3"),p=n("tR6V"),v=n("sLxn"),m=n("gDpn"),b=n("uhg4"),h=n("K2CO");const w=n.p+"ie/themes/lsbet-uk/images/TwoUpBannerBG..svg";var E=n("0j4A"),I=(0,m.Ay)(b.A).attrs((function(){return{name:"bb-banner-logo",width:(0,a.KQt)(48),height:(0,a.KQt)(48)}})).withConfig({componentId:"sc-6ovusg-0"})(["margin-left:",";margin-top:",";"],(0,a.KQt)(8),(0,a.KQt)(8)),A=(0,m.Ay)(b.A).attrs((function(){return{name:l.LJT?"two-up-logo-bg":"two-up-logo",width:(0,a.KQt)(112),height:(0,a.KQt)(74)}})).withConfig({componentId:"sc-6ovusg-1"})([""]),y=(0,m.Ay)(b.A).attrs((function(){return{name:l.whu?"bb-banner-logo-new-nl":l.LJT?"bb-banner-logo-new-bg":"bb-banner-logo-new",width:(0,a.KQt)(92),height:(0,a.KQt)(48)}})).withConfig({componentId:"sc-6ovusg-2"})(["display:block;position:absolute;top:",";left:",";"],(0,a.KQt)(l.whu?-32:-18),(0,a.KQt)(l.whu?-14:-32)),K=m.Ay.div.withConfig({componentId:"sc-6ovusg-3"})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;position:relative;height:",";width:",";border-radius:",";background-color:",";"],(0,a.KQt)(70),(0,a.KQt)(70),(0,a.KQt)(16),E.Vff),C=m.Ay.div.withConfig({componentId:"sc-6ovusg-4"})(["display:flex;flex-direction:column;flex:1;gap:",";padding:",";font-size:",";"],(0,a.KQt)(4),(0,a.KQt)(24),(0,a.KQt)(24)),O=function(t){var e=t.sev,n=t.coupon;return(0,m.AH)(["margin-bottom:",";margin-top:",";"],(0,a.KQt)(e||n?24:0),(0,a.KQt)(e?28:24))},Q=(0,m.Ay)(b.A).attrs({name:"arrow02",size:"xxs32",fill:E.clv}).withConfig({componentId:"sc-6ovusg-5"})([""]),k=(0,m.Ay)(h.A).attrs((function(t){return{size:t.enlarged?"xxs32":"xxs24"}})).withConfig({componentId:"sc-6ovusg-6"})(["",";"],l.lY7&&"color: ".concat(E.UEl)),T=m.Ay.div.withConfig({componentId:"sc-6ovusg-7"})(["display:flex;align-items:center;min-height:",";padding:",";margin:",";box-sizing:border-box;border-radius:",";color:",";",";",";background-size:cover;background-repeat:no-repeat;cursor:pointer;"],(0,a.KQt)(142),(0,a.KQt)(0,24),(0,a.KQt)(24,24,0),(0,a.KQt)(16),E.clv,O,(function(){return l.lY7?(0,m.AH)(["background:",";"],E.BRn):(0,m.AH)(["background:url(","),",";"],w,E.BRn)}));const P=m.Ay.div.withConfig({componentId:"sc-6ovusg-8"})(["display:flex;align-items:center;min-height:",";padding:",";margin:",";box-sizing:border-box;border-radius:",";color:",";",";",";"],(0,a.KQt)(142),(0,a.KQt)(0,24),(0,a.KQt)(24,24,0),(0,a.KQt)(16),E.clv,(function(){var t="linear-gradient(90deg, ".concat(E.tW$," 0%, ").concat(E.mcU," 15.75%, ").concat(E.fAG," 31.5%, ").concat(E.mZL," 86%)");return l.lY7&&(t=E.$bt),(0,m.AH)(["background:",";"],t)}),O);var S=function(t){var e=t.location,n=t.topCoupon,o=t.sev,r=t.mev,i=t.coupon;return l.G2_.home===e.pathname?l.wYV.HOME:n?l.wYV.SPORT_POPULAR:o?l.wYV.SEV:r?l.wYV.LEAGUE_OVERVIEW:i?l.wYV.COUPON_OVERVIEW:null};const L=function(t){var e=t.sev,n=void 0!==e&&e,o=t.mev,d=void 0!==o&&o,g=t.coupon,m=void 0!==g&&g,b=t.topCoupon,h=void 0!==b&&b,w=t.betBuilderMarketGroupAvailable,E=t.eventId,A=t.categoryId,O=t.couponId,T=t.topCouponId,L=(0,c.zy)(),x=(0,u.d4)((function(t){return t.get("activeSportId",null)})),R=(0,u.d4)((function(t){return t.getIn(["appConfig","features","betbuilder","advert"],(0,s.Map)())})),U=(0,u.d4)((function(t){return t.getIn(["categoryEntities",A,"counters"],(0,s.Map)())})),B=(0,u.d4)((function(t){return t.getIn(["eventEntities",E,"inplay"],!1)})),j=(0,u.d4)((function(t){return t.getIn(["eventEntities",E,"tags"],(0,s.List)())})),M=(0,u.d4)((function(t){return t.getIn(["couponEntities",O,"eventsTree","categories"],(0,s.List)())})),z=(0,u.d4)((function(t){return t.getIn(["widgets","topCouponEntities",T,"categories"],(0,s.List)())})),D=h?z.first(null):M.first(null),Y=(0,u.d4)((function(t){return t.getIn(["categoryEntities",D,"counters"],(0,s.Map)())})),V=(0,u.d4)((function(t){return t.getIn(["userSettings","userId"],"")})),_=(0,r.useState)(!1),G=(0,i.A)(_,2),H=G[0],N=G[1],W=(0,p.A)([f.fFn.showModal,f.P39.statisticsPush]),X=(0,i.A)(W,2),F=X[0],J=X[1];(0,r.useEffect)((function(){var t=(0,a.pTY)(window.localStorage.getItem("bbAdvert"),{});N(V in t&&t[V].sevClosed)}),[V]);var Z=w&&j.includes(l.WX3.BET_BUILDER),$=R.has("sev")||R.has("mev"),q=R.get("sev",!1),tt=R.get("mev",!1),et=R.get("sportsList",(0,s.List)()),nt=R.get("homeCouponsWidget",!1),ot=n&&(B||H||!q||!Z||!et.includes(x)),rt=d&&(!tt||!U.get("betBuilder",null)||!et.includes(x)),it=!Y.get("betBuilder",null)||0===Y.get("totalNotStarted",null)||!et.includes(D);it=L.pathname===l.G2_.home?!nt||it:!tt||it;var ut=m&&(M.size>1||it)||h&&(z.size>1||it);if(!$||ot||rt||ut)return null;return r.createElement(P,{onClick:function(e){e.preventDefault(),e.stopPropagation(),F("WalkthroughModal",{closeOnOverlayTap:!0,overlay:!a.tGk}),J(l.Ib3.BET_BUILDER_ADVERT_CLICKED,{screen:S(t)})},sev:n,coupon:m},r.createElement(K,null,r.createElement(y,null),r.createElement(I,null)),r.createElement(C,null,r.createElement(v.A,{id:"betBuilder.betBuilderPlus",bold:!0}),r.createElement(v.A,{id:"betBuilder.betBuilderBannerText",enabled:!0})),!n&&r.createElement(Q,null),n&&r.createElement(k,{onClick:function(t){t.preventDefault(),t.stopPropagation();var e=(0,a.pTY)(window.localStorage.getItem("bbAdvert"),{});e[V]={sevClosed:!0},window.localStorage.setItem("bbAdvert",JSON.stringify(e)),N(!0)}}))};const x=function(t){var e=t.setClosed,n=t.sev,o=t.coupon,i=(0,c.W6)(),l=(0,u.d4)((function(t){return t.getIn(["appConfig","features","2UP","advert"],(0,s.Map)())})),d=(0,u.d4)((function(t){return t.getIn(["userSettings","userId"],"")}));return r.createElement(T,{onClick:function(t){t.preventDefault(),t.stopPropagation();var e=l.get("actionURL");(0,a.TK)({link:e,history:i})},sev:n,coupon:o},r.createElement(A,null),r.createElement(C,null,r.createElement(v.A,{id:"earlySettlement.advert"})),r.createElement(k,{enlarged:!0,onClick:function(t){t.preventDefault(),t.stopPropagation();var n=(0,a.pTY)(window.localStorage.getItem("twoUpAdvert"),{});n[d]={closed:!0},window.localStorage.setItem("twoUpAdvert",JSON.stringify(n)),e(!0)}}))};function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function U(t){for(var e=1;e{n.d(e,{A:()=>r});var o=n("3KFY");const r=(0,n("7oZZ").Mz)((function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).filterIds;return void 0===e?[]:e}),(function(t){return t.get("filterEntities",(0,o.Map)())}),(function(t,e){return t.reduce((function(t,n){var o=e.get(n);return o&&t.push({id:o.get("id"),name:o.get("name")}),t}),[])}))}}]);