Liferay.Loader.define("item-selector-taglib@5.2.21/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=o(t("liferay!frontend-js-react-web$classnames")),n=t("frontend-js-web"),l=(o(t("liferay!frontend-js-react-web$prop-types")),o(t("liferay!frontend-js-react-web$react")));function o(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 s=({handleClick:a,itemSelectorEventName:t,itemSelectorURL:o,maxFileSize:s,validExtensions:d})=>{const i=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":!i}),dangerouslySetInnerHTML:{__html:i?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"},d&&l.default.createElement("strong",null,d),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=s}}));
//# sourceMappingURL=BrowseImage.js.map