PageSourceSearch

https://www.rugby.com.au/_next/static/chunks/3119.c0b2ce3184a9cb59.js

js rugby.com.au collected 2026-10-01 11:53:04 UTC 3,869 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3119],{83119:function(t,e,l){l.r(e),l.d(e,{EventsList:function(){return EventsList}});var n=l(32744),o=l(29283),a=l(38718),d=l(79798),i=l(88765);let getEventsListPrimaryStyles=t=>{var e,l,n,o,a;let{mq:d,colors:i,theme:r,spacing:s,typography:c}=t,u={background:null==r?void 0:null===(e=r.background)||void 0===e?void 0:e.mid,color:null==r?void 0:null===(l=r.foreground)||void 0===l?void 0:l.mid,textTransform:"uppercase",fontSize:null==c?void 0:null===(n=c.fontSize)||void 0===n?void 0:n.md,textAlign:"left"},v={color:null==i?void 0:i.neutralDark,fontSize:null==c?void 0:null===(o=c.fontSize)||void 0===o?void 0:o.lg,textAlign:"left",borderBottom:"1px solid ".concat(null==i?void 0:i.neutral)},D={padding:"".concat(s.md," ").concat(s.lg),fontWeight:null==c?void 0:null===(a=c.fontWeight)||void 0===a?void 0:a.normal,wordWrap:"break-word"},m={display:"table-cell",padding:"".concat(s.md," ").concat(s.lg),wordWrap:"break-word"};return{baseStyles:{width:"100%",maxWidth:"100%"},headerStyles:u,dataRowStyles:v,columnHeaderBaseStyles:D,columnRowBaseStyles:m}},getFormattedDate=t=>new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),EventsList=t=>{let{sectionTitle:e="",sectionButton:l,eventsList:r,eventCategoryHeader:s,showExpiredEvents:c=!0,appearance:u,...v}=t,{mq:D,colors:m,colorPairs:h,spacing:g,typography:f}=(0,a.useTheme)(),y={mq:D,colors:m,theme:h[u],spacing:g,typography:f},{baseStyles:p,headerStyles:Z,dataRowStyles:b,columnHeaderBaseStyles:k,columnRowBaseStyles:w}=getEventsListPrimaryStyles(y);if(!c){let t=new Date;r=r.filter(e=>new Date(null==e?void 0:e.startDate)>=t||new Date(null==e?void 0:e.endDate)>=t)}return(0,n.tZ)("div",v,(0,n.tZ)(d.Container,null,(0,n.tZ)(i.N,{title:e,button:l})),(0,n.tZ)("table",{css:p},(0,n.tZ)("thead",null,(0,n.tZ)("tr",{css:Z},(0,n.tZ)("th",{css:[k,{width:"25%"}]},"Date"),(0,n.tZ)("th",{css:k},"Event"),(0,n.tZ)("th",{css:[k,{width:"15%",display:"none",[null==D?void 0:D.md]:{display:"table-cell"}}]},null!=s?s:"Category"))),(0,n.tZ)("tbody",null,r&&(null==r?void 0:r.length)>0?r.map((t,e)=>(0,n.tZ)("tr",{key:"events-list-".concat(e),css:b},(0,n.tZ)("td",{css:[w,{width:"25%"}]},(null==t?void 0:t.href)?(0,n.tZ)(o.g,{className:"block",href:null==t?void 0:t.href,key:"events-list-".concat(e),css:{color:null==m?void 0:m.primary}},(null==t?void 0:t.startDate)!==""?"".concat((null==t?void 0:t.startDate)&&(null==t?void 0:t.startDate)!==""?getFormattedDate(null==t?void 0:t.startDate):"","\n                        ").concat((null==t?void 0:t.startDate)&&(null==t?void 0:t.startDate)!==""&&(null==t?void 0:t.endDate)&&(null==t?void 0:t.endDate)!==""?" - ":"","\n                        ").concat((null==t?void 0:t.endDate)?getFormattedDate(null==t?void 0:t.endDate):""):""):"".concat((null==t?void 0:t.startDate)&&(null==t?void 0:t.startDate)!==""?getFormattedDate(null==t?void 0:t.startDate):""," ").concat((null==t?void 0:t.startDate)&&(null==t?void 0:t.startDate)!==""&&(null==t?void 0:t.endDate)&&(null==t?void 0:t.endDate)!==""?" - ":"").concat((null==t?void 0:t.endDate)?getFormattedDate(null==t?void 0:t.endDate):"")),(0,n.tZ)("td",{css:w},(null==t?void 0:t.href)?(0,n.tZ)(o.g,{className:"block",href:null==t?void 0:t.href,key:"events-list-".concat(e),css:{color:null==m?void 0:m.primary}},null==t?void 0:t.eventName):null==t?void 0:t.eventName),(0,n.tZ)("td",{css:[w,{width:"15%",display:"none",[null==D?void 0:D.md]:{display:"table-cell"}}]},(null==t?void 0:t.href)?(0,n.tZ)(o.g,{className:"block",href:null==t?void 0:t.href,key:"events-list-".concat(e),css:{color:null==m?void 0:m.primary}},null==t?void 0:t.category):null==t?void 0:t.category))):(0,n.tZ)("tr",{key:"events-list-default",css:b},(0,n.tZ)("td",{css:[b,{textAlign:"center",padding:g.xl}],colSpan:3},"There are currently no events listed.")))))}}}]);

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.