'use strict'
!(function(require, directRequire) {
  const a = require('./bc78839ccca8df9e5ceeb7fae11b7be2.js'),
    b = require('./822bc5aa1823c9aa222d9ffad72e7f17.js')
  module.exports = {
    getNetworkType: async function(b, c) {
      let { api: d, args: e, callbackID: f, runtimeID: g } = c
      const h = a.getState()
      let i = 'wifi'
      try {
        i = h.toolbar.network.list[h.toolbar.network.current] || 'wifi'
      } catch (a) {
        i = 'wifi'
      }
      return { errMsg: `${d}:ok`, subtype: i }
    },
    scanQRCode: async function(a, b) {
      let { api: c, args: d, callbackID: e, runtimeID: f } = b,
        g = { errMsg: `${c}:ok` }
      return (
        0 !== d.needResult &&
          (g.resultStr =
            '{"scan_code": {"scan_result":"scan resultStr is here"}}'),
        g
      )
    },
    closeWindow: async function(a, c) {
      let { api: d, args: e, callbackID: f, runtimeID: g } = c
      return (
        a({ type: b.WEBDEBUGGER_SET_URL, url: 'about:blank' }),
        { errMsg: `${d}:ok` }
      )
    },
    openProductViewWithPid: async function(a, b) {
      let { api: c, args: d, callbackID: e, runtimeID: f } = b
      return { errMsg: `${c}:ok` }
    }
  }
})(require('lazyload'), require)
