define(["exports","./../qrcode-generator/qrcode.js","./../emby-apiclient/connectionmanager.js"],function(_exports,_qrcode,_connectionmanager){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0;_exports.default={generateQRCode:function(options){var qr=(0,_qrcode.default)("0","L"),params={},apiClient=options.apiClient,apiClient=_connectionmanager.default.getServerInfo(apiClient.serverId()),options=options.user;return options&&(params.username=options.Name),apiClient.LocalAddress&&(params.localAddress=apiClient.LocalAddress),apiClient.RemoteAddress&&(params.remoteAddress=apiClient.RemoteAddress),qr.addData("emby://connect?"+new URLSearchParams(params).toString()),qr.make(),qr.createDataURL()}}});