import{a as f,a4 as M,i as e,an as T,a6 as _,a2 as K,bi as X,w as k,u as b}from"./app-JmgyQoR0.js";import{b as g,a as v,c as s,w as S,h as V,t as w,l,j as c,K as r,E as n,z as m}from"./vue-y3KLWBaS.js";const x={class:"_formRoot"},B=g({__name:"custom-katex-macro",setup(y){var i;const a=v((i=localStorage.getItem("customKaTeXMacro"))!=null?i:""),u=s(f.makeGetterSetter("enableCustomKaTeXMacro"));async function p(){localStorage.setItem("customKaTeXMacro",a.value),localStorage.setItem("customKaTeXMacroParsed",X(a.value));const{canceled:d}=await k({type:"info",text:e.ts.reloadToApplySetting});d||b()}return S(a,async()=>{await p()}),s(()=>[]),s(()=>[]),M({title:e.ts.customKaTeXMacro,icon:"ph-radical ph-bold ph-lg"}),(d,t)=>(V(),w("div",x,[l(T,{class:"_formBlock"},{default:c(()=>[r(n(m(e).ts.customKaTeXMacroDescription),1)]),_:1}),l(_,{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=o=>a.value=o),"manual-save":"",tall:"",class:"_monospace _formBlock",style:{"tab-size":"2"}},{label:c(()=>[r(n(m(e).ts.customKaTeXMacro),1)]),_:1},8,["modelValue"]),l(K,{modelValue:u.value,"onUpdate:modelValue":t[1]||(t[1]=o=>u.value=o),class:"_formBlock"},{default:c(()=>[r(n(m(e).ts.enableCustomKaTeXMacro),1)]),_:1},8,["modelValue"])]))}});export{B as default};
