@vgroup/dialbox 0.8.29 → 0.8.30
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/esm2020/lib/components/call-progress/call-progress.component.mjs +25 -5
- package/esm2020/lib/service/clearcall-live.service.mjs +9 -7
- package/fesm2015/vgroup-dialbox.mjs +34 -12
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +32 -10
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +5 -1
- package/lib/service/clearcall-live.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter, Component, Input, Output, ViewChild, Directive, HostListener, Inject, NgModule } from '@angular/core';
|
|
2
|
+
import { Injectable, EventEmitter, Component, Input, Output, ViewChild, ViewChildren, Directive, HostListener, Inject, NgModule } from '@angular/core';
|
|
3
3
|
import swal from 'sweetalert2';
|
|
4
4
|
import { throwError, BehaviorSubject, of, Subject, interval, Subscription } from 'rxjs';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
@@ -2280,7 +2280,7 @@ class ClearCallLiveService {
|
|
|
2280
2280
|
this.seenEventIds = new Set();
|
|
2281
2281
|
this.MAX_RECONNECTS = 5;
|
|
2282
2282
|
this.MAX_BACKOFF_MS = 15000;
|
|
2283
|
-
this.MAX_SUGGESTIONS =
|
|
2283
|
+
this.MAX_SUGGESTIONS = 20; // per kind (say next / coaching)
|
|
2284
2284
|
this.MAX_TRANSCRIPT = 300;
|
|
2285
2285
|
/** Per-feature switches from GET /utilities/clearcall/settings (`effective` = user setting AND plan allowance). */
|
|
2286
2286
|
this.features = { liveTranscription: true, liveSentiment: true, contextualResponse: true };
|
|
@@ -2459,14 +2459,14 @@ class ClearCallLiveService {
|
|
|
2459
2459
|
case 'contextual_response.updated': {
|
|
2460
2460
|
const text = d.text ?? d.response ?? d.suggestion ?? d.reply;
|
|
2461
2461
|
if (text) {
|
|
2462
|
-
this.pushSuggestion({ id: e.eventId, kind: 'reply', text });
|
|
2462
|
+
this.pushSuggestion({ id: e.eventId, kind: 'reply', text, time: this.formatTime(e.timestamp) });
|
|
2463
2463
|
}
|
|
2464
2464
|
break;
|
|
2465
2465
|
}
|
|
2466
2466
|
case 'coaching.updated': {
|
|
2467
2467
|
const text = d.tip ?? d.text ?? d.message ?? d.coaching;
|
|
2468
2468
|
if (text) {
|
|
2469
|
-
this.pushSuggestion({ id: e.eventId, kind: 'coaching', text, signal: d.signal });
|
|
2469
|
+
this.pushSuggestion({ id: e.eventId, kind: 'coaching', text, signal: d.signal, time: this.formatTime(e.timestamp) });
|
|
2470
2470
|
}
|
|
2471
2471
|
break;
|
|
2472
2472
|
}
|
|
@@ -2523,10 +2523,12 @@ class ClearCallLiveService {
|
|
|
2523
2523
|
this.transcript.splice(0, this.transcript.length - this.MAX_TRANSCRIPT);
|
|
2524
2524
|
}
|
|
2525
2525
|
}
|
|
2526
|
+
/** Oldest first, newest last (chat order). Keeps the latest MAX_SUGGESTIONS of each kind. */
|
|
2526
2527
|
pushSuggestion(s) {
|
|
2527
|
-
this.suggestions.
|
|
2528
|
-
|
|
2529
|
-
|
|
2528
|
+
this.suggestions.push(s);
|
|
2529
|
+
const ofKind = this.suggestions.filter(x => x.kind === s.kind);
|
|
2530
|
+
if (ofKind.length > this.MAX_SUGGESTIONS) {
|
|
2531
|
+
this.suggestions.splice(this.suggestions.indexOf(ofKind[0]), 1);
|
|
2530
2532
|
}
|
|
2531
2533
|
}
|
|
2532
2534
|
}
|
|
@@ -2663,6 +2665,7 @@ class CallProgressComponent {
|
|
|
2663
2665
|
// Call Insights — live data from ClearCall via ClearCallLiveService
|
|
2664
2666
|
this.showInsightsPanel = false;
|
|
2665
2667
|
this.lastTranscriptSig = '';
|
|
2668
|
+
this.lastSuggestionSig = '';
|
|
2666
2669
|
this.trackById = (_, s) => s.id;
|
|
2667
2670
|
this.trackByKey = (_, t) => t.key;
|
|
2668
2671
|
this.insightsFullscreen = false;
|
|
@@ -5155,6 +5158,8 @@ class CallProgressComponent {
|
|
|
5155
5158
|
}).catch(err => console.error('Error unholding pending conference', err));
|
|
5156
5159
|
}
|
|
5157
5160
|
}
|
|
5161
|
+
/** Newest suggestion of a group gets the prominent style, the earlier ones are toned down. */
|
|
5162
|
+
isLatest(items, s) { return items.length > 0 && items[items.length - 1] === s; }
|
|
5158
5163
|
get insightsStatus() { return this.clearCallLive.status; }
|
|
5159
5164
|
get insightsStatusText() {
|
|
5160
5165
|
switch (this.clearCallLive.status) {
|
|
@@ -5188,6 +5193,16 @@ class CallProgressComponent {
|
|
|
5188
5193
|
}
|
|
5189
5194
|
get insightsTranscript() { return this.clearCallLive.transcript; }
|
|
5190
5195
|
ngAfterViewChecked() {
|
|
5196
|
+
// Say Next / AI Suggestion lists are oldest → newest; keep the newest in view
|
|
5197
|
+
const boxes = this.suggestScrollRefs?.toArray() || [];
|
|
5198
|
+
const sug = this.clearCallLive.suggestions;
|
|
5199
|
+
const sugSig = boxes.length + ':' + sug.length + ':' + (sug.length ? sug[sug.length - 1].id : '');
|
|
5200
|
+
if (sugSig !== this.lastSuggestionSig) {
|
|
5201
|
+
this.lastSuggestionSig = sugSig;
|
|
5202
|
+
const toBottom = () => boxes.forEach(b => b.nativeElement.scrollTop = b.nativeElement.scrollHeight);
|
|
5203
|
+
toBottom();
|
|
5204
|
+
requestAnimationFrame(toBottom); // once the new item's styles/layout have settled
|
|
5205
|
+
}
|
|
5191
5206
|
const list = this.transcriptListRef?.nativeElement;
|
|
5192
5207
|
if (!list) {
|
|
5193
5208
|
return;
|
|
@@ -5210,7 +5225,10 @@ class CallProgressComponent {
|
|
|
5210
5225
|
toggleInsightsPanel() {
|
|
5211
5226
|
this.showInsightsPanel = !this.showInsightsPanel;
|
|
5212
5227
|
this.insightsFullscreen = false;
|
|
5213
|
-
this.fsKeypadOpen = false;
|
|
5228
|
+
this.fsKeypadOpen = false;
|
|
5229
|
+
this.lastTranscriptSig = '';
|
|
5230
|
+
this.lastSuggestionSig = ''; // lists are re-created on open — scroll them to the latest again
|
|
5231
|
+
// always (re)open / close as the regular side panel
|
|
5214
5232
|
if (this.showInsightsPanel) {
|
|
5215
5233
|
this.clearCallLive.loadSettings();
|
|
5216
5234
|
} // pick up any settings change made since last open
|
|
@@ -5219,6 +5237,7 @@ class CallProgressComponent {
|
|
|
5219
5237
|
this.insightsFullscreen = !this.insightsFullscreen;
|
|
5220
5238
|
this.fsKeypadOpen = false;
|
|
5221
5239
|
this.lastTranscriptSig = ''; // the transcript list is a new element — scroll it to the bottom again
|
|
5240
|
+
this.lastSuggestionSig = ''; // same for the Say Next / AI Suggestion lists
|
|
5222
5241
|
}
|
|
5223
5242
|
/** The participants panel belongs to the regular UI: leave full screen, then show it. */
|
|
5224
5243
|
openParticipantsFromFullscreen() {
|
|
@@ -5448,10 +5467,10 @@ class CallProgressComponent {
|
|
|
5448
5467
|
}
|
|
5449
5468
|
}
|
|
5450
5469
|
CallProgressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CallProgressComponent, deps: [{ token: ExtensionService }, { token: i0.ChangeDetectorRef }, { token: TwilioService }, { token: IpAddressService }, { token: IncomeingCallSocketService }, { token: ClearCallLiveService }, { token: i4.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
5451
|
-
CallProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CallProgressComponent, selector: "lib-call-progress", inputs: { callData: "callData", selectedCallerId: "selectedCallerId", newIncomingCallData: "newIncomingCallData", newIncomingCallsList: "newIncomingCallsList", callerIdList: "callerIdList", newCallConference: "newCallConference", missCallInfo: "missCallInfo", userSettingInfo: "userSettingInfo", deviceId: "deviceId", callAction: "callAction", conferenceCallInfo: "conferenceCallInfo", incomingFromImage: "incomingFromImage", cancelConnectingAction: "cancelConnectingAction", outgoingContactName: "outgoingContactName" }, outputs: { endCallEvent: "endCallEvent", incomingCallsNewInfo: "incomingCallsNewInfo", minimiseEvent: "minimiseEvent", muteAllStatusEvent: "muteAllStatusEvent", incomingCallInitiated: "incomingCallInitiated", isLoadershown: "isLoadershown", endIncomingCallEvent: "endIncomingCallEvent" }, viewQueries: [{ propertyName: "transcriptListRef", first: true, predicate: ["transcriptList"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"d-flex\">\n <div class=\"call-container\" *ngIf=\"!isMinimised && currentCallList?.length\"\n [ngClass]=\"{'collops': isCollops, 'incoming-call-container': isClickExpand, 'contacts-open': showContactsPanel }\">\n <div class=\"loader-wrapper outgoing-call-loader\"\n *ngIf=\"showNewCallLoader\">\n <div class=\"active-call\" style=\"display: flex; flex-direction: column; position: relative;\">\n <div class=\"call-animation call-animation-play\">\n <img class=\"avatar-img\" [src]=\"newCallLoaderData?.img || 'assets/images/user.jpg'\" alt=\"\" />\n </div>\n <div class=\"callerDetails\">\n <h1 style=\"margin-top: 8px;\">Connecting...</h1>\n <p style=\"text-transform: capitalize;\">{{ newCallLoaderData?.name || newCallLoaderData?.phone || 'Unknown' }}</p>\n </div>\n \n <div class=\"call-action-btns\">\n <div class=\"d-flex justify-content-center\">\n <button class=\"call-btn end-call-btn\" disabled (click)=\"endCall()\" style=\"visibility: hidden;\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"dialpad-alerts\"\n [ngClass]=\"{\n 'conference-alert': isConference && currentCall?.isConference,\n 'normal-call-alert': !isConference\n }\" *ngIf=\"callNumberToast.show\">\n <div class=\"dialbox-pop1 alert fade show\"\n [ngClass]=\"callNumberToast.type\"\n role=\"alert\">\n <div class=\"d-flex justify-content-between align-items-center\">\n <div class=\"flex-grow-1 text-left\">\n You'r calling\n <strong>{{callNumberToast.displayNum}}</strong>\n </div>\n <div class=\"text-right\">\n <button class=\"btn btn-link btn-disc p-0 px-1\" (click)=\"cancelCallToast()\"> Cancel Call </button>\n </div>\n </div>\n </div>\n </div>\n <!-- All type Call Hold list -->\n <div class=\"held-call-banner\"\n *ngIf=\"(currentCallList.length > 1 && !!currentCall && ((isConferenceCallHold || isConference) || !isConference)) || !isAllAccepted\">\n <ng-container *ngFor=\"let conf of currentCallList\">\n <div class=\"held-call-content\" *ngIf=\"!conf?.isAcceptCall && currentCallList.length > 1 && deviceNumberList.includes(conf?.to) && conf?.isNotification\"\n [ngClass]=\"{'held-call-selected': selectedUserInfo?.participantId && selectedUserInfo?.participantId === conf?.participantId}\"\n (click)=\"conf?.businessNumber ? toggleC2CInfoPanel(conf) : null\"\n [ngStyle]=\"{'cursor': conf?.businessNumber ? 'pointer' : 'default'}\">\n <div class=\"held-info\">\n <div class=\"img\">\n <img class=\"avatar-img-wrapper border-radius-50\" [src]=\"conf?.img || 'assets/images/user.jpg'\" alt=\"\" width=\"35\" height=\"35\" />\n </div>\n <div class=\"held-caller\" *ngIf=\"!conf?.businessNumber\">\n <span class=\"held-label\">{{conf?.from}}</span>\n <span class=\"held-name\">{{conf?.fromName}}</span>\n </div>\n <div class=\"held-caller\" *ngIf=\"conf?.businessNumber\">\n <span class=\"held-main-label\">Call from C2C:</span>\n <span class=\"held-label\" ><span [title]=\"conf?.sourceName\">{{ truncateText(conf?.sourceName, 10) }}</span>|\n <span [title]=\"conf?.pointName\">{{ truncateText(conf?.pointName, 10) }}</span></span>\n <span class=\"held-label\">{{ truncateText(conf?.name, 26) }}</span>\n </div>\n </div>\n <div class=\"held-actions\">\n <ng-container *ngIf=\"isConnectingIncomingCallId == conf?.id\">\n <div class=\"connecting-wrapper mr-2\">\n <span class=\"ringing-text\">Connecting</span>\n <span class=\"dots\">\n <span>.</span>\n <span>.</span>\n <span>.</span>\n </span>\n </div>\n </ng-container>\n <button class=\"conference-hold-contact receive-btn\" (click)=\"waitingCallAccept(conf)\" [disabled]=\"isConnecting || isIncomingCallBtnDisable\" *ngIf=\"isConnectingIncomingCallId !== conf?.id\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n <button class=\"conference-contact\">\n <span class=\"material-symbols-outlined\" title=\"Call End\" (click)=\"onRejectCall(conf); $event.stopPropagation();\"> call_end </span>\n </button>\n <div *ngIf=\"conf?.businessNumber\" class=\"togglearrow-arrow me-2\" id=\"togglearrow\" (click)=\"toggleC2CInfoPanel(conf)\">\n <i class=\"fa fa-info\"></i>\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container *ngFor=\"let conf of conferenceCallList\">\n <div class=\"held-call-content\" *ngIf=\"(conf?.isConferenceHold || (showNewCallLoader && isConferenceCallHold)) && (conferenceCallList.length > 1 || showNewCallLoader)\"\n [ngClass]=\"{'held-call-selected': conf?.isBusinessNumber && selectedUserInfo?.participantId === conf?.businessParticipantId && isClickExpand}\"\n (click)=\"conf?.isBusinessNumber ? toggleC2CInfoPanel(conf) : null\"\n [ngStyle]=\"{'cursor': conf?.isBusinessNumber ? 'pointer' : 'default'}\">\n <div class=\"held-info\">\n <span class=\"material-symbols-outlined hold-icon\">pause_circle</span>\n <div class=\"held-caller\">\n <span class=\"held-label\">Hold</span>\n <span class=\"held-name\">{{conf?.callLabel}}</span>\n </div>\n </div>\n <div class=\"held-actions\">\n <button class=\"conference-hold-contact\" [ngClass]=\"{ 'on-hold': conf?.isConferenceHold }\"\n (click)=\"swapCalls(conf,true)\" [disabled]=\"isHoldBtnDisable\">\n <span *ngIf=\"conf?.isConferenceHold\" class=\"material-symbols-outlined\" [title]=\"'Resume'\"> resume </span>\n </button>\n <button class=\"conference-contact\" (click)=\"endConfereneceCall(conf); $event.stopPropagation();\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n <div class=\"togglearrow-arrow me-2\" id=\"togglearrow\" (click)=\"toggleContactsPanel(conf)\">\n <i class=\"fa fa-angle-right\"></i>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n\n <!-- For single incoming call -->\n <div class=\"h-100 py-5\" style=\"display: flex; flex-direction: column;\"\n *ngIf=\"currentCallList.length === 1 && currentCallList[0]?.isIncomingCall && !currentCallList[0]?.isAcceptCall\">\n <!-- <div class=\"callToNum\">Incoming call on <br /><span>{{currentCallList[0]?.to || 'Unknown Number'}}</span>\n </div> -->\n <div class=\"callToNum\">\n <ng-container *ngIf=\"currentCallList[0]?.businessNumber; else normalCall\">\n C2C CALL\n <br />\n <span> From : {{ currentCallList[0]?.sourceName }} | {{ currentCallList[0]?.pointName }} </span>\n </ng-container>\n\n <ng-template #normalCall>\n Incoming call on\n <br />\n <span>{{ currentCallList[0]?.to || 'Unknown Number' }}</span>\n </ng-template>\n </div>\n <div class=\"call-animation\" [ngClass]=\"{'call-animation-play': showRingAnimation}\">\n <img class=\"avatar-img\" [src]=\"incomingFromImage || 'assets/images/user.jpg'\" alt=\"\" width=\"120\" />\n </div>\n <div class=\"callerDetails\" *ngIf=\"!currentCallList[0]?.businessNumber\">\n <h1>{{ currentCallList[0]?.name ? currentCallList[0]?.name : currentCallList[0]?.phone || 'Unknown Number' }}</h1>\n <p *ngIf=\"!!currentCallList[0]?.name\">{{ currentCallList[0]?.phone }}</p>\n </div>\n <div class=\"callerDetails\" *ngIf=\"currentCallList[0]?.businessNumber\">\n <p *ngIf=\"!!currentCallList[0]?.name\">{{ truncateText(currentCallList[0]?.name, 45) }}</p>\n <p >{{ currentCallList[0]?.number }}</p>\n </div>\n <!-- Connecting overlay (shown after accept btn click, hidden on API response) -->\n <div class=\"connecting-overlay mt-auto\" *ngIf=\"isConnectingIncomingCallId == currentCallList[0]?.id\">\n <div class=\"connecting-dots\">\n <span></span><span></span><span></span>\n </div>\n <p class=\"connecting-text\">Connecting...</p>\n </div>\n\n <div class=\"call-action-btns mt-auto\" *ngIf=\"isConnectingIncomingCallId != currentCallList[0]?.id\">\n <button class=\"call-btn receive-btn\" *ngIf=\"!newIncomingCallsList[0]?.isCallConnected\"\n [disabled]=\"isIncomingCallBtnDisable\" (click)=\"acceptIncomingCall(currentCallList[0])\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n <button class=\"call-btn reject-btn\">\n <span class=\"material-symbols-outlined\" (click)=\"onRejectCall(currentCallList[0])\"> call_end </span>\n </button>\n </div>\n </div>\n\n <!-- For single active call -->\n <div *ngIf=\"(!isConference || isConferenceCallHold) && (!!currentCall?.id && !currentCall?.isConference) && currentCall?.isAcceptCall\"\n [ngStyle]=\"{'display': 'flex', 'flex-direction': 'column', 'position': 'relative'}\" class=\"active-call\">\n <div *ngIf=\"currentCall?.businessNumber;\" class=\"callToNum\">\n C2C CALL\n <br />\n <span> From : {{ currentCall?.userInfoId?.sourceName }} | {{ currentCall?.userInfoId?.pointName }} </span>\n </div>\n <div class=\"call-animation\" [ngClass]=\"{'call-animation-play': showRingAnimation}\">\n <img class=\"avatar-img\" *ngIf=\"!currentCall?.client\"\n [src]=\"currentCall?.direction == 'outgoing-call' ? currentCall?.toImage || 'assets/images/user.jpg' : currentCall?.fromImage || 'assets/images/user.jpg'\" alt=\"\" />\n <img class=\"avatar-img\" *ngIf=\"currentCall?.client\"\n [src]=\"currentCall?.direction == 'outgoing-call' ? currentCall?.fromImage || 'assets/images/user.jpg' : currentCall?.toImage || 'assets/images/user.jpg'\" alt=\"\" />\n </div>\n <div class=\"callerDetails\">\n <!-- C2C Business Call -->\n <ng-container *ngIf=\"currentCall?.businessNumber; else normalCall\">\n <h1>{{ currentCall?.userInfoId?.name || 'Unknown' }}</h1>\n <p>{{ currentCall?.userInfoId?.number || currentCall?.from || 'Unknown' }}</p>\n </ng-container>\n\n <!-- Normal Call -->\n <ng-template #normalCall>\n <h1 *ngIf=\"!currentCall?.client\"\n [ngStyle]=\"{'margin-top': showKeypad ? '0':'8px'}\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.toName || outgoingContactName || 'Unknown'\n : currentCall?.fromName || 'Unknown' }}\n </h1>\n <h1 *ngIf=\"currentCall?.client\"\n [ngStyle]=\"{'margin-top': showKeypad ? '0':'8px'}\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.fromName || 'Unknown'\n : currentCall?.toName || outgoingContactName || 'Unknown' }}\n </h1>\n <p *ngIf=\"!currentCall?.client\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.to\n : currentCall?.from }}\n </p>\n <p *ngIf=\"currentCall?.client\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.from\n : currentCall?.to }}\n </p>\n </ng-template>\n <!-- <h1 *ngIf=\"!currentCall?.client\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '8px'}\">{{currentCall?.direction == 'outgoing-call' ? currentCall?.toName || outgoingContactName || 'Unknown' :\n currentCall?.fromName || 'Unknown'}}</h1>\n <h1 *ngIf=\"currentCall?.client\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '8px'}\">{{currentCall?.direction == 'outgoing-call' ? currentCall?.fromName || 'Unknown' :\n currentCall?.toName || 'Unknown'}}</h1>\n <p *ngIf=\"!currentCall?.client\">{{ currentCall?.direction == 'outgoing-call' ? currentCall?.to || 'Unknown' : currentCall?.from || 'Unknown'}}</p>\n <p *ngIf=\"currentCall?.client\">{{ currentCall?.direction == 'outgoing-call' ? currentCall?.from || 'Unknown' : currentCall?.to || 'Unknown'}}</p> -->\n <h4 style=\"margin-top: 4px\">{{ timer}}</h4>\n </div>\n <div class=\"record-action-btns\" *ngIf=\"!showKeypad\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '20px'}\">\n <div class=\"record-btn-container\">\n <button class=\"record-btn start-stop\" *ngIf=\"!isRecording\"\n [ngClass]=\"{'recording': isRecording, 'stopped': !isRecording, 'disabled': userSettingInfo?.callRecording == 'N'}\" (click)=\"toggleRecording()\"\n [title]=\"isRecording ? 'Stop Recording' : 'Start Recording'\" [disabled]=\"!currentCall?.isAcceptCall || userSettingInfo?.callRecording == 'N'\">\n <span class=\"recording-icon\"></span>\n </button>\n <div class=\"pause-resume-btns\">\n <button class=\"record-btn pause-resume\" *ngIf=\"isRecording && !isPaused\" (click)=\"pauseRecording()\">\n <span class=\"material-symbols-outlined\"> pause </span>\n </button>\n <button class=\"record-btn pause-resume\" *ngIf=\"isPaused\" (click)=\"resumeRecording()\">\n <span class=\"material-symbols-outlined\"> play_arrow </span>\n </button>\n </div>\n </div>\n <div *ngIf=\"isRecording\" class=\"timer-display\">\n {{ getFormattedTime() }}\n </div>\n </div>\n <!-- Mute/unmute incoming call -->\n <div class=\"mute-incoming-row\" *ngIf=\"currentCall?.isAcceptCall && !showKeypad\">\n <span class=\"mute-incoming-label\">Mute incoming calls</span>\n <label class=\"switch mb-0\" title=\"Silence the ringtone of new incoming calls during this call\">\n <input type=\"checkbox\" [checked]=\"twilioService.isIncomingMuted\" (change)=\"toggleMuteIncomingCall()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div *ngIf=\"showKeypad\" class=\"sendDigit\">\n <input type=\"text\" name=\"call-inputs\" id=\"call-input\" [(ngModel)]=\"callInput\" (keyup)=\"onCallInputEnter($event)\">\n <span class=\"material-symbols-outlined input-clear-btn\" *ngIf=\"callInput\" (click)=\"clearInputs()\">close_small</span>\n </div>\n <div class=\"btn-container justify-content-center\" *ngIf=\"showKeypad\">\n <div class=\"key-btn\" *ngFor=\"let key of keypadVal\" (click)=\"onCallInputs(key.num)\">\n {{key.num}}\n <span class=\"btn-albhabets\">{{key.text ? key.text : ' '}}</span>\n </div>\n </div>\n\n <div class=\"call-action-btns\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '723x'}\">\n <div class=\"flex align-items-center justify-content-evenly mb-3\">\n <button class=\"call-sec-btn mr-3\" [disabled]=\"!currentCall?.isAcceptCall || !canSelfToggleMute()\" [title]=\"selfMuteTooltip()\" (click)=\"toggleMute()\">\n <span class=\"material-symbols-outlined\" *ngIf=\"isSelfEffectivelyMuted()\"> mic_off </span>\n <span class=\"material-symbols-outlined\" *ngIf=\"!isSelfEffectivelyMuted()\"> mic </span>\n </button>\n <button class=\"call-sec-btn mr-3\" [disabled]=\"!currentCall?.isAcceptCall\">\n <span class=\"material-symbols-outlined\" (click)=\"toggleKeypad()\"> transition_dissolve\n </span>\n </button>\n <button class=\"call-sec-btn mr-3\" [disabled]=\"!currentCall?.isAcceptCall\"\n (click)=\"toggleContactsPanel(currentCall)\">\n <span class=\"material-symbols-outlined\"> groups_2 </span>\n </button>\n <button class=\"call-sec-btn\" title=\"Call Insights\" [disabled]=\"!currentCall?.isAcceptCall\"\n [ngClass]=\"{'active': showInsightsPanel}\" (click)=\"toggleInsightsPanel()\">\n <span class=\"material-symbols-outlined\"> insights </span>\n </button>\n </div>\n <div>\n <button class=\"call-btn end-call-btn\" [disabled]=\"!currentCall?.isAcceptCall\" (click)=\"endCall(false, currentCall)\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n </div>\n </div>\n\n <!-- conference call view -->\n <div class=\"conference-call-view\" *ngIf=\"isConference\">\n <div class=\"conf-heading\">\n <span class=\"conf-icon material-symbols-outlined\"> groups </span>\n <span class=\"conf-title\">{{currentConferenceCall?.callLabel || 'Conference Call'}}</span>\n </div>\n <div class=\"scroll-container\">\n <div class=\"scroll-text conf-name\">\n <ng-container *ngFor=\"let call of currentCallList; let i = index\">\n <ng-container *ngIf=\"!call?.isConferenceHold\">\n <span *ngIf=\"shouldShowSeparator(i)\"> & </span>\n <span *ngIf=\"call?.client\">\n <ng-container *ngIf=\"!isSelfNumber(call) else selfNumber\">\n <span>{{call?.direction == 'outgoing-call' ? call?.fromName || call?.from :\n call?.toName || call?.to}}</span>\n </ng-container>\n <ng-template #selfNumber>\n <span>You</span>\n </ng-template>\n </span>\n <span *ngIf=\"!call?.client\">{{call?.direction == \"outgoing-call\" ? call?.toName || call?.to : call?.fromName || call?.from || 'Unknown number'}}</span>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <div class=\"conf-timer\">{{ currentConferenceCall?.timer || timer }}</div>\n <div class=\"record-action-btns mt-auto\" *ngIf=\"!showKeypad\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '20px'}\">\n <div class=\"record-btn-container\" >\n <button class=\"record-btn start-stop\" *ngIf=\"!isRecording\" [disabled]=\"userSettingInfo.callRecording == 'N'\"\n [ngClass]=\"{'recording': isRecording, 'stopped': !isRecording, 'disabled': userSettingInfo?.callRecording == 'N'}\" (click)=\"toggleRecording()\"\n [title]=\"isRecording ? 'Stop Recording' : 'Start Recording'\">\n <span class=\"recording-icon\"></span>\n </button>\n <div class=\"pause-resume-btns\">\n <button class=\"record-btn pause-resume\" *ngIf=\"isRecording && !isPaused\" (click)=\"pauseRecording()\">\n <span class=\"material-symbols-outlined\"> pause </span>\n </button>\n <button class=\"record-btn pause-resume\" *ngIf=\"isPaused\" (click)=\"resumeRecording()\">\n <span class=\"material-symbols-outlined\"> play_arrow </span>\n </button>\n </div>\n </div>\n <div *ngIf=\"isRecording\" class=\"timer-display\">\n {{ getFormattedTime() }}\n </div>\n </div>\n <!-- Mute/unmute incoming call -->\n <div class=\"mute-incoming-row\" *ngIf=\"currentCall?.isAcceptCall && !showKeypad\">\n <span class=\"mute-incoming-label\">Mute incoming calls</span>\n <label class=\"switch mb-0\" title=\"Silence the ringtone of new incoming calls during this call\">\n <input type=\"checkbox\" [checked]=\"twilioService.isIncomingMuted\" (change)=\"toggleMuteIncomingCall()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div *ngIf=\"showKeypad\" class=\"sendDigit mt-2\">\n <input type=\"text\" name=\"call-inputs\" id=\"call-input\" [(ngModel)]=\"callInput\" (keyup)=\"onCallInputEnter($event)\">\n <span class=\"material-symbols-outlined input-clear-btn\" *ngIf=\"callInput\" (click)=\"clearInputs()\">close_small</span>\n </div>\n <div class=\"btn-container justify-content-center\" *ngIf=\"showKeypad\">\n <div class=\"key-btn\" *ngFor=\"let key of keypadVal\" (click)=\"onCallInputs(key.num)\">\n {{key.num}}\n <span class=\"btn-albhabets\">{{key.text ? key.text : ' '}}</span>\n </div>\n </div>\n <div class=\"conf-actions\">\n <button class=\"circle-btn\" [ngClass]=\"{'active': isSelfEffectivelyMuted()}\" [disabled]=\"!canSelfToggleMute()\" [title]=\"selfMuteTooltip()\" (click)=\"toggleMute(true)\">\n <span class=\"material-symbols-outlined\"> {{ isSelfEffectivelyMuted() ? 'mic_off' : 'mic' }} </span>\n </button>\n <button class=\"circle-btn\" (click)=\"toggleKeypad()\">\n <span class=\"material-symbols-outlined\"> transition_dissolve </span>\n </button>\n <button class=\"circle-btn\" (click)=\"toggleContactsPanel(currentCall)\">\n <span class=\"material-symbols-outlined\"> groups_2 </span>\n </button>\n <button class=\"circle-btn\" title=\"Call Insights\" [ngClass]=\"{'active': showInsightsPanel}\" (click)=\"toggleInsightsPanel()\">\n <span class=\"material-symbols-outlined\"> insights </span>\n </button>\n </div>\n <div class=\"conf-end\">\n <button class=\"circle-btn danger\" (click)=\"endConfereneceCall(currentConferenceCall?.participants[0])\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n </div>\n\n <div class=\"wave-container\">\n <svg class=\"waves\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 24 150 28\" preserveAspectRatio=\"none\" shape-rendering=\"auto\">\n <defs>\n <path id=\"gentle-wave\"\n d=\"M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z\" />\n </defs>\n <g class=\"parallax\">\n <use xlink:href=\"#gentle-wave\" x=\"48\" y=\"0\" fill=\"rgba(255,255,255,0.7)\" />\n <use xlink:href=\"#gentle-wave\" x=\"48\" y=\"3\" fill=\"rgba(255,255,255,0.5)\" />\n <use xlink:href=\"#gentle-wave\" x=\"48\" y=\"7\" fill=\"#fff\" />\n </g>\n </svg>\n </div>\n </div>\n\n <!-- Incoming call user details shown in model -->\n <div class=\"call-container-model p-3 text-white model-content call-container\" *ngIf=\"isClickExpand\">\n <div class=\"close-info-panel-section\">\n <div class=\"d-flex justify-content-between\" *ngIf=\"currentConferenceCall?.conferenceId != selectedUserInfo?.conferenceId && newIncomingCallsList?.length > 1\">\n <p></p>\n <span class=\"material-symbols-outlined dial-close-btn \" (click)=\"onCloseC2CInfoPanel()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"\n fill=\"#ffffff\">\n <path\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" />\n </svg>\n </span>\n </div>\n </div>\n <div class=\"mb-2 user-info-section\">\n <div class=\"text-center my-3\">\n <h3 class=\"text-white\">C2C CALL : {{selectedUserInfo?.sourceName}} | {{selectedUserInfo?.pointName}}</h3>\n </div>\n <div class=\"mb-3\">\n <h5 class=\"text-white mb-1\">Name:</h5>\n <h4 class=\"text-white userName\">{{selectedUserInfo?.name}}</h4>\n </div>\n <div class=\"f-13\">\n <div class=\"row mb-3\">\n <div class=\"col-6 mb-2\">\n <div class=\"mb-1\">Extension:</div>\n <div class=\"ml-2\">{{selectedUserInfo?.extension}}</div>\n </div>\n <div class=\"col-6 mb-2\">\n <div class=\"mb-1\">Number:</div>\n <div class=\"\">{{selectedUserInfo?.number}}</div>\n </div> \n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 mb-2\">\n <div class=\"me-2\">Email: </div>\n <div>{{selectedUserInfo?.email}}</div>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 mb-2\">\n <div class=\"me-2\">Subject:</div>\n <div class=\"ml-2 subject-text\" title=\"{{selectedUserInfo?.subject}}\">\n {{selectedUserInfo?.subject}}</div>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 mb-2\">\n <div class=\"me-2 mb-1\">Image:</div>\n <div class=\"text-ellipsis\">\n <ng-container\n *ngIf=\"selectedUserInfo?.image && selectedUserInfo?.image !== '-'; else noImage\">\n <img src=\"{{selectedUserInfo?.image}}\" alt=\"\" width=\"150\" class=\"ml-2\" />\n </ng-container>\n <ng-template #noImage>\n <span class=\"ml-2\">No Image Available</span>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\" mb-4\">\n <div class=\"\">\n <div class=\"mb-1\">Message:</div>\n <div>\n <div class=\"text-container\" [class.expanded]=\"isExpanded\">{{selectedUserInfo?.message}}\n </div>\n <small class=\"toggle-btn\" *ngIf=\"showButton\" (click)=\"toggleText()\">{{ isExpanded ? 'See\n less' : 'See more' }}</small>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- call insights panel (live data from ClearCall via ClearCallLiveService) -->\n <div class=\"insights-panel\" [ngClass]=\"{'with-contacts': showContactsPanel}\"\n *ngIf=\"showInsightsPanel && !insightsFullscreen && !isMinimised && currentCallList?.length && !showNewCallLoader\">\n <div class=\"insights-header\">\n <span>\u2728 Call Insights</span>\n <span class=\"insights-header-actions\">\n <span class=\"material-symbols-outlined insights-close\" title=\"Full screen\" (click)=\"toggleInsightsFullscreen()\">fullscreen</span>\n <span class=\"material-symbols-outlined insights-close\" (click)=\"toggleInsightsPanel()\">close</span>\n </span>\n </div>\n\n <!-- Live sentiment -->\n <div class=\"insights-section insights-sentiment\" *ngIf=\"clearCallLive.features.liveSentiment; else sentimentOff\">\n <div class=\"sentiment-title\">\n <span>Live Sentiment</span>\n <span class=\"sentiment-value\" *ngIf=\"hasSentiment; else noSentiment\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\">\n {{ insightsSentimentLabel }} \u00B7 {{ clearCallLive.sentimentScore | number:'1.0-0' }}\n </span>\n <ng-template #noSentiment><span class=\"sentiment-value neutral\">\u2014</span></ng-template>\n </div>\n <div class=\"sentiment-bar\">\n <div class=\"sentiment-center\"></div>\n <div class=\"sentiment-fill\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\"\n [ngStyle]=\"insightsSentiment >= 0\n ? {'left': '50%', 'width': (insightsSentiment / 2) + '%'}\n : {'right': '50%', 'width': (-insightsSentiment / 2) + '%'}\"></div>\n </div>\n <div class=\"sentiment-scale\"><span>Negative</span><span>Positive</span></div>\n </div>\n <ng-template #sentimentOff>\n <div class=\"insights-section insights-sentiment\">\n <div class=\"sentiment-title\"><span>Live Sentiment</span></div>\n <ng-container *ngTemplateOutlet=\"featureOff; context: {$implicit: 'Live Sentiment'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- Say Next + AI Suggestion -->\n <ng-container *ngIf=\"clearCallLive.features.contextualResponse; else suggestionsOff\">\n <div class=\"insights-section insights-suggestions\" *ngFor=\"let sec of insightsSections; trackBy: trackByKey\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>{{ sec.title }}</div>\n <ul>\n <li *ngFor=\"let s of sec.items; trackBy: trackById\" [ngClass]=\"s.kind\">\n <span class=\"material-symbols-outlined\">{{ sec.icon }}</span>\n <div>\n <span class=\"suggestion-signal\" *ngIf=\"s.signal\">{{ s.signal }}</span>\n {{ s.text }}\n </div>\n </li>\n </ul>\n <div class=\"insights-empty\" *ngIf=\"!sec.items.length\">{{ insightsStatusText }}</div>\n </div>\n </ng-container>\n <ng-template #suggestionsOff>\n <div class=\"insights-section insights-suggestions\">\n <div class=\"insights-section-title\">Say Next & AI Suggestion</div>\n <ng-container *ngTemplateOutlet=\"featureOff; context: {$implicit: 'Say Next and AI Suggestion are'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- Live transcription -->\n <div class=\"insights-section insights-transcription\" *ngIf=\"clearCallLive.features.liveTranscription; else transcriptionOff\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>Live Transcription</div>\n <div class=\"transcript-list\" #transcriptList>\n <div class=\"transcript-line\" *ngFor=\"let t of insightsTranscript; trackBy: trackByKey\"\n [ngClass]=\"{'self': t.isSelf, 'interim': t.isInterim}\">\n <div class=\"transcript-meta\">{{ t.speaker }} \u00B7 {{ t.time }}</div>\n <div class=\"transcript-text\">{{ t.text }}</div>\n <div class=\"transcript-translation\" *ngIf=\"t.translation\">{{ t.translation }}</div>\n </div>\n <div class=\"insights-empty\" *ngIf=\"!insightsTranscript.length\">{{ insightsStatusText }}</div>\n </div>\n </div>\n <ng-template #transcriptionOff>\n <div class=\"insights-section insights-transcription\">\n <div class=\"insights-section-title\">Live Transcription</div>\n <ng-container *ngTemplateOutlet=\"featureOff; context: {$implicit: 'Live Transcription'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- shared \"feature disabled\" message -->\n <ng-template #featureOff let-name>\n <div class=\"insights-disabled\">\n {{ name }} is disabled.\n <a href=\"javascript:void(0)\" (click)=\"openTranscriptionSettings()\">Enable it in settings</a>\n </div>\n </ng-template>\n </div>\n\n <!-- call insights \u2014 full screen view (separate UI; the regular panel and call UI are only hidden while this is shown) -->\n <div class=\"insights-fs\"\n *ngIf=\"showInsightsPanel && insightsFullscreen && !isMinimised && currentCallList?.length && !showNewCallLoader\">\n <div class=\"insights-fs-header\">\n <span>\u2728 Call Insights</span>\n <span class=\"insights-header-actions\">\n <span class=\"material-symbols-outlined insights-close\" title=\"Exit full screen\" (click)=\"toggleInsightsFullscreen()\">fullscreen_exit</span>\n <span class=\"material-symbols-outlined insights-close\" title=\"Close\" (click)=\"toggleInsightsPanel()\">close</span>\n </span>\n </div>\n\n <div class=\"insights-fs-body\">\n <div class=\"insights-fs-side\">\n <!-- Live sentiment -->\n <div class=\"insights-fs-card\" *ngIf=\"clearCallLive.features.liveSentiment; else fsSentimentOff\">\n <div class=\"sentiment-title\">\n <span>Live Sentiment</span>\n <span class=\"sentiment-value\" *ngIf=\"hasSentiment; else fsNoSentiment\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\">\n {{ insightsSentimentLabel }} \u00B7 {{ clearCallLive.sentimentScore | number:'1.0-0' }}\n </span>\n <ng-template #fsNoSentiment><span class=\"sentiment-value neutral\">\u2014</span></ng-template>\n </div>\n <div class=\"sentiment-bar\">\n <div class=\"sentiment-center\"></div>\n <div class=\"sentiment-fill\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\"\n [ngStyle]=\"insightsSentiment >= 0\n ? {'left': '50%', 'width': (insightsSentiment / 2) + '%'}\n : {'right': '50%', 'width': (-insightsSentiment / 2) + '%'}\"></div>\n </div>\n <div class=\"sentiment-scale\"><span>Negative</span><span>Positive</span></div>\n </div>\n <ng-template #fsSentimentOff>\n <div class=\"insights-fs-card\">\n <div class=\"sentiment-title\"><span>Live Sentiment</span></div>\n <ng-container *ngTemplateOutlet=\"fsFeatureOff; context: {$implicit: 'Live Sentiment'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- Say Next + AI Suggestion -->\n <ng-container *ngIf=\"clearCallLive.features.contextualResponse; else fsSuggestionsOff\">\n <div class=\"insights-fs-card insights-fs-grow insights-suggestions\" *ngFor=\"let sec of insightsSections; trackBy: trackByKey\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>{{ sec.title }}</div>\n <ul>\n <li *ngFor=\"let s of sec.items; trackBy: trackById\" [ngClass]=\"s.kind\">\n <span class=\"material-symbols-outlined\">{{ sec.icon }}</span>\n <div>\n <span class=\"suggestion-signal\" *ngIf=\"s.signal\">{{ s.signal }}</span>\n {{ s.text }}\n </div>\n </li>\n </ul>\n <div class=\"insights-empty\" *ngIf=\"!sec.items.length\">{{ insightsStatusText }}</div>\n </div>\n </ng-container>\n <ng-template #fsSuggestionsOff>\n <div class=\"insights-fs-card insights-fs-grow\">\n <div class=\"insights-section-title\">Say Next & AI Suggestion</div>\n <ng-container *ngTemplateOutlet=\"fsFeatureOff; context: {$implicit: 'Say Next and AI Suggestion are'}\"></ng-container>\n </div>\n </ng-template>\n </div>\n\n <!-- Live transcription -->\n <div class=\"insights-fs-card insights-fs-main\" *ngIf=\"clearCallLive.features.liveTranscription; else fsTranscriptionOff\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>Live Transcription</div>\n <div class=\"transcript-list\" #transcriptList>\n <div class=\"transcript-line\" *ngFor=\"let t of insightsTranscript; trackBy: trackByKey\"\n [ngClass]=\"{'self': t.isSelf, 'interim': t.isInterim}\">\n <div class=\"transcript-meta\">{{ t.speaker }} \u00B7 {{ t.time }}</div>\n <div class=\"transcript-text\">{{ t.text }}</div>\n <div class=\"transcript-translation\" *ngIf=\"t.translation\">{{ t.translation }}</div>\n </div>\n <div class=\"insights-empty\" *ngIf=\"!insightsTranscript.length\">{{ insightsStatusText }}</div>\n </div>\n </div>\n <ng-template #fsTranscriptionOff>\n <div class=\"insights-fs-card insights-fs-main\">\n <div class=\"insights-section-title\">Live Transcription</div>\n <ng-container *ngTemplateOutlet=\"fsFeatureOff; context: {$implicit: 'Live Transcription'}\"></ng-container>\n </div>\n </ng-template>\n </div>\n\n <!-- call controls (same actions as the active-call view) -->\n <div class=\"insights-fs-controls\">\n <!-- keypad pop-over (own state \u2014 does not touch the regular call UI's keypad) -->\n <div class=\"insights-fs-keypad\" *ngIf=\"fsKeypadOpen\">\n <div class=\"insights-fs-keypad-display\">{{ callInput || 'Enter digits' }}</div>\n <div class=\"insights-fs-keypad-grid\">\n <button type=\"button\" class=\"insights-fs-key\" *ngFor=\"let key of keypadVal\" (click)=\"onCallInputs(key.num)\">\n {{ key.num }}\n <span>{{ key.text ? key.text : ' ' }}</span>\n </button>\n </div>\n </div>\n\n <!-- who / how long -->\n <div class=\"insights-fs-callinfo\">\n <div class=\"insights-fs-callname\">{{ fsCallName }}</div>\n <div class=\"insights-fs-callnumber\" *ngIf=\"fsCallNumber\">{{ fsCallNumber }}</div>\n <div class=\"insights-fs-callduration\"><span class=\"material-symbols-outlined\">timer</span>{{ timer }}</div>\n </div>\n\n <!-- actions -->\n <div class=\"insights-fs-actions\">\n <button class=\"circle-btn\" [ngClass]=\"{'active': isSelfEffectivelyMuted()}\"\n [disabled]=\"(!isConference && !currentCall?.isAcceptCall) || !canSelfToggleMute()\"\n [title]=\"selfMuteTooltip()\" (click)=\"toggleMute(isConference)\">\n <span class=\"material-symbols-outlined\"> {{ isSelfEffectivelyMuted() ? 'mic_off' : 'mic' }} </span>\n </button>\n <button class=\"circle-btn\" [ngClass]=\"{'active': fsKeypadOpen}\" title=\"Keypad\"\n [disabled]=\"!isConference && !currentCall?.isAcceptCall\" (click)=\"fsKeypadOpen = !fsKeypadOpen; callInput = ''\">\n <span class=\"material-symbols-outlined\"> transition_dissolve </span>\n </button>\n <button class=\"circle-btn\" title=\"Participants\"\n [disabled]=\"!isConference && !currentCall?.isAcceptCall\" (click)=\"openParticipantsFromFullscreen()\">\n <span class=\"material-symbols-outlined\"> groups_2 </span>\n </button>\n <!-- recording -->\n <button class=\"circle-btn\" *ngIf=\"!isRecording\" title=\"Start recording\"\n [disabled]=\"(!isConference && !currentCall?.isAcceptCall) || userSettingInfo?.callRecording == 'N'\"\n (click)=\"toggleRecording()\">\n <span class=\"insights-fs-rec-dot\"></span>\n </button>\n <ng-container *ngIf=\"isRecording\">\n <button class=\"circle-btn active\" title=\"Stop recording\" (click)=\"toggleRecording()\">\n <span class=\"material-symbols-outlined\"> stop </span>\n </button>\n <button class=\"circle-btn\" *ngIf=\"!isPaused\" title=\"Pause recording\" (click)=\"pauseRecording()\">\n <span class=\"material-symbols-outlined\"> pause </span>\n </button>\n <button class=\"circle-btn\" *ngIf=\"isPaused\" title=\"Resume recording\" (click)=\"resumeRecording()\">\n <span class=\"material-symbols-outlined\"> play_arrow </span>\n </button>\n <span class=\"insights-fs-rec-time\">{{ getFormattedTime() }}</span>\n </ng-container>\n <!-- end call -->\n <button class=\"circle-btn danger\" title=\"End call\" *ngIf=\"isConference; else fsEndSingle\"\n (click)=\"endConfereneceCall(currentConferenceCall?.participants[0])\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n <ng-template #fsEndSingle>\n <button class=\"circle-btn danger\" title=\"End call\" [disabled]=\"!currentCall?.isAcceptCall\"\n (click)=\"endCall(false, currentCall)\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </ng-template>\n </div>\n <div class=\"insights-fs-controls-spacer\"></div>\n </div>\n\n <ng-template #fsFeatureOff let-name>\n <div class=\"insights-disabled\">\n {{ name }} is disabled.\n <a href=\"javascript:void(0)\" (click)=\"openTranscriptionSettings()\">Enable it in settings</a>\n </div>\n </ng-template>\n </div>\n\n <!-- contact list panel -->\n <div class=\"contacts-panel\"*ngIf=\"showContactsPanel && !showNewCallLoader\">\n <div class=\"panel-loader-overlay p-3 text-center\" *ngIf=\"isParticipantPanelLoading\">\n <div class=\"spinner-border text-secondary\" role=\"status\">\n <span class=\"sr-only\">Loading...</span>\n </div>\n <p class=\"mt-2\"></p>\n </div>\n <div class=\"contacts-header\">\n <div class=\"participant-list-title\">\n {{ selectedConfName || 'Conference' }} Participants\n <!-- <ng-container *ngIf=\"totalParticipantsCount < 3; else confHeading\">\n Call Participants\n </ng-container>\n <ng-template #confHeading>\n </ng-template> -->\n </div>\n <div class=\"d-flex justify-content-between\">\n <span class=\"material-symbols-outlined settings-icon me-2\" *ngIf=\"isConferenceHost\" (click)=\"toggleSettingsPanel()\">\n settings\n </span>\n <span class=\"material-symbols-outlined dial-close-btn\" (click)=\"toggleContactsPanel({}, true)\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"\n fill=\"#000000\">\n <path\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" />\n </svg>\n </span>\n </div>\n </div>\n <div class=\"settings-overlay\" *ngIf=\"showSettingsPanel\" (click)=\"closeSettingsPanel()\">\n <div class=\"settings-drawer\" (click)=\"$event.stopPropagation()\">\n <div class=\"settings-header\">\n <span class=\"material-symbols-outlined\" (click)=\"closeSettingsPanel()\">arrow_back</span>\n <span>Call Settings</span>\n <span></span> <!-- placeholder for alignment -->\n </div>\n \n <div class=\"settings-body\">\n <!-- Mute all participants -->\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>Mute all participants</span>\n <small>Off \u2014 participants can mute and unmute themselves at any time.</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.muteAll\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"onMuteAllToggle($event)\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n \n <hr>\n \n <!-- Participant Permissions -->\n <div class=\"setting-group\">\n <h6>PARTICIPANT PERMISSIONS</h6>\n \n <!-- Allow unmute -->\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>\n <svg viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3Z\" stroke=\"currentColor\" stroke-width=\"1.8\"></path>\n <path d=\"M19 10v2a7 7 0 0 1-14 0v-2M12 19v3\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"></path>\n </svg>\n Allow participants to self-unmute\n </span>\n <small>{{ settings.allowUnmute ? 'Yes \u2014 participants can unmute themselves after being muted\n individually by the host.' : 'No \u2014 participants cannot unmute themselves.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowUnmute\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowUnmute = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n \n <!-- Allow remove -->\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>\n <svg viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M17 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M15 3.13a4 4 0 0 1 0 7.75\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"></path>\n <circle cx=\"9\" cy=\"7\" r=\"4\" stroke=\"currentColor\" stroke-width=\"1.8\"></circle>\n <path d=\"M19 8h4\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"></path>\n </svg>\n Allow participants to remove\n </span>\n <small>{{ settings.allowRemove ? 'Yes \u2014 participants can remove other participants.' : 'No \u2014\n participants cannot remove other participants, and cannot remove the host.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowRemove\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowRemove = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>Allow participants to unhold</span>\n <small>{{ settings.allowUnhold ? 'Yes \u2014 participants can place themselves on hold.' : 'No \u2014\n participants cannot place themselves on hold.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowUnhold\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowUnhold = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>Allow participants to mute other participants</span>\n <small>{{ settings.allowMuteOthers ? 'Yes \u2014 Participants can mute other participants, and can mute the host.' : 'No \u2014\n Participants cannot mute other participants, and cannot mute the host.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowMuteOthers\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowMuteOthers = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- SEARCH INPUT (visible when isSearchVisible = true) -->\n <div class=\"search-bar p-3 position-relative\">\n <input type=\"text\" [placeholder]=\"isSpecialCall() ? 'Search by Name or Number for a new call' : 'Add a participant by Name or Number'\"\n [title]=\"isSpecialCall() ? 'Adding participants is not allowed on this call' : 'Add a participant by Name or Number'\" [(ngModel)]=\"searchText\" (input)=\"applyFilter()\" />\n <div class=\"search-contacts-list\">\n <ng-container *ngFor=\"let c of filteredList\">\n <div class=\"contact-item\" *ngIf=\"searchText\">\n <img class=\"contact-avatar\" [src]=\"c?.image || 'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-name\">{{c?.firstName}} {{c?.middleName}} {{c?.lastName}}</div>\n <div class=\"contact-title\">{{ (c?.numbersList && c?.numbersList[0]?.number) }}{{ c?.numbersList[0]?.numberLabel ? ' (' + c.numbersList[0].numberLabel + ')' : '' }}</div>\n </div>\n <button class=\"contact-call-btn contact-add-btn mr-2\" (click)=\"callContact(c)\"\n *ngIf=\"!c?.IsConnected && !isSpecialCall()\" title=\"Add to call\">\n <span class=\"material-symbols-outlined\"> add </span>\n </button>\n <button class=\"contact-call-btn\" (click)=\"CallToUnsavedNumber(c?.numbersList[0]?.number, true)\"\n *ngIf=\"!c?.IsConnected\" title=\"New Call\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!filteredList.length && isDirectCallOptionShow && searchText\">\n <div class=\"contact-item\">\n <img class=\"contact-avatar\" [src]=\"'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-title\">{{ searchText }}</div>\n </div>\n <button class=\"contact-call-btn contact-add-btn mr-2\" (click)=\"CallToUnsavedNumber(searchText)\"\n *ngIf=\"!isSpecialCall()\" title=\"Add to call\">\n <span class=\"material-symbols-outlined\"> add </span>\n </button>\n <button class=\"contact-call-btn\" (click)=\"CallToUnsavedNumber(searchText, true)\"\n title=\"New Call\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <div class=\"contacts-list\">\n <div class=\"px-2\">\n <h5 class=\"mb-0 title\">Active participants ({{ activeParticipantsCount }})</h5>\n </div>\n <hr class=\"mb-2 mt-1\">\n <ng-container *ngFor=\"let c of filteredParticipentList\">\n <div class=\"contact-item\" *ngIf=\"!c?.isLeft\">\n <img class=\"contact-avatar\" *ngIf=\"!c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.toImage || 'assets/images/user.jpg' : c?.fromImage || 'assets/images/user.jpg'\" alt=\"\" />\n <img class=\"contact-avatar\" *ngIf=\"c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.fromImage || 'assets/images/user.jpg' : c?.toImage || 'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-name\" *ngIf=\"!c?.client\">{{c?.direction == 'outgoing-call' ? c?.toName || 'Unknown' : c?.fromName || 'Unknown'}}\n </div>\n <div class=\"contact-title\" *ngIf=\"!c?.client\">{{ c?.direction == 'outgoing-call' ? c?.to || 'Unknown' : c?.from || 'Unknown'}}</div>\n\n <div class=\"contact-name\" *ngIf=\"c?.client\">\n <ng-container *ngIf=\"!isSelfNumber(c) else selfNumber\">\n <span>{{c?.direction == 'outgoing-call' ? c?.fromName || 'Unknown' : c?.toName || 'Unknown'}}</span>\n </ng-container>\n <ng-template #selfNumber>\n <span>You</span>\n </ng-template>\n </div>\n <div class=\"contact-title\" *ngIf=\"c?.client\">{{ c?.direction == 'outgoing-call' ? c?.from || 'Unknown' : c?.to || 'Unknown'}}</div>\n <div class=\"d-flex\" *ngIf=\"c?.host\">\n <span class=\"organizer-label\">Organizer</span>\n </div>\n </div>\n <ng-container *ngIf=\"c?.joined && !c?.host\">\n <div class=\"connecting-wrapper mr-2\">\n <span class=\"ringing-text\">Ringing</span>\n <span class=\"dots\">\n <span>.</span>\n <span>.</span>\n <span>.</span>\n </span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"c?.host && c?.isHold && !(deviceNumberList.includes(c?.from) || (deviceNumberList.includes(c?.to) && c?.direction == 'incoming-call'))\">\n <div class=\"connecting-wrapper mr-2\">\n <span class=\"onHold-text\">On Hold</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!c?.joined || c?.host\">\n <button class=\"mic-btn mr-2\" [disabled]=\"c?.isHold || !canToggleMute(c)\" [title]=\"muteTooltip(c)\" (click)=\"onMuteUser(c)\">\n <span class=\"material-symbols-outlined\" *ngIf=\"isEffectivelyMuted(c)\"> mic_off </span>\n <span class=\"material-symbols-outlined\" *ngIf=\"!isEffectivelyMuted(c)\"> mic </span>\n </button>\n <button class=\"conference-hold-contact mr-2\" [ngClass]=\"{ 'on-hold': c?.isHold }\"\n (click)=\"onHoldCall(c)\" *ngIf=\"!c?.host || (c?.host && (deviceNumberList.includes(c?.from) || (deviceNumberList.includes(c?.to) && c?.direction == 'incoming-call')))\" [disabled]=\"isHoldBtnDisable || !canToggleHold(c)\">\n <span *ngIf=\"!c?.isHold\" class=\"material-symbols-outlined\" [title]=\"canToggleHold(c) ? 'Hold' : holdTooltip(c)\"> phone_paused</span>\n <span *ngIf=\"c?.isHold\" class=\"material-symbols-outlined\" [title]=\"canToggleHold(c) ? 'Resume' : holdTooltip(c)\"> resume </span>\n </button>\n </ng-container>\n <button class=\"conference-contact\" (click)=\"confirmLeaveParticipant(c)\"\n [disabled]=\"!canRemoveParticipant(c)\" [title]=\"removeTooltip(c)\" *ngIf=\"!c?.host\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n <button class=\"conference-contact\" (click)=\"endConfereneceCall(c)\"\n *ngIf=\"c?.host && (deviceNumberList.includes(c?.from) || (deviceNumberList.includes(c?.to) && c?.direction == 'incoming-call'))\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n </div>\n </ng-container>\n <hr class=\"m-2\">\n <div class=\"mt-3 px-2\">\n <h5 class=\"mb-0 title\">Participant added to the call</h5>\n </div>\n <hr class=\"mb-2 mt-1\">\n <ng-container *ngFor=\"let c of filteredParticipentList\">\n <div class=\"contact-item\" *ngIf=\"c?.isLeft\">\n <img class=\"contact-avatar\" *ngIf=\"!c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.toImage || 'assets/images/user.jpg' : c?.fromImage || 'assets/images/user.jpg'\" alt=\"\" />\n <img class=\"contact-avatar\" *ngIf=\"c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.fromImage || 'assets/images/user.jpg' : c?.toImage || 'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-name\" *ngIf=\"!c?.client\">{{c?.direction == 'outgoing-call' ? c?.toName || 'Unknown' : c?.fromName || 'Unknown'}}\n </div>\n <div class=\"contact-title\" *ngIf=\"!c?.client\">{{ c?.direction == 'outgoing-call' ? c?.to || 'Unknown' : c?.from || 'Unknown'}}</div>\n <div class=\"contact-name\" *ngIf=\"c?.client\">{{c?.direction == 'outgoing-call' ? c?.fromName || 'Unknown' : c?.toName || 'Unknown'}}\n </div>\n <div class=\"contact-title\" *ngIf=\"c?.client\">{{ c?.direction == 'outgoing-call' ? c?.from || 'Unknown' : c?.to || 'Unknown'}}</div>\n <div class=\"d-flex\" *ngIf=\"c?.host\">\n <span class=\"organizer-label\">Organizer</span>\n </div>\n </div>\n <div class=\"connecting-wrapper\" *ngIf=\"c?.joined\">\n <span class=\"ringing-text\">Ringing</span>\n <span class=\"dots\">\n <span>.</span>\n <span>.</span>\n <span>.</span>\n </span>\n </div>\n <button class=\"conference-contact\" (click)=\"onEndCall(c, false, true)\" *ngIf=\"!c?.host && c?.joined\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n <button class=\"contact-call-btn contact-add-btn\" *ngIf=\"!c?.client && !c?.joined && !c?.businessNumber\"\n (click)=\"CallToUnsavedNumber(c.direction == 'outgoing-call' ? c?.to : c?.from, false, { skipDuplicateCheck: true }, c)\">\n <span class=\"material-symbols-outlined\"> add </span>\n <span class=\"label\">Rejoin</span>\n </button>\n <button class=\"contact-call-btn contact-add-btn\" *ngIf=\"c?.client && !c?.joined && !c?.businessNumber\"\n (click)=\"CallToUnsavedNumber(c.direction == 'outgoing-call' ? c?.from : c?.to, false, { skipDuplicateCheck: true }, c)\">\n <span class=\"material-symbols-outlined\"> add </span>\n <span class=\"label\">Rejoin</span>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n\n <!-- Conference Warning Modal -->\n<div class=\"custom-modal\" *ngIf=\"showConferenceWarningModal\">\n <div class=\"modal-content warning-modal\">\n <div class=\"warning-icon\">\n <span class=\"material-symbols-outlined\">warning</span>\n </div>\n <h3>Warning</h3>\n <p>\n Starting a new call will put the current call on hold\n and cannot be merged later.\n </p>\n <div class=\"warning-actions\">\n <button class=\"cancel-btn\" (click)=\"cancelNewCall()\">\n Cancel\n </button>\n <button class=\"proceed-btn\" (click)=\"confirmNewCall()\">\n Proceed\n </button>\n </div>\n </div>\n</div>\n\n<!-- Special Call Charges Modal (call screen open: active/held conference + new call).\n First call (no call screen yet) is shown by dialbox over its \"Connecting...\" loader. -->\n<div class=\"custom-modal\" *ngIf=\"twilioService.specialCallConfirm?.inCallScreen\">\n <div class=\"modal-content warning-modal\">\n <div class=\"warning-icon\">\n <span class=\"material-symbols-outlined\">warning</span>\n </div>\n <h3>Call Charges</h3>\n <p *ngIf=\"twilioService.specialCallConfirm?.message\">{{ twilioService.specialCallConfirm?.message }}</p>\n <p *ngIf=\"!twilioService.specialCallConfirm?.message\">\n Additional charges apply to this call. Do you want to proceed?\n </p>\n <div class=\"warning-actions\">\n <button class=\"cancel-btn\" (click)=\"onSpecialCallChargesAction(false)\">\n Cancel\n </button>\n <button class=\"proceed-btn\" (click)=\"onSpecialCallChargesAction(true)\">\n Proceed\n </button>\n </div>\n </div>\n</div>\n</div>\n\n<div class=\"min-call-container\" *ngIf=\"isMinimised\">\n <span class=\"material-symbols-outlined fullscreen\" (click)=\"maximiseDialpad()\"> open_in_full </span>\n <div style=\"display: flex; width: 100%\">\n <div>\n <div class=\"min-call-animation\" id=\"call-avatar\">\n <img class=\"min-avatar-img\" [src]=\"callData.img\" alt=\"\" />\n </div>\n </div>\n <div>\n <div class=\"min-callerDetails\">\n <div class=\"name\">\n {{callData.name}}\n </div>\n <p style=\"margin: 0\">{{callData.displayNum ? callData.displayNum : callData.phone }}</p>\n </div>\n </div>\n </div>\n <div class=\"min-btn-container\">\n <div class=\"min-timer\">{{timer}}</div>\n <button class=\"min-call-sec-btn\" (click)=\"toggleMute()\" [disabled]=\"disbaleEndCallBtn || !canSelfToggleMute()\" [title]=\"selfMuteTooltip()\">\n <span class=\"material-symbols-outlined\" *ngIf=\"isSelfEffectivelyMuted()\"> mic_off </span>\n <span class=\"material-symbols-outlined\" *ngIf=\"!isSelfEffectivelyMuted()\"> mic </span>\n </button>\n <button class=\"min-call-btn end-call-btn\" [disabled]=\"disbaleEndCallBtn\" (click)=\"endCall()\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n</div>\n<!-- Call Disconnect Modal -->\n<div class=\"custom-modal\" *ngIf=\"showDisconnectModal\">\n <div class=\"modal-content p-3\">\n <div class=\"contacts-header p-0 pb-2\">\n <h4 class=\"title mb-0\">{{selectedConf?.conName || 'Call'}} Disconnect</h4>\n <div class=\"d-flex justify-content-between\">\n <span class=\"material-symbols-outlined dial-close-btn\" (click)=\"showDisconnectModal = false\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"\n fill=\"#000000\">\n <path\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" />\n </svg>\n </span>\n </div>\n </div>\n <div class=\"contant-body mb-2\">\n <p class=\"mt-2\">\n Exiting this call will not end the conference. The session will continue, and charges will incur to\n your\n account.\n </p>\n </div>\n <div class=\"button-group\">\n <div class=\"text-start d-flex align-items-center\">\n <label class=\"d-flex align-items-center mb-0 mr-2\">\n <input type=\"checkbox\" [(ngModel)]=\"isReasonChecked\" (ngModelChange)=\"onReasonCheckChanged($event)\" class=\"me-2\"/>\n </label>\n <div class=\"time-picker-24hr\">\n <!-- Hour picker -->\n <div class=\"custom-time-select\" [class.disabled-picker]=\"!isReasonChecked\">\n <div class=\"custom-time-display\" (click)=\"isReasonChecked && toggleHourDropdown()\">\n {{ leaveHour || 'HH' }}\n <span class=\"picker-arrow\">▼</span>\n </div>\n <div class=\"custom-time-options\" *ngIf=\"showHourDropdown\">\n <div class=\"custom-time-option\"\n *ngFor=\"let h of hours\"\n [class.selected]=\"leaveHour === h\"\n (click)=\"selectHour(h)\">{{ h }}</div>\n </div>\n </div>\n <span class=\"time-sep\">:</span>\n <!-- Minute picker -->\n <div class=\"custom-time-select\" [class.disabled-picker]=\"!isReasonChecked\">\n <div class=\"custom-time-display\" (click)=\"isReasonChecked && toggleMinuteDropdown()\">\n {{ leaveMinute || 'MM' }}\n <span class=\"picker-arrow\">▼</span>\n </div>\n <div class=\"custom-time-options\" *ngIf=\"showMinuteDropdown\">\n <div class=\"custom-time-option\"\n *ngFor=\"let m of minutes\"\n [class.selected]=\"leaveMinute === m\"\n (click)=\"selectMinute(m)\">{{ m }}</div>\n </div>\n </div>\n </div>\n </div>\n <button class=\"btn end-btn\" (click)=\"leaveConference()\" [disabled]=\"isReasonChecked && (!leaveHour || !leaveMinute)\">\n Leave\n </button>\n <button class=\"btn end-btn\" (click)=\"endConference()\" *ngIf=\"showEndAllButton\">\n End All\n </button>\n </div>\n </div>\n</div>\n<div class=\"custom-modal\" *ngIf=\"showLeaveConfirmationModal\">\n <div class=\"modal-content warning-modal\">\n <div class=\"warning-icon\">\n <span class=\"material-symbols-outlined\">info</span>\n </div>\n <h3>Leave Conference</h3>\n <p>\n You are about to leave <strong>{{ leaveConfConferenceName }}</strong>. \n Are you sure?\n </p>\n <div class=\"warning-actions\">\n <button class=\"cancel-btn\" (click)=\"cancelLeave()\">Cancel</button>\n <button class=\"proceed-btn\" (click)=\"confirmLeave()\">Leave</button>\n </div>\n </div>\n</div>", styles: [".call-container{width:385px;height:646px!important;margin:auto;border-radius:20px;box-shadow:6px 6px 10px -1px #00000026,-5px -4px 10px -1px #00000026;display:flex;box-sizing:border-box;position:relative;justify-content:center;align-items:center;z-index:1000;flex-flow:column;overflow-x:hidden;overflow-y:visible}.disabled{opacity:.5!important;pointer-events:none!important}.call-to-text{padding:6px 10px;border:1px solid #c2c2c2;border-radius:20px;font-size:13px}.collops{height:660px!important}.incoming-call-container{flex-flow:row!important}.active-call{width:385px!important}.call-animation{background:#fff;width:100px;height:100px;position:relative;margin:20px auto 0;border-radius:100%;border:solid 4px #fff;display:flex;align-items:center;justify-content:center}.call-animation:before{position:absolute;content:\"\";top:0;left:0;width:100%;height:100%;backface-visibility:hidden;border-radius:50%}.call-animation-play{animation:play 3s linear infinite}.call-info-wrapper{height:20px;overflow-y:auto;background:white;transition:height 1s}.open-collops{height:180px!important}.avatar-img{width:94px;height:94px;border-radius:100%}@keyframes play{0%{transform:scale(1)}15%{box-shadow:0 0 0 2px #fff6}25%{box-shadow:0 0 0 4px #fff6,0 0 0 8px #fff3}25%{box-shadow:0 0 0 8px #fff6,0 0 0 16px #fff3}50%{box-shadow:0 0 0 10px #fff6,0 0 0 20px #fff3}to{box-shadow:0 0 0 10px #fff6,0 0 0 20px #fff3;transform:scale(1.1);opacity:0}}.callerDetails{margin-top:8px;color:#fff;display:flex;flex-direction:column;align-items:center}.togglearrow-arrow{left:100%;background-color:#fff;width:25px;height:25px;text-align:center;cursor:pointer;border:1px solid #ccc;border-radius:50%;line-height:22px}.togglearrow-arrow.disabled{opacity:.3;cursor:not-allowed;pointer-events:none}.search-bar input{width:100%;padding:8px;border:1px solid #ccc;border-radius:4px;outline:none}.togglearrow-arrow.disabled:hover{opacity:.3;cursor:not-allowed}.callerDetails h1{width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:12px 0 0;color:#fff;text-transform:capitalize;text-align:center}.callerDetails h4{margin:0;color:#fff}.tx-black,.title{color:#000!important}.callerDetails p{margin-top:-3px;margin-bottom:0;color:#fff}.call-sec-btn,.mic-btn{position:relative;box-sizing:border-box;border:1px solid #cccbcb;background-color:transparent;border-radius:25px;padding:12px;box-shadow:6px 6px 10px -1px #bebebe26,-5px -4px 10px -1px #d2d2d226;width:50px;height:50px}.mic-btn{padding:5px;width:37px;height:37px}.receive-btn{background-color:#28a745!important;color:#fff!important}.receive-btn span{color:#fff!important}.scroll-container{width:100%;overflow:hidden;white-space:nowrap;position:relative}.scroll-text{display:inline-block;padding-left:100%;animation:scroll-left 12s linear infinite;font-size:16px}@keyframes scroll-left{0%{transform:translate(0)}to{transform:translate(-100%)}}.call-sec-btn span{color:#cccbcb}.call-btn{width:60px;height:60px;background-color:#fff;border-radius:30px;box-sizing:border-box;border:2px solid white;margin:0 16px}.end-call-btn{background-color:#e14e4e}.end-call-btn span{color:#fff!important}.call-btn span{color:#234de8}.btn-container{display:flex;flex-wrap:wrap;padding:0 30px}.key-btn{width:50px;height:50px;background-color:transparent;text-align:center;box-sizing:border-box;margin:0 18px;font-size:22px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:Lato,sans-serif;font-weight:900;font-style:normal;color:#d3d3d3;cursor:pointer;opacity:.8}.call-action-btns{text-align:center}#call-input{background-color:transparent;border:none;outline:none;text-align:center;color:#fff}.sendDigit{position:relative;text-align:center;width:80%;margin:auto;background-color:#ffffff1a;padding:2px 0;border-radius:3px}.input-clear-btn{position:absolute;right:6px;color:#fff;cursor:pointer}#minimize-btn-div{position:absolute;right:14px;top:12px;z-index:10}.minimize-btn{color:#fff;cursor:pointer}.wave-container{position:absolute;bottom:0;overflow:hidden;width:100%}.waves{width:660px;position:relative;margin-bottom:-7px;height:40px;min-height:40px}.held-call-banner{position:absolute;top:0;left:0;right:0;z-index:2100;box-shadow:0 4px 12px #0000004d;border-radius:0 0 16px 16px;max-height:220px;overflow-y:auto}.held-call-content{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 6px;border-bottom:1px dotted #4b4b4b;border-left:3px solid transparent;transition:background .15s ease,border-left-color .15s ease;cursor:pointer}.held-call-content.held-call-selected{background:rgba(255,255,255,.15);border-left-color:#fff;border-radius:0 6px 6px 0}.held-main-label{font-size:13px;color:#fff;text-transform:uppercase;letter-spacing:.5px}.fa-info{font-size:smaller!important}.held-info{display:flex;align-items:center;gap:10px;flex:1}.hold-icon{font-size:24px;color:#fbbf24}.swap-icon{font-size:24px}.held-caller{display:flex;flex-direction:column;gap:2px}.held-label{font-size:10px;color:#ffffffb3;text-transform:uppercase;letter-spacing:.5px}.held-name{font-size:14px;font-weight:600;color:#fff}.held-number{font-size:13px;font-weight:500;color:#fff}.held-actions{display:flex;gap:8px;align-items:center}.held-btn{padding:6px 16px;border-radius:20px;border:none;font-size:13px;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}.held-btn:hover{transform:scale(1.05);box-shadow:0 4px 12px #0003}.swap-btn{background:#3b82f6;color:#fff}.merge-btn{background:#10b981;color:#fff}.h-77px{height:77px}.incoming-banners-container{width:100%;padding:5px 8px;height:100%;gap:8px;overflow-y:auto}.call-container-model{width:385px!important;height:646px!important;margin:auto 0 0 1px;border-radius:20px;box-shadow:6px 6px 10px -1px #00000026,-5px -4px 10px -1px #00000026;display:flex;box-sizing:border-box;position:relative;overflow:hidden;justify-content:center;align-items:center}.incoming-banner{top:0;left:0;width:100%;right:0;background:linear-gradient(135deg,#1e3a8a 0%,#3b82f6 100%);padding:12px 16px;z-index:2000;box-shadow:0 4px 12px #0003;border-radius:16px}.incoming-banner-content{display:flex;align-items:center;justify-content:space-between;gap:12px}.incoming-info{flex:1;display:flex;flex-direction:column;gap:4px}.incoming-label{font-size:11px;color:#fffc;text-transform:uppercase;letter-spacing:.5px}.incoming-caller{display:flex;flex-direction:column;gap:2px}.caller-name{font-size:15px;font-weight:600;color:#fff}.caller-number{font-size:13px;color:#ffffffe6}.incoming-actions{display:flex;gap:8px;align-items:center}.banner-btn{width:44px;height:44px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s}.banner-btn:hover{transform:scale(1.1)}.banner-btn .material-symbols-outlined{font-size:20px}.accept-btn{background:#10b981}.accept-btn .material-symbols-outlined{color:#fff}.reject-btn{background:#ef4444}.reject-btn .material-symbols-outlined{color:#fff}.contacts-panel{position:absolute;top:0;bottom:12px;width:340px;background:#ffffff;border-radius:16px;box-shadow:0 10px 25px #00000026;display:flex;flex-direction:column;overflow:hidden;height:40.4rem;left:24.1rem;z-index:1000000;color:#111827!important}.insights-panel{position:absolute;top:0;bottom:12px;width:340px;height:40.4rem;left:24.1rem;background:#f8fafc;border-radius:16px;box-shadow:0 10px 25px #00000026;display:flex;flex-direction:column;overflow:hidden;z-index:1000000;color:#111827}.insights-panel.with-contacts{left:calc(24.1rem + 352px)}.insights-header{height:52px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;font-weight:600;font-size:15px}.insights-header-actions{display:flex;align-items:center;gap:10px}.insights-fs{position:fixed;inset:0;z-index:1000010;display:flex;flex-direction:column;background:#f8fafc;color:#111827}.insights-fs-header{height:56px;flex-shrink:0;display:flex;align-items:center;gap:12px;padding:0 24px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;font-weight:600;font-size:16px}.insights-fs-header .insights-header-actions{margin-left:auto}.insights-fs-header .insights-close{font-size:24px}.insights-fs-timer{font-size:13px;font-weight:500;opacity:.85}.insights-fs-body{flex:1;min-height:0;display:flex;gap:16px;padding:16px 24px}.insights-fs-side{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column;gap:16px}.insights-fs-card{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f;padding:14px 16px}.insights-fs-grow{flex:1;min-height:0;overflow-y:auto}.insights-fs-main{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column}.insights-fs-main .transcript-list{flex:1}.insights-fs-main .transcript-text{font-size:14px}.insights-fs-controls{position:relative;flex-shrink:0;display:flex;align-items:center;gap:24px;padding:12px 24px;background:#fff;border-top:1px solid #e5e7eb}.insights-fs-callinfo,.insights-fs-controls-spacer{flex:1;min-width:0}.insights-fs-callname{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insights-fs-callnumber{font-size:12.5px;color:#64748b}.insights-fs-callduration{display:flex;align-items:center;gap:4px;font-size:12.5px;color:#4f46e5;font-weight:600}.insights-fs-callduration .material-symbols-outlined{font-size:15px}.insights-fs-actions{display:flex;align-items:center;justify-content:center;gap:16px}.insights-fs-rec-dot{width:14px;height:14px;border-radius:50%;background:#ef4444;display:inline-block}.insights-fs-rec-time{font-size:13px;font-weight:600;color:#ef4444;min-width:40px}.insights-fs-keypad{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;width:260px;padding:12px;background:#fff;border-radius:14px;box-shadow:0 10px 25px #00000026}.insights-fs-keypad-display{min-height:28px;margin-bottom:8px;text-align:center;font-size:18px;letter-spacing:.08em;color:#111827;word-break:break-all}.insights-fs-keypad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.insights-fs-key{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1;height:52px;border:none;border-radius:10px;background:#f1f5f9;font-size:18px;font-weight:600;cursor:pointer}.insights-fs-key:hover{background:#e2e8f0}.insights-fs-key span{font-size:9px;font-weight:500;color:#64748b;letter-spacing:.08em}@media (max-width: 760px){.insights-fs-body{flex-direction:column}.insights-fs-side{flex:0 0 auto;max-height:45%}}.insights-close{cursor:pointer;opacity:.85;font-size:20px}.insights-close:hover{opacity:1}.insights-section-title{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.06em;color:#64748b;text-transform:uppercase;margin-bottom:8px}.live-dot{width:7px;height:7px;border-radius:50%;background:#ef4444;animation:insightsPulse 1.4s infinite}@keyframes insightsPulse{0%,to{opacity:1}50%{opacity:.25}}.insights-sentiment{flex-shrink:0;margin:10px 12px 0;padding:8px 12px;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f}.sentiment-title{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;letter-spacing:.06em;color:#64748b;text-transform:uppercase}.sentiment-value{font-size:11px;font-weight:700;padding:1px 8px;border-radius:10px;letter-spacing:0;text-transform:none}.sentiment-value.positive{color:#15803d;background:#dcfce7}.sentiment-value.negative{color:#b91c1c;background:#fee2e2}.sentiment-value.neutral{color:#64748b;background:#f1f5f9}.insights-disabled{font-size:12px;color:#64748b;text-align:center;padding:10px 0}.insights-disabled a{color:#4f46e5;font-weight:600;text-decoration:underline;cursor:pointer}.insights-empty{font-size:12px;color:#94a3b8;text-align:center;padding:10px 0}.insights-suggestions li.coaching{background:#eef2ff;border-left-color:#6366f1}.insights-suggestions li.coaching .material-symbols-outlined{color:#4f46e5}.suggestion-signal{display:inline-block;font-size:10px;font-weight:700;text-transform:uppercase;color:#4f46e5;background:#e0e7ff;border-radius:8px;padding:0 6px;margin-right:4px}.transcript-line.interim{opacity:.65;font-style:italic}.transcript-translation{font-size:11.5px;color:#64748b;border-top:1px dashed #cbd5e1;margin-top:3px;padding-top:2px}.sentiment-bar{position:relative;height:8px;margin:7px 0 3px;background:linear-gradient(90deg,#ef0000,#e5e7eb 50%,#00b050);border-radius:4px;overflow:hidden}.sentiment-center{position:absolute;left:50%;top:0;bottom:0;width:2px;background:#94a3b8;z-index:1}.sentiment-fill{position:absolute;top:0;bottom:0;transition:width .5s ease}.sentiment-fill.positive{background:transparent;border-right:3px solid #0f172a;box-sizing:border-box}.sentiment-fill.negative{background:transparent;border-left:3px solid #0f172a;box-sizing:border-box}.sentiment-scale{display:flex;justify-content:space-between;font-size:10px;color:#94a3b8}.insights-suggestions{flex:1;min-height:0;margin:10px 12px 0;padding:10px 12px;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f;overflow-y:auto}.insights-suggestions ul{list-style:none;margin:0;padding:0}.insights-suggestions li{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.35;padding:8px 10px;margin-bottom:6px;background:#fffbeb;border-left:3px solid #f59e0b;border-radius:8px}.insights-suggestions li .material-symbols-outlined{font-size:16px;color:#d97706;margin-top:1px}.insights-transcription{flex:0 0 40%;min-height:0;margin:10px 12px 12px;padding:10px 12px;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f;display:flex;flex-direction:column}.transcript-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-right:2px}.transcript-line{max-width:88%;background:#f1f5f9;border-radius:12px 12px 12px 4px;padding:6px 10px;align-self:flex-start}.transcript-line.self{align-self:flex-end;background:#e0e7ff;border-radius:12px 12px 4px}.transcript-meta{font-size:10px;font-weight:600;color:#64748b;margin-bottom:1px}.transcript-text{font-size:12.5px;line-height:1.35}.contacts-header{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #f0f0f0;color:#111827!important}.modal-content .contacts-header{height:40px}.search-contacts-list{max-height:196px;overflow:auto;position:absolute;width:91%;background:white;z-index:1000;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;border-radius:0 10px 10px}.contant-body p{font-size:14px;color:#5f6061!important}.contacts-header .title{font-weight:600;color:#111827!important}.contacts-header .back,.contacts-header .search{color:#9aa0a6;cursor:pointer}.disabled{opacity:.5;pointer-events:none}.contacts-list{padding:8px 8px 12px;overflow-y:auto}.contact-item{display:flex;align-items:center;padding:10px 8px;border-radius:10px}.contact-item:hover{background:#f7f9fc}.contact-avatar{width:37px;height:37px;border-radius:50%;object-fit:cover;margin-right:12px}.contact-info{flex:1;min-width:0;overflow:hidden}.contact-name{font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.contact-title{font-size:12px;color:#6b7280}.contact-call-btn{display:inline-flex;align-items:center;gap:6px;background:#234de8;color:#fff;border:none;border-radius:16px;padding:8px;cursor:pointer}.contact-add-btn{background-color:#2ecc71!important}.conference-hold-contact{display:inline-flex;align-items:center;gap:5px;background:#727070;color:#fff;border:none;border-radius:50%;padding:7px;cursor:pointer}.conference-hold-contact.on-hold{background:#28a745!important;color:#fff}.user-info-section{width:100%;height:100%;overflow-y:auto;overflow-x:hidden!important}.user-info-section::-webkit-scrollbar{display:none}.toggle-btn{cursor:pointer}.text-container{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;transition:all .3s ease}.mute-incoming-row{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 10px}.mute-incoming-label{font-size:11px;color:#fff}.switch{position:relative;display:inline-block;width:38px;height:19px;flex-shrink:0}.switch-slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;border-radius:22px;transition:.3s}.close-info-panel-section{width:100%;height:20px}.close-info-panel-section .material-symbols-outlined{font-size:12px;cursor:pointer}.c2c-title{color:#fff;white-space:normal;word-break:break-word;line-height:1.4}.switch-slider:before{content:\"\";position:absolute;height:14px;width:15px;left:3px;bottom:3px;background-color:#fff;border-radius:50%;transition:.3s}.switch input:checked+.switch-slider{background-color:#2ecc71}.switch input:checked+.switch-slider:before{transform:translate(18px)}.text-container.expanded{-webkit-line-clamp:unset}.userName{font-family:FontAwesome}.subject-text{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.conference-contact{display:inline-flex;align-items:center;gap:5px;background:#e14e4e;color:#fff;border:none;border-radius:50%;padding:7px;cursor:pointer}.organizer-label{padding:1px 5px;font-size:11px;border-radius:10px;border:1px solid #a0a0a0;margin-top:2px;background:#fcfcfc;color:#000}.custom-modal{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);display:flex;align-items:center;z-index:10000001;border-radius:21px}.modal-content{background:#ffffff;padding:25px;border-radius:8px;width:350px;text-align:center}.title{margin-bottom:15px;color:#d9534f}.message{margin-bottom:20px}.button-group{display:flex;justify-content:space-between}.btn{padding:8px 15px;border:none;border-radius:5px;cursor:pointer;font-weight:500}.end-btn{background-color:#dc3545;color:#fff;display:flex;align-items:center;font-size:13px}.leave-btn{background-color:#007bff;color:#fff}.contact-call-btn .material-symbols-outlined{font-size:18px;color:#fff}.contact-call-btn .label{font-size:12px}.parallax>use{animation:move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite}.parallax>use:nth-child(1){animation-delay:-2s;animation-duration:7s}.parallax>use:nth-child(2){animation-delay:-3s;animation-duration:10s}.parallax>use:nth-child(3){animation-delay:-4s;animation-duration:13s}.parallax>use:nth-child(4){animation-delay:-5s;animation-duration:20s}@keyframes move-forever{0%{transform:translate3d(-90px,0,0)}to{transform:translate3d(85px,0,0)}}.animated-margin{transition:margin-top .5s ease}app-incoming-call{position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent;z-index:1001}.min-call-container{width:320px;height:124px;border-radius:20px;box-shadow:6px 6px 10px -1px #00000026,-5px -4px 10px -1px #00000026;display:flex;flex-direction:column;box-sizing:border-box;position:relative;overflow:hidden;margin:auto;align-items:center;padding:12px 16px;color:#fff}.min-call-animation{background:#fff;width:48px;height:48px;position:relative;margin:0 12px 0 auto;border-radius:100%;border:solid 2px #fff}.min-avatar-img{width:46px;height:46px;border-radius:100%;position:absolute;left:0;top:0}.border-radius-50{border-radius:50%}.min-callerDetails{color:#fff;display:flex;flex-direction:column;align-items:flex-start}.name{width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:20px;margin:0;color:#fff}.min-callerDetails p{margin:0;color:#fff}.min-btn-container{position:relative;display:flex;width:100%;justify-content:flex-start;align-items:center;margin-top:6px}.min-call-sec-btn{width:40px;height:40px;box-sizing:border-box;border:1px solid #cccbcb;background-color:transparent;border-radius:20px;display:flex;align-items:center;justify-content:center;margin-right:12px;box-shadow:6px 6px 10px -1px #bebebe26,-5px -4px 10px -1px #d2d2d226}.min-call-sec-btn span{color:#cccbcb}.min-call-btn{width:40px;height:40px;border-radius:20px;box-sizing:border-box;border:2px solid white;display:flex;align-items:center;justify-content:center}.fullscreen{position:absolute;right:18px;top:14px;color:#e8e8e8;font-size:18px;cursor:pointer}.btn-container{display:flex;flex-wrap:wrap;padding:0 24px}.dial-btn{width:40px;height:40px;background-color:transparent;text-align:center;box-sizing:border-box;margin:4px 25px;font-size:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:Lato,sans-serif;font-weight:900;font-style:normal;color:#b5b5b5;cursor:pointer}.btn-albhabets{font-family:Lato,sans-serif;font-size:12px;font-weight:400}.min-timer{width:50px;font-size:18px;margin-right:10px;border-radius:4px;height:35px;display:flex;align-items:center}.record-action-btns{display:flex;flex-direction:column;align-items:center;margin-top:35px}.record-btn-container{position:relative}.record-btn{border:none;border-radius:50%;width:50px;height:50px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin:0 5px;position:relative;overflow:hidden}.record-btn.start-stop .recording-icon{width:50%;height:50%;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.record-btn.start-stop.recording .recording-icon{background-color:#000}.record-btn.start-stop.recording{border:3px solid #000}.record-btn.start-stop.stopped .recording-icon{background-color:red;border:3px solid #ff0000;border-radius:50%;position:absolute}.record-btn.start-stop.stopped{border:3px solid #ff0000}.record-btn.start-stop.stopped .recording-icon{width:40%;height:40%;border-radius:0;background-color:red}.pause-resume-btns{display:flex;flex-direction:column;align-items:center;margin-top:10px}.record-btn.pause-resume{border:none;border-radius:50%;width:50px;height:50px;background:white;display:flex;align-items:center;justify-content:center;margin:5px 0}.record-btn.pause-resume .material-symbols-outlined{font-size:20px;color:#000}.timer-display{font-size:1.2em;margin-top:10px;color:#000}.w-40{width:40%}.w-60{width:60%}.callToNum{color:#fff;font-weight:400;text-align:center}.callToNum span{font-weight:600}.conference-call-view{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;padding:12px 16px 35px;color:#fff;height:100%}.conf-heading{display:flex;align-items:center;gap:8px;margin-top:45px}.conf-icon{color:#4579aa;font-size:32px;width:50px;height:50px;border:1px solid gray;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e1e1e1}.conf-title{font-weight:600;font-size:20px}.conf-name{margin-top:10px;font-size:17px;font-weight:600;text-align:center}.conf-timer{margin-top:4px;font-size:12px;opacity:.9}.conf-record{margin-top:14px}.record-stop-btn{width:44px;height:44px;border-radius:50%;border:none;background:#fff;display:flex;align-items:center;justify-content:center}.record-stop-btn .material-symbols-outlined{color:#e14e4e;font-size:28px}.conf-remove{margin-top:8px}.remove-btn{background:#ff0000!important;color:#fff;border:none;border-radius:6px;padding:6px 12px;font-size:12px;width:82px!important;height:auto}.conf-actions{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:18px}.circle-btn{width:56px;height:56px;border-radius:50%;border:none;background:#000;display:flex;align-items:center;justify-content:center}.circle-btn .material-symbols-outlined{color:#fff;font-size:24px}.circle-btn.active{opacity:.85}.conf-end{margin-top:16px}.circle-btn.danger{background:#e14e4e}.circle-btn.danger .material-symbols-outlined{color:#fff}.warning-modal{background:white;width:360px;border-radius:18px;padding:24px;text-align:center;box-shadow:0 10px 30px #00000040}.warning-icon{margin-bottom:12px}.warning-icon .material-symbols-outlined{font-size:48px;color:#f59e0b}.warning-modal h3{margin-bottom:12px;font-size:20px;font-weight:600;color:#111827!important}.warning-modal p{color:#555!important;font-size:14px;line-height:1.5;margin-bottom:24px}.warning-modal p strong{color:#111827!important}.warning-actions{display:flex;justify-content:center;gap:12px}.cancel-btn,.proceed-btn{border:none;padding:10px 18px;border-radius:8px;cursor:pointer;font-weight:600}.cancel-btn{background:#e5e7eb;color:#111827}.proceed-btn{background:#234de8;color:#fff}.time-picker-24hr{display:flex;align-items:center;gap:4px}.time-sep{font-weight:700;font-size:16px;color:#333}.custom-time-select{position:relative;width:58px;-webkit-user-select:none;user-select:none}.custom-time-select.disabled-picker{opacity:.45;pointer-events:none}.custom-time-display{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;border:1px solid #ced4da;border-radius:4px;background:#fff;font-size:13px;cursor:pointer;white-space:nowrap;color:#333!important}.custom-time-display:hover{border-color:#234de8}.picker-arrow{font-size:9px;margin-left:4px;color:#666}.custom-time-options{position:fixed;background:#fff;border:1px solid #ced4da;border-radius:4px;max-height:160px;overflow-y:auto;z-index:99999999;min-width:58px;box-shadow:0 4px 12px #00000026}.custom-time-option{padding:5px 10px;font-size:13px;cursor:pointer;text-align:center;color:#333}.custom-time-option:hover{background:#e8eeff;color:#234de8}.custom-time-option.selected{background:#234de8;color:#fff;font-weight:600}.dialpad-alerts{position:absolute;left:50%;transform:translate(-50%);width:calc(100% - 32px);z-index:9999999}.normal-call-alert{top:78px}.conference-alert{top:145px}.dialbox-pop1{background:#dff6dd!important;color:#1d4d1d!important;border-radius:10px;padding:10px 14px;font-size:14px;box-shadow:0 4px 12px #00000040;border:1px solid #b7dfc3}.btn-disc{border:none;background:transparent;color:#6b7280!important;font-size:13px;font-weight:500}.connecting-overlay{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px 0 24px}.connecting-text{color:#ffffffe6;font-size:15px;font-weight:500;letter-spacing:.5px;margin:0}.connecting-dots{display:flex;gap:8px;align-items:center}.connecting-dots span{display:inline-block;width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.85);animation:connecting-bounce 1.2s infinite ease-in-out}.connecting-dots span:nth-child(1){animation-delay:0s}.connecting-dots span:nth-child(2){animation-delay:.2s}.connecting-dots span:nth-child(3){animation-delay:.4s}@keyframes connecting-bounce{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1.2);opacity:1}}.connecting-wrapper{display:flex;align-items:center;font-size:13px;color:#4caf50;margin-top:4px;font-weight:500}.participant-list-title,.onHold-text{color:#000}.ringing-text,.onHold-text{margin-right:2px;font-size:11px}.held-actions .connecting-wrapper{color:#fff}.dots span{animation:blink 1.4s infinite;opacity:0;font-size:16px}.dots span:nth-child(1){animation-delay:0s}.dots span:nth-child(2){animation-delay:.2s}.dots span:nth-child(3){animation-delay:.4s}@keyframes blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.loader-wrapper.outgoing-call-loader{position:absolute;inset:0;z-index:100;display:flex;align-items:center;justify-content:center}.panel-loader-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#ffffffb3;display:flex;justify-content:center;align-items:center;z-index:10000009}.settings-icon{cursor:pointer;font-size:24px;color:#555;position:relative;top:5px;right:2px}.settings-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:1000001;display:flex;align-items:flex-start;justify-content:flex-end}.settings-drawer{background:#fff;width:100%;max-width:100%;height:100%;padding:1.5rem 1rem;overflow-y:auto;box-sizing:border-box;transform:translate(100%);animation:slideInFromRight .3s forwards}@keyframes slideInFromRight{to{transform:translate(0)}}.settings-header{display:flex;justify-content:space-between;align-items:center;font-size:1.2rem;font-weight:600;padding-bottom:.75rem;border-bottom:1px solid #eee}.settings-header span:first-child{cursor:pointer}.settings-body{margin-top:1.5rem}.setting-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0;gap:1rem}.setting-label{flex:1}.setting-label span{font-weight:500}.setting-label svg{width:15px;height:15px;color:#393939;flex-shrink:0}.setting-label small{display:block;font-size:.75rem;color:#666;margin-top:.15rem}.setting-group h6{font-weight:600;color:#888;font-size:.75rem;letter-spacing:.5px;margin:1rem 0 .5rem}hr{margin:.5rem 0;border-color:#f0f0f0}.switch{position:relative;display:inline-block;width:44px;height:24px;flex-shrink:0}.switch input{opacity:0;width:0;height:0}.switch-slider{position:absolute;cursor:pointer;inset:0;background:#ccc;border-radius:24px;transition:.3s}.switch-slider:before{content:\"\";position:absolute;height:18px;width:18px;left:3px;bottom:3px;background:white;border-radius:50%;transition:.3s}.switch input:checked+.switch-slider{background:#007bff}.switch input:checked+.switch-slider:before{transform:translate(20px)}\n"], dependencies: [{ kind: "directive", type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i7.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i8.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i8.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i8.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i8.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i7.DecimalPipe, name: "number" }] });
|
|
5470
|
+
CallProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CallProgressComponent, selector: "lib-call-progress", inputs: { callData: "callData", selectedCallerId: "selectedCallerId", newIncomingCallData: "newIncomingCallData", newIncomingCallsList: "newIncomingCallsList", callerIdList: "callerIdList", newCallConference: "newCallConference", missCallInfo: "missCallInfo", userSettingInfo: "userSettingInfo", deviceId: "deviceId", callAction: "callAction", conferenceCallInfo: "conferenceCallInfo", incomingFromImage: "incomingFromImage", cancelConnectingAction: "cancelConnectingAction", outgoingContactName: "outgoingContactName" }, outputs: { endCallEvent: "endCallEvent", incomingCallsNewInfo: "incomingCallsNewInfo", minimiseEvent: "minimiseEvent", muteAllStatusEvent: "muteAllStatusEvent", incomingCallInitiated: "incomingCallInitiated", isLoadershown: "isLoadershown", endIncomingCallEvent: "endIncomingCallEvent" }, viewQueries: [{ propertyName: "transcriptListRef", first: true, predicate: ["transcriptList"], descendants: true }, { propertyName: "suggestScrollRefs", predicate: ["suggestScroll"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"d-flex\">\n <div class=\"call-container\" *ngIf=\"!isMinimised && currentCallList?.length\"\n [ngClass]=\"{'collops': isCollops, 'incoming-call-container': isClickExpand, 'contacts-open': showContactsPanel }\">\n <div class=\"loader-wrapper outgoing-call-loader\"\n *ngIf=\"showNewCallLoader\">\n <div class=\"active-call\" style=\"display: flex; flex-direction: column; position: relative;\">\n <div class=\"call-animation call-animation-play\">\n <img class=\"avatar-img\" [src]=\"newCallLoaderData?.img || 'assets/images/user.jpg'\" alt=\"\" />\n </div>\n <div class=\"callerDetails\">\n <h1 style=\"margin-top: 8px;\">Connecting...</h1>\n <p style=\"text-transform: capitalize;\">{{ newCallLoaderData?.name || newCallLoaderData?.phone || 'Unknown' }}</p>\n </div>\n \n <div class=\"call-action-btns\">\n <div class=\"d-flex justify-content-center\">\n <button class=\"call-btn end-call-btn\" disabled (click)=\"endCall()\" style=\"visibility: hidden;\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"dialpad-alerts\"\n [ngClass]=\"{\n 'conference-alert': isConference && currentCall?.isConference,\n 'normal-call-alert': !isConference\n }\" *ngIf=\"callNumberToast.show\">\n <div class=\"dialbox-pop1 alert fade show\"\n [ngClass]=\"callNumberToast.type\"\n role=\"alert\">\n <div class=\"d-flex justify-content-between align-items-center\">\n <div class=\"flex-grow-1 text-left\">\n You'r calling\n <strong>{{callNumberToast.displayNum}}</strong>\n </div>\n <div class=\"text-right\">\n <button class=\"btn btn-link btn-disc p-0 px-1\" (click)=\"cancelCallToast()\"> Cancel Call </button>\n </div>\n </div>\n </div>\n </div>\n <!-- All type Call Hold list -->\n <div class=\"held-call-banner\"\n *ngIf=\"(currentCallList.length > 1 && !!currentCall && ((isConferenceCallHold || isConference) || !isConference)) || !isAllAccepted\">\n <ng-container *ngFor=\"let conf of currentCallList\">\n <div class=\"held-call-content\" *ngIf=\"!conf?.isAcceptCall && currentCallList.length > 1 && deviceNumberList.includes(conf?.to) && conf?.isNotification\"\n [ngClass]=\"{'held-call-selected': selectedUserInfo?.participantId && selectedUserInfo?.participantId === conf?.participantId}\"\n (click)=\"conf?.businessNumber ? toggleC2CInfoPanel(conf) : null\"\n [ngStyle]=\"{'cursor': conf?.businessNumber ? 'pointer' : 'default'}\">\n <div class=\"held-info\">\n <div class=\"img\">\n <img class=\"avatar-img-wrapper border-radius-50\" [src]=\"conf?.img || 'assets/images/user.jpg'\" alt=\"\" width=\"35\" height=\"35\" />\n </div>\n <div class=\"held-caller\" *ngIf=\"!conf?.businessNumber\">\n <span class=\"held-label\">{{conf?.from}}</span>\n <span class=\"held-name\">{{conf?.fromName}}</span>\n </div>\n <div class=\"held-caller\" *ngIf=\"conf?.businessNumber\">\n <span class=\"held-main-label\">Call from C2C:</span>\n <span class=\"held-label\" ><span [title]=\"conf?.sourceName\">{{ truncateText(conf?.sourceName, 10) }}</span>|\n <span [title]=\"conf?.pointName\">{{ truncateText(conf?.pointName, 10) }}</span></span>\n <span class=\"held-label\">{{ truncateText(conf?.name, 26) }}</span>\n </div>\n </div>\n <div class=\"held-actions\">\n <ng-container *ngIf=\"isConnectingIncomingCallId == conf?.id\">\n <div class=\"connecting-wrapper mr-2\">\n <span class=\"ringing-text\">Connecting</span>\n <span class=\"dots\">\n <span>.</span>\n <span>.</span>\n <span>.</span>\n </span>\n </div>\n </ng-container>\n <button class=\"conference-hold-contact receive-btn\" (click)=\"waitingCallAccept(conf)\" [disabled]=\"isConnecting || isIncomingCallBtnDisable\" *ngIf=\"isConnectingIncomingCallId !== conf?.id\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n <button class=\"conference-contact\">\n <span class=\"material-symbols-outlined\" title=\"Call End\" (click)=\"onRejectCall(conf); $event.stopPropagation();\"> call_end </span>\n </button>\n <div *ngIf=\"conf?.businessNumber\" class=\"togglearrow-arrow me-2\" id=\"togglearrow\" (click)=\"toggleC2CInfoPanel(conf)\">\n <i class=\"fa fa-info\"></i>\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container *ngFor=\"let conf of conferenceCallList\">\n <div class=\"held-call-content\" *ngIf=\"(conf?.isConferenceHold || (showNewCallLoader && isConferenceCallHold)) && (conferenceCallList.length > 1 || showNewCallLoader)\"\n [ngClass]=\"{'held-call-selected': conf?.isBusinessNumber && selectedUserInfo?.participantId === conf?.businessParticipantId && isClickExpand}\"\n (click)=\"conf?.isBusinessNumber ? toggleC2CInfoPanel(conf) : null\"\n [ngStyle]=\"{'cursor': conf?.isBusinessNumber ? 'pointer' : 'default'}\">\n <div class=\"held-info\">\n <span class=\"material-symbols-outlined hold-icon\">pause_circle</span>\n <div class=\"held-caller\">\n <span class=\"held-label\">Hold</span>\n <span class=\"held-name\">{{conf?.callLabel}}</span>\n </div>\n </div>\n <div class=\"held-actions\">\n <button class=\"conference-hold-contact\" [ngClass]=\"{ 'on-hold': conf?.isConferenceHold }\"\n (click)=\"swapCalls(conf,true)\" [disabled]=\"isHoldBtnDisable\">\n <span *ngIf=\"conf?.isConferenceHold\" class=\"material-symbols-outlined\" [title]=\"'Resume'\"> resume </span>\n </button>\n <button class=\"conference-contact\" (click)=\"endConfereneceCall(conf); $event.stopPropagation();\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n <div class=\"togglearrow-arrow me-2\" id=\"togglearrow\" (click)=\"toggleContactsPanel(conf)\">\n <i class=\"fa fa-angle-right\"></i>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n\n <!-- For single incoming call -->\n <div class=\"h-100 py-5\" style=\"display: flex; flex-direction: column;\"\n *ngIf=\"currentCallList.length === 1 && currentCallList[0]?.isIncomingCall && !currentCallList[0]?.isAcceptCall\">\n <!-- <div class=\"callToNum\">Incoming call on <br /><span>{{currentCallList[0]?.to || 'Unknown Number'}}</span>\n </div> -->\n <div class=\"callToNum\">\n <ng-container *ngIf=\"currentCallList[0]?.businessNumber; else normalCall\">\n C2C CALL\n <br />\n <span> From : {{ currentCallList[0]?.sourceName }} | {{ currentCallList[0]?.pointName }} </span>\n </ng-container>\n\n <ng-template #normalCall>\n Incoming call on\n <br />\n <span>{{ currentCallList[0]?.to || 'Unknown Number' }}</span>\n </ng-template>\n </div>\n <div class=\"call-animation\" [ngClass]=\"{'call-animation-play': showRingAnimation}\">\n <img class=\"avatar-img\" [src]=\"incomingFromImage || 'assets/images/user.jpg'\" alt=\"\" width=\"120\" />\n </div>\n <div class=\"callerDetails\" *ngIf=\"!currentCallList[0]?.businessNumber\">\n <h1>{{ currentCallList[0]?.name ? currentCallList[0]?.name : currentCallList[0]?.phone || 'Unknown Number' }}</h1>\n <p *ngIf=\"!!currentCallList[0]?.name\">{{ currentCallList[0]?.phone }}</p>\n </div>\n <div class=\"callerDetails\" *ngIf=\"currentCallList[0]?.businessNumber\">\n <p *ngIf=\"!!currentCallList[0]?.name\">{{ truncateText(currentCallList[0]?.name, 45) }}</p>\n <p >{{ currentCallList[0]?.number }}</p>\n </div>\n <!-- Connecting overlay (shown after accept btn click, hidden on API response) -->\n <div class=\"connecting-overlay mt-auto\" *ngIf=\"isConnectingIncomingCallId == currentCallList[0]?.id\">\n <div class=\"connecting-dots\">\n <span></span><span></span><span></span>\n </div>\n <p class=\"connecting-text\">Connecting...</p>\n </div>\n\n <div class=\"call-action-btns mt-auto\" *ngIf=\"isConnectingIncomingCallId != currentCallList[0]?.id\">\n <button class=\"call-btn receive-btn\" *ngIf=\"!newIncomingCallsList[0]?.isCallConnected\"\n [disabled]=\"isIncomingCallBtnDisable\" (click)=\"acceptIncomingCall(currentCallList[0])\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n <button class=\"call-btn reject-btn\">\n <span class=\"material-symbols-outlined\" (click)=\"onRejectCall(currentCallList[0])\"> call_end </span>\n </button>\n </div>\n </div>\n\n <!-- For single active call -->\n <div *ngIf=\"(!isConference || isConferenceCallHold) && (!!currentCall?.id && !currentCall?.isConference) && currentCall?.isAcceptCall\"\n [ngStyle]=\"{'display': 'flex', 'flex-direction': 'column', 'position': 'relative'}\" class=\"active-call\">\n <div *ngIf=\"currentCall?.businessNumber;\" class=\"callToNum\">\n C2C CALL\n <br />\n <span> From : {{ currentCall?.userInfoId?.sourceName }} | {{ currentCall?.userInfoId?.pointName }} </span>\n </div>\n <div class=\"call-animation\" [ngClass]=\"{'call-animation-play': showRingAnimation}\">\n <img class=\"avatar-img\" *ngIf=\"!currentCall?.client\"\n [src]=\"currentCall?.direction == 'outgoing-call' ? currentCall?.toImage || 'assets/images/user.jpg' : currentCall?.fromImage || 'assets/images/user.jpg'\" alt=\"\" />\n <img class=\"avatar-img\" *ngIf=\"currentCall?.client\"\n [src]=\"currentCall?.direction == 'outgoing-call' ? currentCall?.fromImage || 'assets/images/user.jpg' : currentCall?.toImage || 'assets/images/user.jpg'\" alt=\"\" />\n </div>\n <div class=\"callerDetails\">\n <!-- C2C Business Call -->\n <ng-container *ngIf=\"currentCall?.businessNumber; else normalCall\">\n <h1>{{ currentCall?.userInfoId?.name || 'Unknown' }}</h1>\n <p>{{ currentCall?.userInfoId?.number || currentCall?.from || 'Unknown' }}</p>\n </ng-container>\n\n <!-- Normal Call -->\n <ng-template #normalCall>\n <h1 *ngIf=\"!currentCall?.client\"\n [ngStyle]=\"{'margin-top': showKeypad ? '0':'8px'}\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.toName || outgoingContactName || 'Unknown'\n : currentCall?.fromName || 'Unknown' }}\n </h1>\n <h1 *ngIf=\"currentCall?.client\"\n [ngStyle]=\"{'margin-top': showKeypad ? '0':'8px'}\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.fromName || 'Unknown'\n : currentCall?.toName || outgoingContactName || 'Unknown' }}\n </h1>\n <p *ngIf=\"!currentCall?.client\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.to\n : currentCall?.from }}\n </p>\n <p *ngIf=\"currentCall?.client\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.from\n : currentCall?.to }}\n </p>\n </ng-template>\n <!-- <h1 *ngIf=\"!currentCall?.client\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '8px'}\">{{currentCall?.direction == 'outgoing-call' ? currentCall?.toName || outgoingContactName || 'Unknown' :\n currentCall?.fromName || 'Unknown'}}</h1>\n <h1 *ngIf=\"currentCall?.client\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '8px'}\">{{currentCall?.direction == 'outgoing-call' ? currentCall?.fromName || 'Unknown' :\n currentCall?.toName || 'Unknown'}}</h1>\n <p *ngIf=\"!currentCall?.client\">{{ currentCall?.direction == 'outgoing-call' ? currentCall?.to || 'Unknown' : currentCall?.from || 'Unknown'}}</p>\n <p *ngIf=\"currentCall?.client\">{{ currentCall?.direction == 'outgoing-call' ? currentCall?.from || 'Unknown' : currentCall?.to || 'Unknown'}}</p> -->\n <h4 style=\"margin-top: 4px\">{{ timer}}</h4>\n </div>\n <div class=\"record-action-btns\" *ngIf=\"!showKeypad\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '20px'}\">\n <div class=\"record-btn-container\">\n <button class=\"record-btn start-stop\" *ngIf=\"!isRecording\"\n [ngClass]=\"{'recording': isRecording, 'stopped': !isRecording, 'disabled': userSettingInfo?.callRecording == 'N'}\" (click)=\"toggleRecording()\"\n [title]=\"isRecording ? 'Stop Recording' : 'Start Recording'\" [disabled]=\"!currentCall?.isAcceptCall || userSettingInfo?.callRecording == 'N'\">\n <span class=\"recording-icon\"></span>\n </button>\n <div class=\"pause-resume-btns\">\n <button class=\"record-btn pause-resume\" *ngIf=\"isRecording && !isPaused\" (click)=\"pauseRecording()\">\n <span class=\"material-symbols-outlined\"> pause </span>\n </button>\n <button class=\"record-btn pause-resume\" *ngIf=\"isPaused\" (click)=\"resumeRecording()\">\n <span class=\"material-symbols-outlined\"> play_arrow </span>\n </button>\n </div>\n </div>\n <div *ngIf=\"isRecording\" class=\"timer-display\">\n {{ getFormattedTime() }}\n </div>\n </div>\n <!-- Mute/unmute incoming call -->\n <div class=\"mute-incoming-row\" *ngIf=\"currentCall?.isAcceptCall && !showKeypad\">\n <span class=\"mute-incoming-label\">Mute incoming calls</span>\n <label class=\"switch mb-0\" title=\"Silence the ringtone of new incoming calls during this call\">\n <input type=\"checkbox\" [checked]=\"twilioService.isIncomingMuted\" (change)=\"toggleMuteIncomingCall()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div *ngIf=\"showKeypad\" class=\"sendDigit\">\n <input type=\"text\" name=\"call-inputs\" id=\"call-input\" [(ngModel)]=\"callInput\" (keyup)=\"onCallInputEnter($event)\">\n <span class=\"material-symbols-outlined input-clear-btn\" *ngIf=\"callInput\" (click)=\"clearInputs()\">close_small</span>\n </div>\n <div class=\"btn-container justify-content-center\" *ngIf=\"showKeypad\">\n <div class=\"key-btn\" *ngFor=\"let key of keypadVal\" (click)=\"onCallInputs(key.num)\">\n {{key.num}}\n <span class=\"btn-albhabets\">{{key.text ? key.text : ' '}}</span>\n </div>\n </div>\n\n <div class=\"call-action-btns\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '723x'}\">\n <div class=\"flex align-items-center justify-content-evenly mb-3\">\n <button class=\"call-sec-btn mr-3\" [disabled]=\"!currentCall?.isAcceptCall || !canSelfToggleMute()\" [title]=\"selfMuteTooltip()\" (click)=\"toggleMute()\">\n <span class=\"material-symbols-outlined\" *ngIf=\"isSelfEffectivelyMuted()\"> mic_off </span>\n <span class=\"material-symbols-outlined\" *ngIf=\"!isSelfEffectivelyMuted()\"> mic </span>\n </button>\n <button class=\"call-sec-btn mr-3\" [disabled]=\"!currentCall?.isAcceptCall\">\n <span class=\"material-symbols-outlined\" (click)=\"toggleKeypad()\"> transition_dissolve\n </span>\n </button>\n <button class=\"call-sec-btn mr-3\" [disabled]=\"!currentCall?.isAcceptCall\"\n (click)=\"toggleContactsPanel(currentCall)\">\n <span class=\"material-symbols-outlined\"> groups_2 </span>\n </button>\n <button class=\"call-sec-btn\" title=\"Call Insights\" [disabled]=\"!currentCall?.isAcceptCall\"\n [ngClass]=\"{'active': showInsightsPanel}\" (click)=\"toggleInsightsPanel()\">\n <span class=\"material-symbols-outlined\"> insights </span>\n </button>\n </div>\n <div>\n <button class=\"call-btn end-call-btn\" [disabled]=\"!currentCall?.isAcceptCall\" (click)=\"endCall(false, currentCall)\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n </div>\n </div>\n\n <!-- conference call view -->\n <div class=\"conference-call-view\" *ngIf=\"isConference\">\n <div class=\"conf-heading\">\n <span class=\"conf-icon material-symbols-outlined\"> groups </span>\n <span class=\"conf-title\">{{currentConferenceCall?.callLabel || 'Conference Call'}}</span>\n </div>\n <div class=\"scroll-container\">\n <div class=\"scroll-text conf-name\">\n <ng-container *ngFor=\"let call of currentCallList; let i = index\">\n <ng-container *ngIf=\"!call?.isConferenceHold\">\n <span *ngIf=\"shouldShowSeparator(i)\"> & </span>\n <span *ngIf=\"call?.client\">\n <ng-container *ngIf=\"!isSelfNumber(call) else selfNumber\">\n <span>{{call?.direction == 'outgoing-call' ? call?.fromName || call?.from :\n call?.toName || call?.to}}</span>\n </ng-container>\n <ng-template #selfNumber>\n <span>You</span>\n </ng-template>\n </span>\n <span *ngIf=\"!call?.client\">{{call?.direction == \"outgoing-call\" ? call?.toName || call?.to : call?.fromName || call?.from || 'Unknown number'}}</span>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <div class=\"conf-timer\">{{ currentConferenceCall?.timer || timer }}</div>\n <div class=\"record-action-btns mt-auto\" *ngIf=\"!showKeypad\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '20px'}\">\n <div class=\"record-btn-container\" >\n <button class=\"record-btn start-stop\" *ngIf=\"!isRecording\" [disabled]=\"userSettingInfo.callRecording == 'N'\"\n [ngClass]=\"{'recording': isRecording, 'stopped': !isRecording, 'disabled': userSettingInfo?.callRecording == 'N'}\" (click)=\"toggleRecording()\"\n [title]=\"isRecording ? 'Stop Recording' : 'Start Recording'\">\n <span class=\"recording-icon\"></span>\n </button>\n <div class=\"pause-resume-btns\">\n <button class=\"record-btn pause-resume\" *ngIf=\"isRecording && !isPaused\" (click)=\"pauseRecording()\">\n <span class=\"material-symbols-outlined\"> pause </span>\n </button>\n <button class=\"record-btn pause-resume\" *ngIf=\"isPaused\" (click)=\"resumeRecording()\">\n <span class=\"material-symbols-outlined\"> play_arrow </span>\n </button>\n </div>\n </div>\n <div *ngIf=\"isRecording\" class=\"timer-display\">\n {{ getFormattedTime() }}\n </div>\n </div>\n <!-- Mute/unmute incoming call -->\n <div class=\"mute-incoming-row\" *ngIf=\"currentCall?.isAcceptCall && !showKeypad\">\n <span class=\"mute-incoming-label\">Mute incoming calls</span>\n <label class=\"switch mb-0\" title=\"Silence the ringtone of new incoming calls during this call\">\n <input type=\"checkbox\" [checked]=\"twilioService.isIncomingMuted\" (change)=\"toggleMuteIncomingCall()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div *ngIf=\"showKeypad\" class=\"sendDigit mt-2\">\n <input type=\"text\" name=\"call-inputs\" id=\"call-input\" [(ngModel)]=\"callInput\" (keyup)=\"onCallInputEnter($event)\">\n <span class=\"material-symbols-outlined input-clear-btn\" *ngIf=\"callInput\" (click)=\"clearInputs()\">close_small</span>\n </div>\n <div class=\"btn-container justify-content-center\" *ngIf=\"showKeypad\">\n <div class=\"key-btn\" *ngFor=\"let key of keypadVal\" (click)=\"onCallInputs(key.num)\">\n {{key.num}}\n <span class=\"btn-albhabets\">{{key.text ? key.text : ' '}}</span>\n </div>\n </div>\n <div class=\"conf-actions\">\n <button class=\"circle-btn\" [ngClass]=\"{'active': isSelfEffectivelyMuted()}\" [disabled]=\"!canSelfToggleMute()\" [title]=\"selfMuteTooltip()\" (click)=\"toggleMute(true)\">\n <span class=\"material-symbols-outlined\"> {{ isSelfEffectivelyMuted() ? 'mic_off' : 'mic' }} </span>\n </button>\n <button class=\"circle-btn\" (click)=\"toggleKeypad()\">\n <span class=\"material-symbols-outlined\"> transition_dissolve </span>\n </button>\n <button class=\"circle-btn\" (click)=\"toggleContactsPanel(currentCall)\">\n <span class=\"material-symbols-outlined\"> groups_2 </span>\n </button>\n <button class=\"circle-btn\" title=\"Call Insights\" [ngClass]=\"{'active': showInsightsPanel}\" (click)=\"toggleInsightsPanel()\">\n <span class=\"material-symbols-outlined\"> insights </span>\n </button>\n </div>\n <div class=\"conf-end\">\n <button class=\"circle-btn danger\" (click)=\"endConfereneceCall(currentConferenceCall?.participants[0])\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n </div>\n\n <div class=\"wave-container\">\n <svg class=\"waves\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 24 150 28\" preserveAspectRatio=\"none\" shape-rendering=\"auto\">\n <defs>\n <path id=\"gentle-wave\"\n d=\"M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z\" />\n </defs>\n <g class=\"parallax\">\n <use xlink:href=\"#gentle-wave\" x=\"48\" y=\"0\" fill=\"rgba(255,255,255,0.7)\" />\n <use xlink:href=\"#gentle-wave\" x=\"48\" y=\"3\" fill=\"rgba(255,255,255,0.5)\" />\n <use xlink:href=\"#gentle-wave\" x=\"48\" y=\"7\" fill=\"#fff\" />\n </g>\n </svg>\n </div>\n </div>\n\n <!-- Incoming call user details shown in model -->\n <div class=\"call-container-model p-3 text-white model-content call-container\" *ngIf=\"isClickExpand\">\n <div class=\"close-info-panel-section\">\n <div class=\"d-flex justify-content-between\" *ngIf=\"currentConferenceCall?.conferenceId != selectedUserInfo?.conferenceId && newIncomingCallsList?.length > 1\">\n <p></p>\n <span class=\"material-symbols-outlined dial-close-btn \" (click)=\"onCloseC2CInfoPanel()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"\n fill=\"#ffffff\">\n <path\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" />\n </svg>\n </span>\n </div>\n </div>\n <div class=\"mb-2 user-info-section\">\n <div class=\"text-center my-3\">\n <h3 class=\"text-white\">C2C CALL : {{selectedUserInfo?.sourceName}} | {{selectedUserInfo?.pointName}}</h3>\n </div>\n <div class=\"mb-3\">\n <h5 class=\"text-white mb-1\">Name:</h5>\n <h4 class=\"text-white userName\">{{selectedUserInfo?.name}}</h4>\n </div>\n <div class=\"f-13\">\n <div class=\"row mb-3\">\n <div class=\"col-6 mb-2\">\n <div class=\"mb-1\">Extension:</div>\n <div class=\"ml-2\">{{selectedUserInfo?.extension}}</div>\n </div>\n <div class=\"col-6 mb-2\">\n <div class=\"mb-1\">Number:</div>\n <div class=\"\">{{selectedUserInfo?.number}}</div>\n </div> \n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 mb-2\">\n <div class=\"me-2\">Email: </div>\n <div>{{selectedUserInfo?.email}}</div>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 mb-2\">\n <div class=\"me-2\">Subject:</div>\n <div class=\"ml-2 subject-text\" title=\"{{selectedUserInfo?.subject}}\">\n {{selectedUserInfo?.subject}}</div>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 mb-2\">\n <div class=\"me-2 mb-1\">Image:</div>\n <div class=\"text-ellipsis\">\n <ng-container\n *ngIf=\"selectedUserInfo?.image && selectedUserInfo?.image !== '-'; else noImage\">\n <img src=\"{{selectedUserInfo?.image}}\" alt=\"\" width=\"150\" class=\"ml-2\" />\n </ng-container>\n <ng-template #noImage>\n <span class=\"ml-2\">No Image Available</span>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\" mb-4\">\n <div class=\"\">\n <div class=\"mb-1\">Message:</div>\n <div>\n <div class=\"text-container\" [class.expanded]=\"isExpanded\">{{selectedUserInfo?.message}}\n </div>\n <small class=\"toggle-btn\" *ngIf=\"showButton\" (click)=\"toggleText()\">{{ isExpanded ? 'See\n less' : 'See more' }}</small>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- call insights panel (live data from ClearCall via ClearCallLiveService) -->\n <div class=\"insights-panel\" [ngClass]=\"{'with-contacts': showContactsPanel}\"\n *ngIf=\"showInsightsPanel && !insightsFullscreen && !isMinimised && currentCallList?.length && !showNewCallLoader\">\n <div class=\"insights-header\">\n <span>\u2728 Call Insights</span>\n <span class=\"insights-header-actions\">\n <span class=\"material-symbols-outlined insights-close\" title=\"Full screen\" (click)=\"toggleInsightsFullscreen()\">fullscreen</span>\n <span class=\"material-symbols-outlined insights-close\" (click)=\"toggleInsightsPanel()\">close</span>\n </span>\n </div>\n\n <!-- Live sentiment -->\n <div class=\"insights-section insights-sentiment\" *ngIf=\"clearCallLive.features.liveSentiment; else sentimentOff\">\n <div class=\"sentiment-title\">\n <span>Live Sentiment</span>\n <span class=\"sentiment-value\" *ngIf=\"hasSentiment; else noSentiment\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\">\n {{ insightsSentimentLabel }} \u00B7 {{ clearCallLive.sentimentScore | number:'1.0-0' }}\n </span>\n <ng-template #noSentiment><span class=\"sentiment-value neutral\">\u2014</span></ng-template>\n </div>\n <div class=\"sentiment-bar\">\n <div class=\"sentiment-center\"></div>\n <div class=\"sentiment-fill\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\"\n [ngStyle]=\"insightsSentiment >= 0\n ? {'left': '50%', 'width': (insightsSentiment / 2) + '%'}\n : {'right': '50%', 'width': (-insightsSentiment / 2) + '%'}\"></div>\n </div>\n <div class=\"sentiment-scale\"><span>Negative</span><span>Positive</span></div>\n </div>\n <ng-template #sentimentOff>\n <div class=\"insights-section insights-sentiment\">\n <div class=\"sentiment-title\"><span>Live Sentiment</span></div>\n <ng-container *ngTemplateOutlet=\"featureOff; context: {$implicit: 'Live Sentiment'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- Say Next + AI Suggestion -->\n <ng-container *ngIf=\"clearCallLive.features.contextualResponse; else suggestionsOff\">\n <div class=\"insights-section insights-suggestions\" *ngFor=\"let sec of insightsSections; trackBy: trackByKey\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>{{ sec.title }}</div>\n <ul #suggestScroll class=\"suggestion-list\">\n <li *ngFor=\"let s of sec.items; trackBy: trackById\" [ngClass]=\"[s.kind, isLatest(sec.items, s) ? 'latest' : 'older']\">\n <span class=\"material-symbols-outlined\">{{ sec.icon }}</span>\n <div>\n <div class=\"suggestion-meta\"><span class=\"suggestion-signal\" *ngIf=\"s.signal\">{{ s.signal }}</span><span class=\"suggestion-time\">{{ s.time }}</span><span class=\"suggestion-new\" *ngIf=\"isLatest(sec.items, s)\">Latest</span></div>\n {{ s.text }}\n </div>\n </li>\n </ul>\n <div class=\"insights-empty\" *ngIf=\"!sec.items.length\">{{ insightsStatusText }}</div>\n </div>\n </ng-container>\n <ng-template #suggestionsOff>\n <div class=\"insights-section insights-suggestions\">\n <div class=\"insights-section-title\">Say Next & AI Suggestion</div>\n <ng-container *ngTemplateOutlet=\"featureOff; context: {$implicit: 'Say Next and AI Suggestion are'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- Live transcription -->\n <div class=\"insights-section insights-transcription\" *ngIf=\"clearCallLive.features.liveTranscription; else transcriptionOff\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>Live Transcription</div>\n <div class=\"transcript-list\" #transcriptList>\n <div class=\"transcript-line\" *ngFor=\"let t of insightsTranscript; trackBy: trackByKey\"\n [ngClass]=\"{'self': t.isSelf, 'interim': t.isInterim}\">\n <div class=\"transcript-meta\">{{ t.speaker }} \u00B7 {{ t.time }}</div>\n <div class=\"transcript-text\">{{ t.text }}</div>\n <div class=\"transcript-translation\" *ngIf=\"t.translation\">{{ t.translation }}</div>\n </div>\n <div class=\"insights-empty\" *ngIf=\"!insightsTranscript.length\">{{ insightsStatusText }}</div>\n </div>\n </div>\n <ng-template #transcriptionOff>\n <div class=\"insights-section insights-transcription\">\n <div class=\"insights-section-title\">Live Transcription</div>\n <ng-container *ngTemplateOutlet=\"featureOff; context: {$implicit: 'Live Transcription'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- shared \"feature disabled\" message -->\n <ng-template #featureOff let-name>\n <div class=\"insights-disabled\">\n {{ name }} is disabled.\n <a href=\"javascript:void(0)\" (click)=\"openTranscriptionSettings()\">Enable it in settings</a>\n </div>\n </ng-template>\n </div>\n\n <!-- call insights \u2014 full screen view (separate UI; the regular panel and call UI are only hidden while this is shown) -->\n <div class=\"insights-fs\"\n *ngIf=\"showInsightsPanel && insightsFullscreen && !isMinimised && currentCallList?.length && !showNewCallLoader\">\n <div class=\"insights-fs-header\">\n <span>\u2728 Call Insights</span>\n <span class=\"insights-header-actions\">\n <span class=\"material-symbols-outlined insights-close\" title=\"Exit full screen\" (click)=\"toggleInsightsFullscreen()\">fullscreen_exit</span>\n <span class=\"material-symbols-outlined insights-close\" title=\"Close\" (click)=\"toggleInsightsPanel()\">close</span>\n </span>\n </div>\n\n <div class=\"insights-fs-body\">\n <div class=\"insights-fs-side\">\n <!-- Live sentiment -->\n <div class=\"insights-fs-card\" *ngIf=\"clearCallLive.features.liveSentiment; else fsSentimentOff\">\n <div class=\"sentiment-title\">\n <span>Live Sentiment</span>\n <span class=\"sentiment-value\" *ngIf=\"hasSentiment; else fsNoSentiment\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\">\n {{ insightsSentimentLabel }} \u00B7 {{ clearCallLive.sentimentScore | number:'1.0-0' }}\n </span>\n <ng-template #fsNoSentiment><span class=\"sentiment-value neutral\">\u2014</span></ng-template>\n </div>\n <div class=\"sentiment-bar\">\n <div class=\"sentiment-center\"></div>\n <div class=\"sentiment-fill\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\"\n [ngStyle]=\"insightsSentiment >= 0\n ? {'left': '50%', 'width': (insightsSentiment / 2) + '%'}\n : {'right': '50%', 'width': (-insightsSentiment / 2) + '%'}\"></div>\n </div>\n <div class=\"sentiment-scale\"><span>Negative</span><span>Positive</span></div>\n </div>\n <ng-template #fsSentimentOff>\n <div class=\"insights-fs-card\">\n <div class=\"sentiment-title\"><span>Live Sentiment</span></div>\n <ng-container *ngTemplateOutlet=\"fsFeatureOff; context: {$implicit: 'Live Sentiment'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- Say Next + AI Suggestion -->\n <ng-container *ngIf=\"clearCallLive.features.contextualResponse; else fsSuggestionsOff\">\n <div class=\"insights-fs-card insights-fs-grow insights-suggestions\" *ngFor=\"let sec of insightsSections; trackBy: trackByKey\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>{{ sec.title }}</div>\n <ul #suggestScroll class=\"suggestion-list\">\n <li *ngFor=\"let s of sec.items; trackBy: trackById\" [ngClass]=\"[s.kind, isLatest(sec.items, s) ? 'latest' : 'older']\">\n <span class=\"material-symbols-outlined\">{{ sec.icon }}</span>\n <div>\n <div class=\"suggestion-meta\"><span class=\"suggestion-signal\" *ngIf=\"s.signal\">{{ s.signal }}</span><span class=\"suggestion-time\">{{ s.time }}</span><span class=\"suggestion-new\" *ngIf=\"isLatest(sec.items, s)\">Latest</span></div>\n {{ s.text }}\n </div>\n </li>\n </ul>\n <div class=\"insights-empty\" *ngIf=\"!sec.items.length\">{{ insightsStatusText }}</div>\n </div>\n </ng-container>\n <ng-template #fsSuggestionsOff>\n <div class=\"insights-fs-card insights-fs-grow\">\n <div class=\"insights-section-title\">Say Next & AI Suggestion</div>\n <ng-container *ngTemplateOutlet=\"fsFeatureOff; context: {$implicit: 'Say Next and AI Suggestion are'}\"></ng-container>\n </div>\n </ng-template>\n </div>\n\n <!-- Live transcription -->\n <div class=\"insights-fs-card insights-fs-main\" *ngIf=\"clearCallLive.features.liveTranscription; else fsTranscriptionOff\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>Live Transcription</div>\n <div class=\"transcript-list\" #transcriptList>\n <div class=\"transcript-line\" *ngFor=\"let t of insightsTranscript; trackBy: trackByKey\"\n [ngClass]=\"{'self': t.isSelf, 'interim': t.isInterim}\">\n <div class=\"transcript-meta\">{{ t.speaker }} \u00B7 {{ t.time }}</div>\n <div class=\"transcript-text\">{{ t.text }}</div>\n <div class=\"transcript-translation\" *ngIf=\"t.translation\">{{ t.translation }}</div>\n </div>\n <div class=\"insights-empty\" *ngIf=\"!insightsTranscript.length\">{{ insightsStatusText }}</div>\n </div>\n </div>\n <ng-template #fsTranscriptionOff>\n <div class=\"insights-fs-card insights-fs-main\">\n <div class=\"insights-section-title\">Live Transcription</div>\n <ng-container *ngTemplateOutlet=\"fsFeatureOff; context: {$implicit: 'Live Transcription'}\"></ng-container>\n </div>\n </ng-template>\n </div>\n\n <!-- call controls (same actions as the active-call view) -->\n <div class=\"insights-fs-controls\">\n <!-- keypad pop-over (own state \u2014 does not touch the regular call UI's keypad) -->\n <div class=\"insights-fs-keypad\" *ngIf=\"fsKeypadOpen\">\n <div class=\"insights-fs-keypad-display\">{{ callInput || 'Enter digits' }}</div>\n <div class=\"insights-fs-keypad-grid\">\n <button type=\"button\" class=\"insights-fs-key\" *ngFor=\"let key of keypadVal\" (click)=\"onCallInputs(key.num)\">\n {{ key.num }}\n <span>{{ key.text ? key.text : ' ' }}</span>\n </button>\n </div>\n </div>\n\n <!-- who / how long -->\n <div class=\"insights-fs-callinfo\">\n <div class=\"insights-fs-callname\">{{ fsCallName }}</div>\n <div class=\"insights-fs-callnumber\" *ngIf=\"fsCallNumber\">{{ fsCallNumber }}</div>\n <div class=\"insights-fs-callduration\"><span class=\"material-symbols-outlined\">timer</span>{{ timer }}</div>\n </div>\n\n <!-- actions -->\n <div class=\"insights-fs-actions\">\n <button class=\"circle-btn\" [ngClass]=\"{'active': isSelfEffectivelyMuted()}\"\n [disabled]=\"(!isConference && !currentCall?.isAcceptCall) || !canSelfToggleMute()\"\n [title]=\"selfMuteTooltip()\" (click)=\"toggleMute(isConference)\">\n <span class=\"material-symbols-outlined\"> {{ isSelfEffectivelyMuted() ? 'mic_off' : 'mic' }} </span>\n </button>\n <button class=\"circle-btn\" [ngClass]=\"{'active': fsKeypadOpen}\" title=\"Keypad\"\n [disabled]=\"!isConference && !currentCall?.isAcceptCall\" (click)=\"fsKeypadOpen = !fsKeypadOpen; callInput = ''\">\n <span class=\"material-symbols-outlined\"> transition_dissolve </span>\n </button>\n <button class=\"circle-btn\" title=\"Participants\"\n [disabled]=\"!isConference && !currentCall?.isAcceptCall\" (click)=\"openParticipantsFromFullscreen()\">\n <span class=\"material-symbols-outlined\"> groups_2 </span>\n </button>\n <!-- recording -->\n <button class=\"circle-btn\" *ngIf=\"!isRecording\" title=\"Start recording\"\n [disabled]=\"(!isConference && !currentCall?.isAcceptCall) || userSettingInfo?.callRecording == 'N'\"\n (click)=\"toggleRecording()\">\n <span class=\"insights-fs-rec-dot\"></span>\n </button>\n <ng-container *ngIf=\"isRecording\">\n <button class=\"circle-btn active\" title=\"Stop recording\" (click)=\"toggleRecording()\">\n <span class=\"material-symbols-outlined\"> stop </span>\n </button>\n <button class=\"circle-btn\" *ngIf=\"!isPaused\" title=\"Pause recording\" (click)=\"pauseRecording()\">\n <span class=\"material-symbols-outlined\"> pause </span>\n </button>\n <button class=\"circle-btn\" *ngIf=\"isPaused\" title=\"Resume recording\" (click)=\"resumeRecording()\">\n <span class=\"material-symbols-outlined\"> play_arrow </span>\n </button>\n <span class=\"insights-fs-rec-time\">{{ getFormattedTime() }}</span>\n </ng-container>\n <!-- end call -->\n <button class=\"circle-btn danger\" title=\"End call\" *ngIf=\"isConference; else fsEndSingle\"\n (click)=\"endConfereneceCall(currentConferenceCall?.participants[0])\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n <ng-template #fsEndSingle>\n <button class=\"circle-btn danger\" title=\"End call\" [disabled]=\"!currentCall?.isAcceptCall\"\n (click)=\"endCall(false, currentCall)\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </ng-template>\n </div>\n <div class=\"insights-fs-controls-spacer\"></div>\n </div>\n\n <ng-template #fsFeatureOff let-name>\n <div class=\"insights-disabled\">\n {{ name }} is disabled.\n <a href=\"javascript:void(0)\" (click)=\"openTranscriptionSettings()\">Enable it in settings</a>\n </div>\n </ng-template>\n </div>\n\n <!-- contact list panel -->\n <div class=\"contacts-panel\"*ngIf=\"showContactsPanel && !showNewCallLoader\">\n <div class=\"panel-loader-overlay p-3 text-center\" *ngIf=\"isParticipantPanelLoading\">\n <div class=\"spinner-border text-secondary\" role=\"status\">\n <span class=\"sr-only\">Loading...</span>\n </div>\n <p class=\"mt-2\"></p>\n </div>\n <div class=\"contacts-header\">\n <div class=\"participant-list-title\">\n {{ selectedConfName || 'Conference' }} Participants\n <!-- <ng-container *ngIf=\"totalParticipantsCount < 3; else confHeading\">\n Call Participants\n </ng-container>\n <ng-template #confHeading>\n </ng-template> -->\n </div>\n <div class=\"d-flex justify-content-between\">\n <span class=\"material-symbols-outlined settings-icon me-2\" *ngIf=\"isConferenceHost\" (click)=\"toggleSettingsPanel()\">\n settings\n </span>\n <span class=\"material-symbols-outlined dial-close-btn\" (click)=\"toggleContactsPanel({}, true)\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"\n fill=\"#000000\">\n <path\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" />\n </svg>\n </span>\n </div>\n </div>\n <div class=\"settings-overlay\" *ngIf=\"showSettingsPanel\" (click)=\"closeSettingsPanel()\">\n <div class=\"settings-drawer\" (click)=\"$event.stopPropagation()\">\n <div class=\"settings-header\">\n <span class=\"material-symbols-outlined\" (click)=\"closeSettingsPanel()\">arrow_back</span>\n <span>Call Settings</span>\n <span></span> <!-- placeholder for alignment -->\n </div>\n \n <div class=\"settings-body\">\n <!-- Mute all participants -->\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>Mute all participants</span>\n <small>Off \u2014 participants can mute and unmute themselves at any time.</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.muteAll\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"onMuteAllToggle($event)\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n \n <hr>\n \n <!-- Participant Permissions -->\n <div class=\"setting-group\">\n <h6>PARTICIPANT PERMISSIONS</h6>\n \n <!-- Allow unmute -->\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>\n <svg viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3Z\" stroke=\"currentColor\" stroke-width=\"1.8\"></path>\n <path d=\"M19 10v2a7 7 0 0 1-14 0v-2M12 19v3\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"></path>\n </svg>\n Allow participants to self-unmute\n </span>\n <small>{{ settings.allowUnmute ? 'Yes \u2014 participants can unmute themselves after being muted\n individually by the host.' : 'No \u2014 participants cannot unmute themselves.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowUnmute\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowUnmute = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n \n <!-- Allow remove -->\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>\n <svg viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M17 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M15 3.13a4 4 0 0 1 0 7.75\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"></path>\n <circle cx=\"9\" cy=\"7\" r=\"4\" stroke=\"currentColor\" stroke-width=\"1.8\"></circle>\n <path d=\"M19 8h4\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"></path>\n </svg>\n Allow participants to remove\n </span>\n <small>{{ settings.allowRemove ? 'Yes \u2014 participants can remove other participants.' : 'No \u2014\n participants cannot remove other participants, and cannot remove the host.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowRemove\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowRemove = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>Allow participants to unhold</span>\n <small>{{ settings.allowUnhold ? 'Yes \u2014 participants can place themselves on hold.' : 'No \u2014\n participants cannot place themselves on hold.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowUnhold\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowUnhold = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>Allow participants to mute other participants</span>\n <small>{{ settings.allowMuteOthers ? 'Yes \u2014 Participants can mute other participants, and can mute the host.' : 'No \u2014\n Participants cannot mute other participants, and cannot mute the host.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowMuteOthers\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowMuteOthers = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- SEARCH INPUT (visible when isSearchVisible = true) -->\n <div class=\"search-bar p-3 position-relative\">\n <input type=\"text\" [placeholder]=\"isSpecialCall() ? 'Search by Name or Number for a new call' : 'Add a participant by Name or Number'\"\n [title]=\"isSpecialCall() ? 'Adding participants is not allowed on this call' : 'Add a participant by Name or Number'\" [(ngModel)]=\"searchText\" (input)=\"applyFilter()\" />\n <div class=\"search-contacts-list\">\n <ng-container *ngFor=\"let c of filteredList\">\n <div class=\"contact-item\" *ngIf=\"searchText\">\n <img class=\"contact-avatar\" [src]=\"c?.image || 'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-name\">{{c?.firstName}} {{c?.middleName}} {{c?.lastName}}</div>\n <div class=\"contact-title\">{{ (c?.numbersList && c?.numbersList[0]?.number) }}{{ c?.numbersList[0]?.numberLabel ? ' (' + c.numbersList[0].numberLabel + ')' : '' }}</div>\n </div>\n <button class=\"contact-call-btn contact-add-btn mr-2\" (click)=\"callContact(c)\"\n *ngIf=\"!c?.IsConnected && !isSpecialCall()\" title=\"Add to call\">\n <span class=\"material-symbols-outlined\"> add </span>\n </button>\n <button class=\"contact-call-btn\" (click)=\"CallToUnsavedNumber(c?.numbersList[0]?.number, true)\"\n *ngIf=\"!c?.IsConnected\" title=\"New Call\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!filteredList.length && isDirectCallOptionShow && searchText\">\n <div class=\"contact-item\">\n <img class=\"contact-avatar\" [src]=\"'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-title\">{{ searchText }}</div>\n </div>\n <button class=\"contact-call-btn contact-add-btn mr-2\" (click)=\"CallToUnsavedNumber(searchText)\"\n *ngIf=\"!isSpecialCall()\" title=\"Add to call\">\n <span class=\"material-symbols-outlined\"> add </span>\n </button>\n <button class=\"contact-call-btn\" (click)=\"CallToUnsavedNumber(searchText, true)\"\n title=\"New Call\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <div class=\"contacts-list\">\n <div class=\"px-2\">\n <h5 class=\"mb-0 title\">Active participants ({{ activeParticipantsCount }})</h5>\n </div>\n <hr class=\"mb-2 mt-1\">\n <ng-container *ngFor=\"let c of filteredParticipentList\">\n <div class=\"contact-item\" *ngIf=\"!c?.isLeft\">\n <img class=\"contact-avatar\" *ngIf=\"!c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.toImage || 'assets/images/user.jpg' : c?.fromImage || 'assets/images/user.jpg'\" alt=\"\" />\n <img class=\"contact-avatar\" *ngIf=\"c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.fromImage || 'assets/images/user.jpg' : c?.toImage || 'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-name\" *ngIf=\"!c?.client\">{{c?.direction == 'outgoing-call' ? c?.toName || 'Unknown' : c?.fromName || 'Unknown'}}\n </div>\n <div class=\"contact-title\" *ngIf=\"!c?.client\">{{ c?.direction == 'outgoing-call' ? c?.to || 'Unknown' : c?.from || 'Unknown'}}</div>\n\n <div class=\"contact-name\" *ngIf=\"c?.client\">\n <ng-container *ngIf=\"!isSelfNumber(c) else selfNumber\">\n <span>{{c?.direction == 'outgoing-call' ? c?.fromName || 'Unknown' : c?.toName || 'Unknown'}}</span>\n </ng-container>\n <ng-template #selfNumber>\n <span>You</span>\n </ng-template>\n </div>\n <div class=\"contact-title\" *ngIf=\"c?.client\">{{ c?.direction == 'outgoing-call' ? c?.from || 'Unknown' : c?.to || 'Unknown'}}</div>\n <div class=\"d-flex\" *ngIf=\"c?.host\">\n <span class=\"organizer-label\">Organizer</span>\n </div>\n </div>\n <ng-container *ngIf=\"c?.joined && !c?.host\">\n <div class=\"connecting-wrapper mr-2\">\n <span class=\"ringing-text\">Ringing</span>\n <span class=\"dots\">\n <span>.</span>\n <span>.</span>\n <span>.</span>\n </span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"c?.host && c?.isHold && !(deviceNumberList.includes(c?.from) || (deviceNumberList.includes(c?.to) && c?.direction == 'incoming-call'))\">\n <div class=\"connecting-wrapper mr-2\">\n <span class=\"onHold-text\">On Hold</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!c?.joined || c?.host\">\n <button class=\"mic-btn mr-2\" [disabled]=\"c?.isHold || !canToggleMute(c)\" [title]=\"muteTooltip(c)\" (click)=\"onMuteUser(c)\">\n <span class=\"material-symbols-outlined\" *ngIf=\"isEffectivelyMuted(c)\"> mic_off </span>\n <span class=\"material-symbols-outlined\" *ngIf=\"!isEffectivelyMuted(c)\"> mic </span>\n </button>\n <button class=\"conference-hold-contact mr-2\" [ngClass]=\"{ 'on-hold': c?.isHold }\"\n (click)=\"onHoldCall(c)\" *ngIf=\"!c?.host || (c?.host && (deviceNumberList.includes(c?.from) || (deviceNumberList.includes(c?.to) && c?.direction == 'incoming-call')))\" [disabled]=\"isHoldBtnDisable || !canToggleHold(c)\">\n <span *ngIf=\"!c?.isHold\" class=\"material-symbols-outlined\" [title]=\"canToggleHold(c) ? 'Hold' : holdTooltip(c)\"> phone_paused</span>\n <span *ngIf=\"c?.isHold\" class=\"material-symbols-outlined\" [title]=\"canToggleHold(c) ? 'Resume' : holdTooltip(c)\"> resume </span>\n </button>\n </ng-container>\n <button class=\"conference-contact\" (click)=\"confirmLeaveParticipant(c)\"\n [disabled]=\"!canRemoveParticipant(c)\" [title]=\"removeTooltip(c)\" *ngIf=\"!c?.host\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n <button class=\"conference-contact\" (click)=\"endConfereneceCall(c)\"\n *ngIf=\"c?.host && (deviceNumberList.includes(c?.from) || (deviceNumberList.includes(c?.to) && c?.direction == 'incoming-call'))\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n </div>\n </ng-container>\n <hr class=\"m-2\">\n <div class=\"mt-3 px-2\">\n <h5 class=\"mb-0 title\">Participant added to the call</h5>\n </div>\n <hr class=\"mb-2 mt-1\">\n <ng-container *ngFor=\"let c of filteredParticipentList\">\n <div class=\"contact-item\" *ngIf=\"c?.isLeft\">\n <img class=\"contact-avatar\" *ngIf=\"!c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.toImage || 'assets/images/user.jpg' : c?.fromImage || 'assets/images/user.jpg'\" alt=\"\" />\n <img class=\"contact-avatar\" *ngIf=\"c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.fromImage || 'assets/images/user.jpg' : c?.toImage || 'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-name\" *ngIf=\"!c?.client\">{{c?.direction == 'outgoing-call' ? c?.toName || 'Unknown' : c?.fromName || 'Unknown'}}\n </div>\n <div class=\"contact-title\" *ngIf=\"!c?.client\">{{ c?.direction == 'outgoing-call' ? c?.to || 'Unknown' : c?.from || 'Unknown'}}</div>\n <div class=\"contact-name\" *ngIf=\"c?.client\">{{c?.direction == 'outgoing-call' ? c?.fromName || 'Unknown' : c?.toName || 'Unknown'}}\n </div>\n <div class=\"contact-title\" *ngIf=\"c?.client\">{{ c?.direction == 'outgoing-call' ? c?.from || 'Unknown' : c?.to || 'Unknown'}}</div>\n <div class=\"d-flex\" *ngIf=\"c?.host\">\n <span class=\"organizer-label\">Organizer</span>\n </div>\n </div>\n <div class=\"connecting-wrapper\" *ngIf=\"c?.joined\">\n <span class=\"ringing-text\">Ringing</span>\n <span class=\"dots\">\n <span>.</span>\n <span>.</span>\n <span>.</span>\n </span>\n </div>\n <button class=\"conference-contact\" (click)=\"onEndCall(c, false, true)\" *ngIf=\"!c?.host && c?.joined\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n <button class=\"contact-call-btn contact-add-btn\" *ngIf=\"!c?.client && !c?.joined && !c?.businessNumber\"\n (click)=\"CallToUnsavedNumber(c.direction == 'outgoing-call' ? c?.to : c?.from, false, { skipDuplicateCheck: true }, c)\">\n <span class=\"material-symbols-outlined\"> add </span>\n <span class=\"label\">Rejoin</span>\n </button>\n <button class=\"contact-call-btn contact-add-btn\" *ngIf=\"c?.client && !c?.joined && !c?.businessNumber\"\n (click)=\"CallToUnsavedNumber(c.direction == 'outgoing-call' ? c?.from : c?.to, false, { skipDuplicateCheck: true }, c)\">\n <span class=\"material-symbols-outlined\"> add </span>\n <span class=\"label\">Rejoin</span>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n\n <!-- Conference Warning Modal -->\n<div class=\"custom-modal\" *ngIf=\"showConferenceWarningModal\">\n <div class=\"modal-content warning-modal\">\n <div class=\"warning-icon\">\n <span class=\"material-symbols-outlined\">warning</span>\n </div>\n <h3>Warning</h3>\n <p>\n Starting a new call will put the current call on hold\n and cannot be merged later.\n </p>\n <div class=\"warning-actions\">\n <button class=\"cancel-btn\" (click)=\"cancelNewCall()\">\n Cancel\n </button>\n <button class=\"proceed-btn\" (click)=\"confirmNewCall()\">\n Proceed\n </button>\n </div>\n </div>\n</div>\n\n<!-- Special Call Charges Modal (call screen open: active/held conference + new call).\n First call (no call screen yet) is shown by dialbox over its \"Connecting...\" loader. -->\n<div class=\"custom-modal\" *ngIf=\"twilioService.specialCallConfirm?.inCallScreen\">\n <div class=\"modal-content warning-modal\">\n <div class=\"warning-icon\">\n <span class=\"material-symbols-outlined\">warning</span>\n </div>\n <h3>Call Charges</h3>\n <p *ngIf=\"twilioService.specialCallConfirm?.message\">{{ twilioService.specialCallConfirm?.message }}</p>\n <p *ngIf=\"!twilioService.specialCallConfirm?.message\">\n Additional charges apply to this call. Do you want to proceed?\n </p>\n <div class=\"warning-actions\">\n <button class=\"cancel-btn\" (click)=\"onSpecialCallChargesAction(false)\">\n Cancel\n </button>\n <button class=\"proceed-btn\" (click)=\"onSpecialCallChargesAction(true)\">\n Proceed\n </button>\n </div>\n </div>\n</div>\n</div>\n\n<div class=\"min-call-container\" *ngIf=\"isMinimised\">\n <span class=\"material-symbols-outlined fullscreen\" (click)=\"maximiseDialpad()\"> open_in_full </span>\n <div style=\"display: flex; width: 100%\">\n <div>\n <div class=\"min-call-animation\" id=\"call-avatar\">\n <img class=\"min-avatar-img\" [src]=\"callData.img\" alt=\"\" />\n </div>\n </div>\n <div>\n <div class=\"min-callerDetails\">\n <div class=\"name\">\n {{callData.name}}\n </div>\n <p style=\"margin: 0\">{{callData.displayNum ? callData.displayNum : callData.phone }}</p>\n </div>\n </div>\n </div>\n <div class=\"min-btn-container\">\n <div class=\"min-timer\">{{timer}}</div>\n <button class=\"min-call-sec-btn\" (click)=\"toggleMute()\" [disabled]=\"disbaleEndCallBtn || !canSelfToggleMute()\" [title]=\"selfMuteTooltip()\">\n <span class=\"material-symbols-outlined\" *ngIf=\"isSelfEffectivelyMuted()\"> mic_off </span>\n <span class=\"material-symbols-outlined\" *ngIf=\"!isSelfEffectivelyMuted()\"> mic </span>\n </button>\n <button class=\"min-call-btn end-call-btn\" [disabled]=\"disbaleEndCallBtn\" (click)=\"endCall()\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n</div>\n<!-- Call Disconnect Modal -->\n<div class=\"custom-modal\" *ngIf=\"showDisconnectModal\">\n <div class=\"modal-content p-3\">\n <div class=\"contacts-header p-0 pb-2\">\n <h4 class=\"title mb-0\">{{selectedConf?.conName || 'Call'}} Disconnect</h4>\n <div class=\"d-flex justify-content-between\">\n <span class=\"material-symbols-outlined dial-close-btn\" (click)=\"showDisconnectModal = false\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"\n fill=\"#000000\">\n <path\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" />\n </svg>\n </span>\n </div>\n </div>\n <div class=\"contant-body mb-2\">\n <p class=\"mt-2\">\n Exiting this call will not end the conference. The session will continue, and charges will incur to\n your\n account.\n </p>\n </div>\n <div class=\"button-group\">\n <div class=\"text-start d-flex align-items-center\">\n <label class=\"d-flex align-items-center mb-0 mr-2\">\n <input type=\"checkbox\" [(ngModel)]=\"isReasonChecked\" (ngModelChange)=\"onReasonCheckChanged($event)\" class=\"me-2\"/>\n </label>\n <div class=\"time-picker-24hr\">\n <!-- Hour picker -->\n <div class=\"custom-time-select\" [class.disabled-picker]=\"!isReasonChecked\">\n <div class=\"custom-time-display\" (click)=\"isReasonChecked && toggleHourDropdown()\">\n {{ leaveHour || 'HH' }}\n <span class=\"picker-arrow\">▼</span>\n </div>\n <div class=\"custom-time-options\" *ngIf=\"showHourDropdown\">\n <div class=\"custom-time-option\"\n *ngFor=\"let h of hours\"\n [class.selected]=\"leaveHour === h\"\n (click)=\"selectHour(h)\">{{ h }}</div>\n </div>\n </div>\n <span class=\"time-sep\">:</span>\n <!-- Minute picker -->\n <div class=\"custom-time-select\" [class.disabled-picker]=\"!isReasonChecked\">\n <div class=\"custom-time-display\" (click)=\"isReasonChecked && toggleMinuteDropdown()\">\n {{ leaveMinute || 'MM' }}\n <span class=\"picker-arrow\">▼</span>\n </div>\n <div class=\"custom-time-options\" *ngIf=\"showMinuteDropdown\">\n <div class=\"custom-time-option\"\n *ngFor=\"let m of minutes\"\n [class.selected]=\"leaveMinute === m\"\n (click)=\"selectMinute(m)\">{{ m }}</div>\n </div>\n </div>\n </div>\n </div>\n <button class=\"btn end-btn\" (click)=\"leaveConference()\" [disabled]=\"isReasonChecked && (!leaveHour || !leaveMinute)\">\n Leave\n </button>\n <button class=\"btn end-btn\" (click)=\"endConference()\" *ngIf=\"showEndAllButton\">\n End All\n </button>\n </div>\n </div>\n</div>\n<div class=\"custom-modal\" *ngIf=\"showLeaveConfirmationModal\">\n <div class=\"modal-content warning-modal\">\n <div class=\"warning-icon\">\n <span class=\"material-symbols-outlined\">info</span>\n </div>\n <h3>Leave Conference</h3>\n <p>\n You are about to leave <strong>{{ leaveConfConferenceName }}</strong>. \n Are you sure?\n </p>\n <div class=\"warning-actions\">\n <button class=\"cancel-btn\" (click)=\"cancelLeave()\">Cancel</button>\n <button class=\"proceed-btn\" (click)=\"confirmLeave()\">Leave</button>\n </div>\n </div>\n</div>", styles: [".call-container{width:385px;height:646px!important;margin:auto;border-radius:20px;box-shadow:6px 6px 10px -1px #00000026,-5px -4px 10px -1px #00000026;display:flex;box-sizing:border-box;position:relative;justify-content:center;align-items:center;z-index:1000;flex-flow:column;overflow-x:hidden;overflow-y:visible}.disabled{opacity:.5!important;pointer-events:none!important}.call-to-text{padding:6px 10px;border:1px solid #c2c2c2;border-radius:20px;font-size:13px}.collops{height:660px!important}.incoming-call-container{flex-flow:row!important}.active-call{width:385px!important}.call-animation{background:#fff;width:100px;height:100px;position:relative;margin:20px auto 0;border-radius:100%;border:solid 4px #fff;display:flex;align-items:center;justify-content:center}.call-animation:before{position:absolute;content:\"\";top:0;left:0;width:100%;height:100%;backface-visibility:hidden;border-radius:50%}.call-animation-play{animation:play 3s linear infinite}.call-info-wrapper{height:20px;overflow-y:auto;background:white;transition:height 1s}.open-collops{height:180px!important}.avatar-img{width:94px;height:94px;border-radius:100%}@keyframes play{0%{transform:scale(1)}15%{box-shadow:0 0 0 2px #fff6}25%{box-shadow:0 0 0 4px #fff6,0 0 0 8px #fff3}25%{box-shadow:0 0 0 8px #fff6,0 0 0 16px #fff3}50%{box-shadow:0 0 0 10px #fff6,0 0 0 20px #fff3}to{box-shadow:0 0 0 10px #fff6,0 0 0 20px #fff3;transform:scale(1.1);opacity:0}}.callerDetails{margin-top:8px;color:#fff;display:flex;flex-direction:column;align-items:center}.togglearrow-arrow{left:100%;background-color:#fff;width:25px;height:25px;text-align:center;cursor:pointer;border:1px solid #ccc;border-radius:50%;line-height:22px}.togglearrow-arrow.disabled{opacity:.3;cursor:not-allowed;pointer-events:none}.search-bar input{width:100%;padding:8px;border:1px solid #ccc;border-radius:4px;outline:none}.togglearrow-arrow.disabled:hover{opacity:.3;cursor:not-allowed}.callerDetails h1{width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:12px 0 0;color:#fff;text-transform:capitalize;text-align:center}.callerDetails h4{margin:0;color:#fff}.tx-black,.title{color:#000!important}.callerDetails p{margin-top:-3px;margin-bottom:0;color:#fff}.call-sec-btn,.mic-btn{position:relative;box-sizing:border-box;border:1px solid #cccbcb;background-color:transparent;border-radius:25px;padding:12px;box-shadow:6px 6px 10px -1px #bebebe26,-5px -4px 10px -1px #d2d2d226;width:50px;height:50px}.mic-btn{padding:5px;width:37px;height:37px}.receive-btn{background-color:#28a745!important;color:#fff!important}.receive-btn span{color:#fff!important}.scroll-container{width:100%;overflow:hidden;white-space:nowrap;position:relative}.scroll-text{display:inline-block;padding-left:100%;animation:scroll-left 12s linear infinite;font-size:16px}@keyframes scroll-left{0%{transform:translate(0)}to{transform:translate(-100%)}}.call-sec-btn span{color:#cccbcb}.call-btn{width:60px;height:60px;background-color:#fff;border-radius:30px;box-sizing:border-box;border:2px solid white;margin:0 16px}.end-call-btn{background-color:#e14e4e}.end-call-btn span{color:#fff!important}.call-btn span{color:#234de8}.btn-container{display:flex;flex-wrap:wrap;padding:0 30px}.key-btn{width:50px;height:50px;background-color:transparent;text-align:center;box-sizing:border-box;margin:0 18px;font-size:22px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:Lato,sans-serif;font-weight:900;font-style:normal;color:#d3d3d3;cursor:pointer;opacity:.8}.call-action-btns{text-align:center}#call-input{background-color:transparent;border:none;outline:none;text-align:center;color:#fff}.sendDigit{position:relative;text-align:center;width:80%;margin:auto;background-color:#ffffff1a;padding:2px 0;border-radius:3px}.input-clear-btn{position:absolute;right:6px;color:#fff;cursor:pointer}#minimize-btn-div{position:absolute;right:14px;top:12px;z-index:10}.minimize-btn{color:#fff;cursor:pointer}.wave-container{position:absolute;bottom:0;overflow:hidden;width:100%}.waves{width:660px;position:relative;margin-bottom:-7px;height:40px;min-height:40px}.held-call-banner{position:absolute;top:0;left:0;right:0;z-index:2100;box-shadow:0 4px 12px #0000004d;border-radius:0 0 16px 16px;max-height:220px;overflow-y:auto}.held-call-content{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 6px;border-bottom:1px dotted #4b4b4b;border-left:3px solid transparent;transition:background .15s ease,border-left-color .15s ease;cursor:pointer}.held-call-content.held-call-selected{background:rgba(255,255,255,.15);border-left-color:#fff;border-radius:0 6px 6px 0}.held-main-label{font-size:13px;color:#fff;text-transform:uppercase;letter-spacing:.5px}.fa-info{font-size:smaller!important}.held-info{display:flex;align-items:center;gap:10px;flex:1}.hold-icon{font-size:24px;color:#fbbf24}.swap-icon{font-size:24px}.held-caller{display:flex;flex-direction:column;gap:2px}.held-label{font-size:10px;color:#ffffffb3;text-transform:uppercase;letter-spacing:.5px}.held-name{font-size:14px;font-weight:600;color:#fff}.held-number{font-size:13px;font-weight:500;color:#fff}.held-actions{display:flex;gap:8px;align-items:center}.held-btn{padding:6px 16px;border-radius:20px;border:none;font-size:13px;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}.held-btn:hover{transform:scale(1.05);box-shadow:0 4px 12px #0003}.swap-btn{background:#3b82f6;color:#fff}.merge-btn{background:#10b981;color:#fff}.h-77px{height:77px}.incoming-banners-container{width:100%;padding:5px 8px;height:100%;gap:8px;overflow-y:auto}.call-container-model{width:385px!important;height:646px!important;margin:auto 0 0 1px;border-radius:20px;box-shadow:6px 6px 10px -1px #00000026,-5px -4px 10px -1px #00000026;display:flex;box-sizing:border-box;position:relative;overflow:hidden;justify-content:center;align-items:center}.incoming-banner{top:0;left:0;width:100%;right:0;background:linear-gradient(135deg,#1e3a8a 0%,#3b82f6 100%);padding:12px 16px;z-index:2000;box-shadow:0 4px 12px #0003;border-radius:16px}.incoming-banner-content{display:flex;align-items:center;justify-content:space-between;gap:12px}.incoming-info{flex:1;display:flex;flex-direction:column;gap:4px}.incoming-label{font-size:11px;color:#fffc;text-transform:uppercase;letter-spacing:.5px}.incoming-caller{display:flex;flex-direction:column;gap:2px}.caller-name{font-size:15px;font-weight:600;color:#fff}.caller-number{font-size:13px;color:#ffffffe6}.incoming-actions{display:flex;gap:8px;align-items:center}.banner-btn{width:44px;height:44px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s}.banner-btn:hover{transform:scale(1.1)}.banner-btn .material-symbols-outlined{font-size:20px}.accept-btn{background:#10b981}.accept-btn .material-symbols-outlined{color:#fff}.reject-btn{background:#ef4444}.reject-btn .material-symbols-outlined{color:#fff}.contacts-panel{position:absolute;top:0;bottom:12px;width:340px;background:#ffffff;border-radius:16px;box-shadow:0 10px 25px #00000026;display:flex;flex-direction:column;overflow:hidden;height:40.4rem;left:24.1rem;z-index:1000000;color:#111827!important}.insights-panel{position:absolute;top:0;bottom:12px;width:340px;height:40.4rem;left:24.1rem;background:#f8fafc;border-radius:16px;box-shadow:0 10px 25px #00000026;display:flex;flex-direction:column;overflow:hidden;z-index:1000000;color:#111827}.insights-panel.with-contacts{left:calc(24.1rem + 352px)}.insights-header{height:52px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;font-weight:600;font-size:15px}.insights-header-actions{display:flex;align-items:center;gap:10px}.insights-fs{position:fixed;inset:0;z-index:1000010;display:flex;flex-direction:column;background:#f8fafc;color:#111827}.insights-fs-header{height:56px;flex-shrink:0;display:flex;align-items:center;gap:12px;padding:0 24px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;font-weight:600;font-size:16px}.insights-fs-header .insights-header-actions{margin-left:auto}.insights-fs-header .insights-close{font-size:24px}.insights-fs-timer{font-size:13px;font-weight:500;opacity:.85}.insights-fs-body{flex:1;min-height:0;display:flex;gap:16px;padding:16px 24px}.insights-fs-side{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column;gap:16px}.insights-fs-card{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f;padding:14px 16px}.insights-fs-grow{flex:1;min-height:0;overflow-y:auto}.insights-fs-main{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column}.insights-fs-main .transcript-list{flex:1}.insights-fs-main .transcript-text{font-size:14px}.insights-fs-controls{position:relative;flex-shrink:0;display:flex;align-items:center;gap:24px;padding:12px 24px;background:#fff;border-top:1px solid #e5e7eb}.insights-fs-callinfo,.insights-fs-controls-spacer{flex:1;min-width:0}.insights-fs-callname{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insights-fs-callnumber{font-size:12.5px;color:#64748b}.insights-fs-callduration{display:flex;align-items:center;gap:4px;font-size:12.5px;color:#4f46e5;font-weight:600}.insights-fs-callduration .material-symbols-outlined{font-size:15px}.insights-fs-actions{display:flex;align-items:center;justify-content:center;gap:16px}.insights-fs-rec-dot{width:14px;height:14px;border-radius:50%;background:#ef4444;display:inline-block}.insights-fs-rec-time{font-size:13px;font-weight:600;color:#ef4444;min-width:40px}.insights-fs-keypad{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;width:260px;padding:12px;background:#fff;border-radius:14px;box-shadow:0 10px 25px #00000026}.insights-fs-keypad-display{min-height:28px;margin-bottom:8px;text-align:center;font-size:18px;letter-spacing:.08em;color:#111827;word-break:break-all}.insights-fs-keypad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.insights-fs-key{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1;height:52px;border:none;border-radius:10px;background:#f1f5f9;font-size:18px;font-weight:600;cursor:pointer}.insights-fs-key:hover{background:#e2e8f0}.insights-fs-key span{font-size:9px;font-weight:500;color:#64748b;letter-spacing:.08em}@media (max-width: 760px){.insights-fs-body{flex-direction:column}.insights-fs-side{flex:0 0 auto;max-height:45%}}.insights-close{cursor:pointer;opacity:.85;font-size:20px}.insights-close:hover{opacity:1}.insights-section-title{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.06em;color:#64748b;text-transform:uppercase;margin-bottom:8px}.live-dot{width:7px;height:7px;border-radius:50%;background:#ef4444;animation:insightsPulse 1.4s infinite}@keyframes insightsPulse{0%,to{opacity:1}50%{opacity:.25}}.insights-sentiment{flex-shrink:0;margin:10px 12px 0;padding:8px 12px;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f}.sentiment-title{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;letter-spacing:.06em;color:#64748b;text-transform:uppercase}.sentiment-value{font-size:11px;font-weight:700;padding:1px 8px;border-radius:10px;letter-spacing:0;text-transform:none}.sentiment-value.positive{color:#15803d;background:#dcfce7}.sentiment-value.negative{color:#b91c1c;background:#fee2e2}.sentiment-value.neutral{color:#64748b;background:#f1f5f9}.insights-disabled{font-size:12px;color:#64748b;text-align:center;padding:10px 0}.insights-disabled a{color:#4f46e5;font-weight:600;text-decoration:underline;cursor:pointer}.insights-empty{font-size:12px;color:#94a3b8;text-align:center;padding:10px 0}.insights-suggestions li.coaching{background:#eef2ff;border-left-color:#6366f1}.insights-suggestions li.coaching .material-symbols-outlined{color:#4f46e5}.suggestion-signal{display:inline-block;font-size:10px;font-weight:700;text-transform:uppercase;color:#4f46e5;background:#e0e7ff;border-radius:8px;padding:0 6px;margin-right:4px}.transcript-line.interim{opacity:.65;font-style:italic}.transcript-translation{font-size:11.5px;color:#64748b;border-top:1px dashed #cbd5e1;margin-top:3px;padding-top:2px}.sentiment-bar{position:relative;height:8px;margin:7px 0 3px;background:linear-gradient(90deg,#ef0000,#e5e7eb 50%,#00b050);border-radius:4px;overflow:hidden}.sentiment-center{position:absolute;left:50%;top:0;bottom:0;width:2px;background:#94a3b8;z-index:1}.sentiment-fill{position:absolute;top:0;bottom:0;transition:width .5s ease}.sentiment-fill.positive{background:transparent;border-right:3px solid #0f172a;box-sizing:border-box}.sentiment-fill.negative{background:transparent;border-left:3px solid #0f172a;box-sizing:border-box}.sentiment-scale{display:flex;justify-content:space-between;font-size:10px;color:#94a3b8}.insights-suggestions{flex:1;min-height:0;margin:10px 12px 0;padding:10px 12px;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f;overflow-y:auto}.insights-suggestions ul{list-style:none;margin:0;padding:0}.insights-suggestions li{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.35;padding:8px 10px;margin-bottom:6px;background:#fffbeb;border-left:3px solid #f59e0b;border-radius:8px}.insights-suggestions li .material-symbols-outlined{font-size:16px;color:#d97706;margin-top:1px}.insights-transcription{flex:0 0 40%;min-height:0;margin:10px 12px 12px;padding:10px 12px;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f;display:flex;flex-direction:column}.transcript-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-right:2px}.transcript-line{max-width:88%;background:#f1f5f9;border-radius:12px 12px 12px 4px;padding:6px 10px;align-self:flex-start}.transcript-line.self{align-self:flex-end;background:#e0e7ff;border-radius:12px 12px 4px}.transcript-meta{font-size:10px;font-weight:600;color:#64748b;margin-bottom:1px}.transcript-text{font-size:12.5px;line-height:1.35}.contacts-header{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #f0f0f0;color:#111827!important}.modal-content .contacts-header{height:40px}.search-contacts-list{max-height:196px;overflow:auto;position:absolute;width:91%;background:white;z-index:1000;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;border-radius:0 10px 10px}.contant-body p{font-size:14px;color:#5f6061!important}.contacts-header .title{font-weight:600;color:#111827!important}.contacts-header .back,.contacts-header .search{color:#9aa0a6;cursor:pointer}.disabled{opacity:.5;pointer-events:none}.contacts-list{padding:8px 8px 12px;overflow-y:auto}.contact-item{display:flex;align-items:center;padding:10px 8px;border-radius:10px}.contact-item:hover{background:#f7f9fc}.contact-avatar{width:37px;height:37px;border-radius:50%;object-fit:cover;margin-right:12px}.contact-info{flex:1;min-width:0;overflow:hidden}.contact-name{font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.contact-title{font-size:12px;color:#6b7280}.contact-call-btn{display:inline-flex;align-items:center;gap:6px;background:#234de8;color:#fff;border:none;border-radius:16px;padding:8px;cursor:pointer}.contact-add-btn{background-color:#2ecc71!important}.conference-hold-contact{display:inline-flex;align-items:center;gap:5px;background:#727070;color:#fff;border:none;border-radius:50%;padding:7px;cursor:pointer}.conference-hold-contact.on-hold{background:#28a745!important;color:#fff}.user-info-section{width:100%;height:100%;overflow-y:auto;overflow-x:hidden!important}.user-info-section::-webkit-scrollbar{display:none}.toggle-btn{cursor:pointer}.text-container{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;transition:all .3s ease}.mute-incoming-row{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 10px}.mute-incoming-label{font-size:11px;color:#fff}.switch{position:relative;display:inline-block;width:38px;height:19px;flex-shrink:0}.switch-slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;border-radius:22px;transition:.3s}.close-info-panel-section{width:100%;height:20px}.close-info-panel-section .material-symbols-outlined{font-size:12px;cursor:pointer}.c2c-title{color:#fff;white-space:normal;word-break:break-word;line-height:1.4}.switch-slider:before{content:\"\";position:absolute;height:14px;width:15px;left:3px;bottom:3px;background-color:#fff;border-radius:50%;transition:.3s}.switch input:checked+.switch-slider{background-color:#2ecc71}.switch input:checked+.switch-slider:before{transform:translate(18px)}.text-container.expanded{-webkit-line-clamp:unset}.userName{font-family:FontAwesome}.subject-text{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.conference-contact{display:inline-flex;align-items:center;gap:5px;background:#e14e4e;color:#fff;border:none;border-radius:50%;padding:7px;cursor:pointer}.organizer-label{padding:1px 5px;font-size:11px;border-radius:10px;border:1px solid #a0a0a0;margin-top:2px;background:#fcfcfc;color:#000}.custom-modal{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);display:flex;align-items:center;z-index:10000001;border-radius:21px}.modal-content{background:#ffffff;padding:25px;border-radius:8px;width:350px;text-align:center}.title{margin-bottom:15px;color:#d9534f}.message{margin-bottom:20px}.button-group{display:flex;justify-content:space-between}.btn{padding:8px 15px;border:none;border-radius:5px;cursor:pointer;font-weight:500}.end-btn{background-color:#dc3545;color:#fff;display:flex;align-items:center;font-size:13px}.leave-btn{background-color:#007bff;color:#fff}.contact-call-btn .material-symbols-outlined{font-size:18px;color:#fff}.contact-call-btn .label{font-size:12px}.parallax>use{animation:move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite}.parallax>use:nth-child(1){animation-delay:-2s;animation-duration:7s}.parallax>use:nth-child(2){animation-delay:-3s;animation-duration:10s}.parallax>use:nth-child(3){animation-delay:-4s;animation-duration:13s}.parallax>use:nth-child(4){animation-delay:-5s;animation-duration:20s}@keyframes move-forever{0%{transform:translate3d(-90px,0,0)}to{transform:translate3d(85px,0,0)}}.animated-margin{transition:margin-top .5s ease}app-incoming-call{position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent;z-index:1001}.min-call-container{width:320px;height:124px;border-radius:20px;box-shadow:6px 6px 10px -1px #00000026,-5px -4px 10px -1px #00000026;display:flex;flex-direction:column;box-sizing:border-box;position:relative;overflow:hidden;margin:auto;align-items:center;padding:12px 16px;color:#fff}.min-call-animation{background:#fff;width:48px;height:48px;position:relative;margin:0 12px 0 auto;border-radius:100%;border:solid 2px #fff}.min-avatar-img{width:46px;height:46px;border-radius:100%;position:absolute;left:0;top:0}.border-radius-50{border-radius:50%}.min-callerDetails{color:#fff;display:flex;flex-direction:column;align-items:flex-start}.name{width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:20px;margin:0;color:#fff}.min-callerDetails p{margin:0;color:#fff}.min-btn-container{position:relative;display:flex;width:100%;justify-content:flex-start;align-items:center;margin-top:6px}.min-call-sec-btn{width:40px;height:40px;box-sizing:border-box;border:1px solid #cccbcb;background-color:transparent;border-radius:20px;display:flex;align-items:center;justify-content:center;margin-right:12px;box-shadow:6px 6px 10px -1px #bebebe26,-5px -4px 10px -1px #d2d2d226}.min-call-sec-btn span{color:#cccbcb}.min-call-btn{width:40px;height:40px;border-radius:20px;box-sizing:border-box;border:2px solid white;display:flex;align-items:center;justify-content:center}.fullscreen{position:absolute;right:18px;top:14px;color:#e8e8e8;font-size:18px;cursor:pointer}.btn-container{display:flex;flex-wrap:wrap;padding:0 24px}.dial-btn{width:40px;height:40px;background-color:transparent;text-align:center;box-sizing:border-box;margin:4px 25px;font-size:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:Lato,sans-serif;font-weight:900;font-style:normal;color:#b5b5b5;cursor:pointer}.btn-albhabets{font-family:Lato,sans-serif;font-size:12px;font-weight:400}.min-timer{width:50px;font-size:18px;margin-right:10px;border-radius:4px;height:35px;display:flex;align-items:center}.record-action-btns{display:flex;flex-direction:column;align-items:center;margin-top:35px}.record-btn-container{position:relative}.record-btn{border:none;border-radius:50%;width:50px;height:50px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin:0 5px;position:relative;overflow:hidden}.record-btn.start-stop .recording-icon{width:50%;height:50%;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.record-btn.start-stop.recording .recording-icon{background-color:#000}.record-btn.start-stop.recording{border:3px solid #000}.record-btn.start-stop.stopped .recording-icon{background-color:red;border:3px solid #ff0000;border-radius:50%;position:absolute}.record-btn.start-stop.stopped{border:3px solid #ff0000}.record-btn.start-stop.stopped .recording-icon{width:40%;height:40%;border-radius:0;background-color:red}.pause-resume-btns{display:flex;flex-direction:column;align-items:center;margin-top:10px}.record-btn.pause-resume{border:none;border-radius:50%;width:50px;height:50px;background:white;display:flex;align-items:center;justify-content:center;margin:5px 0}.record-btn.pause-resume .material-symbols-outlined{font-size:20px;color:#000}.timer-display{font-size:1.2em;margin-top:10px;color:#000}.w-40{width:40%}.w-60{width:60%}.callToNum{color:#fff;font-weight:400;text-align:center}.callToNum span{font-weight:600}.conference-call-view{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;padding:12px 16px 35px;color:#fff;height:100%}.conf-heading{display:flex;align-items:center;gap:8px;margin-top:45px}.conf-icon{color:#4579aa;font-size:32px;width:50px;height:50px;border:1px solid gray;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e1e1e1}.conf-title{font-weight:600;font-size:20px}.conf-name{margin-top:10px;font-size:17px;font-weight:600;text-align:center}.conf-timer{margin-top:4px;font-size:12px;opacity:.9}.conf-record{margin-top:14px}.record-stop-btn{width:44px;height:44px;border-radius:50%;border:none;background:#fff;display:flex;align-items:center;justify-content:center}.record-stop-btn .material-symbols-outlined{color:#e14e4e;font-size:28px}.conf-remove{margin-top:8px}.remove-btn{background:#ff0000!important;color:#fff;border:none;border-radius:6px;padding:6px 12px;font-size:12px;width:82px!important;height:auto}.conf-actions{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:18px}.circle-btn{width:56px;height:56px;border-radius:50%;border:none;background:#000;display:flex;align-items:center;justify-content:center}.circle-btn .material-symbols-outlined{color:#fff;font-size:24px}.circle-btn.active{opacity:.85}.conf-end{margin-top:16px}.circle-btn.danger{background:#e14e4e}.circle-btn.danger .material-symbols-outlined{color:#fff}.warning-modal{background:white;width:360px;border-radius:18px;padding:24px;text-align:center;box-shadow:0 10px 30px #00000040}.warning-icon{margin-bottom:12px}.warning-icon .material-symbols-outlined{font-size:48px;color:#f59e0b}.warning-modal h3{margin-bottom:12px;font-size:20px;font-weight:600;color:#111827!important}.warning-modal p{color:#555!important;font-size:14px;line-height:1.5;margin-bottom:24px}.warning-modal p strong{color:#111827!important}.warning-actions{display:flex;justify-content:center;gap:12px}.cancel-btn,.proceed-btn{border:none;padding:10px 18px;border-radius:8px;cursor:pointer;font-weight:600}.cancel-btn{background:#e5e7eb;color:#111827}.proceed-btn{background:#234de8;color:#fff}.time-picker-24hr{display:flex;align-items:center;gap:4px}.time-sep{font-weight:700;font-size:16px;color:#333}.custom-time-select{position:relative;width:58px;-webkit-user-select:none;user-select:none}.custom-time-select.disabled-picker{opacity:.45;pointer-events:none}.custom-time-display{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;border:1px solid #ced4da;border-radius:4px;background:#fff;font-size:13px;cursor:pointer;white-space:nowrap;color:#333!important}.custom-time-display:hover{border-color:#234de8}.picker-arrow{font-size:9px;margin-left:4px;color:#666}.custom-time-options{position:fixed;background:#fff;border:1px solid #ced4da;border-radius:4px;max-height:160px;overflow-y:auto;z-index:99999999;min-width:58px;box-shadow:0 4px 12px #00000026}.custom-time-option{padding:5px 10px;font-size:13px;cursor:pointer;text-align:center;color:#333}.custom-time-option:hover{background:#e8eeff;color:#234de8}.custom-time-option.selected{background:#234de8;color:#fff;font-weight:600}.dialpad-alerts{position:absolute;left:50%;transform:translate(-50%);width:calc(100% - 32px);z-index:9999999}.normal-call-alert{top:78px}.conference-alert{top:145px}.dialbox-pop1{background:#dff6dd!important;color:#1d4d1d!important;border-radius:10px;padding:10px 14px;font-size:14px;box-shadow:0 4px 12px #00000040;border:1px solid #b7dfc3}.btn-disc{border:none;background:transparent;color:#6b7280!important;font-size:13px;font-weight:500}.connecting-overlay{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px 0 24px}.connecting-text{color:#ffffffe6;font-size:15px;font-weight:500;letter-spacing:.5px;margin:0}.connecting-dots{display:flex;gap:8px;align-items:center}.connecting-dots span{display:inline-block;width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.85);animation:connecting-bounce 1.2s infinite ease-in-out}.connecting-dots span:nth-child(1){animation-delay:0s}.connecting-dots span:nth-child(2){animation-delay:.2s}.connecting-dots span:nth-child(3){animation-delay:.4s}@keyframes connecting-bounce{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1.2);opacity:1}}.connecting-wrapper{display:flex;align-items:center;font-size:13px;color:#4caf50;margin-top:4px;font-weight:500}.participant-list-title,.onHold-text{color:#000}.ringing-text,.onHold-text{margin-right:2px;font-size:11px}.held-actions .connecting-wrapper{color:#fff}.dots span{animation:blink 1.4s infinite;opacity:0;font-size:16px}.dots span:nth-child(1){animation-delay:0s}.dots span:nth-child(2){animation-delay:.2s}.dots span:nth-child(3){animation-delay:.4s}@keyframes blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.loader-wrapper.outgoing-call-loader{position:absolute;inset:0;z-index:100;display:flex;align-items:center;justify-content:center}.panel-loader-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#ffffffb3;display:flex;justify-content:center;align-items:center;z-index:10000009}.settings-icon{cursor:pointer;font-size:24px;color:#555;position:relative;top:5px;right:2px}.settings-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:1000001;display:flex;align-items:flex-start;justify-content:flex-end}.settings-drawer{background:#fff;width:100%;max-width:100%;height:100%;padding:1.5rem 1rem;overflow-y:auto;box-sizing:border-box;transform:translate(100%);animation:slideInFromRight .3s forwards}@keyframes slideInFromRight{to{transform:translate(0)}}.settings-header{display:flex;justify-content:space-between;align-items:center;font-size:1.2rem;font-weight:600;padding-bottom:.75rem;border-bottom:1px solid #eee}.settings-header span:first-child{cursor:pointer}.settings-body{margin-top:1.5rem}.setting-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0;gap:1rem}.setting-label{flex:1}.setting-label span{font-weight:500}.setting-label svg{width:15px;height:15px;color:#393939;flex-shrink:0}.setting-label small{display:block;font-size:.75rem;color:#666;margin-top:.15rem}.setting-group h6{font-weight:600;color:#888;font-size:.75rem;letter-spacing:.5px;margin:1rem 0 .5rem}hr{margin:.5rem 0;border-color:#f0f0f0}.switch{position:relative;display:inline-block;width:44px;height:24px;flex-shrink:0}.switch input{opacity:0;width:0;height:0}.switch-slider{position:absolute;cursor:pointer;inset:0;background:#ccc;border-radius:24px;transition:.3s}.switch-slider:before{content:\"\";position:absolute;height:18px;width:18px;left:3px;bottom:3px;background:white;border-radius:50%;transition:.3s}.switch input:checked+.switch-slider{background:#007bff}.switch input:checked+.switch-slider:before{transform:translate(20px)}.suggestion-meta{display:flex;align-items:center;gap:6px;margin-bottom:2px}.suggestion-time{font-size:10px;font-weight:600;color:#94a3b8}.suggestion-new{margin-left:auto;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#fff;background:#f59e0b;border-radius:8px;padding:1px 7px}.insights-suggestions li.coaching .suggestion-new{background:#4f46e5}.insights-suggestions li.older{opacity:.6;background:#f8fafc;border-left-color:#cbd5e1}.insights-suggestions li.older .material-symbols-outlined{color:#94a3b8}.insights-suggestions li.latest{opacity:1;font-weight:600;background:#fef3c7;border-left-width:4px;box-shadow:0 2px 8px #f59e0b40}.insights-suggestions li.coaching.latest{background:#e0e7ff;box-shadow:0 2px 8px #6366f140}.insights-suggestions li.coaching.older{background:#f8fafc;border-left-color:#cbd5e1}.insights-section.insights-suggestions,.insights-fs-card.insights-suggestions{display:flex;flex-direction:column;overflow:hidden}.suggestion-list{flex:1;min-height:0;overflow-y:auto;scroll-behavior:smooth;padding-right:2px}\n"], dependencies: [{ kind: "directive", type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i7.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i8.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i8.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i8.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i8.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i7.DecimalPipe, name: "number" }] });
|
|
5452
5471
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CallProgressComponent, decorators: [{
|
|
5453
5472
|
type: Component,
|
|
5454
|
-
args: [{ selector: 'lib-call-progress', template: "<div class=\"d-flex\">\n <div class=\"call-container\" *ngIf=\"!isMinimised && currentCallList?.length\"\n [ngClass]=\"{'collops': isCollops, 'incoming-call-container': isClickExpand, 'contacts-open': showContactsPanel }\">\n <div class=\"loader-wrapper outgoing-call-loader\"\n *ngIf=\"showNewCallLoader\">\n <div class=\"active-call\" style=\"display: flex; flex-direction: column; position: relative;\">\n <div class=\"call-animation call-animation-play\">\n <img class=\"avatar-img\" [src]=\"newCallLoaderData?.img || 'assets/images/user.jpg'\" alt=\"\" />\n </div>\n <div class=\"callerDetails\">\n <h1 style=\"margin-top: 8px;\">Connecting...</h1>\n <p style=\"text-transform: capitalize;\">{{ newCallLoaderData?.name || newCallLoaderData?.phone || 'Unknown' }}</p>\n </div>\n \n <div class=\"call-action-btns\">\n <div class=\"d-flex justify-content-center\">\n <button class=\"call-btn end-call-btn\" disabled (click)=\"endCall()\" style=\"visibility: hidden;\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"dialpad-alerts\"\n [ngClass]=\"{\n 'conference-alert': isConference && currentCall?.isConference,\n 'normal-call-alert': !isConference\n }\" *ngIf=\"callNumberToast.show\">\n <div class=\"dialbox-pop1 alert fade show\"\n [ngClass]=\"callNumberToast.type\"\n role=\"alert\">\n <div class=\"d-flex justify-content-between align-items-center\">\n <div class=\"flex-grow-1 text-left\">\n You'r calling\n <strong>{{callNumberToast.displayNum}}</strong>\n </div>\n <div class=\"text-right\">\n <button class=\"btn btn-link btn-disc p-0 px-1\" (click)=\"cancelCallToast()\"> Cancel Call </button>\n </div>\n </div>\n </div>\n </div>\n <!-- All type Call Hold list -->\n <div class=\"held-call-banner\"\n *ngIf=\"(currentCallList.length > 1 && !!currentCall && ((isConferenceCallHold || isConference) || !isConference)) || !isAllAccepted\">\n <ng-container *ngFor=\"let conf of currentCallList\">\n <div class=\"held-call-content\" *ngIf=\"!conf?.isAcceptCall && currentCallList.length > 1 && deviceNumberList.includes(conf?.to) && conf?.isNotification\"\n [ngClass]=\"{'held-call-selected': selectedUserInfo?.participantId && selectedUserInfo?.participantId === conf?.participantId}\"\n (click)=\"conf?.businessNumber ? toggleC2CInfoPanel(conf) : null\"\n [ngStyle]=\"{'cursor': conf?.businessNumber ? 'pointer' : 'default'}\">\n <div class=\"held-info\">\n <div class=\"img\">\n <img class=\"avatar-img-wrapper border-radius-50\" [src]=\"conf?.img || 'assets/images/user.jpg'\" alt=\"\" width=\"35\" height=\"35\" />\n </div>\n <div class=\"held-caller\" *ngIf=\"!conf?.businessNumber\">\n <span class=\"held-label\">{{conf?.from}}</span>\n <span class=\"held-name\">{{conf?.fromName}}</span>\n </div>\n <div class=\"held-caller\" *ngIf=\"conf?.businessNumber\">\n <span class=\"held-main-label\">Call from C2C:</span>\n <span class=\"held-label\" ><span [title]=\"conf?.sourceName\">{{ truncateText(conf?.sourceName, 10) }}</span>|\n <span [title]=\"conf?.pointName\">{{ truncateText(conf?.pointName, 10) }}</span></span>\n <span class=\"held-label\">{{ truncateText(conf?.name, 26) }}</span>\n </div>\n </div>\n <div class=\"held-actions\">\n <ng-container *ngIf=\"isConnectingIncomingCallId == conf?.id\">\n <div class=\"connecting-wrapper mr-2\">\n <span class=\"ringing-text\">Connecting</span>\n <span class=\"dots\">\n <span>.</span>\n <span>.</span>\n <span>.</span>\n </span>\n </div>\n </ng-container>\n <button class=\"conference-hold-contact receive-btn\" (click)=\"waitingCallAccept(conf)\" [disabled]=\"isConnecting || isIncomingCallBtnDisable\" *ngIf=\"isConnectingIncomingCallId !== conf?.id\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n <button class=\"conference-contact\">\n <span class=\"material-symbols-outlined\" title=\"Call End\" (click)=\"onRejectCall(conf); $event.stopPropagation();\"> call_end </span>\n </button>\n <div *ngIf=\"conf?.businessNumber\" class=\"togglearrow-arrow me-2\" id=\"togglearrow\" (click)=\"toggleC2CInfoPanel(conf)\">\n <i class=\"fa fa-info\"></i>\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container *ngFor=\"let conf of conferenceCallList\">\n <div class=\"held-call-content\" *ngIf=\"(conf?.isConferenceHold || (showNewCallLoader && isConferenceCallHold)) && (conferenceCallList.length > 1 || showNewCallLoader)\"\n [ngClass]=\"{'held-call-selected': conf?.isBusinessNumber && selectedUserInfo?.participantId === conf?.businessParticipantId && isClickExpand}\"\n (click)=\"conf?.isBusinessNumber ? toggleC2CInfoPanel(conf) : null\"\n [ngStyle]=\"{'cursor': conf?.isBusinessNumber ? 'pointer' : 'default'}\">\n <div class=\"held-info\">\n <span class=\"material-symbols-outlined hold-icon\">pause_circle</span>\n <div class=\"held-caller\">\n <span class=\"held-label\">Hold</span>\n <span class=\"held-name\">{{conf?.callLabel}}</span>\n </div>\n </div>\n <div class=\"held-actions\">\n <button class=\"conference-hold-contact\" [ngClass]=\"{ 'on-hold': conf?.isConferenceHold }\"\n (click)=\"swapCalls(conf,true)\" [disabled]=\"isHoldBtnDisable\">\n <span *ngIf=\"conf?.isConferenceHold\" class=\"material-symbols-outlined\" [title]=\"'Resume'\"> resume </span>\n </button>\n <button class=\"conference-contact\" (click)=\"endConfereneceCall(conf); $event.stopPropagation();\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n <div class=\"togglearrow-arrow me-2\" id=\"togglearrow\" (click)=\"toggleContactsPanel(conf)\">\n <i class=\"fa fa-angle-right\"></i>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n\n <!-- For single incoming call -->\n <div class=\"h-100 py-5\" style=\"display: flex; flex-direction: column;\"\n *ngIf=\"currentCallList.length === 1 && currentCallList[0]?.isIncomingCall && !currentCallList[0]?.isAcceptCall\">\n <!-- <div class=\"callToNum\">Incoming call on <br /><span>{{currentCallList[0]?.to || 'Unknown Number'}}</span>\n </div> -->\n <div class=\"callToNum\">\n <ng-container *ngIf=\"currentCallList[0]?.businessNumber; else normalCall\">\n C2C CALL\n <br />\n <span> From : {{ currentCallList[0]?.sourceName }} | {{ currentCallList[0]?.pointName }} </span>\n </ng-container>\n\n <ng-template #normalCall>\n Incoming call on\n <br />\n <span>{{ currentCallList[0]?.to || 'Unknown Number' }}</span>\n </ng-template>\n </div>\n <div class=\"call-animation\" [ngClass]=\"{'call-animation-play': showRingAnimation}\">\n <img class=\"avatar-img\" [src]=\"incomingFromImage || 'assets/images/user.jpg'\" alt=\"\" width=\"120\" />\n </div>\n <div class=\"callerDetails\" *ngIf=\"!currentCallList[0]?.businessNumber\">\n <h1>{{ currentCallList[0]?.name ? currentCallList[0]?.name : currentCallList[0]?.phone || 'Unknown Number' }}</h1>\n <p *ngIf=\"!!currentCallList[0]?.name\">{{ currentCallList[0]?.phone }}</p>\n </div>\n <div class=\"callerDetails\" *ngIf=\"currentCallList[0]?.businessNumber\">\n <p *ngIf=\"!!currentCallList[0]?.name\">{{ truncateText(currentCallList[0]?.name, 45) }}</p>\n <p >{{ currentCallList[0]?.number }}</p>\n </div>\n <!-- Connecting overlay (shown after accept btn click, hidden on API response) -->\n <div class=\"connecting-overlay mt-auto\" *ngIf=\"isConnectingIncomingCallId == currentCallList[0]?.id\">\n <div class=\"connecting-dots\">\n <span></span><span></span><span></span>\n </div>\n <p class=\"connecting-text\">Connecting...</p>\n </div>\n\n <div class=\"call-action-btns mt-auto\" *ngIf=\"isConnectingIncomingCallId != currentCallList[0]?.id\">\n <button class=\"call-btn receive-btn\" *ngIf=\"!newIncomingCallsList[0]?.isCallConnected\"\n [disabled]=\"isIncomingCallBtnDisable\" (click)=\"acceptIncomingCall(currentCallList[0])\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n <button class=\"call-btn reject-btn\">\n <span class=\"material-symbols-outlined\" (click)=\"onRejectCall(currentCallList[0])\"> call_end </span>\n </button>\n </div>\n </div>\n\n <!-- For single active call -->\n <div *ngIf=\"(!isConference || isConferenceCallHold) && (!!currentCall?.id && !currentCall?.isConference) && currentCall?.isAcceptCall\"\n [ngStyle]=\"{'display': 'flex', 'flex-direction': 'column', 'position': 'relative'}\" class=\"active-call\">\n <div *ngIf=\"currentCall?.businessNumber;\" class=\"callToNum\">\n C2C CALL\n <br />\n <span> From : {{ currentCall?.userInfoId?.sourceName }} | {{ currentCall?.userInfoId?.pointName }} </span>\n </div>\n <div class=\"call-animation\" [ngClass]=\"{'call-animation-play': showRingAnimation}\">\n <img class=\"avatar-img\" *ngIf=\"!currentCall?.client\"\n [src]=\"currentCall?.direction == 'outgoing-call' ? currentCall?.toImage || 'assets/images/user.jpg' : currentCall?.fromImage || 'assets/images/user.jpg'\" alt=\"\" />\n <img class=\"avatar-img\" *ngIf=\"currentCall?.client\"\n [src]=\"currentCall?.direction == 'outgoing-call' ? currentCall?.fromImage || 'assets/images/user.jpg' : currentCall?.toImage || 'assets/images/user.jpg'\" alt=\"\" />\n </div>\n <div class=\"callerDetails\">\n <!-- C2C Business Call -->\n <ng-container *ngIf=\"currentCall?.businessNumber; else normalCall\">\n <h1>{{ currentCall?.userInfoId?.name || 'Unknown' }}</h1>\n <p>{{ currentCall?.userInfoId?.number || currentCall?.from || 'Unknown' }}</p>\n </ng-container>\n\n <!-- Normal Call -->\n <ng-template #normalCall>\n <h1 *ngIf=\"!currentCall?.client\"\n [ngStyle]=\"{'margin-top': showKeypad ? '0':'8px'}\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.toName || outgoingContactName || 'Unknown'\n : currentCall?.fromName || 'Unknown' }}\n </h1>\n <h1 *ngIf=\"currentCall?.client\"\n [ngStyle]=\"{'margin-top': showKeypad ? '0':'8px'}\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.fromName || 'Unknown'\n : currentCall?.toName || outgoingContactName || 'Unknown' }}\n </h1>\n <p *ngIf=\"!currentCall?.client\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.to\n : currentCall?.from }}\n </p>\n <p *ngIf=\"currentCall?.client\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.from\n : currentCall?.to }}\n </p>\n </ng-template>\n <!-- <h1 *ngIf=\"!currentCall?.client\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '8px'}\">{{currentCall?.direction == 'outgoing-call' ? currentCall?.toName || outgoingContactName || 'Unknown' :\n currentCall?.fromName || 'Unknown'}}</h1>\n <h1 *ngIf=\"currentCall?.client\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '8px'}\">{{currentCall?.direction == 'outgoing-call' ? currentCall?.fromName || 'Unknown' :\n currentCall?.toName || 'Unknown'}}</h1>\n <p *ngIf=\"!currentCall?.client\">{{ currentCall?.direction == 'outgoing-call' ? currentCall?.to || 'Unknown' : currentCall?.from || 'Unknown'}}</p>\n <p *ngIf=\"currentCall?.client\">{{ currentCall?.direction == 'outgoing-call' ? currentCall?.from || 'Unknown' : currentCall?.to || 'Unknown'}}</p> -->\n <h4 style=\"margin-top: 4px\">{{ timer}}</h4>\n </div>\n <div class=\"record-action-btns\" *ngIf=\"!showKeypad\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '20px'}\">\n <div class=\"record-btn-container\">\n <button class=\"record-btn start-stop\" *ngIf=\"!isRecording\"\n [ngClass]=\"{'recording': isRecording, 'stopped': !isRecording, 'disabled': userSettingInfo?.callRecording == 'N'}\" (click)=\"toggleRecording()\"\n [title]=\"isRecording ? 'Stop Recording' : 'Start Recording'\" [disabled]=\"!currentCall?.isAcceptCall || userSettingInfo?.callRecording == 'N'\">\n <span class=\"recording-icon\"></span>\n </button>\n <div class=\"pause-resume-btns\">\n <button class=\"record-btn pause-resume\" *ngIf=\"isRecording && !isPaused\" (click)=\"pauseRecording()\">\n <span class=\"material-symbols-outlined\"> pause </span>\n </button>\n <button class=\"record-btn pause-resume\" *ngIf=\"isPaused\" (click)=\"resumeRecording()\">\n <span class=\"material-symbols-outlined\"> play_arrow </span>\n </button>\n </div>\n </div>\n <div *ngIf=\"isRecording\" class=\"timer-display\">\n {{ getFormattedTime() }}\n </div>\n </div>\n <!-- Mute/unmute incoming call -->\n <div class=\"mute-incoming-row\" *ngIf=\"currentCall?.isAcceptCall && !showKeypad\">\n <span class=\"mute-incoming-label\">Mute incoming calls</span>\n <label class=\"switch mb-0\" title=\"Silence the ringtone of new incoming calls during this call\">\n <input type=\"checkbox\" [checked]=\"twilioService.isIncomingMuted\" (change)=\"toggleMuteIncomingCall()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div *ngIf=\"showKeypad\" class=\"sendDigit\">\n <input type=\"text\" name=\"call-inputs\" id=\"call-input\" [(ngModel)]=\"callInput\" (keyup)=\"onCallInputEnter($event)\">\n <span class=\"material-symbols-outlined input-clear-btn\" *ngIf=\"callInput\" (click)=\"clearInputs()\">close_small</span>\n </div>\n <div class=\"btn-container justify-content-center\" *ngIf=\"showKeypad\">\n <div class=\"key-btn\" *ngFor=\"let key of keypadVal\" (click)=\"onCallInputs(key.num)\">\n {{key.num}}\n <span class=\"btn-albhabets\">{{key.text ? key.text : ' '}}</span>\n </div>\n </div>\n\n <div class=\"call-action-btns\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '723x'}\">\n <div class=\"flex align-items-center justify-content-evenly mb-3\">\n <button class=\"call-sec-btn mr-3\" [disabled]=\"!currentCall?.isAcceptCall || !canSelfToggleMute()\" [title]=\"selfMuteTooltip()\" (click)=\"toggleMute()\">\n <span class=\"material-symbols-outlined\" *ngIf=\"isSelfEffectivelyMuted()\"> mic_off </span>\n <span class=\"material-symbols-outlined\" *ngIf=\"!isSelfEffectivelyMuted()\"> mic </span>\n </button>\n <button class=\"call-sec-btn mr-3\" [disabled]=\"!currentCall?.isAcceptCall\">\n <span class=\"material-symbols-outlined\" (click)=\"toggleKeypad()\"> transition_dissolve\n </span>\n </button>\n <button class=\"call-sec-btn mr-3\" [disabled]=\"!currentCall?.isAcceptCall\"\n (click)=\"toggleContactsPanel(currentCall)\">\n <span class=\"material-symbols-outlined\"> groups_2 </span>\n </button>\n <button class=\"call-sec-btn\" title=\"Call Insights\" [disabled]=\"!currentCall?.isAcceptCall\"\n [ngClass]=\"{'active': showInsightsPanel}\" (click)=\"toggleInsightsPanel()\">\n <span class=\"material-symbols-outlined\"> insights </span>\n </button>\n </div>\n <div>\n <button class=\"call-btn end-call-btn\" [disabled]=\"!currentCall?.isAcceptCall\" (click)=\"endCall(false, currentCall)\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n </div>\n </div>\n\n <!-- conference call view -->\n <div class=\"conference-call-view\" *ngIf=\"isConference\">\n <div class=\"conf-heading\">\n <span class=\"conf-icon material-symbols-outlined\"> groups </span>\n <span class=\"conf-title\">{{currentConferenceCall?.callLabel || 'Conference Call'}}</span>\n </div>\n <div class=\"scroll-container\">\n <div class=\"scroll-text conf-name\">\n <ng-container *ngFor=\"let call of currentCallList; let i = index\">\n <ng-container *ngIf=\"!call?.isConferenceHold\">\n <span *ngIf=\"shouldShowSeparator(i)\"> & </span>\n <span *ngIf=\"call?.client\">\n <ng-container *ngIf=\"!isSelfNumber(call) else selfNumber\">\n <span>{{call?.direction == 'outgoing-call' ? call?.fromName || call?.from :\n call?.toName || call?.to}}</span>\n </ng-container>\n <ng-template #selfNumber>\n <span>You</span>\n </ng-template>\n </span>\n <span *ngIf=\"!call?.client\">{{call?.direction == \"outgoing-call\" ? call?.toName || call?.to : call?.fromName || call?.from || 'Unknown number'}}</span>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <div class=\"conf-timer\">{{ currentConferenceCall?.timer || timer }}</div>\n <div class=\"record-action-btns mt-auto\" *ngIf=\"!showKeypad\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '20px'}\">\n <div class=\"record-btn-container\" >\n <button class=\"record-btn start-stop\" *ngIf=\"!isRecording\" [disabled]=\"userSettingInfo.callRecording == 'N'\"\n [ngClass]=\"{'recording': isRecording, 'stopped': !isRecording, 'disabled': userSettingInfo?.callRecording == 'N'}\" (click)=\"toggleRecording()\"\n [title]=\"isRecording ? 'Stop Recording' : 'Start Recording'\">\n <span class=\"recording-icon\"></span>\n </button>\n <div class=\"pause-resume-btns\">\n <button class=\"record-btn pause-resume\" *ngIf=\"isRecording && !isPaused\" (click)=\"pauseRecording()\">\n <span class=\"material-symbols-outlined\"> pause </span>\n </button>\n <button class=\"record-btn pause-resume\" *ngIf=\"isPaused\" (click)=\"resumeRecording()\">\n <span class=\"material-symbols-outlined\"> play_arrow </span>\n </button>\n </div>\n </div>\n <div *ngIf=\"isRecording\" class=\"timer-display\">\n {{ getFormattedTime() }}\n </div>\n </div>\n <!-- Mute/unmute incoming call -->\n <div class=\"mute-incoming-row\" *ngIf=\"currentCall?.isAcceptCall && !showKeypad\">\n <span class=\"mute-incoming-label\">Mute incoming calls</span>\n <label class=\"switch mb-0\" title=\"Silence the ringtone of new incoming calls during this call\">\n <input type=\"checkbox\" [checked]=\"twilioService.isIncomingMuted\" (change)=\"toggleMuteIncomingCall()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div *ngIf=\"showKeypad\" class=\"sendDigit mt-2\">\n <input type=\"text\" name=\"call-inputs\" id=\"call-input\" [(ngModel)]=\"callInput\" (keyup)=\"onCallInputEnter($event)\">\n <span class=\"material-symbols-outlined input-clear-btn\" *ngIf=\"callInput\" (click)=\"clearInputs()\">close_small</span>\n </div>\n <div class=\"btn-container justify-content-center\" *ngIf=\"showKeypad\">\n <div class=\"key-btn\" *ngFor=\"let key of keypadVal\" (click)=\"onCallInputs(key.num)\">\n {{key.num}}\n <span class=\"btn-albhabets\">{{key.text ? key.text : ' '}}</span>\n </div>\n </div>\n <div class=\"conf-actions\">\n <button class=\"circle-btn\" [ngClass]=\"{'active': isSelfEffectivelyMuted()}\" [disabled]=\"!canSelfToggleMute()\" [title]=\"selfMuteTooltip()\" (click)=\"toggleMute(true)\">\n <span class=\"material-symbols-outlined\"> {{ isSelfEffectivelyMuted() ? 'mic_off' : 'mic' }} </span>\n </button>\n <button class=\"circle-btn\" (click)=\"toggleKeypad()\">\n <span class=\"material-symbols-outlined\"> transition_dissolve </span>\n </button>\n <button class=\"circle-btn\" (click)=\"toggleContactsPanel(currentCall)\">\n <span class=\"material-symbols-outlined\"> groups_2 </span>\n </button>\n <button class=\"circle-btn\" title=\"Call Insights\" [ngClass]=\"{'active': showInsightsPanel}\" (click)=\"toggleInsightsPanel()\">\n <span class=\"material-symbols-outlined\"> insights </span>\n </button>\n </div>\n <div class=\"conf-end\">\n <button class=\"circle-btn danger\" (click)=\"endConfereneceCall(currentConferenceCall?.participants[0])\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n </div>\n\n <div class=\"wave-container\">\n <svg class=\"waves\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 24 150 28\" preserveAspectRatio=\"none\" shape-rendering=\"auto\">\n <defs>\n <path id=\"gentle-wave\"\n d=\"M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z\" />\n </defs>\n <g class=\"parallax\">\n <use xlink:href=\"#gentle-wave\" x=\"48\" y=\"0\" fill=\"rgba(255,255,255,0.7)\" />\n <use xlink:href=\"#gentle-wave\" x=\"48\" y=\"3\" fill=\"rgba(255,255,255,0.5)\" />\n <use xlink:href=\"#gentle-wave\" x=\"48\" y=\"7\" fill=\"#fff\" />\n </g>\n </svg>\n </div>\n </div>\n\n <!-- Incoming call user details shown in model -->\n <div class=\"call-container-model p-3 text-white model-content call-container\" *ngIf=\"isClickExpand\">\n <div class=\"close-info-panel-section\">\n <div class=\"d-flex justify-content-between\" *ngIf=\"currentConferenceCall?.conferenceId != selectedUserInfo?.conferenceId && newIncomingCallsList?.length > 1\">\n <p></p>\n <span class=\"material-symbols-outlined dial-close-btn \" (click)=\"onCloseC2CInfoPanel()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"\n fill=\"#ffffff\">\n <path\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" />\n </svg>\n </span>\n </div>\n </div>\n <div class=\"mb-2 user-info-section\">\n <div class=\"text-center my-3\">\n <h3 class=\"text-white\">C2C CALL : {{selectedUserInfo?.sourceName}} | {{selectedUserInfo?.pointName}}</h3>\n </div>\n <div class=\"mb-3\">\n <h5 class=\"text-white mb-1\">Name:</h5>\n <h4 class=\"text-white userName\">{{selectedUserInfo?.name}}</h4>\n </div>\n <div class=\"f-13\">\n <div class=\"row mb-3\">\n <div class=\"col-6 mb-2\">\n <div class=\"mb-1\">Extension:</div>\n <div class=\"ml-2\">{{selectedUserInfo?.extension}}</div>\n </div>\n <div class=\"col-6 mb-2\">\n <div class=\"mb-1\">Number:</div>\n <div class=\"\">{{selectedUserInfo?.number}}</div>\n </div> \n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 mb-2\">\n <div class=\"me-2\">Email: </div>\n <div>{{selectedUserInfo?.email}}</div>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 mb-2\">\n <div class=\"me-2\">Subject:</div>\n <div class=\"ml-2 subject-text\" title=\"{{selectedUserInfo?.subject}}\">\n {{selectedUserInfo?.subject}}</div>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 mb-2\">\n <div class=\"me-2 mb-1\">Image:</div>\n <div class=\"text-ellipsis\">\n <ng-container\n *ngIf=\"selectedUserInfo?.image && selectedUserInfo?.image !== '-'; else noImage\">\n <img src=\"{{selectedUserInfo?.image}}\" alt=\"\" width=\"150\" class=\"ml-2\" />\n </ng-container>\n <ng-template #noImage>\n <span class=\"ml-2\">No Image Available</span>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\" mb-4\">\n <div class=\"\">\n <div class=\"mb-1\">Message:</div>\n <div>\n <div class=\"text-container\" [class.expanded]=\"isExpanded\">{{selectedUserInfo?.message}}\n </div>\n <small class=\"toggle-btn\" *ngIf=\"showButton\" (click)=\"toggleText()\">{{ isExpanded ? 'See\n less' : 'See more' }}</small>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- call insights panel (live data from ClearCall via ClearCallLiveService) -->\n <div class=\"insights-panel\" [ngClass]=\"{'with-contacts': showContactsPanel}\"\n *ngIf=\"showInsightsPanel && !insightsFullscreen && !isMinimised && currentCallList?.length && !showNewCallLoader\">\n <div class=\"insights-header\">\n <span>\u2728 Call Insights</span>\n <span class=\"insights-header-actions\">\n <span class=\"material-symbols-outlined insights-close\" title=\"Full screen\" (click)=\"toggleInsightsFullscreen()\">fullscreen</span>\n <span class=\"material-symbols-outlined insights-close\" (click)=\"toggleInsightsPanel()\">close</span>\n </span>\n </div>\n\n <!-- Live sentiment -->\n <div class=\"insights-section insights-sentiment\" *ngIf=\"clearCallLive.features.liveSentiment; else sentimentOff\">\n <div class=\"sentiment-title\">\n <span>Live Sentiment</span>\n <span class=\"sentiment-value\" *ngIf=\"hasSentiment; else noSentiment\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\">\n {{ insightsSentimentLabel }} \u00B7 {{ clearCallLive.sentimentScore | number:'1.0-0' }}\n </span>\n <ng-template #noSentiment><span class=\"sentiment-value neutral\">\u2014</span></ng-template>\n </div>\n <div class=\"sentiment-bar\">\n <div class=\"sentiment-center\"></div>\n <div class=\"sentiment-fill\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\"\n [ngStyle]=\"insightsSentiment >= 0\n ? {'left': '50%', 'width': (insightsSentiment / 2) + '%'}\n : {'right': '50%', 'width': (-insightsSentiment / 2) + '%'}\"></div>\n </div>\n <div class=\"sentiment-scale\"><span>Negative</span><span>Positive</span></div>\n </div>\n <ng-template #sentimentOff>\n <div class=\"insights-section insights-sentiment\">\n <div class=\"sentiment-title\"><span>Live Sentiment</span></div>\n <ng-container *ngTemplateOutlet=\"featureOff; context: {$implicit: 'Live Sentiment'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- Say Next + AI Suggestion -->\n <ng-container *ngIf=\"clearCallLive.features.contextualResponse; else suggestionsOff\">\n <div class=\"insights-section insights-suggestions\" *ngFor=\"let sec of insightsSections; trackBy: trackByKey\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>{{ sec.title }}</div>\n <ul>\n <li *ngFor=\"let s of sec.items; trackBy: trackById\" [ngClass]=\"s.kind\">\n <span class=\"material-symbols-outlined\">{{ sec.icon }}</span>\n <div>\n <span class=\"suggestion-signal\" *ngIf=\"s.signal\">{{ s.signal }}</span>\n {{ s.text }}\n </div>\n </li>\n </ul>\n <div class=\"insights-empty\" *ngIf=\"!sec.items.length\">{{ insightsStatusText }}</div>\n </div>\n </ng-container>\n <ng-template #suggestionsOff>\n <div class=\"insights-section insights-suggestions\">\n <div class=\"insights-section-title\">Say Next & AI Suggestion</div>\n <ng-container *ngTemplateOutlet=\"featureOff; context: {$implicit: 'Say Next and AI Suggestion are'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- Live transcription -->\n <div class=\"insights-section insights-transcription\" *ngIf=\"clearCallLive.features.liveTranscription; else transcriptionOff\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>Live Transcription</div>\n <div class=\"transcript-list\" #transcriptList>\n <div class=\"transcript-line\" *ngFor=\"let t of insightsTranscript; trackBy: trackByKey\"\n [ngClass]=\"{'self': t.isSelf, 'interim': t.isInterim}\">\n <div class=\"transcript-meta\">{{ t.speaker }} \u00B7 {{ t.time }}</div>\n <div class=\"transcript-text\">{{ t.text }}</div>\n <div class=\"transcript-translation\" *ngIf=\"t.translation\">{{ t.translation }}</div>\n </div>\n <div class=\"insights-empty\" *ngIf=\"!insightsTranscript.length\">{{ insightsStatusText }}</div>\n </div>\n </div>\n <ng-template #transcriptionOff>\n <div class=\"insights-section insights-transcription\">\n <div class=\"insights-section-title\">Live Transcription</div>\n <ng-container *ngTemplateOutlet=\"featureOff; context: {$implicit: 'Live Transcription'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- shared \"feature disabled\" message -->\n <ng-template #featureOff let-name>\n <div class=\"insights-disabled\">\n {{ name }} is disabled.\n <a href=\"javascript:void(0)\" (click)=\"openTranscriptionSettings()\">Enable it in settings</a>\n </div>\n </ng-template>\n </div>\n\n <!-- call insights \u2014 full screen view (separate UI; the regular panel and call UI are only hidden while this is shown) -->\n <div class=\"insights-fs\"\n *ngIf=\"showInsightsPanel && insightsFullscreen && !isMinimised && currentCallList?.length && !showNewCallLoader\">\n <div class=\"insights-fs-header\">\n <span>\u2728 Call Insights</span>\n <span class=\"insights-header-actions\">\n <span class=\"material-symbols-outlined insights-close\" title=\"Exit full screen\" (click)=\"toggleInsightsFullscreen()\">fullscreen_exit</span>\n <span class=\"material-symbols-outlined insights-close\" title=\"Close\" (click)=\"toggleInsightsPanel()\">close</span>\n </span>\n </div>\n\n <div class=\"insights-fs-body\">\n <div class=\"insights-fs-side\">\n <!-- Live sentiment -->\n <div class=\"insights-fs-card\" *ngIf=\"clearCallLive.features.liveSentiment; else fsSentimentOff\">\n <div class=\"sentiment-title\">\n <span>Live Sentiment</span>\n <span class=\"sentiment-value\" *ngIf=\"hasSentiment; else fsNoSentiment\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\">\n {{ insightsSentimentLabel }} \u00B7 {{ clearCallLive.sentimentScore | number:'1.0-0' }}\n </span>\n <ng-template #fsNoSentiment><span class=\"sentiment-value neutral\">\u2014</span></ng-template>\n </div>\n <div class=\"sentiment-bar\">\n <div class=\"sentiment-center\"></div>\n <div class=\"sentiment-fill\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\"\n [ngStyle]=\"insightsSentiment >= 0\n ? {'left': '50%', 'width': (insightsSentiment / 2) + '%'}\n : {'right': '50%', 'width': (-insightsSentiment / 2) + '%'}\"></div>\n </div>\n <div class=\"sentiment-scale\"><span>Negative</span><span>Positive</span></div>\n </div>\n <ng-template #fsSentimentOff>\n <div class=\"insights-fs-card\">\n <div class=\"sentiment-title\"><span>Live Sentiment</span></div>\n <ng-container *ngTemplateOutlet=\"fsFeatureOff; context: {$implicit: 'Live Sentiment'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- Say Next + AI Suggestion -->\n <ng-container *ngIf=\"clearCallLive.features.contextualResponse; else fsSuggestionsOff\">\n <div class=\"insights-fs-card insights-fs-grow insights-suggestions\" *ngFor=\"let sec of insightsSections; trackBy: trackByKey\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>{{ sec.title }}</div>\n <ul>\n <li *ngFor=\"let s of sec.items; trackBy: trackById\" [ngClass]=\"s.kind\">\n <span class=\"material-symbols-outlined\">{{ sec.icon }}</span>\n <div>\n <span class=\"suggestion-signal\" *ngIf=\"s.signal\">{{ s.signal }}</span>\n {{ s.text }}\n </div>\n </li>\n </ul>\n <div class=\"insights-empty\" *ngIf=\"!sec.items.length\">{{ insightsStatusText }}</div>\n </div>\n </ng-container>\n <ng-template #fsSuggestionsOff>\n <div class=\"insights-fs-card insights-fs-grow\">\n <div class=\"insights-section-title\">Say Next & AI Suggestion</div>\n <ng-container *ngTemplateOutlet=\"fsFeatureOff; context: {$implicit: 'Say Next and AI Suggestion are'}\"></ng-container>\n </div>\n </ng-template>\n </div>\n\n <!-- Live transcription -->\n <div class=\"insights-fs-card insights-fs-main\" *ngIf=\"clearCallLive.features.liveTranscription; else fsTranscriptionOff\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>Live Transcription</div>\n <div class=\"transcript-list\" #transcriptList>\n <div class=\"transcript-line\" *ngFor=\"let t of insightsTranscript; trackBy: trackByKey\"\n [ngClass]=\"{'self': t.isSelf, 'interim': t.isInterim}\">\n <div class=\"transcript-meta\">{{ t.speaker }} \u00B7 {{ t.time }}</div>\n <div class=\"transcript-text\">{{ t.text }}</div>\n <div class=\"transcript-translation\" *ngIf=\"t.translation\">{{ t.translation }}</div>\n </div>\n <div class=\"insights-empty\" *ngIf=\"!insightsTranscript.length\">{{ insightsStatusText }}</div>\n </div>\n </div>\n <ng-template #fsTranscriptionOff>\n <div class=\"insights-fs-card insights-fs-main\">\n <div class=\"insights-section-title\">Live Transcription</div>\n <ng-container *ngTemplateOutlet=\"fsFeatureOff; context: {$implicit: 'Live Transcription'}\"></ng-container>\n </div>\n </ng-template>\n </div>\n\n <!-- call controls (same actions as the active-call view) -->\n <div class=\"insights-fs-controls\">\n <!-- keypad pop-over (own state \u2014 does not touch the regular call UI's keypad) -->\n <div class=\"insights-fs-keypad\" *ngIf=\"fsKeypadOpen\">\n <div class=\"insights-fs-keypad-display\">{{ callInput || 'Enter digits' }}</div>\n <div class=\"insights-fs-keypad-grid\">\n <button type=\"button\" class=\"insights-fs-key\" *ngFor=\"let key of keypadVal\" (click)=\"onCallInputs(key.num)\">\n {{ key.num }}\n <span>{{ key.text ? key.text : ' ' }}</span>\n </button>\n </div>\n </div>\n\n <!-- who / how long -->\n <div class=\"insights-fs-callinfo\">\n <div class=\"insights-fs-callname\">{{ fsCallName }}</div>\n <div class=\"insights-fs-callnumber\" *ngIf=\"fsCallNumber\">{{ fsCallNumber }}</div>\n <div class=\"insights-fs-callduration\"><span class=\"material-symbols-outlined\">timer</span>{{ timer }}</div>\n </div>\n\n <!-- actions -->\n <div class=\"insights-fs-actions\">\n <button class=\"circle-btn\" [ngClass]=\"{'active': isSelfEffectivelyMuted()}\"\n [disabled]=\"(!isConference && !currentCall?.isAcceptCall) || !canSelfToggleMute()\"\n [title]=\"selfMuteTooltip()\" (click)=\"toggleMute(isConference)\">\n <span class=\"material-symbols-outlined\"> {{ isSelfEffectivelyMuted() ? 'mic_off' : 'mic' }} </span>\n </button>\n <button class=\"circle-btn\" [ngClass]=\"{'active': fsKeypadOpen}\" title=\"Keypad\"\n [disabled]=\"!isConference && !currentCall?.isAcceptCall\" (click)=\"fsKeypadOpen = !fsKeypadOpen; callInput = ''\">\n <span class=\"material-symbols-outlined\"> transition_dissolve </span>\n </button>\n <button class=\"circle-btn\" title=\"Participants\"\n [disabled]=\"!isConference && !currentCall?.isAcceptCall\" (click)=\"openParticipantsFromFullscreen()\">\n <span class=\"material-symbols-outlined\"> groups_2 </span>\n </button>\n <!-- recording -->\n <button class=\"circle-btn\" *ngIf=\"!isRecording\" title=\"Start recording\"\n [disabled]=\"(!isConference && !currentCall?.isAcceptCall) || userSettingInfo?.callRecording == 'N'\"\n (click)=\"toggleRecording()\">\n <span class=\"insights-fs-rec-dot\"></span>\n </button>\n <ng-container *ngIf=\"isRecording\">\n <button class=\"circle-btn active\" title=\"Stop recording\" (click)=\"toggleRecording()\">\n <span class=\"material-symbols-outlined\"> stop </span>\n </button>\n <button class=\"circle-btn\" *ngIf=\"!isPaused\" title=\"Pause recording\" (click)=\"pauseRecording()\">\n <span class=\"material-symbols-outlined\"> pause </span>\n </button>\n <button class=\"circle-btn\" *ngIf=\"isPaused\" title=\"Resume recording\" (click)=\"resumeRecording()\">\n <span class=\"material-symbols-outlined\"> play_arrow </span>\n </button>\n <span class=\"insights-fs-rec-time\">{{ getFormattedTime() }}</span>\n </ng-container>\n <!-- end call -->\n <button class=\"circle-btn danger\" title=\"End call\" *ngIf=\"isConference; else fsEndSingle\"\n (click)=\"endConfereneceCall(currentConferenceCall?.participants[0])\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n <ng-template #fsEndSingle>\n <button class=\"circle-btn danger\" title=\"End call\" [disabled]=\"!currentCall?.isAcceptCall\"\n (click)=\"endCall(false, currentCall)\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </ng-template>\n </div>\n <div class=\"insights-fs-controls-spacer\"></div>\n </div>\n\n <ng-template #fsFeatureOff let-name>\n <div class=\"insights-disabled\">\n {{ name }} is disabled.\n <a href=\"javascript:void(0)\" (click)=\"openTranscriptionSettings()\">Enable it in settings</a>\n </div>\n </ng-template>\n </div>\n\n <!-- contact list panel -->\n <div class=\"contacts-panel\"*ngIf=\"showContactsPanel && !showNewCallLoader\">\n <div class=\"panel-loader-overlay p-3 text-center\" *ngIf=\"isParticipantPanelLoading\">\n <div class=\"spinner-border text-secondary\" role=\"status\">\n <span class=\"sr-only\">Loading...</span>\n </div>\n <p class=\"mt-2\"></p>\n </div>\n <div class=\"contacts-header\">\n <div class=\"participant-list-title\">\n {{ selectedConfName || 'Conference' }} Participants\n <!-- <ng-container *ngIf=\"totalParticipantsCount < 3; else confHeading\">\n Call Participants\n </ng-container>\n <ng-template #confHeading>\n </ng-template> -->\n </div>\n <div class=\"d-flex justify-content-between\">\n <span class=\"material-symbols-outlined settings-icon me-2\" *ngIf=\"isConferenceHost\" (click)=\"toggleSettingsPanel()\">\n settings\n </span>\n <span class=\"material-symbols-outlined dial-close-btn\" (click)=\"toggleContactsPanel({}, true)\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"\n fill=\"#000000\">\n <path\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" />\n </svg>\n </span>\n </div>\n </div>\n <div class=\"settings-overlay\" *ngIf=\"showSettingsPanel\" (click)=\"closeSettingsPanel()\">\n <div class=\"settings-drawer\" (click)=\"$event.stopPropagation()\">\n <div class=\"settings-header\">\n <span class=\"material-symbols-outlined\" (click)=\"closeSettingsPanel()\">arrow_back</span>\n <span>Call Settings</span>\n <span></span> <!-- placeholder for alignment -->\n </div>\n \n <div class=\"settings-body\">\n <!-- Mute all participants -->\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>Mute all participants</span>\n <small>Off \u2014 participants can mute and unmute themselves at any time.</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.muteAll\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"onMuteAllToggle($event)\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n \n <hr>\n \n <!-- Participant Permissions -->\n <div class=\"setting-group\">\n <h6>PARTICIPANT PERMISSIONS</h6>\n \n <!-- Allow unmute -->\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>\n <svg viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3Z\" stroke=\"currentColor\" stroke-width=\"1.8\"></path>\n <path d=\"M19 10v2a7 7 0 0 1-14 0v-2M12 19v3\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"></path>\n </svg>\n Allow participants to self-unmute\n </span>\n <small>{{ settings.allowUnmute ? 'Yes \u2014 participants can unmute themselves after being muted\n individually by the host.' : 'No \u2014 participants cannot unmute themselves.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowUnmute\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowUnmute = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n \n <!-- Allow remove -->\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>\n <svg viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M17 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M15 3.13a4 4 0 0 1 0 7.75\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"></path>\n <circle cx=\"9\" cy=\"7\" r=\"4\" stroke=\"currentColor\" stroke-width=\"1.8\"></circle>\n <path d=\"M19 8h4\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"></path>\n </svg>\n Allow participants to remove\n </span>\n <small>{{ settings.allowRemove ? 'Yes \u2014 participants can remove other participants.' : 'No \u2014\n participants cannot remove other participants, and cannot remove the host.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowRemove\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowRemove = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>Allow participants to unhold</span>\n <small>{{ settings.allowUnhold ? 'Yes \u2014 participants can place themselves on hold.' : 'No \u2014\n participants cannot place themselves on hold.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowUnhold\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowUnhold = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>Allow participants to mute other participants</span>\n <small>{{ settings.allowMuteOthers ? 'Yes \u2014 Participants can mute other participants, and can mute the host.' : 'No \u2014\n Participants cannot mute other participants, and cannot mute the host.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowMuteOthers\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowMuteOthers = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- SEARCH INPUT (visible when isSearchVisible = true) -->\n <div class=\"search-bar p-3 position-relative\">\n <input type=\"text\" [placeholder]=\"isSpecialCall() ? 'Search by Name or Number for a new call' : 'Add a participant by Name or Number'\"\n [title]=\"isSpecialCall() ? 'Adding participants is not allowed on this call' : 'Add a participant by Name or Number'\" [(ngModel)]=\"searchText\" (input)=\"applyFilter()\" />\n <div class=\"search-contacts-list\">\n <ng-container *ngFor=\"let c of filteredList\">\n <div class=\"contact-item\" *ngIf=\"searchText\">\n <img class=\"contact-avatar\" [src]=\"c?.image || 'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-name\">{{c?.firstName}} {{c?.middleName}} {{c?.lastName}}</div>\n <div class=\"contact-title\">{{ (c?.numbersList && c?.numbersList[0]?.number) }}{{ c?.numbersList[0]?.numberLabel ? ' (' + c.numbersList[0].numberLabel + ')' : '' }}</div>\n </div>\n <button class=\"contact-call-btn contact-add-btn mr-2\" (click)=\"callContact(c)\"\n *ngIf=\"!c?.IsConnected && !isSpecialCall()\" title=\"Add to call\">\n <span class=\"material-symbols-outlined\"> add </span>\n </button>\n <button class=\"contact-call-btn\" (click)=\"CallToUnsavedNumber(c?.numbersList[0]?.number, true)\"\n *ngIf=\"!c?.IsConnected\" title=\"New Call\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!filteredList.length && isDirectCallOptionShow && searchText\">\n <div class=\"contact-item\">\n <img class=\"contact-avatar\" [src]=\"'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-title\">{{ searchText }}</div>\n </div>\n <button class=\"contact-call-btn contact-add-btn mr-2\" (click)=\"CallToUnsavedNumber(searchText)\"\n *ngIf=\"!isSpecialCall()\" title=\"Add to call\">\n <span class=\"material-symbols-outlined\"> add </span>\n </button>\n <button class=\"contact-call-btn\" (click)=\"CallToUnsavedNumber(searchText, true)\"\n title=\"New Call\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <div class=\"contacts-list\">\n <div class=\"px-2\">\n <h5 class=\"mb-0 title\">Active participants ({{ activeParticipantsCount }})</h5>\n </div>\n <hr class=\"mb-2 mt-1\">\n <ng-container *ngFor=\"let c of filteredParticipentList\">\n <div class=\"contact-item\" *ngIf=\"!c?.isLeft\">\n <img class=\"contact-avatar\" *ngIf=\"!c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.toImage || 'assets/images/user.jpg' : c?.fromImage || 'assets/images/user.jpg'\" alt=\"\" />\n <img class=\"contact-avatar\" *ngIf=\"c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.fromImage || 'assets/images/user.jpg' : c?.toImage || 'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-name\" *ngIf=\"!c?.client\">{{c?.direction == 'outgoing-call' ? c?.toName || 'Unknown' : c?.fromName || 'Unknown'}}\n </div>\n <div class=\"contact-title\" *ngIf=\"!c?.client\">{{ c?.direction == 'outgoing-call' ? c?.to || 'Unknown' : c?.from || 'Unknown'}}</div>\n\n <div class=\"contact-name\" *ngIf=\"c?.client\">\n <ng-container *ngIf=\"!isSelfNumber(c) else selfNumber\">\n <span>{{c?.direction == 'outgoing-call' ? c?.fromName || 'Unknown' : c?.toName || 'Unknown'}}</span>\n </ng-container>\n <ng-template #selfNumber>\n <span>You</span>\n </ng-template>\n </div>\n <div class=\"contact-title\" *ngIf=\"c?.client\">{{ c?.direction == 'outgoing-call' ? c?.from || 'Unknown' : c?.to || 'Unknown'}}</div>\n <div class=\"d-flex\" *ngIf=\"c?.host\">\n <span class=\"organizer-label\">Organizer</span>\n </div>\n </div>\n <ng-container *ngIf=\"c?.joined && !c?.host\">\n <div class=\"connecting-wrapper mr-2\">\n <span class=\"ringing-text\">Ringing</span>\n <span class=\"dots\">\n <span>.</span>\n <span>.</span>\n <span>.</span>\n </span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"c?.host && c?.isHold && !(deviceNumberList.includes(c?.from) || (deviceNumberList.includes(c?.to) && c?.direction == 'incoming-call'))\">\n <div class=\"connecting-wrapper mr-2\">\n <span class=\"onHold-text\">On Hold</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!c?.joined || c?.host\">\n <button class=\"mic-btn mr-2\" [disabled]=\"c?.isHold || !canToggleMute(c)\" [title]=\"muteTooltip(c)\" (click)=\"onMuteUser(c)\">\n <span class=\"material-symbols-outlined\" *ngIf=\"isEffectivelyMuted(c)\"> mic_off </span>\n <span class=\"material-symbols-outlined\" *ngIf=\"!isEffectivelyMuted(c)\"> mic </span>\n </button>\n <button class=\"conference-hold-contact mr-2\" [ngClass]=\"{ 'on-hold': c?.isHold }\"\n (click)=\"onHoldCall(c)\" *ngIf=\"!c?.host || (c?.host && (deviceNumberList.includes(c?.from) || (deviceNumberList.includes(c?.to) && c?.direction == 'incoming-call')))\" [disabled]=\"isHoldBtnDisable || !canToggleHold(c)\">\n <span *ngIf=\"!c?.isHold\" class=\"material-symbols-outlined\" [title]=\"canToggleHold(c) ? 'Hold' : holdTooltip(c)\"> phone_paused</span>\n <span *ngIf=\"c?.isHold\" class=\"material-symbols-outlined\" [title]=\"canToggleHold(c) ? 'Resume' : holdTooltip(c)\"> resume </span>\n </button>\n </ng-container>\n <button class=\"conference-contact\" (click)=\"confirmLeaveParticipant(c)\"\n [disabled]=\"!canRemoveParticipant(c)\" [title]=\"removeTooltip(c)\" *ngIf=\"!c?.host\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n <button class=\"conference-contact\" (click)=\"endConfereneceCall(c)\"\n *ngIf=\"c?.host && (deviceNumberList.includes(c?.from) || (deviceNumberList.includes(c?.to) && c?.direction == 'incoming-call'))\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n </div>\n </ng-container>\n <hr class=\"m-2\">\n <div class=\"mt-3 px-2\">\n <h5 class=\"mb-0 title\">Participant added to the call</h5>\n </div>\n <hr class=\"mb-2 mt-1\">\n <ng-container *ngFor=\"let c of filteredParticipentList\">\n <div class=\"contact-item\" *ngIf=\"c?.isLeft\">\n <img class=\"contact-avatar\" *ngIf=\"!c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.toImage || 'assets/images/user.jpg' : c?.fromImage || 'assets/images/user.jpg'\" alt=\"\" />\n <img class=\"contact-avatar\" *ngIf=\"c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.fromImage || 'assets/images/user.jpg' : c?.toImage || 'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-name\" *ngIf=\"!c?.client\">{{c?.direction == 'outgoing-call' ? c?.toName || 'Unknown' : c?.fromName || 'Unknown'}}\n </div>\n <div class=\"contact-title\" *ngIf=\"!c?.client\">{{ c?.direction == 'outgoing-call' ? c?.to || 'Unknown' : c?.from || 'Unknown'}}</div>\n <div class=\"contact-name\" *ngIf=\"c?.client\">{{c?.direction == 'outgoing-call' ? c?.fromName || 'Unknown' : c?.toName || 'Unknown'}}\n </div>\n <div class=\"contact-title\" *ngIf=\"c?.client\">{{ c?.direction == 'outgoing-call' ? c?.from || 'Unknown' : c?.to || 'Unknown'}}</div>\n <div class=\"d-flex\" *ngIf=\"c?.host\">\n <span class=\"organizer-label\">Organizer</span>\n </div>\n </div>\n <div class=\"connecting-wrapper\" *ngIf=\"c?.joined\">\n <span class=\"ringing-text\">Ringing</span>\n <span class=\"dots\">\n <span>.</span>\n <span>.</span>\n <span>.</span>\n </span>\n </div>\n <button class=\"conference-contact\" (click)=\"onEndCall(c, false, true)\" *ngIf=\"!c?.host && c?.joined\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n <button class=\"contact-call-btn contact-add-btn\" *ngIf=\"!c?.client && !c?.joined && !c?.businessNumber\"\n (click)=\"CallToUnsavedNumber(c.direction == 'outgoing-call' ? c?.to : c?.from, false, { skipDuplicateCheck: true }, c)\">\n <span class=\"material-symbols-outlined\"> add </span>\n <span class=\"label\">Rejoin</span>\n </button>\n <button class=\"contact-call-btn contact-add-btn\" *ngIf=\"c?.client && !c?.joined && !c?.businessNumber\"\n (click)=\"CallToUnsavedNumber(c.direction == 'outgoing-call' ? c?.from : c?.to, false, { skipDuplicateCheck: true }, c)\">\n <span class=\"material-symbols-outlined\"> add </span>\n <span class=\"label\">Rejoin</span>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n\n <!-- Conference Warning Modal -->\n<div class=\"custom-modal\" *ngIf=\"showConferenceWarningModal\">\n <div class=\"modal-content warning-modal\">\n <div class=\"warning-icon\">\n <span class=\"material-symbols-outlined\">warning</span>\n </div>\n <h3>Warning</h3>\n <p>\n Starting a new call will put the current call on hold\n and cannot be merged later.\n </p>\n <div class=\"warning-actions\">\n <button class=\"cancel-btn\" (click)=\"cancelNewCall()\">\n Cancel\n </button>\n <button class=\"proceed-btn\" (click)=\"confirmNewCall()\">\n Proceed\n </button>\n </div>\n </div>\n</div>\n\n<!-- Special Call Charges Modal (call screen open: active/held conference + new call).\n First call (no call screen yet) is shown by dialbox over its \"Connecting...\" loader. -->\n<div class=\"custom-modal\" *ngIf=\"twilioService.specialCallConfirm?.inCallScreen\">\n <div class=\"modal-content warning-modal\">\n <div class=\"warning-icon\">\n <span class=\"material-symbols-outlined\">warning</span>\n </div>\n <h3>Call Charges</h3>\n <p *ngIf=\"twilioService.specialCallConfirm?.message\">{{ twilioService.specialCallConfirm?.message }}</p>\n <p *ngIf=\"!twilioService.specialCallConfirm?.message\">\n Additional charges apply to this call. Do you want to proceed?\n </p>\n <div class=\"warning-actions\">\n <button class=\"cancel-btn\" (click)=\"onSpecialCallChargesAction(false)\">\n Cancel\n </button>\n <button class=\"proceed-btn\" (click)=\"onSpecialCallChargesAction(true)\">\n Proceed\n </button>\n </div>\n </div>\n</div>\n</div>\n\n<div class=\"min-call-container\" *ngIf=\"isMinimised\">\n <span class=\"material-symbols-outlined fullscreen\" (click)=\"maximiseDialpad()\"> open_in_full </span>\n <div style=\"display: flex; width: 100%\">\n <div>\n <div class=\"min-call-animation\" id=\"call-avatar\">\n <img class=\"min-avatar-img\" [src]=\"callData.img\" alt=\"\" />\n </div>\n </div>\n <div>\n <div class=\"min-callerDetails\">\n <div class=\"name\">\n {{callData.name}}\n </div>\n <p style=\"margin: 0\">{{callData.displayNum ? callData.displayNum : callData.phone }}</p>\n </div>\n </div>\n </div>\n <div class=\"min-btn-container\">\n <div class=\"min-timer\">{{timer}}</div>\n <button class=\"min-call-sec-btn\" (click)=\"toggleMute()\" [disabled]=\"disbaleEndCallBtn || !canSelfToggleMute()\" [title]=\"selfMuteTooltip()\">\n <span class=\"material-symbols-outlined\" *ngIf=\"isSelfEffectivelyMuted()\"> mic_off </span>\n <span class=\"material-symbols-outlined\" *ngIf=\"!isSelfEffectivelyMuted()\"> mic </span>\n </button>\n <button class=\"min-call-btn end-call-btn\" [disabled]=\"disbaleEndCallBtn\" (click)=\"endCall()\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n</div>\n<!-- Call Disconnect Modal -->\n<div class=\"custom-modal\" *ngIf=\"showDisconnectModal\">\n <div class=\"modal-content p-3\">\n <div class=\"contacts-header p-0 pb-2\">\n <h4 class=\"title mb-0\">{{selectedConf?.conName || 'Call'}} Disconnect</h4>\n <div class=\"d-flex justify-content-between\">\n <span class=\"material-symbols-outlined dial-close-btn\" (click)=\"showDisconnectModal = false\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"\n fill=\"#000000\">\n <path\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" />\n </svg>\n </span>\n </div>\n </div>\n <div class=\"contant-body mb-2\">\n <p class=\"mt-2\">\n Exiting this call will not end the conference. The session will continue, and charges will incur to\n your\n account.\n </p>\n </div>\n <div class=\"button-group\">\n <div class=\"text-start d-flex align-items-center\">\n <label class=\"d-flex align-items-center mb-0 mr-2\">\n <input type=\"checkbox\" [(ngModel)]=\"isReasonChecked\" (ngModelChange)=\"onReasonCheckChanged($event)\" class=\"me-2\"/>\n </label>\n <div class=\"time-picker-24hr\">\n <!-- Hour picker -->\n <div class=\"custom-time-select\" [class.disabled-picker]=\"!isReasonChecked\">\n <div class=\"custom-time-display\" (click)=\"isReasonChecked && toggleHourDropdown()\">\n {{ leaveHour || 'HH' }}\n <span class=\"picker-arrow\">▼</span>\n </div>\n <div class=\"custom-time-options\" *ngIf=\"showHourDropdown\">\n <div class=\"custom-time-option\"\n *ngFor=\"let h of hours\"\n [class.selected]=\"leaveHour === h\"\n (click)=\"selectHour(h)\">{{ h }}</div>\n </div>\n </div>\n <span class=\"time-sep\">:</span>\n <!-- Minute picker -->\n <div class=\"custom-time-select\" [class.disabled-picker]=\"!isReasonChecked\">\n <div class=\"custom-time-display\" (click)=\"isReasonChecked && toggleMinuteDropdown()\">\n {{ leaveMinute || 'MM' }}\n <span class=\"picker-arrow\">▼</span>\n </div>\n <div class=\"custom-time-options\" *ngIf=\"showMinuteDropdown\">\n <div class=\"custom-time-option\"\n *ngFor=\"let m of minutes\"\n [class.selected]=\"leaveMinute === m\"\n (click)=\"selectMinute(m)\">{{ m }}</div>\n </div>\n </div>\n </div>\n </div>\n <button class=\"btn end-btn\" (click)=\"leaveConference()\" [disabled]=\"isReasonChecked && (!leaveHour || !leaveMinute)\">\n Leave\n </button>\n <button class=\"btn end-btn\" (click)=\"endConference()\" *ngIf=\"showEndAllButton\">\n End All\n </button>\n </div>\n </div>\n</div>\n<div class=\"custom-modal\" *ngIf=\"showLeaveConfirmationModal\">\n <div class=\"modal-content warning-modal\">\n <div class=\"warning-icon\">\n <span class=\"material-symbols-outlined\">info</span>\n </div>\n <h3>Leave Conference</h3>\n <p>\n You are about to leave <strong>{{ leaveConfConferenceName }}</strong>. \n Are you sure?\n </p>\n <div class=\"warning-actions\">\n <button class=\"cancel-btn\" (click)=\"cancelLeave()\">Cancel</button>\n <button class=\"proceed-btn\" (click)=\"confirmLeave()\">Leave</button>\n </div>\n </div>\n</div>", styles: [".call-container{width:385px;height:646px!important;margin:auto;border-radius:20px;box-shadow:6px 6px 10px -1px #00000026,-5px -4px 10px -1px #00000026;display:flex;box-sizing:border-box;position:relative;justify-content:center;align-items:center;z-index:1000;flex-flow:column;overflow-x:hidden;overflow-y:visible}.disabled{opacity:.5!important;pointer-events:none!important}.call-to-text{padding:6px 10px;border:1px solid #c2c2c2;border-radius:20px;font-size:13px}.collops{height:660px!important}.incoming-call-container{flex-flow:row!important}.active-call{width:385px!important}.call-animation{background:#fff;width:100px;height:100px;position:relative;margin:20px auto 0;border-radius:100%;border:solid 4px #fff;display:flex;align-items:center;justify-content:center}.call-animation:before{position:absolute;content:\"\";top:0;left:0;width:100%;height:100%;backface-visibility:hidden;border-radius:50%}.call-animation-play{animation:play 3s linear infinite}.call-info-wrapper{height:20px;overflow-y:auto;background:white;transition:height 1s}.open-collops{height:180px!important}.avatar-img{width:94px;height:94px;border-radius:100%}@keyframes play{0%{transform:scale(1)}15%{box-shadow:0 0 0 2px #fff6}25%{box-shadow:0 0 0 4px #fff6,0 0 0 8px #fff3}25%{box-shadow:0 0 0 8px #fff6,0 0 0 16px #fff3}50%{box-shadow:0 0 0 10px #fff6,0 0 0 20px #fff3}to{box-shadow:0 0 0 10px #fff6,0 0 0 20px #fff3;transform:scale(1.1);opacity:0}}.callerDetails{margin-top:8px;color:#fff;display:flex;flex-direction:column;align-items:center}.togglearrow-arrow{left:100%;background-color:#fff;width:25px;height:25px;text-align:center;cursor:pointer;border:1px solid #ccc;border-radius:50%;line-height:22px}.togglearrow-arrow.disabled{opacity:.3;cursor:not-allowed;pointer-events:none}.search-bar input{width:100%;padding:8px;border:1px solid #ccc;border-radius:4px;outline:none}.togglearrow-arrow.disabled:hover{opacity:.3;cursor:not-allowed}.callerDetails h1{width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:12px 0 0;color:#fff;text-transform:capitalize;text-align:center}.callerDetails h4{margin:0;color:#fff}.tx-black,.title{color:#000!important}.callerDetails p{margin-top:-3px;margin-bottom:0;color:#fff}.call-sec-btn,.mic-btn{position:relative;box-sizing:border-box;border:1px solid #cccbcb;background-color:transparent;border-radius:25px;padding:12px;box-shadow:6px 6px 10px -1px #bebebe26,-5px -4px 10px -1px #d2d2d226;width:50px;height:50px}.mic-btn{padding:5px;width:37px;height:37px}.receive-btn{background-color:#28a745!important;color:#fff!important}.receive-btn span{color:#fff!important}.scroll-container{width:100%;overflow:hidden;white-space:nowrap;position:relative}.scroll-text{display:inline-block;padding-left:100%;animation:scroll-left 12s linear infinite;font-size:16px}@keyframes scroll-left{0%{transform:translate(0)}to{transform:translate(-100%)}}.call-sec-btn span{color:#cccbcb}.call-btn{width:60px;height:60px;background-color:#fff;border-radius:30px;box-sizing:border-box;border:2px solid white;margin:0 16px}.end-call-btn{background-color:#e14e4e}.end-call-btn span{color:#fff!important}.call-btn span{color:#234de8}.btn-container{display:flex;flex-wrap:wrap;padding:0 30px}.key-btn{width:50px;height:50px;background-color:transparent;text-align:center;box-sizing:border-box;margin:0 18px;font-size:22px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:Lato,sans-serif;font-weight:900;font-style:normal;color:#d3d3d3;cursor:pointer;opacity:.8}.call-action-btns{text-align:center}#call-input{background-color:transparent;border:none;outline:none;text-align:center;color:#fff}.sendDigit{position:relative;text-align:center;width:80%;margin:auto;background-color:#ffffff1a;padding:2px 0;border-radius:3px}.input-clear-btn{position:absolute;right:6px;color:#fff;cursor:pointer}#minimize-btn-div{position:absolute;right:14px;top:12px;z-index:10}.minimize-btn{color:#fff;cursor:pointer}.wave-container{position:absolute;bottom:0;overflow:hidden;width:100%}.waves{width:660px;position:relative;margin-bottom:-7px;height:40px;min-height:40px}.held-call-banner{position:absolute;top:0;left:0;right:0;z-index:2100;box-shadow:0 4px 12px #0000004d;border-radius:0 0 16px 16px;max-height:220px;overflow-y:auto}.held-call-content{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 6px;border-bottom:1px dotted #4b4b4b;border-left:3px solid transparent;transition:background .15s ease,border-left-color .15s ease;cursor:pointer}.held-call-content.held-call-selected{background:rgba(255,255,255,.15);border-left-color:#fff;border-radius:0 6px 6px 0}.held-main-label{font-size:13px;color:#fff;text-transform:uppercase;letter-spacing:.5px}.fa-info{font-size:smaller!important}.held-info{display:flex;align-items:center;gap:10px;flex:1}.hold-icon{font-size:24px;color:#fbbf24}.swap-icon{font-size:24px}.held-caller{display:flex;flex-direction:column;gap:2px}.held-label{font-size:10px;color:#ffffffb3;text-transform:uppercase;letter-spacing:.5px}.held-name{font-size:14px;font-weight:600;color:#fff}.held-number{font-size:13px;font-weight:500;color:#fff}.held-actions{display:flex;gap:8px;align-items:center}.held-btn{padding:6px 16px;border-radius:20px;border:none;font-size:13px;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}.held-btn:hover{transform:scale(1.05);box-shadow:0 4px 12px #0003}.swap-btn{background:#3b82f6;color:#fff}.merge-btn{background:#10b981;color:#fff}.h-77px{height:77px}.incoming-banners-container{width:100%;padding:5px 8px;height:100%;gap:8px;overflow-y:auto}.call-container-model{width:385px!important;height:646px!important;margin:auto 0 0 1px;border-radius:20px;box-shadow:6px 6px 10px -1px #00000026,-5px -4px 10px -1px #00000026;display:flex;box-sizing:border-box;position:relative;overflow:hidden;justify-content:center;align-items:center}.incoming-banner{top:0;left:0;width:100%;right:0;background:linear-gradient(135deg,#1e3a8a 0%,#3b82f6 100%);padding:12px 16px;z-index:2000;box-shadow:0 4px 12px #0003;border-radius:16px}.incoming-banner-content{display:flex;align-items:center;justify-content:space-between;gap:12px}.incoming-info{flex:1;display:flex;flex-direction:column;gap:4px}.incoming-label{font-size:11px;color:#fffc;text-transform:uppercase;letter-spacing:.5px}.incoming-caller{display:flex;flex-direction:column;gap:2px}.caller-name{font-size:15px;font-weight:600;color:#fff}.caller-number{font-size:13px;color:#ffffffe6}.incoming-actions{display:flex;gap:8px;align-items:center}.banner-btn{width:44px;height:44px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s}.banner-btn:hover{transform:scale(1.1)}.banner-btn .material-symbols-outlined{font-size:20px}.accept-btn{background:#10b981}.accept-btn .material-symbols-outlined{color:#fff}.reject-btn{background:#ef4444}.reject-btn .material-symbols-outlined{color:#fff}.contacts-panel{position:absolute;top:0;bottom:12px;width:340px;background:#ffffff;border-radius:16px;box-shadow:0 10px 25px #00000026;display:flex;flex-direction:column;overflow:hidden;height:40.4rem;left:24.1rem;z-index:1000000;color:#111827!important}.insights-panel{position:absolute;top:0;bottom:12px;width:340px;height:40.4rem;left:24.1rem;background:#f8fafc;border-radius:16px;box-shadow:0 10px 25px #00000026;display:flex;flex-direction:column;overflow:hidden;z-index:1000000;color:#111827}.insights-panel.with-contacts{left:calc(24.1rem + 352px)}.insights-header{height:52px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;font-weight:600;font-size:15px}.insights-header-actions{display:flex;align-items:center;gap:10px}.insights-fs{position:fixed;inset:0;z-index:1000010;display:flex;flex-direction:column;background:#f8fafc;color:#111827}.insights-fs-header{height:56px;flex-shrink:0;display:flex;align-items:center;gap:12px;padding:0 24px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;font-weight:600;font-size:16px}.insights-fs-header .insights-header-actions{margin-left:auto}.insights-fs-header .insights-close{font-size:24px}.insights-fs-timer{font-size:13px;font-weight:500;opacity:.85}.insights-fs-body{flex:1;min-height:0;display:flex;gap:16px;padding:16px 24px}.insights-fs-side{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column;gap:16px}.insights-fs-card{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f;padding:14px 16px}.insights-fs-grow{flex:1;min-height:0;overflow-y:auto}.insights-fs-main{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column}.insights-fs-main .transcript-list{flex:1}.insights-fs-main .transcript-text{font-size:14px}.insights-fs-controls{position:relative;flex-shrink:0;display:flex;align-items:center;gap:24px;padding:12px 24px;background:#fff;border-top:1px solid #e5e7eb}.insights-fs-callinfo,.insights-fs-controls-spacer{flex:1;min-width:0}.insights-fs-callname{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insights-fs-callnumber{font-size:12.5px;color:#64748b}.insights-fs-callduration{display:flex;align-items:center;gap:4px;font-size:12.5px;color:#4f46e5;font-weight:600}.insights-fs-callduration .material-symbols-outlined{font-size:15px}.insights-fs-actions{display:flex;align-items:center;justify-content:center;gap:16px}.insights-fs-rec-dot{width:14px;height:14px;border-radius:50%;background:#ef4444;display:inline-block}.insights-fs-rec-time{font-size:13px;font-weight:600;color:#ef4444;min-width:40px}.insights-fs-keypad{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;width:260px;padding:12px;background:#fff;border-radius:14px;box-shadow:0 10px 25px #00000026}.insights-fs-keypad-display{min-height:28px;margin-bottom:8px;text-align:center;font-size:18px;letter-spacing:.08em;color:#111827;word-break:break-all}.insights-fs-keypad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.insights-fs-key{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1;height:52px;border:none;border-radius:10px;background:#f1f5f9;font-size:18px;font-weight:600;cursor:pointer}.insights-fs-key:hover{background:#e2e8f0}.insights-fs-key span{font-size:9px;font-weight:500;color:#64748b;letter-spacing:.08em}@media (max-width: 760px){.insights-fs-body{flex-direction:column}.insights-fs-side{flex:0 0 auto;max-height:45%}}.insights-close{cursor:pointer;opacity:.85;font-size:20px}.insights-close:hover{opacity:1}.insights-section-title{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.06em;color:#64748b;text-transform:uppercase;margin-bottom:8px}.live-dot{width:7px;height:7px;border-radius:50%;background:#ef4444;animation:insightsPulse 1.4s infinite}@keyframes insightsPulse{0%,to{opacity:1}50%{opacity:.25}}.insights-sentiment{flex-shrink:0;margin:10px 12px 0;padding:8px 12px;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f}.sentiment-title{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;letter-spacing:.06em;color:#64748b;text-transform:uppercase}.sentiment-value{font-size:11px;font-weight:700;padding:1px 8px;border-radius:10px;letter-spacing:0;text-transform:none}.sentiment-value.positive{color:#15803d;background:#dcfce7}.sentiment-value.negative{color:#b91c1c;background:#fee2e2}.sentiment-value.neutral{color:#64748b;background:#f1f5f9}.insights-disabled{font-size:12px;color:#64748b;text-align:center;padding:10px 0}.insights-disabled a{color:#4f46e5;font-weight:600;text-decoration:underline;cursor:pointer}.insights-empty{font-size:12px;color:#94a3b8;text-align:center;padding:10px 0}.insights-suggestions li.coaching{background:#eef2ff;border-left-color:#6366f1}.insights-suggestions li.coaching .material-symbols-outlined{color:#4f46e5}.suggestion-signal{display:inline-block;font-size:10px;font-weight:700;text-transform:uppercase;color:#4f46e5;background:#e0e7ff;border-radius:8px;padding:0 6px;margin-right:4px}.transcript-line.interim{opacity:.65;font-style:italic}.transcript-translation{font-size:11.5px;color:#64748b;border-top:1px dashed #cbd5e1;margin-top:3px;padding-top:2px}.sentiment-bar{position:relative;height:8px;margin:7px 0 3px;background:linear-gradient(90deg,#ef0000,#e5e7eb 50%,#00b050);border-radius:4px;overflow:hidden}.sentiment-center{position:absolute;left:50%;top:0;bottom:0;width:2px;background:#94a3b8;z-index:1}.sentiment-fill{position:absolute;top:0;bottom:0;transition:width .5s ease}.sentiment-fill.positive{background:transparent;border-right:3px solid #0f172a;box-sizing:border-box}.sentiment-fill.negative{background:transparent;border-left:3px solid #0f172a;box-sizing:border-box}.sentiment-scale{display:flex;justify-content:space-between;font-size:10px;color:#94a3b8}.insights-suggestions{flex:1;min-height:0;margin:10px 12px 0;padding:10px 12px;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f;overflow-y:auto}.insights-suggestions ul{list-style:none;margin:0;padding:0}.insights-suggestions li{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.35;padding:8px 10px;margin-bottom:6px;background:#fffbeb;border-left:3px solid #f59e0b;border-radius:8px}.insights-suggestions li .material-symbols-outlined{font-size:16px;color:#d97706;margin-top:1px}.insights-transcription{flex:0 0 40%;min-height:0;margin:10px 12px 12px;padding:10px 12px;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f;display:flex;flex-direction:column}.transcript-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-right:2px}.transcript-line{max-width:88%;background:#f1f5f9;border-radius:12px 12px 12px 4px;padding:6px 10px;align-self:flex-start}.transcript-line.self{align-self:flex-end;background:#e0e7ff;border-radius:12px 12px 4px}.transcript-meta{font-size:10px;font-weight:600;color:#64748b;margin-bottom:1px}.transcript-text{font-size:12.5px;line-height:1.35}.contacts-header{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #f0f0f0;color:#111827!important}.modal-content .contacts-header{height:40px}.search-contacts-list{max-height:196px;overflow:auto;position:absolute;width:91%;background:white;z-index:1000;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;border-radius:0 10px 10px}.contant-body p{font-size:14px;color:#5f6061!important}.contacts-header .title{font-weight:600;color:#111827!important}.contacts-header .back,.contacts-header .search{color:#9aa0a6;cursor:pointer}.disabled{opacity:.5;pointer-events:none}.contacts-list{padding:8px 8px 12px;overflow-y:auto}.contact-item{display:flex;align-items:center;padding:10px 8px;border-radius:10px}.contact-item:hover{background:#f7f9fc}.contact-avatar{width:37px;height:37px;border-radius:50%;object-fit:cover;margin-right:12px}.contact-info{flex:1;min-width:0;overflow:hidden}.contact-name{font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.contact-title{font-size:12px;color:#6b7280}.contact-call-btn{display:inline-flex;align-items:center;gap:6px;background:#234de8;color:#fff;border:none;border-radius:16px;padding:8px;cursor:pointer}.contact-add-btn{background-color:#2ecc71!important}.conference-hold-contact{display:inline-flex;align-items:center;gap:5px;background:#727070;color:#fff;border:none;border-radius:50%;padding:7px;cursor:pointer}.conference-hold-contact.on-hold{background:#28a745!important;color:#fff}.user-info-section{width:100%;height:100%;overflow-y:auto;overflow-x:hidden!important}.user-info-section::-webkit-scrollbar{display:none}.toggle-btn{cursor:pointer}.text-container{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;transition:all .3s ease}.mute-incoming-row{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 10px}.mute-incoming-label{font-size:11px;color:#fff}.switch{position:relative;display:inline-block;width:38px;height:19px;flex-shrink:0}.switch-slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;border-radius:22px;transition:.3s}.close-info-panel-section{width:100%;height:20px}.close-info-panel-section .material-symbols-outlined{font-size:12px;cursor:pointer}.c2c-title{color:#fff;white-space:normal;word-break:break-word;line-height:1.4}.switch-slider:before{content:\"\";position:absolute;height:14px;width:15px;left:3px;bottom:3px;background-color:#fff;border-radius:50%;transition:.3s}.switch input:checked+.switch-slider{background-color:#2ecc71}.switch input:checked+.switch-slider:before{transform:translate(18px)}.text-container.expanded{-webkit-line-clamp:unset}.userName{font-family:FontAwesome}.subject-text{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.conference-contact{display:inline-flex;align-items:center;gap:5px;background:#e14e4e;color:#fff;border:none;border-radius:50%;padding:7px;cursor:pointer}.organizer-label{padding:1px 5px;font-size:11px;border-radius:10px;border:1px solid #a0a0a0;margin-top:2px;background:#fcfcfc;color:#000}.custom-modal{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);display:flex;align-items:center;z-index:10000001;border-radius:21px}.modal-content{background:#ffffff;padding:25px;border-radius:8px;width:350px;text-align:center}.title{margin-bottom:15px;color:#d9534f}.message{margin-bottom:20px}.button-group{display:flex;justify-content:space-between}.btn{padding:8px 15px;border:none;border-radius:5px;cursor:pointer;font-weight:500}.end-btn{background-color:#dc3545;color:#fff;display:flex;align-items:center;font-size:13px}.leave-btn{background-color:#007bff;color:#fff}.contact-call-btn .material-symbols-outlined{font-size:18px;color:#fff}.contact-call-btn .label{font-size:12px}.parallax>use{animation:move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite}.parallax>use:nth-child(1){animation-delay:-2s;animation-duration:7s}.parallax>use:nth-child(2){animation-delay:-3s;animation-duration:10s}.parallax>use:nth-child(3){animation-delay:-4s;animation-duration:13s}.parallax>use:nth-child(4){animation-delay:-5s;animation-duration:20s}@keyframes move-forever{0%{transform:translate3d(-90px,0,0)}to{transform:translate3d(85px,0,0)}}.animated-margin{transition:margin-top .5s ease}app-incoming-call{position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent;z-index:1001}.min-call-container{width:320px;height:124px;border-radius:20px;box-shadow:6px 6px 10px -1px #00000026,-5px -4px 10px -1px #00000026;display:flex;flex-direction:column;box-sizing:border-box;position:relative;overflow:hidden;margin:auto;align-items:center;padding:12px 16px;color:#fff}.min-call-animation{background:#fff;width:48px;height:48px;position:relative;margin:0 12px 0 auto;border-radius:100%;border:solid 2px #fff}.min-avatar-img{width:46px;height:46px;border-radius:100%;position:absolute;left:0;top:0}.border-radius-50{border-radius:50%}.min-callerDetails{color:#fff;display:flex;flex-direction:column;align-items:flex-start}.name{width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:20px;margin:0;color:#fff}.min-callerDetails p{margin:0;color:#fff}.min-btn-container{position:relative;display:flex;width:100%;justify-content:flex-start;align-items:center;margin-top:6px}.min-call-sec-btn{width:40px;height:40px;box-sizing:border-box;border:1px solid #cccbcb;background-color:transparent;border-radius:20px;display:flex;align-items:center;justify-content:center;margin-right:12px;box-shadow:6px 6px 10px -1px #bebebe26,-5px -4px 10px -1px #d2d2d226}.min-call-sec-btn span{color:#cccbcb}.min-call-btn{width:40px;height:40px;border-radius:20px;box-sizing:border-box;border:2px solid white;display:flex;align-items:center;justify-content:center}.fullscreen{position:absolute;right:18px;top:14px;color:#e8e8e8;font-size:18px;cursor:pointer}.btn-container{display:flex;flex-wrap:wrap;padding:0 24px}.dial-btn{width:40px;height:40px;background-color:transparent;text-align:center;box-sizing:border-box;margin:4px 25px;font-size:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:Lato,sans-serif;font-weight:900;font-style:normal;color:#b5b5b5;cursor:pointer}.btn-albhabets{font-family:Lato,sans-serif;font-size:12px;font-weight:400}.min-timer{width:50px;font-size:18px;margin-right:10px;border-radius:4px;height:35px;display:flex;align-items:center}.record-action-btns{display:flex;flex-direction:column;align-items:center;margin-top:35px}.record-btn-container{position:relative}.record-btn{border:none;border-radius:50%;width:50px;height:50px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin:0 5px;position:relative;overflow:hidden}.record-btn.start-stop .recording-icon{width:50%;height:50%;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.record-btn.start-stop.recording .recording-icon{background-color:#000}.record-btn.start-stop.recording{border:3px solid #000}.record-btn.start-stop.stopped .recording-icon{background-color:red;border:3px solid #ff0000;border-radius:50%;position:absolute}.record-btn.start-stop.stopped{border:3px solid #ff0000}.record-btn.start-stop.stopped .recording-icon{width:40%;height:40%;border-radius:0;background-color:red}.pause-resume-btns{display:flex;flex-direction:column;align-items:center;margin-top:10px}.record-btn.pause-resume{border:none;border-radius:50%;width:50px;height:50px;background:white;display:flex;align-items:center;justify-content:center;margin:5px 0}.record-btn.pause-resume .material-symbols-outlined{font-size:20px;color:#000}.timer-display{font-size:1.2em;margin-top:10px;color:#000}.w-40{width:40%}.w-60{width:60%}.callToNum{color:#fff;font-weight:400;text-align:center}.callToNum span{font-weight:600}.conference-call-view{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;padding:12px 16px 35px;color:#fff;height:100%}.conf-heading{display:flex;align-items:center;gap:8px;margin-top:45px}.conf-icon{color:#4579aa;font-size:32px;width:50px;height:50px;border:1px solid gray;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e1e1e1}.conf-title{font-weight:600;font-size:20px}.conf-name{margin-top:10px;font-size:17px;font-weight:600;text-align:center}.conf-timer{margin-top:4px;font-size:12px;opacity:.9}.conf-record{margin-top:14px}.record-stop-btn{width:44px;height:44px;border-radius:50%;border:none;background:#fff;display:flex;align-items:center;justify-content:center}.record-stop-btn .material-symbols-outlined{color:#e14e4e;font-size:28px}.conf-remove{margin-top:8px}.remove-btn{background:#ff0000!important;color:#fff;border:none;border-radius:6px;padding:6px 12px;font-size:12px;width:82px!important;height:auto}.conf-actions{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:18px}.circle-btn{width:56px;height:56px;border-radius:50%;border:none;background:#000;display:flex;align-items:center;justify-content:center}.circle-btn .material-symbols-outlined{color:#fff;font-size:24px}.circle-btn.active{opacity:.85}.conf-end{margin-top:16px}.circle-btn.danger{background:#e14e4e}.circle-btn.danger .material-symbols-outlined{color:#fff}.warning-modal{background:white;width:360px;border-radius:18px;padding:24px;text-align:center;box-shadow:0 10px 30px #00000040}.warning-icon{margin-bottom:12px}.warning-icon .material-symbols-outlined{font-size:48px;color:#f59e0b}.warning-modal h3{margin-bottom:12px;font-size:20px;font-weight:600;color:#111827!important}.warning-modal p{color:#555!important;font-size:14px;line-height:1.5;margin-bottom:24px}.warning-modal p strong{color:#111827!important}.warning-actions{display:flex;justify-content:center;gap:12px}.cancel-btn,.proceed-btn{border:none;padding:10px 18px;border-radius:8px;cursor:pointer;font-weight:600}.cancel-btn{background:#e5e7eb;color:#111827}.proceed-btn{background:#234de8;color:#fff}.time-picker-24hr{display:flex;align-items:center;gap:4px}.time-sep{font-weight:700;font-size:16px;color:#333}.custom-time-select{position:relative;width:58px;-webkit-user-select:none;user-select:none}.custom-time-select.disabled-picker{opacity:.45;pointer-events:none}.custom-time-display{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;border:1px solid #ced4da;border-radius:4px;background:#fff;font-size:13px;cursor:pointer;white-space:nowrap;color:#333!important}.custom-time-display:hover{border-color:#234de8}.picker-arrow{font-size:9px;margin-left:4px;color:#666}.custom-time-options{position:fixed;background:#fff;border:1px solid #ced4da;border-radius:4px;max-height:160px;overflow-y:auto;z-index:99999999;min-width:58px;box-shadow:0 4px 12px #00000026}.custom-time-option{padding:5px 10px;font-size:13px;cursor:pointer;text-align:center;color:#333}.custom-time-option:hover{background:#e8eeff;color:#234de8}.custom-time-option.selected{background:#234de8;color:#fff;font-weight:600}.dialpad-alerts{position:absolute;left:50%;transform:translate(-50%);width:calc(100% - 32px);z-index:9999999}.normal-call-alert{top:78px}.conference-alert{top:145px}.dialbox-pop1{background:#dff6dd!important;color:#1d4d1d!important;border-radius:10px;padding:10px 14px;font-size:14px;box-shadow:0 4px 12px #00000040;border:1px solid #b7dfc3}.btn-disc{border:none;background:transparent;color:#6b7280!important;font-size:13px;font-weight:500}.connecting-overlay{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px 0 24px}.connecting-text{color:#ffffffe6;font-size:15px;font-weight:500;letter-spacing:.5px;margin:0}.connecting-dots{display:flex;gap:8px;align-items:center}.connecting-dots span{display:inline-block;width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.85);animation:connecting-bounce 1.2s infinite ease-in-out}.connecting-dots span:nth-child(1){animation-delay:0s}.connecting-dots span:nth-child(2){animation-delay:.2s}.connecting-dots span:nth-child(3){animation-delay:.4s}@keyframes connecting-bounce{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1.2);opacity:1}}.connecting-wrapper{display:flex;align-items:center;font-size:13px;color:#4caf50;margin-top:4px;font-weight:500}.participant-list-title,.onHold-text{color:#000}.ringing-text,.onHold-text{margin-right:2px;font-size:11px}.held-actions .connecting-wrapper{color:#fff}.dots span{animation:blink 1.4s infinite;opacity:0;font-size:16px}.dots span:nth-child(1){animation-delay:0s}.dots span:nth-child(2){animation-delay:.2s}.dots span:nth-child(3){animation-delay:.4s}@keyframes blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.loader-wrapper.outgoing-call-loader{position:absolute;inset:0;z-index:100;display:flex;align-items:center;justify-content:center}.panel-loader-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#ffffffb3;display:flex;justify-content:center;align-items:center;z-index:10000009}.settings-icon{cursor:pointer;font-size:24px;color:#555;position:relative;top:5px;right:2px}.settings-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:1000001;display:flex;align-items:flex-start;justify-content:flex-end}.settings-drawer{background:#fff;width:100%;max-width:100%;height:100%;padding:1.5rem 1rem;overflow-y:auto;box-sizing:border-box;transform:translate(100%);animation:slideInFromRight .3s forwards}@keyframes slideInFromRight{to{transform:translate(0)}}.settings-header{display:flex;justify-content:space-between;align-items:center;font-size:1.2rem;font-weight:600;padding-bottom:.75rem;border-bottom:1px solid #eee}.settings-header span:first-child{cursor:pointer}.settings-body{margin-top:1.5rem}.setting-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0;gap:1rem}.setting-label{flex:1}.setting-label span{font-weight:500}.setting-label svg{width:15px;height:15px;color:#393939;flex-shrink:0}.setting-label small{display:block;font-size:.75rem;color:#666;margin-top:.15rem}.setting-group h6{font-weight:600;color:#888;font-size:.75rem;letter-spacing:.5px;margin:1rem 0 .5rem}hr{margin:.5rem 0;border-color:#f0f0f0}.switch{position:relative;display:inline-block;width:44px;height:24px;flex-shrink:0}.switch input{opacity:0;width:0;height:0}.switch-slider{position:absolute;cursor:pointer;inset:0;background:#ccc;border-radius:24px;transition:.3s}.switch-slider:before{content:\"\";position:absolute;height:18px;width:18px;left:3px;bottom:3px;background:white;border-radius:50%;transition:.3s}.switch input:checked+.switch-slider{background:#007bff}.switch input:checked+.switch-slider:before{transform:translate(20px)}\n"] }]
|
|
5473
|
+
args: [{ selector: 'lib-call-progress', template: "<div class=\"d-flex\">\n <div class=\"call-container\" *ngIf=\"!isMinimised && currentCallList?.length\"\n [ngClass]=\"{'collops': isCollops, 'incoming-call-container': isClickExpand, 'contacts-open': showContactsPanel }\">\n <div class=\"loader-wrapper outgoing-call-loader\"\n *ngIf=\"showNewCallLoader\">\n <div class=\"active-call\" style=\"display: flex; flex-direction: column; position: relative;\">\n <div class=\"call-animation call-animation-play\">\n <img class=\"avatar-img\" [src]=\"newCallLoaderData?.img || 'assets/images/user.jpg'\" alt=\"\" />\n </div>\n <div class=\"callerDetails\">\n <h1 style=\"margin-top: 8px;\">Connecting...</h1>\n <p style=\"text-transform: capitalize;\">{{ newCallLoaderData?.name || newCallLoaderData?.phone || 'Unknown' }}</p>\n </div>\n \n <div class=\"call-action-btns\">\n <div class=\"d-flex justify-content-center\">\n <button class=\"call-btn end-call-btn\" disabled (click)=\"endCall()\" style=\"visibility: hidden;\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"dialpad-alerts\"\n [ngClass]=\"{\n 'conference-alert': isConference && currentCall?.isConference,\n 'normal-call-alert': !isConference\n }\" *ngIf=\"callNumberToast.show\">\n <div class=\"dialbox-pop1 alert fade show\"\n [ngClass]=\"callNumberToast.type\"\n role=\"alert\">\n <div class=\"d-flex justify-content-between align-items-center\">\n <div class=\"flex-grow-1 text-left\">\n You'r calling\n <strong>{{callNumberToast.displayNum}}</strong>\n </div>\n <div class=\"text-right\">\n <button class=\"btn btn-link btn-disc p-0 px-1\" (click)=\"cancelCallToast()\"> Cancel Call </button>\n </div>\n </div>\n </div>\n </div>\n <!-- All type Call Hold list -->\n <div class=\"held-call-banner\"\n *ngIf=\"(currentCallList.length > 1 && !!currentCall && ((isConferenceCallHold || isConference) || !isConference)) || !isAllAccepted\">\n <ng-container *ngFor=\"let conf of currentCallList\">\n <div class=\"held-call-content\" *ngIf=\"!conf?.isAcceptCall && currentCallList.length > 1 && deviceNumberList.includes(conf?.to) && conf?.isNotification\"\n [ngClass]=\"{'held-call-selected': selectedUserInfo?.participantId && selectedUserInfo?.participantId === conf?.participantId}\"\n (click)=\"conf?.businessNumber ? toggleC2CInfoPanel(conf) : null\"\n [ngStyle]=\"{'cursor': conf?.businessNumber ? 'pointer' : 'default'}\">\n <div class=\"held-info\">\n <div class=\"img\">\n <img class=\"avatar-img-wrapper border-radius-50\" [src]=\"conf?.img || 'assets/images/user.jpg'\" alt=\"\" width=\"35\" height=\"35\" />\n </div>\n <div class=\"held-caller\" *ngIf=\"!conf?.businessNumber\">\n <span class=\"held-label\">{{conf?.from}}</span>\n <span class=\"held-name\">{{conf?.fromName}}</span>\n </div>\n <div class=\"held-caller\" *ngIf=\"conf?.businessNumber\">\n <span class=\"held-main-label\">Call from C2C:</span>\n <span class=\"held-label\" ><span [title]=\"conf?.sourceName\">{{ truncateText(conf?.sourceName, 10) }}</span>|\n <span [title]=\"conf?.pointName\">{{ truncateText(conf?.pointName, 10) }}</span></span>\n <span class=\"held-label\">{{ truncateText(conf?.name, 26) }}</span>\n </div>\n </div>\n <div class=\"held-actions\">\n <ng-container *ngIf=\"isConnectingIncomingCallId == conf?.id\">\n <div class=\"connecting-wrapper mr-2\">\n <span class=\"ringing-text\">Connecting</span>\n <span class=\"dots\">\n <span>.</span>\n <span>.</span>\n <span>.</span>\n </span>\n </div>\n </ng-container>\n <button class=\"conference-hold-contact receive-btn\" (click)=\"waitingCallAccept(conf)\" [disabled]=\"isConnecting || isIncomingCallBtnDisable\" *ngIf=\"isConnectingIncomingCallId !== conf?.id\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n <button class=\"conference-contact\">\n <span class=\"material-symbols-outlined\" title=\"Call End\" (click)=\"onRejectCall(conf); $event.stopPropagation();\"> call_end </span>\n </button>\n <div *ngIf=\"conf?.businessNumber\" class=\"togglearrow-arrow me-2\" id=\"togglearrow\" (click)=\"toggleC2CInfoPanel(conf)\">\n <i class=\"fa fa-info\"></i>\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container *ngFor=\"let conf of conferenceCallList\">\n <div class=\"held-call-content\" *ngIf=\"(conf?.isConferenceHold || (showNewCallLoader && isConferenceCallHold)) && (conferenceCallList.length > 1 || showNewCallLoader)\"\n [ngClass]=\"{'held-call-selected': conf?.isBusinessNumber && selectedUserInfo?.participantId === conf?.businessParticipantId && isClickExpand}\"\n (click)=\"conf?.isBusinessNumber ? toggleC2CInfoPanel(conf) : null\"\n [ngStyle]=\"{'cursor': conf?.isBusinessNumber ? 'pointer' : 'default'}\">\n <div class=\"held-info\">\n <span class=\"material-symbols-outlined hold-icon\">pause_circle</span>\n <div class=\"held-caller\">\n <span class=\"held-label\">Hold</span>\n <span class=\"held-name\">{{conf?.callLabel}}</span>\n </div>\n </div>\n <div class=\"held-actions\">\n <button class=\"conference-hold-contact\" [ngClass]=\"{ 'on-hold': conf?.isConferenceHold }\"\n (click)=\"swapCalls(conf,true)\" [disabled]=\"isHoldBtnDisable\">\n <span *ngIf=\"conf?.isConferenceHold\" class=\"material-symbols-outlined\" [title]=\"'Resume'\"> resume </span>\n </button>\n <button class=\"conference-contact\" (click)=\"endConfereneceCall(conf); $event.stopPropagation();\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n <div class=\"togglearrow-arrow me-2\" id=\"togglearrow\" (click)=\"toggleContactsPanel(conf)\">\n <i class=\"fa fa-angle-right\"></i>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n\n <!-- For single incoming call -->\n <div class=\"h-100 py-5\" style=\"display: flex; flex-direction: column;\"\n *ngIf=\"currentCallList.length === 1 && currentCallList[0]?.isIncomingCall && !currentCallList[0]?.isAcceptCall\">\n <!-- <div class=\"callToNum\">Incoming call on <br /><span>{{currentCallList[0]?.to || 'Unknown Number'}}</span>\n </div> -->\n <div class=\"callToNum\">\n <ng-container *ngIf=\"currentCallList[0]?.businessNumber; else normalCall\">\n C2C CALL\n <br />\n <span> From : {{ currentCallList[0]?.sourceName }} | {{ currentCallList[0]?.pointName }} </span>\n </ng-container>\n\n <ng-template #normalCall>\n Incoming call on\n <br />\n <span>{{ currentCallList[0]?.to || 'Unknown Number' }}</span>\n </ng-template>\n </div>\n <div class=\"call-animation\" [ngClass]=\"{'call-animation-play': showRingAnimation}\">\n <img class=\"avatar-img\" [src]=\"incomingFromImage || 'assets/images/user.jpg'\" alt=\"\" width=\"120\" />\n </div>\n <div class=\"callerDetails\" *ngIf=\"!currentCallList[0]?.businessNumber\">\n <h1>{{ currentCallList[0]?.name ? currentCallList[0]?.name : currentCallList[0]?.phone || 'Unknown Number' }}</h1>\n <p *ngIf=\"!!currentCallList[0]?.name\">{{ currentCallList[0]?.phone }}</p>\n </div>\n <div class=\"callerDetails\" *ngIf=\"currentCallList[0]?.businessNumber\">\n <p *ngIf=\"!!currentCallList[0]?.name\">{{ truncateText(currentCallList[0]?.name, 45) }}</p>\n <p >{{ currentCallList[0]?.number }}</p>\n </div>\n <!-- Connecting overlay (shown after accept btn click, hidden on API response) -->\n <div class=\"connecting-overlay mt-auto\" *ngIf=\"isConnectingIncomingCallId == currentCallList[0]?.id\">\n <div class=\"connecting-dots\">\n <span></span><span></span><span></span>\n </div>\n <p class=\"connecting-text\">Connecting...</p>\n </div>\n\n <div class=\"call-action-btns mt-auto\" *ngIf=\"isConnectingIncomingCallId != currentCallList[0]?.id\">\n <button class=\"call-btn receive-btn\" *ngIf=\"!newIncomingCallsList[0]?.isCallConnected\"\n [disabled]=\"isIncomingCallBtnDisable\" (click)=\"acceptIncomingCall(currentCallList[0])\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n <button class=\"call-btn reject-btn\">\n <span class=\"material-symbols-outlined\" (click)=\"onRejectCall(currentCallList[0])\"> call_end </span>\n </button>\n </div>\n </div>\n\n <!-- For single active call -->\n <div *ngIf=\"(!isConference || isConferenceCallHold) && (!!currentCall?.id && !currentCall?.isConference) && currentCall?.isAcceptCall\"\n [ngStyle]=\"{'display': 'flex', 'flex-direction': 'column', 'position': 'relative'}\" class=\"active-call\">\n <div *ngIf=\"currentCall?.businessNumber;\" class=\"callToNum\">\n C2C CALL\n <br />\n <span> From : {{ currentCall?.userInfoId?.sourceName }} | {{ currentCall?.userInfoId?.pointName }} </span>\n </div>\n <div class=\"call-animation\" [ngClass]=\"{'call-animation-play': showRingAnimation}\">\n <img class=\"avatar-img\" *ngIf=\"!currentCall?.client\"\n [src]=\"currentCall?.direction == 'outgoing-call' ? currentCall?.toImage || 'assets/images/user.jpg' : currentCall?.fromImage || 'assets/images/user.jpg'\" alt=\"\" />\n <img class=\"avatar-img\" *ngIf=\"currentCall?.client\"\n [src]=\"currentCall?.direction == 'outgoing-call' ? currentCall?.fromImage || 'assets/images/user.jpg' : currentCall?.toImage || 'assets/images/user.jpg'\" alt=\"\" />\n </div>\n <div class=\"callerDetails\">\n <!-- C2C Business Call -->\n <ng-container *ngIf=\"currentCall?.businessNumber; else normalCall\">\n <h1>{{ currentCall?.userInfoId?.name || 'Unknown' }}</h1>\n <p>{{ currentCall?.userInfoId?.number || currentCall?.from || 'Unknown' }}</p>\n </ng-container>\n\n <!-- Normal Call -->\n <ng-template #normalCall>\n <h1 *ngIf=\"!currentCall?.client\"\n [ngStyle]=\"{'margin-top': showKeypad ? '0':'8px'}\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.toName || outgoingContactName || 'Unknown'\n : currentCall?.fromName || 'Unknown' }}\n </h1>\n <h1 *ngIf=\"currentCall?.client\"\n [ngStyle]=\"{'margin-top': showKeypad ? '0':'8px'}\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.fromName || 'Unknown'\n : currentCall?.toName || outgoingContactName || 'Unknown' }}\n </h1>\n <p *ngIf=\"!currentCall?.client\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.to\n : currentCall?.from }}\n </p>\n <p *ngIf=\"currentCall?.client\">\n {{ currentCall?.direction == 'outgoing-call'\n ? currentCall?.from\n : currentCall?.to }}\n </p>\n </ng-template>\n <!-- <h1 *ngIf=\"!currentCall?.client\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '8px'}\">{{currentCall?.direction == 'outgoing-call' ? currentCall?.toName || outgoingContactName || 'Unknown' :\n currentCall?.fromName || 'Unknown'}}</h1>\n <h1 *ngIf=\"currentCall?.client\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '8px'}\">{{currentCall?.direction == 'outgoing-call' ? currentCall?.fromName || 'Unknown' :\n currentCall?.toName || 'Unknown'}}</h1>\n <p *ngIf=\"!currentCall?.client\">{{ currentCall?.direction == 'outgoing-call' ? currentCall?.to || 'Unknown' : currentCall?.from || 'Unknown'}}</p>\n <p *ngIf=\"currentCall?.client\">{{ currentCall?.direction == 'outgoing-call' ? currentCall?.from || 'Unknown' : currentCall?.to || 'Unknown'}}</p> -->\n <h4 style=\"margin-top: 4px\">{{ timer}}</h4>\n </div>\n <div class=\"record-action-btns\" *ngIf=\"!showKeypad\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '20px'}\">\n <div class=\"record-btn-container\">\n <button class=\"record-btn start-stop\" *ngIf=\"!isRecording\"\n [ngClass]=\"{'recording': isRecording, 'stopped': !isRecording, 'disabled': userSettingInfo?.callRecording == 'N'}\" (click)=\"toggleRecording()\"\n [title]=\"isRecording ? 'Stop Recording' : 'Start Recording'\" [disabled]=\"!currentCall?.isAcceptCall || userSettingInfo?.callRecording == 'N'\">\n <span class=\"recording-icon\"></span>\n </button>\n <div class=\"pause-resume-btns\">\n <button class=\"record-btn pause-resume\" *ngIf=\"isRecording && !isPaused\" (click)=\"pauseRecording()\">\n <span class=\"material-symbols-outlined\"> pause </span>\n </button>\n <button class=\"record-btn pause-resume\" *ngIf=\"isPaused\" (click)=\"resumeRecording()\">\n <span class=\"material-symbols-outlined\"> play_arrow </span>\n </button>\n </div>\n </div>\n <div *ngIf=\"isRecording\" class=\"timer-display\">\n {{ getFormattedTime() }}\n </div>\n </div>\n <!-- Mute/unmute incoming call -->\n <div class=\"mute-incoming-row\" *ngIf=\"currentCall?.isAcceptCall && !showKeypad\">\n <span class=\"mute-incoming-label\">Mute incoming calls</span>\n <label class=\"switch mb-0\" title=\"Silence the ringtone of new incoming calls during this call\">\n <input type=\"checkbox\" [checked]=\"twilioService.isIncomingMuted\" (change)=\"toggleMuteIncomingCall()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div *ngIf=\"showKeypad\" class=\"sendDigit\">\n <input type=\"text\" name=\"call-inputs\" id=\"call-input\" [(ngModel)]=\"callInput\" (keyup)=\"onCallInputEnter($event)\">\n <span class=\"material-symbols-outlined input-clear-btn\" *ngIf=\"callInput\" (click)=\"clearInputs()\">close_small</span>\n </div>\n <div class=\"btn-container justify-content-center\" *ngIf=\"showKeypad\">\n <div class=\"key-btn\" *ngFor=\"let key of keypadVal\" (click)=\"onCallInputs(key.num)\">\n {{key.num}}\n <span class=\"btn-albhabets\">{{key.text ? key.text : ' '}}</span>\n </div>\n </div>\n\n <div class=\"call-action-btns\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '723x'}\">\n <div class=\"flex align-items-center justify-content-evenly mb-3\">\n <button class=\"call-sec-btn mr-3\" [disabled]=\"!currentCall?.isAcceptCall || !canSelfToggleMute()\" [title]=\"selfMuteTooltip()\" (click)=\"toggleMute()\">\n <span class=\"material-symbols-outlined\" *ngIf=\"isSelfEffectivelyMuted()\"> mic_off </span>\n <span class=\"material-symbols-outlined\" *ngIf=\"!isSelfEffectivelyMuted()\"> mic </span>\n </button>\n <button class=\"call-sec-btn mr-3\" [disabled]=\"!currentCall?.isAcceptCall\">\n <span class=\"material-symbols-outlined\" (click)=\"toggleKeypad()\"> transition_dissolve\n </span>\n </button>\n <button class=\"call-sec-btn mr-3\" [disabled]=\"!currentCall?.isAcceptCall\"\n (click)=\"toggleContactsPanel(currentCall)\">\n <span class=\"material-symbols-outlined\"> groups_2 </span>\n </button>\n <button class=\"call-sec-btn\" title=\"Call Insights\" [disabled]=\"!currentCall?.isAcceptCall\"\n [ngClass]=\"{'active': showInsightsPanel}\" (click)=\"toggleInsightsPanel()\">\n <span class=\"material-symbols-outlined\"> insights </span>\n </button>\n </div>\n <div>\n <button class=\"call-btn end-call-btn\" [disabled]=\"!currentCall?.isAcceptCall\" (click)=\"endCall(false, currentCall)\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n </div>\n </div>\n\n <!-- conference call view -->\n <div class=\"conference-call-view\" *ngIf=\"isConference\">\n <div class=\"conf-heading\">\n <span class=\"conf-icon material-symbols-outlined\"> groups </span>\n <span class=\"conf-title\">{{currentConferenceCall?.callLabel || 'Conference Call'}}</span>\n </div>\n <div class=\"scroll-container\">\n <div class=\"scroll-text conf-name\">\n <ng-container *ngFor=\"let call of currentCallList; let i = index\">\n <ng-container *ngIf=\"!call?.isConferenceHold\">\n <span *ngIf=\"shouldShowSeparator(i)\"> & </span>\n <span *ngIf=\"call?.client\">\n <ng-container *ngIf=\"!isSelfNumber(call) else selfNumber\">\n <span>{{call?.direction == 'outgoing-call' ? call?.fromName || call?.from :\n call?.toName || call?.to}}</span>\n </ng-container>\n <ng-template #selfNumber>\n <span>You</span>\n </ng-template>\n </span>\n <span *ngIf=\"!call?.client\">{{call?.direction == \"outgoing-call\" ? call?.toName || call?.to : call?.fromName || call?.from || 'Unknown number'}}</span>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <div class=\"conf-timer\">{{ currentConferenceCall?.timer || timer }}</div>\n <div class=\"record-action-btns mt-auto\" *ngIf=\"!showKeypad\" [ngStyle]=\"{'margin-top': showKeypad ? '0': '20px'}\">\n <div class=\"record-btn-container\" >\n <button class=\"record-btn start-stop\" *ngIf=\"!isRecording\" [disabled]=\"userSettingInfo.callRecording == 'N'\"\n [ngClass]=\"{'recording': isRecording, 'stopped': !isRecording, 'disabled': userSettingInfo?.callRecording == 'N'}\" (click)=\"toggleRecording()\"\n [title]=\"isRecording ? 'Stop Recording' : 'Start Recording'\">\n <span class=\"recording-icon\"></span>\n </button>\n <div class=\"pause-resume-btns\">\n <button class=\"record-btn pause-resume\" *ngIf=\"isRecording && !isPaused\" (click)=\"pauseRecording()\">\n <span class=\"material-symbols-outlined\"> pause </span>\n </button>\n <button class=\"record-btn pause-resume\" *ngIf=\"isPaused\" (click)=\"resumeRecording()\">\n <span class=\"material-symbols-outlined\"> play_arrow </span>\n </button>\n </div>\n </div>\n <div *ngIf=\"isRecording\" class=\"timer-display\">\n {{ getFormattedTime() }}\n </div>\n </div>\n <!-- Mute/unmute incoming call -->\n <div class=\"mute-incoming-row\" *ngIf=\"currentCall?.isAcceptCall && !showKeypad\">\n <span class=\"mute-incoming-label\">Mute incoming calls</span>\n <label class=\"switch mb-0\" title=\"Silence the ringtone of new incoming calls during this call\">\n <input type=\"checkbox\" [checked]=\"twilioService.isIncomingMuted\" (change)=\"toggleMuteIncomingCall()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div *ngIf=\"showKeypad\" class=\"sendDigit mt-2\">\n <input type=\"text\" name=\"call-inputs\" id=\"call-input\" [(ngModel)]=\"callInput\" (keyup)=\"onCallInputEnter($event)\">\n <span class=\"material-symbols-outlined input-clear-btn\" *ngIf=\"callInput\" (click)=\"clearInputs()\">close_small</span>\n </div>\n <div class=\"btn-container justify-content-center\" *ngIf=\"showKeypad\">\n <div class=\"key-btn\" *ngFor=\"let key of keypadVal\" (click)=\"onCallInputs(key.num)\">\n {{key.num}}\n <span class=\"btn-albhabets\">{{key.text ? key.text : ' '}}</span>\n </div>\n </div>\n <div class=\"conf-actions\">\n <button class=\"circle-btn\" [ngClass]=\"{'active': isSelfEffectivelyMuted()}\" [disabled]=\"!canSelfToggleMute()\" [title]=\"selfMuteTooltip()\" (click)=\"toggleMute(true)\">\n <span class=\"material-symbols-outlined\"> {{ isSelfEffectivelyMuted() ? 'mic_off' : 'mic' }} </span>\n </button>\n <button class=\"circle-btn\" (click)=\"toggleKeypad()\">\n <span class=\"material-symbols-outlined\"> transition_dissolve </span>\n </button>\n <button class=\"circle-btn\" (click)=\"toggleContactsPanel(currentCall)\">\n <span class=\"material-symbols-outlined\"> groups_2 </span>\n </button>\n <button class=\"circle-btn\" title=\"Call Insights\" [ngClass]=\"{'active': showInsightsPanel}\" (click)=\"toggleInsightsPanel()\">\n <span class=\"material-symbols-outlined\"> insights </span>\n </button>\n </div>\n <div class=\"conf-end\">\n <button class=\"circle-btn danger\" (click)=\"endConfereneceCall(currentConferenceCall?.participants[0])\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n </div>\n\n <div class=\"wave-container\">\n <svg class=\"waves\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 24 150 28\" preserveAspectRatio=\"none\" shape-rendering=\"auto\">\n <defs>\n <path id=\"gentle-wave\"\n d=\"M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z\" />\n </defs>\n <g class=\"parallax\">\n <use xlink:href=\"#gentle-wave\" x=\"48\" y=\"0\" fill=\"rgba(255,255,255,0.7)\" />\n <use xlink:href=\"#gentle-wave\" x=\"48\" y=\"3\" fill=\"rgba(255,255,255,0.5)\" />\n <use xlink:href=\"#gentle-wave\" x=\"48\" y=\"7\" fill=\"#fff\" />\n </g>\n </svg>\n </div>\n </div>\n\n <!-- Incoming call user details shown in model -->\n <div class=\"call-container-model p-3 text-white model-content call-container\" *ngIf=\"isClickExpand\">\n <div class=\"close-info-panel-section\">\n <div class=\"d-flex justify-content-between\" *ngIf=\"currentConferenceCall?.conferenceId != selectedUserInfo?.conferenceId && newIncomingCallsList?.length > 1\">\n <p></p>\n <span class=\"material-symbols-outlined dial-close-btn \" (click)=\"onCloseC2CInfoPanel()\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"\n fill=\"#ffffff\">\n <path\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" />\n </svg>\n </span>\n </div>\n </div>\n <div class=\"mb-2 user-info-section\">\n <div class=\"text-center my-3\">\n <h3 class=\"text-white\">C2C CALL : {{selectedUserInfo?.sourceName}} | {{selectedUserInfo?.pointName}}</h3>\n </div>\n <div class=\"mb-3\">\n <h5 class=\"text-white mb-1\">Name:</h5>\n <h4 class=\"text-white userName\">{{selectedUserInfo?.name}}</h4>\n </div>\n <div class=\"f-13\">\n <div class=\"row mb-3\">\n <div class=\"col-6 mb-2\">\n <div class=\"mb-1\">Extension:</div>\n <div class=\"ml-2\">{{selectedUserInfo?.extension}}</div>\n </div>\n <div class=\"col-6 mb-2\">\n <div class=\"mb-1\">Number:</div>\n <div class=\"\">{{selectedUserInfo?.number}}</div>\n </div> \n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 mb-2\">\n <div class=\"me-2\">Email: </div>\n <div>{{selectedUserInfo?.email}}</div>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 mb-2\">\n <div class=\"me-2\">Subject:</div>\n <div class=\"ml-2 subject-text\" title=\"{{selectedUserInfo?.subject}}\">\n {{selectedUserInfo?.subject}}</div>\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 mb-2\">\n <div class=\"me-2 mb-1\">Image:</div>\n <div class=\"text-ellipsis\">\n <ng-container\n *ngIf=\"selectedUserInfo?.image && selectedUserInfo?.image !== '-'; else noImage\">\n <img src=\"{{selectedUserInfo?.image}}\" alt=\"\" width=\"150\" class=\"ml-2\" />\n </ng-container>\n <ng-template #noImage>\n <span class=\"ml-2\">No Image Available</span>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\" mb-4\">\n <div class=\"\">\n <div class=\"mb-1\">Message:</div>\n <div>\n <div class=\"text-container\" [class.expanded]=\"isExpanded\">{{selectedUserInfo?.message}}\n </div>\n <small class=\"toggle-btn\" *ngIf=\"showButton\" (click)=\"toggleText()\">{{ isExpanded ? 'See\n less' : 'See more' }}</small>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- call insights panel (live data from ClearCall via ClearCallLiveService) -->\n <div class=\"insights-panel\" [ngClass]=\"{'with-contacts': showContactsPanel}\"\n *ngIf=\"showInsightsPanel && !insightsFullscreen && !isMinimised && currentCallList?.length && !showNewCallLoader\">\n <div class=\"insights-header\">\n <span>\u2728 Call Insights</span>\n <span class=\"insights-header-actions\">\n <span class=\"material-symbols-outlined insights-close\" title=\"Full screen\" (click)=\"toggleInsightsFullscreen()\">fullscreen</span>\n <span class=\"material-symbols-outlined insights-close\" (click)=\"toggleInsightsPanel()\">close</span>\n </span>\n </div>\n\n <!-- Live sentiment -->\n <div class=\"insights-section insights-sentiment\" *ngIf=\"clearCallLive.features.liveSentiment; else sentimentOff\">\n <div class=\"sentiment-title\">\n <span>Live Sentiment</span>\n <span class=\"sentiment-value\" *ngIf=\"hasSentiment; else noSentiment\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\">\n {{ insightsSentimentLabel }} \u00B7 {{ clearCallLive.sentimentScore | number:'1.0-0' }}\n </span>\n <ng-template #noSentiment><span class=\"sentiment-value neutral\">\u2014</span></ng-template>\n </div>\n <div class=\"sentiment-bar\">\n <div class=\"sentiment-center\"></div>\n <div class=\"sentiment-fill\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\"\n [ngStyle]=\"insightsSentiment >= 0\n ? {'left': '50%', 'width': (insightsSentiment / 2) + '%'}\n : {'right': '50%', 'width': (-insightsSentiment / 2) + '%'}\"></div>\n </div>\n <div class=\"sentiment-scale\"><span>Negative</span><span>Positive</span></div>\n </div>\n <ng-template #sentimentOff>\n <div class=\"insights-section insights-sentiment\">\n <div class=\"sentiment-title\"><span>Live Sentiment</span></div>\n <ng-container *ngTemplateOutlet=\"featureOff; context: {$implicit: 'Live Sentiment'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- Say Next + AI Suggestion -->\n <ng-container *ngIf=\"clearCallLive.features.contextualResponse; else suggestionsOff\">\n <div class=\"insights-section insights-suggestions\" *ngFor=\"let sec of insightsSections; trackBy: trackByKey\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>{{ sec.title }}</div>\n <ul #suggestScroll class=\"suggestion-list\">\n <li *ngFor=\"let s of sec.items; trackBy: trackById\" [ngClass]=\"[s.kind, isLatest(sec.items, s) ? 'latest' : 'older']\">\n <span class=\"material-symbols-outlined\">{{ sec.icon }}</span>\n <div>\n <div class=\"suggestion-meta\"><span class=\"suggestion-signal\" *ngIf=\"s.signal\">{{ s.signal }}</span><span class=\"suggestion-time\">{{ s.time }}</span><span class=\"suggestion-new\" *ngIf=\"isLatest(sec.items, s)\">Latest</span></div>\n {{ s.text }}\n </div>\n </li>\n </ul>\n <div class=\"insights-empty\" *ngIf=\"!sec.items.length\">{{ insightsStatusText }}</div>\n </div>\n </ng-container>\n <ng-template #suggestionsOff>\n <div class=\"insights-section insights-suggestions\">\n <div class=\"insights-section-title\">Say Next & AI Suggestion</div>\n <ng-container *ngTemplateOutlet=\"featureOff; context: {$implicit: 'Say Next and AI Suggestion are'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- Live transcription -->\n <div class=\"insights-section insights-transcription\" *ngIf=\"clearCallLive.features.liveTranscription; else transcriptionOff\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>Live Transcription</div>\n <div class=\"transcript-list\" #transcriptList>\n <div class=\"transcript-line\" *ngFor=\"let t of insightsTranscript; trackBy: trackByKey\"\n [ngClass]=\"{'self': t.isSelf, 'interim': t.isInterim}\">\n <div class=\"transcript-meta\">{{ t.speaker }} \u00B7 {{ t.time }}</div>\n <div class=\"transcript-text\">{{ t.text }}</div>\n <div class=\"transcript-translation\" *ngIf=\"t.translation\">{{ t.translation }}</div>\n </div>\n <div class=\"insights-empty\" *ngIf=\"!insightsTranscript.length\">{{ insightsStatusText }}</div>\n </div>\n </div>\n <ng-template #transcriptionOff>\n <div class=\"insights-section insights-transcription\">\n <div class=\"insights-section-title\">Live Transcription</div>\n <ng-container *ngTemplateOutlet=\"featureOff; context: {$implicit: 'Live Transcription'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- shared \"feature disabled\" message -->\n <ng-template #featureOff let-name>\n <div class=\"insights-disabled\">\n {{ name }} is disabled.\n <a href=\"javascript:void(0)\" (click)=\"openTranscriptionSettings()\">Enable it in settings</a>\n </div>\n </ng-template>\n </div>\n\n <!-- call insights \u2014 full screen view (separate UI; the regular panel and call UI are only hidden while this is shown) -->\n <div class=\"insights-fs\"\n *ngIf=\"showInsightsPanel && insightsFullscreen && !isMinimised && currentCallList?.length && !showNewCallLoader\">\n <div class=\"insights-fs-header\">\n <span>\u2728 Call Insights</span>\n <span class=\"insights-header-actions\">\n <span class=\"material-symbols-outlined insights-close\" title=\"Exit full screen\" (click)=\"toggleInsightsFullscreen()\">fullscreen_exit</span>\n <span class=\"material-symbols-outlined insights-close\" title=\"Close\" (click)=\"toggleInsightsPanel()\">close</span>\n </span>\n </div>\n\n <div class=\"insights-fs-body\">\n <div class=\"insights-fs-side\">\n <!-- Live sentiment -->\n <div class=\"insights-fs-card\" *ngIf=\"clearCallLive.features.liveSentiment; else fsSentimentOff\">\n <div class=\"sentiment-title\">\n <span>Live Sentiment</span>\n <span class=\"sentiment-value\" *ngIf=\"hasSentiment; else fsNoSentiment\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\">\n {{ insightsSentimentLabel }} \u00B7 {{ clearCallLive.sentimentScore | number:'1.0-0' }}\n </span>\n <ng-template #fsNoSentiment><span class=\"sentiment-value neutral\">\u2014</span></ng-template>\n </div>\n <div class=\"sentiment-bar\">\n <div class=\"sentiment-center\"></div>\n <div class=\"sentiment-fill\"\n [ngClass]=\"insightsSentiment >= 0 ? 'positive' : 'negative'\"\n [ngStyle]=\"insightsSentiment >= 0\n ? {'left': '50%', 'width': (insightsSentiment / 2) + '%'}\n : {'right': '50%', 'width': (-insightsSentiment / 2) + '%'}\"></div>\n </div>\n <div class=\"sentiment-scale\"><span>Negative</span><span>Positive</span></div>\n </div>\n <ng-template #fsSentimentOff>\n <div class=\"insights-fs-card\">\n <div class=\"sentiment-title\"><span>Live Sentiment</span></div>\n <ng-container *ngTemplateOutlet=\"fsFeatureOff; context: {$implicit: 'Live Sentiment'}\"></ng-container>\n </div>\n </ng-template>\n\n <!-- Say Next + AI Suggestion -->\n <ng-container *ngIf=\"clearCallLive.features.contextualResponse; else fsSuggestionsOff\">\n <div class=\"insights-fs-card insights-fs-grow insights-suggestions\" *ngFor=\"let sec of insightsSections; trackBy: trackByKey\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>{{ sec.title }}</div>\n <ul #suggestScroll class=\"suggestion-list\">\n <li *ngFor=\"let s of sec.items; trackBy: trackById\" [ngClass]=\"[s.kind, isLatest(sec.items, s) ? 'latest' : 'older']\">\n <span class=\"material-symbols-outlined\">{{ sec.icon }}</span>\n <div>\n <div class=\"suggestion-meta\"><span class=\"suggestion-signal\" *ngIf=\"s.signal\">{{ s.signal }}</span><span class=\"suggestion-time\">{{ s.time }}</span><span class=\"suggestion-new\" *ngIf=\"isLatest(sec.items, s)\">Latest</span></div>\n {{ s.text }}\n </div>\n </li>\n </ul>\n <div class=\"insights-empty\" *ngIf=\"!sec.items.length\">{{ insightsStatusText }}</div>\n </div>\n </ng-container>\n <ng-template #fsSuggestionsOff>\n <div class=\"insights-fs-card insights-fs-grow\">\n <div class=\"insights-section-title\">Say Next & AI Suggestion</div>\n <ng-container *ngTemplateOutlet=\"fsFeatureOff; context: {$implicit: 'Say Next and AI Suggestion are'}\"></ng-container>\n </div>\n </ng-template>\n </div>\n\n <!-- Live transcription -->\n <div class=\"insights-fs-card insights-fs-main\" *ngIf=\"clearCallLive.features.liveTranscription; else fsTranscriptionOff\">\n <div class=\"insights-section-title\"><span class=\"live-dot\"></span>Live Transcription</div>\n <div class=\"transcript-list\" #transcriptList>\n <div class=\"transcript-line\" *ngFor=\"let t of insightsTranscript; trackBy: trackByKey\"\n [ngClass]=\"{'self': t.isSelf, 'interim': t.isInterim}\">\n <div class=\"transcript-meta\">{{ t.speaker }} \u00B7 {{ t.time }}</div>\n <div class=\"transcript-text\">{{ t.text }}</div>\n <div class=\"transcript-translation\" *ngIf=\"t.translation\">{{ t.translation }}</div>\n </div>\n <div class=\"insights-empty\" *ngIf=\"!insightsTranscript.length\">{{ insightsStatusText }}</div>\n </div>\n </div>\n <ng-template #fsTranscriptionOff>\n <div class=\"insights-fs-card insights-fs-main\">\n <div class=\"insights-section-title\">Live Transcription</div>\n <ng-container *ngTemplateOutlet=\"fsFeatureOff; context: {$implicit: 'Live Transcription'}\"></ng-container>\n </div>\n </ng-template>\n </div>\n\n <!-- call controls (same actions as the active-call view) -->\n <div class=\"insights-fs-controls\">\n <!-- keypad pop-over (own state \u2014 does not touch the regular call UI's keypad) -->\n <div class=\"insights-fs-keypad\" *ngIf=\"fsKeypadOpen\">\n <div class=\"insights-fs-keypad-display\">{{ callInput || 'Enter digits' }}</div>\n <div class=\"insights-fs-keypad-grid\">\n <button type=\"button\" class=\"insights-fs-key\" *ngFor=\"let key of keypadVal\" (click)=\"onCallInputs(key.num)\">\n {{ key.num }}\n <span>{{ key.text ? key.text : ' ' }}</span>\n </button>\n </div>\n </div>\n\n <!-- who / how long -->\n <div class=\"insights-fs-callinfo\">\n <div class=\"insights-fs-callname\">{{ fsCallName }}</div>\n <div class=\"insights-fs-callnumber\" *ngIf=\"fsCallNumber\">{{ fsCallNumber }}</div>\n <div class=\"insights-fs-callduration\"><span class=\"material-symbols-outlined\">timer</span>{{ timer }}</div>\n </div>\n\n <!-- actions -->\n <div class=\"insights-fs-actions\">\n <button class=\"circle-btn\" [ngClass]=\"{'active': isSelfEffectivelyMuted()}\"\n [disabled]=\"(!isConference && !currentCall?.isAcceptCall) || !canSelfToggleMute()\"\n [title]=\"selfMuteTooltip()\" (click)=\"toggleMute(isConference)\">\n <span class=\"material-symbols-outlined\"> {{ isSelfEffectivelyMuted() ? 'mic_off' : 'mic' }} </span>\n </button>\n <button class=\"circle-btn\" [ngClass]=\"{'active': fsKeypadOpen}\" title=\"Keypad\"\n [disabled]=\"!isConference && !currentCall?.isAcceptCall\" (click)=\"fsKeypadOpen = !fsKeypadOpen; callInput = ''\">\n <span class=\"material-symbols-outlined\"> transition_dissolve </span>\n </button>\n <button class=\"circle-btn\" title=\"Participants\"\n [disabled]=\"!isConference && !currentCall?.isAcceptCall\" (click)=\"openParticipantsFromFullscreen()\">\n <span class=\"material-symbols-outlined\"> groups_2 </span>\n </button>\n <!-- recording -->\n <button class=\"circle-btn\" *ngIf=\"!isRecording\" title=\"Start recording\"\n [disabled]=\"(!isConference && !currentCall?.isAcceptCall) || userSettingInfo?.callRecording == 'N'\"\n (click)=\"toggleRecording()\">\n <span class=\"insights-fs-rec-dot\"></span>\n </button>\n <ng-container *ngIf=\"isRecording\">\n <button class=\"circle-btn active\" title=\"Stop recording\" (click)=\"toggleRecording()\">\n <span class=\"material-symbols-outlined\"> stop </span>\n </button>\n <button class=\"circle-btn\" *ngIf=\"!isPaused\" title=\"Pause recording\" (click)=\"pauseRecording()\">\n <span class=\"material-symbols-outlined\"> pause </span>\n </button>\n <button class=\"circle-btn\" *ngIf=\"isPaused\" title=\"Resume recording\" (click)=\"resumeRecording()\">\n <span class=\"material-symbols-outlined\"> play_arrow </span>\n </button>\n <span class=\"insights-fs-rec-time\">{{ getFormattedTime() }}</span>\n </ng-container>\n <!-- end call -->\n <button class=\"circle-btn danger\" title=\"End call\" *ngIf=\"isConference; else fsEndSingle\"\n (click)=\"endConfereneceCall(currentConferenceCall?.participants[0])\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n <ng-template #fsEndSingle>\n <button class=\"circle-btn danger\" title=\"End call\" [disabled]=\"!currentCall?.isAcceptCall\"\n (click)=\"endCall(false, currentCall)\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </ng-template>\n </div>\n <div class=\"insights-fs-controls-spacer\"></div>\n </div>\n\n <ng-template #fsFeatureOff let-name>\n <div class=\"insights-disabled\">\n {{ name }} is disabled.\n <a href=\"javascript:void(0)\" (click)=\"openTranscriptionSettings()\">Enable it in settings</a>\n </div>\n </ng-template>\n </div>\n\n <!-- contact list panel -->\n <div class=\"contacts-panel\"*ngIf=\"showContactsPanel && !showNewCallLoader\">\n <div class=\"panel-loader-overlay p-3 text-center\" *ngIf=\"isParticipantPanelLoading\">\n <div class=\"spinner-border text-secondary\" role=\"status\">\n <span class=\"sr-only\">Loading...</span>\n </div>\n <p class=\"mt-2\"></p>\n </div>\n <div class=\"contacts-header\">\n <div class=\"participant-list-title\">\n {{ selectedConfName || 'Conference' }} Participants\n <!-- <ng-container *ngIf=\"totalParticipantsCount < 3; else confHeading\">\n Call Participants\n </ng-container>\n <ng-template #confHeading>\n </ng-template> -->\n </div>\n <div class=\"d-flex justify-content-between\">\n <span class=\"material-symbols-outlined settings-icon me-2\" *ngIf=\"isConferenceHost\" (click)=\"toggleSettingsPanel()\">\n settings\n </span>\n <span class=\"material-symbols-outlined dial-close-btn\" (click)=\"toggleContactsPanel({}, true)\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"\n fill=\"#000000\">\n <path\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" />\n </svg>\n </span>\n </div>\n </div>\n <div class=\"settings-overlay\" *ngIf=\"showSettingsPanel\" (click)=\"closeSettingsPanel()\">\n <div class=\"settings-drawer\" (click)=\"$event.stopPropagation()\">\n <div class=\"settings-header\">\n <span class=\"material-symbols-outlined\" (click)=\"closeSettingsPanel()\">arrow_back</span>\n <span>Call Settings</span>\n <span></span> <!-- placeholder for alignment -->\n </div>\n \n <div class=\"settings-body\">\n <!-- Mute all participants -->\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>Mute all participants</span>\n <small>Off \u2014 participants can mute and unmute themselves at any time.</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.muteAll\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"onMuteAllToggle($event)\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n \n <hr>\n \n <!-- Participant Permissions -->\n <div class=\"setting-group\">\n <h6>PARTICIPANT PERMISSIONS</h6>\n \n <!-- Allow unmute -->\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>\n <svg viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3Z\" stroke=\"currentColor\" stroke-width=\"1.8\"></path>\n <path d=\"M19 10v2a7 7 0 0 1-14 0v-2M12 19v3\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"></path>\n </svg>\n Allow participants to self-unmute\n </span>\n <small>{{ settings.allowUnmute ? 'Yes \u2014 participants can unmute themselves after being muted\n individually by the host.' : 'No \u2014 participants cannot unmute themselves.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowUnmute\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowUnmute = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n \n <!-- Allow remove -->\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>\n <svg viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M17 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M15 3.13a4 4 0 0 1 0 7.75\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"></path>\n <circle cx=\"9\" cy=\"7\" r=\"4\" stroke=\"currentColor\" stroke-width=\"1.8\"></circle>\n <path d=\"M19 8h4\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"></path>\n </svg>\n Allow participants to remove\n </span>\n <small>{{ settings.allowRemove ? 'Yes \u2014 participants can remove other participants.' : 'No \u2014\n participants cannot remove other participants, and cannot remove the host.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowRemove\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowRemove = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>Allow participants to unhold</span>\n <small>{{ settings.allowUnhold ? 'Yes \u2014 participants can place themselves on hold.' : 'No \u2014\n participants cannot place themselves on hold.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowUnhold\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowUnhold = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n <div class=\"setting-item\">\n <div class=\"setting-label\">\n <span>Allow participants to mute other participants</span>\n <small>{{ settings.allowMuteOthers ? 'Yes \u2014 Participants can mute other participants, and can mute the host.' : 'No \u2014\n Participants cannot mute other participants, and cannot mute the host.' }}</small>\n </div>\n <label class=\"switch\">\n <input type=\"checkbox\" [ngModel]=\"settings.allowMuteOthers\" [disabled]=\"isUpdatingConferenceSettings\"\n (ngModelChange)=\"settings.allowMuteOthers = $event; updateConferenceSettings()\">\n <span class=\"switch-slider\"></span>\n </label>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- SEARCH INPUT (visible when isSearchVisible = true) -->\n <div class=\"search-bar p-3 position-relative\">\n <input type=\"text\" [placeholder]=\"isSpecialCall() ? 'Search by Name or Number for a new call' : 'Add a participant by Name or Number'\"\n [title]=\"isSpecialCall() ? 'Adding participants is not allowed on this call' : 'Add a participant by Name or Number'\" [(ngModel)]=\"searchText\" (input)=\"applyFilter()\" />\n <div class=\"search-contacts-list\">\n <ng-container *ngFor=\"let c of filteredList\">\n <div class=\"contact-item\" *ngIf=\"searchText\">\n <img class=\"contact-avatar\" [src]=\"c?.image || 'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-name\">{{c?.firstName}} {{c?.middleName}} {{c?.lastName}}</div>\n <div class=\"contact-title\">{{ (c?.numbersList && c?.numbersList[0]?.number) }}{{ c?.numbersList[0]?.numberLabel ? ' (' + c.numbersList[0].numberLabel + ')' : '' }}</div>\n </div>\n <button class=\"contact-call-btn contact-add-btn mr-2\" (click)=\"callContact(c)\"\n *ngIf=\"!c?.IsConnected && !isSpecialCall()\" title=\"Add to call\">\n <span class=\"material-symbols-outlined\"> add </span>\n </button>\n <button class=\"contact-call-btn\" (click)=\"CallToUnsavedNumber(c?.numbersList[0]?.number, true)\"\n *ngIf=\"!c?.IsConnected\" title=\"New Call\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!filteredList.length && isDirectCallOptionShow && searchText\">\n <div class=\"contact-item\">\n <img class=\"contact-avatar\" [src]=\"'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-title\">{{ searchText }}</div>\n </div>\n <button class=\"contact-call-btn contact-add-btn mr-2\" (click)=\"CallToUnsavedNumber(searchText)\"\n *ngIf=\"!isSpecialCall()\" title=\"Add to call\">\n <span class=\"material-symbols-outlined\"> add </span>\n </button>\n <button class=\"contact-call-btn\" (click)=\"CallToUnsavedNumber(searchText, true)\"\n title=\"New Call\">\n <span class=\"material-symbols-outlined\"> call </span>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <div class=\"contacts-list\">\n <div class=\"px-2\">\n <h5 class=\"mb-0 title\">Active participants ({{ activeParticipantsCount }})</h5>\n </div>\n <hr class=\"mb-2 mt-1\">\n <ng-container *ngFor=\"let c of filteredParticipentList\">\n <div class=\"contact-item\" *ngIf=\"!c?.isLeft\">\n <img class=\"contact-avatar\" *ngIf=\"!c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.toImage || 'assets/images/user.jpg' : c?.fromImage || 'assets/images/user.jpg'\" alt=\"\" />\n <img class=\"contact-avatar\" *ngIf=\"c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.fromImage || 'assets/images/user.jpg' : c?.toImage || 'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-name\" *ngIf=\"!c?.client\">{{c?.direction == 'outgoing-call' ? c?.toName || 'Unknown' : c?.fromName || 'Unknown'}}\n </div>\n <div class=\"contact-title\" *ngIf=\"!c?.client\">{{ c?.direction == 'outgoing-call' ? c?.to || 'Unknown' : c?.from || 'Unknown'}}</div>\n\n <div class=\"contact-name\" *ngIf=\"c?.client\">\n <ng-container *ngIf=\"!isSelfNumber(c) else selfNumber\">\n <span>{{c?.direction == 'outgoing-call' ? c?.fromName || 'Unknown' : c?.toName || 'Unknown'}}</span>\n </ng-container>\n <ng-template #selfNumber>\n <span>You</span>\n </ng-template>\n </div>\n <div class=\"contact-title\" *ngIf=\"c?.client\">{{ c?.direction == 'outgoing-call' ? c?.from || 'Unknown' : c?.to || 'Unknown'}}</div>\n <div class=\"d-flex\" *ngIf=\"c?.host\">\n <span class=\"organizer-label\">Organizer</span>\n </div>\n </div>\n <ng-container *ngIf=\"c?.joined && !c?.host\">\n <div class=\"connecting-wrapper mr-2\">\n <span class=\"ringing-text\">Ringing</span>\n <span class=\"dots\">\n <span>.</span>\n <span>.</span>\n <span>.</span>\n </span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"c?.host && c?.isHold && !(deviceNumberList.includes(c?.from) || (deviceNumberList.includes(c?.to) && c?.direction == 'incoming-call'))\">\n <div class=\"connecting-wrapper mr-2\">\n <span class=\"onHold-text\">On Hold</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!c?.joined || c?.host\">\n <button class=\"mic-btn mr-2\" [disabled]=\"c?.isHold || !canToggleMute(c)\" [title]=\"muteTooltip(c)\" (click)=\"onMuteUser(c)\">\n <span class=\"material-symbols-outlined\" *ngIf=\"isEffectivelyMuted(c)\"> mic_off </span>\n <span class=\"material-symbols-outlined\" *ngIf=\"!isEffectivelyMuted(c)\"> mic </span>\n </button>\n <button class=\"conference-hold-contact mr-2\" [ngClass]=\"{ 'on-hold': c?.isHold }\"\n (click)=\"onHoldCall(c)\" *ngIf=\"!c?.host || (c?.host && (deviceNumberList.includes(c?.from) || (deviceNumberList.includes(c?.to) && c?.direction == 'incoming-call')))\" [disabled]=\"isHoldBtnDisable || !canToggleHold(c)\">\n <span *ngIf=\"!c?.isHold\" class=\"material-symbols-outlined\" [title]=\"canToggleHold(c) ? 'Hold' : holdTooltip(c)\"> phone_paused</span>\n <span *ngIf=\"c?.isHold\" class=\"material-symbols-outlined\" [title]=\"canToggleHold(c) ? 'Resume' : holdTooltip(c)\"> resume </span>\n </button>\n </ng-container>\n <button class=\"conference-contact\" (click)=\"confirmLeaveParticipant(c)\"\n [disabled]=\"!canRemoveParticipant(c)\" [title]=\"removeTooltip(c)\" *ngIf=\"!c?.host\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n <button class=\"conference-contact\" (click)=\"endConfereneceCall(c)\"\n *ngIf=\"c?.host && (deviceNumberList.includes(c?.from) || (deviceNumberList.includes(c?.to) && c?.direction == 'incoming-call'))\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n </div>\n </ng-container>\n <hr class=\"m-2\">\n <div class=\"mt-3 px-2\">\n <h5 class=\"mb-0 title\">Participant added to the call</h5>\n </div>\n <hr class=\"mb-2 mt-1\">\n <ng-container *ngFor=\"let c of filteredParticipentList\">\n <div class=\"contact-item\" *ngIf=\"c?.isLeft\">\n <img class=\"contact-avatar\" *ngIf=\"!c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.toImage || 'assets/images/user.jpg' : c?.fromImage || 'assets/images/user.jpg'\" alt=\"\" />\n <img class=\"contact-avatar\" *ngIf=\"c?.client\"\n [src]=\"c?.direction == 'outgoing-call' ? c?.fromImage || 'assets/images/user.jpg' : c?.toImage || 'assets/images/user.jpg'\" alt=\"\" />\n <div class=\"contact-info\">\n <div class=\"contact-name\" *ngIf=\"!c?.client\">{{c?.direction == 'outgoing-call' ? c?.toName || 'Unknown' : c?.fromName || 'Unknown'}}\n </div>\n <div class=\"contact-title\" *ngIf=\"!c?.client\">{{ c?.direction == 'outgoing-call' ? c?.to || 'Unknown' : c?.from || 'Unknown'}}</div>\n <div class=\"contact-name\" *ngIf=\"c?.client\">{{c?.direction == 'outgoing-call' ? c?.fromName || 'Unknown' : c?.toName || 'Unknown'}}\n </div>\n <div class=\"contact-title\" *ngIf=\"c?.client\">{{ c?.direction == 'outgoing-call' ? c?.from || 'Unknown' : c?.to || 'Unknown'}}</div>\n <div class=\"d-flex\" *ngIf=\"c?.host\">\n <span class=\"organizer-label\">Organizer</span>\n </div>\n </div>\n <div class=\"connecting-wrapper\" *ngIf=\"c?.joined\">\n <span class=\"ringing-text\">Ringing</span>\n <span class=\"dots\">\n <span>.</span>\n <span>.</span>\n <span>.</span>\n </span>\n </div>\n <button class=\"conference-contact\" (click)=\"onEndCall(c, false, true)\" *ngIf=\"!c?.host && c?.joined\">\n <span class=\"material-symbols-outlined\" title=\"Call End\"> call_end </span>\n </button>\n <button class=\"contact-call-btn contact-add-btn\" *ngIf=\"!c?.client && !c?.joined && !c?.businessNumber\"\n (click)=\"CallToUnsavedNumber(c.direction == 'outgoing-call' ? c?.to : c?.from, false, { skipDuplicateCheck: true }, c)\">\n <span class=\"material-symbols-outlined\"> add </span>\n <span class=\"label\">Rejoin</span>\n </button>\n <button class=\"contact-call-btn contact-add-btn\" *ngIf=\"c?.client && !c?.joined && !c?.businessNumber\"\n (click)=\"CallToUnsavedNumber(c.direction == 'outgoing-call' ? c?.from : c?.to, false, { skipDuplicateCheck: true }, c)\">\n <span class=\"material-symbols-outlined\"> add </span>\n <span class=\"label\">Rejoin</span>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n\n <!-- Conference Warning Modal -->\n<div class=\"custom-modal\" *ngIf=\"showConferenceWarningModal\">\n <div class=\"modal-content warning-modal\">\n <div class=\"warning-icon\">\n <span class=\"material-symbols-outlined\">warning</span>\n </div>\n <h3>Warning</h3>\n <p>\n Starting a new call will put the current call on hold\n and cannot be merged later.\n </p>\n <div class=\"warning-actions\">\n <button class=\"cancel-btn\" (click)=\"cancelNewCall()\">\n Cancel\n </button>\n <button class=\"proceed-btn\" (click)=\"confirmNewCall()\">\n Proceed\n </button>\n </div>\n </div>\n</div>\n\n<!-- Special Call Charges Modal (call screen open: active/held conference + new call).\n First call (no call screen yet) is shown by dialbox over its \"Connecting...\" loader. -->\n<div class=\"custom-modal\" *ngIf=\"twilioService.specialCallConfirm?.inCallScreen\">\n <div class=\"modal-content warning-modal\">\n <div class=\"warning-icon\">\n <span class=\"material-symbols-outlined\">warning</span>\n </div>\n <h3>Call Charges</h3>\n <p *ngIf=\"twilioService.specialCallConfirm?.message\">{{ twilioService.specialCallConfirm?.message }}</p>\n <p *ngIf=\"!twilioService.specialCallConfirm?.message\">\n Additional charges apply to this call. Do you want to proceed?\n </p>\n <div class=\"warning-actions\">\n <button class=\"cancel-btn\" (click)=\"onSpecialCallChargesAction(false)\">\n Cancel\n </button>\n <button class=\"proceed-btn\" (click)=\"onSpecialCallChargesAction(true)\">\n Proceed\n </button>\n </div>\n </div>\n</div>\n</div>\n\n<div class=\"min-call-container\" *ngIf=\"isMinimised\">\n <span class=\"material-symbols-outlined fullscreen\" (click)=\"maximiseDialpad()\"> open_in_full </span>\n <div style=\"display: flex; width: 100%\">\n <div>\n <div class=\"min-call-animation\" id=\"call-avatar\">\n <img class=\"min-avatar-img\" [src]=\"callData.img\" alt=\"\" />\n </div>\n </div>\n <div>\n <div class=\"min-callerDetails\">\n <div class=\"name\">\n {{callData.name}}\n </div>\n <p style=\"margin: 0\">{{callData.displayNum ? callData.displayNum : callData.phone }}</p>\n </div>\n </div>\n </div>\n <div class=\"min-btn-container\">\n <div class=\"min-timer\">{{timer}}</div>\n <button class=\"min-call-sec-btn\" (click)=\"toggleMute()\" [disabled]=\"disbaleEndCallBtn || !canSelfToggleMute()\" [title]=\"selfMuteTooltip()\">\n <span class=\"material-symbols-outlined\" *ngIf=\"isSelfEffectivelyMuted()\"> mic_off </span>\n <span class=\"material-symbols-outlined\" *ngIf=\"!isSelfEffectivelyMuted()\"> mic </span>\n </button>\n <button class=\"min-call-btn end-call-btn\" [disabled]=\"disbaleEndCallBtn\" (click)=\"endCall()\">\n <span class=\"material-symbols-outlined\"> call_end </span>\n </button>\n </div>\n</div>\n<!-- Call Disconnect Modal -->\n<div class=\"custom-modal\" *ngIf=\"showDisconnectModal\">\n <div class=\"modal-content p-3\">\n <div class=\"contacts-header p-0 pb-2\">\n <h4 class=\"title mb-0\">{{selectedConf?.conName || 'Call'}} Disconnect</h4>\n <div class=\"d-flex justify-content-between\">\n <span class=\"material-symbols-outlined dial-close-btn\" (click)=\"showDisconnectModal = false\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"\n fill=\"#000000\">\n <path\n d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" />\n </svg>\n </span>\n </div>\n </div>\n <div class=\"contant-body mb-2\">\n <p class=\"mt-2\">\n Exiting this call will not end the conference. The session will continue, and charges will incur to\n your\n account.\n </p>\n </div>\n <div class=\"button-group\">\n <div class=\"text-start d-flex align-items-center\">\n <label class=\"d-flex align-items-center mb-0 mr-2\">\n <input type=\"checkbox\" [(ngModel)]=\"isReasonChecked\" (ngModelChange)=\"onReasonCheckChanged($event)\" class=\"me-2\"/>\n </label>\n <div class=\"time-picker-24hr\">\n <!-- Hour picker -->\n <div class=\"custom-time-select\" [class.disabled-picker]=\"!isReasonChecked\">\n <div class=\"custom-time-display\" (click)=\"isReasonChecked && toggleHourDropdown()\">\n {{ leaveHour || 'HH' }}\n <span class=\"picker-arrow\">▼</span>\n </div>\n <div class=\"custom-time-options\" *ngIf=\"showHourDropdown\">\n <div class=\"custom-time-option\"\n *ngFor=\"let h of hours\"\n [class.selected]=\"leaveHour === h\"\n (click)=\"selectHour(h)\">{{ h }}</div>\n </div>\n </div>\n <span class=\"time-sep\">:</span>\n <!-- Minute picker -->\n <div class=\"custom-time-select\" [class.disabled-picker]=\"!isReasonChecked\">\n <div class=\"custom-time-display\" (click)=\"isReasonChecked && toggleMinuteDropdown()\">\n {{ leaveMinute || 'MM' }}\n <span class=\"picker-arrow\">▼</span>\n </div>\n <div class=\"custom-time-options\" *ngIf=\"showMinuteDropdown\">\n <div class=\"custom-time-option\"\n *ngFor=\"let m of minutes\"\n [class.selected]=\"leaveMinute === m\"\n (click)=\"selectMinute(m)\">{{ m }}</div>\n </div>\n </div>\n </div>\n </div>\n <button class=\"btn end-btn\" (click)=\"leaveConference()\" [disabled]=\"isReasonChecked && (!leaveHour || !leaveMinute)\">\n Leave\n </button>\n <button class=\"btn end-btn\" (click)=\"endConference()\" *ngIf=\"showEndAllButton\">\n End All\n </button>\n </div>\n </div>\n</div>\n<div class=\"custom-modal\" *ngIf=\"showLeaveConfirmationModal\">\n <div class=\"modal-content warning-modal\">\n <div class=\"warning-icon\">\n <span class=\"material-symbols-outlined\">info</span>\n </div>\n <h3>Leave Conference</h3>\n <p>\n You are about to leave <strong>{{ leaveConfConferenceName }}</strong>. \n Are you sure?\n </p>\n <div class=\"warning-actions\">\n <button class=\"cancel-btn\" (click)=\"cancelLeave()\">Cancel</button>\n <button class=\"proceed-btn\" (click)=\"confirmLeave()\">Leave</button>\n </div>\n </div>\n</div>", styles: [".call-container{width:385px;height:646px!important;margin:auto;border-radius:20px;box-shadow:6px 6px 10px -1px #00000026,-5px -4px 10px -1px #00000026;display:flex;box-sizing:border-box;position:relative;justify-content:center;align-items:center;z-index:1000;flex-flow:column;overflow-x:hidden;overflow-y:visible}.disabled{opacity:.5!important;pointer-events:none!important}.call-to-text{padding:6px 10px;border:1px solid #c2c2c2;border-radius:20px;font-size:13px}.collops{height:660px!important}.incoming-call-container{flex-flow:row!important}.active-call{width:385px!important}.call-animation{background:#fff;width:100px;height:100px;position:relative;margin:20px auto 0;border-radius:100%;border:solid 4px #fff;display:flex;align-items:center;justify-content:center}.call-animation:before{position:absolute;content:\"\";top:0;left:0;width:100%;height:100%;backface-visibility:hidden;border-radius:50%}.call-animation-play{animation:play 3s linear infinite}.call-info-wrapper{height:20px;overflow-y:auto;background:white;transition:height 1s}.open-collops{height:180px!important}.avatar-img{width:94px;height:94px;border-radius:100%}@keyframes play{0%{transform:scale(1)}15%{box-shadow:0 0 0 2px #fff6}25%{box-shadow:0 0 0 4px #fff6,0 0 0 8px #fff3}25%{box-shadow:0 0 0 8px #fff6,0 0 0 16px #fff3}50%{box-shadow:0 0 0 10px #fff6,0 0 0 20px #fff3}to{box-shadow:0 0 0 10px #fff6,0 0 0 20px #fff3;transform:scale(1.1);opacity:0}}.callerDetails{margin-top:8px;color:#fff;display:flex;flex-direction:column;align-items:center}.togglearrow-arrow{left:100%;background-color:#fff;width:25px;height:25px;text-align:center;cursor:pointer;border:1px solid #ccc;border-radius:50%;line-height:22px}.togglearrow-arrow.disabled{opacity:.3;cursor:not-allowed;pointer-events:none}.search-bar input{width:100%;padding:8px;border:1px solid #ccc;border-radius:4px;outline:none}.togglearrow-arrow.disabled:hover{opacity:.3;cursor:not-allowed}.callerDetails h1{width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:12px 0 0;color:#fff;text-transform:capitalize;text-align:center}.callerDetails h4{margin:0;color:#fff}.tx-black,.title{color:#000!important}.callerDetails p{margin-top:-3px;margin-bottom:0;color:#fff}.call-sec-btn,.mic-btn{position:relative;box-sizing:border-box;border:1px solid #cccbcb;background-color:transparent;border-radius:25px;padding:12px;box-shadow:6px 6px 10px -1px #bebebe26,-5px -4px 10px -1px #d2d2d226;width:50px;height:50px}.mic-btn{padding:5px;width:37px;height:37px}.receive-btn{background-color:#28a745!important;color:#fff!important}.receive-btn span{color:#fff!important}.scroll-container{width:100%;overflow:hidden;white-space:nowrap;position:relative}.scroll-text{display:inline-block;padding-left:100%;animation:scroll-left 12s linear infinite;font-size:16px}@keyframes scroll-left{0%{transform:translate(0)}to{transform:translate(-100%)}}.call-sec-btn span{color:#cccbcb}.call-btn{width:60px;height:60px;background-color:#fff;border-radius:30px;box-sizing:border-box;border:2px solid white;margin:0 16px}.end-call-btn{background-color:#e14e4e}.end-call-btn span{color:#fff!important}.call-btn span{color:#234de8}.btn-container{display:flex;flex-wrap:wrap;padding:0 30px}.key-btn{width:50px;height:50px;background-color:transparent;text-align:center;box-sizing:border-box;margin:0 18px;font-size:22px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:Lato,sans-serif;font-weight:900;font-style:normal;color:#d3d3d3;cursor:pointer;opacity:.8}.call-action-btns{text-align:center}#call-input{background-color:transparent;border:none;outline:none;text-align:center;color:#fff}.sendDigit{position:relative;text-align:center;width:80%;margin:auto;background-color:#ffffff1a;padding:2px 0;border-radius:3px}.input-clear-btn{position:absolute;right:6px;color:#fff;cursor:pointer}#minimize-btn-div{position:absolute;right:14px;top:12px;z-index:10}.minimize-btn{color:#fff;cursor:pointer}.wave-container{position:absolute;bottom:0;overflow:hidden;width:100%}.waves{width:660px;position:relative;margin-bottom:-7px;height:40px;min-height:40px}.held-call-banner{position:absolute;top:0;left:0;right:0;z-index:2100;box-shadow:0 4px 12px #0000004d;border-radius:0 0 16px 16px;max-height:220px;overflow-y:auto}.held-call-content{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 6px;border-bottom:1px dotted #4b4b4b;border-left:3px solid transparent;transition:background .15s ease,border-left-color .15s ease;cursor:pointer}.held-call-content.held-call-selected{background:rgba(255,255,255,.15);border-left-color:#fff;border-radius:0 6px 6px 0}.held-main-label{font-size:13px;color:#fff;text-transform:uppercase;letter-spacing:.5px}.fa-info{font-size:smaller!important}.held-info{display:flex;align-items:center;gap:10px;flex:1}.hold-icon{font-size:24px;color:#fbbf24}.swap-icon{font-size:24px}.held-caller{display:flex;flex-direction:column;gap:2px}.held-label{font-size:10px;color:#ffffffb3;text-transform:uppercase;letter-spacing:.5px}.held-name{font-size:14px;font-weight:600;color:#fff}.held-number{font-size:13px;font-weight:500;color:#fff}.held-actions{display:flex;gap:8px;align-items:center}.held-btn{padding:6px 16px;border-radius:20px;border:none;font-size:13px;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}.held-btn:hover{transform:scale(1.05);box-shadow:0 4px 12px #0003}.swap-btn{background:#3b82f6;color:#fff}.merge-btn{background:#10b981;color:#fff}.h-77px{height:77px}.incoming-banners-container{width:100%;padding:5px 8px;height:100%;gap:8px;overflow-y:auto}.call-container-model{width:385px!important;height:646px!important;margin:auto 0 0 1px;border-radius:20px;box-shadow:6px 6px 10px -1px #00000026,-5px -4px 10px -1px #00000026;display:flex;box-sizing:border-box;position:relative;overflow:hidden;justify-content:center;align-items:center}.incoming-banner{top:0;left:0;width:100%;right:0;background:linear-gradient(135deg,#1e3a8a 0%,#3b82f6 100%);padding:12px 16px;z-index:2000;box-shadow:0 4px 12px #0003;border-radius:16px}.incoming-banner-content{display:flex;align-items:center;justify-content:space-between;gap:12px}.incoming-info{flex:1;display:flex;flex-direction:column;gap:4px}.incoming-label{font-size:11px;color:#fffc;text-transform:uppercase;letter-spacing:.5px}.incoming-caller{display:flex;flex-direction:column;gap:2px}.caller-name{font-size:15px;font-weight:600;color:#fff}.caller-number{font-size:13px;color:#ffffffe6}.incoming-actions{display:flex;gap:8px;align-items:center}.banner-btn{width:44px;height:44px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s}.banner-btn:hover{transform:scale(1.1)}.banner-btn .material-symbols-outlined{font-size:20px}.accept-btn{background:#10b981}.accept-btn .material-symbols-outlined{color:#fff}.reject-btn{background:#ef4444}.reject-btn .material-symbols-outlined{color:#fff}.contacts-panel{position:absolute;top:0;bottom:12px;width:340px;background:#ffffff;border-radius:16px;box-shadow:0 10px 25px #00000026;display:flex;flex-direction:column;overflow:hidden;height:40.4rem;left:24.1rem;z-index:1000000;color:#111827!important}.insights-panel{position:absolute;top:0;bottom:12px;width:340px;height:40.4rem;left:24.1rem;background:#f8fafc;border-radius:16px;box-shadow:0 10px 25px #00000026;display:flex;flex-direction:column;overflow:hidden;z-index:1000000;color:#111827}.insights-panel.with-contacts{left:calc(24.1rem + 352px)}.insights-header{height:52px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;font-weight:600;font-size:15px}.insights-header-actions{display:flex;align-items:center;gap:10px}.insights-fs{position:fixed;inset:0;z-index:1000010;display:flex;flex-direction:column;background:#f8fafc;color:#111827}.insights-fs-header{height:56px;flex-shrink:0;display:flex;align-items:center;gap:12px;padding:0 24px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;font-weight:600;font-size:16px}.insights-fs-header .insights-header-actions{margin-left:auto}.insights-fs-header .insights-close{font-size:24px}.insights-fs-timer{font-size:13px;font-weight:500;opacity:.85}.insights-fs-body{flex:1;min-height:0;display:flex;gap:16px;padding:16px 24px}.insights-fs-side{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column;gap:16px}.insights-fs-card{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f;padding:14px 16px}.insights-fs-grow{flex:1;min-height:0;overflow-y:auto}.insights-fs-main{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column}.insights-fs-main .transcript-list{flex:1}.insights-fs-main .transcript-text{font-size:14px}.insights-fs-controls{position:relative;flex-shrink:0;display:flex;align-items:center;gap:24px;padding:12px 24px;background:#fff;border-top:1px solid #e5e7eb}.insights-fs-callinfo,.insights-fs-controls-spacer{flex:1;min-width:0}.insights-fs-callname{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insights-fs-callnumber{font-size:12.5px;color:#64748b}.insights-fs-callduration{display:flex;align-items:center;gap:4px;font-size:12.5px;color:#4f46e5;font-weight:600}.insights-fs-callduration .material-symbols-outlined{font-size:15px}.insights-fs-actions{display:flex;align-items:center;justify-content:center;gap:16px}.insights-fs-rec-dot{width:14px;height:14px;border-radius:50%;background:#ef4444;display:inline-block}.insights-fs-rec-time{font-size:13px;font-weight:600;color:#ef4444;min-width:40px}.insights-fs-keypad{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;width:260px;padding:12px;background:#fff;border-radius:14px;box-shadow:0 10px 25px #00000026}.insights-fs-keypad-display{min-height:28px;margin-bottom:8px;text-align:center;font-size:18px;letter-spacing:.08em;color:#111827;word-break:break-all}.insights-fs-keypad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.insights-fs-key{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1;height:52px;border:none;border-radius:10px;background:#f1f5f9;font-size:18px;font-weight:600;cursor:pointer}.insights-fs-key:hover{background:#e2e8f0}.insights-fs-key span{font-size:9px;font-weight:500;color:#64748b;letter-spacing:.08em}@media (max-width: 760px){.insights-fs-body{flex-direction:column}.insights-fs-side{flex:0 0 auto;max-height:45%}}.insights-close{cursor:pointer;opacity:.85;font-size:20px}.insights-close:hover{opacity:1}.insights-section-title{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.06em;color:#64748b;text-transform:uppercase;margin-bottom:8px}.live-dot{width:7px;height:7px;border-radius:50%;background:#ef4444;animation:insightsPulse 1.4s infinite}@keyframes insightsPulse{0%,to{opacity:1}50%{opacity:.25}}.insights-sentiment{flex-shrink:0;margin:10px 12px 0;padding:8px 12px;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f}.sentiment-title{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;letter-spacing:.06em;color:#64748b;text-transform:uppercase}.sentiment-value{font-size:11px;font-weight:700;padding:1px 8px;border-radius:10px;letter-spacing:0;text-transform:none}.sentiment-value.positive{color:#15803d;background:#dcfce7}.sentiment-value.negative{color:#b91c1c;background:#fee2e2}.sentiment-value.neutral{color:#64748b;background:#f1f5f9}.insights-disabled{font-size:12px;color:#64748b;text-align:center;padding:10px 0}.insights-disabled a{color:#4f46e5;font-weight:600;text-decoration:underline;cursor:pointer}.insights-empty{font-size:12px;color:#94a3b8;text-align:center;padding:10px 0}.insights-suggestions li.coaching{background:#eef2ff;border-left-color:#6366f1}.insights-suggestions li.coaching .material-symbols-outlined{color:#4f46e5}.suggestion-signal{display:inline-block;font-size:10px;font-weight:700;text-transform:uppercase;color:#4f46e5;background:#e0e7ff;border-radius:8px;padding:0 6px;margin-right:4px}.transcript-line.interim{opacity:.65;font-style:italic}.transcript-translation{font-size:11.5px;color:#64748b;border-top:1px dashed #cbd5e1;margin-top:3px;padding-top:2px}.sentiment-bar{position:relative;height:8px;margin:7px 0 3px;background:linear-gradient(90deg,#ef0000,#e5e7eb 50%,#00b050);border-radius:4px;overflow:hidden}.sentiment-center{position:absolute;left:50%;top:0;bottom:0;width:2px;background:#94a3b8;z-index:1}.sentiment-fill{position:absolute;top:0;bottom:0;transition:width .5s ease}.sentiment-fill.positive{background:transparent;border-right:3px solid #0f172a;box-sizing:border-box}.sentiment-fill.negative{background:transparent;border-left:3px solid #0f172a;box-sizing:border-box}.sentiment-scale{display:flex;justify-content:space-between;font-size:10px;color:#94a3b8}.insights-suggestions{flex:1;min-height:0;margin:10px 12px 0;padding:10px 12px;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f;overflow-y:auto}.insights-suggestions ul{list-style:none;margin:0;padding:0}.insights-suggestions li{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.35;padding:8px 10px;margin-bottom:6px;background:#fffbeb;border-left:3px solid #f59e0b;border-radius:8px}.insights-suggestions li .material-symbols-outlined{font-size:16px;color:#d97706;margin-top:1px}.insights-transcription{flex:0 0 40%;min-height:0;margin:10px 12px 12px;padding:10px 12px;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f;display:flex;flex-direction:column}.transcript-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-right:2px}.transcript-line{max-width:88%;background:#f1f5f9;border-radius:12px 12px 12px 4px;padding:6px 10px;align-self:flex-start}.transcript-line.self{align-self:flex-end;background:#e0e7ff;border-radius:12px 12px 4px}.transcript-meta{font-size:10px;font-weight:600;color:#64748b;margin-bottom:1px}.transcript-text{font-size:12.5px;line-height:1.35}.contacts-header{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #f0f0f0;color:#111827!important}.modal-content .contacts-header{height:40px}.search-contacts-list{max-height:196px;overflow:auto;position:absolute;width:91%;background:white;z-index:1000;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;border-radius:0 10px 10px}.contant-body p{font-size:14px;color:#5f6061!important}.contacts-header .title{font-weight:600;color:#111827!important}.contacts-header .back,.contacts-header .search{color:#9aa0a6;cursor:pointer}.disabled{opacity:.5;pointer-events:none}.contacts-list{padding:8px 8px 12px;overflow-y:auto}.contact-item{display:flex;align-items:center;padding:10px 8px;border-radius:10px}.contact-item:hover{background:#f7f9fc}.contact-avatar{width:37px;height:37px;border-radius:50%;object-fit:cover;margin-right:12px}.contact-info{flex:1;min-width:0;overflow:hidden}.contact-name{font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.contact-title{font-size:12px;color:#6b7280}.contact-call-btn{display:inline-flex;align-items:center;gap:6px;background:#234de8;color:#fff;border:none;border-radius:16px;padding:8px;cursor:pointer}.contact-add-btn{background-color:#2ecc71!important}.conference-hold-contact{display:inline-flex;align-items:center;gap:5px;background:#727070;color:#fff;border:none;border-radius:50%;padding:7px;cursor:pointer}.conference-hold-contact.on-hold{background:#28a745!important;color:#fff}.user-info-section{width:100%;height:100%;overflow-y:auto;overflow-x:hidden!important}.user-info-section::-webkit-scrollbar{display:none}.toggle-btn{cursor:pointer}.text-container{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;transition:all .3s ease}.mute-incoming-row{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 10px}.mute-incoming-label{font-size:11px;color:#fff}.switch{position:relative;display:inline-block;width:38px;height:19px;flex-shrink:0}.switch-slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;border-radius:22px;transition:.3s}.close-info-panel-section{width:100%;height:20px}.close-info-panel-section .material-symbols-outlined{font-size:12px;cursor:pointer}.c2c-title{color:#fff;white-space:normal;word-break:break-word;line-height:1.4}.switch-slider:before{content:\"\";position:absolute;height:14px;width:15px;left:3px;bottom:3px;background-color:#fff;border-radius:50%;transition:.3s}.switch input:checked+.switch-slider{background-color:#2ecc71}.switch input:checked+.switch-slider:before{transform:translate(18px)}.text-container.expanded{-webkit-line-clamp:unset}.userName{font-family:FontAwesome}.subject-text{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.conference-contact{display:inline-flex;align-items:center;gap:5px;background:#e14e4e;color:#fff;border:none;border-radius:50%;padding:7px;cursor:pointer}.organizer-label{padding:1px 5px;font-size:11px;border-radius:10px;border:1px solid #a0a0a0;margin-top:2px;background:#fcfcfc;color:#000}.custom-modal{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);display:flex;align-items:center;z-index:10000001;border-radius:21px}.modal-content{background:#ffffff;padding:25px;border-radius:8px;width:350px;text-align:center}.title{margin-bottom:15px;color:#d9534f}.message{margin-bottom:20px}.button-group{display:flex;justify-content:space-between}.btn{padding:8px 15px;border:none;border-radius:5px;cursor:pointer;font-weight:500}.end-btn{background-color:#dc3545;color:#fff;display:flex;align-items:center;font-size:13px}.leave-btn{background-color:#007bff;color:#fff}.contact-call-btn .material-symbols-outlined{font-size:18px;color:#fff}.contact-call-btn .label{font-size:12px}.parallax>use{animation:move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite}.parallax>use:nth-child(1){animation-delay:-2s;animation-duration:7s}.parallax>use:nth-child(2){animation-delay:-3s;animation-duration:10s}.parallax>use:nth-child(3){animation-delay:-4s;animation-duration:13s}.parallax>use:nth-child(4){animation-delay:-5s;animation-duration:20s}@keyframes move-forever{0%{transform:translate3d(-90px,0,0)}to{transform:translate3d(85px,0,0)}}.animated-margin{transition:margin-top .5s ease}app-incoming-call{position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent;z-index:1001}.min-call-container{width:320px;height:124px;border-radius:20px;box-shadow:6px 6px 10px -1px #00000026,-5px -4px 10px -1px #00000026;display:flex;flex-direction:column;box-sizing:border-box;position:relative;overflow:hidden;margin:auto;align-items:center;padding:12px 16px;color:#fff}.min-call-animation{background:#fff;width:48px;height:48px;position:relative;margin:0 12px 0 auto;border-radius:100%;border:solid 2px #fff}.min-avatar-img{width:46px;height:46px;border-radius:100%;position:absolute;left:0;top:0}.border-radius-50{border-radius:50%}.min-callerDetails{color:#fff;display:flex;flex-direction:column;align-items:flex-start}.name{width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:20px;margin:0;color:#fff}.min-callerDetails p{margin:0;color:#fff}.min-btn-container{position:relative;display:flex;width:100%;justify-content:flex-start;align-items:center;margin-top:6px}.min-call-sec-btn{width:40px;height:40px;box-sizing:border-box;border:1px solid #cccbcb;background-color:transparent;border-radius:20px;display:flex;align-items:center;justify-content:center;margin-right:12px;box-shadow:6px 6px 10px -1px #bebebe26,-5px -4px 10px -1px #d2d2d226}.min-call-sec-btn span{color:#cccbcb}.min-call-btn{width:40px;height:40px;border-radius:20px;box-sizing:border-box;border:2px solid white;display:flex;align-items:center;justify-content:center}.fullscreen{position:absolute;right:18px;top:14px;color:#e8e8e8;font-size:18px;cursor:pointer}.btn-container{display:flex;flex-wrap:wrap;padding:0 24px}.dial-btn{width:40px;height:40px;background-color:transparent;text-align:center;box-sizing:border-box;margin:4px 25px;font-size:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:Lato,sans-serif;font-weight:900;font-style:normal;color:#b5b5b5;cursor:pointer}.btn-albhabets{font-family:Lato,sans-serif;font-size:12px;font-weight:400}.min-timer{width:50px;font-size:18px;margin-right:10px;border-radius:4px;height:35px;display:flex;align-items:center}.record-action-btns{display:flex;flex-direction:column;align-items:center;margin-top:35px}.record-btn-container{position:relative}.record-btn{border:none;border-radius:50%;width:50px;height:50px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin:0 5px;position:relative;overflow:hidden}.record-btn.start-stop .recording-icon{width:50%;height:50%;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.record-btn.start-stop.recording .recording-icon{background-color:#000}.record-btn.start-stop.recording{border:3px solid #000}.record-btn.start-stop.stopped .recording-icon{background-color:red;border:3px solid #ff0000;border-radius:50%;position:absolute}.record-btn.start-stop.stopped{border:3px solid #ff0000}.record-btn.start-stop.stopped .recording-icon{width:40%;height:40%;border-radius:0;background-color:red}.pause-resume-btns{display:flex;flex-direction:column;align-items:center;margin-top:10px}.record-btn.pause-resume{border:none;border-radius:50%;width:50px;height:50px;background:white;display:flex;align-items:center;justify-content:center;margin:5px 0}.record-btn.pause-resume .material-symbols-outlined{font-size:20px;color:#000}.timer-display{font-size:1.2em;margin-top:10px;color:#000}.w-40{width:40%}.w-60{width:60%}.callToNum{color:#fff;font-weight:400;text-align:center}.callToNum span{font-weight:600}.conference-call-view{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;padding:12px 16px 35px;color:#fff;height:100%}.conf-heading{display:flex;align-items:center;gap:8px;margin-top:45px}.conf-icon{color:#4579aa;font-size:32px;width:50px;height:50px;border:1px solid gray;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e1e1e1}.conf-title{font-weight:600;font-size:20px}.conf-name{margin-top:10px;font-size:17px;font-weight:600;text-align:center}.conf-timer{margin-top:4px;font-size:12px;opacity:.9}.conf-record{margin-top:14px}.record-stop-btn{width:44px;height:44px;border-radius:50%;border:none;background:#fff;display:flex;align-items:center;justify-content:center}.record-stop-btn .material-symbols-outlined{color:#e14e4e;font-size:28px}.conf-remove{margin-top:8px}.remove-btn{background:#ff0000!important;color:#fff;border:none;border-radius:6px;padding:6px 12px;font-size:12px;width:82px!important;height:auto}.conf-actions{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:18px}.circle-btn{width:56px;height:56px;border-radius:50%;border:none;background:#000;display:flex;align-items:center;justify-content:center}.circle-btn .material-symbols-outlined{color:#fff;font-size:24px}.circle-btn.active{opacity:.85}.conf-end{margin-top:16px}.circle-btn.danger{background:#e14e4e}.circle-btn.danger .material-symbols-outlined{color:#fff}.warning-modal{background:white;width:360px;border-radius:18px;padding:24px;text-align:center;box-shadow:0 10px 30px #00000040}.warning-icon{margin-bottom:12px}.warning-icon .material-symbols-outlined{font-size:48px;color:#f59e0b}.warning-modal h3{margin-bottom:12px;font-size:20px;font-weight:600;color:#111827!important}.warning-modal p{color:#555!important;font-size:14px;line-height:1.5;margin-bottom:24px}.warning-modal p strong{color:#111827!important}.warning-actions{display:flex;justify-content:center;gap:12px}.cancel-btn,.proceed-btn{border:none;padding:10px 18px;border-radius:8px;cursor:pointer;font-weight:600}.cancel-btn{background:#e5e7eb;color:#111827}.proceed-btn{background:#234de8;color:#fff}.time-picker-24hr{display:flex;align-items:center;gap:4px}.time-sep{font-weight:700;font-size:16px;color:#333}.custom-time-select{position:relative;width:58px;-webkit-user-select:none;user-select:none}.custom-time-select.disabled-picker{opacity:.45;pointer-events:none}.custom-time-display{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;border:1px solid #ced4da;border-radius:4px;background:#fff;font-size:13px;cursor:pointer;white-space:nowrap;color:#333!important}.custom-time-display:hover{border-color:#234de8}.picker-arrow{font-size:9px;margin-left:4px;color:#666}.custom-time-options{position:fixed;background:#fff;border:1px solid #ced4da;border-radius:4px;max-height:160px;overflow-y:auto;z-index:99999999;min-width:58px;box-shadow:0 4px 12px #00000026}.custom-time-option{padding:5px 10px;font-size:13px;cursor:pointer;text-align:center;color:#333}.custom-time-option:hover{background:#e8eeff;color:#234de8}.custom-time-option.selected{background:#234de8;color:#fff;font-weight:600}.dialpad-alerts{position:absolute;left:50%;transform:translate(-50%);width:calc(100% - 32px);z-index:9999999}.normal-call-alert{top:78px}.conference-alert{top:145px}.dialbox-pop1{background:#dff6dd!important;color:#1d4d1d!important;border-radius:10px;padding:10px 14px;font-size:14px;box-shadow:0 4px 12px #00000040;border:1px solid #b7dfc3}.btn-disc{border:none;background:transparent;color:#6b7280!important;font-size:13px;font-weight:500}.connecting-overlay{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px 0 24px}.connecting-text{color:#ffffffe6;font-size:15px;font-weight:500;letter-spacing:.5px;margin:0}.connecting-dots{display:flex;gap:8px;align-items:center}.connecting-dots span{display:inline-block;width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.85);animation:connecting-bounce 1.2s infinite ease-in-out}.connecting-dots span:nth-child(1){animation-delay:0s}.connecting-dots span:nth-child(2){animation-delay:.2s}.connecting-dots span:nth-child(3){animation-delay:.4s}@keyframes connecting-bounce{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1.2);opacity:1}}.connecting-wrapper{display:flex;align-items:center;font-size:13px;color:#4caf50;margin-top:4px;font-weight:500}.participant-list-title,.onHold-text{color:#000}.ringing-text,.onHold-text{margin-right:2px;font-size:11px}.held-actions .connecting-wrapper{color:#fff}.dots span{animation:blink 1.4s infinite;opacity:0;font-size:16px}.dots span:nth-child(1){animation-delay:0s}.dots span:nth-child(2){animation-delay:.2s}.dots span:nth-child(3){animation-delay:.4s}@keyframes blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.loader-wrapper.outgoing-call-loader{position:absolute;inset:0;z-index:100;display:flex;align-items:center;justify-content:center}.panel-loader-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#ffffffb3;display:flex;justify-content:center;align-items:center;z-index:10000009}.settings-icon{cursor:pointer;font-size:24px;color:#555;position:relative;top:5px;right:2px}.settings-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:1000001;display:flex;align-items:flex-start;justify-content:flex-end}.settings-drawer{background:#fff;width:100%;max-width:100%;height:100%;padding:1.5rem 1rem;overflow-y:auto;box-sizing:border-box;transform:translate(100%);animation:slideInFromRight .3s forwards}@keyframes slideInFromRight{to{transform:translate(0)}}.settings-header{display:flex;justify-content:space-between;align-items:center;font-size:1.2rem;font-weight:600;padding-bottom:.75rem;border-bottom:1px solid #eee}.settings-header span:first-child{cursor:pointer}.settings-body{margin-top:1.5rem}.setting-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0;gap:1rem}.setting-label{flex:1}.setting-label span{font-weight:500}.setting-label svg{width:15px;height:15px;color:#393939;flex-shrink:0}.setting-label small{display:block;font-size:.75rem;color:#666;margin-top:.15rem}.setting-group h6{font-weight:600;color:#888;font-size:.75rem;letter-spacing:.5px;margin:1rem 0 .5rem}hr{margin:.5rem 0;border-color:#f0f0f0}.switch{position:relative;display:inline-block;width:44px;height:24px;flex-shrink:0}.switch input{opacity:0;width:0;height:0}.switch-slider{position:absolute;cursor:pointer;inset:0;background:#ccc;border-radius:24px;transition:.3s}.switch-slider:before{content:\"\";position:absolute;height:18px;width:18px;left:3px;bottom:3px;background:white;border-radius:50%;transition:.3s}.switch input:checked+.switch-slider{background:#007bff}.switch input:checked+.switch-slider:before{transform:translate(20px)}.suggestion-meta{display:flex;align-items:center;gap:6px;margin-bottom:2px}.suggestion-time{font-size:10px;font-weight:600;color:#94a3b8}.suggestion-new{margin-left:auto;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#fff;background:#f59e0b;border-radius:8px;padding:1px 7px}.insights-suggestions li.coaching .suggestion-new{background:#4f46e5}.insights-suggestions li.older{opacity:.6;background:#f8fafc;border-left-color:#cbd5e1}.insights-suggestions li.older .material-symbols-outlined{color:#94a3b8}.insights-suggestions li.latest{opacity:1;font-weight:600;background:#fef3c7;border-left-width:4px;box-shadow:0 2px 8px #f59e0b40}.insights-suggestions li.coaching.latest{background:#e0e7ff;box-shadow:0 2px 8px #6366f140}.insights-suggestions li.coaching.older{background:#f8fafc;border-left-color:#cbd5e1}.insights-section.insights-suggestions,.insights-fs-card.insights-suggestions{display:flex;flex-direction:column;overflow:hidden}.suggestion-list{flex:1;min-height:0;overflow-y:auto;scroll-behavior:smooth;padding-right:2px}\n"] }]
|
|
5455
5474
|
}], ctorParameters: function () { return [{ type: ExtensionService }, { type: i0.ChangeDetectorRef }, { type: TwilioService }, { type: IpAddressService }, { type: IncomeingCallSocketService }, { type: ClearCallLiveService }, { type: i4.Router }]; }, propDecorators: { callData: [{
|
|
5456
5475
|
type: Input
|
|
5457
5476
|
}], selectedCallerId: [{
|
|
@@ -5497,6 +5516,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5497
5516
|
}], transcriptListRef: [{
|
|
5498
5517
|
type: ViewChild,
|
|
5499
5518
|
args: ['transcriptList']
|
|
5519
|
+
}], suggestScrollRefs: [{
|
|
5520
|
+
type: ViewChildren,
|
|
5521
|
+
args: ['suggestScroll']
|
|
5500
5522
|
}] } });
|
|
5501
5523
|
|
|
5502
5524
|
class ShortPressDirective {
|