import{Y as g,bT as y,E as f,r as S,ao as t,ba as _,bW as h,cv as L,cw as j,cx as k}from"./app-k0jcl5PQ.js";import{A as w}from"./BDviDDog.chunk.js";import{D as C}from"./CofWDDSQ.chunk.js";const N="_actions_1psxq_1",T="_actionsContainer_1psxq_14",v="_ownerLogo_1psxq_24",D="_dropStyle_1psxq_33",A="_dragStyle_1psxq_38",l={actions:N,actionsContainer:T,ownerLogo:v,dropStyle:D,dragStyle:A};function I(a){var i,d,r,s,c,m;const b=a.folder.thumbnail?g.urlBuilder(a.folder.thumbnail.url,{size:y.Small}):null,e=(s=(r=(d=(i=a.folder)==null?void 0:i.libraries)==null?void 0:d.data)==null?void 0:r[0])==null?void 0:s.owner,n=a.showOwnerLogo&&((c=e==null?void 0:e.logo)!=null&&c.url)?g.urlBuilder(e.logo.url,{size:y.Small}):null,o=(m=a.getFolderActions)==null?void 0:m.call(a,a.folder),u=a.analyticsData?{id:a.folder.id.toString(),name:a.folder.name,...a.analyticsData}:void 0,x=a.analyticsOptions?{actionType:S.Click,entity:f.Folder,...a.analyticsOptions}:void 0;return t.jsx(C,{draggable:a.drag&&{id:a.folder.id,data:a.folder},droppable:a.drop&&{id:a.folder.id,data:a.folder},dropStye:l.dropStyle,dragStyle:l.dragStyle,children:t.jsxs("div",{className:"position-relative",children:[t.jsxs(_,{className:"rounded-3 d-block text-decoration-none",appLink:a.getAppLink(a.folder),title:a.folder.name,analyticsData:u,analyticsOptions:x,children:[t.jsx(h,{data:b,imageType:L.Thumbnails,imageClassName:"rounded-top-lg",children:t.jsx(j,{name:a.folder.name,type:k.Folder,extraClasses:"rounded-top-lg"})}),t.jsx("h3",{className:"bg-white border-start border-end border-bottom rounded-bottom-lg font-size-normal fw-semibold mb-0 p-2",children:t.jsx("span",{className:"text-truncate d-block",children:a.folder.name})})]}),(o==null?void 0:o.length)&&t.jsx(w,{actions:o,className:l.actionsContainer,actionsDropdownClassName:l.actions,dropdownToggleSvgSize:null}),!!n&&t.jsx("img",{src:n,className:`rounded-circle ${l.ownerLogo}`,alt:`${e==null?void 0:e.name} logo`,title:(e==null?void 0:e.name)||""})]})})}export{I as L};
//# sourceMappingURL=DVESw1e9.chunk.js.map
