1import{_ as M}from"./DmNdlhiT.js";import{_ as B}from"./TCgUBtqr.js";import{f as I,A as N,r as d,b as V,c as x,a as r,d as t,w as _,e as u,D as g,u as a,y as D,F as L,C as T,l as v,o as i,n as U,I as A,i as F,k as P,v as q,H as R,ak as $,al as j,t as G}from"./CpqIQdkN.js";import{_ as z}from"./Yo4sNL6i.js";import{u as E}from"./CRik6hSz.js";const H={class:"w-full max-w-[30rem] px-3 sm:px-0"},O={class:"w-full p-5 sm:p-6 flex flex-col items-start bg-bg border border-border rounded-xl shadow-xl"},J={class:"w-full mb-5 sm:mb-6 flex flex-col gap-1"},K={class:"w-full text-text-body text-sm"},Q={class:"text-text-title"},W={class:"form-group flex flex-col"},X={class:"flex flex-wrap items-center gap-2.5"},Y=["onClick"],Z={class:"text-sm"},ee={class:"form-group flex flex-col"},te=["disabled"],ie={__name:"support",setup(se){const c=I(),p=N(),m=[{label:"Support",value:"support"},{label:"Bug",value:"bug"},{label:"Feature request",value:"featureRequest"},{label:"Feedback",value:"feedback"}],s=d("support"),o=d(""),n=d(!1),w=async()=>{if(!s.value||!o.value.trim()){p.new({type:"error",message:"Pick a topic and enter a message."});return}n.value=!0;const{$db:f}=R();try{await $(j(f,"contacts"),{userId:c.user.uid||null,email:c.user.email||null,topic:m.find(e=>e.value===s.value)?.label||s.value,message:o.value.trim(),source:"account-support",date:new Date}),p.new({type:"success",message:"Message sent â we'll be in touch."}),o.value="",s.value="support"}catch(e){console.error("Support submission failed:",e),p.new({type:"error",message:"Something went wrong. Please try again later."})}finally{n.value=!1}},h=E();return V({title:"Support · LLMs.txt Generator",description:"Get help, report a bug, or send feedback.",robots:"noindex, nofollow",ogUrl:`${h.baseUrl}/account/support`}),(f,e)=>{const k=M,y=B,b=A,S=z,C=G;return i(),x("div",H,[r(y,{to:"/account/files",class:"mb-4 w-fit inline-flex items-center gap-1 text-sm text-text-body hover:text-text-title hover:underline underline-offset-2 transition-colors duration-100"},{default:_(()=>[r(k,{class:"w-3.5 h-3.5 rotate-180"}),e[1]||(e[1]=u(" Back to dashboard ",-1))]),_:1}),t("div",O,[t("div",J,[e[4]||(e[4]=t("h1",{class:"w-full text-left text-2xl"}," Support ",-1)),t("p",K,[e[2]||(e[2]=u(" Need help, hit a bug, want a feature, or just have feedback? Send us a message and we'll get back to you at ",-1)),t("span",Q,g(a(c).user.email),1),e[3]||(e[3]=u(". ",-1))])]),t("form",{class:"w-full flex flex-col",onSubmit:D(w,["prevent"])},[t("div",W,[e[5]||(e[5]=t("span",{class:"form-label"},"Topic",-1)),t("div",X,[(i(),x(L,null,T(m,l=>t("button",{key:l.value,type:"button",class:"flex items-center gap-2",onClick:oe=>s.value=l.value},[t("span",{class:U(["w-5 h-5 flex shrink-0 items-center justify-center rounded-md border transition duration-200 ease-in-out",a(s)===l.value?"bg-accent border-accent-dark text-on-accent":"bg-bg border-border text-transparent"])},[r(b,{class:"w-4 h-4"})],2),t("span",Z,g(l.label),1)],8,Y)),64))])]),t("div",ee,[e[6]||(e[6]=t("label",{for:"message",class:"form-label"}," Message ",-1)),r(S,null,{default:_(()=>[F(t("textarea",{id:"message",class:"w-full",rows:"6",placeholder:"Tell us what's going onâ¦",maxlength:"4000",required:"","onUpdate:modelValue":e[0]||(e[0]=l=>P(o)?o.value=l:null)},null,512),[[q,a(o)]])]),_:1})]),t("button",{class:"w-full btn btn-primary",type:"submit",disabled:!a(s)||!a(o).trim()||a(n)},[e[7]||(e[7]=u(" Send message ",-1)),a(n)?(i(),v(C,{key:0})):(i(),v(b,{key:1}))],8,te)],32)])])}}};export{ie 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.