hanc-webrtc-widgets 2.2.10 → 2.2.12

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.
@@ -17279,7 +17279,8 @@ class wd extends EventTarget {
17279
17279
  body: JSON.stringify({
17280
17280
  metadata: {
17281
17281
  agent_id: e,
17282
- timestamp: Date.now()
17282
+ timestamp: Date.now(),
17283
+ is_apple_device: this.isAppleDevice
17283
17284
  }
17284
17285
  })
17285
17286
  },
@@ -39070,7 +39071,7 @@ var IE = Object.defineProperty, DE = Object.getOwnPropertyDescriptor, _t = (i, e
39070
39071
  };
39071
39072
  let dt = class extends gs {
39072
39073
  constructor() {
39073
- super(), this.callManager = new wd(), this.healthMonitor = new Ad(), this.orbRenderer = null, this.audioAnalyzer = null, this.soundManager = null, this.orbContainerRef = ad(), this.animationId = null, this.pendingTimers = /* @__PURE__ */ new Set(), this.isPageVisible = !0, this.animationStartTime = 0, this.intersectionObserver = null, this.isOrbInitialized = !1, this.callStatus = "idle", this.microphoneEnabled = !1, this.serviceUnavailable = !1, this.buttonStartText = "Try to call", this.buttonConnectingText = "Connecting...", this.size = 370, this.containerPadding = 45, this.theme = "default", this.themeMode = "auto", this.orbColors = {}, this.glowIntensity = 0.8, this.idleGlowMultiplier = 0.4, this.morphStrength = 1, this.noiseScale = 1.5, this.noiseSpeed = 0.3, this.fresnelPower = 2.5, this.rotationSpeed = 0.1, this.audioReactivity = 3, this.audioSmoothing = 0.9, this.idleMorphMultiplier = 0.25, this.colorContrast = 1.5, this.soundEnabled = !0, this.soundVolume = 0.25, this.soundPreset = "1", this.handleAudioTrack = async (i) => {
39074
+ super(), this.callManager = new wd(), this.healthMonitor = new Ad(), this.orbRenderer = null, this.audioAnalyzer = null, this.soundManager = null, this.orbContainerRef = ad(), this.animationId = null, this.pendingTimers = /* @__PURE__ */ new Set(), this.isPageVisible = !0, this.animationStartTime = 0, this.intersectionObserver = null, this.isOrbInitialized = !1, this.intersectionTimeoutId = null, this.callStatus = "idle", this.microphoneEnabled = !1, this.serviceUnavailable = !1, this.buttonStartText = "Try to call", this.buttonConnectingText = "Connecting...", this.size = 370, this.containerPadding = 45, this.theme = "default", this.themeMode = "auto", this.orbColors = {}, this.glowIntensity = 0.8, this.idleGlowMultiplier = 0.4, this.morphStrength = 1, this.noiseScale = 1.5, this.noiseSpeed = 0.3, this.fresnelPower = 2.5, this.rotationSpeed = 0.1, this.audioReactivity = 3, this.audioSmoothing = 0.9, this.idleMorphMultiplier = 0.25, this.colorContrast = 1.5, this.soundEnabled = !0, this.soundVolume = 0.25, this.soundPreset = "1", this.handleAudioTrack = async (i) => {
39074
39075
  const t = i.detail;
39075
39076
  if (!(!t || !this.audioAnalyzer))
39076
39077
  try {
@@ -39200,12 +39201,14 @@ let dt = class extends gs {
39200
39201
  }
39201
39202
  this.intersectionObserver = new IntersectionObserver(
39202
39203
  (e) => {
39203
- var t;
39204
- for (const n of e)
39205
- n.isIntersecting && !this.isOrbInitialized && (this.initializeOrb(), this.isOrbInitialized = !0, (t = this.intersectionObserver) == null || t.disconnect(), this.intersectionObserver = null);
39204
+ for (const t of e)
39205
+ t.isIntersecting && !this.isOrbInitialized ? this.intersectionTimeoutId || (this.intersectionTimeoutId = setTimeout(() => {
39206
+ var n;
39207
+ this.initializeOrb(), this.isOrbInitialized = !0, (n = this.intersectionObserver) == null || n.disconnect(), this.intersectionObserver = null, this.intersectionTimeoutId = null;
39208
+ }, 200), this.pendingTimers.add(this.intersectionTimeoutId)) : !t.isIntersecting && this.intersectionTimeoutId && (clearTimeout(this.intersectionTimeoutId), this.pendingTimers.delete(this.intersectionTimeoutId), this.intersectionTimeoutId = null);
39206
39209
  },
39207
39210
  { threshold: 0.5 }
39208
- // Trigger when 10% visible
39211
+ // Trigger when 50% visible
39209
39212
  ), this.intersectionObserver.observe(i);
39210
39213
  }
39211
39214
  updated(i) {