Liferay.Loader.define("@liferay/content-dashboard-web@2.0.69/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=d(a("@frontend-taglib-clay$clayui/icon")),n=d(a("@frontend-taglib-clay$clayui/label")),r=d(a("@frontend-taglib-clay$clayui/layout")),o=d(a("@frontend-taglib-clay$clayui/link")),u=(d(a("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 t=i();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 i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}var f=({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-dl 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(o.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=f}}));
//# sourceMappingURL=ItemLanguages.js.map