{"version":3,"file":"createChainedFunction-C1NM2QhX.js","sources":["../../Client/node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js","../../Client/node_modules/react-bootstrap/es/utils/createChainedFunction.js"],"sourcesContent":["function _assertThisInitialized(e) {\n  if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  return e;\n}\nexport { _assertThisInitialized as default };","/**\n * Safe chained function\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n *\n * @param {function} functions to chain\n * @returns {function|null}\n */\nfunction createChainedFunction() {\n  for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n    funcs[_key] = arguments[_key];\n  }\n\n  return funcs.filter(function (f) {\n    return f != null;\n  }).reduce(function (acc, f) {\n    if (typeof f !== 'function') {\n      throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n    }\n\n    if (acc === null) {\n      return f;\n    }\n\n    return function chainedFunction() {\n      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n        args[_key2] = arguments[_key2];\n      }\n\n      acc.apply(this, args);\n      f.apply(this, args);\n    };\n  }, null);\n}\n\nexport default createChainedFunction;"],"names":["_assertThisInitialized","e","createChainedFunction","_len","funcs","_key","f","acc","_len2","args","_key2"],"mappings":"AAAA,SAASA,EAAuBC,EAAG,CACjC,GAAeA,IAAX,OAAc,MAAM,IAAI,eAAe,2DAA2D,EACtG,OAAOA,CACT,CCMA,SAASC,GAAwB,CAC/B,QAASC,EAAO,UAAU,OAAQC,EAAQ,IAAI,MAAMD,CAAI,EAAGE,EAAO,EAAGA,EAAOF,EAAME,IAChFD,EAAMC,CAAI,EAAI,UAAUA,CAAI,EAG9B,OAAOD,EAAM,OAAO,SAAUE,EAAG,CAC/B,OAAOA,GAAK,IACb,CAAA,EAAE,OAAO,SAAUC,EAAKD,EAAG,CAC1B,GAAI,OAAOA,GAAM,WACf,MAAM,IAAI,MAAM,yEAAyE,EAG3F,OAAIC,IAAQ,KACHD,EAGF,UAA2B,CAChC,QAASE,EAAQ,UAAU,OAAQC,EAAO,IAAI,MAAMD,CAAK,EAAGE,EAAQ,EAAGA,EAAQF,EAAOE,IACpFD,EAAKC,CAAK,EAAI,UAAUA,CAAK,EAG/BH,EAAI,MAAM,KAAME,CAAI,EACpBH,EAAE,MAAM,KAAMG,CAAI,CACnB,CACF,EAAE,IAAI,CACT","x_google_ignoreList":[0,1]}