2026-07-29 08:29:29 +00:00
// Module ID: 700
// Function ID: 701
// Name: identity
// Dependencies: [19, 701, 645]
// Exports: createWithEqualityFn, useStoreWithEqualityFn
// Module 700 (identity)
import noop from "noop" ;
function identity ( arg0 ) {
return arg0 ;
}
function createWithEqualityFnImpl ( arg0 , arg1 ) {
const _require = arg1 ;
store = _require ( store [ 2 ] ) . createStore ( arg0 ) ;
function useBoundStoreWithEqualityFn ( arg0 ) {
let tmp = arg1 ;
if ( arg1 === undefined ) {
tmp = callback ;
}
let tmp2 = arg0 ;
if ( arg0 === undefined ) {
tmp2 = outer1 _3 ;
}
const syncExternalStoreWithSelector = callback ( store [ 1 ] ) . useSyncExternalStoreWithSelector ( store . subscribe , store . getState , store . getInitialState , tmp2 , tmp ) ;
const debugValue = outer1 _2 . useDebugValue ( syncExternalStoreWithSelector ) ;
return syncExternalStoreWithSelector ;
}
const merged = Object . assign ( useBoundStoreWithEqualityFn , store ) ;
return useBoundStoreWithEqualityFn ;
}
export const createWithEqualityFn = ( arg0 , arg1 ) => {
if ( arg0 ) {
2026-08-04 21:03:28 +00:00
if ( typeof tmp !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const _require = arg1 ;
store = _require ( store [ 2 ] ) . createStore ( arg0 ) ;
function useBoundStoreWithEqualityFn ( arg0 ) {
let tmp = arg1 ;
if ( arg1 === undefined ) {
tmp = callback ;
}
let tmp2 = arg0 ;
if ( arg0 === undefined ) {
tmp2 = outer1 _3 ;
}
const syncExternalStoreWithSelector = callback ( store [ 1 ] ) . useSyncExternalStoreWithSelector ( store . subscribe , store . getState , store . getInitialState , tmp2 , tmp ) ;
const debugValue = outer1 _2 . useDebugValue ( syncExternalStoreWithSelector ) ;
return syncExternalStoreWithSelector ;
}
const _Object = Object ;
const merged = Object . assign ( useBoundStoreWithEqualityFn , store ) ;
let tmp2 = useBoundStoreWithEqualityFn ;
const obj = _require ( store [ 2 ] ) ;
} else {
tmp2 = tmp ;
}
return tmp2 ;
} ;
export const useStoreWithEqualityFn = function useStoreWithEqualityFn ( closure _4 , arg1 , shallow ) {
let tmp = arg1 ;
if ( arg1 === undefined ) {
tmp = identity ;
}
const syncExternalStoreWithSelector = require ( 701 ) /* is */ . useSyncExternalStoreWithSelector ( closure _4 . subscribe , closure _4 . getState , closure _4 . getInitialState , tmp , shallow ) ;
const debugValue = noop . useDebugValue ( syncExternalStoreWithSelector ) ;
return syncExternalStoreWithSelector ;
} ;