Liferay.Loader.define("@liferay/content-dashboard-web@2.0.85/js/components/SidebarPanelInfoView/ItemLanguages",["module","exports","require","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/label","@frontend-taglib-clay$clayui/layout","@frontend-taglib-clay$clayui/link","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=_interopRequireDefault(a("@frontend-taglib-clay$clayui/icon")),n=_interopRequireDefault(a("@frontend-taglib-clay$clayui/label")),r=_interopRequireDefault(a("@frontend-taglib-clay$clayui/layout")),i=_interopRequireDefault(a("@frontend-taglib-clay$clayui/link")),u=(_interopRequireDefault(a("liferay!frontend-js-react-web$prop-types")),function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var a={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=l?Object.getOwnPropertyDescriptor(e,n):null;r&&(r.get||r.set)?Object.defineProperty(a,n,r):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=({urls:e})=>{const t=(0,u.useMemo)((()=>e.sort(((e,t)=>e.languageId<t.languageId?-1:e.languageId>t.languageId?1:0)).sort((e=>e.default?-1:0))),[e]);return u.default.createElement("div",{className:"c-mb-4 sidebar-section"},u.default.createElement("h5",{className:"font-weight-semi-bold"},Liferay.Language.get("languages-translated-into")),t.map((e=>u.default.createElement(r.default.ContentRow,{key:e.languageId,verticalAlign:"center"},u.default.createElement(r.default.ContentCol,{className:"inline-item-before"},u.default.createElement(l.default,{className:"c-mt-1",symbol:e.languageId.toLowerCase()})),u.default.createElement(r.default.ContentCol,{expand:!!e.viewURL},u.default.createElement(r.default.ContentRow,{key:e.languageId,verticalAlign:"center"},u.default.createElement(r.default.ContentCol,{className:"inline-item-before small"},e.languageId),u.default.createElement(r.default.ContentCol,null,e.default&&u.default.createElement(n.default,{className:"d-inline",displayType:"info"},Liferay.Language.get("default"))))),e.viewURL&&u.default.createElement(r.default.ContentCol,null,u.default.createElement(i.default,{borderless:!0,"data-tooltip-align":"top",displayType:"secondary",href:e.viewURL,monospaced:!0,outline:!0,title:Liferay.Language.get("view")},u.default.createElement(l.default,{symbol:"view"})))))))};t.default=_default}}));
//# sourceMappingURL=ItemLanguages.js.map