PageSourceSearch

https://wab-booking-dev.pages.dev/assets/ConfirmDialog-B8KhezE6.js

js wab-booking-dev.pages.dev collected 2026-10-03 05:47:31 UTC 4,634 bytes, 9 lines download raw bytes

1import{c as g,j as e,e as m,i as u,x as h,ab as b}from"./index-Cn3juDuU.js";/**
2 * @license lucide-react v0.487.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 y=[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h9",key:"1j9vog"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m17 17 4 4",key:"1b3523"}],["path",{d:"m21 17-4 4",key:"uinynz"}]],k=g("mail-x",y),c="keine-email.local",j="legacy.local",C={ä:"ae",ö:"oe",ü:"ue",Ä:"ae",Ö:"oe",Ü:"ue",ß:"ss"};function d(o){return o.trim().replace(/[äöüÄÖÜß]/g,n=>C[n]??n).normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function v(o,n){return[d(n),d(o)].filter(Boolean).join("-")}function L(o,n){const t=v(o,n);return`${t?`noemail+${t}`:`noemail+${Date.now()}`}@${c}`}function E(o){if(!o)return!1;const n=o.trim().toLowerCase();return n.endsWith(`@${c}`)||n.endsWith(`@${j}`)}function z({email:o,className:n}){return E(o)?e.jsxs("span",{className:m("inline-flex items-center gap-1 rounded-full bg-ink-100 px-1.5 py-0.5 text-[11px] font-medium text-ink-400",n),children:[e.jsx(k,{size:11,strokeWidth:1.75,className:"shrink-0"}),"Keine E-Mail"]}):e.jsx(e.Fragment,{children:o})}function M({recipient:o,children:n}){return e.jsxs("div",{style:{padding:"0 24px 16px",display:"flex",flexDirection:"column",gap:"10px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"9px 12px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #f3f4f6"},children:[e.jsx(b,{size:13,strokeWidth:1.75,style:{color:"#6b7280",flexShrink:0}}),e.jsx("span",{style:{fontSize:"13px",color:"#374151",fontWeight:500},children:e.jsx(z,{email:o})})]}),e.jsx("p",{style:{margin:0,fontSize:"13px",color:"#6b7280",lineHeight:1.55},children:n})]})}const D=`
7@keyframes confirmOverlayIn { from { opacity: 0 } to { opacity: 1 } }
8@keyframes confirmDialogIn  { from { opacity: 0; transform: translate(-50%, -48%) } to { opacity: 1; transform: translate(-50%, -50%) } }
9`;function w({open:o,onConfirm:n,onCancel:t,title:a,description:l,children:f,confirmLabel:x="Bestätigen",cancelLabel:p="Abbrechen",icon:s,busy:r=!1}){return o?u.createPortal(e.jsxs(e.Fragment,{children:[e.jsx("style",{children:D}),e.jsx("div",{onClick:()=>{r||t()},style:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.45)",zIndex:10500,animation:"confirmOverlayIn 150ms ease both"}}),e.jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":"confirm-dialog-title",style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:420,maxWidth:"90vw",backgroundColor:"#ffffff",borderRadius:"12px",boxShadow:"0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08)",zIndex:10501,overflow:"hidden",animation:"confirmDialogIn 150ms ease both"},children:[e.jsxs("div",{style:{padding:"20px 24px 16px",display:"flex",alignItems:"center",gap:"12px"},children:[s&&e.jsx("div",{style:{width:36,height:36,borderRadius:"8px",backgroundColor:"#fef2f2",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:"#6D0101"},children:s}),e.jsxs("div",{children:[e.jsx("div",{id:"confirm-dialog-title",style:{fontSize:"15px",fontWeight:700,color:"#111827"},children:a}),l&&e.jsx("div",{style:{fontSize:"12px",color:"#6b7280",marginTop:"2px",lineHeight:1.5},children:l})]})]}),f,e.jsxs("div",{style:{padding:"12px 24px 20px",display:"flex",gap:"10px",borderTop:"1px solid #f3f4f6"},children:[e.jsx("button",{onClick:t,disabled:r,style:{flex:1,padding:"9px 0",borderRadius:"6px",border:"1px solid #e5e7eb",backgroundColor:"#ffffff",fontSize:"13px",fontWeight:600,color:"#374151",cursor:r?"not-allowed":"pointer",transition:"background-color 100ms"},onMouseEnter:i=>{r||(i.currentTarget.style.backgroundColor="#f9fafb")},onMouseLeave:i=>{i.currentTarget.style.backgroundColor="#ffffff"},children:p}),e.jsxs("button",{onClick:n,disabled:r,style:{flex:2,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"9px 0",borderRadius:"6px",border:"none",backgroundColor:r?"#991b1b":"#6D0101",color:"#ffffff",fontSize:"13px",fontWeight:600,cursor:r?"wait":"pointer",transition:"background-color 120ms"},onMouseEnter:i=>{r||(i.currentTarget.style.backgroundColor="#5a0101")},onMouseLeave:i=>{r||(i.currentTarget.style.backgroundColor=r?"#991b1b":"#6D0101")},children:[r?e.jsx(h,{size:13,strokeWidth:1.75,style:{animation:"spin 0.8s linear infinite"}}):null,x]})]})]})]}),document.body):null}export{w as C,z as E,M as a,L as b,E as i};

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.