orEach((foot) => {
          addFooter();
          const sec = document.querySelectorAll("#footerFields .section");
          const last = sec[sec.length - 1];
          last.querySelector("[name=footer_label]").value = foot.label;
          last.querySelector("[name=footer_data]").value = foot.data
            .map((item) =>
              typeof item === "string"
                ? item
                : `${item.text}|${item.link || ""}`
            )
            .join("\n");
        });
      });
    </sc