PageSourceSearch

https://daybookpro-prod.web.app/assets/confirm-dialog-Bw4OfQWN.js

js daybookpro-prod.web.app collected 2026-10-03 12:23:14 UTC 1,857 bytes, 1 lines download raw bytes

1import{t as e}from"./jsx-runtime-CObvJnpU.js";import{t}from"./react-BLZA0yey.js";import{c as n,i as r,o as i,r as a,t as o}from"./dialog-QOi_sbC8.js";import{t as s}from"./utils-DXalBF5w.js";import{t as c}from"./button-DpNOHjnD.js";var l=e(),u=t((e,t)=>({open:!1,title:``,description:void 0,confirmLabel:`Confirm`,cancelLabel:`Cancel`,secondaryLabel:void 0,destructive:!1,resolve:null,show:(t,n)=>e({open:!0,title:t.title,description:t.description,confirmLabel:t.confirmLabel??`Confirm`,cancelLabel:t.cancelLabel??`Cancel`,secondaryLabel:t.secondaryLabel,destructive:t.destructive??!1,resolve:n}),close:n=>{let r=t().resolve;e({open:!1,resolve:null}),r?.(n)}}));function d(e){return new Promise(t=>{u.getState().show(e,e=>t(e===`confirm`))})}function f(e){return new Promise(t=>{u.getState().show(e,t)})}function p(){let{open:e,title:t,description:d,confirmLabel:f,cancelLabel:p,secondaryLabel:m,destructive:h,close:g}=u();return(0,l.jsx)(o,{open:e,onOpenChange:e=>{e||g(`cancel`)},children:(0,l.jsxs)(a,{className:`z-[110] sm:max-w-md`,overlayClassName:`z-[105]`,children:[(0,l.jsxs)(i,{children:[(0,l.jsx)(n,{children:t}),d&&(0,l.jsx)(r,{className:`whitespace-pre-line`,children:d})]}),(0,l.jsxs)(`div`,{className:s(`flex flex-col-reverse gap-3 pt-3 sm:gap-2 sm:pt-2`,!m&&`sm:flex-row sm:flex-wrap sm:justify-end`),children:[(0,l.jsx)(c,{type:`button`,variant:`outline`,size:`lg`,onClick:()=>g(`cancel`),className:`h-12 px-6 text-base font-semibold sm:h-10 sm:text-sm`,children:p}),m&&(0,l.jsx)(c,{type:`button`,variant:`outline`,size:`lg`,onClick:()=>g(`secondary`),className:`h-12 px-6 text-base font-semibold sm:h-10 sm:text-sm`,children:m}),(0,l.jsx)(c,{type:`button`,variant:h?`destructive`:`default`,size:`lg`,onClick:()=>g(`confirm`),className:`h-12 px-6 text-base font-semibold sm:h-10 sm:text-sm`,children:f})]})]})})}export{d as n,f as r,p as t};

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.