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,IAAI,iBAAiB,kBAAMD,EAAE,YAAYE,QAAQ,GAC/D,G,8BCHAF,EAAE,WAOA,IACMG,EAAY,IAAIC,YAAY,iBAClCL,YAAW,kBAAML,SAASW,cAAcF,EAAU,GAF/B,KAGrB,G,mBCNA,WACE,GAAkC,oBAAvBlB,OAAOmB,YAA4B,OAAO,EAErD,SAASA,EAAYE,EAAOC,GAC1BA,EAASA,GAAU,CAAEC,SAAS,EAAOC,YAAY,EAAOC,YAAQC,GAChE,IAAMC,EAAMlB,SAASmB,YAAY,eAEjC,OADAD,EAAIE,gBAAgBR,EAAOC,EAAOC,QAASD,EAAOE,WAAYF,EAAOG,QAC9DE,CACT,CAEAR,EAAYW,UAAY9B,OAAO+B,MAAMD,UAErC9B,OAAOmB,YAAcA,CACtB,CAbD,E,uBCHuB,oBAAZa,UACThC,OAAOgC,QAAUnC,EAAQ,M","sources":["webpack://app/./app/assets/images/ sync ^\\.\\/.*$","webpack://app/./app/javascript/packs/application.js","webpack://app/./app/javascript/src/animate.js","webpack://app/./app/javascript/src/dbfp_updated.js","webpack://app/./app/javascript/src/dispatch_dbfp_event.js","webpack://app/./app/javascript/src/polyfills/custom_event_pollyfill.js","webpack://app/./app/javascript/src/polyfills/promise_polyfill.js"],"sourcesContent":["var map = {\n\t\"./app-store-icon.svg\": 6647,\n\t\"./application-logo-generic.svg\": 1164,\n\t\"./application-logo-sa.svg\": 6590,\n\t\"./email-icon-2.svg\": 8013,\n\t\"./email-icon.svg\": 8192,\n\t\"./fido.svg\": 9530,\n\t\"./google-play-icon.svg\": 1872,\n\t\"./phone-icon.svg\": 5908,\n\t\"./push-graphic.svg\": 8245,\n\t\"./push-icon.svg\": 7020,\n\t\"./qr.svg\": 6503,\n\t\"./sa-favicon.svg\": 9149,\n\t\"./sa-logo-white.svg\": 1690,\n\t\"./sa-mobile-icon.svg\": 3025,\n\t\"./signout.svg\": 1015,\n\t\"./sms-icon.svg\": 5529,\n\t\"./success-icon.svg\": 2423,\n\t\"./symbol-push-icon.svg\": 1919,\n\t\"./totp-icon.svg\": 2561,\n\t\"./voice-call-icon.svg\": 7929,\n\t\"./webauthn-icon.svg\": 762\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 2672;","// Load polyfills\nimport \"core-js/actual/typed-array\"; // Used by @aws-sdk/util-utf8-browser, along with some of its dependencies\nimport \"core-js/actual/url\";\nimport \"current-script-polyfill\";\nimport \"../src/polyfills/custom_event_pollyfill\";\nimport \"../src/polyfills/promise_polyfill\";\n\n// General libraries\nimport Rails from \"@rails/ujs\";\n\n// Utilities\nimport \"../src/animate\";\nimport \"../src/dispatch_dbfp_event\";\nimport \"../src/dbfp_updated\";\n\n// Stylesheets\nimport \"stylesheets/application.scss\";\n\n// Images\nrequire.context('images', true)\n\nRails.start();\n","// This function allows animated transitions between hidden and displayed elements\nwindow.animateDisplayTransition = (displayedElementId, hiddenElementId, callback) => {\n if (displayedElementId) {\n hideElement(displayedElementId);\n }\n if (hiddenElementId) {\n showElement(hiddenElementId);\n }\n\n if (typeof (callback) === \"function\") {\n callback();\n }\n}\n\nwindow.showElement = (elementId) => {\n const element = document.getElementById(elementId);\n if (!element || !element.hidden) {\n return;\n }\n\n element.style.opacity = \"0\";\n element.hidden = false;\n\n setTimeout(() => {\n element.style.opacity = \"100\";\n }, 20);\n}\n\nwindow.hideElement = (elementId) => {\n const element = document.getElementById(elementId);\n if (!element || !element.hidden) {\n element.hidden = true;\n }\n}\n","$(() => {\n // Submit the form ONCE when the \"onBfpDataLoad\" event is emitted\n $(document).one('onBfpDataLoad', () => $(\"#idpForm\").submit());\n});\n","$(() => {\n // The DBFP script generates an event when the cookie with the user's\n // data is ready. This is to guard against some sort of unexpected failure:\n // the bfp.js script never loads, the Ajax call to the collector fails, etc\n // NOTE: This timeout will always fire, and sometimes the DBFP script emits\n // this event more than once. Any event listener should be prepared to handle\n // this gracefully.\n const bfpTimeout = 6500;\n const loadEvent = new CustomEvent('onBfpDataLoad');\n setTimeout(() => document.dispatchEvent(loadEvent), bfpTimeout);\n});\n","/**\n * CustomEvent() polyfill\n * https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill\n */\n(() => {\n if (typeof window.CustomEvent === 'function') return false;\n\n function CustomEvent(event, params) {\n params = params || { bubbles: false, cancelable: false, detail: undefined };\n const evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);\n return evt;\n }\n\n CustomEvent.prototype = window.Event.prototype;\n\n window.CustomEvent = CustomEvent;\n})();\n","// Use Bluebird as a Promise provider when the native implementation is not supported\nif (typeof Promise !== \"function\") {\n window.Promise = require(\"bluebird\");\n}\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","require","Rails","start","window","animateDisplayTransition","displayedElementId","hiddenElementId","callback","hideElement","showElement","elementId","element","document","getElementById","hidden","style","opacity","setTimeout","$","one","submit","loadEvent","CustomEvent","dispatchEvent","event","params","bubbles","cancelable","detail","undefined","evt","createEvent","initCustomEvent","prototype","Event","Promise"],"sourceRoot":""}