import zipObject from 'lodash/zipObject' ; import map from 'lodash/map' ; import uniqueId from 'lodash/uniqueId' ; const redoType = 'REDO_REQUESTED' ; const undoType = 'UNDO_REQUESTED' ; const undoableConfig = { undoType , redoType , limit : 100 , } ; export const DEMO_IMAGE_URL = 'https://upload.wikimedia.org/wikipedia/commons/6/66/Cephalometric_radiograph.JPG' ; export { undoableConfig } ; export const supportedLocales = [ 'en-US' , 'ar-SY' ] ; export const bundledLocales = [ 'en-US' ] ; export const defaultLocale = bundledLocales [ 0 ] ; export const bundleLocaleData = zipObject ( bundledLocales , map ( bundledLocales , ( locale ) => { return require ( `json-loader!locale/${ locale }.json` ) as Locale ; } ) ) ; export const defaultWorkspaceId = uniqueId ( 'workspace_' ) ; export const defaultWorkspaceSettings = { isImporting : false , importError : null , isExporting : false , exportError : null , images : [ ] , contectRect : null , mode : 'tracing' , tracing : { imageId : null , } , superimposition : { mode : 'auto' , } , } ;