mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
4.6 KiB
JSON
1 line
4.6 KiB
JSON
{"ast":null,"code":"import { bindReporter } from './lib/bindReporter.js';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher.js';\nimport { initMetric } from './lib/initMetric.js';\nimport { observe } from './lib/observe.js';\nimport { onHidden } from './lib/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\nvar getFID = (onReport, reportAllChanges) => {\n var visibilityWatcher = getVisibilityWatcher();\n var metric = initMetric('FID');\n let report;\n var entryHandler = entry => {\n // Only report if the page wasn't hidden prior to the first input.\n if (report && entry.startTime < visibilityWatcher.firstHiddenTime) {\n metric.value = entry.processingStart - entry.startTime;\n metric.entries.push(entry);\n report(true);\n }\n };\n var po = observe('first-input', entryHandler);\n if (po) {\n report = bindReporter(onReport, metric, reportAllChanges);\n onHidden(() => {\n po.takeRecords().map(entryHandler);\n po.disconnect();\n }, true);\n }\n};\nexport { getFID };","map":{"version":3,"names":["bindReporter","getVisibilityWatcher","initMetric","observe","onHidden","getFID","onReport","reportAllChanges","visibilityWatcher","metric","report","entryHandler","entry","startTime","firstHiddenTime","value","processingStart","entries","push","po","takeRecords","map","disconnect"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@sentry/tracing/esm/browser/web-vitals/getFID.js"],"sourcesContent":["import { bindReporter } from './lib/bindReporter.js';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher.js';\nimport { initMetric } from './lib/initMetric.js';\nimport { observe } from './lib/observe.js';\nimport { onHidden } from './lib/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\nvar getFID = (onReport, reportAllChanges) => {\n var visibilityWatcher = getVisibilityWatcher();\n var metric = initMetric('FID');\n let report;\n\n var entryHandler = (entry) => {\n // Only report if the page wasn't hidden prior to the first input.\n if (report && entry.startTime < visibilityWatcher.firstHiddenTime) {\n metric.value = entry.processingStart - entry.startTime;\n metric.entries.push(entry);\n report(true);\n }\n };\n\n var po = observe('first-input', entryHandler );\n if (po) {\n report = bindReporter(onReport, metric, reportAllChanges);\n onHidden(() => {\n po.takeRecords().map(entryHandler );\n po.disconnect();\n }, true);\n }\n};\n\nexport { getFID };\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,uBAAuB;AACpD,SAASC,oBAAoB,QAAQ,+BAA+B;AACpE,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SAASC,OAAO,QAAQ,kBAAkB;AAC1C,SAASC,QAAQ,QAAQ,mBAAmB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,IAAIC,MAAM,GAAGA,CAACC,QAAQ,EAAEC,gBAAgB,KAAK;EAC3C,IAAIC,iBAAiB,GAAGP,oBAAoB,CAAC,CAAC;EAC9C,IAAIQ,MAAM,GAAGP,UAAU,CAAC,KAAK,CAAC;EAC9B,IAAIQ,MAAM;EAEV,IAAIC,YAAY,GAAIC,KAAK,IAAK;IAC5B;IACA,IAAIF,MAAM,IAAIE,KAAK,CAACC,SAAS,GAAGL,iBAAiB,CAACM,eAAe,EAAE;MACjEL,MAAM,CAACM,KAAK,GAAGH,KAAK,CAACI,eAAe,GAAGJ,KAAK,CAACC,SAAS;MACtDJ,MAAM,CAACQ,OAAO,CAACC,IAAI,CAACN,KAAK,CAAC;MAC1BF,MAAM,CAAC,IAAI,CAAC;IACd;EACF,CAAC;EAED,IAAIS,EAAE,GAAGhB,OAAO,CAAC,aAAa,EAAEQ,YAAa,CAAC;EAC9C,IAAIQ,EAAE,EAAE;IACNT,MAAM,GAAGV,YAAY,CAACM,QAAQ,EAAEG,MAAM,EAAEF,gBAAgB,CAAC;IACzDH,QAAQ,CAAC,MAAM;MACbe,EAAE,CAACC,WAAW,CAAC,CAAC,CAACC,GAAG,CAACV,YAAa,CAAC;MACnCQ,EAAE,CAACG,UAAU,CAAC,CAAC;IACjB,CAAC,EAAE,IAAI,CAAC;EACV;AACF,CAAC;AAED,SAASjB,MAAM"},"metadata":{},"sourceType":"module"} |