"use strict";function toast$(a){return ddSdk_1.ddSdk.invokeAPI(apiName,a)}var _a;Object.defineProperty(exports,"__esModule",{value:!0});var ddSdk_1=require("../../../lib/ddSdk"),apiHelper_1=require("../../../lib/apiHelper"),apiName="device.notification.toast",paramsDeal=apiHelper_1.genDefaultParamsDealFn({text:"toast",duration:3,delay:0});ddSdk_1.ddSdk.setAPI(apiName,(_a={},_a[ddSdk_1.ENV_ENUM.pc]={vs:"2.5.0",paramsDeal:function(a){return a.icon&&!a.type&&("success"===a.icon?a.type="success":"error"===a.icon&&(a.type="error")),a}},_a[ddSdk_1.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:paramsDeal},_a[ddSdk_1.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:paramsDeal},_a)),exports.toast$=toast$,exports.default=toast$;