1"use strict";(self._tik4Chunks=self._tik4Chunks||[]).push([[65,2446,4827,7208],{4827(o,e,r){function a(o,e){var r;return!!(o.scoreboard&&"home_team"in o.scoreboard&&o.scoreboard.home_team&&(null===(r=e.sport_event)||void 0===r?void 0:r.team))&&o.scoreboard.home_team.local_id===e.sport_event.team.local_id}function t(o,e){var r;return!!(o.scoreboard&&"away_team"in o.scoreboard&&o.scoreboard.away_team&&(null===(r=e.sport_event)||void 0===r?void 0:r.team))&&o.scoreboard.away_team.local_id===e.sport_event.team.local_id}function c(o,e,r,c){if(!r)return[];let s;if(a(o,e)&&"red"===c)s="home_red_cards";else if(a(o,e)&&"black"===c)s="home_black_cards";else if(t(o,e)&&"red"===c)s="away_red_cards";else{if(!t(o,e)||"black"!==c)return[];s="away_black_cards"}if(console.log(`found key ${s}`),!o.scoreboard||!(s in o.scoreboard))return[];let n=[];o.scoreboard&&s in o.scoreboard&&o.scoreboard[s]&&(n=o.scoreboard[s]),n.push(function(o){return{_type:"Tik::Model::LocalRef",created_at:o.created_at,local_id:o.local_id,local_status:o.local_status,version:o.version,sort:o.sort}}(e));return[l({...o.scoreboard,[s]:n},e)]}function s(o,e,r,c){var s,n,d,i;if(r&&o.scoreboard&&"Tik::Model::Content::Scoreboard::GaelicScoreboard"===o.scoreboard._type&&e&&e.sport_event){let r=null!==(s=o.scoreboard.home_points)&&void 0!==s?s:0,_=null!==(n=o.scoreboard.home_goals)&&void 0!==n?n:0,b=null!==(d=o.scoreboard.away_points)&&void 0!==d?d:0,u=null!==(i=o.scoreboard.away_goals)&&void 0!==i?i:0;if(a(o,e)&&"point"===c)r++;else if(a(o,e)&&"two-point"===c)r+=2;else if(a(o,e)&&"goal"===c)_++;else if(t(o,e)&&"point"===c)b++;else if(t(o,e)&&"two-point"===c)b+=2;else{if(!t(o,e)||"goal"!==c)return[];u++}return[l({...o.scoreboard,home_points:r,home_goals:_,away_points:b,away_goals:u},e)]}return[]}function n(o){return(e,r,t)=>{if(t&&e.scoreboard&&e.scoreboard&&"Tik::Model::Content::Scoreboard::TeamGameScoreboard"===e.scoreboard._type&&e.scoreboard.score&&r&&r.sport_event&&r.sport_event.team&&!r.sport_event.is_cancelled){const t=a(e,r);return[m(b(e.scoreboard.score,o,t,0))]}return[]}}function d(o){return(e,r,a)=>{if(a&&e.scoreboard&&e.scoreboard&&"Tik::Model::Content::Scoreboard::TeamGameScoreboard"===e.scoreboard._type&&e.scoreboard.score&&r&&r.sport_event&&r.sport_event.team&&!r.sport_event.is_cancelled){const a=t(e,r);return[m(b(e.scoreboard.score,o,a,0))]}return[]}}function i(o,e,r){return r&&o.scoreboard&&o.scoreboard&&"Tik::Model::Content::Scoreboard::TeamGameScoreboard"===o.scoreboard._type&&o.scoreboard.score&&e&&e.sport_event?[m({...o.scoreboard.score,home_score:f(o.scoreboard.score.home_score),away_score:f(o.scoreboard.score.away_score)})]:[]}function _(o,e,r){if(r){return[l({_type:"Tik::Model::Content::Scoreboard::GaelicScoreboard",home_goals:0,home_points:0,away_goals:0,away_points:0,home_red_cards:[],home_black_cards:[],away_red_cards:[],away_black_cards:[],...o.scoreboard},e)]}return[]}function l(o,e){return{_type:"Tik::Model::Modification::UpsertScoreboardModification",scoreboard:o}}function b(o,e,r,a=0){const t=r?u(o.home_score,e,e):f(o.home_score,a.toString()),c=r?f(o.away_score,a.toString()):u(o.away_score,e,e);return{...o,home_score:t,away_score:c}}function u(o,e,r=0){let a;if(void 0===o||""===o||"-"===o)a=r;else{const t=Number.parseInt(o,10);a=Number.isNaN(t)?r:t+e}return void 0!==a?a.toString():o}function f(o,e="0"){return void 0===o||""===o||"-"===o?e:o}function m(o){return{_type:"Tik::Model::Modification::UpdateTeamGameScoreboardScoreModification",score:o}}function p(o){return{_type:"Tik::Model::Modification::UpdateSetBasedScoreboardScoresModification",scores:o}}r.d(e,{Cx:()=>i,GE:()=>d,Jg:()=>n,Jt:()=>a,Nt:()=>p,lA:()=>b,sT:()=>_,vr:()=>c,wm:()=>s})}}]); 2//# sourceMappingURL=4827.84a0a9ea.chunk.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.