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,GAAI,IAM1B,IAAM,UAAY,SACzC,C,qBCLA,IAfsB,SAAUkN,EAAK6e,EAAQ9jB,EAAI+jB,GAC7C,MAAMhjB,EAAKkc,SAASzP,cAAcsW,GAAU,OAY5C,OAXI7e,IACAlE,EAAG8N,UAAY5J,GAEfjF,GACAe,EAAGoiB,aAAa,KAAMnjB,GAEtB+jB,IACAhjB,EAAG8hB,UAAYkB,GAGnBhjB,EAAGoiB,aAAa,YAAa,GACtBpiB,CACX,C","sources":["webpack://apexchatwidgets/./widgets/core/hooks/setHexWithAlphaToSolid.js","webpack://apexchatwidgets/./widgets/exitpopup/EPUIController.js","webpack://apexchatwidgets/./widgets/exitpopup/RDEPUIController.js","webpack://apexchatwidgets/./widgets/exitpopup/ExitChatWindow.js","webpack://apexchatwidgets/./widgets/core/hooks/setEpWindowStyles.js","webpack://apexchatwidgets/./widgets/core/hooks/centerElement.js","webpack://apexchatwidgets/./widgets/core/hooks/addClass.js","webpack://apexchatwidgets/./widgets/core/hooks/addTargetBlankToAnchorString.js","webpack://apexchatwidgets/./widgets/core/hooks/hasClass.js","webpack://apexchatwidgets/./widgets/core/enums/BrandingWidget.js","webpack://apexchatwidgets/./widgets/core/hooks/underscore.js","webpack://apexchatwidgets/./widgets/core/extend.js","webpack://apexchatwidgets/./widgets/core/hooks/Branding.js","webpack://apexchatwidgets/./widgets/core/WidgetView.js","webpack://apexchatwidgets/./widgets/core/hooks/setTextColorBasedOnBg.js","webpack://apexchatwidgets/./widgets/core/hooks/createElement.js"],"sourcesContent":["function setHexWithAlphaToSolid(hexColor) {\r\n // Remove the \"#\" if it exists\r\n hexColor = hexColor.replace(\"#\", \"\");\r\n\r\n // If it's a 3-character hex, expand to 6 characters\r\n if (hexColor.length === 4) {\r\n hexColor = hexColor.split(\"\").map(x => x + x).join(\"\");\r\n }\r\n\r\n // Convert hex to RGB\r\n const r = parseInt(hexColor.substring(0, 2), 16);\r\n const g = parseInt(hexColor.substring(2, 4), 16);\r\n const b = parseInt(hexColor.substring(4, 6), 16);\r\n\r\n // Calculate luminance (lighter colors will have higher luminance)\r\n const luminance = 0.2126 * r + 0.7152 * g + 0.0722 * b;\r\n\r\n // If the color is light (luminance > 128), return it as is (no alpha blending)\r\n if (luminance > 128) {\r\n return `#${hexColor}`; // Return the original hex color without modification\r\n }\r\n\r\n // If it's a 4-character hex (with alpha), expand it\r\n if (hexColor.length === 8) {\r\n const a = parseInt(hexColor.substring(6, 8), 16) / 255; // Convert alpha to a 0-1 range\r\n\r\n // Blend with white (255, 255, 255) based on alpha\r\n const solidR = Math.round(r * a + (1 - a) * 255);\r\n const solidG = Math.round(g * a + (1 - a) * 255);\r\n const solidB = Math.round(b * a + (1 - a) * 255);\r\n\r\n // Return the solid color as hex\r\n return `#${solidR.toString(16).padStart(2, '0')}${solidG.toString(16).padStart(2, '0')}${solidB.toString(16).padStart(2, '0')}`;\r\n }\r\n\r\n // If it's just a solid 6-character hex, return it as is\r\n return `#${hexColor}`;\r\n}\r\n\r\n\r\nexport default setHexWithAlphaToSolid;","/*\r\n * a class specifically for EP UI handling\r\n */\r\nimport ChatUIController from '../core/ChatUIController';\r\nimport WidgetTypes from '../core/enums/WidgetTypes';\r\nimport TempCache from '../core/enums/TempCache';\r\nimport ParticipantIds from '../core/enums/ParticipantIds';\r\n//import FancyDropdown from '../core/FancyDropdown';\r\nimport UserIds from '../core/hooks/UserIds';\r\nimport { ScriptVisitorResponseStatus, ScriptsQuestionType } from '../core/enums/Enum';\r\nimport GlobalVariables from '../core/GlobalVariables';\r\nimport GetChatID from '../core/hooks/GetChatID';\r\nimport AgentImageHandler from '../core/hooks/AgentImageHandler';\r\nimport RunAsSoonAs from '../core/hooks/RunAsSoonAs';\r\nimport isEnterKeyPressed from '../core/hooks/isEnterKeyPressed';\r\nimport Cookies from '../core/hooks/Cookies';\r\nimport WidgetStates from '../core/hooks/WidgetStates';\r\nimport logIt from '../../logIt';\r\n\r\nexport default class EPUIController extends ChatUIController {\r\n constructor(options) {\r\n const opt = options;\r\n Object.assign(opt.elements, {\r\n textboxSelector: '.apex-input',\r\n // containerSelector: '.apex-popup-container',\r\n // minimizeSelector: '#apexchat-ep-minimize',\r\n agentTitle: '.apex-profile-usertitle', // participantsSelector\r\n clickSourceId: '.apex-powerdby',\r\n messagesContainerSelector: '.apex-transcript',\r\n typingIndicatorSelector: '.apex-agent',\r\n autoCompleteInput: '#apexchat #txtAutocompleteInput',\r\n // minimizeSelector: '.apex-ep-minimizestate',\r\n maximizeState: '.apex-ep-maximizestate',\r\n closeSelector: '.apex-popup-close',\r\n handlerImageSelector: '.Apex-agentImage',\r\n minimizedImage: '.apex-img-minimized-invite',\r\n companyTitle: '.apex-company-title',\r\n clicktoStart: '.apex-start-chat',\r\n minimizePoweredBy: '.apex-powerdby-minimized',\r\n popoutSelector: '.apex-ep-openpopup',\r\n clickSelector: '.apex-btn',\r\n soundControl: '.apex-msg-notification',\r\n soundMute: '.apex-sound-mute',\r\n soundUnmute: '.apex-sound-unmute',\r\n regionEditorContainer: '#apexchat_exitpopup_region_container',\r\n regionEditorContainerWrapper: `#${options.model.exitPopupRegionEditorContainerId}`,\r\n multiLanguage_dropdown_wrapperSelector: '.apexchat_ep_multilang_wrapper',\r\n multiLanguage_dropdown_container: 'apexchat_ep_multilang_dropdown_container',\r\n multiLanguage_dropdown_select: 'apexchat_ep_multilang_dropdown',\r\n inputContainerSelector: '.apex-msg-type',\r\n actionMenuStartSMSChat: '.switchto-text-chat',\r\n smsBottomSheetClose: '#livechat_bottom_sheet_sms_close'\r\n });\r\n opt.widget = WidgetTypes.EPUIController;\r\n opt.objectType = WidgetTypes.EPUIController;\r\n super(opt);\r\n this.mode = WidgetTypes.ExitPopup;\r\n this.chatStarted = false;\r\n }\r\n\r\n bind(state) {\r\n const me = this;\r\n if (state !== WidgetStates.ShownMinimized) {\r\n super.bind();\r\n }\r\n // me.$(me.options.elements.containerSelector, me.context).removeClass('apex-container-fix').show().css({\r\n // 'top': null, 'left': null\r\n // });\r\n if (!me.options.model.headerDisclaimer || me.options.model.headerDisclaimer.trim() == '') {\r\n // Added .trim() So if someone used 'Blank Spaces' this condition will catch it and will not show the header disclaimer\r\n me.$('.apexchat_ep_rd_additionalHeaderDisclaimer', me.context).hide();\r\n }\r\n me.$(me.options.elements.closeSelector, me.context).click(() => {\r\n ApexChat.preLoadedOptions = null; // dispense with it as DOM should load it on tis own - Zee\r\n // me.state.changeState({ origin: WidgetTypes.ExitPopup, toState: WidgetStates.Hidden });\r\n });\r\n me.$('#apexchat-ep', me.context).on('click', () => {\r\n me.$(me.options.elements.actionMenuSelector, me.context).hide();\r\n });\r\n if (!ApexChat.IsRoundedDynamicPlusTheme) {\r\n // finally, apply extra logic when shown\r\n me.$(me.options.elements.clickSourceId, me.context).html(me.options.model.poweredBy);\r\n me.$(me.options.elements.companyTitle, me.context).html(\r\n me.options.model.exitPopupChat.chatTitle\r\n );\r\n // handlerImageUrl should be coming from what was assigned in widgetbase.js\r\n me.$(me.options.elements.handlerImageSelector, me.context).attr(\r\n 'src',\r\n AgentImageHandler(me.options.model.handlerImageUrl)\r\n );\r\n me.$(me.options.elements.agentTitle, me.context).html(me.options.model.agentName);\r\n }\r\n me.hideOnlineAgent(); // CHAT-8631 check Enable Generic Aliasing handler is enabled and also scriptbot enabled then hide online tag.\r\n }\r\n\r\n hideOnlineAgent() {\r\n const me = this;\r\n const onlineAgentText = me.$(me.options.elements.agentOnlineText, me.context);\r\n const checkgenericHandlerScriptBot =\r\n me.options.model &&\r\n me.options.model.genericHandlerAliasingEnabled &&\r\n me.options.model.scriptBotEnabled &&\r\n onlineAgentText;\r\n if (checkgenericHandlerScriptBot) {\r\n onlineAgentText.hide();\r\n }\r\n }\r\n\r\n invokeKeyDown(e) {\r\n const me = this;\r\n // var e = jQuery.Event('keydown', { which: $.ui.keyCode.ENTER });\r\n // $(me.options.elements.textboxSelector).trigger(e);\r\n // var el = $(me.options.elements.textboxSelector, me.context);\r\n\r\n // $(me.options.elements.textboxSelector, me.context).keydown(e);\r\n }\r\n\r\n loadChatRoom(cb) {\r\n super.loadChatRoom(cb);\r\n }\r\n\r\n show(state) {\r\n const me = this;\r\n super.show(state);\r\n const isPageRefreshed = this.isPageRefreshed();\r\n if (ApexChat.options.exitpopup.chatbotGreetingMessages) {\r\n var script = structuredClone(ApexChat.options.exitpopup.chatbotGreetingMessages[0]);\r\n ApexChat.options.exitpopup.chatbotGreetingMessages[0].agentScript = script\r\n delete ApexChat.options.exitpopup.chatbotGreetingMessages[0].agentScript.agentScript\r\n ApexChat.options.exitpopup.chatbotGreetingMessages[0].agentScript.options = JSON.stringify(ApexChat.options.exitpopup.chatbotGreetingMessages[0].agentScript.options)\r\n\r\n ApexChat.options.exitpopup.chatbotGreetingMessages[0].agentScript.agentScriptOptions = JSON.stringify(ApexChat.options.exitpopup.chatbotGreetingMessages[0].agentScript.options)\r\n ApexChat.options.exitpopup.exitPopupMessages = ApexChat.options.exitpopup.chatbotGreetingMessages\r\n }\r\n const { exitPopupMessages } = ApexChat.options.exitpopup;\r\n exitPopupMessages.forEach(function (msg) {\r\n msg.message = me.fixDataBinding(msg.message);\r\n });\r\n if (!isPageRefreshed && state == WidgetStates.ShownMaximized) {\r\n if (exitPopupMessages.length > 0) {\r\n me.queuePredefinedQTs();\r\n } else {\r\n me.renderPredefinedMessages();\r\n }\r\n // appointment scheduler is set a predined QT then make chat room alive\r\n if (\r\n exitPopupMessages.length > 0 &&\r\n exitPopupMessages[0].questionType ==\r\n ScriptsQuestionType.AppointmentScheduler &&\r\n !me.isChatActive()\r\n ) {\r\n me.bindAppointmenSchedulePredefined.call(me);\r\n }\r\n }\r\n // Render predefined messages in page referesh case\r\n if (\r\n isPageRefreshed &&\r\n state === WidgetStates.ShownMaximized &&\r\n exitPopupMessages.length > 0 &&\r\n exitPopupMessages[0].questionType ==\r\n ScriptsQuestionType.AppointmentScheduler &&\r\n me.isChatActive()\r\n ) {\r\n if (exitPopupMessages.length > 0) {\r\n me.queuePredefinedQTs({ isPageRefreshed });\r\n } else {\r\n me.renderPredefinedMessages(isPageRefreshed);\r\n }\r\n }\r\n if (\r\n isPageRefreshed &&\r\n state === WidgetStates.ShownMaximized &&\r\n !me.isChatActive()\r\n ) {\r\n if (exitPopupMessages.length > 0) {\r\n me.queuePredefinedQTs({ isPageRefreshed });\r\n } else {\r\n me.renderPredefinedMessages(isPageRefreshed);\r\n }\r\n }\r\n // apply any css/html tweak here - optional\r\n }\r\n\r\n hide() {\r\n // ToDo: we need to implement this destroy functionality for other types as well.\r\n const me = this;\r\n // also dispens with all resources: nullify objects and remove event subscriptions\r\n me.questionTypeRenderer = null;\r\n me.clearAllSubscriptions();\r\n }\r\n\r\n pop() {\r\n super.pop();\r\n }\r\n\r\n end() {\r\n this.hide(); // now we want EP to just hide/close w/o ending the active chat\r\n this.state.changeState({\r\n origin: WidgetTypes.ExitPopup,\r\n toState: WidgetStates.Closed\r\n });\r\n }\r\n\r\n endChat() {\r\n const me = this;\r\n super.endChat();\r\n ApexChat.storageAPI.StoreTemp('livechat_exitpopup_is_closed', true);\r\n }\r\n\r\n endChatSession() {\r\n super.endChatSession();\r\n const me = this;\r\n\r\n me.state.changeState({\r\n origin: WidgetTypes.ExitPopup,\r\n toState: WidgetStates.Closed\r\n });\r\n }\r\n\r\n renderPredefinedMessages(isPageRefreshed) {\r\n ApexChat.storageAPI.Remove(TempCache.APEXCHAT_PRECHAT_MESSAGE_IDS_COOKIE); // JIRA_4341 - Pre-Chat message shouldn't append in EP\r\n super.renderPredefinedMessages({\r\n text: '',\r\n participantDisplayName: this.options.model.agentName,\r\n id: -2,\r\n userId: TempCache.EP_PREDEFINED_AGENT_ID,\r\n createdOn: new Date(),\r\n isPredefinedMsg: true,\r\n isPageRefreshed\r\n });\r\n }\r\n\r\n queuePredefinedQTs(isPageRefreshed) {\r\n ApexChat.storageAPI.Remove(TempCache.APEXCHAT_PRECHAT_MESSAGE_IDS_COOKIE); // JIRA_4341 - Pre-Chat message shouldn't append in EP\r\n super.queuePredefinedQTs({\r\n text: '',\r\n participantDisplayName: this.options.model.agentName,\r\n id: -2,\r\n userId: TempCache.EP_PREDEFINED_AGENT_ID,\r\n createdOn: new Date(),\r\n isPredefinedMsg: true,\r\n isPageRefreshed\r\n });\r\n }\r\n\r\n renderMultiLanguageDropDown(config) {\r\n super.renderMultiLanguageDropDown(config);\r\n }\r\n\r\n implementMultiLanguageSupport(config) {\r\n const me = this;\r\n if (!me.options.model.showMultiLangDropDown || me.nonSMSLanguages.length <= 1) {\r\n me.multiLanguage_dropdown_wrapper.style.display = 'none';\r\n return;\r\n }\r\n // FancyDropdown({\r\n // context: me.context,\r\n // containerId: config.containerId, // Container ID of container in which dropdown exist.\r\n // dropdownId: config.dropdownId, // dropdown ID\r\n // model: me.nonSMSLanguages, // Data model which should contain value and text which you wanna render\r\n // value: 'threeLetterISOLanguageName', // In your Data model the specific property you wanna show for value field\r\n // innerHTML: 'languageFullName', // In your Data model the specific property you wanna show for innerHTML Text field\r\n // onSelect() {\r\n // // on click of dropdown or selection.\r\n // const multiLangDropDown = me.context.getElementById(config.dropdownId);\r\n // me.chatLanguageName =\r\n // multiLangDropDown.options[multiLangDropDown.selectedIndex].text;\r\n // TempCache.chatLanguage = multiLangDropDown.value;\r\n // me.requestTransferringChat(config);\r\n // },\r\n // onComplete() {\r\n // // after render callback\r\n // ApexChat.addClass(\r\n // me.context.getElementsByClassName('apex-msg-notification')[0],\r\n // 'apex-msg-notification-with-multilang'\r\n // );\r\n // ApexChat.addClass(\r\n // me.context.getElementsByClassName('apex-agent')[0],\r\n // 'apex-agent-with-multilang'\r\n // );\r\n // // Ref. CHAT-5206\r\n // const soundIcon = me.context.getElementById('apex-msg-audio-notification');\r\n // if (soundIcon) {\r\n // soundIcon.style.cssText = 'top:-16px !important;';\r\n // }\r\n // const langSelect = me.context.getElementById(config.containerId);\r\n // if (langSelect) {\r\n // langSelect.style.cssText = 'left: auto !important;';\r\n // }\r\n // }\r\n // });\r\n }\r\n\r\n sendMessage(el) {\r\n const me = this;\r\n const text = me.$(el || me.messageInput, me.context);\r\n let v = text.val().trim();\r\n const isChatEnded = ApexChat.storageAPI.Get('livechat_exitpopup_is_closed');\r\n\r\n\r\n if (v == '' && me.messageInputText != '') {\r\n v = me.messageInputText;\r\n me.messageInputText = '';\r\n }\r\n if (!v || v.replace(/\\s/g, '') === '' || v == text.attr('title')) {\r\n return;\r\n }\r\n const isPredefinedResponse = !me.firstMsgSent && !me.isChatroomAlive(); // no 1st msg sent and no chatroom, it's gotta be 1st response to the predef\r\n if (me.QTRendererExt && me.QTRendererExt.isLastMessageFullText()) {\r\n me.QTRendererExt.validateFullTextMessage(v, {\r\n isPredefinedResponse\r\n }); // just validate and return\r\n return; // we are separately handling Fulltext scenario in handleFullTextType()\r\n }\r\n if (!me.firstMsgSent) {\r\n // cache the upfront 1st predef response by visitor to be sent along with predef below\r\n me.preserveChatArray.push({\r\n index: me.preserveChatArray.length + 1,\r\n text: v,\r\n userId: ParticipantIds.visitor,\r\n isPredefinedResponse,\r\n createdOn: new Date(),\r\n participantDisplayName: 'Visitor',\r\n participantId: ParticipantIds.visitor,\r\n agentParticipantId: ParticipantIds.predefined\r\n });\r\n }\r\n // check chatroom alive, and push them as soon as it's available\r\n if (\r\n me.preserveChatArray.length > 0 &&\r\n me.options &&\r\n me.options.msg &&\r\n me.options.msg.questionType == ScriptsQuestionType.AppointmentScheduler &&\r\n me.isChatroomAlive()\r\n ) {\r\n if (!me.isPreDefinedMessagesSent) {\r\n me.publishPredefinedMessages(() => {\r\n me.preserveChatArray = []; // clear\r\n });\r\n }\r\n } else {\r\n // wait for a chatroom, and push them as soon as it's available\r\n if (me.preserveChatArray.length > 0) {\r\n RunAsSoonAs(\r\n () => {\r\n if (!me.isPreDefinedMessagesSent) {\r\n me.publishPredefinedMessages(() => {\r\n me.startWaiting();\r\n me.room.sendLive();\r\n me.preserveChatArray = []; // clear\r\n });\r\n me.showTyptingIndicatorForAIBot(me);\r\n }\r\n },\r\n () => me.isChatroomAlive()\r\n );\r\n return; // for the v 1st msg bail out\r\n }\r\n }\r\n // for any subsequent messages\r\n super.sendMessage(v);\r\n if (me.QTRendererExt && me.QTRendererExt.isLastPhoneTypeValidated()) {\r\n // Do not empty the input field if phone number is invalid\r\n return;\r\n }\r\n text[0].value = ''\r\n }\r\n\r\n /**\r\n * overloaded version of onMessageTyping in widgetbase.js to write separate logic for EP\r\n * @param {any} e\r\n */\r\n onMessageTyping(e) {\r\n const me = this;\r\n const autoComplete = me.$(me.autoCompleteInput).is(':visible') ? me.$(me.autoCompleteInput) : null;\r\n try {\r\n me.isUserTyping = true;\r\n if (isEnterKeyPressed(e)) {\r\n // if (me.room && me.room.isConnectionEstablished) {//now that visitor can shoot a message w/o an active chat connection, we must not let onMessageTyping sendMessage\r\n logIt('EP::sending msg on typing');\r\n me.sendMessage(autoComplete);\r\n window.clearTimeout(me.timeout);\r\n me.typing = false;\r\n if (me.isChatroomAlive()) {\r\n me.room.sendTyping(false);\r\n }\r\n e.preventDefault();\r\n // const text = [];\r\n } else if (me.room) {\r\n me.sendTyping(e);\r\n }\r\n } catch (ex) {\r\n console.log(ex.message);\r\n }\r\n }\r\n\r\n simulatePlainTextPredefinedResponse(msg) {\r\n const me = this;\r\n me.onMessageArrived({\r\n id: GlobalVariables.predefinedMessageId,\r\n userId: ParticipantIds.visitor,\r\n createdOn: new Date(),\r\n participantDisplayName: 'Visitor',\r\n text: msg.msgText,\r\n allowDupe: false,\r\n isFirstPredefinedMsgResponse: true,\r\n participantId: ParticipantIds.visitor,\r\n showTime: true // show time for simulated message\r\n });\r\n }\r\n\r\n resetCurrentEPState() {\r\n const me = this;\r\n Cookies.del('livechat_exitpopup_is_closed');\r\n me.state.changeState({\r\n origin: WidgetTypes.ExitPopup,\r\n toState: WidgetStates.ShownMaximized\r\n });\r\n ApexChat.storageAPI.Store(TempCache.IS_PAGE_REFRESHED, false);\r\n }\r\n\r\n startNewChatForEP() {\r\n const me = this;\r\n me.isUserTyping = false; // when new chat start user typing must be false\r\n me.room = null; // chat room should be null\r\n me.isPreDefinedMessagesSent = false; // assign false value when new chat start\r\n me.reInitializeChat();\r\n me.hideReInitOverlay('#apexchat_reinit_chat_ep');\r\n }\r\n\r\n showChatEndedNotificationEP() {\r\n const me = this;\r\n me.optInConsentTaken = false;\r\n const epReinitInner = me.$('#apexchat_reinit_chat_ep', me.context);\r\n const epReinitWrapper = epReinitInner.parent('.apexchat_reinit_chat_wrapper_ep');\r\n epReinitWrapper.addClass('livechat_reinit_show');\r\n epReinitInner.css('display', 'block');\r\n setTimeout(function () {\r\n epReinitInner.addClass('apexchat_optin_concent_show');\r\n });\r\n me.$('.apexchat_closebtn_ep', me.context).bind('click', () => {\r\n me.hideReInitOverlay('#apexchat_reinit_chat_ep');\r\n epReinitInner.removeClass('apexchat_optin_concent_show');\r\n epReinitWrapper.removeClass('livechat_reinit_show');\r\n });\r\n me.ADAHandler(\r\n me.context.querySelector('.apexchat_closebtn_ep'),\r\n me.hideReInitOverlay.bind2(me, '#apexchat_reinit_chat_ep')\r\n );\r\n me.ADAHandler(me.context.querySelector('.apexchat_new_chat_start_ep'), () => {\r\n me.startNewChatForEP();\r\n epReinitWrapper.removeClass('livechat_reinit_show');\r\n });\r\n me.$('.apexchat_new_chat_start_ep', me.context).bind('click', () => {\r\n me.startNewChatForEP();\r\n epReinitWrapper.removeClass('livechat_reinit_show');\r\n });\r\n }\r\n\r\n handleExitPopupPredefinedQT(res, isFromPreChat) {\r\n const me = this;\r\n // simulate predefined selection without delay.\r\n if (!res.isSkipped) {\r\n if (\r\n res.questionType == ScriptsQuestionType.TimeCalendar ||\r\n res.questionType == ScriptsQuestionType.Text\r\n ) {\r\n if (!me.responseArray) {\r\n me.responseArray = new Array(); // create an array object\r\n res.predefinedMessageId = GlobalVariables.predefinedMessageId; // simulate first message to assign predefined message id\r\n } else {\r\n res.predefinedMessageId = --GlobalVariables.predefinedMessageId; // to remove duplication predefined message id\r\n }\r\n me.responseArray.push(res); // push item in array item and pass it to the function to execute handle question functionality\r\n }\r\n me.simulatePredefinedResponse(res);\r\n if (\r\n me.firstMsgSent &&\r\n (res.questionType == ScriptsQuestionType.TimeCalendar ||\r\n res.questionType == ScriptsQuestionType.Text)\r\n ) {\r\n // when QT is time calendar and first message are render then avoid to run below statement\r\n return;\r\n }\r\n }\r\n me.firstMsgSent = true;\r\n // In case of RD EP Predefined msg of QT, the poke message job was not stopping and causing the CHAT-9148\r\n if (me.pokeMessageJob) {\r\n // in case of RD EP\r\n me.pokeMessageJob?.stop(); // after first response, the pokeMessage job for predefinned is over\r\n }\r\n me.reInitChatSubscribeForEP = false;\r\n if (GetChatID(me.options)) {\r\n // check chatId is created\r\n me.publishedPredefinedMessages(res, isFromPreChat);\r\n } else {\r\n // create room then call back.. recusive\r\n me.options.execChatStartHandler(() => {\r\n me.publishedPredefinedMessages(res, isFromPreChat);\r\n });\r\n }\r\n }\r\n\r\n // handle comma separted QTs\r\n handleQTCommaSepartedRow(m, res, isFromPreChat) {\r\n const me = this;\r\n me.responseArray.forEach((option) => {\r\n setTimeout(() => {\r\n me.hasAnswerInQTChatLogIdToBeUpdated = true;\r\n res = option;\r\n res.isExitPopupPredefinedMessage = false;\r\n res.participantDisplayName = me.options.agentName || me.options.model.agentName;\r\n res.agentParticipantId = ParticipantIds.predefined; // CHAT-6370 predefined participantId -4\r\n res.userId = UserIds.simulated;\r\n res.visitorResponseStatus = ScriptVisitorResponseStatus.Answered;\r\n res.visitorSelectedOptions = `[{ \"option\": \"${res.msgText}\"}]`;\r\n res.chatLogId = m.id;\r\n res.isPredefinedResponse = me.isPredefinedResponse || false;\r\n me.handleQuestionType(res, isFromPreChat);\r\n }, 500);\r\n });\r\n }\r\n\r\n // check chatRoom loaded\r\n publishedPredefinedMessages(res, isFromPreChat) {\r\n const me = this;\r\n me.checkChatRoomLoaded(() => {\r\n // publish previously rendered messages here.\r\n me.publishPredefinedMessages((m) => {\r\n if (\r\n !me.hasAnswerInQTChatLogIdToBeUpdated &&\r\n m.questionType > ScriptsQuestionType.None\r\n ) {\r\n // when QT time calendar then execute below function\r\n if (\r\n m.questionType == ScriptsQuestionType.TimeCalendar ||\r\n m.questionType == ScriptsQuestionType.Text\r\n ) {\r\n me.handleQTCommaSepartedRow(m, res, isFromPreChat);\r\n } else {\r\n me.hasAnswerInQTChatLogIdToBeUpdated = true;\r\n res.isExitPopupPredefinedMessage = false;\r\n res.participantDisplayName =\r\n me.options.agentName || me.options.model.agentName;\r\n res.agentParticipantId = ParticipantIds.predefined; // CHAT-6370 predefined participantId -4\r\n res.userId = UserIds.simulated;\r\n res.visitorResponseStatus = ScriptVisitorResponseStatus.Answered;\r\n res.visitorSelectedOptions = `[{ \"option\": \"${res.msgText}\"}]`;\r\n res.chatLogId = m.id;\r\n res.isPredefinedResponse = me.isPredefinedResponse || false;\r\n res.questionTypeChatLogIdToBeUpdated = m.id;\r\n me.handleQuestionType(res, isFromPreChat);\r\n }\r\n }\r\n });\r\n });\r\n }\r\n\r\n // because, EP's FT could occur as v 1st predef msg, so we want EP to override widgetbase's handleFullTextType to do custom/additional job of sending it\r\n handleFullTextType(options) {\r\n const me = this;\r\n // $txt = me.$(el || me.messageInput, me.context);\r\n const res = options && options.res;\r\n const cb = options && options.cb;\r\n const isPredefinedResponse = res && res.isPredefinedResponse;\r\n const isSkippable = res && res.isSkipped;\r\n if (isSkippable === true) {\r\n me.skipFullTextType(res);\r\n return;\r\n }\r\n // make sure Chat Is Active and In Progress before sending the message to Websync\r\n if (!me.QTRendererExt.isLastFullTextValidated) {\r\n return;\r\n }\r\n RunAsSoonAs(\r\n () => {\r\n if (isPredefinedResponse) {\r\n me.publishPredefinedMessages((m) => {\r\n me.preserveChatArray = []; // clear\r\n logIt('FT::sent');\r\n me.room.sendMessage({\r\n chatMsg: res.msgText,\r\n isGreeting: res.isGreeting,\r\n shouldRenderResponseAsText: true,\r\n isPredefinedResponse,\r\n questionTypeChatLogIdToBeUpdated: m.id,\r\n onSuccess(data) {\r\n // on success of websync publish\r\n // if (isPredefinedResponse) {\r\n res.chatLogId = m.id;\r\n // // res.questionTypeChatLogIdToBeUpdated = data.id;\r\n // }\r\n logIt('FT::publishing EP FT Pred...');\r\n me.room.publishQuestionTypeResponse(res, cb);\r\n }\r\n });\r\n });\r\n }\r\n // logIt('FT::publishing FT res? ' + isPredefinedResponse);\r\n if (isPredefinedResponse) {\r\n return;\r\n }\r\n me.room.sendMessage({\r\n chatMsg: res.msgText,\r\n isGreeting: res.isGreeting,\r\n shouldRenderResponseAsText: true,\r\n isPredefinedResponse,\r\n questionTypeChatLogIdToBeUpdated: res.questionTypeChatLogIdToBeUpdated,\r\n onSuccess() {\r\n // on success of websync publish\r\n logIt('FT::publishing DOM/EP FT...');\r\n me.room.publishQuestionTypeResponse(res, cb);\r\n }\r\n });\r\n if (me.autoCompleteInput) {\r\n me.autoCompleteInput.value = ''; // clear text area when response submitted\r\n }\r\n },\r\n () =>\r\n // logIt('FT::handleFullTextType waiting for chatrrom connection...');\r\n me.isChatroomAlive() == true\r\n );\r\n }\r\n fixDataBinding(dataBindingTerm) {\r\n // FogBugs [2292] - START - Agent name and company name should be picked up dynamically as in classical widget.\r\n if (\r\n dataBindingTerm.indexOf('<#=companyName#>') !== -1 ||\r\n dataBindingTerm.indexOf('<#=companyName#>') !== -1\r\n ) {\r\n dataBindingTerm = dataBindingTerm\r\n .replace(/<#=companyName#>/g, this.options.model.companyName)\r\n .replace(/<#=companyName#>/g, this.options.model.companyName);\r\n }\r\n if (\r\n dataBindingTerm.indexOf('<#=agentName#>') !== -1 ||\r\n dataBindingTerm.indexOf('<#=agentName#>') !== -1\r\n ) {\r\n dataBindingTerm = dataBindingTerm\r\n .replace(/<#=agentName#>/g, this.options.model.agentName)\r\n .replace(/<#=agentName#>/g, this.options.model.agentName);\r\n }\r\n return dataBindingTerm;\r\n // FogBugs [2292] - END - Agent name and company name should be picked up dynamically as in classical widget.\r\n }\r\n}\r\n","/*\r\n * a class specifically for RD EP UI handling\r\n */\r\nimport EPUIController from './EPUIController';\r\nimport WidgetTypes from '../core/enums/WidgetTypes';\r\nimport TempCache from '../core/enums/TempCache';\r\n// import PokeMessageJob from '../PokeMessageJob';\r\nimport Utils from '../core/Utils';\r\nimport ChatMode from '../core/hooks/ChatMode';\r\nimport { LogoLocation } from '../core/enums/Enum';\r\nimport TempStorageCache from '../core/hooks/TempStorageCache';\r\nimport createElement from '../core/hooks/createElement';\r\nimport ChatEvents from '../core/hooks/ChatEvents';\r\nimport WidgetStates from '../core/hooks/WidgetStates';\r\nimport getStorageAPIValue from '../core/hooks/getStorageAPIValue';\r\nimport showElement from '../core/hooks/showElement';\r\nimport disableTypingInput from '../core/hooks/disableTypingInput';\r\nimport logIt from '../../logIt';\r\nimport applyResizeClassOnInput from '../core/hooks/resizeChatInput';\r\nimport toggleSendButtonClasses from '../core/hooks/toggleSendButton';\r\n\r\nexport default class RDEPUIController extends EPUIController {\r\n constructor(options) {\r\n super(options);\r\n const me = this;\r\n me.options = options;\r\n Object.assign(me.options.elements, {\r\n multiLanguage_dropdown_wrapperSelector: '.apexchat_rd_ep_language_select_wrapper',\r\n multiLanguage_dropdown_container: 'apexchat_rd_ep_language_select_wrapper',\r\n multiLanguage_dropdown_select: 'apexchat_rd_ep_language_select',\r\n emoticonsAreaSelector: '.livechat_emoticons_area_content',\r\n clickSelector: '#livechat_send_message_button',\r\n closeSelector: '.apex-ep-closemodel',\r\n typingIndicatorSelector: '.apexchat_rd_ep_typing',\r\n agentTitle: '.apex-profile-agent', // participantsSelector\r\n regionLabelSelector: '.apex-ep-rd-phone',\r\n rDEPHeaderLogoURLSelector: '.apex_rd_apex_title_logo',\r\n emojiIconSelector: '.livechat_emoticons_area',\r\n emojiContentSelector: '.livechat_emoticons_area_content',\r\n sidePanelHeaderText: '#apexchat-ep #apexchat-span-greeting',\r\n sidePanelWelcomeText: '#apexchat-ep .apex_rd_ep_hello_title',\r\n agentOnlineText: '.apex-profile-agent-online',\r\n textboxContainerSelector: '#apexchat-ep .apex-msg-wrapper',\r\n actionMenuSelector: '#apexchat_custom_dropdown_menu'\r\n });\r\n me.options.model.isRoundedDynamic = true;\r\n me.rdActionButtons();\r\n\r\n // [V3 - RD - EP] Profile level custom logo for header\r\n const rDEPHeaderLogoURL = me.$(me.options.elements.rDEPHeaderLogoURLSelector, me.context);\r\n me.options.model.rDEPHeaderLogoURL =\r\n me.options.model.rDEPHeaderLogoURL || 'apexchat-logo.png'; // default sample logo\r\n me.setLogoLocation({\r\n location: me.options.model.rDEPLogoLocation,\r\n logoUrl: me.options.model.rDEPHeaderLogoURL,\r\n logoSize: `${me.options.model.rDEPLogoSize}%`\r\n });\r\n me.options.model.rDEPLogoSize = me.options.model.rDEPLogoSize || '50';\r\n if (me.options.model.rDEPHeaderLogoURL.indexOf('apexchat-logo.png') === -1) {\r\n rDEPHeaderLogoURL.css({\r\n 'background-image': `url(${encodeURI(me.options.model.rDEPHeaderLogoURL)})`,\r\n 'background-size': `${me.options.model.rDEPLogoSize}%`\r\n });\r\n // summary: else if is introduced in case of those skins who are old have have not setup profile level header logo\r\n // and are still using the old themebuilder based logo.\r\n } else if (me.options.model.rDEPHeaderLogoURL.indexOf('apexchat-logo.png') > -1) {\r\n // apexchat-logo is the default logo which appears when there is no logo in profile setup\r\n rDEPHeaderLogoURL.css({\r\n 'background-size': `${me.options.model.rDEPLogoSize}%`\r\n });\r\n }\r\n // ExitPopup Side Panel content is dynamic here we are no longer using hardcoded values.\r\n me.options.model.sidePanelHeaderText =\r\n me.options.model.sidePanelHeaderText || TempCache.EP_SIDEPANEL_HEADER_TEXT; // for safe-side if value null, we are using default value.\r\n me.options.model.sidePanelWelcomeText =\r\n me.options.model.sidePanelWelcomeText || TempCache.EP_SIDEPANEL_WELCOME_TEXT;\r\n // For non Rd Plus Theme\r\n if (!ApexChat.IsRoundedDynamicPlusTheme) {\r\n const regionLabel = me.$(me.options.elements.regionLabelSelector, me.context);\r\n if (me.options.model.regionLabel) {\r\n regionLabel.text(me.options.model.regionLabel);\r\n }\r\n me.$(me.options.elements.sidePanelHeaderText, me.context).html(\r\n me.options.model.sidePanelHeaderText\r\n );\r\n me.$(me.options.elements.sidePanelWelcomeText, me.context).html(\r\n me.options.model.sidePanelWelcomeText\r\n );\r\n }\r\n\r\n me.changeFontSize(\r\n me.options.elements.sidePanelHeaderText,\r\n 'apexchat_ep_side_header_small_font',\r\n 18\r\n );\r\n me.changeFontSize(\r\n me.options.elements.sidePanelWelcomeText,\r\n 'apexchat_ep_side_welcome_small_font',\r\n 29\r\n );\r\n\r\n const innerWrapper = me.$(\r\n `#${WidgetTypes.ExitPopup + WidgetStates.ShownMaximized}`,\r\n me.context\r\n );\r\n innerWrapper.css('cssText', 'bottom: 30px !important;position:absolute; right: 25px'); // CHAT-5421 {V3] RD EP language drop down is being cut off.\r\n\r\n const helloRegion = me.$('#apexchat-ep #apexchat-span-hello .apex_rd_ep_hello', me.context);\r\n helloRegion.css('cssText', 'top: 40px;');\r\n // registering emoji events\r\n me.addEmojiEvents();\r\n if (me.options.model.scriptBotEnabled) {\r\n import(/* webpackChunkName: \"pokeMessageJob\" */ '../pokeMessage/PokeMessageJob').then(\r\n (module) => {\r\n const PokeMessageJob = module.default;\r\n me.pokeMessageJob = new PokeMessageJob(\r\n Object.assign(me.options, {\r\n isChatActive: me.isChatActive,\r\n isPageRefreshed: me.isPageRefreshed,\r\n postMessage: me.postMessage,\r\n preserveChatArray: me.preserveChatArray\r\n })\r\n );\r\n }\r\n );\r\n }\r\n me.subscribe(ChatEvents.onOperatorNotAvailable, () => {\r\n me.$(me.options.elements.transferChatSelector, me.context).remove();\r\n });\r\n me.subscribe(ChatEvents.OnChatTransferredToOperator, () => {\r\n me.options.model.aiBotEnabled = false;\r\n me.setTransferredToLiveAgent();\r\n me.$(me.options.elements.transferChatSelector, me.context).remove();\r\n if (\r\n me.multiLanguage_dropdown_wrapper &&\r\n me.options.model.showMultiLangDropDown &&\r\n me.nonSMSLanguages.length > 1\r\n ) {\r\n showElement(me.multiLanguage_dropdown_wrapper, true);\r\n }\r\n me.adjustRdActionMenu();\r\n });\r\n me.subscribe(ChatEvents.OnPredefinedCompleted, (args) => {\r\n if (me.options.model.scriptBotEnabled) {\r\n if (!me.isChatActive()) {\r\n me.pokeMessageJob?.start(); // Start Poke Messages when all predefined messages appeared.\r\n }\r\n }\r\n });\r\n me.adjustRdActionMenu();\r\n }\r\n\r\n // toggles new action icons based on chatMode and scriptBotEnabled flags\r\n // 1- show only Restart Chat icon if chatMode==Windowed\r\n // 2- show new Rd menu for Dom with Restart and popout items if scriptBotEnabled=true\r\n // 3- show just popout icon for DOM if scriptBotEnabled=false\r\n adjustRdActionMenu() {\r\n const me = this;\r\n // TODO: This function should not be executed when chatMode is Exit popup. we have to remove this function in exit popup case\r\n const reShowIntervalWindowed =\r\n me.options.reShowIntervalMinutes || me.options.model.reShowIntervalMinutes;\r\n if (\r\n me.isWindowedStarted() ||\r\n (me.options.chatMode && me.options.chatMode == ChatMode.Windowed)\r\n ) {\r\n // me.$('.apexchat_header_dropdown:not(.apexchat_tooltip)', me.context).remove();\r\n if (!me.options.model.scriptBotEnabled && !me.options.model.hasSmsNumber) {\r\n me.hideScriptbotMenuItems();\r\n me.$('.livechat_Headericon_wrapper', me.context).hide();\r\n me.$('.apexchat_header_dropdown', me.context).hide();\r\n } else if (me.isTransferredToLiveAgent()) {\r\n me.$('.apexchat_restartbutton', me.context).hide();\r\n if (reShowIntervalWindowed) {\r\n setTimeout(() => {\r\n me.rdWindowedActionButtons();\r\n }, reShowIntervalWindowed * 60 * 1000);\r\n }\r\n } else {\r\n me.hideScriptbotMenuItems();\r\n me.$('.apexchat_header_mute_button', me.context).hide();\r\n if (reShowIntervalWindowed) {\r\n setTimeout(() => {\r\n me.rdWindowedActionButtons();\r\n }, reShowIntervalWindowed * 60 * 1000);\r\n }\r\n }\r\n if (me.isTransferredToLiveAgent()) {\r\n me.$('.apexchat_restartbutton', me.context).hide();\r\n me.$('#menuItemRestart', me.context).hide();\r\n me.$('#menuItemRestart', me.context).hide();\r\n if (!me.options.model.hasSmsNumber) {\r\n me.$('.apexchat_header_mute_button', me.context).show();\r\n me.$('.apexchat_header_dropdown', me.context).hide();\r\n } else {\r\n me.$('.apexchat_header_mute_button', me.context).hide();\r\n }\r\n }\r\n } else {\r\n me.rdActionButtons();\r\n if (me.options.model.scriptBotEnabled || me.options.model.hasSmsNumber) {\r\n me.$('.apexchat_header_mute_button', me.context).hide();\r\n me.hideScriptbotMenuItems();\r\n } else if (!me.options.model.scriptBotEnabled) {\r\n me.$('.apexchat_header_dropdown', me.context).hide();\r\n me.$('.apexchat_focus_remove', me.context).hide();\r\n } else {\r\n me.rdActionButtons();\r\n }\r\n if (me.isTransferredToLiveAgent()) {\r\n me.$('#menuItemRestart', me.context).hide();\r\n me.$('.apexchat_header_mute_button', me.context).show();\r\n me.$('.apexchat_header_dropdown', me.context).hide();\r\n me.$('#menuItemRestart', me.context).hide();\r\n }\r\n }\r\n }\r\n\r\n hideScriptbotMenuItems() {\r\n const me = this;\r\n if (!me.options.model.scriptBotEnabled) {\r\n me.$('#menuItemRestart', me.context).hide();\r\n me.$('#menuItemTransfer', me.context).hide();\r\n }\r\n }\r\n changeFontSize(element, fontCss, length) {\r\n // change font size depend upon length of text.\r\n const me = this;\r\n me.$(element, me.context).each(function () {\r\n const el = me.$(this);\r\n const textLength = el.html().length;\r\n if (textLength > length) {\r\n el.addClass(fontCss);\r\n }\r\n });\r\n }\r\n\r\n setLogoLocation(options) {\r\n const me = this;\r\n switch (options.location) {\r\n case LogoLocation.Header:\r\n me.$('#apexchat-rd-logo-wrapper', me.context).show();\r\n me.$('#apexchat_ep_brand_logo', me.context).hide();\r\n break;\r\n case LogoLocation.Side: // do here\r\n me.$('#apexchat_ep_brand_logo', me.context).show();\r\n // we need to hide these specifc\r\n me.$('.apex_rd_apex_title_logo', me.context).hide();\r\n me.$('#apexchat-rd-logo-wrapper svg', me.context).css('opacity', '0');\r\n me.$('#apexchat-span-hello', me.context).hide();\r\n me.$('#apexchat_ep_img_brand_logo', me.context).attr('src', options.logoUrl);\r\n me.$('#apexchat_ep_img_brand_logo', me.context).css('width', options.logoSize);\r\n break;\r\n }\r\n }\r\n\r\n showTyping(args) {\r\n const me = this;\r\n me.typingIndicator.show();\r\n }\r\n\r\n hideTyping(args) {\r\n const me = this;\r\n me.typingIndicator.hide();\r\n }\r\n\r\n onTypingArrived(args, self) {\r\n const me = this;\r\n // TODO: will implement UI after integrating with Mahad's PR changes\r\n // var msgs = me.$('.apexchat_auto_genned_message_wrapper', me.context);\r\n // var msgCount = msgs.length;\r\n // var lastMsg = msgs[msgCount - 1];\r\n // var indicator = me.$(\"