{"ast":null,"code":"\"use strict\";\n\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DialogServiceConfigImpl = exports.DialogServiceConfig = void 0;\n/* eslint-disable max-classes-per-file */\nconst Contracts_js_1 = require(\"./Contracts.js\");\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Class that defines base configurations for dialog service connector\n * @class DialogServiceConfig\n */\nclass DialogServiceConfig {\n /**\n * Creates an instance of DialogService config.\n * @constructor\n */\n constructor() {\n return;\n }\n /**\n * Sets the corresponding backend application identifier.\n * @member DialogServiceConfig.prototype.Conversation_ApplicationId\n * @function\n * @public\n * @param {string} value - The application identifier to set.\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n set applicationId(value) {}\n static get DialogTypes() {\n return {\n BotFramework: \"bot_framework\",\n CustomCommands: \"custom_commands\"\n };\n }\n}\nexports.DialogServiceConfig = DialogServiceConfig;\n/**\n * Dialog Service configuration.\n * @class DialogServiceConfigImpl\n */\nclass DialogServiceConfigImpl extends DialogServiceConfig {\n /**\n * Creates an instance of dialogService config.\n */\n constructor() {\n super();\n this.privSpeechConfig = new Exports_js_1.SpeechConfigImpl();\n }\n /**\n * Provides access to custom properties.\n * @member DialogServiceConfigImpl.prototype.properties\n * @function\n * @public\n * @returns {PropertyCollection} The properties.\n */\n get properties() {\n return this.privSpeechConfig.properties;\n }\n /**\n * Gets the speech recognition language.\n * @member DialogServiceConfigImpl.prototype.speechRecognitionLanguage\n * @function\n * @public\n */\n get speechRecognitionLanguage() {\n return this.privSpeechConfig.speechRecognitionLanguage;\n }\n /**\n * Sets the speech recognition language.\n * @member DialogServiceConfigImpl.prototype.speechRecognitionLanguage\n * @function\n * @public\n * @param {string} value - The language to set.\n */\n set speechRecognitionLanguage(value) {\n Contracts_js_1.Contracts.throwIfNullOrWhitespace(value, \"value\");\n this.privSpeechConfig.speechRecognitionLanguage = value;\n }\n get outputFormat() {\n return this.privSpeechConfig.outputFormat;\n }\n set outputFormat(value) {\n this.privSpeechConfig.outputFormat = value;\n }\n /**\n * Sets a named property as value\n * @member DialogServiceConfigImpl.prototype.setProperty\n * @function\n * @public\n * @param {PropertyId | string} name - The property to set.\n * @param {string} value - The value.\n */\n setProperty(name, value) {\n this.privSpeechConfig.setProperty(name, value);\n }\n /**\n * Sets a named property as value\n * @member DialogServiceConfigImpl.prototype.getProperty\n * @function\n * @public\n * @param {PropertyId | string} name - The property to get.\n * @param {string} def - The default value to return in case the property is not known.\n * @returns {string} The current value, or provided default, of the given property.\n */\n getProperty(name, def) {\n void def;\n return this.privSpeechConfig.getProperty(name);\n }\n /**\n * Sets the proxy configuration.\n * Only relevant in Node.js environments.\n * Added in version 1.4.0.\n * @param proxyHostName The host name of the proxy server, without the protocol scheme (http://)\n * @param proxyPort The port number of the proxy server.\n * @param proxyUserName The user name of the proxy server.\n * @param proxyPassword The password of the proxy server.\n */\n setProxy(proxyHostName, proxyPort, proxyUserName, proxyPassword) {\n this.setProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyHostName, proxyHostName);\n this.setProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyPort, `${proxyPort}`);\n if (proxyUserName) {\n this.setProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyUserName, proxyUserName);\n }\n if (proxyPassword) {\n this.setProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyPassword, proxyPassword);\n }\n }\n setServiceProperty(name, value, channel) {\n void channel;\n this.privSpeechConfig.setServiceProperty(name, value);\n }\n /**\n * Dispose of associated resources.\n * @member DialogServiceConfigImpl.prototype.close\n * @function\n * @public\n */\n close() {\n return;\n }\n}\nexports.DialogServiceConfigImpl = DialogServiceConfigImpl;","map":{"version":3,"names":["Object","defineProperty","exports","value","DialogServiceConfigImpl","DialogServiceConfig","Contracts_js_1","require","Exports_js_1","constructor","applicationId","DialogTypes","BotFramework","CustomCommands","privSpeechConfig","SpeechConfigImpl","properties","speechRecognitionLanguage","Contracts","throwIfNullOrWhitespace","outputFormat","setProperty","name","getProperty","def","setProxy","proxyHostName","proxyPort","proxyUserName","proxyPassword","PropertyId","SpeechServiceConnection_ProxyHostName","SpeechServiceConnection_ProxyPort","SpeechServiceConnection_ProxyUserName","SpeechServiceConnection_ProxyPassword","setServiceProperty","channel","close"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/DialogServiceConfig.js"],"sourcesContent":["\"use strict\";\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DialogServiceConfigImpl = exports.DialogServiceConfig = void 0;\n/* eslint-disable max-classes-per-file */\nconst Contracts_js_1 = require(\"./Contracts.js\");\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Class that defines base configurations for dialog service connector\n * @class DialogServiceConfig\n */\nclass DialogServiceConfig {\n /**\n * Creates an instance of DialogService config.\n * @constructor\n */\n constructor() {\n return;\n }\n /**\n * Sets the corresponding backend application identifier.\n * @member DialogServiceConfig.prototype.Conversation_ApplicationId\n * @function\n * @public\n * @param {string} value - The application identifier to set.\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n set applicationId(value) { }\n static get DialogTypes() {\n return {\n BotFramework: \"bot_framework\",\n CustomCommands: \"custom_commands\"\n };\n }\n}\nexports.DialogServiceConfig = DialogServiceConfig;\n/**\n * Dialog Service configuration.\n * @class DialogServiceConfigImpl\n */\nclass DialogServiceConfigImpl extends DialogServiceConfig {\n /**\n * Creates an instance of dialogService config.\n */\n constructor() {\n super();\n this.privSpeechConfig = new Exports_js_1.SpeechConfigImpl();\n }\n /**\n * Provides access to custom properties.\n * @member DialogServiceConfigImpl.prototype.properties\n * @function\n * @public\n * @returns {PropertyCollection} The properties.\n */\n get properties() {\n return this.privSpeechConfig.properties;\n }\n /**\n * Gets the speech recognition language.\n * @member DialogServiceConfigImpl.prototype.speechRecognitionLanguage\n * @function\n * @public\n */\n get speechRecognitionLanguage() {\n return this.privSpeechConfig.speechRecognitionLanguage;\n }\n /**\n * Sets the speech recognition language.\n * @member DialogServiceConfigImpl.prototype.speechRecognitionLanguage\n * @function\n * @public\n * @param {string} value - The language to set.\n */\n set speechRecognitionLanguage(value) {\n Contracts_js_1.Contracts.throwIfNullOrWhitespace(value, \"value\");\n this.privSpeechConfig.speechRecognitionLanguage = value;\n }\n get outputFormat() {\n return this.privSpeechConfig.outputFormat;\n }\n set outputFormat(value) {\n this.privSpeechConfig.outputFormat = value;\n }\n /**\n * Sets a named property as value\n * @member DialogServiceConfigImpl.prototype.setProperty\n * @function\n * @public\n * @param {PropertyId | string} name - The property to set.\n * @param {string} value - The value.\n */\n setProperty(name, value) {\n this.privSpeechConfig.setProperty(name, value);\n }\n /**\n * Sets a named property as value\n * @member DialogServiceConfigImpl.prototype.getProperty\n * @function\n * @public\n * @param {PropertyId | string} name - The property to get.\n * @param {string} def - The default value to return in case the property is not known.\n * @returns {string} The current value, or provided default, of the given property.\n */\n getProperty(name, def) {\n void def;\n return this.privSpeechConfig.getProperty(name);\n }\n /**\n * Sets the proxy configuration.\n * Only relevant in Node.js environments.\n * Added in version 1.4.0.\n * @param proxyHostName The host name of the proxy server, without the protocol scheme (http://)\n * @param proxyPort The port number of the proxy server.\n * @param proxyUserName The user name of the proxy server.\n * @param proxyPassword The password of the proxy server.\n */\n setProxy(proxyHostName, proxyPort, proxyUserName, proxyPassword) {\n this.setProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyHostName, proxyHostName);\n this.setProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyPort, `${proxyPort}`);\n if (proxyUserName) {\n this.setProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyUserName, proxyUserName);\n }\n if (proxyPassword) {\n this.setProperty(Exports_js_1.PropertyId.SpeechServiceConnection_ProxyPassword, proxyPassword);\n }\n }\n setServiceProperty(name, value, channel) {\n void channel;\n this.privSpeechConfig.setServiceProperty(name, value);\n }\n /**\n * Dispose of associated resources.\n * @member DialogServiceConfigImpl.prototype.close\n * @function\n * @public\n */\n close() {\n return;\n }\n}\nexports.DialogServiceConfigImpl = DialogServiceConfigImpl;\n\n"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACAA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,uBAAuB,GAAGF,OAAO,CAACG,mBAAmB,GAAG,KAAK,CAAC;AACtE;AACA,MAAMC,cAAc,GAAGC,OAAO,CAAC,gBAAgB,CAAC;AAChD,MAAMC,YAAY,GAAGD,OAAO,CAAC,cAAc,CAAC;AAC5C;AACA;AACA;AACA;AACA,MAAMF,mBAAmB,CAAC;EACtB;AACJ;AACA;AACA;EACII,WAAWA,CAAA,EAAG;IACV;EACJ;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI;EACA,IAAIC,aAAaA,CAACP,KAAK,EAAE,CAAE;EAC3B,WAAWQ,WAAWA,CAAA,EAAG;IACrB,OAAO;MACHC,YAAY,EAAE,eAAe;MAC7BC,cAAc,EAAE;IACpB,CAAC;EACL;AACJ;AACAX,OAAO,CAACG,mBAAmB,GAAGA,mBAAmB;AACjD;AACA;AACA;AACA;AACA,MAAMD,uBAAuB,SAASC,mBAAmB,CAAC;EACtD;AACJ;AACA;EACII,WAAWA,CAAA,EAAG;IACV,KAAK,CAAC,CAAC;IACP,IAAI,CAACK,gBAAgB,GAAG,IAAIN,YAAY,CAACO,gBAAgB,CAAC,CAAC;EAC/D;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAIC,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACF,gBAAgB,CAACE,UAAU;EAC3C;EACA;AACJ;AACA;AACA;AACA;AACA;EACI,IAAIC,yBAAyBA,CAAA,EAAG;IAC5B,OAAO,IAAI,CAACH,gBAAgB,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,CAACI,qCAAqC,EAAEL,aAAa,CAAC;IAClG;EACJ;EACAM,kBAAkBA,CAACb,IAAI,EAAEnB,KAAK,EAAEiC,OAAO,EAAE;IACrC,KAAKA,OAAO;IACZ,IAAI,CAACtB,gBAAgB,CAACqB,kBAAkB,CAACb,IAAI,EAAEnB,KAAK,CAAC;EACzD;EACA;AACJ;AACA;AACA;AACA;AACA;EACIkC,KAAKA,CAAA,EAAG;IACJ;EACJ;AACJ;AACAnC,OAAO,CAACE,uBAAuB,GAAGA,uBAAuB","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}