import stringToHTML from "../stringToHTML"; import { settingsState } from "../listeners/SettingsState"; import { openPopup } from "./PopupManager"; import { attachPopupMediaFullscreenIfPresent } from "./attachPopupMediaFullscreen"; const PRIVACY_STATEMENT_VERSION = "2025-12-19"; export function shouldShowPrivacyNotification(): boolean { if (settingsState.privacyStatementShown) return false; if ( settingsState.privacyStatementLastUpdated && new Date(settingsState.privacyStatementLastUpdated) > new Date(PRIVACY_STATEMENT_VERSION) ) { return false; } return true; } export function showPrivacyNotification(onDismissed?: () => void) { if (document.getElementById("whatsnewbk")) { onDismissed?.(); return; } if (!shouldShowPrivacyNotification()) { onDismissed?.(); return; } const header = stringToHTML( /* html */ `

Privacy Statement

Important Information

`, ).firstChild as HTMLElement; const text = stringToHTML(/* html */ `

Addressing Recent Concerns About BetterSEQTA+
We appreciate the feedback we've received from several schools regarding BetterSEQTA+. Transparency and trust are core to our mission, and we want to address these concerns directly.

Our Commitment to Privacy:
• We do not collect, store, or share any personal information
• All data processing happens locally on your device
• Our code is open source and available for review

What We're Doing:
We're willing to actively work with school administrators to ensure BetterSEQTA+ meets both student needs and institutional requirements. If your school has specific concerns, we encourage them to contact us at betterseqta.plus@gmail.com or via github at github.com/BetterSEQTA/BetterSEQTA-Plus.

For complete details about our privacy practices, visit our privacy policy or click the shield icon in settings.

`).firstChild as HTMLElement; attachPopupMediaFullscreenIfPresent(text, "img.aboutImg"); settingsState.privacyStatementLastUpdated = "2025-12-20"; settingsState.privacyStatementShown = true; openPopup({ header, content: [text], afterClose: onDismissed, }); }