"use strict";function a(b){"@babel/helpers - typeof";return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},a(b)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var b=d(require("./AbstractKafkaCodeSnippet")),c=require("../constants");function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function g(a,b,c){return b&&f(a.prototype,b),c&&f(a,c),a}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),b&&i(a,b)}function i(a,b){return i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},i(a,b)}function j(a){var b=m();return function(){var c,d=n(a);if(b){var e=n(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return k(this,c)}}function k(b,c){if(c&&("object"===a(c)||"function"==typeof c))return c;if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined");return l(b)}function l(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function n(a){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},n(a)}var o=function(a){function b(){return e(this,b),d.apply(this,arguments)}h(b,a);var d=j(b);return g(b,[{key:"sasl_ssl",value:function sasl_ssl(){return{SASL:!0,SSL:!0,saslMechanism:c.SASL_MECHANISMS.PLAIN,securityProtocol:c.SECURITY_PROTOCOLS.SASL_SSL}}},{key:"sasl_plain",value:function sasl_plain(){return{SASL:!0,saslMechanism:c.SASL_MECHANISMS.PLAIN,securityProtocol:c.SECURITY_PROTOCOLS.SASL_PLAINTEXT}}},{key:"sasl_sha_256",value:function sasl_sha_256(){return{SASL:!0,saslMechanism:c.SASL_MECHANISMS.SCRAM256,securityProtocol:c.SECURITY_PROTOCOLS.SASL_PLAINTEXT}}},{key:"sasl_sha_512",value:function sasl_sha_512(){return{SASL:!0,saslMechanism:c.SASL_MECHANISMS.SCRAM512,securityProtocol:c.SECURITY_PROTOCOLS.SASL_PLAINTEXT}}},{key:"sasl_ssl_sha_256",value:function sasl_ssl_sha_256(){return{SASL:!0,SSL:!0,saslMechanism:c.SASL_MECHANISMS.SCRAM256,securityProtocol:c.SECURITY_PROTOCOLS.SASL_SSL}}},{key:"sasl_ssl_sha_512",value:function sasl_ssl_sha_512(){return{SASL:!0,SSL:!0,saslMechanism:c.SASL_MECHANISMS.SCRAM512,securityProtocol:c.SECURITY_PROTOCOLS.SASL_SSL}}},{key:"ssl",value:function ssl(){return{SSL:!0,securityProtocol:"SSL"}}},{key:"ssl_mutualtls",value:function ssl_mutualtls(){return{MUTUAL_TLS:!0,securityProtocol:"SSL"}}},{key:"plaintext",value:function plaintext(){return{securityProtocol:c.SECURITY_PROTOCOLS.PLAINTEXT}}}]),b}(b["default"]);exports["default"]=o;