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