{"version":3,"sources":["webpack:///./app/javascript/js/common/asyncElementGetter.js"],"names":["_regeneratorRuntime","exports","Op","Object","prototype","hasOwn","hasOwnProperty","defineProperty","obj","key","desc","value","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","enumerable","configurable","writable","err","wrap","innerFn","outerFn","self","tryLocsList","protoGenerator","Generator","generator","create","context","Context","makeInvokeMethod","tryCatch","fn","arg","type","call","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","defineIteratorMethods","forEach","method","_invoke","AsyncIterator","PromiseImpl","previousPromise","callInvokeWithMethodAndArg","resolve","reject","invoke","record","result","__await","then","unwrapped","error","state","Error","doneResult","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","done","methodName","undefined","TypeError","info","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","length","i","displayName","isGeneratorFunction","genFun","ctor","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","iter","keys","val","object","reverse","pop","skipTempReset","prev","charAt","slice","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","asyncGeneratorStep","gen","_next","_throw","get","selector","multiple","document","querySelectorAll","querySelector","getElement","_ref","_callee","showError","tryAgainMs","retryTimes","tries","_get","_args","arguments","_context","r","setTimeout","console","log","concat","args","apply","_x"],"mappings":";sGACAA,EAAA,kBAAAC,GAAA,IAAAA,EAAA,GAAAC,EAAAC,OAAAC,UAAAC,EAAAH,EAAAI,eAAAC,EAAAJ,OAAAI,gBAAA,SAAAC,EAAAC,EAAAC,GAAAF,EAAAC,GAAAC,EAAAC,OAAAC,EAAA,mBAAAC,cAAA,GAAAC,EAAAF,EAAAG,UAAA,aAAAC,EAAAJ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,GAAA,IAAAgF,EAAAtG,EAAAgI,MAAA1I,EAAAyI,GAAA,SAAAxB,EAAAlI,GAAAgI,EAAAC,EAAAjF,EAAAC,EAAAiF,EAAAC,EAAA,OAAAnI,GAAA,SAAAmI,EAAAtH,GAAAmH,EAAAC,EAAAjF,EAAAC,EAAAiF,EAAAC,EAAA,QAAAtH,GAAAqH,OAAA7D,QAaC,gBAXsBuF,GAAA,OAAAjB,EAAAgB,MAAA,KAAAR,YAAA","file":"js/3-c522e070d80e03f81f35.chunk.js","sourcesContent":["/* eslint-disable promise/param-names */\nconst get = (selector, multiple) => multiple ? document.querySelectorAll(selector) : document.querySelector(selector);\n\nexport const getElement = async(selector, multiple = false, showError = true, tryAgainMs = 200, retryTimes = 4) => {\n let tries = 0;\n while ((!get(selector, multiple) || get(selector, multiple)?.length === 0) && tries !== retryTimes) {\n tries++;\n await new Promise(r => setTimeout(r, tryAgainMs));\n }\n if (tries === retryTimes) {\n showError && console.log(`asyncElementGetter: element with the selector \"${selector}\" was not found in the DOM`);\n } else {\n return get(selector, multiple);\n }\n};\n"],"sourceRoot":""}