
    si                         S r SSKJr  SSKJr  SSKJr  SSKJr  S\\   4S	 jr	SS
\S\
SS4S jjrS\S\S\SS4S jrg)zHandles all display/view logic.    )Sequence   )context)json   )ChannelNoticechannel_noticesc                    Sn[         R                  (       a@  [        R                  " U  Vs/ s H  o"R                  5       PM     sn5      n[	        U5        gU  H]  nXR
                  :w  a6  [	        5         SnUSUR
                   S3-  n[	        U5        UR
                  n[        U5        [	        5         M_     gs  snf )z
Accepts a list of channel notice responses and prints a display.

Args:
    channel_notices: A sequence of ChannelNotice objects.
NChannelz "z" has the following notices:)r   r   dumpsto_dictprintchannel_nameprint_notice_message)r	   current_channelchannel_noticejson_outputchannel_headers        3lib/python3.13/site-packages/conda/notices/views.pyprint_noticesr      s     O||jj<KLO.##%OL
 	k .N"="==!*4455QR n%"0"="= 0G . Ms   B<noticeindentreturnNc                     U R                   (       a  U R                   S OSnSU R                   SU 3n[        U U SU U R                   35        g)zPrints a single channel notice.z%c [z] -- 
N)
created_atlevelr   message)r   r   	timestampr   s       r   r   r   )   sR    -3->->6$$R(BI~U9+.E	VHUG2fXfnn%5
67    total_noticesdisplayed_noticesviewed_noticesc                 b    X-
  U-
  nUS:  a"  US:  a  SU S3nOSU S3n[        U S35        gg)	zNConditionally shows a message informing users how many more message there are.r   r   z
There are z' more messages. To retrieve them run:

z	There is z$ more message. To retrieve it run:

zconda notices
N)r   )r#   r$   r%   notices_not_shownmsgs        r   print_more_notices_messager)   2   sY     &69JJ1q 011Z[C/00VWC_%& r"   )z  )__doc__collections.abcr   base.contextr   common.serializer   typesr   r   strr   intr)    r"   r   <module>r2      sf    & $ " #  8M#: :8 8 8t 8''+.'@C'	'r"   