
    ɯeiU                         d Z dZddlmZ ddlZddlmZ ddlm	Z	m
Z
mZmZmZmZmZmZ ddlmZmZmZmZmZmZmZmZ dd	lmZ dd
lmZ ddlmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z' ddl(m)Z) ddZ* e*        de+defdZ,y)z2
Initialization module for the st_notify package.
z0.3.1    )AnyN   )RerunnableStatusElement)create_notificationnotifyget_notificationsclear_notificationsget_notification_queuehas_notificationsremove_notificationsadd_notifications)	toast_stnballoons_stnsnow_stnsuccess_stninfo_stn	error_stnwarning_stnexception_stn)NotificationQueue)StatusElementNotification)
STATUS_ELEMENTSNotificationTypetoastballoonssnowsuccessinfoerrorwarning	exception)get_status_elementreturnc                  \    t        j                         D ]  \  } }|j                           y)z
    Initialize session state for all notification elements.
    This ensures that the notification queues are set up in the session state.
    N)r   itemssetup_queue)_elements     [/var/www/html/glpi_dashboard/venv/lib/python3.12/site-packages/streamlit_notify/__init__.pyinit_session_stater*   1   s,    
 &++- 
7    namec                     	 t        t        |       S # t        $ r*}t        t        |      j	                  dd            |d}~ww xY w)a$  
    Delegate attribute access to Streamlit if not found in this module.

    Parameters:
        name (str): Name of the attribute to get.

    Returns:
        Any: The requested attribute from Streamlit.

    Raises:
        AttributeError: If the attribute is not found in Streamlit.
    	streamlit	st_notifyN)getattrstAttributeErrorstrreplace)r,   errs     r)   __getattr__r6   =   sE    Rr4   RSX--k;GHcQRs    	A%A  A)r#   N)-__doc____version__typingr   r.   r1   status_elementsr   
functionalr   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   notification_queuer   notification_dataclassr   status_element_typesr   r   r   r   r   r   r   r   r    r!   utilsr"   r*   r3   r6    r+   r)   <module>rA      sw       4	 	 		 	 	 2 =   &  Rc Rc Rr+   