# Path: adminlte_full/adminlte.py
# class ConfigWrapper(object):
# class Manager(AbstractManager):
#     def get(self, name, default=''):
#     def create_url(self, endpoint, *endpoint_args, **endpoint_kwargs):
#     def get_flash_messages(self):
#     def static(self, filename):
# 
# Path: adminlte_full/adminlte.py
# class ConfigWrapper(object):
# class Manager(AbstractManager):
#     def get(self, name, default=''):
#     def create_url(self, endpoint, *endpoint_args, **endpoint_kwargs):
#     def get_flash_messages(self):
#     def static(self, filename):


from hashlib import md5
    from urllib import urlencode
    from urllib.parse import urlencode
from adminlte_base import filters
from django import template
from django.template import Node
from django.template.base import TemplateSyntaxError, kwarg_re
from django.urls import reverse_lazy
from django.utils.decorators import method_decorator
from ..adminlte import config
from ..adminlte import manager
    )


@register.filter
def humanize(dt):
    locale = config.get(
        'LOCALE_NAME', config.get('LANGUAGE_CODE').replace('-', '_')
    )
    time_zone = config.get('TIME_ZONE', None)
    return filters.humanize(dt, locale, time_zone)


simple_tag = method_decorator(register.simple_tag)


@register.simple_tag(
    name='adminlte.get_home_page',
    takes_context=True
)
def get_home_page(context):
    """Returns a link to the home page as a named tuple with url and title fields."""
    return manager.with_context(context).get_home_page()


@register.simple_tag(
    name='adminlte.menu.navbar_menu',
    takes_context=True
)
def navbar_menu(context):
    """Creates and returns a navbar menu."""

# Path: adminlte_full/adminlte.py
# class ConfigWrapper(object):
# class Manager(AbstractManager):
#     def get(self, name, default=''):
#     def create_url(self, endpoint, *endpoint_args, **endpoint_kwargs):
#     def get_flash_messages(self):
#     def static(self, filename):
# 
# Path: adminlte_full/adminlte.py
# class ConfigWrapper(object):
# class Manager(AbstractManager):
#     def get(self, name, default=''):
#     def create_url(self, endpoint, *endpoint_args, **endpoint_kwargs):
#     def get_flash_messages(self):
#     def static(self, filename):


# Path: adminlte_full/templatetags/adminlte_full.py
from hashlib import md5
    from urllib import urlencode
    from urllib.parse import urlencode
from adminlte_base import filters
from django import template
from django.template import Node
from django.template.base import TemplateSyntaxError, kwarg_re
from django.urls import reverse_lazy
from django.utils.decorators import method_decorator
from ..adminlte import config
from ..adminlte import manager

    )


@register.filter
def humanize(dt):
    locale = config.get(
        'LOCALE_NAME', config.get('LANGUAGE_CODE').replace('-', '_')
    )
    time_zone = config.get('TIME_ZONE', None)
    return filters.humanize(dt, locale, time_zone)


simple_tag = method_decorator(register.simple_tag)


@register.simple_tag(
    name='adminlte.get_home_page',
    takes_context=True
)
def get_home_page(context):
    """Returns a link to the home page as a named tuple with url and title fields."""
    return manager.with_context(context).get_home_page()


@register.simple_tag(
    name='adminlte.menu.navbar_menu',
    takes_context=True
)
def navbar_menu(context):
    """Creates and returns a navbar menu."""

    return manager.with_context(context).menu.navbar_menu()