class AppConstants {
  // API
  static const String baseUrl = 'https://hha-app1.assecutor.de/hha';
  static const int connectionTimeout = 30000;
  static const int receiveTimeout = 30000;
  
  // Database
  static const String databaseName = 'hha_logistics.db';
  static const int databaseVersion = 1;
  
  // App Info
  static const String appName = 'HHA Logistics';
  static const String appVersion = '2.0.0';
  
  // Sync
  static const Duration syncInterval = Duration(minutes: 1);
  static const Duration locationUpdateInterval = Duration(seconds: 30);
}

class ObjectStates {
  static const String unknown = 'unknown';
  static const String toDelivery = 'to_delivery';
  static const String delivery = 'delivery';
  static const String station = 'station';
  static const String inFA = 'in_fa';
  static const String inVS = 'in_vs';
  static const String retFail = 'ret_fail';
  static const String retFailFzg = 'ret_fail_fzg';
  static const String retFailStk = 'ret_fail_stk';
  static const String retGI = 'ret_gi';
  static const String retGIFzg = 'ret_gi_fzg';
  static const String retGIStk = 'ret_gi_stk';
  static const String retDS = 'ret_ds';
  static const String retDSFzg = 'ret_ds_fzg';
  static const String retDSStk = 'ret_ds_stk';
  static const String retDSErr = 'ret_ds_err';
  static const String retDSEmpty = 'ret_ds_empty';
  static const String finDS = 'fin_ds';
  static const String finGI = 'fin_gi';
  static const String finDSFail = 'fin_ds_fail';
  static const String finDSErr = 'fin_ds_err';
  static const String hdl = 'hdl';
  static const String stkHadag = 'stk_hadag';
  static const String finGITmp = 'fin_gi_tmp';
  static const String retcGI = 'retc_gi';
  static const String retcDS = 'retc_ds';
  static const String retDSFix = 'ret_ds_fix';
  static const String retFixStk = 'ret_fix_stk';
  static const String finFix = 'fin_fix';
  static const String trig = 'trig';
}

class TourTypes {
  static const String stockStart = 'stock_start';
  static const String stock = 'stock';
  static const String start = 'start';
  static const String station = 'st';
  static const String hls = 'hls';
  static const String vs = 'vs';
  static const String stockEnd = 'stock_end';
  static const String end = 'end';
  static const String fsa = 'fsa';
  static const String gi = 'gi';
  static const String veh = 'veh';
  static const String vehStart = 'veh_start';
  static const String vehBulk = 'veh_bulk';
  static const String vehVs = 'veh_vs';
  static const String vehEnd = 'veh_end';
  static const String menu = 'me';
}

class ObjectTypes {
  static const String gk = 'gk'; // Geldkassette
  static const String hp = 'hp'; // HP Patronen
  static const String fr = 'fr'; // Fahrkartenrolle
  static const String sb = 'sb'; // Safebag
  static const String abs = 'abs'; // Abfallbehälter
  static const String cntr = 'cntr'; // Container
}

class ObjectSubtypes {
  // Geldkassetten
  static const String meka = 'meka';
  static const String mekb = 'mekb';
  static const String mekc = 'mekc';
  static const String mekd = 'mekd';
  static const String beka = 'beka';
  static const String bekb = 'bekb';
  static const String bekc = 'bekc';
  static const String bekd = 'bekd';
  
  // HP Patronen
  static const String hp1a = 'hp1a';
  static const String hp1b = 'hp1b';
  static const String hp1c = 'hp1c';
  static const String hp2a = 'hp2a';
  static const String hp2b = 'hp2b';
  static const String hp2c = 'hp2c';
  static const String hp3a = 'hp3a';
  static const String hp3b = 'hp3b';
  static const String hp3c = 'hp3c';
  
  // Fahrkartenrollen
  static const String fra = 'fra';
  
  // Container
  static const String cntra = 'cntra';
  static const String cntrb = 'cntrb';
}

class CounterLabels {
  static const Map<String, String> labels = {
    'meka': 'MEK',
    'beka': 'BEK',
    'hp1a': 'H1',
    'hp2a': 'H2',
    'hp3a': 'H3',
    'fra': 'P',
    'sb': 'SB',
    'abs': 'ABS',
    'mekb': 'MEK-B',
    'bekb': 'BEK-B',
    'hp1b': 'H1-B',
    'hp2b': 'H2-B',
    'mekc': 'MEK-SST',
    'bekc': 'BEK-SST',
    'hp1c': 'H1-SST',
    'hp2c': 'H2-SST',
    'mekd': 'MEK-CR',
    'bekd': 'BEK-CR',
  };
}
