import o from"../../../@babel/runtime/helpers/esm/extends.js";import r from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import e from"../components/connectAdvanced.js";import t from"../utils/shallowEqual.js";import a from"./mapDispatchToProps.js";import p from"./mapStateToProps.js";import s from"./mergeProps.js";import n from"./selectorFactory.js";function i(o,r,e){for(var t=r.length-1;t>=0;t--){var a=r[t](o);if(a)return a}return function(r,t){throw new Error("Invalid value of type "+typeof o+" for "+e+" argument when connecting component "+t.wrappedComponentName+".")}}function m(o,r){return o===r}function u(u){var c=void 0===u?{}:u,l=c.connectHOC,d=void 0===l?e:l,P=c.mapStateToPropsFactories,f=void 0===P?p:P,v=c.mapDispatchToPropsFactories,h=void 0===v?a:v,E=c.mergePropsFactories,q=void 0===E?s:E,g=c.selectorFactory,S=void 0===g?n:g;return function(e,a,p,s){void 0===s&&(s={});var n=s,u=n.pure,c=void 0===u||u,l=n.areStatesEqual,P=void 0===l?m:l,v=n.areOwnPropsEqual,E=void 0===v?t:v,g=n.areStatePropsEqual,j=void 0===g?t:g,w=n.areMergedPropsEqual,T=void 0===w?t:w,M=r(n,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),b=i(e,f,"mapStateToProps"),y=i(a,h,"mapDispatchToProps"),D=i(p,q,"mergeProps");return d(S,o({methodName:"connect",getDisplayName:function(o){return"Connect("+o+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:b,initMapDispatchToProps:y,initMergeProps:D,pure:c,areStatesEqual:P,areOwnPropsEqual:E,areStatePropsEqual:j,areMergedPropsEqual:T},M))}}var c=u();export default c;export{u as createConnect};
//# sourceMappingURL=connect.js.map
