{"version":3,"sources":["webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/amplify-auth-fields_9.entry.js"],"names":["componentFieldMapping","username","ff","label","placeholder","required","handleInputChange","value","inputProps","disabled","hint","password","email","code","Object","assign","min","phone_number","dialCode","default","type","AmplifyAuthFields","hostRef","this","prototype","componentWillLoad","console","warn","constructFormFieldOptions","formFields","content","undefined","forEach","formField","push","keys","includes","render","class","style","AmplifyCodeField","fieldId","CODE_LABEL","CODE_PLACEHOLDER","get","countryDialCodes","AmplifyCountryDialCode","options","setSelectedDialCode","watchDialCodeHandler","selectedDialCode","selected","defineProperty","enumerable","configurable","AmplifyEmailField","EMAIL_LABEL","EMAIL_PLACEHOLDER","name","AmplifyFormSection","submitButtonText","testDataPrefix","loading","secondaryFooterContent","handleFormSubmit","ev","handleSubmit","detail","onSubmit","headerText","AmplifyPasswordField","PASSWORD_LABEL","PASSWORD_PLACEHOLDER","AmplifyPhoneField","PHONE_LABEL","PHONE_PLACEHOLDER","slot","DEFAULT_SELECT_OPTION","logger","AmplifySelect","selectOptions","contructSelectOptions","handleSelectOptionsChange","isSelectedOptionValid","some","option","opts","_this","opt","id","onChange","AmplifyUsernameField","USERNAME_LABEL","USERNAME_PLACEHOLDER"],"mappings":"2FAAA,+gBAKIA,EAAwB,CACxBC,SAAU,SAAUC,GAAM,OAAQ,WAAD,CAAG,yBAA0B,CAAEC,MAAOD,EAAGC,MAAOC,YAAaF,EAAGE,YAAaC,SAAUH,EAAGG,SAAUC,kBAAmBJ,EAAGI,kBAAmBC,MAAOL,EAAGK,MAAOC,WAAYN,EAAGM,WAAYC,SAAUP,EAAGO,SAAUC,KAAMR,EAAGQ,MAAU,EACpQC,SAAU,SAAUT,GAAM,OAAQ,WAAD,CAAG,yBAA0B,CAAEC,MAAOD,EAAGC,MAAOC,YAAaF,EAAGE,YAAaM,KAAMR,EAAGQ,KAAML,SAAUH,EAAGG,SAAUC,kBAAmBJ,EAAGI,kBAAmBC,MAAOL,EAAGK,MAA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MAC7S,EACOiF,CACX,CAnByC,E","file":"e9d13ce.js","sourcesContent":["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"],"sourceRoot":""}