1import{n as e,s as t,t as n}from"./jsx-runtime-DnlWeMvz.js";import{t as r}from"./x-oL-TQBJy.js";import{t as i}from"./utils-DXalBF5w.js";import{B as a,D as o,O as s,r as c,t as l}from"./button-B0YAmmdE.js";import{Z as u}from"./createBaseUIEventDetails-CemeaUUk.js";import{B as d,S as f,f as p}from"./useOpenInteractionType-Bbl4fMhY.js";import{d as m,g as h,h as g,i as _,m as v,n as y,p as b,r as x,t as S}from"./DialogTitle-CC4G5E8-.js";var C=t(e()),w=C.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:l=!0,id:g,payload:_,handle:v,...y}=e,b=h(!0),x=v?.store??b?.store;if(!x)throw Error(a(79));let S=u(g),w=x.useState(`floatingRootContext`),T=x.useState(`isOpenedByTrigger`,S),E=C.useRef(null),{registerTrigger:D,isMountedByThisTrigger:O}=m(S,E,x,{payload:_}),{getButtonProps:k,buttonRef:A}=c({disabled:i,native:l}),j=p([f(w,{enabled:w!=null})]),M={disabled:i,open:T},N=x.useState(`triggerProps`,O);return o(`button`,e,{state:M,ref:[A,t,D,E],props:[j.getReferenceProps(),N,{[s]:``,id:S},y,k],stateAttributesMapping:d})}),T=n();function E({...e}){return(0,T.jsx)(y,{"data-slot":`dialog`,...e})}function D({...e}){return(0,T.jsx)(w,{"data-slot":`dialog-trigger`,...e})}function O({...e}){return(0,T.jsx)(x,{"data-slot":`dialog-portal`,...e})}function k({className:e,...t}){return(0,T.jsx)(g,{"data-slot":`dialog-overlay`,className:i(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function A({className:e,children:t,showCloseButton:n=!0,...a}){return(0,T.jsxs)(O,{children:[(0,T.jsx)(k,{}),(0,T.jsxs)(_,{"data-slot":`dialog-content`,className:i(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-lg data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...a,children:[t,n&&(0,T.jsxs)(v,{"data-slot":`dialog-close`,render:(0,T.jsx)(l,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,T.jsx)(r,{}),(0,T.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function j({className:e,...t}){return(0,T.jsx)(`div`,{"data-slot":`dialog-header`,className:i(`flex flex-col gap-2`,e),...t})}function M({className:e,showCloseButton:t=!1,children:n,...r}){return(0,T.jsxs)(`div`,{"data-slot":`dialog-footer`,className:i(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,T.jsx)(v,{render:(0,T.jsx)(l,{variant:`outline`}),children:`Close`})]})}function N({className:e,...t}){return(0,T.jsx)(S,{"data-slot":`dialog-title`,className:i(`text-base leading-none font-medium`,e),...t})}function P({className:e,...t}){return(0,T.jsx)(b,{"data-slot":`dialog-description`,className:i(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}export{j as a,M as i,A as n,N as o,P as r,D as s,E 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.