'use strict'
!(function(require, directRequire) {
  const a = require('./15ba1827c7f6564a45df6bd44da3a977.js'),
    b = require('./f171257bbcaef547a3cf27266ccb0db2.js')
  module.exports = {
    getInitData: async function(c) {
      let { body: d } = await a({
        url: b.searchWidgetTrans,
        method: 'post',
        body: JSON.stringify({
          cgi_type: 2,
          req_data: JSON.stringify({
            box_type: c.type,
            box_qi: c.boxQI,
            query: c.query || '',
            debugurl: c.debugUrl || ''
          })
        }),
        needToken: 1,
        needAppID: 1
      })
      return JSON.parse(d.resp_data)
    },
    getQueryConfig: async function() {
      let { body: c } = await a({
        url: b.searchWidgetTrans,
        method: 'post',
        body: JSON.stringify({ cgi_type: 1, req_data: JSON.stringify({}) }),
        needAppID: 1,
        needToken: 1
      })
      return JSON.parse(c.resp_data)
    },
    getWidgetData: async function(c) {
      let { body: d } = await a({
        url: b.requestWidgetData,
        method: 'post',
        body: JSON.stringify(c),
        needToken: 1,
        needAppID: 1
      })
      return d.data
    }
  }
})(require('lazyload'), require)
