'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vConsole_config = require('../config.js');

function initMsdkPlugin() {
  var plugin = new VConsole.VConsolePlugin('msdk', 'msdk工具');
  var html = "<div class=\"".concat(vConsole_config.V_CONSOLE_DOM.WRAP, "\">\n  <div class=\"").concat(vConsole_config.V_CONSOLE_DOM.LINE, "\">msdk\u5DE5\u5177</div>\n  </div>");
  plugin.on('renderTab', function (callback) {
    callback(html);
  });
  var btnList = [];
  btnList.push({
    name: '关闭页面',
    global: false,
    onClick: function onClick() {
      var _a, _b;
      // @ts-ignore
      (_b = (_a = window === null || window === void 0 ? void 0 : window.app) === null || _a === void 0 ? void 0 : _a.closeWebView) === null || _b === void 0 ? void 0 : _b.call(_a);
    }
  });
  plugin.on('addTool', function (callback) {
    callback(btnList);
  });
  return plugin;
}

exports.initMsdkPlugin = initMsdkPlugin;
