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