Liferay.Loader.define("layout-template-admin-web@2.0.75/js/propsTransformers/DisplayPageManagementToolbarPropsTransformer",["module","exports","require","../modal/openDeletePageTemplateModal"],(function(e,t,r){var n;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{portletNamespace:t}=e,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["portletNamespace"]);return l(l({},r),{},{onActionButtonClick(e,{item:r}){const n=null==r?void 0:r.data,a=null==n?void 0:n.action;"deleteSelectedDisplayPages"===a?(0,o.default)({onDelete:()=>{const e=document.getElementById("".concat(t,"fm"));e&&submitForm(e)},title:Liferay.Language.get("display-page-templates")}):"exportDisplayPages"===a&&(e=>{const r=document.getElementById("".concat(t,"fm"));r&&submitForm(r,null==e?void 0:e.exportDisplayPageURL)})(n)}})};var o=(n=r("../modal/openDeletePageTemplateModal"))&&n.__esModule?n:{default:n};function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}}}));
//# sourceMappingURL=DisplayPageManagementToolbarPropsTransformer.js.map