1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2191],{42191:function(e,i,s){s.r(i),s.d(i,{StripeScore:function(){return j},default:function(){return g}});var t=s(26042),o=s(69396),n=s(85893),a=s(67294),c=s(78752),r=s(93293),l=s(62132),d=function(e){var i={brand:(0,n.jsx)(l.KR.Brands,{sm:!0,brands:null===e||void 0===e?void 0:e.brands}),image:(0,n.jsx)(l.KR.Image,(0,o.Z)((0,t.Z)({},null===e||void 0===e?void 0:e.image),{layout:"fill",objectFit:"contain"}))};return(0,n.jsx)(n.Fragment,{children:i[null===e||void 0===e?void 0:e.type]})},m=s(66176),u=function(e,i){return i>=e},v=function(e){var i=e.matchStartTime,s=e.logoHublotNotRender,c=e.teamsText,r={dataText:"".concat(c," come\xe7a em ")},d={startDate:(0,m.ZP)().datetime,endDate:i,className:"cms-Stripe-Countdown-info",title:r.dataText,specialTheme:!0};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"cms-Stripe-score-hour-text","aria-hidden":"true",children:"Come\xe7a em:"}),(0,n.jsxs)("div",{className:"cms-CountDown-container",children:[(0,n.jsxs)("div",{className:"cms-Stripe-store-hour cms-Stripe-score-date-container",children:[(0,n.jsx)(l.KR.Icon,{icon:"relogio",size:"sm",className:"cms-Stripe-score-date-item"}),(0,n.jsx)("div",{className:"cms-CountDown-theme--special cms-Stripe-score-date-item",children:(0,a.createElement)(l.KR.Countdown,(0,o.Z)((0,t.Z)({},d),{key:"countDownStripe"}))})]}),!s&&(0,n.jsx)(l.KR.Image,(0,o.Z)((0,t.Z)({},{illustrative:!1,alt:"Logotipo Hublot",image:{src:"/hublot-logo.svg",alt:"Logotipo Hublot",title:"Logotipo Hublot",extension:"svg"}}),{illustrative:!0}))]})]})},p=function(e){var i=e.dataText;return i&&(0,n.jsx)("div",{className:"cms-Stripe-score-live cms-Stripe-score-date-container",children:(0,n.jsx)("p",{className:"cms-Stripe-score-live",children:i})})},x=function(e){var i,s,a,r,x,h,j,g,S,f,N,T,Z=e.scoreTeams,b=e.positionedTopPage,E=e.matchFinished,k=e.matchStartTime,L=e.matchEndTime,w=e.logoHublotNotRender,R=function(e,i){var s=new Date(e).getTime(),t=new Date(i).getTime(),o=new Date((0,m.Gw)().datetime).getTime();return{startsAtEvent:!u(s,o)&&!u(t,o),stopedEvent:u(s,o)&&u(t,o),liveEvent:u(s,o)&&!u(t,o)}}(k,L),C=(T=R,Object.keys(T).find((function(e){return!0===T[e]}))),P=!(0,c.Gc)()[c.EC.SMALL]&&!b,K={teams:"Jogo entre ".concat(null===Z||void 0===Z||null===(i=Z.firstTeam)||void 0===i||null===(s=i.teamLogo)||void 0===s||null===(a=s.brands)||void 0===a||null===(r=a[0])||void 0===r?void 0:r.alt," e ").concat(null===Z||void 0===Z||null===(x=Z.secondTeam)||void 0===x||null===(h=x.teamLogo)||void 0===h||null===(j=h.brands)||void 0===j||null===(g=j[0])||void 0===g?void 0:g.alt,","),liveEvent:"o jogo j\xe1 come\xe7ou.",stopedEvent:"o jogo j\xe1 encerrou."},D={teamsText:null===K||void 0===K?void 0:K.teams,matchStartTime:k,logoHublotNotRender:w},y={startsAtEvent:(0,n.jsx)(v,(0,t.Z)({},D)),liveEvent:(0,n.jsx)(p,(0,t.Z)({},{dataText:"Ao Vivo"})),stopedEvent:(0,n.jsx)(p,(0,t.Z)({},{dataText:"Finalizado"}))},A=K[C]?K[C]:"";return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"cms-Stripe-score-teams",children:[(0,n.jsxs)("div",{className:"cms-Stripe-score-team cms-Stripe-score-team--first-team","aria-hidden":"true",children:[(0,n.jsx)("p",{className:"cms-Stripe-score-team-name",children:null===Z||void 0===Z||null===(S=Z.firstTeam)||void 0===S?void 0:S.name}),(0,n.jsx)(d,(0,t.Z)({},null===Z||void 0===Z||null===(f=Z.firstTeam)||void 0===f?void 0:f.teamLogo))]}),(0,n.jsxs)("div",{className:"cms-Stripe-score-numbers cms-Stripe-score-".concat(C),"aria-label":"".concat(K.teams," ").concat(A),children:[("liveEvent"==C||"stopedEvent"==C)&&(0,n.jsxs)("div",{"aria-hidden":"true",children:[(0,n.jsx)("span",{className:"cms-Stripe-score-number",children:null===Z||void 0===Z||null===(N=Z.firstTeam)||void 0===N?void 0:N.score}),(0,n.jsx)(l.KR.Icon,{icon:"fechar",size:"md",className:"cms-Stripe-score-versus"}),(0,n.jsx)("span",{className:"cms-Stripe-score-number",children:null===Z||void 0===Z?void 0:Z.secondTeam.score})]}),(0,n.jsx)("div",{className:"cms-Stripe-score-number-info","aria-hidden":"startsAtEvent"!=C,children:E?null===y||void 0===y?void 0:y.stopedEvent:y[C]})]}),(0,n.jsxs)("div",{className:"cms-Stripe-score-team cms-Stripe-score-team--second-team","aria-hidden":"true",children:[(0,n.jsx)(d,(0,t.Z)({},null===Z||void 0===Z?void 0:Z.secondTeam.teamLogo)),(0,n.jsx)("p",{className:"cms-Stripe-score-team-name",children:null===Z||void 0===Z?void 0:Z.secondTeam.name})]}),P&&(0,n.jsx)("div",{className:"cms-Stripe-score-link-container",children:(null===e||void 0===e?void 0:e.linkPage)&&(0,n.jsx)(l.KR.Link,(0,o.Z)((0,t.Z)({},null===e||void 0===e?void 0:e.linkPage[0]),{isButton:!0,className:"mdn-Button--sm"}))})]})})},h=(0,a.memo)(x),j=function(e){var i=(0,a.useState)(!1),s=i[0],m=i[1],u=(0,c.Gc)()[c.EC.SMALL],v=e.data,p=e.positionedTopPage,x=null===v||void 0===v?void 0:v[0],j=null===x||void 0===x?void 0:x.linkPage,g=(null===v||void 0===v?void 0:v.length)>1&&!p,S={"aria-expanded":!!s,isButton:!0,isButtonHtml:!0,isStyleDefault:!0,accessText:"Abrir mais op\xe7\xf5es de clicks",actionGTM:"faixa-informativa:placar",label:"Mais jogos",labelGTM:"Mais jogos",onClick:function(){return m(!s)}},f=(0,o.Z)((0,t.Z)({},j[0]),{isBasic:!0});(0,a.useEffect)((function(){var e=s?"add":"remove";r.ZP.cmsToggleClassTag("body",e,"cms-Stripe-bottom-isActivate--open")}),[s]);return(0,n.jsx)("div",{className:"cms-Stripe-score cms-Theme-component--primary",children:(0,n.jsxs)("ul",{className:"cms-Stripe-list",children:[(0,n.jsx)("li",{className:"cms-Stripe-list-item cms-Stripe-list--first",children:(0,n.jsxs)("div",{className:"cms-Container-Stripe",children:[(0,n.jsx)(r.ZP.conditionalWrapper,{condition:p&&j||u&&j,wrapper:function(e){return(0,n.jsx)(l.KR.Link,(0,o.Z)((0,t.Z)({},f),{children:e}))},children:(0,n.jsxs)("div",{className:"cms-Stripe-content",children:[(null===x||void 0===x?void 0:x.leagueLogo)&&(0,n.jsx)("div",{className:"cms-Stripe-score-leagueLogo",children:(0,n.jsx)(d,(0,t.Z)({},null===x||void 0===x?void 0:x.leagueLogo))}),(0,n.jsx)(h,(0,o.Z)((0,t.Z)({},x),{positionedTopPage:p}))]})}),g&&(0,n.jsx)("div",{className:"cms-Stripe-score-accordion",children:(0,n.jsxs)(l.KR.Link,(0,o.Z)((0,t.Z)({},S),{children:[(0,n.jsx)("span",{className:"cms-Stripe-score-text",children:"Mais jogos"}),(0,n.jsx)(l.KR.Icon,{icon:s?"baixo":"cima",size:"md","aria-hidden":"true"})]}))})]})},"score0"),g&&v.slice(1).map((function(e,i){return e&&(0,n.jsx)("li",{className:"cms-Stripe-list-item cms-Stripe-list--more cms-".concat(s?"show":"hide"),children:(0,n.jsx)(r.ZP.conditionalWrapper,{condition:u&&(null===e||void 0===e?void 0:e.linkPage),wrapper:function(s){return(0,a.createElement)(l.KR.Link,(0,o.Z)((0,t.Z)({},null===e||void 0===e?void 0:e.linkPage[0]),{key:"score-".concat(i)}),s)},children:(0,n.jsx)("div",{className:"cms-Stripe-content",children:(0,n.jsx)(h,(0,t.Z)({},e))})})},"score-".concat(i))}))]})})},g=j}}]);
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.