Liferay.Loader.define("asset-categories-admin-web@5.0.63/js/VocabularyActionDropdownPropsTransformer",["module","exports","require","frontend-js-web","./openDeleteVocabularyModal"],(function(e,r,t){var n;window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(r){let{items:t}=r;return l(l({},function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(r,["items"])),{},{items:t.map((r=>{var t;return l(l({},r),{},{items:null===(t=r.items)||void 0===t?void 0:t.map((r=>l(l({},r),{},{onClick(t){var n;const o=null===(n=r.data)||void 0===n?void 0:n.action;o&&(t.preventDefault(),e[o](r.data))}})))})}))})};var o=t("frontend-js-web"),a=(n=t("./openDeleteVocabularyModal"))&&n.__esModule?n:{default:n};function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(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){u(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 u(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={deleteVocabulary({deleteVocabularyURL:e}){(0,a.default)({onDelete:()=>{submitForm(document.hrefFm,e)}})},permissionsVocabulary({permissionsVocabularyURL:e}){(0,o.openModal)({title:Liferay.Language.get("permissions"),url:e})}}}}));
//# sourceMappingURL=VocabularyActionDropdownPropsTransformer.js.map