Ë
    ¹ûàg²  ã                   óx   — d dl mZ d dlmZ dZ G d„ de«      Zdd„Zd„ Zd„ Z	d	„ Z
dd
„Zdd„Zdd„Zdd„Zdd„Zy)é    )Ú	constants)Údefault_storage)
Úadd_messageÚget_messagesÚ	get_levelÚ	set_levelÚdebugÚinfoÚsuccessÚwarningÚerrorÚMessageFailurec                   ó   — e Zd Zy)r   N)Ú__name__Ú
__module__Ú__qualname__© ó    úY/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/django/contrib/messages/api.pyr   r      s   „ Ør   r   c                 óÖ   — 	 | j                   }|j                  |||«      S # t        $ r> t        | d«      s"t	        d| j
                  j                  z  «      ‚|st        d«      ‚Y yw xY w)zK
    Attempt to add a message to the request using the 'messages' app.
    ÚMETAz?add_message() argument must be an HttpRequest object, not '%s'.z_You cannot add messages without installing django.contrib.messages.middleware.MessageMiddlewareN)Ú	_messagesÚaddÚAttributeErrorÚhasattrÚ	TypeErrorÚ	__class__r   r   )ÚrequestÚlevelÚmessageÚ
extra_tagsÚfail_silentlyÚmessagess         r   r   r      s…   € ð8Ø×$Ñ$ˆð �|‰|˜E 7¨JÓ7Ð7øô ò 
Ü�w Ô'ÜðØ!×+Ñ+×4Ñ4ñ5óð ñ Ü ðGóð ñ ð
ús   ‚! ¡AA(Á'A(c                 ó   — t        | dg «      S )ze
    Return the message storage on the request if it exists, otherwise return
    an empty list.
    r   )Úgetattr)r   s    r   r   r   +   s   € ô
 �7˜K¨Ó,Ð,r   c                 óF   — t        | dt        | «      «      }|j                  S )z©
    Return the minimum level of messages to be recorded.

    The default level is the ``MESSAGE_LEVEL`` setting. If this is not found,
    use the ``INFO`` level.
    r   )r%   r   r   )r   Ústorages     r   r   r   3   s!   € ô �g˜{¬O¸GÓ,DÓE€GØ�=‰=Ðr   c                 ó@   — t        | d«      sy|| j                  _        y)zÊ
    Set the minimum level of messages to be recorded, and return ``True`` if
    the level was recorded successfully.

    If set to ``None``, use the default level (see the get_level() function).
    r   FT)r   r   r   )r   r   s     r   r   r   >   s"   € ô �7˜KÔ(ØØ#€G×ÑÔØr   c                 ó@   — t        | t        j                  |||¬«       y)z'Add a message with the ``DEBUG`` level.©r!   r"   N)r   r   ÚDEBUG©r   r    r!   r"   s       r   r	   r	   K   ó   € äØÜ�‰ØØØ#ör   c                 ó@   — t        | t        j                  |||¬«       y)z&Add a message with the ``INFO`` level.r*   N)r   r   ÚINFOr,   s       r   r
   r
   V   s   € äØÜ�‰ØØØ#ör   c                 ó@   — t        | t        j                  |||¬«       y)z)Add a message with the ``SUCCESS`` level.r*   N)r   r   ÚSUCCESSr,   s       r   r   r   a   ó   € äØÜ×ÑØØØ#ör   c                 ó@   — t        | t        j                  |||¬«       y)z)Add a message with the ``WARNING`` level.r*   N)r   r   ÚWARNINGr,   s       r   r   r   l   r2   r   c                 ó@   — t        | t        j                  |||¬«       y)z'Add a message with the ``ERROR`` level.r*   N)r   r   ÚERRORr,   s       r   r   r   w   r-   r   N)Ú F)Údjango.contrib.messagesr   Údjango.contrib.messages.storager   Ú__all__Ú	Exceptionr   r   r   r   r   r	   r
   r   r   r   r   r   r   ú<module>r<      sK   ðÝ -Ý ;ð€ô	�Yô 	ó8ò*-òò
óóóóôr   