!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","tslib","react"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=e("tslib").__importDefault(e("react"));function i(e,t){return{__html:t.renderHtml(e)}}function o(e){return e+"-title"}function u(e){return e+"-description"}t.getTitleId=o,t.getDescriptionId=u,t.renderTitle=function(e,t,n,r){return e=i(e.title,t),0<(null===(t=null==e?void 0:e.__html)||void 0===t?void 0:t.length)?l.default.createElement("span",{className:r=r||"form-element-title",dangerouslySetInnerHTML:e,id:o(n)}):null},t.renderDescription=function(e,t,n,r){return e=i(e.description,t),0<(null===(t=null==e?void 0:e.__html)||void 0===t?void 0:t.length)?l.default.createElement("aside",{className:r,dangerouslySetInnerHTML:e,id:u(n)}):null},t.renderError=function(e,t){return e=i(e.error,t),0<(null===(t=null==e?void 0:e.__html)||void 0===t?void 0:t.length)?l.default.createElement("div",{className:"notice",dangerouslySetInnerHTML:e,role:"alert"}):null},t.renderFocus=function(e,t,n){null===e||e.disabled||n.renderFocus(e,t)}});