
    hW              	       J   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 ddlmZmZmZ ddlmZmZmZmZ dd	lmZ dd
lmZ ddlmZ ddlmZ  ej:                  e      Z G d d ed      eeee	      Z G d d ed      eeee	      Z  G d d ed      eeee	      Z!y)    )forms)settings)gettext_lazy)EntangledModelForm)ALIGN_CHOICES   )BackgroundFormMixinResponsiveFormMixinSpacingFormMixin)AttributesFormFieldHTMLFormField	IconGroupTagTypeFormField)first_choice)FrontendUIItem   )content   )CODE_TYPE_CHOICESc            	          e Zd ZdZ G d d      Z G d d      Z ej                   ed      ddej                  j                  d	d
i            Z ej                   ed      e ee      d      Z e       Z e       Zy)CodeFormzU
    Content > "Code" Plugin
    https://getbootstrap.com/docs/5.0/content/code/
    c                   6    e Zd Zdej                  v rdfZydfZy)CodeForm.Mediadjangocms_static_acezadmin/vendor/ace/ace.jsz7https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.6/ace.jsN)__name__
__module____qualname__django_settingsINSTALLED_APPSjs     X/home/dcms/DCMS/lib/python3.12/site-packages/djangocms_frontend/contrib/content/forms.pyMediar      s+     &)G)GG &
 K
r"   r$   c                       e Zd ZeZdg diZy)CodeForm.Metaconfig)code_content	code_type
attributesNr   r   r   r   modelentangled_fieldsr!   r"   r#   Metar&   &        
r"   r.   Code Tclasszjs-ckeditor-use-selected-text)attrs)labelinitialrequiredwidgetz	Code type)r4   choicesr5   r6   N)r   r   r   __doc__r$   r.   r   	CharField_widgetsTextarear(   ChoiceFieldr   r   r)   r   r*   r   tag_typer!   r"   r#   r   r      s    

 

 
 #5??i}}%%W6U,V%W	L "!!n!./	I %&J!Hr"   r   r0   c                       e Zd ZdZ G d d      Z e ed      dd      Z e ed      d	
      Z e	j                   ed      ej                  ez   ej                  d   d   d	 e             Z e       Z e       Zy)BlockquoteFormzm
    Content > "Blockquote" Plugin
    https://getbootstrap.com/docs/5.0/content/typography/#blockquotes
    c                       e Zd ZeZdg diZy)BlockquoteForm.Metar'   )quote_contentquote_originquote_alignmentr*   Nr+   r!   r"   r#   r.   rC   L   s     
r"   r.   Quoter1   Tr4   r5   r6   SourceF)r4   r6   	Alignmentr   r4   r8   r5   r6   r7   N)r   r   r   r9   r.   r   r;   rD   rE   r   r>   r   EMPTY_CHOICEr   r   rF   r   r*   r   r?   r!   r"   r#   rA   rA   @   s    
	
 	
 "jM
 !kL (e''n%%5%%a(+{O %&J!Hr"   rA   
Blockquotec                       e Zd ZdZ G d d      Z e ed      dd      Z ej                   ed      e
j                  ez   e
j                  d	   d	   d
 e             Z e       Z e       Zy)
FigureFormzZ
    Content > "Figure" Plugin
    https://getbootstrap.com/docs/5.0/content/figures/
    c                       e Zd ZeZdg diZy)FigureForm.Metar'   )figure_captionfigure_alignmentr*   Nr+   r!   r"   r#   r.   rQ   w   r/   r"   r.   Captionr1   TrH   rJ   r   FrK   N)r   r   r   r9   r.   r   r;   rR   r   r>   r   rL   r   r   rS   r   r*   r   r?   r!   r"   r#   rO   rO   k   s    

 
 #	lN
 )u((n%%5%%a(+{ %&J!Hr"   rO   FigureN)"djangor   django.confr   r   django.utils.translationr   r;   entangled.formsr   djangocms_frontend.settingsr   r1   commonr	   r
   r   fieldsr   r   r   r   helpersr   modelsr   r   	constantsr   	get_formsmixin_factoryr   rA   rO   r!   r"   r#   <module>rb      s     3 6 . 5  P P U U # $  ("""7+*"&*"Z(",("V#"(#"r"   