1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26342],{26342:function(e,t,a){a.r(t),a.d(t,{default:function(){return Y}});var s=a(57437),r=a(29),l=a.n(r),d=a(2265),n=a(12381),i=a(40279),o=a(75060),c=a(69174),x=a(22549),m=a(35471),u=a(71769),g=a(29374),h=a(64935),b=a(95805),f=a(11239),p=a(48736),j=a(82023),v=a(73247),y=a(32489),w=a(65302),N=a(91723),k=a(82718),Z=a(95080),C=a(15863),_=a(10407),S=a(70112),z=a(89345),I=a(13041),T=a(44743),q=a(76858),D=a(76980),R=a(92735),A=a(84881),F=a(9310),E=a(71837),P=a(5442),H=a(69064);function L(){let[e,t]=(0,d.useState)(0),[a,r]=(0,d.useState)(!0),n=(0,d.useMemo)(()=>["How can I help you? \uD83D\uDC4B","Ask me anything! \uD83C\uDFAF","Need assistance? \uD83D\uDCAC","I'm here for you! \uD83E\uDD16"],[]);return(0,d.useEffect)(()=>{let e=setInterval(()=>{r(!1),setTimeout(()=>{t(e=>(e+1)%n.length),r(!0)},300)},3500);return()=>clearInterval(e)},[n.length]),(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 relative",children:[(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 absolute inset-0 -z-10",children:[(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-36 h-36 bg-white/30 rounded-full blur-2xl animate-pulse"}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-24 h-24 bg-cyan-300/30 rounded-full blur-xl"})]}),(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 relative",children:[(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 "+"absolute top-2 right-full mr-3 z-10 transform transition-all duration-300 ".concat(a?"opacity-100 translate-x-0 scale-100":"opacity-0 translate-x-2 scale-95"),children:(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 relative bg-white rounded-2xl px-4 py-2.5 shadow-xl border border-gray-100 whitespace-nowrap",children:[(0,s.jsx)("p",{className:"jsx-dbdb91c1aced38f5 text-sm font-semibold text-gray-700",children:n[e]}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-4 -right-2 w-3 h-3 bg-white border-t border-r border-gray-100 rotate-45"})]})}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 animate-float",children:(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 relative w-32 h-36",children:[(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-0 left-1/2 -translate-x-1/2 w-20 h-20",children:[(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 w-full h-full bg-gradient-to-b from-blue-100 via-blue-200 to-blue-300 rounded-[2rem] border-2 border-blue-300 shadow-xl relative overflow-hidden",children:[(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-1 left-2 w-6 h-3 bg-white/40 rounded-full blur-sm"}),(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-3 left-2 right-2 bottom-3 bg-gradient-to-b from-slate-800 to-slate-900 rounded-2xl overflow-hidden",children:[(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 flex justify-center gap-4 pt-3",children:[(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 relative",children:[(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 w-4 h-5 bg-gradient-to-b from-cyan-300 to-cyan-500 rounded-full shadow-lg shadow-cyan-400/60 animate-pulse"}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-0.5 left-0.5 w-1.5 h-1.5 bg-white/70 rounded-full"})]}),(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 relative",children:[(0,s.jsx)("div",{style:{animationDelay:"0.1s"},className:"jsx-dbdb91c1aced38f5 w-4 h-5 bg-gradient-to-b from-cyan-300 to-cyan-500 rounded-full shadow-lg shadow-cyan-400/60 animate-pulse"}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-0.5 left-0.5 w-1.5 h-1.5 bg-white/70 rounded-full"})]})]}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 flex justify-center mt-2",children:(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 w-6 h-3 border-b-[3px] border-cyan-400 rounded-full"})})]})]}),(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 absolute -top-3 left-1/2 -translate-x-1/2",children:[(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 w-1.5 h-4 bg-gradient-to-b from-blue-300 to-blue-400 rounded-full"}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute -top-2 left-1/2 -translate-x-1/2 w-3 h-3 bg-gradient-to-br from-green-400 to-emerald-500 rounded-full animate-pulse shadow-lg shadow-green-400/50"})]}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-5 -left-2 w-4 h-8 bg-gradient-to-b from-emerald-400 to-emerald-600 rounded-full shadow-md"}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-5 -right-2 w-4 h-8 bg-gradient-to-b from-emerald-400 to-emerald-600 rounded-full shadow-md"}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute -top-1 left-1/2 -translate-x-1/2 w-20 h-3 border-t-4 border-emerald-500 rounded-t-full"})]}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-[76px] left-1/2 -translate-x-1/2 w-6 h-3 bg-gradient-to-b from-blue-300 to-blue-400 rounded"}),(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-[82px] left-1/2 -translate-x-1/2 w-24 h-14 bg-gradient-to-b from-blue-100 via-blue-200 to-blue-300 rounded-2xl border-2 border-blue-300 shadow-xl",children:[(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-2 left-1/2 -translate-x-1/2 w-12 h-8 bg-gradient-to-br from-emerald-400 to-teal-500 rounded-xl flex items-center justify-center shadow-inner",children:(0,s.jsx)(m.Z,{className:"w-5 h-5 text-white"})}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute bottom-1.5 left-3 w-2 h-2 bg-blue-400 rounded-full animate-pulse shadow-sm shadow-blue-400/50"}),(0,s.jsx)("div",{style:{animationDelay:"0.5s"},className:"jsx-dbdb91c1aced38f5 absolute bottom-1.5 right-3 w-2 h-2 bg-green-400 rounded-full animate-pulse shadow-sm shadow-green-400/50"})]}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-[86px] left-1 animate-wave origin-top",children:(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 w-4 h-10 bg-gradient-to-b from-blue-200 to-blue-300 rounded-full border border-blue-300 shadow",children:(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute -bottom-1 left-1/2 -translate-x-1/2 w-5 h-4 bg-blue-200 rounded-full border border-blue-300"})})}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute top-[86px] right-1",children:(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 w-4 h-8 bg-gradient-to-b from-blue-200 to-blue-300 rounded-full border border-blue-300 shadow rotate-6"})})]})}),(0,s.jsx)("div",{className:"jsx-dbdb91c1aced38f5 absolute -bottom-2 left-1/2 -translate-x-1/2",children:(0,s.jsxs)("div",{className:"jsx-dbdb91c1aced38f5 flex items-center gap-1.5 bg-white/95 rounded-full px-2.5 py-1 shadow-lg border border-gray-100",children:[(0,s.jsxs)("span",{className:"jsx-dbdb91c1aced38f5 relative flex h-2 w-2",children:[(0,s.jsx)("span",{className:"jsx-dbdb91c1aced38f5 animate-ping absolute h-full w-full rounded-full bg-green-400 opacity-75"}),(0,s.jsx)("span",{className:"jsx-dbdb91c1aced38f5 relative rounded-full h-2 w-2 bg-green-500"})]}),(0,s.jsx)("span",{className:"jsx-dbdb91c1aced38f5 text-[10px] font-semibold text-gray-600",children:"Online"})]})})]}),(0,s.jsx)(l(),{id:"dbdb91c1aced38f5",children:"@-webkit-keyframes float{0%,100%{-webkit-transform:translatey(0);transform:translatey(0)}50%{-webkit-transform:translatey(-8px);transform:translatey(-8px)}}@-moz-keyframes float{0%,100%{-moz-transform:translatey(0);transform:translatey(0)}50%{-moz-transform:translatey(-8px);transform:translatey(-8px)}}@-o-keyframes float{0%,100%{-o-transform:translatey(0);transform:translatey(0)}50%{-o-transform:translatey(-8px);transform:translatey(-8px)}}@keyframes float{0%,100%{-webkit-transform:translatey(0);-moz-transform:translatey(0);-o-transform:translatey(0);transform:translatey(0)}50%{-webkit-transform:translatey(-8px);-moz-transform:translatey(-8px);-o-transform:translatey(-8px);transform:translatey(-8px)}}@-webkit-keyframes wave{0%,100%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}25%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}75%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}@-moz-keyframes wave{0%,100%{-moz-transform:rotate(0deg);transform:rotate(0deg)}25%{-moz-transform:rotate(-15deg);transform:rotate(-15deg)}75%{-moz-transform:rotate(10deg);transform:rotate(10deg)}}@-o-keyframes wave{0%,100%{-o-transform:rotate(0deg);transform:rotate(0deg)}25%{-o-transform:rotate(-15deg);transform:rotate(-15deg)}75%{-o-transform:rotate(10deg);transform:rotate(10deg)}}@keyframes wave{0%,100%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}25%{-webkit-transform:rotate(-15deg);-moz-transform:rotate(-15deg);-o-transform:rotate(-15deg);transform:rotate(-15deg)}75%{-webkit-transform:rotate(10deg);-moz-transform:rotate(10deg);-o-transform:rotate(10deg);transform:rotate(10deg)}}.animate-float.jsx-dbdb91c1aced38f5{-webkit-animation:float 3s ease-in-out infinite;-moz-animation:float 3s ease-in-out infinite;-o-animation:float 3s ease-in-out infinite;animation:float 3s ease-in-out infinite}.animate-wave.jsx-dbdb91c1aced38f5{-webkit-animation:wave 1.5s ease-in-out infinite;-moz-animation:wave 1.5s ease-in-out infinite;-o-animation:wave 1.5s ease-in-out infinite;animation:wave 1.5s ease-in-out infinite}"})]})}function Y(){var e,t,a,r,l,Y,W,M,O,V,B,G,Q,U,K,X;let{user:$}=(0,A.a)(),{endNavigation:J}=(0,F.H)(),[ee,et]=(0,d.useState)(""),[ea,es]=(0,d.useState)(!1),[er,el]=(0,d.useState)(!1),[ed,en]=(0,d.useState)(!1),[ei,eo]=(0,d.useState)(null),[ec,ex]=(0,d.useState)([]),[em,eu]=(0,d.useState)(!1),[eg,eh]=(0,d.useState)([]),[eb,ef]=(0,d.useState)(null),[ep,ej]=(0,d.useState)(!1),[ev,ey]=(0,d.useState)(!1),[ew,eN]=(0,d.useState)(""),[ek,eZ]=(0,d.useState)(!1),[eC,e_]=(0,d.useState)({name:"",email:"",category:"general",subject:"",message:""});(0,d.useEffect)(()=>{$&&e_(e=>({...e,name:$.full_name||$.username||"",email:$.email||""}))},[$]),(0,d.useEffect)(()=>{J()},[J]),(0,d.useEffect)(()=>{(async()=>{try{var e;let t=await E.api.get("/support/faqs");(null===(e=t.data)||void 0===e?void 0:e.categories)&&eh(t.data.categories)}catch(e){eh([{id:"getting-started",title:"Getting Started",faqs:[{question:"How do I create my first campaign?",answer:'Navigate to Campaigns, click "New Campaign", select your platform, and follow the wizard to set up goals, audience, and content.'},{question:"How do I integrate social media accounts?",answer:"Go to Ads & Assets, click on the platform you want to connect, and follow the authorization process."},{question:"What platforms are supported?",answer:"We support Facebook, Instagram, WhatsApp, LinkedIn, Twitter/X, YouTube, Pinterest, and TikTok."}]},{id:"billing",title:"Billing & Plans",faqs:[{question:"What is my message limit?",answer:"Starter: 10K/month, Pro: 100K/month, Enterprise: Unlimited. Check Billing for usage."},{question:"How do credits work?",answer:"Credits power AI features like content generation and automated responses. Reset monthly."},{question:"Can I change my plan?",answer:"Yes, upgrades apply immediately. Downgrades take effect next billing cycle."}]},{id:"features",title:"Features & Tools",faqs:[{question:"How do AI agents work?",answer:"AI agents automate tasks using advanced language models - generating content, responding to messages, and analyzing data."},{question:"Can I schedule posts?",answer:"Yes! Use Social Hub to create and schedule content across all platforms with optimal timing."},{question:"How do I set up auto-responses?",answer:"Navigate to Workflows, create automation with triggers (message, keyword, time) and actions."}]}])}})()},[]);let eS=async()=>{try{var e;eu(!0);let t=await E.api.get("/support/tickets");(null===(e=t.data)||void 0===e?void 0:e.tickets)&&ex(t.data.tickets)}catch(e){console.error("Failed to fetch tickets:",e)}finally{eu(!1)}};(0,d.useEffect)(()=>{er&&eS()},[er]);let ez=[{title:"Documentation",description:"Guides & references",icon:u.Z,count:"200+",href:"#"},{title:"Video Tutorials",description:"Step-by-step videos",icon:g.Z,count:"50+",href:"#"},{title:"API Reference",description:"Developer docs",icon:h.Z,count:"REST",href:"#"},{title:"Community",description:"Connect with users",icon:b.Z,count:"10k+",href:"#"}],eI={"getting-started":f.Z,billing:p.Z,features:j.Z},eT=eg.flatMap(e=>e.faqs.map(t=>({...t,category:e.title}))),eq=ee?eT.filter(e=>e.question.toLowerCase().includes(ee.toLowerCase())||e.answer.toLowerCase().includes(ee.toLowerCase())):[],eD=async e=>{try{var t;ey(!0);let a=await E.api.get("/support/tickets/".concat(e));(null===(t=a.data)||void 0===t?void 0:t.success)&&(ef(a.data),ej(!0))}catch(e){console.error("Failed to fetch ticket details:",e),H.default.error("Failed to load ticket details")}finally{ey(!1)}},eR=async()=>{var e,t;if(ew.trim()&&(null==eb?void 0:null===(e=eb.ticket)||void 0===e?void 0:e.id))try{eZ(!0);let e=await E.api.post("/support/tickets/".concat(eb.ticket.id,"/messages"),{message:ew});(null===(t=e.data)||void 0===t?void 0:t.success)&&(H.default.success("Reply sent successfully"),eN(""),eD(eb.ticket.id))}catch(e){console.error("Failed to send reply:",e),H.default.error((0,P._V)(e,"Failed to send reply"))}finally{eZ(!1)}},eA=async e=>{var t,a,s;if(e.preventDefault(),!eC.subject.trim()){H.default.error("Please enter a subject");return}if(eC.subject.trim().length<5){H.default.error("Subject must be at least 5 characters");return}if(!eC.message.trim()){H.default.error("Please enter a message");return}if(eC.message.trim().length<10){H.default.error("Message must be at least 10 characters");return}try{es(!0);let e=await E.api.post("/support/tickets",{subject:eC.subject,description:eC.message,category:eC.category,priority:"medium"});(null===(t=e.data)||void 0===t?void 0:t.success)&&(eo({ticket_number:e.data.ticket_number,email:(null==$?void 0:$.email)||eC.email}),en(!0),e_(e=>({...e,subject:"",message:"",category:"general"})),el(!0),eS())}catch(r){console.error("Failed to submit ticket:",r);let e=null===(s=r.response)||void 0===s?void 0:null===(a=s.data)||void 0===a?void 0:a.detail,t="Failed to submit ticket";e&&(Array.isArray(e)?t=e.map(e=>{let t=Array.isArray(e.loc)?e.loc[e.loc.length-1]:"",a=e.msg||e.message||"Invalid value";return t?"".concat(t,": ").concat(a):a}
1).join(". "):"string"==typeof e?t=e:"object"==typeof e&&e.msg&&(t=e.msg)),t.includes("at least 5")?t="Subject must be at least 5 characters":t.includes("at least 10")&&(t="Message must be at least 10 characters"),H.default.error(t)}finally{es(!1)}},eF=e=>{switch(e){case"open":return"bg-blue-100 text-blue-700 border-blue-300";case"in_progress":return"bg-yellow-100 text-yellow-700 border-yellow-300";case"resolved":return"bg-green-100 text-green-700 border-green-300";default:return"bg-gray-100 text-gray-700 border-gray-300"}},eE=e=>e.replace("_"," ").replace(/\b\w/g,e=>e.toUpperCase());return(0,s.jsxs)("div",{className:"min-h-screen p-3 sm:p-4 md:p-6 space-y-4 sm:space-y-6",children:[(0,s.jsxs)("div",{className:"relative rounded-xl sm:rounded-2xl bg-gradient-to-r from-green-500 via-emerald-500 to-teal-500 p-4 sm:p-6 md:p-8",children:[(0,s.jsxs)("div",{className:"absolute inset-0 overflow-hidden rounded-xl sm:rounded-2xl pointer-events-none",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_30%_50%,rgba(255,255,255,0.15),transparent)]"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_70%_80%,rgba(255,255,255,0.1),transparent)]"}),(0,s.jsx)("div",{className:"absolute -top-20 -right-20 w-60 h-60 bg-white/10 rounded-full blur-3xl"}),(0,s.jsx)("div",{className:"absolute -bottom-20 -left-20 w-60 h-60 bg-emerald-300/20 rounded-full blur-3xl"})]}),(0,s.jsxs)("div",{className:"relative flex flex-col lg:flex-row items-center gap-6 lg:gap-10",children:[(0,s.jsxs)("div",{className:"flex-1 text-center lg:pr-96 order-1 lg:order-2",children:[(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-white/20 backdrop-blur-sm text-white text-sm font-medium mb-3",children:[(0,s.jsx)(m.Z,{className:"h-4 w-4"}),"Help Center",(0,s.jsxs)("span",{className:"flex items-center gap-1 ml-1",children:[(0,s.jsx)("span",{className:"h-1.5 w-1.5 bg-green-300 rounded-full animate-pulse"}),(0,s.jsx)("span",{className:"text-xs text-green-100",children:"Online"})]})]}),(0,s.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-white mb-2",children:"How can we help you?"}),(0,s.jsx)("p",{className:"text-green-100 mb-5 text-sm md:text-base",children:"Search our knowledge base or browse FAQs below"}),(0,s.jsxs)("div",{className:"relative max-w-xl mx-auto","data-tour":"support-search",children:[(0,s.jsx)(v.Z,{className:"absolute left-4 top-1/2 -translate-y-1/2 h-5 w-5 text-gray-400"}),(0,s.jsx)(i.I,{placeholder:"Search for help...",value:ee,onChange:e=>et(e.target.value),className:"pl-12 pr-10 h-12 text-base bg-white border-0 rounded-xl shadow-lg focus:ring-2 focus:ring-white/50"}),ee&&(0,s.jsx)("button",{onClick:()=>et(""),className:"absolute right-4 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:(0,s.jsx)(y.Z,{className:"h-4 w-4"})}),ee&&(0,s.jsx)("div",{className:"absolute top-full left-0 right-0 mt-2 bg-white rounded-xl shadow-2xl border border-gray-200 z-[9999] max-h-80 overflow-y-auto",children:eq.length>0?eq.map((e,t)=>(0,s.jsxs)("div",{className:"p-4 hover:bg-gray-50 cursor-pointer border-b last:border-0",children:[(0,s.jsx)("p",{className:"font-medium text-sm text-left text-gray-900",children:e.question}),(0,s.jsx)("p",{className:"text-xs text-gray-500 text-left mt-1",children:e.answer})]},t)):(0,s.jsx)("div",{className:"p-6 text-center",children:(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"No results found"})})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-4 mt-4 text-white/80 text-xs",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(w.Z,{className:"h-3.5 w-3.5 text-green-200"}),(0,s.jsx)("span",{children:"98% Satisfaction"})]}),(0,s.jsx)("div",{className:"h-3 w-px bg-white/30"}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(N.Z,{className:"h-3.5 w-3.5 text-green-200"}),(0,s.jsx)("span",{children:"<4h Response"})]}),(0,s.jsx)("div",{className:"h-3 w-px bg-white/30"}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(k.Z,{className:"h-3.5 w-3.5 text-green-200"}),(0,s.jsx)("span",{children:"24/7 Support"})]})]})]}),(0,s.jsx)("div",{className:"flex-shrink-0 order-2 lg:order-3 hidden lg:block lg:mr-24",children:(0,s.jsx)(L,{})})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-2 md:grid-cols-4 gap-2 sm:gap-3","data-tour":"support-quick-links",children:ez.map((e,t)=>{let a=e.icon;return(0,s.jsx)("div",{className:"group p-4 rounded-xl bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm border border-gray-200/50 dark:border-gray-700/50 hover:shadow-lg hover:border-green-300 transition-all cursor-pointer",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"h-10 w-10 rounded-lg bg-gradient-to-br from-green-500 to-emerald-600 flex items-center justify-center shadow-md",children:(0,s.jsx)(a,{className:"h-5 w-5 text-white"})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("h3",{className:"font-semibold text-sm truncate",children:e.title}),(0,s.jsx)("p",{className:"text-xs text-gray-500 truncate",children:e.description})]}),(0,s.jsx)(c.C,{className:"bg-green-100 text-green-700 text-xs",children:e.count})]})},t)})}),$&&(0,s.jsxs)("div",{className:"flex items-center justify-between p-4 rounded-xl bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm border border-gray-200/50 dark:border-gray-700/50",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(Z.Z,{className:"h-5 w-5 text-green-600"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-semibold text-sm",children:"My Support Tickets"}),(0,s.jsx)("p",{className:"text-xs text-gray-500",children:"View and track y
1our submitted tickets"})]})]}),(0,s.jsx)(n.z,{variant:er?"default":"outline",size:"sm",onClick:()=>el(!er),children:er?"Hide Tickets":"View Tickets"})]}),er&&(0,s.jsxs)("div",{className:"rounded-xl bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm border border-gray-200/50 dark:border-gray-700/50 overflow-hidden",children:[(0,s.jsx)("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:(0,s.jsx)("h3",{className:"font-semibold",children:"Your Support Tickets"})}),(0,s.jsx)("div",{className:"p-4",children:em?(0,s.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,s.jsx)(C.Z,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):ec.length>0?(0,s.jsx)("div",{className:"space-y-3",children:ec.map(e=>(0,s.jsx)("div",{onClick:()=>eD(e.id),className:"p-4 rounded-lg border border-gray-200 dark:border-gray-700 hover:border-green-300 hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-all cursor-pointer",children:(0,s.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,s.jsx)("span",{className:"text-xs font-mono text-gray-500",children:e.ticket_number}),(0,s.jsx)(c.C,{className:"text-xs ".concat(eF(e.status)),children:eE(e.status)}),e.has_admin_response&&(0,s.jsxs)(c.C,{variant:"outline",className:"text-xs text-green-600 border-green-300",children:[(0,s.jsx)(w.Z,{className:"h-3 w-3 mr-1"}),"Responded"]})]}),(0,s.jsx)("h4",{className:"font-medium text-sm truncate",children:e.subject}),(0,s.jsxs)("div",{className:"flex items-center gap-4 mt-1 text-xs text-gray-500",children:[(0,s.jsx)("span",{className:"capitalize",children:e.category.replace("_"," ")}),(0,s.jsx)("span",{children:new Date(e.created_at).toLocaleDateString()}),e.message_count>0&&(0,s.jsxs)("span",{children:[e.message_count," message",e.message_count>1?"s":""]})]})]}),ev?(0,s.jsx)(C.Z,{className:"h-5 w-5 text-gray-400 animate-spin"}):(0,s.jsx)(_.Z,{className:"h-5 w-5 text-gray-400"})]})},e.id))}):(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)(Z.Z,{className:"h-12 w-12 text-gray-300 mx-auto mb-3"}),(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"No tickets yet"}),(0,s.jsx)("p",{className:"text-xs text-gray-400 mt-1",children:"Submit a ticket below and it will appear here"})]})})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4","data-tour":"support-faq",children:eg.map(e=>{let t=eI[e.id]||S.Z;return(0,s.jsxs)("div",{className:"rounded-xl bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm border border-gray-200/50 dark:border-gray-700/50 overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-gradient-to-r from-green-500 to-emerald-600",children:[(0,s.jsx)("div",{className:"h-8 w-8 rounded-lg bg-white/20 flex items-center justify-center",children:(0,s.jsx)(t,{className:"h-4 w-4 text-white"})}),(0,s.jsx)("h3",{className:"font-semibold text-white",children:e.title})]}),(0,s.jsx)("div",{className:"p-3",children:(0,s.jsx)(x.UQ,{type:"single",collapsible:!0,children:e.faqs.map((t,a)=>(0,s.jsxs)(x.Qd,{value:"".concat(e.id,"-").concat(a),className:"border-b last:border-0",children:[(0,s.jsx)(x.o4,{className:"text-left text-sm py-3 hover:no-underline",children:t.question}),(0,s.jsx)(x.vF,{className:"text-sm text-gray-600 dark:text-gray-400 pb-3",children:t.answer})]},a))})})]},e.id)})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-4 sm:gap-5",children:[(0,s.jsxs)("div",{className:"md:col-span-1 lg:col-span-2 relative overflow-hidden rounded-xl sm:rounded-2xl bg-gradient-to-br from-white via-gray-50 to-emerald-50/50 dark:from-gray-800 dark:via-gray-800 dark:to-emerald-900/20 border border-gray-200/60 dark:border-gray-700/60 shadow-xl",children:[(0,s.jsx)("div",{className:"absolute -top-20 -right-20 w-40 h-40 bg-gradient-to-br from-emerald-400/20 to-green-500/20 rounded-full blur-3xl"}),(0,s.jsx)("div",{className:"absolute -bottom-10 -left-10 w-32 h-32 bg-gradient-to-tr from-blue-400/15 to-cyan-500/15 rounded-full blur-2xl"}),(0,s.jsxs)("div",{className:"relative p-4 sm:p-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-5",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"h-12 w-12 rounded-xl bg-gradient-to-br from-emerald-500 to-green-600 flex items-center justify-center shadow-lg shadow-emerald-500/30",children:(0,s.jsx)(m.Z,{className:"h-6 w-6 text-white"})}),(0,s.jsxs)("span",{className:"absolute -top-1 -right-1 flex h-3 w-3",children:[(0,s.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),(0,s.jsx)("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-green-500 border-2 border-white"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-bold text-lg text-gray-900 dark:text-white",children:"Need more help?"}),(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Our team is ready to assist you"})]})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("a",{href:"mailto:[email protected]",className:"group flex items-center gap-4 p-4 rounded-xl bg-white dark:bg-gray-700/50 border border-gray-100 dark:border-gray-600/50 hover:border-emerald-300 dark:hover:border-emerald-600 hover:shadow-lg hover:shadow-emerald-500/10 transition-all duration-300 cursor-pointer hover:-translate-y-0.5",children:[(0,s.jsx)("div",{className:"relative h-11 w-11 rounded-xl bg-gradient-to-br from-emerald-500 to-green-600 flex items-center justify-center shadow-md group-hover:shadow-lg group-hover:shadow-emerald-500/30 transition-all duration-300 group-hover:scale-110",children:(0,s.jsx)(k.Z,{className:"h-5 w-5 text-white"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"font-semibold text-sm text-gray-900 dark:text-white group-hover:text-emerald-600 dark:group-hover:text-emerald-400 transition-colors",children:"Live Chat"}),(0,s.jsxs)("span",{className:"flex items-center gap-1.5 px-2 py-0.5 rounded-full bg-green-100 dark:bg-green-900/50 text-xs font-medium text-green-700 dark:text-green-400",children:[(0,s.jsx)("span",{className:"h-1.5 w-1.5 bg-green-500 rounded-full animate-pulse"}),"Online"]})]}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-0.5",children:"Get instant support from our team"})]}),(0,s.jsx)(_.Z,{className:"h-5 w-5 text-gray-300 group-hover:text-emerald-500 group-hover:translate-x-1 transition-all duration-300"})]}),(0,s.jsxs)("a",{href:"mailto:[email protected]",className:"group flex items-center gap-4 p-4 rounded-xl bg-white dark:bg-gray-700/50 border border-gray-100 dark:border-gray-600/50 hover:border-blue-300 dark:hover:border-blue-600 hover:shadow-lg hover:shadow-blue-500/10 transition-all duration-300 cursor-pointer hover:-translate-y-0.5",children:[(0,s.jsx)("div",{className:"h-11 w-11 rounded-xl bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center shadow-md group-hover:shadow-lg group-hover:shadow-blue-500/30 transition-all duration-300 group-hover:scale-110",children:(0,s.jsx)(z.Z,{className:"h-5 w-5 text-white"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("span",{className:"font-semibold text-sm text-gray-900 dark:text-white group-hover:text-blue-600 dar
1k:group-hover:text-blue-400 transition-colors",children:"Email Support"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-0.5",children:"[email protected]"})]}),(0,s.jsx)(_.Z,{className:"h-5 w-5 text-gray-300 group-hover:text-blue-500 group-hover:translate-x-1 transition-all duration-300"})]}),(0,s.jsxs)("div",{className:"group flex items-center gap-4 p-4 rounded-xl bg-white dark:bg-gray-700/50 border border-gray-100 dark:border-gray-600/50 hover:border-purple-300 dark:hover:border-purple-600 hover:shadow-lg hover:shadow-purple-500/10 transition-all duration-300 cursor-pointer hover:-translate-y-0.5",children:[(0,s.jsx)("div",{className:"h-11 w-11 rounded-xl bg-gradient-to-br from-purple-500 to-pink-600 flex items-center justify-center shadow-md group-hover:shadow-lg group-hover:shadow-purple-500/30 transition-all duration-300 group-hover:scale-110",children:(0,s.jsx)(I.Z,{className:"h-5 w-5 text-white"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("span",{className:"font-semibold text-sm text-gray-900 dark:text-white group-hover:text-purple-600 dark:group-hover:text-purple-400 transition-colors",children:"Phone Support"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-0.5",children:"Mon-Fri, 9am-6pm IST"})]}),(0,s.jsx)(_.Z,{className:"h-5 w-5 text-gray-300 group-hover:text-purple-500 group-hover:translate-x-1 transition-all duration-300"})]})]}),(0,s.jsxs)("div",{className:"mt-5 flex items-center justify-center gap-2 py-3 px-4 rounded-xl bg-gradient-to-r from-emerald-50 to-green-50 dark:from-emerald-900/30 dark:to-green-900/30 border border-emerald-200/50 dark:border-emerald-700/30",children:[(0,s.jsx)(N.Z,{className:"h-4 w-4 text-emerald-600"}),(0,s.jsxs)("span",{className:"text-xs font-medium text-emerald-700 dark:text-emerald-400",children:["Average response time: ",(0,s.jsx)("span",{className:"font-bold",children:"under 4 hours"})]})]})]})]}),(0,s.jsxs)("div",{className:"lg:col-span-3 relative overflow-hidden rounded-2xl bg-gradient-to-br from-white via-gray-50 to-blue-50/50 dark:from-gray-800 dark:via-gray-800 dark:to-blue-900/20 border border-gray-200/60 dark:border-gray-700/60 shadow-xl","data-tour":"support-ticket",children:[(0,s.jsx)("div",{className:"absolute -top-16 -right-16 w-48 h-48 bg-gradient-to-br from-blue-400/15 to-indigo-500/15 rounded-full blur-3xl"}),(0,s.jsx)("div",{className:"absolute -bottom-12 -left-12 w-36 h-36 bg-gradient-to-tr from-emerald-400/10 to-teal-500/10 rounded-full blur-2xl"}),(0,s.jsxs)("div",{className:"relative p-6",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"h-12 w-12 rounded-xl bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center shadow-lg shadow-blue-500/30",children:(0,s.jsx)(Z.Z,{className:"h-6 w-6 text-white"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-bold text-lg text-gray-900 dark:text-white",children:"Submit a Ticket"}),(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"We'll get back to you within 24 hours"})]})]}),(0,s.jsxs)("div",{className:"hidden sm:flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-blue-100 dark:bg-blue-900/50 text-xs font-medium text-blue-700 dark:text-blue-400",children:[(0,s.jsx)(j.Z,{className:"h-3.5 w-3.5"}),"Priority Support"]})]}),(0,s.jsxs)("form",{onSubmit:eA,className:"space-y-4",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"group",children:[(0,s.jsxs)(o._,{className:"text-xs font-semibold text-gray-700 dark:text-gray-300 flex items-center gap-1.5",children:[(0,s.jsx)(b.Z,{className:"h-3.5 w-3.5 text-gray-400"}),"Name"]}),(0,s.jsx)(i.I,{placeholder:"Your name",className:"mt-1.5 h-10 text-sm bg-white dark:bg-gray-700 border-gray-200 dark:border-gray-600 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 transition-all",value:eC.name,onChange:e=>e_({...eC,name:e.target.value}),disabled:!!(null==$?void 0:$.full_name)})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)(o._,{className:"text-xs font-semibold text-gray-700 dark:text-gray-300 flex items-center gap-1.5",children:[(0,s.jsx)(z.Z,{className:"h-3.5 w-3.5 text-gray-400"}),"Email"]}),(0,s.jsx)(i.I,{type:"email",placeholder:"[email protected]",className:"mt-1.5 h-10 text-sm bg-white dark:bg-gray-700 border-gray-200 dark:border-gray-600 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 transition-all",value:eC.email,onChange:e=>e_({...eC,email:e.target.value}),disabled:!!(null==$?void 0:$.email)})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)(o._,{className:"text-xs font-semibold text-gray-700 dark:text-gray-300 flex items-center gap-1.5",children:[(0,s.jsx)(p.Z,{className:"h-3.5 w-3.5 text-gray-400"}),"Category"]}),(0,s.jsxs)("select",{className:"mt-1.5 w-full h-10 px-3 text-sm bg-white dark:bg-gray-700 border border-gray-200 dark:border-gray-600 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 transition-all cursor-pointer",value:eC.category,onChange:e=>e_({...eC,category:e.target.value}),children:[(0,s.jsx)("option",{value:"general",children:"General Question"}),(0,s.jsx)("option",{value:"technical",children:"Technical Issue"}),(0,s.jsx)("option",{value:"billing",children:"Billing"}),(0,s.jsx)("option",{value:"feature_request",children:"Feature Request"}),(0,s.jsx)("option",{value:"bug_report",children:"Bug Report"}),(0,s.jsx)("option",{value:"account",children:"Account"}),(0,s.jsx)("option",{value:"integration",children:"Integration"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)(o._,{className:"text-xs font-semibold text-gray-700 dark:text-gray-300 flex items-center gap-1.5",children:[(0,s.jsx)(f.Z,{className:"h-3.5 w-3.5 text-gray-400"}),"Subject"]}),(0,s.jsx)(i.I,{placeholder:"Brief description of your issue",className:"mt-1.5 h-10 text-sm bg-white dark:bg-gray-700 border-gray-200 dark:border-gray-600 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 transition-all",value:eC.subject,onChange:e=>e_({...eC,subject:e.target.value}),required:!0})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)(o._,{className:"text-xs font-semibold text-gray-700 dark:text-gray-300 flex items-center gap-1.5",children:[(0,s.jsx)(k.Z,{className:"h-3.5 w-3.5 text-gray-400"}),"Message"]}),(0,s.jsx)("textarea",{className:"mt-1.5 w-full p-3 text-sm bg-white dark:bg-gray-700 border border-gray-200 dark:border-gray-600 rounded-xl resize-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 transition-all",rows:4,placeholder:"Please describe your issue in detail. Include any relevant information that might help us assist you faster...",value:eC.message,onChange:e=>e_({...eC,message:e.target.value}),required:!0})]}),(0,s.jsx)(n.z,{type:"submit",disabled:ea,className:"w-full h-12 bg-gradient-to-r from-blue-500 via-blue-600 to-indigo-600 hover:from-blue-600 hover:via-blue-700 hover:to-indigo-700 text-white rounded-xl font-semibold shadow-lg shadow-blue-500/30 hover:shadow-xl hover:shadow-blue-500/40 transition-all duration-300 hover:-translate-y-0.5 group",children:ea?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(C.Z,{className:"h-5 w-5 mr-2 animate-spin"}),"Submitting your ticket..."]}
1):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(T.Z,{className:"h-5 w-5 mr-2 group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform"}),"Submit Ticket",(0,s.jsx)(q.Z,{className:"h-4 w-4 ml-2 opacity-0 -translate-x-2 group-hover:opacity-100 group-hover:translate-x-0 transition-all"})]})}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-6 pt-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-gray-500",children:[(0,s.jsx)(w.Z,{className:"h-3.5 w-3.5 text-green-500"}),(0,s.jsx)("span",{children:"Secure & Encrypted"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-gray-500",children:[(0,s.jsx)(N.Z,{className:"h-3.5 w-3.5 text-blue-500"}),(0,s.jsx)("span",{children:"24h Response"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-gray-500",children:[(0,s.jsx)(j.Z,{className:"h-3.5 w-3.5 text-purple-500"}),(0,s.jsx)("span",{children:"Expert Support"})]})]})]})]})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between p-4 rounded-xl bg-gradient-to-r from-green-500/10 to-emerald-500/10 border border-green-200/50 dark:border-green-700/30",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"h-10 w-10 rounded-lg bg-gradient-to-br from-green-500 to-emerald-600 flex items-center justify-center",children:(0,s.jsx)(N.Z,{className:"h-5 w-5 text-white"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-medium text-sm",children:"Average Response Time"}),(0,s.jsx)("p",{className:"text-xs text-gray-500",children:"Our team responds within 2-4 hours"})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-6",children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("p",{className:"text-xl font-bold text-green-600",children:"98%"}),(0,s.jsx)("p",{className:"text-xs text-gray-500",children:"Satisfaction"})]}),(0,s.jsx)("div",{className:"h-8 w-px bg-gray-200 dark:bg-gray-700"}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("p",{className:"text-xl font-bold text-green-600",children:"<4h"}),(0,s.jsx)("p",{className:"text-xs text-gray-500",children:"Response"})]}),(0,s.jsx)("div",{className:"h-8 w-px bg-gray-200 dark:bg-gray-700"}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("p",{className:"text-xl font-bold text-green-600",children:"24/7"}),(0,s.jsx)("p",{className:"text-xs text-gray-500",children:"Chat"})]})]})]}),ed&&ei&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",children:(0,s.jsxs)("div",{className:"relative w-full max-w-md bg-white dark:bg-gray-800 rounded-2xl shadow-2xl overflow-hidden animate-in zoom-in-95 duration-300",children:[(0,s.jsxs)("div",{className:"bg-gradient-to-r from-green-500 via-emerald-500 to-teal-500 p-6 text-center",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-white/20 rounded-full mb-4",children:(0,s.jsx)(w.Z,{className:"w-10 h-10 text-white"})}),(0,s.jsx)("h2",{className:"text-2xl font-bold text-white",children:"Ticket Raised Successfully!"}),(0,s.jsx)("p",{className:"text-green-100 mt-1",children:"Our team will c
1ontact you soon"})]}),(0,s.jsxs)("div",{className:"p-6 space-y-4",children:[(0,s.jsxs)("div",{className:"bg-gray-50 dark:bg-gray-700/50 rounded-xl p-4 text-center",children:[(0,s.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-1",children:"Your Ticket Number"}),(0,s.jsx)("p",{className:"text-2xl font-bold text-green-600 dark:text-green-400",children:ei.ticket_number})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsxs)("div",{className:"bg-blue-50 dark:bg-blue-900/20 rounded-xl p-3 text-center",children:[(0,s.jsx)(z.Z,{className:"w-5 h-5 mx-auto text-blue-500 mb-1"}),(0,s.jsx)("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Confirmation sent to"}),(0,s.jsx)("p",{className:"text-xs font-medium text-gray-900 dark:text-white truncate",children:ei.email})]}),(0,s.jsxs)("div",{className:"bg-purple-50 dark:bg-purple-900/20 rounded-xl p-3 text-center",children:[(0,s.jsx)(N.Z,{className:"w-5 h-5 mx-auto text-purple-500 mb-1"}),(0,s.jsx)("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Response time"}),(0,s.jsx)("p",{className:"text-xs font-medium text-gray-900 dark:text-white",children:"Under 4 hours"})]})]}),(0,s.jsxs)("div",{className:"border border-gray-200 dark:border-gray-700 rounded-xl p-4",children:[(0,s.jsxs)("h4",{className:"font-semibold text-sm mb-3 flex items-center gap-2",children:[(0,s.jsx)(j.Z,{className:"w-4 h-4 text-yellow-500"}),"What happens next?"]}),(0,s.jsxs)("ul",{className:"space-y-2 text-sm text-gray-600 dark:text-gray-400",children:[(0,s.jsxs)("li",{className:"flex items-start gap-2",children:[(0,s.jsx)(w.Z,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),(0,s.jsx)("span",{children:"Our support team will review your ticket"})]}),(0,s.jsxs)("li",{className:"flex items-start gap-2",children:[(0,s.jsx)(w.Z,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),(0,s.jsx)("span",{children:"You'll receive an email when we respond"})]}),(0,s.jsxs)("li",{className:"flex items-start gap-2",children:[(0,s.jsx)(w.Z,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),(0,s.jsx)("span",{children:'Track status anytime in "My Tickets" above'})]})]})]}),(0,s.jsx)(n.z,{onClick:()=>en(!1),className:"w-full h-12 bg-gradient-to-r from-green-500 to-emerald-600 hover:from-green-600 hover:to-emerald-700 text-white font-semibold rounded-xl",children:"Got it, thanks!"})]})]})}),ep&&eb&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",children:(0,s.jsxs)("div",{className:"relative w-full max-w-2xl max-h-[90vh] bg-white dark:bg-gray-800 rounded-2xl shadow-2xl overflow-hidden flex flex-col",children:[(0,s.jsxs)("div",{className:"bg-gradient-to-r from-blue-500 via-indigo-500 to-purple-500 p-4 flex items-center justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(Z.Z,{className:"w-5 h-5 text-white"}),(0,s.jsx)("span",{className:"text-white font-mono text-sm",children:null===(e=eb.ticket)||void 0===e?void 0:e.ticket_number}),(0,s.jsx)(c.C,{className:"text-xs ".concat((null===(t=eb.ticket)||void 0===t?void 0:t.status)==="open"?"bg-blue-100 text-blue-700":(null===(a=eb.ticket)||void 0===a?void 0:a.status)==="in_progress"?"bg-yellow-100 text-yellow-700":(null===(r=eb.ticket)||void 0===r?void 0:r.status)==="resolved"?"bg-green-100 text-green-700":"bg-gray-100 text-gray-700"),children:eE((null===(l=eb.ticket)||void 0===l?void 0:l.status)||"")})]}),(0,s.jsx)("h2",{className:"text-lg font-bold text-white mt-1",children:null===(Y=eb.ticket)||void 0===Y?void 0:Y.subject})]}),(0,s.jsx)("button",{onClick:()=>{ej(!1),ef(null),eN("")},className:"p-2 rounded-full hover:bg-white/20 transition-colors",children:(0,s.jsx)(y.Z,{className:"w-5 h-5 text-white"})})]}),(0,s.jsxs)("div",{className:"px-4 py-3 bg-gray-50 dark:bg-gray-700/50 border-b border-gray-200 dark:border-gray-700 flex items-center gap-4 text-xs text-gray-600 dark:text-gray-400",children:[(0,s.jsxs)("span",{className:"capitalize",children:[(0,s.jsx)("strong",{children:"Category:"})," ",null===(M=eb.ticket)||void 0===M?void 0:null===(W=M.category)||void 0===W?void 0:W.replace("_"," ")]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:"Priority:"})," ",null===(O=eb.ticket)||void 0===O?void 0:O.priority]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:"Created:"})," ",new Date(null===(V=eb.ticket)||void 0===V?void 0:V.created_at).toLocaleDateString()]})]}),(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[(0,s.jsxs)("div",{className:"bg-blue-50 dark:bg-blue-900/20 rounded-xl p-4 border border-blue-200 dark:border-blue-800",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center",children:(0,s.jsx)(b.Z,{className:"w-4 h-4 text-white"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-medium text-sm",children:"You"}),(0,s.jsx)("p",{className:"text-xs text-gray-500",children:new Date(null===(B=eb.ticket)||void 0===B?void 0:B.created_at).toLocaleStr
1ing()})]})]}),(0,s.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:null===(G=eb.ticket)||void 0===G?void 0:G.description})]}),null===(Q=eb.messages)||void 0===Q?void 0:Q.map(e=>(0,s.jsxs)("div",{className:"rounded-xl p-4 border ".concat(e.is_admin?"bg-green-50 dark:bg-green-900/20 border-green-200 dark:border-green-800":"bg-gray-50 dark:bg-gray-700/50 border-gray-200 dark:border-gray-700"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)("div",{className:"w-8 h-8 rounded-full flex items-center justify-center ".concat(e.is_admin?"bg-green-500":"bg-blue-500"),children:e.is_admin?(0,s.jsx)(m.Z,{className:"w-4 h-4 text-white"}):(0,s.jsx)(b.Z,{className:"w-4 h-4 text-white"})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"font-medium text-sm flex items-center gap-2",children:[e.author_name,e.is_admin&&(0,s.jsx)(c.C,{className:"bg-green-100 text-green-700 text-xs",children:"Support Team"})]}),(0,s.jsx)("p",{className:"text-xs text-gray-500",children:new Date(e.created_at).toLocaleString()})]})]}),(0,s.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:e.message}),e.attachments&&e.attachments.length>0&&(0,s.jsxs)("div",{className:"mt-3 pt-3 border-t border-gray-200 dark:border-gray-600",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)(D.Z,{className:"w-4 h-4 text-gray-500"}),(0,s.jsxs)("span",{className:"text-xs font-medium text-gray-600 dark:text-gray-400",children:["Attachments (",e.attachments.length,")"]})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:e.attachments.map((e,t)=>{let a="string"==typeof e?e:e.url,r="string"==typeof e?a.split("/").pop()||"attachment":e.filename||"attachment",l=("string"==typeof e?"":e.content_type||"").startsWith("image/")||/\.(jpg|jpeg|png|gif|webp)$/i.test(a);return(0,s.jsxs)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"group flex items-center gap-2 bg-white dark:bg-gray-700 border dark:border-gray-600 rounded-lg px-3 py-2 hover:bg-gray-50 dark:hover:bg-gray-600 transition-colors",children:[l?(0,s.jsx)("img",{src:a,alt:r,className:"w-8 h-8 object-cover rounded"}):(0,s.jsx)(p.Z,{className:"w-5 h-5 text-gray-400"}),(0,s.jsx)("span",{className:"text-sm truncate max-w-[150px] group-hover:text-blue-600",children:r}),(0,s.jsx)(R.Z,{className:"w-4 h-4 text-gray-400 group-hover:text-blue-600"})]},t)})})]})]},e.id)),(null===(U=eb.messages)||void 0===U?void 0:U.length)===0&&(0,s.jsxs)("div",{className:"text-center py-8 text-gray-500",children:[(0,s.jsx)(k.Z,{className:"w-10 h-10 mx-auto mb-2 text-gray-300"}),(0,s.jsx)("p",{className:"text-sm",children:"No replies yet"}),(0,s.jsx)("p",{className:"text-xs",children:"Our team will respond soon"})]})]}),(null===(K=eb.ticket)||void 0===K?void 0:K.status)!=="closed"&&(0,s.jsx)("div",{className:"p-4 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-700/50",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("textarea",{value:ew,onChange:e=>eN(e.target.value),placeholder:"Type your reply...",className:"flex-1 p-3 text-sm bg-white dark:bg-gray-700 border border-gray-200 dark:border-gray-600 rounded-xl resize-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500",rows:2}),(0,s.jsx)(n.z,{onClick:eR,disabled:!ew.trim()||ek,className:"px-4 bg-gradient-to-r from-blue-500 to-indigo-600 hover:from-blue-600 hover:to-indigo-700",children:ek?(0,s.jsx)(C.Z,{className:"w-4 h-4 animate-spin"}):(0,s.jsx)(T.Z,{className:"w-4 h-4"})})]})}),(null===(X=eb.ticket)||void 0===X?void 0:X.status)==="closed"&&(0,s.jsx)("div",{className:"p-4 border-t border-gray-200 dark:border-gray-700 bg-gray-100 dark:bg-gray-700/50 text-center",children:(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"This ticket is closed. Please create a new ticket if you need further assistance."})})]})})]})}},22549:function(e,t,a){a.d(t,{Qd:function(){return o},UQ:function(){return i},o4:function(){return c},vF:function(){return x}});var s=a(57437),r=a(2265),l=a(47307),d=a(40875),n=a(93448);let i=l.fC,o=r.forwardRef((e,t)=>
1{let{className:a,...r}=e;return(0,s.jsx)(l.ck,{ref:t,className:(0,n.cn)("border-b",a),...r})});o.displayName="AccordionItem";let c=r.forwardRef((e,t)=>{let{className:a,children:r,...i}=e;return(0,s.jsx)(l.h4,{className:"flex",children:(0,s.jsxs)(l.xz,{ref:t,className:(0,n.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",a),...i,children:[r,(0,s.jsx)(d.Z,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})});c.displayName=l.xz.displayName;let x=r.forwardRef((e,t)=>{let{className:a,children:r,...d}=e;return(0,s.jsx)(l.VY,{ref:t,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...d,children:(0,s.jsx)("div",{className:(0,n.cn)("pb-4 pt-0",a),children:r})})});x.displayName=l.VY.displayName},69174:function(e,t,a){a.d(t,{C:function(){return n}});var s=a(57437);a(2265);var r=a(90535),l=a(93448);let d=(0,r.j)("inline-flex items-center rounded-[4px] border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function n(e){let{className:t,variant:a,...r}=e;return(0,s.jsx)("div",{className:(0,l.cn)(d({variant:a}),t),...r})}},12381:function(e,t,a){a.d(t,{d:function(){return i},z:function(){return o}});var s=a(57437),r=a(2265),l=a(37053),d=a(90535),n=a(93448);let i=(0,d.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[4px] text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-[4px] px-3 text-xs",lg:"h-10 rounded-[4px] px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=r.forwardRef((e,t)=>{let{className:a,variant:r,size:d,asChild:o=!1,...c}=e,x=o?l.g7:"button";return(0,s.jsx)(x,{className:(0,n.cn)(i({variant:r,size:d,className:a})),ref:t,...c})});o.displayName="Button"},40279:function(e,t,a){a.d(t,{I:function(){return d}});var s=a(57437),r=a(2265),l=a(93448);let d=r.forwardRef((e,t)=>{let{className:a,type:r,error:d,...n}=e;return(0,s.jsx)("input",{type:r,"aria-invalid":d?"true":void 0,className:(0,l.cn)("flex h-9 w-full rounded-[4px] border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",d&&"border-red-500 focus-visible:ring-red-500",a),ref:t,...n})});d.displayName="Input"},75060:function(e,t,a){a.d(t,{_:function(){return o}});var s=a(57437),r=a(2265),l=a(6394),d=a(90535),n=a(93448);let i=(0,d.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.f,{ref:t,className:(0,n.cn)(i(),a),...r})});o.displayName=l.f.displayName},9310:function(e,t,a){a.d(t,{H:function(){return i},K:function(){return n}});var s=a(57437),r=a(2265),l=a(99376);let d=(0,r.createContext)(void 0);function n(e){let{children:t}=e,[a,n]=(0,r.useState)(!1),i=(0,l.useRouter)(),o=(0,l.usePathname)(),c=(0,r.useRef)(o),x=(0,r.useRef)(null),m=(0,r.useCallback)(()=>{x.current&&(clearTimeout(x.current),x.current=null)},[]),u=(0,r.useCallback)(()=>{m(),n(!0),x.current=setTimeout(()=>{n(!1)},4e3)},[m]),g=(0,r.useCallback)(()=>{m(),n(!1)},[m]),h=(0,r.useCallback)(e=>{e!==o&&(u(),i.push(e))},[i,o,u]);return(0,r.useEffect)(()=>
1(o!==c.current&&(c.current=o),()=>m()),[o,m]),(0,s.jsx)(d.Provider,{value:{isNavigating:a,startNavigation:u,endNavigation:g,navigateTo:h},children:t})}function i(){let e=(0,r.useContext)(d);if(!e)throw Error("useNavigation must be used within a NavigationProvider");return e}},93448:function(e,t,a){a.d(t,{cn:function(){return l}});var s=a(61994),r=a(53335);function l(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,r.m6)((0,s.W)(t))}}}]);
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.