import{c as i}from"./Modal-CdmBMJvd.js";import{f as o}from"./file-manager-BqTxa2JX.js";import{c as t}from"./select2-kdrdsacH.js";import{m as l}from"./module.esm-A8h-QRCZ.js";import{$ as a}from"./jquery-BJllTr_o.js";import"./helper-DH3MvDof.js";import"./moment-BxhnadHa.js";import"./mapbox-Cpj98o6Y.js";o("file-uploader","image");a('input[name="is_free"]').on("change",function(){this.checked?a("#point_to_pass").addClass("hidden"):a("#point_to_pass").removeClass("hidden")});l.data("langData",()=>({locals:[{locale:"en",level:"English",tags:[],title:"",description:""}],languages:[],addNewLang(){const e=a("#lang").val();if(this.locals.find(s=>s.locale==e)){toastError("Language already exists");return}this.locals.push({locale:e,level:this.languages.find(s=>s.code==e).name,tags:[],title:"",description:""}),i(),this.$nextTick(()=>{t("tags-select-2")})},removeLang(e){this.locals.splice(e,1)}}));document.addEventListener("alpine:initialized",()=>{t("tags-select-2")});l.start();
