(o)
| 56964 | areOwnPropsEqual: _, |
| 56965 | areMergedPropsEqual: x, |
| 56966 | } |
| 56967 | function ConnectFunction(o) { |
| 56968 | const [i, u, _] = Re.useMemo(() => { |
| 56969 | const { reactReduxForwardedRef: s, ...i } = o |
| 56970 | return [o.context, s, i] |
| 56971 | }, [o]), |
| 56972 | w = Re.useMemo(() => L, [i, L]), |
| 56973 | x = Re.useContext(w), |
| 56974 | C = Boolean(o.store) && Boolean(o.store.getState) && Boolean(o.store.dispatch), |
| 56975 | j = Boolean(x) && Boolean(x.store) |
| 56976 | const B = C ? o.store : x.store, |
| 56977 | $ = j ? x.getServerState : B.getState, |
| 56978 | U = Re.useMemo( |
| 56979 | () => |
| 56980 | (function finalPropsSelectorFactory( |
| 56981 | s, |
| 56982 | { initMapStateToProps: o, initMapDispatchToProps: i, initMergeProps: a, ...u } |
| 56983 | ) { |
| 56984 | return pureFinalPropsSelectorFactory(o(s, u), i(s, u), a(s, u), s, u) |
| 56985 | })(B.dispatch, a), |
| 56986 | [B] |
| 56987 | ), |
| 56988 | [z, Y] = Re.useMemo(() => { |
| 56989 | if (!V) return hO |
| 56990 | const s = createSubscription(B, C ? void 0 : x.subscription), |
| 56991 | o = s.notifyNestedSubs.bind(s) |
| 56992 | return [s, o] |
| 56993 | }, [B, C, x]), |
| 56994 | Z = Re.useMemo(() => (C ? x : { ...x, subscription: z }), [C, x, z]), |
| 56995 | ee = Re.useRef(void 0), |
| 56996 | ie = Re.useRef(_), |
| 56997 | ae = Re.useRef(void 0), |
| 56998 | ce = Re.useRef(!1), |
| 56999 | le = Re.useRef(!1), |
| 57000 | pe = Re.useRef(void 0) |
| 57001 | Vk( |
| 57002 | () => ( |
| 57003 | (le.current = !0), |
| 57004 | () => { |
| 57005 | le.current = !1 |
| 57006 | } |
| 57007 | ), |
| 57008 | [] |
| 57009 | ) |
| 57010 | const de = Re.useMemo( |
| 57011 | () => () => (ae.current && _ === ie.current ? ae.current : U(B.getState(), _)), |
| 57012 | [B, _] |
| 57013 | ), |
| 57014 | fe = Re.useMemo( |
| 57015 | () => (s) => |
| 57016 | z |
| 57017 | ? (function subscribeUpdates(s, o, i, a, u, _, w, x, C, j, L) { |
| 57018 | if (!s) return () => {} |
| 57019 | let B = !1, |
| 57020 | $ = null |
| 57021 | const checkForUpdates = () => { |
| 57022 | if (B || !x.current) return |
| 57023 | const s = o.getState() |
nothing calls this directly
no test coverage detected