'use strict'
!(function(require, directRequire) {
  module.exports = {
    imagePreview: async function(a, b) {
      const c = b.api
      return { errMsg: `${c}:ok` }
    },
    chooseImage: async function(a, b) {
      const c = b.api
      return {
        errMsg: `${c}:ok`,
        localIds: [
          'wxLocalResource://imageid123456789987654321',
          'wxLocalResource://imageid987654321123456789'
        ]
      }
    },
    uploadImage: async function(a, b) {
      const { api: c, args: d } = b
      return d.localId
        ? {
            errMsg: `${c}:ok`,
            serverId: '1237378768e7q8e7r8qwesafdasdfasdfaxss111'
          }
        : { errMsg: `${c}:fail missing localId` }
    },
    downloadImage: async function(a, b) {
      const { api: c, args: d } = b
      return d.serverId
        ? {
            errMsg: `${c}:ok`,
            localId: 'wxLocalResource://1237378768e7q8e7r8qwe'
          }
        : { errMsg: `${c}:fail missing serverId` }
    }
  }
})(require('lazyload'), require)
