1import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{V as t,nt as n}from"./vendor-react-BDw52h3v.js";import{a as r,c as i,i as a,l as o,n as s,o as c,r as l,s as u}from"./fetch-DFmLSIPj.js";import{M as d,P as f,R as p,k as m,l as h,n as g,u as _}from"./polymorphic-factory-BOlX0U7n.js";import{c as v,i as y,l as b}from"./FocusTrap-4uMDJp9F.js";import{s as x}from"./CloseButton-aYdNv1MH.js";var S=e(n(),1),C=t(),w={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},[T,E]=b(`Modal component was not found in tree`),D=g((e,t)=>{let{classNames:n,className:r,style:a,styles:o,vars:s,...c}=h(`ModalBody`,null,e),l=E();return(0,C.jsx)(i,{ref:t,...l.getStyles(`body`,{classNames:n,style:a,styles:o,className:r}),...c})});D.classes=w,D.displayName=`@mantine/core/ModalBody`;var O=g((e,t)=>{let{classNames:n,className:r,style:i,styles:a,vars:o,...s}=h(`ModalCloseButton`,null,e),c=E();return(0,C.jsx)(u,{ref:t,...c.getStyles(`close`,{classNames:n,style:i,styles:a,className:r}),...s})});O.classes=w,O.displayName=`@mantine/core/ModalCloseButton`;var k=g((e,t)=>{let{classNames:n,className:r,style:i,styles:a,vars:o,children:l,__hidden:u,...d}=h(`ModalContent`,null,e),f=E(),m=f.scrollAreaComponent||s;return(0,C.jsx)(c,{...f.getStyles(`content`,{className:r,style:i,styles:a,classNames:n}),innerProps:f.getStyles(`inner`,{className:r,style:i,styles:a,classNames:n}),"data-full-screen":f.fullScreen||void 0,"data-modal-content":!0,"data-hidden":u||void 0,ref:t,...d,children:(0,C.jsx)(m,{style:{maxHeight:f.fullScreen?`100dvh`:`calc(100dvh - (${p(f.yOffset)} * 2))`},children:l})})});k.classes=w,k.displayName=`@mantine/core/ModalContent`;var A=g((e,t)=>{let{classNames:n,className:i,style:a,styles:o,vars:s,...c}=h(`ModalHeader`,null,e),l=E();return(0,C.jsx)(r,{ref:t,...l.getStyles(`header`,{classNames:n,style:a,styles:o,className:i}),...c})});A.classes=w,A.displayName=`@mantine/core/ModalHeader`;var j=g((e,t)=>{let{classNames:n,className:r,style:i,styles:o,vars:s,...c}=h(`ModalOverlay`,null,e),l=E();return(0,C.jsx)(a,{ref:t,...l.getStyles(`overlay`,{classNames:n,style:i,styles:o,className:r}),...c})});j.classes=w,j.displayName=`@mantine/core/ModalOverlay`;var M={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:v(`modal`),transitionProps:{duration:200,transition:`fade-
1down`},yOffset:`5dvh`},N=m((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:d(t),"--modal-size":f(n,`modal-size`),"--modal-y-offset":p(r),"--modal-x-offset":p(i)}})),P=g((e,t)=>{let n=h(`ModalRoot`,M,e),{classNames:r,className:i,style:a,styles:s,unstyled:c,vars:l,yOffset:u,scrollAreaComponent:d,radius:f,fullScreen:p,centered:m,xOffset:g,__staticSelector:v,attributes:b,...x}=n,S=_({name:v,classes:w,props:n,className:i,style:a,classNames:r,styles:s,unstyled:c,attributes:b,vars:l,varsResolver:N});return(0,C.jsx)(T,{value:{yOffset:u,scrollAreaComponent:d,getStyles:S,fullScreen:p},children:(0,C.jsx)(o,{ref:t,...S(`root`),"data-full-screen":p||void 0,"data-centered":m||void 0,"data-offset-scrollbars":d===y.Autosize||void 0,unstyled:c,...x})})});P.classes=w,P.displayName=`@mantine/core/ModalRoot`;var[F,I]=x();function L({children:e}){let[t,n]=(0,S.useState)([]),[r,i]=(0,S.useState)(v(`modal`));return(0,C.jsx)(F,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}L.displayName=`@mantine/core/ModalStack`;var R=g((e,t)=>{let{classNames:n,className:r,style:i,styles:a,vars:o,...s}=h(`ModalTitle`,null,e),c=E();return(0,C.jsx)(l,{ref:t,...c.getStyles(`title`,{classNames:n,style:i,styles:a,className:r}),...s})});R.classes=w,R.displayName=`@mantine/core/ModalTitle`;var z={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:v(`modal`),transitionProps:{duration:200,transition:`fade-
1down`},withOverlay:!0,withCloseButton:!0},B=g((e,t)=>{let{title:n,withOverlay:r,overlayProps:i,withCloseButton:a,closeButtonProps:o,children:s,radius:c,opened:l,stackId:u,zIndex:d,...f}=h(`Modal`,z,e),p=I(),m=!!n||a,g=p&&u?{closeOnEscape:p.currentId===u,trapFocus:p.currentId===u,zIndex:p.getZIndex(u)}:{},_=r===!1?!1:u&&p?p.currentId===u:l;return(0,S.useEffect)(()=>{p&&u&&(l?p.addModal(u,d||v(`modal`)):p.removeModal(u))},[l,u,d]),(0,C.jsxs)(P,{ref:t,radius:c,opened:l,zIndex:p&&u?p.getZIndex(u):d,...f,...g,children:[r&&(0,C.jsx)(j,{visible:_,transitionProps:p&&u?{duration:0}:void 0,...i}),(0,C.jsxs)(k,{radius:c,__hidden:p&&u&&l?u!==p.currentId:!1,children:[m&&(0,C.jsxs)(A,{children:[n&&(0,C.jsx)(R,{children:n}),a&&(0,C.jsx)(O,{...o})]}),(0,C.jsx)(D,{children:s})]})]})});B.classes=w,B.displayName=`@mantine/core/Modal`,B.Root=P,B.Overlay=j,B.Content=k,B.Body=D,B.Header=A,B.Title=R,B.CloseButton=O,B.Stack=L;export{B 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.