'use strict';

const v4 = require('./v4-c23234d2.js');

/**
Accepts an array of HTML attribute names to be removed from the host element and applied to a child element (typically a native element).
*/
function getHostAttrs(hostEl, whitelist = []) {
  const hostAttrs = hostEl.attributes;
  const passAttrs = {};
  whitelist.forEach(attrName => {
    const attr = hostAttrs.getNamedItem(attrName);
    if (attr) {
      passAttrs[attrName] = attr.value;
      hostAttrs.removeNamedItem(attrName);
    }
  });
  return passAttrs;
}
function genId() {
  return v4.v4();
}

exports.genId = genId;
exports.getHostAttrs = getHostAttrs;

//# sourceMappingURL=index-f92a5850.js.map