Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.105/admin/js/DDMFormAdminActionDropdownPropsTransformer",["module","exports","require","@liferay/frontend-icons-web","frontend-js-web","./components/share-form/openShareFormModal.es"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(r){let{items:t}=r;return s(s({},function(e,r){if(null==e)return{};var t,o,n=function(e,r){if(null==e)return{};var t,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)t=a[o],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(r,["items"])),{},{items:t.map((r=>{var t;return s(s({},r),{},{items:null===(t=r.items)||void 0===t?void 0:t.map((r=>s(s({},r),{},{onClick(t){var o;const n=null===(o=r.data)||void 0===o?void 0:o.action;n&&(t.preventDefault(),e[n](r.data))}})))})}))})};var o=t("@liferay/frontend-icons-web"),n=t("frontend-js-web"),a=t("./components/share-form/openShareFormModal.es");function i(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 s(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(Object(t),!0).forEach((function(r){l(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function l(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,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:t,shareFormInstanceURL:n,url:i}){(0,a.openShareFormModal)({autocompleteUserURL:e,localizedName:r,portletNamespace:t,shareFormInstanceURL:n,spritemap:(0,o.getSpritemap)(),url:i})}}}}));
//# sourceMappingURL=DDMFormAdminActionDropdownPropsTransformer.js.map