
    H j                     f    S SK r S SKJrJrJr  S SKJr  S SKJr  \(       a  S SK	J
r
   " S S5      rg)    N)TYPE_CHECKINGOptionalUnion)Artifact)Error)Pagec                       \ rS rSrSSS\\   SS4S jrS\4S jrS\	R                  4S	 jrS
\\\	R                  4   SS4S jrSS jrSrg)Video   pager   artifactreturnNc                     UR                   U l         UR                  U l        Xl        UR                  R                  U l        X l        g N)_loop_dispatcher_fiber_page_connection	is_remote
_is_remote	_artifact)selfr   r   s      h/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/playwright/_impl/_video.py__init__Video.__init__   s8    ZZ
!%!7!7
**44!    c                 "    SU R                    S3$ )Nz<Video page=>)r   r   s    r   __repr__Video.__repr__!   s    djj\++r   c                    #    U R                   (       a  [        S5      eU R                  (       d  [        S5      eU R                  R                  $ 7f)Nz[Path is not available when using browserType.connect(). Use save_as() to save a local copy.%Video recording has not been started.)r   r   r   absolute_pathr   s    r   path
Video.path$   sA     ??m  ~~?@@~~+++s   AAr%   c                 $  #    U R                   R                  R                  (       a&  U R                   R                  (       d  [	        S5      eU R
                  (       d  [	        S5      eU R
                  R                  U5      I S h  vN   g  N7f)Nz?Page is not yet closed. Close the page prior to calling save_asr#   )r   r   _is_sync
_is_closedr   r   save_as)r   r%   s     r   r*   Video.save_as-   sa     ::!!**4::3H3HQ  ~~?@@nn$$T***s   BBB	Bc                 x   #    U R                   (       a#  U R                   R                  5       I S h  vN   g g  N7fr   )r   deleter   s    r   r-   Video.delete6   s*     >>..''))) )s   /:8:)r   r   r   r   r   )r   N)__name__
__module____qualname____firstlineno__r   r   r   strr    pathlibPathr%   r   r*   r-   __static_attributes__ r   r   r
   r
      sc    "V "x/A "d ",# ,,GLL ,+%W\\(9": +t +*r   r
   )r4   typingr   r   r   playwright._impl._artifactr   playwright._impl._helperr   playwright._impl._pager   r
   r7   r   r   <module>r<      s&     1 1 / *+* *r   