from pathlib import Path

from ui_builder.auth import EditorAuthManager


def main() -> None:
    auth = EditorAuthManager(Path(__file__).resolve().parent / "settings")
    info = auth.explain_daily_pin()
    print(f"Дата: {info['date']} ({info['timezone']})")
    print(f"ДДММ: {info['date_digits']}")
    print(f"Маска: {info['mask']}")
    print("Расчёт:")
    for step in info["steps"]:
        print(f"  {step}")
    print(f"PIN конструктора: {info['pin']}")


if __name__ == "__main__":
    main()
