@hivegpt/hiveai-angular 0.0.542 → 0.0.543

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2398,14 +2398,14 @@
2398
2398
  return !!this.expandedAttendeeDescriptionIds[key];
2399
2399
  };
2400
2400
  ChatDrawerComponent.prototype.toggleAttendeeDescription = function (chat, attendee, ev) {
2401
- var _6;
2401
+ var _10;
2402
2402
  var _a;
2403
2403
  (_a = ev === null || ev === void 0 ? void 0 : ev.stopPropagation) === null || _a === void 0 ? void 0 : _a.call(ev);
2404
2404
  var key = this.getAttendeeDescKey(chat, attendee);
2405
2405
  if (!key)
2406
2406
  return;
2407
2407
  var next = !this.expandedAttendeeDescriptionIds[key];
2408
- this.expandedAttendeeDescriptionIds = Object.assign(Object.assign({}, this.expandedAttendeeDescriptionIds), (_6 = {}, _6[key] = next, _6));
2408
+ this.expandedAttendeeDescriptionIds = Object.assign(Object.assign({}, this.expandedAttendeeDescriptionIds), (_10 = {}, _10[key] = next, _10));
2409
2409
  this.cdr.markForCheck();
2410
2410
  };
2411
2411
  ChatDrawerComponent.prototype.getAttendeeVideoUrl = function (attendee) {
@@ -2440,14 +2440,14 @@
2440
2440
  return !!this.attendeeVideoPlayingIds[key];
2441
2441
  };
2442
2442
  ChatDrawerComponent.prototype.toggleAttendeeVideoMute = function (chat, attendee, videoEl, ev) {
2443
- var _6;
2443
+ var _10;
2444
2444
  var _a;
2445
2445
  (_a = ev === null || ev === void 0 ? void 0 : ev.stopPropagation) === null || _a === void 0 ? void 0 : _a.call(ev);
2446
2446
  var key = this.getAttendeeMediaKey(chat, attendee);
2447
2447
  if (!key)
2448
2448
  return;
2449
2449
  var next = !this.isAttendeeVideoMuted(chat, attendee);
2450
- this.attendeeVideoMutedIds = Object.assign(Object.assign({}, this.attendeeVideoMutedIds), (_6 = {}, _6[key] = next, _6));
2450
+ this.attendeeVideoMutedIds = Object.assign(Object.assign({}, this.attendeeVideoMutedIds), (_10 = {}, _10[key] = next, _10));
2451
2451
  if (videoEl) {
2452
2452
  videoEl.muted = next;
2453
2453
  // Some browsers require volume to be >0 when unmuting
@@ -2458,7 +2458,7 @@
2458
2458
  this.cdr.markForCheck();
2459
2459
  };
2460
2460
  ChatDrawerComponent.prototype.toggleAttendeeVideoPlay = function (chat, attendee, videoEl, ev) {
2461
- var _6;
2461
+ var _10;
2462
2462
  var _this = this;
2463
2463
  var _a;
2464
2464
  (_a = ev === null || ev === void 0 ? void 0 : ev.stopPropagation) === null || _a === void 0 ? void 0 : _a.call(ev);
@@ -2466,16 +2466,16 @@
2466
2466
  if (!key)
2467
2467
  return;
2468
2468
  var next = !this.isAttendeeVideoPlaying(chat, attendee);
2469
- this.attendeeVideoPlayingIds = Object.assign(Object.assign({}, this.attendeeVideoPlayingIds), (_6 = {}, _6[key] = next, _6));
2469
+ this.attendeeVideoPlayingIds = Object.assign(Object.assign({}, this.attendeeVideoPlayingIds), (_10 = {}, _10[key] = next, _10));
2470
2470
  if (videoEl) {
2471
2471
  try {
2472
2472
  if (next) {
2473
2473
  var p = videoEl.play();
2474
2474
  if (p && typeof p.catch === 'function') {
2475
2475
  p.catch(function () {
2476
- var _6;
2476
+ var _10;
2477
2477
  // If play fails, reflect paused state
2478
- _this.attendeeVideoPlayingIds = Object.assign(Object.assign({}, _this.attendeeVideoPlayingIds), (_6 = {}, _6[key] = false, _6));
2478
+ _this.attendeeVideoPlayingIds = Object.assign(Object.assign({}, _this.attendeeVideoPlayingIds), (_10 = {}, _10[key] = false, _10));
2479
2479
  _this.cdr.markForCheck();
2480
2480
  });
2481
2481
  }
@@ -2491,13 +2491,13 @@
2491
2491
  this.cdr.markForCheck();
2492
2492
  };
2493
2493
  ChatDrawerComponent.prototype.onAttendeeVideoPlayState = function (chat, attendee, isPlaying) {
2494
- var _6;
2494
+ var _10;
2495
2495
  var key = this.getAttendeeMediaKey(chat, attendee);
2496
2496
  if (!key)
2497
2497
  return;
2498
2498
  if (this.attendeeVideoPlayingIds[key] === isPlaying)
2499
2499
  return;
2500
- this.attendeeVideoPlayingIds = Object.assign(Object.assign({}, this.attendeeVideoPlayingIds), (_6 = {}, _6[key] = isPlaying, _6));
2500
+ this.attendeeVideoPlayingIds = Object.assign(Object.assign({}, this.attendeeVideoPlayingIds), (_10 = {}, _10[key] = isPlaying, _10));
2501
2501
  this.cdr.markForCheck();
2502
2502
  };
2503
2503
  /**
@@ -2656,8 +2656,8 @@
2656
2656
  var mapped = map[tzId];
2657
2657
  if (!mapped) {
2658
2658
  var keyLower_1 = tzId.toLowerCase();
2659
- var entry = Object.entries(map).find(function (_6) {
2660
- var _7 = __read(_6, 1), k = _7[0];
2659
+ var entry = Object.entries(map).find(function (_10) {
2660
+ var _11 = __read(_10, 1), k = _11[0];
2661
2661
  return k.toLowerCase() === keyLower_1;
2662
2662
  });
2663
2663
  if (entry)
@@ -2774,7 +2774,7 @@
2774
2774
  });
2775
2775
  };
2776
2776
  ChatDrawerComponent.prototype.collectSpeakerIdsFromSessionCards = function (sessionCards) {
2777
- var e_1, _6, e_2, _7;
2777
+ var e_1, _10, e_2, _11;
2778
2778
  var _a;
2779
2779
  if (!Array.isArray(sessionCards))
2780
2780
  return [];
@@ -2795,7 +2795,7 @@
2795
2795
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
2796
2796
  finally {
2797
2797
  try {
2798
- if (raw_1_1 && !raw_1_1.done && (_7 = raw_1.return)) _7.call(raw_1);
2798
+ if (raw_1_1 && !raw_1_1.done && (_11 = raw_1.return)) _11.call(raw_1);
2799
2799
  }
2800
2800
  finally { if (e_2) throw e_2.error; }
2801
2801
  }
@@ -2805,14 +2805,14 @@
2805
2805
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
2806
2806
  finally {
2807
2807
  try {
2808
- if (sessionCards_1_1 && !sessionCards_1_1.done && (_6 = sessionCards_1.return)) _6.call(sessionCards_1);
2808
+ if (sessionCards_1_1 && !sessionCards_1_1.done && (_10 = sessionCards_1.return)) _10.call(sessionCards_1);
2809
2809
  }
2810
2810
  finally { if (e_1) throw e_1.error; }
2811
2811
  }
2812
2812
  return Array.from(new Set(ids));
2813
2813
  };
2814
2814
  ChatDrawerComponent.prototype.attachSpeakersToSessionCards = function (sessionCards) {
2815
- var e_3, _6;
2815
+ var e_3, _10;
2816
2816
  var _this = this;
2817
2817
  var _a;
2818
2818
  if (!Array.isArray(sessionCards))
@@ -2837,7 +2837,7 @@
2837
2837
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
2838
2838
  finally {
2839
2839
  try {
2840
- if (sessionCards_2_1 && !sessionCards_2_1.done && (_6 = sessionCards_2.return)) _6.call(sessionCards_2);
2840
+ if (sessionCards_2_1 && !sessionCards_2_1.done && (_10 = sessionCards_2.return)) _10.call(sessionCards_2);
2841
2841
  }
2842
2842
  finally { if (e_3) throw e_3.error; }
2843
2843
  }
@@ -3012,6 +3012,35 @@
3012
3012
  };
3013
3013
  });
3014
3014
  };
3015
+ /**
3016
+ * Map get_event_booths results into the same shape used by sponsor cards.
3017
+ */
3018
+ ChatDrawerComponent.prototype.mapBoothsToCardData = function (booths) {
3019
+ var _this = this;
3020
+ if (!Array.isArray(booths))
3021
+ return [];
3022
+ return booths.map(function (b) {
3023
+ var _a, _b;
3024
+ var rawDesc = b.description != null && String(b.description).trim() !== ''
3025
+ ? String(b.description).trim()
3026
+ : null;
3027
+ var description = rawDesc
3028
+ ? /<[a-z][\s\S]*>/i.test(rawDesc)
3029
+ ? _this.stripHtml(rawDesc)
3030
+ : rawDesc
3031
+ : null;
3032
+ return {
3033
+ name: b.company != null ? String(b.company).trim() : '',
3034
+ website: b.website != null && String(b.website).trim() !== ''
3035
+ ? String(b.website).trim()
3036
+ : null,
3037
+ category: null,
3038
+ boothID: (_b = (_a = b.boothId) !== null && _a !== void 0 ? _a : b.boothID) !== null && _b !== void 0 ? _b : null,
3039
+ boothTitle: b.boothTitle != null ? String(b.boothTitle).trim() : '',
3040
+ description: description !== null && description !== void 0 ? description : null,
3041
+ };
3042
+ });
3043
+ };
3015
3044
  /**
3016
3045
  * Parse get_event_sessions_v2 plain-text content into session objects for cards.
3017
3046
  * Format: "Found N sessions:\n1. <title>\n - Time: Start: ..., End: ..., TimeZone: ...\n - Room: ...\n - Type: ...\n2. ..."
@@ -3112,30 +3141,30 @@
3112
3141
  return list;
3113
3142
  };
3114
3143
  ChatDrawerComponent.prototype.expandSessionCards = function (chat) {
3115
- var _6;
3144
+ var _10;
3116
3145
  if (chat === null || chat === void 0 ? void 0 : chat._id) {
3117
- this.expandedSessionCardIds = Object.assign(Object.assign({}, this.expandedSessionCardIds), (_6 = {}, _6[chat._id] = true, _6));
3146
+ this.expandedSessionCardIds = Object.assign(Object.assign({}, this.expandedSessionCardIds), (_10 = {}, _10[chat._id] = true, _10));
3118
3147
  this.cdr.markForCheck();
3119
3148
  }
3120
3149
  };
3121
3150
  ChatDrawerComponent.prototype.expandAttendeeCards = function (chat) {
3122
- var _6;
3151
+ var _10;
3123
3152
  if (chat === null || chat === void 0 ? void 0 : chat._id) {
3124
- this.expandedAttendeeCardIds = Object.assign(Object.assign({}, this.expandedAttendeeCardIds), (_6 = {}, _6[chat._id] = true, _6));
3153
+ this.expandedAttendeeCardIds = Object.assign(Object.assign({}, this.expandedAttendeeCardIds), (_10 = {}, _10[chat._id] = true, _10));
3125
3154
  this.cdr.markForCheck();
3126
3155
  }
3127
3156
  };
3128
3157
  ChatDrawerComponent.prototype.expandSpeakerCards = function (chat) {
3129
- var _6;
3158
+ var _10;
3130
3159
  if (chat === null || chat === void 0 ? void 0 : chat._id) {
3131
- this.expandedSpeakerCardIds = Object.assign(Object.assign({}, this.expandedSpeakerCardIds), (_6 = {}, _6[chat._id] = true, _6));
3160
+ this.expandedSpeakerCardIds = Object.assign(Object.assign({}, this.expandedSpeakerCardIds), (_10 = {}, _10[chat._id] = true, _10));
3132
3161
  this.cdr.markForCheck();
3133
3162
  }
3134
3163
  };
3135
3164
  ChatDrawerComponent.prototype.expandSponsorCards = function (chat) {
3136
- var _6;
3165
+ var _10;
3137
3166
  if (chat === null || chat === void 0 ? void 0 : chat._id) {
3138
- this.expandedSponsorCardIds = Object.assign(Object.assign({}, this.expandedSponsorCardIds), (_6 = {}, _6[chat._id] = true, _6));
3167
+ this.expandedSponsorCardIds = Object.assign(Object.assign({}, this.expandedSponsorCardIds), (_10 = {}, _10[chat._id] = true, _10));
3139
3168
  this.cdr.markForCheck();
3140
3169
  }
3141
3170
  };
@@ -3152,7 +3181,7 @@
3152
3181
  * When isUnEvent is false, returns single "Watch" button (same as template2). When true, returns Join/Watch from sessionRoles.
3153
3182
  */
3154
3183
  ChatDrawerComponent.prototype.getSessionRoleButtons = function (sessionCard) {
3155
- var e_4, _6;
3184
+ var e_4, _10;
3156
3185
  var _a;
3157
3186
  if (this.isUnEvent === false && (sessionCard === null || sessionCard === void 0 ? void 0 : sessionCard.session)) {
3158
3187
  return [
@@ -3183,7 +3212,7 @@
3183
3212
  catch (e_4_1) { e_4 = { error: e_4_1 }; }
3184
3213
  finally {
3185
3214
  try {
3186
- if (raw_2_1 && !raw_2_1.done && (_6 = raw_2.return)) _6.call(raw_2);
3215
+ if (raw_2_1 && !raw_2_1.done && (_10 = raw_2.return)) _10.call(raw_2);
3187
3216
  }
3188
3217
  finally { if (e_4) throw e_4.error; }
3189
3218
  }
@@ -3279,7 +3308,7 @@
3279
3308
  this.eventSubscription = this.conversationService
3280
3309
  .getUserSpecificNotification()
3281
3310
  .subscribe(function (res) {
3282
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
3311
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9;
3283
3312
  console.log('[Socket Chat] listenSockets received', {
3284
3313
  hasOtherFields: !!((_a = res === null || res === void 0 ? void 0 : res.m) === null || _a === void 0 ? void 0 : _a.OtherFields),
3285
3314
  messageId: (_c = (_b = res === null || res === void 0 ? void 0 : res.m) === null || _b === void 0 ? void 0 : _b.OtherFields) === null || _c === void 0 ? void 0 : _c.message_id,
@@ -3288,7 +3317,7 @@
3288
3317
  // Check if OtherFields exists in the response
3289
3318
  if ((_g = (_f = res === null || res === void 0 ? void 0 : res.m) === null || _f === void 0 ? void 0 : _f.OtherFields) === null || _g === void 0 ? void 0 : _g.workflow_id) {
3290
3319
  console.log('[Socket Chat] Workflow progress update', (_h = res === null || res === void 0 ? void 0 : res.m) === null || _h === void 0 ? void 0 : _h.OtherFields);
3291
- var _6 = (_j = res === null || res === void 0 ? void 0 : res.m) === null || _j === void 0 ? void 0 : _j.OtherFields, percentage = _6.percentage, output = _6.output, action_name = _6.action_name, current_action_name_1 = _6.current_action_name, workflow_execution_id = _6.workflow_execution_id, time_stamp = _6.time_stamp;
3320
+ var _10 = (_j = res === null || res === void 0 ? void 0 : res.m) === null || _j === void 0 ? void 0 : _j.OtherFields, percentage = _10.percentage, output = _10.output, action_name = _10.action_name, current_action_name_1 = _10.current_action_name, workflow_execution_id = _10.workflow_execution_id, time_stamp = _10.time_stamp;
3292
3321
  _this.currentWorkflowActionProgress = percentage;
3293
3322
  _this.currentWorkflowAction = action_name;
3294
3323
  var actionIndex = _this.workflowExecutionDetails.Actions.findIndex(function (a) { return a.Name == current_action_name_1; });
@@ -3504,6 +3533,51 @@
3504
3533
  return;
3505
3534
  }
3506
3535
  }
3536
+ // Booth cards: tool get_event_booths (reuse sponsor card design; only push when we have booths)
3537
+ if ((serializable === null || serializable === void 0 ? void 0 : serializable.tool_name) === 'get_event_booths') {
3538
+ var contentStr = (_5 = (_4 = (_3 = serializable === null || serializable === void 0 ? void 0 : serializable.tool_result) === null || _3 === void 0 ? void 0 : _3.messages) === null || _4 === void 0 ? void 0 : _4[0]) === null || _5 === void 0 ? void 0 : _5.content;
3539
+ var answerText = otherFields.answer != null
3540
+ ? String(otherFields.answer).trim()
3541
+ : '';
3542
+ var pushed = false;
3543
+ if (contentStr) {
3544
+ try {
3545
+ var parsed = JSON.parse(contentStr);
3546
+ var booths = (_6 = parsed === null || parsed === void 0 ? void 0 : parsed.booths) !== null && _6 !== void 0 ? _6 : [];
3547
+ var mapped = _this.mapBoothsToCardData(booths);
3548
+ if (mapped.length > 0) {
3549
+ var msgId_5 = serializable.message_id || "sponsor_cards_" + Date.now();
3550
+ var cardEntry = {
3551
+ _id: msgId_5,
3552
+ type: 'sponsor_cards',
3553
+ message: answerText
3554
+ ? _this.processMessageForDisplay(answerText)
3555
+ : '',
3556
+ time: formatNow(_this.timezone),
3557
+ sponsorCards: mapped,
3558
+ };
3559
+ var existingIdx = _this.chatLog.findIndex(function (p) { return p._id === msgId_5; });
3560
+ if (existingIdx >= 0) {
3561
+ _this.chatLog[existingIdx] = cardEntry;
3562
+ }
3563
+ else {
3564
+ _this.chatLog.push(cardEntry);
3565
+ }
3566
+ _this.showFeedBackIconsIndex = _this.chatLog.length - 1;
3567
+ pushed = true;
3568
+ }
3569
+ }
3570
+ catch (e) {
3571
+ console.error('[Socket Chat] Error parsing get_event_booths content:', e);
3572
+ }
3573
+ }
3574
+ if (pushed) {
3575
+ _this.isChatingWithAi = false;
3576
+ _this.scrollToBottom();
3577
+ _this.cdr.markForCheck();
3578
+ return;
3579
+ }
3580
+ }
3507
3581
  if ((serializable === null || serializable === void 0 ? void 0 : serializable.tool_name) === 'get_event_details') {
3508
3582
  _this.isChatingWithAi = false;
3509
3583
  _this.cdr.markForCheck();
@@ -3516,8 +3590,8 @@
3516
3590
  bot_id: bot_id,
3517
3591
  hasAnswer: !!answer,
3518
3592
  answerLength: answer === null || answer === void 0 ? void 0 : answer.length,
3519
- webResultsCount: (_3 = web_results === null || web_results === void 0 ? void 0 : web_results.length) !== null && _3 !== void 0 ? _3 : 0,
3520
- searchResultsCount: (_4 = search_results === null || search_results === void 0 ? void 0 : search_results.length) !== null && _4 !== void 0 ? _4 : 0,
3593
+ webResultsCount: (_7 = web_results === null || web_results === void 0 ? void 0 : web_results.length) !== null && _7 !== void 0 ? _7 : 0,
3594
+ searchResultsCount: (_8 = search_results === null || search_results === void 0 ? void 0 : search_results.length) !== null && _8 !== void 0 ? _8 : 0,
3521
3595
  });
3522
3596
  var currentChatMessage = _this.chatLog.find(function (p) { return p._id == message_id_1; });
3523
3597
  if (!currentChatMessage) {
@@ -3557,7 +3631,7 @@
3557
3631
  console.log('[Socket Chat] Received answer, updating message', {
3558
3632
  message_id: message_id_1,
3559
3633
  answerLength: answer === null || answer === void 0 ? void 0 : answer.length,
3560
- answerPreview: (_5 = answer === null || answer === void 0 ? void 0 : answer.substring) === null || _5 === void 0 ? void 0 : _5.call(answer, 0, 100),
3634
+ answerPreview: (_9 = answer === null || answer === void 0 ? void 0 : answer.substring) === null || _9 === void 0 ? void 0 : _9.call(answer, 0, 100),
3561
3635
  });
3562
3636
  currentChatMessage.message =
3563
3637
  _this.processMessageForDisplay(answer);
@@ -3767,7 +3841,7 @@
3767
3841
  });
3768
3842
  if (chats && ((_a = chats === null || chats === void 0 ? void 0 : chats.Messages) === null || _a === void 0 ? void 0 : _a.length)) {
3769
3843
  chats === null || chats === void 0 ? void 0 : chats.Messages.forEach(function (chat) {
3770
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
3844
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
3771
3845
  if (chat.Type == 'user') {
3772
3846
  _this.chatLog.push({
3773
3847
  type: 'user',
@@ -3899,6 +3973,34 @@
3899
3973
  _this.pushAiMessageFromHistory(chat);
3900
3974
  }
3901
3975
  }
3976
+ else if (toolName === 'get_event_booths' &&
3977
+ ((_1 = (_0 = (_z = (_y = chat.toolresults) === null || _y === void 0 ? void 0 : _y.tool_result) === null || _z === void 0 ? void 0 : _z.messages) === null || _0 === void 0 ? void 0 : _0[0]) === null || _1 === void 0 ? void 0 : _1.content)) {
3978
+ // If this AI message came from get_event_booths, show booth cards using sponsor card design
3979
+ var contentStr = chat.toolresults.tool_result.messages[0].content;
3980
+ try {
3981
+ var parsed = JSON.parse(contentStr);
3982
+ var booths = (_2 = parsed === null || parsed === void 0 ? void 0 : parsed.booths) !== null && _2 !== void 0 ? _2 : [];
3983
+ var mapped = _this.mapBoothsToCardData(booths);
3984
+ if (mapped.length > 0) {
3985
+ _this.chatLog.push({
3986
+ _id: chat._id,
3987
+ type: 'sponsor_cards',
3988
+ message: chat.Text
3989
+ ? _this.processMessageForDisplay(chat.Text)
3990
+ : '',
3991
+ time: formatTimeStamps(_this.timezone, chat.InsertTimestamp),
3992
+ sponsorCards: mapped,
3993
+ });
3994
+ _this.showFeedBackIconsIndex = _this.chatLog.length - 1;
3995
+ }
3996
+ else {
3997
+ _this.pushAiMessageFromHistory(chat);
3998
+ }
3999
+ }
4000
+ catch (e) {
4001
+ _this.pushAiMessageFromHistory(chat);
4002
+ }
4003
+ }
3902
4004
  else {
3903
4005
  _this.pushAiMessageFromHistory(chat);
3904
4006
  }
@@ -4055,8 +4157,8 @@
4055
4157
  };
4056
4158
  ChatDrawerComponent.prototype.pump = function (controller, reader, allSuggestions) {
4057
4159
  var _this = this;
4058
- reader.read().then(function (_6) {
4059
- var done = _6.done, value = _6.value;
4160
+ reader.read().then(function (_10) {
4161
+ var done = _10.done, value = _10.value;
4060
4162
  var _a, _b, _c, _d;
4061
4163
  var lastItem = _this.chatLog[_this.chatLog.length - 1];
4062
4164
  if (done) {
@@ -5041,7 +5143,7 @@
5041
5143
  this.cdr.markForCheck();
5042
5144
  };
5043
5145
  ChatDrawerComponent.prototype.generateMarkdown = function (title, obj) {
5044
- var e_5, _6;
5146
+ var e_5, _10;
5045
5147
  var _a;
5046
5148
  // Initialize markdown with the title
5047
5149
  var markdown = "## " + title + "\n";
@@ -5052,15 +5154,15 @@
5052
5154
  var this_1 = this, key_label;
5053
5155
  try {
5054
5156
  // Loop through the object and append the field names and values
5055
- for (var _7 = __values(Object.entries(obj)), _8 = _7.next(); !_8.done; _8 = _7.next()) {
5056
- var _9 = __read(_8.value, 2), key = _9[0], value = _9[1];
5157
+ for (var _11 = __values(Object.entries(obj)), _12 = _11.next(); !_12.done; _12 = _11.next()) {
5158
+ var _13 = __read(_12.value, 2), key = _13[0], value = _13[1];
5057
5159
  _loop_1(key, value);
5058
5160
  }
5059
5161
  }
5060
5162
  catch (e_5_1) { e_5 = { error: e_5_1 }; }
5061
5163
  finally {
5062
5164
  try {
5063
- if (_8 && !_8.done && (_6 = _7.return)) _6.call(_7);
5165
+ if (_12 && !_12.done && (_10 = _11.return)) _10.call(_11);
5064
5166
  }
5065
5167
  finally { if (e_5) throw e_5.error; }
5066
5168
  }