Liferay.Loader.define("item-selector-taglib@5.3.11/image_selector/js/BrowseImage",["module","exports","require","liferay!frontend-js-react-web$classnames","frontend-js-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,a,t){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=_interopRequireDefault(t("liferay!frontend-js-react-web$classnames")),n=t("frontend-js-web"),l=(_interopRequireDefault(t("liferay!frontend-js-react-web$prop-types")),_interopRequireDefault(t("liferay!frontend-js-react-web$react")));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const e="<button class='btn btn-secondary' type='button'>".concat(Liferay.Language.get("select-file"),"</button>");var _default=({handleClick:a,itemSelectorEventName:t,itemSelectorURL:o,maxFileSize:s,validExtensions:i})=>{const d=Liferay.Browser.isMobile();return l.default.createElement("div",{className:"browse-image-controls"},l.default.createElement("div",{className:"drag-drop-label",onClick:e=>{"BUTTON"===e.target.tagName&&a(e)}},t&&o?l.default.createElement("span",{className:(0,r.default)({"pr-1":!d}),dangerouslySetInnerHTML:{__html:d?e:(0,n.sub)(Liferay.Language.get("drag-and-drop-to-upload-or-x"),e)}}):Liferay.Language.get("drag-and-drop-to-upload")),l.default.createElement("div",{className:"file-validation-info"},i&&l.default.createElement("strong",null,i),0!==Number(s)&&l.default.createElement("span",{className:"pl-1",dangerouslySetInnerHTML:{__html:(0,n.sub)(Liferay.Language.get("maximum-size-x"),(0,n.formatStorage)(parseInt(s,10)))}})))};a.default=_default}}));
//# sourceMappingURL=BrowseImage.js.map