
    ɯei                        d dl Z d dlmZmZmZmZmZmZ d dlm	c m
Z	 dZdZeree j                  j                  e j                  j                  e            Ze j                  j%                  ed      Z e	j(                  ee      Zn e	j(                  ed      Zddd	 i i d
dfdedeeee   f   dee   dee   deegef   deeeef      dee   defdZy)    N)AnyCallableDictListOptionalUnionTstreamlit_cardzfrontend/build)pathzhttp://localhost:3000)urlc                       y )N r       Y/var/www/html/glpi_dashboard/venv/lib/python3.12/site-packages/streamlit_card/__init__.py<lambda>r      s    r   )cardtexttitler   imager   on_clickstyleskeyreturnc           	      <    t        | |||||d      }|r |        |S )aS  Creates a UI card like component.

    Args:
        title (str): The title of the card.
        text (str): The text of the card.
        image (str, optional): An optional background image. Defaults to None.
        url (str, optional): An optional url to open when the card is clicked. Defaults to None.
        on_click (Callable, optional): An optional function callback that
                                   will fire when clicked.
                                   Can only work if the url is None.
        key (str, optional): An optional key for the component. Defaults to None.
    F)r   r   r   r   r   r   default)_streamlit_card)r   r   r   r   r   r   r   clickeds           r   r   r      s2    * G 
Nr   )ostypingr   r   r   r   r   r   streamlit.components.v1
componentsv1_RELEASECOMPONENT_NAMEr
   dirnameabspath__file__root_dirjoin	build_dirdeclare_componentr   strboolr   r   r   r   <module>r-      s   	 = = , ,!wwrwwx89HX'78I2j22YO 3j223O  %102B'?  
T#Y
  C=  
#	 
 ucz"  T#s(^$  
#  
 r   