PageSourceSearch

https://www.rugby.com.au/_next/static/chunks/5643.e1c15355b8f5ec12.js

js rugby.com.au collected 2026-10-01 11:53:14 UTC 2,797 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5643],{55643:function(e,t,i){i.r(t),i.d(t,{MediaCarousel:function(){return MediaCarousel}});var a=i(73235),l=i(32744),n=i(2784),o=i(49092),r=i(39734),u=i(38718),d=i(79798),c=i(45288),s=i(88765),p=i(68844),m=i(13308);function _templateObject(){let e=(0,a._)(["\n              .media-carousel .swiper-pagination.swiper-pagination-bullets {\n                bottom: -",";\n              }\n              .media-carousel .swiper-pagination-bullet {\n                background-color: ",";\n                width: ",";\n                height: ",";\n              }\n            "]);return _templateObject=function(){return e},e}let MediaCarousel=e=>{var t,i,a;let{sectionTitle:h="",sectionButton:v,mediaList:g=[],appearance:b="primary",allowShare:k=!0,...w}=e,{colorPairs:f,spacing:y,typography:C}=(0,u.useTheme)(),[Z,_]=(0,n.useState)(null),[P,S]=(0,n.useState)(-2),[A,M]=(0,n.useState)(!1);(0,n.useEffect)(()=>(g&&g[0]&&(_(g[0]),S(0)),()=>{_(null),M(!1)}),[g]);let onMediaCardClick=e=>{_(g[e]),S(e),M(!0)},{baseStyles:V,mediaCarouselItemStyles:O}=(0,m.sP)({spacing:y,typography:C});return(0,l.tZ)("section",{...w,className:"media-carousel"},(0,l.tZ)(d.Container,null,g.length>0?(0,l.tZ)(s.N,{title:h,button:v,appearance:b}):null,Z?(0,l.tZ)(c.cQ,{title:Z.title,videoSource:Z.sources,thumbnail:Z.thumbnail,videoPlayerId:Z.videoPlayerId,ctaText:Z.description,timeAgo:Z.timeAgo,competition:Z.competition,damId:null!==(i=null==Z?void 0:Z.key)&&void 0!==i?i:"",playerOptions:{liveui:null==Z?void 0:Z.isLive,autoplay:!!A},appearance:(null==Z?void 0:Z.appearance)?null==Z?void 0:Z.appearance:b,allowShare:k,shareURL:null==Z?void 0:Z.shareURL,createdAt:null!==(a=null==Z?void 0:Z.createdAt)&&void 0!==a?a:""}):null,(0,l.tZ)("div",{css:{paddingBottom:y["3xl"]}},(0,l.tZ)(l.xB,{styles:(0,l.iv)(_templateObject(),y["2xl"],null===(t=f[b])||void 0===t?void 0:t.background.mid,C.fontSize.md,C.fontSize.md)}),g.length>0?(0,l.tZ)(r.tq,{modules:[o.W_,o.tl,o.LW,o.s5],slidesPerView:4,spaceBetween:0,watchOverflow:!0,pagination:{clickable:!0,dynamicBullets:!0},breakpoints:{320:{slidesPerView:2},576:{slidesPerView:4.5},768:{slidesPerView:5.5}},css:{overflow:"visible"}},g.map((e,t)=>{var i;let a=P===t,n=(null==Z?void 0:Z.appearance)?null==Z?void 0:Z.appearance:b;return(0,l.tZ)(r.o5,{key:"media-carousel-card-".concat(t)},(0,l.tZ)("div",{css:[V,{background:a?null===(i=f[n])||void 0===i?void 0:i.background.mid:"transparent"}]},(0,l.tZ)(p.MediaCard,{key:e.key,onClickFunction:()=>onMediaCardClick(t),href:e.href,title:"".concat(e.title),thumbnail:e.thumbnail,timeAgo:e.timeAgo,competition:e.competition,hasVideo:e.hasVideo,appearance:a?n:"light"===n||"primary"===n||"highlight"===n?"light":"highlight",css:[O,{opacity:a?1:.7}]})))})):null)))}}}]);

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.