PageSourceSearch

https://thenewcomerspod.com/assets/ConfirmDialog-qJ2hzKOi.js

js thenewcomerspod.com collected 2026-10-02 15:03:27 UTC 2,127 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="88d05a8b-71c1-5b99-8595-ab1ebf093300")}catch(e){}}();
3import{s as e,t}from"./jsx-runtime-D4ePz0Hl.js";import{t as n}from"./useTranslation-xRzBcOIb.js";import{t as r}from"./classnames-B9Sa-P4w.js";import{n as i}from"./transition-B4qu-R77.js";import{n as a,t as o}from"./BottomSheetDialog-DcPGSOIu.js";import{t as s}from"./Dialog-CMOTIGCZ.js";var c=e(r(),1),l=`rounded-3xl bg-white border border-black/5 shadow-[0_4px_6px_rgba(0,0,0,0.08)]`,u=e(t(),1),d={primary:`bg-black hover:bg-black/90 text-white`,subtle:`bg-black/5 text-black hover:bg-black/10`,destructive:`bg-red-600 hover:bg-red-500 text-white`},f=({variant:e,className:t,type:n=`button`,children:r,...i})=>(0,u.jsx)(`button`,{type:n,className:(0,c.default)(`w-full rounded-full py-3 text-base font-semibold leading-6 transition-colors disabled:opacity-50`,d[e],t),...i,children:r}),p=({isOpen:e,title:t,description:r,confirmLabel:d,onConfirm:p,onCancel:m,isDestructive:h=!1,isLoading:g=!1,confirmDisabled:_=!1,body:v,afterLeave:y})=>{let{t:b}=n(),x=a(),S=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.Title,{className:`text-lg font-semibold text-black`,children:t}),(0,u.jsx)(i.Description,{className:`mt-2 text-base leading-6 text-black/60`,children:r}),v,(0,u.jsxs)(`div`,{className:`mt-6 flex flex-col gap-3`,children:[(0,u.jsx)(f,{variant:h?`destructive`:`primary`,onClick:p,disabled:g||_,children:g?`...`:d}),(0,u.jsx)(f,{variant:`subtle`,onClick:m,disabled:g,children:b(`community.action_menu.cancel`,`Cancel`)})]})]});return x?(0,u.jsxs)(o,{isOpen:e,onClose:m,panelClassName:`px-5 pt-6`,afterLeave:y,children:[S,(0,u.jsx)(`div`,{className:`h-4`})]}):(0,u.jsx)(s,{isOpen:e,onClose:m,afterLeave:y,className:(0,c.default)(l,`w-full max-w-sm px-6 pt-6 pb-6 border-0`),children:S})};export{f as n,l as r,p as t};
4//# sourceMappingURL=ConfirmDialog-qJ2hzKOi.js.map
5//# debugId=88d05a8b-71c1-5b99-8595-ab1ebf093300

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.