
    h	              
       4   d dl mZ d dlmZ d dlmZ ddlmZ ddl	m
Z
 ddlmZmZ dd	lmZ dd
lmZ ddlmZmZ ddlmZ  ej*                  e      Zej.                   G d d ed      ee
             Zej.                   G d d ed      eeee
             Zy)    )plugin_pool)gettext_lazy)get_plugin_template   )settings)CMSUIPlugin)AttributesMixinBackgroundMixin   )carousel)LinkPluginMixin   )formsmodels)CAROUSEL_TEMPLATE_CHOICESc                   ~    e Zd ZdZ ed      Z ed      Zej                  Z	e
j                  ZdZdgZdddifgZd	 Zy)
CarouselPluginzc
    Components > "Carousel" Plugin
    https://getbootstrap.com/docs/5.0/components/carousel/
    CarouselFrontendTCarouselSlidePluginNfields)template)carousel_aspect_ratiocarousel_interval)carousel_controlscarousel_indicators)carousel_keyboardcarousel_wrap)carousel_ride)carousel_transitioncarousel_pausec                 &    t        |ddt              S )Nr   )r   r   selfcontextinstanceplaceholders       _/home/dcms/DCMS/lib/python3.12/site-packages/djangocms_frontend/contrib/carousel/cms_plugins.pyget_render_templatez"CarouselPlugin.get_render_template2   s    "8ZE^__    )__name__
__module____qualname____doc___namemoduler   r   modelr   CarouselFormformallow_childrenchild_classes	fieldsetsr)    r*   r(   r   r      s`    
 Z=Dz]FOOEDN*+M  
	
I&`r*   r   r   c                       e Zd ZdZ ed      Z ed      Zej                  Z	e
j                  ZdZdgZdddifgZd	Zd
 Zy)r   zi
    Components > "Carousel Slide" Plugin
    https://getbootstrap.com/docs/5.0/components/carousel/
    zCarousel slider   Tr   Nr   )carousel_imagecarousel_contentr   c                 B    t        |j                  xs |ddt              S )Nr   slide)r   parentr   r#   s       r(   r)   z'CarouselSlidePlugin.get_render_templateW   s$    "OO'x%	
 	
r*   )r+   r,   r-   r.   r/   r0   r1   r   CarouselSlider2   r   CarouselSlideFormr4   r5   parent_classesr7   link_fieldset_positionr)   r8   r*   r(   r   r   6   sk    
 Dz]F  E""DN&'N  	

I 
r*   r   r?   N)cms.plugin_poolr   django.utils.translationr   r/   djangocms_frontend.helpersr    r   cms_pluginsr   commonr	   r
   r   link.cms_pluginsr   r   r   	constantsr   get_renderermixin_factoryregister_pluginr   r   r8   r*   r(   <module>rN      s    ' 6 :  & 6  .  0%%%h/ !`]:. !` !`H &
/"&
 &
r*   