import"./hoisted.yFz1BYXO.js";const c=[{id:1,text:"Do you have prior express written consent from every recipient?",detail:"TCPA requires prior express written consent for marketing texts. Verbal consent or implied consent is not sufficient.",risk:"Sending texts without prior express written consent is the #1 source of TCPA lawsuits. Each message can trigger $500–$1,500 in statutory damages."},{id:2,text:"Is your consent form specific to your company (one-to-one consent)?",detail:"FCC's 2024 rule requires one-to-one consent — consent must be given to a single, identified seller, not shared across multiple companies.",risk:"Shared or multi-party consent forms are no longer valid under FCC rules effective January 2025. Each company must obtain its own consent."},{id:3,text:"Does your consent disclosure clearly identify you as the sender?",detail:"The consent language must clearly state your company name, the type of messages, and the number consumers will receive.",risk:"Unclear or misleading consent disclosures can void the consent entirely, leaving you liable for every message sent."},{id:4,text:"Can recipients revoke consent via text reply (STOP)?",detail:"You must honor opt-out requests immediately. Standard keywords (STOP, QUIT, CANCEL, UNSUBSCRIBE) must be supported.",risk:"Failing to honor opt-out requests converts every subsequent message into an unsolicited contact with full penalty exposure."},{id:5,text:"Do you scrub against the National DNC Registry at least every 31 days?",detail:"The FTC requires telemarketers to scrub their lists against the National Do Not Call Registry no less than every 31 days.",risk:"Contacting numbers on the DNC Registry can result in $500–$1,500 per call/text, plus FTC enforcement actions."},{id:6,text:"Do you restrict messages to 8am–9pm in the recipient's time zone?",detail:"TCPA prohibits calls and texts before 8:00 AM or after 9:00 PM in the recipient's local time zone.",risk:"Messages outside permitted hours are per-se TCPA violations regardless of whether the recipient consented."},{id:7,text:"Do you keep consent records for at least 5 years?",detail:"You should retain proof of consent (timestamp, IP address, consent language shown, phone number) for at least 5 years to defend against claims.",risk:"Without documented proof of consent, you cannot defend against a TCPA claim. The burden of proof is on the sender."},{id:8,text:"Did you obtain consent directly (not from a lead vendor)?",detail:"Purchasing leads with 'consent included' is risky. You are responsible for verifying the consent was properly obtained by the lead generator.",risk:"Consent obtained by a third-party lead vendor may not meet TCPA/FCC standards. You bear the liability, not the vendor."}];function f(){const e=document.getElementById("questions-container");e&&(e.innerHTML=c.map(t=>`
`).join(""))}function h(e){return e>=1e9?"$"+(e/1e9).toFixed(1)+"B":e>=1e6?"$"+(e/1e6).toFixed(1)+"M":e>=1e3?"$"+(e/1e3).toFixed(0)+"K":"$"+e.toLocaleString()}function k(){let e=0;const t=[];return c.forEach(s=>{const n=document.querySelector(`input[name="t${s.id}"]:checked`);n&&n.value==="no"&&(e++,t.push({text:s.text,risk:s.risk}))}),{noCount:e,issues:t}}function w(e,t){const s=document.getElementById("results"),n=document.getElementById("result-card"),i=document.getElementById("result-icon"),o=document.getElementById("result-title"),r=document.getElementById("result-score"),a=document.getElementById("result-description"),u=document.getElementById("exposure-low"),m=document.getElementById("exposure-high"),d=document.getElementById("issues-detail"),p=document.getElementById("tcpa-form"),g=document.getElementById("msg-volume");if(!s||!n||!i||!o||!r||!a||!u||!m||!d||!p)return;const y=g&&parseInt(g.value)||1e4,l=8-e;p.classList.add("hidden"),s.classList.remove("hidden"),e===0?(n.className="rounded-xl p-8 border-2 text-center bg-green-50 border-green-300",i.textContent="✅",o.textContent="Compliant",o.className="text-2xl font-bold mb-3 text-green-800",r.textContent=`${l}/8 items passed. No issues identified.`,r.className="text-sm font-medium mb-4 text-green-700",a.textContent="Your SMS campaign practices appear to meet TCPA requirements based on your answers. Continue to monitor FCC rulings and maintain your consent records. Periodic professional audits can help you stay ahead of regulatory changes."):e<=2?(n.className="rounded-xl p-8 border-2 text-center bg-amber-50 border-amber-300",i.textContent="⚠️",o.textContent="At Risk",o.className="text-2xl font-bold mb-3 text-amber-800",r.textContent=`${l}/8 items passed. ${e} issue${e>1?"s":""} identified.`,r.className="text-sm font-medium mb-4 text-amber-700",a.textContent="Your campaign has compliance gaps that could expose you to TCPA litigation. Class-action TCPA lawsuits are among the most common in federal court. Address these issues promptly to reduce your risk."):(n.className="rounded-xl p-8 border-2 text-center bg-red-50 border-red-300",i.textContent="🚨",o.textContent="High Risk",o.className="text-2xl font-bold mb-3 text-red-800",r.textContent=`${l}/8 items passed. ${e} issues identified.`,r.className="text-sm font-medium mb-4 text-red-700",a.textContent="Your SMS campaign has serious compliance deficiencies. With multiple TCPA violations, you are highly vulnerable to class-action lawsuits, FCC enforcement, and substantial statutory damages. Immediate remediation and a professional consent audit are strongly recommended.");const b=y*500,v=y*1500;u.textContent=h(b),m.textContent=h(v),t.length>0?d.innerHTML='Issues identified and associated risks:
'+t.map(x=>`
${x.text.replace(/^Do you |^Did you |^Does your |^Can |^Is your /i,C=>C)}
${x.risk}
`).join(""):d.innerHTML="",s.scrollIntoView({behavior:"smooth",block:"start"})}document.addEventListener("DOMContentLoaded",()=>{f(),document.getElementById("tcpa-form")?.addEventListener("submit",t=>{t.preventDefault();let s=!0;if(c.forEach(o=>{document.querySelector(`input[name="t${o.id}"]:checked`)||(s=!1)}),!s){alert("Please answer all 8 questions before submitting.");return}const{noCount:n,issues:i}=k();w(n,i)}),document.getElementById("retake-btn")?.addEventListener("click",()=>{const t=document.getElementById("tcpa-form"),s=document.getElementById("results");t&&s&&(t.classList.remove("hidden"),s.classList.add("hidden"),f(),window.scrollTo({top:0,behavior:"smooth"}))})});