const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DeviceDetail-a21Y0lur.js","assets/react-B8IZ02wI.js","assets/index-Bg7bo8aA.js","assets/preload-helper-zJ_50EbN.js","assets/button-DqbiydrF.js","assets/useForm-D_WiMFpZ.js","assets/style-Q47GLgxx.js","assets/authStore-BvQBJ9ky.js","assets/sessionAuth-DJHvHLsv.js","assets/index-CWOWNJiz.css","assets/DetailPageHeader-CjV_3Ft_.js","assets/table-BvNKB5G4.js","assets/checkbox-C6Bqqig-.js","assets/select-CDwQ-YxO.js","assets/CheckOutlined-DphQKjKC.js","assets/input-number-CGTfw9ys.js","assets/PlusOutlined-CP8wKFb7.js","assets/image-Co5qpec0.js","assets/drawer-D8dbvJLh.js","assets/tabs-pp50ndfr.js","assets/statistic-CV5qUGMr.js","assets/descriptions-jIXgutZ5.js","assets/popconfirm-DzIHUyAe.js","assets/popover-Dv6UP9sS.js","assets/operationLog-94TIZaJu.js","assets/steps-Djw5JQlw.js","assets/AccountFormModal-DU6VlM5b.js","assets/typography-Chzsf8_A.js","assets/switch-DhBIfeVT.js","assets/RealNamePersonSelector-BQLegJiw.js","assets/RealNamePersonFormModal-BSMB2VI1.js","assets/DictSelect-C1YarcTG.js","assets/UserSelect-DwxgSkKp.js","assets/fieldAccess-Ce4C729w.js","assets/FieldAccessValue-BinuhcV3.js","assets/fields-0NbWlxXa.js","assets/AssignModal-7iuTKeWy.js","assets/DeleteReasonModal-C_8V5RgU.js","assets/DetailNotFound-tUu8FUyt.js","assets/DeviceFormModal-s0V7eeV8.js","assets/upload-CFPSOK3x.js","assets/DownloadOutlined-EB2n7dTj.js","assets/progress-CZ95fQh-.js","assets/WarehouseSelect-BfCPVJ_3.js","assets/upload-D9W6AAsY.js","assets/DisplacedSimRebindModal-B36bCm2Q.js","assets/WarehouseTransferModal-Bg7TWYnT.js","assets/SimOutOfPoolTag-Bx-RnX4x.js","assets/StatusTag-BrwBKFM5.js","assets/useModulePerms-nG6gQ6_C.js","assets/listFieldColumns-DiVqfOMb.js","assets/ListFieldCell-DGVaDsHy.js","assets/tableColumns-CAIAh4Ng.js","assets/AccountDetail-DxyJ0Hpa.js","assets/SimDetailDrawer-DywHbjQh.js","assets/date-picker-BOP_umpb.js","assets/ClockCircleOutlined-BWZZax6s.js","assets/card-R6qklktc.js","assets/SimCardFormModal-CpBX34Yn.js"])))=>i.map(i=>d[i]);
import{i as e,t}from"./react-B8IZ02wI.js";import{t as n}from"./preload-helper-zJ_50EbN.js";import{n as r}from"./index-Bg7bo8aA.js";var i=e(t(),1),a=r(),o=(0,i.lazy)(()=>n(()=>import(`./DeviceDetail-a21Y0lur.js`).then(e=>({default:e.DeviceDetailDrawer})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52]))),s=(0,i.lazy)(()=>n(()=>import(`./AccountDetail-DxyJ0Hpa.js`).then(e=>({default:e.AccountDetailDrawer})),__vite__mapDeps([53,1,2,3,4,5,6,7,8,9,10,11,12,13,14,18,19,16,21,24,25,26,27,15,28,29,30,31,32,33,34,35,36,37,38,47]))),c=(0,i.lazy)(()=>n(()=>import(`./SimDetailDrawer-DywHbjQh.js`),__vite__mapDeps([54,1,2,3,4,5,6,7,8,9,55,56,13,14,11,12,15,16,18,19,57,21,22,23,31,45,34,33,58,29,30,28,32,43,35,49,52]))),l=3,u=(0,i.createContext)(0);function d(e){let t=(0,i.useContext)(u),[n,r]=(0,i.useState)(null),d=(0,i.useRef)(e);d.current=e;let f=(0,i.useCallback)(e=>{t>=l||r({kind:`device`,id:e})},[t]),p=(0,i.useCallback)(e=>{t>=l||r({kind:`account`,id:e})},[t]),m=(0,i.useCallback)(e=>{t>=l||r({kind:`sim`,id:e})},[t]),h=(0,i.useCallback)(()=>r(null),[]),g=(0,i.useCallback)(()=>{d.current?.()},[]),_=null;return n&&t<l&&(_=n.kind===`device`?(0,a.jsx)(o,{deviceId:n.id,open:!0,presentation:`modal`,onClose:h,onUpdated:g}):n.kind===`account`?(0,a.jsx)(s,{accountId:n.id,open:!0,presentation:`modal`,onClose:h,onUpdated:g}):(0,a.jsx)(c,{simId:n.id,open:!0,presentation:`modal`,onClose:h,onUpdated:g})),{openDevice:f,openAccount:p,openSim:m,closePeek:h,peekNode:_?(0,a.jsx)(u.Provider,{value:t+1,children:(0,a.jsx)(i.Suspense,{fallback:null,children:_})}):null}}export{d as t};