Liferay.Loader.define("@liferay/frontend-data-set-web@1.0.31/data_renderers/DefaultRenderer",["module","exports","require","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../utils/logError","./TooltipTextRenderer"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=f(r("@frontend-taglib-clay$clayui/icon")),l=f(r("liferay!frontend-js-react-web$classnames")),a=(f(r("liferay!frontend-js-react-web$prop-types")),f(r("liferay!frontend-js-react-web$react"))),o=r("../utils/logError"),u=f(r("./TooltipTextRenderer"));function f(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(null==e)return{};var r,n,l=function(e,t){if(null==e)return{};var r,n,l={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}const e=e=>{let{options:t}=e,r=c(e,["options"]);return(null==t?void 0:t.truncate)?a.default.createElement("span",{className:(0,l.default)("default-renderer__text-truncate","text-truncate")},r.children):a.default.createElement(a.default.Fragment,null,r.children)};var i=function({options:t,value:r}){return"number"==typeof r||"string"==typeof r||null==r?a.default.createElement(e,{options:t},null!=r?r:""):r.icon?a.default.createElement(n.default,{symbol:r.icon}):r.iconSymbol&&r.text?a.default.createElement(u.default,{value:r}):r?a.default.createElement(e,{options:t},r):((0,o.logError)("The object ".concat(JSON.stringify(r)," doesn't match the template schema")),null)};t.default=i}}));
//# sourceMappingURL=DefaultRenderer.js.map