1import{u as E,r as a,j as e,m as p,a6 as H,g as R,bp as i}from"./index-NPOBYjPA.js";import{g as m,a as d}from"./pinGenerator-5CZraNki.js";import{C as u,b as f,c as g,d as b,a as j}from"./card-BojpQPBq.js";import{B as l}from"./button-CTBRpJXq.js";import{I as W}from"./input-gNqZb-zD.js";import{H as v}from"./Header-nozdegCx.js";import{S as N}from"./SEOHead-DKFKHnNi.js";import{T as D,a as w}from"./toggle-group-CFMT6n2H.js";import{C as y}from"./chevron-left-EfWmHPKD.js";import{S as G}from"./shield-check-DsYMhllh.js";import{C as z}from"./clock-DtVfY_sv.js";import{C as K}from"./copy-LFM227lR.js";import{B as M}from"./book-open-qKLn-9mx.js";import{A as O}from"./arrow-right-BVIK4FfV.js";import"./index-QSG77vld.js";import"./SmartForm-DOL3z78_.js";import"./label-wdSDwto7.js";import"./checkbox-D6XnQAfq.js";import"./index-DnCZR6zi.js";import"./check-CJddzkrh.js";import"./useLocationsData-ktGpr3Gx.js";import"./locations-BpQ-72a-.js";import"./User-CrGecKZ2.js";import"./_rollupPluginBabelHelpers-3bc641ae-BvzpwIKU.js";import"./index-Xr3cZF6o.js";import"./ArrowDown2-B2trZigl.js";import"./Location-D4JeYfFD.js";import"./map-pin-CCzkGzYa.js";import"./index-BhLCoiVr.js";import"./index-CRDeyUWc.js";const je=()=>{const o=E(),[r,n]=a.useState(""),[k,c]=a.useState(""),[s,C]=a.useState("WIB"),[I,A]=a.useState(!1),[x,P]=a.useState("");a.useEffect(()=>{n(m(s)),c(d(s));const t=setInterval(()=>{c(d(s))},1e3),L=setInterval(()=>{const h=m(s);h!==r&&n(h)},6e4);return()=>{clearInterval(t),clearInterval(L)}},[s,r]);const S=()=>{navigator.clipboard.writeText(r),i.success(`PIN (${s}) berhasil disalin!`)},B=()=>{n(m(s)),c(d(s)),i.info("Data diperbarui")},T=t=>{t.preventDefault(),x==="000000"?(A(!0),i.success("Akses diberikan")):i.error("Password salah")};return I?e.jsxs("div",{className:"min-h-screen bg-slate-50 flex flex-col font-sans",children:[e.jsx(N,{title:"Exam Access PIN",noIndex:!0}),e.jsx(v,{}),e.jsx("main",{className:"flex-1 flex flex-col items-center justify-center p-4",children:e.jsxs(p.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1}
1,className:"w-full max-w-md space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(l,{variant:"ghost",className:"text-slate-500 hover:text-slate-900 -ml-2 transition-colors",onClick:()=>o("/fdt"),children:[e.jsx(y,{className:"w-4 h-4 mr-1"}),"Kembali"]}),e.jsx("div",{className:"text-xs font-medium px-3 py-1 bg-green-100 text-green-700 rounded-full border border-green-200 animate-pulse",children:"Live System"})]}),e.jsxs(u,{className:"shadow-2xl border-0 ring-1 ring-slate-200/50 bg-white/90 backdrop-blur-xl overflow-hidden",children:[e.jsxs(f,{className:"text-center pb-2 pt-8 relative",children:[e.jsx("div",{className:"absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-blue-500 via-blue-500 to-blue-500"}),e.jsx("div",{className:"mx-auto w-16 h-16 bg-blue-50 rounded-2xl flex items-center justify-center mb-4 shadow-sm",children:e.jsx(G,{className:"w-8 h-8 text-blue-600"})}),e.jsx(g,{className:"text-2xl font-bold text-slate-900 tracking-tight",children:"Exam Access PIN"}),e.jsx(b,{className:"text-slate-500 text-base",children:"PIN akses ujian yang berlaku saat ini."})]}),e.jsxs(j,{className:"space-y-8 px-8 pb-8",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("div",{className:"bg-slate-100 p-1.5 rounded-xl inline-flex shadow-inner",children:e.jsxs(D,{type:"single",value:s,onValueChange:t=>{t&&C(t)},children:[e.jsx(w,{value:"WIB",className:"px-5 py-2 rounded-lg text-sm font-medium data-[state=on]:bg-white data-[state=on]:text-slate-900 data-[state=on]:shadow-sm transition-all",children:"Jakarta (WIB)"}),e.jsx(w,{value:"WITA",className:"px-5 py-2 rounded-lg text-sm font-medium data-[state=on]:bg-white data-[state=on]:text-slate-900 data-[state=on]:shadow-sm transition-all",children:"Bali (WITA)"})]})})}),e.jsxs("div",{className:"relative group",children:[e.jsxs("div",{className:"bg-slate-50 rounded-2xl p-8 text-center border-2 border-dashed border-slate-200 group-hover:border-blue-300 transition-colors",children:[e.jsx("span",{className:"text-6xl font-mono font-bold tracking-[0.2em] text-slate-900 select-all drop-shadow-sm",children:r}),e.jsxs("div",{className:"mt-4 flex items-center justify-center gap-2 text-xs font-bold text-slate-400 uppercase tracking-widest",children:[e.jsx(z,{className:"w-3 h-3"}),"Berlaku: ",k]})]}),e.jsx(l,{size:"icon",variant:"secondary",className:"absolute top-4 right-4 text-slate-400 hover:text-blue-600 hover:bg-white shadow-sm transition-all opacity-0 group-hover:opacity-100",onClick:S,children:e.jsx(K,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs(l,{className:"w-full h-12 bg-slate-900 hover:bg-slate-800 text-white font-medium shadow-lg shadow-slate-900/10 transition-all hover:translate-y-[-1px]",onClick:B,children:[e.jsx(R,{className:"w-4 h-4 mr-2"}),"Generate Ulang PIN"]}),e.jsxs(l,{variant:"outline",className:"w-full h-12 border-slate-200 hover:bg-blue-50 hover:text-blue-700 hover:border-blue-200 transition-all group",onClick:()=>o("/willfitness-exams"),children:[e.jsx(M,{className:"w-4 h-4 mr-2 group-hover:text-blue-600 transition-colors"}),"Buka Halaman Ujian",e.jsx(O,{className:"w-4 h-4 ml-auto opacity-50 group-hover:opacity-100 group-hover:translate-x-1 transition-all"})]})]})]})]})]})})]}):e.jsxs("div",{className:"min-h-screen bg-slate-50 flex flex-col font-sans",children:[e.jsx(N,{title:"Admin Access",noIndex:!0}),e.jsx(v,{}),e.jsx("main",{className:"flex-1 flex flex-col items-center justify-center p-4",children:e.jsxs(p.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"w-full max-w-sm space-y-6",children:[e.jsxs(l,{variant:"ghost",className:"text-slate-500 hover:text-slate-900 -ml-2 transition-colors",onClick:()=>o("/fdt"),children:[e.jsx(y,{className:"w-4 h-4 mr-1"}),"Kembali"]}),e.jsxs(u,{className:"shadow-2xl border-0 ring-1 ring-slate-200/50 bg-white/80 backdrop-blur-xl",children:[e.jsxs(f,{className:"text-center pb-6 pt-8",children:[e.jsx("div",{className:"mx-auto w-16 h-16 bg-slate-100 rounded-2xl flex items-center justify-center mb-6 shadow-inner",children:e.jsx(H,{className:"w-8 h-8 text-slate-700"})}),e.jsx(g,{className:"text-2xl font-bold text-slate-900 tracking-tight",children:"Admin Access"}),e.jsx(b,{className:"text-slate-500 text-base mt-2",children:"Masukkan password untuk mengakses generator PIN."})]}),e.jsx(j,{className:"pb-8 px-8",children:e.jsxs("form",{onSubmit:T,className:"space-y-5",children:[e.jsx("div",{className:"space-y-2",children:e.jsx(W,{type:"password",placeholder:"⢠⢠⢠⢠⢠â¢",value:x,onChange:t=>P(t.target.value),className:"text-center tracking-[0.5em] text-lg h-12 border-slate-200 focus:border-slate-400 focus:ring-slate-400 bg-slate-50/50 transition-all",autoFocus:!0,maxLength:6})}),e.jsx(l,{type:"submit",className:"w-full h-11 bg-slate-900 hover:bg-slate-800 text-white font-medium shadow-lg shadow-slate-900/20 transition-all hover:scale-[1.02] active:scale-[0.98]",children:"Masuk Dashboard"})]})})]})]})})]})};export{je 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.