Liferay.Loader.define("@liferay/document-library-web@6.0.110/document_library/js/DLFolderDropdownPropsTransformer",["module","exports","require","frontend-js-web"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{actions:t,items:r,portletNamespace:n}=e,o=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,["actions","items","portletNamespace"]);const i=e=>{const t=a(a({},e),{},{onClick(t){var r;const o=null===(r=e.data)||void 0===r?void 0:r.action;var a;o&&(t.preventDefault(),null===(a=l[o])||void 0===a||a.call(l,e.data,n))}});return Array.isArray(e.items)&&(t.items=e.items.map(i)),t};return a(a({},o),{},{actions:null==t?void 0:t.map(i),items:null==r?void 0:r.map(i)})};var n=r("frontend-js-web");function o(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 a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const e=(e,t,r,n)=>'<div class="portlet-document-library">\n\t\t'.concat(Liferay.Language.get("webdav-help"),'\n\n\t\t<a href="').concat(t,'" target="_blank">').concat(e,'</a>\n\n\t\t<br/><br/>\n\n\t\t<div class="form-group input-resource-wrapper">\n\t\t\t<label class="control-label" for="').concat(r,'webDavURL">\n\t\t\t\t').concat(Liferay.Language.get("web-dav-url"),'\n\t\t\t</label>\n\n\t\t\t<input class="form-control lfr-input-resource" disabled id="').concat(r,'webDavURL" name="').concat(r,'webDavURL" type="text" value="').concat(n,'"/>\n\t\t</div>\n\t</div>'),l={accessFromDesktop({learnMessage:t,learnURL:r,webDavURL:o},a){(0,n.openModal)({bodyHTML:e(t,r,a,o),onOpen(){const e=document.getElementById("".concat(a,"webDavURL"));e&&e.focus()},title:Liferay.Language.get("access-from-desktop")})},delete({deleteURL:e}){(0,n.openConfirmModal)({message:Liferay.Language.get("are-you-sure-you-want-to-delete-this"),onConfirm:t=>t&&submitForm(document.hrefFm,e)})},permissions({permissionsURL:e}){(0,n.openModal)({title:Liferay.Language.get("permissions"),url:e})},publish({publishURL:e}){(0,n.openConfirmModal)({message:Liferay.Language.get("are-you-sure-you-want-to-publish-the-selected-folder"),onConfirm:t=>{t&&(location.href=e)}})},slideShow({viewSlideShowURL:e}){window.open(e,"slideShow","directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no").focus()}}}}));
//# sourceMappingURL=DLFolderDropdownPropsTransformer.js.map