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