
    &g                     n    d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z
 ddlmZ ddlmZmZ  G d d	e      Zy
)z(
Custom menu for fluent_dashboard apps.
    )Menuitems)get_admin_site_name)reverse)gettext_lazy)get_application_groups)CmsModelListReturnToSiteItemc                       e Zd ZdZd Zy)
FluentMenua7  
    Custom Menu for admin site.

    The top level menu items created by this menu reflect the application groups
    defined in :ref:`FLUENT_DASHBOARD_APP_GROUPS`. By using both
    the :class:`~fluent_dashboard.dashboard.FluentIndexDashboard` and this class,
    the menu and dashboard modules at the admin index page will consistent.
    The :class:`~fluent_dashboard.items.ReturnToSiteItem` is also added at the end of the menu.

    To activate the menu add the following to your settings.py::

        ADMIN_TOOLS_MENU = 'fluent_dashboard.menu.FluentMenu'
    c           	         t        |      }| xj                  t        j                  t	        d      t        | d            t        j                         gz  c_        t               D ]=  \  }}|j                  dd      s| j                  j                  t        |fi |       ? | xj                  t               gz  c_        y)z,
        Initialize the menu items.
        	Dashboardz:indexenabledTN)r   childrenr   MenuItem_r   	Bookmarksr   getappendr	   r
   )selfcontext	site_nametitlekwargss        N/var/www/html/djangosite/lib/python3.12/site-packages/fluent_dashboard/menu.pyinit_with_contextzFluentMenu.init_with_context   s     (0	NN1[>7i[3G+HIOO
 	

 45 	DME6zz)T*$$\%%B6%BC	D 	*,--    N)__name__
__module____qualname____doc__r    r   r   r   r      s    .r   r   N)r!   admin_tools.menur   r   admin_tools.utilsr   django.urlsr   django.utils.translationr   r   fluent_dashboard.appgroupsr   fluent_dashboard.itemsr	   r
   r   r"   r   r   <module>r)      s*    ) 1  6 = A. .r   