'use strict'
!(function(require, directRequire) {
  const a = require('./15ba1827c7f6564a45df6bd44da3a977.js'),
    b = require('./f171257bbcaef547a3cf27266ccb0db2.js'),
    c = require('./0634ee2ebd3e560d9d4804ecc960160f.js')
  module.exports = {
    navigateToMiniProgram: async (d, e) => {
      let f = e.args,
        g = f.appId,
        { body: h } = await a({
          url: `${b.checkJumpWeapp}`,
          body: JSON.stringify({ scene: 1037, jump_appid: g }),
          method: 'post',
          needToken: 1,
          needAppID: 1
        }),
        i = h.actioncode
      if (1 == i) {
        let a = h.alert_msg
        return (
          d({
            type: c.SIMULATOR_SET_CONFIRM,
            data: {
              show: !0,
              content: a,
              callback: a => {
                a && h.alert_url && nw.Shell.openExternal(h.alert_url)
              }
            }
          }),
          { errMsg: `${e.api}:fail ${a}` }
        )
      }
      return { errMsg: `${e.api}:ok` }
    },
    navigateBackMiniProgram: async (a, b) => {
      return { errMsg: `${b.api}:ok` }
    },
    exitMiniProgram: async (a, b) => {
      return { errMsg: `${b.api}:ok` }
    }
  }
})(require('lazyload'), require)
