Liferay.Loader.define("@liferay/frontend-data-set-web@1.0.31/views/list/List",["module","exports","require","@frontend-taglib-clay$clayui/empty-state","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/list","@frontend-taglib-clay$clayui/loading-indicator","@frontend-taglib-clay$clayui/sticker","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../actions/Actions","../../data_renderers/ImageRenderer"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=y(a("@frontend-taglib-clay$clayui/empty-state")),n=a("@frontend-taglib-clay$clayui/form"),r=y(a("@frontend-taglib-clay$clayui/icon")),i=y(a("@frontend-taglib-clay$clayui/list")),c=y(a("@frontend-taglib-clay$clayui/loading-indicator")),d=y(a("@frontend-taglib-clay$clayui/sticker")),o=y(a("liferay!frontend-js-react-web$classnames")),f=(y(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=m();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"))),u=y(a("../../actions/Actions")),s=y(a("../../data_renderers/ImageRenderer"));function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function y(e){return e&&e.__esModule?e:{default:e}}function g({dataLoading:e,frontendDataSetContext:t,items:a,schema:{description:m,image:y,sticker:g,symbol:p,title:b}}){const{itemActions:I,selectItems:$,selectedItemsKey:w,selectedItemsValue:E,selectionType:j}=(0,f.useContext)(t);return e?f.default.createElement(c.default,{className:"mt-7"}):(null==a?void 0:a.length)?f.default.createElement(i.default,null,a.map(((e,t)=>f.default.createElement(i.default.Item,{className:(0,o.default)(t?"border-left-0 border-bottom-0 border-right-0":"border-0"),flex:!0,key:e.id},f.default.createElement(i.default.ItemField,{className:"justify-content-center"},"single"===j?f.default.createElement(n.ClayRadio,{checked:E.map((e=>String(e))).includes(String(e[w])),onChange:()=>$(e[w])}):f.default.createElement(n.ClayCheckbox,{checked:E.map((e=>String(e))).includes(String(e[w])),onChange:()=>$(e[w])})),y&&e[y]?f.default.createElement(i.default.ItemField,null,f.default.createElement(s.default,{sticker:g&&e[g],value:{src:e[y]}})):p&&e[p]&&f.default.createElement(i.default.ItemField,null,f.default.createElement(d.default,g&&e[g],e[p]&&f.default.createElement(r.default,{symbol:e[p]}))),f.default.createElement(i.default.ItemField,{className:"justify-content-center",expand:!0},b&&f.default.createElement(i.default.ItemTitle,null,e[b]),m&&f.default.createElement(i.default.ItemText,null,e[m])),f.default.createElement(i.default.ItemField,null,(I||e.actionDropdownItems)&&f.default.createElement(u.default,{actions:I||e.actionDropdownItems,itemData:e,itemId:e[w]||t})))))):f.default.createElement(l.default,{description:Liferay.Language.get("sorry,-no-results-were-found"),imgSrc:"".concat(themeDisplay.getPathThemeImages(),"/states/search_state.gif"),title:Liferay.Language.get("no-results-found")})}g.defaultTypes={activeItemValue:""};var p=g;t.default=p}}));
//# sourceMappingURL=List.js.map