PageSourceSearch

https://www.downundervisa.com/assets/rfi-inquiries-D46Rlgo0.js

js downundervisa.com collected 2026-10-09 05:21:20 UTC 6,073 bytes, 1 lines download raw bytes

1import{z as c,r as x,j as e}from"./main-Bo0oayNO.js";function n(s){if(!s)return"—";try{return new Date(s).toLocaleString("en-AU",{timeZone:"Australia/Brisbane",dateStyle:"medium",timeStyle:"short"})}catch{return"—"}}function m(s){return s?s<1024?`${s} B`:s<1024*1024?`${Math.round(s/1024)} KB`:`${(s/(1024*1024)).toFixed(1)} MB`:"—"}function d(s,l){return[s,l].filter(Boolean).join(" ")||"—"}function t({label:s,children:l}){return e.jsxs("div",{children:[e.jsx("dt",{className:"text-xs font-medium uppercase tracking-wider text-gray-500",children:s}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 wrap-break-word",children:l||"—"})]})}function o({inquiry:s}){return e.jsxs("div",{className:"bg-gray-50 border-t border-gray-200 p-6 space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-900 mb-3",children:"Sponsor (Australian)"}),e.jsxs("dl",{className:"space-y-3",children:[e.jsx(t,{label:"Name",children:d(s.sponsorFirstName,s.sponsorLastName)}),e.jsx(t,{label:"Email",children:s.sponsorEmail?e.jsx("a",{href:`mailto:${s.sponsorEmail}`,className:"text-blue-600 hover:underline",children:s.sponsorEmail}):null}),e.jsx(t,{label:"Country of residence",children:s.sponsorCountry})]})]}),e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-900 mb-3",children:"Applicant (visa applicant)"}),e.jsxs("dl",{className:"space-y-3",children:[e.jsx(t,{label:"Name",children:d(s.applicantFirstName,s.applicantLastName)}),e.jsx(t,{label:"Email",children:s.applicantEmail?e.jsx("a",{href:`mailto:${s.applicantEmail}`,className:"text-blue-600 hover:underline",children:s.applicantEmail}):null}),e.jsx(t,{label:"Country of residence",children:s.applicantCountry})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-900 mb-3",children:"Visa details"}),e.jsxs("dl",{className:"space-y-3",children:[e.jsxs(t,{label:"Visa type",children:[s.visaType,s.visaTypeIsUnknown?e.jsx("span",{className:"ml-2 text-xs text-amber-700",children:"(unknown visa type)"}):null]}),e.jsx(t,{label:"Issue explanation",children:e.jsx("p",{className:"whitespace-pre-wrap",children:s.issueExplanation})})]})]}),e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[e.jsxs("h3",{className:"text-sm font-semibold text-gray-900 mb-3",children:["Attached files (",s.files.length,")"]}),s.files.length===0?e.jsx("p",{className:"text-sm text-gray-500",children:"No files attached."}):e.jsx("ul",{className:"divide-y divide-gray-200",children:s.files.map(l=>e.jsxs("li",{className:"py-2 flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm text-gray-900 truncate",children:l.originalName}),e.jsx("p",{className:"text-xs text-gray-500",children:m(l.size)})]}),l.deletedAt?e.jsxs("span",{className:"text-xs text-gray-500 shrink-0",children:["deleted ",n(l.deletedAt)]}):e.jsx("a",{href:`/api/form-files/${s.id}/${l.id}`,className:"shrink-0 text-sm text-blue-600 hover:underline",children:"Download"})]},l.id))})]}),e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-900 mb-3",children:"Submission metadata"}),e.jsxs("dl",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[e.jsx(t,{label:"Submission ID",children:e.jsx("code",{className:"text-xs",children:s.id})}),e.jsx(t,{label:"Submitted",children:n(s.createdAt)}),e.jsx(t,{label:"IP address",children:s.ip}),e.jsx(t,{label:"Submitted from",children:s.pageUrl}),e.jsx("div",{className:"md:col-span-2",children:e.jsx(t,{label:"User agent",children:e.jsx("span",{className:"text-xs text-gray-600",children:s.userAgent})})})]})]})]})}function h(){const{inquiries:s}=c.useLoaderData(),[l,i]=x.useState(null);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:"RFI Inquiries"}),e.jsx("p",{className:"mt-1 text-gray-600",children:"s56 Request for Information submissions from /rfi-partner-child-visa."})]}),s.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 RFI 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.jsx("tr",{children:["Submitted","Sponsor","Sponsor email","Applicant","Visa type",""].map(a=>e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:a},a))})}),e.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:s.map(a=>{const r=l===a.id;return[e.jsxs("tr",{className:r?"bg-gray-50":void 0,children:[e.jsx("td",{className:"px-4 py-3 text-sm text-gray-900 whitespace-nowrap",children:n(a.createdAt)}),e.jsx("td",{className:"px-4 py-3 text-sm text-gray-900",children:d(a.sponsorFirstName,a.sponsorLastName)}),e.jsx("td",{className:"px-4 py-3 text-sm text-gray-600",children:a.sponsorEmail||"—"}),e.jsx("td",{className:"px-4 py-3 text-sm text-gray-900",children:d(a.applicantFirstName,a.applicantLastName)}),e.jsx("td",{className:"px-4 py-3 text-sm text-gray-600",children:a.visaType||"—"}),e.jsx("td",{className:"px-4 py-3 text-sm text-right whitespace-nowrap",children:e.jsx("button",{type:"button",onClick:()=>i(r?null:a.id),className:"text-blue-600 hover:underline",children:r?"Hide":"View"})})]},a.id),r?e.jsx("tr",{children:e.jsx("td",{colSpan:6,className:"p-0",children:e.jsx(o,{inquiry:a})})},`${a.id}-detail`):null]})})]})})})]})}export{h 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.