PageSourceSearch

https://www.downundervisa.com/assets/chat-inquiries-D6irD2fI.js

js downundervisa.com collected 2026-10-09 05:21:31 UTC 4,118 bytes, 1 lines download raw bytes

1import{J as l,r as i,j as e}from"./main-Bo0oayNO.js";function p(){const{inquiries:t}=l.useLoaderData(),[a,r]=i.useState(null),x=s=>{r(d=>d===s?null:s)},c=s=>{if(!s)return"—";try{return new Date(s).toLocaleString("en-AU",{timeZone:"Australia/Brisbane",dateStyle:"medium",timeStyle:"short"})}catch{return"—"}};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Chat Inquiries"}),e.jsx("p",{className:"mt-1 text-gray-600",children:"Contact form submissions from the chat widget."})]}),t.length===0?e.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-12 text-center",children:e.jsx("p",{className:"text-gray-500",children:"No inquiries yet."})}):e.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[e.jsx("thead",{className:"bg-gray-50",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Name"}),e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Email"}),e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Mobile"}),e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Role"}),e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Country"}),e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Visa Type"}),e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Discussion"}),e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Date"})]})}),e.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:t.map(s=>e.jsx(m,{inquiry:s,expanded:a===s.id,onToggle:()=>x(s.id),formatDate:c},s.id))})]})})})]})}function m({inquiry:t,expanded:a,onToggle:r,formatDate:x}){return e.jsxs(e.Fragment,{children:[e.jsxs("tr",{className:"hover:bg-gray-50 cursor-pointer transition-colors",onClick:r,children:[e.jsxs("td",{className:"px-4 py-3 text-sm text-gray-900 whitespace-nowrap",children:[t.firstName," ",t.lastName]}),e.jsx("td",{className:"px-4 py-3 text-sm text-gray-700 whitespace-nowrap",children:e.jsx("a",{href:`mailto:${t.email}`,className:"text-primary-600 hover:underline",onClick:c=>c.stopPropagation(),children:t.email})}),e.jsx("td",{className:"px-4 py-3 text-sm text-gray-700 whitespace-nowrap",children:t.mobile||"—"}),e.jsx("td",{className:"px-4 py-3 text-sm text-gray-700 whitespace-nowrap",children:t.role}),e.jsx("td",{className:"px-4 py-3 text-sm text-gray-700 whitespace-nowrap",children:t.applicantCountry}),e.jsx("td",{className:"px-4 py-3 text-sm text-gray-700 whitespace-nowrap",children:t.visaType}),e.jsxs("td",{className:"px-4 py-3 text-sm text-gray-700",children:[e.jsx("div",{children:t.discussionMethod}),t.preferredDay&&t.preferredTime&&e.jsxs("div",{className:"text-xs text-gray-500 mt-0.5",children:[t.preferredDay,", ",t.preferredTime]})]}),e.jsx("td",{className:"px-4 py-3 text-sm text-gray-500 whitespace-nowrap",children:x(t.createdAt)})]}),a&&e.jsx("tr",{children:e.jsx("td",{colSpan:8,className:"px-4 py-4 bg-gray-50",children:e.jsxs("div",{className:"max-w-2xl",children:[e.jsx("p",{className:"text-xs font-medium text-gray-500 uppercase mb-1",children:"Situation"}),e.jsx("p",{className:"text-sm text-gray-800 whitespace-pre-wrap",children:t.situation}),t.preferredDay&&t.preferredTime&&e.jsxs("div",{className:"mt-3",children:[e.jsx("p",{className:"text-xs font-medium text-gray-500 uppercase mb-1",children:"Preferred Zoom Time"}),e.jsxs("p",{className:"text-sm text-gray-800",children:[t.preferredDay,", ",t.preferredTime]})]})]})})})]})}export{p as component};

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.