Liferay.Loader.define("fragment-web@4.0.70/js/FragmentCollectionResourceDropdownPropsTransformer",["module","exports","require","./openDeleteFragmentCollectionResourceModal"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function propsTransformer(e){let{actions:r}=e,t=function _objectWithoutProperties(e,r){if(null==e)return{};var t,o,n=function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,o,n={},c=Object.keys(e);for(o=0;o<c.length;o++)t=c[o],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)t=c[o],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,["actions"]);const transformAction=e=>{var r;return"group"===e.type?_objectSpread(_objectSpread({},e),{},{items:null===(r=e.items)||void 0===r?void 0:r.map(transformAction)}):_objectSpread(_objectSpread({},e),{},{onClick(r){var t;"deleteFragmentCollectionResource"===(null===(t=e.data)||void 0===t?void 0:t.action)&&(r.preventDefault(),(0,o.default)({onDelete:()=>{var r;submitForm(document.hrefFm,null===(r=e.data)||void 0===r?void 0:r.deleteFragmentCollectionResourceURL)}}))}})};return _objectSpread(_objectSpread({},t),{},{actions:(r||[]).map(transformAction)})};var o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("./openDeleteFragmentCollectionResourceModal"));function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}}}));
//# sourceMappingURL=FragmentCollectionResourceDropdownPropsTransformer.js.map