import{c as s}from"./Modal-CdmBMJvd.js";import{a as i}from"./datepicker-rcPlPqz6.js";import{f as o}from"./file-manager-BqTxa2JX.js";import{c as t}from"./select2-kdrdsacH.js";import{a as r}from"./toast-BolBYJGe.js";import{m as l}from"./module.esm-A8h-QRCZ.js";import{$ as n}from"./jquery-BJllTr_o.js";import"./mapbox-Cpj98o6Y.js";import"./helper-DH3MvDof.js";import"./moment-BxhnadHa.js";i("date-picker",!0);o("file-uploader","image");l.data("langData",()=>({locals:[{locale:"en",level:"English",title:"",description:""}],languages:[],addNewLang(){const a=n("#lang").val();if(this.locals.find(e=>e.locale==a)){r("Language already exists");return}this.locals.push({locale:a,level:this.languages.find(e=>e.code==a).name,title:"",description:""}),s(),this.$nextTick(()=>{t("tags-select-2")})},removeLang(a){this.locals.splice(a,1)}}));document.addEventListener("alpine:initialized",()=>{t("tags-select-2")});l.start();
