# flake8: noqa: F405
import copy

import jinja2

from .base import *

# Email settings for all non prod environments.
SEND_ALL_EMAILS_TO = env.list("SEND_ALL_EMAILS_TO", default=[])

# Email/phone contacts
EMAIL_FROM = env.str("ICMS_EMAIL_FROM", "enquiries.ilb@icms.trade.dev.uktrade.io")  # /PS-IGNORE
ILB_CONTACT_EMAIL = env.str(
    "ICMS_ILB_CONTACT_EMAIL", "enquiries.ilb@icms.trade.dev.uktrade.io"  # /PS-IGNORE
)
ILB_GSI_CONTACT_EMAIL = env.str(
    "ICMS_ILB_GSI_CONTACT_EMAIL", "enquiries.ilb.gsi@icms.trade.dev.uktrade.io"  # /PS-IGNORE
)
ILB_CONTACT_PHONE = env.str("ICMS_ILB_CONTACT_PHONE", "N/A")
ICMS_FIREARMS_HOMEOFFICE_EMAIL = env.str(
    "ICMS_FIREARMS_HOMEOFFICE_EMAIL", "firearms-homeoffice@example.com"  # /PS-IGNORE
)
ICMS_CFS_HSE_EMAIL = env.str("ICMS_CFS_HSE_EMAIL", "HSE@example.com")  # /PS-IGNORE
ICMS_GMP_BEIS_EMAIL = env.str("ICMS_GMP_BEIS_EMAIL", "BEIS@example.com")  # /PS-IGNORE

# Override secure cookies to use playwright in non-prod environments
SESSION_COOKIE_SECURE = False
CSRF_COOKIE_SECURE = False

STRICT_TEMPLATES = copy.deepcopy(TEMPLATES)
STRICT_TEMPLATES[0]["OPTIONS"].update({"undefined": jinja2.StrictUndefined})  # type: ignore[attr-defined]
