import{_ as C}from"./C2g9UOqQ.js";import{J as b,Y as y,X as k,M as x,a4 as S,K as h,P as v,A as r,B as s,C as g,N as A,E as n,S as e,b as i,a8 as B,T,V as N,G as E,Q as U,U as $,Z as w}from"#entry";import{u as H}from"./BnHb3W_d.js";import{V as M}from"./DArAxlee.js";import{V as P}from"./DSnRMG2T.js";import{V as G}from"./D1vV9CHW.js";import"./BML-0xFj.js";const L=["innerHTML"],Z=b({__name:"about",async setup(X){let a,u;const{$notify:c}=y(),{isAdmin:l}=H(),{t:o}=k(),{data:p}=([a,u]=x(()=>A("/api/settings/about","$PiGXBS_oCy")),a=await a,u(),a),t=S(p||o("about")),d=h("settings");v({title:d.value?.title+" - "+o("common.about"),meta:[{name:"description",content:t.value}]});function _(){c("common.ok",w.SUCCESS),$fetch("/api/settings",{method:"PUT",body:{key:"about",value:t.value}})}return(D,m)=>{const f=C;return n(),r(g,null,{default:s(()=>[e(l)?(n(),r(M,{key:0},{default:s(()=>[i(f,{modelValue:e(t),"onUpdate:modelValue":m[0]||(m[0]=V=>B(t)?t.value=V:null),class:"px-3 ma-0",label:e(o)("common.about"),height:"500px"},null,8,["modelValue","label"])]),_:1})):(n(),T("span",{key:1,innerHTML:e(t)},null,8,L)),e(l)?(n(),r(P,{key:2},{default:s(()=>[i(G),i(N,{color:"primary",variant:"outlined",onClick:_},{default:s(()=>[E(U(e(o)("common.save")),1)]),_:1})]),_:1})):$("",!0)]),_:1})}}});export{Z as default};
