{"version":3,"file":"index.cjs","names":["createReduxStore","STORE_NAME","register","unlock","actions","selectors"],"sources":["../../src/store/index.ts"],"sourcesContent":["import { createReduxStore, register } from '@wordpress/data';\nimport type { ReduxStoreConfig } from '@wordpress/data';\nimport reducer from './reducer';\nimport * as actions from './actions';\nimport { STORE_NAME } from './constants';\nimport * as selectors from './selectors';\nimport { unlock } from '../lock-unlock';\nimport type { State } from './types';\n\n/**\n * Post editor data store configuration.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#registerStore\n */\nexport const storeConfig: Pick<\n\tReduxStoreConfig< State, unknown, unknown >,\n\t'reducer'\n> = {\n\treducer,\n};\n\n/**\n * Store definition for the editor namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n */\nexport const store = createReduxStore( STORE_NAME, {\n\t...storeConfig,\n} );\n\nregister( store );\nunlock( store ).registerPrivateActions( actions );\nunlock( store ).registerPrivateSelectors( selectors );\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,cAGT,EACH,SAAA,aAAA,QACD;;;;;;AAOA,MAAa,SAAA,GAAQA,gBAAAA,iBAAAA,CAAkBC,eAAAA,YAAY,EAClD,GAAG,YACJ,CAAE;CAEFC,GAAAA,gBAAAA,SAAAA,CAAU,KAAM;CAChBC,GAAAA,kBAAAA,OAAAA,CAAQ,KAAM,CAAC,CAAC,uBAAwBC,YAAQ;CAChDD,GAAAA,kBAAAA,OAAAA,CAAQ,KAAM,CAAC,CAAC,yBAA0BE,cAAU"}