"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=!0,exports.COMPRESS_LEVEL=void 0,exports.default=reduceImageSize;var COMPRESS_LEVEL,_invoker=_interopRequireDefault(require("./invoker"));function reduceImageSize(e){return _invoker.default.invoke("reduceImageSize",e)}exports.COMPRESS_LEVEL=COMPRESS_LEVEL,function(e){e[e.ADJUST_BY_NET=0]="ADJUST_BY_NET",e[e.LOW_QUALITY=1]="LOW_QUALITY",e[e.MID_QUALITY=2]="MID_QUALITY",e[e.HIGH_QUALITY=3]="HIGH_QUALITY",e[e.NOT_COMPRESSED=4]="NOT_COMPRESSED",e[e.CUSTOM=5]="CUSTOM"}(COMPRESS_LEVEL||(exports.COMPRESS_LEVEL=COMPRESS_LEVEL={})),_invoker.default.registerAPI("reduceImageSize",{mini:!0,mobile:!0,pc:function(e,r){window.dingtalk.platform.invokeAPI(r.msgId,"reduceImageSize",e)}}),reduceImageSize.version={ios:"2.1.0",android:"2.1.0",pc:"2.1.0"};