PageSourceSearch

https://jmc.laempe.ai/build/assets/lightweight-confirm-dialog-H0BCd8Wg.js

js laempe.ai collected 2026-10-05 14:11:19 UTC 1,455 bytes, 1 lines download raw bytes

1import{r as o,j as e,B as m}from"./app-YI4vRmAj.js";import{I as v}from"./input-Beo_GdVg.js";function k({isOpen:a,onClose:i,title:u,description:x,confirmText:f,cancelText:h="Abbrechen",onConfirm:d,confirmVariant:j="default",showInput:t=!1,inputPlaceholder:p,inputValue:r="",inputType:b="text"}){const[s,l]=o.useState(r);if(o.useEffect(()=>{a&&l(r)},[a,r]),!a)return null;const c=()=>{t?d(s):d(),i()},g=n=>{n.key==="Enter"&&t&&s.trim()&&c()};return e.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center p-4",children:[e.jsx("div",{className:"absolute inset-0 bg-black/80 animate-in fade-in-0 duration-150",onClick:i}),e.jsxs("div",{className:"relative w-full max-w-md overflow-hidden rounded-lg bg-white shadow-xl animate-in fade-in-0 zoom-in-95 duration-200",children:[e.jsxs("div",{className:"space-y-5 px-8 pb-6 pt-10",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-lg font-medium text-foreground",children:u}),e.jsx("div",{className:"text-sm text-muted-foreground",children:x})]}),t&&e.jsx(v,{type:b,value:s,onChange:n=>l(n.target.value),onKeyDown:g,placeholder:p,autoFocus:!0})]}),e.jsxs("div",{className:"flex items-center justify-end gap-2 border-t border-border bg-[#F9FAFB] px-8 py-3",children:[e.jsx(m,{type:"button",variant:"secondary",size:"sm",onClick:i,children:h}),e.jsx(m,{type:"button",variant:j,size:"sm",onClick:c,disabled:t&&!s.trim(),children:f})]})]})]})}export{k as L};

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.