decord/source/__polyfill/13xxx/module_13146.js
github-actions 8d58bae3b2 chore: update source for alpha 347.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
2026-09-18 06:58:00 +00:00

39 lines
1.1 KiB
JavaScript

// Module ID: 13146
// Function ID: 13147
// Dependencies: [13066, 13045]
// Exports: captureFeedback
// Module 13146
import _mod13045 from "module_13045" /* 13045 */;
import _mod13066 from "module_13066" /* 13066 */;
require = arg1;
const dependencyMap = arg6;
export const captureFeedback = function captureFeedback(arg0) {
let obj = arg1;
if (arg1 === undefined) {
obj = {};
}
let currentScope = arg2;
if (arg2 === undefined) {
currentScope = _mod13066.getCurrentScope();
}
const obj2 = { contexts: null, type: "feedback", level: "info", tags: null };
const obj4 = { feedback: _mod13045.dropUndefinedKeys({ contact_email: email, name, message, url, source, associated_event_id: associatedEventId }) };
({ message, name, email, url, source, associatedEventId, tags } = arg0);
obj2.contexts = obj4;
obj2.tags = tags;
let client = currentScope;
if (currentScope) {
client = currentScope.getClient();
}
if (!client) {
client = _mod13066.getClient();
const tmp3Result = _mod13066;
}
if (client) {
client.emit("beforeSendFeedback", obj2, obj);
}
return currentScope.captureEvent(obj2, obj);
};