1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="40067b72-10fe-591a-b10c-e37a41df9276")}catch(e){}}(); 3import{aP as k,bN as g,bh as l,b3 as a,aV as c,aY as f,ct as $,ch as w,aT as r,aW as h,aX as V,bi as v,bj as F,cv as A,b9 as q,ba as B,b5 as W,b$ as U}from"./dps5x5lW.js";import{u as I}from"./DxEmU_Bj.js";const K={class:"are-container"},N=["textContent"],D={class:"mb-3 flex items-center"},L=k({__name:"faqs",async setup(P){let o,i;const s=I(),{data:y,refresh:d}=([o,i]=g(()=>w("are-admin-faqs",()=>s.get("/admin/faqs"))),o=await o,i(),o);async function m(e){await s.patch(`/admin/faqs/${e.id}`,e)}async function u(e){await s.delete(`/admin/faqs/${e.id}`),await d()}async function x(){await s.post("/admin/faqs",{title:"",text:""}),await d()}return(e,j)=>{const p=A,_=B,b=q,C=W;return r(),l("div",K,[a(f($),{"config-file":"true","default-config":!1},{default:c(()=>[h("h1",{class:"my-6 text-1 font-bold uppercase text-secondary-brand font-condensed",textContent:V(e.$t("navigation.faqs"))},null,8,N),(r(!0),l(v,null,F(f(y)?.data,t=>(r(),l("div",{key:t.id,class:"border-b border-secondary-brand py-3"},[h("section",D,[a(p,{modelValue:t.title,"onUpdate:modelValue":n=>t.title=n,type:"text",label:e.$t("labels.question"),class:"mr-3 grow",maxlength:"255",onChange:n=>m(t)},null,8,["modelValue","onUpdate:modelValue","label","onChange"]),a(b,{class:"ml-3 max-desktop:hidden",color:"are-primary","aria-label":"delete",onClick:n=>u(t)},{default:c(()=>[a(_,{name:"material-symbols:delete-outline",class:"block"})]),_:1},8,["onClick"])]),a(p,{modelValue:t.text,"onUpdate:modelValue":n=>t.text=n,type:"textarea","wrapper-class":"desktop:pl-3",label:e.$t("labels.text"),rows:"5",classes:{label:"top-l"},onChange:n=>m(t)},null,8,["modelValue","onUpdate:modelValue","label","onChange"]),a(b,{class:"ml-auto mt-2 desktop:hidden",color:"are-primary","aria-label":"delete",onClick:n=>u(t)},{default:c(()=>[a(_,{name:"material-symbols:delete-outline",class:"block"})]),_:1},8,["onClick"])]))),128)),a(C,{content:e.$t("buttons.add"),class:"ml-auto mt-3",color:"outline",onClick:x},null,8,["content"])]),_:1})])}}}),S=U(L,[["__scopeId","data-v-725ec273"]]);export{S as default}; 4 5//# debugId=40067b72-10fe-591a-b10c-e37a41df9276
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.