o
    ËÉhf  ã                   @   s.   d dl mZ d dlmZ G dd„ dejƒZdS )é    )Úsettings)Úwidgetsc                       s"   e Zd ZdZd‡ fdd„	Z‡  ZS )Ú	SlugInputzð
    Associates the input field with the Stimulus w-slug (SlugController).
    Slugifies content based on `WAGTAIL_ALLOW_UNICODE_SLUGS` and supports
    fields syncing their value to this field (see `TitleFieldPanel`) if
    also used.
    Nc                    s4   ddt tddƒddœ}|r| |¡ tƒ  |¡ d S )Nzw-slugzUblur->w-slug#slugify w-sync:check->w-slug#compare w-sync:apply->w-slug#urlify:preventÚWAGTAIL_ALLOW_UNICODE_SLUGSTÚurlify)zdata-controllerzdata-actionzdata-w-slug-allow-unicode-valuezdata-w-slug-compare-as-param)Úgetattrr   ÚupdateÚsuperÚ__init__)ÚselfÚattrsÚdefault_attrs©Ú	__class__© úZ/var/www/html/ndineBlogger/venv/lib/python3.10/site-packages/wagtail/admin/widgets/slug.pyr
      s   ÿú
zSlugInput.__init__)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   Ú__classcell__r   r   r   r   r      s    r   N)Údjango.confr   Údjango.formsr   Ú	TextInputr   r   r   r   r   Ú<module>   s    