
    ,hD                     F    d Z ddlmZ ddlmZ ddlmZmZ  G d de      Zy)	z<
lxml custom element classes for text-related XML elements.
    )absolute_import   )	XsdString)BaseOxmlElementOptionalAttributec                   T    e Zd ZdZ ede      Z ede      Zed        Z	ed        Z
y)CT_Hyperlinkz;
    Custom element class for <a:hlinkClick> elements.
    zr:idactionc                     | j                   }|i S |j                  d      }t        |      dk(  ri S |d   j                  d      }t        |D cg c]  }|j                  d       c}      S c c}w )aq  
        A dictionary containing any key-value pairs present in the query
        portion of the `ppaction://` URL in the action attribute. For example
        `{'id':'0', 'return':'true'}` in
        'ppaction://customshow?id=0&return=true'. Returns an empty dictionary
        if the URL contains no query string or if no action attribute is
        present.
        ?r   &=)r
   splitlendict)selfurlhalveskey_value_pairspairs        R/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/pptx/oxml/action.pyaction_fieldszCT_Hyperlink.action_fields   sh     kk;I3v;!I )//#.ATZZ_ABBAs   A.c                 V    | j                   }|y|j                  d      d   }|dd }|S )z
        The host portion of the `ppaction://` URL contained in the action
        attribute. For example 'customshow' in
        'ppaction://customshow?id=0&return=true'. Returns |None| if no action
        attribute is present.
        Nr   r      )r
   r   )r   r   protocol_and_hosthosts       r   action_verbzCT_Hyperlink.action_verb+   s9     kk;IIcN1- %    N)__name__
__module____qualname____doc__r   r   rIdr
   propertyr   r    r   r   r	   r	      sI     FI
.Cx3FC C*  r   r	   N)	r"   
__future__r   simpletypesr   xmlchemyr   r   r	   r%   r   r   <module>r)      s!    ' " 8.? .r   