{"version":3,"sources":["jsdelivr-header.js","/npm/@redux-dynostore/redux-subspace@3.2.1/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IAEtD,IAAI,cAAgB,QAAQ,kBACxB,KAAO,QAAQ,yBAUf,gCAAkC,SAAyC,EAAS,GACtF,OAAO,SAAU,GACf,IAAI,EAAoB,cAAc,WAAW,EAAzB,CAAqC,GAC7D,OAAO,SAAU,GACf,IAAI,EAAiB,EAAM,UACvB,EAAuB,EAAiB,EAAiB,IAAM,EAAa,EAC5E,EAAkB,EAAiB,cAAc,WAAW,EAAzB,CAAyC,GAAqB,EACrG,OAAO,KAAK,cAAc,EAAiB,EAApC,CAA6C,EAA7C,CAAmE,EAC5E,CACF,CACF,EAUI,iCAAmC,SAA0C,GAC/E,OAAO,SAAU,GACf,IAAI,EAAyB,KAAK,eAAe,EAApB,CAA4B,GACrD,EAAmB,cAAc,SAAS,GAC9C,OAAO,SAAU,GACf,OAAO,EAAuB,EAAiB,GACjD,CACF,CACF,EAEA,QAAQ,cAAgB,gCACxB,QAAQ,eAAiB","file":"/npm/@redux-dynostore/redux-subspace@3.2.1/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@redux-dynostore/redux-subspace@3.2.1/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar reduxSubspace = require('redux-subspace');\nvar core = require('@redux-dynostore/core');\n\n/**\n * Copyright 2018, IOOF Holdings Limited.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar attachNamespacedReducerEnhancer = function attachNamespacedReducerEnhancer(reducer, options) {\n  return function (identifier) {\n    var namespacedReducer = reduxSubspace.namespaced(identifier)(reducer);\n    return function (store) {\n      var storeNamespace = store.namespace;\n      var namespacedIdentifier = storeNamespace ? storeNamespace + \"/\" + identifier : identifier;\n      var reducerToAttach = storeNamespace ? reduxSubspace.namespaced(storeNamespace)(namespacedReducer) : namespacedReducer;\n      return core.attachReducer(reducerToAttach, options)(namespacedIdentifier)(store);\n    };\n  };\n};\n\n/**\n * Copyright 2018, IOOF Holdings Limited.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar dispatchNamespacedActionEnhancer = function dispatchNamespacedActionEnhancer(action) {\n  return function (identifier) {\n    var dispatchActionEnhancer = core.dispatchAction(action)(identifier);\n    var subspaceEnhancer = reduxSubspace.subspace(identifier);\n    return function (store) {\n      return dispatchActionEnhancer(subspaceEnhancer(store));\n    };\n  };\n};\n\nexports.attachReducer = attachNamespacedReducerEnhancer;\nexports.dispatchAction = dispatchNamespacedActionEnhancer;\n"]}