§
    Ài”  ã                   ó*  — 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ee¦  «        ¦  «        Z	 G d	„ d
 eee¦  «        ¦  «        Z
 G d„ d eee¦  «        ¦  «        Z G d„ d eee¦  «        ¦  «        Z G d„ d eee¦  «        ¦  «        ZdS )z linebot.models.rich_menu module.é    )ÚABCMeta)Úwith_metaclassé   )Ú
get_action)ÚBasec                   ó(   ‡ — e Zd ZdZ	 	 dˆ fd„	Zˆ xZS )ÚRichMenuz`RichMenu.

    https://developers.line.me/en/docs/messaging-api/reference/#rich-menu-object
    Nc                 ó.  •—  t          t          | ¦  «        j        di |¤Ž |                      |t          ¦  «        | _        || _        || _        || _        g }|r3|D ]0}| 	                    |                      |t          ¦  «        ¦  «         Œ1|| _        dS )a2  __init__ method.

        :param size: size object which describe the rich menu displayed in the chat.
            Rich menu images must be one of the following sizes: 2500x1686, 2500x843.
        :type size: :py:class:`linebot.models.rich_menu.RichMenuSize`
        :param bool selected: true to display the rich menu by default. Otherwise, false.
        :param str name: Name of the rich menu.
            Maximum of 300 characters.
        :param str chatBarText: Text displayed in the chat bar.
                                Maximum of 14 characters.
        :param areas: Array of area objects which define coordinates and size of tappable areas.
                      Maximum of 20 area objects.
        :type areas: list[T <= :py:class:`linebot.models.rich_menu.RichMenuArea`]
        :param kwargs:
        N© )Úsuperr	   Ú__init__Úget_or_new_from_json_dictÚRichMenuSizeÚsizeÚselectedÚnameÚchat_bar_textÚappendÚRichMenuAreaÚareas)
Úselfr   r   r   r   r   ÚkwargsÚ	new_areasÚareaÚ	__class__s
            €ú]/home/mmwave/public_html/mmwave/venv/lib/python3.11/site-packages/linebot/models/rich_menu.pyr   zRichMenu.__init__    s®   ø€ ð" 	'��h˜ÑÔÔ&Ð0Ð0¨Ð0Ð0Ð0à×2Ò2°4½ÑFÔFˆŒ	Ø ˆŒØˆŒ	Ø*ˆÔàˆ	Øð 	Øð ð �Ø× Ò Ø×2Ò2°4½ÑFÔFñô ð ð ð ˆŒ
ˆ
ˆ
ó    )NNNNN©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__©r   s   @r   r	   r	      sQ   ø€ € € € € ðð ð
 KOØðð ð ð ð ð ð ð ð ð r   r	   c                   ó$   ‡ — e Zd ZdZdˆ fd„	Zˆ xZS )r   z_RichMenuSize.

    https://developers.line.me/en/docs/messaging-api/reference/#size-object
    Nc                 ód   •—  t          t          | ¦  «        j        di |¤Ž || _        || _        dS )zÁ__init__ method.

        :param int width: Width of the rich menu. Must be 2500.
        :param int height: Height of the rich menu. Possible values: 1686, 843.
        :param kwargs:
        Nr   )r   r   r   ÚwidthÚheight)r   r'   r(   r   r   s       €r   r   zRichMenuSize.__init__G   s:   ø€ ð 	+��l˜DÑ!Ô!Ô*Ð4Ð4¨VÐ4Ð4Ð4àˆŒ
ØˆŒˆˆr   ©NNr   r$   s   @r   r   r   A   sG   ø€ € € € € ðð ð

ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r   r   c                   ó$   ‡ — e Zd ZdZdˆ fd„	Zˆ xZS )r   z_RichMenuArea.

    https://developers.line.me/en/docs/messaging-api/reference/#area-object
    Nc                 ó°   •—  t          t          | ¦  «        j        di |¤Ž |                      |t          ¦  «        | _        t          |¦  «        | _        dS )av  __init__ method.

        :param bounds: Object describing the boundaries of the area in pixels. See bounds object.
        :type bounds: :py:class:`linebot.models.rich_menu.RichMenuBound`
        :param action: Action performed when the area is tapped. See action objects.
        :type action: T <= :py:class:`linebot.models.actions.Action`
        :param kwargs:
        Nr   )r   r   r   r   ÚRichMenuBoundsÚboundsr   Úaction)r   r-   r.   r   r   s       €r   r   zRichMenuArea.__init__Z   sR   ø€ ð 	+��l˜DÑ!Ô!Ô*Ð4Ð4¨VÐ4Ð4Ð4à×4Ò4°V½^ÑLÔLˆŒÝ  Ñ(Ô(ˆŒˆˆr   r)   r   r$   s   @r   r   r   T   sG   ø€ € € € € ðð ð
)ð )ð )ð )ð )ð )ð )ð )ð )ð )r   r   c                   ó$   ‡ — e Zd ZdZdˆ fd„	Zˆ xZS )r,   zcRichMenuBounds.

    https://developers.line.me/en/docs/messaging-api/reference/#bounds-object
    Nc                 ó€   •—  t          t          | ¦  «        j        di |¤Ž || _        || _        || _        || _        dS )a9  __init__ method.

        :param int x: Horizontal position relative to the top-left corner of the area.
        :param int y: Vertical position relative to the top-left corner of the area.
        :param int width: Width of the area.
        :param int height: Height of the area.
        :param kwargs:
        Nr   )r   r,   r   ÚxÚyr'   r(   )r   r1   r2   r'   r(   r   r   s         €r   r   zRichMenuBounds.__init__o   sH   ø€ ð 	-��n˜dÑ#Ô#Ô,Ð6Ð6¨vÐ6Ð6Ð6àˆŒØˆŒØˆŒ
ØˆŒˆˆr   )NNNNr   r$   s   @r   r,   r,   i   sG   ø€ € € € € ðð ð
ð ð ð ð ð ð ð ð ð r   r,   c                   ó$   ‡ — e Zd ZdZdˆ fd„	Zˆ xZS )ÚRichMenuAliaszgRichMenuAlias.

    https://developers.line.biz/en/reference/messaging-api/#create-rich-menu-alias
    Nc                 ód   •—  t          t          | ¦  «        j        di |¤Ž || _        || _        dS )a  __init__ method.

        :param string rich_menu_alias_id: Rich menu alias ID,
         which can be any ID, unique for each channel.
        :param string rich_menu_id: The rich menu ID to be associated with the rich menu alias.
        :param kwargs:
        Nr   )r   r4   r   Úrich_menu_alias_idÚrich_menu_id)r   r6   r7   r   r   s       €r   r   zRichMenuAlias.__init__†   s>   ø€ ð 	,��m˜TÑ"Ô"Ô+Ð5Ð5¨fÐ5Ð5Ð5à"4ˆÔØ(ˆÔÐÐr   r)   r   r$   s   @r   r4   r4   €   sG   ø€ € € € € ðð ð
)ð )ð )ð )ð )ð )ð )ð )ð )ð )r   r4   N)r"   Úabcr   Úfuture.utilsr   Úactionsr   Úbaser   r	   r   r   r,   r4   r   r   r   ú<module>r<      sp  ðð 'Ð &ð Ð Ð Ð Ð Ð à 'Ð 'Ð 'Ð 'Ð 'Ð 'à Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð ð$ð $ð $ð $ð $ˆ~ˆ~˜g tÑ,Ô,ñ $ô $ð $ðNð ð ð ð �>�> '¨4Ñ0Ô0ñ ô ð ð&)ð )ð )ð )ð )�>�> '¨4Ñ0Ô0ñ )ô )ð )ð*ð ð ð ð �^�^ G¨TÑ2Ô2ñ ô ð ð.)ð )ð )ð )ð )�N�N 7¨DÑ1Ô1ñ )ô )ð )ð )ð )r   