export var formatDeliveryHTML = (_ref) => {
  var {
    content,
    linkColor
  } = _ref;
  var delivery = document.createElement('div');
  delivery.innerHTML = content;
  delivery.querySelectorAll('#product-delivery').forEach(el => {
    var paragraphs = el.querySelectorAll('p');
    var lists = el.querySelectorAll('li');
    var table = el.querySelector('table');
    var tableHead = el.querySelectorAll('th');
    var tableCells = el.querySelectorAll('td');
    var links = el.querySelectorAll('a');
    paragraphs.forEach(p => p.style.marginTop = '1.5rem');
    lists.forEach(li => li.style.margin = '1rem');
    links.forEach(link => {
      link.style.color = linkColor;
    });

    if (table) {
      table.style.width = '100%';
      tableHead.forEach(th => {
        th.style.border = '1px solid #999';
        th.style.padding = '0.3rem';
      });
      tableCells.forEach(td => {
        td.style.border = '1px solid #999';
        td.style.padding = '0.3rem';
      });
    }
  });
  return delivery.innerHTML;
};
//# sourceMappingURL=utils.js.map