
    hiL                    N    d Z ddlmZ ddlmZ ddlmZmZ  G d de          ZdS )z:lxml custom element classes for text-related XML elements.    )annotations)	XsdString)BaseOxmlElementOptionalAttributec                      e Zd ZU dZ ede          Zded<    ede          Zded<   e	dd	            Z
e	dd
            ZdS )CT_Hyperlinkz1Custom element class for <a:hlinkClick> elements.zr:idstrrIdaction
str | Nonereturndict[str, str]c                    | j         }|i S |                    d          }t          |          dk    ri S |d                             d          }t          d |D                       S )a	  Query portion of the `ppaction://` URL as dict.

        For example `{'id':'0', 'return':'true'}` in 'ppaction://customshow?id=0&return=true'.

        Returns an empty dict if the URL contains no query string or if no action attribute is
        present.
        N?   &c                8    g | ]}|                     d           S )=)split).0pairs     h/var/www/development/aibuddy-work/election-extract/venv/lib/python3.11/site-packages/pptx/oxml/action.py
<listcomp>z.CT_Hyperlink.action_fields.<locals>.<listcomp>$   s"    AAATZZ__AAA    )r   r   lendict)selfurlhalveskey_value_pairss       r   action_fieldszCT_Hyperlink.action_fields   sl     k;I3v;;!I )//#..AAAAABBBr   c                f    | j         }|dS |                    d          d         }|dd         }|S )zThe 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&   s=     k;4IIcNN1- %r   N)r   r   )r   r   )__name__
__module____qualname____doc__r   r   r
   __annotations__r   propertyr!   r&    r   r   r   r   	   s         ;;  33C3333**) F     C C C XC(    X  r   r   N)	r*   
__future__r   pptx.oxml.simpletypesr   pptx.oxml.xmlchemyr   r   r   r-   r   r   <module>r1      s{    @ @ " " " " " " + + + + + + A A A A A A A A, , , , ,? , , , , ,r   