var o=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var h=(e,t)=>{for(var l in t)o(e,l,{get:t[l],enumerable:!0})},K=(e,t,l,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of W(t))!C.call(e,a)&&a!==l&&o(e,a,{get:()=>t[a],enumerable:!(c=I(t,a))||c.enumerable});return e};var M=e=>K(o({},"__esModule",{value:!0}),e);var E={};h(E,{default:()=>D});module.exports=M(E);var x=require("react-redux");var f=require("@reduxjs/toolkit");var d=require("@reduxjs/toolkit"),O={selectedWallet:void 0,selectedSolanaWallet:void 0,accessKey:null,details:{}},r=(0,d.createSlice)({name:"user",initialState:O,reducers:{updateSelectedWallet(e,{payload:{wallet:t}}){e.selectedWallet=t},updateSolanaSelectedWallet(e,{payload:{wallet:t}}){e.selectedSolanaWallet=t},updateAccessKey(e,{payload:{accessKey:t}}){e.accessKey=t},updateUserDetails(e,{payload:{details:t}}){e.details=t}}}),{updateSelectedWallet:B,updateSolanaSelectedWallet:U,updateAccessKey:g,updateUserDetails:k}=r.actions,p=r.reducer;var i=require("@reduxjs/toolkit"),P={selectedCollectionId:null,showMint:!1,collectionViewOpen:!1,selectedSpaceId:!1},n=(0,i.createSlice)({name:"collection",initialState:P,reducers:{updateSelectedCollectionId(e,{payload:{id:t}}){e.selectedCollectionId=t},updateShowMint(e,{payload:{showMint:t}}){e.showMint=t},updateCollectionViewOpen(e,{payload:{collectionViewOpen:t}}){e.collectionViewOpen=t},updateSelectedSpaceId(e,{payload:{id:t}}){e.selectedSpaceId=t}}}),{updateSelectedCollectionId:R,updateShowMint:T,updateCollectionViewOpen:Y,updateSelectedSpaceId:_}=n.actions,s=n.reducer;var u=require("@reduxjs/toolkit"),V={balance:0},S=(0,u.createSlice)({name:"space",initialState:V,reducers:{updateSpaceBalance(e,t){e.balance=Number(t.payload)}}}),{updateSpaceBalance:z}=S.actions,m=S.reducer;var b=(0,f.configureStore)({reducer:{user:p,collection:s,space:m},middleware:e=>e({thunk:!0}),preloadedState:{}}),y=b;var w=require("react/jsx-runtime"),v=({children:e})=>(0,w.jsx)(x.Provider,{store:y,children:e}),D=v;
