Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.121/admin/js/DDMFormAdminActionDropdownPropsTransformer",["module","exports","require","@liferay/frontend-icons-web","frontend-js-web","./components/share-form/openShareFormModal.es"],(function(e,r,o){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function propsTransformer(r){let{items:o}=r;return _objectSpread(_objectSpread({},function _objectWithoutProperties(e,r){if(null==e)return{};var o,t,n=function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var o,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)o=a[t],r.indexOf(o)>=0||(n[o]=e[o]);return n}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t<a.length;t++)o=a[t],r.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(r,["items"])),{},{items:o.map((r=>{var o;return _objectSpread(_objectSpread({},r),{},{items:null===(o=r.items)||void 0===o?void 0:o.map((r=>_objectSpread(_objectSpread({},r),{},{onClick(o){var t;const n=null===(t=r.data)||void 0===t?void 0:t.action;n&&(o.preventDefault(),e[n](r.data))}})))})}))})};var t=o("@liferay/frontend-icons-web"),n=o("frontend-js-web"),a=o("./components/share-form/openShareFormModal.es");function ownKeys(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,t)}return o}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(o),!0).forEach((function(r){_defineProperty(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}function _defineProperty(e,r,o){return r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}const e={delete({deleteFormInstanceURL:e}){(0,n.openConfirmModal)({message:Liferay.Language.get("are-you-sure-you-want-to-delete-this"),onConfirm:r=>r&&submitForm(document.hrefFm,e)})},exportForm({exportFormURL:e}){Liferay.fire("openExportFormModal",{exportFormURL:e})},permissions({permissionsFormInstanceURL:e}){(0,n.openModal)({title:Liferay.Language.get("permissions"),url:e})},shareForm({autocompleteUserURL:e,localizedName:r,portletNamespace:o,shareFormInstanceURL:n,url:i}){(0,a.openShareFormModal)({autocompleteUserURL:e,localizedName:r,portletNamespace:o,shareFormInstanceURL:n,spritemap:(0,t.getSpritemap)(),url:i})}}}}));
//# sourceMappingURL=DDMFormAdminActionDropdownPropsTransformer.js.map