Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.150/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 ShareFormModalBody({autocompleteUserURL:e,emailContent:t,localizedName:a,url:i}){const[d,u]=(0,n.useState)([]),[s,c]=(0,n.useState)((0,r.sub)(Liferay.Language.get("please-fill-out-this-form-x"),i)),[f,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:i}))),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:s,onMessageChanged:c,onMultiSelectItemsChanged:u,onSubjectChanged:m,subject:f}))))};var r=a("frontend-js-web"),n=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();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=_interopRequireDefault(a("./Email.es")),l=_interopRequireDefault(a("./Link.es"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}}}));
//# sourceMappingURL=ShareFormModalBody.es.js.map