mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
its working
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import { getGlobalObject } from '@sentry/utils';\nimport { onHidden } from './onHidden.js';\n\n/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nlet firstHiddenTime = -1;\nvar initHiddenTime = () => {\n return getGlobalObject().document.visibilityState === 'hidden' ? 0 : Infinity;\n};\nvar trackChanges = () => {\n // Update the time if/when the document becomes hidden.\n onHidden(({\n timeStamp\n }) => {\n firstHiddenTime = timeStamp;\n }, true);\n};\nvar getVisibilityWatcher = () => {\n if (firstHiddenTime < 0) {\n // If the document is hidden when this code runs, assume it was hidden\n // since navigation start. This isn't a perfect heuristic, but it's the\n // best we can do until an API is available to support querying past\n // visibilityState.\n firstHiddenTime = initHiddenTime();\n trackChanges();\n }\n return {\n get firstHiddenTime() {\n return firstHiddenTime;\n }\n };\n};\nexport { getVisibilityWatcher };","map":{"version":3,"names":["getGlobalObject","onHidden","firstHiddenTime","initHiddenTime","document","visibilityState","Infinity","trackChanges","timeStamp","getVisibilityWatcher"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@sentry/tracing/esm/browser/web-vitals/lib/getVisibilityWatcher.js"],"sourcesContent":["import { getGlobalObject } from '@sentry/utils';\nimport { onHidden } from './onHidden.js';\n\n/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nlet firstHiddenTime = -1;\n\nvar initHiddenTime = () => {\n return getGlobalObject().document.visibilityState === 'hidden' ? 0 : Infinity;\n};\n\nvar trackChanges = () => {\n // Update the time if/when the document becomes hidden.\n onHidden(({ timeStamp }) => {\n firstHiddenTime = timeStamp;\n }, true);\n};\n\nvar getVisibilityWatcher = (\n\n) => {\n if (firstHiddenTime < 0) {\n // If the document is hidden when this code runs, assume it was hidden\n // since navigation start. This isn't a perfect heuristic, but it's the\n // best we can do until an API is available to support querying past\n // visibilityState.\n firstHiddenTime = initHiddenTime();\n trackChanges();\n }\n return {\n get firstHiddenTime() {\n return firstHiddenTime;\n },\n };\n};\n\nexport { getVisibilityWatcher };\n"],"mappings":"AAAA,SAASA,eAAe,QAAQ,eAAe;AAC/C,SAASC,QAAQ,QAAQ,eAAe;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,IAAIC,eAAe,GAAG,CAAC,CAAC;AAExB,IAAIC,cAAc,GAAGA,CAAA,KAAM;EACzB,OAAOH,eAAe,CAAC,CAAC,CAACI,QAAQ,CAACC,eAAe,KAAK,QAAQ,GAAG,CAAC,GAAGC,QAAQ;AAC/E,CAAC;AAED,IAAIC,YAAY,GAAGA,CAAA,KAAM;EACvB;EACAN,QAAQ,CAAC,CAAC;IAAEO;EAAU,CAAC,KAAK;IAC1BN,eAAe,GAAGM,SAAS;EAC7B,CAAC,EAAE,IAAI,CAAC;AACV,CAAC;AAED,IAAIC,oBAAoB,GAAGA,CAAA,KAEtB;EACH,IAAIP,eAAe,GAAG,CAAC,EAAE;IACvB;IACA;IACA;IACA;IACAA,eAAe,GAAGC,cAAc,CAAC,CAAC;IAClCI,YAAY,CAAC,CAAC;EAChB;EACA,OAAO;IACL,IAAIL,eAAeA,CAAA,EAAG;MACpB,OAAOA,eAAe;IACxB;EACF,CAAC;AACH,CAAC;AAED,SAASO,oBAAoB"},"metadata":{},"sourceType":"module"}
|
||||
Reference in New Issue
Block a user