"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4006],{31194:(e,t,r)=>{r.d(t,{Ay:()=>N}),r(63696);var i=r(83051),n=r(20641),a=r(11545),l=r(468),o=r(74437),c=r(3973),u=r(40379),s=r(63548),d=r(98804),p=r(55522),f=r(32640),y=r(62540),v=["url","children","trackRef"],b=["title","url","type","isLive"];function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var O={video:"playback-avkx:play",audio:"content-types:audio"},x=(0,i.default)("span",{target:"efy7ugc4",label:"LivePulseContainer"})({name:"1bmnxg7",styles:"white-space:nowrap"}),P=(0,i.default)("div",{target:"efy7ugc3",label:"IconContainer"})("height:",(0,l.A)(16),";width:",(0,l.A)(16),";display:inline-block;position:relative;top:",(0,l.A)(2),";color:",(e=>{var{theme:t}=e;return t.colourPalette.primary}),";"),k=(0,i.default)("a",{target:"efy7ugc2",label:"StyledLink"})("display:block;padding:calc(",o.SPACING_3," / 2) 0;text-decoration:none;color:",(e=>{var{theme:t}=e;return t.colourPalette.primary}),";cursor:pointer;>:first-child{margin-right:",o.SPACING_2,";}&:hover,&:focus{text-decoration:underline;color:",(e=>{var{theme:t}=e;return t.colourPalette.hyperlink}),";}"),w=(0,i.default)("li",{target:"efy7ugc1",label:"StyledAdditionalLink"})(n.NP," ",a.K1," width:fit-content;:first-child{margin-top:calc(",o.SPACING_3," / -2);}:last-child{margin-bottom:calc(",o.SPACING_3," / -2);}"),A=e=>{var{className:t}=e;return(0,y.jsx)("svg",{viewBox:"0 0 32 32",width:"1em",height:"1em",focusable:"false","aria-hidden":"true",className:t,children:(0,y.jsx)("path",{d:"M12 12h 8v 8h-8Z"})})},L=(0,i.default)(A,{target:"efy7ugc0",label:"StyledBulletIcon"})({name:"a1du9p",styles:"display:block;height:100%;width:100%;fill:currentcolor"}),_=(e,t)=>t?"live":"video"===e||"audio"===e?e:"article",S=e=>{var{type:t,isLive:r}=e;switch(_(t,r)){case"live":return(0,y.jsx)(x,{children:(0,y.jsx)(f.A,{})});case"video":case"audio":return(0,y.jsx)(P,{children:(0,y.jsx)(p.A,{type:O[t]})});default:return(0,y.jsx)(P,{children:(0,y.jsx)(L,{})})}},D=e=>{var{url:t,children:r,trackRef:i}=e,n=j(e,v);return(0,y.jsx)(w,g(g({},n),{},{children:(0,y.jsxs)(k,{href:t,ref:i,children:[(0,y.jsx)(S,g({},n)),r]})}))};const N=e=>{var{links:t,tracking:r={},experimentTracking:i={}}=e;return t?(0,y.jsx)(c.A,{spacing:0,as:"ul",children:t.map(((e,t)=>{var{title:n,url:a,type:l,isLive:o}=e,c=j(e,b);return(0,y.jsx)(u.C,g(g({},(e=>{var{tracking:t,title:r,index:i,url:n,type:a,isLive:l,experimentTracking:o}=e;return g({trackView:!1,stopPropagation:!0,tracking:(0,s.D9)(g(g({},t),{},{entityName:"subitem",subitemType:"additional link",subitemText:r,subitemPosition:t.additionalLinksPosition+i,subitemLink:n,subitemMediaType:_(a,l)}))},(0,d.l)(o))})({tracking:r,title:n,index:t,url:a,type:l,isLive:o,experimentTracking:i})),{},{children:e=>{var{trackRef:t}=e;return(0,y.jsx)(D,g(g({trackRef:t,url:a,type:l,isLive:o},c),{},{children:n}))}}),"".concat(n,"-").concat(t))}))}):null}}}]);