1import{r as l,j as e,m as t,A as w}from"./vendor-motion-IPZE8IrO.js";import{o as D,s as A,t as C,G as S,j as M,b as I,I as B,B as o,L as x,C as h,d as u,U as L}from"./index-AEzrcV_C.js";import{S as p}from"./search-LudkJrde.js";import{F as j}from"./file-check-CJKD97Y_.js";import{B as P}from"./building-2-WGCKvVV6.js";import{C as f}from"./calendar-_yAFONph.js";import{D as T}from"./download-C6OCmlN-.js";import{C as b}from"./circle-x-BkwuDFZR.js";import"./vendor-react-BN0qJr-I.js";import"./vendor-trpc-IjFHpi-5.js";/** 2 * @license lucide-react v0.453.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 k=D("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);function q(){const g=A(),r=new URLSearchParams(g).get("code")||"",[n,m]=l.useState(r),[s,c]=l.useState(r);l.useEffect(()=>{r&&(m(r),c(r))},[r]);const{data:a,isLoading:i,error:N}=C.documentVerification.verify.useQuery({code:s},{enabled:s.length>0}),y=d=>{d.preventDefault(),n.trim()&&c(n.trim())};return e.jsxs("div",{className:"min-h-screen bg-background text-foreground overflow-hidden relative",children:[e.jsx(S,{}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 backdrop-blur-xl bg-background/70 border-b border-border",children:e.jsxs("div",{className:"container flex items-center justify-between h-16 md:h-20",children:[e.jsxs(M,{href:"/",className:"flex items-center gap-2 text-muted-foreground hover:text-emerald transition-colors",children:[e.jsx(I,{className:"w-4 h-4"}),e.jsx("span",{className:"text-sm",children:"Kembali"})]}),e.jsx("div",{className:"flex items-center",children:e.jsx("img",{src:"/manus-storage/ylive-atlas-ai-logo-compact_3a173e95.png",alt:"Ylive Atlas AI",className:"h-10 md:h-12 w-auto"})})]})}),e.jsxs("main",{className:"pt-28 pb-20 container max-w-3xl",children:[e.jsxs(t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,ease:[.23,1,.32,1]},className:"text-center mb-10",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 border border-emerald/30 bg-emerald/5 rounded-full mb-6",children:[e.jsx(k,{className:"w-4 h-4 text-emerald"}),e.jsx("span",{className:"text-xs font-mono uppercase tracking-[0.15em] text-emerald",children:"Verifikasi Dokumen"})]}),e.jsxs("h1",{className:"font-[Playfair_Display] text-3xl md:text-4xl font-bold text-white mb-4",children:["Verifikasi Keaslian",e.jsx("br",{}),e.jsx("span",{className:"text-emerald",children:"Dokumen Resmi"})]}),e.jsx("p",{className:"text-muted-foreground max-w-lg mx-auto",children:"Masukkan kode verifikasi atau pindai QR code pada dokumen untuk memastikan keaslian dokumen resmi Ylive Atlas AI."})]}),e.jsx(t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.15,ease:[.23,1,.32,1]},className:"mb-10",children:e.jsxs("form",{onSubmit:y,className:"flex flex-col sm:flex-row gap-3 max-w-xl mx-auto",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(p,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(B,{type:"text",placeholder:"Masukkan kode verifikasi (contoh: YLIVE-PKS-BEI-2025-001)",value:n,onChange:d=>m(d.target.value),className:"h-12 pl-10 bg-white/5 border-border text-white placeholder:text-muted-foreground focus:border-emerald/50 focus:ring-emerald/20 rounded-lg"})]}),e.jsx(o,{type:"submit",disabled:!n.trim()||i,className:"h-12 px-6 bg-emerald hover:bg-emerald-dark text-white font-semibold rounded-lg transition-all duration-200 hover:scale-[1.02] active:scale-[0.98]",children:i?e.jsx(x,{className:"w-4 h-4 animate-spin"}):"Verifikasi"})]})}),e.jsxs(w,{mode:"wait",children:[i&&s&&e.jsxs(t.div,{initial:{opacity:0,y:10}
6,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"text-center py-12",children:[e.jsx(x,{className:"w-8 h-8 text-emerald animate-spin mx-auto mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"Memverifikasi dokumen..."})]},"loading"),!i&&a?.found&&a.document&&e.jsxs(t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.5,ease:[.23,1,.32,1]},children:[e.jsxs("div",{className:"bg-emerald/10 border border-emerald/30 rounded-xl p-6 mb-6 text-center",children:[e.jsx(h,{className:"w-12 h-12 text-emerald mx-auto mb-3"}),e.jsx("h2",{className:"text-xl font-bold text-white mb-2",children:"Dokumen Terverifikasi"}),e.jsx("p",{className:"text-emerald text-sm",children:"Dokumen ini adalah dokumen resmi yang diterbitkan oleh Ylive Atlas AI dan telah terverifikasi keasliannya."}),a.document.isActive&&e.jsxs("div",{className:"inline-flex items-center gap-2 mt-3 px-3 py-1 bg-emerald/20 rounded-full",children:[e.jsx(u,{className:"w-3 h-3 text-emerald"}),e.jsx("span",{className:"text-xs text-emerald font-semibold",children:"Status: AKTIF"})]})]}),e.jsxs("div",{className:"bg-white/[0.03] border border-border rounded-xl p-6 space-y-5",children:[e.jsxs("h3",{className:"font-[Playfair_Display] text-lg font-bold text-white flex items-center gap-2",children:[e.jsx(j,{className:"w-5 h-5 text-emerald"}),"Detail Dokumen"]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(j,{className:"w-4 h-4 text-copper mt-1 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-0.5",children:"Judul Dokumen"}),e.jsx("p",{className:"text-white font-medium",children:a.document.documentTitle})]})]}),a.document.documentNumber&&e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(u,{className:"w-4 h-4 text-copper mt-1 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-0.5",children:"Nomor Dokumen"}),e.jsx("p",{className:"text-white font-mono text-sm",children:a.document.documentNumber})]})]}),a.document.issuedBy&&e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(P,{className:"w-4 h-4 text-copper mt-1 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-0.5",children:"Diterbitkan Oleh"}),e.jsx("p",{className:"text-white",children:a.document.issuedBy})]})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.document.issuedDate&&e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(f,{className:"w-4 h-4 text-copper mt-1 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-0.5",children:"Tanggal Terbit"}),e.jsx("p",{className:"text-white",children:a.document.issuedDate})]})]}),a.document.validUntil&&e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(f,{className:"w-4 h-4 text-emerald mt-1 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-0.5",children:"Masa Berlaku"}),e.jsx("p",{className:"text-white",children:a.document.validUntil})]})]})]}),a.document.parties&&a.document.parties.length>0&&e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(L,{className:"w-4 h-4 text-copper mt-1 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-0.5",children:"Pihak Terkait"}),e.jsx("ul",{className:"space-y-1",children:a.document.parties.map((d,v)=>e.jsxs("li",{className:"text-white text-sm flex items-center gap-2",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald/60 shrink-0"}),d]},v))})]})]}),a.document.description&&e.jsxs("div",{className:"pt-3 border-t border-border",children:[e.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-1",children:"Deskripsi"}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:a.document.description})]})]}),a.document.pdfUrl&&e.jsx("div",{className:"pt-4 border-t border-border",children:e.jsx("a",{href:a.document.pdfUrl,download:!0,className:"inline-flex",children:e.jsxs(o,{className:"bg-copper/20 hover:bg-copper/30 text-copper border border-copper/30 gap-2",children:[e.jsx(T,{className:"w-4 h-4"}),"Unduh Dokumen"]})})}),e.jsxs("div",{className:"pt-4 border-t border-border flex items-center justify-between text-xs text-muted-foreground",children:[e.jsxs("span",{children:["Kode: ",e.jsx("span",{className:"font-mono text-copper/80",children:s})]}),e.jsxs("span",{children:["Diverifikasi ",a.document.verifyCount,"x"]})]})]})]},"found"),!i&&a&&!a.found&&s&&e.jsx(t.div,{initial:{opacity:0,y:20}
6,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.5,ease:[.23,1,.32,1]},children:e.jsxs("div",{className:"bg-red-500/10 border border-red-500/30 rounded-xl p-6 text-center",children:[e.jsx(b,{className:"w-12 h-12 text-red-400 mx-auto mb-3"}),e.jsx("h2",{className:"text-xl font-bold text-white mb-2",children:"Dokumen Tidak Ditemukan"}),e.jsxs("p",{className:"text-red-300 text-sm max-w-md mx-auto",children:['Kode verifikasi "',e.jsx("span",{className:"font-mono",children:s}),'" tidak terdaftar dalam sistem kami. Pastikan kode yang Anda masukkan sudah benar, atau dokumen yang Anda miliki mungkin bukan dokumen resmi dari Ylive Atlas AI.']}),e.jsx("div",{className:"mt-4 p-3 bg-red-500/5 rounded-lg border border-red-500/10",children:e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Jika Anda yakin dokumen ini asli, silakan hubungi kami di ",e.jsx("span",{className:"text-copper",children:"[email protected]"})]})})]})},"not-found"),N&&e.jsxs(t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"text-center py-8",children:[e.jsx(b,{className:"w-8 h-8 text-red-400 mx-auto mb-3"}),e.jsx("p",{className:"text-red-300",children:"Terjadi kesalahan saat memverifikasi. Silakan coba lagi."})]},"error")]}),!s&&e.jsxs(t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3,ease:[.23,1,.32,1]},className:"mt-12",children:[e.jsx("h3",{className:"text-center text-lg font-semibold text-white mb-6",children:"Cara Verifikasi"}),e.jsxs("div",{className:"grid sm:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"bg-white/[0.03] border border-border rounded-xl p-5 text-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-emerald/10 flex items-center justify-center mx-auto mb-3",children:e.jsx(k,{className:"w-5 h-5 text-emerald"})}),e.jsx("h4",{className:"text-white font-medium text-sm mb-1",children:"1. Pindai QR Code"}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Pindai QR code yang tertera di sudut kanan bawah setiap halaman dokumen"})]}),e.jsxs("div",{className:"bg-white/[0.03] border border-border rounded-xl p-5 text-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-copper/10 flex items-center justify-center mx-auto mb-3",children:e.jsx(p,{className:"w-5 h-5 text-copper"})}),e.jsx("h4",{className:"text-white font-medium text-sm mb-1",children:"2. Masukkan Kode"}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Atau masukkan kode verifikasi secara manual pada kolom pencarian di atas"})]}),e.jsxs("div",{className:"bg-white/[0.03] border border-border rounded-xl p-5 text-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-emerald/10 flex items-center justify-center mx-auto mb-3",children:e.jsx(h,{className:"w-5 h-5 text-emerald"})}),e.jsx("h4",{className:"text-white font-medium text-sm mb-1",children:"3. Lihat Hasil"}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Sistem akan menampilkan detail dokumen jika kode valid dan terdaftar"})]})]})]})]}),e.jsx("footer",{className:"border-t border-border py-6",children:e.jsx("div",{className:"container text-center",children:e.jsx("p",{className:"text-xs text-muted-foreground",children:"© 2026 Ylive Atlas AI â Galeri Investasi Syariah Resmi Terdaftar"})})})]})]})}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.