"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getContents = void 0;
const DATA_ATTRIBUTE = 'data-content';
const getContents = function () {
  let el = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  const children = el.querySelectorAll ? el.querySelectorAll("[".concat(DATA_ATTRIBUTE, "]")) : [];
  const contents = Array.from(children).map(child => child.cloneNode(true));
  children.forEach(child => child.remove());
  return contents;
};
exports.getContents = getContents;
//# sourceMappingURL=getContents.js.map