<commit_before>import WalletErrorHandler from '@/modules/access-wallet/common/WalletErrorHandler';

const ERRORS = {
  'Popup closed': 'trezorError.popup-closed',
  'Device disconnected': 'trezorError.device-disconnect',
  'device disconnected during action': 'trezorError.device-disconnect-action',
  'Action cancelled by user': 'trezorError.user-cancelled-action',
  'Permissions not granted': 'trezorError.no-permission',
  'Device call in progress': 'trezorError.call-in-progress',
  'Transport is missing': 'trezorError.transport-missing',
  'EthAppPleaseEnableContractData: Please enable Contract data on the Ethereum app Settings':
    'trezorError.turn-on-contract-data',
  'Initialize failed: Response of unexpected type: Address. Should be Features':
    'trezorError.initializing-failed',
  Cancelled: 'trezorError.cancelled',
  'Iframe timeout': 'trezorError.iframe-timeout',
  'Browser not supported': 'trezorError.unsupported-browser',
  'popup failed to open': 'trezorError.popup-failed-to-open',
  'Safety check failed': 'trezorError.safety-check-failed',
  'TrezorConnect not yet initialized':
    'trezorError.trezor-connect-not-initialized',
  'User cancelled the requestDevice() chooser.':
    'trezorError.user-cancelled-request-device-bluetooth',
  'Bluetooth adapter not available.':
    'trezorError.bluetooth-adapter-not-available',
  'An operation that changes interface state is in progress.':
    'trezorError.operation-that-changes-interface-state-in-progress',
  'connection not open': 'trezorError.connection-not-open-on-send',
  'Iframe blocked': 'trezorError.iframe-blocked',
  'Manifest not set. Read more at https://github.com/trezor/connect/blob/develop/docs/index.md':
    'trezorError.manifest-not-set',
  'Forbidden key path': 'Path not supported!'
};<commit_msg>devop: 🔧 handle trezor popup error<commit_after>import WalletErrorHandler from '@/modules/access-wallet/common/WalletErrorHandler';

const ERRORS = {
  'Popup closed': 'trezorError.popup-closed',
  'Device disconnected': 'trezorError.device-disconnect',
  'device disconnected during action': 'trezorError.device-disconnect-action',
  'Action cancelled by user': 'trezorError.user-cancelled-action',
  'Permissions not granted': 'trezorError.no-permission',
  'Device call in progress': 'trezorError.call-in-progress',
  'Transport is missing': 'trezorError.transport-missing',
  'EthAppPleaseEnableContractData: Please enable Contract data on the Ethereum app Settings':
    'trezorError.turn-on-contract-data',
  'Initialize failed: Response of unexpected type: Address. Should be Features':
    'trezorError.initializing-failed',
  Cancelled: 'trezorError.cancelled',
  'Iframe timeout': 'trezorError.iframe-timeout',
  'Browser not supported': 'trezorError.unsupported-browser',
  'popup failed to open': 'trezorError.popup-failed-to-open',
  'Safety check failed': 'trezorError.safety-check-failed',
  'TrezorConnect not yet initialized':
    'trezorError.trezor-connect-not-initialized',
  'User cancelled the requestDevice() chooser.':
    'trezorError.user-cancelled-request-device-bluetooth',
  'Bluetooth adapter not available.':
    'trezorError.bluetooth-adapter-not-available',
  'An operation that changes interface state is in progress.':
    'trezorError.operation-that-changes-interface-state-in-progress',
  'connection not open': 'trezorError.connection-not-open-on-send',
  'Iframe blocked': 'trezorError.iframe-blocked',
  'Manifest not set. Read more at https://github.com/trezor/connect/blob/develop/docs/index.md':
    'trezorError.manifest-not-set',
  'Forbidden key path': 'Path not supported!',
  'DOMException: Blocked a frame with origin "https://myetherwallet.com" from accessing a cross-origin frame.':
    'Block frame'
};
{'fraction_non_alphanumeric': 0.12806176783812567, 'fraction_numerical': 0.0, 'mean_word_length': 5.314285714285714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1091641', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1159, 'n_words': 263}