PageSourceSearch

https://app.xlift.ai/assets/SupportPage-CPqkIJUN.js

js xlift.ai collected 2026-10-05 13:20:44 UTC 3,099 bytes, 6 lines download raw bytes

1import{v as f,A as S,o,al as b,a4 as v,a5 as T,U as p,j as e,C as l,G as c,bt as k,$ as z,T as n,D as x,E as r,L as B,X as C,a0 as N,a8 as I}from"./index-dE8a1mPK.js";import{T as D}from"./Textarea-BtbUvWWM.js";import"./get-env-uyVen0u2.js";/**
2 * @license @tabler/icons-react v3.43.0 - MIT
3 *
4 * This source code is licensed under the MIT license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const E=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],R=f("outline","brand-telegram","BrandTelegram",E);function q(){const g=S({queryKey:["user-me"],queryFn:()=>p.getUser()}),[d,u]=o.useState(""),[t,h]=o.useState(""),[j,y]=o.useState(null),i=b({mutationFn:()=>p.sendSupportTicket({subject:d.trim(),message:t.trim()}),onSuccess:()=>{T("Sent — we usually reply within a few hours"),u(""),h(""),y(Date.now())},onError:s=>v(s)}),a=g.data||{},m=[a.firstName,a.lastName].filter(Boolean).join(" ")||a.displayName,w=t.trim().length>=10;return e.jsxs(l,{gap:"md",maw:720,children:[e.jsxs("div",{children:[e.jsxs(c,{gap:"xs",children:[e.jsx(k,{size:20}),e.jsx(z,{order:2,children:"Support"})]}),e.jsx(n,{c:"dimmed",size:"sm",children:"Send a message — it lands directly on Itamar's phone via Telegram with your account info attached so he doesn't need to ask who you are. Reply usually within a few hours."})]}),e.jsx(x,{withBorder:!0,children:e.jsxs(l,{gap:"sm",children:[e.jsx(n,{fw:600,size:"sm",children:"What we'll send with your message"}),e.jsxs(c,{gap:"xs",wrap:"wrap",children:[m&&e.jsx(r,{variant:"light",children:m}),a.email&&e.jsx(r,{variant:"light",children:a.email}),a.companyName&&e.jsx(r,{variant:"light",children:a.companyName}),a.plan&&e.jsx(r,{variant:"light",color:"blue",children:a.plan})]}),e.jsx(n,{size:"xs",c:"dimmed",children:"UID + connected-account count are also included so we can look at your data while reading your message."})]})}),e.jsx(x,{withBorder:!0,children:e.jsxs(l,{gap:"sm",children:[e.jsx(B,{label:"Subject (optional)",placeholder:"e.g. DM campaign won't start",value:d,onChange:s=>u(s.currentTarget.value),maxLength:200}),e.jsx(D,{label:"Your message",placeholder:"Describe what you're trying to do, what you expected, and what actually happened. The more detail the faster we can fix it.",value:t,onChange:s=>h(s.currentTarget.value),autosize:!0,minRows:5,maxRows:14,maxLength:4e3,required:!0}),e.jsxs(c,{justify:"space-between",wrap:"nowrap",children:[e.jsxs(n,{size:"xs",c:"dimmed",children:[t.length," / 4000 chars",t.trim()&&t.trim().length<10&&" · a bit more detail helps"]}),e.jsx(C,{leftSection:e.jsx(R,{size:16}),onClick:()=>i.mutate(),disabled:!w||i.isPending,loading:i.isPending,color:"dark",children:"Send to support"})]})]})}),j&&e.jsx(N,{color:"green",icon:e.jsx(I,{size:16}),variant:"light",children:"Sent. We'll reply by email once we've taken a look. You can send another anytime."}),e.jsxs(n,{size:"xs",c:"dimmed",ta:"center",children:["Or email us directly at"," ",e.jsx("a",{href:"mailto:[email protected]",style:{color:"inherit"},children:"[email protected]"})," ","— same inbox."]})]})}export{q 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.