Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.152/RedirectButton/RedirectButton.es",["module","exports","require","./RedirectButton.scss","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$react","../FieldBase/ReactFieldBase.es"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("./RedirectButton.scss");var a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/button")),l=_interopRequireDefault(r("@frontend-taglib-clay$clayui/icon")),n=_interopRequireDefault(r("liferay!frontend-js-react-web$react")),i=r("../FieldBase/ReactFieldBase.es");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _objectWithoutProperties(e,t){if(null==e)return{};var r,a,l=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}var _default=e=>{let{buttonLabel:t,message:r,redirectURL:o,spritemap:u,title:c}=e,d=_objectWithoutProperties(e,["buttonLabel","message","redirectURL","spritemap","title"]);return n.default.createElement(i.FieldBase,d,n.default.createElement("div",{className:"redirect-button text-center"},c&&n.default.createElement("label",null,c),r&&n.default.createElement("div",{className:"sheet-text",dangerouslySetInnerHTML:{__html:r}}),n.default.createElement(a.default,{onClick:()=>{window.open(o)}},t,n.default.createElement("span",{className:"inline-item inline-item-after"},n.default.createElement(l.default,{spritemap:u,symbol:"shortcut"})))))};t.default=_default}}));
//# sourceMappingURL=RedirectButton.es.js.map