Liferay.Loader.define("frontend-taglib-clay@12.0.6/cards/HorizontalCard",["module","exports","require","@frontend-taglib-clay$clayui/card","liferay!frontend-js-react-web$react","../constants","../normalize_dropdown_items"],(function(e,t,r){var n;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{actions:t,additionalProps:r,componentId:n,cssClass:i,disabled:u,href:f,inputName:d,inputValue:p,locale:y,portletId:b,portletNamespace:O,selectable:m,selected:_,symbol:v,title:h}=e,j=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["actions","additionalProps","componentId","cssClass","disabled","href","inputName","inputValue","locale","portletId","portletNamespace","selectable","selected","symbol","title"]);const[E,g]=(0,l.useState)(_),w=(0,l.useCallback)((({checked:e})=>{g(e)}),[g]);return(0,l.useEffect)((()=>(Liferay.on(o.EVENT_MANAGEMENT_TOOLBAR_TOGGLE_ALL_ITEMS,w),()=>{Liferay.detach(o.EVENT_MANAGEMENT_TOOLBAR_TOGGLE_ALL_ITEMS,w)})),[w]),l.default.createElement(a.ClayCardWithHorizontal,s({actions:(0,c.default)(t),checkboxProps:{name:null!=d?d:"",value:null!=p?p:""},className:i,disabled:u,href:f,interactive:!1,onSelectChange:m?e=>{g(e)}:null,selectable:m,selected:E,symbol:v,title:h},j))};var a=r("@frontend-taglib-clay$clayui/card"),l=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 r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var l=n?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),o=r("../constants"),c=(n=r("../normalize_dropdown_items"))&&n.__esModule?n:{default:n};function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}}}));
//# sourceMappingURL=HorizontalCard.js.map