{"version":3,"sources":["webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/amplify-amazon-button_5.entry.js"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAiB,SAAI,IAAI,SAAI;AAC7B,2BAA2B,+DAA+D,gBAAgB,EAAE,EAAE;AAC9G;AACA,mCAAmC,MAAM,6BAA6B,EAAE,YAAY,WAAW,EAAE;AACjG,kCAAkC,MAAM,iCAAiC,EAAE,YAAY,WAAW,EAAE;AACpG,+BAA+B,qFAAqF;AACpH;AACA,KAAK;AACL;AACA,mBAAmB,SAAI,IAAI,SAAI;AAC/B,aAAa,6BAA6B,0BAA0B,aAAa,EAAE,qBAAqB;AACxG,gBAAgB,qDAAqD,oEAAoE,aAAa,EAAE;AACxJ,sBAAsB,sBAAsB,qBAAqB,GAAG;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC,kCAAkC,SAAS;AAC3C,kCAAkC,WAAW,UAAU;AACvD,yCAAyC,cAAc;AACvD;AACA,6GAA6G,OAAO,UAAU;AAC9H,gFAAgF,iBAAiB,OAAO;AACxG,wDAAwD,gBAAgB,QAAQ,OAAO;AACvF,8CAA8C,gBAAgB,gBAAgB,OAAO;AACrF;AACA,iCAAiC;AACjC;AACA;AACA,SAAS,YAAY,aAAa,OAAO,EAAE,UAAU,WAAW;AAChE,mCAAmC,SAAS;AAC5C;AACA;AAC+D;AACP;AACE;AACjB;AACsB;AAC2B;AAChB;AAC1E,iBAAiB,+DAAa;AAC9B;AACA;AACA;AACA,QAAQ,4DAAgB;AACxB;AACA;AACA;AACA,qCAAqC,sDAA4B;AACjE;AACA;AACA;AACA;AACA;AACA,iBAAiB,sDAAI;AACrB,uBAAuB,sDAAI;AAC3B,uBAAuB,sDAAI;AAC3B,gCAAgC,wDAAoB;AACpD;AACA;AACA;AACA,wEAAwE;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,sDAAI,4BAA4B,8CAA8C;AAC/H;AACA;AACA,iDAAiD,sDAAI;AACrD;AACA;AACA,uDAAuD,yDAAS;AAChE;AACA;AACA,iBAAiB;AACjB,aAAa,EAAE,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,mBAAmB;AAC7D;AACA;AACA;AACA;AACA,4CAA4C,wDAAe,kBAAkB,qBAAqB;AAClG;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,gBAAgB,4DAAC,4BAA4B,4BAA4B,sCAAsC,EAAE,sBAAsB,EAAE,4DAAC,YAAY,6DAA6D,GAAG,sDAAI,KAAK,2DAAY;AAC3O;AACA;AACA,CAAC;AACD,mBAAmB,+DAAa;AAChC;AACA;AACA;AACA,QAAQ,4DAAgB;AACxB;AACA,qCAAqC,sDAA4B;AACjE;AACA,qEAAqE;AACrE,qBAAqB,sDAAI,8CAA8C;AACvE,qEAAqE;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,yCAAyC,wDAAe;AACxD;AACA;AACA;AACA;AACA,2FAA2F;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,sDAAI;AACzD;AACA;AACA,qCAAqC,GAAG,+BAA+B;AACvE;AACA;AACA,qDAAqD,sDAAI;AACzD;AACA;AACA,2DAA2D,yDAAS;AACpE;AACA;AACA,qBAAqB;AACrB,iBAAiB,EAAE,EAAE;AACrB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,4DAAC,4BAA4B,4BAA4B,qCAAqC,EAAE,qBAAqB,EAAE,4DAAC,YAAY,mFAAmF,GAAG,sDAAI,KAAK,2DAAY;AAC/P;AACA;AACA,CAAC;AACD,mBAAmB,+DAAa;AAChC;AACA;AACA;AACA,QAAQ,4DAAgB;AACxB;AACA;AACA;AACA,qCAAqC,sDAA4B;AACjE;AACA;AACA;AACA;AACA;AACA,iBAAiB,sDAAI;AACrB,uBAAuB,sDAAI;AAC3B,uBAAuB,sDAAI;AAC3B,gCAAgC,wDAAoB;AACpD;AACA;AACA;AACA;AACA,qCAAqC,iBAAiB,uBAAuB;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,sDAAI,8BAA8B,6CAA6C;AAChI;AACA;AACA,iDAAiD,sDAAI;AACrD;AACA;AACA,uDAAuD,yDAAS;AAChE;AACA;AACA,iBAAiB;AACjB,aAAa,EAAE,EAAE;AACjB;AACA;AACA;AACA;AACA,gDAAgD,wDAAe,kBAAkB,uBAAuB;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,GAAG,eAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,gBAAgB,4DAAC,4BAA4B,4BAA4B,wCAAwC,EAAE,wBAAwB,EAAE,4DAAC,YAAY,6EAA6E,GAAG,sDAAI,KAAK,2DAAY;AAC/P;AACA;AACA,CAAC;AACD,mBAAmB,+DAAa;AAChC;AACA;AACA;AACA,QAAQ,4DAAgB;AACxB;AACA;AACA;AACA,qCAAqC,sDAA4B;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA,6BAA6B,sDAAI;AACjC,mCAAmC,sDAAI;AACvC,mCAAmC,sDAAI;AACvC,4CAA4C,wDAAoB;AAChE;AACA;AACA,wDAAwD,wDAAe,kBAAkB,qBAAqB;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,sDAAI,4BAA4B,0CAA0C;AACvH;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,6CAA6C,sDAAI;AACjD;AACA;AACA;AACA,uDAAuD,yDAAS;AAChE;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,4DAAC,4BAA4B,4BAA4B,sCAAsC,EAAE,sBAAsB,EAAE,4DAAC,YAAY,2EAA2E,GAAG,sDAAI,KAAK,2DAAY;AACzP;AACA;AACA,CAAC;AACD;AACA;AACA,QAAQ,4DAAgB;AACxB;AACA;AACA;AACA;AACA;AACA,QAAQ,sDAAI;AACZ;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,4DAAC,4BAA4B,4BAA4B,qCAAqC,EAAE,qBAAqB,uBAAuB,sDAAI,KAAK,2DAAY;AACjL;AACA;AACA,CAAC;AAC+O","file":"js/89.js","sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { r as registerInstance, h } from './index-83f2275b.js';\nimport { ConsoleLogger, I18n } from '@aws-amplify/core';\nimport { A as AuthState } from './auth-types-78df304e.js';\nimport { Auth } from '@aws-amplify/auth';\nimport { T as Translations } from './Translations-108d469f.js';\nimport { N as NO_AUTH_MODULE_FOUND, h as AUTH_SOURCE_KEY } from './constants-c8ecaa24.js';\nimport { d as dispatchAuthStateChangeEvent } from './helpers-14fcb50c.js';\nvar logger = new ConsoleLogger('amplify-amazon-button');\nvar AmplifyAmazonButton = /** @class */ (function () {\n function class_1(hostRef) {\n var _this = this;\n registerInstance(this, hostRef);\n /** Auth state change handler for this component\n * e.g. SignIn -> 'Create Account' link -> SignUp\n */\n this.handleAuthStateChange = dispatchAuthStateChangeEvent;\n this.federatedSignIn = function (response) {\n var access_token = response.access_token, expires_in = response.expires_in;\n if (!access_token) {\n return;\n }\n if (!Auth ||\n typeof Auth.federatedSignIn !== 'function' ||\n typeof Auth.currentAuthenticatedUser !== 'function') {\n throw new Error(NO_AUTH_MODULE_FOUND);\n }\n var date = new Date();\n var expires_at = expires_in * 1000 + date.getTime();\n window['amazon'].Login.retrieveProfile(function (userInfo) { return __awaiter(_this, void 0, void 0, function () {\n var user, authenticatedUser;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!userInfo.success) {\n return [2 /*return*/, logger.debug('Get user Info failed')];\n }\n user = {\n name: userInfo.profile.Name,\n email: userInfo.profile.PrimaryEmail,\n };\n return [4 /*yield*/, Auth.federatedSignIn('amazon', { token: access_token, expires_at: expires_at }, user)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Auth.currentAuthenticatedUser()];\n case 2:\n authenticatedUser = _a.sent();\n this.handleAuthStateChange(AuthState.SignedIn, authenticatedUser);\n return [2 /*return*/];\n }\n });\n }); });\n };\n }\n class_1.prototype.componentWillLoad = function () {\n console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');\n };\n /**\n * @see https://developer.amazon.com/docs/login-with-amazon/install-sdk-javascript.html\n */\n class_1.prototype.signInWithAmazon = function (event) {\n var _this = this;\n event.preventDefault();\n window['amazon'].Login.setClientId(this.clientId);\n window['amazon'].Login.authorize({ scope: 'profile' }, function (response) {\n if (response.error) {\n return logger.debug('Failed to login with amazon: ' + response.error);\n }\n try {\n window.localStorage.setItem(AUTH_SOURCE_KEY, JSON.stringify({ provider: 'amazon' }));\n }\n catch (e) {\n logger.debug('Failed to cache auth source into localStorage', e);\n }\n _this.federatedSignIn(response);\n });\n };\n class_1.prototype.render = function () {\n var _this = this;\n return (h(\"amplify-sign-in-button\", { onClick: function (event) { return _this.signInWithAmazon(event); }, provider: \"amazon\" }, h(\"script\", { src: \"https://assets.loginwithamazon.com/sdk/na/login1.js\" }), I18n.get(Translations.SIGN_IN_WITH_AMAZON)));\n };\n return class_1;\n}());\nvar logger$1 = new ConsoleLogger('amplify-auth0-button');\nvar AmplifyAuth0Button = /** @class */ (function () {\n function class_2(hostRef) {\n var _this = this;\n registerInstance(this, hostRef);\n /** Auth state change handler for this component */\n this.handleAuthStateChange = dispatchAuthStateChangeEvent;\n this.handleLoad = function () {\n // @ts-ignore Property 'auth0' does not exist on type '{}'.\n var _a = Auth.configure().oauth, oauth = _a === void 0 ? {} : _a;\n // @ts-ignore Property 'auth0' does not exist on type '{}'.\n var _b = _this.config, config = _b === void 0 ? oauth.auth0 : _b;\n if (!config) {\n logger$1.debug('Auth0 is not configured');\n return;\n }\n logger$1.debug('auth0 configuration', config);\n if (!_this._auth0) {\n _this._auth0 = new window['auth0'].WebAuth(config);\n }\n _this._auth0.parseHash(function (err, authResult) {\n if (err) {\n logger$1.debug('Failed to parse the url for Auth0', err);\n return;\n }\n if (!authResult) {\n logger$1.debug('Auth0 found no authResult in hash');\n return;\n }\n var payload = {\n provider: 'auth0',\n opts: {\n returnTo: config.returnTo,\n clientID: config.clientID,\n federated: config.federated,\n },\n };\n try {\n localStorage.setItem(AUTH_SOURCE_KEY, JSON.stringify(payload));\n }\n catch (e) {\n logger$1.debug('Failed to cache auth source into localStorage', e);\n }\n _this._auth0.client.userInfo(authResult.accessToken, function (err, user) { return __awaiter(_this, void 0, void 0, function () {\n var username, email, authenticatedUser;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n username = undefined;\n email = undefined;\n if (err) {\n logger$1.debug('Failed to get the user info', err);\n }\n else {\n username = user.name;\n email = user.email;\n }\n return [4 /*yield*/, Auth.federatedSignIn(config.domain, {\n token: authResult.idToken,\n expires_at: authResult.expiresIn * 1000 + new Date().getTime(),\n }, { name: username, email: email })];\n case 1:\n _a.sent();\n return [4 /*yield*/, Auth.currentAuthenticatedUser()];\n case 2:\n authenticatedUser = _a.sent();\n this.handleAuthStateChange(AuthState.SignedIn, authenticatedUser);\n return [2 /*return*/];\n }\n });\n }); });\n });\n };\n }\n class_2.prototype.componentWillLoad = function () {\n console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');\n };\n class_2.prototype.signInWithAuth0 = function (event) {\n event.preventDefault();\n if (!this._auth0) {\n throw new Error('the auth0 client is not configured');\n }\n this._auth0.authorize();\n };\n class_2.prototype.render = function () {\n var _this = this;\n return (h(\"amplify-sign-in-button\", { onClick: function (event) { return _this.signInWithAuth0(event); }, provider: \"auth0\" }, h(\"script\", { onLoad: this.handleLoad, src: \"https://cdn.auth0.com/js/auth0/9.11/auth0.min.js\" }), I18n.get(Translations.SIGN_IN_WITH_AUTH0)));\n };\n return class_2;\n}());\nvar logger$2 = new ConsoleLogger('amplify-facebook-button');\nvar AmplifyFacebookButton = /** @class */ (function () {\n function class_3(hostRef) {\n var _this = this;\n registerInstance(this, hostRef);\n /** Auth state change handler for this component\n * e.g. SignIn -> 'Create Account' link -> SignUp\n */\n this.handleAuthStateChange = dispatchAuthStateChangeEvent;\n this.federatedSignIn = function (authResponse) {\n var accessToken = authResponse.accessToken, expiresIn = authResponse.expiresIn;\n if (!accessToken) {\n return;\n }\n if (!Auth ||\n typeof Auth.federatedSignIn !== 'function' ||\n typeof Auth.currentAuthenticatedUser !== 'function') {\n throw new Error(NO_AUTH_MODULE_FOUND);\n }\n var date = new Date();\n var expires_at = expiresIn * 1000 + date.getTime();\n var fields = 'name,email';\n window['FB'].api('/me', { fields: fields }, function (response) { return __awaiter(_this, void 0, void 0, function () {\n var user, authenticatedUser;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n user = {\n name: response.name,\n email: response.email,\n };\n return [4 /*yield*/, Auth.federatedSignIn('facebook', { token: accessToken, expires_at: expires_at }, user)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Auth.currentAuthenticatedUser()];\n case 2:\n authenticatedUser = _a.sent();\n this.handleAuthStateChange(AuthState.SignedIn, authenticatedUser);\n return [2 /*return*/];\n }\n });\n }); });\n };\n this.getLoginStatus = function () {\n window['FB'].getLoginStatus(function (response) {\n try {\n window.localStorage.setItem(AUTH_SOURCE_KEY, JSON.stringify({ provider: 'facebook' }));\n }\n catch (e) {\n logger$2.debug('Failed to cache auth source into localStorage', e);\n }\n if (response.status === 'connected') {\n return _this.federatedSignIn(response.authResponse);\n }\n _this.login();\n });\n };\n this.login = function () {\n var scope = 'public_profile,email';\n window['FB'].login(function (response) {\n if (response && response.authResponse) {\n _this.federatedSignIn(response.authResponse);\n }\n }, { scope: scope });\n };\n }\n class_3.prototype.componentWillLoad = function () {\n console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');\n };\n /**\n * @see https://developers.facebook.com/docs/javascript/reference/FB.init/v5.0\n */\n class_3.prototype.signInWithFacebook = function (event) {\n event.preventDefault();\n window['FB'].init({\n appId: this.appId,\n cookie: true,\n xfbml: false,\n version: 'v5.0',\n });\n this.getLoginStatus();\n };\n class_3.prototype.render = function () {\n var _this = this;\n return (h(\"amplify-sign-in-button\", { onClick: function (event) { return _this.signInWithFacebook(event); }, provider: \"facebook\" }, h(\"script\", { async: true, defer: true, src: \"https://connect.facebook.net/en_US/sdk.js\" }), I18n.get(Translations.SIGN_IN_WITH_FACEBOOK)));\n };\n return class_3;\n}());\nvar logger$3 = new ConsoleLogger('amplify-google-button');\nvar AmplifyGoogleButton = /** @class */ (function () {\n function class_4(hostRef) {\n var _this = this;\n registerInstance(this, hostRef);\n /** Auth state change handler for this component\n * e.g. SignIn -> 'Create Account' link -> SignUp\n */\n this.handleAuthStateChange = dispatchAuthStateChangeEvent;\n this.handleError = function (error) {\n console.error(error);\n };\n /**\n * @see https://developers.google.com/identity/sign-in/web/build-button#building_a_button_with_a_custom_graphic\n */\n this.handleLoad = function () {\n window['gapi'].load('auth2');\n };\n this.handleUser = function (user) { return __awaiter(_this, void 0, void 0, function () {\n var _a, id_token, expires_at, profile, authenticatedUser;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!Auth ||\n typeof Auth.federatedSignIn !== 'function' ||\n typeof Auth.currentAuthenticatedUser !== 'function') {\n throw new Error(NO_AUTH_MODULE_FOUND);\n }\n try {\n window.localStorage.setItem(AUTH_SOURCE_KEY, JSON.stringify({ provider: 'google' }));\n }\n catch (e) {\n logger$3.debug('Failed to cache auth source into localStorage', e);\n }\n _a = user.getAuthResponse(), id_token = _a.id_token, expires_at = _a.expires_at;\n profile = user.getBasicProfile();\n return [4 /*yield*/, Auth.federatedSignIn('google', { token: id_token, expires_at: expires_at }, {\n email: profile.getEmail(),\n name: profile.getName(),\n picture: profile.getImageUrl(),\n })];\n case 1:\n _b.sent();\n return [4 /*yield*/, Auth.currentAuthenticatedUser()];\n case 2:\n authenticatedUser = _b.sent();\n try {\n this.handleAuthStateChange(AuthState.SignedIn, authenticatedUser);\n }\n catch (error) {\n this.handleError(error);\n }\n return [2 /*return*/];\n }\n });\n }); };\n }\n class_4.prototype.componentWillLoad = function () {\n console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');\n };\n class_4.prototype.getAuthInstance = function () {\n if (window['gapi'] && window['gapi'].auth2) {\n return (window['gapi'].auth2.getAuthInstance() ||\n window['gapi'].auth2.init({\n client_id: this.clientId,\n cookiepolicy: 'single_host_origin',\n scope: 'profile email openid',\n }));\n }\n return null;\n };\n class_4.prototype.signInWithGoogle = function (event) {\n event.preventDefault();\n this.getAuthInstance()\n .signIn()\n .then(this.handleUser)\n .catch(this.handleError);\n };\n class_4.prototype.render = function () {\n var _this = this;\n return (h(\"amplify-sign-in-button\", { onClick: function (event) { return _this.signInWithGoogle(event); }, provider: \"google\" }, h(\"script\", { onLoad: this.handleLoad, src: \"https://apis.google.com/js/api:client.js\" }), I18n.get(Translations.SIGN_IN_WITH_GOOGLE)));\n };\n return class_4;\n}());\nvar AmplifyOAuthButton = /** @class */ (function () {\n function AmplifyOAuthButton(hostRef) {\n registerInstance(this, hostRef);\n /** Federated credentials & configuration. */\n this.config = {};\n }\n AmplifyOAuthButton.prototype.signInWithOAuth = function (event) {\n event.preventDefault();\n Auth.federatedSignIn();\n };\n AmplifyOAuthButton.prototype.componentWillLoad = function () {\n console.warn('Version `1.x` of Amplify UI has been deprecated and will be removed in a future major version of `aws-amplify`. Please visit https://ui.docs.amplify.aws/ for the current version of Amplify UI.');\n };\n AmplifyOAuthButton.prototype.render = function () {\n var _this = this;\n return (h(\"amplify-sign-in-button\", { onClick: function (event) { return _this.signInWithOAuth(event); }, provider: \"oauth\" }, this.config.label || I18n.get(Translations.SIGN_IN_WITH_AWS)));\n };\n return AmplifyOAuthButton;\n}());\nexport { AmplifyAmazonButton as amplify_amazon_button, AmplifyAuth0Button as amplify_auth0_button, AmplifyFacebookButton as amplify_facebook_button, AmplifyGoogleButton as amplify_google_button, AmplifyOAuthButton as amplify_oauth_button };\n"],"sourceRoot":""}