UNPKG

690 kBSource Map (JSON)View Raw
1{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap","webpack:///./node_modules/object-assign/index.js","webpack:///./node_modules/prop-types/checkPropTypes.js","webpack:///./node_modules/prop-types/factoryWithTypeCheckers.js","webpack:///./node_modules/prop-types/index.js","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./node_modules/qr.js/lib/8BitByte.js","webpack:///./node_modules/qr.js/lib/BitBuffer.js","webpack:///./node_modules/qr.js/lib/ErrorCorrectLevel.js","webpack:///./node_modules/qr.js/lib/Polynomial.js","webpack:///./node_modules/qr.js/lib/QRCode.js","webpack:///./node_modules/qr.js/lib/RSBlock.js","webpack:///./node_modules/qr.js/lib/math.js","webpack:///./node_modules/qr.js/lib/mode.js","webpack:///./node_modules/qr.js/lib/util.js","webpack:///./node_modules/qrcode.react/lib/index.js","webpack:///./node_modules/react-is/cjs/react-is.development.js","webpack:///./node_modules/react-is/index.js","webpack:///(webpack)/buildin/global.js","webpack:///../../../src/API/GraphQL/Connect.tsx","webpack:///../../../src/API/GraphQL/index.tsx","webpack:///../../src/API/index.tsx","webpack:///../../src/Amplify-UI/Amplify-UI-Components-React.tsx","webpack:///../../src/Amplify-UI/Amplify-UI-Theme.tsx","webpack:///../../src/Amplify-UI/data-test-attributes.tsx","webpack:///../src/AmplifyI18n.tsx","webpack:///../src/AmplifyMessageMap.tsx","webpack:///../src/AmplifyTheme.tsx","webpack:///../src/AmplifyUI.tsx","webpack:///../../src/Analytics/index.tsx","webpack:///../../src/Analytics/trackLifecycle.tsx","webpack:///../../src/Analytics/trackUpdate.tsx","webpack:///../../src/Auth/AuthPiece.tsx","webpack:///../../src/Auth/Authenticator.tsx","webpack:///../../src/Auth/ConfirmSignIn.tsx","webpack:///../../src/Auth/ConfirmSignUp.tsx","webpack:///../../src/Auth/FederatedSignIn.tsx","webpack:///../../src/Auth/ForgotPassword.tsx","webpack:///../../src/Auth/Greetings.tsx","webpack:///../../src/Auth/Loading.tsx","webpack:///../../src/Auth/PhoneField.tsx","webpack:///../../../src/Auth/Provider/index.tsx","webpack:///../../../src/Auth/Provider/withAmazon.tsx","webpack:///../../../src/Auth/Provider/withAuth0.tsx","webpack:///../../../src/Auth/Provider/withFacebook.tsx","webpack:///../../../src/Auth/Provider/withGoogle.tsx","webpack:///../../../src/Auth/Provider/withOAuth.tsx","webpack:///../../src/Auth/RequireNewPassword.tsx","webpack:///../../src/Auth/SignIn.tsx","webpack:///../../src/Auth/SignOut.tsx","webpack:///../../src/Auth/SignUp.tsx","webpack:///../../src/Auth/TOTPSetup.tsx","webpack:///../../src/Auth/VerifyContact.tsx","webpack:///../../../src/Auth/common/constants.tsx","webpack:///../../../src/Auth/common/country-dial-codes.tsx","webpack:///../../../src/Auth/common/default-sign-up-fields.tsx","webpack:///../../../src/Auth/common/types.ts","webpack:///../../src/Auth/index.tsx","webpack:///../../src/Interactions/ChatBot.tsx","webpack:///../../src/Interactions/aws-lex-audio.tsx","webpack:///../../src/Interactions/index.tsx","webpack:///../../src/Storage/Common.tsx","webpack:///../../src/Storage/S3Album.tsx","webpack:///../../src/Storage/S3Image.tsx","webpack:///../../src/Storage/S3Text.tsx","webpack:///../../src/Storage/index.tsx","webpack:///../../src/Widget/PhotoPicker.tsx","webpack:///../../src/Widget/Picker.tsx","webpack:///../../src/Widget/SelectMFAType.tsx","webpack:///../../src/Widget/TOTPSetupComp.tsx","webpack:///../../src/Widget/TextPicker.tsx","webpack:///../../src/Widget/index.tsx","webpack:///../../src/XR/IconButton.tsx","webpack:///../../src/XR/Loading.tsx","webpack:///../../src/XR/SumerianScene.tsx","webpack:///../../src/XR/Tooltip.tsx","webpack:///../../src/XR/index.tsx","webpack:///../src/index.tsx","webpack:///external \"@aws-amplify/analytics\"","webpack:///external \"@aws-amplify/api\"","webpack:///external \"@aws-amplify/auth\"","webpack:///external \"@aws-amplify/core\"","webpack:///external \"@aws-amplify/interactions\"","webpack:///external \"@aws-amplify/storage\"","webpack:///external \"@aws-amplify/ui\"","webpack:///external \"@aws-amplify/xr\"","webpack:///external \"react\""],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AACA;AACA;AACA;AACA;;AAEa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH,kCAAkC;AAClC;AACA;AACA;;AAEA;AACA,EAAE;AACF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gBAAgB,sBAAsB;AACtC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,oBAAoB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;ACzFA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;;AAEA,IAAI,IAAqC;AACzC,6BAA6B,mBAAO,CAAC,6FAA4B;AACjE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB;AACA;AACA;AACA,MAAM,IAAqC;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4GAA4G;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,IAAqC;AAC3C;AACA;AACA;;AAEA;;;;;;;;;;;;;ACrGA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,cAAc,mBAAO,CAAC,sDAAU;AAChC,aAAa,mBAAO,CAAC,gEAAe;;AAEpC,2BAA2B,mBAAO,CAAC,6FAA4B;AAC/D,qBAAqB,mBAAO,CAAC,yEAAkB;;AAE/C;AACA;;AAEA,IAAI,IAAqC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,6BAA6B;AAC7B,QAAQ;AACR;AACA;AACA;AACA;AACA,+BAA+B,KAAK;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,4BAA4B;AAC5B,OAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,UAAU,KAAqC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,IAAqC;AAC/C;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,2BAA2B;AAChD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM,KAAqC,4FAA4F,SAAM;AAC7I;AACA;;AAEA,mBAAmB,gCAAgC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,gCAAgC;AACrD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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AAoB,QAAQ;;AAE5B;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,gBAAgB,QAAQ;AACxB;AACA;AACA;;AAEA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,gBAAgB,QAAQ;;AAExB;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA,gBAAgB,QAAQ;;AAExB;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,qCAAqC,SAAS;;AAE9C;;AAEA;;AAEA,kBAAkB,OAAO;;AAEzB;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA,gBAAgB,qBAAqB;AACrC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,qBAAqB;AACrC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA,gBAAgB,qBAAqB;;AAErC;AACA;;AAEA;AACA;;AAEA;;AAEA,iBAAiB,sBAAsB;AACvC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB,sBAAsB;AACvC;AACA;AACA;;AAEA;;AAEA;AACA,gBAAgB,qBAAqB;AACrC;AACA;;AAEA;AACA;;AAEA,gBAAgB,gBAAgB;AAChC,iBAAiB,qBAAqB;AACtC;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,gBAAgB;AAChC,iBAAiB,qBAAqB;AACtC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;ACpbA;AACA,UAAU,mBAAO,CAAC,8EAAqB;;AAEvC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA,gBAAgB,YAAY;;AAE5B;AACA;AACA;;AAEA,iBAAiB,WAAW;AAC5B,oD;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC1SA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;;AAEA;;AAEA;;AAEA,eAAe,OAAO;AACtB;AACA;AACA,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA,eAAe,SAAS;AACxB;AACA;;AAEA;;;;;;;;;;;;AC3CA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACLA,WAAW,mBAAO,CAAC,oDAAQ;AAC3B,iBAAiB,mBAAO,CAAC,gEAAc;AACvC,WAAW,mBAAO,CAAC,oDAAQ;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,sF;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,sF;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA,oBAAoB,wBAAwB;AAC5C;AAC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ACA;AACA,mCAAmC;;AAEnC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2GAA2G;;;AAG3G;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;;;AAGX;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD,wB;;;;;;;;;;;;AC3VA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;;;AAIb,IAAI,IAAqC;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E;AAC1E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA;AACA;AACA,iDAAiD;;AAEjD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;;ACpLa;;AAEb,IAAI,KAAqC,EAAE,EAE1C;AACD,mBAAmB,mBAAO,CAAC,8FAA+B;AAC1D;;;;;;;;;;;;ACNA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnBA;;AACA;;AAgBA;AAAA;AA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AAE,WAAW;AAHhB,KAAR,CANF,CALD,EAkBC;AAAK,eAAS,EAAE,SAAS,CAAzB;AAAkC,mBAAa,qCAAc;AAA7D,OACC;AACC,eAAS,EAAE,SAAS,CADrB;AACkC,mBACtB,qCAAc;AAF1B,wCApBH,gBAoBG,CADD,CAlBD,CADD;AA1ED;;AA0GD;AA7PA,EAAmC,KAAK,CAAxC;;AAAa;AA+Pb;;AAEG;;AACH,mC;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1SA;;;;;;;;;;;AAWG;;AACH;;AACA;;AAEa,kBAAU,iBAAK;AAC3B,MAAI,OAAO,GAAG,KAAG,KAAjB;;AAEA,MAAI,KAAK,CAAT,iBAA2B;AAC1B,WAAO,GAAM,qBAAW,KAAxB;AACA;;AAED,SACC;AAAK,aAAS,EAAd;AAAuB,iBAAa,KAAK,CAAC;AAA1C,KACE,KAAK,CAFR,QACC,CADD;AAPY;AAcb;;AAEG;;;AACH,qBAAe,QAAf,Q;;;;;;;;;;;;;;;;;AChCA;;;;;;;;;;;AAWG;;AACH;;AAAS,sD;;;;;;;;;;;;;;;;;;;;;;;ACZT;;;;;;;;;;;AAWG;;AACH;;AAEA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AAAS;;AACT;;AAAS;;AACT;;AAAS;AAAgB;AAEzB,4BAAqB,cAArB,M;;;;;;;;;;;AC7BA,oE;;;;;;;;;;;ACAA,8D;;;;;;;;;;;ACAA,+D;;;;;;;;;;;ACAA,+D;;;;;;;;;;;ACAA,uE;;;;;;;;;;;ACAA,kE;;;;;;;;;;;ACAA,6D;;;;;;;;;;;ACAA,6D;;;;;;;;;;;ACAA,mD","file":"aws-amplify-react.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@aws-amplify/analytics\"), require(\"@aws-amplify/api\"), require(\"@aws-amplify/auth\"), require(\"@aws-amplify/core\"), require(\"@aws-amplify/interactions\"), require(\"@aws-amplify/storage\"), require(\"@aws-amplify/ui\"), require(\"@aws-amplify/xr\"), require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"aws_amplify_react\", [\"@aws-amplify/analytics\", \"@aws-amplify/api\", \"@aws-amplify/auth\", \"@aws-amplify/core\", \"@aws-amplify/interactions\", \"@aws-amplify/storage\", \"@aws-amplify/ui\", \"@aws-amplify/xr\", \"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"aws_amplify_react\"] = factory(require(\"@aws-amplify/analytics\"), require(\"@aws-amplify/api\"), require(\"@aws-amplify/auth\"), require(\"@aws-amplify/core\"), require(\"@aws-amplify/interactions\"), require(\"@aws-amplify/storage\"), require(\"@aws-amplify/ui\"), require(\"@aws-amplify/xr\"), require(\"react\"));\n\telse\n\t\troot[\"aws_amplify_react\"] = factory(root[\"@aws-amplify/analytics\"], root[\"@aws-amplify/api\"], root[\"@aws-amplify/auth\"], root[\"@aws-amplify/core\"], root[\"@aws-amplify/interactions\"], root[\"@aws-amplify/storage\"], root[\"@aws-amplify/ui\"], root[\"@aws-amplify/xr\"], root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE__aws_amplify_analytics__, __WEBPACK_EXTERNAL_MODULE__aws_amplify_api__, __WEBPACK_EXTERNAL_MODULE__aws_amplify_auth__, __WEBPACK_EXTERNAL_MODULE__aws_amplify_core__, __WEBPACK_EXTERNAL_MODULE__aws_amplify_interactions__, __WEBPACK_EXTERNAL_MODULE__aws_amplify_storage__, __WEBPACK_EXTERNAL_MODULE__aws_amplify_ui__, __WEBPACK_EXTERNAL_MODULE__aws_amplify_xr__, __WEBPACK_EXTERNAL_MODULE_react__) {\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 = \"./lib/index.js\");\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\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 printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\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 ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar has = Function.call.bind(Object.prototype.hasOwnProperty);\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\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 } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from\n // props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\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\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 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\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","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","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 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","// 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","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","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","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\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;","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\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\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","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\";\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","\"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\";\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\";\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","\"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\";\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 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 */\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","\"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\";\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\";\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 */\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","\"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 __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('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\";\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};\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 __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\";\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\";\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\";\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-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 __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-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 __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\");\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-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 __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\";\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-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 __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","\"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\";\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\";\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\";\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\";\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 __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\";\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","// 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\";\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\";\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 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\";\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 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 */\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 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 */\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-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\";\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","\"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","\"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\";\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 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","\"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","\"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\";\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\";\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","module.exports = __WEBPACK_EXTERNAL_MODULE__aws_amplify_analytics__;","module.exports = __WEBPACK_EXTERNAL_MODULE__aws_amplify_api__;","module.exports = __WEBPACK_EXTERNAL_MODULE__aws_amplify_auth__;","module.exports = __WEBPACK_EXTERNAL_MODULE__aws_amplify_core__;","module.exports = __WEBPACK_EXTERNAL_MODULE__aws_amplify_interactions__;","module.exports = __WEBPACK_EXTERNAL_MODULE__aws_amplify_storage__;","module.exports = __WEBPACK_EXTERNAL_MODULE__aws_amplify_ui__;","module.exports = __WEBPACK_EXTERNAL_MODULE__aws_amplify_xr__;","module.exports = __WEBPACK_EXTERNAL_MODULE_react__;"],"sourceRoot":""}
\No newline at end of file