"use strict";function showActionSheet$(e){return ddSdk_1.ddSdk.invokeAPI(actualCallApiName,{title:e.title,cancelButton:e.cancelButtonText,otherButtons:e.items,success:e.success,fail:e.fail,complete:e.complete})}var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},__assign.apply(this,arguments)},_a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.showActionSheet$=void 0;var ddSdk_1=require("../../lib/ddSdk"),apiName="showActionSheet",actualCallApiName="device.notification.actionSheet",paramsDeal=function(e){var t={title:e.title,cancelButton:e.cancelButtonText,otherButtons:e.items};return __assign(__assign({},t),e)};ddSdk_1.ddSdk.setAPI(actualCallApiName,(_a={},_a[ddSdk_1.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:paramsDeal,resultDeal:function(e){return __assign(__assign({},e),{index:e.buttonIndex})}},_a[ddSdk_1.ENV_ENUM.ios]={vs:"7.0.10",paramsDeal:paramsDeal,resultDeal:function(e){return __assign(__assign({},e),{index:e.buttonIndex})}},_a[ddSdk_1.ENV_ENUM.android]={vs:"7.0.10",paramsDeal:paramsDeal,resultDeal:function(e){return __assign(__assign({},e),{index:e.buttonIndex})}},_a[ddSdk_1.ENV_ENUM.pc]={vs:"7.0.10",paramsDeal:paramsDeal,resultDeal:function(e){return __assign(__assign({},e),{index:e.buttonIndex})}},_a)),exports.showActionSheet$=showActionSheet$,exports.default=showActionSheet$;