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