2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 982
|
2026-07-25 08:10:48 +00:00
|
|
|
// Function ID: 10633
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: globalEncodeFactory
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [981, 793, 983]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
// Module 982 (globalEncodeFactory)
|
2026-07-23 10:11:24 +00:00
|
|
|
const require = arg1;
|
|
|
|
|
const dependencyMap = arg6;
|
2026-07-20 16:05:17 +00:00
|
|
|
function globalEncodeFactory(TextEncoder) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_0 = TextEncoder;
|
|
|
|
|
return (arg0) => new closure_0().encode(arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function encodePolyfill(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const uint8Array = new Uint8Array(require(983) /* utf8ToBytes */.utf8ToBytes(arg0));
|
2026-07-20 16:05:17 +00:00
|
|
|
return uint8Array;
|
|
|
|
|
}
|
|
|
|
|
arg5.useEncodePolyfill = function useEncodePolyfill() {
|
2026-07-23 10:11:24 +00:00
|
|
|
const sentryCarrier = require(981) /* getSentryCarrier */.getSentryCarrier();
|
|
|
|
|
if (require(793) /* RN_GLOBAL_OBJ */.RN_GLOBAL_OBJ.TextEncoder) {
|
|
|
|
|
sentryCarrier.encodePolyfill = globalEncodeFactory(require(793) /* RN_GLOBAL_OBJ */.RN_GLOBAL_OBJ.TextEncoder);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
sentryCarrier.encodePolyfill = encodePolyfill;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
arg5.globalEncodeFactory = globalEncodeFactory;
|
|
|
|
|
arg5.encodePolyfill = encodePolyfill;
|