import { QueryOrigin } from '../../../../types/origin' ; import { createOrigin } from '../../../../utils/origin' ; import { SearchXStoreModule } from '../types' ; /**
 * Default implementation for the  SearchActions . saveOrigin .
 *
 *  param context - The  https of the actions,
 * provided by Vuex.
 *  param queryOriginInit - The object to create the  QueryOrigin with.
 *
 *  public export const saveOrigin = ( { commit } , queryOriginInit ) => { commit ( 'setOrigin' , createOrigin ( queryOriginInit ) as QueryOrigin | null ) ; } ;