
    ch[0                        S SK Jr  S SKJrJr  S SKJr  S SKJr	  S SK
Jr  S SKJr  S SKJrJr  \(       a  S SKJr  S S	KJr  S S
KJr   " S S5      rg)    )annotations)TYPE_CHECKINGcast)validate_width)Alert)WidthConfig)gather_metrics)
clean_textvalidate_icon_or_emoji)DeltaGenerator)WidthWithoutContent)SupportsStrc                     \ rS rSr\" S5      SSS.       SS jj5       r\" S5      SSS.       SS jj5       r\" S	5      SSS.       SS
 jj5       r\" S5      SSS.       SS jj5       r\	SS j5       r
Srg)
AlertMixin   errorNstretch)iconwidthc               ^   [        5       n[        U5      Ul        [        U5      Ul        [         R
                  Ul        [        U5        [        5       n[        U[        5      (       a  X5l        OSUl        UR                  R                  U5        U R                  R!                  SU5      $ )u  Display error message.

Parameters
----------
body : str
    The text to display as GitHub-flavored Markdown. Syntax
    information can be found at: https://github.github.com/gfm.

    See the ``body`` parameter of |st.markdown|_ for additional,
    supported Markdown directives.

    .. |st.markdown| replace:: ``st.markdown``
    .. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown
icon : str, None
    An optional emoji or icon to display next to the alert. If ``icon``
    is ``None`` (default), no icon is displayed. If ``icon`` is a
    string, the following options are valid:

    - A single-character emoji. For example, you can set ``icon="🚨"``
      or ``icon="🔥"``. Emoji short codes are not supported.

    - An icon from the Material Symbols library (rounded style) in the
      format ``":material/icon_name:"`` where "icon_name" is the name
      of the icon in snake case.

      For example, ``icon=":material/thumb_up:"`` will display the
      Thumb Up icon. Find additional icons in the `Material Symbols               <https://fonts.google.com/icons?icon.set=Material+Symbols&icon.style=Rounded>`_
      font library.
width : "stretch" or int
    The width of the alert element. This can be one of the following:

    - ``"stretch"`` (default): The width of the element matches the
      width of the parent container.
    - An integer specifying the width in pixels: The element has a
      fixed width. If the specified width is greater than the width of
      the parent container, the width of the element matches the width
      of the parent container.

Example
-------
>>> import streamlit as st
>>>
>>> st.error('This is an error', icon="🚨")

Talert)
AlertProtor   r   r
   bodyERRORformatr   r   
isinstanceintpixel_widthuse_stretchwidth_configCopyFromdg_enqueueselfr   r   r   alert_protor    s         kC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\streamlit/elements/alert.pyr   AlertMixin.error    s    l !l1$7%d+'--u"}eS!!',$'+L$  )),7ww55    warningc               ^   [        5       n[        U5      Ul        [        U5      Ul        [         R
                  Ul        [        U5        [        5       n[        U[        5      (       a  X5l        OSUl        UR                  R                  U5        U R                  R!                  SU5      $ )u  Display warning message.

Parameters
----------
body : str
    The text to display as GitHub-flavored Markdown. Syntax
    information can be found at: https://github.github.com/gfm.

    See the ``body`` parameter of |st.markdown|_ for additional,
    supported Markdown directives.

    .. |st.markdown| replace:: ``st.markdown``
    .. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown
icon : str, None
    An optional emoji or icon to display next to the alert. If ``icon``
    is ``None`` (default), no icon is displayed. If ``icon`` is a
    string, the following options are valid:

    - A single-character emoji. For example, you can set ``icon="🚨"``
      or ``icon="🔥"``. Emoji short codes are not supported.

    - An icon from the Material Symbols library (rounded style) in the
      format ``":material/icon_name:"`` where "icon_name" is the name
      of the icon in snake case.

      For example, ``icon=":material/thumb_up:"`` will display the
      Thumb Up icon. Find additional icons in the `Material Symbols               <https://fonts.google.com/icons?icon.set=Material+Symbols&icon.style=Rounded>`_
      font library.
width : "stretch" or int
    The width of the warning element. This can be one of the following:

    - ``"stretch"`` (default): The width of the element matches the
      width of the parent container.
    - An integer specifying the width in pixels: The element has a
      fixed width. If the specified width is greater than the width of
      the parent container, the width of the element matches the width
      of the parent container.

Example
-------
>>> import streamlit as st
>>>
>>> st.warning('This is a warning', icon="⚠️")

Tr   )r   r
   r   r   r   WARNINGr   r   r   r   r   r   r   r    r!   r"   r#   r$   s         r'   r*   AlertMixin.warningi       l !l%d+1$7'//u"}eS!!',$'+L$  )),7ww55r)   infoc               ^   [        5       n[        U5      Ul        [        U5      Ul        [         R
                  Ul        [        U5        [        5       n[        U[        5      (       a  X5l        OSUl        UR                  R                  U5        U R                  R!                  SU5      $ )u  Display an informational message.

Parameters
----------
body : str
    The text to display as GitHub-flavored Markdown. Syntax
    information can be found at: https://github.github.com/gfm.

    See the ``body`` parameter of |st.markdown|_ for additional,
    supported Markdown directives.

    .. |st.markdown| replace:: ``st.markdown``
    .. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown
icon : str, None
    An optional emoji or icon to display next to the alert. If ``icon``
    is ``None`` (default), no icon is displayed. If ``icon`` is a
    string, the following options are valid:

    - A single-character emoji. For example, you can set ``icon="🚨"``
      or ``icon="🔥"``. Emoji short codes are not supported.

    - An icon from the Material Symbols library (rounded style) in the
      format ``":material/icon_name:"`` where "icon_name" is the name
      of the icon in snake case.

      For example, ``icon=":material/thumb_up:"`` will display the
      Thumb Up icon. Find additional icons in the `Material Symbols               <https://fonts.google.com/icons?icon.set=Material+Symbols&icon.style=Rounded>`_
      font library.
width : "stretch" or int
    The width of the info element. This can be one of the following:

    - ``"stretch"`` (default): The width of the element matches the
      width of the parent container.
    - An integer specifying the width in pixels: The element has a
      fixed width. If the specified width is greater than the width of
      the parent container, the width of the element matches the width
      of the parent container.

Example
-------
>>> import streamlit as st
>>>
>>> st.info('This is a purely informational message', icon="ℹ️")

Tr   )r   r
   r   r   r   INFOr   r   r   r   r   r   r   r    r!   r"   r#   r$   s         r'   r/   AlertMixin.info   s    n !l%d+1$7'__u"}eS!!',$'+L$  )),7ww55r)   successc               ^   [        5       n[        U5      Ul        [        U5      Ul        [         R
                  Ul        [        U5        [        5       n[        U[        5      (       a  X5l        OSUl        UR                  R                  U5        U R                  R!                  SU5      $ )u  Display a success message.

Parameters
----------
body : str
    The text to display as GitHub-flavored Markdown. Syntax
    information can be found at: https://github.github.com/gfm.

    See the ``body`` parameter of |st.markdown|_ for additional,
    supported Markdown directives.

    .. |st.markdown| replace:: ``st.markdown``
    .. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown
icon : str, None
    An optional emoji or icon to display next to the alert. If ``icon``
    is ``None`` (default), no icon is displayed. If ``icon`` is a
    string, the following options are valid:

    - A single-character emoji. For example, you can set ``icon="🚨"``
      or ``icon="🔥"``. Emoji short codes are not supported.

    - An icon from the Material Symbols library (rounded style) in the
      format ``":material/icon_name:"`` where "icon_name" is the name
      of the icon in snake case.

      For example, ``icon=":material/thumb_up:"`` will display the
      Thumb Up icon. Find additional icons in the `Material Symbols               <https://fonts.google.com/icons?icon.set=Material+Symbols&icon.style=Rounded>`_
      font library.
width : "stretch" or int
    The width of the success element. This can be one of the following:

    - ``"stretch"`` (default): The width of the element matches the
      width of the parent container.
    - An integer specifying the width in pixels: The element has a
      fixed width. If the specified width is greater than the width of
      the parent container, the width of the element matches the width
      of the parent container.

Example
-------
>>> import streamlit as st
>>>
>>> st.success('This is a success message!', icon="✅")

Tr   )r   r
   r   r   r   SUCCESSr   r   r   r   r   r   r   r    r!   r"   r#   r$   s         r'   r3   AlertMixin.success   r.   r)   c                    [        SU 5      $ )zGet our DeltaGenerator.r   )r   )r%   s    r'   r"   AlertMixin.dgB  s     $d++r)    )r   r   r   z
str | Noner   r   returnr   )r:   r   )__name__
__module____qualname____firstlineno__r	   r   r*   r/   r3   propertyr"   __static_attributes__r9   r)   r'   r   r      sL   G
  %.F6F6 	F6
 #F6 
F6 F6P I
  %.E6E6 	E6
 #E6 
E6 E6N F
  %.F6F6 	F6
 #F6 
F6 F6P I
  %.E6E6 	E6
 #E6 
E6 E6N , ,r)   r   N)
__future__r   typingr   r   #streamlit.elements.lib.layout_utilsr   streamlit.proto.Alert_pb2r   r   streamlit.proto.WidthConfig_pb2r   streamlit.runtime.metrics_utilr	   streamlit.string_utilr
   r   streamlit.delta_generatorr   r   streamlit.type_utilr   r   r9   r)   r'   <module>rJ      s4    # & > 9 7 9 D8G/f, f,r)   