{"version":3,"file":"react-topbar-progress-indicator-Ck_kLhkY.js","sources":["../../node_modules/.pnpm/react-topbar-progress-indicator@4.1.1_react@18.3.1/node_modules/react-topbar-progress-indicator/src/index.js"],"sourcesContent":["// @flow\n\nvar React = require(\"react\");\n\n// topbar require window, so here is an universal workaround\nvar topbar =\n typeof window === \"undefined\"\n ? {\n show: function() {},\n hide: function() {},\n config: function() {}\n }\n : require(\"topbar\");\n\nvar semaphore /*: number*/ = 0;\n\n/*::\ntype Props = {\n topbar?: typeof topbar\n};\n*/\n\nvar getTopBar = function(props /*: Props*/) /*: typeof topbar*/ {\n return props.topbar || topbar;\n};\n\nfunction TopBar(props /*: Props */) {\n React.useEffect(function() {\n if (semaphore === 0) {\n getTopBar(props).show();\n }\n semaphore++;\n\n return function() {\n semaphore--;\n if (semaphore === 0) {\n getTopBar(props).hide();\n }\n };\n }, []);\n\n return null;\n}\n\nTopBar.config = topbar.config;\n\nmodule.exports = TopBar;\n"],"names":["React","require$$0","topbar","require$$1","semaphore","getTopBar","props","TopBar","src"],"mappings":"6HAEA,IAAIA,EAAQC,EAGRC,EACF,OAAO,OAAW,IACd,CACE,KAAM,UAAW,CAAE,EACnB,KAAM,UAAW,CAAE,EACnB,OAAQ,UAAW,CAAA,CAC3B,EACMC,EAAiB,EAEnBC,EAAyB,EAQzBC,EAAY,SAASC,EAAuC,CAC9D,OAAOA,EAAM,QAAUJ,CACzB,EAEA,SAASK,EAAOD,EAAoB,CAClC,OAAAN,EAAM,UAAU,UAAW,CACzB,OAAII,IAAc,GAChBC,EAAUC,CAAK,EAAE,KAAM,EAEzBF,IAEO,UAAW,CAChBA,IACIA,IAAc,GAChBC,EAAUC,CAAK,EAAE,KAAM,CAE1B,CACF,EAAE,EAAE,EAEE,IACT,CAEAC,EAAO,OAASL,EAAO,OAEvB,IAAAM,EAAiBD","x_google_ignoreList":[0]}