Liferay.Loader.define("@liferay/content-dashboard-web@2.0.73/js/components/SidebarPanelInfoView/SidebarPanelInfoViewCollapsable",["module","exports","require","@frontend-taglib-clay$clayui/alert","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/label","@frontend-taglib-clay$clayui/layout","@frontend-taglib-clay$clayui/panel","@frontend-taglib-clay$clayui/sticker","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../Sidebar","./Categorization","./DetailsContent","./ManageCollaborators","./PreviewActionsDescriptionSection","./Subscribe","./utils/formatDate"],(function(e,a,t){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=w(t("@frontend-taglib-clay$clayui/alert")),r=w(t("@frontend-taglib-clay$clayui/icon")),n=w(t("@frontend-taglib-clay$clayui/label")),i=w(t("@frontend-taglib-clay$clayui/layout")),c=w(t("@frontend-taglib-clay$clayui/panel")),o=w(t("@frontend-taglib-clay$clayui/sticker")),s=w(t("liferay!frontend-js-react-web$classnames")),u=(w(t("liferay!frontend-js-react-web$prop-types")),function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=v();if(a&&a.has(e))return a.get(e);var t={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=l?Object.getOwnPropertyDescriptor(e,r):null;n&&(n.get||n.set)?Object.defineProperty(t,r,n):t[r]=e[r]}t.default=e,a&&a.set(e,t);return t}(t("liferay!frontend-js-react-web$react"))),d=w(t("../Sidebar")),f=w(t("./Categorization")),p=w(t("./DetailsContent")),y=w(t("./ManageCollaborators")),b=w(t("./PreviewActionsDescriptionSection")),m=w(t("./Subscribe")),g=w(t("./utils/formatDate"));function v(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return v=function(){return e},e}function w(e){return e&&e.__esModule?e:{default:e}}const e=({classPK:e,createDate:a,description:t,downloadURL:v,languageTag:w="en",latestVersions:E=[],modifiedDate:h,specificFields:$={},subscribe:L,subType:S,tags:j=[],title:D,type:P,preview:C,fetchSharingButtonURL:R,fetchSharingCollaboratorsURL:U,user:N,viewURLs:O=[],vocabularies:T={}})=>{const[k,M]=(0,u.useState)(!1),_=parseInt(N.userId,10)%10,I=(0,u.useCallback)((()=>{M(!0)}),[]);return u.default.createElement(u.default.Fragment,null,u.default.createElement(d.default.Header,{actionsSlot:L&&u.default.createElement(m.default,L),title:D},u.default.createElement(i.default.ContentRow,null,u.default.createElement("div",null,k&&u.default.createElement(l.default,{className:"mb-3",displayType:"warning",onClose:()=>{M(!1)},variant:"stripe"},Liferay.Language.get("there-was-a-problem-retrieving-data-please-try-reloading-the-page")),u.default.createElement("div",{className:"sidebar-section sidebar-section--compress"},u.default.createElement("p",{className:"c-mb-1 text-secondary","data-qa-id":"assetTypeInfo"},S?"".concat(P," - ").concat(S):"".concat(P))),u.default.createElement("div",{className:"sidebar-section sidebar-section--compress"},E.map((e=>u.default.createElement("div",{className:"c-mt-2",key:e.version},u.default.createElement(n.default,{displayType:"info"},Liferay.Language.get("version")+" ",e.version),u.default.createElement(n.default,{displayType:e.statusStyle},e.statusLabel))))),u.default.createElement("div",{className:"sidebar-section"},U?u.default.createElement(y.default,{fetchSharingCollaboratorsURL:U,onError:I}):u.default.createElement(u.default.Fragment,null,u.default.createElement(o.default,{className:(0,s.default)("sticker-user-icon",{["user-icon-color-".concat(_)]:!N.url}),shape:"circle"},N.url?u.default.createElement("img",{alt:"".concat(N.name,"."),className:"sticker-img",src:N.url}):u.default.createElement(r.default,{symbol:"user"})),u.default.createElement("span",{className:"c-ml-2 text-secondary"},N.name)))))),u.default.createElement(d.default.Body,null,u.default.createElement("div",null,u.default.createElement(b.default,{description:t,downloadURL:v,fetchSharingButtonURL:R,handleError:I,preview:C,title:D}),u.default.createElement(c.default.Group,{className:"panel-group-flush panel-group-sm"},u.default.createElement(f.default,{tags:j,vocabularies:T}),u.default.createElement(p.default,{classPK:e,createDate:a,description:t,downloadURL:v,fetchSharingButtonURL:R,formatDate:g.default,languageTag:w,modifiedDate:h,preview:C,specificFields:$,tags:j,title:D,viewURLs:O,vocabularies:T})))))};e.defaultProps={description:"",languageTag:"en-US",propTypes:[],vocabularies:{}};var E=e;a.default=E}}));
//# sourceMappingURL=SidebarPanelInfoViewCollapsable.js.map