Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.84/admin/js/components/share-form/ShareFormModalBody.es",["module","exports","require","liferay!frontend-js-react-web$react","./Email.es","./Link.es"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.ShareFormModalBody=function({autocompleteUserURL:e,emailContent:t,localizedName:a,url:l}){const[i,s]=(0,r.useState)([]),[u,d]=(0,r.useState)(Liferay.Util.sub(Liferay.Language.get("please-fill-out-this-form-x"),l)),[f,c]=(0,r.useState)(a[themeDisplay.getLanguageId()]);return r.default.createElement("div",{className:"share-form-modal-items"},r.default.createElement("div",{className:"share-form-modal-item"},r.default.createElement("div",{className:"popover-header"},Liferay.Language.get("link")),r.default.createElement("div",{className:"popover-body"},r.default.createElement(o.default,{url:l}))),r.default.createElement("div",{className:"share-form-modal-item"},r.default.createElement("div",{className:"popover-header"},Liferay.Language.get("email")),r.default.createElement("div",{className:"popover-body"},r.default.createElement(n.default,{addresses:i,autocompleteUserURL:e,emailContent:t,localizedName:a,message:u,onMessageChanged:d,onMultiSelectItemsChanged:s,onSubjectChanged:c,subject:f}))))};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(a,n,o):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")),n=l(a("./Email.es")),o=l(a("./Link.es"));function l(e){return e&&e.__esModule?e:{default:e}}function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}}}));
//# sourceMappingURL=ShareFormModalBody.es.js.map