import{v as d,aA as p,b as e,a9 as f,aB as M,a8 as T,bc as _,r as k,u as K}from"./app-QjDgb7aF.js";import{b as X,a as b,f as v,w as g,j as S,p as V,k as s,i as l,J as c,D as r,u as m}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const x={class:"_formRoot"},I=X({__name:"custom-katex-macro",setup(y){const a=b(localStorage.getItem("customKaTeXMacro")??""),n=v(d.makeGetterSetter("enableCustomKaTeXMacro"));async function i(){localStorage.setItem("customKaTeXMacro",a.value),localStorage.setItem("customKaTeXMacroParsed",_(a.value));const{canceled:u}=await k({type:"info",text:e.ts.reloadToApplySetting});u||K()}return g(a,async()=>{await i()}),p({title:e.ts.customKaTeXMacro,icon:"ph-radical ph-bold ph-lg"}),(u,o)=>(S(),V("div",x,[s(f,{class:"_formBlock"},{default:l(()=>[c(r(m(e).ts.customKaTeXMacroDescription),1)]),_:1}),s(M,{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=t=>a.value=t),"manual-save":"",tall:"",class:"_monospace _formBlock",style:{"tab-size":"2"}},{label:l(()=>[c(r(m(e).ts.customKaTeXMacro),1)]),_:1},8,["modelValue"]),s(T,{modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=t=>n.value=t),class:"_formBlock"},{default:l(()=>[c(r(m(e).ts.enableCustomKaTeXMacro),1)]),_:1},8,["modelValue"])]))}});export{I as default};
//# sourceMappingURL=custom-katex-macro-DpiVS_aE.js.map
