text: "use strict";
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = createItem;
  
  var _util = require("@polkadot/util");
  
  // Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
  // SPDX-License-Identifier: Apache-2.0
  function createItem(address, _name) {
    const name = (0, _util.isUndefined)(_name) ? address.length > 15 ? `${address.slice(0, 6)}…${address.slice(-6)}` : address : _name;
    return {
      key: address,
      name,
      value: address
    };
  }