"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const getElementDataAttributes = (element, attributeNamePrefix = "contember") => {
  const { children, ...extendedSpecifics } = element;
  return Object.fromEntries(
    Object.entries(extendedSpecifics).filter(([, value]) => {
      const t = typeof value;
      return t === "string" || t === "number" || t === "boolean";
    }).map(([attribute, value]) => [`data-${attributeNamePrefix}-${attribute.toLowerCase()}`, value])
  );
};
exports.getElementDataAttributes = getElementDataAttributes;
//# sourceMappingURL=getElementDataAttributes.cjs.map
