"use strict";function bol2chn(e){return e?"是":"否"}function getGender(e){return 1===e?"男":"女"}var setSystemInfo=function(e){var n;return[{name:"设备品牌",value:e.brand},{name:"设备型号",value:e.model},{name:"设备像素比",value:e.pixelRatio},{name:"屏幕宽高",value:e.screenWidth+"/"+e.screenHeight},{name:"可视区域宽高",value:e.windowWidth+"/"+e.windowHeight},{name:"微信版本号",value:e.version},{name:"操作系统及版本号",value:e.system},{name:"客户端平台",value:e.platform},{name:"设备性能值",value:-2===(n=e.benchmarkLevel)||0===n?"该设备无法运行小游戏":-1===n?"性能未知":1<n&&n<10?"低":11<n&&n<25?"中":26<n&&n<50?"优":void 0},{name:"允许微信使用摄像头的开关",value:bol2chn(e.cameraAuthorized)},{name:"允许微信使用定位的开关",value:bol2chn(e.locationAuthorized)},{name:"允许微信使用麦克风的开关",value:bol2chn(e.microphoneAuthorized)},{name:"允许微信通知的开关",value:bol2chn(e.notificationAuthorized)},{name:"地理位置的系统开关",value:bol2chn(e.locationEnabled)},{name:"Wi-Fi 的系统开关",value:bol2chn(e.wifiEnabled)}]},setUserInfo=function(e){return[{name:"昵称",value:e.nickName},{name:"性别",value:getGender(e.gender)},{name:"地区",value:e.city+" "+e.province+" "+e.country},{name:"头像",type:"img",value:e.avatarUrl}]},setAuthInfo=function(e){return[{name:"是否授权用户信息",value:bol2chn(e["scope.userInfo"])},{name:"是否授权地理位置",value:bol2chn(e["scope.userLocation"])},{name:"是否授权通讯地址",value:bol2chn(e["scope.address"])},{name:"是否授权发票抬头",value:bol2chn(e["scope.invoiceTitle"])},{name:"是否授权获取发票",value:bol2chn(e["scope.invoice"])},{name:"是否授权微信运动步数",value:bol2chn(e["scope.werun"])},{name:"是否授权录音功能",value:bol2chn(e["scope.record"])},{name:"是否授权保存到相册",value:bol2chn(e["scope.writePhotosAlbum"])},{name:"是否授权摄像头",value:bol2chn(e["scope.camera"])}]};module.exports={setSystemInfo:setSystemInfo,setUserInfo:setUserInfo,setAuthInfo:setAuthInfo};