PageSourceSearch

https://dashboard.ki-note.ai/_nuxt/BceE57w-.js

js ki-note.ai collected 2026-10-05 12:35:15 UTC 4,451 bytes, 1 lines download raw bytes

1import{_ as B}from"./DsLoLx7j.js";import{_ as S}from"./MR4dosao.js";import C from"./BbkHTsmS.js";import{d as x,H as q,b as p,c as _,e as y,t as c,f as m,z as N,y as z,I as v,i as E,h as M,g as O,l as b,w as u,_ as P,J as G,A as j,p as D,G as h,r as H,k as J}from"./N92-KZen.js";import{_ as L}from"./DJLUf5_g.js";import{_ as W}from"./BjRIsIKx.js";import K from"./B2OdBhyB.js";import"./B-AGIjQD.js";import"./DuF_kWzR.js";import"./DDbitAjg.js";import"./CO0KfKsI.js";import"./CLs7nh7g.js";import"./f7h9jjDD.js";import"./DWDO6v4T.js";import"./DpDdQ4Z4.js";import"./aaBDqIqx.js";import"./DZbw4Mr7.js";import"./BSsUaF_l.js";import"./BttPt5Ov.js";import"./BrPGYDYJ.js";import"./B0nQbZ0U.js";import"./D-1e7dus.js";import"./Bb51sLY7.js";import"./CqkleIqs.js";const Q={class:"form-group"},R=["for"],X={key:0,class:"error-hint mt-1"},Y=x({__name:"TextArea",props:v({id:{},label:{},error:{},placeholder:{}},{modelValue:{},modelModifiers:{}}),emits:v(["update:modelValue","update:error"],["update:modelValue"]),setup(l,{emit:t}){const n=q(l,"modelValue"),d=t,o=e=>{const s=e.target.value;d("update:modelValue",s),d("update:error",null)};return(e,s)=>{const f=C;return p(),_("div",Q,[y("label",{for:l.id,class:"block truncate text-ellipsis overflow-hidden whitespace-nowrap text-white font-[500]"},c(e.$t(l.label)),9,R),m(f,{id:l.id,modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=g=>n.value=g),placeholder:e.$t(l.placeholder??""),class:N({"text-[#FFFFFFA0]":!n.value,"p-invalid":l.error}),rows:"6",onInput:o},null,8,["id","modelValue","placeholder","class"]),l.error?(p(),_("small",X,c(l.error),1)):z("",!0)])}}}),Z={class:"card-title text-center! w-full!"},ee={class:"form-row"},oe={key:1,class:"flex"},Fe=x({__name:"support",setup(l){const{t}=E(),n=M(),{token:d}=O(),o=h({name:"",email:"",category:"",message:""}),e=h({name:null,email:null,category:null,message:null}),s=H(!1),f=[{label:t("support.form.category.technical"),value:"technical"},{label:t("support.form.category.billing"),value:"billing"},{label:t("support.form.category.feature"),value:"feature"},{label:t("support.form.category.other"),value:"other"}],g=async()=>{if(s.value=!0,e.name=o.name?null:t("form.required"),e.email=o.email?null:t("form.required"),e.category=o.category?null:t("form.required"),e.message=o.message?null:t("form.required"),o.message.length<10&&(e.message=t("support.form.message_error")),e.name||e.email||e.category||e.message){s.value=!1;return}try{const i=await J("/api/support/submit",{method:"POST",headers:{Authorization:`Bearer ${d.value}`},body:{name:o.name,email:o.email,category:o.category,message:o.message}});if(!i.success)throw new Error(i.message);Object.assign(o,{name:"",email:"",category:"",message:""}),n.add({severity:"success",summary:t("support.success.title"),detail:t("support.success.message"),life:5e3})}catch{n.add({severity:"error",summary:t("support.error.title"),detail:t("support.error.message"),life:5e3})}finally{s.value=!1}};return(i,r)=>{const V=B,U=S,$=Y,w=D,F=L,k=K,I=W,T=G,A=P;return p(),b(A,null,{header:u(()=>[y("h1",Z,c(i.$t("support.title")),1)]),default:u(()=>[m(T,{class:"max-w-3xl! h-fit!"},{default:u(()=>[s.value?(p(),_("div",oe,[m(I)])):(p(),b(k,{key:0,class:"form",onSubmit:g},{default:u(()=>[y("div",ee,[m(V,{id:"name",modelValue:o.name,"onUpdate:modelValue":r[0]||(r[0]=a=>o.name=a),error:e.name,"onUpdate:error":r[1]||(r[1]=a=>e.name=a),label:"support.form.name",placeholder:"support.form.name_placeholder"},null,8,["modelValue","error"]),m(V,{id:"email",modelValue:o.email,"onUpdate:modelValue":r[2]||(r[2]=a=>o.email=a),error:e.email,"onUpdate:error":r[3]||(r[3]=a=>e.email=a),label:"support.form.email",placeholder:"support.form.email_placeholder",type:"email"},null,8,["modelValue","error"])]),m(U,{id:"category",modelValue:o.category,"onUpdate:modelValue":r[4]||(r[4]=a=>o.category=a),error:e.category,"onUpdate:error":r[5]||(r[5]=a=>e.category=a),label:"support.form.category.title",options:f,placeholder:"support.form.category.placeholder"},null,8,["modelValue","error"]),m($,{id:"message",modelValue:o.message,"onUpdate:modelValue":r[6]||(r[6]=a=>o.message=a),error:e.message,"onUpdate:error":r[7]||(r[7]=a=>e.message=a),label:"support.form.message",placeholder:"support.form.message_placeholder"},null,8,["modelValue","error"]),m(F,{variant:"submit"},{default:u(()=>[j(c(i.$t("support.form.send"))+" ",1),m(w,{name:"la:telegram-plane",class:"ml-2!"})]),_:1})]),_:1}))]),_:1})]),_:1})}}});
1export{Fe as default};

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.