PageSourceSearch

https://savvskout.com/assets/Contact-CUdnRBdu.js

js savvskout.com collected 2026-10-02 01:42:53 UTC 6,140 bytes, 1 lines download raw bytes

1import{l as S,r as i,j as e,A as q,m as f,C as d,a as m,b as g,v as k,c as l,I as b,d as u}from"./index-BupwEmgm.js";import{T as I}from"./textarea-CvCGmzu-.js";import{S as A,a as F,b as M,c as T,d as n}from"./select-BE_BfE1n.js";import{C as R}from"./circle-check-big-DHNhhlYj.js";import{C as y}from"./clock-DT6qDQD2.js";import{S as E}from"./send-BfXl5gst.js";import"./index-BP4mGZh_.js";import"./index-CWzdr2iF.js";import"./index-5VGl---o.js";import"./index-z7BTQWyD.js";import"./index-Dcum08s_.js";import"./index-DtqUbmXC.js";import"./index-DZZvDXV_.js";import"./chevron-down-CZP-y2fV.js";import"./check-CfJfwHKK.js";import"./chevron-up-Cw-759n5.js";const B={technical_issue:"Technical Issue",billing_inquiry:"Billing Inquiry",feature_request:"Feature Request",general_feedback:"General Feedback",affiliate_inquiry:"Affiliate Inquiry"},N={technical_issue:"24–48 hours",billing_inquiry:"1–2 business days",feature_request:"3–5 business days",general_feedback:"2–3 business days",affiliate_inquiry:"1–2 business days"};function $(){const{user:t}=S(),[s,r]=i.useState({subject:"",message:"",contact_email:(t==null?void 0:t.email)||""}),[c,x]=i.useState([]),[v,h]=i.useState(!1),[p,j]=i.useState(!1),w=async a=>{a.preventDefault(),j(!0);let o=[];for(const _ of c){const{file_url:C}=await u.integrations.Core.UploadFile({file:_});o.push(C)}await u.entities.ContactMessage.create({...s,attachment_urls:o,user_email:t==null?void 0:t.email}),u.functions.invoke("sendSupportToSlack",{...s,attachment_urls:o}).catch(()=>{}),h(!0),typeof window<"u"&&window.gtag&&window.gtag("event","conversion",{send_to:"AW-18433959440/822gCJLz4O8cEJDM_9VE"}),j(!1)};return e.jsxs("div",{className:"max-w-2xl mx-auto space-y-5 min-w-0 w-full",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"font-heading text-2xl font-bold",children:"Contact Support"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Reach the PCI Company support team — we're here to help"})]}),e.jsx(q,{mode:"wait",children:v?e.jsx(f.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},children:e.jsx(d,{className:"border-0 shadow-sm",children:e.jsxs(m,{className:"py-12 text-center px-6",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-secondary/10 flex items-center justify-center mx-auto mb-4",children:e.jsx(R,{className:"w-8 h-8 text-secondary"})}),e.jsx("h2",{className:"font-heading text-xl font-bold mb-2",children:"Message Sent!"}),e.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto mb-4",children:["Your ",e.jsx("strong",{children:B[s.subject]})," request has been received."]}),e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-xl bg-secondary/10 border border-secondary/20 text-sm text-secondary mb-5",children:[e.jsx(y,{className:"w-4 h-4"}),"Response in ",e.jsx("strong",{children:N[s.subject]})]}),e.jsxs("p",{className:"text-xs text-muted-foreground mb-5",children:["We'll reply to ",e.jsx("strong",{children:s.contact_email}),"."]}),e.jsx(g,{className:"bg-secondary text-secondary-foreground hover:bg-secondary/90",onClick:()=>{h(!1),r({subject:"",message:"",contact_email:(t==null?void 0:t.email)||""}),x([])},children:"Send Another Message"})]})})},"success"):e.jsxs(f.div,{initial:{opacity:0}
1,animate:{opacity:1},className:"space-y-4",children:[e.jsx(d,{className:"border-0 shadow-sm",children:e.jsxs(m,{className:"p-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-secondary/10 flex items-center justify-center shrink-0",children:e.jsx(k,{className:"w-5 h-5 text-secondary"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"PCI Company Support"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"All requests reviewed in order. Urgent billing/security matters are routed faster."})]})]})}),e.jsx(d,{className:"border-0 shadow-sm",children:e.jsx(m,{className:"p-5",children:e.jsxs("form",{onSubmit:w,className:"space-y-5",children:[e.jsxs("div",{children:[e.jsxs(l,{children:["Subject ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsxs(A,{value:s.subject,onValueChange:a=>r({...s,subject:a}),children:[e.jsx(F,{className:"mt-1",children:e.jsx(M,{placeholder:"Select a subject..."})}),e.jsxs(T,{children:[e.jsx(n,{value:"technical_issue",children:"Technical Issue"}),e.jsx(n,{value:"billing_inquiry",children:"Billing Inquiry"}),e.jsx(n,{value:"feature_request",children:"Feature Request"}),e.jsx(n,{value:"general_feedback",children:"General Feedback"}),e.jsx(n,{value:"affiliate_inquiry",children:"Affiliate Inquiry"})]})]}),s.subject&&e.jsxs("div",{className:"flex items-center gap-2 mt-2 px-3 py-2 rounded-lg bg-secondary/8 border border-secondary/20",children:[e.jsx(y,{className:"w-3.5 h-3.5 text-secondary shrink-0"}),e.jsxs("p",{className:"text-xs text-secondary",children:["Response time: ",e.jsx("strong",{children:N[s.subject]})]})]})]}),e.jsxs("div",{children:[e.jsxs(l,{children:["Contact Email ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(b,{value:s.contact_email,onChange:a=>r({...s,contact_email:a.target.value}),type:"email",className:"mt-1",placeholder:"[email protected]"})]}),e.jsxs("div",{children:[e.jsxs(l,{children:["Message ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(I,{value:s.message,onChange:a=>r({...s,message:a.target.value}),rows:6,className:"mt-1",placeholder:"Please describe your issue, question, or feedback in detail..."})]}),e.jsxs("div",{children:[e.jsxs(l,{children:["Attachments ",e.jsx("span",{className:"text-muted-foreground font-normal",children:"(optional)"})]}),e.jsx(b,{type:"file",multiple:!0,onChange:a=>x(Array.from(a.target.files)),className:"mt-1"}),c.length>0&&e.jsxs("p",{className:"text-xs text-secondary mt-1",children:[c.length," file(s) selected"]})]}),e.jsx(g,{type:"submit",disabled:!s.subject||!s.message||!s.contact_email||p,className:"w-full bg-secondary text-secondary-foreground hover:bg-secondary/90 h-11",children:p?"Sending...":e.jsxs(e.Fragment,{children:[e.jsx(E,{className:"w-4 h-4 mr-2"})," Send Message"]})})]})})})]},"form")})]})}export{$ 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.