Liferay.Loader.define("data-engine-js-components-web@1.0.55/js/custom/form-report/components/card/Card",["module","exports","require","@frontend-taglib-clay$clayui/card","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/layout","liferay!frontend-js-react-web$react","../empty-state/EmptyState","../sidebar/SidebarContext","../summary/Summary"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({children:t,field:{icon:a,label:u,title:f},index:s,summary:y,totalEntries:m}){const{portletNamespace:p}=(0,i.useContext)(o.SidebarContext);return i.default.createElement("div",{className:"card-item",id:"".concat(p,"card_").concat(s)},i.default.createElement(n.default.Sheet,null,i.default.createElement(n.default.Col,null,i.default.createElement(r.default,{displayType:"image"},i.default.createElement(r.default.AspectRatio,{className:"card-header card-item-first"},i.default.createElement("div",{className:"aspect-ratio-item aspect-ratio-item-center-left aspect-ratio-item-fluid card-symbol card-type-asset-icon","data-tooltip-align":"bottom","data-tooltip-delay":300,title:f},i.default.createElement(l.default,{symbol:a})),i.default.createElement("div",{className:"field-info"},i.default.createElement(r.default.Description,{displayType:"title"},u),i.default.createElement(e,{totalEntries:m})),!!Object.entries(y).length&&i.default.createElement(d.default,{summary:y})),i.default.createElement(r.default.Body,null,m>0?t:i.default.createElement(c.default,{description:Liferay.Language.get("entries-submitted-with-this-field-filled-will-show-up-here")}))))))};var r=f(a("@frontend-taglib-clay$clayui/card")),l=f(a("@frontend-taglib-clay$clayui/icon")),n=f(a("@frontend-taglib-clay$clayui/layout")),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=r?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(a,l,n):a[l]=e[l]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")),c=f(a("../empty-state/EmptyState")),o=a("../sidebar/SidebarContext"),d=f(a("../summary/Summary"));function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}const e=({totalEntries:e})=>{let t=Liferay.Language.get("there-are-no-entries");return 1===e&&(t="1 ".concat(Liferay.Language.get("entry").toLowerCase())),e>1&&(t="".concat(e," ").concat(Liferay.Language.get("entries").toLowerCase())),i.default.createElement(r.default.Description,{displayType:"text",truncate:!1},t)}}}));
//# sourceMappingURL=Card.js.map