PageSourceSearch

https://lemaudit.com/assets/dist-lTaTQR9F.js

js lemaudit.com collected 2026-10-04 14:55:33 UTC 4,944 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{n as t,t as n}from"./jsx-runtime-D3F0h15I.js";import{n as r,t as i}from"./dist-CN9eRH7f.js";import{i as a,o}from"./button-DyTHqICG.js";import{r as s,t as c}from"./dist-D7FKdtKV.js";import{a as l,i as u,l as d,n as f,r as p,s as m,t as h}from"./es2015-BxSul9lo.js";import{t as g}from"./dist-ls37bb14.js";import{n as _,t as v}from"./dist-D1OXWD66.js";var y=e(t(),1),b=n(),x=Object.defineProperty,S=(e,t)=>x(e,`name`,{value:t,configurable:!0}),C=`Dialog`,[w,T]=s(C),[E,D]=w(C),O=S(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=y.useRef(null),l=y.useRef(null),[u,d]=i({prop:r,defaultProp:a??!1,onChange:o,caller:C}),[f,p]=y.useState(0),[m,h]=y.useState(0);return(0,b.jsx)(E,{scope:t,triggerRef:c,contentRef:l,contentId:v(),titleId:v(),descriptionId:v(),titlePresent:f>0,descriptionPresent:m>0,setTitleCount:p,setDescriptionCount:h,open:u,onOpenChange:d,onOpenToggle:y.useCallback(()=>d(e=>!e),[d]),modal:s,children:n})},`Dialog`),k=`DialogTrigger`,A=y.forwardRef(S(function(e,t){let{__scopeDialog:n,...i}=e,a=D(k,n),s=o(t,a.triggerRef);return(0,b.jsx)(c.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":X(a.open),...i,ref:s,onClick:r(e.onClick,a.onOpenToggle)})},`DialogTrigger`)),j=`DialogPortal`,[M,N]=w(j,{forceMount:void 0}),P=S(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=D(j,t);return(0,b.jsx)(M,{scope:t,forceMount:n,children:y.Children.map(r,e=>(0,b.jsx)(_,{present:n||a.open,children:(0,b.jsx)(l,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),F=`DialogOverlay`,I=y.forwardRef(S(function(e,t){let n=N(F,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=D(F,e.__scopeDialog);return a.modal?(0,b.jsx)(_,{present:r||a.open,children:(0,b.jsx)(R,{...i,ref:t})}):null},`DialogOverlay`)),L=a(`DialogOverlay.RemoveScroll`),R=y.forwardRef(S(function(e,t){let{__scopeDialog:n,...r}=e,i=D(F,n),a=d(),s=o(t,a);return(0,b.jsx)(f,{as:L,allowPinchZoom:!0,shards:[i.contentRef],children:(0,b.jsx)(c.div,{"data-state":X(i.open),...r,ref:s,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),z=`DialogContent`,B=y.forwardRef(S(function(e,t){let n=N(z,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=D(z,e.__scopeDialog);return(0,b.jsx)(_,{present:r||a.open,children:a.modal?(0,b.jsx)(V,{...i,ref:t}):(0,b.jsx)(H,{...i,ref:t})})},`DialogContent`)),V=y.forwardRef(S(function(e,t){let n=D(z,e.__scopeDialog),i=y.useRef(null),a=o(t,n.contentRef,i);return y.useEffect(()=>{let e=i.current;if(e)return h(e)},[]),(0,b.jsx)(U,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:r(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:r(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:r(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),H=y.forwardRef(S(function(e,t){let n=D(z,e.__scopeDialog),r=y.useRef(!1),i=y.useRef(!1);return(0,b.jsx)(U,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),U=y.forwardRef(S(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=D(z,n);return p(),(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(u,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,b.jsx)(m,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":X(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),W=`DialogTitle`,G=y.forwardRef(S(function(e,t){let{__scopeDialog:n,...r}=e,i=D(W,n),{setTitleCount:a}=i;return g(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,b.jsx)(c.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),K=`DialogDescription`,q=y.forwardRef(S(function(e,t){let{__scopeDialog:n,...r}=e,i=D(K,n),{setDescriptionCount:a}=i;return g(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,b.jsx)(c.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),J=`DialogClose`,Y=y.forwardRef(S(function(e,t){let{__scopeDialog:n,...i}=e,a=D(J,n);return(0,b.jsx)(c.button,{type:`button`,...i,ref:t,onClick:r(e.onClick,()=>a.onOpenChange(!1))})},`DialogClose`));function X(e){return e?`open`:`closed`}S(X,`getState`);export{I as a,A as c,q as i,T as l,Y as n,P as o,B as r,G as s,O 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.