§
    Àic  ã                   ó.  — d Z ddlmZ ddlmZ ddlmZ ddlmZ  G d„ de¦  «        Z	 G d	„ d
e¦  «        Z
 G d„ d eee¦  «        ¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        ZdS )zlinebot.models.imagemap module.é    )ÚABCMeta)Úwith_metaclassé   )ÚBase)ÚSendMessagec                   ó(   ‡ — e Zd ZdZ	 	 dˆ fd„	Zˆ xZS )ÚImagemapSendMessagea  ImagemapSendMessage.

    https://developers.line.biz/en/reference/messaging-api/#imagemap-message

    Imagemaps are images with one or more links. You can assign one link for the entire image
    or multiple links which correspond to different regions of the image.
    Nc                 ó†  •—  t          t          | ¦  «        j        di |¤Ž d| _        || _        || _        |                      |t          ¦  «        | _        |                      |t          ¦  «        | _
        g }|r?|D ]<}|                      |t          t          dœ¦  «        }	|	r|                     |	¦  «         Œ=|| _        dS )a  __init__ method.

        :param str base_url: Base URL of image.
            HTTPS
        :param str alt_text: Alternative text
        :param base_size: Width and height of base image
        :type base_size: :py:class:`linebot.models.imagemap.BaseSize`
        :param video: Video in imagemap message
        :type video: :py:class:`linebot.models.imagemap.Video`
        :param actions: Action when tapped
        :type actions: list[T <= :py:class:`linebot.models.imagemap.ImagemapAction`]
        :param kwargs:
        Úimagemap)ÚuriÚmessageN© )Úsuperr	   Ú__init__ÚtypeÚbase_urlÚalt_textÚget_or_new_from_json_dictÚBaseSizeÚ	base_sizeÚVideoÚvideoÚ$get_or_new_from_json_dict_with_typesÚURIImagemapActionÚMessageImagemapActionÚappendÚactions)Úselfr   r   r   r   r   ÚkwargsÚnew_actionsÚactionÚ
action_objÚ	__class__s             €ú\/home/mmwave/public_html/mmwave/venv/lib/python3.11/site-packages/linebot/models/imagemap.pyr   zImagemapSendMessage.__init__#   sè   ø€ ð 	2�Õ! 4Ñ(Ô(Ô1Ð;Ð;°FÐ;Ð;Ð;àˆŒ	Ø ˆŒØ ˆŒØ×7Ò7Ø•xñ
ô 
ˆŒð ×3Ò3Ø•5ñ
ô 
ˆŒ
ð ˆØð 		3Ø!ð 3ð 3�Ø!×FÒFØÝ0Ý#8ðð ñô �
ð ð 3Ø×&Ò& zÑ2Ô2Ð2øØ"ˆŒˆˆó    )NNNNN©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__©r#   s   @r$   r	   r	      sQ   ø€ € € € € ðð ð @DØ%)ð&#ð &#ð &#ð &#ð &#ð &#ð &#ð &#ð &#ð &#r%   r	   c                   ó$   ‡ — e Zd ZdZdˆ fd„	Zˆ xZS )r   z\BaseSize.

    https://developers.line.biz/en/reference/messaging-api/#imagemap-message
    Nc                 ód   •—  t          t          | ¦  «        j        di |¤Ž || _        || _        dS )uç   __init__ method.

        :param int width: Width of base image (set to 1040pxï¼‰
        :param int height: Height of base imageï¼ˆset to the height
            that corresponds to a width of 1040px
        :param kwargs:
        Nr   )r   r   r   ÚwidthÚheight)r   r/   r0   r   r#   s       €r$   r   zBaseSize.__init__R   s:   ø€ ð 	'��h˜ÑÔÔ&Ð0Ð0¨Ð0Ð0Ð0àˆŒ
ØˆŒˆˆr%   ©NNr&   r,   s   @r$   r   r   L   sG   ø€ € € € € ðð ð
ð ð ð ð ð ð ð ð ð r%   r   c                   ó"   ‡ — e Zd ZdZˆ fd„Zˆ xZS )ÚImagemapActionzbImagemapAction.

    https://developers.line.biz/en/reference/messaging-api/#imagemap-message
    c                 óV   •—  t          t          | ¦  «        j        di |¤Ž d| _        dS )z1__init__ method.

        :param kwargs:
        Nr   )r   r3   r   r   )r   r   r#   s     €r$   r   zImagemapAction.__init__f   s3   ø€ ð
 	-��n˜dÑ#Ô#Ô,Ð6Ð6¨vÐ6Ð6Ð6àˆŒ	ˆ	ˆ	r%   r&   r,   s   @r$   r3   r3   `   sB   ø€ € € € € ðð ð
ð ð ð ð ð ð ð ð r%   r3   c                   ó$   ‡ — e Zd ZdZdˆ fd„	Zˆ xZS )r   zeURIImagemapAction.

    https://developers.line.biz/en/reference/messaging-api/#imagemap-message
    Nc                 ó¤   •—  t          t          | ¦  «        j        di |¤Ž d| _        || _        |                      |t          ¦  «        | _        dS )zÊ__init__ method.

        :param str link_uri: Webpage URL
        :param area: Defined tappable area
        :type area: :py:class:`linebot.models.imagemap.ImagemapArea`
        :param kwargs:
        r   Nr   )r   r   r   r   Úlink_urir   ÚImagemapAreaÚarea)r   r7   r9   r   r#   s       €r$   r   zURIImagemapAction.__init__v   sR   ø€ ð 	0�Õ Ñ&Ô&Ô/Ð9Ð9°&Ð9Ð9Ð9àˆŒ	Ø ˆŒØ×2Ò2°4½ÑFÔFˆŒ	ˆ	ˆ	r%   r1   r&   r,   s   @r$   r   r   p   óQ   ø€ € € € € ðð ð
Gð Gð Gð Gð Gð Gð Gð Gð Gð Gr%   r   c                   ó$   ‡ — e Zd ZdZdˆ fd„	Zˆ xZS )r   ziMessageImagemapAction.

    https://developers.line.biz/en/reference/messaging-api/#imagemap-message
    Nc                 ó¤   •—  t          t          | ¦  «        j        di |¤Ž d| _        || _        |                      |t          ¦  «        | _        dS )zÊ__init__ method.

        :param str text: Message to send
        :param area: Defined tappable area
        :type area: :py:class:`linebot.models.imagemap.ImagemapArea`
        :param kwargs:
        r   Nr   )r   r   r   r   Útextr   r8   r9   )r   r=   r9   r   r#   s       €r$   r   zMessageImagemapAction.__init__‹   sR   ø€ ð 	4�Õ# TÑ*Ô*Ô3Ð=Ð=°fÐ=Ð=Ð=àˆŒ	ØˆŒ	Ø×2Ò2°4½ÑFÔFˆŒ	ˆ	ˆ	r%   r1   r&   r,   s   @r$   r   r   …   r:   r%   r   c                   ó$   ‡ — e Zd ZdZdˆ fd„	Zˆ xZS )r8   zÝImagemapArea.

    https://developers.line.biz/en/reference/messaging-api/#imagemap-area-object

    Defines the size of the full imagemap with the width as 1040px.
    The top left is used as the origin of the area.
    Nc                 ó€   •—  t          t          | ¦  «        j        di |¤Ž || _        || _        || _        || _        dS )a  __init__ method.

        :param int x: Horizontal position of the tappable area
        :param int y: Vertical position of the tappable area
        :param int width: Width of the tappable area
        :param int height: Height of the tappable area
        :param kwargs:
        Nr   )r   r8   r   ÚxÚyr/   r0   )r   r@   rA   r/   r0   r   r#   s         €r$   r   zImagemapArea.__init__£   sH   ø€ ð 	+��l˜DÑ!Ô!Ô*Ð4Ð4¨VÐ4Ð4Ð4àˆŒØˆŒØˆŒ
ØˆŒˆˆr%   ©NNNNr&   r,   s   @r$   r8   r8   š   sG   ø€ € € € € ðð ðð ð ð ð ð ð ð ð ð r%   r8   c                   ó(   ‡ — e Zd ZdZ	 	 dˆ fd„	Zˆ xZS )r   z–Video.

    https://developers.line.biz/en/reference/messaging-api/#imagemap-message

    Defines the properties of the video object in imagemap.
    Nc                 óä   •—  t          t          | ¦  «        j        di |¤Ž || _        || _        |                      |t          ¦  «        | _        |                      |t          ¦  «        | _	        dS )a¤  __init__ method.

        :param str original_content_url: URL of the video file
        :param str preview_image_url: URL of the preview image
        :param area: Defined video area
        :type area: :py:class:`linebot.models.imagemap.ImagemapArea`
        :param external_link: Defined video external link
        :type external_link: :py:class:`linebot.models.imagemap.ExternalLink`
        :param kwargs:
        Nr   )
r   r   r   Úoriginal_content_urlÚpreview_image_urlr   r8   r9   ÚExternalLinkÚexternal_link)r   rE   rF   r9   rH   r   r#   s         €r$   r   zVideo.__init__¼   sm   ø€ ð 	$��e�TÑÔÔ#Ð-Ð- fÐ-Ð-Ð-à$8ˆÔ!Ø!2ˆÔØ×2Ò2°4½ÑFÔFˆŒ	Ø!×;Ò;¸MÍ<ÑXÔXˆÔÐÐr%   rB   r&   r,   s   @r$   r   r   ´   s[   ø€ € € € € ðð ð EIØ*.ðYð Yð Yð Yð Yð Yð Yð Yð Yð Yr%   r   c                   ó$   ‡ — e Zd ZdZdˆ fd„	Zˆ xZS )rG   z–ExternalLink.

    https://developers.line.biz/en/reference/messaging-api/#imagemap-message

    Defines URL and label of external link in video.
    Nc                 ód   •—  t          t          | ¦  «        j        di |¤Ž || _        || _        dS )zz__init__ method.

        :param str link_uri: Webpage URL
        :param str label: Label
        :param kwargs:
        Nr   )r   rG   r   r7   Úlabel)r   r7   rK   r   r#   s       €r$   r   zExternalLink.__init__Ø   s:   ø€ ð 	+��l˜DÑ!Ô!Ô*Ð4Ð4¨VÐ4Ð4Ð4à ˆŒØˆŒ
ˆ
ˆ
r%   r1   r&   r,   s   @r$   rG   rG   Ð   sG   ø€ € € € € ðð ð
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r%   rG   N)r*   Úabcr   Úfuture.utilsr   Úbaser   Úsend_messagesr   r	   r   r3   r   r   r8   r   rG   r   r%   r$   ú<module>rP      sÖ  ðð &Ð %ð Ð Ð Ð Ð Ð à 'Ð 'Ð 'Ð 'Ð 'Ð 'à Ð Ð Ð Ð Ð Ø &Ð &Ð &Ð &Ð &Ð &ð/#ð /#ð /#ð /#ð /#˜+ñ /#ô /#ð /#ðdð ð ð ð ˆtñ ô ð ð(ð ð ð ð �^�^ G¨TÑ2Ô2ñ ô ð ð Gð Gð Gð Gð G˜ñ Gô Gð Gð*Gð Gð Gð Gð G˜Nñ Gô Gð Gð*ð ð ð ð �4ñ ô ð ð4Yð Yð Yð Yð YˆDñ Yô Yð Yð8ð ð ð ð �4ñ ô ð ð ð r%   