UNPKG

609 kBSource Map (JSON)View Raw
1{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap","webpack:///external \"react\"","webpack:///external \"@aws-amplify/core\"","webpack:///../../src/Amplify-UI/Amplify-UI-Components-React.tsx","webpack:///external \"@aws-amplify/auth\"","webpack:///../../src/Amplify-UI/data-test-attributes.tsx","webpack:///../../src/Amplify-UI/Amplify-UI-Theme.tsx","webpack:///../../src/Auth/AuthPiece.tsx","webpack:///external \"@aws-amplify/ui\"","webpack:///../src/AmplifyTheme.tsx","webpack:///../../../src/Auth/common/constants.tsx","webpack:///../src/AmplifyUI.tsx","webpack:///../../../src/Auth/common/types.ts","webpack:///../../src/Widget/Picker.tsx","webpack:///../../../src/Auth/Provider/index.tsx","webpack:///../../src/Auth/SignUp.tsx","webpack:///../../src/Auth/ForgotPassword.tsx","webpack:///../../src/Widget/TOTPSetupComp.tsx","webpack:///external \"@aws-amplify/storage\"","webpack:///../../src/Auth/Authenticator.tsx","webpack:///../../src/Auth/Greetings.tsx","webpack:///../../src/Auth/PhoneField.tsx","webpack:///../../../src/Auth/common/country-dial-codes.tsx","webpack:///../../src/Auth/SignOut.tsx","webpack:///../../../src/Auth/Provider/withGoogle.tsx","webpack:///../../../src/Auth/Provider/withFacebook.tsx","webpack:///../../../src/Auth/Provider/withAmazon.tsx","webpack:///../../../src/Auth/Provider/withOAuth.tsx","webpack:///../../../src/Auth/Provider/withAuth0.tsx","webpack:///../../src/Auth/SignIn.tsx","webpack:///../../src/Auth/FederatedSignIn.tsx","webpack:///../../src/Auth/ConfirmSignIn.tsx","webpack:///../../src/Auth/RequireNewPassword.tsx","webpack:///../../src/Auth/Loading.tsx","webpack:///../../src/Auth/ConfirmSignUp.tsx","webpack:///../../src/Auth/VerifyContact.tsx","webpack:///../../src/Auth/TOTPSetup.tsx","webpack:///./node_modules/qr.js/lib/mode.js","webpack:///./node_modules/qr.js/lib/ErrorCorrectLevel.js","webpack:///./node_modules/qr.js/lib/Polynomial.js","webpack:///./node_modules/qr.js/lib/math.js","webpack:///../src/AmplifyMessageMap.tsx","webpack:///external \"@aws-amplify/analytics\"","webpack:///../../src/Storage/S3Image.tsx","webpack:///../../src/Widget/PhotoPicker.tsx","webpack:///../../src/Storage/Common.tsx","webpack:///../../src/Storage/S3Text.tsx","webpack:///../../src/Widget/TextPicker.tsx","webpack:///(webpack)/buildin/global.js","webpack:///../src/index.tsx","webpack:///../src/AmplifyI18n.tsx","webpack:///../../src/Auth/index.tsx","webpack:///../../../src/Auth/common/default-sign-up-fields.tsx","webpack:///./node_modules/qrcode.react/lib/index.js","webpack:///./node_modules/prop-types/index.js","webpack:///./node_modules/prop-types/factoryWithThrowingShims.js","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./node_modules/qr.js/lib/QRCode.js","webpack:///./node_modules/qr.js/lib/8BitByte.js","webpack:///./node_modules/qr.js/lib/RSBlock.js","webpack:///./node_modules/qr.js/lib/BitBuffer.js","webpack:///./node_modules/qr.js/lib/util.js","webpack:///../../src/Analytics/index.tsx","webpack:///../../src/Analytics/trackLifecycle.tsx","webpack:///../../src/Analytics/trackUpdate.tsx","webpack:///../../src/Storage/index.tsx","webpack:///../../src/Storage/S3Album.tsx","webpack:///../../src/Widget/index.tsx","webpack:///../../src/Widget/SelectMFAType.tsx","webpack:///../../src/API/index.tsx","webpack:///../../../src/API/GraphQL/index.tsx","webpack:///../../../src/API/GraphQL/Connect.tsx","webpack:///external \"@aws-amplify/api\"","webpack:///../../src/Interactions/index.tsx","webpack:///../../src/Interactions/ChatBot.tsx","webpack:///external \"@aws-amplify/interactions\"","webpack:///../../src/Interactions/aws-lex-audio.tsx","webpack:///../../src/XR/index.tsx","webpack:///../../src/XR/SumerianScene.tsx","webpack:///external \"@aws-amplify/xr\"","webpack:///../../src/XR/IconButton.tsx","webpack:///../../src/XR/Tooltip.tsx","webpack:///../../src/XR/Loading.tsx"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE__0__","__WEBPACK_EXTERNAL_MODULE__1__","__WEBPACK_EXTERNAL_MODULE__3__","__WEBPACK_EXTERNAL_MODULE__7__","__WEBPACK_EXTERNAL_MODULE__17__","__WEBPACK_EXTERNAL_MODULE__41__","__WEBPACK_EXTERNAL_MODULE__71__","__WEBPACK_EXTERNAL_MODULE__74__","__WEBPACK_EXTERNAL_MODULE__78__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","dial_code","class_1","core_1","MODE_NUMBER","MODE_ALPHA_NUM","MODE_8BIT_BYTE","MODE_KANJI","L","M","Q","H","math","QRPolynomial","num","shift","undefined","length","Error","offset","Array","index","getLength","multiply","e","j","gexp","glog","mod","ratio","QRMath","LOG_TABLE","EXP_TABLE","PhotoPicker","g","Function","window","__export","_typeof","obj","iterator","constructor","_extends","assign","target","arguments","source","apply","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","_classCallCheck","instance","Constructor","TypeError","_defineProperties","props","descriptor","configurable","writable","_createClass","protoProps","staticProps","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","setPrototypeOf","__proto__","_assertThisInitialized","React","PropTypes","QRCodeImpl","ErrorCorrectLevel","convertStr","str","out","charcode","charCodeAt","String","fromCharCode","DEFAULT_PROPS","size","level","bgColor","fgColor","PROP_TYPES","string","isRequired","number","oneOf","QRCodeCanvas","_React$Component","_ref","_temp","_this","_len","args","_key","getPrototypeOf","concat","nextProps","_this2","propTypes","some","k","update","_props","qrcode","addData","make","_canvas","canvas","ctx","getContext","cells","tileW","tileH","scale","devicePixelRatio","webkitBackingStorePixelRatio","mozBackingStorePixelRatio","msBackingStorePixelRatio","oBackingStorePixelRatio","backingStorePixelRatio","getBackingStorePixelRatio","height","width","forEach","row","rdx","cell","cdx","fillStyle","w","Math","ceil","floor","h","fillRect","round","_this3","_props2","style","otherProps","canvasStyle","createElement","ref","_ref2","Component","QRCodeSVG","_React$Component2","_this4","_props3","ops","y","start","x","push","shapeRendering","viewBox","fill","join","QRCode","renderAs","defaultProps","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","location","propFullName","secret","err","getShim","ReactPropTypes","array","bool","func","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOfType","shape","exact","checkPropTypes","BitByte","RSBlock","BitBuffer","util","Polynomial","typeNumber","errorCorrectLevel","moduleCount","dataCache","dataList","proto","data","newData","isDark","col","getModuleCount","rsBlocks","getRSBlocks","buffer","totalDataCount","dataCount","put","getLengthInBits","write","makeImpl","getBestMaskPattern","test","maskPattern","setupPositionProbePattern","setupPositionAdjustPattern","setupTimingPattern","setupTypeInfo","setupTypeNumber","createData","mapData","minLostPoint","pattern","lostPoint","getLostPoint","createMovieClip","target_mc","instance_name","depth","qr_mc","createEmptyMovieClip","beginFill","moveTo","lineTo","endFill","pos","getPatternPosition","bits","getBCHTypeNumber","getBCHTypeInfo","inc","bitIndex","byteIndex","dark","getMask","PAD0","PAD1","putBit","createBytes","maxDcCount","maxEcCount","dcdata","ecdata","dcCount","ecCount","totalCount","max","rsPoly","getErrorCorrectPolynomial","modPoly","modIndex","totalCodeCount","QR8bitByte","ECL","QRRSBlock","RS_BLOCK_TABLE","rsBlock","getRsBlockTable","list","count","QRBitBuffer","bufIndex","bit","Mode","QRMaskPattern","QRUtil","PATTERN_POSITION_TABLE","G15","G18","G15_MASK","getBCHDigit","digit","errorCorrectLength","a","type","qrCode","sameCount","darkCount","abs","WithTrackLifecycle"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,SAAUA,QAAQ,qBAAsBA,QAAQ,qBAAsBA,QAAQ,mBAAoBA,QAAQ,wBAAyBA,QAAQ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QAAS,EAAM,SAF5D,KAYD,UAAe,EAAf,Y,2PCxIA,cACA,OAEa,UAAU,YACtB,IAAI,EAAU,GAAG,EAAjB,QAMA,OAJI,EAAJ,kBACC,EAAa,cAAW,EAAxB,iBAIA,uBAAK,UAAL,EAAuB,YAAa,EAAM,MACxC,EAFH,WAUD,UAAe,EAAf,S,2PCpBA,cACA,UAEA,OAEa,UAAU,YACtB,OACC,uBAAK,UAAW,EAAhB,eAAwC,YAAa,gBAAc,SAClE,uBAAK,UAAW,EAAU,kBACzBgH,EAAA,qBACC,UAAW,EADZ,YACiC,YACrB,gBAAc,aAEzB,uBAAK,QAAL,cAA2B,MAAM,8BAChC,qBAAG,GAAH,SAAe,SAAS,WACvB,qBACK,GADL,mBAEK,UAFL,qBAGK,SAAK,WAET,wBACK,EADL,20JAEC,GAAG,UAEJ,wBACC,EADD,gUAEC,GAAG,UAEJ,wBACC,EADD,0UAEC,GAAG,cAMR,uBACC,UAAW,EADZ,iBACsC,YAC1B,gBAAc,kBAExB,EAhCH,WAkCE,aACA,uBACC,UAAW,EADZ,eACoC,YACxB,gBAAc,WAExB,aALF,aAQC,uBACC,UAAW,EADZ,WACgC,YACpB,gBAAc,YAEzB,uBACC,UAAW,EADZ,eAEC,MAAO,CAAE,MAAU,aAAgB,WAY3C,UAAe,EAAf","file":"aws-amplify-react.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"@aws-amplify/core\"), require(\"@aws-amplify/auth\"), require(\"@aws-amplify/ui\"), require(\"@aws-amplify/storage\"), require(\"@aws-amplify/analytics\"), require(\"@aws-amplify/api\"), require(\"@aws-amplify/interactions\"), require(\"@aws-amplify/xr\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"aws_amplify_react\", [\"react\", \"@aws-amplify/core\", \"@aws-amplify/auth\", \"@aws-amplify/ui\", \"@aws-amplify/storage\", \"@aws-amplify/analytics\", \"@aws-amplify/api\", \"@aws-amplify/interactions\", \"@aws-amplify/xr\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"aws_amplify_react\"] = factory(require(\"react\"), require(\"@aws-amplify/core\"), require(\"@aws-amplify/auth\"), require(\"@aws-amplify/ui\"), require(\"@aws-amplify/storage\"), require(\"@aws-amplify/analytics\"), require(\"@aws-amplify/api\"), require(\"@aws-amplify/interactions\"), require(\"@aws-amplify/xr\"));\n\telse\n\t\troot[\"aws_amplify_react\"] = factory(root[\"react\"], root[\"@aws-amplify/core\"], root[\"@aws-amplify/auth\"], root[\"@aws-amplify/ui\"], root[\"@aws-amplify/storage\"], root[\"@aws-amplify/analytics\"], root[\"@aws-amplify/api\"], root[\"@aws-amplify/interactions\"], root[\"@aws-amplify/xr\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__17__, __WEBPACK_EXTERNAL_MODULE__41__, __WEBPACK_EXTERNAL_MODULE__71__, __WEBPACK_EXTERNAL_MODULE__74__, __WEBPACK_EXTERNAL_MODULE__78__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 48);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","module.exports = __WEBPACK_EXTERNAL_MODULE__1__;","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar AmplifyUI = __importStar(require(\"@aws-amplify/ui\"));\nvar Amplify_UI_Theme_1 = __importDefault(require(\"./Amplify-UI-Theme\"));\nexports.Container = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.container);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: AmplifyUI.container, style: style }), props.children));\n};\nexports.FormContainer = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n return exports.beforeAfter(React.createElement(\"div\", { className: AmplifyUI.formContainer, style: theme.formContainer }, props.children));\n};\nexports.FormSection = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.formSection);\n return (React.createElement(exports.FormContainer, { theme: theme }, exports.beforeAfter(React.createElement(\"div\", { className: AmplifyUI.formSection, style: style }, props.children))));\n};\nexports.SectionHeader = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.sectionHeader);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: AmplifyUI.sectionHeader, style: style }),\n React.createElement(exports.SectionHeaderContent, { theme: theme },\n props.children,\n props.hint && (React.createElement(\"div\", { className: AmplifyUI.sectionHeaderHint }, props.hint)))));\n};\nexports.SectionHeaderContent = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.sectionHeaderContent);\n return exports.beforeAfter(React.createElement(\"span\", { className: AmplifyUI.sectionHeaderContent, style: style }, props.children));\n};\nexports.SectionFooter = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.sectionFooter);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: AmplifyUI.sectionFooter, style: style }), props.children));\n};\nexports.SectionFooterPrimaryContent = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.sectionFooterPrimaryContent);\n return exports.beforeAfter(React.createElement(\"span\", { className: AmplifyUI.sectionFooterPrimaryContent, style: style }, props.children));\n};\nexports.SectionFooterSecondaryContent = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.sectionFooterSecondaryContent);\n return exports.beforeAfter(React.createElement(\"span\", { className: AmplifyUI.sectionFooterSecondaryContent, style: style }, props.children));\n};\nexports.SectionBody = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.sectionBody);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: AmplifyUI.sectionBody, style: style }), props.children));\n};\nexports.ActionRow = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.actionRow);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: \"amplify-action-row\", style: style }), props.children));\n};\nexports.Strike = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.strike);\n return exports.beforeAfter(React.createElement(\"div\", { className: AmplifyUI.strike, style: style },\n React.createElement(exports.StrikeContent, { theme: theme }, props.children)));\n};\nexports.StrikeContent = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n return exports.beforeAfter(React.createElement(\"span\", { className: AmplifyUI.strikeContent, style: theme.strikeContent }, props.children));\n};\nexports.FormRow = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.formRow);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: AmplifyUI.formRow, style: style }), props.children));\n};\nexports.RadioRow = function (props) {\n var id = props.id || '_' + props.value;\n var theme = props.theme || Amplify_UI_Theme_1.default;\n return (React.createElement(exports.FormRow, { theme: theme },\n React.createElement(exports.Radio, __assign({}, props, { id: id })),\n React.createElement(exports.Label, { htmlFor: id, theme: theme }, props.placeholder)));\n};\nexports.Radio = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.radio);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"input\", __assign({}, p, { type: \"radio\", className: AmplifyUI.radio, style: style })));\n};\nexports.InputRow = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.input);\n var p = core_1.objectLessAttributes(props, 'theme');\n return (React.createElement(exports.FormRow, { theme: theme }, exports.beforeAfter(React.createElement(\"input\", __assign({}, p, { className: AmplifyUI.input, style: style })))));\n};\nexports.Input = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.input);\n var p = core_1.objectLessAttributes(props, 'theme');\n return React.createElement(\"input\", __assign({}, p, { className: AmplifyUI.input, style: style }));\n};\nexports.SelectInput = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.selectInput);\n return (React.createElement(\"div\", { className: AmplifyUI.selectInput, style: style }, props.children));\n};\nexports.FormField = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.formField);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: AmplifyUI.formField, style: style }), props.children));\n};\nexports.Button = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.button);\n var disabled = props.disabled || false;\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"button\", __assign({}, p, { className: AmplifyUI.button, style: style, disabled: disabled }), props.children));\n};\nexports.PhotoPickerButton = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.photoPickerButton);\n var p = core_1.objectLessAttributes(props, 'theme');\n return (React.createElement(\"button\", __assign({}, p, { className: [AmplifyUI.photoPickerButton, AmplifyUI.button].join(' '), style: style }), props.children));\n};\nexports.SignInButton = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var styles = Object.assign({}, theme.signInButton, theme[props.variant]);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"button\", __assign({}, p, { className: AmplifyUI.signInButton, style: styles }), props.children));\n};\nexports.SignInButtonIcon = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.signInButtonIcon);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"span\", __assign({}, p, { className: AmplifyUI.signInButtonIcon, style: style }), props.children));\n};\nexports.SignInButtonContent = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.signInButtonContent);\n return exports.beforeAfter(React.createElement(\"span\", { className: AmplifyUI.signInButtonContent, style: style }, props.children));\n};\nexports.Link = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.a);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"a\", __assign({}, p, { className: AmplifyUI.a, style: style }), props.children));\n};\nexports.Label = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.label);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"label\", __assign({}, p, { className: AmplifyUI.label, style: style }), props.children));\n};\nexports.Hint = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.hint);\n return exports.beforeAfter(React.createElement(\"div\", { className: AmplifyUI.hint, style: style }, props.children));\n};\nexports.InputLabel = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.inputLabel);\n return exports.beforeAfter(React.createElement(\"div\", { className: AmplifyUI.inputLabel, style: style }, props.children));\n};\nexports.NavBar = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.navBar);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: AmplifyUI.navBar, style: style }), props.children));\n};\nexports.Nav = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.nav);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: AmplifyUI.nav, style: style }), props.children));\n};\nexports.NavRight = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.navRight);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: AmplifyUI.navRight, style: style }), props.children));\n};\nexports.NavItem = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.navItem);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: AmplifyUI.navItem, style: style }), props.children));\n};\nexports.NavButton = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.navButton);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"button\", __assign({}, p, { className: AmplifyUI.button, style: style }), exports.beforeAfter(React.createElement(\"span\", null, props.children))));\n};\nexports.Toast = function (props) {\n var onClose = props.onClose;\n var theme = props.theme || Amplify_UI_Theme_1.default;\n return (React.createElement(\"div\", __assign({}, props, { theme: theme, className: AmplifyUI.toast, style: theme.toast }),\n React.createElement(\"span\", null, props.children),\n React.createElement(\"a\", { className: AmplifyUI.toastClose, onClick: onClose })));\n};\n// @ts-ignore\nexports.Toast.defaultProps = {\n onClose: function () { return void 0; },\n};\nexports.PhotoPlaceholder = function (props) {\n var theme = props.theme || Amplify_UI_Theme_1.default;\n var style = exports.propStyle(props, theme.photoPlaceholder);\n return (React.createElement(\"div\", { className: AmplifyUI.photoPlaceholder, style: style },\n React.createElement(\"div\", { className: AmplifyUI.photoPlaceholderIcon },\n React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"64\", height: \"64\", viewBox: \"0 0 24 24\" },\n React.createElement(\"circle\", { cx: \"12\", cy: \"12\", r: \"3.2\" }),\n React.createElement(\"path\", { d: \"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z\" }),\n React.createElement(\"path\", { d: \"M0 0h24v24H0z\", fill: \"none\" })))));\n};\nexports.beforeAfter = function (el) {\n var style = el.props.style || {};\n var before = style.before, after = style.after;\n if (!before && !after) {\n return el;\n }\n return (React.createElement(\"span\", { style: { position: 'relative' } },\n before ? React.createElement(\"span\", { style: before }, before.content) : null,\n el,\n after ? React.createElement(\"span\", { style: after }, after.content) : null));\n};\nexports.propStyle = function (props, themeStyle) {\n var id = props.id, style = props.style;\n var styl = Object.assign({}, style, themeStyle);\n if (!id) {\n return styl;\n }\n var selector = '#' + id;\n Object.assign(styl, styl[selector]);\n return styl;\n};\n//# sourceMappingURL=Amplify-UI-Components-React.js.map","module.exports = __WEBPACK_EXTERNAL_MODULE__3__;","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Auth\nvar signIn = {\n section: 'sign-in-section',\n headerSection: 'sign-in-header-section',\n bodySection: 'sign-in-body-section',\n footerSection: 'sign-in-footer-section',\n usernameInput: 'username-input',\n passwordInput: 'sign-in-password-input',\n forgotPasswordLink: 'sign-in-forgot-password-link',\n signInButton: 'sign-in-sign-in-button',\n createAccountLink: 'sign-in-create-account-link',\n signInError: 'authenticator-error',\n};\nvar signOut = {\n button: 'sign-out-button',\n section: 'sign-out-section',\n};\nvar signUp = {\n section: 'sign-up-section',\n headerSection: 'sign-up-header-section',\n bodySection: 'sign-up-body-section',\n nonPhoneNumberInput: 'sign-up-non-phone-number-input',\n phoneNumberInput: 'sign-up-phone-number-input',\n dialCodeSelect: 'sign-up-dial-code-select',\n footerSection: 'sign-up-footer-section',\n createAccountButton: 'sign-up-create-account-button',\n signInLink: 'sign-up-sign-in-link',\n signUpButton: 'sign-up-sign-up-button',\n signInButton: 'sign-up-sign-in-button',\n confirmButton: 'sign-up-confirm-button',\n};\nvar verifyContact = {\n section: 'verify-contact-section',\n headerSection: 'verify-contact-header-section',\n bodySection: 'verify-contact-body-section',\n submitButton: 'verify-contact-submit-button',\n verifyButton: 'verify-contact-verify-button',\n skipLink: 'verify-contact-skip-link',\n};\nvar TOTPSetup = {\n component: 'totp-setup-component',\n};\nvar requireNewPassword = {\n section: 'require-new-password-section',\n headerSection: 'require-new-password-header-section',\n footerSection: 'require-new-password-footer-section',\n bodySection: 'require-new-password-body-section',\n newPasswordInput: 'require-new-password-new-password-input',\n backToSignInLink: 'require-new-password-back-to-sign-in-link',\n submitButton: 'require-new-password-submit-button',\n};\nvar loading = {\n section: 'loading-secton',\n};\nvar greetings = {\n navBar: 'greetings-nav-bar',\n nav: 'greetings-nav',\n navRight: 'greetings-nav-right',\n};\n// TODO: Change Angular Component (Greeting) to match React Component (Greetings)\nvar greeting = {\n signOutButton: 'sign-out-button',\n signOutLink: 'greeting-sign-out-link',\n navRight: 'greetings-nav-right',\n};\nvar federatedSignIn = {\n section: 'federated-sign-in-section',\n bodySection: 'federated-sign-in-body-section',\n signInButtons: 'federated-sign-in-buttons',\n};\nvar confirmSignUp = {\n section: 'confirm-sign-up-section',\n headerSection: 'confirm-sign-up-header-section',\n bodySection: 'confirm-sign-up-body-section',\n usernameInput: 'confirm-sign-up-username-input',\n confirmationCodeInput: 'confirm-sign-up-confirmation-code-input',\n resendCodeLink: 'confirm-sign-up-resend-code-link',\n confirmButton: 'confirm-sign-up-confirm-button',\n backToSignInLink: 'confirm-sign-up-back-to-sign-in-link',\n};\nvar confirmSignIn = {\n section: 'confirm-sign-in-section',\n headerSection: 'confirm-sign-in-header-section',\n bodySection: 'confirm-sign-in-body-section',\n codeInput: 'confirm-sign-in-code-input',\n confirmButton: 'confirm-sign-in-confirm-button',\n backToSignInLink: 'confirm-sign-in-back-to-sign-in-link',\n};\nvar setMFAComp = {\n section: 'set-mfa-section',\n headerSection: 'set-mfa-header-section',\n bodySection: 'set-mfa-header-body-section',\n smsInput: 'set-mfa-sms-input',\n totpInput: 'set-mfa-totp-input',\n noMfaInput: 'set-mfa-nomfa-input',\n verificationCodeInput: 'set-mfa-verification-code-input',\n setMfaButton: 'set-mfa-set-mfa-button',\n verifyTotpTokenButton: 'set-mfa-verify-totp-token-button',\n cancelButton: 'set-mfa-cancel-button',\n};\nvar forgotPassword = {\n section: 'forgot-password-section',\n headerSection: 'forgot-password-header-section',\n bodySection: 'forgot-password-body-section',\n submitButton: 'forgot-password-submit-button',\n sendCodeButton: 'forgot-password-send-code-button',\n resendCodeLink: 'forgot-password-resend-code-link',\n backToSignInLink: 'forgot-password-back-to-sign-in-link',\n usernameInput: 'username-input',\n codeInput: 'forgot-password-code-input',\n newPasswordInput: 'forgot-password-new-password-input',\n};\nexports.sumerianScene = {\n container: 'sumerian-scene-container',\n sumerianScene: 'sumerian-scene',\n loading: 'sumerian-scene-loading',\n loadingLogo: 'sumerian-scene-loading-logo',\n loadingSceneName: 'sumerian-scene-loading-scene-name',\n loadingBar: 'sumerian-scene-loading-bar',\n errorText: 'sumerian-scene-error-text',\n bar: 'sumerian-scene-bar',\n actions: 'sumerian-scene-actions',\n};\nexports.genericAttrs = {\n usernameInput: 'username-input',\n emailInput: 'email-input',\n phoneNumberInput: 'phone-number-input',\n dialCodeSelect: 'dial-code-select',\n};\nexports.chatBot = {\n title: 'chatbot-title',\n dialog: 'chatbot-dialog',\n messageInput: 'chatbot-message-input',\n sendMessageButton: 'chatbot-send-message-button',\n};\nexports.auth = {\n signIn: signIn,\n signOut: signOut,\n signUp: signUp,\n verifyContact: verifyContact,\n TOTPSetup: TOTPSetup,\n requireNewPassword: requireNewPassword,\n loading: loading,\n genericAttrs: exports.genericAttrs,\n greetings: greetings,\n greeting: greeting,\n federatedSignIn: federatedSignIn,\n confirmSignUp: confirmSignUp,\n confirmSignIn: confirmSignIn,\n setMFAComp: setMFAComp,\n forgotPassword: forgotPassword,\n};\n//# sourceMappingURL=data-test-attributes.js.map","\"use strict\";\n/*\n * Copyright 2018 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 */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Container = {};\nexports.FormContainer = {};\nexports.FormSection = {};\nexports.FormField = {};\nexports.SectionHeader = {};\nexports.SectionBody = {};\nexports.SectionFooter = {};\nexports.SectionFooterPrimaryContent = {};\nexports.SectionFooterSecondaryContent = {};\nexports.Input = {};\nexports.Button = {};\nexports.PhotoPickerButton = {};\nexports.PhotoPlaceholder = {};\nexports.SignInButton = {};\nexports.SignInButtonIcon = {};\nexports.SignInButtonContent = {};\nexports.Strike = {};\nexports.StrikeContent = {};\nexports.ActionRow = {};\nexports.FormRow = {};\nexports.A = {};\nexports.Hint = {};\nexports.Radio = {};\nexports.Label = {};\nexports.InputLabel = {};\nexports.AmazonSignInButton = {};\nexports.FacebookSignInButton = {};\nexports.GoogleSignInButton = {};\nexports.OAuthSignInButton = {};\nexports.Toast = {};\nexports.NavBar = {};\nexports.NavRight = {};\nexports.Nav = {};\nexports.NavItem = {};\nexports.NavButton = {};\nvar AmplifyTheme = {\n container: exports.Container,\n formContainer: exports.FormContainer,\n formSection: exports.FormSection,\n formField: exports.FormField,\n sectionHeader: exports.SectionHeader,\n sectionBody: exports.SectionBody,\n sectionFooter: exports.SectionFooter,\n sectionFooterPrimaryContent: exports.SectionFooterPrimaryContent,\n sectionFooterSecondaryContent: exports.SectionFooterSecondaryContent,\n input: exports.Input,\n button: exports.Button,\n photoPickerButton: exports.PhotoPickerButton,\n photoPlaceholder: exports.PhotoPlaceholder,\n signInButton: exports.SignInButton,\n signInButtonIcon: exports.SignInButtonIcon,\n signInButtonContent: exports.SignInButtonContent,\n amazonSignInButton: exports.AmazonSignInButton,\n facebookSignInButton: exports.FacebookSignInButton,\n googleSignInButton: exports.GoogleSignInButton,\n oAuthSignInButton: exports.OAuthSignInButton,\n formRow: exports.FormRow,\n strike: exports.Strike,\n strikeContent: exports.StrikeContent,\n actionRow: exports.ActionRow,\n a: exports.A,\n hint: exports.Hint,\n radio: exports.Radio,\n label: exports.Label,\n inputLabel: exports.InputLabel,\n toast: exports.Toast,\n navBar: exports.NavBar,\n nav: exports.Nav,\n navRight: exports.NavRight,\n navItem: exports.NavItem,\n navButton: exports.NavButton,\n};\nexports.default = AmplifyTheme;\n//# sourceMappingURL=Amplify-UI-Theme.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar types_1 = require(\"./common/types\");\nvar PhoneField_1 = require(\"./PhoneField\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar AmplifyTheme_1 = __importDefault(require(\"../AmplifyTheme\"));\nvar labelMap = (_a = {},\n _a[types_1.UsernameAttributes.EMAIL] = 'Email',\n _a[types_1.UsernameAttributes.PHONE_NUMBER] = 'Phone Number',\n _a[types_1.UsernameAttributes.USERNAME] = 'Username',\n _a);\nvar AuthPiece = /** @class */ (function (_super) {\n __extends(AuthPiece, _super);\n function AuthPiece(props) {\n var _this = _super.call(this, props) || this;\n _this.inputs = {};\n _this._isHidden = true;\n _this._validAuthStates = [];\n _this.phone_number = '';\n _this.changeState = _this.changeState.bind(_this);\n _this.error = _this.error.bind(_this);\n _this.handleInputChange = _this.handleInputChange.bind(_this);\n _this.renderUsernameField = _this.renderUsernameField.bind(_this);\n _this.getUsernameFromInput = _this.getUsernameFromInput.bind(_this);\n _this.onPhoneNumberChanged = _this.onPhoneNumberChanged.bind(_this);\n return _this;\n }\n AuthPiece.prototype.componentDidMount = function () {\n if (window && window.location && window.location.search) {\n if (!this.props.authData || !this.props.authData.username) {\n var searchParams = new URLSearchParams(window.location.search);\n var username = searchParams\n ? searchParams.get('username')\n : undefined;\n this.setState({ username: username });\n }\n }\n };\n AuthPiece.prototype.getUsernameFromInput = function () {\n var _a = this.props.usernameAttributes, usernameAttributes = _a === void 0 ? 'username' : _a;\n switch (usernameAttributes) {\n case types_1.UsernameAttributes.EMAIL:\n return this.inputs.email;\n case types_1.UsernameAttributes.PHONE_NUMBER:\n return this.phone_number;\n default:\n return this.inputs.username || this.state.username;\n }\n };\n AuthPiece.prototype.onPhoneNumberChanged = function (phone_number) {\n this.phone_number = phone_number;\n };\n AuthPiece.prototype.renderUsernameField = function (theme) {\n var _a = this.props.usernameAttributes, usernameAttributes = _a === void 0 ? [] : _a;\n if (usernameAttributes === types_1.UsernameAttributes.EMAIL) {\n return (React.createElement(Amplify_UI_Components_React_1.FormField, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.InputLabel, { theme: theme },\n core_1.I18n.get('Email'),\n \" *\"),\n React.createElement(Amplify_UI_Components_React_1.Input, { autoFocus: true, placeholder: core_1.I18n.get('Enter your email'), theme: theme, key: \"email\", name: \"email\", type: \"email\", onChange: this.handleInputChange, \"data-test\": data_test_attributes_1.auth.genericAttrs.emailInput })));\n }\n else if (usernameAttributes === types_1.UsernameAttributes.PHONE_NUMBER) {\n return (React.createElement(PhoneField_1.PhoneField, { theme: theme, onChangeText: this.onPhoneNumberChanged }));\n }\n else {\n return (React.createElement(Amplify_UI_Components_React_1.FormField, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.InputLabel, { theme: theme },\n core_1.I18n.get(this.getUsernameLabel()),\n \" *\"),\n React.createElement(Amplify_UI_Components_React_1.Input, { defaultValue: this.state.username, autoFocus: true, placeholder: core_1.I18n.get('Enter your username'), theme: theme, key: \"username\", name: \"username\", onChange: this.handleInputChange, \"data-test\": data_test_attributes_1.auth.genericAttrs.usernameInput })));\n }\n };\n AuthPiece.prototype.getUsernameLabel = function () {\n var _a = this.props.usernameAttributes, usernameAttributes = _a === void 0 ? types_1.UsernameAttributes.USERNAME : _a;\n return (labelMap[usernameAttributes] || usernameAttributes);\n };\n // extract username from authData\n AuthPiece.prototype.usernameFromAuthData = function () {\n var authData = this.props.authData;\n if (!authData) {\n return '';\n }\n var username = '';\n if (typeof authData === 'object') {\n // user object\n username = authData.user ? authData.user.username : authData.username;\n }\n else {\n username = authData; // username string\n }\n return username;\n };\n AuthPiece.prototype.errorMessage = function (err) {\n if (typeof err === 'string') {\n return err;\n }\n return err.message ? err.message : JSON.stringify(err);\n };\n AuthPiece.prototype.triggerAuthEvent = function (event) {\n var state = this.props.authState;\n if (this.props.onAuthEvent) {\n this.props.onAuthEvent(state, event);\n }\n };\n AuthPiece.prototype.changeState = function (state, data) {\n if (this.props.onStateChange) {\n this.props.onStateChange(state, data);\n }\n this.triggerAuthEvent({\n type: 'stateChange',\n data: state,\n });\n };\n AuthPiece.prototype.error = function (err) {\n this.triggerAuthEvent({\n type: 'error',\n data: this.errorMessage(err),\n });\n };\n AuthPiece.prototype.handleInputChange = function (evt) {\n this.inputs = this.inputs || {};\n var _a = evt.target, name = _a.name, value = _a.value, type = _a.type, checked = _a.checked;\n var check_type = ['radio', 'checkbox'].includes(type);\n this.inputs[name] = check_type ? checked : value;\n this.inputs['checkedValue'] = check_type ? value : null;\n };\n AuthPiece.prototype.render = function () {\n if (!this._validAuthStates.includes(this.props.authState)) {\n this._isHidden = true;\n this.inputs = {};\n return null;\n }\n if (this._isHidden) {\n this.inputs = {};\n var track = this.props.track;\n if (track)\n track();\n }\n this._isHidden = false;\n return this.showComponent(this.props.theme || AmplifyTheme_1.default);\n };\n AuthPiece.prototype.showComponent = function (_theme) {\n throw 'You must implement showComponent(theme) and don\\'t forget to set this._validAuthStates.';\n };\n return AuthPiece;\n}(React.Component));\nexports.AuthPiece = AuthPiece;\n/**\n * @deprecated use named import\n */\nexports.default = AuthPiece;\n//# sourceMappingURL=AuthPiece.js.map","module.exports = __WEBPACK_EXTERNAL_MODULE__7__;","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\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 */\nexports.Container = {\n fontFamily: \"-apple-system,\\n BlinkMacSystemFont,\\n \\\"Segoe UI\\\",\\n Roboto,\\n \\\"Helvetica Neue\\\",\\n Arial,\\n sans-serif,\\n \\\"Apple Color Emoji\\\",\\n \\\"Segoe UI Emoji\\\",\\n \\\"Segoe UI Symbol\\\"\",\n fontWeight: '400',\n lineHeight: '1.5',\n color: '#212529',\n textAlign: 'left',\n paddingLeft: '15px',\n paddingRight: '15px',\n};\nexports.NavBar = {\n position: 'relative',\n border: '1px solid transparent',\n borderColor: '#e7e7e7',\n};\nexports.NavRight = {\n textAlign: 'right',\n};\nexports.Nav = {\n margin: '7.5px',\n};\nexports.NavItem = {\n display: 'inline-block',\n padding: '10px 5px',\n lineHeight: '20px',\n};\nexports.NavButton = {\n display: 'inline-block',\n padding: '6px 12px',\n marginTop: '8px',\n marginBottom: '8px',\n fontSize: '14px',\n fontWeight: 400,\n lineHeight: '1.42857143',\n textAlign: 'center',\n whiteSpace: 'nowrap',\n verticalAlign: 'middle',\n touchAction: 'manipulation',\n cursor: 'pointer',\n userSelect: 'none',\n backgroundImage: 'none',\n border: '1px solid transparent',\n borderRadius: '4px',\n color: '#333',\n backgroundColor: '#fff',\n borderColor: '#ccc',\n};\nexports.FormContainer = {\n textAlign: 'center',\n};\nexports.FormSection = {\n marginBottom: '20px',\n backgroundColor: '#fff',\n border: '1px solid #ddd',\n borderRadius: '4px',\n textAlign: 'left',\n width: '400px',\n display: 'inline-block',\n};\nexports.ErrorSection = {\n marginBottom: '20px',\n color: '#fff',\n backgroundColor: '#f0ad4e',\n border: '1px solid #eea236',\n borderRadius: '4px',\n textAlign: 'left',\n};\nexports.SectionHeader = {\n color: '#fff',\n backgroundColor: '#337ab7',\n borderColor: '#337ab7',\n padding: '10px 15px',\n borderBottom: '1px solid transparent',\n borderTopLeftRadius: '3px',\n borderTopRightRadius: '3px',\n textAlign: 'center',\n};\nexports.SectionFooter = {\n color: '#333',\n backgroundColor: '#f5f5f5',\n padding: '10px 15px',\n borderTop: '1px solid #ddd',\n borderTopLeftRadius: '3px',\n borderTopRightRadius: '3px',\n};\nexports.SectionBody = {\n padding: '15px',\n};\nexports.FormRow = {\n marginBottom: '15px',\n};\nexports.ActionRow = {\n marginBottom: '15px',\n};\nexports.Input = {\n display: 'block',\n width: '100%',\n height: '34px',\n padding: '6px 12px',\n fontSize: '14px',\n lineHeight: '1.42857143',\n color: '#555',\n backgroundColor: '#fff',\n backgroundImage: 'none',\n border: '1px solid #ccc',\n borderRadius: '4px',\n boxShadow: 'inset 0 1px 1px rgba(0,0,0,.075)',\n boxSizing: 'border-box',\n transition: 'border-color ease-in-out .15s,box-shadow ease-in-out .15s',\n};\nexports.Button = {\n display: 'inline-block',\n padding: '6px 12px',\n marginBottom: '0',\n fontSize: '14px',\n fontWeight: 400,\n lineHeight: '1.42857143',\n textAlign: 'center',\n whiteSpace: 'nowrap',\n verticalAlign: 'middle',\n touchAction: 'manipulation',\n cursor: 'pointer',\n userSelect: 'none',\n backgroundImage: 'none',\n border: '1px solid transparent',\n borderRadius: '4px',\n color: '#333',\n backgroundColor: '#fff',\n borderColor: '#ccc',\n};\nexports.SignInButton = {\n position: 'relative',\n padding: '6px 12px 6px 44px',\n fontSize: '14px',\n textAlign: 'left',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n display: 'block',\n width: '100%',\n marginTop: '2px',\n '#google_signin_btn': {\n color: '#fff',\n backgroundColor: '#dd4b39',\n borderColor: 'rgba(0,0,0,0.2)',\n },\n '#facebook_signin_btn': {\n color: '#fff',\n backgroundColor: '#3b5998',\n borderColor: 'rgba(0,0,0,0.2)',\n },\n};\nexports.Space = {\n display: 'inline-block',\n width: '20px',\n};\nexports.A = {\n color: '#007bff',\n cursor: 'pointer',\n};\nexports.Pre = {\n overflow: 'auto',\n fontFamily: \"Menlo,\\n Monaco,\\n Consolas,\\n \\\"Courier New\\\",\\n monospace\",\n display: 'block',\n padding: '9.5px',\n margin: '0 0 10px',\n fontSize: '13px',\n lineHeight: '1.42857143',\n color: '#333',\n wordBreak: 'break-all',\n wordWrap: 'break-word',\n backgroundColor: '#f5f5f5',\n border: '1px solid #ccc',\n borderRadius: '4px',\n};\nexports.Col1 = {\n display: 'inline-block',\n width: '8.33333333%',\n};\nexports.Col2 = {\n display: 'inline-block',\n width: '16.66666667%',\n};\nexports.Col3 = {\n display: 'inline-block',\n width: '25%',\n};\nexports.Col4 = {\n display: 'inline-block',\n width: '33.33333333%',\n};\nexports.Col5 = {\n display: 'inline-block',\n width: '41.66666667%',\n};\nexports.Col6 = {\n display: 'inline-block',\n width: '50%',\n};\nexports.Col7 = {\n display: 'inline-block',\n width: '58.33333333%',\n};\nexports.Col8 = {\n display: 'inline-block',\n width: '66.66666667%',\n};\nexports.Col9 = {\n display: 'inline-block',\n width: '75%',\n};\nexports.Col10 = {\n display: 'inline-block',\n width: '83.33333333%',\n};\nexports.Col11 = {\n display: 'inline-block',\n width: '91.66666667%',\n};\nexports.Col12 = {\n display: 'inline-block',\n width: '100%',\n};\nexports.Hidden = {\n display: 'none',\n};\nexports.Bootstrap = {\n container: exports.Container,\n navBar: exports.NavBar,\n nav: exports.Nav,\n navRight: exports.NavRight,\n navItem: exports.NavItem,\n navButton: exports.NavButton,\n formContainer: exports.FormContainer,\n formSection: exports.FormSection,\n errorSection: exports.ErrorSection,\n sectionHeader: exports.SectionHeader,\n sectionBody: exports.SectionBody,\n sectionFooter: exports.SectionFooter,\n formRow: exports.FormRow,\n actionRow: exports.ActionRow,\n space: exports.Space,\n signInButton: exports.SignInButton,\n input: exports.Input,\n button: exports.Button,\n a: exports.A,\n pre: exports.Pre,\n col1: exports.Col1,\n col2: exports.Col2,\n col3: exports.Col3,\n col4: exports.Col4,\n col5: exports.Col5,\n col6: exports.Col6,\n col7: exports.Col7,\n col8: exports.Col8,\n col9: exports.Col9,\n col10: exports.Col10,\n col11: exports.Col11,\n col12: exports.Col12,\n hidden: exports.Hidden,\n};\n/**\n * @deprecated use named import\n */\nexports.default = exports.Bootstrap;\n//# sourceMappingURL=AmplifyTheme.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Constants = {\n AUTH_SOURCE_KEY: 'amplify-react-auth-source',\n AUTH0: 'auth0',\n GOOGLE: 'google',\n FACEBOOK: 'facebook',\n AMAZON: 'amazon',\n REDIRECTED_FROM_HOSTED_UI: 'amplify-redirected-from-hosted-ui',\n};\n//# sourceMappingURL=constants.js.map","\"use strict\";\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 */\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar AmplifyTheme_1 = __importDefault(require(\"./AmplifyTheme\"));\nexports.Container = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.container);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: \"amplify-container\", style: style }), props.children));\n};\nexports.FormContainer = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.formContainer);\n return exports.beforeAfter(React.createElement(\"div\", { className: \"amplify-form-container\", style: style }, props.children));\n};\nexports.FormSection = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.formSection);\n return (React.createElement(exports.FormContainer, { theme: theme }, exports.beforeAfter(React.createElement(\"div\", { className: \"amplify-form-section\", style: style }, props.children))));\n};\nexports.ErrorSection = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.errorSection);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: \"amplify-error-section\", style: style }),\n React.createElement(exports.ErrorSectionContent, null, props.children)));\n};\nexports.ErrorSectionContent = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.errorSectionContent);\n return exports.beforeAfter(React.createElement(\"span\", { className: \"amplify-error-section-content\", style: style }, props.children));\n};\nexports.SectionHeader = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.sectionHeader);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: \"amplify-section-header\", style: style }),\n React.createElement(exports.SectionHeaderContent, { theme: theme }, props.children)));\n};\nexports.SectionHeaderContent = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.sectionHeaderContent);\n return exports.beforeAfter(React.createElement(\"span\", { className: \"amplify-section-header-content\", style: style }, props.children));\n};\nexports.SectionFooter = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.sectionFooter);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: \"amplify-section-footer\", style: style }),\n React.createElement(exports.SectionFooterContent, { theme: theme }, props.children)));\n};\nexports.SectionFooterContent = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.sectionFooterContent);\n return exports.beforeAfter(React.createElement(\"span\", { className: \"amplify-section-footer-content\", style: style }, props.children));\n};\nexports.SectionBody = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.sectionBody);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: \"amplify-section-body\", style: style }), props.children));\n};\nexports.ActionRow = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.actionRow);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: \"amplify-action-row\", style: style }), props.children));\n};\nexports.FormRow = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.formRow);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: \"amplify-form-row\", style: style }), props.children));\n};\nexports.InputRow = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.input);\n var p = core_1.objectLessAttributes(props, 'theme');\n return (React.createElement(exports.FormRow, { theme: theme }, exports.beforeAfter(React.createElement(\"input\", __assign({}, p, { className: \"amplify-input\", style: style })))));\n};\nexports.RadioRow = function (props) {\n var id = props.id || '_' + props.value;\n var theme = props.theme || AmplifyTheme_1.default;\n return (React.createElement(exports.FormRow, { theme: theme },\n React.createElement(exports.Radio, __assign({}, props, { id: id })),\n React.createElement(exports.Label, { htmlFor: id, theme: theme }, props.placeholder)));\n};\nexports.Radio = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.radio);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"input\", __assign({}, p, { type: \"radio\", className: \"amplify-radio\", style: style })));\n};\nexports.CheckboxRow = function (props) {\n var id = props.id || '_' + props.name;\n var theme = props.theme || AmplifyTheme_1.default;\n return (React.createElement(exports.FormRow, { theme: theme },\n React.createElement(exports.Checkbox, __assign({}, props, { id: id })),\n React.createElement(exports.Label, { htmlFor: id, theme: theme }, props.placeholder)));\n};\nexports.Checkbox = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.checkbox);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"input\", __assign({}, p, { type: \"checkbox\", className: \"amplify-checkbox\", style: style })));\n};\nexports.MessageRow = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n return (React.createElement(exports.FormRow, { theme: theme },\n React.createElement(exports.MessageContent, { theme: theme }, props.children)));\n};\nexports.MessageContent = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n return exports.beforeAfter(React.createElement(\"span\", { className: \"amplify-message-content\", style: theme.messageContent }, props.children));\n};\nexports.ButtonRow = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n return exports.beforeAfter(React.createElement(\"div\", { className: \"amplify-action-row\", style: theme.actionRow },\n React.createElement(exports.Button, __assign({}, props))));\n};\nexports.Button = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.button);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"button\", __assign({}, p, { className: \"amplify-button\", style: style }),\n React.createElement(exports.ButtonContent, { theme: theme }, props.children)));\n};\nexports.ButtonContent = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n return exports.beforeAfter(React.createElement(\"span\", { className: \"amplify-button-content\", style: theme.buttonContent }, props.children));\n};\nexports.SignInButton = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.signInButton);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"button\", __assign({}, p, { className: \"amplify-signin-button\", style: style }), props.children));\n};\nexports.Link = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.a);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"a\", __assign({}, p, { className: \"amplify-a\", style: style }), props.children));\n};\nexports.Label = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.label);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"label\", __assign({}, p, { className: \"amplify-label\", style: style }), props.children));\n};\nexports.Space = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.space);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"span\", __assign({}, p, { className: \"amplify-space\", style: style }), props.children));\n};\nexports.NavBar = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.navBar);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: \"amplify-nav-bar\", style: style }), props.children));\n};\nexports.Nav = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.nav);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: \"amplify-nav\", style: style }), props.children));\n};\nexports.NavRight = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.navRight);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: \"amplify-nav-right\", style: style }), props.children));\n};\nexports.NavItem = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.navItem);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"div\", __assign({}, p, { className: \"amplify-nav-item\", style: style }), props.children));\n};\nexports.NavButton = function (props) {\n var theme = props.theme || AmplifyTheme_1.default;\n var style = exports.propStyle(props, theme.navButton);\n var p = core_1.objectLessAttributes(props, 'theme');\n return exports.beforeAfter(React.createElement(\"button\", __assign({}, p, { className: \"amplify-nav-button\", style: style }), exports.beforeAfter(React.createElement(\"span\", { style: theme.navButtonContent }, props.children))));\n};\nexports.beforeAfter = function (el) {\n var style = el.props.style || {};\n var before = style.before, after = style.after;\n if (!before && !after) {\n return el;\n }\n return (React.createElement(\"span\", { style: { position: 'relative' } },\n before ? React.createElement(\"span\", { style: before }, before.content) : null,\n el,\n after ? React.createElement(\"span\", { style: after }, after.content) : null));\n};\nexports.propStyle = function (props, themeStyle) {\n var id = props.id, style = props.style;\n var styl = Object.assign({}, style, themeStyle);\n if (!id) {\n return styl;\n }\n var selector = '#' + id;\n Object.assign(styl, styl[selector]);\n return styl;\n};\nexports.transparent1X1 = 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==';\nexports.white1X1 = 'data:image/gif;base64,R0lGODlhAQABAIAAAP7//wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==';\n//# sourceMappingURL=AmplifyUI.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar UsernameAttributes;\n(function (UsernameAttributes) {\n UsernameAttributes[\"EMAIL\"] = \"email\";\n UsernameAttributes[\"PHONE_NUMBER\"] = \"phone_number\";\n UsernameAttributes[\"USERNAME\"] = \"username\";\n})(UsernameAttributes = exports.UsernameAttributes || (exports.UsernameAttributes = {}));\n//# sourceMappingURL=types.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../Amplify-UI/Amplify-UI-Theme\"));\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar PickerInput = {\n width: '100%',\n height: '100%',\n display: 'inline-block',\n position: 'absolute',\n left: 0,\n top: 0,\n opacity: 0,\n cursor: 'pointer',\n};\nvar logger = new core_1.ConsoleLogger('Picker');\nvar Picker = /** @class */ (function (_super) {\n __extends(Picker, _super);\n function Picker() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Picker.prototype.handleInput = function (e) {\n var that = this;\n var file = e.target.files[0];\n if (!file) {\n return;\n }\n var name = file.name, size = file.size, type = file.type;\n logger.debug(file);\n var onPick = this.props.onPick;\n if (onPick) {\n onPick({\n file: file,\n name: name,\n size: size,\n type: type,\n });\n }\n };\n Picker.prototype.render = function () {\n var _this = this;\n var title = this.props.title || 'Pick a File';\n var accept = this.props.accept || '*/*';\n var theme = this.props.theme || Amplify_UI_Theme_1.default;\n var pickerStyle = Object.assign({}, { position: 'relative' }, theme.pickerPicker);\n var inputStyle = Object.assign({}, PickerInput, theme.pickerInput);\n return (React.createElement(\"div\", { style: pickerStyle },\n React.createElement(Amplify_UI_Components_React_1.PhotoPickerButton, { theme: theme }, core_1.I18n.get(title)),\n React.createElement(\"input\", { title: core_1.I18n.get(title), type: \"file\", accept: accept, style: inputStyle, onChange: function (e) { return _this.handleInput(e); } })));\n };\n return Picker;\n}(React.Component));\nexports.Picker = Picker;\n/**\n * @deprecated use named import\n */\nexports.default = Picker;\n//# sourceMappingURL=Picker.js.map","\"use strict\";\n/*\n * Copyright 2017-2018 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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar withGoogle_1 = require(\"./withGoogle\");\nvar withFacebook_1 = require(\"./withFacebook\");\nvar withAmazon_1 = require(\"./withAmazon\");\nvar withOAuth_1 = require(\"./withOAuth\");\nvar withAuth0_1 = require(\"./withAuth0\");\nvar withGoogle_2 = require(\"./withGoogle\");\nexports.withGoogle = withGoogle_2.withGoogle;\nexports.GoogleButton = withGoogle_2.GoogleButton;\nvar withFacebook_2 = require(\"./withFacebook\");\nexports.withFacebook = withFacebook_2.withFacebook;\nexports.FacebookButton = withFacebook_2.FacebookButton;\nvar withAmazon_2 = require(\"./withAmazon\");\nexports.withAmazon = withAmazon_2.withAmazon;\nexports.AmazonButton = withAmazon_2.AmazonButton;\nvar withOAuth_2 = require(\"./withOAuth\");\nexports.withOAuth = withOAuth_2.withOAuth;\nexports.OAuthButton = withOAuth_2.OAuthButton;\nvar withAuth0_2 = require(\"./withAuth0\");\nexports.withAuth0 = withAuth0_2.withAuth0;\nexports.Auth0Button = withAuth0_2.Auth0Button;\nfunction withFederated(Comp) {\n var Federated = withAuth0_1.withAuth0(withOAuth_1.withOAuth(withAmazon_1.withAmazon(withGoogle_1.withGoogle(withFacebook_1.withFacebook(Comp)))));\n return /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n class_1.prototype.render = function () {\n // @ts-ignore\n var federated = this.props.federated || {};\n return React.createElement(Federated, __assign({}, this.props, federated));\n };\n return class_1;\n }(React.Component));\n}\nexports.withFederated = withFederated;\n//# sourceMappingURL=index.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __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};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar AuthPiece_1 = require(\"./AuthPiece\");\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar country_dial_codes_1 = require(\"./common/country-dial-codes\");\nvar default_sign_up_fields_1 = require(\"./common/default-sign-up-fields\");\nvar types_1 = require(\"./common/types\");\nvar PhoneField_1 = require(\"./PhoneField\");\nvar logger = new core_1.ConsoleLogger('SignUp');\nvar SignUp = /** @class */ (function (_super) {\n __extends(SignUp, _super);\n function SignUp(props) {\n var _this = _super.call(this, props) || this;\n _this.state = { requestPending: false };\n _this._validAuthStates = ['signUp'];\n _this.signUp = _this.signUp.bind(_this);\n _this.sortFields = _this.sortFields.bind(_this);\n _this.getDefaultDialCode = _this.getDefaultDialCode.bind(_this);\n _this.checkCustomSignUpFields = _this.checkCustomSignUpFields.bind(_this);\n _this.needPrefix = _this.needPrefix.bind(_this);\n _this.header =\n _this.props && _this.props.signUpConfig && _this.props.signUpConfig.header\n ? _this.props.signUpConfig.header\n : 'Create a new account';\n var _a = (_this.props || {}).usernameAttributes, usernameAttributes = _a === void 0 ? types_1.UsernameAttributes.USERNAME : _a;\n if (usernameAttributes === types_1.UsernameAttributes.EMAIL) {\n _this.defaultSignUpFields = default_sign_up_fields_1.signUpWithEmailFields;\n }\n else if (usernameAttributes === types_1.UsernameAttributes.PHONE_NUMBER) {\n _this.defaultSignUpFields = default_sign_up_fields_1.signUpWithPhoneNumberFields;\n }\n else {\n _this.defaultSignUpFields = default_sign_up_fields_1.signUpWithUsernameFields;\n }\n return _this;\n }\n SignUp.prototype.validate = function () {\n var _this = this;\n var invalids = [];\n this.signUpFields.map(function (el) {\n if (el.key !== 'phone_number') {\n if (el.required && !_this.inputs[el.key]) {\n el.invalid = true;\n invalids.push(el.label);\n }\n else {\n el.invalid = false;\n }\n }\n else {\n if (el.required && !_this.phone_number) {\n el.invalid = true;\n invalids.push(el.label);\n }\n else {\n el.invalid = false;\n }\n }\n });\n return invalids;\n };\n SignUp.prototype.sortFields = function () {\n var _this = this;\n if (this.props.signUpConfig &&\n this.props.signUpConfig.hiddenDefaults &&\n this.props.signUpConfig.hiddenDefaults.length > 0) {\n this.defaultSignUpFields = this.defaultSignUpFields.filter(function (d) {\n return !_this.props.signUpConfig.hiddenDefaults.includes(d.key);\n });\n }\n if (this.checkCustomSignUpFields()) {\n if (!this.props.signUpConfig ||\n !this.props.signUpConfig.hideAllDefaults) {\n // see if fields passed to component should override defaults\n this.defaultSignUpFields.forEach(function (f) {\n var matchKey = _this.signUpFields.findIndex(function (d) {\n return d.key === f.key;\n });\n if (matchKey === -1) {\n _this.signUpFields.push(f);\n }\n });\n }\n /*\n sort fields based on following rules:\n 1. Fields with displayOrder are sorted before those without displayOrder\n 2. Fields with conflicting displayOrder are sorted alphabetically by key\n 3. Fields without displayOrder are sorted alphabetically by key\n */\n this.signUpFields.sort(function (a, b) {\n if (a.displayOrder && b.displayOrder) {\n if (a.displayOrder < b.displayOrder) {\n return -1;\n }\n else if (a.displayOrder > b.displayOrder) {\n return 1;\n }\n else {\n if (a.key < b.key) {\n return -1;\n }\n else {\n return 1;\n }\n }\n }\n else if (!a.displayOrder && b.displayOrder) {\n return 1;\n }\n else if (a.displayOrder && !b.displayOrder) {\n return -1;\n }\n else if (!a.displayOrder && !b.displayOrder) {\n if (a.key < b.key) {\n return -1;\n }\n else {\n return 1;\n }\n }\n });\n }\n else {\n this.signUpFields = this.defaultSignUpFields;\n }\n };\n SignUp.prototype.needPrefix = function (key) {\n var field = this.signUpFields.find(function (e) { return e.key === key; });\n if (key.indexOf('custom:') !== 0) {\n return field.custom;\n }\n else if (key.indexOf('custom:') === 0 && field.custom === false) {\n logger.warn('Custom prefix prepended to key but custom field flag is set to false; retaining manually entered prefix');\n }\n return null;\n };\n SignUp.prototype.getDefaultDialCode = function () {\n return this.props.signUpConfig &&\n this.props.signUpConfig.defaultCountryCode &&\n country_dial_codes_1.countryDialCodes.indexOf(\"+\" + this.props.signUpConfig.defaultCountryCode) !== -1\n ? \"+\" + this.props.signUpConfig.defaultCountryCode\n : '+1';\n };\n SignUp.prototype.checkCustomSignUpFields = function () {\n return (this.props.signUpConfig &&\n this.props.signUpConfig.signUpFields &&\n this.props.signUpConfig.signUpFields.length > 0);\n };\n SignUp.prototype.signUp = function () {\n return __awaiter(this, void 0, void 0, function () {\n var validation, signup_info, inputKeys, inputVals, labelCheck, data, err_1;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n this.setState({ requestPending: true });\n if (!this.inputs.dial_code) {\n this.inputs.dial_code = this.getDefaultDialCode();\n }\n validation = this.validate();\n if (validation && validation.length > 0) {\n this.setState({ requestPending: false });\n return [2 /*return*/, this.error(\"The following fields need to be filled out: \" + validation.join(', '))];\n }\n if (!auth_1.Auth || typeof auth_1.Auth.signUp !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n signup_info = {\n username: this.inputs.username,\n password: this.inputs.password,\n attributes: {},\n };\n inputKeys = Object.keys(this.inputs);\n inputVals = Object.values(this.inputs);\n inputKeys.forEach(function (key, index) {\n if (!['username', 'password', 'checkedValue', 'dial_code'].includes(key)) {\n if (key !== 'phone_line_number' &&\n key !== 'dial_code' &&\n key !== 'error') {\n var newKey = \"\" + (_this.needPrefix(key) ? 'custom:' : '') + key;\n signup_info.attributes[newKey] = inputVals[index];\n }\n }\n });\n if (this.phone_number)\n signup_info.attributes['phone_number'] = this.phone_number;\n labelCheck = false;\n this.signUpFields.forEach(function (field) {\n if (field.label === _this.getUsernameLabel()) {\n logger.debug(\"Changing the username to the value of \" + field.label);\n signup_info.username =\n signup_info.attributes[field.key] || signup_info.username;\n labelCheck = true;\n }\n });\n if (!labelCheck && !signup_info.username) {\n // if the customer customized the username field in the sign up form\n // He needs to either set the key of that field to 'username'\n // Or make the label of the field the same as the 'usernameAttributes'\n throw new Error(\"Couldn't find the label: \" + this.getUsernameLabel() + \", in sign up fields according to usernameAttributes!\");\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, 4, 5]);\n return [4 /*yield*/, auth_1.Auth.signUp(signup_info)];\n case 2:\n data = _a.sent();\n // @ts-ignore\n this.changeState('confirmSignUp', data.user.username);\n return [3 /*break*/, 5];\n case 3:\n err_1 = _a.sent();\n this.error(err_1);\n return [3 /*break*/, 5];\n case 4:\n this.setState({ requestPending: false });\n return [7 /*endfinally*/];\n case 5: return [2 /*return*/];\n }\n });\n });\n };\n SignUp.prototype.showComponent = function (theme) {\n var _this = this;\n var hide = this.props.hide;\n if (hide && hide.includes(SignUp)) {\n return null;\n }\n if (this.checkCustomSignUpFields()) {\n this.signUpFields = this.props.signUpConfig.signUpFields;\n }\n this.sortFields();\n return (React.createElement(Amplify_UI_Components_React_1.FormSection, { theme: theme, \"data-test\": data_test_attributes_1.auth.signUp.section },\n React.createElement(Amplify_UI_Components_React_1.SectionHeader, { theme: theme, \"data-test\": data_test_attributes_1.auth.signUp.headerSection }, core_1.I18n.get(this.header)),\n React.createElement(Amplify_UI_Components_React_1.SectionBody, { theme: theme, \"data-test\": data_test_attributes_1.auth.signUp.bodySection }, this.signUpFields.map(function (field) {\n return field.key !== 'phone_number' ? (React.createElement(Amplify_UI_Components_React_1.FormField, { theme: theme, key: field.key },\n field.required ? (React.createElement(Amplify_UI_Components_React_1.InputLabel, { theme: theme },\n core_1.I18n.get(field.label),\n \" *\")) : (React.createElement(Amplify_UI_Components_React_1.InputLabel, { theme: theme }, core_1.I18n.get(field.label))),\n React.createElement(Amplify_UI_Components_React_1.Input, { autoFocus: _this.signUpFields.findIndex(function (f) { return f.key === field.key; }) === 0, placeholder: core_1.I18n.get(field.placeholder), theme: theme, type: field.type, name: field.key, key: field.key, onChange: _this.handleInputChange, \"data-test\": data_test_attributes_1.auth.signUp.nonPhoneNumberInput }))) : (React.createElement(PhoneField_1.PhoneField, { theme: theme, required: field.required, defaultDialCode: _this.getDefaultDialCode(), label: field.label, placeholder: field.placeholder, onChangeText: _this.onPhoneNumberChanged, key: \"phone_number\" }));\n })),\n React.createElement(Amplify_UI_Components_React_1.SectionFooter, { theme: theme, \"data-test\": data_test_attributes_1.auth.signUp.footerSection },\n React.createElement(Amplify_UI_Components_React_1.SectionFooterPrimaryContent, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.Button, { disabled: this.state.requestPending, onClick: this.signUp, theme: theme, \"data-test\": data_test_attributes_1.auth.signUp.createAccountButton }, core_1.I18n.get('Create Account'))),\n React.createElement(Amplify_UI_Components_React_1.SectionFooterSecondaryContent, { theme: theme },\n core_1.I18n.get('Have an account? '),\n React.createElement(Amplify_UI_Components_React_1.Link, { theme: theme, onClick: function () { return _this.changeState('signIn'); }, \"data-test\": data_test_attributes_1.auth.signUp.signInLink }, core_1.I18n.get('Sign in'))))));\n };\n return SignUp;\n}(AuthPiece_1.AuthPiece));\nexports.SignUp = SignUp;\n/**\n * @deprecated use named import\n */\nexports.default = SignUp;\n//# sourceMappingURL=SignUp.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar AuthPiece_1 = require(\"./AuthPiece\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../Amplify-UI/Amplify-UI-Theme\"));\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar logger = new core_1.ConsoleLogger('ForgotPassword');\nvar ForgotPassword = /** @class */ (function (_super) {\n __extends(ForgotPassword, _super);\n function ForgotPassword(props) {\n var _this = _super.call(this, props) || this;\n _this.send = _this.send.bind(_this);\n _this.submit = _this.submit.bind(_this);\n _this._validAuthStates = ['forgotPassword'];\n _this.state = { delivery: null };\n return _this;\n }\n ForgotPassword.prototype.send = function () {\n var _this = this;\n var _a = this.props.authData, authData = _a === void 0 ? {} : _a;\n var username = this.getUsernameFromInput() || authData.username;\n if (!auth_1.Auth || typeof auth_1.Auth.forgotPassword !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.forgotPassword(username)\n .then(function (data) {\n logger.debug(data);\n _this.setState({ delivery: data.CodeDeliveryDetails });\n })\n .catch(function (err) { return _this.error(err); });\n };\n ForgotPassword.prototype.submit = function () {\n var _this = this;\n var _a = this.props.authData, authData = _a === void 0 ? {} : _a;\n var _b = this.inputs, code = _b.code, password = _b.password;\n var username = this.getUsernameFromInput() || authData.username;\n if (!auth_1.Auth || typeof auth_1.Auth.forgotPasswordSubmit !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.forgotPasswordSubmit(username, code, password)\n .then(function (data) {\n logger.debug(data);\n _this.changeState('signIn');\n _this.setState({ delivery: null });\n })\n .catch(function (err) { return _this.error(err); });\n };\n ForgotPassword.prototype.sendView = function () {\n var theme = this.props.theme || Amplify_UI_Theme_1.default;\n return React.createElement(\"div\", null, this.renderUsernameField(theme));\n };\n ForgotPassword.prototype.submitView = function () {\n var theme = this.props.theme || Amplify_UI_Theme_1.default;\n return (React.createElement(\"div\", null,\n React.createElement(Amplify_UI_Components_React_1.FormField, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.InputLabel, { theme: theme },\n core_1.I18n.get('Code'),\n \" *\"),\n React.createElement(Amplify_UI_Components_React_1.Input, { placeholder: core_1.I18n.get('Code'), theme: theme, key: \"code\", name: \"code\", autoComplete: \"off\", onChange: this.handleInputChange })),\n React.createElement(Amplify_UI_Components_React_1.FormField, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.InputLabel, { theme: theme },\n core_1.I18n.get('New Password'),\n \" *\"),\n React.createElement(Amplify_UI_Components_React_1.Input, { placeholder: core_1.I18n.get('New Password'), theme: theme, type: \"password\", key: \"password\", name: \"password\", autoComplete: \"off\", onChange: this.handleInputChange }))));\n };\n ForgotPassword.prototype.showComponent = function (theme) {\n var _this = this;\n var _a = this.props, authState = _a.authState, hide = _a.hide, _b = _a.authData, authData = _b === void 0 ? {} : _b;\n if (hide && hide.includes(ForgotPassword)) {\n return null;\n }\n return (React.createElement(Amplify_UI_Components_React_1.FormSection, { theme: theme, \"data-test\": data_test_attributes_1.auth.forgotPassword.section },\n React.createElement(Amplify_UI_Components_React_1.SectionHeader, { theme: theme, \"data-test\": data_test_attributes_1.auth.forgotPassword.headerSection }, core_1.I18n.get('Reset your password')),\n React.createElement(Amplify_UI_Components_React_1.SectionBody, { theme: theme, \"data-test\": data_test_attributes_1.auth.forgotPassword.bodySection }, this.state.delivery || authData.username\n ? this.submitView()\n : this.sendView()),\n React.createElement(Amplify_UI_Components_React_1.SectionFooter, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.SectionFooterPrimaryContent, { theme: theme }, this.state.delivery || authData.username ? (React.createElement(Amplify_UI_Components_React_1.Button, { theme: theme, onClick: this.submit, \"data-test\": data_test_attributes_1.auth.forgotPassword.submitButton }, core_1.I18n.get('Submit'))) : (React.createElement(Amplify_UI_Components_React_1.Button, { theme: theme, onClick: this.send, \"data-test\": data_test_attributes_1.auth.forgotPassword.sendCodeButton }, core_1.I18n.get('Send Code')))),\n React.createElement(Amplify_UI_Components_React_1.SectionFooterSecondaryContent, { theme: theme }, this.state.delivery || authData.username ? (React.createElement(Amplify_UI_Components_React_1.Link, { theme: theme, onClick: this.send, \"data-test\": data_test_attributes_1.auth.forgotPassword.resendCodeLink }, core_1.I18n.get('Resend Code'))) : (React.createElement(Amplify_UI_Components_React_1.Link, { theme: theme, onClick: function () { return _this.changeState('signIn'); }, \"data-test\": data_test_attributes_1.auth.forgotPassword.backToSignInLink }, core_1.I18n.get('Back to Sign In')))))));\n };\n return ForgotPassword;\n}(AuthPiece_1.AuthPiece));\nexports.ForgotPassword = ForgotPassword;\n/**\n * @deprecated use named import\n */\nexports.default = ForgotPassword;\n//# sourceMappingURL=ForgotPassword.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../Amplify-UI/Amplify-UI-Theme\"));\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar ui_1 = require(\"@aws-amplify/ui\");\nvar qrcode_react_1 = __importDefault(require(\"qrcode.react\"));\nvar logger = new core_1.ConsoleLogger('TOTPSetupComp');\nvar TOTPSetupComp = /** @class */ (function (_super) {\n __extends(TOTPSetupComp, _super);\n function TOTPSetupComp(props) {\n var _this = _super.call(this, props) || this;\n _this.setup = _this.setup.bind(_this);\n _this.showSecretCode = _this.showSecretCode.bind(_this);\n _this.verifyTotpToken = _this.verifyTotpToken.bind(_this);\n _this.handleInputChange = _this.handleInputChange.bind(_this);\n _this.triggerTOTPEvent = _this.triggerTOTPEvent.bind(_this);\n _this.state = {\n code: null,\n setupMessage: null,\n };\n return _this;\n }\n TOTPSetupComp.prototype.componentDidMount = function () {\n this.setup();\n };\n TOTPSetupComp.prototype.triggerTOTPEvent = function (event, data, user) {\n if (this.props.onTOTPEvent) {\n this.props.onTOTPEvent(event, data, user);\n }\n };\n TOTPSetupComp.prototype.handleInputChange = function (evt) {\n this.setState({ setupMessage: null });\n this.inputs = {};\n var _a = evt.target, name = _a.name, value = _a.value, type = _a.type, checked = _a.checked;\n // @ts-ignore\n var check_type = ['radio', 'checkbox'].includes(type);\n this.inputs[name] = check_type ? checked : value;\n };\n TOTPSetupComp.prototype.setup = function () {\n var _this = this;\n this.setState({ setupMessage: null });\n var user = this.props.authData;\n var issuer = encodeURI(core_1.I18n.get('AWSCognito'));\n if (!auth_1.Auth || typeof auth_1.Auth.setupTOTP !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.setupTOTP(user)\n .then(function (data) {\n logger.debug('secret key', data);\n var code = 'otpauth://totp/' +\n issuer +\n ':' +\n user.username +\n '?secret=' +\n data +\n '&issuer=' +\n issuer;\n _this.setState({ code: code });\n })\n .catch(function (err) { return logger.debug('totp setup failed', err); });\n };\n TOTPSetupComp.prototype.verifyTotpToken = function () {\n var _this = this;\n if (!this.inputs) {\n logger.debug('no input');\n return;\n }\n var user = this.props.authData;\n var totpCode = this.inputs.totpCode;\n if (!auth_1.Auth ||\n typeof auth_1.Auth.verifyTotpToken !== 'function' ||\n typeof auth_1.Auth.setPreferredMFA !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n return auth_1.Auth.verifyTotpToken(user, totpCode)\n .then(function () {\n // set it to preferred mfa\n return auth_1.Auth.setPreferredMFA(user, 'TOTP')\n .then(function () {\n _this.setState({ setupMessage: 'Setup TOTP successfully!' });\n logger.debug('set up totp success!');\n _this.triggerTOTPEvent('Setup TOTP', 'SUCCESS', user);\n })\n .catch(function (err) {\n _this.setState({ setupMessage: 'Setup TOTP failed!' });\n logger.error(err);\n });\n })\n .catch(function (err) {\n _this.setState({ setupMessage: 'Setup TOTP failed!' });\n logger.error(err);\n });\n };\n TOTPSetupComp.prototype.showSecretCode = function (code, theme) {\n if (!code)\n return null;\n return (React.createElement(\"div\", null,\n React.createElement(\"div\", { className: ui_1.totpQrcode },\n React.createElement(qrcode_react_1.default, { value: code })),\n React.createElement(Amplify_UI_Components_React_1.InputLabel, { theme: theme }, core_1.I18n.get('Enter Security Code:')),\n React.createElement(Amplify_UI_Components_React_1.Input, { autoFocus: true, theme: theme, key: \"totpCode\", name: \"totpCode\", onChange: this.handleInputChange })));\n };\n TOTPSetupComp.prototype.render = function () {\n var theme = this.props.theme ? this.props.theme : Amplify_UI_Theme_1.default;\n var code = this.state.code;\n return (React.createElement(Amplify_UI_Components_React_1.FormSection, { theme: theme },\n this.state.setupMessage && (React.createElement(Amplify_UI_Components_React_1.Toast, null, core_1.I18n.get(this.state.setupMessage))),\n React.createElement(Amplify_UI_Components_React_1.SectionHeader, { theme: theme }, core_1.I18n.get('Scan then enter verification code')),\n React.createElement(Amplify_UI_Components_React_1.SectionBody, { theme: theme },\n this.showSecretCode(code, theme),\n this.state.setupMessage && core_1.I18n.get(this.state.setupMessage)),\n React.createElement(Amplify_UI_Components_React_1.SectionFooter, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.Button, { theme: theme, onClick: this.verifyTotpToken, style: { width: '100%' } }, core_1.I18n.get('Verify Security Token')))));\n };\n return TOTPSetupComp;\n}(React.Component));\nexports.TOTPSetupComp = TOTPSetupComp;\n/**\n * @deprecated use named import\n */\nexports.default = TOTPSetupComp;\n//# sourceMappingURL=TOTPSetupComp.js.map","module.exports = __WEBPACK_EXTERNAL_MODULE__17__;","\"use strict\";\n/*\n * Copyright 2017-2018 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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar Greetings_1 = require(\"./Greetings\");\nvar SignIn_1 = require(\"./SignIn\");\nvar ConfirmSignIn_1 = require(\"./ConfirmSignIn\");\nvar RequireNewPassword_1 = require(\"./RequireNewPassword\");\nvar SignUp_1 = require(\"./SignUp\");\nvar Loading_1 = require(\"./Loading\");\nvar ConfirmSignUp_1 = require(\"./ConfirmSignUp\");\nvar VerifyContact_1 = require(\"./VerifyContact\");\nvar ForgotPassword_1 = require(\"./ForgotPassword\");\nvar TOTPSetup_1 = require(\"./TOTPSetup\");\nvar constants_1 = require(\"./common/constants\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../Amplify-UI/Amplify-UI-Theme\"));\nvar AmplifyMessageMap_1 = require(\"../AmplifyMessageMap\");\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar logger = new core_1.ConsoleLogger('Authenticator');\nvar AUTHENTICATOR_AUTHSTATE = 'amplify-authenticator-authState';\nexports.EmptyContainer = function (_a) {\n var children = _a.children;\n return React.createElement(React.Fragment, null, children);\n};\nvar Authenticator = /** @class */ (function (_super) {\n __extends(Authenticator, _super);\n function Authenticator(props) {\n var _this = _super.call(this, props) || this;\n _this.handleStateChange = _this.handleStateChange.bind(_this);\n _this.handleAuthEvent = _this.handleAuthEvent.bind(_this);\n _this.onHubCapsule = _this.onHubCapsule.bind(_this);\n _this._initialAuthState = _this.props.authState || 'signIn';\n _this.state = { authState: 'loading' };\n core_1.Hub.listen('auth', _this.onHubCapsule);\n return _this;\n }\n Authenticator.prototype.componentDidMount = function () {\n var config = this.props.amplifyConfig;\n if (config) {\n core_1.Amplify.configure(config);\n }\n this._isMounted = true;\n // The workaround for Cognito Hosted UI:\n // Don't check the user immediately if redirected back from Hosted UI as\n // it might take some time for credentials to be available, instead\n // wait for the hub event sent from Auth module. This item in the\n // localStorage is a mark to indicate whether the app is just redirected\n // back from Hosted UI or not and is set in Auth:handleAuthResponse.\n var byHostedUI = localStorage.getItem(constants_1.Constants.REDIRECTED_FROM_HOSTED_UI);\n localStorage.removeItem(constants_1.Constants.REDIRECTED_FROM_HOSTED_UI);\n if (byHostedUI !== 'true')\n this.checkUser();\n };\n Authenticator.prototype.componentWillUnmount = function () {\n this._isMounted = false;\n };\n Authenticator.prototype.checkUser = function () {\n var _this = this;\n if (!auth_1.Auth || typeof auth_1.Auth.currentAuthenticatedUser !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n return auth_1.Auth.currentAuthenticatedUser()\n .then(function (user) {\n if (!_this._isMounted) {\n return;\n }\n _this.handleStateChange('signedIn', user);\n })\n .catch(function (err) {\n if (!_this._isMounted) {\n return;\n }\n var cachedAuthState = null;\n try {\n cachedAuthState = localStorage.getItem(AUTHENTICATOR_AUTHSTATE);\n }\n catch (e) {\n logger.debug('Failed to get the auth state from local storage', e);\n }\n var promise = cachedAuthState === 'signedIn' ? auth_1.Auth.signOut() : Promise.resolve();\n promise\n .then(function () { return _this.handleStateChange(_this._initialAuthState); })\n .catch(function (e) {\n logger.debug('Failed to sign out', e);\n });\n });\n };\n Authenticator.prototype.checkContact = function (user, changeState) {\n if (!auth_1.Auth || typeof auth_1.Auth.verifiedContact !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.verifiedContact(user).then(function (data) {\n if (!core_1.isEmpty(data.verified)) {\n changeState('signedIn', user);\n }\n else {\n user = Object.assign(user, data);\n changeState('verifyContact', user);\n }\n });\n };\n Authenticator.prototype.onHubCapsule = function (capsule) {\n var channel = capsule.channel, payload = capsule.payload, source = capsule.source;\n if (channel === 'auth') {\n switch (payload.event) {\n case 'cognitoHostedUI':\n case 'signIn':\n this.checkContact(payload.data, this.handleStateChange);\n break;\n case 'cognitoHostedUI_failure':\n this.handleStateChange('signIn', null);\n break;\n case 'parsingUrl_failure':\n this.handleStateChange('signIn', null);\n break;\n case 'signOut':\n this.handleStateChange('signIn', null);\n break;\n case 'customGreetingSignOut':\n this.handleStateChange('signIn', null);\n break;\n default:\n break;\n }\n }\n };\n Authenticator.prototype.handleStateChange = function (state, data) {\n logger.debug('authenticator state change ' + state, data);\n if (state === this.state.authState) {\n return;\n }\n if (state === 'signedOut') {\n state = 'signIn';\n }\n try {\n localStorage.setItem(AUTHENTICATOR_AUTHSTATE, state);\n }\n catch (e) {\n logger.debug('Failed to set the auth state into local storage', e);\n }\n if (this._isMounted) {\n this.setState({\n authState: state,\n authData: data,\n error: null,\n showToast: false,\n });\n }\n if (this.props.onStateChange) {\n this.props.onStateChange(state, data);\n }\n };\n Authenticator.prototype.handleAuthEvent = function (state, event, showToast) {\n if (showToast === void 0) { showToast = true; }\n if (event.type === 'error') {\n var map = this.props.errorMessage || AmplifyMessageMap_1.AmplifyMessageMap;\n var message = typeof map === 'string' ? map : map(event.data);\n this.setState({ error: message, showToast: showToast });\n }\n };\n Authenticator.prototype.render = function () {\n var _this = this;\n var _a = this.state, authState = _a.authState, authData = _a.authData;\n var theme = this.props.theme || Amplify_UI_Theme_1.default;\n var messageMap = this.props.errorMessage || AmplifyMessageMap_1.AmplifyMessageMap;\n // If container prop is undefined, default to AWS Amplify UI Container\n // otherwise if truthy, use the supplied render prop\n // otherwise if falsey, use EmptyContainer\n var Wrapper = this.props.container === undefined\n ? Amplify_UI_Components_React_1.Container\n : this.props.container || exports.EmptyContainer;\n var _b = this.props, hideDefault = _b.hideDefault, _c = _b.hide, hide = _c === void 0 ? [] : _c, federated = _b.federated, signUpConfig = _b.signUpConfig, usernameAttributes = _b.usernameAttributes;\n if (hideDefault) {\n hide = hide.concat([\n Greetings_1.Greetings,\n SignIn_1.SignIn,\n ConfirmSignIn_1.ConfirmSignIn,\n RequireNewPassword_1.RequireNewPassword,\n SignUp_1.SignUp,\n ConfirmSignUp_1.ConfirmSignUp,\n VerifyContact_1.VerifyContact,\n ForgotPassword_1.ForgotPassword,\n TOTPSetup_1.TOTPSetup,\n Loading_1.Loading,\n ]);\n }\n var props_children = [];\n if (typeof this.props.children === 'object') {\n if (Array.isArray(this.props.children)) {\n props_children = this.props.children;\n }\n else {\n props_children.push(this.props.children);\n }\n }\n var default_children = [\n React.createElement(Greetings_1.Greetings, { federated: federated }),\n React.createElement(SignIn_1.SignIn, { federated: federated }),\n React.createElement(ConfirmSignIn_1.ConfirmSignIn, null),\n React.createElement(RequireNewPassword_1.RequireNewPassword, null),\n React.createElement(SignUp_1.SignUp, { signUpConfig: signUpConfig }),\n React.createElement(ConfirmSignUp_1.ConfirmSignUp, null),\n React.createElement(VerifyContact_1.VerifyContact, null),\n React.createElement(ForgotPassword_1.ForgotPassword, null),\n React.createElement(TOTPSetup_1.TOTPSetup, null),\n React.createElement(Loading_1.Loading, null),\n ];\n var props_children_override = React.Children.map(props_children, function (child) { return child.props.override; });\n hide = hide.filter(function (component) { return !props_children.find(function (child) { return child.type === component; }); });\n var render_props_children = React.Children.map(props_children, function (child, index) {\n return React.cloneElement(child, {\n key: 'aws-amplify-authenticator-props-children-' + index,\n theme: theme,\n messageMap: messageMap,\n authState: authState,\n authData: authData,\n onStateChange: _this.handleStateChange,\n onAuthEvent: _this.handleAuthEvent,\n hide: hide,\n override: props_children_override,\n usernameAttributes: usernameAttributes,\n });\n });\n var render_default_children = hideDefault\n ? []\n : React.Children.map(default_children, function (child, index) {\n return React.cloneElement(child, {\n key: 'aws-amplify-authenticator-default-children-' + index,\n theme: theme,\n messageMap: messageMap,\n authState: authState,\n authData: authData,\n onStateChange: _this.handleStateChange,\n onAuthEvent: _this.handleAuthEvent,\n hide: hide,\n override: props_children_override,\n usernameAttributes: usernameAttributes,\n });\n });\n var render_children = render_default_children.concat(render_props_children);\n var error = this.state.error;\n return (React.createElement(Wrapper, { theme: theme },\n this.state.showToast && (React.createElement(Amplify_UI_Components_React_1.Toast, { theme: theme, onClose: function () { return _this.setState({ showToast: false }); }, \"data-test\": data_test_attributes_1.auth.signIn.signInError }, core_1.I18n.get(error))),\n render_children));\n };\n return Authenticator;\n}(React.Component));\nexports.Authenticator = Authenticator;\n/**\n * @deprecated use named import\n */\nexports.default = Authenticator;\n//# sourceMappingURL=Authenticator.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar AuthPiece_1 = require(\"./AuthPiece\");\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../Amplify-UI/Amplify-UI-Theme\"));\nvar SignOut_1 = require(\"./SignOut\");\nvar Provider_1 = require(\"./Provider\");\nvar types_1 = require(\"./common/types\");\nvar logger = new core_1.ConsoleLogger('Greetings');\nvar Greetings = /** @class */ (function (_super) {\n __extends(Greetings, _super);\n function Greetings(props) {\n var _this = _super.call(this, props) || this;\n _this.state = {};\n _this.onHubCapsule = _this.onHubCapsule.bind(_this);\n _this.inGreeting = _this.inGreeting.bind(_this);\n core_1.Hub.listen('auth', _this.onHubCapsule);\n _this._validAuthStates = ['signedIn'];\n return _this;\n }\n Greetings.prototype.componentDidMount = function () {\n this._isMounted = true;\n this.findState();\n };\n Greetings.prototype.componentWillUnmount = function () {\n this._isMounted = false;\n };\n Greetings.prototype.findState = function () {\n var _this = this;\n if (!this.props.authState && !this.props.authData) {\n auth_1.Auth.currentAuthenticatedUser()\n .then(function (user) {\n _this.setState({\n authState: 'signedIn',\n authData: user,\n stateFromStorage: true,\n });\n })\n .catch(function (err) { return logger.debug(err); });\n }\n };\n Greetings.prototype.onHubCapsule = function (capsule) {\n if (this._isMounted) {\n var channel = capsule.channel, payload = capsule.payload;\n if (channel === 'auth' && payload.event === 'signIn') {\n this.setState({\n authState: 'signedIn',\n authData: payload.data,\n });\n if (!this.props.authState) {\n this.setState({ stateFromStorage: true });\n }\n }\n else if (channel === 'auth' &&\n payload.event === 'signOut' &&\n !this.props.authState) {\n this.setState({\n authState: 'signIn',\n });\n }\n }\n };\n Greetings.prototype.inGreeting = function (name) {\n var _a = this.props.usernameAttributes, usernameAttributes = _a === void 0 ? types_1.UsernameAttributes.USERNAME : _a;\n var prefix = usernameAttributes === types_1.UsernameAttributes.USERNAME\n ? core_1.I18n.get('Hello') + \" \"\n : '';\n return \"\" + prefix + name;\n };\n Greetings.prototype.outGreeting = function () {\n return '';\n };\n Greetings.prototype.userGreetings = function (theme) {\n var user = this.props.authData || this.state.authData;\n var greeting = this.props.inGreeting || this.inGreeting;\n // get name from attributes first\n var _a = this.props.usernameAttributes, usernameAttributes = _a === void 0 ? 'username' : _a;\n var name = '';\n switch (usernameAttributes) {\n case types_1.UsernameAttributes.EMAIL:\n // Email as Username\n name = user.attributes ? user.attributes.email : user.username;\n break;\n case types_1.UsernameAttributes.PHONE_NUMBER:\n // Phone number as Username\n name = user.attributes ? user.attributes.phone_number : user.username;\n break;\n default:\n var nameFromAttr = user.attributes\n ? user.attributes.name ||\n (user.attributes.given_name\n ? user.attributes.given_name + ' ' + user.attributes.family_name\n : undefined)\n : undefined;\n name = nameFromAttr || user.name || user.username;\n break;\n }\n var message = typeof greeting === 'function' ? greeting(name) : greeting;\n return (React.createElement(\"span\", null,\n React.createElement(Amplify_UI_Components_React_1.NavItem, { theme: theme }, message),\n this.renderSignOutButton()));\n };\n Greetings.prototype.renderSignOutButton = function () {\n var _a = this.props.federated, federated = _a === void 0 ? {} : _a;\n var google_client_id = federated.google_client_id, facebook_app_id = federated.facebook_app_id, amazon_client_id = federated.amazon_client_id, auth0 = federated.auth0;\n // @ts-ignore\n var config = auth_1.Auth.configure();\n var _b = config.oauth, oauth = _b === void 0 ? {} : _b;\n // @ts-ignore\n var googleClientId = google_client_id || config.googleClientId;\n // @ts-ignore\n var facebookAppId = facebook_app_id || config.facebookClientId;\n // @ts-ignore\n var amazonClientId = amazon_client_id || config.amazonClientId;\n // @ts-ignore\n var auth0_config = auth0 || oauth.auth0;\n var SignOutComponent = SignOut_1.SignOut;\n // @ts-ignore\n if (googleClientId)\n SignOutComponent = Provider_1.withGoogle(SignOut_1.SignOut);\n // @ts-ignore\n if (facebookAppId)\n SignOutComponent = Provider_1.withFacebook(SignOut_1.SignOut);\n // @ts-ignore\n if (amazonClientId)\n SignOutComponent = Provider_1.withAmazon(SignOut_1.SignOut);\n // @ts-ignore\n if (auth0_config)\n SignOutComponent = Provider_1.withAuth0(SignOut_1.SignOut);\n var stateAndProps = Object.assign({}, this.props, this.state);\n return React.createElement(SignOutComponent, __assign({}, stateAndProps));\n };\n Greetings.prototype.noUserGreetings = function (theme) {\n var greeting = this.props.outGreeting || this.outGreeting;\n var message = typeof greeting === 'function' ? greeting() : greeting;\n return message ? React.createElement(Amplify_UI_Components_React_1.NavItem, { theme: theme }, message) : null;\n };\n Greetings.prototype.render = function () {\n var hide = this.props.hide;\n if (hide && hide.includes(Greetings)) {\n return null;\n }\n var authState = this.props.authState || this.state.authState;\n var signedIn = authState === 'signedIn';\n var theme = this.props.theme || Amplify_UI_Theme_1.default;\n var greeting = signedIn\n ? this.userGreetings(theme)\n : this.noUserGreetings(theme);\n if (!greeting) {\n return null;\n }\n return (React.createElement(Amplify_UI_Components_React_1.NavBar, { theme: theme, \"data-test\": data_test_attributes_1.auth.greetings.navBar },\n React.createElement(Amplify_UI_Components_React_1.Nav, { theme: theme, \"data-test\": data_test_attributes_1.auth.greetings.nav },\n React.createElement(Amplify_UI_Components_React_1.NavRight, { theme: theme, \"data-test\": data_test_attributes_1.auth.greetings.navRight }, greeting))));\n };\n return Greetings;\n}(AuthPiece_1.AuthPiece));\nexports.Greetings = Greetings;\n/**\n * @deprecated use named import\n */\nexports.default = Greetings;\n//# sourceMappingURL=Greetings.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../Amplify-UI/Amplify-UI-Theme\"));\nvar country_dial_codes_1 = require(\"./common/country-dial-codes\");\nvar core_1 = require(\"@aws-amplify/core\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar PhoneField = /** @class */ (function (_super) {\n __extends(PhoneField, _super);\n function PhoneField(props) {\n var _this = _super.call(this, props) || this;\n _this.handleInputChange = _this.handleInputChange.bind(_this);\n _this.composePhoneNumber = _this.composePhoneNumber.bind(_this);\n _this.inputs = {\n dial_code: _this.props.defaultDialCode || '+1',\n phone_line_number: '',\n };\n return _this;\n }\n PhoneField.prototype.composePhoneNumber = function (dial_code, phone_line_number) {\n return \"\" + (dial_code || '+1') + phone_line_number.replace(/[-()]/g, '');\n };\n PhoneField.prototype.handleInputChange = function (evt) {\n var _a = evt.target, name = _a.name, value = _a.value;\n this.inputs[name] = value;\n if (this.props.onChangeText) {\n this.props.onChangeText(this.composePhoneNumber(this.inputs.dial_code, this.inputs.phone_line_number));\n }\n };\n PhoneField.prototype.render = function () {\n var _a = this.props, _b = _a.theme, theme = _b === void 0 ? Amplify_UI_Theme_1.default : _b, _c = _a.required, required = _c === void 0 ? true : _c, _d = _a.defaultDialCode, defaultDialCode = _d === void 0 ? '+1' : _d, _e = _a.label, label = _e === void 0 ? 'Phone Number' : _e, _f = _a.placeholder, placeholder = _f === void 0 ? 'Enter your phone number' : _f;\n return (React.createElement(Amplify_UI_Components_React_1.FormField, { theme: theme, key: \"phone_number\" },\n required ? (React.createElement(Amplify_UI_Components_React_1.InputLabel, { theme: theme },\n core_1.I18n.get(label),\n \" *\")) : (React.createElement(Amplify_UI_Components_React_1.InputLabel, { theme: theme }, core_1.I18n.get(label))),\n React.createElement(Amplify_UI_Components_React_1.SelectInput, { theme: theme },\n React.createElement(\"select\", { name: \"dial_code\", defaultValue: defaultDialCode, onChange: this.handleInputChange, \"data-test\": data_test_attributes_1.auth.genericAttrs.dialCodeSelect }, country_dial_codes_1.countryDialCodes.map(function (dialCode) { return (React.createElement(\"option\", { key: dialCode, value: dialCode }, dialCode)); })),\n React.createElement(Amplify_UI_Components_React_1.Input, { placeholder: core_1.I18n.get(placeholder), theme: theme, type: \"tel\", id: \"phone_line_number\", key: \"phone_line_number\", name: \"phone_line_number\", onChange: this.handleInputChange, \"data-test\": data_test_attributes_1.auth.genericAttrs.phoneNumberInput }))));\n };\n return PhoneField;\n}(React.Component));\nexports.PhoneField = PhoneField;\n/**\n * @deprecated use named import\n */\nexports.default = PhoneField;\n//# sourceMappingURL=PhoneField.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.countryDialCodes = [\n '+1',\n '+7',\n '+20',\n '+27',\n '+30',\n '+31',\n '+32',\n '+33',\n '+34',\n '+36',\n '+39',\n '+40',\n '+41',\n '+43',\n '+44',\n '+45',\n '+46',\n '+47',\n '+48',\n '+49',\n '+51',\n '+52',\n '+53',\n '+54',\n '+55',\n '+56',\n '+57',\n '+58',\n '+60',\n '+61',\n '+62',\n '+63',\n '+64',\n '+65',\n '+66',\n '+81',\n '+82',\n '+84',\n '+86',\n '+90',\n '+91',\n '+92',\n '+93',\n '+94',\n '+95',\n '+98',\n '+212',\n '+213',\n '+216',\n '+218',\n '+220',\n '+221',\n '+222',\n '+223',\n '+224',\n '+225',\n '+226',\n '+227',\n '+228',\n '+229',\n '+230',\n '+231',\n '+232',\n '+233',\n '+234',\n '+235',\n '+236',\n '+237',\n '+238',\n '+239',\n '+240',\n '+241',\n '+242',\n '+243',\n '+244',\n '+245',\n '+246',\n '+248',\n '+249',\n '+250',\n '+251',\n '+252',\n '+253',\n '+254',\n '+255',\n '+256',\n '+257',\n '+258',\n '+260',\n '+261',\n '+262',\n '+263',\n '+264',\n '+265',\n '+266',\n '+267',\n '+268',\n '+269',\n '+290',\n '+291',\n '+297',\n '+298',\n '+299',\n '+345',\n '+350',\n '+351',\n '+352',\n '+353',\n '+354',\n '+355',\n '+356',\n '+357',\n '+358',\n '+359',\n '+370',\n '+371',\n '+372',\n '+373',\n '+374',\n '+375',\n '+376',\n '+377',\n '+378',\n '+379',\n '+380',\n '+381',\n '+382',\n '+385',\n '+386',\n '+387',\n '+389',\n '+420',\n '+421',\n '+423',\n '+500',\n '+501',\n '+502',\n '+503',\n '+504',\n '+505',\n '+506',\n '+507',\n '+508',\n '+509',\n '+537',\n '+590',\n '+591',\n '+593',\n '+594',\n '+595',\n '+596',\n '+597',\n '+598',\n '+599',\n '+670',\n '+672',\n '+673',\n '+674',\n '+675',\n '+676',\n '+677',\n '+678',\n '+679',\n '+680',\n '+681',\n '+682',\n '+683',\n '+685',\n '+686',\n '+687',\n '+688',\n '+689',\n '+690',\n '+691',\n '+692',\n '+850',\n '+852',\n '+853',\n '+855',\n '+856',\n '+872',\n '+880',\n '+886',\n '+960',\n '+961',\n '+962',\n '+963',\n '+964',\n '+965',\n '+966',\n '+967',\n '+968',\n '+970',\n '+971',\n '+972',\n '+973',\n '+974',\n '+975',\n '+976',\n '+977',\n '+992',\n '+993',\n '+994',\n '+995',\n '+996',\n '+998',\n];\n//# sourceMappingURL=country-dial-codes.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar AuthPiece_1 = require(\"./AuthPiece\");\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../Amplify-UI/Amplify-UI-Theme\"));\nvar constants_1 = require(\"./common/constants\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar logger = new core_1.ConsoleLogger('SignOut');\nvar SignOut = /** @class */ (function (_super) {\n __extends(SignOut, _super);\n function SignOut(props) {\n var _this = _super.call(this, props) || this;\n _this.signOut = _this.signOut.bind(_this);\n _this.onHubCapsule = _this.onHubCapsule.bind(_this);\n core_1.Hub.listen('auth', _this.onHubCapsule);\n _this.state = {};\n return _this;\n }\n SignOut.prototype.componentDidMount = function () {\n this._isMounted = true;\n this.findState();\n };\n SignOut.prototype.componentWillUnmount = function () {\n this._isMounted = false;\n };\n SignOut.prototype.findState = function () {\n var _this = this;\n if (!this.props.authState && !this.props.authData) {\n auth_1.Auth.currentAuthenticatedUser()\n .then(function (user) {\n _this.setState({\n authState: 'signedIn',\n authData: user,\n stateFromStorage: true,\n });\n })\n .catch(function (err) { return logger.error(err); });\n }\n else if (this.props.stateFromStorage) {\n this.setState({\n stateFromStorage: true,\n });\n }\n };\n SignOut.prototype.onHubCapsule = function (capsule) {\n if (this._isMounted) {\n var channel = capsule.channel, payload = capsule.payload, source = capsule.source;\n if (channel === 'auth' && payload.event === 'signIn') {\n this.setState({\n authState: 'signedIn',\n authData: payload.data,\n });\n }\n else if (channel === 'auth' &&\n payload.event === 'signOut' &&\n !this.props.authState) {\n this.setState({\n authState: 'signIn',\n });\n }\n if (channel === 'auth' &&\n payload.event === 'signIn' &&\n !this.props.authState) {\n this.setState({ stateFromStorage: true });\n }\n }\n };\n SignOut.prototype.signOut = function () {\n var _this = this;\n var payload = {};\n try {\n payload =\n JSON.parse(localStorage.getItem(constants_1.Constants.AUTH_SOURCE_KEY)) || {};\n localStorage.removeItem(constants_1.Constants.AUTH_SOURCE_KEY);\n }\n catch (e) {\n logger.debug(\"Failed to parse the info from \" + constants_1.Constants.AUTH_SOURCE_KEY + \" from localStorage with \" + e);\n }\n logger.debug('sign out from the source', payload);\n var _a = this.props, googleSignOut = _a.googleSignOut, facebookSignOut = _a.facebookSignOut, amazonSignOut = _a.amazonSignOut, auth0SignOut = _a.auth0SignOut;\n // @ts-ignore\n switch (payload.provider) {\n case constants_1.Constants.GOOGLE:\n if (googleSignOut)\n googleSignOut();\n else\n logger.debug('No Google signout method provided');\n break;\n case constants_1.Constants.FACEBOOK:\n if (facebookSignOut)\n facebookSignOut();\n else\n logger.debug('No Facebook signout method provided');\n break;\n case constants_1.Constants.AMAZON:\n if (amazonSignOut)\n amazonSignOut();\n else\n logger.debug('No Amazon signout method provided');\n break;\n case constants_1.Constants.AUTH0:\n // @ts-ignore\n if (auth0SignOut)\n auth0SignOut(payload.opts);\n else\n logger.debug('No Auth0 signout method provided');\n break;\n default:\n break;\n }\n if (!auth_1.Auth || typeof auth_1.Auth.signOut !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.signOut()\n .then(function () {\n if (!_this.state.stateFromStorage) {\n _this.changeState('signedOut');\n }\n })\n .catch(function (err) {\n logger.debug(err);\n _this.error(err);\n });\n };\n SignOut.prototype.render = function () {\n var hide = this.props.hide;\n if (hide && hide.includes(SignOut)) {\n return null;\n }\n var authState = this.props.authState || this.state.authState;\n var signedIn = authState === 'signedIn';\n var theme = this.props.theme || Amplify_UI_Theme_1.default;\n if (!signedIn) {\n return null;\n }\n return (React.createElement(Amplify_UI_Components_React_1.NavButton, { theme: theme, onClick: this.signOut, \"data-test\": data_test_attributes_1.auth.signOut.button }, core_1.I18n.get('Sign Out')));\n };\n return SignOut;\n}(AuthPiece_1.AuthPiece));\nexports.SignOut = SignOut;\n/**\n * @deprecated use named import\n */\nexports.default = SignOut;\n//# sourceMappingURL=SignOut.js.map","\"use strict\";\n/*\n * Copyright 2017-2018 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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __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};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../../Amplify-UI/Amplify-UI-Theme\"));\nvar ui_1 = require(\"@aws-amplify/ui\");\nvar Amplify_UI_Components_React_1 = require(\"../../Amplify-UI/Amplify-UI-Components-React\");\nvar constants_1 = require(\"../common/constants\");\nvar logger = new core_1.ConsoleLogger('withGoogle');\nfunction withGoogle(Comp) {\n return /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1(props) {\n var _this = _super.call(this, props) || this;\n _this.initGapi = _this.initGapi.bind(_this);\n _this.signIn = _this.signIn.bind(_this);\n _this.signOut = _this.signOut.bind(_this);\n _this.federatedSignIn = _this.federatedSignIn.bind(_this);\n _this.state = {};\n return _this;\n }\n class_1.prototype.signIn = function () {\n var _this = this;\n var ga = window.gapi.auth2.getAuthInstance();\n var onError = this.props.onError;\n ga.signIn().then(function (googleUser) {\n _this.federatedSignIn(googleUser);\n var payload = {\n provider: constants_1.Constants.GOOGLE,\n };\n try {\n localStorage.setItem(constants_1.Constants.AUTH_SOURCE_KEY, JSON.stringify(payload));\n }\n catch (e) {\n logger.debug('Failed to cache auth source into localStorage', e);\n }\n }, function (error) {\n if (onError)\n onError(error);\n else\n throw error;\n });\n };\n class_1.prototype.federatedSignIn = function (googleUser) {\n return __awaiter(this, void 0, void 0, function () {\n var _a, id_token, expires_at, profile, user, onStateChange;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = googleUser.getAuthResponse(), id_token = _a.id_token, expires_at = _a.expires_at;\n profile = googleUser.getBasicProfile();\n user = {\n email: profile.getEmail(),\n name: profile.getName(),\n picture: profile.getImageUrl(),\n };\n onStateChange = this.props.onStateChange;\n if (!auth_1.Auth ||\n typeof auth_1.Auth.federatedSignIn !== 'function' ||\n typeof auth_1.Auth.currentAuthenticatedUser !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n return [4 /*yield*/, auth_1.Auth.federatedSignIn('google', { token: id_token, expires_at: expires_at }, user)];\n case 1:\n _b.sent();\n return [4 /*yield*/, auth_1.Auth.currentAuthenticatedUser()];\n case 2:\n user = _b.sent();\n if (onStateChange) {\n onStateChange('signedIn', user);\n }\n return [2 /*return*/];\n }\n });\n });\n };\n class_1.prototype.signOut = function () {\n var authInstance = window.gapi && window.gapi.auth2\n ? window.gapi.auth2.getAuthInstance()\n : null;\n if (!authInstance) {\n return Promise.resolve();\n }\n authInstance.then(function (googleAuth) {\n if (!googleAuth) {\n logger.debug('google Auth undefined');\n return Promise.resolve();\n }\n logger.debug('google signing out');\n return googleAuth.signOut();\n });\n };\n class_1.prototype.componentDidMount = function () {\n var google_client_id = this.props.google_client_id;\n var ga = window.gapi && window.gapi.auth2\n ? window.gapi.auth2.getAuthInstance()\n : null;\n if (google_client_id && !ga)\n this.createScript();\n };\n class_1.prototype.createScript = function () {\n var script = document.createElement('script');\n script.src = 'https://apis.google.com/js/platform.js';\n script.async = true;\n script.onload = this.initGapi;\n document.body.appendChild(script);\n };\n class_1.prototype.initGapi = function () {\n logger.debug('init gapi');\n var that = this;\n var google_client_id = this.props.google_client_id;\n var g = window.gapi;\n g.load('auth2', function () {\n g.auth2.init({\n client_id: google_client_id,\n scope: 'profile email openid',\n });\n });\n };\n class_1.prototype.render = function () {\n var ga = window.gapi && window.gapi.auth2\n ? window.gapi.auth2.getAuthInstance()\n : null;\n return (React.createElement(Comp, __assign({}, this.props, { ga: ga, googleSignIn: this.signIn, googleSignOut: this.signOut })));\n };\n return class_1;\n }(React.Component));\n}\nexports.withGoogle = withGoogle;\nvar Button = function (props) { return (React.createElement(Amplify_UI_Components_React_1.SignInButton, { id: ui_1.googleSignInButton, onClick: props.googleSignIn, theme: props.theme || Amplify_UI_Theme_1.default, variant: \"googleSignInButton\" },\n React.createElement(Amplify_UI_Components_React_1.SignInButtonIcon, { theme: props.theme || Amplify_UI_Theme_1.default },\n React.createElement(\"svg\", { viewBox: \"0 0 256 262\", xmlns: \"http://ww0w.w3.org/2000/svg\", preserveAspectRatio: \"xMidYMid\" },\n React.createElement(\"path\", { d: \"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027\", fill: \"#4285F4\" }),\n React.createElement(\"path\", { d: \"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1\", fill: \"#34A853\" }),\n React.createElement(\"path\", { d: \"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782\", fill: \"#FBBC05\" }),\n React.createElement(\"path\", { d: \"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251\", fill: \"#EB4335\" }))),\n React.createElement(Amplify_UI_Components_React_1.SignInButtonContent, { theme: props.theme || Amplify_UI_Theme_1.default }, core_1.I18n.get('Sign In with Google')))); };\nexports.GoogleButton = withGoogle(Button);\n/**\n * @deprecated use named import\n */\nexports.default = withGoogle;\n//# sourceMappingURL=withGoogle.js.map","\"use strict\";\n/*\n * Copyright 2017-2018 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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../../Amplify-UI/Amplify-UI-Theme\"));\nvar ui_1 = require(\"@aws-amplify/ui\");\nvar Amplify_UI_Components_React_1 = require(\"../../Amplify-UI/Amplify-UI-Components-React\");\nvar constants_1 = require(\"../common/constants\");\nvar logger = new core_1.ConsoleLogger('withFacebook');\nfunction withFacebook(Comp) {\n return /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1(props) {\n var _this = _super.call(this, props) || this;\n _this.fbAsyncInit = _this.fbAsyncInit.bind(_this);\n _this.initFB = _this.initFB.bind(_this);\n _this.signIn = _this.signIn.bind(_this);\n _this.signOut = _this.signOut.bind(_this);\n _this.federatedSignIn = _this.federatedSignIn.bind(_this);\n _this.state = {};\n return _this;\n }\n class_1.prototype.signIn = function () {\n var _this = this;\n var fb = window.FB;\n fb.getLoginStatus(function (response) {\n var payload = {\n provider: constants_1.Constants.FACEBOOK,\n };\n try {\n localStorage.setItem(constants_1.Constants.AUTH_SOURCE_KEY, JSON.stringify(payload));\n }\n catch (e) {\n logger.debug('Failed to cache auth source into localStorage', e);\n }\n if (response.status === 'connected') {\n _this.federatedSignIn(response.authResponse);\n }\n else {\n fb.login(function (response) {\n if (!response || !response.authResponse) {\n return;\n }\n _this.federatedSignIn(response.authResponse);\n }, {\n scope: 'public_profile,email',\n });\n }\n });\n };\n class_1.prototype.federatedSignIn = function (response) {\n logger.debug(response);\n var onStateChange = this.props.onStateChange;\n var accessToken = response.accessToken, expiresIn = response.expiresIn;\n var date = new Date();\n var expires_at = expiresIn * 1000 + date.getTime();\n if (!accessToken) {\n return;\n }\n var fb = window.FB;\n fb.api('/me', { fields: 'name,email,picture' }, function (response) {\n var user = {\n name: response.name,\n email: response.email,\n picture: response.picture.data.url,\n };\n if (!auth_1.Auth ||\n typeof auth_1.Auth.federatedSignIn !== 'function' ||\n typeof auth_1.Auth.currentAuthenticatedUser !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.federatedSignIn('facebook', { token: accessToken, expires_at: expires_at }, user)\n .then(function (credentials) {\n return auth_1.Auth.currentAuthenticatedUser();\n })\n .then(function (authUser) {\n if (onStateChange) {\n onStateChange('signedIn', authUser);\n }\n });\n });\n };\n class_1.prototype.signOut = function () {\n var fb = window.FB;\n if (!fb) {\n logger.debug('FB sdk undefined');\n return Promise.resolve();\n }\n fb.getLoginStatus(function (response) {\n if (response.status === 'connected') {\n return new Promise(function (res, rej) {\n logger.debug('facebook signing out');\n fb.logout(function (response) {\n res(response);\n });\n });\n }\n else {\n return Promise.resolve();\n }\n });\n };\n class_1.prototype.componentDidMount = function () {\n var facebook_app_id = this.props.facebook_app_id;\n if (facebook_app_id && !window.FB)\n this.createScript();\n };\n class_1.prototype.fbAsyncInit = function () {\n logger.debug('init FB');\n var facebook_app_id = this.props.facebook_app_id;\n var fb = window.FB;\n fb.init({\n appId: facebook_app_id,\n cookie: true,\n xfbml: true,\n version: 'v2.11',\n });\n fb.getLoginStatus(function (response) { return logger.debug(response); });\n };\n class_1.prototype.initFB = function () {\n var fb = window.FB;\n logger.debug('FB inited');\n };\n class_1.prototype.createScript = function () {\n window.fbAsyncInit = this.fbAsyncInit;\n var script = document.createElement('script');\n script.src = 'https://connect.facebook.net/en_US/sdk.js';\n script.async = true;\n script.onload = this.initFB;\n document.body.appendChild(script);\n };\n class_1.prototype.render = function () {\n var fb = window.FB;\n return (React.createElement(Comp, __assign({}, this.props, { fb: fb, facebookSignIn: this.signIn, facebookSignOut: this.signOut })));\n };\n return class_1;\n }(React.Component));\n}\nexports.withFacebook = withFacebook;\nvar Button = function (props) { return (React.createElement(Amplify_UI_Components_React_1.SignInButton, { id: ui_1.facebookSignInButton, onClick: props.facebookSignIn, theme: props.theme || Amplify_UI_Theme_1.default, variant: 'facebookSignInButton' },\n React.createElement(Amplify_UI_Components_React_1.SignInButtonIcon, { theme: props.theme || Amplify_UI_Theme_1.default },\n React.createElement(\"svg\", { viewBox: \"0 0 279 538\", xmlns: \"http://www.w3.org/2000/svg\" },\n React.createElement(\"g\", { id: \"Page-1\", fill: \"none\", fillRule: \"evenodd\" },\n React.createElement(\"g\", { id: \"Artboard\", fill: \"#FFF\" },\n React.createElement(\"path\", { d: \"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z\", id: \"Fill-1\" }))))),\n React.createElement(Amplify_UI_Components_React_1.SignInButtonContent, { theme: props.theme || Amplify_UI_Theme_1.default }, core_1.I18n.get('Sign In with Facebook')))); };\nexports.FacebookButton = withFacebook(Button);\n/**\n * @deprecated use named import\n */\nexports.default = withFacebook;\n//# sourceMappingURL=withFacebook.js.map","\"use strict\";\n/*\n * Copyright 2017-2018 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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../../Amplify-UI/Amplify-UI-Theme\"));\nvar ui_1 = require(\"@aws-amplify/ui\");\nvar Amplify_UI_Components_React_1 = require(\"../../Amplify-UI/Amplify-UI-Components-React\");\nvar constants_1 = require(\"../common/constants\");\nvar logger = new core_1.ConsoleLogger('withAmazon');\nfunction withAmazon(Comp) {\n return /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1(props) {\n var _this = _super.call(this, props) || this;\n _this.initAmazon = _this.initAmazon.bind(_this);\n _this.signIn = _this.signIn.bind(_this);\n _this.signOut = _this.signOut.bind(_this);\n _this.federatedSignIn = _this.federatedSignIn.bind(_this);\n _this.state = {};\n return _this;\n }\n class_1.prototype.signIn = function () {\n var _this = this;\n var amz = window.amazon;\n var options = { scope: 'profile' };\n amz.Login.authorize(options, function (response) {\n if (response.error) {\n logger.debug('Failed to login with amazon: ' + response.error);\n return;\n }\n var payload = {\n provider: constants_1.Constants.AMAZON,\n };\n try {\n localStorage.setItem(constants_1.Constants.AUTH_SOURCE_KEY, JSON.stringify(payload));\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.federatedSignIn = function (response) {\n var access_token = response.access_token, expires_in = response.expires_in;\n var onStateChange = this.props.onStateChange;\n var date = new Date();\n var expires_at = expires_in * 1000 + date.getTime();\n if (!access_token) {\n return;\n }\n var amz = window.amazon;\n amz.Login.retrieveProfile(function (userInfo) {\n if (!userInfo.success) {\n logger.debug('Get user Info failed');\n return;\n }\n var user = {\n name: userInfo.profile.Name,\n email: userInfo.profile.PrimaryEmail,\n };\n if (!auth_1.Auth ||\n typeof auth_1.Auth.federatedSignIn !== 'function' ||\n typeof auth_1.Auth.currentAuthenticatedUser !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.federatedSignIn('amazon', { token: access_token, expires_at: expires_at }, user)\n .then(function (credentials) {\n return auth_1.Auth.currentAuthenticatedUser();\n })\n .then(function (authUser) {\n if (onStateChange) {\n onStateChange('signedIn', authUser);\n }\n });\n });\n };\n class_1.prototype.signOut = function () {\n var amz = window.amazon;\n if (!amz) {\n logger.debug('Amazon Login sdk undefined');\n return Promise.resolve();\n }\n logger.debug('Amazon signing out');\n amz.Login.logout();\n };\n class_1.prototype.componentDidMount = function () {\n var amazon_client_id = this.props.amazon_client_id;\n if (amazon_client_id && !window.amazon)\n this.createScript();\n };\n class_1.prototype.createScript = function () {\n var script = document.createElement('script');\n script.src = 'https://api-cdn.amazon.com/sdk/login1.js';\n script.async = true;\n script.onload = this.initAmazon;\n document.body.appendChild(script);\n };\n class_1.prototype.initAmazon = function () {\n logger.debug('init amazon');\n var amazon_client_id = this.props.amazon_client_id;\n var amz = window.amazon;\n amz.Login.setClientId(amazon_client_id);\n };\n class_1.prototype.render = function () {\n var amz = window.amazon;\n return (React.createElement(Comp, __assign({}, this.props, { amz: amz, amazonSignIn: this.signIn, amazonSignOut: this.signOut })));\n };\n return class_1;\n }(React.Component));\n}\nexports.withAmazon = withAmazon;\nvar Button = function (props) { return (React.createElement(Amplify_UI_Components_React_1.SignInButton, { id: ui_1.amazonSignInButton, onClick: props.amazonSignIn, theme: props.theme || Amplify_UI_Theme_1.default, variant: 'amazonSignInButton' },\n React.createElement(Amplify_UI_Components_React_1.SignInButtonIcon, { theme: props.theme || Amplify_UI_Theme_1.default },\n React.createElement(\"svg\", { viewBox: \"0 0 248 268\", xmlns: \"http://www.w3.org/2000/svg\" },\n React.createElement(\"g\", { id: \"Artboard-Copy-2\", fill: \"none\", fillRule: \"evenodd\" },\n React.createElement(\"path\", { d: \"M139.056521,147.024612 C133.548808,156.744524 124.782731,162.726926 115.087401,162.726926 C101.790721,162.726926 93.9937779,152.612964 93.9937779,137.68681 C93.9937779,108.224571 120.447551,102.879017 145.533369,102.879017 L145.533369,110.365976 C145.533369,123.831358 145.876354,135.063787 139.056521,147.024612 M207.206992,162.579655 C209.400505,165.692256 209.887066,169.437725 207.063416,171.770186 C199.996315,177.653081 187.429476,188.590967 180.513926,194.716661 L180.46208,194.621133 C178.176838,196.663031 174.862638,196.810303 172.27828,195.445057 C160.780281,185.9162 158.686473,181.494078 152.405048,172.403055 C133.405233,191.751331 119.909143,197.534719 95.309886,197.534719 C66.1281801,197.534719 43.4791563,179.599451 43.4791563,143.669212 C43.4791563,115.616003 58.6782107,96.5105248 80.4019706,87.1727225 C99.2063636,78.9096034 125.464714,77.4528107 145.533369,75.1641337 L145.533369,70.694248 C145.533369,62.4749122 146.167493,52.7510201 141.297893,45.6541312 C137.110277,39.2856386 129.018206,36.6586354 121.859376,36.6586354 C108.658413,36.6586354 96.9171331,43.4171982 94.0416364,57.4199213 C93.4593582,60.532522 91.1701278,63.5933787 88.003492,63.7406501 L54.4387473,60.1424518 C51.6150972,59.5095829 48.4484614,57.2248862 49.2740201,52.8982915 C56.9712583,12.2553679 93.7983558,0 126.732964,0 C143.587124,0 165.606011,4.47386604 178.902691,17.2148315 C195.760839,32.917146 194.149604,53.8694866 194.149604,76.6726704 L194.149604,130.542157 C194.149604,146.734049 200.87372,153.830938 207.206992,162.579655 Z M233.826346,208.038962 C230.467669,203.683255 211.550709,205.9821 203.056405,206.998432 C200.470662,207.321077 200.076227,205.042397 202.406981,203.404973 C217.475208,192.664928 242.201125,195.766353 245.081698,199.363845 C247.966255,202.981502 244.336653,228.071183 230.172839,240.049379 C228.001452,241.888455 225.929671,240.904388 226.89783,238.468418 C230.077218,230.430525 237.204944,212.418868 233.826346,208.038962 Z M126.768855,264 C74.0234043,264 42.0764048,241.955028 17.7852554,217.541992 C12.9733903,212.705982 6.71799208,206.295994 3.31151296,200.690918 C1.90227474,198.372135 5.59096074,195.021875 8.0442063,196.84375 C38.2390146,219.267578 82.1011654,239.538304 125.529506,239.538304 C154.819967,239.538304 191.046475,227.469543 220.66851,214.867659 C225.146771,212.966167 225.146771,219.180222 224.511585,221.060516 C224.183264,222.03242 209.514625,236.221149 189.247207,247.047411 C170.304273,257.166172 146.397132,264 126.768855,264 Z\", id: \"Fill-6\", fill: \"#FFF\" })))),\n React.createElement(Amplify_UI_Components_React_1.SignInButtonContent, { theme: props.theme || Amplify_UI_Theme_1.default }, core_1.I18n.get('Sign In with Amazon')))); };\nexports.AmazonButton = withAmazon(Button);\n/**\n * @deprecated use named import\n */\nexports.default = withAmazon;\n//# sourceMappingURL=withAmazon.js.map","\"use strict\";\n/*\n * Copyright 2017-2018 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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../../Amplify-UI/Amplify-UI-Theme\"));\nvar ui_1 = require(\"@aws-amplify/ui\");\nvar Amplify_UI_Components_React_1 = require(\"../../Amplify-UI/Amplify-UI-Components-React\");\nfunction withOAuth(Comp) {\n return /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1(props) {\n var _this = _super.call(this, props) || this;\n _this.signIn = _this.signIn.bind(_this);\n return _this;\n }\n class_1.prototype.signIn = function (_e, provider) {\n auth_1.Auth.federatedSignIn({ provider: provider });\n };\n class_1.prototype.render = function () {\n return React.createElement(Comp, __assign({}, this.props, { OAuthSignIn: this.signIn }));\n };\n return class_1;\n }(React.Component));\n}\nexports.withOAuth = withOAuth;\nvar Button = function (props) { return (React.createElement(Amplify_UI_Components_React_1.SignInButton, { id: ui_1.oAuthSignInButton, onClick: function () { return props.OAuthSignIn(); }, theme: props.theme || Amplify_UI_Theme_1.default, variant: 'oAuthSignInButton' },\n React.createElement(Amplify_UI_Components_React_1.SignInButtonContent, { theme: props.theme || Amplify_UI_Theme_1.default }, core_1.I18n.get(props.label || 'Sign in with AWS')))); };\nexports.OAuthButton = withOAuth(Button);\n/**\n * @deprecated use named import\n */\nexports.default = withOAuth;\n//# sourceMappingURL=withOAuth.js.map","\"use strict\";\n/*\n * Copyright 2017-2018 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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __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};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../../Amplify-UI/Amplify-UI-Theme\"));\n// import auth0 from 'auth0-js';\nvar ui_1 = require(\"@aws-amplify/ui\");\nvar Amplify_UI_Components_React_1 = require(\"../../Amplify-UI/Amplify-UI-Components-React\");\nvar constants_1 = require(\"../common/constants\");\nvar logger = new core_1.ConsoleLogger('withAuth0');\nfunction withAuth0(Comp, options) {\n return /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1(props) {\n var _this = _super.call(this, props) || this;\n _this._auth0 = null;\n _this.initialize = _this.initialize.bind(_this);\n _this.signIn = _this.signIn.bind(_this);\n _this.signOut = _this.signOut.bind(_this);\n return _this;\n }\n class_1.prototype.componentDidMount = function () {\n if (!window.auth0) {\n this.createScript();\n }\n else {\n this.initialize();\n }\n };\n class_1.prototype.createScript = function () {\n var script = document.createElement('script');\n script.src = 'https://cdn.auth0.com/js/auth0/9.8.1/auth0.min.js';\n script.async = true;\n script.onload = this.initialize;\n document.body.appendChild(script);\n };\n class_1.prototype.initialize = function () {\n var _this = this;\n // @ts-ignore\n var _a = auth_1.Auth.configure().oauth, oauth = _a === void 0 ? {} : _a;\n // @ts-ignore\n var config = this.props.auth0 || options || oauth.auth0;\n var _b = this.props, onError = _b.onError, onStateChange = _b.onStateChange, authState = _b.authState;\n if (!config) {\n logger.debug('Auth0 is not configured');\n return;\n }\n logger.debug('withAuth0 configuration', config);\n if (!this._auth0) {\n this._auth0 = new window['auth0'].WebAuth(config);\n window.auth0_client = this._auth0;\n }\n if (authState !== 'signedIn') {\n this._auth0.parseHash(function (err, authResult) {\n if (err || !authResult) {\n logger.debug('Failed to parse the url for Auth0', err);\n return;\n }\n var payload = {\n provider: constants_1.Constants.AUTH0,\n opts: {\n returnTo: config.returnTo,\n clientID: config.clientID,\n federated: config.federated,\n },\n };\n try {\n localStorage.setItem(constants_1.Constants.AUTH_SOURCE_KEY, JSON.stringify(payload));\n }\n catch (e) {\n logger.debug('Failed to cache auth source into localStorage', e);\n }\n _this._auth0.client.userInfo(authResult.accessToken, function (err, user) {\n var username = undefined;\n var email = undefined;\n var picture = undefined;\n if (err) {\n logger.debug('Failed to get the user info', err);\n }\n else {\n username = user.name;\n email = user.email;\n picture = user.picture;\n }\n auth_1.Auth.federatedSignIn(config.domain, {\n token: authResult.idToken,\n expires_at: authResult.expiresIn * 1000 + new Date().getTime(),\n }, {\n name: username,\n email: email,\n picture: picture,\n })\n .then(function () {\n if (onStateChange) {\n auth_1.Auth.currentAuthenticatedUser().then(function (user) {\n onStateChange('signedIn', user);\n });\n }\n })\n .catch(function (e) {\n logger.debug('Failed to get the aws credentials', e);\n if (onError)\n onError(e);\n });\n });\n });\n }\n };\n class_1.prototype.signIn = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n if (this._auth0)\n this._auth0.authorize();\n else {\n throw new Error('the auth0 client is not configured');\n }\n return [2 /*return*/];\n });\n });\n };\n class_1.prototype.signOut = function (opts) {\n if (opts === void 0) { opts = {}; }\n var auth0 = window.auth0_client;\n // @ts-ignore\n var returnTo = opts.returnTo, clientID = opts.clientID, federated = opts.federated;\n if (!auth0) {\n logger.debug('auth0 sdk undefined');\n return Promise.resolve();\n }\n auth0.logout({\n returnTo: returnTo,\n clientID: clientID,\n federated: federated,\n });\n };\n class_1.prototype.render = function () {\n return (React.createElement(Comp, __assign({}, this.props, { auth0: this._auth0, auth0SignIn: this.signIn, auth0SignOut: this.signOut })));\n };\n return class_1;\n }(React.Component));\n}\nexports.withAuth0 = withAuth0;\nvar Button = function (props) { return (React.createElement(Amplify_UI_Components_React_1.SignInButton, { id: ui_1.auth0SignInButton, onClick: props.auth0SignIn, theme: props.theme || Amplify_UI_Theme_1.default, variant: 'auth0SignInButton' },\n React.createElement(Amplify_UI_Components_React_1.SignInButtonIcon, { theme: props.theme || Amplify_UI_Theme_1.default },\n React.createElement(\"svg\", { id: \"artwork\", xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 193.7 216.6\" },\n React.createElement(\"path\", { id: \"NEW\", className: \"st0\", d: \"M189,66.9L167.2,0H96.8l21.8,66.9H189z M96.8,0H26.5L4.8,66.9h70.4L96.8,0z M4.8,66.9L4.8,66.9\\tc-13,39.9,1.2,83.6,35.2,108.3l21.7-66.9L4.8,66.9z M189,66.9L189,66.9l-57,41.4l21.7,66.9l0,0C187.7,150.6,201.9,106.8,189,66.9\\tL189,66.9z M39.9,175.2L39.9,175.2l56.9,41.4l56.9-41.4l-56.9-41.4L39.9,175.2z\" }))),\n React.createElement(Amplify_UI_Components_React_1.SignInButtonContent, { theme: props.theme || Amplify_UI_Theme_1.default }, props.label || 'Sign In with Auth0'))); };\nexports.Auth0Button = withAuth0(Button);\n/**\n * @deprecated use named import\n */\nexports.default = withAuth0;\n//# sourceMappingURL=withAuth0.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __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};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar AuthPiece_1 = require(\"./AuthPiece\");\nvar FederatedSignIn_1 = require(\"./FederatedSignIn\");\nvar SignUp_1 = require(\"./SignUp\");\nvar ForgotPassword_1 = require(\"./ForgotPassword\");\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar logger = new core_1.ConsoleLogger('SignIn');\nvar SignIn = /** @class */ (function (_super) {\n __extends(SignIn, _super);\n function SignIn(props) {\n var _this = _super.call(this, props) || this;\n _this.checkContact = _this.checkContact.bind(_this);\n _this.signIn = _this.signIn.bind(_this);\n _this._validAuthStates = ['signIn', 'signedOut', 'signedUp'];\n _this.state = {};\n return _this;\n }\n SignIn.prototype.checkContact = function (user) {\n var _this = this;\n if (!auth_1.Auth || typeof auth_1.Auth.verifiedContact !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.verifiedContact(user).then(function (data) {\n if (!core_1.isEmpty(data.verified)) {\n _this.changeState('signedIn', user);\n }\n else {\n user = Object.assign(user, data);\n _this.changeState('verifyContact', user);\n }\n });\n };\n SignIn.prototype.signIn = function (event) {\n return __awaiter(this, void 0, void 0, function () {\n var username, password, user, err_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n // avoid submitting the form\n if (event) {\n event.preventDefault();\n }\n username = this.getUsernameFromInput() || '';\n password = this.inputs.password;\n if (!auth_1.Auth || typeof auth_1.Auth.signIn !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n this.setState({ loading: true });\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, 4, 5]);\n return [4 /*yield*/, auth_1.Auth.signIn(username, password)];\n case 2:\n user = _a.sent();\n logger.debug(user);\n if (user.challengeName === 'SMS_MFA' ||\n user.challengeName === 'SOFTWARE_TOKEN_MFA') {\n logger.debug('confirm user with ' + user.challengeName);\n this.changeState('confirmSignIn', user);\n }\n else if (user.challengeName === 'NEW_PASSWORD_REQUIRED') {\n logger.debug('require new password', user.challengeParam);\n this.changeState('requireNewPassword', user);\n }\n else if (user.challengeName === 'MFA_SETUP') {\n logger.debug('TOTP setup', user.challengeParam);\n this.changeState('TOTPSetup', user);\n }\n else if (user.challengeName === 'CUSTOM_CHALLENGE' &&\n user.challengeParam &&\n user.challengeParam.trigger === 'true') {\n logger.debug('custom challenge', user.challengeParam);\n this.changeState('customConfirmSignIn', user);\n }\n else {\n this.checkContact(user);\n }\n return [3 /*break*/, 5];\n case 3:\n err_1 = _a.sent();\n if (err_1.code === 'UserNotConfirmedException') {\n logger.debug('the user is not confirmed');\n this.changeState('confirmSignUp', { username: username });\n }\n else if (err_1.code === 'PasswordResetRequiredException') {\n logger.debug('the user requires a new password');\n this.changeState('forgotPassword', { username: username });\n }\n else {\n this.error(err_1);\n }\n return [3 /*break*/, 5];\n case 4:\n this.setState({ loading: false });\n return [7 /*endfinally*/];\n case 5: return [2 /*return*/];\n }\n });\n });\n };\n SignIn.prototype.showComponent = function (theme) {\n var _this = this;\n var _a = this.props, authState = _a.authState, _b = _a.hide, hide = _b === void 0 ? [] : _b, federated = _a.federated, onStateChange = _a.onStateChange, onAuthEvent = _a.onAuthEvent, _c = _a.override, override = _c === void 0 ? [] : _c;\n if (hide && hide.includes(SignIn)) {\n return null;\n }\n var hideSignUp = !override.includes('SignUp') &&\n hide.some(function (component) { return component === SignUp_1.SignUp; });\n var hideForgotPassword = !override.includes('ForgotPassword') &&\n hide.some(function (component) { return component === ForgotPassword_1.ForgotPassword; });\n return (React.createElement(Amplify_UI_Components_React_1.FormSection, { theme: theme, \"data-test\": data_test_attributes_1.auth.signIn.section },\n React.createElement(Amplify_UI_Components_React_1.SectionHeader, { theme: theme, \"data-test\": data_test_attributes_1.auth.signIn.headerSection }, core_1.I18n.get('Sign in to your account')),\n React.createElement(FederatedSignIn_1.FederatedButtons, { federated: federated, theme: theme, authState: authState, onStateChange: onStateChange, onAuthEvent: onAuthEvent }),\n React.createElement(\"form\", { onSubmit: this.signIn },\n React.createElement(Amplify_UI_Components_React_1.SectionBody, { theme: theme },\n this.renderUsernameField(theme),\n React.createElement(Amplify_UI_Components_React_1.FormField, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.InputLabel, { theme: theme },\n core_1.I18n.get('Password'),\n \" *\"),\n React.createElement(Amplify_UI_Components_React_1.Input, { placeholder: core_1.I18n.get('Enter your password'), theme: theme, key: \"password\", type: \"password\", name: \"password\", onChange: this.handleInputChange, \"data-test\": data_test_attributes_1.auth.signIn.passwordInput }),\n !hideForgotPassword && (React.createElement(Amplify_UI_Components_React_1.Hint, { theme: theme },\n core_1.I18n.get('Forgot your password? '),\n React.createElement(Amplify_UI_Components_React_1.Link, { theme: theme, onClick: function () { return _this.changeState('forgotPassword'); }, \"data-test\": data_test_attributes_1.auth.signIn.forgotPasswordLink }, core_1.I18n.get('Reset password')))))),\n React.createElement(Amplify_UI_Components_React_1.SectionFooter, { theme: theme, \"data-test\": data_test_attributes_1.auth.signIn.footerSection },\n React.createElement(Amplify_UI_Components_React_1.SectionFooterPrimaryContent, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.Button, { theme: theme, type: \"submit\", disabled: this.state.loading, \"data-test\": data_test_attributes_1.auth.signIn.signInButton }, core_1.I18n.get('Sign In'))),\n !hideSignUp && (React.createElement(Amplify_UI_Components_React_1.SectionFooterSecondaryContent, { theme: theme },\n core_1.I18n.get('No account? '),\n React.createElement(Amplify_UI_Components_React_1.Link, { theme: theme, onClick: function () { return _this.changeState('signUp'); }, \"data-test\": data_test_attributes_1.auth.signIn.createAccountLink }, core_1.I18n.get('Create account'))))))));\n };\n return SignIn;\n}(AuthPiece_1.AuthPiece));\nexports.SignIn = SignIn;\n/**\n * @deprecated use named import\n */\nexports.default = SignIn;\n//# sourceMappingURL=SignIn.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../Amplify-UI/Amplify-UI-Theme\"));\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar Provider_1 = require(\"./Provider\");\nvar logger = new core_1.ConsoleLogger('FederatedSignIn');\nvar FederatedButtons = /** @class */ (function (_super) {\n __extends(FederatedButtons, _super);\n function FederatedButtons() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n FederatedButtons.prototype.google = function (google_client_id) {\n if (!google_client_id) {\n return null;\n }\n var _a = this.props, theme = _a.theme, onStateChange = _a.onStateChange;\n return (React.createElement(Provider_1.GoogleButton, { google_client_id: google_client_id, theme: theme, onStateChange: onStateChange }));\n };\n FederatedButtons.prototype.facebook = function (facebook_app_id) {\n if (!facebook_app_id) {\n return null;\n }\n var _a = this.props, theme = _a.theme, onStateChange = _a.onStateChange;\n return (React.createElement(Provider_1.FacebookButton, { facebook_app_id: facebook_app_id, theme: theme, onStateChange: onStateChange }));\n };\n FederatedButtons.prototype.amazon = function (amazon_client_id) {\n if (!amazon_client_id) {\n return null;\n }\n var _a = this.props, theme = _a.theme, onStateChange = _a.onStateChange;\n return (React.createElement(Provider_1.AmazonButton, { amazon_client_id: amazon_client_id, theme: theme, onStateChange: onStateChange }));\n };\n FederatedButtons.prototype.OAuth = function (oauth_config) {\n if (!oauth_config) {\n return null;\n }\n var _a = this.props, theme = _a.theme, onStateChange = _a.onStateChange;\n return (React.createElement(Provider_1.OAuthButton, { label: oauth_config ? oauth_config.label : undefined, theme: theme, onStateChange: onStateChange }));\n };\n FederatedButtons.prototype.auth0 = function (auth0) {\n if (!auth0) {\n return null;\n }\n var _a = this.props, theme = _a.theme, onStateChange = _a.onStateChange;\n return (React.createElement(Provider_1.Auth0Button, { label: auth0 ? auth0.label : undefined, theme: theme, onStateChange: onStateChange, auth0: auth0 }));\n };\n FederatedButtons.prototype.render = function () {\n var authState = this.props.authState;\n if (!['signIn', 'signedOut', 'signedUp'].includes(authState)) {\n return null;\n }\n var federated = this.props.federated || {};\n if (!auth_1.Auth || typeof auth_1.Auth.configure !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n // @ts-ignore\n var _a = auth_1.Auth.configure().oauth, oauth = _a === void 0 ? {} : _a;\n // backward compatibility\n if (oauth['domain']) {\n federated.oauth_config = Object.assign({}, federated.oauth_config, oauth);\n // @ts-ignore\n }\n else if (oauth.awsCognito) {\n // @ts-ignore\n federated.oauth_config = Object.assign({}, federated.oauth_config, \n // @ts-ignore\n oauth.awsCognito);\n }\n // @ts-ignore\n if (oauth.auth0) {\n // @ts-ignore\n federated.auth0 = Object.assign({}, federated.auth0, oauth.auth0);\n }\n if (core_1.isEmpty(federated)) {\n return null;\n }\n var google_client_id = federated.google_client_id, facebook_app_id = federated.facebook_app_id, amazon_client_id = federated.amazon_client_id, oauth_config = federated.oauth_config, auth0 = federated.auth0;\n var theme = this.props.theme || Amplify_UI_Theme_1.default;\n return (React.createElement(\"div\", null,\n React.createElement(\"div\", null, this.google(google_client_id)),\n React.createElement(\"div\", null, this.facebook(facebook_app_id)),\n React.createElement(\"div\", null, this.amazon(amazon_client_id)),\n React.createElement(\"div\", null, this.OAuth(oauth_config)),\n React.createElement(\"div\", null, this.auth0(auth0)),\n React.createElement(Amplify_UI_Components_React_1.Strike, { theme: theme }, core_1.I18n.get('or'))));\n };\n return FederatedButtons;\n}(React.Component));\nexports.FederatedButtons = FederatedButtons;\nvar FederatedSignIn = /** @class */ (function (_super) {\n __extends(FederatedSignIn, _super);\n function FederatedSignIn() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n FederatedSignIn.prototype.render = function () {\n var _a = this.props, authState = _a.authState, onStateChange = _a.onStateChange;\n var federated = this.props.federated || {};\n if (!auth_1.Auth || typeof auth_1.Auth.configure !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n // @ts-ignore\n var _b = auth_1.Auth.configure().oauth, oauth = _b === void 0 ? {} : _b;\n // backward compatibility\n if (oauth['domain']) {\n federated.oauth_config = Object.assign({}, federated.oauth_config, oauth);\n // @ts-ignore\n }\n else if (oauth.awsCognito) {\n // @ts-ignore\n federated.oauth_config = Object.assign({}, federated.oauth_config, \n // @ts-ignore\n oauth.awsCognito);\n }\n // @ts-ignore\n if (oauth.auth0) {\n // @ts-ignore\n federated.auth0 = Object.assign({}, federated.auth0, oauth.auth0);\n }\n if (!federated) {\n logger.debug('federated prop is empty. show nothing');\n logger.debug('federated={google_client_id: , facebook_app_id: , amazon_client_id}');\n return null;\n }\n // @ts-ignore\n if (!['signIn', 'signedOut', 'signedUp'].includes(authState)) {\n return null;\n }\n logger.debug('federated Config is', federated);\n var theme = this.props.theme || Amplify_UI_Theme_1.default;\n return (React.createElement(Amplify_UI_Components_React_1.FormSection, { theme: theme, \"data-test\": data_test_attributes_1.auth.federatedSignIn.section },\n React.createElement(Amplify_UI_Components_React_1.SectionBody, { theme: theme, \"data-test\": data_test_attributes_1.auth.federatedSignIn.bodySection },\n React.createElement(FederatedButtons, { federated: federated, theme: theme, authState: authState, onStateChange: onStateChange, \"data-test\": data_test_attributes_1.auth.federatedSignIn.signInButtons }))));\n };\n return FederatedSignIn;\n}(React.Component));\nexports.FederatedSignIn = FederatedSignIn;\n/**\n * @deprecated use named import\n */\nexports.default = FederatedSignIn;\n//# sourceMappingURL=FederatedSignIn.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar AuthPiece_1 = require(\"./AuthPiece\");\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar ConfirmSignIn = /** @class */ (function (_super) {\n __extends(ConfirmSignIn, _super);\n function ConfirmSignIn(props) {\n var _this = _super.call(this, props) || this;\n _this._validAuthStates = ['confirmSignIn'];\n _this.confirm = _this.confirm.bind(_this);\n _this.checkContact = _this.checkContact.bind(_this);\n _this.state = {\n mfaType: 'SMS',\n };\n return _this;\n }\n ConfirmSignIn.prototype.checkContact = function (user) {\n var _this = this;\n if (!auth_1.Auth || typeof auth_1.Auth.verifiedContact !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.verifiedContact(user).then(function (data) {\n if (!core_1.isEmpty(data.verified)) {\n _this.changeState('signedIn', user);\n }\n else {\n var newUser = Object.assign(user, data);\n _this.changeState('verifyContact', newUser);\n }\n });\n };\n ConfirmSignIn.prototype.confirm = function (event) {\n var _this = this;\n if (event) {\n event.preventDefault();\n }\n var user = this.props.authData;\n var code = this.inputs.code;\n var mfaType = user.challengeName === 'SOFTWARE_TOKEN_MFA' ? 'SOFTWARE_TOKEN_MFA' : null;\n if (!auth_1.Auth || typeof auth_1.Auth.confirmSignIn !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.confirmSignIn(user, code, mfaType)\n .then(function () {\n _this.checkContact(user);\n })\n .catch(function (err) { return _this.error(err); });\n };\n ConfirmSignIn.prototype.componentDidUpdate = function () {\n // logger.debug('component did update with props', this.props);\n var user = this.props.authData;\n var mfaType = user && user.challengeName === 'SOFTWARE_TOKEN_MFA' ? 'TOTP' : 'SMS';\n if (this.state.mfaType !== mfaType)\n this.setState({ mfaType: mfaType });\n };\n ConfirmSignIn.prototype.showComponent = function (theme) {\n var _this = this;\n var hide = this.props.hide;\n if (hide && hide.includes(ConfirmSignIn)) {\n return null;\n }\n return (React.createElement(Amplify_UI_Components_React_1.FormSection, { theme: theme, \"data-test\": data_test_attributes_1.auth.confirmSignIn.section },\n React.createElement(Amplify_UI_Components_React_1.SectionHeader, { theme: theme, \"data-test\": data_test_attributes_1.auth.confirmSignIn.headerSection }, core_1.I18n.get('Confirm ' + this.state.mfaType + ' Code')),\n React.createElement(\"form\", { onSubmit: this.confirm, \"data-test\": data_test_attributes_1.auth.confirmSignIn.bodySection },\n React.createElement(Amplify_UI_Components_React_1.SectionBody, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.FormField, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.InputLabel, { theme: theme },\n core_1.I18n.get('Code'),\n \" *\"),\n React.createElement(Amplify_UI_Components_React_1.Input, { autoFocus: true, placeholder: core_1.I18n.get('Code'), theme: theme, key: \"code\", name: \"code\", autoComplete: \"off\", onChange: this.handleInputChange, \"data-test\": data_test_attributes_1.auth.confirmSignIn.codeInput }))),\n React.createElement(Amplify_UI_Components_React_1.SectionFooter, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.SectionFooterPrimaryContent, { theme: theme, \"data-test\": data_test_attributes_1.auth.confirmSignIn.confirmButton },\n React.createElement(Amplify_UI_Components_React_1.Button, { theme: theme, type: \"submit\" }, core_1.I18n.get('Confirm'))),\n React.createElement(Amplify_UI_Components_React_1.SectionFooterSecondaryContent, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.Link, { theme: theme, onClick: function () { return _this.changeState('signIn'); }, \"data-test\": data_test_attributes_1.auth.confirmSignIn.backToSignInLink }, core_1.I18n.get('Back to Sign In')))))));\n };\n return ConfirmSignIn;\n}(AuthPiece_1.AuthPiece));\nexports.ConfirmSignIn = ConfirmSignIn;\n/**\n * @deprecated use named import\n */\nexports.default = ConfirmSignIn;\n//# sourceMappingURL=ConfirmSignIn.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar AuthPiece_1 = require(\"./AuthPiece\");\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar logger = new core_1.ConsoleLogger('RequireNewPassword');\nvar RequireNewPassword = /** @class */ (function (_super) {\n __extends(RequireNewPassword, _super);\n function RequireNewPassword(props) {\n var _this = _super.call(this, props) || this;\n _this._validAuthStates = ['requireNewPassword'];\n _this.change = _this.change.bind(_this);\n _this.checkContact = _this.checkContact.bind(_this);\n return _this;\n }\n RequireNewPassword.prototype.checkContact = function (user) {\n var _this = this;\n if (!auth_1.Auth || typeof auth_1.Auth.verifiedContact !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.verifiedContact(user).then(function (data) {\n if (!core_1.isEmpty(data.verified)) {\n _this.changeState('signedIn', user);\n }\n else {\n user = Object.assign(user, data);\n _this.changeState('verifyContact', user);\n }\n });\n };\n RequireNewPassword.prototype.change = function () {\n var _this = this;\n var user = this.props.authData;\n var password = this.inputs.password;\n var requiredAttributes = user.challengeParam.requiredAttributes;\n var attrs = objectWithProperties(this.inputs, requiredAttributes);\n if (!auth_1.Auth || typeof auth_1.Auth.completeNewPassword !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.completeNewPassword(user, password, attrs)\n .then(function (user) {\n logger.debug('complete new password', user);\n if (user.challengeName === 'SMS_MFA') {\n _this.changeState('confirmSignIn', user);\n }\n else if (user.challengeName === 'MFA_SETUP') {\n logger.debug('TOTP setup', user.challengeParam);\n _this.changeState('TOTPSetup', user);\n }\n else {\n _this.checkContact(user);\n }\n })\n .catch(function (err) { return _this.error(err); });\n };\n RequireNewPassword.prototype.showComponent = function (theme) {\n var _this = this;\n var hide = this.props.hide;\n if (hide && hide.includes(RequireNewPassword)) {\n return null;\n }\n var user = this.props.authData;\n var requiredAttributes = user.challengeParam.requiredAttributes;\n return (React.createElement(Amplify_UI_Components_React_1.FormSection, { theme: theme, \"data-test\": data_test_attributes_1.auth.requireNewPassword.section },\n React.createElement(Amplify_UI_Components_React_1.SectionHeader, { theme: theme, \"data-test\": data_test_attributes_1.auth.requireNewPassword.headerSection }, core_1.I18n.get('Change Password')),\n React.createElement(Amplify_UI_Components_React_1.SectionBody, { theme: theme, \"data-test\": data_test_attributes_1.auth.requireNewPassword.bodySection },\n React.createElement(Amplify_UI_Components_React_1.Input, { autoFocus: true, placeholder: core_1.I18n.get('New Password'), theme: theme, key: \"password\", name: \"password\", type: \"password\", onChange: this.handleInputChange, \"data-test\": data_test_attributes_1.auth.requireNewPassword.newPasswordInput }),\n requiredAttributes.map(function (attribute) { return (React.createElement(Amplify_UI_Components_React_1.Input, { placeholder: core_1.I18n.get(convertToPlaceholder(attribute)), theme: theme, key: attribute, name: attribute, type: \"text\", onChange: _this.handleInputChange })); })),\n React.createElement(Amplify_UI_Components_React_1.SectionFooter, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.SectionFooterPrimaryContent, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.Button, { theme: theme, onClick: this.change }, core_1.I18n.get('Change'))),\n React.createElement(Amplify_UI_Components_React_1.SectionFooterSecondaryContent, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.Link, { theme: theme, onClick: function () { return _this.changeState('signIn'); }, \"data-test\": data_test_attributes_1.auth.requireNewPassword.backToSignInLink }, core_1.I18n.get('Back to Sign In'))))));\n };\n return RequireNewPassword;\n}(AuthPiece_1.AuthPiece));\nexports.RequireNewPassword = RequireNewPassword;\nfunction convertToPlaceholder(str) {\n return str\n .split('_')\n .map(function (part) { return part.charAt(0).toUpperCase() + part.substr(1).toLowerCase(); })\n .join(' ');\n}\nfunction objectWithProperties(obj, keys) {\n var target = {};\n for (var key in obj) {\n if (keys.indexOf(key) === -1) {\n continue;\n }\n if (!Object.prototype.hasOwnProperty.call(obj, key)) {\n continue;\n }\n target[key] = obj[key];\n }\n return target;\n}\n/**\n * @deprecated use named import\n */\nexports.default = RequireNewPassword;\n//# sourceMappingURL=RequireNewPassword.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar AuthPiece_1 = require(\"./AuthPiece\");\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar Loading = /** @class */ (function (_super) {\n __extends(Loading, _super);\n function Loading(props) {\n var _this = _super.call(this, props) || this;\n _this._validAuthStates = ['loading'];\n return _this;\n }\n Loading.prototype.showComponent = function (theme) {\n var hide = this.props.hide;\n if (hide && hide.includes(Loading)) {\n return null;\n }\n return (React.createElement(Amplify_UI_Components_React_1.FormSection, { theme: theme, \"data-test\": data_test_attributes_1.auth.loading.section },\n React.createElement(Amplify_UI_Components_React_1.SectionBody, { theme: theme }, core_1.I18n.get('Loading...'))));\n };\n return Loading;\n}(AuthPiece_1.AuthPiece));\nexports.Loading = Loading;\n//# sourceMappingURL=Loading.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar AuthPiece_1 = require(\"./AuthPiece\");\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar logger = new core_1.ConsoleLogger('ConfirmSignUp');\nvar ConfirmSignUp = /** @class */ (function (_super) {\n __extends(ConfirmSignUp, _super);\n function ConfirmSignUp(props) {\n var _this = _super.call(this, props) || this;\n _this._validAuthStates = ['confirmSignUp'];\n _this.confirm = _this.confirm.bind(_this);\n _this.resend = _this.resend.bind(_this);\n return _this;\n }\n ConfirmSignUp.prototype.confirm = function () {\n var _this = this;\n var username = this.usernameFromAuthData() || this.inputs.username;\n var code = this.inputs.code;\n if (!auth_1.Auth || typeof auth_1.Auth.confirmSignUp !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.confirmSignUp(username, code)\n .then(function () { return _this.changeState('signedUp'); })\n .catch(function (err) { return _this.error(err); });\n };\n ConfirmSignUp.prototype.resend = function () {\n var _this = this;\n var username = this.usernameFromAuthData() || this.inputs.username;\n if (!auth_1.Auth || typeof auth_1.Auth.resendSignUp !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.resendSignUp(username)\n .then(function () { return logger.debug('code resent'); })\n .catch(function (err) { return _this.error(err); });\n };\n ConfirmSignUp.prototype.showComponent = function (theme) {\n var _this = this;\n var hide = this.props.hide;\n var username = this.usernameFromAuthData();\n if (hide && hide.includes(ConfirmSignUp)) {\n return null;\n }\n return (React.createElement(Amplify_UI_Components_React_1.FormSection, { theme: theme, \"data-test\": data_test_attributes_1.auth.confirmSignUp.section },\n React.createElement(Amplify_UI_Components_React_1.SectionHeader, { theme: theme, \"data-test\": data_test_attributes_1.auth.confirmSignUp.headerSection }, core_1.I18n.get('Confirm Sign Up')),\n React.createElement(Amplify_UI_Components_React_1.SectionBody, { theme: theme, \"data-test\": data_test_attributes_1.auth.confirmSignUp.bodySection },\n React.createElement(Amplify_UI_Components_React_1.FormField, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.InputLabel, { theme: theme },\n core_1.I18n.get(this.getUsernameLabel()),\n \" *\"),\n React.createElement(Amplify_UI_Components_React_1.Input, { placeholder: core_1.I18n.get('Username'), theme: theme, key: \"username\", name: \"username\", onChange: this.handleInputChange, disabled: username, value: username ? username : '', \"data-test\": data_test_attributes_1.auth.confirmSignUp.usernameInput })),\n React.createElement(Amplify_UI_Components_React_1.FormField, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.InputLabel, { theme: theme },\n core_1.I18n.get('Confirmation Code'),\n \" *\"),\n React.createElement(Amplify_UI_Components_React_1.Input, { autoFocus: true, placeholder: core_1.I18n.get('Enter your code'), theme: theme, key: \"code\", name: \"code\", autoComplete: \"off\", onChange: this.handleInputChange, \"data-test\": data_test_attributes_1.auth.confirmSignUp.confirmationCodeInput }),\n React.createElement(Amplify_UI_Components_React_1.Hint, { theme: theme },\n core_1.I18n.get('Lost your code? '),\n React.createElement(Amplify_UI_Components_React_1.Link, { theme: theme, onClick: this.resend, \"data-test\": data_test_attributes_1.auth.confirmSignUp.resendCodeLink }, core_1.I18n.get('Resend Code'))))),\n React.createElement(Amplify_UI_Components_React_1.SectionFooter, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.SectionFooterPrimaryContent, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.Button, { theme: theme, onClick: this.confirm, \"data-test\": data_test_attributes_1.auth.confirmSignUp.confirmButton }, core_1.I18n.get('Confirm'))),\n React.createElement(Amplify_UI_Components_React_1.SectionFooterSecondaryContent, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.Link, { theme: theme, onClick: function () { return _this.changeState('signIn'); }, \"data-test\": data_test_attributes_1.auth.confirmSignUp.backToSignInLink }, core_1.I18n.get('Back to Sign In'))))));\n };\n return ConfirmSignUp;\n}(AuthPiece_1.AuthPiece));\nexports.ConfirmSignUp = ConfirmSignUp;\n/**\n * @deprecated use named import\n */\nexports.default = ConfirmSignUp;\n//# sourceMappingURL=ConfirmSignUp.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar AuthPiece_1 = require(\"./AuthPiece\");\nvar AmplifyTheme_1 = __importDefault(require(\"../AmplifyTheme\"));\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar logger = new core_1.ConsoleLogger('VerifyContact');\nvar VerifyContact = /** @class */ (function (_super) {\n __extends(VerifyContact, _super);\n function VerifyContact(props) {\n var _this = _super.call(this, props) || this;\n _this._validAuthStates = ['verifyContact'];\n _this.verify = _this.verify.bind(_this);\n _this.submit = _this.submit.bind(_this);\n _this.state = { verifyAttr: null };\n return _this;\n }\n VerifyContact.prototype.verify = function () {\n var _this = this;\n var _a = this.inputs, contact = _a.contact, checkedValue = _a.checkedValue;\n if (!contact) {\n this.error('Neither Email nor Phone Number selected');\n return;\n }\n if (!auth_1.Auth || typeof auth_1.Auth.verifyCurrentUserAttribute !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.verifyCurrentUserAttribute(checkedValue)\n .then(function (data) {\n logger.debug(data);\n _this.setState({ verifyAttr: checkedValue });\n })\n .catch(function (err) { return _this.error(err); });\n };\n VerifyContact.prototype.submit = function () {\n var _this = this;\n var attr = this.state.verifyAttr;\n var code = this.inputs.code;\n if (!auth_1.Auth || typeof auth_1.Auth.verifyCurrentUserAttributeSubmit !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.verifyCurrentUserAttributeSubmit(attr, code)\n .then(function (data) {\n logger.debug(data);\n _this.changeState('signedIn', _this.props.authData);\n _this.setState({ verifyAttr: null });\n })\n .catch(function (err) { return _this.error(err); });\n };\n VerifyContact.prototype.verifyView = function () {\n var user = this.props.authData;\n if (!user) {\n logger.debug('no user for verify');\n return null;\n }\n var unverified = user.unverified;\n if (!unverified) {\n logger.debug('no unverified on user');\n return null;\n }\n var email = unverified.email, phone_number = unverified.phone_number;\n var theme = this.props.theme || AmplifyTheme_1.default;\n return (React.createElement(\"div\", null,\n email ? (React.createElement(Amplify_UI_Components_React_1.RadioRow, { placeholder: core_1.I18n.get('Email'), theme: theme, key: \"email\", name: \"contact\", value: \"email\", onChange: this.handleInputChange })) : null,\n phone_number ? (React.createElement(Amplify_UI_Components_React_1.RadioRow, { placeholder: core_1.I18n.get('Phone Number'), theme: theme, key: \"phone_number\", name: \"contact\", value: \"phone_number\", onChange: this.handleInputChange })) : null));\n };\n VerifyContact.prototype.submitView = function () {\n var theme = this.props.theme || AmplifyTheme_1.default;\n return (React.createElement(\"div\", null,\n React.createElement(Amplify_UI_Components_React_1.Input, { placeholder: core_1.I18n.get('Code'), theme: theme, key: \"code\", name: \"code\", autoComplete: \"off\", onChange: this.handleInputChange })));\n };\n VerifyContact.prototype.showComponent = function (theme) {\n var _this = this;\n var _a = this.props, authData = _a.authData, hide = _a.hide;\n if (hide && hide.includes(VerifyContact)) {\n return null;\n }\n return (React.createElement(Amplify_UI_Components_React_1.FormSection, { theme: theme, \"data-test\": data_test_attributes_1.auth.verifyContact.section },\n React.createElement(Amplify_UI_Components_React_1.SectionHeader, { theme: theme, \"data-test\": data_test_attributes_1.auth.verifyContact.headerSection }, core_1.I18n.get('Account recovery requires verified contact information')),\n React.createElement(Amplify_UI_Components_React_1.SectionBody, { theme: theme, \"data-test\": data_test_attributes_1.auth.verifyContact.bodySection }, this.state.verifyAttr ? this.submitView() : this.verifyView()),\n React.createElement(Amplify_UI_Components_React_1.SectionFooter, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.SectionFooterPrimaryContent, { theme: theme }, this.state.verifyAttr ? (React.createElement(Amplify_UI_Components_React_1.Button, { theme: theme, onClick: this.submit, \"data-test\": data_test_attributes_1.auth.verifyContact.submitButton }, core_1.I18n.get('Submit'))) : (React.createElement(Amplify_UI_Components_React_1.Button, { theme: theme, onClick: this.verify, \"data-test\": data_test_attributes_1.auth.verifyContact.verifyButton }, core_1.I18n.get('Verify')))),\n React.createElement(Amplify_UI_Components_React_1.SectionFooterSecondaryContent, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.Link, { theme: theme, onClick: function () { return _this.changeState('signedIn', authData); }, \"data-test\": data_test_attributes_1.auth.verifyContact.skipLink }, core_1.I18n.get('Skip'))))));\n };\n return VerifyContact;\n}(AuthPiece_1.AuthPiece));\nexports.VerifyContact = VerifyContact;\n/**\n * @deprecated use named import\n */\nexports.default = VerifyContact;\n//# sourceMappingURL=VerifyContact.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar AuthPiece_1 = require(\"./AuthPiece\");\nvar TOTPSetupComp_1 = require(\"../Widget/TOTPSetupComp\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar logger = new core_1.ConsoleLogger('TOTPSetup');\nvar TOTPSetup = /** @class */ (function (_super) {\n __extends(TOTPSetup, _super);\n function TOTPSetup(props) {\n var _this = _super.call(this, props) || this;\n _this._validAuthStates = ['TOTPSetup'];\n _this.onTOTPEvent = _this.onTOTPEvent.bind(_this);\n _this.checkContact = _this.checkContact.bind(_this);\n return _this;\n }\n TOTPSetup.prototype.checkContact = function (user) {\n var _this = this;\n if (!auth_1.Auth || typeof auth_1.Auth.verifiedContact !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.verifiedContact(user).then(function (data) {\n if (!core_1.isEmpty(data.verified)) {\n _this.changeState('signedIn', user);\n }\n else {\n var newUser = Object.assign(user, data);\n _this.changeState('verifyContact', newUser);\n }\n });\n };\n TOTPSetup.prototype.onTOTPEvent = function (event, data, user) {\n logger.debug('on totp event', event, data);\n // const user = this.props.authData;\n if (event === 'Setup TOTP') {\n if (data === 'SUCCESS') {\n this.checkContact(user);\n }\n }\n };\n TOTPSetup.prototype.showComponent = function (theme) {\n var hide = this.props.hide;\n if (hide && hide.includes(TOTPSetup)) {\n return null;\n }\n return (React.createElement(TOTPSetupComp_1.TOTPSetupComp, __assign({}, this.props, { onTOTPEvent: this.onTOTPEvent, \"data-test\": data_test_attributes_1.auth.TOTPSetup.component })));\n };\n return TOTPSetup;\n}(AuthPiece_1.AuthPiece));\nexports.TOTPSetup = TOTPSetup;\n/**\n * @deprecated use named import\n */\nexports.default = TOTPSetup;\n//# sourceMappingURL=TOTPSetup.js.map","module.exports = {\n\tMODE_NUMBER :\t\t1 << 0,\n\tMODE_ALPHA_NUM : \t1 << 1,\n\tMODE_8BIT_BYTE : \t1 << 2,\n\tMODE_KANJI :\t\t1 << 3\n};\n","module.exports = {\n\tL : 1,\n\tM : 0,\n\tQ : 3,\n\tH : 2\n};\n\n","var math = require('./math');\n\nfunction QRPolynomial(num, shift) {\n\n\tif (num.length == undefined) {\n\t\tthrow new Error(num.length + \"/\" + shift);\n\t}\n\n\tvar offset = 0;\n\n\twhile (offset < num.length && num[offset] == 0) {\n\t\toffset++;\n\t}\n\n\tthis.num = new Array(num.length - offset + shift);\n\tfor (var i = 0; i < num.length - offset; i++) {\n\t\tthis.num[i] = num[i + offset];\n\t}\n}\n\nQRPolynomial.prototype = {\n\n\tget : function(index) {\n\t\treturn this.num[index];\n\t},\n\t\n\tgetLength : function() {\n\t\treturn this.num.length;\n\t},\n\t\n\tmultiply : function(e) {\n\t\n\t\tvar num = new Array(this.getLength() + e.getLength() - 1);\n\t\n\t\tfor (var i = 0; i < this.getLength(); i++) {\n\t\t\tfor (var j = 0; j < e.getLength(); j++) {\n\t\t\t\tnum[i + j] ^= math.gexp(math.glog(this.get(i) ) + math.glog(e.get(j) ) );\n\t\t\t}\n\t\t}\n\t\n\t\treturn new QRPolynomial(num, 0);\n\t},\n\t\n\tmod : function(e) {\n\t\n\t\tif (this.getLength() - e.getLength() < 0) {\n\t\t\treturn this;\n\t\t}\n\t\n\t\tvar ratio = math.glog(this.get(0) ) - math.glog(e.get(0) );\n\t\n\t\tvar num = new Array(this.getLength() );\n\t\t\n\t\tfor (var i = 0; i < this.getLength(); i++) {\n\t\t\tnum[i] = this.get(i);\n\t\t}\n\t\t\n\t\tfor (var i = 0; i < e.getLength(); i++) {\n\t\t\tnum[i] ^= math.gexp(math.glog(e.get(i) ) + ratio);\n\t\t}\n\t\n\t\t// recursive call\n\t\treturn new QRPolynomial(num, 0).mod(e);\n\t}\n};\n\nmodule.exports = QRPolynomial;\n","var QRMath = {\n\n\tglog : function(n) {\n\t\n\t\tif (n < 1) {\n\t\t\tthrow new Error(\"glog(\" + n + \")\");\n\t\t}\n\t\t\n\t\treturn QRMath.LOG_TABLE[n];\n\t},\n\t\n\tgexp : function(n) {\n\t\n\t\twhile (n < 0) {\n\t\t\tn += 255;\n\t\t}\n\t\n\t\twhile (n >= 256) {\n\t\t\tn -= 255;\n\t\t}\n\t\n\t\treturn QRMath.EXP_TABLE[n];\n\t},\n\t\n\tEXP_TABLE : new Array(256),\n\t\n\tLOG_TABLE : new Array(256)\n\n};\n\t\nfor (var i = 0; i < 8; i++) {\n\tQRMath.EXP_TABLE[i] = 1 << i;\n}\nfor (var i = 8; i < 256; i++) {\n\tQRMath.EXP_TABLE[i] = QRMath.EXP_TABLE[i - 4]\n\t\t^ QRMath.EXP_TABLE[i - 5]\n\t\t^ QRMath.EXP_TABLE[i - 6]\n\t\t^ QRMath.EXP_TABLE[i - 8];\n}\nfor (var i = 0; i < 255; i++) {\n\tQRMath.LOG_TABLE[QRMath.EXP_TABLE[i] ] = i;\n}\n\nmodule.exports = QRMath;\n","\"use strict\";\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 */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar core_1 = require(\"@aws-amplify/core\");\nexports.MapEntries = [\n ['User does not exist', /user.*not.*exist/i],\n ['User already exists', /user.*already.*exist/i],\n ['Incorrect username or password', /incorrect.*username.*password/i],\n ['Invalid password format', /validation.*password/i],\n [\n 'Invalid phone number format',\n /invalid.*phone/i,\n 'Invalid phone number format. Please use a phone number format of +12345678900',\n ],\n];\nfunction AmplifyMessageMap(message) {\n // @ts-ignore\n var match = exports.MapEntries.filter(function (entry) { return entry[1].test(message); });\n if (match.length === 0) {\n return message;\n }\n var entry = match[0];\n var msg = entry.length > 2 ? entry[2] : entry[0];\n return core_1.I18n.get(entry[0], msg);\n}\nexports.AmplifyMessageMap = AmplifyMessageMap;\n//# sourceMappingURL=AmplifyMessageMap.js.map","module.exports = __WEBPACK_EXTERNAL_MODULE__41__;","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar storage_1 = require(\"@aws-amplify/storage\");\nvar AmplifyTheme_1 = __importDefault(require(\"../AmplifyTheme\"));\nvar AmplifyUI_1 = require(\"../AmplifyUI\");\nvar PhotoPicker_1 = require(\"../Widget/PhotoPicker\");\nvar Common_1 = require(\"./Common\");\nvar logger = new core_1.ConsoleLogger('Storage.S3Image');\nvar S3Image = /** @class */ (function (_super) {\n __extends(S3Image, _super);\n function S3Image(props) {\n var _this = _super.call(this, props) || this;\n _this._isMounted = false;\n _this.handleOnLoad = _this.handleOnLoad.bind(_this);\n _this.handleOnError = _this.handleOnError.bind(_this);\n _this.handlePick = _this.handlePick.bind(_this);\n _this.handleClick = _this.handleClick.bind(_this);\n var initSrc = _this.props.src || AmplifyUI_1.transparent1X1;\n _this.state = { src: initSrc };\n return _this;\n }\n S3Image.prototype.getImageSource = function (key, level, track, identityId) {\n var _this = this;\n if (!storage_1.Storage || typeof storage_1.Storage.get !== 'function') {\n throw new Error('No Storage module found, please ensure @aws-amplify/storage is imported');\n }\n storage_1.Storage.get(key, { level: level ? level : 'public', track: track, identityId: identityId })\n .then(function (url) {\n if (_this._isMounted) {\n _this.setState({\n src: url,\n });\n }\n })\n .catch(function (err) { return logger.debug(err); });\n };\n S3Image.prototype.load = function () {\n var _a = this.props, imgKey = _a.imgKey, path = _a.path, body = _a.body, contentType = _a.contentType, level = _a.level, track = _a.track, identityId = _a.identityId;\n if (!imgKey && !path) {\n logger.debug('empty imgKey and path');\n return;\n }\n var that = this;\n var key = imgKey || path;\n logger.debug('loading ' + key + '...');\n if (body) {\n var type = contentType || 'binary/octet-stream';\n if (!storage_1.Storage || typeof storage_1.Storage.put !== 'function') {\n throw new Error('No Storage module found, please ensure @aws-amplify/storage is imported');\n }\n var ret = storage_1.Storage.put(key, body, {\n contentType: type,\n level: level ? level : 'public',\n track: track,\n });\n ret\n .then(function (data) {\n logger.debug(data);\n that.getImageSource(key, level, track, identityId);\n })\n .catch(function (err) { return logger.debug(err); });\n }\n else {\n that.getImageSource(key, level, track, identityId);\n }\n };\n S3Image.prototype.handleOnLoad = function (evt) {\n var onLoad = this.props.onLoad;\n if (onLoad) {\n onLoad(this.state.src);\n }\n };\n S3Image.prototype.handleOnError = function (evt) {\n var onError = this.props.onError;\n if (onError) {\n onError(this.state.src);\n }\n };\n S3Image.prototype.handlePick = function (data) {\n var that = this;\n var _a = this.props, imgKey = _a.imgKey, level = _a.level, fileToKey = _a.fileToKey, track = _a.track, identityId = _a.identityId, _b = _a.path, path = _b === void 0 ? '' : _b, onUploadSuccess = _a.onUploadSuccess;\n var file = data.file, type = data.type;\n var key = imgKey || path + Common_1.calcKey(data, fileToKey);\n if (!storage_1.Storage || typeof storage_1.Storage.put !== 'function') {\n throw new Error('No Storage module found, please ensure @aws-amplify/storage is imported');\n }\n storage_1.Storage.put(key, file, {\n level: level ? level : 'public',\n contentType: type,\n track: track,\n })\n .then(function (data) {\n logger.debug('handle pick data', data);\n that.getImageSource(key, level, track, identityId);\n if (onUploadSuccess)\n onUploadSuccess();\n })\n .catch(function (err) { return logger.debug('handle pick error', err); });\n };\n S3Image.prototype.handleClick = function (evt) {\n var onClick = this.props.onClick;\n if (onClick) {\n onClick(evt);\n }\n };\n S3Image.prototype.componentDidMount = function () {\n this._isMounted = true;\n this.load();\n };\n S3Image.prototype.componentWillUnmount = function () {\n this._isMounted = false;\n };\n S3Image.prototype.componentDidUpdate = function (prevProps) {\n var update = prevProps.path !== this.props.path ||\n prevProps.imgKey !== this.props.imgKey ||\n prevProps.body !== this.props.body ||\n prevProps.level !== this.props.level;\n if (update) {\n this.load();\n }\n };\n S3Image.prototype.imageEl = function (src, theme) {\n if (!src) {\n return null;\n }\n var _a = this.props, className = _a.className, selected = _a.selected;\n var containerStyle = { position: 'relative' };\n return (React.createElement(\"div\", { style: containerStyle, onClick: this.handleClick },\n React.createElement(\"img\", { className: className, style: theme.photoImg, src: src, onLoad: this.handleOnLoad, onError: this.handleOnError }),\n React.createElement(\"div\", { style: selected ? theme.overlaySelected : theme.overlay })));\n };\n S3Image.prototype.render = function () {\n var _a = this.props, hidden = _a.hidden, style = _a.style, picker = _a.picker, translate = _a.translate, imgKey = _a.imgKey;\n var src = this.state.src;\n if (translate) {\n src =\n typeof translate === 'string'\n ? translate\n : translate({\n type: 'image',\n key: imgKey,\n content: src,\n });\n }\n if (!src && !picker) {\n return null;\n }\n var theme = this.props.theme || AmplifyTheme_1.default;\n var photoStyle = hidden\n ? AmplifyTheme_1.default.hidden\n : Object.assign({}, theme.photo, style);\n return (React.createElement(\"div\", { style: photoStyle },\n photoStyle ? this.imageEl(src, theme) : null,\n picker ? (React.createElement(\"div\", null,\n React.createElement(PhotoPicker_1.PhotoPicker, { key: \"picker\", onPick: this.handlePick, theme: theme }))) : null));\n };\n return S3Image;\n}(React.Component));\nexports.S3Image = S3Image;\n/**\n * @deprecated use named import\n */\nexports.default = S3Image;\n//# sourceMappingURL=S3Image.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar Picker_1 = require(\"./Picker\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../Amplify-UI/Amplify-UI-Theme\"));\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar PickerPreview = {\n maxWidth: '100%',\n};\nvar logger = new core_1.ConsoleLogger('PhotoPicker');\nvar PhotoPicker = /** @class */ (function (_super) {\n __extends(PhotoPicker, _super);\n function PhotoPicker(props) {\n var _this = _super.call(this, props) || this;\n _this.handlePick = _this.handlePick.bind(_this);\n _this.state = {\n previewSrc: props.previewSrc,\n };\n return _this;\n }\n PhotoPicker.prototype.handlePick = function (data) {\n var that = this;\n var file = data.file, name = data.name, size = data.size, type = data.type;\n var _a = this.props, preview = _a.preview, onPick = _a.onPick, onLoad = _a.onLoad;\n if (onPick) {\n onPick(data);\n }\n if (preview) {\n var reader = new FileReader();\n reader.onload = function (e) {\n var url = e.target.result;\n // @ts-ignore\n that.setState({ previewSrc: url });\n if (onLoad) {\n onLoad(url);\n }\n };\n reader.readAsDataURL(file);\n }\n };\n PhotoPicker.prototype.render = function () {\n var preview = this.props.preview;\n var previewSrc = this.state.previewSrc;\n var headerText = this.props.headerText || 'Photos';\n var headerHint = this.props.headerHint || 'Add your photos by clicking below';\n var title = this.props.title || 'Select a Photo';\n var theme = this.props.theme || Amplify_UI_Theme_1.default;\n var previewStyle = Object.assign({}, PickerPreview, theme.pickerPreview);\n var previewHidden = !(preview && preview !== 'hidden');\n return (React.createElement(Amplify_UI_Components_React_1.FormSection, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.SectionHeader, { theme: theme, hint: headerHint }, core_1.I18n.get(headerText)),\n React.createElement(Amplify_UI_Components_React_1.SectionBody, { theme: theme }, previewSrc ? (previewHidden ? ('The image has been selected') : (React.createElement(\"img\", { src: previewSrc, style: previewStyle }))) : (React.createElement(Amplify_UI_Components_React_1.PhotoPlaceholder, { theme: theme }))),\n React.createElement(Picker_1.Picker, { title: title, accept: \"image/*\", theme: theme, onPick: this.handlePick })));\n };\n return PhotoPicker;\n}(React.Component));\nexports.PhotoPicker = PhotoPicker;\n/**\n * @deprecated use named import\n */\nexports.default = PhotoPicker;\n//# sourceMappingURL=PhotoPicker.js.map","\"use strict\";\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 */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction calcKey(file, fileToKey) {\n var name = file.name, size = file.size, type = file.type;\n var key = encodeURI(name);\n if (fileToKey) {\n var callback_type = typeof fileToKey;\n if (callback_type === 'string') {\n key = fileToKey;\n }\n else if (callback_type === 'function') {\n key = fileToKey({ name: name, size: size, type: type });\n }\n else {\n key = encodeURI(JSON.stringify(fileToKey));\n }\n if (!key) {\n key = 'empty_key';\n }\n }\n return key.replace(/\\s/g, '_');\n}\nexports.calcKey = calcKey;\n//# sourceMappingURL=Common.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar storage_1 = require(\"@aws-amplify/storage\");\nvar AmplifyTheme_1 = __importDefault(require(\"../AmplifyTheme\"));\nvar TextPicker_1 = require(\"../Widget/TextPicker\");\nvar Common_1 = require(\"./Common\");\nvar logger = new core_1.ConsoleLogger('Storage.S3Text');\nvar S3Text = /** @class */ (function (_super) {\n __extends(S3Text, _super);\n function S3Text(props) {\n var _this = _super.call(this, props) || this;\n _this._isMounted = false;\n _this.handleOnLoad = _this.handleOnLoad.bind(_this);\n _this.handleOnError = _this.handleOnError.bind(_this);\n _this.handlePick = _this.handlePick.bind(_this);\n _this.handleClick = _this.handleClick.bind(_this);\n var text = props.text, textKey = props.textKey;\n _this.state = {\n text: text || '',\n textKey: textKey || '',\n };\n return _this;\n }\n S3Text.prototype.getText = function (key, level, track, identityId) {\n var _this = this;\n if (!storage_1.Storage || typeof storage_1.Storage.get !== 'function') {\n throw new Error('No Storage module found, please ensure @aws-amplify/storage is imported');\n }\n storage_1.Storage.get(key, {\n download: true,\n level: level ? level : 'public',\n track: track,\n identityId: identityId,\n })\n .then(function (data) {\n logger.debug(data);\n // @ts-ignore\n var text = data.Body.toString('utf8');\n if (_this._isMounted) {\n _this.setState({ text: text });\n }\n _this.handleOnLoad(text);\n })\n .catch(function (err) {\n logger.debug(err);\n _this.handleOnError(err);\n });\n };\n S3Text.prototype.load = function () {\n var _a = this.props, path = _a.path, textKey = _a.textKey, body = _a.body, contentType = _a.contentType, level = _a.level, track = _a.track, identityId = _a.identityId;\n if (!textKey && !path) {\n logger.debug('empty textKey and path');\n return;\n }\n var that = this;\n var key = textKey || path;\n logger.debug('loading ' + key + '...');\n if (body) {\n var type = contentType || 'text/*';\n if (!storage_1.Storage || typeof storage_1.Storage.put !== 'function') {\n throw new Error('No Storage module found, please ensure @aws-amplify/storage is imported');\n }\n var ret = storage_1.Storage.put(key, body, {\n contentType: type,\n level: level ? level : 'public',\n track: track,\n });\n ret\n .then(function (data) {\n logger.debug(data);\n that.getText(key, level, track, identityId);\n })\n .catch(function (err) { return logger.debug(err); });\n }\n else {\n that.getText(key, level, track, identityId);\n }\n };\n S3Text.prototype.handleOnLoad = function (text) {\n var onLoad = this.props.onLoad;\n if (onLoad) {\n onLoad(text);\n }\n };\n S3Text.prototype.handleOnError = function (err) {\n var onError = this.props.onError;\n if (onError) {\n onError(err);\n }\n };\n S3Text.prototype.handlePick = function (data) {\n var that = this;\n var path = this.props.path || '';\n var _a = this.props, textKey = _a.textKey, level = _a.level, fileToKey = _a.fileToKey, track = _a.track, identityId = _a.identityId;\n var file = data.file, name = data.name, size = data.size, type = data.type;\n var key = textKey || path + Common_1.calcKey(data, fileToKey);\n if (!storage_1.Storage || typeof storage_1.Storage.put !== 'function') {\n throw new Error('No Storage module found, please ensure @aws-amplify/storage is imported');\n }\n storage_1.Storage.put(key, file, {\n level: level ? level : 'public',\n contentType: type,\n track: track,\n })\n .then(function (data) {\n logger.debug('handle pick data', data);\n that.getText(key, level, track, identityId);\n })\n .catch(function (err) { return logger.debug('handle pick error', err); });\n };\n S3Text.prototype.handleClick = function (evt) {\n var onClick = this.props.onClick;\n if (onClick) {\n onClick(evt);\n }\n };\n S3Text.prototype.componentDidMount = function () {\n this._isMounted = true;\n this.load();\n };\n S3Text.prototype.componentWillUnmount = function () {\n this._isMounted = false;\n };\n S3Text.prototype.componentDidUpdate = function (prevProps) {\n var update = prevProps.path !== this.props.path ||\n prevProps.textKey !== this.props.textKey ||\n prevProps.body !== this.props.body;\n if (update) {\n this.load();\n }\n };\n S3Text.prototype.textEl = function (text, theme) {\n if (!text) {\n return null;\n }\n var selected = this.props.selected;\n var containerStyle = { position: 'relative' };\n return (React.createElement(\"div\", { style: containerStyle, onClick: this.handleClick },\n React.createElement(\"pre\", { style: theme.pre }, text),\n React.createElement(\"div\", { style: selected ? theme.overlaySelected : theme.overlay })));\n };\n S3Text.prototype.render = function () {\n var _a = this.props, hidden = _a.hidden, style = _a.style, picker = _a.picker, translate = _a.translate, textKey = _a.textKey;\n var text = this.state.text;\n if (translate) {\n text =\n typeof translate === 'string'\n ? translate\n : translate({\n type: 'text',\n key: textKey,\n content: text,\n });\n }\n if (!text && !picker) {\n return null;\n }\n var theme = this.props.theme || AmplifyTheme_1.default;\n var textStyle = hidden\n ? AmplifyTheme_1.default.hidden\n : Object.assign({}, theme.text, style);\n return (React.createElement(\"div\", { style: textStyle },\n textStyle ? this.textEl(text, theme) : null,\n picker ? (React.createElement(\"div\", null,\n React.createElement(TextPicker_1.TextPicker, { key: \"picker\", onPick: this.handlePick, theme: theme }))) : null));\n };\n return S3Text;\n}(React.Component));\nexports.S3Text = S3Text;\n/**\n * @deprecated use named import\n */\nexports.default = S3Text;\n//# sourceMappingURL=S3Text.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar AmplifyTheme_1 = __importDefault(require(\"../AmplifyTheme\"));\nvar Picker_1 = require(\"./Picker\");\nvar Container = {};\nvar PickerPreview = {\n maxWidth: '100%',\n};\nvar logger = new core_1.ConsoleLogger('TextPicker');\nvar TextPicker = /** @class */ (function (_super) {\n __extends(TextPicker, _super);\n function TextPicker(props) {\n var _this = _super.call(this, props) || this;\n _this.handlePick = _this.handlePick.bind(_this);\n _this.state = {\n previewText: props.previewText,\n };\n return _this;\n }\n TextPicker.prototype.handlePick = function (data) {\n var that = this;\n var file = data.file, name = data.name, size = data.size, type = data.type;\n var _a = this.props, preview = _a.preview, onPick = _a.onPick, onLoad = _a.onLoad;\n if (onPick) {\n onPick(data);\n }\n if (preview) {\n var reader = new FileReader();\n reader.onload = function (e) {\n var text = e.target.result;\n // @ts-ignore\n that.setState({ previewText: text });\n if (onLoad) {\n onLoad(text);\n }\n };\n reader.readAsText(file);\n }\n };\n TextPicker.prototype.render = function () {\n var preview = this.props.preview;\n var previewText = this.state.previewText;\n var title = this.props.title || 'Pick a File';\n var theme = this.props.theme || AmplifyTheme_1.default;\n var containerStyle = Object.assign({}, Container, theme.picker);\n var previewStyle = Object.assign({}, PickerPreview, theme.pickerPreview, theme.halfHeight, preview && preview !== 'hidden' ? {} : AmplifyTheme_1.default.hidden);\n return (React.createElement(\"div\", { style: containerStyle },\n previewText ? (React.createElement(\"div\", { style: previewStyle },\n React.createElement(\"pre\", { style: theme.pre }, previewText))) : null,\n React.createElement(Picker_1.Picker, { title: title, accept: \"text/*\", theme: theme, onPick: this.handlePick })));\n };\n return TextPicker;\n}(React.Component));\nexports.TextPicker = TextPicker;\n/**\n * @deprecated use named import\n */\nexports.default = TextPicker;\n//# sourceMappingURL=TextPicker.js.map","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","\"use strict\";\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\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 */\nvar core_1 = require(\"@aws-amplify/core\");\nvar AmplifyI18n_1 = require(\"./AmplifyI18n\");\n__export(require(\"./AmplifyUI\"));\n__export(require(\"./Auth\"));\n__export(require(\"./Analytics\"));\n__export(require(\"./Storage\"));\n__export(require(\"./Widget\"));\n__export(require(\"./API\"));\n__export(require(\"./Interactions\"));\n__export(require(\"./XR\"));\nvar AmplifyTheme_1 = require(\"./AmplifyTheme\");\nexports.AmplifyTheme = AmplifyTheme_1.Bootstrap;\nvar AmplifyMessageMap_1 = require(\"./AmplifyMessageMap\");\nexports.AmplifyMessageMapEntries = AmplifyMessageMap_1.MapEntries;\nvar AmplifyUI_1 = require(\"./AmplifyUI\");\nexports.transparent1X1 = AmplifyUI_1.transparent1X1;\nexports.white1X1 = AmplifyUI_1.white1X1;\ncore_1.I18n.putVocabularies(AmplifyI18n_1.dict);\n//# sourceMappingURL=index.js.map","\"use strict\";\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 */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dict = {\n de: {\n 'Sign In': 'Anmelden',\n 'Sign Up': 'Registrieren',\n 'Sign Out': 'Abmelden',\n 'Sign in to your account': 'Melden Sie sich mit Ihrem Account an',\n Username: 'Benutzername',\n Password: 'Passwort',\n 'Enter your username': 'Geben Sie Ihren Benutzernamen ein',\n 'Enter your password': 'Geben Sie Ihr Passwort ein',\n 'No account? ': 'Kein Account? ',\n 'Forgot your password? ': 'Passwort vergessen? ',\n 'Reset password': 'Passwort zurücksetzen',\n 'User does not exist': 'Dieser Benutzer existiert nicht',\n 'User already exists': 'Dieser Benutzer existiert bereits',\n 'Incorrect username or password': 'Falscher Benutzername oder falsches Passwort',\n 'Invalid password format': 'Ungültiges Passwort-Format',\n 'Create account': 'Hier registrieren',\n 'Forgot Password': 'Passwort vergessen',\n 'Change Password': 'Passwort ändern',\n 'New Password': 'Neues Passwort',\n Email: 'Email',\n 'Phone Number': 'Telefonnummer',\n 'Confirm a Code': 'Code bestätigen',\n 'Confirm Sign In': 'Anmeldung bestätigen',\n 'Confirm Sign Up': 'Registrierung bestätigen',\n 'Back to Sign In': 'Zurück zur Anmeldung',\n 'Send Code': 'Code senden',\n Confirm: 'Bestätigen',\n 'Resend Code': 'Code erneut senden',\n Submit: 'Abschicken',\n Skip: 'Überspringen',\n Verify: 'Verifizieren',\n 'Verify Contact': 'Kontakt verifizieren',\n Code: 'Code',\n 'Confirmation Code': 'Bestätigungs-Code',\n 'Lost your code? ': 'Code verloren? ',\n 'Account recovery requires verified contact information': 'Zurücksetzen des Account benötigt einen verifizierten Account',\n 'Invalid phone number format': \"Ung\\u00FCltiges Telefonummern-Format.\\n Benutze eine Nummer im Format: +12345678900\",\n 'Create Account': 'Account erstellen',\n 'Have an account? ': 'Schon registriert? ',\n 'Sign in': 'Anmelden',\n 'Create a new account': 'Erstelle einen neuen Account',\n 'Reset your password': 'Zurücksetzen des Passworts',\n 'An account with the given email already exists.': 'Ein Account mit dieser Email existiert bereits.',\n 'Username cannot be empty': 'Benutzername darf nicht leer sein',\n 'Password attempts exceeded': 'Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht',\n },\n fr: {\n Hello: 'Bonjour',\n 'Loading...': 'Chargement...',\n 'Sign In': 'Se connecter',\n 'Sign In with Amazon': 'Se connecter avec Amazon',\n 'Sign In with Facebook': 'Se connecter avec Facebook',\n 'Sign In with Google': 'Se connecter avec Google',\n 'Sign in with AWS': 'Se connecter avec AWS',\n 'Sign Up': \"S'inscrire\",\n 'Sign Out': 'Déconnexion',\n 'Forgot Password': 'Mot de passe oublié',\n Username: \"Nom d'utilisateur\",\n Password: 'Mot de passe',\n 'Change Password': 'Modifier le mot de passe',\n Change: 'Modifier',\n 'New Password': 'Nouveau mot de passe',\n Email: 'Email',\n 'Phone Number': 'Numéro de téléphone',\n 'Confirm a Code': 'Confirmer un code',\n 'Confirm Sign In': 'Confirmer la connexion',\n 'Confirm Sign Up': \"Confirmer l'inscription\",\n 'Back to Sign In': 'Retour à la connexion',\n Send: 'Envoyer',\n 'Send Code': \"M'envoyer un code\",\n Confirm: 'Confirmer',\n SMS: 'SMS',\n 'Confirm SMS Code': 'Confirmer le code SMS',\n 'Confirm TOTP Code': 'Confirmer le code TOTP',\n 'Resend a Code': 'Renvoyer un code',\n Submit: 'Soumettre',\n Skip: 'Passer',\n Verify: 'Vérifier',\n 'Verify Contact': 'Vérifier le contact',\n Code: 'Code',\n 'Confirmation Code': 'Code de confirmation',\n 'Account recovery requires verified contact information': 'La récupération du compte nécessite des informations de contact vérifiées',\n 'User does not exist': \"L'utilisateur n'existe pas\",\n 'User already exists': \"L'utilisateur existe déjà\",\n 'Incorrect username or password': 'Identifiant ou mot de passe incorrect',\n 'Invalid password format': 'Format de mot de passe invalide',\n 'Invalid phone number format': \"Format de num\\u00E9ro de t\\u00E9l\\u00E9phone invalide. Veuillez utiliser un format +12345678900\",\n 'Username/client id combination not found.': \"L'utilisateur n'existe pas\",\n 'Network error': 'Erreur réseau',\n 'Sign in to your account': 'Connexion à votre compte',\n 'Forgot your password? ': 'Mot de passe oublié ? ',\n 'Reset password': 'Réinitialisez votre mot de passe',\n 'No account? ': 'Pas de compte ? ',\n 'Create account': 'Créer un compte',\n 'Create Account': 'Créer un compte',\n 'Have an account? ': 'Déjà un compte ? ',\n 'Sign in': 'Se connecter',\n 'Create a new account': 'Créer un nouveau compte',\n 'Reset your password': 'Réinitialisez votre mot de passe',\n 'Enter your username': \"Saisissez votre nom d'utilisateur\",\n 'Enter your password': 'Saisissez votre mot de passe',\n 'Enter your phone number': 'Saisissez votre numéro de téléphone',\n 'Enter your email': 'Saisissez votre adresse email',\n 'Enter your code': 'Saisissez cotre code de confirmation',\n 'Lost your code? ': 'Vous avez perdu votre code ? ',\n 'Resend Code': 'Renvoyer le code',\n or: 'ou',\n 'An account with the given email already exists.': 'Un utilisateur avec cette adresse email existe déjà.',\n 'Username cannot be empty': \"Le nom d'utilisateur doit être renseigné\",\n },\n es: {\n 'Sign In': 'Registrarse',\n 'Sign Up': 'Regístrate',\n 'Sign Out': 'Desconectar',\n 'Forgot Password': 'Se te olvidó tu contraseña',\n Username: 'Nombre de usuario',\n Password: 'Contraseña',\n 'Change Password': 'Cambia la contraseña',\n 'New Password': 'Nueva contraseña',\n Email: 'Email',\n 'Phone Number': 'Número de teléfono',\n 'Confirm a Code': 'Confirmar un código',\n 'Confirm Sign In': 'Confirmar inicio de sesión',\n 'Confirm Sign Up': 'Confirmar Registrarse',\n 'Back to Sign In': 'Volver a Iniciar sesión',\n 'Send Code': 'Enviar código',\n Confirm: 'Confirmar',\n 'Resend a Code': 'Reenviar un código',\n Submit: 'Enviar',\n Skip: 'Omitir',\n Verify: 'Verificar',\n 'Verify Contact': 'Verificar contacto',\n Code: 'Código',\n 'Account recovery requires verified contact information': 'La recuperación de la cuenta requiere información de contacto verificada',\n 'User does not exist': 'el usuario no existe',\n 'User already exists': 'El usuario ya existe',\n 'Incorrect username or password': 'Nombre de usuario o contraseña incorrecta',\n 'Invalid password format': 'Formato de contraseña inválido',\n 'Invalid phone number format': \"Formato de n\\u00FAmero de tel\\u00E9fono inv\\u00E1lido.\\nUtilice el formato de n\\u00FAmero de tel\\u00E9fono +12345678900\",\n },\n it: {\n 'Account recovery requires verified contact information': 'Ripristino del conto richiede un account verificati',\n 'An account with the given email already exists.': 'Un account con questa email esiste già.',\n 'Back to Sign In': 'Torna alla Accesso',\n 'Change Password': 'Cambia la password',\n Code: 'Codice',\n Confirm: 'Conferma',\n 'Confirm Sign In': 'Conferma di applicazione',\n 'Confirm Sign Up': 'Registrazione Conferma',\n 'Confirm a Code': 'Codice Conferma',\n 'Confirmation Code': 'Codice di verifica',\n 'Create Account': 'Crea account',\n 'Create a new account': 'Creare un nuovo account',\n 'Create account': 'Registrati',\n Email: 'E-mail',\n 'Enter your password': 'Inserire la password',\n 'Enter your username': 'Inserisci il tuo nome utente',\n 'Forgot your password?': 'Password dimenticata?',\n 'Forgot Password': 'Password dimenticata',\n 'Have an account? ': 'Già registrato?',\n 'Incorrect username or password': 'Nome utente o password errati',\n 'Invalid password format': 'Formato della password non valido',\n 'Invalid phone number format': 'Utilizzo non valido Telefonummern formattare un numero nel formato :. 12.345.678,9 mille',\n 'Lost your code?': 'Perso codice?',\n 'New Password': 'Nuova password',\n 'No account? ': 'Nessun account?',\n Password: 'Password',\n 'Password attempts exceeded': 'Il numero massimo di tentativi di accesso falliti è stato raggiunto',\n 'Phone Number': 'Numero di telefono',\n 'Resend Code': 'Codice Rispedisci',\n 'Reset password': 'Ripristina password',\n 'Reset your password': 'Resetta password',\n 'Send Code': 'Invia codice',\n 'Sign In': 'Accesso',\n 'Sign Out': 'Esci',\n 'Sign Up': 'Iscriviti',\n 'Sign in': 'Accesso',\n 'Sign in to your account': 'Accedi con il tuo account a',\n Skip: 'Salta',\n Submit: 'Sottoscrivi',\n 'User already exists': 'Questo utente esiste già',\n 'User does not exist': 'Questo utente non esiste',\n Username: 'Nome utente',\n 'Username cannot be empty': 'Nome utente non può essere vuoto',\n Verify: 'Verifica',\n 'Verify Contact': 'Contatto verifica',\n },\n zh: {\n 'Sign In': '登录',\n 'Sign Up': '注册',\n 'Sign Out': '退出',\n 'Forgot Password': '忘记密码',\n Username: '用户名',\n Password: '密码',\n 'Change Password': '改变密码',\n 'New Password': '新密码',\n Email: '邮箱',\n 'Phone Number': '电话',\n 'Confirm a Code': '确认码',\n 'Confirm Sign In': '确认登录',\n 'Confirm Sign Up': '确认注册',\n 'Back to Sign In': '回到登录',\n 'Send Code': '发送确认码',\n Confirm: '确认',\n 'Resend a Code': '重发确认码',\n Submit: '提交',\n Skip: '跳过',\n Verify: '验证',\n 'Verify Contact': '验证联系方式',\n Code: '确认码',\n 'Account recovery requires verified contact information': '账户恢复需要验证过的联系方式',\n 'User does not exist': '用户不存在',\n 'User already exists': '用户已经存在',\n 'Incorrect username or password': '用户名或密码错误',\n 'Invalid password format': '密码格式错误',\n 'Invalid phone number format': '电话格式错误,请使用格式 +12345678900',\n },\n ja: {\n 'Sign In': 'サインイン ',\n 'Sign Up': '登録 ',\n 'Sign Out': 'サインアウト ',\n 'Sign in to your account': 'アカウントにサインイン ',\n Username: 'ユーザー名 ',\n Password: 'パスワード ',\n 'Enter your username': 'ユーザー名を入力 ',\n 'Enter your password': 'パスワードを入力 ',\n 'No account? ': 'アカウントが無いとき ',\n 'Forgot your password? ': 'パスワードを忘れましたか? ',\n 'Reset password': 'パスワードをリセット ',\n 'User does not exist': 'ユーザーが存在しません ',\n 'User already exists': '既にユーザーが存在しています ',\n 'Incorrect username or password': 'ユーザー名かパスワードが異なります ',\n 'Invalid password format': 'パスワードの形式が無効です ',\n 'Create account': 'アカウントを作る ',\n 'Forgot Password': 'パスワードを忘れた ',\n 'Change Password': 'パスワードを変える ',\n 'New Password': '新しいパスワード',\n Email: 'メールアドレス',\n 'Phone Number': '電話番号',\n 'Confirm a Code': 'コードを確認',\n 'Confirm Sign In': 'サインインする',\n 'Confirm Sign Up': '登録する',\n 'Back to Sign In': 'サインインに戻る',\n 'Send Code': 'コードを送信',\n Confirm: '確定',\n 'Resend Code': 'コードを再送信',\n Submit: '送信',\n Skip: 'スキップ',\n Verify: '確認',\n 'Verify Contact': '連絡先を確認',\n Code: 'コード',\n 'Confirmation Code': '確認コード',\n 'Lost your code? ': 'コードを失くしましたか?',\n 'Account recovery requires verified contact information': 'アカウントの復旧には確認済みの連絡先が必要です',\n 'Invalid phone number format': '不正な電話番号の形式です。\\n+12345678900 の形式で入力してください',\n 'Create Account': 'アカウントを作る',\n 'Have an account? ': 'アカウントを持っていますか?',\n 'Sign in': 'サインイン',\n 'Create a new account': '新しいアカウントを作る',\n 'Reset your password': 'パスワードをリセットする',\n 'An account with the given email already exists.': '入力されたメールアドレスのアカウントが既に存在します',\n 'Username cannot be empty': 'ユーザー名は入力必須です',\n 'Password attempts exceeded': 'サインインの試行回数が上限に達しました',\n 'Sign In with Google': 'Googleでサインイン',\n 'Sign In with Facebook': 'Facebookでサインイン',\n },\n};\n//# sourceMappingURL=AmplifyI18n.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar Authenticator_1 = require(\"./Authenticator\");\nvar Authenticator_2 = require(\"./Authenticator\");\nexports.Authenticator = Authenticator_2.Authenticator;\nvar AuthPiece_1 = require(\"./AuthPiece\");\nexports.AuthPiece = AuthPiece_1.AuthPiece;\nvar SignIn_1 = require(\"./SignIn\");\nexports.SignIn = SignIn_1.SignIn;\nvar ConfirmSignIn_1 = require(\"./ConfirmSignIn\");\nexports.ConfirmSignIn = ConfirmSignIn_1.ConfirmSignIn;\nvar SignOut_1 = require(\"./SignOut\");\nexports.SignOut = SignOut_1.SignOut;\nvar RequireNewPassword_1 = require(\"./RequireNewPassword\");\nexports.RequireNewPassword = RequireNewPassword_1.RequireNewPassword;\nvar SignUp_1 = require(\"./SignUp\");\nexports.SignUp = SignUp_1.SignUp;\nvar ConfirmSignUp_1 = require(\"./ConfirmSignUp\");\nexports.ConfirmSignUp = ConfirmSignUp_1.ConfirmSignUp;\nvar VerifyContact_1 = require(\"./VerifyContact\");\nexports.VerifyContact = VerifyContact_1.VerifyContact;\nvar ForgotPassword_1 = require(\"./ForgotPassword\");\nexports.ForgotPassword = ForgotPassword_1.ForgotPassword;\nvar Greetings_1 = require(\"./Greetings\");\nexports.Greetings = Greetings_1.Greetings;\nvar FederatedSignIn_1 = require(\"./FederatedSignIn\");\nexports.FederatedSignIn = FederatedSignIn_1.FederatedSignIn;\nexports.FederatedButtons = FederatedSignIn_1.FederatedButtons;\nvar TOTPSetup_1 = require(\"./TOTPSetup\");\nexports.TOTPSetup = TOTPSetup_1.TOTPSetup;\nvar Loading_1 = require(\"./Loading\");\nexports.Loading = Loading_1.Loading;\n__export(require(\"./Provider\"));\n__export(require(\"./common/types\"));\nfunction withAuthenticator(Comp, includeGreetings, authenticatorComponents, federated, theme, signUpConfig) {\n if (includeGreetings === void 0) { includeGreetings = false; }\n if (authenticatorComponents === void 0) { authenticatorComponents = []; }\n if (federated === void 0) { federated = null; }\n if (theme === void 0) { theme = null; }\n if (signUpConfig === void 0) { signUpConfig = {}; }\n return /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1(props) {\n var _this = _super.call(this, props) || this;\n _this.handleAuthStateChange = _this.handleAuthStateChange.bind(_this);\n _this.state = {\n authState: props.authState || null,\n authData: props.authData || null,\n };\n _this.authConfig = {};\n if (typeof includeGreetings === 'object' && includeGreetings !== null) {\n _this.authConfig = Object.assign(_this.authConfig, includeGreetings);\n }\n else {\n _this.authConfig = {\n includeGreetings: includeGreetings,\n authenticatorComponents: authenticatorComponents,\n federated: federated,\n theme: theme,\n signUpConfig: signUpConfig,\n };\n }\n return _this;\n }\n class_1.prototype.handleAuthStateChange = function (state, data) {\n this.setState({ authState: state, authData: data });\n };\n class_1.prototype.render = function () {\n var _a = this.state, authState = _a.authState, authData = _a.authData;\n if (authState === 'signedIn') {\n return (React.createElement(React.Fragment, null,\n this.authConfig.includeGreetings ? (React.createElement(Authenticator_1.Authenticator, __assign({}, this.props, { theme: this.authConfig.theme, federated: this.authConfig.federated || this.props.federated, hideDefault: this.authConfig.authenticatorComponents &&\n this.authConfig.authenticatorComponents.length > 0, signUpConfig: this.authConfig.signUpConfig, usernameAttributes: this.authConfig.usernameAttributes, onStateChange: this.handleAuthStateChange, children: this.authConfig.authenticatorComponents || [] }))) : null,\n React.createElement(Comp, __assign({}, this.props, { authState: authState, authData: authData, onStateChange: this.handleAuthStateChange }))));\n }\n return (React.createElement(Authenticator_1.Authenticator, __assign({}, this.props, { theme: this.authConfig.theme, federated: this.authConfig.federated || this.props.federated, hideDefault: this.authConfig.authenticatorComponents &&\n this.authConfig.authenticatorComponents.length > 0, signUpConfig: this.authConfig.signUpConfig, usernameAttributes: this.authConfig.usernameAttributes, onStateChange: this.handleAuthStateChange, children: this.authConfig.authenticatorComponents || [] })));\n };\n return class_1;\n }(React.Component));\n}\nexports.withAuthenticator = withAuthenticator;\nvar AuthenticatorWrapper = /** @class */ (function (_super) {\n __extends(AuthenticatorWrapper, _super);\n function AuthenticatorWrapper(props) {\n var _this = _super.call(this, props) || this;\n _this.state = { auth: 'init' };\n _this.handleAuthState = _this.handleAuthState.bind(_this);\n _this.renderChildren = _this.renderChildren.bind(_this);\n return _this;\n }\n AuthenticatorWrapper.prototype.handleAuthState = function (state, data) {\n this.setState({ auth: state, authData: data });\n };\n AuthenticatorWrapper.prototype.renderChildren = function () {\n // @ts-ignore\n return this.props.children(this.state.auth);\n };\n AuthenticatorWrapper.prototype.render = function () {\n return (React.createElement(\"div\", null,\n React.createElement(Authenticator_1.Authenticator, __assign({}, this.props, { onStateChange: this.handleAuthState })),\n this.renderChildren()));\n };\n return AuthenticatorWrapper;\n}(React.Component));\nexports.AuthenticatorWrapper = AuthenticatorWrapper;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.signUpWithUsernameFields = [\n {\n label: 'Username',\n key: 'username',\n required: true,\n placeholder: 'Username',\n displayOrder: 1,\n },\n {\n label: 'Password',\n key: 'password',\n required: true,\n placeholder: 'Password',\n type: 'password',\n displayOrder: 2,\n },\n {\n label: 'Email',\n key: 'email',\n required: true,\n placeholder: 'Email',\n type: 'email',\n displayOrder: 3,\n },\n {\n label: 'Phone Number',\n key: 'phone_number',\n placeholder: 'Phone Number',\n required: true,\n displayOrder: 4,\n },\n];\nexports.signUpWithEmailFields = [\n {\n label: 'Email',\n key: 'email',\n required: true,\n placeholder: 'Email',\n type: 'email',\n displayOrder: 1,\n },\n {\n label: 'Password',\n key: 'password',\n required: true,\n placeholder: 'Password',\n type: 'password',\n displayOrder: 2,\n },\n {\n label: 'Phone Number',\n key: 'phone_number',\n placeholder: 'Phone Number',\n required: true,\n displayOrder: 3,\n },\n];\nexports.signUpWithPhoneNumberFields = [\n {\n label: 'Phone Number',\n key: 'phone_number',\n placeholder: 'Phone Number',\n required: true,\n displayOrder: 1,\n },\n {\n label: 'Password',\n key: 'password',\n required: true,\n placeholder: 'Password',\n type: 'password',\n displayOrder: 2,\n },\n {\n label: 'Email',\n key: 'email',\n required: true,\n placeholder: 'Email',\n type: 'email',\n displayOrder: 3,\n },\n];\n//# sourceMappingURL=default-sign-up-fields.js.map","'use strict';\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nvar React = require('react');\n\nvar PropTypes = require('prop-types'); // qr.js doesn't handle error level of zero (M) so we need to do it right,\n// thus the deep require.\n\n\nvar QRCodeImpl = require('qr.js/lib/QRCode');\n\nvar ErrorCorrectLevel = require('qr.js/lib/ErrorCorrectLevel');\n\nfunction getBackingStorePixelRatio(ctx) {\n return (// $FlowFixMe\n ctx.webkitBackingStorePixelRatio || // $FlowFixMe\n ctx.mozBackingStorePixelRatio || // $FlowFixMe\n ctx.msBackingStorePixelRatio || // $FlowFixMe\n ctx.oBackingStorePixelRatio || // $FlowFixMe\n ctx.backingStorePixelRatio || 1\n );\n} // Convert from UTF-16, forcing the use of byte-mode encoding in our QR Code.\n// This allows us to encode Hanji, Kanji, emoji, etc. Ideally we'd do more\n// detection and not resort to byte-mode if possible, but we're trading off\n// a smaller library for a smaller amount of data we can potentially encode.\n// Based on http://jonisalonen.com/2012/from-utf-16-to-utf-8-in-javascript/\n\n\nfunction convertStr(str) {\n var out = '';\n\n for (var i = 0; i < str.length; i++) {\n var charcode = str.charCodeAt(i);\n\n if (charcode < 0x0080) {\n out += String.fromCharCode(charcode);\n } else if (charcode < 0x0800) {\n out += String.fromCharCode(0xc0 | charcode >> 6);\n out += String.fromCharCode(0x80 | charcode & 0x3f);\n } else if (charcode < 0xd800 || charcode >= 0xe000) {\n out += String.fromCharCode(0xe0 | charcode >> 12);\n out += String.fromCharCode(0x80 | charcode >> 6 & 0x3f);\n out += String.fromCharCode(0x80 | charcode & 0x3f);\n } else {\n // This is a surrogate pair, so we'll reconsitute the pieces and work\n // from that\n i++;\n charcode = 0x10000 + ((charcode & 0x3ff) << 10 | str.charCodeAt(i) & 0x3ff);\n out += String.fromCharCode(0xf0 | charcode >> 18);\n out += String.fromCharCode(0x80 | charcode >> 12 & 0x3f);\n out += String.fromCharCode(0x80 | charcode >> 6 & 0x3f);\n out += String.fromCharCode(0x80 | charcode & 0x3f);\n }\n }\n\n return out;\n}\n\nvar DEFAULT_PROPS = {\n size: 128,\n level: 'L',\n bgColor: '#FFFFFF',\n fgColor: '#000000'\n};\nvar PROP_TYPES = {\n value: PropTypes.string.isRequired,\n size: PropTypes.number,\n level: PropTypes.oneOf(['L', 'M', 'Q', 'H']),\n bgColor: PropTypes.string,\n fgColor: PropTypes.string\n};\n\nvar QRCodeCanvas =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(QRCodeCanvas, _React$Component);\n\n function QRCodeCanvas() {\n var _ref;\n\n var _temp, _this;\n\n _classCallCheck(this, QRCodeCanvas);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_ref = QRCodeCanvas.__proto__ || Object.getPrototypeOf(QRCodeCanvas)).call.apply(_ref, [this].concat(args))), Object.defineProperty(_assertThisInitialized(_this), \"_canvas\", {\n configurable: true,\n enumerable: true,\n writable: true,\n value: void 0\n }), _temp));\n }\n\n _createClass(QRCodeCanvas, [{\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n var _this2 = this;\n\n return Object.keys(QRCodeCanvas.propTypes).some(function (k) {\n return _this2.props[k] !== nextProps[k];\n });\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.update();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n this.update();\n }\n }, {\n key: \"update\",\n value: function update() {\n var _props = this.props,\n value = _props.value,\n size = _props.size,\n level = _props.level,\n bgColor = _props.bgColor,\n fgColor = _props.fgColor; // We'll use type===-1 to force QRCode to automatically pick the best type\n\n var qrcode = new QRCodeImpl(-1, ErrorCorrectLevel[level]);\n qrcode.addData(convertStr(value));\n qrcode.make();\n\n if (this._canvas != null) {\n var canvas = this._canvas;\n var ctx = canvas.getContext('2d');\n\n if (!ctx) {\n return;\n }\n\n var cells = qrcode.modules;\n\n if (cells === null) {\n return;\n }\n\n var tileW = size / cells.length;\n var tileH = size / cells.length;\n var scale = (window.devicePixelRatio || 1) / getBackingStorePixelRatio(ctx);\n canvas.height = canvas.width = size * scale;\n ctx.scale(scale, scale);\n cells.forEach(function (row, rdx) {\n row.forEach(function (cell, cdx) {\n ctx && (ctx.fillStyle = cell ? fgColor : bgColor);\n var w = Math.ceil((cdx + 1) * tileW) - Math.floor(cdx * tileW);\n var h = Math.ceil((rdx + 1) * tileH) - Math.floor(rdx * tileH);\n ctx && ctx.fillRect(Math.round(cdx * tileW), Math.round(rdx * tileH), w, h);\n });\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n var _props2 = this.props,\n value = _props2.value,\n size = _props2.size,\n level = _props2.level,\n bgColor = _props2.bgColor,\n fgColor = _props2.fgColor,\n style = _props2.style,\n otherProps = _objectWithoutProperties(_props2, [\"value\", \"size\", \"level\", \"bgColor\", \"fgColor\", \"style\"]);\n\n var canvasStyle = _extends({\n height: size,\n width: size\n }, style);\n\n return React.createElement(\"canvas\", _extends({\n style: canvasStyle,\n height: size,\n width: size,\n ref: function ref(_ref2) {\n return _this3._canvas = _ref2;\n }\n }, otherProps));\n }\n }]);\n\n return QRCodeCanvas;\n}(React.Component);\n\nObject.defineProperty(QRCodeCanvas, \"defaultProps\", {\n configurable: true,\n enumerable: true,\n writable: true,\n value: DEFAULT_PROPS\n});\nObject.defineProperty(QRCodeCanvas, \"propTypes\", {\n configurable: true,\n enumerable: true,\n writable: true,\n value: PROP_TYPES\n});\n\nvar QRCodeSVG =\n/*#__PURE__*/\nfunction (_React$Component2) {\n _inherits(QRCodeSVG, _React$Component2);\n\n function QRCodeSVG() {\n _classCallCheck(this, QRCodeSVG);\n\n return _possibleConstructorReturn(this, (QRCodeSVG.__proto__ || Object.getPrototypeOf(QRCodeSVG)).apply(this, arguments));\n }\n\n _createClass(QRCodeSVG, [{\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n var _this4 = this;\n\n return Object.keys(QRCodeCanvas.propTypes).some(function (k) {\n return _this4.props[k] !== nextProps[k];\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _props3 = this.props,\n value = _props3.value,\n size = _props3.size,\n level = _props3.level,\n bgColor = _props3.bgColor,\n fgColor = _props3.fgColor,\n otherProps = _objectWithoutProperties(_props3, [\"value\", \"size\", \"level\", \"bgColor\", \"fgColor\"]); // We'll use type===-1 to force QRCode to automatically pick the best type\n\n\n var qrcode = new QRCodeImpl(-1, ErrorCorrectLevel[level]);\n qrcode.addData(convertStr(value));\n qrcode.make();\n var cells = qrcode.modules;\n\n if (cells === null) {\n return;\n } // Drawing strategy: instead of a rect per module, we're going to create a\n // single path for the dark modules and layer that on top of a light rect,\n // for a total of 2 DOM nodes. We pay a bit more in string concat but that's\n // way faster than DOM ops.\n // For level 1, 441 nodes -> 2\n // For level 40, 31329 -> 2\n\n\n var ops = [];\n cells.forEach(function (row, y) {\n var lastIsDark = false;\n var start = null;\n row.forEach(function (cell, x) {\n if (!cell && start !== null) {\n // M0 0h7v1H0z injects the space with the move and dropd the comma,\n // saving a char per operation\n ops.push(\"M\".concat(start, \" \").concat(y, \"h\").concat(x - start, \"v1H\").concat(start, \"z\"));\n start = null;\n return;\n } // end of row, clean up or skip\n\n\n if (x === row.length - 1) {\n if (!cell) {\n // We would have closed the op above already so this can only mean\n // 2+ light modules in a row.\n return;\n }\n\n if (start === null) {\n // Just a single dark module.\n ops.push(\"M\".concat(x, \",\").concat(y, \" h1v1H\").concat(x, \"z\"));\n } else {\n // Otherwise finish the current line.\n ops.push(\"M\".concat(start, \",\").concat(y, \" h\").concat(x + 1 - start, \"v1H\").concat(start, \"z\"));\n }\n\n return;\n }\n\n if (cell && start === null) {\n start = x;\n }\n });\n });\n return React.createElement(\"svg\", _extends({\n shapeRendering: \"crispEdges\",\n height: size,\n width: size,\n viewBox: \"0 0 \".concat(cells.length, \" \").concat(cells.length)\n }, otherProps), React.createElement(\"path\", {\n fill: bgColor,\n d: \"M0,0 h\".concat(cells.length, \"v\").concat(cells.length, \"H0z\")\n }), React.createElement(\"path\", {\n fill: fgColor,\n d: ops.join('')\n }));\n }\n }]);\n\n return QRCodeSVG;\n}(React.Component);\n\nObject.defineProperty(QRCodeSVG, \"defaultProps\", {\n configurable: true,\n enumerable: true,\n writable: true,\n value: DEFAULT_PROPS\n});\nObject.defineProperty(QRCodeSVG, \"propTypes\", {\n configurable: true,\n enumerable: true,\n writable: true,\n value: PROP_TYPES\n});\n\nvar QRCode = function QRCode(props) {\n var renderAs = props.renderAs,\n otherProps = _objectWithoutProperties(props, [\"renderAs\"]);\n\n var Component = renderAs === 'svg' ? QRCodeSVG : QRCodeCanvas;\n return React.createElement(Component, otherProps);\n};\n\nQRCode.defaultProps = _extends({\n renderAs: 'canvas'\n}, DEFAULT_PROPS);\nmodule.exports = QRCode;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","var BitByte = require('./8BitByte');\nvar RSBlock = require('./RSBlock');\nvar BitBuffer = require('./BitBuffer');\nvar util = require('./util');\nvar Polynomial = require('./Polynomial');\n\nfunction QRCode(typeNumber, errorCorrectLevel) {\n\tthis.typeNumber = typeNumber;\n\tthis.errorCorrectLevel = errorCorrectLevel;\n\tthis.modules = null;\n\tthis.moduleCount = 0;\n\tthis.dataCache = null;\n\tthis.dataList = [];\n}\n\n// for client side minification\nvar proto = QRCode.prototype;\n\nproto.addData = function(data) {\n\tvar newData = new BitByte(data);\n\tthis.dataList.push(newData);\n\tthis.dataCache = null;\n};\n\nproto.isDark = function(row, col) {\n\tif (row < 0 || this.moduleCount <= row || col < 0 || this.moduleCount <= col) {\n\t\tthrow new Error(row + \",\" + col);\n\t}\n\treturn this.modules[row][col];\n};\n\nproto.getModuleCount = function() {\n\treturn this.moduleCount;\n};\n\nproto.make = function() {\n\t// Calculate automatically typeNumber if provided is < 1\n\tif (this.typeNumber < 1 ){\n\t\tvar typeNumber = 1;\n\t\tfor (typeNumber = 1; typeNumber < 40; typeNumber++) {\n\t\t\tvar rsBlocks = RSBlock.getRSBlocks(typeNumber, this.errorCorrectLevel);\n\n\t\t\tvar buffer = new BitBuffer();\n\t\t\tvar totalDataCount = 0;\n\t\t\tfor (var i = 0; i < rsBlocks.length; i++) {\n\t\t\t\ttotalDataCount += rsBlocks[i].dataCount;\n\t\t\t}\n\n\t\t\tfor (var i = 0; i < this.dataList.length; i++) {\n\t\t\t\tvar data = this.dataList[i];\n\t\t\t\tbuffer.put(data.mode, 4);\n\t\t\t\tbuffer.put(data.getLength(), util.getLengthInBits(data.mode, typeNumber) );\n\t\t\t\tdata.write(buffer);\n\t\t\t}\n\t\t\tif (buffer.getLengthInBits() <= totalDataCount * 8)\n\t\t\t\tbreak;\n\t\t}\n\t\tthis.typeNumber = typeNumber;\n\t}\n\tthis.makeImpl(false, this.getBestMaskPattern() );\n};\n\nproto.makeImpl = function(test, maskPattern) {\n\t\n\tthis.moduleCount = this.typeNumber * 4 + 17;\n\tthis.modules = new Array(this.moduleCount);\n\t\n\tfor (var row = 0; row < this.moduleCount; row++) {\n\t\t\n\t\tthis.modules[row] = new Array(this.moduleCount);\n\t\t\n\t\tfor (var col = 0; col < this.moduleCount; col++) {\n\t\t\tthis.modules[row][col] = null;//(col + row) % 3;\n\t\t}\n\t}\n\n\tthis.setupPositionProbePattern(0, 0);\n\tthis.setupPositionProbePattern(this.moduleCount - 7, 0);\n\tthis.setupPositionProbePattern(0, this.moduleCount - 7);\n\tthis.setupPositionAdjustPattern();\n\tthis.setupTimingPattern();\n\tthis.setupTypeInfo(test, maskPattern);\n\t\n\tif (this.typeNumber >= 7) {\n\t\tthis.setupTypeNumber(test);\n\t}\n\n\tif (this.dataCache == null) {\n\t\tthis.dataCache = QRCode.createData(this.typeNumber, this.errorCorrectLevel, this.dataList);\n\t}\n\n\tthis.mapData(this.dataCache, maskPattern);\n};\n\nproto.setupPositionProbePattern = function(row, col) {\n\t\n\tfor (var r = -1; r <= 7; r++) {\n\t\t\n\t\tif (row + r <= -1 || this.moduleCount <= row + r) continue;\n\t\t\n\t\tfor (var c = -1; c <= 7; c++) {\n\t\t\t\n\t\t\tif (col + c <= -1 || this.moduleCount <= col + c) continue;\n\t\t\t\n\t\t\tif ( (0 <= r && r <= 6 && (c == 0 || c == 6) )\n\t\t\t\t\t|| (0 <= c && c <= 6 && (r == 0 || r == 6) )\n\t\t\t\t\t|| (2 <= r && r <= 4 && 2 <= c && c <= 4) ) {\n\t\t\t\tthis.modules[row + r][col + c] = true;\n\t\t\t} else {\n\t\t\t\tthis.modules[row + r][col + c] = false;\n\t\t\t}\n\t\t}\t\t\n\t}\t\t\n};\n\nproto.getBestMaskPattern = function() {\n\n\tvar minLostPoint = 0;\n\tvar pattern = 0;\n\n\tfor (var i = 0; i < 8; i++) {\n\t\t\n\t\tthis.makeImpl(true, i);\n\n\t\tvar lostPoint = util.getLostPoint(this);\n\n\t\tif (i == 0 || minLostPoint > lostPoint) {\n\t\t\tminLostPoint = lostPoint;\n\t\t\tpattern = i;\n\t\t}\n\t}\n\n\treturn pattern;\n};\n\nproto.createMovieClip = function(target_mc, instance_name, depth) {\n\n\tvar qr_mc = target_mc.createEmptyMovieClip(instance_name, depth);\n\tvar cs = 1;\n\n\tthis.make();\n\n\tfor (var row = 0; row < this.modules.length; row++) {\n\t\t\n\t\tvar y = row * cs;\n\t\t\n\t\tfor (var col = 0; col < this.modules[row].length; col++) {\n\n\t\t\tvar x = col * cs;\n\t\t\tvar dark = this.modules[row][col];\n\t\t\n\t\t\tif (dark) {\n\t\t\t\tqr_mc.beginFill(0, 100);\n\t\t\t\tqr_mc.moveTo(x, y);\n\t\t\t\tqr_mc.lineTo(x + cs, y);\n\t\t\t\tqr_mc.lineTo(x + cs, y + cs);\n\t\t\t\tqr_mc.lineTo(x, y + cs);\n\t\t\t\tqr_mc.endFill();\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn qr_mc;\n};\n\nproto.setupTimingPattern = function() {\n\t\n\tfor (var r = 8; r < this.moduleCount - 8; r++) {\n\t\tif (this.modules[r][6] != null) {\n\t\t\tcontinue;\n\t\t}\n\t\tthis.modules[r][6] = (r % 2 == 0);\n\t}\n\n\tfor (var c = 8; c < this.moduleCount - 8; c++) {\n\t\tif (this.modules[6][c] != null) {\n\t\t\tcontinue;\n\t\t}\n\t\tthis.modules[6][c] = (c % 2 == 0);\n\t}\n};\n\nproto.setupPositionAdjustPattern = function() {\n\n\tvar pos = util.getPatternPosition(this.typeNumber);\n\t\n\tfor (var i = 0; i < pos.length; i++) {\n\t\n\t\tfor (var j = 0; j < pos.length; j++) {\n\t\t\n\t\t\tvar row = pos[i];\n\t\t\tvar col = pos[j];\n\t\t\t\n\t\t\tif (this.modules[row][col] != null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor (var r = -2; r <= 2; r++) {\n\t\t\t\n\t\t\t\tfor (var c = -2; c <= 2; c++) {\n\t\t\t\t\n\t\t\t\t\tif (r == -2 || r == 2 || c == -2 || c == 2\n\t\t\t\t\t\t\t|| (r == 0 && c == 0) ) {\n\t\t\t\t\t\tthis.modules[row + r][col + c] = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.modules[row + r][col + c] = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\nproto.setupTypeNumber = function(test) {\n\n\tvar bits = util.getBCHTypeNumber(this.typeNumber);\n\n\tfor (var i = 0; i < 18; i++) {\n\t\tvar mod = (!test && ( (bits >> i) & 1) == 1);\n\t\tthis.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = mod;\n\t}\n\n\tfor (var i = 0; i < 18; i++) {\n\t\tvar mod = (!test && ( (bits >> i) & 1) == 1);\n\t\tthis.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = mod;\n\t}\n};\n\nproto.setupTypeInfo = function(test, maskPattern) {\n\n\tvar data = (this.errorCorrectLevel << 3) | maskPattern;\n\tvar bits = util.getBCHTypeInfo(data);\n\n\t// vertical\t\t\n\tfor (var i = 0; i < 15; i++) {\n\n\t\tvar mod = (!test && ( (bits >> i) & 1) == 1);\n\n\t\tif (i < 6) {\n\t\t\tthis.modules[i][8] = mod;\n\t\t} else if (i < 8) {\n\t\t\tthis.modules[i + 1][8] = mod;\n\t\t} else {\n\t\t\tthis.modules[this.moduleCount - 15 + i][8] = mod;\n\t\t}\n\t}\n\n\t// horizontal\n\tfor (var i = 0; i < 15; i++) {\n\n\t\tvar mod = (!test && ( (bits >> i) & 1) == 1);\n\t\t\n\t\tif (i < 8) {\n\t\t\tthis.modules[8][this.moduleCount - i - 1] = mod;\n\t\t} else if (i < 9) {\n\t\t\tthis.modules[8][15 - i - 1 + 1] = mod;\n\t\t} else {\n\t\t\tthis.modules[8][15 - i - 1] = mod;\n\t\t}\n\t}\n\n\t// fixed module\n\tthis.modules[this.moduleCount - 8][8] = (!test);\n};\n\nproto.mapData = function(data, maskPattern) {\n\t\n\tvar inc = -1;\n\tvar row = this.moduleCount - 1;\n\tvar bitIndex = 7;\n\tvar byteIndex = 0;\n\t\n\tfor (var col = this.moduleCount - 1; col > 0; col -= 2) {\n\n\t\tif (col == 6) col--;\n\n\t\twhile (true) {\n\n\t\t\tfor (var c = 0; c < 2; c++) {\n\t\t\t\t\n\t\t\t\tif (this.modules[row][col - c] == null) {\n\t\t\t\t\t\n\t\t\t\t\tvar dark = false;\n\n\t\t\t\t\tif (byteIndex < data.length) {\n\t\t\t\t\t\tdark = ( ( (data[byteIndex] >>> bitIndex) & 1) == 1);\n\t\t\t\t\t}\n\n\t\t\t\t\tvar mask = util.getMask(maskPattern, row, col - c);\n\n\t\t\t\t\tif (mask) {\n\t\t\t\t\t\tdark = !dark;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tthis.modules[row][col - c] = dark;\n\t\t\t\t\tbitIndex--;\n\n\t\t\t\t\tif (bitIndex == -1) {\n\t\t\t\t\t\tbyteIndex++;\n\t\t\t\t\t\tbitIndex = 7;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\trow += inc;\n\n\t\t\tif (row < 0 || this.moduleCount <= row) {\n\t\t\t\trow -= inc;\n\t\t\t\tinc = -inc;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n};\n\nQRCode.PAD0 = 0xEC;\nQRCode.PAD1 = 0x11;\n\nQRCode.createData = function(typeNumber, errorCorrectLevel, dataList) {\n\t\n\tvar rsBlocks = RSBlock.getRSBlocks(typeNumber, errorCorrectLevel);\n\t\n\tvar buffer = new BitBuffer();\n\t\n\tfor (var i = 0; i < dataList.length; i++) {\n\t\tvar data = dataList[i];\n\t\tbuffer.put(data.mode, 4);\n\t\tbuffer.put(data.getLength(), util.getLengthInBits(data.mode, typeNumber) );\n\t\tdata.write(buffer);\n\t}\n\n\t// calc num max data.\n\tvar totalDataCount = 0;\n\tfor (var i = 0; i < rsBlocks.length; i++) {\n\t\ttotalDataCount += rsBlocks[i].dataCount;\n\t}\n\n\tif (buffer.getLengthInBits() > totalDataCount * 8) {\n\t\tthrow new Error(\"code length overflow. (\"\n\t\t\t+ buffer.getLengthInBits()\n\t\t\t+ \">\"\n\t\t\t+ totalDataCount * 8\n\t\t\t+ \")\");\n\t}\n\n\t// end code\n\tif (buffer.getLengthInBits() + 4 <= totalDataCount * 8) {\n\t\tbuffer.put(0, 4);\n\t}\n\n\t// padding\n\twhile (buffer.getLengthInBits() % 8 != 0) {\n\t\tbuffer.putBit(false);\n\t}\n\n\t// padding\n\twhile (true) {\n\t\t\n\t\tif (buffer.getLengthInBits() >= totalDataCount * 8) {\n\t\t\tbreak;\n\t\t}\n\t\tbuffer.put(QRCode.PAD0, 8);\n\t\t\n\t\tif (buffer.getLengthInBits() >= totalDataCount * 8) {\n\t\t\tbreak;\n\t\t}\n\t\tbuffer.put(QRCode.PAD1, 8);\n\t}\n\n\treturn QRCode.createBytes(buffer, rsBlocks);\n};\n\nQRCode.createBytes = function(buffer, rsBlocks) {\n\n\tvar offset = 0;\n\t\n\tvar maxDcCount = 0;\n\tvar maxEcCount = 0;\n\t\n\tvar dcdata = new Array(rsBlocks.length);\n\tvar ecdata = new Array(rsBlocks.length);\n\t\n\tfor (var r = 0; r < rsBlocks.length; r++) {\n\n\t\tvar dcCount = rsBlocks[r].dataCount;\n\t\tvar ecCount = rsBlocks[r].totalCount - dcCount;\n\n\t\tmaxDcCount = Math.max(maxDcCount, dcCount);\n\t\tmaxEcCount = Math.max(maxEcCount, ecCount);\n\t\t\n\t\tdcdata[r] = new Array(dcCount);\n\t\t\n\t\tfor (var i = 0; i < dcdata[r].length; i++) {\n\t\t\tdcdata[r][i] = 0xff & buffer.buffer[i + offset];\n\t\t}\n\t\toffset += dcCount;\n\t\t\n\t\tvar rsPoly = util.getErrorCorrectPolynomial(ecCount);\n\t\tvar rawPoly = new Polynomial(dcdata[r], rsPoly.getLength() - 1);\n\n\t\tvar modPoly = rawPoly.mod(rsPoly);\n\t\tecdata[r] = new Array(rsPoly.getLength() - 1);\n\t\tfor (var i = 0; i < ecdata[r].length; i++) {\n var modIndex = i + modPoly.getLength() - ecdata[r].length;\n\t\t\tecdata[r][i] = (modIndex >= 0)? modPoly.get(modIndex) : 0;\n\t\t}\n\n\t}\n\t\n\tvar totalCodeCount = 0;\n\tfor (var i = 0; i < rsBlocks.length; i++) {\n\t\ttotalCodeCount += rsBlocks[i].totalCount;\n\t}\n\n\tvar data = new Array(totalCodeCount);\n\tvar index = 0;\n\n\tfor (var i = 0; i < maxDcCount; i++) {\n\t\tfor (var r = 0; r < rsBlocks.length; r++) {\n\t\t\tif (i < dcdata[r].length) {\n\t\t\t\tdata[index++] = dcdata[r][i];\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (var i = 0; i < maxEcCount; i++) {\n\t\tfor (var r = 0; r < rsBlocks.length; r++) {\n\t\t\tif (i < ecdata[r].length) {\n\t\t\t\tdata[index++] = ecdata[r][i];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn data;\n};\n\nmodule.exports = QRCode;\n\n","var mode = require('./mode');\n\nfunction QR8bitByte(data) {\n\tthis.mode = mode.MODE_8BIT_BYTE;\n\tthis.data = data;\n}\n\nQR8bitByte.prototype = {\n\n\tgetLength : function(buffer) {\n\t\treturn this.data.length;\n\t},\n\t\n\twrite : function(buffer) {\n\t\tfor (var i = 0; i < this.data.length; i++) {\n\t\t\t// not JIS ...\n\t\t\tbuffer.put(this.data.charCodeAt(i), 8);\n\t\t}\n\t}\n};\n\nmodule.exports = QR8bitByte;\n\n","// ErrorCorrectLevel\nvar ECL = require('./ErrorCorrectLevel');\n\nfunction QRRSBlock(totalCount, dataCount) {\n\tthis.totalCount = totalCount;\n\tthis.dataCount = dataCount;\n}\n\nQRRSBlock.RS_BLOCK_TABLE = [\n\n\t// L\n\t// M\n\t// Q\n\t// H\n\n\t// 1\n\t[1, 26, 19],\n\t[1, 26, 16],\n\t[1, 26, 13],\n\t[1, 26, 9],\n\t\n\t// 2\n\t[1, 44, 34],\n\t[1, 44, 28],\n\t[1, 44, 22],\n\t[1, 44, 16],\n\n\t// 3\n\t[1, 70, 55],\n\t[1, 70, 44],\n\t[2, 35, 17],\n\t[2, 35, 13],\n\n\t// 4\t\t\n\t[1, 100, 80],\n\t[2, 50, 32],\n\t[2, 50, 24],\n\t[4, 25, 9],\n\t\n\t// 5\n\t[1, 134, 108],\n\t[2, 67, 43],\n\t[2, 33, 15, 2, 34, 16],\n\t[2, 33, 11, 2, 34, 12],\n\t\n\t// 6\n\t[2, 86, 68],\n\t[4, 43, 27],\n\t[4, 43, 19],\n\t[4, 43, 15],\n\t\n\t// 7\t\t\n\t[2, 98, 78],\n\t[4, 49, 31],\n\t[2, 32, 14, 4, 33, 15],\n\t[4, 39, 13, 1, 40, 14],\n\t\n\t// 8\n\t[2, 121, 97],\n\t[2, 60, 38, 2, 61, 39],\n\t[4, 40, 18, 2, 41, 19],\n\t[4, 40, 14, 2, 41, 15],\n\t\n\t// 9\n\t[2, 146, 116],\n\t[3, 58, 36, 2, 59, 37],\n\t[4, 36, 16, 4, 37, 17],\n\t[4, 36, 12, 4, 37, 13],\n\t\n\t// 10\t\t\n\t[2, 86, 68, 2, 87, 69],\n\t[4, 69, 43, 1, 70, 44],\n\t[6, 43, 19, 2, 44, 20],\n\t[6, 43, 15, 2, 44, 16],\n\n\t// 11\n\t[4, 101, 81],\n\t[1, 80, 50, 4, 81, 51],\n\t[4, 50, 22, 4, 51, 23],\n\t[3, 36, 12, 8, 37, 13],\n\n\t// 12\n\t[2, 116, 92, 2, 117, 93],\n\t[6, 58, 36, 2, 59, 37],\n\t[4, 46, 20, 6, 47, 21],\n\t[7, 42, 14, 4, 43, 15],\n\n\t// 13\n\t[4, 133, 107],\n\t[8, 59, 37, 1, 60, 38],\n\t[8, 44, 20, 4, 45, 21],\n\t[12, 33, 11, 4, 34, 12],\n\n\t// 14\n\t[3, 145, 115, 1, 146, 116],\n\t[4, 64, 40, 5, 65, 41],\n\t[11, 36, 16, 5, 37, 17],\n\t[11, 36, 12, 5, 37, 13],\n\n\t// 15\n\t[5, 109, 87, 1, 110, 88],\n\t[5, 65, 41, 5, 66, 42],\n\t[5, 54, 24, 7, 55, 25],\n\t[11, 36, 12],\n\n\t// 16\n\t[5, 122, 98, 1, 123, 99],\n\t[7, 73, 45, 3, 74, 46],\n\t[15, 43, 19, 2, 44, 20],\n\t[3, 45, 15, 13, 46, 16],\n\n\t// 17\n\t[1, 135, 107, 5, 136, 108],\n\t[10, 74, 46, 1, 75, 47],\n\t[1, 50, 22, 15, 51, 23],\n\t[2, 42, 14, 17, 43, 15],\n\n\t// 18\n\t[5, 150, 120, 1, 151, 121],\n\t[9, 69, 43, 4, 70, 44],\n\t[17, 50, 22, 1, 51, 23],\n\t[2, 42, 14, 19, 43, 15],\n\n\t// 19\n\t[3, 141, 113, 4, 142, 114],\n\t[3, 70, 44, 11, 71, 45],\n\t[17, 47, 21, 4, 48, 22],\n\t[9, 39, 13, 16, 40, 14],\n\n\t// 20\n\t[3, 135, 107, 5, 136, 108],\n\t[3, 67, 41, 13, 68, 42],\n\t[15, 54, 24, 5, 55, 25],\n\t[15, 43, 15, 10, 44, 16],\n\n\t// 21\n\t[4, 144, 116, 4, 145, 117],\n\t[17, 68, 42],\n\t[17, 50, 22, 6, 51, 23],\n\t[19, 46, 16, 6, 47, 17],\n\n\t// 22\n\t[2, 139, 111, 7, 140, 112],\n\t[17, 74, 46],\n\t[7, 54, 24, 16, 55, 25],\n\t[34, 37, 13],\n\n\t// 23\n\t[4, 151, 121, 5, 152, 122],\n\t[4, 75, 47, 14, 76, 48],\n\t[11, 54, 24, 14, 55, 25],\n\t[16, 45, 15, 14, 46, 16],\n\n\t// 24\n\t[6, 147, 117, 4, 148, 118],\n\t[6, 73, 45, 14, 74, 46],\n\t[11, 54, 24, 16, 55, 25],\n\t[30, 46, 16, 2, 47, 17],\n\n\t// 25\n\t[8, 132, 106, 4, 133, 107],\n\t[8, 75, 47, 13, 76, 48],\n\t[7, 54, 24, 22, 55, 25],\n\t[22, 45, 15, 13, 46, 16],\n\n\t// 26\n\t[10, 142, 114, 2, 143, 115],\n\t[19, 74, 46, 4, 75, 47],\n\t[28, 50, 22, 6, 51, 23],\n\t[33, 46, 16, 4, 47, 17],\n\n\t// 27\n\t[8, 152, 122, 4, 153, 123],\n\t[22, 73, 45, 3, 74, 46],\n\t[8, 53, 23, 26, 54, 24],\n\t[12, 45, 15, 28, 46, 16],\n\n\t// 28\n\t[3, 147, 117, 10, 148, 118],\n\t[3, 73, 45, 23, 74, 46],\n\t[4, 54, 24, 31, 55, 25],\n\t[11, 45, 15, 31, 46, 16],\n\n\t// 29\n\t[7, 146, 116, 7, 147, 117],\n\t[21, 73, 45, 7, 74, 46],\n\t[1, 53, 23, 37, 54, 24],\n\t[19, 45, 15, 26, 46, 16],\n\n\t// 30\n\t[5, 145, 115, 10, 146, 116],\n\t[19, 75, 47, 10, 76, 48],\n\t[15, 54, 24, 25, 55, 25],\n\t[23, 45, 15, 25, 46, 16],\n\n\t// 31\n\t[13, 145, 115, 3, 146, 116],\n\t[2, 74, 46, 29, 75, 47],\n\t[42, 54, 24, 1, 55, 25],\n\t[23, 45, 15, 28, 46, 16],\n\n\t// 32\n\t[17, 145, 115],\n\t[10, 74, 46, 23, 75, 47],\n\t[10, 54, 24, 35, 55, 25],\n\t[19, 45, 15, 35, 46, 16],\n\n\t// 33\n\t[17, 145, 115, 1, 146, 116],\n\t[14, 74, 46, 21, 75, 47],\n\t[29, 54, 24, 19, 55, 25],\n\t[11, 45, 15, 46, 46, 16],\n\n\t// 34\n\t[13, 145, 115, 6, 146, 116],\n\t[14, 74, 46, 23, 75, 47],\n\t[44, 54, 24, 7, 55, 25],\n\t[59, 46, 16, 1, 47, 17],\n\n\t// 35\n\t[12, 151, 121, 7, 152, 122],\n\t[12, 75, 47, 26, 76, 48],\n\t[39, 54, 24, 14, 55, 25],\n\t[22, 45, 15, 41, 46, 16],\n\n\t// 36\n\t[6, 151, 121, 14, 152, 122],\n\t[6, 75, 47, 34, 76, 48],\n\t[46, 54, 24, 10, 55, 25],\n\t[2, 45, 15, 64, 46, 16],\n\n\t// 37\n\t[17, 152, 122, 4, 153, 123],\n\t[29, 74, 46, 14, 75, 47],\n\t[49, 54, 24, 10, 55, 25],\n\t[24, 45, 15, 46, 46, 16],\n\n\t// 38\n\t[4, 152, 122, 18, 153, 123],\n\t[13, 74, 46, 32, 75, 47],\n\t[48, 54, 24, 14, 55, 25],\n\t[42, 45, 15, 32, 46, 16],\n\n\t// 39\n\t[20, 147, 117, 4, 148, 118],\n\t[40, 75, 47, 7, 76, 48],\n\t[43, 54, 24, 22, 55, 25],\n\t[10, 45, 15, 67, 46, 16],\n\n\t// 40\n\t[19, 148, 118, 6, 149, 119],\n\t[18, 75, 47, 31, 76, 48],\n\t[34, 54, 24, 34, 55, 25],\n\t[20, 45, 15, 61, 46, 16]\n];\n\nQRRSBlock.getRSBlocks = function(typeNumber, errorCorrectLevel) {\n\t\n\tvar rsBlock = QRRSBlock.getRsBlockTable(typeNumber, errorCorrectLevel);\n\t\n\tif (rsBlock == undefined) {\n\t\tthrow new Error(\"bad rs block @ typeNumber:\" + typeNumber + \"/errorCorrectLevel:\" + errorCorrectLevel);\n\t}\n\n\tvar length = rsBlock.length / 3;\n\t\n\tvar list = new Array();\n\t\n\tfor (var i = 0; i < length; i++) {\n\n\t\tvar count = rsBlock[i * 3 + 0];\n\t\tvar totalCount = rsBlock[i * 3 + 1];\n\t\tvar dataCount = rsBlock[i * 3 + 2];\n\n\t\tfor (var j = 0; j < count; j++) {\n\t\t\tlist.push(new QRRSBlock(totalCount, dataCount) );\t\n\t\t}\n\t}\n\t\n\treturn list;\n}\n\nQRRSBlock.getRsBlockTable = function(typeNumber, errorCorrectLevel) {\n\n\tswitch(errorCorrectLevel) {\n\tcase ECL.L :\n\t\treturn QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0];\n\tcase ECL.M :\n\t\treturn QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1];\n\tcase ECL.Q :\n\t\treturn QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2];\n\tcase ECL.H :\n\t\treturn QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3];\n\tdefault :\n\t\treturn undefined;\n\t}\n}\n\nmodule.exports = QRRSBlock;\n","function QRBitBuffer() {\n\tthis.buffer = new Array();\n\tthis.length = 0;\n}\n\nQRBitBuffer.prototype = {\n\n\tget : function(index) {\n\t\tvar bufIndex = Math.floor(index / 8);\n\t\treturn ( (this.buffer[bufIndex] >>> (7 - index % 8) ) & 1) == 1;\n\t},\n\t\n\tput : function(num, length) {\n\t\tfor (var i = 0; i < length; i++) {\n\t\t\tthis.putBit( ( (num >>> (length - i - 1) ) & 1) == 1);\n\t\t}\n\t},\n\t\n\tgetLengthInBits : function() {\n\t\treturn this.length;\n\t},\n\t\n\tputBit : function(bit) {\n\t\n\t\tvar bufIndex = Math.floor(this.length / 8);\n\t\tif (this.buffer.length <= bufIndex) {\n\t\t\tthis.buffer.push(0);\n\t\t}\n\t\n\t\tif (bit) {\n\t\t\tthis.buffer[bufIndex] |= (0x80 >>> (this.length % 8) );\n\t\t}\n\t\n\t\tthis.length++;\n\t}\n};\n\nmodule.exports = QRBitBuffer;\n","var Mode = require('./mode');\nvar Polynomial = require('./Polynomial');\nvar math = require('./math');\n\nvar QRMaskPattern = {\n\tPATTERN000 : 0,\n\tPATTERN001 : 1,\n\tPATTERN010 : 2,\n\tPATTERN011 : 3,\n\tPATTERN100 : 4,\n\tPATTERN101 : 5,\n\tPATTERN110 : 6,\n\tPATTERN111 : 7\n};\n\nvar QRUtil = {\n\n PATTERN_POSITION_TABLE : [\n\t [],\n\t [6, 18],\n\t [6, 22],\n\t [6, 26],\n\t [6, 30],\n\t [6, 34],\n\t [6, 22, 38],\n\t [6, 24, 42],\n\t [6, 26, 46],\n\t [6, 28, 50],\n\t [6, 30, 54],\t\t\n\t [6, 32, 58],\n\t [6, 34, 62],\n\t [6, 26, 46, 66],\n\t [6, 26, 48, 70],\n\t [6, 26, 50, 74],\n\t [6, 30, 54, 78],\n\t [6, 30, 56, 82],\n\t [6, 30, 58, 86],\n\t [6, 34, 62, 90],\n\t [6, 28, 50, 72, 94],\n\t [6, 26, 50, 74, 98],\n\t [6, 30, 54, 78, 102],\n\t [6, 28, 54, 80, 106],\n\t [6, 32, 58, 84, 110],\n\t [6, 30, 58, 86, 114],\n\t [6, 34, 62, 90, 118],\n\t [6, 26, 50, 74, 98, 122],\n\t [6, 30, 54, 78, 102, 126],\n\t [6, 26, 52, 78, 104, 130],\n\t [6, 30, 56, 82, 108, 134],\n\t [6, 34, 60, 86, 112, 138],\n\t [6, 30, 58, 86, 114, 142],\n\t [6, 34, 62, 90, 118, 146],\n\t [6, 30, 54, 78, 102, 126, 150],\n\t [6, 24, 50, 76, 102, 128, 154],\n\t [6, 28, 54, 80, 106, 132, 158],\n\t [6, 32, 58, 84, 110, 136, 162],\n\t [6, 26, 54, 82, 110, 138, 166],\n\t [6, 30, 58, 86, 114, 142, 170]\n ],\n\n G15 : (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0),\n G18 : (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0),\n G15_MASK : (1 << 14) | (1 << 12) | (1 << 10)\t| (1 << 4) | (1 << 1),\n\n getBCHTypeInfo : function(data) {\n\t var d = data << 10;\n\t while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) >= 0) {\n\t\t d ^= (QRUtil.G15 << (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) ) ); \t\n\t }\n\t return ( (data << 10) | d) ^ QRUtil.G15_MASK;\n },\n\n getBCHTypeNumber : function(data) {\n\t var d = data << 12;\n\t while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) >= 0) {\n\t\t d ^= (QRUtil.G18 << (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) ) ); \t\n\t }\n\t return (data << 12) | d;\n },\n\n getBCHDigit : function(data) {\n\n\t var digit = 0;\n\n\t while (data != 0) {\n\t\t digit++;\n\t\t data >>>= 1;\n\t }\n\n\t return digit;\n },\n\n getPatternPosition : function(typeNumber) {\n\t return QRUtil.PATTERN_POSITION_TABLE[typeNumber - 1];\n },\n\n getMask : function(maskPattern, i, j) {\n\t \n\t switch (maskPattern) {\n\t\t \n\t case QRMaskPattern.PATTERN000 : return (i + j) % 2 == 0;\n\t case QRMaskPattern.PATTERN001 : return i % 2 == 0;\n\t case QRMaskPattern.PATTERN010 : return j % 3 == 0;\n\t case QRMaskPattern.PATTERN011 : return (i + j) % 3 == 0;\n\t case QRMaskPattern.PATTERN100 : return (Math.floor(i / 2) + Math.floor(j / 3) ) % 2 == 0;\n\t case QRMaskPattern.PATTERN101 : return (i * j) % 2 + (i * j) % 3 == 0;\n\t case QRMaskPattern.PATTERN110 : return ( (i * j) % 2 + (i * j) % 3) % 2 == 0;\n\t case QRMaskPattern.PATTERN111 : return ( (i * j) % 3 + (i + j) % 2) % 2 == 0;\n\n\t default :\n\t\t throw new Error(\"bad maskPattern:\" + maskPattern);\n\t }\n },\n\n getErrorCorrectPolynomial : function(errorCorrectLength) {\n\n\t var a = new Polynomial([1], 0);\n\n\t for (var i = 0; i < errorCorrectLength; i++) {\n\t\t a = a.multiply(new Polynomial([1, math.gexp(i)], 0) );\n\t }\n\n\t return a;\n },\n\n getLengthInBits : function(mode, type) {\n\n\t if (1 <= type && type < 10) {\n\n\t\t // 1 - 9\n\n\t\t switch(mode) {\n\t\t case Mode.MODE_NUMBER \t: return 10;\n\t\t case Mode.MODE_ALPHA_NUM \t: return 9;\n\t\t case Mode.MODE_8BIT_BYTE\t: return 8;\n\t\t case Mode.MODE_KANJI \t: return 8;\n\t\t default :\n\t\t\t throw new Error(\"mode:\" + mode);\n\t\t }\n\n\t } else if (type < 27) {\n\n\t\t // 10 - 26\n\n\t\t switch(mode) {\n\t\t case Mode.MODE_NUMBER \t: return 12;\n\t\t case Mode.MODE_ALPHA_NUM \t: return 11;\n\t\t case Mode.MODE_8BIT_BYTE\t: return 16;\n\t\t case Mode.MODE_KANJI \t: return 10;\n\t\t default :\n\t\t\t throw new Error(\"mode:\" + mode);\n\t\t }\n\n\t } else if (type < 41) {\n\n\t\t // 27 - 40\n\n\t\t switch(mode) {\n\t\t case Mode.MODE_NUMBER \t: return 14;\n\t\t case Mode.MODE_ALPHA_NUM\t: return 13;\n\t\t case Mode.MODE_8BIT_BYTE\t: return 16;\n\t\t case Mode.MODE_KANJI \t: return 12;\n\t\t default :\n\t\t\t throw new Error(\"mode:\" + mode);\n\t\t }\n\n\t } else {\n\t\t throw new Error(\"type:\" + type);\n\t }\n },\n\n getLostPoint : function(qrCode) {\n\t \n\t var moduleCount = qrCode.getModuleCount();\n\t \n\t var lostPoint = 0;\n\t \n\t // LEVEL1\n\t \n\t for (var row = 0; row < moduleCount; row++) {\n\n\t\t for (var col = 0; col < moduleCount; col++) {\n\n\t\t\t var sameCount = 0;\n\t\t\t var dark = qrCode.isDark(row, col);\n\n\t\t\t\tfor (var r = -1; r <= 1; r++) {\n\n\t\t\t\t if (row + r < 0 || moduleCount <= row + r) {\n\t\t\t\t\t continue;\n\t\t\t\t }\n\n\t\t\t\t for (var c = -1; c <= 1; c++) {\n\n\t\t\t\t\t if (col + c < 0 || moduleCount <= col + c) {\n\t\t\t\t\t\t continue;\n\t\t\t\t\t }\n\n\t\t\t\t\t if (r == 0 && c == 0) {\n\t\t\t\t\t\t continue;\n\t\t\t\t\t }\n\n\t\t\t\t\t if (dark == qrCode.isDark(row + r, col + c) ) {\n\t\t\t\t\t\t sameCount++;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\n\t\t\t if (sameCount > 5) {\n\t\t\t\t lostPoint += (3 + sameCount - 5);\n\t\t\t }\n\t\t }\n\t }\n\n\t // LEVEL2\n\n\t for (var row = 0; row < moduleCount - 1; row++) {\n\t\t for (var col = 0; col < moduleCount - 1; col++) {\n\t\t\t var count = 0;\n\t\t\t if (qrCode.isDark(row, col ) ) count++;\n\t\t\t if (qrCode.isDark(row + 1, col ) ) count++;\n\t\t\t if (qrCode.isDark(row, col + 1) ) count++;\n\t\t\t if (qrCode.isDark(row + 1, col + 1) ) count++;\n\t\t\t if (count == 0 || count == 4) {\n\t\t\t\t lostPoint += 3;\n\t\t\t }\n\t\t }\n\t }\n\n\t // LEVEL3\n\n\t for (var row = 0; row < moduleCount; row++) {\n\t\t for (var col = 0; col < moduleCount - 6; col++) {\n\t\t\t if (qrCode.isDark(row, col)\n\t\t\t\t\t && !qrCode.isDark(row, col + 1)\n\t\t\t\t\t && qrCode.isDark(row, col + 2)\n\t\t\t\t\t && qrCode.isDark(row, col + 3)\n\t\t\t\t\t && qrCode.isDark(row, col + 4)\n\t\t\t\t\t && !qrCode.isDark(row, col + 5)\n\t\t\t\t\t && qrCode.isDark(row, col + 6) ) {\n\t\t\t\t lostPoint += 40;\n\t\t\t }\n\t\t }\n\t }\n\n\t for (var col = 0; col < moduleCount; col++) {\n\t\t for (var row = 0; row < moduleCount - 6; row++) {\n\t\t\t if (qrCode.isDark(row, col)\n\t\t\t\t\t && !qrCode.isDark(row + 1, col)\n\t\t\t\t\t && qrCode.isDark(row + 2, col)\n\t\t\t\t\t && qrCode.isDark(row + 3, col)\n\t\t\t\t\t && qrCode.isDark(row + 4, col)\n\t\t\t\t\t && !qrCode.isDark(row + 5, col)\n\t\t\t\t\t && qrCode.isDark(row + 6, col) ) {\n\t\t\t\t lostPoint += 40;\n\t\t\t }\n\t\t }\n\t }\n\n\t // LEVEL4\n\t \n\t var darkCount = 0;\n\n\t for (var col = 0; col < moduleCount; col++) {\n\t\t for (var row = 0; row < moduleCount; row++) {\n\t\t\t if (qrCode.isDark(row, col) ) {\n\t\t\t\t darkCount++;\n\t\t\t }\n\t\t }\n\t }\n\t \n\t var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;\n\t lostPoint += ratio * 10;\n\n\t return lostPoint;\t\t\n }\n};\n\nmodule.exports = QRUtil;\n","\"use strict\";\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 */\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__export(require(\"./trackLifecycle\"));\n__export(require(\"./trackUpdate\"));\n//# sourceMappingURL=index.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar analytics_1 = require(\"@aws-amplify/analytics\");\nvar Default_Track_Events = [\n 'componentDidMount',\n 'componentDidUpdate',\n 'compomentWillUnmount',\n 'compomentDidCatch',\n 'render',\n];\nfunction trackLifecycle(Comp, trackerName, events) {\n if (events === void 0) { events = Default_Track_Events; }\n return /** @class */ (function (_super) {\n __extends(WithTrackLifecycle, _super);\n function WithTrackLifecycle(props) {\n var _this = _super.call(this, props) || this;\n _this.trackerName = trackerName;\n _this.trackEvents = events;\n _this.track('constructor');\n return _this;\n }\n WithTrackLifecycle.prototype.track = function (event) {\n var filtered = this.trackEvents.filter(function (item) { return item === event; });\n if (filtered.length > 0) {\n if (analytics_1.Analytics && typeof analytics_1.Analytics.record === 'function') {\n analytics_1.Analytics.record({\n name: this.trackerName,\n attributes: { event: event },\n });\n }\n else {\n throw new Error('No Analytics module found, please ensure @aws-amplify/analytics is imported');\n }\n }\n };\n WithTrackLifecycle.prototype.componentWillMount = function () {\n this.track('componentWillMount');\n };\n WithTrackLifecycle.prototype.componentDidMount = function () {\n this.track('componentDidMount');\n };\n WithTrackLifecycle.prototype.componentWillUnmount = function () {\n this.track('componentWillUnmount');\n };\n WithTrackLifecycle.prototype.componentDidCatch = function () {\n this.track('componentDidCatch');\n };\n WithTrackLifecycle.prototype.componentWillReceiveProps = function () {\n this.track('componentWillReceiveProps');\n };\n WithTrackLifecycle.prototype.shouldComponentUpdate = function () {\n this.track('shouldComponentUpdate');\n return true;\n };\n WithTrackLifecycle.prototype.componentWillUpdate = function () {\n this.track('componentWillUpdate');\n };\n WithTrackLifecycle.prototype.componentDidUpdate = function () {\n this.track('componentDidUpdate');\n };\n WithTrackLifecycle.prototype.setState = function () {\n this.track('setState');\n };\n WithTrackLifecycle.prototype.forceUpdate = function () {\n this.track('forceUpdate');\n };\n WithTrackLifecycle.prototype.render = function () {\n this.track('render');\n return React.createElement(Comp, __assign({}, this.props));\n };\n return WithTrackLifecycle;\n }(React.Component));\n}\nexports.trackLifecycle = trackLifecycle;\n//# sourceMappingURL=trackLifecycle.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar analytics_1 = require(\"@aws-amplify/analytics\");\nfunction trackUpdate(Comp, trackerName) {\n return /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1(props) {\n var _this = _super.call(this, props) || this;\n _this.trackerName = trackerName;\n return _this;\n }\n class_1.prototype.componentDidUpdate = function (prevProps, prevState) {\n var attributes = Object.assign({}, this.props, this.state);\n if (analytics_1.Analytics && typeof analytics_1.Analytics.record === 'function') {\n analytics_1.Analytics.record({\n name: this.trackerName,\n attributes: attributes,\n });\n }\n else {\n throw new Error('No Analytics module found, please ensure @aws-amplify/analytics is imported');\n }\n };\n class_1.prototype.render = function () {\n return React.createElement(Comp, __assign({}, this.props));\n };\n return class_1;\n }(React.Component));\n}\nexports.trackUpdate = trackUpdate;\n//# sourceMappingURL=trackUpdate.js.map","\"use strict\";\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 */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar S3Album_1 = require(\"./S3Album\");\nexports.S3Album = S3Album_1.S3Album;\nvar S3Image_1 = require(\"./S3Image\");\nexports.S3Image = S3Image_1.S3Image;\nvar S3Text_1 = require(\"./S3Text\");\nexports.S3Text = S3Text_1.S3Text;\n//# sourceMappingURL=index.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar storage_1 = require(\"@aws-amplify/storage\");\nvar Picker_1 = require(\"../Widget/Picker\");\nvar AmplifyTheme_1 = __importDefault(require(\"../AmplifyTheme\"));\nvar S3Image_1 = require(\"./S3Image\");\nvar S3Text_1 = require(\"./S3Text\");\nvar logger = new core_1.ConsoleLogger('Storage.S3Album');\nvar S3Album = /** @class */ (function (_super) {\n __extends(S3Album, _super);\n function S3Album(props) {\n var _this = _super.call(this, props) || this;\n _this._isMounted = false;\n _this.handlePick = _this.handlePick.bind(_this);\n _this.handleClick = _this.handleClick.bind(_this);\n _this.list = _this.list.bind(_this);\n _this.marshal = _this.marshal.bind(_this);\n _this.state = {\n items: [],\n ts: new Date().getTime(),\n };\n return _this;\n }\n S3Album.prototype.getKey = function (file) {\n var fileToKey = this.props.fileToKey;\n var name = file.name, size = file.size, type = file.type;\n var key = encodeURI(name);\n if (fileToKey) {\n var callback_type = typeof fileToKey;\n if (callback_type === 'string') {\n key = fileToKey;\n }\n else if (callback_type === 'function') {\n key = fileToKey({ name: name, size: size, type: type });\n }\n else {\n key = encodeURI(JSON.stringify(fileToKey));\n }\n if (!key) {\n logger.debug('key is empty');\n key = 'empty_key';\n }\n }\n return key.replace(/\\s/g, '_');\n };\n S3Album.prototype.handlePick = function (data) {\n var _this = this;\n var _a = this.props, onPick = _a.onPick, onLoad = _a.onLoad, onError = _a.onError, track = _a.track, level = _a.level;\n if (onPick) {\n onPick(data);\n }\n var path = this.props.path || '';\n var file = data.file, name = data.name, size = data.size, type = data.type;\n var key = path + this.getKey(data);\n if (!storage_1.Storage || typeof storage_1.Storage.put !== 'function') {\n throw new Error('No Storage module found, please ensure @aws-amplify/storage is imported');\n }\n storage_1.Storage.put(key, file, {\n level: level ? level : 'public',\n contentType: type,\n track: track,\n })\n .then(function (data) {\n logger.debug('handle pick data', data);\n var items = _this.state.items;\n if (items.filter(function (item) { return item.key === key; }).length === 0) {\n var list = items.concat(data);\n _this.marshal(list);\n }\n else {\n logger.debug('update an item');\n }\n if (onLoad) {\n onLoad(data);\n }\n })\n .catch(function (err) {\n logger.debug('handle pick error', err);\n if (onError) {\n onError(err);\n }\n });\n if (this._isMounted) {\n this.setState({ ts: new Date().getTime() });\n }\n };\n S3Album.prototype.handleClick = function (item) {\n var _a = this.props, onClickItem = _a.onClickItem, select = _a.select, onSelect = _a.onSelect;\n if (onClickItem) {\n onClickItem(item);\n }\n if (!select) {\n return;\n }\n item.selected = !item.selected;\n if (this._isMounted) {\n this.setState({ items: this.state.items.slice() });\n }\n if (!onSelect) {\n return;\n }\n var selected_items = this.state.items.filter(function (item) { return item.selected; });\n onSelect(item, selected_items);\n };\n S3Album.prototype.componentDidMount = function () {\n this._isMounted = true;\n this.list();\n };\n S3Album.prototype.componentWillUnmount = function () {\n this._isMounted = false;\n };\n S3Album.prototype.componentDidUpdate = function (prevProps, prevState) {\n if (this.props.path === prevProps.path &&\n this.props.ts === prevProps.ts &&\n this.props.select === prevProps.select) {\n return;\n }\n if (!this.props.select) {\n this.state.items.forEach(function (item) { return (item.selected = false); });\n }\n if (this.props.onSelect) {\n this.props.onSelect(null, []);\n }\n this.list();\n };\n S3Album.prototype.list = function () {\n var _this = this;\n var _a = this.props, path = _a.path, level = _a.level, track = _a.track, identityId = _a.identityId;\n logger.debug('Album path: ' + path);\n if (!storage_1.Storage || typeof storage_1.Storage.list !== 'function') {\n throw new Error('No Storage module found, please ensure @aws-amplify/storage is imported');\n }\n return storage_1.Storage.list(path, {\n level: level ? level : 'public',\n track: track,\n identityId: identityId,\n })\n .then(function (data) {\n logger.debug('album list', data);\n _this.marshal(data);\n })\n .catch(function (err) {\n logger.warn(err);\n return [];\n });\n };\n S3Album.prototype.contentType = function (item) {\n return core_1.filenameToContentType(item.key, 'image/*');\n };\n S3Album.prototype.marshal = function (list) {\n var _this = this;\n var contentType = this.props.contentType || '';\n list.forEach(function (item) {\n if (item.contentType) {\n return;\n }\n var isString = typeof contentType === 'string';\n item.contentType = isString ? contentType : contentType(item);\n if (!item.contentType) {\n item.contentType = _this.contentType(item);\n }\n });\n var items = this.filter(list);\n items = this.sort(items);\n if (this._isMounted) {\n this.setState({ items: items });\n }\n };\n S3Album.prototype.filter = function (list) {\n var filter = this.props.filter;\n return filter ? filter(list) : list;\n };\n S3Album.prototype.sort = function (list) {\n var sort = this.props.sort;\n var typeof_sort = typeof sort;\n if (typeof_sort === 'function') {\n return sort(list);\n }\n // @ts-ignore\n if (['string', 'undefined'].includes(typeof_sort)) {\n var sort_str = sort ? sort : 'lastModified';\n var parts = sort_str.split(/\\s+/);\n var field = parts[0];\n var dir = parts.length > 1 ? parts[1] : '';\n if (field === 'lastModified') {\n dir = dir === 'asc' ? 'asc' : 'desc';\n }\n else {\n dir = dir === 'desc' ? 'desc' : 'asc';\n }\n core_1.sortByField(list, field, dir);\n return list;\n }\n logger.warn('invalid sort. done nothing. should be a string or function');\n return list;\n };\n S3Album.prototype.render = function () {\n var _this = this;\n var _a = this.props, picker = _a.picker, translateItem = _a.translateItem, level = _a.level, identityId = _a.identityId;\n var _b = this.state, items = _b.items, ts = _b.ts;\n var pickerTitle = this.props.pickerTitle || 'Pick';\n var theme = this.props.theme || AmplifyTheme_1.default;\n var list = items.map(function (item) {\n var isText = item.contentType && core_1.isTextFile(item.contentType);\n return isText ? (React.createElement(S3Text_1.S3Text, { key: item.key, textKey: item.key, theme: theme, style: theme.albumText, selected: item.selected, translate: translateItem, level: level, identityId: identityId, onClick: function () { return _this.handleClick(item); } })) : (React.createElement(S3Image_1.S3Image, { key: item.key, imgKey: item.key, theme: theme, style: theme.albumPhoto, selected: item.selected, translate: translateItem, level: level, identityId: identityId, onClick: function () { return _this.handleClick(item); } }));\n });\n return (React.createElement(\"div\", null,\n React.createElement(\"div\", { style: theme.album }, list),\n picker ? (React.createElement(Picker_1.Picker, { key: ts, title: pickerTitle, accept: \"image/*, text/*\", onPick: this.handlePick, theme: theme })) : null));\n };\n return S3Album;\n}(React.Component));\nexports.S3Album = S3Album;\n/**\n * @deprecated use named import\n */\nexports.default = S3Album;\n//# sourceMappingURL=S3Album.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Picker_1 = require(\"./Picker\");\nexports.Picker = Picker_1.Picker;\nvar PhotoPicker_1 = require(\"./PhotoPicker\");\nexports.PhotoPicker = PhotoPicker_1.PhotoPicker;\nvar TextPicker_1 = require(\"./TextPicker\");\nexports.TextPicker = TextPicker_1.TextPicker;\nvar SelectMFAType_1 = require(\"./SelectMFAType\");\nexports.SelectMFAType = SelectMFAType_1.SelectMFAType;\nvar TOTPSetupComp_1 = require(\"./TOTPSetupComp\");\nexports.TOTPSetupComp = TOTPSetupComp_1.TOTPSetupComp;\n//# sourceMappingURL=index.js.map","\"use strict\";\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 */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar core_1 = require(\"@aws-amplify/core\");\nvar auth_1 = require(\"@aws-amplify/auth\");\nvar Amplify_UI_Theme_1 = __importDefault(require(\"../Amplify-UI/Amplify-UI-Theme\"));\nvar Amplify_UI_Components_React_1 = require(\"../Amplify-UI/Amplify-UI-Components-React\");\nvar TOTPSetupComp_1 = require(\"./TOTPSetupComp\");\nvar logger = new core_1.ConsoleLogger('SelectMFAType');\nvar SelectMFAType = /** @class */ (function (_super) {\n __extends(SelectMFAType, _super);\n function SelectMFAType(props) {\n var _this = _super.call(this, props) || this;\n _this.verify = _this.verify.bind(_this);\n _this.handleInputChange = _this.handleInputChange.bind(_this);\n _this.state = {\n TOTPSetup: false,\n selectMessage: null,\n };\n return _this;\n }\n SelectMFAType.prototype.handleInputChange = function (evt) {\n // clear current state\n this.setState({\n TOTPSetup: false,\n selectMessage: null,\n });\n this.inputs = {};\n var _a = evt.target, name = _a.name, value = _a.value, type = _a.type, checked = _a.checked;\n // @ts-ignore\n var check_type = ['radio', 'checkbox'].includes(type);\n this.inputs[value] = check_type ? checked : value;\n };\n SelectMFAType.prototype.verify = function () {\n var _this = this;\n logger.debug('mfatypes inputs', this.inputs);\n if (!this.inputs) {\n logger.debug('No mfa type selected');\n return;\n }\n var _a = this.inputs, TOTP = _a.TOTP, SMS = _a.SMS, NOMFA = _a.NOMFA;\n var mfaMethod = null;\n if (TOTP) {\n mfaMethod = 'TOTP';\n }\n else if (SMS) {\n mfaMethod = 'SMS';\n }\n else if (NOMFA) {\n mfaMethod = 'NOMFA';\n }\n var user = this.props.authData;\n if (!auth_1.Auth || typeof auth_1.Auth.setPreferredMFA !== 'function') {\n throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');\n }\n auth_1.Auth.setPreferredMFA(user, mfaMethod)\n .then(function (data) {\n logger.debug('set preferred mfa success', data);\n _this.setState({\n selectMessage: 'Success! Your MFA Type is now: ' + mfaMethod,\n showToast: true,\n });\n })\n .catch(function (err) {\n var message = err.message;\n if (message === 'User has not set up software token mfa' ||\n message === 'User has not verified software token mfa') {\n _this.setState({\n TOTPSetup: true,\n selectMessage: 'You need to setup TOTP',\n showToast: true,\n });\n }\n else {\n logger.debug('set preferred mfa failed', err);\n _this.setState({\n selectMessage: 'Failed! You cannot select MFA Type for now!',\n showToast: true,\n });\n }\n });\n };\n SelectMFAType.prototype.selectView = function (theme) {\n var _this = this;\n var MFATypes = this.props.MFATypes;\n if (!MFATypes || Object.keys(MFATypes).length < 2) {\n logger.debug('less than 2 mfa types available');\n return (React.createElement(\"div\", null,\n React.createElement(\"a\", null, \"less than 2 mfa types available\")));\n }\n var SMS = MFATypes.SMS, TOTP = MFATypes.TOTP, Optional = MFATypes.Optional;\n return (React.createElement(Amplify_UI_Components_React_1.FormSection, { theme: theme },\n this.state.showToast && this.state.selectMessage && (React.createElement(Amplify_UI_Components_React_1.Toast, { theme: theme, onClose: function () { return _this.setState({ showToast: false }); } }, core_1.I18n.get(this.state.selectMessage))),\n React.createElement(Amplify_UI_Components_React_1.SectionHeader, { theme: theme }, core_1.I18n.get('Select MFA Type')),\n React.createElement(Amplify_UI_Components_React_1.SectionBody, { theme: theme },\n React.createElement(\"div\", null,\n SMS ? (React.createElement(Amplify_UI_Components_React_1.RadioRow, { placeholder: core_1.I18n.get('SMS'), theme: theme, key: \"sms\", name: \"MFAType\", value: \"SMS\", onChange: this.handleInputChange })) : null,\n TOTP ? (React.createElement(Amplify_UI_Components_React_1.RadioRow, { placeholder: core_1.I18n.get('TOTP'), theme: theme, key: \"totp\", name: \"MFAType\", value: \"TOTP\", onChange: this.handleInputChange })) : null,\n Optional ? (React.createElement(Amplify_UI_Components_React_1.RadioRow, { placeholder: core_1.I18n.get('No MFA'), theme: theme, key: \"noMFA\", name: \"MFAType\", value: \"NOMFA\", onChange: this.handleInputChange })) : null)),\n React.createElement(Amplify_UI_Components_React_1.SectionFooter, { theme: theme },\n React.createElement(Amplify_UI_Components_React_1.Button, { theme: theme, onClick: this.verify }, core_1.I18n.get('Verify')))));\n };\n SelectMFAType.prototype.render = function () {\n var theme = this.props.theme || Amplify_UI_Theme_1.default;\n return (React.createElement(\"div\", null,\n this.selectView(theme),\n this.state.TOTPSetup ? React.createElement(TOTPSetupComp_1.TOTPSetupComp, __assign({}, this.props)) : null));\n };\n return SelectMFAType;\n}(React.Component));\nexports.SelectMFAType = SelectMFAType;\n/**\n * @deprecated use named import\n */\nexports.default = SelectMFAType;\n//# sourceMappingURL=SelectMFAType.js.map","\"use strict\";\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__export(require(\"./GraphQL\"));\n//# sourceMappingURL=index.js.map","\"use strict\";\n/*\n * Copyright 2017-2018 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 */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Connect_1 = require(\"./Connect\");\nexports.Connect = Connect_1.Connect;\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __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};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar api_1 = require(\"@aws-amplify/api\");\nvar Connect = /** @class */ (function (_super) {\n __extends(Connect, _super);\n function Connect(props) {\n var _this = _super.call(this, props) || this;\n _this.state = _this.getInitialState();\n _this.subSubscription = null;\n return _this;\n }\n Connect.prototype.getInitialState = function () {\n var query = this.props.query;\n return {\n loading: query && !!query.query,\n data: {},\n errors: [],\n mutation: function () { return console.warn('Not implemented'); },\n };\n };\n Connect.prototype.getDefaultState = function () {\n return {\n loading: false,\n data: {},\n errors: [],\n mutation: function () { return console.warn('Not implemented'); },\n };\n };\n Connect.prototype._fetchData = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a, _b, _c, query, _d, variables, _e, _f, mutation, _g, mutationVariables, subscription, _h, onSubscriptionMsg, _j, data, mutationProp, errors, hasValidQuery, hasValidMutation, hasValidSubscription, response, err_1, subsQuery, subsVars, observable;\n var _this = this;\n return __generator(this, function (_k) {\n switch (_k.label) {\n case 0:\n this._unsubscribe();\n this.setState({ loading: true });\n _a = this.props, _b = _a.query, _c = _b === void 0 ? {} : _b, query = _c.query, _d = _c.variables, variables = _d === void 0 ? {} : _d, _e = _a.mutation, _f = _e === void 0 ? {} : _e, mutation = _f.query, _g = _f.mutationVariables, mutationVariables = _g === void 0 ? {} : _g, subscription = _a.subscription, _h = _a.onSubscriptionMsg, onSubscriptionMsg = _h === void 0 ? function (prevData) { return prevData; } : _h;\n _j = this.getDefaultState(), data = _j.data, mutationProp = _j.mutation, errors = _j.errors;\n if (!api_1.API ||\n typeof api_1.API.graphql !== 'function' ||\n typeof api_1.API.getGraphqlOperationType !== 'function') {\n throw new Error('No API module found, please ensure @aws-amplify/api is imported');\n }\n hasValidQuery = query && api_1.API.getGraphqlOperationType(query) === 'query';\n hasValidMutation = mutation && api_1.API.getGraphqlOperationType(mutation) === 'mutation';\n hasValidSubscription = subscription &&\n api_1.API.getGraphqlOperationType(subscription.query) === 'subscription';\n if (!hasValidQuery && !hasValidMutation && !hasValidSubscription) {\n console.warn('No query, mutation or subscription was specified');\n }\n if (!hasValidQuery) return [3 /*break*/, 4];\n _k.label = 1;\n case 1:\n _k.trys.push([1, 3, , 4]);\n data = null;\n return [4 /*yield*/, api_1.API.graphql({ query: query, variables: variables })];\n case 2:\n response = _k.sent();\n // @ts-ignore\n data = response.data;\n return [3 /*break*/, 4];\n case 3:\n err_1 = _k.sent();\n data = err_1.data;\n errors = err_1.errors;\n return [3 /*break*/, 4];\n case 4:\n if (hasValidMutation) {\n // @ts-ignore\n mutationProp = function (variables) { return __awaiter(_this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, api_1.API.graphql({ query: mutation, variables: variables })];\n case 1:\n result = _a.sent();\n this.forceUpdate();\n return [2 /*return*/, result];\n }\n });\n }); };\n }\n if (hasValidSubscription) {\n subsQuery = subscription.query, subsVars = subscription.variables;\n try {\n observable = api_1.API.graphql({\n query: subsQuery,\n variables: subsVars,\n });\n // @ts-ignore\n this.subSubscription = observable.subscribe({\n next: function (_a) {\n var data = _a.value.data;\n var prevData = _this.state.data;\n // @ts-ignore\n var newData = onSubscriptionMsg(prevData, data);\n if (_this.mounted) {\n _this.setState({ data: newData });\n }\n },\n error: function (err) { return console.error(err); },\n });\n }\n catch (err) {\n errors = err.errors;\n }\n }\n this.setState({ data: data, errors: errors, mutation: mutationProp, loading: false });\n return [2 /*return*/];\n }\n });\n });\n };\n Connect.prototype._unsubscribe = function () {\n if (this.subSubscription) {\n this.subSubscription.unsubscribe();\n }\n };\n Connect.prototype.componentDidMount = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n this._fetchData();\n this.mounted = true;\n return [2 /*return*/];\n });\n });\n };\n Connect.prototype.componentWillUnmount = function () {\n this._unsubscribe();\n this.mounted = false;\n };\n Connect.prototype.componentDidUpdate = function (prevProps) {\n var loading = this.state.loading;\n var _a = this.props, newQueryObj = _a.query, newMutationObj = _a.mutation;\n var prevQueryObj = prevProps.query, prevMutationObj = prevProps.mutation;\n // query\n // @ts-ignore\n var _b = newQueryObj || {}, newQuery = _b.query, newQueryVariables = _b.variables;\n // @ts-ignore\n var _c = prevQueryObj || {}, prevQuery = _c.query, prevQueryVariables = _c.variables;\n var queryChanged = prevQuery !== newQuery ||\n JSON.stringify(prevQueryVariables) !== JSON.stringify(newQueryVariables);\n // mutation\n // @ts-ignore\n var _d = newMutationObj || {}, newMutation = _d.query, newMutationVariables = _d.variables;\n // @ts-ignore\n var _e = prevMutationObj || {}, prevMutation = _e.query, prevMutationVariables = _e.variables;\n var mutationChanged = prevMutation !== newMutation ||\n JSON.stringify(prevMutationVariables) !==\n JSON.stringify(newMutationVariables);\n if (!loading && (queryChanged || mutationChanged)) {\n this._fetchData();\n }\n };\n Connect.prototype.render = function () {\n var _a = this.state, data = _a.data, loading = _a.loading, mutation = _a.mutation, errors = _a.errors;\n // @ts-ignore\n return this.props.children({ data: data, errors: errors, loading: loading, mutation: mutation }) || null;\n };\n return Connect;\n}(React.Component));\nexports.Connect = Connect;\n/**\n * @deprecated use named import\n */\nexports.default = Connect;\n//# sourceMappingURL=Connect.js.map","module.exports = __WEBPACK_EXTERNAL_MODULE__71__;","\"use strict\";\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__export(require(\"./ChatBot\"));\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __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};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar AmplifyUI_1 = require(\"../AmplifyUI\");\nvar AmplifyTheme_1 = require(\"../AmplifyTheme\");\nvar core_1 = require(\"@aws-amplify/core\");\nvar interactions_1 = require(\"@aws-amplify/interactions\");\nvar core_2 = require(\"@aws-amplify/core\");\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar logger = new core_2.ConsoleLogger('ChatBot');\n// @ts-ignore\nvar styles = {\n itemMe: {\n padding: 10,\n fontSize: 12,\n color: 'gray',\n marginTop: 4,\n textAlign: 'right',\n },\n itemBot: {\n fontSize: 12,\n textAlign: 'left',\n },\n list: {\n height: '300px',\n overflow: 'auto',\n },\n textInput: Object.assign({}, AmplifyTheme_1.Input, {\n display: 'inline-block',\n width: 'calc(100% - 90px - 15px)',\n }),\n // @ts-ignore\n button: Object.assign({}, AmplifyTheme_1.Button, {\n width: '60px',\n float: 'right',\n }),\n // @ts-ignore\n mic: Object.assign({}, AmplifyTheme_1.Button, {\n width: '40px',\n float: 'right',\n }),\n};\nvar STATES = {\n INITIAL: { MESSAGE: 'Type your message or click 🎤', ICON: '🎤' },\n LISTENING: { MESSAGE: 'Listening... click 🔴 again to cancel', ICON: '🔴' },\n SENDING: { MESSAGE: 'Please wait...', ICON: '🔊' },\n SPEAKING: { MESSAGE: 'Speaking...', ICON: '...' },\n};\nvar defaultVoiceConfig = {\n silenceDetectionConfig: {\n time: 2000,\n amplitude: 0.2,\n },\n};\nvar audioControl;\nvar ChatBot = /** @class */ (function (_super) {\n __extends(ChatBot, _super);\n function ChatBot(props) {\n var _this = _super.call(this, props) || this;\n if (_this.props.voiceEnabled) {\n require('./aws-lex-audio');\n // @ts-ignore\n audioControl = new global.LexAudio.audioControl();\n }\n if (!_this.props.textEnabled && _this.props.voiceEnabled) {\n STATES.INITIAL.MESSAGE = 'Click the mic button';\n styles.textInput = Object.assign({}, AmplifyTheme_1.Input, {\n display: 'inline-block',\n width: 'calc(100% - 40px - 15px)',\n });\n }\n if (_this.props.textEnabled && !_this.props.voiceEnabled) {\n STATES.INITIAL.MESSAGE = 'Type a message';\n styles.textInput = Object.assign({}, AmplifyTheme_1.Input, {\n display: 'inline-block',\n width: 'calc(100% - 60px - 15px)',\n });\n }\n if (!_this.props.voiceConfig.silenceDetectionConfig) {\n throw new Error('voiceConfig prop is missing silenceDetectionConfig');\n }\n _this.state = {\n dialog: [\n {\n message: _this.props.welcomeMessage || 'Welcome to Lex',\n from: 'system',\n },\n ],\n inputText: '',\n currentVoiceState: STATES.INITIAL,\n inputDisabled: false,\n micText: STATES.INITIAL.ICON,\n continueConversation: false,\n micButtonDisabled: false,\n };\n _this.micButtonHandler = _this.micButtonHandler.bind(_this);\n _this.changeInputText = _this.changeInputText.bind(_this);\n _this.listItems = _this.listItems.bind(_this);\n _this.submit = _this.submit.bind(_this);\n // @ts-ignore\n _this.listItemsRef = React.createRef();\n _this.onSilenceHandler = _this.onSilenceHandler.bind(_this);\n _this.doneSpeakingHandler = _this.doneSpeakingHandler.bind(_this);\n _this.lexResponseHandler = _this.lexResponseHandler.bind(_this);\n return _this;\n }\n ChatBot.prototype.micButtonHandler = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n if (this.state.continueConversation) {\n this.reset();\n }\n else {\n this.setState({\n inputDisabled: true,\n continueConversation: true,\n currentVoiceState: STATES.LISTENING,\n micText: STATES.LISTENING.ICON,\n micButtonDisabled: false,\n }, function () {\n audioControl.startRecording(_this.onSilenceHandler, null, _this.props.voiceConfig.silenceDetectionConfig);\n });\n }\n return [2 /*return*/];\n });\n });\n };\n ChatBot.prototype.onSilenceHandler = function () {\n var _this = this;\n audioControl.stopRecording();\n if (!this.state.continueConversation) {\n return;\n }\n audioControl.exportWAV(function (blob) {\n _this.setState({\n currentVoiceState: STATES.SENDING,\n audioInput: blob,\n micText: STATES.SENDING.ICON,\n micButtonDisabled: true,\n }, function () {\n _this.lexResponseHandler();\n });\n });\n };\n ChatBot.prototype.lexResponseHandler = function () {\n return __awaiter(this, void 0, void 0, function () {\n var interactionsMessage, response;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!interactions_1.Interactions || typeof interactions_1.Interactions.send !== 'function') {\n throw new Error('No Interactions module found, please ensure @aws-amplify/interactions is imported');\n }\n if (!this.state.continueConversation) {\n return [2 /*return*/];\n }\n interactionsMessage = {\n content: this.state.audioInput,\n options: {\n messageType: 'voice',\n },\n };\n return [4 /*yield*/, interactions_1.Interactions.send(this.props.botName, interactionsMessage)];\n case 1:\n response = _a.sent();\n this.setState({\n lexResponse: response,\n currentVoiceState: STATES.SPEAKING,\n micText: STATES.SPEAKING.ICON,\n micButtonDisabled: true,\n dialog: __spread(this.state.dialog, [\n // @ts-ignore\n { message: response.inputTranscript, from: 'me' },\n // @ts-ignore\n response && { from: 'bot', message: response.message },\n ]),\n inputText: '',\n }, function () {\n _this.doneSpeakingHandler();\n });\n this.listItemsRef.current.scrollTop = this.listItemsRef.current.scrollHeight;\n return [2 /*return*/];\n }\n });\n });\n };\n ChatBot.prototype.doneSpeakingHandler = function () {\n var _this = this;\n if (!this.state.continueConversation) {\n return;\n }\n if (this.state.lexResponse.contentType === 'audio/mpeg') {\n audioControl.play(this.state.lexResponse.audioStream, function () {\n if (_this.state.lexResponse.dialogState === 'ReadyForFulfillment' ||\n _this.state.lexResponse.dialogState === 'Fulfilled' ||\n _this.state.lexResponse.dialogState === 'Failed' ||\n !_this.props.conversationModeOn) {\n _this.setState({\n inputDisabled: false,\n currentVoiceState: STATES.INITIAL,\n micText: STATES.INITIAL.ICON,\n micButtonDisabled: false,\n continueConversation: false,\n });\n }\n else {\n _this.setState({\n currentVoiceState: STATES.LISTENING,\n micText: STATES.LISTENING.ICON,\n micButtonDisabled: false,\n }, function () {\n audioControl.startRecording(_this.onSilenceHandler, null, _this.props.voiceConfig.silenceDetectionConfig);\n });\n }\n });\n }\n else {\n this.setState({\n inputDisabled: false,\n currentVoiceState: STATES.INITIAL,\n micText: STATES.INITIAL.ICON,\n micButtonDisabled: false,\n continueConversation: false,\n });\n }\n };\n ChatBot.prototype.reset = function () {\n this.setState({\n inputText: '',\n currentVoiceState: STATES.INITIAL,\n inputDisabled: false,\n micText: STATES.INITIAL.ICON,\n continueConversation: false,\n micButtonDisabled: false,\n }, function () {\n audioControl.clear();\n });\n };\n ChatBot.prototype.listItems = function () {\n return this.state.dialog.map(function (m, i) {\n if (m.from === 'me') {\n return (React.createElement(\"div\", { key: i, style: styles.itemMe, \"data-test\": data_test_attributes_1.chatBot.dialog + \"-\" + i }, m.message));\n }\n else if (m.from === 'system') {\n return (React.createElement(\"div\", { key: i, style: styles.itemBot, \"data-test\": data_test_attributes_1.chatBot.dialog + \"-\" + i }, m.message));\n }\n else {\n return (React.createElement(\"div\", { key: i, style: styles.itemBot, \"data-test\": data_test_attributes_1.chatBot.dialog + \"-\" + i }, m.message));\n }\n });\n };\n ChatBot.prototype.submit = function (e) {\n return __awaiter(this, void 0, void 0, function () {\n var response;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n e.preventDefault();\n if (!this.state.inputText) {\n return [2 /*return*/];\n }\n return [4 /*yield*/, new Promise(function (resolve) {\n return _this.setState({\n dialog: __spread(_this.state.dialog, [\n { message: _this.state.inputText, from: 'me' },\n ]),\n }, resolve);\n })];\n case 1:\n _a.sent();\n if (!interactions_1.Interactions || typeof interactions_1.Interactions.send !== 'function') {\n throw new Error('No Interactions module found, please ensure @aws-amplify/interactions is imported');\n }\n return [4 /*yield*/, interactions_1.Interactions.send(this.props.botName, this.state.inputText)];\n case 2:\n response = _a.sent();\n this.setState({\n // @ts-ignore\n dialog: __spread(this.state.dialog, [\n // @ts-ignore\n response && { from: 'bot', message: response.message },\n ]),\n inputText: '',\n });\n this.listItemsRef.current.scrollTop = this.listItemsRef.current.scrollHeight;\n return [2 /*return*/];\n }\n });\n });\n };\n ChatBot.prototype.changeInputText = function (event) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.setState({ inputText: event.target.value })];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n ChatBot.prototype.getOnComplete = function (fn) {\n var _this = this;\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var clearOnComplete = _this.props.clearOnComplete;\n var message = fn.apply(void 0, __spread(args));\n _this.setState({\n dialog: __spread((clearOnComplete ? [] : _this.state.dialog), [\n message && { from: 'bot', message: message },\n ]).filter(Boolean),\n }, function () {\n _this.listItemsRef.current.scrollTop = _this.listItemsRef.current.scrollHeight;\n });\n };\n };\n ChatBot.prototype.componentDidMount = function () {\n var _a = this.props, onComplete = _a.onComplete, botName = _a.botName;\n if (onComplete && botName) {\n if (!interactions_1.Interactions || typeof interactions_1.Interactions.onComplete !== 'function') {\n throw new Error('No Interactions module found, please ensure @aws-amplify/interactions is imported');\n }\n // @ts-ignore\n interactions_1.Interactions.onComplete(botName, this.getOnComplete(onComplete, this));\n }\n };\n ChatBot.prototype.componentDidUpdate = function (prevProps) {\n var _a = this.props, onComplete = _a.onComplete, botName = _a.botName;\n if (botName && this.props.onComplete !== prevProps.onComplete) {\n if (!interactions_1.Interactions || typeof interactions_1.Interactions.onComplete !== 'function') {\n throw new Error('No Interactions module found, please ensure @aws-amplify/interactions is imported');\n }\n // @ts-ignore\n interactions_1.Interactions.onComplete(botName, this.getOnComplete(onComplete, this));\n }\n };\n ChatBot.prototype.render = function () {\n var _a = this.props, title = _a.title, theme = _a.theme, onComplete = _a.onComplete;\n return (React.createElement(AmplifyUI_1.FormSection, { theme: theme },\n title && (React.createElement(AmplifyUI_1.SectionHeader, { theme: theme, \"data-test\": data_test_attributes_1.chatBot.title }, core_1.I18n.get(title))),\n React.createElement(AmplifyUI_1.SectionBody, { theme: theme },\n React.createElement(\"div\", { ref: this.listItemsRef, style: styles.list }, this.listItems())),\n React.createElement(AmplifyUI_1.SectionFooter, { theme: theme },\n React.createElement(ChatBotInputs, { micText: this.state.micText, voiceEnabled: this.props.voiceEnabled, textEnabled: this.props.textEnabled, styles: styles, onChange: this.changeInputText, inputText: this.state.inputText, onSubmit: this.submit, inputDisabled: this.state.inputDisabled, micButtonDisabled: this.state.micButtonDisabled, handleMicButton: this.micButtonHandler, currentVoiceState: this.state.currentVoiceState }))));\n };\n return ChatBot;\n}(React.Component));\nexports.ChatBot = ChatBot;\nfunction ChatBotTextInput(props) {\n var styles = props.styles;\n var onChange = props.onChange;\n var inputText = props.inputText;\n var inputDisabled = props.inputDisabled;\n var currentVoiceState = props.currentVoiceState;\n return (React.createElement(\"input\", { style: styles.textInput, type: \"text\", placeholder: core_1.I18n.get(currentVoiceState.MESSAGE), onChange: onChange, value: inputText, disabled: inputDisabled, \"data-test\": data_test_attributes_1.chatBot.messageInput }));\n}\nfunction ChatBotMicButton(props) {\n var voiceEnabled = props.voiceEnabled;\n var styles = props.styles;\n var micButtonDisabled = props.micButtonDisabled;\n var handleMicButton = props.handleMicButton;\n var micText = props.micText;\n if (!voiceEnabled) {\n return null;\n }\n return (React.createElement(\"button\", { style: styles.mic, disabled: micButtonDisabled, onClick: handleMicButton }, micText));\n}\nfunction ChatBotTextButton(props) {\n var textEnabled = props.textEnabled;\n var styles = props.styles;\n var inputDisabled = props.inputDisabled;\n if (!textEnabled) {\n return null;\n }\n return (React.createElement(\"button\", { type: \"submit\", style: styles.button, disabled: inputDisabled, \"data-test\": data_test_attributes_1.chatBot.sendMessageButton }, core_1.I18n.get('Send')));\n}\nfunction ChatBotInputs(props) {\n var voiceEnabled = props.voiceEnabled;\n var textEnabled = props.textEnabled;\n var styles = props.styles;\n var onChange = props.onChange;\n var inputDisabled = props.inputDisabled;\n var micButtonDisabled = props.micButtonDisabled;\n var inputText = props.inputText;\n var onSubmit = props.onSubmit;\n var handleMicButton = props.handleMicButton;\n var micText = props.micText;\n var currentVoiceState = props.currentVoiceState;\n if (voiceEnabled && !textEnabled) {\n inputDisabled = true;\n }\n if (!voiceEnabled && !textEnabled) {\n return (React.createElement(\"div\", null,\n \"No Chatbot inputs enabled. Set at least one of voiceEnabled or textEnabled in the props.\",\n ' '));\n }\n return (React.createElement(\"form\", { onSubmit: onSubmit },\n React.createElement(ChatBotTextInput, { onSubmit: onSubmit, styles: styles, type: \"text\", currentVoiceState: currentVoiceState, onChange: onChange, inputText: inputText, inputDisabled: inputDisabled }),\n React.createElement(ChatBotTextButton, { onSubmit: onSubmit, type: \"submit\", styles: styles, inputDisabled: inputDisabled, textEnabled: textEnabled }),\n React.createElement(ChatBotMicButton, { styles: styles, micButtonDisabled: micButtonDisabled, handleMicButton: handleMicButton, micText: micText, voiceEnabled: voiceEnabled })));\n}\n// @ts-ignore\nChatBot.defaultProps = {\n title: '',\n botName: '',\n onComplete: undefined,\n clearOnComplete: false,\n voiceConfig: defaultVoiceConfig,\n conversationModeOn: false,\n voiceEnabled: false,\n textEnabled: true,\n};\n/**\n * @deprecated use named import\n */\nexports.default = ChatBot;\n//# sourceMappingURL=ChatBot.js.map","module.exports = __WEBPACK_EXTERNAL_MODULE__74__;","// Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this\n// software and associated documentation files (the \"Software\"), to deal in the Software\n// without restriction, including without limitation the rights to use, copy, modify,\n// merge, publish, distribute, sublicense, and/or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\n// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n// @ts-ignore\n(function e(t, n, r) {\n function s(o, u) {\n if (!n[o]) {\n if (!t[o]) {\n var a = typeof require == 'function' && require;\n // @ts-ignore\n if (!u && a)\n return a(o, !0);\n // @ts-ignore\n if (i)\n return i(o, !0);\n var f = new Error(\"Cannot find module '\" + o + \"'\");\n // @ts-ignore\n throw ((f.code = 'MODULE_NOT_FOUND'), f);\n }\n var l = (n[o] = { exports: {} });\n t[o][0].call(l.exports, function (e) {\n var n = t[o][1][e];\n // @ts-ignore\n return s(n ? n : e);\n }, l, l.exports, e, t, n, r);\n }\n return n[o].exports;\n }\n var i = typeof require == 'function' && require;\n // @ts-ignore\n for (var o = 0; o < r.length; o++)\n s(r[o]);\n return s;\n})({\n 1: [\n function (require, module, exports) {\n (function () {\n 'use strict';\n var rec = require('./recorder.js');\n var recorder, audioRecorder, checkAudioSupport, audioSupported, playbackSource, UNSUPPORTED = 'Audio is not supported.';\n /**\n * Represents an audio control that can start and stop recording,\n * export captured audio, play an audio buffer, and check if audio\n * is supported.\n */\n exports.audioControl = function (options) {\n options = options || {};\n this.checkAudioSupport = options.checkAudioSupport !== false;\n /**\n * This callback type is called `onSilenceCallback`.\n *\n * @callback onSilenceCallback\n */\n /**\n * Visualize callback: `visualizerCallback`.\n *\n * @callback visualizerCallback\n * @param {Uint8Array} dataArray\n * @param {number} bufferLength\n */\n /**\n * Clears the previous buffer and starts buffering audio.\n *\n * @param {?onSilenceCallback} onSilence - Called when silence is detected.\n * @param {?visualizerCallback} visualizer - Can be used to visualize the captured buffer.\n * @param {silenceDetectionConfig} - Specify custom silence detection values.\n * @throws {Error} If audio is not supported.\n */\n var startRecording = function (onSilence, visualizer, silenceDetectionConfig) {\n onSilence =\n onSilence ||\n function () {\n /* no op */\n };\n visualizer =\n visualizer ||\n function () {\n /* no op */\n };\n audioSupported = audioSupported !== false;\n if (!audioSupported) {\n throw new Error(UNSUPPORTED);\n }\n var context = audioRecorder.audioContext();\n context.resume().then(function () {\n recorder = audioRecorder.createRecorder(silenceDetectionConfig);\n recorder.record(onSilence, visualizer);\n });\n };\n /**\n * Stops buffering audio.\n *\n * @throws {Error} If audio is not supported.\n */\n var stopRecording = function () {\n audioSupported = audioSupported !== false;\n if (!audioSupported) {\n throw new Error(UNSUPPORTED);\n }\n recorder.stop();\n };\n /**\n * On export complete callback: `onExportComplete`.\n *\n * @callback onExportComplete\n * @param {Blob} blob The exported audio as a Blob.\n */\n /**\n * Exports the captured audio buffer.\n *\n * @param {onExportComplete} callback - Called when the export is complete.\n * @param {sampleRate} The sample rate to use in the export.\n * @throws {Error} If audio is not supported.\n */\n var exportWAV = function (callback, sampleRate) {\n audioSupported = audioSupported !== false;\n if (!audioSupported) {\n throw new Error(UNSUPPORTED);\n }\n if (!(callback && typeof callback === 'function')) {\n throw new Error('You must pass a callback function to export.');\n }\n sampleRate =\n typeof sampleRate !== 'undefined' ? sampleRate : 16000;\n recorder.exportWAV(callback, sampleRate);\n recorder.clear();\n };\n /**\n * On playback complete callback: `onPlaybackComplete`.\n *\n * @callback onPlaybackComplete\n */\n /**\n * Plays the audio buffer with an HTML5 audio tag.\n * @param {Uint8Array} buffer - The audio buffer to play.\n * @param {?onPlaybackComplete} callback - Called when audio playback is complete.\n */\n var playHtmlAudioElement = function (buffer, callback) {\n if (typeof buffer === 'undefined') {\n return;\n }\n var myBlob = new Blob([buffer]);\n var audio = document.createElement('audio');\n var objectUrl = window.URL.createObjectURL(myBlob);\n audio.src = objectUrl;\n audio.addEventListener('ended', function () {\n audio.currentTime = 0;\n if (typeof callback === 'function') {\n callback();\n }\n });\n audio.play();\n };\n /**\n * On playback complete callback: `onPlaybackComplete`.\n *\n * @callback onPlaybackComplete\n */\n /**\n * Plays the audio buffer with a WebAudio AudioBufferSourceNode.\n * @param {Uint8Array} buffer - The audio buffer to play.\n * @param {?onPlaybackComplete} callback - Called when audio playback is complete.\n */\n var play = function (buffer, callback) {\n if (typeof buffer === 'undefined') {\n return;\n }\n var myBlob = new Blob([buffer]);\n // We'll use a FileReader to create and ArrayBuffer out of the audio response.\n var fileReader = new FileReader();\n fileReader.onload = function () {\n // Once we have an ArrayBuffer we can create our BufferSource and decode the result as an AudioBuffer.\n playbackSource = audioRecorder\n .audioContext()\n .createBufferSource();\n audioRecorder\n .audioContext()\n .decodeAudioData(this.result, function (buf) {\n // Set the source buffer as our new AudioBuffer.\n playbackSource.buffer = buf;\n // Set the destination (the actual audio-rendering device--your device's speakers).\n playbackSource.connect(audioRecorder.audioContext().destination);\n // Add an \"on ended\" callback.\n playbackSource.onended = function (event) {\n if (typeof callback === 'function') {\n callback();\n }\n };\n // Start the playback.\n playbackSource.start(0);\n });\n };\n fileReader.readAsArrayBuffer(myBlob);\n };\n /**\n * Stops the playback source (created by the play method) if it exists. The `onPlaybackComplete`\n * callback will be called.\n */\n var stop = function () {\n if (typeof playbackSource === 'undefined') {\n return;\n }\n playbackSource.stop();\n };\n /**\n * Clear the recording buffer.\n */\n var clear = function () {\n recorder.clear();\n };\n /**\n * On audio supported callback: `onAudioSupported`.\n *\n * @callback onAudioSupported\n * @param {boolean}\n */\n /**\n * Checks that getUserMedia is supported and the user has given us access to the mic.\n * @param {onAudioSupported} callback - Called with the result.\n */\n var supportsAudio = function (callback) {\n callback =\n callback ||\n function () {\n /* no op */\n };\n if (navigator.mediaDevices &&\n navigator.mediaDevices.getUserMedia) {\n audioRecorder = rec.audioRecorder();\n audioRecorder\n .requestDevice()\n .then(function (stream) {\n audioSupported = true;\n callback(audioSupported);\n })\n .catch(function (error) {\n audioSupported = false;\n callback(audioSupported);\n });\n }\n else {\n audioSupported = false;\n callback(audioSupported);\n }\n };\n if (this.checkAudioSupport) {\n // @ts-ignore\n supportsAudio();\n }\n return {\n startRecording: startRecording,\n stopRecording: stopRecording,\n exportWAV: exportWAV,\n play: play,\n stop: stop,\n clear: clear,\n playHtmlAudioElement: playHtmlAudioElement,\n supportsAudio: supportsAudio,\n };\n };\n })();\n },\n { './recorder.js': 5 },\n ],\n 2: [\n function (require, module, exports) {\n (function () {\n 'use strict';\n var AudioControl = require('./control.js').audioControl;\n var DEFAULT_LATEST = '$LATEST';\n var DEFAULT_CONTENT_TYPE = 'audio/x-l16; sample-rate=16000';\n var DEFAULT_USER_ID = 'userId';\n var DEFAULT_ACCEPT_HEADER_VALUE = 'audio/mpeg';\n var MESSAGES = Object.freeze({\n PASSIVE: 'Passive',\n LISTENING: 'Listening',\n SENDING: 'Sending',\n SPEAKING: 'Speaking',\n });\n var lexruntime, audioControl = new AudioControl({ checkAudioSupport: false });\n exports.conversation = function (config, onStateChange, onSuccess, onError, onAudioData) {\n var currentState;\n // Apply default values.\n this.config = applyDefaults(config);\n this.lexConfig = this.config.lexConfig;\n this.messages = MESSAGES;\n onStateChange =\n onStateChange ||\n function () {\n /* no op */\n };\n this.onSuccess =\n onSuccess ||\n function () {\n /* no op */\n };\n this.onError =\n onError ||\n function () {\n /* no op */\n };\n this.onAudioData =\n onAudioData ||\n function () {\n /* no op */\n };\n // Validate input.\n if (!this.config.lexConfig.botName) {\n this.onError('A Bot name must be provided.');\n return;\n }\n // @ts-ignore\n if (!AWS.config.credentials) {\n this.onError('AWS Credentials must be provided.');\n return;\n }\n // @ts-ignore\n if (!AWS.config.region) {\n this.onError('A Region value must be provided.');\n return;\n }\n // @ts-ignore\n lexruntime = new AWS.LexRuntime();\n this.onSilence = function () {\n if (config.silenceDetection) {\n audioControl.stopRecording();\n currentState.advanceConversation();\n }\n };\n this.transition = function (conversation) {\n currentState = conversation;\n var state = currentState.state;\n onStateChange(state.message);\n // If we are transitioning into SENDING or SPEAKING we want to immediately advance the conversation state\n // to start the service call or playback.\n if (state.message === state.messages.SENDING ||\n state.message === state.messages.SPEAKING) {\n currentState.advanceConversation();\n }\n // If we are transitioning in to sending and we are not detecting silence (this was a manual state change)\n // we need to do some cleanup: stop recording, and stop rendering.\n if (state.message === state.messages.SENDING &&\n !this.config.silenceDetection) {\n audioControl.stopRecording();\n }\n };\n this.advanceConversation = function () {\n audioControl.supportsAudio(function (supported) {\n if (supported) {\n currentState.advanceConversation();\n }\n else {\n onError('Audio is not supported.');\n }\n });\n };\n this.updateConfig = function (newValue) {\n this.config = applyDefaults(newValue);\n this.lexConfig = this.config.lexConfig;\n };\n this.reset = function () {\n audioControl.clear();\n currentState = new Initial(currentState.state);\n };\n currentState = new Initial(this);\n return {\n advanceConversation: this.advanceConversation,\n updateConfig: this.updateConfig,\n reset: this.reset,\n };\n };\n var Initial = function (state) {\n this.state = state;\n state.message = state.messages.PASSIVE;\n this.advanceConversation = function () {\n audioControl.startRecording(state.onSilence, state.onAudioData, state.config.silenceDetectionConfig);\n state.transition(new Listening(state));\n };\n };\n var Listening = function (state) {\n this.state = state;\n state.message = state.messages.LISTENING;\n this.advanceConversation = function () {\n audioControl.exportWAV(function (blob) {\n state.audioInput = blob;\n state.transition(new Sending(state));\n });\n };\n };\n var Sending = function (state) {\n this.state = state;\n state.message = state.messages.SENDING;\n this.advanceConversation = function () {\n state.lexConfig.inputStream = state.audioInput;\n lexruntime.postContent(state.lexConfig, function (err, data) {\n if (err) {\n state.onError(err);\n state.transition(new Initial(state));\n }\n else {\n state.audioOutput = data;\n state.transition(new Speaking(state));\n state.onSuccess(data);\n }\n });\n };\n };\n var Speaking = function (state) {\n this.state = state;\n state.message = state.messages.SPEAKING;\n this.advanceConversation = function () {\n if (state.audioOutput.contentType === 'audio/mpeg') {\n audioControl.play(state.audioOutput.audioStream, function () {\n if (state.audioOutput.dialogState === 'ReadyForFulfillment' ||\n state.audioOutput.dialogState === 'Fulfilled' ||\n state.audioOutput.dialogState === 'Failed' ||\n !state.config.silenceDetection) {\n state.transition(new Initial(state));\n }\n else {\n audioControl.startRecording(state.onSilence, state.onAudioData, state.config.silenceDetectionConfig);\n state.transition(new Listening(state));\n }\n });\n }\n else {\n state.transition(new Initial(state));\n }\n };\n };\n var applyDefaults = function (config) {\n config = config || {};\n config.silenceDetection = config.hasOwnProperty('silenceDetection')\n ? config.silenceDetection\n : true;\n var lexConfig = config.lexConfig || {};\n lexConfig.botAlias = lexConfig.hasOwnProperty('botAlias')\n ? lexConfig.botAlias\n : DEFAULT_LATEST;\n lexConfig.botName = lexConfig.hasOwnProperty('botName')\n ? lexConfig.botName\n : '';\n lexConfig.contentType = lexConfig.hasOwnProperty('contentType')\n ? lexConfig.contentType\n : DEFAULT_CONTENT_TYPE;\n lexConfig.userId = lexConfig.hasOwnProperty('userId')\n ? lexConfig.userId\n : DEFAULT_USER_ID;\n lexConfig.accept = lexConfig.hasOwnProperty('accept')\n ? lexConfig.accept\n : DEFAULT_ACCEPT_HEADER_VALUE;\n config.lexConfig = lexConfig;\n return config;\n };\n })();\n },\n { './control.js': 1 },\n ],\n 3: [\n function (require, module, exports) {\n (function (global) {\n /**\n * @module LexAudio\n * @description The global namespace for Amazon Lex Audio\n */\n global.LexAudio = global.LexAudio || {};\n global.LexAudio.audioControl = require('./control.js').audioControl;\n global.LexAudio.conversation = require('./conversation.js').conversation;\n module.exports = global.LexAudio;\n }.call(this, typeof global !== 'undefined'\n ? global\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : {}));\n },\n { './control.js': 1, './conversation.js': 2 },\n ],\n 4: [\n function (require, module, exports) {\n var bundleFn = arguments[3];\n var sources = arguments[4];\n var cache = arguments[5];\n var stringify = JSON.stringify;\n module.exports = function (fn, options) {\n var wkey;\n var cacheKeys = Object.keys(cache);\n for (var i = 0, l = cacheKeys.length; i < l; i++) {\n var key = cacheKeys[i];\n var exp = cache[key].exports;\n // Using babel as a transpiler to use esmodule, the export will always\n // be an object with the default export as a property of it. To ensure\n // the existing api and babel esmodule exports are both supported we\n // check for both\n if (exp === fn || (exp && exp.default === fn)) {\n wkey = key;\n break;\n }\n }\n if (!wkey) {\n wkey = Math.floor(Math.pow(16, 8) * Math.random()).toString(16);\n var wcache = {};\n for (var i = 0, l = cacheKeys.length; i < l; i++) {\n var key = cacheKeys[i];\n wcache[key] = key;\n }\n sources[wkey] = [\n // @ts-ignore\n Function(['require', 'module', 'exports'], '(' + fn + ')(self)'),\n wcache,\n ];\n }\n var skey = Math.floor(Math.pow(16, 8) * Math.random()).toString(16);\n var scache = {};\n scache[wkey] = wkey;\n sources[skey] = [\n // @ts-ignore\n Function(\n // @ts-ignore\n ['require'], \n // try to call default if defined to also support babel esmodule\n // exports\n 'var f = require(' +\n stringify(wkey) +\n ');' +\n '(f.default ? f.default : f)(self);'),\n scache,\n ];\n var workerSources = {};\n resolveSources(skey);\n function resolveSources(key) {\n workerSources[key] = true;\n for (var depPath in sources[key][1]) {\n var depKey = sources[key][1][depPath];\n if (!workerSources[depKey]) {\n resolveSources(depKey);\n }\n }\n }\n var src = '(' +\n bundleFn +\n ')({' +\n Object.keys(workerSources)\n .map(function (key) {\n return (stringify(key) +\n ':[' +\n sources[key][0] +\n ',' +\n stringify(sources[key][1]) +\n ']');\n })\n .join(',') +\n '},{},[' +\n stringify(skey) +\n '])';\n // @ts-ignore\n var URL = \n // @ts-ignore\n window.URL || window.webkitURL || window.mozURL || window.msURL;\n var blob = new Blob([src], { type: 'text/javascript' });\n if (options && options.bare) {\n return blob;\n }\n var workerUrl = URL.createObjectURL(blob);\n var worker = new Worker(workerUrl);\n // @ts-ignore\n worker.objectURL = workerUrl;\n return worker;\n };\n },\n {},\n ],\n 5: [\n function (require, module, exports) {\n (function () {\n 'use strict';\n var work = require('webworkify');\n var worker = work(require('./worker.js'));\n var audio_context, audio_stream;\n /**\n * The Recorder object. Sets up the onaudioprocess callback and communicates\n * with the web worker to perform audio actions.\n */\n var recorder = function (source, silenceDetectionConfig) {\n silenceDetectionConfig = silenceDetectionConfig || {};\n silenceDetectionConfig.time = silenceDetectionConfig.hasOwnProperty('time')\n ? silenceDetectionConfig.time\n : 1500;\n silenceDetectionConfig.amplitude = silenceDetectionConfig.hasOwnProperty('amplitude')\n ? silenceDetectionConfig.amplitude\n : 0.2;\n var recording = false, currCallback, start, silenceCallback, visualizationCallback;\n // Create a ScriptProcessorNode with a bufferSize of 4096 and a single input and output channel\n var node = source.context.createScriptProcessor(4096, 1, 1);\n worker.onmessage = function (message) {\n var blob = message.data;\n currCallback(blob);\n };\n worker.postMessage({\n command: 'init',\n config: {\n sampleRate: source.context.sampleRate,\n },\n });\n /**\n * Sets the silence and viz callbacks, resets the silence start time, and sets recording to true.\n * @param {?onSilenceCallback} onSilence - Called when silence is detected.\n * @param {?visualizerCallback} visualizer - Can be used to visualize the captured buffer.\n */\n var record = function (onSilence, visualizer) {\n silenceCallback = onSilence;\n visualizationCallback = visualizer;\n start = Date.now();\n recording = true;\n };\n /**\n * Sets recording to false.\n */\n var stop = function () {\n recording = false;\n };\n /**\n * Posts \"clear\" message to the worker.\n */\n var clear = function () {\n stop();\n worker.postMessage({ command: 'clear' });\n };\n /**\n * Sets the export callback and posts an \"export\" message to the worker.\n * @param {onExportComplete} callback - Called when the export is complete.\n * @param {sampleRate} The sample rate to use in the export.\n */\n var exportWAV = function (callback, sampleRate) {\n currCallback = callback;\n worker.postMessage({\n command: 'export',\n sampleRate: sampleRate,\n });\n };\n /**\n * Checks the time domain data to see if the amplitude of the audio waveform is more than\n * the silence threshold. If it is, \"noise\" has been detected and it resets the start time.\n * If the elapsed time reaches the time threshold the silence callback is called. If there is a\n * visualizationCallback it invokes the visualization callback with the time domain data.\n */\n var analyse = function () {\n analyser.fftSize = 2048;\n var bufferLength = analyser.fftSize;\n var dataArray = new Uint8Array(bufferLength);\n var amplitude = silenceDetectionConfig.amplitude;\n var time = silenceDetectionConfig.time;\n analyser.getByteTimeDomainData(dataArray);\n if (typeof visualizationCallback === 'function') {\n visualizationCallback(dataArray, bufferLength);\n }\n for (var i = 0; i < bufferLength; i++) {\n // Normalize between -1 and 1.\n var curr_value_time = dataArray[i] / 128 - 1.0;\n if (curr_value_time > amplitude ||\n curr_value_time < -1 * amplitude) {\n start = Date.now();\n }\n }\n var newtime = Date.now();\n var elapsedTime = newtime - start;\n if (elapsedTime > time) {\n silenceCallback();\n }\n };\n /**\n * The onaudioprocess event handler of the ScriptProcessorNode interface. It is the EventHandler to be\n * called for the audioprocess event that is dispatched to ScriptProcessorNode node types.\n * @param {AudioProcessingEvent} audioProcessingEvent - The audio processing event.\n */\n node.onaudioprocess = function (audioProcessingEvent) {\n if (!recording) {\n return;\n }\n worker.postMessage({\n command: 'record',\n buffer: [audioProcessingEvent.inputBuffer.getChannelData(0)],\n });\n analyse();\n };\n var analyser = source.context.createAnalyser();\n analyser.minDecibels = -90;\n analyser.maxDecibels = -10;\n analyser.smoothingTimeConstant = 0.85;\n source.connect(analyser);\n analyser.connect(node);\n node.connect(source.context.destination);\n return {\n record: record,\n stop: stop,\n clear: clear,\n exportWAV: exportWAV,\n };\n };\n /**\n * Audio recorder object. Handles setting up the audio context,\n * accessing the mike, and creating the Recorder object.\n */\n exports.audioRecorder = function () {\n /**\n * Creates an audio context and calls getUserMedia to request the mic (audio).\n */\n var requestDevice = function () {\n if (typeof audio_context === 'undefined') {\n // @ts-ignore\n window.AudioContext =\n // @ts-ignore\n window.AudioContext || window.webkitAudioContext;\n audio_context = new AudioContext();\n }\n return navigator.mediaDevices\n .getUserMedia({ audio: true })\n .then(function (stream) {\n audio_stream = stream;\n });\n };\n var createRecorder = function (silenceDetectionConfig) {\n return recorder(audio_context.createMediaStreamSource(audio_stream), silenceDetectionConfig);\n };\n var audioContext = function () {\n return audio_context;\n };\n return {\n requestDevice: requestDevice,\n createRecorder: createRecorder,\n audioContext: audioContext,\n };\n };\n })();\n },\n { './worker.js': 6, webworkify: 4 },\n ],\n 6: [\n function (require, module, exports) {\n module.exports = function (self) {\n 'use strict';\n var recLength = 0, recBuffer = [], recordSampleRate;\n self.addEventListener('message', function (e) {\n switch (e.data.command) {\n case 'init':\n init(e.data.config);\n break;\n case 'record':\n record(e.data.buffer);\n break;\n case 'export':\n exportBuffer(e.data.sampleRate);\n break;\n case 'clear':\n clear();\n break;\n }\n });\n function init(config) {\n recordSampleRate = config.sampleRate;\n }\n function record(inputBuffer) {\n recBuffer.push(inputBuffer[0]);\n recLength += inputBuffer[0].length;\n }\n function exportBuffer(exportSampleRate) {\n var mergedBuffers = mergeBuffers(recBuffer, recLength);\n var downsampledBuffer = downsampleBuffer(mergedBuffers, exportSampleRate);\n var encodedWav = encodeWAV(downsampledBuffer);\n var audioBlob = new Blob([encodedWav], {\n type: 'application/octet-stream',\n });\n // @ts-ignore\n postMessage(audioBlob);\n }\n function clear() {\n recLength = 0;\n recBuffer = [];\n }\n function downsampleBuffer(buffer, exportSampleRate) {\n if (exportSampleRate === recordSampleRate) {\n return buffer;\n }\n var sampleRateRatio = recordSampleRate / exportSampleRate;\n var newLength = Math.round(buffer.length / sampleRateRatio);\n var result = new Float32Array(newLength);\n var offsetResult = 0;\n var offsetBuffer = 0;\n while (offsetResult < result.length) {\n var nextOffsetBuffer = Math.round((offsetResult + 1) * sampleRateRatio);\n var accum = 0, count = 0;\n for (var i = offsetBuffer; i < nextOffsetBuffer && i < buffer.length; i++) {\n accum += buffer[i];\n count++;\n }\n result[offsetResult] = accum / count;\n offsetResult++;\n offsetBuffer = nextOffsetBuffer;\n }\n return result;\n }\n function mergeBuffers(bufferArray, recLength) {\n var result = new Float32Array(recLength);\n var offset = 0;\n for (var i = 0; i < bufferArray.length; i++) {\n result.set(bufferArray[i], offset);\n offset += bufferArray[i].length;\n }\n return result;\n }\n function floatTo16BitPCM(output, offset, input) {\n for (var i = 0; i < input.length; i++, offset += 2) {\n var s = Math.max(-1, Math.min(1, input[i]));\n output.setInt16(offset, s < 0 ? s * 0x8000 : s * 0x7fff, true);\n }\n }\n function writeString(view, offset, string) {\n for (var i = 0; i < string.length; i++) {\n view.setUint8(offset + i, string.charCodeAt(i));\n }\n }\n function encodeWAV(samples) {\n var buffer = new ArrayBuffer(44 + samples.length * 2);\n var view = new DataView(buffer);\n writeString(view, 0, 'RIFF');\n view.setUint32(4, 32 + samples.length * 2, true);\n writeString(view, 8, 'WAVE');\n writeString(view, 12, 'fmt ');\n view.setUint32(16, 16, true);\n view.setUint16(20, 1, true);\n view.setUint16(22, 1, true);\n view.setUint32(24, recordSampleRate, true);\n view.setUint32(28, recordSampleRate * 2, true);\n view.setUint16(32, 2, true);\n view.setUint16(34, 16, true);\n writeString(view, 36, 'data');\n view.setUint32(40, samples.length * 2, true);\n floatTo16BitPCM(view, 44, samples);\n return view;\n }\n };\n },\n {},\n ],\n}, {}, [3]);\n//# sourceMappingURL=aws-lex-audio.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/*\n * Copyright 2018 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 */\nvar SumerianScene_1 = require(\"./SumerianScene\");\nexports.SumerianScene = SumerianScene_1.SumerianScene;\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __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};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/*\n * Copyright 2018 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 */\nvar React = __importStar(require(\"react\"));\nvar xr_1 = require(\"@aws-amplify/xr\");\nvar core_1 = require(\"@aws-amplify/core\");\nvar IconButton_1 = require(\"./IconButton\");\nvar Loading_1 = require(\"./Loading\");\nvar AmplifyUI = __importStar(require(\"@aws-amplify/ui\"));\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nvar SCENE_CONTAINER_DOM_ID = 'scene-container-dom-id';\nvar SCENE_DOM_ID = 'scene-dom-id';\nvar logger = new core_1.ConsoleLogger('SumerianScene');\nvar SumerianScene = /** @class */ (function (_super) {\n __extends(SumerianScene, _super);\n function SumerianScene(props) {\n var _this = _super.call(this, props) || this;\n _this.state = {\n showEnableAudio: false,\n muted: false,\n loading: true,\n percentage: 0,\n isFullscreen: false,\n sceneError: null,\n isVRPresentationActive: false,\n };\n return _this;\n }\n SumerianScene.prototype.setStateAsync = function (state) {\n var _this = this;\n return new Promise(function (resolve) {\n _this.setState(state, resolve);\n });\n };\n SumerianScene.prototype.componentDidMount = function () {\n document.addEventListener('fullscreenchange', this.onFullscreenChange.bind(this));\n document.addEventListener('webkitfullscreenchange', this.onFullscreenChange.bind(this));\n document.addEventListener('mozfullscreenchange', this.onFullscreenChange.bind(this));\n document.addEventListener('MSFullscreenChange', this.onFullscreenChange.bind(this));\n this.loadAndSetupScene(this.props.sceneName, SCENE_DOM_ID);\n };\n SumerianScene.prototype.componentWillUnmount = function () {\n document.removeEventListener('fullscreenchange', this.onFullscreenChange.bind(this));\n document.removeEventListener('webkitfullscreenchange', this.onFullscreenChange.bind(this));\n document.removeEventListener('mozfullscreenchange', this.onFullscreenChange.bind(this));\n document.removeEventListener('MSFullscreenChange', this.onFullscreenChange.bind(this));\n };\n SumerianScene.prototype.loadAndSetupScene = function (sceneName, sceneDomId) {\n return __awaiter(this, void 0, void 0, function () {\n var sceneOptions, e_1, sceneError;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n this.setStateAsync({ loading: true });\n sceneOptions = {\n progressCallback: function (progress) {\n var percentage = progress * 100;\n _this.setState({ percentage: percentage });\n },\n };\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, xr_1.XR.loadScene(sceneName, sceneDomId, sceneOptions)];\n case 2:\n _a.sent();\n return [3 /*break*/, 4];\n case 3:\n e_1 = _a.sent();\n sceneError = {\n displayText: 'Failed to load scene',\n error: e_1,\n };\n logger.error(sceneError.displayText, sceneError.error);\n this.setStateAsync({ sceneError: sceneError });\n return [2 /*return*/];\n case 4:\n xr_1.XR.start(sceneName);\n this.setStateAsync({\n muted: xr_1.XR.isMuted(sceneName),\n isVRPresentationActive: xr_1.XR.isVRPresentationActive(sceneName),\n loading: false,\n });\n xr_1.XR.onSceneEvent(sceneName, 'AudioEnabled', function () {\n return _this.setStateAsync({ showEnableAudio: false });\n });\n xr_1.XR.onSceneEvent(sceneName, 'AudioDisabled', function () {\n return _this.setStateAsync({ showEnableAudio: true });\n });\n return [2 /*return*/];\n }\n });\n });\n };\n SumerianScene.prototype.setMuted = function (muted) {\n if (this.state.showEnableAudio) {\n xr_1.XR.enableAudio(this.props.sceneName);\n this.setState({ showEnableAudio: false });\n }\n xr_1.XR.setMuted(this.props.sceneName, muted);\n this.setState({ muted: muted });\n };\n SumerianScene.prototype.onFullscreenChange = function () {\n var doc = document;\n this.setState({ isFullscreen: doc.fullscreenElement !== null });\n };\n SumerianScene.prototype.maximize = function () {\n return __awaiter(this, void 0, void 0, function () {\n var sceneDomElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n sceneDomElement = document.getElementById(SCENE_CONTAINER_DOM_ID);\n return [4 /*yield*/, sceneDomElement.requestFullscreen()];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n SumerianScene.prototype.minimize = function () {\n return __awaiter(this, void 0, void 0, function () {\n var doc;\n return __generator(this, function (_a) {\n doc = document;\n if (doc.exitFullscreen) {\n doc.exitFullscreen();\n }\n else if (doc.mozCancelFullScreen) {\n doc.mozCancelFullScreen();\n }\n else if (doc.webkitExitFullscreen) {\n doc.webkitExitFullscreen();\n }\n return [2 /*return*/];\n });\n });\n };\n SumerianScene.prototype.toggleVRPresentation = function () {\n try {\n if (this.state.isVRPresentationActive) {\n xr_1.XR.exitVR(this.props.sceneName);\n }\n else {\n xr_1.XR.enterVR(this.props.sceneName);\n }\n }\n catch (e) {\n logger.error('Unable to start/stop WebVR System: ' + e.message);\n return;\n }\n this.setState({\n isVRPresentationActive: !this.state.isVRPresentationActive,\n });\n };\n SumerianScene.prototype.render = function () {\n var _this = this;\n var muteButton;\n var enterOrExitVRButton;\n var screenSizeButton;\n if (xr_1.XR.isSceneLoaded(this.props.sceneName)) {\n if (this.state.showEnableAudio) {\n muteButton = (React.createElement(IconButton_1.IconButton, { variant: \"sound-mute\", tooltip: \"The scene is muted. Click to unmute.\", onClick: function () { return _this.setMuted(false); }, autoShowTooltip: true }));\n }\n else if (xr_1.XR.isMuted(this.props.sceneName)) {\n muteButton = (React.createElement(IconButton_1.IconButton, { variant: \"sound-mute\", tooltip: \"Unmute\", onClick: function () { return _this.setMuted(false); } }));\n }\n else {\n muteButton = (React.createElement(IconButton_1.IconButton, { variant: \"sound\", tooltip: \"Mute\", onClick: function () { return _this.setMuted(true); } }));\n }\n if (xr_1.XR.isVRCapable(this.props.sceneName)) {\n if (this.state.isVRPresentationActive) {\n logger.info('VR Presentation Active');\n enterOrExitVRButton = (React.createElement(IconButton_1.IconButton, { variant: \"exit-vr\", tooltip: \"Exit VR\", onClick: function () { return _this.toggleVRPresentation(); } }));\n }\n else {\n logger.info('VR Presentation Inactive');\n enterOrExitVRButton = (React.createElement(IconButton_1.IconButton, { variant: \"enter-vr\", tooltip: \"Enter VR\", onClick: function () { return _this.toggleVRPresentation(); } }));\n }\n }\n if (this.state.isFullscreen) {\n screenSizeButton = (React.createElement(IconButton_1.IconButton, { variant: \"minimize\", tooltip: \"Exit Fullscreen\", onClick: function () { return _this.minimize(); } }));\n }\n else {\n screenSizeButton = (React.createElement(IconButton_1.IconButton, { variant: \"maximize\", tooltip: \"Fullscreen\", onClick: function () { return _this.maximize(); } }));\n }\n }\n return (React.createElement(\"div\", { id: SCENE_CONTAINER_DOM_ID, className: AmplifyUI.sumerianSceneContainer, \"data-test\": data_test_attributes_1.sumerianScene.container },\n React.createElement(\"div\", { id: SCENE_DOM_ID, className: AmplifyUI.sumerianScene, \"data-test\": data_test_attributes_1.sumerianScene.sumerianScene }, this.state.loading && (React.createElement(Loading_1.Loading, { sceneName: this.props.sceneName, percentage: this.state.percentage, sceneError: this.state.sceneError }))),\n React.createElement(\"div\", { className: AmplifyUI.sceneBar, \"data-test\": data_test_attributes_1.sumerianScene.bar },\n React.createElement(\"span\", { className: AmplifyUI.sceneActions, \"data-test\": data_test_attributes_1.sumerianScene.actions },\n muteButton,\n enterOrExitVRButton,\n screenSizeButton))));\n };\n return SumerianScene;\n}(React.Component));\nexports.SumerianScene = SumerianScene;\n/**\n * @deprecated use named import\n */\nexports.default = SumerianScene;\n//# sourceMappingURL=SumerianScene.js.map","module.exports = __WEBPACK_EXTERNAL_MODULE__78__;","\"use strict\";\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/*\n * Copyright 2018 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 */\nvar React = __importStar(require(\"react\"));\nvar Tooltip_1 = __importDefault(require(\"./Tooltip\"));\nvar AmplifyUI = __importStar(require(\"@aws-amplify/ui\"));\nexports.IconButton = function (props) {\n var buttonIcon;\n switch (props.variant) {\n case 'sound-mute':\n buttonIcon = (React.createElement(\"svg\", { width: \"19\", height: \"19\", viewBox: \"0 0 19 19\", xmlns: \"http://www.w3.org/2000/svg\" },\n React.createElement(\"g\", { id: \"icons/minis/volumeOff\", fill: \"none\", fillRule: \"evenodd\" },\n React.createElement(\"path\", { d: \"M3.48026899,12.9630494 C3.63825091,12.9630494 3.79237961,13.0108921 3.92264322,13.1003479 L8.77467683,16.8113609 C9.29423971,17.1679383 10,16.7950396 10,16.1637406 L10,3.78619489 C10,3.15489596 9.29423971,2.78199725 8.77467683,3.13857463 L3.92264322,6.84545211 C3.79237961,6.93490793 3.63825091,6.9827506 3.48026899,6.9827506 L1.78294894,6.9827506 C1.3505185,6.9827506 1,7.33409518 1,7.76754476 L1,12.1781306 C1,12.6117048 1.3505185,12.9630494 1.78294894,12.9630494 L3.48026899,12.9630494 Z M17.2118156,7 L15.0918385,9.11997713 L12.9718614,7 L12,7.97174685 L14.1200917,10.091724 L12,12.2118156 L12.9718614,13.1835625 L15.0918385,11.0635854 L17.2118156,13.1835625 L18.1835625,12.2118156 L16.0635854,10.091724 L18.1835625,7.97174685 L17.2118156,7 Z\", id: \"Fill-2\", fill: \"#FFF\" }))));\n break;\n case 'sound':\n buttonIcon = (React.createElement(\"svg\", { width: \"19\", height: \"19\", viewBox: \"0 0 19 19\", xmlns: \"http://www.w3.org/2000/svg\" },\n React.createElement(\"g\", { id: \"icons/minis/volumeOn\", fill: \"none\", fillRule: \"evenodd\" },\n React.createElement(\"path\", { d: \"M3.48026899,12.9630494 L1.78294894,12.9630494 C1.3505185,12.9630494 1,12.6117048 1,12.1781306 L1,7.76754476 C1,7.33409518 1.3505185,6.9827506 1.78294894,6.9827506 L3.48026899,6.9827506 C3.63825091,6.9827506 3.79237961,6.93490793 3.92264322,6.84545211 L8.77467683,3.13857463 C9.29423971,2.78199725 10,3.15489596 10,3.78619489 L10,16.1637406 C10,16.7950396 9.29423971,17.1679383 8.77467683,16.8113609 L3.92264322,13.1003479 C3.79237961,13.0108921 3.63825091,12.9630494 3.48026899,12.9630494 Z M14.9270376,3.03232286 C15.1729267,3.03232286 15.4040399,3.12815658 15.5777627,3.3022351 C17.3699891,5.09889099 18.3570052,7.48235058 18.3570052,10.0135053 C18.3570052,12.54466 17.3699891,14.9281196 15.5777627,16.7247755 C15.4041045,16.898854 15.1729914,16.9947524 14.9270052,16.9947524 C14.6820861,16.9947524 14.4515549,16.899436 14.2777674,16.7263598 C13.9192316,16.3684383 13.9185203,15.7852882 14.2762477,15.4264291 C15.7222893,13.9769926 16.5186727,12.0545954 16.5186727,10.0135053 C16.5186727,7.97241524 15.7222893,6.05001801 14.2762154,4.60058152 C13.9184879,4.24175473 13.9191992,3.65857229 14.277832,3.30065081 C14.4514256,3.1275746 14.6819567,3.03232286 14.9270376,3.03232286 Z M13.5730665,6.11570485 C14.6133991,7.15574642 15.1862998,8.54003279 15.1862998,10.0134924 C15.1862998,11.4892799 14.6113945,12.8741159 13.5675376,13.9128965 C13.3942351,14.0855848 13.1639626,14.1806425 12.9191727,14.1806425 C12.6727016,14.1806425 12.4412975,14.0844531 12.2677039,13.9097926 C12.0944984,13.7358111 11.9994406,13.5047303 11.9999903,13.2592291 C12.0005723,13.0136956 12.096794,12.7831644 12.2708079,12.6100882 C12.9654406,11.9185917 13.3479995,10.996467 13.3479995,10.0134924 C13.3479995,9.03119677 12.966346,8.1086194 12.2733298,7.4157649 C11.9150203,7.05745543 11.9149233,6.47436998 12.2731358,6.11589885 C12.4467617,5.94224065 12.6775838,5.84666559 12.923085,5.84666559 C13.1685538,5.84666559 13.3993436,5.94220831 13.5730665,6.11570485 Z\", id: \"Fill-2\", fill: \"#FFF\" }))));\n break;\n case 'maximize':\n buttonIcon = (React.createElement(\"svg\", { width: \"19\", height: \"19\", viewBox: \"0 0 19 19\", xmlns: \"http://www.w3.org/2000/svg\" },\n React.createElement(\"g\", { id: \"icons/minis/screenfull\", fill: \"none\", fillRule: \"evenodd\" },\n React.createElement(\"path\", { d: \"M2.04162598,3 L2.04162598,16 L17.0147705,16 L17.0147705,3 L2.04162598,3 Z M1,2 L18,2 L18,17 L1,17 L1,2 Z M3,4 L16,4 L16,15 L3,15 L3,4 Z\", id: \"Rectangle-Copy\", fill: \"#FFF\", fillRule: \"nonzero\" }))));\n break;\n case 'minimize':\n buttonIcon = (React.createElement(\"svg\", { width: \"19\", height: \"19\", viewBox: \"0 0 19 19\", xmlns: \"http://www.w3.org/2000/svg\" },\n React.createElement(\"g\", { id: \"icons/minis/screensmall\", fill: \"none\", fillRule: \"evenodd\" },\n React.createElement(\"path\", { d: \"M11,16 L17.0147705,16 L17.0147705,3 L2.04162598,3 L2.04162598,10 L11,10 L11,16 Z M1,2 L18,2 L18,17 L1,17 L1,2 Z\", id: \"Rectangle\", fill: \"#FFF\", fillRule: \"nonzero\" }))));\n break;\n case 'enter-vr':\n buttonIcon = (React.createElement(\"svg\", { width: \"19\", height: \"19\", viewBox: \"0 0 17 10\", xmlns: \"http://www.w3.org/2000/svg\" },\n React.createElement(\"g\", { id: \"Page-1\", fill: \"none\", fillRule: \"evenodd\" },\n React.createElement(\"g\", { id: \"VRon\", fill: \"#FFF\", fillRule: \"nonzero\" },\n React.createElement(\"path\", { d: \"M15.7856977,0.02395184 L15.8915734,0.02395184 C16.5037405,0.02395184 17,0.520211324 17,1.13237842 L17,1.54663675 L17,8.8915038 C17,9.5034193 16.4560011,10 15.7856977,10 L12.0095825,10 C9.98324439,7.1593807 8.80676009,5.741338 8.48012959,5.74587199 C8.16206045,5.75028714 7.01003321,7.1683298 5.02404785,10 L1.21426911,10 C0.543965735,10 3.32031236e-05,9.5034193 3.32031236e-05,8.8915038 L3.32031236e-05,1.54663675 L3.32031236e-05,1.13237842 L3.32031236e-05,1.13237842 C3.32031236e-05,0.520211324 0.496292687,0.02395184 1.10845978,0.02395184 L1.21426911,0.02395184 L15.7856977,0.02395184 Z M4.5,6 C5.32842712,6 6,5.32842712 6,4.5 C6,3.67157288 5.32842712,3 4.5,3 C3.67157288,3 3,3.67157288 3,4.5 C3,5.32842712 3.67157288,6 4.5,6 Z M12.5,6 C13.3284271,6 14,5.32842712 14,4.5 C14,3.67157288 13.3284271,3 12.5,3 C11.6715729,3 11,3.67157288 11,4.5 C11,5.32842712 11.6715729,6 12.5,6 Z\", id: \"Fill-1\" })))));\n break;\n case 'exit-vr':\n buttonIcon = (React.createElement(\"svg\", { width: \"19\", height: \"19\", viewBox: \"0 0 19 19\", xmlns: \"http://www.w3.org/2000/svg\" },\n React.createElement(\"g\", { id: \"icons/minis/VRon-Copy\", fill: \"none\", fillRule: \"evenodd\" },\n React.createElement(\"g\", { id: \"Group-7-Copy\", transform: \"translate(1 3)\", fill: \"#FFF\" },\n React.createElement(\"path\", { d: \"M15.7856977,3.02395184 L17,3.02395184 L17,4.13237842 L17,4.54663675 L17,11.8915038 C17,12.5034193 16.4560011,13 15.7856977,13 L12.0095825,13 C9.98324439,10.1593807 8.80676009,8.741338 8.48012959,8.74587199 C8.16206045,8.75028714 7.01003321,10.1683298 5.02404785,13 L1.21426911,13 C0.543965735,13 3.32031236e-05,12.5034193 3.32031236e-05,11.8915038 L3.32031236e-05,4.54663675 L3.32031236e-05,4.13237842 L3.32031236e-05,3.02395184 L1.21426911,3.02395184 L15.7856977,3.02395184 Z M4.5,9 C5.32842712,9 6,8.32842712 6,7.5 C6,6.67157288 5.32842712,6 4.5,6 C3.67157288,6 3,6.67157288 3,7.5 C3,8.32842712 3.67157288,9 4.5,9 Z M12.5,9 C13.3284271,9 14,8.32842712 14,7.5 C14,6.67157288 13.3284271,6 12.5,6 C11.6715729,6 11,6.67157288 11,7.5 C11,8.32842712 11.6715729,9 12.5,9 Z M2.5486669,0 L14.420089,0 C14.7977406,0 15.1613805,0.149260956 15.4374308,0.417695511 L16.9999668,2.00634766 L0,2.00634766 L1.58537972,0.395493117 C1.84682061,0.141306827 2.19106994,0 2.5486669,0 Z\", id: \"Fill-1\" })))));\n break;\n default:\n buttonIcon = null;\n break;\n }\n return (React.createElement(Tooltip_1.default, { text: props.tooltip, autoShowTooltip: props.autoShowTooltip },\n React.createElement(\"button\", { className: AmplifyUI.actionButton, onClick: props.onClick }, buttonIcon)));\n};\n/**\n * @deprecated use named import\n */\nexports.default = exports.IconButton;\n//# sourceMappingURL=IconButton.js.map","\"use strict\";\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/*\n * Copyright 2018 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 */\nvar React = __importStar(require(\"react\"));\nvar ui_1 = require(\"@aws-amplify/ui\");\nexports.Tooltip = function (props) {\n var classes = \"\" + ui_1.tooltip;\n if (props.autoShowTooltip) {\n classes = ui_1.tooltip + \" \" + ui_1.autoShowTooltip;\n }\n return (React.createElement(\"div\", { className: classes, \"data-text\": props.text }, props.children));\n};\n/**\n * @deprecated use named import\n */\nexports.default = exports.Tooltip;\n//# sourceMappingURL=Tooltip.js.map","\"use strict\";\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/*\n * Copyright 2018 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 */\nvar React = __importStar(require(\"react\"));\nvar AmplifyUI = __importStar(require(\"@aws-amplify/ui\"));\nvar data_test_attributes_1 = require(\"../Amplify-UI/data-test-attributes\");\nexports.Loading = function (props) {\n return (React.createElement(\"div\", { className: AmplifyUI.loadingOverlay, \"data-test\": data_test_attributes_1.sumerianScene.loading },\n React.createElement(\"div\", { className: AmplifyUI.loadingContainer },\n React.createElement(\"div\", { className: AmplifyUI.loadingLogo, \"data-test\": data_test_attributes_1.sumerianScene.loadingLogo },\n React.createElement(\"svg\", { viewBox: \"0 0 800 481\", xmlns: \"http://www.w3.org/2000/svg\" },\n React.createElement(\"g\", { id: \"Page-1\", fillRule: \"evenodd\" },\n React.createElement(\"g\", { id: \"AWS_logo_RGB-(1)\", transform: \"translate(-16 -17)\", fillRule: \"nonzero\" },\n React.createElement(\"path\", { d: \"M241.371,190.172 C241.371,197.487 241.371,204.801 245.028,212.115 C245.028,219.43 248.685,226.744 252.343,234.058 C252.343,234.058 252.343,237.715 256,241.373 C256,245.03 252.343,248.688 252.343,248.688 L234.058,256.002 C230.401,256.002 230.401,259.659 226.743,259.659 C223.085,259.659 219.428,259.659 219.428,256.002 C219.428,252.345 212.113,248.687 208.457,245.031 C208.457,237.716 204.8,234.06 201.142,226.745 C182.856,248.688 153.599,263.317 124.342,263.317 C106.057,263.317 84.114,256.002 69.485,245.031 C54.856,230.402 51.2,212.116 51.2,193.831 C51.2,171.888 58.515,153.603 73.143,138.974 C91.428,124.345 113.371,117.031 138.972,117.031 C149.943,117.031 157.258,117.031 168.229,120.688 C179.2,120.688 186.515,124.345 197.486,128.003 L197.486,106.06 C197.486,91.431 193.829,76.803 186.515,62.174 C171.886,54.859 157.258,51.203 142.629,51.203 C131.658,51.203 124.344,51.203 113.372,54.86 C102.4,58.517 95.087,62.175 84.115,65.832 C80.458,65.832 76.801,69.489 73.143,69.489 L69.486,69.489 C65.829,69.489 62.171,65.832 62.171,62.174 L62.171,47.545 C62.171,43.888 62.171,40.23 65.828,36.574 C69.485,36.574 73.142,32.917 73.142,32.917 C84.114,29.26 95.085,25.603 109.714,21.946 C124.343,18.289 138.971,18.289 149.942,18.289 C175.542,14.632 201.142,21.946 219.428,36.574 C234.057,54.859 245.028,76.802 241.371,102.403 L241.371,190.175 L241.371,190.172 Z M131.657,230.4 C142.628,230.4 149.942,230.4 160.914,226.743 C171.886,223.086 179.199,215.772 186.514,208.457 C190.171,204.8 193.829,197.486 193.829,193.828 C197.486,182.857 197.486,175.543 197.486,168.228 L197.486,157.257 C190.171,157.257 182.857,153.6 171.886,153.6 C164.571,153.6 153.6,153.6 146.286,153.6 C135.315,149.943 120.686,153.6 109.714,160.915 C98.742,168.23 95.085,179.2 95.085,190.172 C95.085,201.143 98.742,212.115 106.057,219.429 C113.372,226.743 124.342,230.4 131.657,230.4 Z M347.428,259.657 C343.771,259.657 340.113,259.657 336.457,256 C332.801,252.343 332.8,248.685 332.8,245.029 L270.629,40.229 C270.629,36.572 266.972,32.914 266.972,29.258 C266.972,29.258 266.972,25.601 266.972,25.601 C266.972,25.601 270.629,21.944 270.629,25.601 L296.229,25.601 C299.886,25.601 303.544,25.601 307.2,29.258 C310.857,29.258 314.515,32.915 314.515,36.573 L358.4,212.116 L402.285,36.573 C402.285,32.916 405.942,29.259 405.942,25.602 C409.599,21.945 413.257,21.945 416.913,21.945 L438.856,21.945 C442.513,21.945 446.171,21.945 449.827,25.602 C453.483,29.259 453.484,32.917 453.484,36.573 L493.712,215.773 L541.255,36.573 C541.255,32.916 544.912,29.259 544.912,25.602 C548.569,21.945 552.226,21.945 555.883,21.945 L581.483,21.945 C581.483,21.945 585.14,21.945 585.14,21.945 C585.14,21.945 588.797,25.602 585.14,25.602 C585.14,25.602 585.14,29.259 585.14,29.259 C585.14,32.916 585.14,32.916 581.483,36.573 L515.655,241.373 C515.655,245.03 511.998,248.688 508.34,252.344 C504.682,256 501.025,256.001 497.369,256.001 L475.426,256.001 C471.769,256.001 468.111,256.001 464.455,252.344 C460.799,248.687 460.798,245.029 460.798,241.373 L427.884,73.145 L387.656,245.031 C387.656,248.688 383.999,252.346 383.999,256.002 C380.342,259.659 376.684,259.659 373.028,259.659 L347.428,259.659 L347.428,259.657 Z M687.543,266.971 C672.914,266.971 658.286,266.971 647.314,263.314 C636.342,259.657 625.371,255.999 618.057,252.343 C610.743,248.686 607.086,245.028 607.086,237.714 L607.086,223.085 C607.086,215.77 610.743,215.77 614.4,215.77 C614.4,215.77 618.057,215.77 618.057,215.77 L625.371,219.427 C636.342,223.084 643.656,226.742 654.628,230.398 C665.6,234.054 676.571,234.055 687.542,234.055 C702.171,234.055 713.142,230.398 727.771,226.74 C735.085,223.083 742.4,212.111 742.4,201.14 C742.4,193.825 738.743,186.511 735.086,182.855 C727.772,175.54 716.801,171.884 705.829,168.226 L665.6,157.255 C650.971,153.598 636.343,142.626 625.372,131.655 C618.058,120.683 610.743,106.055 610.743,91.427 C610.743,80.455 614.4,69.484 618.057,62.17 C621.714,54.856 629.028,47.541 636.342,40.227 C643.656,32.912 654.627,29.256 661.942,25.598 C672.913,21.941 683.885,21.941 694.856,21.941 C702.17,21.941 705.827,21.941 713.141,21.941 C720.455,21.941 724.112,21.941 731.426,25.598 C735.083,25.598 742.397,29.255 746.055,29.255 C749.713,29.255 753.369,32.912 757.026,32.912 C760.683,32.912 764.34,36.569 764.34,40.227 C767.997,36.57 767.997,40.227 767.997,43.884 L767.997,54.855 C767.997,62.17 764.34,62.17 760.683,62.17 C757.026,62.17 753.369,62.17 749.712,58.513 C735.083,51.198 716.798,47.542 698.512,47.542 C687.541,47.542 672.912,51.199 661.94,54.857 C658.283,65.829 654.626,73.142 654.626,84.114 C654.626,91.428 658.283,98.743 661.94,102.399 C669.254,109.713 680.225,113.371 691.197,117.028 L727.769,128 C742.398,131.657 757.026,142.629 767.997,153.6 C775.311,164.571 782.626,179.2 778.968,193.828 C778.968,204.799 775.311,215.771 771.654,223.085 C767.997,234.056 760.683,241.37 753.369,245.028 C746.055,252.343 735.084,255.999 724.112,259.656 C713.14,263.313 702.169,266.971 687.54,266.971 L687.543,266.971 Z\", id: \"Shape\" }),\n React.createElement(\"path\", { d: \"M738.743,398.628 C650.972,464.457 522.972,497.371 416.914,497.371 C270.628,497.371 128,446.171 21.943,347.428 C10.971,336.457 18.286,329.142 29.257,332.8 C149.943,402.286 285.257,438.857 424.228,438.857 C526.628,438.857 629.028,416.914 727.771,376.686 C742.4,369.371 753.371,387.657 738.742,398.629 L738.743,398.628 Z\", id: \"Shape\" }),\n React.createElement(\"path\", { d: \"M775.314,354.743 C764.343,340.115 702.171,347.428 672.914,351.086 C665.6,351.086 661.943,343.771 669.257,340.115 C720.457,303.543 800.914,314.515 811.886,325.487 C822.858,336.459 808.229,420.572 760.686,460.802 C753.372,468.117 746.057,464.459 749.715,457.145 C764.344,427.888 786.287,369.373 775.315,354.745 L775.314,354.743 Z\", id: \"Shape\" }))))),\n React.createElement(\"div\", { className: AmplifyUI.loadingSceneName, \"data-test\": data_test_attributes_1.sumerianScene.loadingSceneName }, props.sceneName),\n props.sceneError ? (React.createElement(\"div\", { className: AmplifyUI.sceneErrorText, \"data-test\": data_test_attributes_1.sumerianScene.errorText }, props.sceneError.displayText)) : (React.createElement(\"div\", { className: AmplifyUI.loadingBar, \"data-test\": data_test_attributes_1.sumerianScene.loadingBar },\n React.createElement(\"div\", { className: AmplifyUI.loadingBarFill, style: { width: props.percentage + \"%\" } }))))));\n};\n/**\n * @deprecated use named import\n */\nexports.default = exports.Loading;\n//# sourceMappingURL=Loading.js.map"],"sourceRoot":""}
\No newline at end of file