import { show , hide , hideAll , resetAll , getCount , pause , resume , isPaused , getRemaining , exists , } from "./dialogic" ; import { Dialogic } from "./index" ; export const dialogical = ( { ns , queued , timeout , } ) => { const defaultId = `default_${ ns }` ; const defaultSpawn = `default_${ ns }` ; const defaultDialogicOptions = { id : defaultId , spawn : defaultSpawn , ... ( queued && { queued } ) , ... ( timeout !== undefined && { timeout } ) , } ; return { ns , defaultId , defaultSpawn , defaultDialogicOptions , show : show ( ns ) ( defaultDialogicOptions ) , hide : hide ( ns ) ( defaultDialogicOptions ) , hideAll : hideAll ( ns ) ( defaultDialogicOptions ) , resetAll : resetAll ( ns ) ( defaultDialogicOptions ) , pause : pause ( ns ) ( defaultDialogicOptions ) , resume : resume ( ns ) ( defaultDialogicOptions ) , exists : exists ( ns ) ( defaultDialogicOptions ) , getCount : getCount ( ns ) , isPaused : isPaused ( ns ) ( defaultDialogicOptions ) , getRemaining : getRemaining ( ns ) ( defaultDialogicOptions ) , } ; } ;