{
  "version": 3,
  "sources": ["../../src/store/index.ts"],
  "sourcesContent": ["/**\n * Internal dependencies\n */\nimport type { DataRegistry, StoreDescriptor, AnyConfig } from '../types';\n\nconst coreDataStore: StoreDescriptor< AnyConfig > = {\n\tname: 'core/data',\n\tinstantiate( registry: DataRegistry ) {\n\t\tconst getCoreDataSelector =\n\t\t\t( selectorName: string ) =>\n\t\t\t( key: string, ...args: unknown[] ) => {\n\t\t\t\treturn registry.select( key )[ selectorName ]( ...args );\n\t\t\t};\n\n\t\tconst getCoreDataAction =\n\t\t\t( actionName: string ) =>\n\t\t\t( key: string, ...args: unknown[] ) => {\n\t\t\t\treturn registry.dispatch( key )[ actionName ]( ...args );\n\t\t\t};\n\n\t\treturn {\n\t\t\tgetSelectors(): Record< string, ( ...args: any[] ) => any > {\n\t\t\t\treturn Object.fromEntries(\n\t\t\t\t\t[\n\t\t\t\t\t\t'getIsResolving',\n\t\t\t\t\t\t'hasStartedResolution',\n\t\t\t\t\t\t'hasFinishedResolution',\n\t\t\t\t\t\t'isResolving',\n\t\t\t\t\t\t'getCachedResolvers',\n\t\t\t\t\t].map( ( selectorName ) => [\n\t\t\t\t\t\tselectorName,\n\t\t\t\t\t\tgetCoreDataSelector( selectorName ),\n\t\t\t\t\t] )\n\t\t\t\t);\n\t\t\t},\n\n\t\t\tgetActions(): Record< string, ( ...args: any[] ) => any > {\n\t\t\t\treturn Object.fromEntries(\n\t\t\t\t\t[\n\t\t\t\t\t\t'startResolution',\n\t\t\t\t\t\t'finishResolution',\n\t\t\t\t\t\t'invalidateResolution',\n\t\t\t\t\t\t'invalidateResolutionForStore',\n\t\t\t\t\t\t'invalidateResolutionForStoreSelector',\n\t\t\t\t\t].map( ( actionName ) => [\n\t\t\t\t\t\tactionName,\n\t\t\t\t\t\tgetCoreDataAction( actionName ),\n\t\t\t\t\t] )\n\t\t\t\t);\n\t\t\t},\n\n\t\t\tsubscribe() {\n\t\t\t\t// There's no reasons to trigger any listener when we subscribe to this store\n\t\t\t\t// because there's no state stored in this store that need to retrigger selectors\n\t\t\t\t// if a change happens, the corresponding store where the tracking stated live\n\t\t\t\t// would have already triggered a \"subscribe\" call.\n\t\t\t\treturn () => () => {};\n\t\t\t},\n\t\t};\n\t},\n};\n\nexport default coreDataStore;\n"],
  "mappings": ";AAKA,IAAM,gBAA8C;AAAA,EACnD,MAAM;AAAA,EACN,YAAa,UAAyB;AACrC,UAAM,sBACL,CAAE,iBACF,CAAE,QAAgB,SAAqB;AACtC,aAAO,SAAS,OAAQ,GAAI,EAAG,YAAa,EAAG,GAAG,IAAK;AAAA,IACxD;AAED,UAAM,oBACL,CAAE,eACF,CAAE,QAAgB,SAAqB;AACtC,aAAO,SAAS,SAAU,GAAI,EAAG,UAAW,EAAG,GAAG,IAAK;AAAA,IACxD;AAED,WAAO;AAAA,MACN,eAA4D;AAC3D,eAAO,OAAO;AAAA,UACb;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UACD,EAAE,IAAK,CAAE,iBAAkB;AAAA,YAC1B;AAAA,YACA,oBAAqB,YAAa;AAAA,UACnC,CAAE;AAAA,QACH;AAAA,MACD;AAAA,MAEA,aAA0D;AACzD,eAAO,OAAO;AAAA,UACb;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UACD,EAAE,IAAK,CAAE,eAAgB;AAAA,YACxB;AAAA,YACA,kBAAmB,UAAW;AAAA,UAC/B,CAAE;AAAA,QACH;AAAA,MACD;AAAA,MAEA,YAAY;AAKX,eAAO,MAAM,MAAM;AAAA,QAAC;AAAA,MACrB;AAAA,IACD;AAAA,EACD;AACD;AAEA,IAAO,gBAAQ;",
  "names": []
}
