{"version":3,"sources":["webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/constants-c8ecaa24.js","webpack:///./node_modules/@aws-amplify/core/lib-esm/I18n/I18n.js","webpack:///./node_modules/@aws-amplify/core/lib-esm/I18n/index.js","webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/amplify-auth-fields_9.entry.js","webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/Translations-108d469f.js"],"names":["USERNAME_SUFFIX","EMAIL_SUFFIX","CODE_SUFFIX","PHONE_SUFFIX","PASSWORD_SUFFIX","COUNTRY_DIAL_CODE_SUFFIX","COUNTRY_DIAL_CODE_DEFAULT","AUTH_SOURCE_KEY","PHONE_EMPTY_ERROR_MESSAGE","NO_AUTH_MODULE_FOUND","NO_STORAGE_MODULE_FOUND","NO_INTERACTIONS_MODULE_FOUND","USER_NOT_SETUP_SOFTWARE_TOKEN_MFA","USER_NOT_VERIFIED_SOFTWARE_TOKEN_MFA","AUTH_CHANNEL","UI_AUTH_CHANNEL","TOAST_AUTH_ERROR_EVENT","AUTH_STATE_CHANGE_EVENT","logger","I18n","options","this","_options","_lang","_dict","Object","assign","language","window","navigator","debug","prototype","setLanguage","lang","get","key","defVal","undefined","val","getByLanguage","indexOf","split","lang_dict","putVocabulariesForLanguage","vocabularies","putVocabularies","_this","keys","map","_config","_i18n","configure","config","createInstance","getModuleName","checkConfig","Amplify","register","componentFieldMapping","username","ff","label","placeholder","required","handleInputChange","value","inputProps","disabled","hint","password","email","code","min","phone_number","dialCode","default","type","amplifyAuthFieldsCss","AmplifyAuthFields","hostRef","componentWillLoad","console","warn","constructFormFieldOptions","formFields","content","forEach","formField","push","includes","render","class","style","AmplifyCodeField","fieldId","CODE_LABEL","CODE_PLACEHOLDER","countryDialCodes","AmplifyCountryDialCode","setSelectedDialCode","watchDialCodeHandler","selectedDialCode","selected","defineProperty","enumerable","configurable","AmplifyEmailField","EMAIL_LABEL","EMAIL_PLACEHOLDER","name","amplifyFormSectionCss","AmplifyFormSection","submitButtonText","testDataPrefix","loading","secondaryFooterContent","handleFormSubmit","ev","handleSubmit","detail","onSubmit","headerText","AmplifyPasswordField","PASSWORD_LABEL","PASSWORD_PLACEHOLDER","amplifyPhoneFieldCss","AmplifyPhoneField","PHONE_LABEL","PHONE_PLACEHOLDER","slot","amplifySelectCss","DEFAULT_SELECT_OPTION","AmplifySelect","selectOptions","contructSelectOptions","handleSelectOptionsChange","isSelectedOptionValid","some","option","opts","opt","id","onChange","AmplifyUsernameField","USERNAME_LABEL","USERNAME_PLACEHOLDER","AuthStrings","InteractionsStrings","Translations"],"mappings":"kHAAA,omBAEA,IAAIA,EAAkB,WAClBC,EAAe,QACfC,EAAc,OACdC,EAAe,QACfC,EAAkB,WAElBC,EAA2B,2BAC3BC,EAA4B,KAE5BC,EAAkB,sBAElBC,EAA4B,gCAC5BC,EAAuB,oEACvBC,EAA0B,0EAC1BC,EAA+B,oFAE/BC,EAAoC,yCACpCC,EAAuC,2CAEvCC,EAAe,OACfC,EAAkB,UAClBC,EAAyB,iBACzBC,EAA0B,mB,oFCX1BC,EAAS,IAAI,OAAO,QAIpB,EAAsB,WAMtB,SAASC,EAAKC,GAIVC,KAAKC,SAAW,KAIhBD,KAAKE,MAAQ,KAIbF,KAAKG,MAAQ,GACbH,KAAKC,SAAWG,OAAOC,OAAO,GAAIN,GAClCC,KAAKE,MAAQF,KAAKC,SAASK,UACtBN,KAAKE,OACY,qBAAXK,QACPA,QACAA,OAAOC,YACPR,KAAKE,MAAQK,OAAOC,UAAUF,UAElCT,EAAOY,MAAMT,KAAKE,OA6EtB,OAtEAJ,EAAKY,UAAUC,YAAc,SAAUC,GACnCZ,KAAKE,MAAQU,GAQjBd,EAAKY,UAAUG,IAAM,SAAUC,EAAKC,GAEhC,QADe,IAAXA,IAAqBA,OAASC,IAC7BhB,KAAKE,MACN,MAAyB,qBAAXa,EAAyBA,EAASD,EAEpD,IAAIF,EAAOZ,KAAKE,MACZe,EAAMjB,KAAKkB,cAAc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A8B,qBAC1CA,EAAY,kCAAoC,gCAChDA,EAAY,gBAAkB,SAC9BA,EAAY,sBAAwB,oBACpCA,EAAY,iBAAmB,cAC/BA,EAAY,uBAAyB,yBACrCA,EAAY,oBAAsB,aAClCA,EAAY,0BAA4B,wBACxCA,EAAY,kBAAoB,YAChCA,EAAY,wBAA0B,uBACtCA,EAAY,gBAAkB,SAC9BA,EAAY,sBAAwB,oBACpCA,EAAY,oBAAsB,aAClCA,EAAY,0BAA4B,kDACxCA,EAAY,qBAAuB,cACnCA,EAAY,2BAA6B,yBACzCA,EAAY,iBAAmB,UAC/BA,EAAY,uBAAyB,qBACrCA,EAAY,cAAgB,YAC5BA,EAAY,oBAAsB,uBAClCA,EAAY,sBAAwB,eACpCA,EAAY,qBAAuB,uDACnCA,EAAY,iCAAmC,mBAC/CA,EAAY,4BAA8B,SAC1CA,EAAY,sBAAwB,oBACpCA,EAAY,qBAAuB,kCACnCA,EAAY,iCAAmC,sBAC/CA,EAAY,4BAA8B,SAC1CA,EAAY,eAAiB,cAC7BA,EAAY,yBAA2B,mBACvCA,EAAY,0BAA4B,yBACxCA,EAAY,kBAAoB,kBA7GpC,CA8GGA,IAAgBA,EAAc,KAEjC,SAAWC,GACPA,EAAoB,iBAAmB,cACvCA,EAAoB,0BAA4B,kBAChDA,EAAoB,2BAA6B,qBACjDA,EAAoB,uBAAyB,8DAC7CA,EAAoB,qBAAuB,8CAL/C,CAMGA,IAAwBA,EAAsB,KACjD,IAAIC,EAAe3H,OAAOC,OAAOD,OAAOC,OAAOD,OAAOC,OAAO,GAAIwH,GAAc,QAAmBC","file":"js/chunk-92a29f4c.31705bb3.js","sourcesContent":["// Dictionaries\n// fieldId constants\nvar USERNAME_SUFFIX = 'username';\nvar EMAIL_SUFFIX = 'email';\nvar CODE_SUFFIX = 'code';\nvar PHONE_SUFFIX = 'phone';\nvar PASSWORD_SUFFIX = 'password';\n// Country Dial Code common constants\nvar COUNTRY_DIAL_CODE_SUFFIX = 'country-dial-code-select';\nvar COUNTRY_DIAL_CODE_DEFAULT = '+1';\n// Auth Keys\nvar AUTH_SOURCE_KEY = 'amplify-auth-source';\n// Error message Common Constants\nvar PHONE_EMPTY_ERROR_MESSAGE = 'Phone number can not be empty';\nvar NO_AUTH_MODULE_FOUND = 'No Auth module found, please ensure @aws-amplify/auth is imported';\nvar NO_STORAGE_MODULE_FOUND = 'No Storage module found, please ensure @aws-amplify/storage is imported';\nvar NO_INTERACTIONS_MODULE_FOUND = 'No Interactions module found, please ensure @aws-amplify/interactions is imported';\n// Select MFA Types Messages\nvar USER_NOT_SETUP_SOFTWARE_TOKEN_MFA = 'User has not set up software token mfa';\nvar USER_NOT_VERIFIED_SOFTWARE_TOKEN_MFA = 'User has not verified software token mfa';\n// Hub Events and Channels\nvar AUTH_CHANNEL = 'auth';\nvar UI_AUTH_CHANNEL = 'UI Auth';\nvar TOAST_AUTH_ERROR_EVENT = 'ToastAuthError';\nvar AUTH_STATE_CHANGE_EVENT = 'AuthStateChange';\nexport { AUTH_CHANNEL as A, COUNTRY_DIAL_CODE_SUFFIX as C, EMAIL_SUFFIX as E, NO_AUTH_MODULE_FOUND as N, PHONE_EMPTY_ERROR_MESSAGE as P, TOAST_AUTH_ERROR_EVENT as T, UI_AUTH_CHANNEL as U, AUTH_STATE_CHANGE_EVENT as a, PHONE_SUFFIX as b, NO_INTERACTIONS_MODULE_FOUND as c, NO_STORAGE_MODULE_FOUND as d, USER_NOT_SETUP_SOFTWARE_TOKEN_MFA as e, USER_NOT_VERIFIED_SOFTWARE_TOKEN_MFA as f, COUNTRY_DIAL_CODE_DEFAULT as g, AUTH_SOURCE_KEY as h, CODE_SUFFIX as i, PASSWORD_SUFFIX as j, USERNAME_SUFFIX as k };\n","/*\n * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"). You may not use this file except in compliance with\n * the License. A copy of the License is located at\n *\n * http://aws.amazon.com/apache2.0/\n *\n * or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions\n * and limitations under the License.\n */\nimport { ConsoleLogger as Logger } from '../Logger';\nvar logger = new Logger('I18n');\n/**\n * Language transition class\n */\nvar I18n = /** @class */ (function () {\n /**\n * @constructor\n * Initialize with configurations\n * @param {Object} options\n */\n function I18n(options) {\n /**\n * @private\n */\n this._options = null;\n /**\n * @private\n */\n this._lang = null;\n /**\n * @private\n */\n this._dict = {};\n this._options = Object.assign({}, options);\n this._lang = this._options.language;\n if (!this._lang &&\n typeof window !== 'undefined' &&\n window &&\n window.navigator) {\n this._lang = window.navigator.language;\n }\n logger.debug(this._lang);\n }\n /**\n * @method\n * Explicitly setting language\n * @param {String} lang\n */\n I18n.prototype.setLanguage = function (lang) {\n this._lang = lang;\n };\n /**\n * @method\n * Get value\n * @param {String} key\n * @param {String} defVal - Default value\n */\n I18n.prototype.get = function (key, defVal) {\n if (defVal === void 0) { defVal = undefined; }\n if (!this._lang) {\n return typeof defVal !== 'undefined' ? defVal : key;\n }\n var lang = this._lang;\n var val = this.getByLanguage(key, lang);\n if (val) {\n return val;\n }\n if (lang.indexOf('-') > 0) {\n val = this.getByLanguage(key, lang.split('-')[0]);\n }\n if (val) {\n return val;\n }\n return typeof defVal !== 'undefined' ? defVal : key;\n };\n /**\n * @method\n * Get value according to specified language\n * @param {String} key\n * @param {String} language - Specified langurage to be used\n * @param {String} defVal - Default value\n */\n I18n.prototype.getByLanguage = function (key, language, defVal) {\n if (defVal === void 0) { defVal = null; }\n if (!language) {\n return defVal;\n }\n var lang_dict = this._dict[language];\n if (!lang_dict) {\n return defVal;\n }\n return lang_dict[key];\n };\n /**\n * @method\n * Add vocabularies for one language\n * @param {String} language - Language of the dictionary\n * @param {Object} vocabularies - Object that has key-value as dictionary entry\n */\n I18n.prototype.putVocabulariesForLanguage = function (language, vocabularies) {\n var lang_dict = this._dict[language];\n if (!lang_dict) {\n lang_dict = this._dict[language] = {};\n }\n Object.assign(lang_dict, vocabularies);\n };\n /**\n * @method\n * Add vocabularies for one language\n * @param {Object} vocabularies - Object that has language as key,\n * vocabularies of each language as value\n */\n I18n.prototype.putVocabularies = function (vocabularies) {\n var _this = this;\n Object.keys(vocabularies).map(function (key) {\n _this.putVocabulariesForLanguage(key, vocabularies[key]);\n });\n };\n return I18n;\n}());\nexport { I18n };\n//# sourceMappingURL=I18n.js.map","/*\n * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"). You may not use this file except in compliance with\n * the License. A copy of the License is located at\n *\n * http://aws.amazon.com/apache2.0/\n *\n * or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions\n * and limitations under the License.\n */\nimport { I18n as I18nClass } from './I18n';\nimport { ConsoleLogger as Logger } from '../Logger';\nimport { Amplify } from '../Amplify';\nvar logger = new Logger('I18n');\nvar _config = null;\nvar _i18n = null;\n/**\n * Export I18n APIs\n */\nvar I18n = /** @class */ (function () {\n function I18n() {\n }\n /**\n * @static\n * @method\n * Configure I18n part\n * @param {Object} config - Configuration of the I18n\n */\n I18n.configure = function (config) {\n logger.debug('configure I18n');\n if (!config) {\n return _config;\n }\n _config = Object.assign({}, _config, config.I18n || config);\n I18n.createInstance();\n return _config;\n };\n I18n.getModuleName = function () {\n return 'I18n';\n };\n /**\n * @static\n * @method\n * Create an instance of I18n for the library\n */\n I18n.createInstance = function () {\n logger.debug('create I18n instance');\n if (_i18n) {\n return;\n }\n _i18n = new I18nClass(_config);\n };\n /**\n * @static @method\n * Explicitly setting language\n * @param {String} lang\n */\n I18n.setLanguage = function (lang) {\n I18n.checkConfig();\n return _i18n.setLanguage(lang);\n };\n /**\n * @static @method\n * Get value\n * @param {String} key\n * @param {String} defVal - Default value\n */\n I18n.get = function (key, defVal) {\n if (!I18n.checkConfig()) {\n return typeof defVal === 'undefined' ? key : defVal;\n }\n return _i18n.get(key, defVal);\n };\n /**\n * @static\n * @method\n * Add vocabularies for one language\n * @param {String} langurage - Language of the dictionary\n * @param {Object} vocabularies - Object that has key-value as dictionary entry\n */\n I18n.putVocabulariesForLanguage = function (language, vocabularies) {\n I18n.checkConfig();\n return _i18n.putVocabulariesForLanguage(language, vocabularies);\n };\n /**\n * @static\n * @method\n * Add vocabularies for one language\n * @param {Object} vocabularies - Object that has language as key,\n * vocabularies of each language as value\n */\n I18n.putVocabularies = function (vocabularies) {\n I18n.checkConfig();\n return _i18n.putVocabularies(vocabularies);\n };\n I18n.checkConfig = function () {\n if (!_i18n) {\n _i18n = new I18nClass(_config);\n }\n return true;\n };\n return I18n;\n}());\nexport { I18n };\nAmplify.register(I18n);\n/**\n * @deprecated use named import\n */\nexport default I18n;\n//# sourceMappingURL=index.js.map","import { h, r as registerInstance } from './index-83f2275b.js';\nimport { I18n, Logger } from '@aws-amplify/core';\nimport '@aws-amplify/auth';\nimport { T as Translations } from './Translations-108d469f.js';\nimport { i as CODE_SUFFIX, C as COUNTRY_DIAL_CODE_SUFFIX, E as EMAIL_SUFFIX, j as PASSWORD_SUFFIX, b as PHONE_SUFFIX, k as USERNAME_SUFFIX } from './constants-c8ecaa24.js';\nvar componentFieldMapping = {\n username: function (ff) { return (h(\"amplify-username-field\", { label: ff.label, placeholder: ff.placeholder, required: ff.required, handleInputChange: ff.handleInputChange, value: ff.value, inputProps: ff.inputProps, disabled: ff.disabled, hint: ff.hint })); },\n password: function (ff) { return (h(\"amplify-password-field\", { label: ff.label, placeholder: ff.placeholder, hint: ff.hint, required: ff.required, handleInputChange: ff.handleInputChange, value: ff.value, inputProps: ff.inputProps, disabled: ff.disabled })); },\n email: function (ff) { return (h(\"amplify-email-field\", { label: ff.label, placeholder: ff.placeholder, required: ff.required, handleInputChange: ff.handleInputChange, value: ff.value, inputProps: ff.inputProps, disabled: ff.disabled, hint: ff.hint })); },\n code: function (ff) { return (h(\"amplify-code-field\", { label: ff.label, placeholder: ff.placeholder, hint: ff.hint, required: ff.required, handleInputChange: ff.handleInputChange, value: ff.value, inputProps: Object.assign(Object.assign({}, ff.inputProps), { min: '0' }), disabled: ff.disabled })); },\n // TODO: Will create a phone field component once the dial country code component is in\n phone_number: function (ff) { return (h(\"amplify-phone-field\", { label: ff.label, placeholder: ff.placeholder, required: ff.required, handleInputChange: ff.handleInputChange, value: ff.value, inputProps: ff.inputProps, disabled: ff.disabled, dialCode: ff.dialCode, hint: ff.hint })); },\n default: function (ff) { return (h(\"amplify-form-field\", { label: ff.label, type: ff.type, placeholder: ff.placeholder, required: ff.required, handleInputChange: ff.handleInputChange, value: ff.value, inputProps: ff.inputProps, disabled: ff.disabled, hint: ff.hint })); },\n};\nvar amplifyAuthFieldsCss = \".auth-fields{margin-bottom:2rem}\";\nvar AmplifyAuthFields = /** @class */ (function () {\n function AmplifyAuthFields(hostRef) {\n registerInstance(this, hostRef);\n }\n AmplifyAuthFields.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 AmplifyAuthFields.prototype.constructFormFieldOptions = function (formFields) {\n var content = [];\n if (formFields === undefined)\n return '';\n formFields.forEach(function (formField) {\n if (typeof formField === 'string') {\n content.push(componentFieldMapping[formField](formField));\n }\n else if (Object.keys(componentFieldMapping).includes(formField.type)) {\n content.push(componentFieldMapping[formField.type](formField));\n }\n else {\n content.push(componentFieldMapping['default'](formField));\n }\n });\n return content;\n };\n AmplifyAuthFields.prototype.render = function () {\n return (h(\"div\", { class: \"auth-fields\" }, this.constructFormFieldOptions(this.formFields)));\n };\n return AmplifyAuthFields;\n}());\nAmplifyAuthFields.style = amplifyAuthFieldsCss;\nvar AmplifyCodeField = /** @class */ (function () {\n function AmplifyCodeField(hostRef) {\n registerInstance(this, hostRef);\n /** Based on the type of field e.g. sign in, sign up, forgot password, etc. */\n this.fieldId = CODE_SUFFIX;\n /** Used for the code label */\n this.label = Translations.CODE_LABEL;\n /** Used for the placeholder label */\n this.placeholder = Translations.CODE_PLACEHOLDER;\n /** The required flag in order to make an input required prior to submitting a form */\n this.required = false;\n }\n AmplifyCodeField.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 AmplifyCodeField.prototype.render = function () {\n return (h(\"amplify-form-field\", { fieldId: this.fieldId, label: I18n.get(this.label), placeholder: I18n.get(this.placeholder), type: \"number\", hint: this.hint, required: this.required, handleInputChange: this.handleInputChange, value: this.value, inputProps: this.inputProps, disabled: this.disabled }));\n };\n return AmplifyCodeField;\n}());\nvar countryDialCodes = [\n { label: '+1', value: '+1' },\n { label: '+7', value: '+7' },\n { label: '+20', value: '+20' },\n { label: '+27', value: '+27' },\n { label: '+30', value: '+30' },\n { label: '+31', value: '+31' },\n { label: '+32', value: '+32' },\n { label: '+33', value: '+33' },\n { label: '+34', value: '+34' },\n { label: '+36', value: '+36' },\n { label: '+39', value: '+39' },\n { label: '+40', value: '+40' },\n { label: '+41', value: '+41' },\n { label: '+43', value: '+43' },\n { label: '+44', value: '+44' },\n { label: '+45', value: '+45' },\n { label: '+46', value: '+46' },\n { label: '+47', value: '+47' },\n { label: '+48', value: '+48' },\n { label: '+49', value: '+49' },\n { label: '+51', value: '+51' },\n { label: '+52', value: '+52' },\n { label: '+53', value: '+53' },\n { label: '+54', value: '+54' },\n { label: '+55', value: '+55' },\n { label: '+56', value: '+56' },\n { label: '+57', value: '+57' },\n { label: '+58', value: '+58' },\n { label: '+60', value: '+60' },\n { label: '+61', value: '+61' },\n { label: '+62', value: '+62' },\n { label: '+63', value: '+63' },\n { label: '+64', value: '+64' },\n { label: '+65', value: '+65' },\n { label: '+66', value: '+66' },\n { label: '+81', value: '+81' },\n { label: '+82', value: '+82' },\n { label: '+84', value: '+84' },\n { label: '+86', value: '+86' },\n { label: '+90', value: '+90' },\n { label: '+91', value: '+91' },\n { label: '+92', value: '+92' },\n { label: '+93', value: '+93' },\n { label: '+94', value: '+94' },\n { label: '+95', value: '+95' },\n { label: '+98', value: '+98' },\n { label: '+212', value: '+212' },\n { label: '+213', value: '+213' },\n { label: '+216', value: '+216' },\n { label: '+218', value: '+218' },\n { label: '+220', value: '+220' },\n { label: '+221', value: '+221' },\n { label: '+222', value: '+222' },\n { label: '+223', value: '+223' },\n { label: '+224', value: '+224' },\n { label: '+225', value: '+225' },\n { label: '+226', value: '+226' },\n { label: '+227', value: '+227' },\n { label: '+228', value: '+228' },\n { label: '+229', value: '+229' },\n { label: '+230', value: '+230' },\n { label: '+231', value: '+231' },\n { label: '+232', value: '+232' },\n { label: '+233', value: '+233' },\n { label: '+234', value: '+234' },\n { label: '+235', value: '+235' },\n { label: '+236', value: '+236' },\n { label: '+237', value: '+237' },\n { label: '+238', value: '+238' },\n { label: '+239', value: '+239' },\n { label: '+240', value: '+240' },\n { label: '+241', value: '+241' },\n { label: '+242', value: '+242' },\n { label: '+243', value: '+243' },\n { label: '+244', value: '+244' },\n { label: '+245', value: '+245' },\n { label: '+246', value: '+246' },\n { label: '+248', value: '+248' },\n { label: '+249', value: '+249' },\n { label: '+250', value: '+250' },\n { label: '+251', value: '+251' },\n { label: '+252', value: '+252' },\n { label: '+253', value: '+253' },\n { label: '+254', value: '+254' },\n { label: '+255', value: '+255' },\n { label: '+256', value: '+256' },\n { label: '+257', value: '+257' },\n { label: '+258', value: '+258' },\n { label: '+260', value: '+260' },\n { label: '+261', value: '+261' },\n { label: '+262', value: '+262' },\n { label: '+263', value: '+263' },\n { label: '+264', value: '+264' },\n { label: '+265', value: '+265' },\n { label: '+266', value: '+266' },\n { label: '+267', value: '+267' },\n { label: '+268', value: '+268' },\n { label: '+269', value: '+269' },\n { label: '+290', value: '+290' },\n { label: '+291', value: '+291' },\n { label: '+297', value: '+297' },\n { label: '+298', value: '+298' },\n { label: '+299', value: '+299' },\n { label: '+345', value: '+345' },\n { label: '+350', value: '+350' },\n { label: '+351', value: '+351' },\n { label: '+352', value: '+352' },\n { label: '+353', value: '+353' },\n { label: '+354', value: '+354' },\n { label: '+355', value: '+355' },\n { label: '+356', value: '+356' },\n { label: '+357', value: '+357' },\n { label: '+358', value: '+358' },\n { label: '+359', value: '+359' },\n { label: '+370', value: '+370' },\n { label: '+371', value: '+371' },\n { label: '+372', value: '+372' },\n { label: '+373', value: '+373' },\n { label: '+374', value: '+374' },\n { label: '+375', value: '+375' },\n { label: '+376', value: '+376' },\n { label: '+377', value: '+377' },\n { label: '+378', value: '+378' },\n { label: '+379', value: '+379' },\n { label: '+380', value: '+380' },\n { label: '+381', value: '+381' },\n { label: '+382', value: '+382' },\n { label: '+385', value: '+385' },\n { label: '+386', value: '+386' },\n { label: '+387', value: '+387' },\n { label: '+389', value: '+389' },\n { label: '+420', value: '+420' },\n { label: '+421', value: '+421' },\n { label: '+423', value: '+423' },\n { label: '+500', value: '+500' },\n { label: '+501', value: '+501' },\n { label: '+502', value: '+502' },\n { label: '+503', value: '+503' },\n { label: '+504', value: '+504' },\n { label: '+505', value: '+505' },\n { label: '+506', value: '+506' },\n { label: '+507', value: '+507' },\n { label: '+508', value: '+508' },\n { label: '+509', value: '+509' },\n { label: '+537', value: '+537' },\n { label: '+590', value: '+590' },\n { label: '+591', value: '+591' },\n { label: '+593', value: '+593' },\n { label: '+594', value: '+594' },\n { label: '+595', value: '+595' },\n { label: '+596', value: '+596' },\n { label: '+597', value: '+597' },\n { label: '+598', value: '+598' },\n { label: '+599', value: '+599' },\n { label: '+670', value: '+670' },\n { label: '+672', value: '+672' },\n { label: '+673', value: '+673' },\n { label: '+674', value: '+674' },\n { label: '+675', value: '+675' },\n { label: '+676', value: '+676' },\n { label: '+677', value: '+677' },\n { label: '+678', value: '+678' },\n { label: '+679', value: '+679' },\n { label: '+680', value: '+680' },\n { label: '+681', value: '+681' },\n { label: '+682', value: '+682' },\n { label: '+683', value: '+683' },\n { label: '+685', value: '+685' },\n { label: '+686', value: '+686' },\n { label: '+687', value: '+687' },\n { label: '+688', value: '+688' },\n { label: '+689', value: '+689' },\n { label: '+690', value: '+690' },\n { label: '+691', value: '+691' },\n { label: '+692', value: '+692' },\n { label: '+850', value: '+850' },\n { label: '+852', value: '+852' },\n { label: '+853', value: '+853' },\n { label: '+855', value: '+855' },\n { label: '+856', value: '+856' },\n { label: '+872', value: '+872' },\n { label: '+880', value: '+880' },\n { label: '+886', value: '+886' },\n { label: '+960', value: '+960' },\n { label: '+961', value: '+961' },\n { label: '+962', value: '+962' },\n { label: '+963', value: '+963' },\n { label: '+964', value: '+964' },\n { label: '+965', value: '+965' },\n { label: '+966', value: '+966' },\n { label: '+967', value: '+967' },\n { label: '+968', value: '+968' },\n { label: '+970', value: '+970' },\n { label: '+971', value: '+971' },\n { label: '+972', value: '+972' },\n { label: '+973', value: '+973' },\n { label: '+974', value: '+974' },\n { label: '+975', value: '+975' },\n { label: '+976', value: '+976' },\n { label: '+977', value: '+977' },\n { label: '+992', value: '+992' },\n { label: '+993', value: '+993' },\n { label: '+994', value: '+994' },\n { label: '+995', value: '+995' },\n { label: '+996', value: '+996' },\n { label: '+998', value: '+998' },\n];\nvar AmplifyCountryDialCode = /** @class */ (function () {\n function AmplifyCountryDialCode(hostRef) {\n registerInstance(this, hostRef);\n /** The ID of the field. Should match with its corresponding input's ID. */\n this.fieldId = COUNTRY_DIAL_CODE_SUFFIX;\n /** The options of the country dial code select input. */\n this.options = countryDialCodes;\n /** Default selected dial code */\n this.dialCode = '+1';\n }\n AmplifyCountryDialCode.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 this.setSelectedDialCode();\n };\n AmplifyCountryDialCode.prototype.watchDialCodeHandler = function () {\n this.setSelectedDialCode();\n };\n AmplifyCountryDialCode.prototype.setSelectedDialCode = function () {\n if (typeof this.dialCode === 'number') {\n this.selectedDialCode = \"+\" + this.dialCode;\n }\n else {\n this.selectedDialCode = this.dialCode;\n }\n };\n AmplifyCountryDialCode.prototype.render = function () {\n return (h(\"amplify-select\", { fieldId: this.fieldId, options: this.options, handleInputChange: this.handleInputChange, selected: this.selectedDialCode }));\n };\n Object.defineProperty(AmplifyCountryDialCode, \"watchers\", {\n get: function () {\n return {\n \"dialCode\": [\"watchDialCodeHandler\"]\n };\n },\n enumerable: false,\n configurable: true\n });\n return AmplifyCountryDialCode;\n}());\nvar AmplifyEmailField = /** @class */ (function () {\n function AmplifyEmailField(hostRef) {\n registerInstance(this, hostRef);\n /** Based on the type of field e.g. sign in, sign up, forgot password, etc. */\n this.fieldId = EMAIL_SUFFIX;\n /** Used for the EMAIL label */\n this.label = Translations.EMAIL_LABEL;\n /** Used for the placeholder label */\n this.placeholder = Translations.EMAIL_PLACEHOLDER;\n /** The required flag in order to make an input required prior to submitting a form */\n this.required = false;\n }\n AmplifyEmailField.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 AmplifyEmailField.prototype.render = function () {\n return (h(\"amplify-form-field\", { fieldId: this.fieldId, label: I18n.get(this.label), placeholder: I18n.get(this.placeholder), type: \"email\", name: \"email\", required: this.required, handleInputChange: this.handleInputChange, value: this.value, inputProps: this.inputProps, disabled: this.disabled, hint: this.hint }));\n };\n return AmplifyEmailField;\n}());\nvar amplifyFormSectionCss = \"amplify-form-section{--header-color:var(--amplify-secondary-color);--header-size:var(--amplify-text-md-sub);--subtitle-size:var(--amplify-grey);--subtitle-color:var(--amplify-grey);--footer-color:var(--amplify-grey);--footer-size:var(--amplify-text-sm);--font-family:var(--amplify-font-family);--font-weight:var(--amplify-font-weight)}.form-section-header{margin:1rem 0 1.5rem 0}.form-section-header .header{color:var(--header-color);font-size:var(--header-size);font-weight:700;margin-bottom:0.75rem}.form-section-header .subtitle{font-weight:400;font-size:var(--amplify-text-sm);color:var(--subtitle-color)}.form-section-footer{font-family:var(--font-family);font-weight:var(--font-weight);font-size:var(--footer-size);color:var(--footer-color);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around}@media (min-width: 672px){.form-section-footer{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:baseline;align-items:baseline}}.form-section-footer *+*{margin-top:15px}\";\nvar AmplifyFormSection = /** @class */ (function () {\n function AmplifyFormSection(hostRef) {\n registerInstance(this, hostRef);\n /** (Optional) Used as a the default value within the default footer slot */\n this.submitButtonText = 'Submit';\n /** String prefix for the data-test attributes in this component primarily used for testing purposes */\n this.testDataPrefix = 'form-section';\n /** Loading state for the form */\n this.loading = false;\n /** Secondary footer component or text */\n this.secondaryFooterContent = null;\n }\n // eslint-disable-next-line\n AmplifyFormSection.prototype.handleFormSubmit = function (ev) {\n this.handleSubmit(ev.detail);\n };\n AmplifyFormSection.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 AmplifyFormSection.prototype.render = function () {\n return (h(\"form\", { onSubmit: this.handleSubmit }, h(\"amplify-section\", null, h(\"div\", null, h(\"slot\", { name: \"amplify-form-section-header\" }, h(\"div\", { class: \"form-section-header\" }, h(\"h3\", { class: \"header\", \"data-test\": this.testDataPrefix + '-header-section' }, this.headerText), h(\"div\", { class: \"subtitle\" }, h(\"slot\", { name: \"subtitle\" }))))), h(\"slot\", null), h(\"div\", null, h(\"slot\", { name: \"amplify-form-section-footer\" }, h(\"div\", { class: \"form-section-footer\" }, h(\"amplify-button\", { type: \"submit\", \"data-test\": this.testDataPrefix + '-' + this.testDataPrefix + '-button' }, this.loading ? (h(\"amplify-loading-spinner\", null)) : (h(\"span\", null, this.submitButtonText))), this.secondaryFooterContent))))));\n };\n return AmplifyFormSection;\n}());\nAmplifyFormSection.style = amplifyFormSectionCss;\nvar AmplifyPasswordField = /** @class */ (function () {\n function AmplifyPasswordField(hostRef) {\n registerInstance(this, hostRef);\n /** Based on the type of field e.g. sign in, sign up, forgot password, etc. */\n this.fieldId = PASSWORD_SUFFIX;\n /** Used for the password label */\n this.label = Translations.PASSWORD_LABEL;\n /** Used for the placeholder label */\n this.placeholder = Translations.PASSWORD_PLACEHOLDER;\n /** The required flag in order to make an input required prior to submitting a form */\n this.required = false;\n }\n AmplifyPasswordField.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 AmplifyPasswordField.prototype.render = function () {\n return (h(\"amplify-form-field\", { type: \"password\", name: \"password\", fieldId: this.fieldId, label: I18n.get(this.label), placeholder: I18n.get(this.placeholder), hint: this.hint, required: this.required, handleInputChange: this.handleInputChange, value: this.value, inputProps: this.inputProps, disabled: this.disabled }));\n };\n return AmplifyPasswordField;\n}());\nvar amplifyPhoneFieldCss = \".phone-field{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:start;align-items:flex-start;width:100%}.phone-field input{border-left:none;border-radius:0 3px 3px 0}\";\nvar AmplifyPhoneField = /** @class */ (function () {\n function AmplifyPhoneField(hostRef) {\n registerInstance(this, hostRef);\n /** Based on the type of field e.g. sign in, sign up, forgot password, etc. */\n this.fieldId = PHONE_SUFFIX;\n /** Used for the Phone label */\n this.label = Translations.PHONE_LABEL;\n /** Used for the placeholder label */\n this.placeholder = Translations.PHONE_PLACEHOLDER;\n /** The required flag in order to make an input required prior to submitting a form */\n this.required = false;\n }\n AmplifyPhoneField.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 AmplifyPhoneField.prototype.render = function () {\n return (h(\"div\", null, h(\"amplify-form-field\", { label: I18n.get(this.label), hint: this.hint }, h(\"div\", { class: \"phone-field\", slot: \"input\" }, h(\"amplify-country-dial-code\", { dialCode: this.dialCode, handleInputChange: this.handleInputChange }), h(\"amplify-input\", { fieldId: this.fieldId, type: \"tel\", handleInputChange: this.handleInputChange, placeholder: I18n.get(this.placeholder), name: this.fieldId, value: this.value, inputProps: this.inputProps, disabled: this.disabled, required: this.required })))));\n };\n return AmplifyPhoneField;\n}());\nAmplifyPhoneField.style = amplifyPhoneFieldCss;\nvar amplifySelectCss = \":host{--color:var(--amplify-secondary-color);--background-color:var(--amplify-secondary-contrast);--border-color:var(--amplify-light-grey);--border-focus:var(--amplify-primary-color);--background-image:linear-gradient(45deg, transparent 50%, gray 50%),\\n \\tlinear-gradient(135deg, gray 50%, transparent 50%),\\n \\tlinear-gradient(to right, #ccc, #ccc)}.select{padding:1rem 1.75rem 1rem 1rem;font-size:var(--amplify-text-sm);color:var(--color);background-color:var(--background-color);border:1px solid var(--border-color);border-radius:3px 0 0 3px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-preferred-size:auto;flex-basis:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:0;height:3.125rem;background-image:var(--background-image);background-position:calc(100% - 1rem) calc(1em + 0.5rem), calc(100% - 0.7rem) calc(1em + 0.5rem), calc(100% - 2.5em) 0.5em;background-size:6px 5px, 6px 5px, 0px 1.5em;background-repeat:no-repeat}.select :focus{outline:none;border-color:var(--border-focus)}\";\nvar DEFAULT_SELECT_OPTION = [{ label: '', value: 1 }];\nvar logger = new Logger('amplify-select');\nvar AmplifySelect = /** @class */ (function () {\n function AmplifySelect(hostRef) {\n registerInstance(this, hostRef);\n /** The options of the select input. Must be an Array of Objects with an Object shape of {label: string, value: string|number} */\n this.options = DEFAULT_SELECT_OPTION;\n }\n AmplifySelect.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 this.selectOptions = this.contructSelectOptions(this.options);\n };\n AmplifySelect.prototype.handleSelectOptionsChange = function () {\n this.selectOptions = this.contructSelectOptions(this.options);\n };\n AmplifySelect.prototype.isSelectedOptionValid = function (selected) {\n if (selected && !this.options.some(function (option) { return option.value === selected; })) {\n logger.warn('Selected option does not exist in options values, falling back to initial option');\n return false;\n }\n return true;\n };\n AmplifySelect.prototype.contructSelectOptions = function (opts) {\n var _this = this;\n this.isSelectedOptionValid(this.selected);\n var content = [];\n opts.forEach(function (opt) {\n content.push(h(\"option\", { value: opt.value, selected: opt.value === _this.selected }, opt.label));\n });\n return content;\n };\n AmplifySelect.prototype.render = function () {\n return (h(\"select\", { name: this.fieldId, id: this.fieldId, class: \"select\", onChange: this.handleInputChange }, this.selectOptions));\n };\n Object.defineProperty(AmplifySelect, \"watchers\", {\n get: function () {\n return {\n \"options\": [\"handleSelectOptionsChange\"],\n \"selected\": [\"handleSelectOptionsChange\"]\n };\n },\n enumerable: false,\n configurable: true\n });\n return AmplifySelect;\n}());\nAmplifySelect.style = amplifySelectCss;\nvar AmplifyUsernameField = /** @class */ (function () {\n function AmplifyUsernameField(hostRef) {\n registerInstance(this, hostRef);\n /** Based on the type of field e.g. sign in, sign up, forgot password, etc. */\n this.fieldId = USERNAME_SUFFIX;\n /** Used for the username label */\n this.label = Translations.USERNAME_LABEL;\n /** Used for the placeholder label */\n this.placeholder = Translations.USERNAME_PLACEHOLDER;\n /** The required flag in order to make an input required prior to submitting a form */\n this.required = false;\n }\n AmplifyUsernameField.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 AmplifyUsernameField.prototype.render = function () {\n return (h(\"amplify-form-field\", { name: \"username\", fieldId: this.fieldId, label: I18n.get(this.label), placeholder: I18n.get(this.placeholder), required: this.required, handleInputChange: this.handleInputChange, value: this.value, inputProps: this.inputProps, disabled: this.disabled, hint: this.hint }));\n };\n return AmplifyUsernameField;\n}());\nexport { AmplifyAuthFields as amplify_auth_fields, AmplifyCodeField as amplify_code_field, AmplifyCountryDialCode as amplify_country_dial_code, AmplifyEmailField as amplify_email_field, AmplifyFormSection as amplify_form_section, AmplifyPasswordField as amplify_password_field, AmplifyPhoneField as amplify_phone_field, AmplifySelect as amplify_select, AmplifyUsernameField as amplify_username_field };\n","import { AuthErrorStrings } from '@aws-amplify/auth';\nvar AuthStrings;\n(function (AuthStrings) {\n AuthStrings[\"BACK_TO_SIGN_IN\"] = \"Back to Sign In\";\n AuthStrings[\"CHANGE_PASSWORD_ACTION\"] = \"Change\";\n AuthStrings[\"CHANGE_PASSWORD\"] = \"Change Password\";\n AuthStrings[\"CODE_LABEL\"] = \"Verification code\";\n AuthStrings[\"CODE_PLACEHOLDER\"] = \"Enter code\";\n AuthStrings[\"CONFIRM_SIGN_UP_CODE_LABEL\"] = \"Confirmation Code\";\n AuthStrings[\"CONFIRM_SIGN_UP_CODE_PLACEHOLDER\"] = \"Enter your code\";\n AuthStrings[\"CONFIRM_SIGN_UP_HEADER_TEXT\"] = \"Confirm Sign up\";\n AuthStrings[\"CONFIRM_SIGN_UP_LOST_CODE\"] = \"Lost your code?\";\n AuthStrings[\"CONFIRM_SIGN_UP_RESEND_CODE\"] = \"Resend Code\";\n AuthStrings[\"CONFIRM_SIGN_UP_SUBMIT_BUTTON_TEXT\"] = \"Confirm\";\n AuthStrings[\"CONFIRM_SMS_CODE\"] = \"Confirm SMS Code\";\n AuthStrings[\"CONFIRM_TOTP_CODE\"] = \"Confirm TOTP Code\";\n AuthStrings[\"CONFIRM\"] = \"Confirm\";\n AuthStrings[\"CREATE_ACCOUNT_TEXT\"] = \"Create account\";\n AuthStrings[\"EMAIL_LABEL\"] = \"Email Address *\";\n AuthStrings[\"EMAIL_PLACEHOLDER\"] = \"Enter your email address\";\n AuthStrings[\"FORGOT_PASSWORD_TEXT\"] = \"Forgot your password?\";\n AuthStrings[\"LESS_THAN_TWO_MFA_VALUES_MESSAGE\"] = \"Less than two MFA types available\";\n AuthStrings[\"NEW_PASSWORD_LABEL\"] = \"New password\";\n AuthStrings[\"NEW_PASSWORD_PLACEHOLDER\"] = \"Enter your new password\";\n AuthStrings[\"NO_ACCOUNT_TEXT\"] = \"No account?\";\n AuthStrings[\"USERNAME_REMOVE_WHITESPACE\"] = \"Username cannot contain whitespace\";\n AuthStrings[\"PASSWORD_REMOVE_WHITESPACE\"] = \"Password cannot start or end with whitespace\";\n AuthStrings[\"PASSWORD_LABEL\"] = \"Password *\";\n AuthStrings[\"PASSWORD_PLACEHOLDER\"] = \"Enter your password\";\n AuthStrings[\"PHONE_LABEL\"] = \"Phone Number *\";\n AuthStrings[\"PHONE_PLACEHOLDER\"] = \"(555) 555-1212\";\n AuthStrings[\"QR_CODE_ALT\"] = \"qrcode\";\n AuthStrings[\"RESET_PASSWORD_TEXT\"] = \"Reset password\";\n AuthStrings[\"RESET_YOUR_PASSWORD\"] = \"Reset your password\";\n AuthStrings[\"SELECT_MFA_TYPE_HEADER_TEXT\"] = \"Select MFA Type\";\n AuthStrings[\"SELECT_MFA_TYPE_SUBMIT_BUTTON_TEXT\"] = \"Verify\";\n AuthStrings[\"SEND_CODE\"] = \"Send Code\";\n AuthStrings[\"SUBMIT\"] = \"Submit\";\n AuthStrings[\"SETUP_TOTP_REQUIRED\"] = \"TOTP needs to be configured\";\n AuthStrings[\"SIGN_IN_ACTION\"] = \"Sign In\";\n AuthStrings[\"SIGN_IN_HEADER_TEXT\"] = \"Sign in to your account\";\n AuthStrings[\"SIGN_IN_TEXT\"] = \"Sign in\";\n AuthStrings[\"SIGN_IN_WITH_AMAZON\"] = \"Sign in with Amazon\";\n AuthStrings[\"SIGN_IN_WITH_AUTH0\"] = \"Sign in with Auth0\";\n AuthStrings[\"SIGN_IN_WITH_AWS\"] = \"Sign in with AWS\";\n AuthStrings[\"SIGN_IN_WITH_FACEBOOK\"] = \"Sign in with Facebook\";\n AuthStrings[\"SIGN_IN_WITH_GOOGLE\"] = \"Sign in with Google\";\n AuthStrings[\"SIGN_OUT\"] = \"Sign Out\";\n AuthStrings[\"SIGN_UP_EMAIL_PLACEHOLDER\"] = \"Email\";\n AuthStrings[\"SIGN_UP_HAVE_ACCOUNT_TEXT\"] = \"Have an account?\";\n AuthStrings[\"SIGN_UP_HEADER_TEXT\"] = \"Create a new account\";\n AuthStrings[\"SIGN_UP_PASSWORD_PLACEHOLDER\"] = \"Password\";\n AuthStrings[\"SIGN_UP_SUBMIT_BUTTON_TEXT\"] = \"Create Account\";\n AuthStrings[\"SIGN_UP_USERNAME_PLACEHOLDER\"] = \"Username\";\n AuthStrings[\"SKIP\"] = \"Skip\";\n AuthStrings[\"SUCCESS_MFA_TYPE\"] = \"Success! Your MFA Type is now:\";\n AuthStrings[\"TOTP_HEADER_TEXT\"] = \"Scan then enter verification code\";\n AuthStrings[\"TOTP_LABEL\"] = \"Enter Security Code:\";\n AuthStrings[\"TOTP_ISSUER\"] = \"AWSCognito\";\n AuthStrings[\"TOTP_SETUP_FAILURE\"] = \"TOTP Setup has failed\";\n AuthStrings[\"TOTP_SUBMIT_BUTTON_TEXT\"] = \"Verify Security Token\";\n AuthStrings[\"TOTP_SUCCESS_MESSAGE\"] = \"Setup TOTP successfully!\";\n AuthStrings[\"UNABLE_TO_SETUP_MFA_AT_THIS_TIME\"] = \"Failed! Unable to configure MFA at this time\";\n AuthStrings[\"USERNAME_LABEL\"] = \"Username *\";\n AuthStrings[\"USERNAME_PLACEHOLDER\"] = \"Enter your username\";\n AuthStrings[\"VERIFY_CONTACT_EMAIL_LABEL\"] = \"Email\";\n AuthStrings[\"VERIFY_CONTACT_HEADER_TEXT\"] = \"Account recovery requires verified contact information\";\n AuthStrings[\"VERIFY_CONTACT_PHONE_LABEL\"] = \"Phone Number\";\n AuthStrings[\"VERIFY_CONTACT_SUBMIT_LABEL\"] = \"Submit\";\n AuthStrings[\"VERIFY_CONTACT_VERIFY_LABEL\"] = \"Verify\";\n AuthStrings[\"ADDRESS_LABEL\"] = \"Address\";\n AuthStrings[\"ADDRESS_PLACEHOLDER\"] = \"Enter your address\";\n AuthStrings[\"NICKNAME_LABEL\"] = \"Nickname\";\n AuthStrings[\"NICKNAME_PLACEHOLDER\"] = \"Enter your nickname\";\n AuthStrings[\"BIRTHDATE_LABEL\"] = \"Birthday\";\n AuthStrings[\"BIRTHDATE_PLACEHOLDER\"] = \"Enter your birthday\";\n AuthStrings[\"PICTURE_LABEL\"] = \"Picture URL\";\n AuthStrings[\"PICTURE_PLACEHOLDER\"] = \"Enter your picture URL\";\n AuthStrings[\"FAMILY_NAME_LABEL\"] = \"Family Name\";\n AuthStrings[\"FAMILY_NAME_PLACEHOLDER\"] = \"Enter your family name\";\n AuthStrings[\"PREFERRED_USERNAME_LABEL\"] = \"Preferred Username\";\n AuthStrings[\"PREFERRED_USERNAME_PLACEHOLDER\"] = \"Enter your preferred username\";\n AuthStrings[\"GENDER_LABEL\"] = \"Gender\";\n AuthStrings[\"GENDER_PLACEHOLDER\"] = \"Enter your gender\";\n AuthStrings[\"PROFILE_LABEL\"] = \"Profile URL\";\n AuthStrings[\"PROFILE_PLACEHOLDER\"] = \"Enter your profile URL\";\n AuthStrings[\"GIVEN_NAME_LABEL\"] = \"First Name\";\n AuthStrings[\"GIVEN_NAME_PLACEHOLDER\"] = \"Enter your first name\";\n AuthStrings[\"ZONEINFO_LABEL\"] = \"Time zone\";\n AuthStrings[\"ZONEINFO_PLACEHOLDER\"] = \"Enter your time zone\";\n AuthStrings[\"LOCALE_LABEL\"] = \"Locale\";\n AuthStrings[\"LOCALE_PLACEHOLDER\"] = \"Enter your locale\";\n AuthStrings[\"UPDATED_AT_LABEL\"] = \"Updated At\";\n AuthStrings[\"UPDATED_AT_PLACEHOLDER\"] = \"Enter the time the information was last updated\";\n AuthStrings[\"MIDDLE_NAME_LABEL\"] = \"Middle Name\";\n AuthStrings[\"MIDDLE_NAME_PLACEHOLDER\"] = \"Enter your middle name\";\n AuthStrings[\"WEBSITE_LABEL\"] = \"Website\";\n AuthStrings[\"WEBSITE_PLACEHOLDER\"] = \"Enter your website\";\n AuthStrings[\"NAME_LABEL\"] = \"Full Name\";\n AuthStrings[\"NAME_PLACEHOLDER\"] = \"Enter your full name\";\n AuthStrings[\"PHOTO_PICKER_TITLE\"] = \"Picker Title\";\n AuthStrings[\"PHOTO_PICKER_HINT\"] = \"Ancillary text or content may occupy this space here\";\n AuthStrings[\"PHOTO_PICKER_PLACEHOLDER_HINT\"] = \"Placeholder hint\";\n AuthStrings[\"PHOTO_PICKER_BUTTON_TEXT\"] = \"Button\";\n AuthStrings[\"IMAGE_PICKER_TITLE\"] = \"Add Profile Photo\";\n AuthStrings[\"IMAGE_PICKER_HINT\"] = \"Preview the image before upload\";\n AuthStrings[\"IMAGE_PICKER_PLACEHOLDER_HINT\"] = \"Tap to image select\";\n AuthStrings[\"IMAGE_PICKER_BUTTON_TEXT\"] = \"Upload\";\n AuthStrings[\"PICKER_TEXT\"] = \"Pick a file\";\n AuthStrings[\"TEXT_FALLBACK_CONTENT\"] = \"Fallback Content\";\n AuthStrings[\"CONFIRM_SIGN_UP_FAILED\"] = \"Confirm Sign Up Failed\";\n AuthStrings[\"SIGN_UP_FAILED\"] = \"Sign Up Failed\";\n})(AuthStrings || (AuthStrings = {}));\nvar InteractionsStrings;\n(function (InteractionsStrings) {\n InteractionsStrings[\"CHATBOT_TITLE\"] = \"ChatBot Lex\";\n InteractionsStrings[\"TEXT_INPUT_PLACEHOLDER\"] = \"Write a message\";\n InteractionsStrings[\"VOICE_INPUT_PLACEHOLDER\"] = \"Click mic to speak\";\n InteractionsStrings[\"CHAT_DISABLED_ERROR\"] = \"Error: Either voice or text must be enabled for the chatbot\";\n InteractionsStrings[\"NO_BOT_NAME_ERROR\"] = \"Error: Bot name must be provided to ChatBot\";\n})(InteractionsStrings || (InteractionsStrings = {}));\nvar Translations = Object.assign(Object.assign(Object.assign({}, AuthStrings), AuthErrorStrings), InteractionsStrings);\nexport { Translations as T };\n"],"sourceRoot":""}