<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">var T=Object.defineProperty;var A=(n,e,t)=&gt;e in n?T(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var u=(n,e,t)=&gt;(A(n,typeof e!="symbol"?e+"":e,t),t);import{R as j,j as s}from"./vendor/react-core.BVwI4Idz.min.js";import{a as M,G as R,b as D}from"./attachmentIconsStyles.DflLgsgI.min.js";import{bF as o,t as l,b$ as L,b3 as g,bm as P,cn as S,co as E}from"../assets/layouts-DC7siSjn.js";import{T as F}from"./TruncatedText.B9QLAOf3.min.js";import{L as G,a as W}from"./ListItem.B9SMx2oD.min.js";class _ extends j.Component{render(){const e=M();return s.jsx("li",{className:o("attachmentsIcons-item",this.props.classes.item,e.root),children:s.jsxs("div",{className:o("attachmentsIcons-file",`attachmentsIcons-${this.props.type}`),title:l(this.props.type),children:[s.jsx("span",{className:"sr-only",children:s.jsx(L,{children:s.jsx(g,{source:"&lt;0/&gt; (Type: &lt;1/&gt;)",c0:this.props.name,c1:this.props.type})})}),s.jsx(R,{type:this.props.type,className:e.root})]})})}}class $ extends j.Component{constructor(t){super(t);u(this,"maxCount",3);u(this,"id",P("attachmentIcons-"));t.maxCount&amp;&amp;t.maxCount&gt;0&amp;&amp;t.maxCount&lt;=t.attachments.length&amp;&amp;(this.maxCount=t.maxCount)}get titleID(){return this.id+"-title"}render(){if(this.attachmentsCount&lt;1)return null;const t=D(),c=this.renderAttachments(t);return c?s.jsxs("section",{className:o("attachmentsIcons",t.root),children:[s.jsx("h3",{id:this.titleID,className:"sr-only",children:l("Attachments")+": "}),s.jsx("ul",{"aria-labelledby":this.titleID,className:o("attachmentsIcons-items",t.items),children:c})]}):null}get attachmentsCount(){return this.props.attachments.length}renderAttachments(t){return this.props.attachments.map((c,r)=&gt;{const a=r+1,m=this.attachmentsCount-a;return r&lt;this.maxCount?s.jsx(_,{classes:{item:t.item},name:c.name,type:c.type},a):r===this.maxCount&amp;&amp;m&gt;0?this.renderMorePlacholder(m,a):null})}renderMorePlacholder(t,c){const r=s.jsx(g,{source:"+ &lt;0/&gt; more",c0:t}),a=S();return s.jsx("li",{className:"attachmentsIcons-item",children:s.jsx("span",{className:o("attachmentsIcons-more",a.metaStyle),children:r})},c)}}function B(n){const{name:e,className:t,meta:c,url:r,excerpt:a,image:m,imageSet:x,attachments:i,icon:f,highlight:p}=n,h=!!(i&amp;&amp;i.length&gt;0),d=(!!m||!!x)&amp;&amp;!h,y=h||d,C=E(),N=y?d?s.jsx(G,{src:m,srcSet:x,alt:e?l("Thumbnail for: "+e):l("Thumbnail")}):h?s.jsx($,{attachments:i}):null:null,I=p?s.jsx(F,{className:C.highlight,maxCharCount:160,lines:2,children:s.jsx("span",{dangerouslySetInnerHTML:{__html:p}})}):null,b=a&amp;&amp;(a==null?void 0:a.length)&gt;0?a:null;return s.jsx(W,{className:t,url:r,name:e,icon:f,iconWrapperClass:C.iconWrap,description:I??b,truncateDescription:!I,descriptionMaxCharCount:160,metas:c,mediaItem:N})}export{B as R};
</pre></body></html>