// Metro module 1026 (f1027). import * as _slicedToArray from "./_slicedToArray"; import { debug, GLOBAL_OBJ, getClient, getCurrentScope, captureFeedback, getLocationHref, addIntegration, isBrowser, getIsolationScope, getGlobalScope } from "./Module817"; import { HermesBuiltin, $withEnv } from "../_hermes/prelude"; function $mk67512($env) { return () => { const r1 = $env; const r3 = r1[1]; const onFormOpen2 = r3.onFormOpen; if (onFormOpen2 != null) { onFormOpen2.call(r3); } const r5 = r1[0]; const onFormOpen3 = r5.onFormOpen; if (onFormOpen3 != null) { onFormOpen3.call(r5); } }; } function $mk67513($env) { return () => { const r1 = $env; const r3 = r1[1]; const onFormClose2 = r3.onFormClose; if (onFormClose2 != null) { onFormClose2.call(r3); } const r5 = r1[0]; const onFormClose3 = r5.onFormClose; if (onFormClose3 != null) { onFormClose3.call(r5); } }; } function $mk67514($env) { return (a0, a1) => { const r1 = $env; const r5 = r1[1]; const onSubmitSuccess2 = r5.onSubmitSuccess; if (onSubmitSuccess2 != null) { onSubmitSuccess2.call(r5, a0, a1); } const r7 = r1[0]; const onSubmitSuccess3 = r7.onSubmitSuccess; if (onSubmitSuccess3 != null) { onSubmitSuccess3.call(r7, a0, a1); } }; } function $mk67515($env) { return (a0) => { const r1 = $env; const r4 = r1[1]; const onSubmitError2 = r4.onSubmitError; if (onSubmitError2 != null) { onSubmitError2.call(r4, a0); } const r6 = r1[0]; const onSubmitError3 = r6.onSubmitError; if (onSubmitError3 != null) { onSubmitError3.call(r6, a0); } }; } function $mk67516($env) { return () => { const r1 = $env; const r3 = r1[1]; const onFormSubmitted3 = r3.onFormSubmitted; if (onFormSubmitted3 != null) { onFormSubmitted3.call(r3); } const r5 = r1[0]; const onFormSubmitted4 = r5.onFormSubmitted; if (onFormSubmitted4 != null) { onFormSubmitted4.call(r5); } }; } function $mk67517($env) { return (a0) => { const [r24, r25] = a0; $env[0].setAttributeNS(null, r24, r25); }; } function $mk67524($env) { return function(a0) { try { const r2 = $env; r2[0] = a0.__h; a0.__h = []; r2[0].some(function(item) { item.call(a0); }); } catch ($e) { $env.$parent[13].__e($e, a0.__v); } }; } function $mk67528($env) { return function() { return $env[0]; }; } function $mk67530($env) { return function(a0, a1) { return a0 !== $env[0][a1]; }; } function $mk101598($env) { return (a0) => { const r9 = $env[0]; const fillStyle = $env.$parent[0]; const type = a0.type; if (type === "highlight") { r9.shadowColor = "rgba(0, 0, 0, 0.7)"; r9.shadowBlur = 50; r9.fillStyle = fillStyle; r9.fillRect(a0.x - 1, a0.y - 1, a0.w + 2, a0.h + 2); r9.clearRect(a0.x, a0.y, a0.w, a0.h); } else if (type === "hide") { r9.fillStyle = "rgb(0, 0, 0)"; r9.fillRect(a0.x, a0.y, a0.w, a0.h); } }; } function $mk118629($env) { return () => { const r1 = $env; const r3 = r1[5]; if (r3 != null) { r3.close(); } const r5 = r1[0]; const onFormClose2 = r5.onFormClose; if (onFormClose2 != null) { onFormClose2.call(r5); } }; } function $mk118630($env) { return () => { const r1 = $env; const r3 = r1[5]; if (r3 != null) { r3.close(); } const r5 = r1[0]; const onFormSubmitted3 = r5.onFormSubmitted; if (onFormSubmitted3 != null) { onFormSubmitted3.call(r5); } }; } function $mk118992($env) { return (a0, a1) => { const r1 = $env; let env32158 = { $parent: $env }; env32158[0] = a0; r1[1].srcObject = r1[0]; r1[1].onloadedmetadata = () => { const r2 = env32158.$parent.$parent; const r4 = r2[1]; const r1 = env32158.$parent; r4(r1[1], r2[4]); r1[0].getTracks().forEach((item) => item.stop()); (0, env32158[0])(); }; r1[1].play().catch(a1); }; } let v$1, p$1, y$1, g$1, b$1, m$1, k$1, C$1, P$1, _, T$1, A$1, D$1, _L, M, z$1, N, O, q$1, y, A, q, j, w, z, B, D, DialogHeader, retrieveStringValue, Form, LabelText, Dialog, document2, navigator2, c840_6, sendFeedback, c840_8, c840_10, c840_11, c840_19, c840_20, c840_21, isArray, slice, c840_13, c840_15, c840_17, H, c840_47, c840_48, c840_49, __b, __r2, diffed, __c, unmount, __, c840_60, c840_65; let env840 = {}; const mergeOptions = function mergeOptions(a0, a1) { let env12639; const r1 = env12639 = {}; env12639[0] = a0; env12639[1] = a1; return { ...a0, ...a1, tags: { ...a0.tags, ...a1.tags }, onFormOpen: $mk67512(r1), onFormClose: $mk67513(r1), onSubmitSuccess: $mk67514(r1), onSubmitError: $mk67515(r1), onFormSubmitted: $mk67516(r1), themeDark: { ...a0.themeDark, ...a1.themeDark }, themeLight: { ...a0.themeLight, ...a1.themeLight } }; }; v$1 = function v$1(a0, a1) { for (const key in a1) { a0[key] = a1[key]; } return a0; }; p$1 = function p$1(a0) { const parentNode = a0.parentNode; if (parentNode) { parentNode.removeChild(a0); } }; y$1 = function y$1(a0, a1, a2) { let r17, r18; const props2 = {}; let r5 = void 0; let r4 = void 0; let ref5 = void 0; let key3 = void 0; for (const key in a1) { r17 = r5; r18 = r4; ref5 = r17; key3 = r18; if (key == "key") { r4 = a1[key]; r5 = r17; } else if (key == "ref") { r5 = a1[key]; r4 = r18; } else { props2[key] = a1[key]; r5 = r17; r4 = r18; } } r17 = r5; r18 = r4; ref5 = r17; key3 = r18; if (arguments.length > 2) { props2.children = arguments.length > 3 ? slice.call(arguments, 2) : a2; } if (typeof a0 === "function" && a0.defaultProps != null) { const defaultProps = a0.defaultProps; for (const key2 in defaultProps) { if (props2[key2] === void 0) { props2[key2] = a0.defaultProps[key2]; } } } const __v = env840[14] + 1; env840[14] = __v; const r47 = { type: a0, props: props2, key: key3, ref: ref5, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v, __i: -1, __u: 0 }; if (c840_13.vnode != null) { c840_13.vnode(r47); } return r47; }; g$1 = function g$1(a0) { return a0.children; }; b$1 = function b$1(a0, a1) { this.props = a0; this.context = a1; }; m$1 = function m$1(a0, a1) { let r7 = a1; if (a1 == null) { return a0.__ ? m$1(a0.__, a0.__i + 1) : null; } if (a1 < a0.__k.length) { do { const r11 = a0.__k[r7]; const r6 = r7; if (r11 != null && r11.__e != null) { return r11.__e; } r7 = r6 + 1; } while (r7 < a0.__k.length); } return typeof a0.type === "function" ? m$1(a0) : null; }; k$1 = function k$1({ __: __3 }) { if (__3 != null && __3.__c != null) { __3.__c.base = null; __3.__e = null; const length = __3.__k.length; let r0 = 0; if (0 < length) { do { const r14 = __3.__k[r0]; const r1 = r0; if (r14 != null && r14.__e != null) { const __c3 = __3.__c; const __e2 = r14.__e; __c3.base = __e2; __3.__e = __e2; break; } r0 = r1 + 1; } while (r0 < __3.__k.length); } return k$1(__3); } }; C$1 = function C$1() { let r119, __e3; const r11 = []; const r12 = []; c840_15.sort(H); let r48 = c840_15.shift(); let r49 = void 0; let r50 = void 0; while (r48) { const __d2 = r48.__d; const r15 = r49; const r20 = r48; let r16 = r15; if (__d2) { const length = c840_15.length; const __v = r20.__v; const __e2 = __v.__e; const __P = r20.__P; let r22 = void 0; if (__P) { const r18 = {}; for (const key in __v) { r18[key] = __v[key]; } r18.__v = __v.__v + 1; if (c840_13.vnode) { c840_13.vnode(r18); } const __n = r20.__n; const ownerSVGElement = __P.ownerSVGElement; const r63 = 32 & __v.__u ? [__e2] : null; let r65 = __e2; if (r65 == null) { const __3 = __v.__; let r66 = null; if (__3) { L20: { const __4 = __v.__; let r32 = __v.__i + 1; while (r32 < __4.__k.length) { const r31 = __4.__k[r32]; const r71 = r32; if (r31 != null && r31.__e != null) { __e3 = r31.__e; break L20; } r32 = r71 + 1; } __e3 = typeof __4.type === "function" ? m$1(__4) : null; } r66 = __e3; } r65 = r66; } M(__P, r18, __v, __n, ownerSVGElement !== void 0, r63, r11, r65, !!(32 & __v.__u), r12); r18.__.__k[r18.__i] = r18; r18.__d = void 0; const __e4 = r18.__e; r22 = r18; if (__e4 != __e2) { const __5 = r18.__; r22 = r18; if (__5 != null) { const __c3 = __5.__c; r22 = r18; if (__c3 != null) { __5.__c.base = null; __5.__e = null; const r89 = 0 < __5.__k.length; let r90 = 0; if (r89) { do { const r92 = __5.__k[r90]; const r93 = r90; if (r92 != null && r92.__e != null) { const __c4 = __5.__c; const __e5 = r92.__e; __c4.base = __e5; __5.__e = __e5; break; } r90 = r93 + 1; } while (r90 < __5.__k.length); } const __6 = __5.__; r22 = r18; if (__6 != null) { const __c5 = __6.__c; r22 = r18; if (__c5 != null) { __6.__c.base = null; __6.__e = null; const r104 = 0 < __6.__k.length; let r105 = 0; if (r104) { do { const r107 = __6.__k[r105]; const r108 = r105; if (r107 != null && r107.__e != null) { const __c6 = __6.__c; const __e6 = r107.__e; __c6.base = __e6; __6.__e = __e6; break; } r105 = r108 + 1; } while (r105 < __6.__k.length); } k$1(__6); r22 = r18; } } } } } } if (!r22) { r22 = r15; } L53: { if (length !== 0 && !(c840_15.length > length)) { const r117 = r22 ? c840_13.__c : r22; r119 = r22; if (!r117) { break L53; } c840_13.__c(r22, c840_20); r119 = r22; } else { let env12640; const r124 = env12640 = { $parent: env840 }; env12640[0] = r11; const r126 = 0 < r12.length; let r127 = 0; if (r126) { do { const r129 = r12[r127]; const r130 = r127 + 1; const r131 = r12[r130]; const r132 = r130 + 1; N(r129, r131, r12[r132]); r127 = r132 + 1; } while (r127 < r12.length); } if (c840_13.__c) { c840_13.__c(r22, env12640[0]); } env12640[0].some($mk67524(r124)); r11.length = 0; r12.length = 0; c840_15.sort(H); r119 = void 0; } } r16 = r119; } r48 = c840_15.shift(); r49 = r16; r50 = r49; } if (r50) { let env12641; const r150 = env12641 = { $parent: env840 }; env12641[0] = r11; const r152 = 0 < r12.length; let r153 = 0; if (r152) { do { const r155 = r12[r153]; const r156 = r153 + 1; const r157 = r12[r156]; const r158 = r156 + 1; N(r155, r157, r12[r158]); r153 = r158 + 1; } while (r153 < r12.length); } if (c840_13.__c) { c840_13.__c(r50, env12641[0]); } env12641[0].some($mk67524(r150)); } C$1.__r = 0; }; P$1 = function P$1(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { let r4, r9, r16, r77, r111, r112, r253, r273, __d3, __e2, __e3, __i, length5, length6, nodeType, nodeType2; const r32 = (a3 ? a3.__k : a3) || c840_20; const length = a1.length; a2.__d = a8; const length2 = a1.length; const length3 = r32.length; a2.__k = []; const r23 = 0 < length2; let r13 = 0; let r28 = length3; let r6 = 0; let r72 = r28; if (r23) { do { const __k = a2.__k; const children = a1[r6]; const r73 = children == null; const r0 = r13; const r46 = r28; const r12 = r6; let r44 = null; if (!r73) { r44 = null; if (typeof children !== "boolean") { r44 = null; if (typeof children !== "function") { L33: { if (typeof children !== "string" && (typeof children !== "number" && (typeof children !== "bigint" && children.constructor != String))) { if (isArray(children)) { const props3 = { children }; const __v3 = env840[14] + 1; env840[14] = __v3; const r93 = { type: g$1, props: props3, key: null, ref: null, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: __v3, __i: -1, __u: 0 }; const vnode = c840_13.vnode; r77 = r93; if (vnode == null) { break L33; } c840_13.vnode(r93); r77 = r93; break L33; } const constructor = children.constructor; r77 = children; if (constructor !== void 0) { break L33; } const __b2 = children.__b; r77 = children; if (!(__b2 > 0)) { break L33; } const { type, props: props2, key } = children; const ref5 = children.ref ? children.ref : null; const __v = children.__v; let __v2 = __v; if (__v2 == null) { const r3 = env840[14] + 1; env840[14] = r3; __v2 = r3; } const r80 = { type, props: props2, key, ref: ref5, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: __v2, __i: -1, __u: 0 }; const r83 = __v == null && c840_13.vnode != null; r77 = r80; if (!r83) { break L33; } c840_13.vnode(r80); r77 = r80; } else { let __v4 = children; if (__v4 == null) { const r101 = env840[14] + 1; env840[14] = r101; __v4 = r101; } const r98 = { type: null, props: children, key: null, ref: null, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: __v4, __i: -1, __u: 0 }; const r102 = children == null && c840_13.vnode != null; r77 = r98; if (r102) { c840_13.vnode(r98); r77 = r98; } } } r44 = r77; } } } L99: { __k[r12] = r44; if (r44 != null) { L77: { r44.__ = a2; r44.__b = a2.__b + 1; r9 = r12 + r0; const { key: key2, type: type2 } = r44; r16 = r9 - 1; r4 = r9 + 1; const r137 = r32[r9]; __i = r9; if (r137 !== null) { if (r137 && key2 == r137.key) { const type3 = r137.type; __i = r9; if (type2 === type3) { break L77; } } const r141 = r46 > (r137 != null ? 131072 & r137.__u ? 0 : 1 : 0); __i = -1; if (r141) { let r142 = r4; let r143 = r16; if (!(0 <= r16)) { const r145 = r4 < r32.length; r142 = r4; r143 = r16; __i = -1; if (!r145) { break L77; } } while (true) { const r15 = r142; const r8 = r143; let r11 = r8; if (0 <= r8) { const r146 = r32[r8]; if (r146 && !(131072 & r146.__u) && key2 == r146.key) { const type4 = r146.type; __i = r8; if (type2 === type4) { break; } } r11 = r8 - 1; } const length4 = r32.length; let r151 = r15; if (r15 < length4) { const r152 = r32[r15]; if (r152 && !(131072 & r152.__u) && key2 == r152.key) { const type5 = r152.type; __i = r15; if (type2 === type5) { break; } } r151 = r15 + 1; } r142 = r151; r143 = r11; if (!(0 <= r11)) { const r158 = r151 < r32.length; r142 = r151; r143 = r11; __i = -1; if (!r158) { break; } } } } } } r44.__i = __i; let r159 = r46; let r160 = null; if (__i !== -1) { const r161 = r46 - 1; const r162 = r32[__i]; r159 = r161; r160 = r162; if (r162) { r162.__u = r162.__u | 131072; r159 = r161; r160 = r162; } } if (r160 != null && r160.__v !== null) { r111 = r0; r112 = r159; if (__i === r9) { break L99; } const r166 = __i === r4 ? r0 + 1 : r9 < __i ? r159 > length2 - r9 ? r0 + (__i - r9) : r0 - 1 : __i < r9 ? __i === r16 ? __i - r9 : 0 : 0; const r169 = r12 + r166; r111 = r166; r112 = r159; if (__i === r169) { break L99; } r44.__u = r44.__u | 65536; r111 = r166; r112 = r159; break L99; } const r172 = __i === -1 ? r0 - 1 : r0; const type6 = r44.type; r111 = r172; r112 = r159; if (typeof type6 !== "function") { r44.__u = r44.__u | 65536; r111 = r172; r112 = r159; } } else { const r108 = r32[r12]; const r109 = r108 && r108.key == null && r108.__e; r111 = r0; r112 = r46; if (r109) { if (r108.__e == a2.__d) { const __3 = r108.__; let __d4 = null; if (__3) { L50: { const __4 = r108.__; let r119 = r108.__i + 1; while (r119 < __4.__k.length) { const r123 = __4.__k[r119]; const r124 = r119; if (r123 != null && r123.__e != null) { __e2 = r123.__e; break L50; } r119 = r124 + 1; } __e2 = typeof __4.type === "function" ? m$1(__4) : null; } __d4 = __e2; } a2.__d = __d4; } O(r108, r108, false); r32[r12] = null; r112 = r46 - 1; r111 = r0; } } } r6 = r12 + 1; r13 = r111; r28 = r112; r72 = r28; } while (r6 < length2); } if (r72) { const r176 = 0 < length3; let r177 = 0; if (r176) { do { const r178 = r32[r177]; let r179 = r178 != null; const r180 = r177; if (r179) { r179 = !(131072 & r178.__u); } if (r179) { if (r178.__e == a2.__d) { const __5 = r178.__; let __d5 = null; if (__5) { L115: { const __6 = r178.__; let r189 = r178.__i + 1; while (r189 < __6.__k.length) { const r193 = __6.__k[r189]; const r194 = r189; if (r193 != null && r193.__e != null) { __e3 = r193.__e; break L115; } r189 = r194 + 1; } __e3 = typeof __6.type === "function" ? m$1(__6) : null; } __d5 = __e3; } a2.__d = __d5; } O(r178, r178); } r177 = r180 + 1; } while (r177 < length3); } } let __d2 = a2.__d; const r204 = 0 < length; let r207 = void 0; let r208 = 0; let __e7 = void 0; let __d6 = __d2; if (r204) { do { const __8 = a2.__k[r208]; let r213 = __8 != null; let r214 = r207; const __i2 = r208; const r216 = __d2; if (r213) { r213 = typeof __8 !== "boolean"; } if (r213) { r213 = typeof __8 !== "function"; } let r217 = r214; let r218 = r216; if (r213) { const r221 = __8.__i === -1 ? c840_19 : r32[__8.__i] || c840_19; __8.__i = __i2; M(a0, __8, r221, a4, a5, a6, a7, r216, a9, a10); const __e4 = __8.__e; if (__8.ref && r221.ref != __8.ref) { if (r221.ref) { N(r221.ref, null, __8); } a10.push.call(a10, __8.ref, __8.__c || __e4, __8); } if (r214 == null && __e4 != null) { r214 = __e4; } L184: { if (!(65536 & __8.__u) && r221.__k !== __8.__k) { if (typeof __8.type === "function" && __8.__d !== void 0) { __d3 = __8.__d; break L184; } __d3 = r216; if (!__e4) { break L184; } __d3 = __e4.nextSibling; } else { if (typeof __8.type === "function") { const __k2 = __8.__k; let r256 = r216; if (__k2) { const r258 = 0 < __k2.length; let r259 = 0; let r260 = r216; r256 = r260; if (r258) { do { const r261 = __k2[r259]; const r262 = r259; const r263 = r260; let r264 = r263; if (r261) { __k2[r262].__ = __8; const __7 = __k2[r262]; if (typeof __7.type === "function") { const __k3 = __7.__k; let r276 = r263; if (__k3) { const r278 = 0 < __k3.length; let r279 = 0; let r280 = r263; r276 = r280; if (r278) { do { const r281 = __k3[r279]; const r282 = r279; const r58 = r280; let r56 = r58; if (r281) { __k3[r282].__ = __7; r56 = _(__k3[r282], r58, a0); } r276 = r56; if (!__k3) { break; } r279 = r282 + 1; length5 = __k3.length; r280 = r56; r276 = r280; } while (r279 < length5); } } r273 = r276; } else { const __e6 = __7.__e; let r53 = r263; if (__e6 != r263) { a0.insertBefore.call(a0, __7.__e, r263 ? r263 : null); r53 = __7.__e; } do { const r271 = r53; const r272 = r271 && r271.nextSibling; r273 = r272; if (r272 == null) { break; } nodeType2 = r272.nodeType; r53 = r272; r273 = r53; } while (nodeType2 === 8); } r264 = r273; } r256 = r264; if (!__k2) { break; } r259 = r262 + 1; length6 = __k2.length; r260 = r264; r256 = r260; } while (r259 < length6); } } r253 = r256; } else { const __e5 = __8.__e; let r246 = r216; if (__e5 != r216) { a0.insertBefore.call(a0, __8.__e, r216 ? r216 : null); r246 = __8.__e; } do { const r251 = r246; const r252 = r251 && r251.nextSibling; r253 = r252; if (r252 == null) { break; } nodeType = r252.nodeType; r246 = r252; r253 = r246; } while (nodeType === 8); } __d3 = r253; } } __8.__d = void 0; __8.__u = __8.__u & -196609; r218 = __d3; r217 = r214; } r208 = __i2 + 1; r207 = r217; __d2 = r218; __e7 = r207; __d6 = __d2; } while (r208 < length); } a2.__d = __d6; a2.__e = __e7; }; _ = function(a0, a1, a2) { let length2; if (typeof a0.type === "function") { const __k = a0.__k; let r22 = a1; if (__k) { const length = __k.length; let r0 = 0; const r4 = 0 < length; let r26 = a1; r22 = a1; if (r4) { do { const r27 = __k[r0]; const r1 = r0; const r14 = r26; let r28 = r14; if (r27) { __k[r1].__ = a0; r28 = _(__k[r1], r14, a2); } r22 = r28; if (!__k) { break; } r0 = r1 + 1; length2 = __k.length; r26 = r28; r22 = r26; } while (r0 < length2); } } return r22; } const __e2 = a0.__e; let r8 = a1; if (__e2 != a1) { a2.insertBefore.call(a2, a0.__e, a1 ? a1 : null); r8 = a0.__e; } while (true) { const r18 = r8; const r19 = r18 && r18.nextSibling; if (r19 != null) { const nodeType = r19.nodeType; r8 = r19; if (nodeType === 8) { continue; } } return r19; } }; T$1 = function T$1(a0, a1, a2) { if (a1[0] === "-") { a0.setProperty.call(a0, a1, a2 == null ? "" : a2); } else { a0[a1] = a2 == null ? "" : typeof a2 === "number" ? c840_21.test(a1) ? a2 : a2 + "px" : a2; } }; A$1 = function A$1(a0, a1, a2, a3, a4) { let r19; L60: { let r8 = a3; if (a1 === "style") { if (typeof a2 === "string") { a0.style.cssText = a2; } else { if (typeof a3 === "string") { a0.style.cssText = ""; r8 = ""; } if (r8) { for (const key in r8) { if (!(a2 ? key in a2 : a2)) { T$1(a0.style, key, ""); } } } if (a2) { for (const key2 in a2) { if (!(r8 && a2[key2] === r8[key2])) { T$1(a0.style, key2, a2[key2]); } } } } } else { if (a1[0] === "o" && a1[1] === "n") { const r49 = a1.replace(/(PointerCapture)$|Capture$/i, "$1"); const r55 = r49.toLowerCase() in a0 ? r49.toLowerCase().slice(2) : r49.slice(2); if (!a0.l) { a0.l = {}; } const r62 = a1 !== r49; a0.l[r55 + r62] = a2; if (a2) { if (a3) { a2.u = a3.u; break L60; } a2.u = Date.now(); a0.addEventListener.call(a0, r55, r62 ? _L : D$1, r62); break L60; } a0.removeEventListener.call(a0, r55, r62 ? _L : D$1, r62); break L60; } if (a4) { r19 = a1.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s"); } else { r19 = a1; if (a1 !== "width") { r19 = a1; if (a1 !== "height") { r19 = a1; if (a1 !== "href") { r19 = a1; if (a1 !== "list") { r19 = a1; if (a1 !== "form") { r19 = a1; if (a1 !== "tabIndex") { r19 = a1; if (a1 !== "download") { r19 = a1; if (a1 !== "rowSpan") { r19 = a1; if (a1 !== "colSpan") { r19 = a1; if (a1 !== "role") { const r29 = a1 in a0; r19 = a1; if (r29) { try { a0[a1] = a2 == null ? "" : a2; break L60; } catch ($e) { r19 = a1; } } } } } } } } } } } } } if (typeof a2 !== "function") { L25: { if (a2 != null) { if (a2 === false && r19[4] !== "-") { break L25; } a0.setAttribute(r19, a2); break L60; } } a0.removeAttribute(r19); } } } }; D$1 = function D$1(a0) { if (this.l) { const r10 = this.l[a0.type + false]; if (a0.t) { if (a0.t <= r10.u) { return void 0; } } else { a0.t = Date.now(); } return r10(c840_13.event ? c840_13.event(a0) : a0); } }; _L = function L(a0) { if (this.l) { const r3 = this.l; const r11 = r3[a0.type + true]; return r11.call(r3, c840_13.event ? c840_13.event(a0) : a0); } }; M = function M(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) { let r90, r184, r191, r248, r252, r265, r272; let __c2, props, state, snapshotBeforeUpdate; const __2 = a1; let r10 = a3; let r20 = void 0; let r6 = void 0; const type = a1.type; if (a1.constructor !== void 0) { return null; } let r8 = a5; let __e3 = a7; let r11 = a8; if (128 & a2.__u) { r11 = !!(32 & a2.__u); const __e2 = a2.__e; a1.__e = __e2; const r53 = [__e2]; __e3 = __e2; r8 = r53; } const __b2 = c840_13.__b; if (__b2) { __b2(a1); } L101: { if (typeof type === "function") { try { const props2 = a1.props; let contextType = type.contextType; const r66 = contextType; if (contextType) { contextType = a3[r66.__c]; } const r70 = contextType; const context = r66 ? r70 ? r70.props.value : r66.__ : a3; if (a2.__c) { const __c3 = a2.__c; a1.__c = __c3; r90 = __c3; __c2 = __c3; const __E = __c3.__E; __c3.__ = __E; r6 = __E; } else { if ("prototype" in type && type.prototype.render) { const __c5 = new type(props2, context); r90 = __c5; __c2 = __c5; a1.__c = __c5; } else { const __c4 = { __proto__: b$1.prototype }; new b$1(props2, context); r90 = __c4; __c2 = __c4; a1.__c = __c4; __c4.constructor = type; __c4.render = q$1; } if (r70) { r70.sub(r90); } const r103 = r90; r103.props = props2; if (!r103.state) { r90.state = {}; } const r108 = r90; r108.context = context; r108.__n = a3; r108.__d = true; r20 = true; r108.__h = []; r108._sb = []; } if (r90.__s == null) { const r119 = r90; r119.__s = r119.state; } if (type.getDerivedStateFromProps != null) { const r122 = r90; if (r122.__s == r122.state) { const r125 = r90; const __s = {}; v$1(__s, r125.__s); r125.__s = __s; } const r131 = r90; v$1(r131.__s, type.getDerivedStateFromProps(props2, r131.__s)); } const r137 = r90; const props3 = r137.props; props = props3; const state5 = r137.state; state = state5; r137.__v = a1; const r142 = r20; let r144 = type.getDerivedStateFromProps == null; if (r142) { if (r144) { r144 = r90.componentWillMount != null; } if (r144) { r90.componentWillMount(); } if (r90.componentDidMount != null) { const r223 = r90; r223.__h.push(r223.componentDidMount); } } else { if ((r144 ? props2 !== props3 : r144) && r90.componentWillReceiveProps != null) { r90.componentWillReceiveProps(props2, context); } L53: { if (!r90.__e) { L46: { if (r90.shouldComponentUpdate != null) { const r33 = r90; if (r33.shouldComponentUpdate(props2, r33.__s, context) === false) { break L46; } } if (a1.__v !== a2.__v) { break L53; } } if (a1.__v !== a2.__v) { const r169 = r90; r169.props = props2; r169.state = r169.__s; r169.__d = false; } a1.__e = a2.__e; a1.__k = a2.__k; a1.__k.forEach(function(item) { if (item) { item.__ = __2; } }); let r180 = 0; if (0 < r90._sb.length) { do { r184 = r90; const { __h, _sb } = r184; const r188 = r180; __h.push(_sb[r188]); r191 = r188 + 1; r180 = r191; } while (r191 < r184._sb.length); } const r194 = r90; r194._sb = []; if (!r194.__h.length) { break L101; } a6.push(r90); break L101; } } if (r90.componentWillUpdate != null) { const r203 = r90; r203.componentWillUpdate(props2, r203.__s, context); } if (r90.componentDidUpdate != null) { r90.__h.push(function() { __c2.componentDidUpdate(props, state, snapshotBeforeUpdate); }); } } const r229 = r90; r229.context = context; r229.props = props2; r229.__P = a0; r229.__e = false; const __r3 = c840_13.__r; let r233 = 0; if ("prototype" in type && type.prototype.render) { const r253 = r90; r253.state = r253.__s; r253.__d = false; if (__r3) { __r3(a1); } const r257 = r90; r248 = r257.render(r257.props, r257.state, r257.context); let r262 = 0; if (0 < r257._sb.length) { do { r265 = r90; const { __h: __h2, _sb: _sb2 } = r265; const r269 = r262; __h2.push(_sb2[r269]); r272 = r269 + 1; r262 = r272; } while (r272 < r265._sb.length); } r90._sb = []; } else { do { r90.__d = false; if (__r3) { __r3(a1); } const r243 = r90; r248 = r243.render(r243.props, r243.state, r243.context); r243.state = r243.__s; if (!r243.__d) { break; } r252 = r233 + 1; r233 = r252; } while (r252 < 25); } const r277 = r90; r277.state = r277.__s; if (r277.getChildContext != null) { const r281 = {}; v$1(r281, a3); v$1(r281, r90.getChildContext()); r10 = r281; } if (!r20) { r20 = r90.getSnapshotBeforeUpdate == null; } if (!r20) { snapshotBeforeUpdate = r90.getSnapshotBeforeUpdate(props3, state5); } const r301 = r248 != null && (r248.type === g$1 && r248.key == null) ? r248.props.children : r248; P$1(a0, isArray(r301) ? r301 : [r301], a1, a2, r10, a4, r8, a6, __e3, r11, a9); const r318 = r90; r318.base = a1.__e; a1.__u = a1.__u & -161; if (r318.__h.length) { a6.push(r90); } if (r6) { r90.__ = null; r90.__E = null; } } catch (r328) { a1.__v = null; if (!r11 && r8 == null) { a1.__e = a2.__e; a1.__k = a2.__k; } else { a1.__e = __e3; a1.__u = a1.__u | (r11 ? 160 : 32); r8[r8.indexOf(__e3)] = null; } c840_13.__e(r328, a1, a2); } } else { if (r8 == null && a1.__v === a2.__v) { a1.__k = a2.__k; a1.__e = a2.__e; break L101; } a1.__e = z$1(a2.__e, a1, a2, a3, a4, r8, a6, r11, a9); } } const diffed2 = c840_13.diffed; if (diffed2) { diffed2(a1); } }; z$1 = function z$1(a0, a1, a2, a3, r23, a5, a6, a7, a8) { let r24, r38, r39, r40, r41, r126, r162, __e2, length2, length4; const props2 = a2.props; const { props: props3, type } = a1; if (type === "svg") { r23 = true; } let r26 = a5; let r58 = a0; if (a5 != null) { const length = a5.length; let r1 = 0; const r5 = 0 < length; r58 = a0; if (r5) { do { const r59 = a5[r1]; const r2 = r1; if (r59 && "setAttribute" in r59 === !!type && (type ? r59.localName === type : r59.nodeType === 3)) { a5[r2] = null; r58 = r59; break; } r1 = r2 + 1; length2 = a5.length; r58 = a0; } while (r1 < length2); } } let r65 = a7; if (r58 == null) { if (type === null) { return document.createTextNode(props3); } const r17 = document; const r69 = r23 ? r17.createElementNS("http://www.w3.org/2000/svg", type) : r17.createElement(type, props3.is && props3); r65 = false; r58 = r69; r26 = null; } if (type === null) { let r197 = props2 === props3; if (!r197) { if (r65) { r65 = r58.data === props3; } r197 = r65; } if (!r197) { r58.data = props3; } } else { if (r26) { r26 = slice.call(r58.childNodes); } const r77 = a2.props || c840_19; let r78 = r77; if (!r65) { r78 = r77; if (r26 != null) { const r79 = {}; const length3 = r58.attributes.length; let r82 = 0; const r83 = 0 < length3; r78 = r79; if (r83) { do { const r86 = r58.attributes[r82]; r79[r86.name] = r86.value; r82 = r82 + 1; length4 = r58.attributes.length; r78 = r79; } while (r82 < length4); } } } const r90 = r78; let r92 = void 0; let r25 = void 0; for (const key2 in r90) { r24 = r92; r25 = r24; const r28 = r78[key2]; r92 = r24; if (key2 != "children") { let r21 = r28; if (key2 != "dangerouslySetInnerHTML") { const r96 = key2 === "key" || key2 in props3; r21 = r24; if (!r96) { A$1(r58, key2, null, r28, r23); r21 = r24; } } r92 = r21; } } r24 = r92; r25 = r24; let r30 = void 0; let r100 = void 0; let r101 = void 0; let r102 = void 0; let r103 = void 0; let r104 = void 0; let r105 = void 0; let r106 = void 0; for (const key in props3) { r41 = r30; r40 = r100; r39 = r101; r38 = r102; r103 = r41; r104 = r40; r105 = r39; r106 = r38; const r44 = props3[key]; r30 = r41; r100 = r40; r101 = r44; r102 = r38; if (key != "children") { r30 = r41; r100 = r40; r101 = r39; r102 = r44; if (key != "dangerouslySetInnerHTML") { r30 = r41; r100 = r44; r101 = r39; r102 = r38; if (key != "value") { r30 = r44; r100 = r40; r101 = r39; r102 = r38; if (key != "checked") { const r42 = key === "key" || (r65 ? typeof r44 !== "function" : r65) || r78[key] === r44; r30 = r41; r100 = r40; r101 = r39; r102 = r38; if (!r42) { A$1(r58, key, r44, r78[key], r23); r30 = r41; r100 = r40; r101 = r39; r102 = r38; } } } } } } r41 = r30; r40 = r100; r39 = r101; r38 = r102; r103 = r41; r104 = r40; r105 = r39; r106 = r38; if (r106) { if (!(r65 ? r65 : r25 && (r106.__html === r25.__html || r106.__html === r58.innerHTML))) { r58.innerHTML = r106.__html; } a1.__k = []; } else { if (r25) { r58.innerHTML = ""; } const r122 = isArray(r105) ? r105 : [r105]; const r124 = r23 && type !== "foreignObject"; if (r26) { r126 = r26[0]; } else { r126 = a2.__k; if (r126) { L75: { const length5 = a2.__k.length; let r129 = 0; if (0 < length5) { do { const r133 = a2.__k[r129]; const r134 = r129; if (r133 != null && r133.__e != null) { __e2 = r133.__e; break L75; } r129 = r134 + 1; } while (r129 < a2.__k.length); } __e2 = typeof a2.type === "function" ? a2.__ ? m$1(a2.__, a2.__i + 1) : null : null; } r126 = __e2; } } P$1(r58, r122, a1, a2, a3, r124, r26, a6, r126, r65, a8); if (r26 != null) { const r154 = +r26.length; let r155 = r154 - 1; if (r154) { do { const r156 = r26[r155]; const r157 = r155; if (r156 != null) { const r158 = r26[r157]; const parentNode = r158.parentNode; if (parentNode) { parentNode.removeChild(r158); } } r162 = +r157; r155 = r162 - 1; } while (r162); } } } if (!r65) { if (r104 !== void 0 && (r104 !== r58.value || type === "progress" && !r104 || type === "option" && r104 !== r78.value)) { A$1(r58, "value", r104, r78.value, false); } if (r103 !== void 0 && r103 !== r58.checked) { A$1(r58, "checked", r103, r78.checked, false); } } } return r58; }; N = function N(a0, a1, a2) { try { if (typeof a0 === "function") { a0(a1); } else { a0.current = a1; } } catch ($e) { c840_13.__e($e, a2); } }; O = function O(a0, a1, a2) { if (c840_13.unmount) { c840_13.unmount(a0); } const ref5 = a0.ref; if (ref5 && !(ref5.current && ref5.current !== a0.__e)) { N(ref5, null, a1); } const __c3 = a0.__c; if (__c3 != null) { if (__c3.componentWillUnmount) { try { __c3.componentWillUnmount(); } catch ($e) { c840_13.__e($e, a1); } } __c3.__P = null; __c3.base = null; a0.__c = void 0; } let r30 = a2; const __k = a0.__k; if (__k) { const length = __k.length; let r7 = 0; if (0 < length) { do { const r10 = __k[r7]; const r35 = r7; if (r10) { O(__k[r35], a1, a2 ? a2 : typeof a0.type !== "function"); } r7 = r35 + 1; } while (r7 < __k.length); } } if (!a2) { r30 = a0.__e == null; } if (!r30) { p$1(a0.__e); } a0.__d = void 0; a0.__e = void 0; a0.__ = void 0; }; q$1 = function q$1(a0, a1, a2) { return this.constructor(a0, a2); }; const useReducer = function y(a0, a1, a2) { const r6 = +env840[42]; env840[42] = r6 + 1; if (c840_49.__h) { c840_49.__h(env840[43], r6, env840[46] || 2); } env840[46] = 0; let __H = env840[43].__H; if (!__H) { const r15 = env840[43]; const __H2 = { __: [], __h: [] }; r15.__H = __H2; __H = __H2; } if (r6 >= __H.__.length) { __H.__.push({ __V: c840_48 }); } let c12643_1, shouldComponentUpdate, componentWillUpdate; const r27 = __H.__[r6]; let c12643_0 = r27; r27.t = a0; if (!r27.__c) { r27.__ = [a2 ? a2(a1) : typeof a1 === "function" ? a1(void 0) : a1, function(a0) { const r7 = c12643_0.__N ? c12643_0.__N[0] : c12643_0.__[0]; const r9 = c12643_0.t(r7, a0); if (r7 !== r9) { c12643_0.__N = [r9, c12643_0.__[1]]; c12643_0.__c.setState({}); } }]; r27.__c = env840[43]; if (!env840[43].u) { const f = function f(a0, a1, a2) { if (c12643_0.__c.__H) { const r11 = c12643_0.__c.__H.__.filter(function(item) { return !!item.__c; }); if (r11.every(function(item) { return !item.__N; })) { return shouldComponentUpdate ? shouldComponentUpdate.call(this, a0, a1, a2) : !shouldComponentUpdate; } let c23994_0 = false; r11.forEach(function(item) { if (item.__N) { const r5 = item.__[0]; item.__ = item.__N; item.__N = void 0; if (r5 !== item.__[0]) { c23994_0 = true; } } }); const r30 = c23994_0 ? !c23994_0 : c12643_0.__c.props === a0; let r33 = !r30; if (!r30) { r33 = shouldComponentUpdate ? shouldComponentUpdate.call(this, a0, a1, a2) : !shouldComponentUpdate; } return r33; } return true; }; c12643_1 = f; env840[43].u = true; shouldComponentUpdate = env840[43].shouldComponentUpdate; componentWillUpdate = env840[43].componentWillUpdate; env840[43].componentWillUpdate = function(a0, a1, a2) { if (this.__e) { const r13 = shouldComponentUpdate; shouldComponentUpdate = void 0; c12643_1(a0, a1, a2); shouldComponentUpdate = r13; } if (componentWillUpdate) { const call = componentWillUpdate.call; componentWillUpdate.call(this, a0, a1, a2); } }; env840[43].shouldComponentUpdate = f; } } return r27.__N || r27.__; }; y = useReducer; const useLayoutEffect = function A(a0, a1) { const r6 = +env840[42]; env840[42] = r6 + 1; if (c840_49.__h) { c840_49.__h(env840[43], r6, env840[46] || 4); } env840[46] = 0; let __H = env840[43].__H; if (!__H) { const r7 = env840[43]; const __H3 = { __: [], __h: [] }; r7.__H = __H3; __H = __H3; } if (r6 >= __H.__.length) { __H.__.push({ __V: c840_48 }); } const r26 = __H.__[r6]; const __s = c840_49.__s; let r28 = !__s; if (!__s) { let env12644; const __H2 = r26.__H; const r30 = env12644 = {}; env12644[0] = __H2; r28 = (__H2 ? __H2.length !== a1.length : !__H2) || a1.some($mk67530(r30)); } if (r28) { r26.__ = a0; r26.i = a1; env840[43].__h.push(r26); } }; A = useLayoutEffect; const useMemo = function q(a0, a1) { let __V; const r3 = +env840[42]; env840[42] = r3 + 1; if (c840_49.__h) { c840_49.__h(env840[43], r3, env840[46] || 7); } env840[46] = 0; let __H = env840[43].__H; if (!__H) { const r14 = env840[43]; const __H3 = { __: [], __h: [] }; r14.__H = __H3; __H = __H3; } if (r3 >= __H.__.length) { __H.__.push({ __V: c840_48 }); } let env12645; const r26 = __H.__[r3]; const __H2 = r26.__H; const r28 = env12645 = {}; env12645[0] = __H2; if ((__H2 ? __H2.length !== a1.length : !__H2) || a1.some($mk67530(r28))) { r26.__V = a0(); r26.i = a1; r26.__h = a0; __V = r26.__V; } else { __V = r26.__; } return __V; }; q = useMemo; j = function j() { let r6 = c840_47.shift(); while (r6) { const __P = r6.__P; const r7 = r6; if (__P && r7.__H) { try { r7.__H.__h.forEach(z); r7.__H.__h.forEach(B); r7.__H.__h = []; } catch (r19) { r7.__H.__h = []; c840_49.__e(r19, r7.__v); } } r6 = c840_47.shift(); } }; w = function w(c12647_0) { let c12647_1, c12647_2; const r = function r() { clearTimeout(c12647_2); if (c840_60) { cancelAnimationFrame(c12647_1); } setTimeout(c12647_0); }; c12647_2 = setTimeout(r, 100); if (c840_60) { c12647_1 = requestAnimationFrame(r); } }; z = function z(a0) { const r1 = env840[43]; const __c3 = a0.__c; if (typeof __c3 === "function") { a0.__c = void 0; __c3(); } env840[43] = r1; }; B = function B(a0) { const r1 = env840[43]; a0.__c = a0.__(); env840[43] = r1; }; D = function D(a0, a1) { return typeof a1 === "function" ? a1(a0) : a1; }; DialogHeader = function DialogHeader({ options: options3 }) { const dangerouslySetInnerHTML2 = q(() => { let env23995; let env23996; const elementNS = document2.createElementNS("http://www.w3.org/2000/svg", "svg"); const r11 = env23995 = {}; env23995[0] = elementNS; Object.entries({ width: "32", height: "30", viewBox: "0 0 72 66", fill: "inherit" }).forEach($mk67517(r11)); const elementNS2 = document2.createElementNS("http://www.w3.org/2000/svg", "path"); const r19 = env23996 = {}; env23996[0] = elementNS2; Object.entries({ transform: "translate(11, 11)", d: "M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z" }).forEach($mk67517(r19)); elementNS.appendChild(elementNS2); return { __html: elementNS.outerHTML }; }, []); return y$1("h2", { class: "dialog__header" }, y$1("span", { class: "dialog__title" }, options3.formTitle), options3.showBranding ? y$1("a", { class: "brand-link", target: "_blank", href: "https://sentry.io/welcome/", title: "Powered by Sentry", rel: "noopener noreferrer", dangerouslySetInnerHTML: dangerouslySetInnerHTML2 }) : null); }; retrieveStringValue = function retrieveStringValue(a0, a1) { const r3 = a0.get(a1); return typeof r3 === "string" ? r3.trim() : ""; }; Form = function Form(a0) { let env12648 = { $parent: env840 }; const { options: options3, defaultEmail, defaultName, onFormClose: onFormClose2 } = a0; env12648[0] = a0.onSubmit; const onSubmitSuccess2 = a0.onSubmitSuccess; env12648[1] = onSubmitSuccess2; const onSubmitError2 = a0.onSubmitError; env12648[2] = onSubmitError2; const { showEmail, showName } = a0; let screenshotInput = a0.screenshotInput; env12648[3] = screenshotInput; env12648[4] = void 0; env12648[5] = void 0; env12648[6] = void 0; env12648[7] = void 0; env12648[8] = void 0; env12648[9] = void 0; env12648[10] = void 0; env12648[11] = void 0; env12648[12] = void 0; env12648[13] = void 0; env12648[14] = void 0; env12648[15] = void 0; env12648[4] = options3.tags; let addScreenshotButtonLabel = options3.addScreenshotButtonLabel; const { removeScreenshotButtonLabel, cancelButtonLabel, emailLabel } = options3; env12648[5] = emailLabel; const { emailPlaceholder, isEmailRequired } = options3; env12648[6] = isEmailRequired; const isNameRequired = options3.isNameRequired; env12648[7] = isNameRequired; const messageLabel = options3.messageLabel; env12648[8] = messageLabel; const { messagePlaceholder, nameLabel } = options3; env12648[9] = nameLabel; const { namePlaceholder, submitButtonLabel, isRequiredLabel } = options3; env840[46] = 1; const r50 = _slicedToArray(y(D, false), 2); const disabled = r50[0]; env12648[10] = r50[1]; env840[46] = 1; const r53 = _slicedToArray(y(D, null), 2); const r36 = r53[0]; env12648[11] = r53[1]; env840[46] = 1; const r56 = _slicedToArray(y(D, false), 2); const r23 = r56[0]; env12648[12] = r23; env12648[13] = r56[1]; const input2 = screenshotInput?.input; let env12649; let env12650; let c12651_0; env840[46] = 1; const r60 = _slicedToArray(y(D, null), 2); const r61 = r60[0]; env12648[14] = r60[1]; const r63 = env12649 = {}; env12649[0] = (a0) => { (0, env12648[14])(a0); (0, env12648[13])(false); }; env840[46] = 8; const onError2 = q($mk67528(r63), []); const r69 = [emailLabel, isEmailRequired, isNameRequired, messageLabel, nameLabel]; const r70 = env12650 = {}; env12650[0] = (a0) => { const r8 = env12648[5]; let r7 = env12648[6]; let r9 = env12648[7]; const r6 = env12648[8]; const r10 = env12648[9]; if (r9) { r9 = !a0.name; } const r11 = []; if (r9) { r11.push(r10); } if (r7) { r7 = !a0.email; } if (r7) { r11.push(r8); } if (!a0.message) { r11.push(r6); } if (r11.length > 0) { env12648[11](`Please enter in the following required fields: ${r11.join(", ")}`); } else { (0, env12648[11])(null); } return r11.length === 0; }; env840[46] = 8; env12648[15] = q($mk67528(r70), r69); c12651_0 = void 0; c12651_0 = async (c28720_0) => { let c28720_3; let c28720_4 = 0; let c31179_0, c31179_1, c31179_2, c31179_3, c31179_4; L23: { L19: { try { c31179_0 = void 0; c31179_1 = void 0; c31179_2 = void 0; c31179_3 = void 0; (0, env12648[10])(true); c28720_4 = 1; c28720_0.preventDefault(); if (c28720_0.target instanceof HTMLFormElement) { c31179_0 = new FormData(c28720_0.target); const r47 = env12648[3]; c31179_1 = await (r47 ? env12648[12] ? r47.value() : void 0 : void 0); c31179_2 = { name: retrieveStringValue(c31179_0, "name"), email: retrieveStringValue(c31179_0, "email"), message: retrieveStringValue(c31179_0, "message"), attachments: c31179_1 ? [c31179_1] : void 0 }; if ((0, env12648[15])(c31179_2)) { c28720_4 = 2; c31179_3 = await (0, env12648[0])({ name: c31179_2.name, email: c31179_2.email, message: c31179_2.message, source: "widget", tags: env12648[4] }, { attachments: c31179_2.attachments }); (0, env12648[1])(c31179_2, c31179_3); c28720_4 = 1; c28720_4 = 0; (0, env12648[10])(false); break L23; } c28720_4 = 0; (0, env12648[10])(false); break L19; } c28720_4 = 0; (0, env12648[10])(false); } catch ($e) { const r35 = $e; let r7 = r35; c28720_3 = r35; let r36 = c28720_4; if (r36 !== 0) { while (true) { if (r36 === 1) { try { const r190 = c28720_3; c28720_4 = 0; (0, env12648[10])(false); throw r190; } catch (r188) { r7 = r188; c28720_3 = r188; r36 = c28720_4; if (r36 === 0) { break; } } } else { try { const r160 = c28720_3; c28720_4 = 1; c31179_4 = r160; if (c840_8) { debug.error(c31179_4); } (0, env12648[11])(c31179_4); (0, env12648[2])(c31179_4); c28720_4 = 0; (0, env12648[10])(false); break L23; } catch (r157) { r7 = r157; c28720_3 = r157; r36 = c28720_4; if (r36 === 0) { break; } } } } } throw r7; } return void 0; } return void 0; } }; if (screenshotInput) { screenshotInput = r23; } let env12652; const r77 = function(a0) { return c12651_0.apply(this, arguments); }; const r78 = [screenshotInput, onSubmitSuccess2, onSubmitError2]; const r79 = env12652 = {}; env12652[0] = r77; env840[46] = 8; const onSubmit = q($mk67528(r79), r78); const r83 = { class: "form", onSubmit }; const r84 = input2 ? r23 ? y$1(input2, { onError: onError2 }) : null : null; const r86 = { class: "form__right", "data-sentry-feedback": true, disabled }; const r87 = r36 ? y$1("div", { class: "form__error-container" }, r36) : null; const r92 = showName ? y$1("label", { for: "name", class: "form__label" }, y$1(LabelText, { label: nameLabel, isRequiredLabel, isRequired: isNameRequired }), y$1("input", { class: "form__input", defaultValue: defaultName, id: "name", name: "name", placeholder: namePlaceholder, required: isNameRequired, type: "text" })) : y$1("input", { "aria-hidden": true, value: defaultName, name: "name", type: "hidden" }); const r99 = showEmail ? y$1("label", { for: "email", class: "form__label" }, y$1(LabelText, { label: emailLabel, isRequiredLabel, isRequired: isEmailRequired }), y$1("input", { class: "form__input", defaultValue: defaultEmail, id: "email", name: "email", placeholder: emailPlaceholder, required: isEmailRequired, type: "email" })) : y$1("input", { "aria-hidden": true, value: defaultEmail, name: "email", type: "hidden" }); const r119 = y$1("label", { for: "message", class: "form__label" }, y$1(LabelText, { label: messageLabel, isRequiredLabel, isRequired: true }), y$1("textarea", { autoFocus: true, class: "form__input form__input--textarea", id: "message", name: "message", placeholder: messagePlaceholder, required: true, rows: 5 })); let r120 = null; if (input2) { const r122 = { class: "btn btn--default", disabled, type: "button", onClick: () => { (0, env12648[14])(null); (0, env12648[13])((a0) => !a0); } }; if (r23) { addScreenshotButtonLabel = removeScreenshotButtonLabel; } r120 = y$1("label", { for: "screenshot", class: "form__label" }, y$1("button", r122, addScreenshotButtonLabel), r61 ? y$1("div", { class: "form__error-container" }, r61.message) : null); } return y$1("form", r83, r84, y$1("fieldset", r86, y$1("div", { class: "form__top" }, r87, r92, r99, r119, r120), y$1("div", { class: "btn-group" }, y$1("button", { class: "btn btn--primary", disabled, type: "submit" }, submitButtonLabel), y$1("button", { class: "btn btn--default", disabled, type: "button", onClick: onFormClose2 }, cancelButtonLabel)))); }; LabelText = function LabelText(a0) { const label = a0.label; let isRequired = a0.isRequired; const isRequiredLabel = a0.isRequiredLabel; if (isRequired) { isRequired = y$1("span", { class: "form__label__text--required" }, isRequiredLabel); } return y$1("span", { class: "form__label__text" }, label, isRequired); }; Dialog = function Dialog({ open: open2, onFormSubmitted: onFormSubmitted2, ...rest }) { let c12653_2, c12653_3; let env12654; let env12655; let c12653_1 = rest; c12653_2 = void 0; c12653_3 = void 0; const options3 = rest.options; const dangerouslySetInnerHTML2 = q(() => { let env23997; let env23998; let env23999; let env24000; let env24001; let env24002; const elementNS = GLOBAL_OBJ.document.createElementNS("http://www.w3.org/2000/svg", "svg"); const r19 = env23997 = {}; env23997[0] = elementNS; Object.entries({ width: "16", height: "17", viewBox: "0 0 16 17", fill: "inherit" }).forEach($mk67517(r19)); const elementNS2 = GLOBAL_OBJ.document.createElementNS("http://www.w3.org/2000/svg", "g"); const r32 = env23998 = {}; env23998[0] = elementNS2; Object.entries({ clipPath: "url(#clip0_57_156)" }).forEach($mk67517(r32)); const elementNS3 = GLOBAL_OBJ.document.createElementNS("http://www.w3.org/2000/svg", "path"); const r46 = env23999 = {}; env23999[0] = elementNS3; Object.entries({ "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z" }).forEach($mk67517(r46)); const elementNS4 = GLOBAL_OBJ.document.createElementNS("http://www.w3.org/2000/svg", "path"); const r58 = env24000 = {}; env24000[0] = elementNS4; Object.entries({ d: "M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z" }).forEach($mk67517(r58)); elementNS.appendChild(elementNS2).append(elementNS4, elementNS3); const elementNS5 = GLOBAL_OBJ.document.createElementNS("http://www.w3.org/2000/svg", "defs"); const elementNS6 = GLOBAL_OBJ.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"); const r84 = env24001 = {}; env24001[0] = elementNS6; Object.entries({ id: "clip0_57_156" }).forEach($mk67517(r84)); const elementNS7 = GLOBAL_OBJ.document.createElementNS("http://www.w3.org/2000/svg", "rect"); const r99 = env24002 = {}; env24002[0] = elementNS7; Object.entries({ width: "16", height: "16", fill: "white", transform: "translate(0 0.5)" }).forEach($mk67517(r99)); elementNS6.appendChild(elementNS7); elementNS5.appendChild(elementNS6); elementNS.appendChild(elementNS5).appendChild(elementNS6).appendChild(elementNS7); return { __html: elementNS.outerHTML }; }, []); env840[46] = 1; let r10; [r10, c12653_3] = y(D, null); c12653_2 = r10; const r28 = [r10]; const r29 = env12654 = {}; env12654[0] = () => { if (c12653_2) { clearTimeout(c12653_2); c12653_3(null); } onFormSubmitted2(); }; env840[46] = 8; const onClick2 = q($mk67528(r29), r28); const r33 = [onFormSubmitted2]; const r34 = env12655 = {}; env12655[0] = (a0, a1) => { c12653_1.onSubmitSuccess(a0, a1); c12653_3(setTimeout(() => { onFormSubmitted2(); c12653_3(null); }, 5000)); }; env840[46] = 8; const onSubmitSuccess2 = q($mk67528(r34), r33); return y$1(g$1, null, r10 ? y$1("div", { class: "success__position", onClick: onClick2 }, y$1("div", { class: "success__content" }, options3.successMessageText, y$1("span", { class: "success__icon", dangerouslySetInnerHTML: dangerouslySetInnerHTML2 }))) : y$1("dialog", { class: "dialog", onClick: options3.onFormClose, open: open2 }, y$1("div", { class: "dialog__position" }, y$1("div", { class: "dialog__content", onClick: (a0) => { a0.stopPropagation(); } }, y$1(DialogHeader, { options: options3 }), y$1(Form, { ...rest, onSubmitSuccess: onSubmitSuccess2 }))))); }; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); document2 = GLOBAL_OBJ.document; navigator2 = GLOBAL_OBJ.navigator; c840_6 = "Report a Bug"; sendFeedback = function sendFeedback(a0, r5 = { includeReplay: true }) { let client, c12656_1; client = void 0; c12656_1 = void 0; if (a0.message) { client = getClient(); if (client) { if (a0.tags && Object.keys(a0.tags).length) { getCurrentScope().setTags(a0.tags); } c12656_1 = captureFeedback({ source: "api", url: getLocationHref(), ...a0 }, r5); return new Promise((c24007_0, c24007_1) => { let c24007_3; let c24007_2 = setTimeout(() => c24007_1("Unable to determine if Feedback was correctly sent."), 30000); c24007_3 = client.on("afterSendEvent", ({ event_id }, a1) => { if (event_id === c12656_1) { clearTimeout(c24007_2); c24007_3(); return a1?.statusCode && (a1.statusCode >= 200 && a1.statusCode < 300) ? c24007_0(c12656_1) : c24007_1(a1?.statusCode === 403 ? "Unable to send feedback. This could be because this domain is not in your list of allowed domains." : "Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker."); } }); }); } throw new Error("No client setup, cannot send feedback."); } throw new Error("Unable to submit feedback with empty message"); }; const __SENTRY_DEBUG__2 = globalThis.__SENTRY_DEBUG__; c840_8 = typeof __SENTRY_DEBUG__2 !== "undefined" ? __SENTRY_DEBUG__ : typeof __SENTRY_DEBUG__2 === "undefined"; c840_10 = { foreground: "#2b2233", background: "#ffffff", accentForeground: "white", accentBackground: "rgba(88, 74, 192, 1)", successColor: "#268d75", errorColor: "#df3338", border: "1.5px solid rgba(41, 35, 47, 0.13)", boxShadow: "0px 4px 24px 0px rgba(43, 34, 51, 0.12)", outline: "1px auto var(--accent-background)", interactiveFilter: "brightness(95%)" }; c840_11 = { foreground: "#ebe6ef", background: "#29232f", accentForeground: "white", accentBackground: "rgba(88, 74, 192, 1)", successColor: "#2da98c", errorColor: "#f55459", border: "1.5px solid rgba(235, 230, 239, 0.15)", boxShadow: "0px 4px 24px 0px rgba(43, 34, 51, 0.12)", outline: "1px auto var(--accent-background)", interactiveFilter: "brightness(150%)" }; c840_19 = {}; c840_20 = []; c840_21 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i; isArray = Array.isArray; slice = c840_20.slice; c840_13 = { __e: function __e(a0, a1, a2, a3) { let r7, r8; let r5 = void 0; let __3 = a1.__; let r14 = a0; let r15 = a0; while (__3) { L16: { const __c3 = __3.__c; r7 = __3; const r10 = r14; r8 = r10; if (__c3) { const __4 = __c3.__; r8 = r10; if (!__4) { try { let constructor = __c3.constructor; if (constructor) { constructor = constructor.getDerivedStateFromError != null; } if (constructor) { __c3.setState(constructor.getDerivedStateFromError(r10)); r5 = __c3.__d; } if (__c3.componentDidCatch != null) { __c3.componentDidCatch(r10, a3 ? a3 : {}); r5 = __c3.__d; } if (!r5) { r8 = r10; break L16; } __c3.__E = __c3; } catch ($e) { r8 = $e; break L16; } return __c3; } } } __3 = r7.__; r14 = r8; r15 = r14; } throw r15; } }; env840[14] = 0; b$1.prototype.setState = function(a0, a1) { let __s; if (this.__s != null && this.__s !== this.state) { __s = this.__s; } else { __s = {}; const state5 = this.state; for (const key in state5) { __s[key] = state5[key]; } this.__s = __s; } let r18 = a0; if (typeof a0 === "function") { const r19 = {}; for (const key2 in __s) { r19[key2] = __s[key2]; } r18 = a0(r19, this.props); } if (r18) { for (const key3 in r18) { __s[key3] = r18[key3]; } } if (r18 != null && this.__v) { if (a1) { this._sb.push(a1); } const __d2 = this.__d; let r39 = !__d2; if (!__d2) { this.__d = true; r39 = true; } if (r39) { r39 = c840_15.push(this); } if (r39) { const r46 = +C$1.__r; C$1.__r = r46 + 1; r39 = !r46; } if (!r39) { r39 = env840[16] !== c840_13.debounceRendering; } if (r39) { let debounceRendering = c840_13.debounceRendering; env840[16] = debounceRendering; if (!debounceRendering) { debounceRendering = c840_17; } debounceRendering(C$1); } } }; b$1.prototype.forceUpdate = function(a0) { if (this.__v) { this.__e = true; if (a0) { this.__h.push(a0); } const __d2 = this.__d; let r9 = !__d2; if (!__d2) { this.__d = true; r9 = true; } if (r9) { r9 = c840_15.push(this); } if (r9) { const r14 = +C$1.__r; C$1.__r = r14 + 1; r9 = !r14; } if (!r9) { r9 = env840[16] !== c840_13.debounceRendering; } if (r9) { let debounceRendering = c840_13.debounceRendering; env840[16] = debounceRendering; if (!debounceRendering) { debounceRendering = c840_17; } debounceRendering(C$1); } } }; b$1.prototype.render = g$1; c840_15 = []; const r80 = typeof globalThis.Promise === "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout; const useState = function(a0) { env840[46] = 1; return y(D, a0); }; const x = function x(a0, a1) { let env12646; const r2 = env12646 = {}; env12646[0] = a0; env840[46] = 8; return q($mk67528(r2), a1); }; c840_17 = r80; H = function H(a0, a1) { return a0.__v.__b - a1.__v.__b; }; C$1.__r = 0; env840[46] = 0; c840_47 = []; c840_48 = []; c840_49 = c840_13; __b = c840_13.__b; __r2 = c840_13.__r; diffed = c840_13.diffed; __c = c840_13.__c; unmount = c840_13.unmount; __ = c840_13.__; c840_13.__b = function(a0) { env840[43] = null; if (__b) { __b(a0); } }; c840_13.__ = function(a0, a1) { if (a1.__k && a1.__k.__m) { a0.__m = a1.__k.__m; } if (__) { __(a0, a1); } }; c840_13.__r = function(a0) { if (__r2) { __r2(a0); } env840[42] = 0; const __c3 = a0.__c; env840[43] = __c3; const __H = __c3.__H; if (__H) { if (env840[44] === env840[43]) { __H.__h = []; env840[43].__h = []; __H.__.forEach(function(item) { if (item.__N) { item.__ = item.__N; } item.__V = c840_48; item.i = void 0; item.__N = void 0; }); } else { __H.__h.forEach(z); __H.__h.forEach(B); __H.__h = []; env840[42] = 0; } } env840[44] = env840[43]; }; c840_13.diffed = function(a0) { if (diffed) { diffed(a0); } const __c3 = a0.__c; if (__c3 && __c3.__H) { if (__c3.__H.__h.length && !(c840_47.push(__c3) !== 1 && env840[45] === c840_49.requestAnimationFrame)) { let requestAnimationFrame2 = c840_49.requestAnimationFrame; env840[45] = requestAnimationFrame2; if (!requestAnimationFrame2) { requestAnimationFrame2 = w; } requestAnimationFrame2(j); } __c3.__H.__.forEach(function(item) { if (item.i) { item.__H = item.i; } const __V = item.__V; if (__V !== c840_48) { item.__ = item.__V; } item.i = void 0; item.__V = c840_48; }); } env840[43] = null; env840[44] = null; }; c840_13.__c = function(a0, a1) { let c12657_0 = a1; a1.some(function(a0) { try { a0.__h.forEach(z); a0.__h = a0.__h.filter(function(item) { const __3 = item.__; let r0 = !__3; if (__3) { const r6 = env840[43]; item.__c = item.__(); env840[43] = r6; r0 = void 0; } return r0; }); } catch (r11) { c12657_0.some(function(item) { if (item.__h) { item.__h = []; } }); c12657_0 = []; c840_49.__e(r11, a0.__v); } }); if (__c) { __c(a0, c12657_0); } }; c840_13.unmount = function(a0) { if (unmount) { unmount(a0); } const __c3 = a0.__c; if (__c3 && __c3.__H) { let c12658_0; __c3.__H.__.forEach(function(item) { try { z(item); } catch ($e) { c12658_0 = $e; } }); __c3.__H = void 0; if (c12658_0) { c840_49.__e(c12658_0, __c3.__v); } } }; c840_60 = typeof globalThis.requestAnimationFrame === "function"; const r106 = Object; const r109 = { __proto__: null, useCallback: x, useContext: null, useDebugValue: null, useEffect: null, useErrorBoundary: null, useId: null, useImperativeHandle: null, useLayoutEffect: null, useMemo: null, useReducer: null, useRef: null, useState: null }; r109.useContext = function P(a0) { let value3; const r12 = env840[43].context[a0.__c]; const r6 = +env840[42]; env840[42] = r6 + 1; if (c840_49.__h) { c840_49.__h(env840[43], r6, env840[46] || 9); } env840[46] = 0; let __H = env840[43].__H; if (!__H) { const r20 = env840[43]; const __H2 = { __: [], __h: [] }; r20.__H = __H2; __H = __H2; } if (r6 >= __H.__.length) { __H.__.push({ __V: c840_48 }); } const r30 = __H.__[r6]; r30.c = a0; if (r12) { if (r30.__ == null) { r30.__ = true; r12.sub(env840[43]); } value3 = r12.props.value; } else { value3 = a0.__; } return value3; }; r109.useDebugValue = function V(a0, a1) { if (c840_49.useDebugValue) { c840_49.useDebugValue(a1 ? a1(a0) : a0); } }; r109.useEffect = function _(a0, a1) { const r6 = +env840[42]; env840[42] = r6 + 1; if (c840_49.__h) { c840_49.__h(env840[43], r6, env840[46] || 3); } env840[46] = 0; let __H = env840[43].__H; if (!__H) { const r7 = env840[43]; const __H3 = { __: [], __h: [] }; r7.__H = __H3; __H = __H3; } if (r6 >= __H.__.length) { __H.__.push({ __V: c840_48 }); } const r26 = __H.__[r6]; const __s = c840_49.__s; let r28 = !__s; if (!__s) { let env12659; const __H2 = r26.__H; const r30 = env12659 = {}; env12659[0] = __H2; r28 = (__H2 ? __H2.length !== a1.length : !__H2) || a1.some($mk67530(r30)); } if (r28) { r26.__ = a0; r26.i = a1; env840[43].__H.__h.push(r26); } }; r109.useErrorBoundary = function b(a0) { const r5 = +env840[42]; env840[42] = r5 + 1; if (c840_49.__h) { c840_49.__h(env840[43], r5, env840[46] || 10); } env840[46] = 0; let __H = env840[43].__H; if (!__H) { const r15 = env840[43]; const __H2 = { __: [], __h: [] }; r15.__H = __H2; __H = __H2; } if (r5 >= __H.__.length) { __H.__.push({ __V: c840_48 }); } const r27 = __H.__[r5]; let c12660_0 = r27; env840[46] = 1; const r32 = y(D, void 0); let c12660_1 = r32; r27.__ = a0; if (!env840[43].componentDidCatch) { env840[43].componentDidCatch = function(a0, a1) { if (c12660_0.__) { c12660_0.__(a0, a1); } c12660_1[1](a0); }; } return [r32[0], function() { c12660_1[1](void 0); }]; }; r109.useId = function g() { let __5; const r4 = +env840[42]; env840[42] = r4 + 1; if (c840_49.__h) { c840_49.__h(env840[43], r4, env840[46] || 11); } env840[46] = 0; let __H = env840[43].__H; if (!__H) { const r15 = env840[43]; const __H2 = { __: [], __h: [] }; r15.__H = __H2; __H = __H2; } if (r4 >= __H.__.length) { __H.__.push({ __V: c840_48 }); } const r25 = __H.__[r4]; if (!r25.__) { const __v = env840[43].__v; let r30 = __v; if (__v !== null) { const __m = __v.__m; r30 = __v; if (!__m) { const __3 = __v.__; let r33 = __v; r30 = r33; if (__3 !== null) { do { const __4 = r33.__; r30 = __4; if (__4 === null) { break; } const __m2 = __4.__m; r30 = __4; if (__m2) { break; } __5 = __4.__; r33 = __4; r30 = r33; } while (__5 !== null); } } } let __m3 = r30.__m; if (!__m3) { const __m4 = [0, 0]; r30.__m = __m4; __m3 = __m4; } const r41 = "P" + __m3[0]; const r43 = +__m3[1]; __m3[1] = r43 + 1; r25.__ = r41 + "-" + r43; } return r25.__; }; r109.useImperativeHandle = function T(a0, c12661_1, a2) { env840[46] = 6; A(function() { let r1; if (typeof a0 === "function") { a0(c12661_1()); r1 = function() { return a0(null); }; } else { r1 = void 0; if (a0) { a0.current = c12661_1(); r1 = function() { a0.current = null; return null; }; } } return r1; }, a2 != null ? a2.concat(a0) : a2); }; r109.useLayoutEffect = useLayoutEffect; r109.useMemo = useMemo; r109.useReducer = useReducer; r109.useRef = function F(current) { env840[46] = 5; return q(function() { return { current }; }, []); }; r109.useState = useState; c840_65 = r106.defineProperty(r109, Symbol.toStringTag, { value: "Module" }); export const buildFeedbackIntegration = (a0) => { let env12663 = { $parent: env840 }; env12663[0] = a0.lazyLoadIntegration; env12663[1] = a0.getModalIntegration; env12663[2] = a0.getScreenshotIntegration; return function(r2 = {}) { const { id = "sentry-feedback", autoInject = true, showBranding = true, isEmailRequired = false, isNameRequired = false, showEmail = true, showName = true, enableScreenshot = true, useSentryUser: useSentryUser2 = { email: "email", name: "username" } } = r2; let env24008 = { $parent: env12663 }; const { tags, styleNonce } = r2; env24008[0] = styleNonce; const scriptNonce = r2.scriptNonce; env24008[1] = scriptNonce; const { colorScheme = "system", themeLight = {}, themeDark = {}, addScreenshotButtonLabel = "Add a screenshot", cancelButtonLabel = "Cancel", confirmButtonLabel = "Confirm", emailLabel = "Email", emailPlaceholder = "your.email@example.org", formTitle = "Report a Bug", isRequiredLabel = "(required)", messageLabel = "Description", messagePlaceholder = "What's the bug? What did you expect?", nameLabel = "Name", namePlaceholder = "Your Name", removeScreenshotButtonLabel = "Remove screenshot", submitButtonLabel = "Send Bug Report", successMessageText = "Thank you for your report!", triggerLabel = c840_6, triggerAriaLabel = "", highlightToolText = "Highlight", hideToolText = "Hide", removeHighlightText = "Remove" } = r2; let c24009_0; const { onFormOpen: onFormOpen2, onFormClose: onFormClose2, onSubmitSuccess: onSubmitSuccess2, onSubmitError: onSubmitError2, onFormSubmitted: onFormSubmitted3 } = r2; env24008[6] = void 0; env24008[7] = void 0; env24008[8] = void 0; env24008[2] = { id, autoInject, showBranding, isEmailRequired, isNameRequired, showEmail, showName, enableScreenshot, useSentryUser: useSentryUser2, tags, styleNonce, scriptNonce, colorScheme, themeDark, themeLight, triggerLabel, triggerAriaLabel, cancelButtonLabel, submitButtonLabel, confirmButtonLabel, formTitle, emailLabel, emailPlaceholder, messageLabel, messagePlaceholder, nameLabel, namePlaceholder, successMessageText, isRequiredLabel, addScreenshotButtonLabel, removeScreenshotButtonLabel, highlightToolText, hideToolText, removeHighlightText, onFormClose: onFormClose2, onFormOpen: onFormOpen2, onSubmitError: onSubmitError2, onSubmitSuccess: onSubmitSuccess2, onFormSubmitted: onFormSubmitted3 }; env24008[3] = null; env24008[4] = []; env24008[5] = (a0) => { if (!env24008[3]) { const element6 = document2.createElement("div"); element6.id = String(a0.id); document2.body.appendChild(element6); const r65 = element6.attachShadow({ mode: "open" }); env24008[3] = r65; const { colorScheme, themeDark, themeLight, styleNonce } = a0; const element7 = document2.createElement("style"); let r13 = ""; const r12 = colorScheme !== "system" ? `color-scheme: only ${colorScheme};` : ""; const r74 = colorScheme === "dark" ? { ...c840_11, ...themeDark } : { ...c840_10, ...themeLight }; const { foreground, background } = r74; const r90 = ` --foreground: ${foreground}; --background: ${background}; --accent-foreground: ${r74.accentForeground}; --accent-background: ${r74.accentBackground}; --success-color: ${r74.successColor}; --error-color: ${r74.errorColor}; --border: ${r74.border}; --box-shadow: ${r74.boxShadow}; --outline: ${r74.outline}; --interactive-filter: ${r74.interactiveFilter}; `; if (colorScheme === "system") { const r91 = { ...c840_11, ...themeDark }; const { foreground: foreground2, background: background2 } = r91; r13 = ` @media (prefers-color-scheme: dark) { :host { color-scheme: only dark; ${` --foreground: ${foreground2}; --background: ${background2}; --accent-foreground: ${r91.accentForeground}; --accent-background: ${r91.accentBackground}; --success-color: ${r91.successColor}; --error-color: ${r91.errorColor}; --border: ${r91.border}; --box-shadow: ${r91.boxShadow}; --outline: ${r91.outline}; --interactive-filter: ${r91.interactiveFilter}; `} } }`; } element7.textContent = ` :host { --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif; --font-size: 14px; --z-index: 100000; --page-margin: 16px; --inset: auto 0 0 auto; --actor-inset: var(--inset); font-family: var(--font-family); font-size: var(--font-size); ${r12} ${r90} } ${r13} `; if (styleNonce) { element7.setAttribute("nonce", styleNonce); } r65.appendChild(element7); } return env24008[3]; }; c24009_0 = void 0; c24009_0 = async (c31184_0) => { let r82, r141, r219; let c31184_1, c31184_2; let c31184_3 = 0; const r14 = void 0; const r13 = env840; let r10 = "[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."; let r9 = "[Feedback] Missing feedback screenshot integration. Proceeding without screenshots."; L33: { L22: { try { let env31868; c31184_2 = r14; const r21 = env31868 = { $parent: r13 }; c31184_1 = r21; env31868[0] = c31184_0; env31868[1] = void 0; env31868[2] = void 0; env31868[3] = void 0; env31868[4] = void 0; env31868[5] = void 0; const r40 = c31184_0.enableScreenshot && (function isScreenshotSupported() { const r5 = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i; return !(r5.test(navigator2.userAgent) || /Macintosh/i.test(navigator2.userAgent) && navigator2.maxTouchPoints && navigator2.maxTouchPoints > 1 || !isSecureContext); })(); L13: { env31868[3] = r40; c31184_3 = 1; const r42 = env12663[1]; if (r42) { env31868[1] = r42()(); addIntegration(env31868[1]); c31184_3 = 2; const r155 = env31868[3]; let r156 = void 0; if (r155) { const r161 = env12663[2]; if (!r161) { const r172 = await (0, env12663[0])("feedbackScreenshotIntegration", env24008[1]); r10 = "[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."; r9 = "[Feedback] Missing feedback screenshot integration. Proceeding without screenshots."; r82 = r172; break L13; } r156 = r161(); } env31868[4] = r156; if (env31868[4]) { env31868[2] = (0, env31868[4])(); addIntegration(env31868[2]); } c31184_3 = 0; const r200 = c31184_1; env31868[5] = env31868[1].createDialog({ options: { ...env31868[0], onFormClose: $mk118629(r200), onFormSubmitted: $mk118630(r200) }, screenshotIntegration: env31868[2], sendFeedback, shadow: (0, env24008[5])(env31868[0]) }); r219 = env31868[5]; break L33; } const r52 = await (0, env12663[0])("feedbackModalIntegration", env24008[1]); r10 = "[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."; r9 = "[Feedback] Missing feedback screenshot integration. Proceeding without screenshots."; env31868[1] = r52(); addIntegration(env31868[1]); c31184_3 = 2; const r81 = env31868[3]; r82 = void 0; if (r81) { const r87 = env12663[2]; if (r87) { r82 = r87(); } else { const r98 = await (0, env12663[0])("feedbackScreenshotIntegration", env24008[1]); r10 = "[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."; r9 = "[Feedback] Missing feedback screenshot integration. Proceeding without screenshots."; r82 = r98; } } } env31868[4] = r82; if (env31868[4]) { env31868[2] = (0, env31868[4])(); addIntegration(env31868[2]); } c31184_3 = 0; const r126 = c31184_1; env31868[5] = env31868[1].createDialog({ options: { ...env31868[0], onFormClose: $mk118629(r126), onFormSubmitted: $mk118630(r126) }, screenshotIntegration: env31868[2], sendFeedback, shadow: (0, env24008[5])(env31868[0]) }); r141 = env31868[5]; } catch ($e) { let r38 = $e; let r20 = c31184_3; if (r20 !== 0) { while (true) { if (r20 === 1) { try { c31184_3 = 0; if (c840_8) { debug.error(r10); } throw new Error("[Feedback] Missing feedback modal integration!"); } catch ($e) { r38 = $e; r20 = c31184_3; if (r20 === 0) { break; } } } else { try { c31184_3 = 0; if (c840_8) { debug.error(r9); } const r227 = c31184_1; env31868[5] = env31868[1].createDialog({ options: { ...env31868[0], onFormClose: $mk118629(r227), onFormSubmitted: $mk118630(r227) }, screenshotIntegration: env31868[2], sendFeedback, shadow: (0, env24008[5])(env31868[0]) }); r141 = env31868[5]; break L22; } catch ($e) { r38 = $e; r20 = c31184_3; if (r20 === 0) { break; } } } } } throw r38; } } return r141; } return r219; }; env24008[6] = function _loadAndRenderDialog(a0) { return c24009_0.apply(this, arguments); }; const _attachTo = function _attachTo(a0, r7 = {}) { let env28730; let env28731; const r4 = env28730 = { $parent: env24008 }; env28730[0] = void 0; env28730[1] = void 0; env28730[2] = void 0; env28730[3] = void 0; env28730[4] = void 0; const r9 = env24008[2]; const r6 = env28731 = {}; env28731[0] = r9; env28731[1] = r7; env28730[0] = { ...r9, ...r7, tags: { ...r9.tags, ...r7.tags }, onFormOpen: $mk67512(r6), onFormClose: $mk67513(r6), onSubmitSuccess: $mk67514(r6), onSubmitError: $mk67515(r6), onFormSubmitted: $mk67516(r6), themeDark: { ...r9.themeDark, ...r7.themeDark }, themeLight: { ...r9.themeLight, ...r7.themeLight } }; const r44 = typeof a0 === "string" ? document2.querySelector(a0) : typeof a0.addEventListener === "function" ? a0 : null; env28730[1] = r44; if (r44) { env28730[2] = null; let env28732 = { $parent: r4 }; env28732[0] = void 0; env28732[0] = async () => { let c31869_0; L13: { c31869_0 = env28732; if (env28730[2]) { env28730[2].appendToDom(); env28730[2].open(); break L13; } env28730[2] = await env24008[6]({ ...env28730[0], onFormSubmitted: () => { const r3 = env28730[2]; if (r3 != null) { r3.removeFromDom(); } const r5 = env28730[0]; const onFormSubmitted3 = r5.onFormSubmitted; if (onFormSubmitted3 != null) { onFormSubmitted3.call(r5); } } }); env28730[2].appendToDom(); env28730[2].open(); return void 0; } }; const handleClick = function handleClick() { return env28732[0].apply(this, arguments); }; env28730[3] = handleClick; r44.addEventListener("click", handleClick); const unsubscribe = () => { env24008[4] = env24008[4].filter((item) => item !== env28730[4]); const r7 = env28730[2]; if (r7 != null) { r7.removeFromDom(); } env28730[2] = null; env28730[1].removeEventListener("click", env28730[3]); }; env28730[4] = unsubscribe; env24008[4].push(unsubscribe); return unsubscribe; } if (c840_8) { debug.error("[Feedback] Unable to attach to target element"); } throw new Error("Unable to attach to target element"); }; env24008[7] = _attachTo; env24008[8] = function _createActor(r4 = {}) { let c28733_0; let env28734; c28733_0 = void 0; const r7 = env24008[2]; const r3 = env28734 = {}; env28734[0] = r7; env28734[1] = r4; const r6 = { ...r7, ...r4, tags: { ...r7.tags, ...r4.tags }, onFormOpen: $mk67512(r3), onFormClose: $mk67513(r3), onSubmitSuccess: $mk67514(r3), onSubmitError: $mk67515(r3), onFormSubmitted: $mk67516(r3), themeDark: { ...r7.themeDark, ...r4.themeDark }, themeLight: { ...r7.themeLight, ...r4.themeLight } }; const r52 = (0, env24008[5])(r6); const triggerLabel = r6.triggerLabel; let triggerAriaLabel = r6.triggerAriaLabel; const r54 = env24008[0]; let c28735_0 = r52; const element4 = document2.createElement("button"); element4.type = "button"; element4.className = "widget__actor"; element4.ariaHidden = "false"; if (!triggerAriaLabel) { triggerAriaLabel = triggerLabel; } if (!triggerAriaLabel) { triggerAriaLabel = c840_6; } let env28736; let env28737; let env28738; let env28739; let env28740; element4.ariaLabel = triggerAriaLabel; const appendChild = element4.appendChild; const elementNS = GLOBAL_OBJ.document.createElementNS("http://www.w3.org/2000/svg", "svg"); const r68 = env28736 = {}; env28736[0] = elementNS; Object.entries({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "var(--actor-color, var(--foreground))" }).forEach($mk67517(r68)); const elementNS2 = GLOBAL_OBJ.document.createElementNS("http://www.w3.org/2000/svg", "g"); const r81 = env28737 = {}; env28737[0] = elementNS2; Object.entries({ clipPath: "url(#clip0_57_80)" }).forEach($mk67517(r81)); const elementNS3 = GLOBAL_OBJ.document.createElementNS("http://www.w3.org/2000/svg", "path"); const r95 = env28738 = {}; env28738[0] = elementNS3; Object.entries({ "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z" }).forEach($mk67517(r95)); elementNS.appendChild(elementNS2).appendChild(elementNS3); const elementNS4 = GLOBAL_OBJ.document.createElementNS("http://www.w3.org/2000/svg", "defs"); const elementNS5 = GLOBAL_OBJ.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"); const r120 = env28739 = {}; env28739[0] = elementNS5; Object.entries({ id: "clip0_57_80" }).forEach($mk67517(r120)); const elementNS6 = GLOBAL_OBJ.document.createElementNS("http://www.w3.org/2000/svg", "rect"); const r135 = env28740 = {}; env28740[0] = elementNS6; Object.entries({ width: "20", height: "20", fill: "white" }).forEach($mk67517(r135)); elementNS5.appendChild(elementNS6); elementNS4.appendChild(elementNS5); elementNS.appendChild(elementNS4).appendChild(elementNS5).appendChild(elementNS6); appendChild.call(element4, elementNS); if (triggerLabel) { const element6 = document2.createElement("span"); element6.appendChild(document2.createTextNode(triggerLabel)); element4.appendChild(element6); } const element7 = document2.createElement("style"); element7.textContent = "\n.widget__actor {\n position: fixed;\n z-index: var(--z-index);\n margin: var(--page-margin);\n inset: var(--actor-inset);\n\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n line-height: 1.14em;\n text-decoration: none;\n\n background: var(--actor-background, var(--background));\n border-radius: var(--actor-border-radius, 1.7em/50%);\n border: var(--actor-border, var(--border));\n box-shadow: var(--actor-box-shadow, var(--box-shadow));\n color: var(--actor-color, var(--foreground));\n fill: var(--actor-color, var(--foreground));\n cursor: pointer;\n opacity: 1;\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden=\"true\"] {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n background: var(--actor-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n width: 1.14em;\n height: 1.14em;\n}\n\n@media (max-width: 600px) {\n .widget__actor span {\n display: none;\n }\n}\n"; if (r54) { element7.setAttribute("nonce", r54); } const element5 = element7; const r171 = { el: element4, appendToDom: () => { c28735_0.appendChild(element5); c28735_0.appendChild(element4); }, removeFromDom: () => { element4.remove(); element5.remove(); }, show: () => { element4.ariaHidden = "false"; }, hide: () => { element4.ariaHidden = "true"; } }; c28733_0 = r171; env24008[7](r171.el, { ...r6, onFormOpen: () => { c28733_0.hide(); }, onFormClose: () => { c28733_0.show(); }, onFormSubmitted: () => { c28733_0.show(); } }); return r171; }; return { name: "Feedback", setupOnce: () => { if (isBrowser() && env24008[2].autoInject) { if (document2.readyState === "loading") { document2.addEventListener("DOMContentLoaded", () => (0, env24008[8])().appendToDom()); } else { (0, env24008[8])().appendToDom(); } } }, attachTo: _attachTo, createWidget: function createWidget(r4 = {}) { let env28741; const r2 = env24008[8]; const r5 = env24008[2]; const r3 = env28741 = {}; env28741[0] = r5; env28741[1] = r4; const r39 = r2({ ...r5, ...r4, tags: { ...r5.tags, ...r4.tags }, onFormOpen: $mk67512(r3), onFormClose: $mk67513(r3), onSubmitSuccess: $mk67514(r3), onSubmitError: $mk67515(r3), onFormSubmitted: $mk67516(r3), themeDark: { ...r5.themeDark, ...r4.themeDark }, themeLight: { ...r5.themeLight, ...r4.themeLight } }); r39.appendToDom(); return r39; }, createForm: async function createForm(r2 = {}) { let c28742_0 = r2; return (0, env24008[6])(mergeOptions(env24008[2], c28742_0)); }, remove: () => { const r1 = env24008[3]; if (r1) { const parentElement = r1.parentElement; if (parentElement != null) { parentElement.remove(); } env24008[3] = null; } env24008[4].forEach((item) => item()); env24008[4] = []; } }; }; }; export const feedbackModalIntegration = () => ({ name: "FeedbackModal", setupOnce: () => {}, createDialog: ({ options, screenshotIntegration, sendFeedback: sendFeedback2, shadow: shadow2 }) => { let input, renderContent2; input = void 0; renderContent2 = void 0; const shadow = shadow2; const useSentryUser = options.useSentryUser; let r19 = getCurrentScope().getUser(); const user2 = getIsolationScope().getUser(); const user3 = getGlobalScope().getUser(); if (!(r19 && Object.keys(r19).length)) { r19 = user2 ? Object.keys(user2).length ? user2 : user3 : user3; } const user = r19; const element = document2.createElement("div"); const styleNonce = options.styleNonce; const element6 = document2.createElement("style"); element6.textContent = "\n:host {\n --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n position: fixed;\n z-index: var(--z-index);\n margin: 0;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n height: 100vh;\n width: 100vw;\n\n color: var(--dialog-color, var(--foreground));\n fill: var(--dialog-color, var(--foreground));\n line-height: 1.75em;\n\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n inset: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n position: fixed;\n z-index: var(--z-index);\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n display: flex;\n max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n .dialog__position {\n inset: var(--page-margin);\n padding: 0;\n }\n}\n\n.dialog__position:has(.editor) {\n inset: var(--page-margin);\n padding: 0;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: var(--dialog-padding, 24px);\n max-width: 100%;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n\n background: var(--dialog-background, var(--background));\n border-radius: var(--dialog-border-radius, 20px);\n border: var(--dialog-border, var(--border));\n box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n transform: translate(0, 0) scale(1);\n transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n display: flex;\n gap: 4px;\n justify-content: space-between;\n font-weight: var(--dialog-header-weight, 600);\n margin: 0;\n}\n.dialog__title {\n align-self: center;\n width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n .dialog__title {\n width: auto;\n }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n width: auto;\n}\n\n\n.brand-link {\n display: inline-flex;\n}\n.brand-link:focus-visible {\n outline: var(--outline);\n}\n\n\n.form {\n display: flex;\n overflow: auto;\n flex-direction: row;\n gap: 16px;\n flex: 1 0;\n}\n\n.form fieldset {\n border: none;\n margin: 0;\n padding: 0;\n}\n\n.form__right {\n flex: 0 0 auto;\n display: flex;\n overflow: auto;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n width: var(--form-width, 272px);\n}\n\n.form__top {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form__error-container {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n font-family: inherit;\n line-height: inherit;\n background: transparent;\n box-sizing: border-box;\n border: var(--input-border, var(--border));\n border-radius: var(--input-border-radius, 6px);\n color: var(--input-color, inherit);\n fill: var(--input-color, inherit);\n font-size: var(--input-font-size, inherit);\n font-weight: var(--input-font-weight, 500);\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n opacity: 0.65;\n color: var(--input-placeholder-color, inherit);\n filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.error {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n\n.btn-group {\n display: grid;\n gap: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--button-font-size, inherit);\n font-weight: var(--button-font-weight, 600);\n padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n color: var(--button-primary-color, var(--accent-foreground));\n fill: var(--button-primary-color, var(--accent-foreground));\n background: var(--button-primary-background, var(--accent-background));\n border: var(--button-primary-border, var(--border));\n border-radius: var(--button-primary-border-radius, 6px);\n font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n color: var(--button-primary-hover-color, var(--accent-foreground));\n fill: var(--button-primary-hover-color, var(--accent-foreground));\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-background, var(--background));\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n position: fixed;\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n z-index: var(--z-index);\n}\n.success__content {\n background: var(--success-background, var(--background));\n border: var(--success-border, var(--border));\n border-radius: var(--success-border-radius, 1.7em/50%);\n box-shadow: var(--success-box-shadow, var(--box-shadow));\n font-weight: var(--success-font-weight, 600);\n color: var(--success-color);\n fill: var(--success-color);\n padding: 12px 24px;\n line-height: 1.75em;\n\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success__icon {\n display: flex;\n}\n\n"; if (styleNonce) { element6.setAttribute("nonce", styleNonce); } const element2 = element6; let overflow = ""; const dialog = {}; Object.defineProperty(dialog, "el", { get: function() { return element; }, set: void 0, enumerable: true, configurable: true }); dialog.appendToDom = () => { if (!(shadow.contains(element2) || shadow.contains(element))) { shadow.appendChild(element2); shadow.appendChild(element); } }; dialog.removeFromDom = () => { element.remove(); element2.remove(); document2.body.style.overflow = overflow; }; dialog.open = () => { renderContent2(true); const onFormOpen2 = options.onFormOpen; if (onFormOpen2 != null) { onFormOpen2.call(options); } const client2 = getClient(); if (client2 != null) { client2.emit("openFeedbackWidget"); } overflow = document2.body.style.overflow; document2.body.style.overflow = "hidden"; }; dialog.close = () => { renderContent2(false); document2.body.style.overflow = overflow; }; input = screenshotIntegration == null ? void 0 : screenshotIntegration.createInput({ h: y$1, hooks: c840_65, dialog, options }); renderContent2 = (a0) => { const r7 = env840; const r50 = y$1(Dialog, { options, screenshotInput: input, showName: options.showName || options.isNameRequired, showEmail: options.showEmail || options.isEmailRequired, defaultName: String((useSentryUser ? user == null ? void 0 : user[useSentryUser.name] : useSentryUser) || ""), defaultEmail: String((useSentryUser ? user == null ? void 0 : user[useSentryUser.email] : useSentryUser) || ""), onFormClose: () => { renderContent2(false); const onFormClose2 = options.onFormClose; if (onFormClose2 != null) { onFormClose2.call(options); } }, onSubmit: sendFeedback2, onSubmitSuccess: (a0, a1) => { renderContent2(false); const onSubmitSuccess2 = options.onSubmitSuccess; if (onSubmitSuccess2 != null) { onSubmitSuccess2.call(options, a0, a1); } }, onSubmitError: (a0) => { const onSubmitError2 = options.onSubmitError; if (onSubmitError2 != null) { onSubmitError2.call(options, a0); } }, onFormSubmitted: () => { const onFormSubmitted3 = options.onFormSubmitted; if (onFormSubmitted3 != null) { onFormSubmitted3.call(options); } }, open: a0 }); if (c840_13.__) { c840_13.__(r50, element); } const __k = element.__k; const __k2 = y$1(g$1, null, [r50]); element.__k = __k2; const r62 = __k || c840_19; const ownerSVGElement = element.ownerSVGElement; const r65 = __k ? null : element.firstChild ? slice.call(element.childNodes) : null; const r71 = __k ? __k.__e : element.firstChild; let env28743; const r72 = []; const r73 = []; M(element, __k2, r62, c840_19, ownerSVGElement !== void 0, r65, r72, r71, false, r73); __k2.__d = void 0; const r75 = env28743 = { $parent: r7 }; env28743[0] = r72; const length = r73.length; let r0 = 0; if (0 < length) { do { const r79 = r73[r0]; const r1 = r0 + 1; const r80 = r73[r1]; const r81 = r1 + 1; N(r79, r80, r73[r81]); r0 = r81 + 1; } while (r0 < r73.length); } if (c840_13.__c) { c840_13.__c(__k2, env28743[0]); } env28743[0].some($mk67524(r75)); }; return dialog; } }); export const feedbackScreenshotIntegration = () => ({ name: "FeedbackScreenshot", setupOnce: () => {}, createInput: (a0) => { let Toolbar2, IconClose2, dangerouslySetInnerHTML, style, ScreenshotEditor2; let env24013; let c24014_0; let c24015_0; let env24011 = {}; const { h: r8, hooks: hooks2, dialog, options: options3 } = a0; env24011[0] = void 0; env24011[1] = void 0; const element6 = document2.createElement("canvas"); env24011[1] = element6; let c24012_0 = r8; const hooks = hooks2; const element3 = element6; const options2 = options3; dangerouslySetInnerHTML = void 0; style = void 0; ScreenshotEditor2 = void 0; const r30 = env24013 = { $parent: env840 }; env24013[0] = hooks; const useTakeScreenshot2 = $withEnv(function useTakeScreenshot(a0) {}, r30); c24014_0 = r8; Toolbar2 = function Toolbar({ action, setAction, options: options3 }) { let r10 = ""; const r6 = c24014_0("button", { type: "button", class: "editor__tool " + (action === "highlight" ? "editor__tool--active" : ""), onClick: () => { setAction(action === "highlight" ? "" : "highlight"); } }, options3.highlightToolText); if (action === "hide") { r10 = "editor__tool--active"; } return c24014_0("div", { class: "editor__tool-container" }, c24014_0("div", { class: "editor__tool-bar" }, r6, c24014_0("button", { type: "button", class: "editor__tool " + r10, onClick: () => { setAction(action === "hide" ? "" : "hide"); } }, options3.hideToolText))); }; c24015_0 = r8; IconClose2 = function IconClose() { return c24015_0("svg", { "data-test-id": "icon-close", viewBox: "0 0 16 16", fill: "#2B2233", height: "25px", width: "25px" }, c24015_0("circle", { r: "7", cx: "8", cy: "8", fill: "white" }), c24015_0("path", { strokeWidth: "1.5", d: "M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z" }), c24015_0("path", { strokeWidth: "1.5", d: "M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z" }), c24015_0("path", { strokeWidth: "1.5", d: "M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z" })); }; const styleNonce = options2.styleNonce; const element7 = document2.createElement("style"); element7.textContent = ` .editor { display: flex; flex-grow: 1; flex-direction: column; } .editor__image-container { justify-items: center; padding: 15px; position: relative; height: 100%; border-radius: var(--menu-border-radius, 6px); background-color: #1A141F; background-image: repeating-linear-gradient( -145deg, transparent, transparent 8px, #1A141F 8px, #1A141F 11px ), repeating-linear-gradient( -45deg, transparent, transparent 15px, #302735 15px, #302735 16px ); } .editor__canvas-container { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; } .editor__canvas-container > * { object-fit: contain; position: absolute; } .editor__tool-container { padding-top: 8px; display: flex; justify-content: center; } .editor__tool-bar { display: flex; gap: 8px; } .editor__tool { display: flex; padding: 8px 12px; justify-content: center; align-items: center; border: var(--button-border, var(--border)); border-radius: var(--button-border-radius, 6px); background: var(--button-background, var(--background)); color: var(--button-color, var(--foreground)); } .editor__tool--active { background: var(--button-primary-background, var(--accent-background)); color: var(--button-primary-color, var(--accent-foreground)); } .editor__rect { position: absolute; z-index: 2; } .editor__rect button { opacity: 0; position: absolute; top: -12px; right: -12px; cursor: pointer; padding: 0; z-index: 3; border: none; background: none; } .editor__rect:hover button { opacity: 1; } `; if (styleNonce) { element7.setAttribute("nonce", styleNonce); } dangerouslySetInnerHTML = { __html: element7.innerText }; style = dialog.el.style; ScreenshotEditor2 = ({ screenshot }) => { let callback, callback2, handleStopPropagation2; callback = void 0; callback2 = void 0; handleStopPropagation2 = void 0; const [state2, setAction2] = hooks.useState("highlight"); const [state3, setState] = hooks.useState([]); const ref = hooks.useRef(null); const ref2 = hooks.useRef(null); const ref3 = hooks.useRef(null); const ref4 = hooks.useRef(null); const [state4, setState2] = hooks.useState(1); const memo = hooks.useMemo(() => { const elementById = document2.getElementById(options2.id); if (elementById) { const computedStyle = getComputedStyle(elementById); return computedStyle.getPropertyValue("--button-primary-background") || computedStyle.getPropertyValue("--accent-background"); } return "white"; }, [options2.id]); hooks.useLayoutEffect(() => { const handleResize2 = () => { const current2 = ref.current; if (current2) { const canvas = screenshot.canvas; if (canvas && canvas.getContext("2d", { alpha: false })) { setState2(Math.min(current2.clientWidth / canvas.width, current2.clientHeight / canvas.height)); } if (!(current2.clientHeight !== 0 && current2.clientWidth !== 0)) { setTimeout(handleResize2, 0); } } }; const current2 = ref.current; if (current2) { const canvas = screenshot.canvas; if (canvas && canvas.getContext("2d", { alpha: false })) { setState2(Math.min(current2.clientWidth / canvas.width, current2.clientHeight / canvas.height)); } if (!(current2.clientHeight !== 0 && current2.clientWidth !== 0)) { setTimeout(handleResize2, 0); } } GLOBAL_OBJ.addEventListener("resize", handleResize2); return () => { GLOBAL_OBJ.removeEventListener("resize", handleResize2); }; }, [screenshot]); callback = hooks.useCallback((a0, a1) => { if (a0) { const context = a0.getContext("2d", { alpha: true }); if (context) { context.scale(a1, a1); a0.width = screenshot.canvas.width; a0.height = screenshot.canvas.height; } } }, [screenshot]); hooks.useEffect(() => { callback(ref2.current, screenshot.dpi); const current2 = ref2.current; const canvas = screenshot.canvas; if (current2) { const context = current2.getContext("2d", { alpha: true }); if (context) { context.drawImage(canvas, 0, 0, canvas.width, canvas.height, 0, 0, current2.width, current2.height); } } }, [screenshot]); hooks.useEffect(() => { callback(ref3.current, screenshot.dpi); const current2 = ref3.current; if (current2) { const context = current2.getContext("2d", { alpha: true }); if (context) { context.clearRect(0, 0, current2.width, current2.height); } } let env28724; const current3 = ref3.current; const r24 = env28724 = {}; env28724[0] = memo; if (current3) { const context2 = current3.getContext("2d", { alpha: true }); if (context2) { let env28725; const r29 = env28725 = { $parent: r24 }; env28725[0] = context2; if (state3.length) { context2.fillStyle = "rgba(0, 0, 0, 0.25)"; context2.fillRect(0, 0, current3.width, current3.height); } state3.forEach($mk101598(r29)); } } }, [state3, memo]); hooks.useEffect(() => { callback(element3, screenshot.dpi); const canvas = screenshot.canvas; if (element3) { const context = element3.getContext("2d", { alpha: true }); if (context) { context.drawImage(canvas, 0, 0, canvas.width, canvas.height, 0, 0, element3.width, element3.height); } } const element6 = document2.createElement("canvas"); if (element6) { const context2 = element6.getContext("2d", { alpha: true }); if (context2) { let env28726; context2.scale(screenshot.dpi, screenshot.dpi); element6.width = screenshot.canvas.width; element6.height = screenshot.canvas.height; const r45 = env28726 = {}; env28726[0] = memo; if (element6) { const context3 = element6.getContext("2d", { alpha: true }); if (context3) { let env28727; const r49 = env28727 = { $parent: r45 }; env28727[0] = context3; if (state3.length) { context3.fillStyle = "rgba(0, 0, 0, 0.25)"; context3.fillRect(0, 0, element6.width, element6.height); } state3.forEach($mk101598(r49)); } } if (element3) { const context4 = element3.getContext("2d", { alpha: true }); if (context4) { context4.drawImage(element6, 0, 0, element6.width, element6.height, 0, 0, element3.width, element3.height); } } } } }, [state3, screenshot, memo]); callback2 = hooks.useCallback((c28728_0) => (a0) => { a0.preventDefault(); a0.stopPropagation(); setState((prevState) => { const r1 = [...prevState]; r1.splice(c28728_0, 1); return r1; }); }, []); const style2 = { width: screenshot.canvas.width * state4 + "px", height: screenshot.canvas.height * state4 + "px" }; handleStopPropagation2 = (a0) => { a0.stopPropagation(); }; return c24012_0("div", { class: "editor" }, c24012_0("style", { nonce: options2.styleNonce, dangerouslySetInnerHTML }), c24012_0("div", { class: "editor__image-container" }, c24012_0("div", { class: "editor__canvas-container", ref }, c24012_0("canvas", { ref: ref2, id: "background", style: style2 }), c24012_0("canvas", { ref: ref3, id: "foreground", style: style2 }), c24012_0("div", { ref: ref4, onMouseDown: (a0) => { if (state2 && ref4.current) { let handleMouseMove2, handleMouseUp2; const boundingClientRect = ref4.current.getBoundingClientRect(); let c28729_1 = { type: state2, x: a0.offsetX / state4, y: a0.offsetY / state4 }; const getDrawCommand2 = (a0, a1) => {}; handleMouseMove2 = (a0) => { const current2 = ref3.current; if (current2) { const context = current2.getContext("2d", { alpha: true }); if (context) { context.clearRect(0, 0, current2.width, current2.height); } } const current3 = ref3.current; const r26 = [,]; const r1 = HermesBuiltin.arraySpread(r26, state3, 0); let env31181; const r13 = (a0.clientX - boundingClientRect.x) / state4; const r39 = (a0.clientY - boundingClientRect.y) / state4; r26[r1] = { type: c28729_1.type, x: Math.min(c28729_1.x, r13), y: Math.min(c28729_1.y, r39), w: Math.abs(r13 - c28729_1.x), h: Math.abs(r39 - c28729_1.y) }; const r60 = env31181 = {}; env31181[0] = memo; if (current3) { const context2 = current3.getContext("2d", { alpha: true }); if (context2) { let env31182; const r65 = env31182 = { $parent: r60 }; env31182[0] = context2; if (r26.length) { context2.fillStyle = "rgba(0, 0, 0, 0.25)"; context2.fillRect(0, 0, current3.width, current3.height); } r26.forEach($mk101598(r65)); } } }; handleMouseUp2 = (a0) => { const r14 = (a0.clientX - boundingClientRect.x) / state4; const r11 = (a0.clientY - boundingClientRect.y) / state4; const r25 = { type: c28729_1.type, x: Math.min(c28729_1.x, r14), y: Math.min(c28729_1.y, r11), w: Math.abs(r14 - c28729_1.x), h: Math.abs(r11 - c28729_1.y) }; let c31183_0 = r25; if (r25.w * state4 >= 1 && r25.h * state4 >= 1) { setState((prevState) => [...prevState, c31183_0]); } document2.removeEventListener("mousemove", handleMouseMove2); document2.removeEventListener("mouseup", handleMouseUp2); }; document2.addEventListener("mousemove", handleMouseMove2); document2.addEventListener("mouseup", handleMouseUp2); } }, style: style2 }, state3.map((item, index) => c24012_0("div", { key: index, class: "editor__rect", style: { top: item.y * state4 + "px", left: item.x * state4 + "px", width: item.w * state4 + "px", height: item.h * state4 + "px" } }, c24012_0("button", { "aria-label": options2.removeHighlightText, onClick: callback2(index), onMouseDown: handleStopPropagation2, onMouseUp: handleStopPropagation2, type: "button" }, c24012_0(IconClose2, null))))))), c24012_0(Toolbar2, { options: options2, action: state2, setAction: setAction2 })); }; env24011[0] = async () => { let Uint8Array2, value2, c28744_2; L14: { let env31186; const r10 = env31186 = { $parent: env24011 }; c28744_2 = r10; env31186[0] = void 0; env31186[0] = await new Promise((resolve) => { env24011[1].toBlob(resolve, "image/png"); }); if (env31186[0]) { value2 = {}; Uint8Array2 = Uint8Array; const r56 = await env31186[0].arrayBuffer(); value2.data = new Uint8Array2(r56); value2.filename = "screenshot.png"; value2.contentType = "application/png"; break L14; } return void 0; } return value2; }; return { input: function Wrapper({ onError }) { const [screenshot2, setState3] = hooks.useState(); const callback4 = hooks.useCallback(() => { style.display = "none"; }, []); const callback3 = hooks.useCallback((a0, a1) => { const element6 = document2.createElement("canvas"); if (element6) { const context = element6.getContext("2d", { alpha: false }); if (context) { context.scale(a1, a1); element6.width = a0.videoWidth; element6.height = a0.videoHeight; context.drawImage(a0, 0, 0, element6.width, element6.height); setState3({ canvas: element6, dpi: a1 }); } } element3.width = a0.videoWidth; element3.height = a0.videoHeight; }, []); const callback5 = hooks.useCallback(() => { style.display = "block"; }, []); const callback6 = hooks.useCallback((a0) => { style.display = "block"; onError(a0); }, []); const r36 = useTakeScreenshot2.$env; const r37 = r36.$parent; let env24005 = { $parent: r37 }; env24005[0] = callback4; env24005[1] = callback3; env24005[2] = callback5; env24005[3] = callback6; const r39 = r36[0]; let devicePixelRatio = (0, r37[0])(r37[1][2]).GLOBAL_OBJ.devicePixelRatio; if (devicePixelRatio == null) { devicePixelRatio = 1; } let env24006 = { $parent: r37 }; const r50 = (0, r37[2])(r39.useState(devicePixelRatio), 2); const r51 = r50[0]; env24006[0] = r50[1]; r39.useEffect(() => { let c31180_1; const onChange2 = () => { const r2 = env24006[0]; const r4 = env24006.$parent; r2((0, r4[0])(r4[1][2]).GLOBAL_OBJ.devicePixelRatio); }; const r3 = matchMedia; const r4 = env24006.$parent; const r18 = r3(`(resolution: ${(0, r4[0])(r4[1][2]).GLOBAL_OBJ.devicePixelRatio}dppx)`); c31180_1 = r18; r18.addEventListener("change", onChange2); return () => { c31180_1.removeEventListener("change", onChange2); }; }, []); env24005[4] = r51; r39.useEffect(() => { let c28721_0 = (0, env24005.$parent[3])(function*() { let c31867_1; let env32091; c31867_1 = void 0; const r9 = env32091 = { $parent: env24005 }; let c31867_0 = r9; env32091[0] = void 0; env32091[1] = void 0; (0, env24005[0])(); const r12 = env24005.$parent; const mediaDevices = r12[5].mediaDevices; const r14 = r12[0]; const r34 = r12[1]; const innerWidth = r14(r34[2]).GLOBAL_OBJ.innerWidth; const r38 = env24005[4]; const r52 = yield mediaDevices.getDisplayMedia({ video: { width: innerWidth * r38, height: r14(r34[2]).GLOBAL_OBJ.innerHeight * r38 }, audio: false, monitorTypeSurfaces: "exclude", preferCurrentTab: true, selfBrowserSurface: "include", surfaceSwitching: "exclude" }); env32091[0] = r52; env32091[1] = env24005.$parent[4].createElement("video"); yield new Promise($mk118992(c31867_0)); (0, env24005[2])(); }); (function takeScreenshot() { return c28721_0.apply(this, arguments); })().catch(env24005[3]); }, []); return screenshot2 ? c24012_0(ScreenshotEditor2, { screenshot: screenshot2 }) : c24012_0("div", null); }, value: function value() { return env24011[0].apply(this, arguments); } }; } }); export function getFeedback() { const client2 = getClient(); return client2 == null ? void 0 : client2.getIntegrationByName("Feedback"); } export { sendFeedback };