PageSourceSearch

https://rodrift.ro/assets/HelpPage-BbiRf-mi.js

js rodrift.ro collected 2026-10-04 04:20:32 UTC 8,145 bytes, 1 lines download raw bytes

1import{r,j as e,L as h,x as w,ao as x,aU as p,W as z,Y as C,ba as T,aF as F,Q as D,V as y,a4 as E,a5 as A,X as R,al as I,aV as P}from"./vendor-react-aro8yD9l.js";/* empty css                */import"./vendor-charts-DStlN2dP.js";const t={phone:"+40722342920",email:"[email protected]",whatsapp:"+40785417988",hours:"Luni–Duminică: 09:00–21:00",facebook:"https://www.facebook.com/RoDrift.ro",instagram:"https://www.instagram.com/rodrift"};function q(){const[L,N]=r.useState(null),[g,i]=r.useState(!1),[o,b]=r.useState([]),[d,v]=r.useState(null),[m,u]=r.useState(!1),[a,c]=r.useState({name:"",email:"",subject:"",message:""});r.useEffect(()=>{const s=localStorage.getItem("user");if(s&&s!=="undefined"&&s!=="null")try{const l=JSON.parse(s);N(l),c(n=>({...n,name:[l.first_name,l.last_name].filter(Boolean).join(" "),email:l.email||""}))}catch(l){console.error("Error parsing user:",l)}},[]);const f=async s=>{if(s.preventDefault(),!a.subject.trim()||!a.message.trim()){alert("Te rugăm să completezi subiectul și mesajul.");return}u(!0);try{await new Promise(n=>setTimeout(n,1e3));const l={id:`T-${Date.now()}`,subject:a.subject,message:a.message,status:"open",created:new Date().toISOString(),updated:new Date().toISOString()};b([l,...o]),i(!1),c(n=>({...n,subject:"",message:""})),alert("Tichetul tău a fost trimis cu succes! Echipa noastră îți va răspunde în curând.")}catch{alert("Eroare la trimiterea tichetului. Încearcă din nou.")}finally{u(!1)}},j=s=>{switch(s){case"open":return"#FF9800";case"in_progress":return"#2196F3";case"resolved":return"#4CAF50";default:return"#9CA3AF"}},k=s=>{switch(s){case"open":return"Deschis";case"in_progress":return"În lucru";case"resolved":return"Rezolvat";default:return s}},S=s=>new Date(s).toLocaleString("ro-RO",{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"});return e.jsxs("div",{className:"support-page",children:[e.jsxs("div",{className:"support-container",children:[e.jsxs("div",{className:"support-header",children:[e.jsxs(h,{to:"/suport",className:"back-link",children:[e.jsx(w,{size:20}),e.jsx("span",{children:"Înapoi"})]}),e.jsx("div",{className:"support-header-actions",children:e.jsxs("button",{className:"header-pill",onClick:()=>i(!0),children:[e.jsx(x,{size:16}),e.jsx("span",{children:"Tichet Nou"})]})})]}),e.jsx("h1",{className:"support-title",children:"Ajutor & Suport"}),e.jsxs("div",{className:"help-hero",children:[e.jsx("div",{className:"help-hero-icon",children:e.jsx(p,{size:40})}),e.jsx("h2",{children:"Suntem aici să te ajutăm!"}),e.jsx("p",{children:"Echipa RoDrift răspunde rapid la toate întrebările tale despre evenimente, înscrieri și aplicație."})]}),e.jsxs("div",{className:"help-section",children:[e.jsx("h3",{children:"Contactează-ne"}),e.jsxs("div",{className:"help-contact-grid",children:[e.jsxs("a",{href:`tel:${t.phone}`,className:"help-contact-card",children:[e.jsx("div",{className:"help-contact-icon phone",children:e.jsx(z,{size:24})}),e.jsxs("div",{className:"help-contact-info",children:[e.jsx("span",{className:"help-contact-label",children:"Telefon"}),e.jsx("span",{className:"help-contact-value",children:t.phone})]})]}),e.jsxs("a",{href:`mailto:${t.email}`,className:"help-contact-card",children:[e.jsx("div",{className:"help-contact-icon email",children:e.jsx(C,{size:24})}),e.jsxs("div",{className:"help-contact-info",children:[e.jsx("span",{className:"help-contact-label",children:"Email"}),e.jsx("span",{className:"help-contact-value",children:t.email})]})]}),e.jsxs("a",{href:`https://wa.me/${t.whatsapp.replace(/\D/g,"")}?text=${encodeURIComponent("Bună ziua! Am nevoie de ajutor cu RoDrift.")}`,target:"_blank",rel:"noopener noreferrer",className:"help-contact-card",children:[e.jsx("div",{className:"help-contact-icon whatsapp",children:e.jsx(T,{size:24})}),e.jsxs("div",{className:"help-contact-info",children:[e.jsx("span",{className:"help-contact-label",children:"WhatsApp"}),e.jsx("span",{className:"help-contact-value",children:t.whatsapp})]})]})]}),e.jsxs("div",{className:"help-hours",children:[e.jsx(F,{size:16}),e.jsx("span",{children:t.hours})]})]}),e.jsxs("div",{className:"help-section",children:[e.jsx("h3",{children:"Social Media"}),e.jsxs("div",{className:"help-social-grid",children:[e.jsxs("a",{href:t.facebook,target:"_blank",rel:"noopener noreferrer",className:"help-social-btn facebook",children:[e.jsx(D,{size:20}),e.jsx("span",{children:"Facebook"})]}),e.jsxs("a",{href:t.instagram,target:"_blank",rel:"noopener noreferrer",className:"help-social-btn instagram",children:[e.jsx(y,{size:20}),e.jsx("span",{children:"Instagram"})]})]})]}),e.jsxs("div",{className:"help-section",children:[e.jsx("h3",{children:"Acțiuni Rapide"}),e.jsxs("div",{className:"help-actions-grid",children:[e.jsxs("button",{className:"help-action-btn",onClick:()=>i(!0),children:[e.jsx(x,{size:20}),e.jsx("span",{children:"Deschide Tichet"})]}),e.jsxs(h,{to:"/faq",className:"help-action-btn",children:[e.jsx(p,{size:20}),e.jsx("span",{children:"Vezi FAQ"})]})]})]}),o.length>0&&e.jsxs("div",{className:"help-section",children:[e.jsx("h3",{children:"Tichetele Tale"}),e.jsx("div",{className:"help-tickets-list",children:o.map(s=>e.jsxs("div",{className:"help-ticket-item",children:[e.jsxs("button",{className:"help-ticket-header",onClick:()=>v(d===s.id?null:s.id),children:[e.jsxs("div",{className:"help-ticket-info",children:[e.jsx("span",{className:"help-ticket-id",children:s.id}),e.jsx("span",{className:"help-ticket-subject",children:s.subject}),e.jsx("span",{className:"help-ticket-status",style:{backgroundColor:j(s.status)+"20",color:j(s.status)},children:k(s.status)})]}),e.jsxs("div",{className:"help-ticket-meta",children:[e.jsx("span",{className:"help-ticket-date",children:S(s.created)}),d===s.id?e.jsx(E,{size:18}):e.jsx(A,{size:18})]})]}),d===s.id&&e.jsxs("div",{className:"help-ticket-content",children:[e.jsxs("div",{className:"help-ticket-message",children:[e.jsx("strong",{children:"Mesajul tău:"}),e.jsx("p",{children:s.message})]}),s.response&&e.jsxs("div",{className:"help-ticket-response",children:[e.jsx("strong",{children:"Răspuns:"}),e.jsx("p",{children:s.response})]})]})]},s.id))})]}
1),e.jsxs("div",{className:"help-faq-cta",children:[e.jsx("p",{children:"Verifică secțiunea de Întrebări Frecvente pentru răspunsuri rapide"}),e.jsxs(h,{to:"/faq",className:"btn-secondary",children:[e.jsx(p,{size:18}),"Vezi Întrebări Frecvente"]})]})]}),g&&e.jsx("div",{className:"help-modal-overlay",onClick:()=>i(!1),children:e.jsxs("div",{className:"help-modal",onClick:s=>s.stopPropagation(),children:[e.jsxs("div",{className:"help-modal-header",children:[e.jsx("h3",{children:"Tichet Nou"}),e.jsx("button",{className:"help-modal-close",onClick:()=>i(!1),children:e.jsx(R,{size:20})})]}),e.jsxs("form",{onSubmit:f,className:"help-ticket-form",children:[e.jsxs("div",{className:"form-group",children:[e.jsx("label",{children:"Nume"}),e.jsx("input",{type:"text",value:a.name,onChange:s=>c({...a,name:s.target.value}),placeholder:"Numele tău",disabled:!0})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{children:"Email"}),e.jsx("input",{type:"email",value:a.email,onChange:s=>c({...a,email:s.target.value}),placeholder:"Email-ul tău",disabled:!0})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{children:"Subiect *"}),e.jsx("input",{type:"text",value:a.subject,onChange:s=>c({...a,subject:s.target.value}),placeholder:"Ex: Problemă cu înscrierea la etapă",required:!0})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{children:"Mesaj *"}),e.jsx("textarea",{value:a.message,onChange:s=>c({...a,message:s.target.value}),placeholder:"Descrie problema sau întrebarea ta în detaliu...",rows:5,required:!0})]}),e.jsxs("div",{className:"help-modal-actions",children:[e.jsx("button",{type:"button",className:"btn-cancel",onClick:()=>i(!1),children:"Anulează"}),e.jsx("button",{type:"submit",className:"btn-primary",disabled:m,children:m?e.jsxs(e.Fragment,{children:[e.jsx(I,{size:18,className:"spinning"}),"Se trimite..."]}):e.jsxs(e.Fragment,{children:[e.jsx(P,{size:18}),"Trimite Tichetul"]})})]})]})]})})]})}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.