a
    Døgf  ã                   @   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:preventZWAGTAIL_ALLOW_UNICODE_SLUGSTZurlify)zdata-controllerzdata-actionzdata-w-slug-allow-unicode-valuezdata-w-slug-compare-as-param)Úgetattrr   ÚupdateÚsuperÚ__init__)ÚselfÚattrsZdefault_attrs©Ú	__class__© úY/var/www/lab.imftr.de/x/nb_venv/lib/python3.9/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)Zdjango.confr   Zdjango.formsr   Z	TextInputr   r   r   r   r   Ú<module>   s   