Ë
    ÑÕ¯i=  ã                   óf   — d dl mZ ddlmZ ddlZ G d„ deej                  ej
                  «      Zy)é   )ÚShopifyResourceé    )ÚmixinsNc                   óB   ‡ — e Zd Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zˆ fd„Z	ˆ xZ
S )ÚProductc                 óÂ   — | j                   D �cg c]  }t        |j                  «      ‘Œ }}d}t        |«      }t	        |«      }||k7  r||z  ›d||z  ›�S ||z  S c c}w )Nz%0.2fz - )ÚvariantsÚfloatÚpriceÚminÚmax)ÚselfÚvariantÚpricesÚfÚ	min_priceÚ	max_prices         úL/var/www/html/venv/lib/python3.12/site-packages/shopify/resources/product.pyÚprice_rangezProduct.price_range   se   € Ø6:·m²mÓD±m¨7”%˜Ÿ™Õ&°mˆÐDØˆÜ˜“Kˆ	Ü˜“Kˆ	Ø˜	Ò!Ø ! I£¨q°9ª}Ð=Ð=à�y‘=Ð ùò Es   �Ac                 óV   — t         j                  j                  | j                  ¬«      S ©N)Ú
product_id)ÚshopifyÚCustomCollectionÚfindÚid©r   s    r   ÚcollectionszProduct.collections   s    € Ü×'Ñ'×,Ñ,¸¿¹Ð,Ó@Ð@ó    c                 óV   — t         j                  j                  | j                  ¬«      S r   )r   ÚSmartCollectionr   r   r   s    r   Úsmart_collectionszProduct.smart_collections   s    € Ü×&Ñ&×+Ñ+°t·w±wÐ+Ó?Ð?r   c                 ó$   — |j                  | «      S ©N)Úadd_product©r   Ú
collections     r   Úadd_to_collectionzProduct.add_to_collection   s   € Ø×%Ñ% dÓ+Ð+r   c                 ó$   — |j                  | «      S r$   )Úremove_productr&   s     r   Úremove_from_collectionzProduct.remove_from_collection   s   € Ø×(Ñ(¨Ó.Ð.r   c                 óT   — | j                   |j                  d<   |j                  «       S )Nr   )r   Ú
attributesÚsave)r   r   s     r   Úadd_variantzProduct.add_variant   s"   € Ø+/¯7©7ˆ×Ñ˜<Ñ(Ø�|‰|‹~Ðr   c                 ó.  •— d}t         j                  }|ro|j                  d«      |k\  r[|dk7  rVd| j                  v rH| j                  D ]9  }d|j                  v r|j                  d= d|j                  v sŒ-|j                  d= Œ; t
        t         | �  «       S )NÚ201910Ú-Úunstabler	   Úinventory_quantityÚold_inventory_quantity)r   ÚversionÚstripr-   r	   Úsuperr.   )r   Ústart_api_versionÚapi_versionr   Ú	__class__s       €r   r.   zProduct.save!   s˜   ø€ Ø$ÐÜ%×-Ñ-ˆÙ˜K×-Ñ-¨cÓ2Ð6GÒGÈ[Ð\fÒMfØ˜TŸ_™_Ñ,Ø#Ÿ}œ}�GØ+¨w×/AÑ/AÑAØ#×.Ñ.Ð/CÐDØ/°7×3EÑ3EÒEØ#×.Ñ.Ð/GÑHð	  -ô
 ”_ dÑ0Ó2Ð2r   )Ú__name__Ú
__module__Ú__qualname__r   r   r"   r(   r+   r/   r.   Ú__classcell__)r;   s   @r   r   r      s-   ø„ ò!òAò@ò,ò/ò÷
3ð 
3r   r   )Úbaser   r   r   Ú
MetafieldsÚEventsr   © r   r   Ú<module>rD      s(   ðÝ "Ý Û ô%3ˆo˜v×0Ñ0°&·-±-õ %3r   