'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
require('../../../utils/index.js');
var purify_es = require('../../../../node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.js');
var html = require('./html.js');
var createNamespace = require('../../../utils/create-namespace.js');

"use strict";
const _hoisted_1 = ["innerHTML"];
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{
    name: "LlHtml"
  },
  __name: "html",
  props: html.htmlProps,
  setup(__props) {
    const props = __props;
    const bem = createNamespace.createNamespace("html");
    const purifyOptions = vue.computed(() => ({
      USE_PROFILES: { html: true, svg: true },
      ADD_TAGS: ["use", "svg", "symbol"],
      ADD_ATTR: ["xlink:href", "viewBox", "aria-hidden"],
      FORBID_TAGS: ["script", "iframe", "object", "embed"],
      FORBID_ATTR: ["onerror", "onload", "onclick", "onmouseover"],
      ...props.options
    }));
    const purifiedVal = vue.computed(() => {
      return purify_es.default.sanitize(props.value, purifyOptions.value);
    });
    return (_ctx, _cache) => {
      return vue.openBlock(), vue.createElementBlock("span", {
        class: vue.normalizeClass(vue.unref(bem).b()),
        innerHTML: purifiedVal.value
      }, null, 10, _hoisted_1);
    };
  }
});

exports.default = _sfc_main;
//# sourceMappingURL=html.vue2.js.map
