"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[8538],{12614:(e,t,r)=>{r.d(t,{A:()=>w}),r(63696);var i=r(91785),n=r(83051),a=r(468),o=r(77822),l=r(40379),c=r(63548),s=r(55522),u=r(62540),p=["text","iconType","url","timestamp","onClick","service","type","children","experimentation","tracking"];function d(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 b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(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}var v=(0,n.default)("span",{target:"e4wm5bw3",label:"MetadataSnippet"})({name:"vt61g0",styles:"display:inline-block;max-width:100%;vertical-align:bottom"}),f=(0,n.default)("a",{target:"e4wm5bw2",label:"MetadataLink"})("display:block;text-decoration:none;color:",(e=>{var{theme:t,isBrandedAttribution:r,isExternalAttribution:i,service:n}=e;return r||i?t.colourPalette.secondary:t.updateTheme({service:n}).hyperlink}),";&:hover,&:focus{text-decoration:underline;",(e=>{var{theme:t,isExternalAttribution:r,service:n}=e;return!r&&(0,i.AH)("color:",t.updateTheme({service:n}).hyperlink,";")}),";}"),y=(0,n.default)("span",{target:"e4wm5bw1",label:"MetadataText"})("display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;",(e=>{var{theme:t,type:r}=e;return"live-viewers"===r&&(0,i.AH)("color:",t.colourPalette.states.liveText,";")}),";"),h=e=>{var{text:t,url:r,onClick:i,isBrandedAttribution:n,isExternalAttribution:a,service:o,type:s,children:p,tracking:d,experimentation:m}=e;return r?(0,u.jsx)(l.C,b(b({},(e=>{var{tracking:t,text:r,url:i,type:n}=e;return{trackView:!1,stopPropagation:!0,tracking:(0,c.D9)(b(b({},t),{},{entityName:"subitem",subitemType:n,subitemLink:i,subitemText:r,subitemPosition:t.snippetPosition}))}})({tracking:d,text:t,url:r,type:s})),{},{experimentation:m,children:e=>{var{trackRef:t}=e;return(0,u.jsx)(f,{ref:t,href:r,onClick:i,isBrandedAttribution:n,isExternalAttribution:a,service:o,children:p})}})):p},x=e=>{var{timestamp:t,children:r}=e;return t?(0,u.jsx)("time",{"data-testid":"timestamp",dateTime:t,children:r}):r},g=(0,n.default)("span",{target:"e4wm5bw0",label:"IconContainer"})((e=>{var{isBrandedAttribution:t,hasChildren:r}=e;return(0,i.AH)("display:inline-block;width:1em;height:1em;vertical-align:-0.125em;",r&&"padding-right: ".concat(t?(0,a.A)(6):"0.25em",";"),";")}),";");const w=e=>{var{text:t,iconType:r,url:i,timestamp:n,onClick:a,service:l="",type:c,children:d,experimentation:m,tracking:f={}}=e,w=function(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}(e,p),O=Boolean(d),j=null==r?void 0:r.startsWith("service-identifiers"),A="external"===l;return(0,u.jsx)(v,b(b({},(0,o.A)(w)),{},{children:(0,u.jsx)(h,{text:t,url:i,onClick:a,isBrandedAttribution:j,isExternalAttribution:A,service:l,type:c,tracking:f,experimentation:m,children:(0,u.jsx)(y,{type:c,children:(0,u.jsxs)(x,{timestamp:n,children:[r&&(0,u.jsx)(g,{"data-testid":r,hasChildren:O,isBrandedAttribution:j,children:(0,u.jsx)(s.A,{type:r})}),d]})})})}))}}}]);