"use strict";function showToast$(a){return ddSdk_1.ddSdk.invokeAPI(actualCallApiName,{icon:a.type,duration:a.duration?a.duration/1e3:3,text:a.content,success:a.success,fail:a.fail,complete:a.complete})}var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(a){for(var t,e=1,s=arguments.length;e<s;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(a[o]=t[o])}return a},__assign.apply(this,arguments)},_a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.showToast$=void 0;var ddSdk_1=require("../../lib/ddSdk"),apiName="showToast",actualCallApiName="device.notification.toast",paramsDeal=function(a){return __assign({icon:a.type,duration:a.duration?a.duration/1e3:3,text:a.content||"toast",delay:0},a)};ddSdk_1.ddSdk.setAPI(actualCallApiName,(_a={},_a[ddSdk_1.ENV_ENUM.harmony]={vs:"7.0.0"},_a[ddSdk_1.ENV_ENUM.ios]={vs:"7.0.10",paramsDeal:paramsDeal},_a[ddSdk_1.ENV_ENUM.android]={vs:"7.0.10",paramsDeal:paramsDeal},_a[ddSdk_1.ENV_ENUM.pc]={vs:"7.0.10",paramsDeal:function(a){return a.icon&&!a.type&&("success"===a.icon?a.type="success":"error"===a.icon&&(a.type="error")),a}},_a)),exports.showToast$=showToast$,exports.default=showToast$;