import { namespacedWireCommit , namespacedWireDispatch , namespacedWireDispatchWithoutPayload } from '../../wiring/namespaced-wires.factory' ; import { namespacedDebounce } from '../../wiring/namespaced-wires.operators' ; import { NamespacedWireCommit , NamespacedWireDispatch } from '../../wiring/namespaced-wiring.types' ; import { createWiring } from '../../wiring/wiring.utils' ; /**
 * `identifierResults`  XModuleName .
 *
 *  internal const moduleName = 'identifierResults' ; /**
 * WireCommit for  IdentifierResultsXModule .
 *
 *  internal const wireCommit = namespacedWireCommit ( moduleName ) ; /**
 * WireDispatch for  IdentifierResultsXModule .
 *
 *  internal const wireDispatch = namespacedWireDispatch ( moduleName ) ; /**
 * WireDispatchWithoutPayload for  IdentifierResultsXModule .
 *
 *  internal const wireDispatchWithoutPayload = namespacedWireDispatchWithoutPayload ( moduleName ) ; public export const setIdentifierResultsQuery = wireDispatch ( 'saveQuery' ) ; public export const clearIdentifierResultsQuery = wireCommit ( 'setQuery' , '' ) ; public const setUrlParams = wireDispatch ( 'saveQuery' , ( { eventPayload : { query } } ) => query ) ; /**
 * Requests and stores a new set of identifier results for the  IdentifierResultsState . query .
 *
 *  public export const fetchAndSaveIdentifierResultsWire = wireDispatch ( 'fetchAndSaveIdentifierResults' ) ; /**
 * Cancels the  IdentifierResultsActions . fetchAndSaveIdentifierResults request promise.
 *
 *  public export const cancelFetchAndSaveIdentifierResultsWire = wireDispatchWithoutPayload ( 'cancelFetchAndSaveIdentifierResults' ) ; public export const saveIdentifierResultsOriginWire = wireDispatch ( 'saveOrigin' , ( { metadata } ) => metadata ) ; public export const setIdentifierResultsExtraParams = wireCommit ( 'setParams' ) ; /**
 * Debounce function for the module.
 */ const moduleDebounce = namespacedDebounce ( moduleName ) ; /**
 * Default wiring for the  IdentifierResultsXModule module.
 *
 *  internal export const identifierResultsWiring = createWiring ( { UserIsTypingAQuery : { setIdentifierResultsQueryDebounce : moduleDebounce ( setIdentifierResultsQuery , ( { state } ) => state . config . debounceInMs , { cancelOn : 'UserAcceptedAQuery' } ) } , UserAcceptedAQuery : { setIdentifierResultsQuery , saveIdentifierResultsOriginWire } , UserClearedQuery : { clearIdentifierResultsQuery , cancelFetchAndSaveIdentifierResultsWire } , IdentifierResultsRequestChanged : { fetchAndSaveIdentifierResultsWire } , ParamsLoadedFromUrl : { setUrlParams , saveIdentifierResultsOriginWire } , ExtraParamsChanged : { setIdentifierResultsExtraParams } } ) ;