from django.utils.translation import gettext_lazy as _

__title__ = (
    "fobi.contrib.plugins.form_elements.content.content_image_url." "defaults"
)
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2014-2019 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
__all__ = (
    "DEFAULT_FIT_METHOD",
    "DEFAULT_SIZE",
    "SIZE_100x100",
    "SIZE_200x200",
    "SIZE_300x300",
    "SIZE_400x400",
    "SIZE_500x500",
    "SIZE_600x600",
    "SIZES",
)


FIT_METHOD_FIT_WIDTH = "fit_width"
FIT_METHOD_FIT_HEIGHT = "fit_height"

DEFAULT_FIT_METHOD = FIT_METHOD_FIT_WIDTH

FIT_METHODS_CHOICES = (
    (FIT_METHOD_FIT_WIDTH, _("Fit width")),
    (FIT_METHOD_FIT_HEIGHT, _("Fit height")),
)

FIT_METHODS_CHOICES_WITH_EMPTY_OPTION = [("", "---------")] + list(
    FIT_METHODS_CHOICES
)

SIZE_100x100 = "100x100"
SIZE_200x200 = "200x200"
SIZE_200x300 = "200x300"
SIZE_300x200 = "300x200"
SIZE_300x300 = "300x300"
SIZE_300x400 = "300x400"
SIZE_400x300 = "400x300"
SIZE_400x400 = "400x400"
SIZE_500x500 = "500x500"
SIZE_600x600 = "600x600"

DEFAULT_SIZE = SIZE_500x500

SIZES = (
    (SIZE_100x100, SIZE_100x100),
    (SIZE_200x200, SIZE_200x200),
    (SIZE_200x300, SIZE_200x300),
    (SIZE_300x200, SIZE_300x200),
    (SIZE_300x300, SIZE_300x300),
    (SIZE_300x400, SIZE_300x400),
    (SIZE_400x300, SIZE_400x300),
    (SIZE_400x400, SIZE_400x400),
    (SIZE_500x500, SIZE_500x500),
    (SIZE_600x600, SIZE_600x600),
)
