File: /home/storage/f/44/55/novoprovisorio2/public_html/wp-content/cache/minify/de2e4.js
function getCheckboxTableString(){const e=document.getElementById("checkout-mode-checkbox-test");if(!e||!e.parentElement)return null;let t=e.parentElement;for(;"TABLE"!==t.nodeName;)t=t.parentElement;return t.id}function hideColumnEmptyFromCheckbox(e){const t=document.querySelector(`#${e} > tbody > tr > th#mp_field_text.titledesc`),c=document.querySelector(`#${e} > tbody > tr:nth-child(2) > th`);t.style.display="none",c.style.display="none"}function customizeCheckboxContainer(e){const t=document.querySelector(`#${e} > tbody > tr:first-child > td`),c=document.querySelector(`#${e} > tbody > tr:nth-child(2) > td`);t.style.padding="0px",t.style.marginBottom="14px",t.style.paddingTop="14px",c.style.padding="0px",c.style.marginBottom="14px",c.style.paddingTop="14px"}function customizeCheckboxLabel(e){const t=document.querySelector(`#${e} > tbody > tr > td.forminp > fieldset > label`),c=document.querySelector(`#${e} > tbody > tr:nth-child(2) > td.forminp > fieldset > label`);t.style.color="black",t.style.border="none",t.style.width="100%",t.style.setProperty("margin","0","important"),t.style.setProperty("padding","0","important"),c.style.color="black",c.style.border="none",c.style.width="100%",c.style.setProperty("margin","0","important"),c.style.setProperty("padding","0","important")}function customizeCheckboxDescription(e){const t=document.querySelector(`#${e} > tbody > tr > td.forminp > fieldset > p.description`),c=document.querySelector(`#${e} > tbody > tr:nth-child(2) > td.forminp > fieldset > p.description`);t.style.marginLeft="24px",t.style.whiteSpace="nowrap",c.style.marginLeft="24px",c.style.whiteSpace="nowrap"}function checkCorrectInput(e,t){const c=document.querySelector("#checkout-mode-checkbox-test").classList.contains("checked"),o=document.querySelector("#checkout-mode-checkbox-production").classList.contains("checked");e.checked=c,t.checked=o}function addInputRadioLogic(e,t){e.addEventListener("change",(()=>{e.checked&&!t.checked||(e.checked=!0,e.classList.add("checked"),t.checked=!1,t.classList.remove("checked"))})),t.addEventListener("change",(()=>{t.checked&&!e.checked||(t.checked=!0,t.classList.add("checked"),e.checked=!1,e.classList.remove("checked"))}))}window.addEventListener("load",(()=>{const e=getCheckboxTableString();if(e){const t=document.querySelector('[id*="test_mode"]'),c=document.querySelector('[id*="production_mode"]');hideColumnEmptyFromCheckbox(e),customizeCheckboxContainer(e),customizeCheckboxLabel(e),customizeCheckboxDescription(e),checkCorrectInput(t,c),addInputRadioLogic(t,c)}}));