var _=Object.defineProperty,x=Object.defineProperties;var P=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var c=(e,t,r)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&c(e,r,t[r]);if(u)for(var r of u(t))g.call(t,r)&&c(e,r,t[r]);return e},l=(e,t)=>x(e,P(t));import{_ as y}from"./index.c6944236.js";import{r as s,j as L}from"./vendor.e6eaca24.js";const w=e=>{const[t,r]=s.exports.useState(),[O,i]=s.exports.useState(!1),o=s.exports.useRef(),a=s.exports.useRef();return s.exports.useEffect(()=>{if(!o.current){const n=async()=>{if(O)return;i(!0);const p=new Promise(f=>a.current=f);try{r((await y(()=>import("./PermissionManager.268e9301.js"),["assets/PermissionManager.268e9301.js","assets/PermissionManager.ced6e37b.css","assets/vendor.e6eaca24.js","assets/index.b18eeccd.js","assets/index.c6944236.js","assets/index.6a4b7b90.css","assets/useDialog.e491a615.js","assets/useAsyncCallbackPending.bf7bbf90.js","assets/UserAvatar.acd4ab4e.js","assets/lodash.default.91c04a21.js"])).default)}catch(f){console.log(f)}return i(!1),await p};typeof e.refOpen=="function"?e.refOpen(n):e.refOpen.current=n}},[e.refOpen]),t?L(t,l(m({},e),{refOpen:n=>{typeof e.refOpen=="function"?e.refOpen(n):e.refOpen.current=n,o.current||(o.current=!0,n().then(a.current))}})):null};export{w as L};
