if("undefined"!=typeof Quill){let i=Quill.import("ui/icons"),e=(i.bold='<i class="ti ti-bold fs-lg"></i>',i.italic='<i class="ti ti-italic fs-lg"></i>',i.underline='<i class="ti ti-underline fs-lg"></i>',i.strike='<i class="ti ti-strikethrough fs-lg"></i>',i.list='<i class="ti ti-list fs-lg"></i>',i.bullet='<i class="ti ti-list-ul fs-lg"></i>',i.link='<i class="ti ti-link fs-lg"></i>',i.image='<i class="ti ti-photo fs-lg"></i>',i["code-block"]='<i class="ti ti-code fs-lg"></i>',i.background='<i class="ti ti-background fs-lg"></i>',i.blockquote='<i class="ti ti-blockquote fs-lg"></i>',document.getElementById("snow-editor")),t=(e&&new Quill(e,{theme:"snow",modules:{toolbar:[["bold","italic","underline","strike","blockquote","code-block",{list:"bullet"},"link","image"]]}}),document.getElementById("bubble-editor"));t&&new Quill("#bubble-editor",{theme:"bubble"})}class FileUpload{constructor(){}init(){var i;"undefined"==typeof Dropzone?console.warn("Dropzone is not loaded."):(Dropzone.autoDiscover=!1,(i=document.querySelectorAll('[data-plugin="dropzone"]'))&&i.forEach(i=>{var e=i.getAttribute("action")||"/",t=i.dataset.previewsContainer,l=i.dataset.uploadPreviewTemplate,e={url:e,acceptedFiles:"image/*"};t&&(e.previewsContainer=t),l&&(t=document.querySelector(l))&&(e.previewTemplate=t.innerHTML);try{new Dropzone(i,e)}catch(i){console.error("Dropzone initialization failed:",i)}}))}}document.addEventListener("DOMContentLoaded",()=>{(new FileUpload).init()});