@hivegpt/hiveai-angular 0.0.476 → 0.0.478

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.
@@ -1659,7 +1659,7 @@
1659
1659
  this.callStateSubject.next('connecting');
1660
1660
  this.statusTextSubject.next('Connecting...');
1661
1661
  baseUrl = apiUrl.replace(/\/$/, '');
1662
- postUrl = baseUrl + "/ai/ask-voice";
1662
+ postUrl = "https://0a19-2405-201-5c02-991e-2487-d56-2543-bda8.ngrok-free.app/ai/ask-voice";
1663
1663
  headers = {
1664
1664
  'Content-Type': 'application/json',
1665
1665
  Authorization: "Bearer " + token,
@@ -2361,15 +2361,25 @@
2361
2361
  }
2362
2362
  };
2363
2363
  /**
2364
- * Get timezone abbreviation (e.g. IST, EST, PST) for display after the time.
2365
- * Prefers standard abbreviations over GMT+offset from Intl.
2364
+ * Get timezone abbreviation (e.g. IST, SAST, SAWST, ESAST, EEDT) for display after the time.
2365
+ * Uses map aligned with parent app session-layouts; falls back to Intl when not in map.
2366
2366
  */
2367
2367
  ChatDrawerComponent.prototype.getTimezoneAbbreviation = function (tz) {
2368
2368
  var _a;
2369
2369
  if (!tz || !String(tz).trim())
2370
2370
  return '';
2371
2371
  var tzId = String(tz).trim();
2372
- var mapped = this.constructor.TZ_ABBR_MAP[tzId];
2372
+ var map = this.constructor.TZ_ABBR_MAP;
2373
+ var mapped = map[tzId];
2374
+ if (!mapped) {
2375
+ var keyLower_1 = tzId.toLowerCase();
2376
+ var entry = Object.entries(map).find(function (_x) {
2377
+ var _y = __read(_x, 1), k = _y[0];
2378
+ return k.toLowerCase() === keyLower_1;
2379
+ });
2380
+ if (entry)
2381
+ mapped = entry[1];
2382
+ }
2373
2383
  if (mapped)
2374
2384
  return mapped;
2375
2385
  try {
@@ -2379,18 +2389,10 @@
2379
2389
  });
2380
2390
  var parts = formatter.formatToParts(new Date());
2381
2391
  var tzPart = parts.find(function (p) { return p.type === 'timeZoneName'; });
2382
- var value_1 = ((_a = tzPart === null || tzPart === void 0 ? void 0 : tzPart.value) !== null && _a !== void 0 ? _a : '').trim();
2383
- // If Intl returned GMT+5:30 style, try to use a known abbreviation from map by normalizing key
2384
- if (value_1 && /^GMT[+-]\d/.test(value_1)) {
2385
- var byAbbr = Object.entries(this.constructor.TZ_ABBR_MAP).find(function (_x) {
2386
- var _y = __read(_x, 2), _ = _y[0], abbr = _y[1];
2387
- return abbr === value_1;
2388
- });
2389
- if (byAbbr)
2390
- return byAbbr[1];
2391
- return value_1;
2392
- }
2393
- return value_1;
2392
+ var value = ((_a = tzPart === null || tzPart === void 0 ? void 0 : tzPart.value) !== null && _a !== void 0 ? _a : '').trim();
2393
+ if (value && /^GMT[+-]\d/.test(value))
2394
+ return '';
2395
+ return value;
2394
2396
  }
2395
2397
  catch (_b) {
2396
2398
  return '';
@@ -4415,26 +4417,149 @@
4415
4417
  return ChatDrawerComponent;
4416
4418
  }());
4417
4419
  /**
4418
- * Map of IANA timezone IDs to standard abbreviations (IST, EST, etc.) when Intl returns GMT offset.
4420
+ * IANA timezone ID -> abbreviation map (matches parent app session-layouts / timezones.enum TimeZones).
4421
+ * Used so session cards show SAST, EEST, SAWST, ESAST, etc. instead of GMT+1, GMT+2.
4419
4422
  */
4420
4423
  ChatDrawerComponent.TZ_ABBR_MAP = {
4424
+ 'Pacific/Kiritimati': 'LINT',
4425
+ 'Pacific/Apia': 'SST',
4426
+ 'Pacific/Tongatapu': 'TST',
4427
+ 'Etc/GMT-13': 'UTC',
4428
+ 'Pacific/Chatham': 'CHADT',
4429
+ 'Asia/Kamchatka': 'ANAT',
4430
+ 'Pacific/Fiji': 'FJT',
4431
+ 'Etc/GMT-12': 'U',
4432
+ 'Pacific/Auckland': 'NZST',
4433
+ 'Pacific/Guadalcanal': 'CPST',
4434
+ 'Asia/Sakhalin': 'SAKT',
4435
+ 'Pacific/Norfolk': 'NFT',
4436
+ 'Asia/Magadan': 'MAGT',
4437
+ 'Asia/Srednekolymsk': 'SRET',
4438
+ 'Pacific/Bougainville': 'BST',
4439
+ 'Australia/Lord_Howe': 'LHST',
4440
+ 'Asia/Vladivostok': 'VLAT',
4441
+ 'Australia/Hobart': 'AEST',
4442
+ 'Pacific/Port_Moresby': 'ChST',
4443
+ 'Australia/Sydney': 'AEST',
4444
+ 'Australia/Brisbane': 'AWST',
4445
+ 'Australia/Darwin': 'ACST',
4446
+ 'Australia/Adelaide': 'ACST',
4447
+ 'Asia/Yakutsk': 'YAKT',
4448
+ 'Asia/Seoul': 'KST',
4449
+ 'Asia/Pyongyang': 'KST',
4450
+ 'Asia/Tokyo': 'TST',
4451
+ 'Asia/Chita': 'YAKT',
4452
+ 'Australia/Eucla': 'ACWST',
4453
+ 'Asia/Ulaanbaatar': 'FST',
4454
+ 'Asia/Taipei': 'ULAT',
4455
+ 'Australia/Perth': 'AWST',
4456
+ 'Asia/Singapore': 'SNST',
4457
+ 'Asia/Irkutsk': 'IRKT',
4458
+ 'Asia/Shanghai': 'CST',
4459
+ 'Asia/Tomsk': 'MSD',
4460
+ 'Asia/Novosibirsk': 'NOVT',
4461
+ 'Asia/Krasnoyarsk': 'KRAT',
4462
+ 'Asia/Hovd': 'SAST',
4463
+ 'Asia/Barnaul': 'MSK',
4464
+ 'Asia/Bangkok': 'THA',
4465
+ 'Asia/Yangon': 'MYST',
4466
+ 'Asia/Omsk': 'OMST',
4467
+ 'Asia/Dhaka': 'BST',
4468
+ 'Asia/Almaty': 'NCAST',
4469
+ 'Asia/Kathmandu': 'NPT',
4470
+ 'Asia/Colombo': 'SLT',
4421
4471
  'Asia/Kolkata': 'IST',
4422
4472
  'Asia/Calcutta': 'IST',
4423
- 'America/New_York': 'EST',
4424
- 'America/Los_Angeles': 'PST',
4425
- 'America/Chicago': 'CST',
4426
- 'America/Denver': 'MST',
4427
- 'Europe/London': 'GMT',
4428
- 'Europe/Paris': 'CET',
4429
- 'Europe/Berlin': 'CET',
4430
- 'Asia/Dubai': 'GST',
4431
- 'Asia/Singapore': 'SGT',
4432
- 'Asia/Tokyo': 'JST',
4433
- 'Australia/Sydney': 'AEST',
4434
- 'America/Toronto': 'EST',
4435
- 'America/Vancouver': 'PST',
4436
- 'Pacific/Auckland': 'NZST',
4473
+ 'Asia/Qyzylorda': 'CAST',
4474
+ 'Asia/Karachi': 'PKT',
4475
+ 'Asia/Yekaterinburg': 'YEKT',
4476
+ 'Asia/Tashkent': 'WAST',
4477
+ 'Asia/Kabul': 'AFT',
4478
+ 'Asia/Yerevan': 'AMT',
4479
+ 'Europe/Volgograd': 'VST',
4480
+ 'Asia/Tbilisi': 'GET',
4481
+ 'Europe/Saratov': 'SLT',
4482
+ 'Indian/Mauritius': 'MUT',
4483
+ 'Europe/Samara': 'SAMT',
4484
+ 'Asia/Baku': 'AZT',
4485
+ 'Europe/Astrakhan': 'SAMT',
4486
+ 'Asia/Dubai': 'ARBST',
4487
+ 'Asia/Tehran': 'IDT',
4488
+ 'Africa/Nairobi': 'EAST',
4489
+ 'Europe/Moscow': 'MSK',
4490
+ 'Europe/Minsk': 'MSK',
4491
+ 'Asia/Riyadh': 'AST',
4492
+ 'Europe/Istanbul': 'TDT',
4493
+ 'Asia/Baghdad': 'AST',
4494
+ 'Africa/Windhoek': 'NST',
4495
+ 'Africa/Tripoli': 'LST',
4496
+ 'Africa/Khartoum': 'EAST',
4497
+ 'Europe/Kaliningrad': 'KST',
4498
+ 'Asia/Jerusalem': 'JDT',
4499
+ 'Europe/Kiev': 'EEDT',
4500
+ 'Africa/Johannesburg': 'SAST',
4501
+ 'Asia/Hebron': 'EET',
4502
+ 'Asia/Damascus': 'SDT',
4503
+ 'Europe/Chisinau': 'GDT',
4504
+ 'Africa/Cairo': 'EST',
4505
+ 'Asia/Beirut': 'MEDT',
4506
+ 'Europe/Bucharest': 'GDT',
4507
+ 'Asia/Amman': 'JST',
4508
+ 'Africa/Lagos': 'ECT',
4509
+ 'Europe/Warsaw': 'CEDT',
4510
+ 'Africa/Casablanca': 'MDT',
4511
+ 'Europe/Paris': 'CEST',
4512
+ 'Europe/Budapest': 'CEDT',
4513
+ 'Europe/Berlin': 'WEDT',
4514
+ 'Africa/Sao_Tome': 'GST',
4515
+ 'Atlantic/Reykjavik': 'GST',
4516
+ 'Europe/London': 'GDT',
4437
4517
  'Etc/UTC': 'UTC',
4518
+ 'Atlantic/Azores': 'ADT',
4519
+ 'Atlantic/Cape_Verde': 'CVST',
4520
+ 'Etc/GMT+2': 'MST',
4521
+ 'America/Araguaina': 'SEST',
4522
+ 'America/Sao_Paulo': 'ESAST',
4523
+ 'America/Cayenne': 'SEST',
4524
+ 'America/Argentina/Buenos_Aires': 'AST',
4525
+ 'America/Nuuk': 'WGT',
4526
+ 'America/Montevideo': 'MST',
4527
+ 'America/Punta_Arenas': 'CLST',
4528
+ 'America/Miquelon': 'PMST',
4529
+ 'America/Bahia': 'BST',
4530
+ 'America/St_Johns': 'NST',
4531
+ 'America/Asuncion': 'PRST',
4532
+ 'America/Halifax': 'AST',
4533
+ 'America/Caracas': 'VST',
4534
+ 'America/Cuiaba': 'CBST',
4535
+ 'America/La_Paz': 'SAWST',
4536
+ 'America/Santiago': 'PSST',
4537
+ 'America/Bogota': 'SPST',
4538
+ 'America/Cancun': 'EST',
4539
+ 'America/New_York': 'ET',
4540
+ 'America/Port-au-Prince': 'EDT',
4541
+ 'America/Havana': 'EDT',
4542
+ 'America/Indiana/Indianapolis': 'EST',
4543
+ 'America/Grand_Turk': 'EST',
4544
+ 'America/Guatemala': 'CAST',
4545
+ 'America/Chicago': 'CT',
4546
+ 'Pacific/Easter': 'EAST',
4547
+ 'America/Mexico_City': 'CST',
4548
+ 'America/Regina': 'CCST',
4549
+ 'America/Phoenix': 'MT',
4550
+ 'America/Chihuahua': 'MDT',
4551
+ 'America/Denver': 'MT',
4552
+ 'America/Whitehorse': 'YST',
4553
+ 'America/Tijuana': 'PST',
4554
+ 'Etc/GMT+8': 'UTC-08',
4555
+ 'America/Los_Angeles': 'PT',
4556
+ 'America/Anchorage': 'AK',
4557
+ 'Etc/GMT+9': 'UTC-09',
4558
+ 'Pacific/Marquesas': 'MST',
4559
+ 'America/Adak': 'HST',
4560
+ 'Pacific/Honolulu': 'HAST',
4561
+ 'Etc/GMT+11': 'UTC-11',
4562
+ 'Etc/GMT+12': 'BIT',
4438
4563
  };
4439
4564
  ChatDrawerComponent.decorators = [
4440
4565
  { type: i0.Component, args: [{