{"version":3,"file":"is-not-empty-html.mjs","names":[],"sources":["../../../src/validators/is-not-empty-html/is-not-empty-html.ts"],"sourcesContent":["import type { SyncReactNode } from '../types';\n\nfunction removeHtmlTags(input: string): string {\n  return input.replace(/<\\/?[^>]+(>|$)/g, '');\n}\n\nexport function isNotEmptyHTML(error?: SyncReactNode) {\n  const _error = error || true;\n\n  return (value: unknown): SyncReactNode => {\n    if (typeof value === 'string') {\n      return removeHtmlTags(value).trim().length > 0 ? null : _error;\n    }\n\n    return _error;\n  };\n}\n"],"mappings":";;AAEA,SAAS,eAAe,OAAuB;CAC7C,OAAO,MAAM,QAAQ,mBAAmB,EAAE;AAC5C;AAEA,SAAgB,eAAe,OAAuB;CACpD,MAAM,SAAS,SAAS;CAExB,QAAQ,UAAkC;EACxC,IAAI,OAAO,UAAU,UACnB,OAAO,eAAe,KAAK,EAAE,KAAK,EAAE,SAAS,IAAI,OAAO;EAG1D,OAAO;CACT;AACF"}