Ë
    †;3h×
  ã                  óz   — d dl mZ d dlmZ d dlmZmZ d dlmZ d dl	m
Z
 d dlmZ erd dlmZ  G d„ d	ee¬
«      Zy)é    )Úannotations)ÚTYPE_CHECKING)ÚBlockContextÚBlocks)ÚComponentMeta)ÚColumn)ÚRow)ÚBlockc                  ó@   — e Zd Zg Zddddddœ	 	 	 	 	 	 	 	 	 dd„Zdd„Zy)	ÚFormr   TN)ÚscaleÚ	min_widthÚrenderÚkeyÚpreserved_by_keyc               óR   — || _         || _        t        j                  | |||¬«       y)a—  
        Parameters:
            scale: relative width compared to adjacent Columns. For example, if Column A has scale=2, and Column B has scale=1, A will be twice as wide as B.
            min_width: minimum pixel width of Column, will wrap if not sufficient screen space to satisfy this value. If a certain scale value results in a column narrower than min_width, the min_width parameter will be respected first.
            render: If False, this layout will not be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.
            key: in a gr.render, Components with the same key across re-renders are treated as the same component, not a new component. Properties set in 'preserved_by_key' are not reset across a re-render.
            preserved_by_key: A list of parameters from this component's constructor. Inside a gr.render() function, if a component is re-rendered with the same key, these (and only these) parameters will be preserved in the UI (if they have been changed by the user or an event listener) instead of re-rendered based on the values provided during constructor.
        )r   r   r   N)r   r   r   Ú__init__)Úselfr   r   r   r   r   s         úS/var/www/html/audio-gradio/venv/lib/python3.12/site-packages/gradio/layouts/form.pyr   zForm.__init__   s,   € ð" ˆŒ
Ø"ˆŒÜ×ÑØØØØ-ö		
ó    c                ó°  — t        | j                  t        «      rKt        |dd «      }| xj                  |€dn|z  c_        | xj
                  t        |dd«      xs dz  c_        nÛt        | j                  t        «      rkt        | j                  j                  t        «      rG| j                  j                  j                  r't        |dd «      }| xj                  |€dn|z  c_        nVt        | j                  t        «      r<| j                  j                  r&t        |dd «      }| xj                  |€dn|z  c_        t        j                  | |«       y )Nr   é   r   r   )Ú
isinstanceÚparentr	   Úgetattrr   r   r   Úequal_heightr   Úfill_heightr   Ú	add_child)r   Úchildr   s      r   r   zForm.add_child+   sñ   € Üd—k‘k¤3Ô'Ü˜E 7¨DÓ1ˆEØJŠJ˜u˜}™!°%Ñ7JØNŠNœg e¨[¸!Ó<ÒAÀÑAŽNät—{‘{¤FÔ+Ü˜4Ÿ;™;×-Ñ-¬sÔ3Ø—‘×"Ñ"×/Ò/ä˜E 7¨DÓ1ˆEØJŠJ˜u˜}™!°%Ñ7ŽJÜ˜Ÿ™¤VÔ,°·±×1HÒ1HÜ˜E 7¨DÓ1ˆEØJŠJ˜u˜}™!°%Ñ7JÜ×Ñ˜t UÕ+r   )
r   Úintr   r    r   Úboolr   z(int | str | tuple[int | str, ...] | Noner   zlist[str] | str | None)r   r
   )Ú__name__Ú
__module__Ú__qualname__ÚEVENTSr   r   © r   r   r   r      sT   „ Ø€Fð
 ØØØ8<Ø37ñ
ð ð
ð ð	
ð
 ð
ð 6ð
ð 1ó
ô4,r   r   )Ú	metaclassN)Ú
__future__r   Útypingr   Úgradio.blocksr   r   Úgradio.component_metar   Úgradio.layouts.columnr   Úgradio.layouts.rowr	   r
   r   r&   r   r   ú<module>r.      s+   ðÝ "å  ç .Ý /Ý (Ý "áÝ#ô,,ˆ< =ö ,,r   