@vonage/client-sdk 2.6.2-snapshot.202608250912 → 2.6.2
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.
- package/dist/client/index.cjs +309 -289
- package/dist/client/index.mjs +309 -289
- package/dist/vonageClientSDK.js +309 -289
- package/dist/vonageClientSDK.min.js +14 -14
- package/dist/vonageClientSDK.min.mjs +13 -13
- package/dist/vonageClientSDK.mjs +309 -289
- package/package.json +1 -1
package/dist/vonageClientSDK.mjs
CHANGED
|
@@ -35837,7 +35837,7 @@ function requireKotlinDateTimeLibraryKotlinxDatetime () {
|
|
|
35837
35837
|
return tmp;
|
|
35838
35838
|
}
|
|
35839
35839
|
initMetadataForInterface(AbstractWithOffsetBuilder, 'AbstractWithOffsetBuilder', VOID, VOID, [WithUtcOffset]);
|
|
35840
|
-
initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder,
|
|
35840
|
+
initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithDate, WithTime, WithUtcOffset]);
|
|
35841
35841
|
initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
|
|
35842
35842
|
initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
|
|
35843
35843
|
initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
|
|
@@ -42943,16 +42943,6 @@ function requireClientsdkClientcore () {
|
|
|
42943
42943
|
initMetadataForCompanion(Companion_149);
|
|
42944
42944
|
initMetadataForObject($serializer_172, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
42945
42945
|
initMetadataForClass(SessionTerminatedEvent, 'SessionTerminatedEvent', VOID, VOID, [SocketEvent], VOID, VOID, {0: $serializer_getInstance_172});
|
|
42946
|
-
function onConversationEvent(event) {
|
|
42947
|
-
}
|
|
42948
|
-
initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
|
|
42949
|
-
function onRTCHangup(conversationId, legId, hangup) {
|
|
42950
|
-
}
|
|
42951
|
-
function onRTCTransfer(conversationId, legId) {
|
|
42952
|
-
}
|
|
42953
|
-
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
42954
|
-
}
|
|
42955
|
-
initMetadataForInterface(RTCEventListener, 'RTCEventListener');
|
|
42956
42946
|
function onAudioSay() {
|
|
42957
42947
|
}
|
|
42958
42948
|
function onAudioMuteUpdate(conversationId, legId, isMuted) {
|
|
@@ -42962,7 +42952,17 @@ function requireClientsdkClientcore () {
|
|
|
42962
42952
|
function onAudioDTMFUpdate(conversationId, legId, digits) {
|
|
42963
42953
|
}
|
|
42964
42954
|
initMetadataForInterface(AudioEventListener, 'AudioEventListener');
|
|
42965
|
-
|
|
42955
|
+
function onRTCHangup(conversationId, legId, hangup) {
|
|
42956
|
+
}
|
|
42957
|
+
function onRTCTransfer(conversationId, legId) {
|
|
42958
|
+
}
|
|
42959
|
+
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
42960
|
+
}
|
|
42961
|
+
initMetadataForInterface(RTCEventListener, 'RTCEventListener');
|
|
42962
|
+
function onConversationEvent(event) {
|
|
42963
|
+
}
|
|
42964
|
+
initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
|
|
42965
|
+
initMetadataForClass(ChatAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, RTCEventListener, ConversationEventListener]);
|
|
42966
42966
|
initMetadataForClass(ChatAPIImpl, 'ChatAPIImpl', VOID, VOID, [ChatAPI]);
|
|
42967
42967
|
initMetadataForClass(LoggingLevel, 'LoggingLevel', VOID, Enum);
|
|
42968
42968
|
initMetadataForObject(DefaultConfig, 'DefaultConfig');
|
|
@@ -42975,6 +42975,7 @@ function requireClientsdkClientcore () {
|
|
|
42975
42975
|
initMetadataForClass(NoCallFound, 'NoCallFound', NoCallFound, InternalError);
|
|
42976
42976
|
initMetadataForClass(NoCallMediaFound, 'NoCallMediaFound', NoCallMediaFound, InternalError);
|
|
42977
42977
|
initMetadataForClass(MediaTimeout, 'MediaTimeout', MediaTimeout, InternalError);
|
|
42978
|
+
initMetadataForClass(MediaSetupFailed, 'MediaSetupFailed', VOID, InternalError);
|
|
42978
42979
|
initMetadataForClass(NoInviteFound, 'NoInviteFound', NoInviteFound, InternalError);
|
|
42979
42980
|
initMetadataForClass(InvalidCallAction, 'InvalidCallAction', InvalidCallAction, InternalError);
|
|
42980
42981
|
initMetadataForClass(NoOfferFound, 'NoOfferFound', NoOfferFound, InternalError);
|
|
@@ -43099,7 +43100,7 @@ function requireClientsdkClientcore () {
|
|
|
43099
43100
|
initMetadataForClass(HangupReason, 'HangupReason', VOID, Enum);
|
|
43100
43101
|
initMetadataForClass(LegStatus, 'LegStatus', VOID, Enum);
|
|
43101
43102
|
initMetadataForClass(CallDisconnectReason, 'CallDisconnectReason', VOID, Enum);
|
|
43102
|
-
initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [
|
|
43103
|
+
initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, RTCEventListener, ConversationEventListener]);
|
|
43103
43104
|
initMetadataForClass(VoiceAPIImpl, 'VoiceAPIImpl');
|
|
43104
43105
|
initMetadataForInterface(CallEvent, 'CallEvent');
|
|
43105
43106
|
initMetadataForClass(SetupOutboundCall, 'SetupOutboundCall', VOID, VOID, [CallEvent]);
|
|
@@ -43319,7 +43320,7 @@ function requireClientsdkClientcore () {
|
|
|
43319
43320
|
initMetadataForClass(runAfterDelay$1);
|
|
43320
43321
|
//endregion
|
|
43321
43322
|
function BuildKonfig() {
|
|
43322
|
-
this.p1y_1 = '2.6.2
|
|
43323
|
+
this.p1y_1 = '2.6.2';
|
|
43323
43324
|
}
|
|
43324
43325
|
var BuildKonfig_instance;
|
|
43325
43326
|
function EmergencyCallOptions(ringbackTone) {
|
|
@@ -73988,6 +73989,10 @@ function requireClientsdkClientcore () {
|
|
|
73988
73989
|
InternalError.call(this, 'voice:error:media_timeout', "The call could not be established: the media connection failed to set up or the call wasn't answered in time. Check the network connection and try again.");
|
|
73989
73990
|
captureStack(this, MediaTimeout);
|
|
73990
73991
|
}
|
|
73992
|
+
function MediaSetupFailed(attempts) {
|
|
73993
|
+
InternalError.call(this, 'voice:error:media_setup_failed', 'The call could not be established: no media reached Vonage after ' + attempts + ' attempt' + (attempts === 1 ? '' : 's') + '. The network is most likely blocking the media connection \u2014 check for a restrictive firewall, proxy or VPN and try again.');
|
|
73994
|
+
captureStack(this, MediaSetupFailed);
|
|
73995
|
+
}
|
|
73991
73996
|
function NoInviteFound() {
|
|
73992
73997
|
InternalError.call(this, 'voice:error:no_invite_found', 'No invite found');
|
|
73993
73998
|
captureStack(this, NoInviteFound);
|
|
@@ -78449,6 +78454,11 @@ function requireClientsdkClientcore () {
|
|
|
78449
78454
|
return Unit_instance;
|
|
78450
78455
|
};
|
|
78451
78456
|
}
|
|
78457
|
+
function attemptOutboundCall($this, user, context, attempt, backoff, callback) {
|
|
78458
|
+
var setup = new SetupOutboundCall(user, context);
|
|
78459
|
+
var meta = new ActionMeta(VOID, VOID, VoiceAPIImpl$attemptOutboundCall$lambda($this, callback, attempt, user, context));
|
|
78460
|
+
$this.g44_1.z1z(backoff == null ? new Action_0(setup, meta) : new Action_0(new TimeoutAction(setup, backoff), meta));
|
|
78461
|
+
}
|
|
78452
78462
|
function dispatchCallAction($this, callId, action) {
|
|
78453
78463
|
var tmp0_elvis_lhs = getCallStateByLeg($this, callId);
|
|
78454
78464
|
var tmp;
|
|
@@ -78458,10 +78468,10 @@ function requireClientsdkClientcore () {
|
|
|
78458
78468
|
tmp = tmp0_elvis_lhs;
|
|
78459
78469
|
}
|
|
78460
78470
|
var call = tmp;
|
|
78461
|
-
var callMemberShipState = call.
|
|
78471
|
+
var callMemberShipState = call.n44_1.g2();
|
|
78462
78472
|
var tmp_0;
|
|
78463
78473
|
if (callMemberShipState instanceof Joined) {
|
|
78464
|
-
action(callMemberShipState.
|
|
78474
|
+
action(callMemberShipState.t44_1, callMemberShipState.u44_1);
|
|
78465
78475
|
tmp_0 = null;
|
|
78466
78476
|
} else {
|
|
78467
78477
|
tmp_0 = new InvalidCallAction();
|
|
@@ -78477,15 +78487,15 @@ function requireClientsdkClientcore () {
|
|
|
78477
78487
|
;
|
|
78478
78488
|
else {
|
|
78479
78489
|
// Inline function 'kotlin.let' call
|
|
78480
|
-
reportError_0($this.
|
|
78490
|
+
reportError_0($this.g44_1, callback, tmp0_safe_receiver, trail, VOID, callId);
|
|
78481
78491
|
}
|
|
78482
78492
|
}
|
|
78483
78493
|
function getCallStateByLeg($this, legId) {
|
|
78484
|
-
var state = $this.
|
|
78494
|
+
var state = $this.g44_1.l1z(getKClass(CallReducer));
|
|
78485
78495
|
return state.w44_1.j2(legId);
|
|
78486
78496
|
}
|
|
78487
78497
|
function getCallStateByConversation($this, cid) {
|
|
78488
|
-
var state = $this.
|
|
78498
|
+
var state = $this.g44_1.l1z(getKClass(CallReducer));
|
|
78489
78499
|
var tmp0_safe_receiver = state.x44_1.j2(cid);
|
|
78490
78500
|
var tmp;
|
|
78491
78501
|
if (tmp0_safe_receiver == null) {
|
|
@@ -78497,16 +78507,16 @@ function requireClientsdkClientcore () {
|
|
|
78497
78507
|
return tmp;
|
|
78498
78508
|
}
|
|
78499
78509
|
function getLegIdByConversation($this, cid) {
|
|
78500
|
-
var state = $this.
|
|
78510
|
+
var state = $this.g44_1.l1z(getKClass(CallReducer));
|
|
78501
78511
|
return state.x44_1.j2(cid);
|
|
78502
78512
|
}
|
|
78503
78513
|
function isFromMe($this, userId) {
|
|
78504
|
-
var state = $this.
|
|
78514
|
+
var state = $this.g44_1.l1z(getKClass(SessionReducer));
|
|
78505
78515
|
var tmp0_safe_receiver = state.g2r_1.g2().s3j();
|
|
78506
78516
|
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u3q_1) === userId;
|
|
78507
78517
|
}
|
|
78508
78518
|
function invokeListener($this, conversationId, givenLegId, fn) {
|
|
78509
|
-
var tmp0_safe_receiver = $this.
|
|
78519
|
+
var tmp0_safe_receiver = $this.i44_1;
|
|
78510
78520
|
if (tmp0_safe_receiver == null)
|
|
78511
78521
|
;
|
|
78512
78522
|
else {
|
|
@@ -78536,13 +78546,13 @@ function requireClientsdkClientcore () {
|
|
|
78536
78546
|
var tmp_2;
|
|
78537
78547
|
if (tmp2_elvis_lhs == null) {
|
|
78538
78548
|
var tmp3_safe_receiver = getCallStateByConversation($this, conversationId);
|
|
78539
|
-
tmp_2 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
78549
|
+
tmp_2 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m44_1;
|
|
78540
78550
|
} else {
|
|
78541
78551
|
tmp_2 = tmp2_elvis_lhs;
|
|
78542
78552
|
}
|
|
78543
78553
|
var legId = tmp_2;
|
|
78544
78554
|
if (legId == null) {
|
|
78545
|
-
$this.
|
|
78555
|
+
$this.h44_1.k43('Call Id for Conversation Id: ' + conversationId + ' was not found');
|
|
78546
78556
|
} else
|
|
78547
78557
|
fn(tmp0_safe_receiver, legId);
|
|
78548
78558
|
}
|
|
@@ -78565,7 +78575,7 @@ function requireClientsdkClientcore () {
|
|
|
78565
78575
|
} else {
|
|
78566
78576
|
// Inline function 'kotlin.takeIf' call
|
|
78567
78577
|
var tmp_0;
|
|
78568
|
-
var tmp_1 = tmp0_safe_receiver.
|
|
78578
|
+
var tmp_1 = tmp0_safe_receiver.q44_1;
|
|
78569
78579
|
if (tmp_1 instanceof Reconnecting) {
|
|
78570
78580
|
tmp_0 = tmp0_safe_receiver;
|
|
78571
78581
|
} else {
|
|
@@ -78581,7 +78591,7 @@ function requireClientsdkClientcore () {
|
|
|
78581
78591
|
tmp_2 = tmp1_elvis_lhs;
|
|
78582
78592
|
}
|
|
78583
78593
|
var updatedCall = tmp_2;
|
|
78584
|
-
var tmp_3 = updatedCall.
|
|
78594
|
+
var tmp_3 = updatedCall.n44_1.g2();
|
|
78585
78595
|
var tmp2_elvis_lhs = tmp_3 instanceof Joined ? tmp_3 : null;
|
|
78586
78596
|
var tmp_4;
|
|
78587
78597
|
if (tmp2_elvis_lhs == null) {
|
|
@@ -78590,36 +78600,36 @@ function requireClientsdkClientcore () {
|
|
|
78590
78600
|
tmp_4 = tmp2_elvis_lhs;
|
|
78591
78601
|
}
|
|
78592
78602
|
var member = tmp_4;
|
|
78593
|
-
var tmp_5 = new CallReconnect(updatedCall.
|
|
78603
|
+
var tmp_5 = new CallReconnect(updatedCall.m44_1, member.u44_1, member.t44_1);
|
|
78594
78604
|
var reconnectAction = new Action_0(tmp_5, new ActionMeta(VOID, VOID, VoiceAPIImpl$reconnectCall$lambda_0(store, updatedCall)));
|
|
78595
78605
|
store.z1z(reconnectAction);
|
|
78596
78606
|
}
|
|
78597
78607
|
function onCallMediaChange($this, callState) {
|
|
78598
|
-
var tmp = callState.
|
|
78608
|
+
var tmp = callState.o44_1;
|
|
78599
78609
|
if (tmp instanceof Failed) {
|
|
78600
|
-
$this.
|
|
78610
|
+
$this.g44_1.z1z(Action_init_$Create$(new MediaDisable(callState.m44_1)));
|
|
78601
78611
|
} else {
|
|
78602
|
-
var tmp_0 = callState.
|
|
78612
|
+
var tmp_0 = callState.o44_1.g2();
|
|
78603
78613
|
if (tmp_0 instanceof Completed) {
|
|
78604
|
-
$this.
|
|
78614
|
+
$this.g44_1.z1z(Action_init_$Create$(new MediaDisable(callState.m44_1)));
|
|
78605
78615
|
}
|
|
78606
78616
|
}
|
|
78607
78617
|
}
|
|
78608
78618
|
function onCallMemberChange($this, callState) {
|
|
78609
|
-
if (callState.
|
|
78610
|
-
var tmp1_subject = callState.
|
|
78619
|
+
if (callState.n44_1 instanceof Failed) {
|
|
78620
|
+
var tmp1_subject = callState.n44_1.g2();
|
|
78611
78621
|
if (tmp1_subject instanceof Knocking) {
|
|
78612
|
-
$this.
|
|
78622
|
+
$this.g44_1.z1z(Action_init_$Create$(new MediaDisable(callState.m44_1)));
|
|
78613
78623
|
} else {
|
|
78614
78624
|
if (tmp1_subject instanceof Left) {
|
|
78615
|
-
$this.
|
|
78625
|
+
$this.g44_1.z1z(Action_init_$Create$(new MediaDisable(callState.m44_1)));
|
|
78616
78626
|
}
|
|
78617
78627
|
}
|
|
78618
78628
|
}
|
|
78619
78629
|
}
|
|
78620
78630
|
function getCallDetailsAndDispatchCallReconnect($this, legId, callback) {
|
|
78621
78631
|
var tmp = new GetLegRequest(legId);
|
|
78622
|
-
$this.
|
|
78632
|
+
$this.g44_1.z1z(new Action_0(tmp, new ActionMeta(VOID, legId, VoiceAPIImpl$getCallDetailsAndDispatchCallReconnect$lambda($this, callback, legId))));
|
|
78623
78633
|
}
|
|
78624
78634
|
function VoiceAPIImpl$getLeg$lambda($callback, this$0, $legId) {
|
|
78625
78635
|
return function (response) {
|
|
@@ -78627,7 +78637,7 @@ function requireClientsdkClientcore () {
|
|
|
78627
78637
|
var leg = Companion_instance_160.r3y(response);
|
|
78628
78638
|
$callback(null, leg);
|
|
78629
78639
|
} else {
|
|
78630
|
-
reportError(this$0.
|
|
78640
|
+
reportError(this$0.g44_1, $callback, response, ErrorTrail_GET_LEG_getInstance(), VOID, $legId);
|
|
78631
78641
|
}
|
|
78632
78642
|
return Unit_instance;
|
|
78633
78643
|
};
|
|
@@ -78665,7 +78675,7 @@ function requireClientsdkClientcore () {
|
|
|
78665
78675
|
var page = new LegsPage(legs, previous, next);
|
|
78666
78676
|
$callback(null, page);
|
|
78667
78677
|
} else {
|
|
78668
|
-
reportError(this$0.
|
|
78678
|
+
reportError(this$0.g44_1, $callback, conversationLegsResponse, ErrorTrail_GET_CALL_LEGS_FETCH_FAILED_getInstance(), $conversationId, $callId);
|
|
78669
78679
|
}
|
|
78670
78680
|
return Unit_instance;
|
|
78671
78681
|
};
|
|
@@ -78678,7 +78688,7 @@ function requireClientsdkClientcore () {
|
|
|
78678
78688
|
if (tmp1_elvis_lhs == null) {
|
|
78679
78689
|
// Inline function 'kotlin.run' call
|
|
78680
78690
|
var $this$run = this$0;
|
|
78681
|
-
reportError($this$run.
|
|
78691
|
+
reportError($this$run.g44_1, $callback, new NoCallMediaFound(), ErrorTrail_GET_CALL_LEGS_NO_MEDIA_getInstance(), $conversationId, $callId);
|
|
78682
78692
|
return Unit_instance;
|
|
78683
78693
|
} else {
|
|
78684
78694
|
tmp_0 = tmp1_elvis_lhs;
|
|
@@ -78690,25 +78700,25 @@ function requireClientsdkClientcore () {
|
|
|
78690
78700
|
var tmp_2 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.q42_1;
|
|
78691
78701
|
var tmp4_safe_receiver = $parameters;
|
|
78692
78702
|
var tmp_3 = new GetConversationLegsRequest($conversationId, tmp_1, tmp_2, tmp4_safe_receiver == null ? null : tmp4_safe_receiver.r42_1);
|
|
78693
|
-
this$0.
|
|
78703
|
+
this$0.g44_1.z1z(new Action_0(tmp_3, new ActionMeta(VOID, VOID, VoiceAPIImpl$getCallLegs$lambda$lambda(conversationMedia, $callback, this$0, $conversationId, $callId))));
|
|
78694
78704
|
} else {
|
|
78695
|
-
reportError(this$0.
|
|
78705
|
+
reportError(this$0.g44_1, $callback, getConversationResponse, ErrorTrail_GET_CALL_LEGS_CONVERSATION_FAILED_getInstance(), $conversationId, $callId);
|
|
78696
78706
|
}
|
|
78697
78707
|
return Unit_instance;
|
|
78698
78708
|
};
|
|
78699
78709
|
}
|
|
78700
|
-
function VoiceAPIImpl$
|
|
78710
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda$lambda$lambda($call, $cancel, this$0, $callback, $legId) {
|
|
78701
78711
|
return function () {
|
|
78702
|
-
if ($call.
|
|
78712
|
+
if ($call.r44_1.v2_1 === 5) {
|
|
78703
78713
|
var tmp1_safe_receiver = $cancel._v;
|
|
78704
78714
|
if (tmp1_safe_receiver == null)
|
|
78705
78715
|
;
|
|
78706
78716
|
else
|
|
78707
78717
|
tmp1_safe_receiver();
|
|
78708
|
-
reportError(this$0.
|
|
78709
|
-
this$0.
|
|
78718
|
+
reportError(this$0.g44_1, $callback, new MediaTimeout(), $call.s44_1 ? ErrorTrail_OUTBOUND_MEMBER_JOIN_TIMEOUT_getInstance() : ErrorTrail_OUTBOUND_POSTKNOCK_MEDIA_FAILED_getInstance(), VOID, $legId);
|
|
78719
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallCleanup($legId)));
|
|
78710
78720
|
} else {
|
|
78711
|
-
if ($call.
|
|
78721
|
+
if ($call.n44_1.g2() instanceof Joined) {
|
|
78712
78722
|
var tmp3_safe_receiver = $cancel._v;
|
|
78713
78723
|
if (tmp3_safe_receiver == null)
|
|
78714
78724
|
;
|
|
@@ -78720,46 +78730,51 @@ function requireClientsdkClientcore () {
|
|
|
78720
78730
|
return Unit_instance;
|
|
78721
78731
|
};
|
|
78722
78732
|
}
|
|
78723
|
-
function VoiceAPIImpl$
|
|
78733
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda$lambda($call, $cancel, this$0, $callback, $legId) {
|
|
78724
78734
|
return function () {
|
|
78725
|
-
return new StoredSubscription(VoiceAPIImpl$
|
|
78735
|
+
return new StoredSubscription(VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda$lambda$lambda($call, $cancel, this$0, $callback, $legId));
|
|
78726
78736
|
};
|
|
78727
78737
|
}
|
|
78728
|
-
function VoiceAPIImpl$
|
|
78738
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda(this$0, $call, $callback, $legId, $cancel) {
|
|
78729
78739
|
return function (it) {
|
|
78730
78740
|
if (it instanceof Exception) {
|
|
78731
|
-
this$0.
|
|
78732
|
-
reportError(this$0.
|
|
78741
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallKnockingRequestFailure($call.m44_1, it)));
|
|
78742
|
+
reportError(this$0.g44_1, $callback, it, ErrorTrail_OUTBOUND_KNOCK_FAILED_getInstance(), VOID, $legId);
|
|
78733
78743
|
} else {
|
|
78734
78744
|
var tmp_0 = getKClass(CallReducer);
|
|
78735
|
-
$cancel._v = this$0.
|
|
78745
|
+
$cancel._v = this$0.g44_1.r20(tmp_0, VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda$lambda($call, $cancel, this$0, $callback, $legId));
|
|
78736
78746
|
}
|
|
78737
78747
|
return Unit_instance;
|
|
78738
78748
|
};
|
|
78739
78749
|
}
|
|
78740
|
-
function VoiceAPIImpl$
|
|
78750
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda_0($attempt, $legId) {
|
|
78751
|
+
return function () {
|
|
78752
|
+
return 'Media setup failed on attempt ' + $attempt + ' of leg ' + $legId + ', retrying with a fresh leg';
|
|
78753
|
+
};
|
|
78754
|
+
}
|
|
78755
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda_1() {
|
|
78741
78756
|
return 'Unexpected Media Connection Transition during setup';
|
|
78742
78757
|
}
|
|
78743
|
-
function VoiceAPIImpl$
|
|
78758
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda(this$0, $legId, $cancel, $attempt, $user, $context, $callback) {
|
|
78744
78759
|
return function () {
|
|
78745
|
-
var state = this$0.
|
|
78760
|
+
var state = this$0.g44_1.l1z(getKClass(CallReducer));
|
|
78746
78761
|
var tmp0_safe_receiver = state.w44_1.j2($legId);
|
|
78747
78762
|
if (tmp0_safe_receiver == null)
|
|
78748
78763
|
;
|
|
78749
78764
|
else {
|
|
78750
78765
|
// Inline function 'kotlin.let' call
|
|
78751
|
-
switch (tmp0_safe_receiver.
|
|
78766
|
+
switch (tmp0_safe_receiver.r44_1.v2_1) {
|
|
78752
78767
|
case 3:
|
|
78753
78768
|
var tmp1_safe_receiver = $cancel._v;
|
|
78754
78769
|
if (tmp1_safe_receiver == null)
|
|
78755
78770
|
;
|
|
78756
78771
|
else
|
|
78757
78772
|
tmp1_safe_receiver();
|
|
78758
|
-
var tmp2_safe_receiver = tmp0_safe_receiver.
|
|
78773
|
+
var tmp2_safe_receiver = tmp0_safe_receiver.l44_1;
|
|
78759
78774
|
var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j2('to');
|
|
78760
78775
|
var tmp3_elvis_lhs = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
|
|
78761
|
-
var tmp_0 = new AppKnockingRequest(tmp0_safe_receiver.
|
|
78762
|
-
this$0.
|
|
78776
|
+
var tmp_0 = new AppKnockingRequest(tmp0_safe_receiver.k44_1, new PhoneChannelEndpoint(tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs), $legId, tmp0_safe_receiver.l44_1);
|
|
78777
|
+
this$0.g44_1.z1z(new Action_0(tmp_0, new ActionMeta(VOID, tmp0_safe_receiver.m44_1, VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda(this$0, tmp0_safe_receiver, $callback, $legId, $cancel))));
|
|
78763
78778
|
break;
|
|
78764
78779
|
case 2:
|
|
78765
78780
|
case 1:
|
|
@@ -78771,18 +78786,24 @@ function requireClientsdkClientcore () {
|
|
|
78771
78786
|
;
|
|
78772
78787
|
else
|
|
78773
78788
|
tmp4_safe_receiver();
|
|
78774
|
-
|
|
78775
|
-
|
|
78789
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallCleanup($legId)));
|
|
78790
|
+
if ($attempt <= 1) {
|
|
78791
|
+
this$0.h44_1.a45(VOID, VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda_0($attempt, $legId));
|
|
78792
|
+
attemptOutboundCall(this$0, $user, $context, $attempt + 1 | 0, 500, $callback);
|
|
78793
|
+
} else {
|
|
78794
|
+
reportError(this$0.g44_1, $callback, new MediaSetupFailed($attempt), ErrorTrail_OUTBOUND_MEDIA_FAILED_getInstance(), VOID, $legId);
|
|
78795
|
+
}
|
|
78796
|
+
|
|
78776
78797
|
break;
|
|
78777
78798
|
case 6:
|
|
78778
78799
|
case 4:
|
|
78779
|
-
this$0.
|
|
78800
|
+
this$0.h44_1.a45(VOID, VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda_1);
|
|
78780
78801
|
var tmp5_safe_receiver = $cancel._v;
|
|
78781
78802
|
if (tmp5_safe_receiver == null)
|
|
78782
78803
|
;
|
|
78783
78804
|
else
|
|
78784
78805
|
tmp5_safe_receiver();
|
|
78785
|
-
this$0.
|
|
78806
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallCleanup($legId)));
|
|
78786
78807
|
break;
|
|
78787
78808
|
default:
|
|
78788
78809
|
noWhenBranchMatchedException();
|
|
@@ -78792,27 +78813,27 @@ function requireClientsdkClientcore () {
|
|
|
78792
78813
|
return Unit_instance;
|
|
78793
78814
|
};
|
|
78794
78815
|
}
|
|
78795
|
-
function VoiceAPIImpl$
|
|
78816
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda(this$0, $legId, $cancel, $attempt, $user, $context, $callback) {
|
|
78796
78817
|
return function () {
|
|
78797
|
-
return new StoredSubscription(VoiceAPIImpl$
|
|
78818
|
+
return new StoredSubscription(VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda(this$0, $legId, $cancel, $attempt, $user, $context, $callback));
|
|
78798
78819
|
};
|
|
78799
78820
|
}
|
|
78800
|
-
function VoiceAPIImpl$
|
|
78821
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda(this$0, $callback, $attempt, $user, $context) {
|
|
78801
78822
|
return function (it) {
|
|
78802
78823
|
if (!(it == null) ? typeof it === 'string' : false) {
|
|
78803
78824
|
var legId = it;
|
|
78804
78825
|
var cancel = {_v: null};
|
|
78805
78826
|
var tmp_0 = getKClass(CallReducer);
|
|
78806
|
-
cancel._v = this$0.
|
|
78827
|
+
cancel._v = this$0.g44_1.r20(tmp_0, VoiceAPIImpl$attemptOutboundCall$lambda$lambda(this$0, legId, cancel, $attempt, $user, $context, $callback));
|
|
78807
78828
|
} else {
|
|
78808
|
-
reportError(this$0.
|
|
78829
|
+
reportError(this$0.g44_1, $callback, it, ErrorTrail_OUTBOUND_SETUP_getInstance());
|
|
78809
78830
|
}
|
|
78810
78831
|
return Unit_instance;
|
|
78811
78832
|
};
|
|
78812
78833
|
}
|
|
78813
78834
|
function VoiceAPIImpl$reconnectCall$lambda$lambda(this$0, $callId, $once, $callback) {
|
|
78814
78835
|
return function () {
|
|
78815
|
-
var state = this$0.
|
|
78836
|
+
var state = this$0.g44_1.l1z(getKClass(CallReducer));
|
|
78816
78837
|
var tmp0_elvis_lhs = state.w44_1.j2($callId);
|
|
78817
78838
|
var tmp;
|
|
78818
78839
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -78821,14 +78842,14 @@ function requireClientsdkClientcore () {
|
|
|
78821
78842
|
tmp = tmp0_elvis_lhs;
|
|
78822
78843
|
}
|
|
78823
78844
|
var call = tmp;
|
|
78824
|
-
var legState = call.
|
|
78845
|
+
var legState = call.o44_1;
|
|
78825
78846
|
if (legState.g2() instanceof Started) {
|
|
78826
78847
|
var tmp2_safe_receiver = $once._v;
|
|
78827
78848
|
if (tmp2_safe_receiver == null)
|
|
78828
78849
|
;
|
|
78829
78850
|
else
|
|
78830
78851
|
tmp2_safe_receiver();
|
|
78831
|
-
if (call.
|
|
78852
|
+
if (call.j44_1) {
|
|
78832
78853
|
$callback(null);
|
|
78833
78854
|
}
|
|
78834
78855
|
}
|
|
@@ -78842,11 +78863,11 @@ function requireClientsdkClientcore () {
|
|
|
78842
78863
|
}
|
|
78843
78864
|
function VoiceAPIImpl$answerCall$lambda$lambda$lambda$lambda(this$0, $legIdOrErr, $callback, $invite, $cancel) {
|
|
78844
78865
|
return function () {
|
|
78845
|
-
var call = this$0.
|
|
78846
|
-
var tmp1_subject = call == null ? null : call.
|
|
78866
|
+
var call = this$0.g44_1.l1z(getKClass(CallReducer)).w44_1.j2($legIdOrErr);
|
|
78867
|
+
var tmp1_subject = call == null ? null : call.r44_1;
|
|
78847
78868
|
switch (tmp1_subject == null ? -1 : tmp1_subject.v2_1) {
|
|
78848
78869
|
case -1:
|
|
78849
|
-
reportError_0(this$0.
|
|
78870
|
+
reportError_0(this$0.g44_1, $callback, new NoInviteFound(), ErrorTrail_ANSWER_CALL_GONE_getInstance(), $invite.e45_1, $legIdOrErr);
|
|
78850
78871
|
// Inline function 'kotlin.also' call
|
|
78851
78872
|
|
|
78852
78873
|
var tmp0_safe_receiver = $cancel._v;
|
|
@@ -78868,7 +78889,7 @@ function requireClientsdkClientcore () {
|
|
|
78868
78889
|
// Inline function 'kotlin.also' call
|
|
78869
78890
|
|
|
78870
78891
|
tmp3_safe_receiver == null || tmp3_safe_receiver();
|
|
78871
|
-
reportError_0(this$0.
|
|
78892
|
+
reportError_0(this$0.g44_1, $callback, new InboundCallFailed(), ErrorTrail_ANSWER_MEDIA_FAILED_getInstance(), $invite.e45_1, $legIdOrErr);
|
|
78872
78893
|
break;
|
|
78873
78894
|
}
|
|
78874
78895
|
return Unit_instance;
|
|
@@ -78884,9 +78905,9 @@ function requireClientsdkClientcore () {
|
|
|
78884
78905
|
if (!(legIdOrErr == null) ? typeof legIdOrErr === 'string' : false) {
|
|
78885
78906
|
var cancel = {_v: null};
|
|
78886
78907
|
var tmp_0 = getKClass(CallReducer);
|
|
78887
|
-
cancel._v = this$0.
|
|
78908
|
+
cancel._v = this$0.g44_1.r20(tmp_0, VoiceAPIImpl$answerCall$lambda$lambda$lambda(this$0, legIdOrErr, $callback, $invite, cancel));
|
|
78888
78909
|
} else {
|
|
78889
|
-
reportError_0(this$0.
|
|
78910
|
+
reportError_0(this$0.g44_1, $callback, new InboundCallFailed(legIdOrErr instanceof Exception ? legIdOrErr : null), ErrorTrail_ANSWER_SETUP_getInstance(), $invite.e45_1, $callId);
|
|
78890
78911
|
}
|
|
78891
78912
|
return Unit_instance;
|
|
78892
78913
|
};
|
|
@@ -78894,16 +78915,16 @@ function requireClientsdkClientcore () {
|
|
|
78894
78915
|
function VoiceAPIImpl$answerCall$lambda(this$0, $callback, $invite, $callId) {
|
|
78895
78916
|
return function (it) {
|
|
78896
78917
|
if (it instanceof Exception) {
|
|
78897
|
-
reportError_0(this$0.
|
|
78918
|
+
reportError_0(this$0.g44_1, $callback, it, ErrorTrail_ANSWER_MEMBER_JOIN_FAILED_getInstance(), $invite.e45_1, $callId);
|
|
78898
78919
|
} else {
|
|
78899
78920
|
if ($invite.f45_1 == null) {
|
|
78900
78921
|
// Inline function 'kotlin.run' call
|
|
78901
78922
|
var $this$run = this$0;
|
|
78902
|
-
reportError_0($this$run.
|
|
78923
|
+
reportError_0($this$run.g44_1, $callback, new NoOfferFound(), ErrorTrail_ANSWER_NO_OFFER_getInstance(), $invite.e45_1, $callId);
|
|
78903
78924
|
return Unit_instance;
|
|
78904
78925
|
}
|
|
78905
78926
|
var tmp_0 = new SetupInboundCall($callId, $invite.e45_1, $invite.d45_1, $invite.b45_1, $invite.f45_1, null);
|
|
78906
|
-
this$0.
|
|
78927
|
+
this$0.g44_1.z1z(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$answerCall$lambda$lambda(this$0, $callback, $invite, $callId))));
|
|
78907
78928
|
}
|
|
78908
78929
|
return Unit_instance;
|
|
78909
78930
|
};
|
|
@@ -78911,7 +78932,7 @@ function requireClientsdkClientcore () {
|
|
|
78911
78932
|
function VoiceAPIImpl$actionOutcome$lambda(this$0, $callback, $trail, $callId) {
|
|
78912
78933
|
return function (result) {
|
|
78913
78934
|
if (result instanceof Exception) {
|
|
78914
|
-
reportError_0(this$0.
|
|
78935
|
+
reportError_0(this$0.g44_1, $callback, result, $trail, VOID, $callId);
|
|
78915
78936
|
} else {
|
|
78916
78937
|
$callback(null);
|
|
78917
78938
|
}
|
|
@@ -78921,9 +78942,9 @@ function requireClientsdkClientcore () {
|
|
|
78921
78942
|
function VoiceAPIImpl$mute$lambda$lambda(this$0, $callback, $callId, $cid, $mid) {
|
|
78922
78943
|
return function (muteOutcome) {
|
|
78923
78944
|
if (muteOutcome instanceof Exception) {
|
|
78924
|
-
reportError_0(this$0.
|
|
78945
|
+
reportError_0(this$0.g44_1, $callback, muteOutcome, ErrorTrail_MUTE_MEDIA_FAILED_getInstance(), VOID, $callId);
|
|
78925
78946
|
} else {
|
|
78926
|
-
this$0.
|
|
78947
|
+
this$0.g44_1.z1z(new Action_0(new LegMuteRequest($cid, $callId, $mid), new ActionMeta(VOID, $callId, actionOutcome(this$0, ErrorTrail_MUTE_REQUEST_FAILED_getInstance(), $callId, $callback))));
|
|
78927
78948
|
}
|
|
78928
78949
|
return Unit_instance;
|
|
78929
78950
|
};
|
|
@@ -78931,16 +78952,16 @@ function requireClientsdkClientcore () {
|
|
|
78931
78952
|
function VoiceAPIImpl$mute$lambda(this$0, $callId, $callback) {
|
|
78932
78953
|
return function (cid, mid) {
|
|
78933
78954
|
var tmp = new Mute($callId);
|
|
78934
|
-
this$0.
|
|
78955
|
+
this$0.g44_1.z1z(new Action_0(tmp, new ActionMeta(VOID, $callId, VoiceAPIImpl$mute$lambda$lambda(this$0, $callback, $callId, cid, mid))));
|
|
78935
78956
|
return Unit_instance;
|
|
78936
78957
|
};
|
|
78937
78958
|
}
|
|
78938
78959
|
function VoiceAPIImpl$unmute$lambda$lambda(this$0, $callback, $callId, $cid, $mid) {
|
|
78939
78960
|
return function (unmuteOutcome) {
|
|
78940
78961
|
if (unmuteOutcome instanceof Exception) {
|
|
78941
|
-
reportError_0(this$0.
|
|
78962
|
+
reportError_0(this$0.g44_1, $callback, unmuteOutcome, ErrorTrail_UNMUTE_MEDIA_FAILED_getInstance(), VOID, $callId);
|
|
78942
78963
|
} else {
|
|
78943
|
-
this$0.
|
|
78964
|
+
this$0.g44_1.z1z(new Action_0(new LegUnmuteRequest($cid, $callId, $mid), new ActionMeta(VOID, $callId, actionOutcome(this$0, ErrorTrail_UNMUTE_REQUEST_FAILED_getInstance(), $callId, $callback))));
|
|
78944
78965
|
}
|
|
78945
78966
|
return Unit_instance;
|
|
78946
78967
|
};
|
|
@@ -78948,34 +78969,34 @@ function requireClientsdkClientcore () {
|
|
|
78948
78969
|
function VoiceAPIImpl$unmute$lambda(this$0, $callId, $callback) {
|
|
78949
78970
|
return function (cid, mid) {
|
|
78950
78971
|
var tmp = new Unmute($callId);
|
|
78951
|
-
this$0.
|
|
78972
|
+
this$0.g44_1.z1z(new Action_0(tmp, new ActionMeta(VOID, $callId, VoiceAPIImpl$unmute$lambda$lambda(this$0, $callback, $callId, cid, mid))));
|
|
78952
78973
|
return Unit_instance;
|
|
78953
78974
|
};
|
|
78954
78975
|
}
|
|
78955
78976
|
function VoiceAPIImpl$enableEarmuff$lambda(this$0, $callId, $callback) {
|
|
78956
78977
|
return function (cid, mid) {
|
|
78957
|
-
this$0.
|
|
78958
|
-
this$0.
|
|
78978
|
+
this$0.g44_1.z1z(Action_init_$Create$(new EnableEarmuff($callId)));
|
|
78979
|
+
this$0.g44_1.z1z(new Action_0(new LegEarmuffEnableRequest(cid, $callId, mid), new ActionMeta(VOID, $callId, actionOutcome(this$0, ErrorTrail_ENABLE_EARMUFF_REQUEST_FAILED_getInstance(), $callId, $callback))));
|
|
78959
78980
|
return Unit_instance;
|
|
78960
78981
|
};
|
|
78961
78982
|
}
|
|
78962
78983
|
function VoiceAPIImpl$disableEarmuff$lambda(this$0, $callId, $callback) {
|
|
78963
78984
|
return function (cid, mid) {
|
|
78964
|
-
this$0.
|
|
78965
|
-
this$0.
|
|
78985
|
+
this$0.g44_1.z1z(Action_init_$Create$(new DisableEarmuff($callId)));
|
|
78986
|
+
this$0.g44_1.z1z(new Action_0(new LegEarmuffDisableRequest(cid, $callId, mid), new ActionMeta(VOID, $callId, actionOutcome(this$0, ErrorTrail_DISABLE_EARMUFF_REQUEST_FAILED_getInstance(), $callId, $callback))));
|
|
78966
78987
|
return Unit_instance;
|
|
78967
78988
|
};
|
|
78968
78989
|
}
|
|
78969
78990
|
function VoiceAPIImpl$sendDTMF$lambda(this$0, $callId, $digits, $callback) {
|
|
78970
78991
|
return function (cid, mid) {
|
|
78971
|
-
this$0.
|
|
78972
|
-
this$0.
|
|
78992
|
+
this$0.g44_1.z1z(Action_init_$Create$(new DisableEarmuff($callId)));
|
|
78993
|
+
this$0.g44_1.z1z(new Action_0(new LegDTMFRequest(cid, $callId, mid, $digits), new ActionMeta(VOID, $callId, actionOutcome(this$0, ErrorTrail_SEND_DTMF_REQUEST_FAILED_getInstance(), $callId, $callback))));
|
|
78973
78994
|
return Unit_instance;
|
|
78974
78995
|
};
|
|
78975
78996
|
}
|
|
78976
78997
|
function VoiceAPIImpl$say$lambda(this$0, $text, $level, $loop, $queue, $voiceName, $ssml, $callId, $callback) {
|
|
78977
78998
|
return function (cid, mid) {
|
|
78978
|
-
this$0.
|
|
78999
|
+
this$0.g44_1.z1z(new Action_0(new AudioSayRequest(cid, mid, $text, $level, $loop, $queue, $voiceName, $ssml), new ActionMeta(VOID, $callId, actionOutcome(this$0, ErrorTrail_SAY_REQUEST_FAILED_getInstance(), $callId, $callback))));
|
|
78979
79000
|
return Unit_instance;
|
|
78980
79001
|
};
|
|
78981
79002
|
}
|
|
@@ -78990,7 +79011,7 @@ function requireClientsdkClientcore () {
|
|
|
78990
79011
|
tmp = tmp0_elvis_lhs;
|
|
78991
79012
|
}
|
|
78992
79013
|
var call = tmp;
|
|
78993
|
-
var tmp_1 = call.
|
|
79014
|
+
var tmp_1 = call.q44_1;
|
|
78994
79015
|
if (tmp_1 instanceof Connected) {
|
|
78995
79016
|
var tmp1_safe_receiver = $cancel._v;
|
|
78996
79017
|
if (tmp1_safe_receiver == null)
|
|
@@ -78998,7 +79019,7 @@ function requireClientsdkClientcore () {
|
|
|
78998
79019
|
else
|
|
78999
79020
|
tmp1_safe_receiver();
|
|
79000
79021
|
}
|
|
79001
|
-
var tmp_2 = call.
|
|
79022
|
+
var tmp_2 = call.q44_1;
|
|
79002
79023
|
var tmp2_safe_receiver = tmp_2 instanceof Reconnecting ? tmp_2 : null;
|
|
79003
79024
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.n45_1;
|
|
79004
79025
|
var tmp_3;
|
|
@@ -79034,9 +79055,9 @@ function requireClientsdkClientcore () {
|
|
|
79034
79055
|
function VoiceAPIImpl$reconnectCall$lambda_0($store, $updatedCall) {
|
|
79035
79056
|
return function (response) {
|
|
79036
79057
|
if (!(response == null) ? typeof response === 'string' : false) {
|
|
79037
|
-
$store.z1z(Action_init_$Create$(new CallReconnectSuccess($updatedCall.
|
|
79058
|
+
$store.z1z(Action_init_$Create$(new CallReconnectSuccess($updatedCall.m44_1)));
|
|
79038
79059
|
} else {
|
|
79039
|
-
var tmp_0 = $updatedCall.
|
|
79060
|
+
var tmp_0 = $updatedCall.q44_1;
|
|
79040
79061
|
var tmp1_safe_receiver = tmp_0 instanceof Reconnecting ? tmp_0 : null;
|
|
79041
79062
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n45_1;
|
|
79042
79063
|
var tmp_1;
|
|
@@ -79048,9 +79069,9 @@ function requireClientsdkClientcore () {
|
|
|
79048
79069
|
var retryCount = tmp_1;
|
|
79049
79070
|
var csError = response instanceof CSError ? response : null;
|
|
79050
79071
|
if (retryCount === 5 || !(csError == null)) {
|
|
79051
|
-
$store.z1z(Action_init_$Create$(new CallReconnectFailure($updatedCall.
|
|
79072
|
+
$store.z1z(Action_init_$Create$(new CallReconnectFailure($updatedCall.m44_1)));
|
|
79052
79073
|
} else {
|
|
79053
|
-
$store.z1z(Action_init_$Create$(new TimeoutAction(new CallReconnectionRetry($updatedCall.
|
|
79074
|
+
$store.z1z(Action_init_$Create$(new TimeoutAction(new CallReconnectionRetry($updatedCall.m44_1), 3000)));
|
|
79054
79075
|
}
|
|
79055
79076
|
}
|
|
79056
79077
|
return Unit_instance;
|
|
@@ -79081,18 +79102,18 @@ function requireClientsdkClientcore () {
|
|
|
79081
79102
|
var tmp0 = hangup.t33_1.q45_1.v2_1;
|
|
79082
79103
|
var reason = {_v: tmp0 === 0 ? HangupReason_localHangup_getInstance() : tmp0 === 2 ? HangupReason_remoteHangup_getInstance() : tmp0 === 1 ? HangupReason_mediaTimeout_getInstance() : tmp0 === 4 ? HangupReason_mediaTimeout_getInstance() : HangupReason_localHangup_getInstance()};
|
|
79083
79104
|
if (!(call == null)) {
|
|
79084
|
-
if (call.
|
|
79105
|
+
if (call.n44_1.x45() === null) {
|
|
79085
79106
|
var tmp_0;
|
|
79086
79107
|
var tmp_1;
|
|
79087
|
-
var tmp_2 = call.
|
|
79108
|
+
var tmp_2 = call.n44_1;
|
|
79088
79109
|
if (tmp_2 instanceof Resolved) {
|
|
79089
|
-
var tmp_3 = call.
|
|
79110
|
+
var tmp_3 = call.n44_1.g2();
|
|
79090
79111
|
tmp_1 = tmp_3 instanceof Left;
|
|
79091
79112
|
} else {
|
|
79092
79113
|
tmp_1 = false;
|
|
79093
79114
|
}
|
|
79094
79115
|
if (tmp_1) {
|
|
79095
|
-
var tmp_4 = call.
|
|
79116
|
+
var tmp_4 = call.n44_1.g2();
|
|
79096
79117
|
var tmp_5;
|
|
79097
79118
|
switch ((tmp_4 instanceof Left ? tmp_4 : THROW_CCE()).v45_1) {
|
|
79098
79119
|
case 'remote_rejected':
|
|
@@ -79119,7 +79140,7 @@ function requireClientsdkClientcore () {
|
|
|
79119
79140
|
}
|
|
79120
79141
|
invokeListener$default(this.o45_1, conversationId, VOID, VoiceAPIImpl$o$onRTCHangup$lambda(hangup, reason));
|
|
79121
79142
|
}
|
|
79122
|
-
cleanupReducers(this.o45_1.
|
|
79143
|
+
cleanupReducers(this.o45_1.g44_1, legId, conversationId);
|
|
79123
79144
|
};
|
|
79124
79145
|
protoOf(VoiceAPIImpl$1).a3q = function (conversationId, legId, fromUserId, status) {
|
|
79125
79146
|
if (!(conversationId == null) && !isFromMe(this.o45_1, fromUserId)) {
|
|
@@ -79131,13 +79152,13 @@ function requireClientsdkClientcore () {
|
|
|
79131
79152
|
};
|
|
79132
79153
|
function VoiceAPIImpl$lambda$lambda(this$0, $cachedSessionId) {
|
|
79133
79154
|
return function () {
|
|
79134
|
-
var state = this$0.
|
|
79155
|
+
var state = this$0.g44_1.l1z(getKClass(SessionReducer));
|
|
79135
79156
|
var currentSessionId = state.g2r_1.g2().g2x();
|
|
79136
79157
|
if (!state.h2r_1.w3k_1.equals(SocketConnectionStatus_Connected_getInstance())) {
|
|
79137
79158
|
$cachedSessionId._v = null;
|
|
79138
79159
|
} else if (!(currentSessionId == null) && !(currentSessionId == $cachedSessionId._v)) {
|
|
79139
|
-
cleanupReducers(this$0.
|
|
79140
|
-
var invites = this$0.
|
|
79160
|
+
cleanupReducers(this$0.g44_1);
|
|
79161
|
+
var invites = this$0.g44_1.l1z(getKClass(InviteReducer)).y45_1;
|
|
79141
79162
|
// Inline function 'kotlin.collections.filterValues' call
|
|
79142
79163
|
var result = LinkedHashMap_init_$Create$();
|
|
79143
79164
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -79154,7 +79175,7 @@ function requireClientsdkClientcore () {
|
|
|
79154
79175
|
var _iterator__ex2g4s_0 = result.m2().t();
|
|
79155
79176
|
while (_iterator__ex2g4s_0.u()) {
|
|
79156
79177
|
var element = _iterator__ex2g4s_0.v();
|
|
79157
|
-
this$0.
|
|
79178
|
+
this$0.g44_1.z1z(new Action_0(new GetConversationRequest(element.g2().e45_1), new ActionMeta(VOID, element.g2().c45_1)));
|
|
79158
79179
|
}
|
|
79159
79180
|
} else ;
|
|
79160
79181
|
$cachedSessionId._v = state.g2r_1.g2().g2x();
|
|
@@ -79185,7 +79206,7 @@ function requireClientsdkClientcore () {
|
|
|
79185
79206
|
var tmp0_safe_receiver = $state.y45_1.j2($it.c45_1);
|
|
79186
79207
|
var currentInviteState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g45_1;
|
|
79187
79208
|
if (!(currentInviteState == null) && equals(currentInviteState.g2(), None_instance_1)) {
|
|
79188
|
-
this$0.
|
|
79209
|
+
this$0.g44_1.z1z(Action_init_$Create$(new InviteReconcile($it.c45_1)));
|
|
79189
79210
|
}
|
|
79190
79211
|
}
|
|
79191
79212
|
return Unit_instance;
|
|
@@ -79193,7 +79214,7 @@ function requireClientsdkClientcore () {
|
|
|
79193
79214
|
}
|
|
79194
79215
|
function VoiceAPIImpl$lambda$lambda_0(this$0, $cache) {
|
|
79195
79216
|
return function () {
|
|
79196
|
-
var state = this$0.
|
|
79217
|
+
var state = this$0.g44_1.l1z(getKClass(InviteReducer));
|
|
79197
79218
|
var tmp;
|
|
79198
79219
|
if (state.a46_1 == null) {
|
|
79199
79220
|
tmp = null;
|
|
@@ -79222,18 +79243,18 @@ function requireClientsdkClientcore () {
|
|
|
79222
79243
|
var value = updatedInvite.b46();
|
|
79223
79244
|
tmp0_1.n2(tmp2, value);
|
|
79224
79245
|
// Inline function 'kotlin.also' call
|
|
79225
|
-
var config = this$0.
|
|
79246
|
+
var config = this$0.g44_1.l1z(getKClass(ConfigReducer));
|
|
79226
79247
|
if (config.z2q_1 && updatedInvite.h45_1) {
|
|
79227
|
-
var tmp0_safe_receiver = this$0.
|
|
79248
|
+
var tmp0_safe_receiver = this$0.i44_1;
|
|
79228
79249
|
if (tmp0_safe_receiver == null)
|
|
79229
79250
|
;
|
|
79230
79251
|
else {
|
|
79231
79252
|
tmp0_safe_receiver.t43(updatedInvite.c45_1, from(updatedInvite.b45_1), updatedInvite.b45_1.z23());
|
|
79232
79253
|
}
|
|
79233
79254
|
}
|
|
79234
|
-
this$0.
|
|
79255
|
+
this$0.g44_1.z1z(new Action_0(new GetConversationRequest(updatedInvite.e45_1), new ActionMeta(VOID, updatedInvite.c45_1)));
|
|
79235
79256
|
var tmp_1 = new TimeoutAction(new GetConversationRequest(updatedInvite.e45_1), 60000);
|
|
79236
|
-
this$0.
|
|
79257
|
+
this$0.g44_1.z1z(new Action_0(tmp_1, new ActionMeta(VOID, updatedInvite.c45_1, VoiceAPIImpl$lambda$lambda$lambda(state, updatedInvite, this$0))));
|
|
79237
79258
|
} else {
|
|
79238
79259
|
var tmp_2;
|
|
79239
79260
|
var tmp_3;
|
|
@@ -79260,7 +79281,7 @@ function requireClientsdkClientcore () {
|
|
|
79260
79281
|
tmp_2 = false;
|
|
79261
79282
|
}
|
|
79262
79283
|
if (tmp_2) {
|
|
79263
|
-
var tmp1_safe_receiver = this$0.
|
|
79284
|
+
var tmp1_safe_receiver = this$0.i44_1;
|
|
79264
79285
|
if (tmp1_safe_receiver == null)
|
|
79265
79286
|
;
|
|
79266
79287
|
else {
|
|
@@ -79323,7 +79344,7 @@ function requireClientsdkClientcore () {
|
|
|
79323
79344
|
;
|
|
79324
79345
|
else {
|
|
79325
79346
|
// Inline function 'kotlin.let' call
|
|
79326
|
-
var tmp0_safe_receiver_0 = this$0.
|
|
79347
|
+
var tmp0_safe_receiver_0 = this$0.i44_1;
|
|
79327
79348
|
if (tmp0_safe_receiver_0 == null) ; else {
|
|
79328
79349
|
tmp0_safe_receiver_0.u43(updatedInvite.c45_1, reason);
|
|
79329
79350
|
}
|
|
@@ -79370,7 +79391,7 @@ function requireClientsdkClientcore () {
|
|
|
79370
79391
|
}
|
|
79371
79392
|
function VoiceAPIImpl$lambda$lambda_1(this$0, $cache) {
|
|
79372
79393
|
return function () {
|
|
79373
|
-
var state = this$0.
|
|
79394
|
+
var state = this$0.g44_1.l1z(getKClass(CallReducer));
|
|
79374
79395
|
var tmp0_elvis_lhs = state.z44_1;
|
|
79375
79396
|
var tmp;
|
|
79376
79397
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -79389,16 +79410,16 @@ function requireClientsdkClientcore () {
|
|
|
79389
79410
|
var updatedCall = tmp_0;
|
|
79390
79411
|
var cachedCall = $cache.j2(lastModifiedCallId);
|
|
79391
79412
|
var tmp0 = $cache;
|
|
79392
|
-
var tmp2 = updatedCall.
|
|
79413
|
+
var tmp2 = updatedCall.m44_1;
|
|
79393
79414
|
// Inline function 'kotlin.collections.set' call
|
|
79394
79415
|
var value = updatedCall.c46();
|
|
79395
79416
|
tmp0.n2(tmp2, value);
|
|
79396
79417
|
if (cachedCall == null)
|
|
79397
79418
|
return Unit_instance;
|
|
79398
|
-
if (!equals(updatedCall.
|
|
79419
|
+
if (!equals(updatedCall.n44_1, cachedCall.n44_1)) {
|
|
79399
79420
|
onCallMemberChange(this$0, updatedCall);
|
|
79400
79421
|
}
|
|
79401
|
-
if ((!(updatedCall.
|
|
79422
|
+
if ((!(updatedCall.p44_1.d46_1 == null) || updatedCall.j44_1) && (!updatedCall.p44_1.equals(cachedCall.p44_1) || !equals(updatedCall.o44_1, cachedCall.o44_1))) {
|
|
79402
79423
|
onCallMediaChange(this$0, updatedCall);
|
|
79403
79424
|
}
|
|
79404
79425
|
return Unit_instance;
|
|
@@ -79413,7 +79434,7 @@ function requireClientsdkClientcore () {
|
|
|
79413
79434
|
}
|
|
79414
79435
|
function VoiceAPIImpl$lambda$lambda_2(this$0, $cache) {
|
|
79415
79436
|
return function () {
|
|
79416
|
-
var callState = this$0.
|
|
79437
|
+
var callState = this$0.g44_1.l1z(getKClass(CallReducer));
|
|
79417
79438
|
var tmp0_elvis_lhs = callState.z44_1;
|
|
79418
79439
|
var tmp;
|
|
79419
79440
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -79429,7 +79450,7 @@ function requireClientsdkClientcore () {
|
|
|
79429
79450
|
} else {
|
|
79430
79451
|
// Inline function 'kotlin.takeUnless' call
|
|
79431
79452
|
var tmp_1;
|
|
79432
|
-
var tmp_2 = tmp1_safe_receiver.
|
|
79453
|
+
var tmp_2 = tmp1_safe_receiver.o44_1.g2();
|
|
79433
79454
|
if (!(tmp_2 instanceof Completed)) {
|
|
79434
79455
|
tmp_1 = tmp1_safe_receiver;
|
|
79435
79456
|
} else {
|
|
@@ -79452,7 +79473,7 @@ function requireClientsdkClientcore () {
|
|
|
79452
79473
|
} else {
|
|
79453
79474
|
// Inline function 'kotlin.takeUnless' call
|
|
79454
79475
|
var tmp_5;
|
|
79455
|
-
if (!getKClassFromExpression(tmp3_safe_receiver.
|
|
79476
|
+
if (!getKClassFromExpression(tmp3_safe_receiver.q44_1).equals(getKClassFromExpression(updatedCall.q44_1))) {
|
|
79456
79477
|
tmp_5 = tmp3_safe_receiver;
|
|
79457
79478
|
} else {
|
|
79458
79479
|
tmp_5 = null;
|
|
@@ -79465,10 +79486,10 @@ function requireClientsdkClientcore () {
|
|
|
79465
79486
|
else {
|
|
79466
79487
|
// Inline function 'kotlin.let' call
|
|
79467
79488
|
$l$block: {
|
|
79468
|
-
var tmp0_subject = updatedCall.
|
|
79489
|
+
var tmp0_subject = updatedCall.q44_1;
|
|
79469
79490
|
if (tmp0_subject instanceof Reconnecting) {
|
|
79470
79491
|
// Inline function 'kotlin.takeIf' call
|
|
79471
|
-
var this_0 = this$0.
|
|
79492
|
+
var this_0 = this$0.g44_1.l1z(getKClass(ConfigReducer));
|
|
79472
79493
|
var tmp_6;
|
|
79473
79494
|
if (this_0.e2r_1) {
|
|
79474
79495
|
tmp_6 = this_0;
|
|
@@ -79478,23 +79499,23 @@ function requireClientsdkClientcore () {
|
|
|
79478
79499
|
if (tmp_6 == null) {
|
|
79479
79500
|
break $l$block;
|
|
79480
79501
|
}
|
|
79481
|
-
var tmp2_safe_receiver = this$0.
|
|
79502
|
+
var tmp2_safe_receiver = this$0.i44_1;
|
|
79482
79503
|
if (tmp2_safe_receiver == null)
|
|
79483
79504
|
;
|
|
79484
79505
|
else {
|
|
79485
|
-
tmp2_safe_receiver.b44(updatedCall.
|
|
79506
|
+
tmp2_safe_receiver.b44(updatedCall.m44_1);
|
|
79486
79507
|
}
|
|
79487
|
-
handleCallReconnection(this$0, this$0.
|
|
79508
|
+
handleCallReconnection(this$0, this$0.g44_1, updatedCall.m44_1);
|
|
79488
79509
|
} else {
|
|
79489
79510
|
if (equals(tmp0_subject, Connected_instance)) {
|
|
79490
|
-
var tmp3_safe_receiver_0 = this$0.
|
|
79511
|
+
var tmp3_safe_receiver_0 = this$0.i44_1;
|
|
79491
79512
|
var tmp_7;
|
|
79492
79513
|
if (tmp3_safe_receiver_0 == null) {
|
|
79493
79514
|
tmp_7 = null;
|
|
79494
79515
|
} else {
|
|
79495
79516
|
// Inline function 'kotlin.takeIf' call
|
|
79496
79517
|
var tmp_8;
|
|
79497
|
-
var tmp_9 = tmp4_safe_receiver.
|
|
79518
|
+
var tmp_9 = tmp4_safe_receiver.q44_1;
|
|
79498
79519
|
if (tmp_9 instanceof Reconnecting) {
|
|
79499
79520
|
tmp_8 = tmp3_safe_receiver_0;
|
|
79500
79521
|
} else {
|
|
@@ -79506,15 +79527,15 @@ function requireClientsdkClientcore () {
|
|
|
79506
79527
|
if (tmp4_safe_receiver_0 == null)
|
|
79507
79528
|
;
|
|
79508
79529
|
else {
|
|
79509
|
-
tmp4_safe_receiver_0.c44(updatedCall.
|
|
79530
|
+
tmp4_safe_receiver_0.c44(updatedCall.m44_1);
|
|
79510
79531
|
}
|
|
79511
79532
|
} else {
|
|
79512
79533
|
if (equals(tmp0_subject, Disconnected_instance)) {
|
|
79513
|
-
var tmp5_safe_receiver = this$0.
|
|
79534
|
+
var tmp5_safe_receiver = this$0.i44_1;
|
|
79514
79535
|
if (tmp5_safe_receiver == null)
|
|
79515
79536
|
;
|
|
79516
79537
|
else {
|
|
79517
|
-
tmp5_safe_receiver.d44(updatedCall.
|
|
79538
|
+
tmp5_safe_receiver.d44(updatedCall.m44_1, CallDisconnectReason_networkChange_getInstance());
|
|
79518
79539
|
}
|
|
79519
79540
|
} else {
|
|
79520
79541
|
if (!equals(tmp0_subject, New_instance)) {
|
|
@@ -79541,7 +79562,7 @@ function requireClientsdkClientcore () {
|
|
|
79541
79562
|
}
|
|
79542
79563
|
function VoiceAPIImpl$lambda$lambda_3(this$0) {
|
|
79543
79564
|
return function () {
|
|
79544
|
-
var state = this$0.
|
|
79565
|
+
var state = this$0.g44_1.l1z(getKClass(MediaEventReducer));
|
|
79545
79566
|
var tmp0_elvis_lhs = state.h46_1;
|
|
79546
79567
|
var tmp;
|
|
79547
79568
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -79559,7 +79580,7 @@ function requireClientsdkClientcore () {
|
|
|
79559
79580
|
}
|
|
79560
79581
|
var mediaEvent = tmp_0;
|
|
79561
79582
|
if (mediaEvent instanceof MediaErrorEvent) {
|
|
79562
|
-
var tmp3_safe_receiver = this$0.
|
|
79583
|
+
var tmp3_safe_receiver = this$0.i44_1;
|
|
79563
79584
|
if (tmp3_safe_receiver == null)
|
|
79564
79585
|
;
|
|
79565
79586
|
else {
|
|
@@ -79567,7 +79588,7 @@ function requireClientsdkClientcore () {
|
|
|
79567
79588
|
}
|
|
79568
79589
|
} else {
|
|
79569
79590
|
if (mediaEvent instanceof RTCStatsUpdate) {
|
|
79570
|
-
var tmp4_safe_receiver = this$0.
|
|
79591
|
+
var tmp4_safe_receiver = this$0.i44_1;
|
|
79571
79592
|
if (tmp4_safe_receiver == null)
|
|
79572
79593
|
;
|
|
79573
79594
|
else {
|
|
@@ -79587,13 +79608,13 @@ function requireClientsdkClientcore () {
|
|
|
79587
79608
|
return function (memberResponse) {
|
|
79588
79609
|
if (memberResponse instanceof GetMember) {
|
|
79589
79610
|
if (memberResponse.s2h_1.v2_1 === 1) {
|
|
79590
|
-
this$0.
|
|
79611
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallReconnect($legId, memberResponse.r2h_1, $legResponse.l29_1)));
|
|
79591
79612
|
} else {
|
|
79592
|
-
reportError_0(this$0.
|
|
79613
|
+
reportError_0(this$0.g44_1, $callback, new MemberNotInConversation(), ErrorTrail_RECONNECT_MEMBER_NOT_JOINED_getInstance(), VOID, $legId);
|
|
79593
79614
|
}
|
|
79594
79615
|
} else {
|
|
79595
|
-
reportError_0(this$0.
|
|
79596
|
-
this$0.
|
|
79616
|
+
reportError_0(this$0.g44_1, $callback, new NoConversationFound(), ErrorTrail_RECONNECT_MEMBER_FETCH_FAILED_getInstance(), VOID, $legId);
|
|
79617
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallCleanup($legId)));
|
|
79597
79618
|
}
|
|
79598
79619
|
return Unit_instance;
|
|
79599
79620
|
};
|
|
@@ -79602,64 +79623,64 @@ function requireClientsdkClientcore () {
|
|
|
79602
79623
|
return function (legResponse) {
|
|
79603
79624
|
if (legResponse instanceof GetLeg) {
|
|
79604
79625
|
var tmp_0 = new GetMyMemberRequest(legResponse.l29_1);
|
|
79605
|
-
this$0.
|
|
79626
|
+
this$0.g44_1.z1z(new Action_0(tmp_0, new ActionMeta(VOID, legResponse.k29_1, VoiceAPIImpl$getCallDetailsAndDispatchCallReconnect$lambda$lambda(this$0, $legId, legResponse, $callback))));
|
|
79606
79627
|
} else {
|
|
79607
|
-
reportError_0(this$0.
|
|
79608
|
-
this$0.
|
|
79628
|
+
reportError_0(this$0.g44_1, $callback, new NoLegFound(), ErrorTrail_RECONNECT_LEG_FETCH_FAILED_getInstance(), VOID, $legId);
|
|
79629
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallCleanup($legId)));
|
|
79609
79630
|
}
|
|
79610
79631
|
return Unit_instance;
|
|
79611
79632
|
};
|
|
79612
79633
|
}
|
|
79613
79634
|
function VoiceAPIImpl(store, events, loggerAdapter) {
|
|
79614
|
-
this.
|
|
79615
|
-
this.
|
|
79616
|
-
this.
|
|
79635
|
+
this.g44_1 = store;
|
|
79636
|
+
this.h44_1 = loggerAdapter.q20(Voice_getInstance());
|
|
79637
|
+
this.i44_1 = null;
|
|
79617
79638
|
events.d27(new VoiceAPIImpl$1(this));
|
|
79618
79639
|
var tmp = getKClass(SessionReducer);
|
|
79619
|
-
this.
|
|
79640
|
+
this.g44_1.r20(tmp, VoiceAPIImpl$lambda(this));
|
|
79620
79641
|
var tmp_0 = getKClass(InviteReducer);
|
|
79621
|
-
this.
|
|
79642
|
+
this.g44_1.r20(tmp_0, VoiceAPIImpl$lambda_0(this));
|
|
79622
79643
|
var tmp_1 = getKClass(CallReducer);
|
|
79623
|
-
this.
|
|
79644
|
+
this.g44_1.r20(tmp_1, VoiceAPIImpl$lambda_1(this));
|
|
79624
79645
|
var tmp_2 = getKClass(CallReducer);
|
|
79625
|
-
this.
|
|
79646
|
+
this.g44_1.r20(tmp_2, VoiceAPIImpl$lambda_2(this));
|
|
79626
79647
|
var tmp_3 = getKClass(MediaEventReducer);
|
|
79627
|
-
this.
|
|
79648
|
+
this.g44_1.r20(tmp_3, VoiceAPIImpl$lambda_3(this));
|
|
79628
79649
|
}
|
|
79629
79650
|
protoOf(VoiceAPIImpl).y25 = function (listener) {
|
|
79630
|
-
this.
|
|
79651
|
+
this.i44_1 = listener;
|
|
79631
79652
|
};
|
|
79632
79653
|
protoOf(VoiceAPIImpl).b26 = function (legId, callback) {
|
|
79633
|
-
if (getSessionUserOrError(this.
|
|
79654
|
+
if (getSessionUserOrError(this.g44_1, callback) == null)
|
|
79634
79655
|
return Unit_instance;
|
|
79635
79656
|
var tmp = new GetLegRequest(legId);
|
|
79636
|
-
this.
|
|
79657
|
+
this.g44_1.z1z(new Action_0(tmp, new ActionMeta(VOID, VOID, VoiceAPIImpl$getLeg$lambda(callback, this, legId))));
|
|
79637
79658
|
};
|
|
79638
79659
|
protoOf(VoiceAPIImpl).c26 = function (callId, parameters, callback) {
|
|
79639
|
-
if (getSessionUserOrError(this.
|
|
79660
|
+
if (getSessionUserOrError(this.g44_1, callback) == null)
|
|
79640
79661
|
return Unit_instance;
|
|
79641
|
-
var callState = this.
|
|
79662
|
+
var callState = this.g44_1.l1z(getKClass(CallReducer));
|
|
79642
79663
|
var call = callState.w44_1.j2(callId);
|
|
79643
|
-
var tmp2_safe_receiver = call == null ? null : call.
|
|
79664
|
+
var tmp2_safe_receiver = call == null ? null : call.n44_1;
|
|
79644
79665
|
var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g2();
|
|
79645
79666
|
var joinedMemberState = tmp instanceof Joined ? tmp : null;
|
|
79646
|
-
var tmp4_elvis_lhs = joinedMemberState == null ? null : joinedMemberState.
|
|
79667
|
+
var tmp4_elvis_lhs = joinedMemberState == null ? null : joinedMemberState.t44_1;
|
|
79647
79668
|
var tmp_0;
|
|
79648
79669
|
if (tmp4_elvis_lhs == null) {
|
|
79649
|
-
var tmp5_safe_receiver = this.
|
|
79670
|
+
var tmp5_safe_receiver = this.g44_1.l1z(getKClass(InviteReducer)).y45_1.j2(callId);
|
|
79650
79671
|
tmp_0 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.e45_1;
|
|
79651
79672
|
} else {
|
|
79652
79673
|
tmp_0 = tmp4_elvis_lhs;
|
|
79653
79674
|
}
|
|
79654
79675
|
var conversationId = tmp_0;
|
|
79655
79676
|
if (conversationId == null) {
|
|
79656
|
-
return reportError(this.
|
|
79677
|
+
return reportError(this.g44_1, callback, new NoCallFound(), ErrorTrail_GET_CALL_LEGS_NO_CALL_getInstance(), VOID, callId);
|
|
79657
79678
|
}
|
|
79658
79679
|
var tmp_1 = new GetConversationRequest(conversationId);
|
|
79659
|
-
this.
|
|
79680
|
+
this.g44_1.z1z(new Action_0(tmp_1, new ActionMeta(VOID, VOID, VoiceAPIImpl$getCallLegs$lambda(this, callback, conversationId, callId, parameters))));
|
|
79660
79681
|
};
|
|
79661
79682
|
protoOf(VoiceAPIImpl).z25 = function (context, callback) {
|
|
79662
|
-
var tmp0_elvis_lhs = getSessionUserOrError(this.
|
|
79683
|
+
var tmp0_elvis_lhs = getSessionUserOrError(this.g44_1, callback);
|
|
79663
79684
|
var tmp;
|
|
79664
79685
|
if (tmp0_elvis_lhs == null) {
|
|
79665
79686
|
return Unit_instance;
|
|
@@ -79667,30 +79688,29 @@ function requireClientsdkClientcore () {
|
|
|
79667
79688
|
tmp = tmp0_elvis_lhs;
|
|
79668
79689
|
}
|
|
79669
79690
|
var user = tmp;
|
|
79670
|
-
|
|
79671
|
-
this.t44_1.z1z(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$serverCall$lambda(this, callback))));
|
|
79691
|
+
attemptOutboundCall(this, user.v3q_1, context, 1, null, callback);
|
|
79672
79692
|
};
|
|
79673
79693
|
protoOf(VoiceAPIImpl).a26 = function (callId, callback) {
|
|
79674
79694
|
var once = {_v: null};
|
|
79675
79695
|
var tmp = getKClass(CallReducer);
|
|
79676
|
-
once._v = this.
|
|
79677
|
-
if (getSessionUserOrError_0(this.
|
|
79696
|
+
once._v = this.g44_1.r20(tmp, VoiceAPIImpl$reconnectCall$lambda(this, callId, once, callback));
|
|
79697
|
+
if (getSessionUserOrError_0(this.g44_1, callback) == null)
|
|
79678
79698
|
return Unit_instance;
|
|
79679
|
-
var callState = this.
|
|
79699
|
+
var callState = this.g44_1.l1z(getKClass(CallReducer));
|
|
79680
79700
|
var call = callState.w44_1.j2(callId);
|
|
79681
|
-
var tmp2_safe_receiver = call == null ? null : call.
|
|
79701
|
+
var tmp2_safe_receiver = call == null ? null : call.n44_1;
|
|
79682
79702
|
var tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g2();
|
|
79683
79703
|
var memberState = tmp_0 instanceof Joined ? tmp_0 : null;
|
|
79684
79704
|
if (call == null || memberState == null) {
|
|
79685
79705
|
getCallDetailsAndDispatchCallReconnect(this, callId, callback);
|
|
79686
79706
|
} else {
|
|
79687
|
-
this.
|
|
79707
|
+
this.g44_1.z1z(Action_init_$Create$(new CallReconnect(callId, memberState.u44_1, memberState.t44_1)));
|
|
79688
79708
|
}
|
|
79689
79709
|
};
|
|
79690
79710
|
protoOf(VoiceAPIImpl).d26 = function (callId, callback) {
|
|
79691
|
-
var invite = this.
|
|
79711
|
+
var invite = this.g44_1.l1z(getKClass(InviteReducer)).y45_1.j2(callId);
|
|
79692
79712
|
if (invite == null) {
|
|
79693
|
-
reportError_0(this.
|
|
79713
|
+
reportError_0(this.g44_1, callback, new NoInviteFound(), ErrorTrail_REJECT_NO_INVITE_getInstance(), VOID, callId);
|
|
79694
79714
|
return Unit_instance;
|
|
79695
79715
|
}
|
|
79696
79716
|
var tmp;
|
|
@@ -79709,15 +79729,15 @@ function requireClientsdkClientcore () {
|
|
|
79709
79729
|
tmp = tmp_3 instanceof Left;
|
|
79710
79730
|
}
|
|
79711
79731
|
if (tmp) {
|
|
79712
|
-
reportError_0(this.
|
|
79732
|
+
reportError_0(this.g44_1, callback, new InvalidCallAction(), ErrorTrail_REJECT_INVALID_STATE_getInstance(), invite.e45_1, callId);
|
|
79713
79733
|
return Unit_instance;
|
|
79714
79734
|
}
|
|
79715
|
-
this.
|
|
79735
|
+
this.g44_1.z1z(new Action_0(new MemberKickRequest(invite.e45_1, invite.d45_1, 'call-rejected-by-callee', 'REMOTE_REJECT', invite.d45_1), new ActionMeta(VOID, callId, actionOutcome(this, ErrorTrail_REJECT_REQUEST_FAILED_getInstance(), callId, callback))));
|
|
79716
79736
|
};
|
|
79717
79737
|
protoOf(VoiceAPIImpl).e26 = function (callId, callback) {
|
|
79718
|
-
var invite = this.
|
|
79738
|
+
var invite = this.g44_1.l1z(getKClass(InviteReducer)).y45_1.j2(callId);
|
|
79719
79739
|
if (invite == null) {
|
|
79720
|
-
reportError_0(this.
|
|
79740
|
+
reportError_0(this.g44_1, callback, new NoInviteFound(), ErrorTrail_ANSWER_NO_INVITE_getInstance(), VOID, callId);
|
|
79721
79741
|
return Unit_instance;
|
|
79722
79742
|
}
|
|
79723
79743
|
var tmp;
|
|
@@ -79736,27 +79756,27 @@ function requireClientsdkClientcore () {
|
|
|
79736
79756
|
tmp = tmp_3 instanceof Left;
|
|
79737
79757
|
}
|
|
79738
79758
|
if (tmp) {
|
|
79739
|
-
reportError_0(this.
|
|
79759
|
+
reportError_0(this.g44_1, callback, new InvalidCallAction(), ErrorTrail_ANSWER_INVALID_STATE_getInstance(), invite.e45_1, callId);
|
|
79740
79760
|
return Unit_instance;
|
|
79741
79761
|
}
|
|
79742
79762
|
var tmp_4 = new MemberJoinRequest(invite.e45_1, invite.d45_1, invite.d45_1);
|
|
79743
|
-
this.
|
|
79763
|
+
this.g44_1.z1z(new Action_0(tmp_4, new ActionMeta(VOID, callId, VoiceAPIImpl$answerCall$lambda(this, callback, invite, callId))));
|
|
79744
79764
|
};
|
|
79745
79765
|
protoOf(VoiceAPIImpl).f26 = function (callId, reasonText, reasonCode, callback) {
|
|
79746
|
-
var call = this.
|
|
79766
|
+
var call = this.g44_1.l1z(getKClass(CallReducer)).w44_1.j2(callId);
|
|
79747
79767
|
if (call == null) {
|
|
79748
|
-
reportError_0(this.
|
|
79768
|
+
reportError_0(this.g44_1, callback, new NoCallFound(), ErrorTrail_HANGUP_NO_CALL_getInstance(), VOID, callId);
|
|
79749
79769
|
return Unit_instance;
|
|
79750
79770
|
}
|
|
79751
|
-
this.
|
|
79752
|
-
var callMemberShipState = call.
|
|
79771
|
+
this.g44_1.z1z(Action_init_$Create$(new MediaDisable(callId)));
|
|
79772
|
+
var callMemberShipState = call.n44_1.g2();
|
|
79753
79773
|
if (callMemberShipState instanceof Joined) {
|
|
79754
|
-
this.
|
|
79774
|
+
this.g44_1.z1z(new Action_0(new MemberKickRequest(callMemberShipState.t44_1, callMemberShipState.u44_1, reasonText, reasonCode, callMemberShipState.u44_1), new ActionMeta(VOID, callId, actionOutcome(this, ErrorTrail_HANGUP_KICK_FAILED_getInstance(), callId, callback))));
|
|
79755
79775
|
} else {
|
|
79756
79776
|
if (callMemberShipState instanceof Knocking) {
|
|
79757
|
-
this.
|
|
79777
|
+
this.g44_1.z1z(new Action_0(new DeleteKnockerRequest(callMemberShipState.i46_1), new ActionMeta(VOID, callId, actionOutcome(this, ErrorTrail_HANGUP_KNOCKER_DELETE_FAILED_getInstance(), callId, callback))));
|
|
79758
79778
|
} else {
|
|
79759
|
-
reportError_0(this.
|
|
79779
|
+
reportError_0(this.g44_1, callback, new InvalidCallAction(), ErrorTrail_HANGUP_INVALID_STATE_getInstance(), VOID, callId);
|
|
79760
79780
|
}
|
|
79761
79781
|
}
|
|
79762
79782
|
};
|
|
@@ -84825,7 +84845,7 @@ function requireClientsdkClientcore () {
|
|
|
84825
84845
|
tmp_1 = tmp2_elvis_lhs;
|
|
84826
84846
|
}
|
|
84827
84847
|
var applicationId = tmp_1;
|
|
84828
|
-
var tmp_2 = call.
|
|
84848
|
+
var tmp_2 = call.n44_1.g2();
|
|
84829
84849
|
var tmp3_elvis_lhs = isInterface(tmp_2, CoreMemberStateWithCid) ? tmp_2 : null;
|
|
84830
84850
|
var tmp_3;
|
|
84831
84851
|
if (tmp3_elvis_lhs == null) {
|
|
@@ -84834,8 +84854,8 @@ function requireClientsdkClientcore () {
|
|
|
84834
84854
|
tmp_3 = tmp3_elvis_lhs;
|
|
84835
84855
|
}
|
|
84836
84856
|
var member = tmp_3;
|
|
84837
|
-
this.t4f_1.z1z(Action_init_$Create$(new RTCStatsUpdate(call.
|
|
84838
|
-
this.t4f_1.z1z(Action_init_$Create$(new RTCStatsReportRequest(call.
|
|
84857
|
+
this.t4f_1.z1z(Action_init_$Create$(new RTCStatsUpdate(call.m44_1, rtcStats)));
|
|
84858
|
+
this.t4f_1.z1z(Action_init_$Create$(new RTCStatsReportRequest(call.m44_1, rtcStats, applicationId, apiKey, member.d34(), member.u4f())));
|
|
84839
84859
|
};
|
|
84840
84860
|
protoOf(mediaActionMiddleware$1).c23 = function (id, error) {
|
|
84841
84861
|
this.t4f_1.z1z(Action_init_$Create$(new MediaErrorEvent(id, error)));
|
|
@@ -85122,9 +85142,9 @@ function requireClientsdkClientcore () {
|
|
|
85122
85142
|
break $l$block_0;
|
|
85123
85143
|
}
|
|
85124
85144
|
if (autoReconnectMedia) {
|
|
85125
|
-
$store.z1z(Action_init_$Create$(new TimeoutAction(new CallReconnectionRetry(call.
|
|
85145
|
+
$store.z1z(Action_init_$Create$(new TimeoutAction(new CallReconnectionRetry(call.m44_1), 3000)));
|
|
85126
85146
|
} else {
|
|
85127
|
-
$store.z1z(Action_init_$Create$(new CallReconnectFailure(call.
|
|
85147
|
+
$store.z1z(Action_init_$Create$(new CallReconnectFailure(call.m44_1)));
|
|
85128
85148
|
}
|
|
85129
85149
|
} else {
|
|
85130
85150
|
if (tmp0_subject instanceof CallReconnectFailure) {
|
|
@@ -85713,7 +85733,7 @@ function requireClientsdkClientcore () {
|
|
|
85713
85733
|
while (_iterator__ex2g4s_2.u()) {
|
|
85714
85734
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
85715
85735
|
var tmp0_safe_receiver = $this$run.w44_1.j2(element_2);
|
|
85716
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
85736
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o44_1;
|
|
85717
85737
|
// Inline function 'kotlin.let' call
|
|
85718
85738
|
if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g2())instanceof Completed) {
|
|
85719
85739
|
_this__u8e3s4.z1z(Action_init_$Create$(new CallCleanup(element_2)));
|
|
@@ -86399,47 +86419,47 @@ function requireClientsdkClientcore () {
|
|
|
86399
86419
|
callConnectivityState = callConnectivityState === VOID ? New_instance : callConnectivityState;
|
|
86400
86420
|
mediaState = mediaState === VOID ? MediaConnectionState_New_getInstance() : mediaState;
|
|
86401
86421
|
memberJoinTimedOut = memberJoinTimedOut === VOID ? false : memberJoinTimedOut;
|
|
86402
|
-
this.
|
|
86403
|
-
this.
|
|
86404
|
-
this.
|
|
86405
|
-
this.
|
|
86406
|
-
this.
|
|
86407
|
-
this.
|
|
86408
|
-
this.
|
|
86409
|
-
this.
|
|
86410
|
-
this.
|
|
86411
|
-
this.
|
|
86422
|
+
this.j44_1 = isReconnect;
|
|
86423
|
+
this.k44_1 = from;
|
|
86424
|
+
this.l44_1 = customData;
|
|
86425
|
+
this.m44_1 = id;
|
|
86426
|
+
this.n44_1 = memberState;
|
|
86427
|
+
this.o44_1 = legState;
|
|
86428
|
+
this.p44_1 = localMedia;
|
|
86429
|
+
this.q44_1 = callConnectivityState;
|
|
86430
|
+
this.r44_1 = mediaState;
|
|
86431
|
+
this.s44_1 = memberJoinTimedOut;
|
|
86412
86432
|
}
|
|
86413
86433
|
protoOf(Call_1).h4i = function (isReconnect, from, customData, id, memberState, legState, localMedia, callConnectivityState, mediaState, memberJoinTimedOut) {
|
|
86414
86434
|
return new Call_1(isReconnect, from, customData, id, memberState, legState, localMedia, callConnectivityState, mediaState, memberJoinTimedOut);
|
|
86415
86435
|
};
|
|
86416
86436
|
protoOf(Call_1).c46 = function (isReconnect, from, customData, id, memberState, legState, localMedia, callConnectivityState, mediaState, memberJoinTimedOut, $super) {
|
|
86417
|
-
isReconnect = isReconnect === VOID ? this.
|
|
86418
|
-
from = from === VOID ? this.
|
|
86419
|
-
customData = customData === VOID ? this.
|
|
86420
|
-
id = id === VOID ? this.
|
|
86421
|
-
memberState = memberState === VOID ? this.
|
|
86422
|
-
legState = legState === VOID ? this.
|
|
86423
|
-
localMedia = localMedia === VOID ? this.
|
|
86424
|
-
callConnectivityState = callConnectivityState === VOID ? this.
|
|
86425
|
-
mediaState = mediaState === VOID ? this.
|
|
86426
|
-
memberJoinTimedOut = memberJoinTimedOut === VOID ? this.
|
|
86437
|
+
isReconnect = isReconnect === VOID ? this.j44_1 : isReconnect;
|
|
86438
|
+
from = from === VOID ? this.k44_1 : from;
|
|
86439
|
+
customData = customData === VOID ? this.l44_1 : customData;
|
|
86440
|
+
id = id === VOID ? this.m44_1 : id;
|
|
86441
|
+
memberState = memberState === VOID ? this.n44_1 : memberState;
|
|
86442
|
+
legState = legState === VOID ? this.o44_1 : legState;
|
|
86443
|
+
localMedia = localMedia === VOID ? this.p44_1 : localMedia;
|
|
86444
|
+
callConnectivityState = callConnectivityState === VOID ? this.q44_1 : callConnectivityState;
|
|
86445
|
+
mediaState = mediaState === VOID ? this.r44_1 : mediaState;
|
|
86446
|
+
memberJoinTimedOut = memberJoinTimedOut === VOID ? this.s44_1 : memberJoinTimedOut;
|
|
86427
86447
|
return $super === VOID ? this.h4i(isReconnect, from, customData, id, memberState, legState, localMedia, callConnectivityState, mediaState, memberJoinTimedOut) : $super.h4i.call(this, isReconnect, from, customData, id, memberState, legState, localMedia, callConnectivityState, mediaState, memberJoinTimedOut);
|
|
86428
86448
|
};
|
|
86429
86449
|
protoOf(Call_1).toString = function () {
|
|
86430
|
-
return 'Call(isReconnect=' + this.
|
|
86450
|
+
return 'Call(isReconnect=' + this.j44_1 + ', from=' + toString(this.k44_1) + ', customData=' + toString_0(this.l44_1) + ', id=' + this.m44_1 + ', memberState=' + toString(this.n44_1) + ', legState=' + toString(this.o44_1) + ', localMedia=' + this.p44_1.toString() + ', callConnectivityState=' + toString(this.q44_1) + ', mediaState=' + this.r44_1.toString() + ', memberJoinTimedOut=' + this.s44_1 + ')';
|
|
86431
86451
|
};
|
|
86432
86452
|
protoOf(Call_1).hashCode = function () {
|
|
86433
|
-
var result = getBooleanHashCode(this.
|
|
86434
|
-
result = imul(result, 31) + hashCode(this.h44_1) | 0;
|
|
86435
|
-
result = imul(result, 31) + (this.i44_1 == null ? 0 : hashCode(this.i44_1)) | 0;
|
|
86436
|
-
result = imul(result, 31) + getStringHashCode(this.j44_1) | 0;
|
|
86453
|
+
var result = getBooleanHashCode(this.j44_1);
|
|
86437
86454
|
result = imul(result, 31) + hashCode(this.k44_1) | 0;
|
|
86438
|
-
result = imul(result, 31) + hashCode(this.l44_1) | 0;
|
|
86439
|
-
result = imul(result, 31) + this.m44_1
|
|
86455
|
+
result = imul(result, 31) + (this.l44_1 == null ? 0 : hashCode(this.l44_1)) | 0;
|
|
86456
|
+
result = imul(result, 31) + getStringHashCode(this.m44_1) | 0;
|
|
86440
86457
|
result = imul(result, 31) + hashCode(this.n44_1) | 0;
|
|
86441
|
-
result = imul(result, 31) + this.o44_1
|
|
86442
|
-
result = imul(result, 31) +
|
|
86458
|
+
result = imul(result, 31) + hashCode(this.o44_1) | 0;
|
|
86459
|
+
result = imul(result, 31) + this.p44_1.hashCode() | 0;
|
|
86460
|
+
result = imul(result, 31) + hashCode(this.q44_1) | 0;
|
|
86461
|
+
result = imul(result, 31) + this.r44_1.hashCode() | 0;
|
|
86462
|
+
result = imul(result, 31) + getBooleanHashCode(this.s44_1) | 0;
|
|
86443
86463
|
return result;
|
|
86444
86464
|
};
|
|
86445
86465
|
protoOf(Call_1).equals = function (other) {
|
|
@@ -86447,25 +86467,25 @@ function requireClientsdkClientcore () {
|
|
|
86447
86467
|
return true;
|
|
86448
86468
|
if (!(other instanceof Call_1))
|
|
86449
86469
|
return false;
|
|
86450
|
-
if (!(this.g44_1 === other.g44_1))
|
|
86451
|
-
return false;
|
|
86452
|
-
if (!equals(this.h44_1, other.h44_1))
|
|
86453
|
-
return false;
|
|
86454
|
-
if (!equals(this.i44_1, other.i44_1))
|
|
86455
|
-
return false;
|
|
86456
86470
|
if (!(this.j44_1 === other.j44_1))
|
|
86457
86471
|
return false;
|
|
86458
86472
|
if (!equals(this.k44_1, other.k44_1))
|
|
86459
86473
|
return false;
|
|
86460
86474
|
if (!equals(this.l44_1, other.l44_1))
|
|
86461
86475
|
return false;
|
|
86462
|
-
if (!this.m44_1
|
|
86476
|
+
if (!(this.m44_1 === other.m44_1))
|
|
86463
86477
|
return false;
|
|
86464
86478
|
if (!equals(this.n44_1, other.n44_1))
|
|
86465
86479
|
return false;
|
|
86466
|
-
if (!this.o44_1
|
|
86480
|
+
if (!equals(this.o44_1, other.o44_1))
|
|
86481
|
+
return false;
|
|
86482
|
+
if (!this.p44_1.equals(other.p44_1))
|
|
86483
|
+
return false;
|
|
86484
|
+
if (!equals(this.q44_1, other.q44_1))
|
|
86485
|
+
return false;
|
|
86486
|
+
if (!this.r44_1.equals(other.r44_1))
|
|
86467
86487
|
return false;
|
|
86468
|
-
if (!(this.
|
|
86488
|
+
if (!(this.s44_1 === other.s44_1))
|
|
86469
86489
|
return false;
|
|
86470
86490
|
return true;
|
|
86471
86491
|
};
|
|
@@ -86765,18 +86785,18 @@ function requireClientsdkClientcore () {
|
|
|
86765
86785
|
return function ($this$modify) {
|
|
86766
86786
|
if ($action.l3a_1.u3a_1.k2o_1 === this$0.y44_1) {
|
|
86767
86787
|
var tmp_1;
|
|
86768
|
-
var tmp_2 = $this$modify.
|
|
86788
|
+
var tmp_2 = $this$modify.n44_1.g2();
|
|
86769
86789
|
if (isInterface(tmp_2, CoreMemberStateWithCid)) {
|
|
86770
|
-
var tmp_3 = $this$modify.
|
|
86790
|
+
var tmp_3 = $this$modify.n44_1.g2();
|
|
86771
86791
|
tmp_1 = (isInterface(tmp_3, CoreMemberStateWithCid) ? tmp_3 : THROW_CCE()).d34() === $action.n3a_1;
|
|
86772
86792
|
} else {
|
|
86773
86793
|
tmp_1 = false;
|
|
86774
86794
|
}
|
|
86775
86795
|
if (tmp_1) {
|
|
86776
86796
|
var tmp_4 = $this$modify;
|
|
86777
|
-
var tmp_5 = $this$modify.
|
|
86797
|
+
var tmp_5 = $this$modify.n44_1;
|
|
86778
86798
|
var tmp0_safe_receiver = $action.l3a_1.w3a_1;
|
|
86779
|
-
tmp_4.
|
|
86799
|
+
tmp_4.n44_1 = toResolved(tmp_5, new Left($action.n3a_1, $action.l3a_1.t3a_1, '', tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b3b_1));
|
|
86780
86800
|
}
|
|
86781
86801
|
}
|
|
86782
86802
|
return Unit_instance;
|
|
@@ -86793,22 +86813,22 @@ function requireClientsdkClientcore () {
|
|
|
86793
86813
|
var tmp_0;
|
|
86794
86814
|
switch ($action.c47_1.v2_1) {
|
|
86795
86815
|
case 1:
|
|
86796
|
-
tmp_0 = toResolved(this_0.
|
|
86816
|
+
tmp_0 = toResolved(this_0.o44_1, new Started($action.a47_1));
|
|
86797
86817
|
break;
|
|
86798
86818
|
case 0:
|
|
86799
|
-
tmp_0 = toResolved(this_0.
|
|
86819
|
+
tmp_0 = toResolved(this_0.o44_1, new Prewarm($action.a47_1));
|
|
86800
86820
|
break;
|
|
86801
86821
|
default:
|
|
86802
86822
|
noWhenBranchMatchedException();
|
|
86803
86823
|
break;
|
|
86804
86824
|
}
|
|
86805
|
-
tmp.
|
|
86825
|
+
tmp.o44_1 = tmp_0;
|
|
86806
86826
|
var tmp1_safe_receiver = $action.e47_1;
|
|
86807
86827
|
if (tmp1_safe_receiver == null)
|
|
86808
86828
|
;
|
|
86809
86829
|
else {
|
|
86810
86830
|
// Inline function 'kotlin.let' call
|
|
86811
|
-
this_0.
|
|
86831
|
+
this_0.n44_1 = toResolved(this_0.n44_1, new Joined(tmp1_safe_receiver.g47_1, tmp1_safe_receiver.h47_1));
|
|
86812
86832
|
var tmp0 = $this$new.x44_1;
|
|
86813
86833
|
var tmp2 = tmp1_safe_receiver.g47_1;
|
|
86814
86834
|
// Inline function 'kotlin.collections.set' call
|
|
@@ -86820,9 +86840,9 @@ function requireClientsdkClientcore () {
|
|
|
86820
86840
|
}
|
|
86821
86841
|
function CallState$update$lambda_1($action) {
|
|
86822
86842
|
return function ($this$modify) {
|
|
86823
|
-
var tmp_0 = $this$modify.
|
|
86843
|
+
var tmp_0 = $this$modify.n44_1.g2();
|
|
86824
86844
|
if (isInterface(tmp_0, CoreMemberStateWithCid)) {
|
|
86825
|
-
var tmp_1 = $this$modify.
|
|
86845
|
+
var tmp_1 = $this$modify.n44_1.g2();
|
|
86826
86846
|
(isInterface(tmp_1, CoreMemberStateWithCid) ? tmp_1 : THROW_CCE()).p4j($action.j47_1);
|
|
86827
86847
|
}
|
|
86828
86848
|
return Unit_instance;
|
|
@@ -86830,7 +86850,7 @@ function requireClientsdkClientcore () {
|
|
|
86830
86850
|
}
|
|
86831
86851
|
function CallState$update$lambda_2($action, $requestId, $$this$apply, $callId) {
|
|
86832
86852
|
return function ($this$modify) {
|
|
86833
|
-
$this$modify.
|
|
86853
|
+
$this$modify.n44_1 = toPending($this$modify.n44_1, new Joined($action.p2c_1, $action.q2c_1), $requestId);
|
|
86834
86854
|
var tmp0 = $$this$apply.x44_1;
|
|
86835
86855
|
var tmp2 = $action.p2c_1;
|
|
86836
86856
|
// Inline function 'kotlin.collections.set' call
|
|
@@ -86841,7 +86861,7 @@ function requireClientsdkClientcore () {
|
|
|
86841
86861
|
}
|
|
86842
86862
|
function CallState$update$lambda_3($event, $newMemberId, $$this$apply, $callId) {
|
|
86843
86863
|
return function ($this$modify) {
|
|
86844
|
-
$this$modify.
|
|
86864
|
+
$this$modify.n44_1 = new Resolved(new Joined($event.y36_1, $newMemberId));
|
|
86845
86865
|
$$this$apply.x44_1.o2($event.w36_1.f37_1);
|
|
86846
86866
|
var tmp0 = $$this$apply.x44_1;
|
|
86847
86867
|
var tmp2 = $event.y36_1;
|
|
@@ -86852,56 +86872,56 @@ function requireClientsdkClientcore () {
|
|
|
86852
86872
|
};
|
|
86853
86873
|
}
|
|
86854
86874
|
function CallState$update$lambda_4($this$modify) {
|
|
86855
|
-
if ($this$modify.
|
|
86875
|
+
if ($this$modify.r44_1.equals(MediaConnectionState_Closed_getInstance()))
|
|
86856
86876
|
return Unit_instance;
|
|
86857
86877
|
var tmp;
|
|
86858
|
-
var tmp_0 = $this$modify.
|
|
86878
|
+
var tmp_0 = $this$modify.n44_1.g2();
|
|
86859
86879
|
if (!(tmp_0 instanceof Joined)) {
|
|
86860
|
-
tmp = $this$modify.
|
|
86880
|
+
tmp = $this$modify.r44_1.equals(MediaConnectionState_Connected_getInstance());
|
|
86861
86881
|
} else {
|
|
86862
86882
|
tmp = false;
|
|
86863
86883
|
}
|
|
86864
86884
|
if (tmp) {
|
|
86865
|
-
$this$modify.
|
|
86885
|
+
$this$modify.s44_1 = true;
|
|
86866
86886
|
}
|
|
86867
86887
|
var tmp_1 = $this$modify;
|
|
86868
86888
|
var tmp_2;
|
|
86869
|
-
if ($this$modify.
|
|
86889
|
+
if ($this$modify.r44_1.equals(MediaConnectionState_New_getInstance())) {
|
|
86870
86890
|
tmp_2 = MediaConnectionState_Failed_getInstance();
|
|
86871
86891
|
} else {
|
|
86872
|
-
var tmp_3 = $this$modify.
|
|
86892
|
+
var tmp_3 = $this$modify.n44_1.g2();
|
|
86873
86893
|
if (!(tmp_3 instanceof Joined)) {
|
|
86874
86894
|
tmp_2 = MediaConnectionState_Failed_getInstance();
|
|
86875
86895
|
} else {
|
|
86876
|
-
tmp_2 = $this$modify.
|
|
86896
|
+
tmp_2 = $this$modify.r44_1;
|
|
86877
86897
|
}
|
|
86878
86898
|
}
|
|
86879
|
-
tmp_1.
|
|
86899
|
+
tmp_1.r44_1 = tmp_2;
|
|
86880
86900
|
return Unit_instance;
|
|
86881
86901
|
}
|
|
86882
86902
|
function CallState$update$lambda_5($event) {
|
|
86883
86903
|
return function ($this$modify) {
|
|
86884
|
-
$this$modify.
|
|
86904
|
+
$this$modify.n44_1 = toFailed($this$modify.n44_1, $event.m46_1);
|
|
86885
86905
|
return Unit_instance;
|
|
86886
86906
|
};
|
|
86887
86907
|
}
|
|
86888
86908
|
function CallState$update$lambda_6($event) {
|
|
86889
86909
|
return function ($this$modify) {
|
|
86890
|
-
$this$modify.
|
|
86910
|
+
$this$modify.n44_1 = new Resolved(new Joined($event.r38_1, $event.p38_1.y38_1));
|
|
86891
86911
|
return Unit_instance;
|
|
86892
86912
|
};
|
|
86893
86913
|
}
|
|
86894
86914
|
function CallState$update$lambda_7($requestId) {
|
|
86895
86915
|
return function ($this$modify) {
|
|
86896
|
-
$this$modify.
|
|
86916
|
+
$this$modify.n44_1 = toPending($this$modify.n44_1, new Knocking('placeholder'), $requestId);
|
|
86897
86917
|
return Unit_instance;
|
|
86898
86918
|
};
|
|
86899
86919
|
}
|
|
86900
86920
|
function CallState$update$lambda_8($response) {
|
|
86901
86921
|
return function ($this$modify) {
|
|
86902
|
-
var tmp_0 = $this$modify.
|
|
86922
|
+
var tmp_0 = $this$modify.n44_1.g2();
|
|
86903
86923
|
if (tmp_0 instanceof Knocking) {
|
|
86904
|
-
$this$modify.
|
|
86924
|
+
$this$modify.n44_1 = toResolved($this$modify.n44_1, new Knocking($response.l2u_1));
|
|
86905
86925
|
}
|
|
86906
86926
|
return Unit_instance;
|
|
86907
86927
|
};
|
|
@@ -86912,74 +86932,74 @@ function requireClientsdkClientcore () {
|
|
|
86912
86932
|
}
|
|
86913
86933
|
function CallState$update$lambda_10($response) {
|
|
86914
86934
|
return function ($this$modify) {
|
|
86915
|
-
$this$modify.
|
|
86935
|
+
$this$modify.o44_1 = toResolved($this$modify.o44_1, new Started($response.o2u_1));
|
|
86916
86936
|
return Unit_instance;
|
|
86917
86937
|
};
|
|
86918
86938
|
}
|
|
86919
86939
|
function CallState$update$lambda_11($action, $requestId) {
|
|
86920
86940
|
return function ($this$modify) {
|
|
86921
|
-
$this$modify.
|
|
86941
|
+
$this$modify.n44_1 = toPending($this$modify.n44_1, new Left($action.z2b_1, $action.a2c_1), $requestId);
|
|
86922
86942
|
return Unit_instance;
|
|
86923
86943
|
};
|
|
86924
86944
|
}
|
|
86925
86945
|
function CallState$update$lambda_12($action) {
|
|
86926
86946
|
return function ($this$modify) {
|
|
86927
|
-
$this$modify.
|
|
86947
|
+
$this$modify.n44_1 = toResolved($this$modify.n44_1, new Left($action.b2m_1, $action.c2m_1));
|
|
86928
86948
|
return Unit_instance;
|
|
86929
86949
|
};
|
|
86930
86950
|
}
|
|
86931
86951
|
function CallState$update$lambda_13($callId, $action) {
|
|
86932
86952
|
return function ($this$modify) {
|
|
86933
|
-
$this$modify.
|
|
86934
|
-
$this$modify.
|
|
86953
|
+
$this$modify.o44_1 = new Resolved(new Completed($callId, $action.p36_1.t33_1));
|
|
86954
|
+
$this$modify.q44_1 = Disconnected_instance;
|
|
86935
86955
|
return Unit_instance;
|
|
86936
86956
|
};
|
|
86937
86957
|
}
|
|
86938
86958
|
function CallState$update$lambda_14($action) {
|
|
86939
86959
|
return function ($this$modify) {
|
|
86940
|
-
$this$modify.
|
|
86960
|
+
$this$modify.n44_1 = toFailed($this$modify.n44_1, $action.w27_1);
|
|
86941
86961
|
return Unit_instance;
|
|
86942
86962
|
};
|
|
86943
86963
|
}
|
|
86944
86964
|
function CallState$update$lambda_15($offer) {
|
|
86945
86965
|
return function ($this$modify) {
|
|
86946
|
-
$this$modify.
|
|
86966
|
+
$this$modify.p44_1 = $this$modify.p44_1.u48(new Offer_0($offer.k3j_1));
|
|
86947
86967
|
return Unit_instance;
|
|
86948
86968
|
};
|
|
86949
86969
|
}
|
|
86950
86970
|
function CallState$update$lambda_16($offer) {
|
|
86951
86971
|
return function ($this$modify) {
|
|
86952
|
-
$this$modify.
|
|
86972
|
+
$this$modify.p44_1 = $this$modify.p44_1.u48(new Answer_0($offer.m3j_1));
|
|
86953
86973
|
return Unit_instance;
|
|
86954
86974
|
};
|
|
86955
86975
|
}
|
|
86956
86976
|
function CallState$update$lambda_17($this$modify) {
|
|
86957
|
-
$this$modify.
|
|
86977
|
+
$this$modify.p44_1 = $this$modify.p44_1.u48(VOID, VOID, false);
|
|
86958
86978
|
return Unit_instance;
|
|
86959
86979
|
}
|
|
86960
86980
|
function CallState$update$lambda_18($action) {
|
|
86961
86981
|
return function ($this$modify) {
|
|
86962
|
-
$this$modify.
|
|
86982
|
+
$this$modify.p44_1 = $this$modify.p44_1.u48(VOID, new Answer_0($action.f39_1.n39_1));
|
|
86963
86983
|
return Unit_instance;
|
|
86964
86984
|
};
|
|
86965
86985
|
}
|
|
86966
86986
|
function CallState$update$lambda_19($action) {
|
|
86967
86987
|
return function ($this$modify) {
|
|
86968
|
-
$this$modify.
|
|
86969
|
-
var tmp_0 = $this$modify.
|
|
86988
|
+
$this$modify.r44_1 = $action.f25_1;
|
|
86989
|
+
var tmp_0 = $this$modify.q44_1;
|
|
86970
86990
|
if (tmp_0 instanceof Disconnected) {
|
|
86971
86991
|
return Unit_instance;
|
|
86972
86992
|
}
|
|
86973
86993
|
var tmp_1 = $this$modify;
|
|
86974
|
-
switch ($this$modify.
|
|
86994
|
+
switch ($this$modify.r44_1.v2_1) {
|
|
86975
86995
|
case 3:
|
|
86976
|
-
tmp_1.
|
|
86996
|
+
tmp_1.q44_1 = Connected_instance;
|
|
86977
86997
|
break;
|
|
86978
86998
|
case 4:
|
|
86979
|
-
tmp_1.
|
|
86999
|
+
tmp_1.q44_1 = new Reconnecting();
|
|
86980
87000
|
break;
|
|
86981
87001
|
default:
|
|
86982
|
-
tmp_1.
|
|
87002
|
+
tmp_1.q44_1 = $this$modify.q44_1;
|
|
86983
87003
|
break;
|
|
86984
87004
|
}
|
|
86985
87005
|
return Unit_instance;
|
|
@@ -87000,11 +87020,11 @@ function requireClientsdkClientcore () {
|
|
|
87000
87020
|
};
|
|
87001
87021
|
}
|
|
87002
87022
|
function CallState$update$lambda_21($this$modify) {
|
|
87003
|
-
$this$modify.
|
|
87023
|
+
$this$modify.j44_1 = true;
|
|
87004
87024
|
return Unit_instance;
|
|
87005
87025
|
}
|
|
87006
87026
|
function CallState$update$lambda_22($this$modify) {
|
|
87007
|
-
var tmp = $this$modify.
|
|
87027
|
+
var tmp = $this$modify.q44_1;
|
|
87008
87028
|
var tmp0_safe_receiver = tmp instanceof Reconnecting ? tmp : null;
|
|
87009
87029
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n45_1;
|
|
87010
87030
|
var tmp_0;
|
|
@@ -87014,16 +87034,16 @@ function requireClientsdkClientcore () {
|
|
|
87014
87034
|
tmp_0 = tmp1_elvis_lhs;
|
|
87015
87035
|
}
|
|
87016
87036
|
var currentRetryCount = tmp_0;
|
|
87017
|
-
$this$modify.
|
|
87037
|
+
$this$modify.q44_1 = new Reconnecting(currentRetryCount + 1 | 0);
|
|
87018
87038
|
return Unit_instance;
|
|
87019
87039
|
}
|
|
87020
87040
|
function CallState$update$lambda_23($this$modify) {
|
|
87021
|
-
$this$modify.
|
|
87041
|
+
$this$modify.j44_1 = false;
|
|
87022
87042
|
return Unit_instance;
|
|
87023
87043
|
}
|
|
87024
87044
|
function CallState$update$lambda_24($this$modify) {
|
|
87025
|
-
$this$modify.
|
|
87026
|
-
$this$modify.
|
|
87045
|
+
$this$modify.j44_1 = false;
|
|
87046
|
+
$this$modify.q44_1 = Disconnected_instance;
|
|
87027
87047
|
return Unit_instance;
|
|
87028
87048
|
}
|
|
87029
87049
|
function CallState(calls, conversationIdToCallId, currentUserId) {
|
|
@@ -87262,26 +87282,26 @@ function requireClientsdkClientcore () {
|
|
|
87262
87282
|
};
|
|
87263
87283
|
function Joined(cid, mid, conversationName) {
|
|
87264
87284
|
conversationName = conversationName === VOID ? null : conversationName;
|
|
87265
|
-
this.
|
|
87266
|
-
this.
|
|
87267
|
-
this.
|
|
87285
|
+
this.t44_1 = cid;
|
|
87286
|
+
this.u44_1 = mid;
|
|
87287
|
+
this.v44_1 = conversationName;
|
|
87268
87288
|
}
|
|
87269
87289
|
protoOf(Joined).d34 = function () {
|
|
87270
|
-
return this.
|
|
87290
|
+
return this.t44_1;
|
|
87271
87291
|
};
|
|
87272
87292
|
protoOf(Joined).p4j = function (_set____db54di) {
|
|
87273
|
-
this.
|
|
87293
|
+
this.v44_1 = _set____db54di;
|
|
87274
87294
|
};
|
|
87275
87295
|
protoOf(Joined).u4f = function () {
|
|
87276
|
-
return this.
|
|
87296
|
+
return this.v44_1;
|
|
87277
87297
|
};
|
|
87278
87298
|
protoOf(Joined).toString = function () {
|
|
87279
|
-
return 'Joined(cid=' + this.
|
|
87299
|
+
return 'Joined(cid=' + this.t44_1 + ', mid=' + this.u44_1 + ', conversationName=' + this.v44_1 + ')';
|
|
87280
87300
|
};
|
|
87281
87301
|
protoOf(Joined).hashCode = function () {
|
|
87282
|
-
var result = getStringHashCode(this.
|
|
87283
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
87284
|
-
result = imul(result, 31) + (this.
|
|
87302
|
+
var result = getStringHashCode(this.t44_1);
|
|
87303
|
+
result = imul(result, 31) + getStringHashCode(this.u44_1) | 0;
|
|
87304
|
+
result = imul(result, 31) + (this.v44_1 == null ? 0 : getStringHashCode(this.v44_1)) | 0;
|
|
87285
87305
|
return result;
|
|
87286
87306
|
};
|
|
87287
87307
|
protoOf(Joined).equals = function (other) {
|
|
@@ -87289,11 +87309,11 @@ function requireClientsdkClientcore () {
|
|
|
87289
87309
|
return true;
|
|
87290
87310
|
if (!(other instanceof Joined))
|
|
87291
87311
|
return false;
|
|
87292
|
-
if (!(this.
|
|
87312
|
+
if (!(this.t44_1 === other.t44_1))
|
|
87293
87313
|
return false;
|
|
87294
|
-
if (!(this.
|
|
87314
|
+
if (!(this.u44_1 === other.u44_1))
|
|
87295
87315
|
return false;
|
|
87296
|
-
if (!(this.
|
|
87316
|
+
if (!(this.v44_1 == other.v44_1))
|
|
87297
87317
|
return false;
|
|
87298
87318
|
return true;
|
|
87299
87319
|
};
|