PageSourceSearch

https://chat-bot--rs6gj9dwk8.replit.app/assets/upload-iIsStl_h.js

js chat-bot--rs6gj9dwk8.replit.app collected 2026-10-03 03:48:59 UTC 11,383 bytes, 6 lines download raw bytes

1import{d as M,H as z,r as c,j as e,C as d,a as m,B as x,L as R,S as b,b as u,c as h,e as U,p as O}from"./index-Zm7-lK9C.js";import{P as L}from"./progress-K2xmPKs3.js";import{S as T}from"./seo-Dyy8i69w.js";import{E as N}from"./errors-B4VrmJru.js";import{C as v}from"./circle-check-big-BnNQnHvP.js";import{I as _}from"./info-3MiGuq6m.js";import{U as y}from"./upload-B14I6TeT.js";import{F as B}from"./file-text-RHItz0Ba.js";import{T as G}from"./trash-2-h39KDPXW.js";import{L as H}from"./lock-DNnedFYy.js";import{C as Y}from"./circle-alert-h8y1tc6K.js";/**
2 * @license lucide-react v0.545.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const W=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],q=M("image",W);function re(){const{toast:n}=z(),f=c.useRef(null),[i,o]=c.useState([]),[w,p]=c.useState(!1),[C,g]=c.useState(!1),S=s=>{s.target.files&&s.target.files.length>0&&j(Array.from(s.target.files))},j=s=>{const r=s.filter(t=>t.size>10485760?(n({title:"File too large",description:N.UPLOAD.TOO_LARGE,variant:"destructive"}),!1):!0).map(t=>({id:Math.random().toString(36).substring(7),name:t.name,size:t.size,type:t.type,progress:0,status:"uploading"}));o(t=>[...t,...r]),r.forEach(t=>{D(t.id)})},D=s=>{let a=0;const r=setInterval(()=>{a+=Math.random()*10+5,a>=100?(a=100,clearInterval(r),o(t=>t.map(l=>l.id===s?{...l,progress:100,status:"complete"}:l))):o(t=>t.map(l=>l.id===s?{...l,progress:a}:l))},200)},k=s=>{o(a=>a.filter(r=>r.id!==s))},I=s=>{s.preventDefault(),p(!0)},E=s=>{s.preventDefault(),p(!1)},F=s=>{s.preventDefault(),p(!1),s.dataTransfer.files&&s.dataTransfer.files.length>0&&j(Array.from(s.dataTransfer.files))},P=()=>{if(i.length===0){n({title:"No files selected",description:N.UPLOAD.MISSING_REQUIRED,variant:"destructive"});return}if(i.filter(a=>a.status!=="complete").length>0){n({title:"Uploads in progress",description:"Please wait for all files to finish uploading.",variant:"destructive"});return}g(!0),window.scrollTo({top:0,behavior:"smooth"}),n({title:"Documents Submitted",description:"Your files have been securely received."})},A=s=>{if(s===0)return"0 Bytes";const a=1024,r=["Bytes","KB","MB","GB"],t=Math.floor(Math.log(s)/Math.log(a));return parseFloat((s/Math.pow(a,t)).toFixed(2))+" "+r[t]};return C?e.jsx("div",{className:"bg-slate-50 min-h-screen py-12 px-4",children:e.jsx(d,{className:"max-w-2xl mx-auto border-none shadow-lg animate-in fade-in zoom-in-95 duration-500",children:e.jsxs(m,{className:"pt-10 pb-10 text-center",children:[e.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(v,{className:"w-10 h-10 text-green-600"})}),e.jsx("h2",{className:"text-3xl font-serif font-bold text-slate-900 mb-4",children:"Documents Submitted Successfully"}),e.jsx("p",{className:"text-muted-foreground mb-8 max-w-md mx-auto",children:"We have received your files. A confirmation email has been sent to your registered email address."}),e.jsxs("div",{className:"bg-blue-50 border border-blue-100 rounded-lg p-6 max-w-lg mx-auto mb-8 text-left",children:[e.jsxs("h3",{className:"font-bold text-blue-900 mb-2 flex items-center gap-2",children:[e.jsx(_,{className:"h-5 w-5"})," What Happens Next?"]}),e.jsx("p",{className:"text-sm text-blue-800 mb-2",children:"Our team will review your documents. If anything is missing or unclear, we will contact you directly."}),e.jsx("p",{className:"text-sm text-blue-800 font-medium",children:"Please do not email duplicate copies unless requested."})]}),e.jsxs("div",{className:"flex gap-4 justify-center",children:[e.jsx(x,{onClick:()=>g(!1),variant:"outline",children:"Upload More Files"}),e.jsx(R,{href:"/",children:e.jsx(x,{children:"Return to Home"})})]})]})})}):e.jsxs(e.Fragment,{children:[e.jsx(T,{title:"Document Upload | Abibask Immigration",description:"Secure document upload portal",noindex:!0}),e.jsxs("div",{className:"bg-slate-50 min-h-screen pb-20",children:[e.jsx("div",{className:"bg-primary text-primary-foreground py-12 text-center",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("div",{className:"flex items-center justify-center gap-3 mb-4",children:e.jsx(b,{className:"h-10 w-10 text-blue-200"})}),e.jsx("h1",{className:"text-3xl md:text-4xl font-serif font-bold mb-2",children:"Secure Document Upload Portal"}),e.jsx("p",{className:"text-blue-100 max-w-2xl mx-auto",children:"Abibask Immigration Consultancy Services — Operated by Ik. Obaseki (RCIC #R526520)"})]})}),e.jsx("div",{className:"container mx-auto px-4 -mt-8",children:e.jsxs("div",{className:"max-w-5xl mx-auto grid lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsxs(d,{className:"border-none shadow-xl overflow-hidden",children:[e.jsxs(u,{className:"bg-white border-b",children:[e.jsxs(h,{className:"flex items-center gap-2",children:[e.jsx(y,{className:"h-5 w-5 text-primary"})," Upload Your Documents"]}),e.jsx(U,{children:"Securely transfer your files to our encrypted storage."})]}),e.jsxs(m,{className:"p-6",children:[e.jsxs("div",{className:O("border-2 border-dashed rounded-xl p-8 text-center transition-all cursor-pointer mb-6",w?"border-primary bg-primary/5 scale-[1.01]":"border-slate-200 hover:border-primary/50 hover:bg-slate-50"),onDragOver:I,onDragLeave:E,onDrop:F,onClick:()=>f.current?.click(),children:[e.jsx("input",{type:"file",ref:f,className:"hidden",multiple:!0,accept:".pdf,.jpg,.jpeg,.png,.doc,.docx",onChange:S}),e.jsx("div",{className:"w-16 h-16 bg-blue-50 rounded-full flex items-center justify-center mx-auto mb-4 text-primary",children:e.jsx(y,{className:"h-8 w-8"})}),e.jsx("h3",{className:"text-lg font-semibold text-slate-800 mb-2",children:"Click to upload or drag and drop"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"PDF, JPG, PNG, DOC (Max 10MB per file)"}),e.jsx(x,{variant:"secondary",size:"sm",className:"pointer-events-none",children:"Select Files"})]}),i.length>0&&e.jsxs("div",{className:"space-y-3 mb-8",children:[e.jsxs("h4",{className:"font-medium text-sm text-slate-500 uppercase tracking-wider mb-3",children:["Selected Files (",i.length,")"]}),i.map(s=>e.jsxs("div",{className:"flex items-center gap-4 bg-slate-50 p-3 rounded-lg border border-slate-100 animate-in fade-in slide-in-from-bottom-2",children:[e.jsx("div",{className:"h-10 w-10 bg-white rounded-md flex items-center justify-center border text-slate-500 shrink-0",children:s.type.includes("image")?e.
6jsx(q,{size:20}):e.jsx(B,{size:20})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex justify-between mb-1",children:[e.jsx("p",{className:"text-sm font-medium truncate pr-4",children:s.name}),e.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:A(s.size)})]}),s.status==="uploading"?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(L,{value:s.progress,className:"h-1.5"}),e.jsxs("span",{className:"text-xs text-blue-600 font-medium w-8",children:[Math.round(s.progress),"%"]})]}):e.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-green-600 font-medium",children:[e.jsx(v,{size:12})," Upload Complete"]})]}),e.jsx("button",{onClick:()=>k(s.id),className:"p-2 hover:bg-red-50 hover:text-red-600 rounded-full transition-colors text-slate-400",title:"Remove file",children:e.jsx(G,{size:18})})]},s.id))]}),e.jsxs("div",{className:"flex items-center gap-4 pt-4 border-t",children:[e.jsx(x,{onClick:P,size:"lg",className:"w-full md:w-auto",disabled:i.length===0,children:"Submit Documents"}),e.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[e.jsx(H,{size:12})," Encrypted secure transfer"]})]})]})]}),e.jsxs("div",{className:"bg-amber-50 border border-amber-100 rounded-lg p-6",children:[e.jsxs("h3",{className:"font-bold text-amber-900 mb-4 flex items-center gap-2",children:[e.jsx(Y,{className:"h-5 w-5"})," Common Upload Issues & Solutions"]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-amber-800 mb-1",children:"File too large?"}),e.jsx("p",{className:"text-amber-900/80",children:"Compress the PDF or upload in parts (Part 1, Part 2)."})]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-amber-800 mb-1",children:"Upload freezes?"}),e.jsx("p",{className:"text-amber-900/80",children:"Check internet, refresh page, or upload one file at a time."})]}),e.jsxs("div",{className:"md:col-span-2 mt-2 pt-3 border-t border-amber-200/50",children:[e.jsx("p",{className:"font-semibold text-amber-800 mb-1",children:"Wrong file uploaded?"}),e.jsxs("p",{className:"text-amber-900/80",children:["Email us immediately at ",e.jsx("a",{href:"mailto:[email protected]",className:"underline",children:"[email protected]"})," so we can delete it."]})]})]})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(d,{children:[e.jsx(u,{children:e.jsx(h,{className:"text-lg",children:"File Naming Guide"})}),e.jsxs(m,{className:"text-sm space-y-4",children:[e.jsx("p",{className:"text-muted-foreground",children:"To keep your file organized, please use this structure:"}),e.jsx("div",{className:"bg-slate-100 p-3 rounded font-mono text-xs font-medium text-slate-800 border",children:"LASTNAME_FirstName_DocumentName.pdf"}),e.jsxs("div",{className:"space-y-2 text-muted-foreground",children:[e.jsx("p",{className:"font-medium text-foreground text-xs uppercase tracking-wider",children:"Examples:"}),e.jsxs("ul",{className:"space-y-1 list-disc pl-4",children:[e.jsx("li",{children:"OKOJIE_Sandra_Passport.pdf"}),e.jsx("li",{children:"ADEYEMI_Tunde_GCMSNotes.pdf"}),e.jsx("li",{children:"OBI_Chioma_RefusalLetter.pdf"})]})]})]})]}),e.jsxs(d,{children:[e.jsx(u,{children:e.jsx(h,{className:"text-lg",children:"Required Documents"})}),e.jsxs(m,{className:"text-sm",children:[e.jsx("p",{className:"text-muted-foreground mb-3",children:"Depending on your case, you may need to upload:"}),e.jsx("ul",{className:"space-y-2 text-slate-600",children:["Passports (bio-data pages)","IRCC refusal letters","GCMS notes","Letters of Acceptance (LOA)","Employment letters / pay stubs","Bank statements","Résumé / CV","Marriage/birth certificates","Police certificates"].map((s,a)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-primary mt-1.5 shrink-0"}),s]},a))})]})]}),e.jsxs("div",{className:"bg-slate-50 p-4 rounded-lg border text-xs text-muted-foreground",children:[e.jsxs("p",{className:"font-bold text-slate-900 mb-2 flex items-center gap-1.5",children:[e.jsx(b,{className:"h-4 w-4 text-green-600"})," Privacy & Security"]}),e.jsx("p",{className:"mb-2",children:"Your document uploads are:"}),e.jsxs("ul",{className:"space-y-1 list-disc pl-4 mb-2",children:[e.jsx("li",{children:"Encrypted during transfer"}),e.jsx("li",{children:"Stored in a secure environment"}),e.jsx("li",{children:"Accessible only to authorized staff"}),e.jsx("li",{children:"Never shared without consent"})]}),e.jsx("p",{children:"Protected in accordance with PIPEDA and CICC Code of Professional Conduct."})]})]})]})})]})]})}export{re 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.