'use strict'
!(function(require, directRequire) {
  const a = require('./ff946754202ecf377034d29daac7c8d9.js')
  module.exports = {
    invokeCallback: function(b, c, d) {
      a.sendMessage(
        `GAMENATIVEVIEW_${b}`,
        JSON.stringify({
          command: 'WEBVIEW_INVOKE_CALLBACK',
          data: { callbackID: c, res: d }
        })
      )
    },
    triggerOnEvent: function({ webviewID: b, eventName: c, data: d }) {
      a.sendMessage(
        `GAMENATIVEVIEW_${b}`,
        JSON.stringify({
          command: 'WEBVIEW_ON_EVENT',
          data: { eventName: c, data: d }
        })
      )
    },
    publish: function(b) {
      a.sendMessage('APPSERVICE', b)
    },
    register: function(b, c) {
      a.on(`GAMENATIVEVIEW_${b}`, c)
    },
    unRegister: function(b, c) {
      a.off(`GAMENATIVEVIEW_${b}`, c)
    },
    send: function(b, c) {
      a.sendMessage(`GAMENATIVEVIEW_${b}`, JSON.stringify(c))
    }
  }
})(require('lazyload'), require)
