
    ,h                    f    d dl mZ d dlmZmZmZmZmZ erddlm	Z	  G d de      Z
 G d d      Zy	)
    )annotations)TYPE_CHECKINGAnyDict
NamedTupleOptional   )	BaseStylec                  "    e Zd ZU ded<   ded<   y)CursorOffsetinttopleftN)__name__
__module____qualname____annotations__     V/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/rich_toolkit/element.pyr   r   	   s    	H
Ir   r   c                  |    e Zd ZU i Zded<   ded<   dZded<   	 	 d	 	 	 dd	Zedd
       Zedd       Z	ddZ
ddZy)ElementzDict[Any, Any]metadatar
   styleTbool	focusableNc                T    ddl m} d| _        |xs i | _        |xs  |       | _        y )Nr	   )MinimalStyleF)stylesr   
_cancelledr   r   )selfr   r   r   s       r   __init__zElement.__init__   s'    
 	) B,ln
r   c                    t        dd      S )Nr   )r   r   )r   r!   s    r   cursor_offsetzElement.cursor_offset   s    **r   c                     y)NFr   r$   s    r   should_show_cursorzElement.should_show_cursor#   s    r   c                     y )Nr   )r!   keys     r   
handle_keyzElement.handle_key'   s    r   c                    d| _         y )NT)r    r$   s    r   	on_cancelzElement.on_cancel*   s	    r   )NN)r   zOptional[BaseStyle]r   zOptional[Dict[Any, Any]])returnr   )r-   r   )r)   strr-   None)r-   r/   )r   r   r   r   r   r   r"   propertyr%   r'   r*   r,   r   r   r   r   r      sm    !Hn!It &*-1	-"	- +	- + +  r   r   N)
__future__r   typingr   r   r   r   r   r   r
   r   r   r   r   r   <module>r3      s*    " A A!: 
 r   