Files
doormile_crm_build/dist/assets/phone-BqZPAT1U.js
2026-07-08 18:53:29 +05:30

7 lines
1.5 KiB
JavaScript

import{r as s,j as a,L,B as i,l as A,H as I,T as k,s as C,v as D,c as H}from"./index-TNj5auBr.js";import{D as P,L as B}from"./plus-CZCr3OEY.js";import{H as E}from"./HStack-tSPMb9QU.js";function N({ref:l,isOpen:r,isInline:n,onOpenChange:e,title:d,description:c,cancelLabel:p="Cancel",actionLabel:h,actionVariant:x="destructive",isActionLoading:u,onAction:j,width:m=400,xstyle:y,className:g,style:b,"data-testid":f}){const t=s.useId(),o=s.useId(),v=s.useCallback(()=>{e(!1)},[e]);return a.jsx(P,{ref:l,isOpen:r,isInline:n,onOpenChange:e,width:m,purpose:"form",role:"alertdialog","aria-labelledby":t,"aria-describedby":o,...C(D("alert-dialog"),{className:g,style:b}),xstyle:y,"data-testid":f,children:a.jsx(L,{content:a.jsxs(A,{children:[a.jsx(I,{level:2,id:t,children:d}),a.jsx(k,{type:"body",color:"secondary",id:o,children:c})]}),footer:a.jsx(B,{children:a.jsxs(E,{gap:2,hAlign:"end",children:[a.jsx(i,{variant:"ghost",label:p,onClick:v}),a.jsx(i,{variant:x,label:h,onClick:j,isLoading:u})]})})})})}N.displayName="AlertDialog";/**
* @license lucide-react v1.22.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const T=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],M=H("phone",T);export{N as A,M as P};