import{aZ as i,ao as a,aB as m}from"./app-k0jcl5PQ.js";import{I as c}from"./DXJ2-V8v.chunk.js";import{M as o}from"./CznAEkX8.chunk.js";import{P as g,M as l,a as d}from"./BLYja3A6.chunk.js";import{g as u}from"./BNfTlqwB.chunk.js";function x(e){const n=e.hasShareFlowV2&&e.hasPermissions(i.ViewInsights)&&e.hasPermissions(i.ViewAnalytics),r=e.loadingState??g,h=e.emptyState??l,t=e.shareData.hasMore||e.shareData.isFetching;return e.loading||e.shareData.showPartialLoading?a.jsx(r,{}):e.shareData.sentShares.length?a.jsxs("div",{className:e.className,children:[a.jsx(d,{sentShares:e.shareData.sentShares,sharedObjects:e.shareData.sharedObjects.items,shareRecipients:e.shareData.shareRecipients.items,interactivesPendingReview:e.shareData.interactivesPendingReview.itemsArr,getObjectActions:s=>u({share:s.share,sharedObject:s.sharedObject,hasInsights:n,isPlugin:e.isPlugin,breakpoints:e.breakpoints,returnAppLink:e.returnAppLink}),groupByDateShared:!0,breakpoints:e.breakpoints,imageCdnUrl:e.imageCdnUrl,yearGroups:e.yearGroups,hasDemoInsights:e.hasDemoInsight}),e.demoInteractive&&!t&&a.jsx(o,{demoInteractive:e.demoInteractive,breakpoints:e.breakpoints,imageCdnUrl:e.imageCdnUrl,yearGroups:e.yearGroups,shareType:m.Open,enableHiding:!0}),t&&a.jsx(c,{isFetching:e.shareData.isFetching,fetchNext:e.shareData.fetchNext,nextCursor:e.shareData.nextCursor})]}):a.jsx(h,{})}export{x as O};
//# sourceMappingURL=CLRmrBcZ.chunk.js.map
