import { ReflectUtils } from "@dooboostore/core/reflect/ReflectUtils";
const INNER_HTML_METADATA_KEY = Symbol("simple-web-component:inner-html");
function innerHtml(arg1, arg2, arg3) {
  const decorator = (options, target, propertyKey) => {
    const constructor = target.constructor;
    let list = ReflectUtils.getMetadata(INNER_HTML_METADATA_KEY, constructor);
    if (!list) {
      list = [];
      ReflectUtils.defineMetadata(INNER_HTML_METADATA_KEY, list, constructor);
    }
    list.push({ propertyKey, options });
  };
  if (arg2) {
    return decorator({}, arg1, arg2);
  }
  return (target, propertyKey) => {
    decorator(arg1 || {}, target, propertyKey);
  };
}
const getInnerHtmlMetadataList = (target) => {
  const constructor = target instanceof Function ? target : target.constructor;
  return ReflectUtils.getMetadata(INNER_HTML_METADATA_KEY, constructor);
};
export {
  INNER_HTML_METADATA_KEY,
  getInnerHtmlMetadataList,
  innerHtml
};
//# sourceMappingURL=innerHtml.js.map
