import{K as m,r as t,j as e}from"./app-DZfefqwY.js";import{A as d}from"./AppLayout-DeG2WwBX.js";import p from"./SetupPin-mUb2xcsF.js";/* empty css            */import"./Modal-BYXFqMaN.js";import"./utils-58Hq6hiM.js";import"./InputGroup-UkLLamB2.js";import"./iconBase-Bk-4DJ7c.js";import"./circle-alert-C-OnHBie.js";import"./createLucideIcon-DVe2WYpF.js";import"./x-DUKJD8Z_.js";import"./arrow-left-EsrmbjxM.js";const K=()=>{var i;const{data:r}=m().props,[s,n]=t.useState(!!((i=r.summary)!=null&&i.pin)),[o,a]=t.useState(!1),l=t.useCallback(()=>{a(!0)},[]);return e.jsxs(d,{title:"Kartu Siswa",children:[e.jsx("div",{className:"flex min-h-screen items-center bg-white",children:e.jsxs("div",{className:"mx-2 flex w-full flex-col items-center justify-center rounded-lg border-2 border-red-400 bg-red-50 p-6 text-center shadow-sm",children:[e.jsx("h3",{className:"mb-2 text-lg font-semibold text-red-600",children:"🔒 Kartu Diblokir"}),e.jsx("p",{className:"mb-4 text-sm text-red-700",children:"Kartu ini telah diblokir dan tidak dapat digunakan. Silakan aktifkan kembali untuk melanjutkan."}),e.jsx("button",{onClick:l,className:"inline-flex items-center gap-2 rounded-md bg-red-600 px-4 py-2 text-sm font-medium text-white transition hover:bg-red-700",children:"🔓 Aktifkan Kembali"})]})}),e.jsx(p,{open:o,hasPin:s,setHasPined:()=>n(!0),onClose:()=>a(!1)})]})};export{K as default};
