{"version":3,"names":["delay","async","shouldDelay","Promise","resolve","setTimeout"],"sources":["src/utils/timingHelper.ts"],"sourcesContent":["/**\n * Initiate a delay if required\n * @param {Boolean} shouldDelay Whether or not a delay is in place\n * @param {Number} delay The delay value\n * @return {Promise} The promise that will be resolved after the delay\n * @hidden\n */\nexport const delay = async (shouldDelay = false, delay = 250): Promise => {\n return new Promise((resolve) => {\n if (!shouldDelay) {\n return resolve();\n }\n setTimeout(resolve, delay);\n });\n};\n"],"mappings":"MAOaA,EAAQC,MAAOC,EAAc,MAAOF,EAAQ,MAChD,IAAIG,SAASC,IAClB,IAAKF,EAAa,CAChB,OAAOE,G,CAETC,WAAWD,EAASJ,EAAM,I","ignoreList":[]}