"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[8035],{90360:(e,t,r)=>{r.d(t,{A:()=>A}),r(63696);var n=r(77822),i=r(83051),a=r(20641),l=r(11545),o=r(31519),c=r(468),s=r(74437),u=r(59310),p=r(12614),f=r(62540),d=["items","service","trackRef","experimentation","tracking"];function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(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 b={name:"fxytqy",styles:"display:flex;max-width:100%"},y=(0,i.default)("ul",{target:"eh44mf03",label:"MetadataStripContainer"})(a.tc," ",l.B3," ",b," flex-wrap:wrap-reverse;margin-top:-",s.SPACING_1,";color:",(e=>{var{theme:t}=e;return t.colourPalette.secondary}),";overflow:hidden;list-style:none;padding:0;line-height:",(0,c.A)(o.l_),";"),g=(0,i.default)("div",{target:"eh44mf02",label:"GroupChildrenForWrapping"})(b," flex-wrap:wrap;"),x=(0,i.default)("li",{target:"eh44mf01",label:"MetadataStripItem"})("display:inline-flex;align-items:center;white-space:nowrap;margin-top:",s.SPACING_1,";margin-right:",(0,c.A)(14),";max-width:100%;position:relative;::before{content:'';border:",(e=>{var{theme:t}=e;return"".concat((0,c.A)(1)," solid ").concat(t.colourPalette.border.decorativeStrong)}),";background-color:",(e=>{var{theme:t}=e;return t.colourPalette.border.decorativeStrong}),";position:absolute;left:",(0,c.A)(-8),";}"),O=(0,i.default)("div",{target:"eh44mf00",label:"MetadataContent"})({name:"a9htq2",styles:"display:inline-block;max-width:100%"}),j=e=>{var{children:t}=e;return(0,f.jsx)(u.A,{as:"div",children:t})},w=e=>{var{altText:t,children:r}=e;return r?t?(0,f.jsx)("span",{"aria-hidden":"true",children:r}):r:null},P=e=>{var{items:t,service:r,keyOffset:n,tracking:i,experimentation:a}=e;return t.map(((e,t)=>{var{label:l,url:o,iconType:c,timestamp:s,text:d,altText:m,onClick:h,type:b}=e;return(0,f.jsxs)(x,{role:"listitem",children:[l&&(0,f.jsx)(j,{children:l}),(0,f.jsx)(O,{children:(0,f.jsxs)(p.A,{text:d,iconType:c,url:o,timestamp:s,onClick:h,service:r,type:b,tracking:v(v({},i),{},{snippetPosition:n?n+t:i.metadataStripPosition}),experimentation:a,children:[m&&(0,f.jsx)(u.A,{children:m}),(0,f.jsx)(w,{altText:m,children:d})]})})]},n?n+t:t)}))};const A=e=>{var{items:t,service:r,trackRef:i,experimentation:a,tracking:l={}}=e,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,d),c=t.filter((e=>{var{type:t}=e;return"attribution"===t})),s=t.filter((e=>{var{type:t}=e;return"attribution"!==t}));return(0,f.jsx)("div",{children:(0,f.jsxs)(y,v(v({role:"list",ref:i},(0,n.A)(o)),{},{children:[c.length?(0,f.jsx)(P,{items:c,service:r,tracking:l}):null,s.length?(0,f.jsx)(g,{children:(0,f.jsx)(P,{items:s,service:r,keyOffset:c.length,tracking:l,experimentation:a})}):null]}))})}}}]);