"use strict";function prompt$(e){return ddSdk_1.ddSdk.invokeAPI(actualCallApiName,{message:e.message,title:e.title,defaultText:e.placeholder,buttonLabels:[e.cancelButtonText,e.okButtonText],success:e.success,fail:e.fail,complete:e.complete})}var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var a,t=1,s=arguments.length;t<s;t++){a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},__assign.apply(this,arguments)},_a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.prompt$=void 0;var ddSdk_1=require("../../lib/ddSdk"),apiName="prompt",actualCallApiName="device.notification.prompt",paramsDeal=function(e){var a={title:e.title||"",message:e.message,defaultText:e.placeholder,buttonLabels:[e.cancelButtonText||"取消",e.okButtonText||"确定"]};return __assign(__assign({},a),e)};ddSdk_1.ddSdk.setAPI(actualCallApiName,(_a={},_a[ddSdk_1.ENV_ENUM.harmony]={vs:"7.0.0"},_a[ddSdk_1.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:paramsDeal},_a[ddSdk_1.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:paramsDeal},_a)),exports.prompt$=prompt$,exports.default=prompt$;