"use strict";

exports.__esModule = true;
exports.formatDeliveryHTML = void 0;

var formatDeliveryHTML = function formatDeliveryHTML(info) {
  var delivery = document.createElement('div');
  delivery.innerHTML = info;
  delivery.querySelectorAll('#product-delivery').forEach(function (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');
    paragraphs.forEach(function (p) {
      return p.style.marginTop = '1.5rem';
    });
    lists.forEach(function (li) {
      return li.style.margin = '1rem';
    });
    table.style.width = '100%';
    tableHead.forEach(function (th) {
      th.style.border = '1px solid #999';
      th.style.padding = '0.3rem';
    });
    tableCells.forEach(function (td) {
      td.style.border = '1px solid #999';
      td.style.padding = '0.3rem';
    });
  });
  return delivery.innerHTML;
};

exports.formatDeliveryHTML = formatDeliveryHTML;
//# sourceMappingURL=utils.js.map