`;
return html + switchItem;
}, "");
const doNotSellPersonalInfoAttributes = preferences?.notSellPersonalInfo ? "checked" : "";
const doNotSellPersonalInfo = `
`;
return finalSwitchData + doNotSellPersonalInfo;
}
__name(createSwitchList, "createSwitchList");
function generateHtmlModalNode() {
const modalNode = document.createElement("div");
modalNode.classList.add("captain-compliance-modal-container");
modalNode.style.display = "block";
const shadowRoot = modalNode.attachShadow({ mode: "open" });
document.body.appendChild(modalNode);
return shadowRoot;
}
__name(generateHtmlModalNode, "generateHtmlModalNode");
function addModal(bannerConfiguration, switchData, bannerDisplays, report, html, htmlSettingsModal, htmlIcon, shadowRoot, isGPCEnabled) {
const hasImage = bannerConfiguration.displayLogo && !!bannerConfiguration.image;
const shouldNotDisplayPartialButton = checkIfAllSwitchesAreOff(bannerDisplays);
const switchList = createSwitchList(switchData, bannerDisplays);
shadowRoot.innerHTML += htmlSettingsModal;
shadowRoot.innerHTML += !isGPCEnabled ? htmlIcon : "";
if (parseFloat(bannerConfiguration.overlay) > 0) {
shadowRoot.innerHTML += `