import{_ as b}from"./DXc_Uwyk.js";import{aa as C,ct as y,cm as h,cR as k,bO as x,cG as S,cl as v,X as c,cS as s,p as g,ch as B,bB as n,c7 as e,a3 as r,aV as A,Z as T,V as N,a2 as $,c0 as w,Y as E,l as H}from"#entry";import{u as U}from"./DUUiSUNy.js";import{V as G}from"./R1_j74h_.js";import{V as L}from"./BgQ5eU58.js";import{V as M}from"./VoZA954X.js";import"./BKDgfSxC.js";const P=["innerHTML"],q=C({__name:"about",async setup(R){let a,i;const{$notify:m}=y(),{isAdmin:l}=U(),{t:o}=h(),{data:p}=([a,i]=k(()=>B("/api/settings/about","$PiGXBS_oCy")),a=await a,i(),a),t=x(p||o("about")),d=S("settings");v({title:d.value?.title+" - "+o("common.about"),meta:[{name:"description",content:t.value}]});function _(){m("common.ok",H.SUCCESS),$fetch("/api/settings",{method:"PUT",body:{key:"about",value:t.value}})}return(X,u)=>{const f=b;return n(),c(g,null,{default:s(()=>[e(l)?(n(),c(G,{key:0},{default:s(()=>[r(f,{modelValue:e(t),"onUpdate:modelValue":u[0]||(u[0]=V=>A(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,P)),e(l)?(n(),c(L,{key:2},{default:s(()=>[r(M),r(N,{color:"primary",variant:"outlined",onClick:_},{default:s(()=>[$(w(e(o)("common.save")),1)]),_:1})]),_:1})):E("",!0)]),_:1})}}});export{q as default};
