decord/source/__polyfill/12xxx/module_12997.js
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

39 lines
1.1 KiB
JavaScript

// Module ID: 12997
// Function ID: 12998
// Dependencies: [12917, 12896]
// Exports: captureFeedback
// Module 12997
import _mod12896 from "module_12896" /* 12896 */;
import _mod12917 from "module_12917" /* 12917 */;
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 = _mod12917.getCurrentScope();
}
const obj2 = { contexts: null, type: "feedback", level: "info", tags: null };
const obj4 = { feedback: _mod12896.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 = _mod12917.getClient();
const tmp3Result = _mod12917;
}
if (client) {
client.emit("beforeSendFeedback", obj2, obj);
}
return currentScope.captureEvent(obj2, obj);
};