sui-explorer-local
Version:
Local Sui Explorer
2 lines (1 loc) • 19.7 kB
JavaScript
import{j as c}from"./jsx-runtime-ffb262ed.js";import{r as u,R as f,a as Z}from"./index-76fb7be0.js";import{X as we,I as Je}from"./IconButton-47608385.js";import{p as Ke,f as be,o as $e,q as J}from"./transition-b9d852df.js";import{a as w,U as D,y as M,d as Te,u as k,A as U,M as j,f as de,e as fe,C as S,B as C,t as xe,N as Qe,D as Ze,l as X,I as N,O as pe,j as et,i as W,k as tt,p as nt,r as rt}from"./keyboard-c7de49e8.js";import{n as _e,a as ot,s as Y,c as at,E as Ce,e as lt,N as it,l as ee,t as te}from"./use-root-containers-c18da5d8.js";import{H as De}from"./Heading-31d5eddc.js";import{I as st}from"./Image-6fadc8fe.js";import{T as ut}from"./Text-6932fd32.js";function oe(e,t){let n=u.useRef([]),r=w(e);u.useEffect(()=>{let o=[...n.current];for(let[l,i]of t.entries())if(n.current[l]!==i){let a=r(t,o);return n.current=t,a}},[r,...t])}function ct(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let x=[];ct(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&x[0]!==t.target&&(x.unshift(t.target),x=x.filter(n=>n!=null&&n.isConnected),x.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Me(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let dt="div";var Se=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Se||{});function ft(e,t){let n=u.useRef(null),r=M(n,t),{initialFocus:o,containers:l,features:i=30,...a}=e;Te()||(i=1);let s=_e(n);gt({ownerDocument:s},!!(i&16));let m=ht({ownerDocument:s,container:n,initialFocus:o},!!(i&2));vt({ownerDocument:s,container:n,containers:l,previousActiveElement:m},!!(i&8));let p=ot(),P=w(y=>{let g=n.current;g&&(T=>T())(()=>{k(p.current,{[Y.Forwards]:()=>{U(g,j.First,{skipElements:[y.relatedTarget]})},[Y.Backwards]:()=>{U(g,j.Last,{skipElements:[y.relatedTarget]})}})})}),I=Ke(),b=u.useRef(!1),E={ref:r,onKeyDown(y){y.key=="Tab"&&(b.current=!0,I.requestAnimationFrame(()=>{b.current=!1}))},onBlur(y){let g=Me(l);n.current instanceof HTMLElement&&g.add(n.current);let T=y.relatedTarget;T instanceof HTMLElement&&T.dataset.headlessuiFocusGuard!=="true"&&(Le(g,T)||(b.current?U(n.current,k(p.current,{[Y.Forwards]:()=>j.Next,[Y.Backwards]:()=>j.Previous})|j.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&C(y.target)))}};return f.createElement(f.Fragment,null,!!(i&4)&&f.createElement(de,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:P,features:fe.Focusable}),S({ourProps:E,theirProps:a,defaultTag:dt,name:"FocusTrap"}),!!(i&4)&&f.createElement(de,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:P,features:fe.Focusable}))}let pt=D(ft),R=Object.assign(pt,{features:Se});function mt(e=!0){let t=u.useRef(x.slice());return oe(([n],[r])=>{r===!0&&n===!1&&xe(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=x.slice())},[e,x,t]),w(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function gt({ownerDocument:e},t){let n=mt(t);oe(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&C(n())},[t]),at(()=>{t&&C(n())})}function ht({ownerDocument:e,container:t,initialFocus:n},r){let o=u.useRef(null),l=be();return oe(()=>{if(!r)return;let i=t.current;i&&xe(()=>{if(!l.current)return;let a=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===a){o.current=a;return}}else if(i.contains(a)){o.current=a;return}n!=null&&n.current?C(n.current):U(i,j.First)===Qe.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function vt({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let l=be();Ce(e==null?void 0:e.defaultView,"focus",i=>{if(!o||!l.current)return;let a=Me(n);t.current instanceof HTMLElement&&a.add(t.current);let s=r.current;if(!s)return;let m=i.target;m&&m instanceof HTMLElement?Le(a,m)?(r.current=m,C(m)):(i.preventDefault(),i.stopPropagation(),C(s)):C(r.current)},!0)}function Le(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function yt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Et=typeof Object.is=="function"?Object.is:yt,{useState:wt,useEffect:bt,useLayoutEffect:$t,useDebugValue:Tt}=Z;function xt(e,t,n){const r=t(),[{inst:o},l]=wt({inst:{value:r,getSnapshot:t}});return $t(()=>{o.value=r,o.getSnapshot=t,K(o)&&l({inst:o})},[e,r,t]),bt(()=>(K(o)&&l({inst:o}),e(()=>{K(o)&&l({inst:o})})),[e]),Tt(r),r}function K(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!Et(n,r)}catch{return!0}}function _t(e,t,n){return t()}const Ct=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dt=!Ct,Mt=Dt?_t:xt,St="useSyncExternalStore"in Z?(e=>e.useSyncExternalStore)(Z):Mt;function Lt(e){return St(e.subscribe,e.getSnapshot,e.getSnapshot)}function jt(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...l){let i=t[o].call(n,...l);i&&(n=i,r.forEach(a=>a()))}}}function Nt(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,l=e-o;n.style(r,"paddingRight",`${l}px`)}}}function Pt(){return Ze()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(l=>l()).some(l=>l.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=$e();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let l=(o=window.scrollY)!=null?o:window.pageYOffset,i=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let s=a.target.closest("a");if(!s)return;let{hash:m}=new URL(s.href),p=e.querySelector(m);p&&!r(p)&&(i=p)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let s=a.target;for(;s.parentElement&&r(s.parentElement);)s=s.parentElement;t.style(s,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let s=a.target;for(;s.parentElement&&s.dataset.headlessuiPortal!==""&&!(s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth);)s=s.parentElement;s.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()},{passive:!1}),t.add(()=>{var a;let s=(a=window.scrollY)!=null?a:window.pageYOffset;l!==s&&window.scrollTo(0,l),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function Rt(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Ot(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let _=jt(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:$e(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Ot(n)},o=[Pt(),Nt(),Rt()];o.forEach(({before:l})=>l==null?void 0:l(r)),o.forEach(({after:l})=>l==null?void 0:l(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});_.subscribe(()=>{let e=_.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&_.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&_.dispatch("TEARDOWN",n)}});function kt(e,t,n){let r=Lt(_),o=e?r.get(e):void 0,l=o?o.count>0:!1;return X(()=>{if(!(!e||!t))return _.dispatch("PUSH",e,n),()=>_.dispatch("POP",e,n)},[t,e]),l}let Q=new Map,O=new Map;function me(e,t=!0){X(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var i;if(!r)return;let a=(i=O.get(r))!=null?i:1;if(a===1?O.delete(r):O.set(r,a-1),a!==1)return;let s=Q.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,Q.delete(r))}let l=(n=O.get(r))!=null?n:0;return O.set(r,l+1),l!==0||(Q.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}let ae=u.createContext(()=>{});ae.displayName="StackContext";var ne=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(ne||{});function Ft(){return u.useContext(ae)}function It({children:e,onUpdate:t,type:n,element:r,enabled:o}){let l=Ft(),i=w((...a)=>{t==null||t(...a),l(...a)});return X(()=>{let a=o===void 0||o===!0;return a&&i(0,n,r),()=>{a&&i(1,n,r)}},[i,n,r,o]),f.createElement(ae.Provider,{value:i},e)}let je=u.createContext(null);function Ne(){let e=u.useContext(je);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Ne),t}return e}function At(){let[e,t]=u.useState([]);return[e.length>0?e.join(" "):void 0,u.useMemo(()=>function(n){let r=w(l=>(t(i=>[...i,l]),()=>t(i=>{let a=i.slice(),s=a.indexOf(l);return s!==-1&&a.splice(s,1),a}))),o=u.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return f.createElement(je.Provider,{value:o},n.children)},[t])]}let Bt="p";function Ht(e,t){let n=N(),{id:r=`headlessui-description-${n}`,...o}=e,l=Ne(),i=M(t);X(()=>l.register(r),[r,l.register]);let a={ref:i,...l.props,id:r};return S({ourProps:a,theirProps:o,slot:l.slot||{},defaultTag:Bt,name:l.name||"Description"})}let Vt=D(Ht),qt=Object.assign(Vt,{});var Wt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Wt||{}),Yt=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Yt||{});let Ut={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},z=u.createContext(null);z.displayName="DialogContext";function F(e){let t=u.useContext(z);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,F),n}return t}function zt(e,t,n=()=>[document.body]){kt(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function Xt(e,t){return k(t.type,Ut,e,t)}let Gt="div",Jt=pe.RenderStrategy|pe.Static;function Kt(e,t){let n=N(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:l,initialFocus:i,role:a="dialog",__demoMode:s=!1,...m}=e,[p,P]=u.useState(0),I=u.useRef(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(I.current||(I.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let b=et();o===void 0&&b!==null&&(o=(b&W.Open)===W.Open);let E=u.useRef(null),y=M(E,t),g=_e(E),T=e.hasOwnProperty("open")||b!==null,le=e.hasOwnProperty("onClose");if(!T&&!le)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!T)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!le)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof l!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${l}`);let h=o?0:1,[A,Pe]=u.useReducer(Xt,{titleId:null,descriptionId:null,panelRef:u.createRef()}),L=w(()=>l(!1)),ie=w(d=>Pe({type:0,id:d})),B=Te()?s?!1:h===0:!1,H=p>1,se=u.useContext(z)!==null,[Re,Oe]=lt(),ke={get current(){var d;return(d=A.panelRef.current)!=null?d:E.current}},{resolveContainers:G,mainTreeNodeRef:V,MainTreeNode:Fe}=it({portals:Re,defaultContainers:[ke]}),Ie=H?"parent":"leaf",ue=b!==null?(b&W.Closing)===W.Closing:!1,Ae=(()=>se||ue?!1:B)(),Be=u.useCallback(()=>{var d,$;return($=Array.from((d=g==null?void 0:g.querySelectorAll("body > *"))!=null?d:[]).find(v=>v.id==="headlessui-portal-root"?!1:v.contains(V.current)&&v instanceof HTMLElement))!=null?$:null},[V]);me(Be,Ae);let He=(()=>H?!0:B)(),Ve=u.useCallback(()=>{var d,$;return($=Array.from((d=g==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?d:[]).find(v=>v.contains(V.current)&&v instanceof HTMLElement))!=null?$:null},[V]);me(Ve,He);let qe=(()=>!(!B||H))();tt(G,L,qe);let We=(()=>!(H||h!==0))();Ce(g==null?void 0:g.defaultView,"keydown",d=>{We&&(d.defaultPrevented||d.key===nt.Escape&&(d.preventDefault(),d.stopPropagation(),L()))});let Ye=(()=>!(ue||h!==0||se))();zt(g,Ye,G),u.useEffect(()=>{if(h!==0||!E.current)return;let d=new ResizeObserver($=>{for(let v of $){let q=v.target.getBoundingClientRect();q.x===0&&q.y===0&&q.width===0&&q.height===0&&L()}});return d.observe(E.current),()=>d.disconnect()},[h,E,L]);let[Ue,ze]=At(),Xe=u.useMemo(()=>[{dialogState:h,close:L,setTitleId:ie},A],[h,A,L,ie]),ce=u.useMemo(()=>({open:h===0}),[h]),Ge={ref:y,id:r,role:a,"aria-modal":h===0?!0:void 0,"aria-labelledby":A.titleId,"aria-describedby":Ue};return f.createElement(It,{type:"Dialog",enabled:h===0,element:E,onUpdate:w((d,$)=>{$==="Dialog"&&k(d,{[ne.Add]:()=>P(v=>v+1),[ne.Remove]:()=>P(v=>v-1)})})},f.createElement(ee,{force:!0},f.createElement(te,null,f.createElement(z.Provider,{value:Xe},f.createElement(te.Group,{target:E},f.createElement(ee,{force:!1},f.createElement(ze,{slot:ce,name:"Dialog.Description"},f.createElement(R,{initialFocus:i,containers:G,features:B?k(Ie,{parent:R.features.RestoreFocus,leaf:R.features.All&~R.features.FocusLock}):R.features.None},f.createElement(Oe,null,S({ourProps:Ge,theirProps:m,slot:ce,defaultTag:Gt,features:Jt,visible:h===0,name:"Dialog"}))))))))),f.createElement(Fe,null))}let Qt="div";function Zt(e,t){let n=N(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:l,close:i}]=F("Dialog.Overlay"),a=M(t),s=w(p=>{if(p.target===p.currentTarget){if(rt(p.currentTarget))return p.preventDefault();p.preventDefault(),p.stopPropagation(),i()}}),m=u.useMemo(()=>({open:l===0}),[l]);return S({ourProps:{ref:a,id:r,"aria-hidden":!0,onClick:s},theirProps:o,slot:m,defaultTag:Qt,name:"Dialog.Overlay"})}let en="div";function tn(e,t){let n=N(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:l},i]=F("Dialog.Backdrop"),a=M(t);u.useEffect(()=>{if(i.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[i.panelRef]);let s=u.useMemo(()=>({open:l===0}),[l]);return f.createElement(ee,{force:!0},f.createElement(te,null,S({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:s,defaultTag:en,name:"Dialog.Backdrop"})))}let nn="div";function rn(e,t){let n=N(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:l},i]=F("Dialog.Panel"),a=M(t,i.panelRef),s=u.useMemo(()=>({open:l===0}),[l]),m=w(p=>{p.stopPropagation()});return S({ourProps:{ref:a,id:r,onClick:m},theirProps:o,slot:s,defaultTag:nn,name:"Dialog.Panel"})}let on="h2";function an(e,t){let n=N(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:l,setTitleId:i}]=F("Dialog.Title"),a=M(t);u.useEffect(()=>(i(r),()=>i(null)),[r,i]);let s=u.useMemo(()=>({open:l===0}),[l]);return S({ourProps:{ref:a,id:r},theirProps:o,slot:s,defaultTag:on,name:"Dialog.Title"})}let ln=D(Kt),sn=D(tn),un=D(rn),cn=D(Zt),dn=D(an),fn=Object.assign(ln,{Backdrop:sn,Panel:un,Overlay:cn,Title:dn,Description:qt});function ge({onClick:e}){return c.jsx("button",{onClick:e,type:"button",className:"absolute right-0 top-0 p-4 text-steel hover:text-steel-darker",children:c.jsx(we,{})})}function he({children:e}){return c.jsx("div",{className:"py-5",children:e})}function ve({children:e}){return c.jsx("div",{className:"flex flex-col rounded-lg bg-gray-40 p-5",children:e})}function ye({children:e}){return c.jsx(De,{variant:"heading3/semibold",color:"gray-90",children:e})}function re({open:e,onClose:t,children:n}){return c.jsx(J,{show:e,as:u.Fragment,children:c.jsxs(fn,{className:"relative z-50",open:e,onClose:t,children:[c.jsx(J.Child,{as:u.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:c.jsx("div",{className:"fixed inset-0 z-10 bg-gray-100/80","aria-hidden":"true"})}),c.jsx("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:c.jsx("div",{className:"flex min-h-full items-center justify-center",children:c.jsx(J.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:c.jsx("div",{className:"w-full max-w-xl transform align-middle transition-all",children:n})})})})]})})}try{ge.displayName="CloseButton",ge.__docgenInfo={description:"",displayName:"CloseButton",props:{onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => void"}}}}}catch{}try{he.displayName="ModalBody",he.__docgenInfo={description:"",displayName:"ModalBody",props:{}}}catch{}try{ve.displayName="ModalContent",ve.__docgenInfo={description:"",displayName:"ModalContent",props:{}}}catch{}try{ye.displayName="ModalHeading",ye.__docgenInfo={description:"",displayName:"ModalHeading",props:{}}}catch{}try{re.displayName="Modal",re.__docgenInfo={description:"",displayName:"Modal",props:{open:{defaultValue:null,description:"",name:"open",required:!0,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"() => void"}}}}}catch{}function Ee({open:e,onClose:t,alt:n,title:r,subtitle:o,src:l,video:i,moderate:a=!1}){return c.jsxs(re,{open:e,onClose:t,children:[c.jsxs("div",{className:"flex flex-col gap-5",children:[i?c.jsx("video",{controls:!0,className:"h-full w-full",src:i}):c.jsx(st,{alt:n,src:l,rounded:"none",moderate:a}),c.jsxs("div",{className:"flex flex-col gap-3",children:[c.jsx(De,{variant:"heading2/semibold",color:"sui-light",truncate:!0,children:r}),c.jsx(ut,{color:"gray-60",variant:"body/medium",children:o})]})]}),c.jsx("div",{className:"absolute -right-12 top-0",children:c.jsx(Je,{onClick:t,className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border-0 bg-gray-90 p-0 text-sui-light outline-none hover:scale-105 active:scale-100","aria-label":"Close",children:c.jsx(we,{})})})]})}try{Ee.displayName="ObjectModal",Ee.__docgenInfo={description:"",displayName:"ObjectModal",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},subtitle:{defaultValue:null,description:"",name:"subtitle",required:!0,type:{name:"string"}},alt:{defaultValue:null,description:"",name:"alt",required:!0,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!0,type:{name:"string"}},video:{defaultValue:null,description:"",name:"video",required:!1,type:{name:"string | null"}},moderate:{defaultValue:{value:"false"},description:"",name:"moderate",required:!1,type:{name:"boolean"}},open:{defaultValue:null,description:"",name:"open",required:!0,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"() => void"}}}}}catch{}export{ge as C,re as M,Ee as O,ve as a,ye as b,he as c};