Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vivocha/client-interaction-core

Package Overview
Dependencies
Maintainers
11
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vivocha/client-interaction-core - npm Package Compare versions

Comparing version 6.4.9 to 6.4.10

esm2015/lib/store/actions/events.actions.js

2

bundles/vivocha-client-interaction-core.umd.min.js

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@ngrx/store"),require("@ngx-translate/core"),require("@vivocha/public-entities/dist/wrappers/data_collection"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/common/http"),require("@ngx-translate/http-loader"),require("@ngrx/store-devtools")):"function"==typeof define&&define.amd?define("@vivocha/client-interaction-core",["exports","@angular/core","@ngrx/store","@ngx-translate/core","@vivocha/public-entities/dist/wrappers/data_collection","rxjs","rxjs/operators","@angular/common","@angular/common/http","@ngx-translate/http-loader","@ngrx/store-devtools"],e):e((t.vivocha=t.vivocha||{},t.vivocha["client-interaction-core"]={}),t.ng.core,null,null,null,t.rxjs,t.rxjs.operators,t.ng.common,t.ng.common.http,null,null)}(this,function(t,e,i,o,c,n,a,s,r,d,u){"use strict";var l=function(){return(l=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function p(e,s,c,r){return new(c||(c=Promise))(function(t,i){function o(t){try{a(r.next(t))}catch(e){i(e)}}function n(t){try{a(r["throw"](t))}catch(e){i(e)}}function a(e){e.done?t(e.value):new c(function(t){t(e.value)}).then(o,n)}a((r=r.apply(e,s||[])).next())})}function x(o,n){var a,s,c,t,r={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return t={next:e(0),"throw":e(1),"return":e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function i(t){if(a)throw new TypeError("Generator is already executing.");for(;r;)try{if(a=1,s&&(c=2&t[0]?s["return"]:t[0]?s["throw"]||((c=s["return"])&&c.call(s),0):s.next)&&!(c=c.call(s,t[1])).done)return c;switch(s=0,c&&(t=[2&t[0],c.value]),t[0]){case 0:case 1:c=t;break;case 4:return r.label++,{value:t[1],done:!1};case 5:r.label++,s=t[1],t=[0];continue;case 7:t=r.ops.pop(),r.trys.pop();continue;default:if(!(c=0<(c=r.trys).length&&c[c.length-1])&&(6===t[0]||2===t[0])){r=0;continue}if(3===t[0]&&(!c||t[1]>c[0]&&t[1]<c[3])){r.label=t[1];break}if(6===t[0]&&r.label<c[1]){r.label=c[1],c=t;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(t);break}c[2]&&r.ops.pop(),r.trys.pop();continue}t=n.call(o,r)}catch(e){t=[6,e],s=0}finally{a=c=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([e,t])}}}function h(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,n,a=i.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=a.next()).done;)s.push(o.value)}catch(c){n={error:c}}finally{try{o&&!o.done&&(i=a["return"])&&i.call(a)}finally{if(n)throw n.error}}return s}function D(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}var f="[Message] New message",g="[Message] Update message",v="[Message] Remove message",m=function ze(t){this.payload=t,this.type=f},y=function Fe(t){this.payload=t,this.type=g},S=function Le(t){this.payload=t,this.type=v},C=function(){function t(t){this.store=t}return t.prototype.addChatMessage=function(t,e,i){var o=(new Date).getTime().toString(),n={id:o,text:t.body,type:"chat",isAgent:e,time:this.getChatTimestamp(t.ts)};return e&&(n.agent=e),t.meta&&(n.meta=t.meta),i&&(n.visitorNick=i),this.store.dispatch(new m(n)),o},t.prototype.addCustomMessage=function(t){var e=(new Date).getTime().toString(),i={id:e,code:"message",type:"custom",body:l({},t)};return this.store.dispatch(new m(i)),e},t.prototype.addDialogMessage=function(t,e){t.quick_replies?this.addQuickRepliesMessage(t,e):t.template?this.addTemplateMessage(t,e):this.addChatMessage(t,e)},t.prototype.addLocalMessage=function(t){var e=(new Date).getTime().toString(),i={id:e,text:t,type:"chat",isAgent:!1,time:this.getChatTimestamp()};return this.store.dispatch(new m(i)),e},t.prototype.addLinkMessage=function(t,e,i,o,n){var a=(new Date).getTime().toString(),s={id:a,text:o||t,url:t,from_id:e,from_nick:i,type:"link",time:this.getChatTimestamp()};return this.store.dispatch(new m(s)),a},t.prototype.addQuickRepliesMessage=function(t,e){var i=(new Date).getTime().toString(),o={id:i,code:"message",type:"quick-replies",body:t.body,quick_replies:t.quick_replies,quick_replies_orientation:t.quick_replies_orientation,scrollLeft:0,time:this.getChatTimestamp()};return e&&(o.agent=e),this.store.dispatch(new m(o)),i},t.prototype.addTemplateMessage=function(t,e){var i=(new Date).getTime().toString(),o={id:i,type:"template",template:t.template.type,elements:t.template.elements,buttons:t.template.buttons,body:t.body,original:t.template,scrollLeft:0,time:this.getChatTimestamp()};return e&&(o.agent=e),this.store.dispatch(new m(o)),i},t.prototype.getChatTimestamp=function(t){var e;return e=t?new Date(t):new Date,(9<parseInt(e.getHours())?e.getHours():"0"+e.getHours())+":"+(9<parseInt(e.getMinutes())?e.getMinutes():"0"+e.getMinutes())},t.prototype.removeMessage=function(t){this.store.dispatch(new S(t))},t.prototype.sendRequestMessage=function(t){var e=(new Date).getTime().toString(),i={id:e,type:"request",text:t.toUpperCase()};return this.store.dispatch(new m(i)),e},t.prototype.sendSystemMessage=function(t,e){var i=(new Date).getTime().toString(),o={id:i,type:"system",text:t};return e&&(o.context=e),this.store.dispatch(new m(o)),i},t.prototype.updateQuickReply=function(t){this.store.dispatch(new y({id:t,patch:{replied:!0}}))},t.prototype.updateLeftScroll=function(t){this.store.dispatch(new y({id:t.messageId,patch:{scrollLeft:t.scrollLeft}}))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store}]},t}(),b="[Widget] Closed by Agent",w="[Widget] Closed by Visitor",O="[Widget] Contact Failed",T="[Widget] Hide Queue For Chat",M="[Widget] Incoming Media",R="[Widget] Init Chat",I="[Widget] Init Context",j="[Widget] Init Multimedia",A="[Widget] Init Protocol",P="[Widget] Is Offering",V="[Widget] Is Uploading",E="[Widget] Is Writing",k="[Widget] In Video Transit",_="[Widget] Mark as read",B="[Widget] Media Change",U="[Widget] Media Offer",W="[Widget] Mute in progress",z="[Widget] Mute Success",F="[Widget] New Message",L="[Widget] Offer Accepted",q="[Widget] Offer Rejected",N="[Widget] Set Agent",G="[Widget] Set Auto Chat",Q="[Widget] Set Cbn Mode",H="[Widget] Set Cbn State",J="[Widget] Set Dialog UI",Y="[Widget] Set Error",Z="[Widget] Set Fullscreen",K="[Widget] Set Minimized",X="[Widget] Set Minimized Media",$="[Widget] Set Normal",tt="[Widget] Set Top Bar",et="[Widget] Fullscreen Chat",it="[Widget] Show Close Panel",ot="[Widget] Show Queue Panel",nt="[Widget] Show Upload Panel",at="[Widget] Toggle Emoji Panel",st="[Widget] Ui Ready",ct="[Widget] Upload Completed",rt="[Widget] Upgrade Cbn to Chat",dt="[Widget] Weblead Sent",ut=function qe(){this.type=b},lt=function Ne(){this.type=w},pt=function Ge(){this.type=O},ht=function Qe(){this.type=T},ft=function He(t){this.payload=t,this.type=M},gt=function Je(t){this.payload=t,this.type=R},vt=function Ye(t){this.payload=t,this.type=I},mt=function Ze(t){this.payload=t,this.type=j},yt=function Ke(t){this.payload=t,this.type=A},St=function Xe(t){this.payload=t,this.type=P},Ct=function $e(){this.type=V},bt=function ti(t){this.payload=t,this.type=E},xt=function ei(t){this.payload=t,this.type=k},wt=function ii(){this.type=_},Ot=function oi(t){this.payload=t,this.type=B},Tt=function ni(t){this.payload=t,this.type=U},Mt=function ai(){this.type=W},Rt=function si(t){this.payload=t,this.type=z},It=function ci(){this.type=F},jt=function ri(){this.type=L},At=function di(){this.type=q},Dt=function ui(t){this.payload=t,this.type=N},Pt=function li(){this.type=G},Vt=function pi(t){this.payload=t,this.type=Q},Et=function hi(t){this.payload=t,this.type=H},kt=function fi(){this.type=J},_t=function gi(){this.type=Y},Bt=function vi(){this.type=Z},Ut=function mi(){this.type=K},Wt=function yi(t){this.payload=t,this.type=X},zt=function Si(){this.type=$},Ft=function Ci(t){this.payload=t,this.type=tt},Lt=function bi(t){this.payload=t,this.type=et},qt=function xi(t){this.payload=t,this.type=it},Nt=function wi(){this.type=ot},Gt=function Oi(t){this.payload=t,this.type=nt},Qt=function Ti(){this.type=at},Ht=function Mi(){this.type=ct},Jt=function Ri(){this.type=st},Yt=function Ii(){this.type=rt},Zt=function ji(){this.type=dt},Kt={context:{loaded:!1,translationLoaded:!1,isUiLoaded:!1},media:{isMinimized:!1},topBar:{},protocol:{contactStarted:!1}};function Xt(t,e){switch(void 0===t&&(t=Kt),e.type){case b:var i=Object.assign({},t.context,{closedByAgent:!0,showClosePanel:!1});return Object.assign({},t,{context:i});case w:i=Object.assign({},t.context,{closedByVisitor:!0,showClosePanel:!1});return Object.assign({},t,{context:i});case O:i=Object.assign({},t.context,{isUiLoaded:!0,contactCreationFailed:!0,hasError:!0,showQueuePanel:!0});return Object.assign({},t,{context:i});case T:var o={isVisible:!0,canUploadFiles:t.context.variables.showUploadButton,canSendEmoji:t.context.variables.showEmojiButton,uploadPanelOpened:!1,emojiPanelOpened:!1,notRead:0};return Object.assign({},t,{chat:o});case R:o={isVisible:t.protocol.initialOffer&&t.protocol.initialOffer.Chat,canUploadFiles:t.context.variables.showUploadButton,canSendEmoji:t.context.variables.showEmojiButton,uploadPanelOpened:!1,emojiPanelOpened:!1,notRead:0};return Object.assign({},t,{chat:o});case I:i=Object.assign({},t.context,l({},e.payload));return Object.assign({},t,{context:i});case j:var n=t.protocol.initialOffer&&t.protocol.initialOffer.Video&&(t.protocol.initialOffer.Video.rx||t.protocol.initialOffer.Video.tx),a={isVisible:t.protocol.initialOffer&&t.protocol.initialOffer.Voice&&(t.protocol.initialOffer.Voice.rx||t.protocol.initialOffer.Voice.tx)||n,isMinimized:t.protocol.initialOffer&&t.protocol.initialOffer.Chat};return Object.assign({},t,{media:a});case A:return Object.assign({},t,{protocol:e.payload});case V:i=Object.assign({},t.context,{isUploading:!0,uploadCompleted:!1});return Object.assign({},t,{context:i});case E:var s=Object.assign({},t.chat,{isWriting:e.payload});return Object.assign({},t,{chat:s});case _:s=Object.assign({},t.chat,{notRead:0});return Object.assign({},t,{chat:s});case B:a=Object.assign({},t.media,{media:e.payload});var c=Object.assign({},t.protocol,{incomingOffer:!1,isOffering:!1,offeringMedia:""});return Object.assign({},t,{media:a,protocol:c});case M:c=Object.assign({},t.protocol,{incomingMedia:e.payload,incomingOffer:!0}),a=Object.assign({},t.media,{isVisible:!0});return Object.assign({},t,{protocol:c,media:a});case U:c=Object.assign({},t.protocol,{offer:e.payload});return Object.assign({},t,{protocol:c});case P:c=Object.assign({},t.protocol,{offeringMedia:e.payload,isOffering:!0}),a=Object.assign({},t.media,{isVisible:!0});return Object.assign({},t,{protocol:c,media:a});case k:c=Object.assign({},t.protocol,{inVideoTransit:e.payload});return Object.assign({},t,{protocol:c});case W:a=Object.assign({},t.media,{muteInProgress:!0});return Object.assign({},t,{media:a});case z:a=Object.assign({},t.media,{muteInProgress:!1,isMuted:e.payload});return Object.assign({},t,{media:a});case F:if(t.context.isMinimized||t.context.cbnMode||!t.chat.isVisible||t.media.isVisible&&!t.media.isMinimized||t.context.isFullScreen&&!t.chat.showOnFullScreen){s=Object.assign({},t.chat,{notRead:t.chat.notRead+1});return Object.assign({},t,{chat:s})}return t;case L:case q:c=Object.assign({},t.protocol,{incomingOffer:!1,isOffering:!1,offeringMedia:""});return Object.assign({},t,{protocol:c});case N:s=Object.assign({},t.chat,{isAutoChat:!1}),i=Object.assign({},t.context,{showQueuePanel:!1});return Object.assign({},t,{agent:e.payload,context:i,chat:s});case G:o={isVisible:!0,isAutoChat:!0,canUploadFiles:!1,canSendEmoji:!1,uploadPanelOpened:!1,emojiPanelOpened:!1,notRead:0};return Object.assign({},t,{chat:o});case Q:i=Object.assign({},t.context,{cbnMode:e.payload});return Object.assign({},t,{context:i});case H:i=Object.assign({},t.context,{cbnState:e.payload});return Object.assign({},t,{context:i});case J:o={isVisible:!0,canUploadFiles:!1,canSendEmoji:!1,uploadPanelOpened:!1,emojiPanelOpened:!1,notRead:0},i=Object.assign({},t.context,{showQueuePanel:!1});return Object.assign({},t,{chat:o,context:i});case Y:i=Object.assign({},t.context,{hasError:!0,showQueuePanel:!0});return Object.assign({},t,{context:i});case Z:i=Object.assign({},t.context,{isFullScreen:!0,isMinimized:!1});return Object.assign({},t,{context:i});case K:i=Object.assign({},t.context,{isMinimized:!0});return Object.assign({},t,{context:i});case X:a=Object.assign({},t.media,{isMinimized:e.payload});return Object.assign({},t,{media:a});case $:i=Object.assign({},t.context,{isMinimized:!1,isFullScreen:!1});return Object.assign({},t,{context:i});case tt:var r=Object.assign({},t.topBar,e.payload);return Object.assign({},t,{topBar:r});case et:s=Object.assign({},t.chat,{showOnFullScreen:e.payload});return Object.assign({},t,{chat:s});case it:i=Object.assign({},t.context,{showClosePanel:e.payload});return Object.assign({},t,{context:i});case ot:i=Object.assign({},t.context,{showQueuePanel:!0});return Object.assign({},t,{context:i});case nt:s=Object.assign({},t.chat,{uploadPanelOpened:e.payload,emojiPanelOpened:!1});return Object.assign({},t,{chat:s});case at:s=Object.assign({},t.chat,{emojiPanelOpened:!t.chat.emojiPanelOpened,uploadPanelOpened:!1});return Object.assign({},t,{chat:s});case st:i=Object.assign({},t.context,{isUiLoaded:!0});return Object.assign({},t,{context:i});case ct:i=Object.assign({},t.context,{isUploading:!1,uploadCompleted:!0}),s=Object.assign({},t.chat,{uploadPanelOpened:!1});return Object.assign({},t,{context:i,chat:s});case rt:i=Object.assign({},t.context,{cbnMode:!1});return Object.assign({},t,{context:i});case dt:i=Object.assign({},t.context,{hasError:!0,showQueuePanel:!0,webleadSent:!0});return Object.assign({},t,{context:i});default:return t}}var $t={list:[]};function te(t,e){switch(void 0===t&&(t=$t),e.type){case g:var i=t.list.map(function(t){return t.id===e.payload.id?Object.assign({},t,e.payload.patch):t});return Object.assign({},t,{list:D(i)});case f:return Object.assign({},t,{list:D(t.list,[e.payload])});case v:return Object.assign({},t,{list:t.list.filter(function(t){return t.id!==e.payload})});default:return t}}var ee="[Data Collection] Initialized",ie="[Data Collection] Added Definition",oe="[Data Collection] Selected",ne="[Data Collection] Completed",ae="[Data Collection] Resolved",se="[Data Collection] Show Panel",ce=function Ai(t){this.payload=t,this.type=ee},re=function Di(t){this.payload=t,this.type=ie},de=function Pi(t){this.payload=t,this.type=ne},ue=function Vi(t){this.payload=t,this.type=oe},le=function Ei(){this.type=ae},pe=function ki(t){this.payload=t,this.type=se},he={items:{},completed:!1};function fe(t,e){switch(void 0===t&&(t=he),e.type){case ee:return Object.assign({},t,l({},t,e.payload));case ie:var i=l({},t.items,((o={})[e.payload.id]=e.payload,o));return Object.assign({},t,{items:i});case ne:return Object.assign({},t,{lastCompleted:e.payload});case oe:return Object.assign({},t,{selectedItem:{dc:e.payload.dc,type:e.payload.type},completed:!1});case ae:return Object.assign({},t,{completed:!0});case se:return Object.assign({},t,{showDataCollectionPanel:e.payload});default:return t}var o}var ge="[Context] Load Success",ve=function _i(t){this.payload=t,this.type=ge},me={loaded:!1};function ye(t,e){switch(void 0===t&&(t=me),e.type){case ge:return Object.assign({},t,e.payload);default:return t}}var Se={context:ye,widget:Xt,messages:te,dataCollection:fe},Ce=i.createFeatureSelector("widget"),be=i.createFeatureSelector("messages"),xe=i.createFeatureSelector("dataCollection"),we=i.createFeatureSelector("context"),Oe=i.createSelector(be,function(s){return{list:D(s.list.map(function(t,e){var i=!1,o=!1,n=s.list[e+1],a=s.list[e-1];return o=!a||!!(t.type!==a.type||t.isAgent!==a.isAgent||t.agent&&a.agent&&t.agent.id!==a.agent.id),i=!n||!!(t.type!==n.type||t.isAgent!==n.isAgent||a&&t.agent&&a.agent&&t.agent.id!==a.agent.id),Object.assign({},t,{isLast:i,isFirst:o})}))}}),Te=i.createSelector(Ce,Oe,xe,function(t,e,i){var o=t.media.media,n=o&&t.media.media.Voice&&"pstn"!==t.media.media.Voice.via&&(t.media.media.Voice.rx||t.media.media.Voice.tx),a=o&&t.media.media.Video,s=a&&t.media.media.Video.tx,c=a&&t.media.media.Video.rx,r=s&&t.media.media.Video.data&&t.media.media.Video.data.tx_stream&&!!t.media.media.Video.data.tx_stream.media,d=!!r&&t.media.media.Video.data.tx_stream.media,u=c&&t.media.media.Video.data&&t.media.media.Video.data.rx_stream&&!!t.media.media.Video.data.rx_stream.media,l=!!u&&t.media.media.Video.data.rx_stream.media,p=n&&t.media.media.Voice.data&&t.media.media.Voice.data.rx_stream&&!!t.media.media.Voice.data.rx_stream.media,h=t.media.media&&t.media.media.Screen&&t.media.media.Screen.data&&t.media.media.Screen.data.rx_stream&&!!t.media.media.Screen.data.rx_stream.media,f=!!p&&t.media.media.Voice.data.rx_stream.media,g=!!h&&t.media.media.Screen.data.rx_stream.media,v=n&&!p,m=s&&r,y=c&&u,S=s&&!r||c&&!u,C=m||y,b=n&&p||m||y||g,x=v||S,w=t.chat&&!t.chat.uploadPanelOpened&&(t.protocol.incomingOffer||t.protocol.isOffering||x||b),O=t.context.webleadSent||t.context.closedByAgent||t.context.closedByVisitor||t.context.showQueuePanel||!t.context.isUiLoaded||i.selectedItem&&!i.completed,T=t.protocol.canStartAudio&&!n&&!v&&t.agent&&t.agent.is_agent&&"Voice"!==t.protocol.offeringMedia,M=t.protocol.canStartVideo&&t.agent&&t.agent.is_agent&&!s&&!S,R=t.context.showQueuePanel||t.context.cbnMode||w&&!t.media.isMinimized&&!t.context.isFullScreen||t.protocol.isOffering||t.protocol.incomingOffer,I=t.context.closedByAgent||t.context.closedByVisitor||t.context.webleadSent||t.context.hasError,j=t.chat&&!t.context.showQueuePanel&&!i.showDataCollectionPanel&&!t.protocol.isOffering&&!t.protocol.incomingOffer&&!x&&(!b||b&&t.media.isMinimized||t.context.isFullScreen),A=j&&(!I||i.selectedItem&&"dialog"===i.selectedItem.dc.type&&"survey"!==i.lastCompleted.type);return{agent:t.agent,messages:D(e.list),variables:t.context.variables||{},canMaximize:C||g,canMinimize:!0,canRemoveApp:O,canStartAudio:T,canStartVideo:M,cbnMode:t.context.cbnMode&&!t.context.showQueuePanel,cbnState:t.context.cbnState,connectedWithAgent:t.agent&&t.agent.is_agent,connectedWithBot:t.agent&&t.agent.is_bot,contactCreationFailed:t.context.contactCreationFailed,contactStarted:t.protocol.contactStarted,hasError:t.context.hasError,hasSurvey:!!t.context.surveyId,incomingOffer:t.protocol.incomingOffer,incomingMedia:t.protocol.incomingMedia,inVideoTransit:t.protocol.inVideoTransit,isAutoChat:t.chat&&t.chat.isAutoChat,isLoading:!t.context.isUiLoaded,isInQueue:t.context.showQueuePanel&&(i.completed||t.context.contactCreationFailed),isChatVisible:j&&!t.context.cbnMode,isChatBoxVisible:A,isClosed:I,isClosedByAgent:t.context.closedByAgent,isClosedByVisitor:t.context.closedByVisitor,isMediaConnected:b,isMediaConnecting:x,isMediaVisible:w,isMediaMinimized:t.media.isMinimized&&!t.protocol.isOffering&&!t.protocol.incomingOffer,isMinimized:t.context.isMinimized,isMobile:t.context.isMobile,isMuted:t.media.isMuted,isOffering:t.protocol.isOffering,isFullScreen:t.context.isFullScreen&&!I,isSendAreaVisible:A,isUploading:t.context.isUploading,isWriting:t.chat&&t.chat.isWriting&&!I,notRead:t.chat?t.chat.notRead:0,offeringMedia:t.protocol.offeringMedia,selectedDataCollection:i.selectedItem,showCloseModal:t.context.showClosePanel,showChatOnFullScreen:t.chat&&t.chat.showOnFullScreen,showDataCollectionPanel:i.showDataCollectionPanel,showEmojiPanel:t.chat&&t.chat.emojiPanelOpened,showUploadPanel:t.chat&&t.chat.uploadPanelOpened,topBarTitle:R?"":t.topBar.title,topBarSubtitle:R?"":t.topBar.subtitle,topBarAvatar:R?"":t.topBar.avatar,translationLoaded:t.context.translationLoaded,uploadCompleted:t.context.uploadCompleted,voiceRxStream:f,videoRxStream:l,videoTxStream:d,screenRxStream:g,webleadSent:t.context&&t.context.webleadSent}}),Me=i.createSelector(xe,function(t){return t.lastCompleted});var Re=function(){function t(){}return Object.defineProperty(t.prototype,"nativeWindow",{get:function(){return function t(){return window}()},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Injectable}],t}(),Ie=function(){function t(t){var e=this;this.store=t,this.store.select(Ce).subscribe(function(t){e.currentState=t})}return t.prototype.setCbnMode=function(){this.store.dispatch(new Vt(!0))},t.prototype.hideChat=function(){this.store.dispatch(new Wt(!1))},t.prototype.hideQueueForChat=function(){this.store.dispatch(new ht)},t.prototype.initializeChat=function(t){this.store.dispatch(new gt(t))},t.prototype.initializeContext=function(t){this.store.dispatch(new ve(t)),this.store.dispatch(new vt(t))},t.prototype.initializeMedia=function(t){this.initializeChat(t),this.initializeMultimedia(t),this.setMediaState(t)},t.prototype.initializeMultimedia=function(t){this.store.dispatch(new mt(t))},t.prototype.initializeProtocol=function(t,e){this.store.dispatch(new yt({mediaPreset:t.mediaPreset,canStartAudio:"both"===t.media.voice||"visitor"===t.media.voice,canStartVideo:"both"===t.media.video||"visitor"===t.media.video,initialOffer:e.initialOffer,contactStarted:!0}))},t.prototype.loadDataCollections=function(t){},t.prototype.newMessageReceived=function(){this.store.dispatch(new It)},t.prototype.resetTopBar=function(){this.store.dispatch(new Ft({title:"",subtitle:"",avatar:""}))},t.prototype.selectDataCollection=function(t){this.store.dispatch(new ue(t)),this.store.dispatch(new Ft({title:"STRINGS.QUEUE.TOPBAR.TITLE",subtitle:t.labelId,avatar:""}))},t.prototype.setOfferAccepted=function(){this.store.dispatch(new jt)},t.prototype.setAgent=function(t){this.store.dispatch(new Dt(t))},t.prototype.setAutoChat=function(){this.store.dispatch(new Pt)},t.prototype.setCbnState=function(t){this.store.dispatch(new Et(t))},t.prototype.setClosedByAgent=function(){this.store.dispatch(new ut)},t.prototype.setClosedByVisitor=function(){this.store.dispatch(new lt)},t.prototype.setCloseModal=function(t){this.store.dispatch(new qt(t))},t.prototype.setCreationFailed=function(){this.store.dispatch(new pt)},t.prototype.setDataCollectionCompleted=function(t,e){},t.prototype.setDialogUi=function(){this.store.dispatch(new kt)},t.prototype.setDissuasion=function(){this.store.dispatch(new _t)},t.prototype.setFullScreenChat=function(t){this.store.dispatch(new Lt(t)),this.store.dispatch(new wt)},t.prototype.setFullScreen=function(){this.store.dispatch(new Bt)},t.prototype.setHangUpState=function(){this.store.dispatch(new zt)},t.prototype.setNormalScreen=function(){this.store.dispatch(new zt),this.store.dispatch(new Lt(!1))},t.prototype.setIncomingMedia=function(t){this.store.dispatch(new ft(t))},t.prototype.setInTransit=function(t){this.store.dispatch(new xt(t))},t.prototype.setIsOffering=function(t){this.store.dispatch(new St(t))},t.prototype.setIsWriting=function(t){this.store.dispatch(new bt(t))},t.prototype.setMediaOffer=function(t){this.store.dispatch(new Tt(t))},t.prototype.setMediaState=function(t){this.store.dispatch(new Ot(t))},t.prototype.setMinimizedState=function(){this.store.dispatch(new Ut)},t.prototype.setMinimizedMedia=function(){this.store.dispatch(new Wt(!0)),this.store.dispatch(new wt)},t.prototype.setMuted=function(t){this.store.dispatch(new Rt(t))},t.prototype.setMuteInProgress=function(){this.store.dispatch(new Mt)},t.prototype.setNormalState=function(){this.store.dispatch(new zt),this.store.dispatch(new wt)},t.prototype.setOfferRejected=function(){this.store.dispatch(new At)},t.prototype.setTopBar=function(t){this.store.dispatch(new Ft({title:t.title,subtitle:t.subtitle}))},t.prototype.setTopBarAvatar=function(t){this.store.dispatch(new Ft({avatar:t}))},t.prototype.setTopBarSubtitle=function(t){this.store.dispatch(new Ft({subtitle:t}))},t.prototype.setTopBarTitle=function(t){this.store.dispatch(new Ft({title:t}))},t.prototype.setTopBarWithAvatar=function(t,e,i){this.store.dispatch(new Ft({title:e,subtitle:i,avatar:t}))},t.prototype.setTopBarWithAgentInfo=function(t){this.store.dispatch(new Ft({title:t.nick,subtitle:"STRINGS.QUEUE.TOPBAR.CONNECTED",avatar:t.avatar}))},t.prototype.setSurveyPanel=function(){this.store.dispatch(new Ft({title:"STRINGS.SURVEY.TITLE",subtitle:"STRINGS.SURVEY.SUBTITLE"}))},t.prototype.setUiReady=function(){this.store.dispatch(new Jt)},t.prototype.setUploadPanel=function(t){this.store.dispatch(new Gt(t))},t.prototype.setUploading=function(){this.store.dispatch(new Ct)},t.prototype.setUploaded=function(){this.store.dispatch(new Ht)},t.prototype.setWebleadSent=function(){this.store.dispatch(new Zt)},t.prototype.showQueuePanel=function(){this.store.dispatch(new Nt)},t.prototype.toggleEmojiPanel=function(){this.store.dispatch(new Qt)},t.prototype.upgradeCbnToChat=function(){this.store.dispatch(new Yt)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store}]},t}(),je=function(){function t(t,e,i,o,n){this.store=t,this.uiService=e,this.wref=i,this.ts=o,this.zone=n,this.isMobile=!1,this.window=i.nativeWindow,this.parseIframeUrl(),this.checkForVivocha()}return t.prototype.checkForVivocha=function(){return p(this,void 0,void 0,function(){var e,i,o=this;return x(this,function(t){switch(t.label){case 0:return this.window.vivocha&&this.window.vivocha.ready?[4,this.window.vivocha.ready(this.busId)]:[3,4];case 1:return t.sent(),[4,this.window.vivocha.pageRequest("getContext")];case 2:return e=t.sent(),[4,this.window.vivocha.pageRequest("getInteractionModeDataCollectionId",e.mediaPreset)];case 3:return(i=t.sent())&&(e.dataCollectionIds||(e.dataCollectionIds=[]),e.dataCollectionIds.push(i)),this.zone.run(function(){o.vivocha=o.window.vivocha,o.isMobile=o.window.vivocha.isMobile(),o.context=e,o.dispatchContext(e)}),[3,5];case 4:setTimeout(function(){return o.checkForVivocha()},200),t.label=5;case 5:return[2]}})})},t.prototype.dispatchContext=function(e){var i=this;this.ts.use(e.language),this.ts.getTranslation(e.language).toPromise().then(function(t){i.uiService.initializeContext(l({loaded:!0,translationLoaded:!0,isMobile:i.isMobile,busId:i.busId,acct:i.acct,world:i.world,variables:i.window.VVC_VAR_ASSETS||{}},e))})},t.prototype.getVivocha=function(){return this.vivocha},t.prototype.parseIframeUrl=function(){if(-1!==this.window.location.hash.indexOf(";")){var t=this.window.location.hash.substr(2).split(";");this.busId=t[0],this.acct=t[1],this.world=t[2]}},t.prototype.ready=function(){return this.store.pipe(i.select(we))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store},{type:Ie},{type:Re},{type:o.TranslateService},{type:e.NgZone}]},t}(),Ae=function(){function t(t,e,i){this.store=t,this.uiService=e,this.messageService=i,this.contactOptions={data:[]},this.selectedIdx=0,this.dcType="dc",this.dcRefs=[]}return t.prototype.setCollectorAgent=function(){this.collectorAgent={avatar:this.context.variables.collectorDefaultAvatar,id:"collector",nick:"collector",is_agent:!1,is_bot:!0}},t.prototype.setInitialContext=function(t,e){this.context=t,this.vivocha=e,this.setCollectorAgent(),this.store.dispatch(new ce({dataCollectionIds:this.context.dataCollectionIds||[],surveyId:this.context.surveyId}))},t.prototype.onDataCollectionCompleted=function(){return this.store.select(Me)},t.prototype.processDataCollections=function(){return p(this,void 0,void 0,function(){var e;return x(this,function(t){switch(t.label){case 0:return this.hasDataCollection()?[3,1]:(this.store.dispatch(new de({type:"dc"})),[3,3]);case 1:return[4,(e=this).vivocha.pageRequest("mergeDataCollections",this.context.dataCollectionIds)];case 2:e.dcRefs=t.sent(),this.processDcByIdx(0),t.label=3;case 3:return[2]}})})},t.prototype.processDcById=function(i,o){return p(this,void 0,void 0,function(){var e;return x(this,function(t){switch(t.label){case 0:return[4,this.vivocha.pageRequest("prepareDataCollectionById",i)];case 1:return e=t.sent(),this.processDcByRef(e,o),[2]}})})},t.prototype.processDcByIdx=function(i){return p(this,void 0,void 0,function(){var e;return x(this,function(t){return this.selectedIdx=i,e=this.dcRefs[this.selectedIdx],this.processDcByRef(e),[2]})})},t.prototype.processDcByRef=function(o,n){return p(this,void 0,void 0,function(){var e,i;return x(this,function(t){switch(t.label){case 0:return n&&(this.dcType=n),this.store.dispatch(new re(o)),"form"!==o.type?[3,2]:[4,this.vivocha.pageRequest("prepareDataCollection",o)];case 1:return e=t.sent(),this.hasVisibleFields(e)?(this.uiService.setUiReady(),this.store.dispatch(new ue({dc:e,type:this.dcType})),this.store.dispatch(new pe(!0))):this.submitHiddenDataCollection(e),[3,4];case 2:return this.uiService.setUiReady(),this.store.dispatch(new ue({dc:o,type:this.dcType})),this.store.dispatch(new pe(!1)),[4,(i=this).vivocha.pageRequest("createCollector",o)];case 3:i.collectorRef=t.sent(),this.uiService.setDialogUi(),this.sendMessageViaCollector(!1,""),t.label=4;case 4:return[2]}})})},t.prototype.processRecontact=function(){this.store.dispatch(new de({type:"recontact",contactCreateOptions:this.contactOptions}))},t.prototype.hasDataCollection=function(){return this.context.dataCollectionIds&&0<this.context.dataCollectionIds.length},t.prototype.hasSurvey=function(){return this.context&&!!this.context.surveyId},t.prototype.hasVisibleFields=function(t){var i=!1;return t.fields&&t.fields.forEach(function(t){var e="undefined"!=typeof t.defaultConstant&&null!=t.defaultConstant;-1===["visitor","both"].indexOf(t.hidden)&&(!e||e&&t.editIfDefault)&&(i=!0)}),i},t.prototype.sendMessageViaCollector=function(c,r,d){return p(this,void 0,void 0,function(){var e,i,o,n,a,s=this;return x(this,function(t){switch(t.label){case 0:return this.collectorRef?(e=void 0,c?[4,this.collectorRef.onPostback(r,d)]:[3,2]):[3,9];case 1:return e=t.sent(),[3,4];case 2:return[4,this.collectorRef.onText(r,d)];case 3:e=t.sent(),t.label=4;case 4:return e.forEach(function(t){s.messageService.addDialogMessage(t,s.collectorAgent)}),[4,this.collectorRef.completed()];case 5:return t.sent()?(n=(o=this.vivocha).pageRequest,a=["spreadCollectedData"],[4,this.collectorRef.data()]):[3,9];case 6:return a=a.concat([t.sent()]),[4,this.collectorRef.definition()];case 7:return[4,n.apply(o,a.concat([t.sent()]))];case 8:i=t.sent(),"dc"===this.dcType&&this.dcRefs&&this.dcRefs[this.selectedIdx+1]?(this.contactOptions.data=D(this.contactOptions.data,i),this.processDcByIdx(this.selectedIdx+1)):"survey"===this.dcType?this.store.dispatch(new de({type:this.dcType,dataCollection:i[0]})):(this.contactOptions.data=D(this.contactOptions.data,i),this.store.dispatch(new de({type:this.dcType,contactCreateOptions:this.contactOptions,lastCompletedType:"dialog"}))),t.label=9;case 9:return[2]}})})},t.prototype.setResolved=function(){this.store.dispatch(new le),this.store.dispatch(new pe(!1))},t.prototype.showSurvey=function(){return p(this,void 0,void 0,function(){return x(this,function(t){return this.processDcById(this.context.surveyId,"survey"),[2]})})},t.prototype.submitDataCollection=function(s){return p(this,void 0,void 0,function(){var e,i,o,n,a;return x(this,function(t){switch(t.label){case 0:for(e=s.dcDefinition,i=s.dcData,o=0;o<e.fields.length;o++)if("nickname"===e.fields[o].format&&i[e.fields[o].id]){this.contactOptions.nick=i[e.fields[o].id];break}return[4,this.vivocha.pageRequest("spreadCollectedData",s.dcData,s.dcDefinition)];case 1:return n=t.sent(),"dc"===this.dcType?this.dcRefs[this.selectedIdx+1]?(this.contactOptions.data=D(this.contactOptions.data,n),this.processDcByIdx(this.selectedIdx+1)):(this.contactOptions.data=D(this.contactOptions.data,n),this.store.dispatch(new de({type:"dc",contactCreateOptions:this.contactOptions,lastCompletedType:"form"}))):"survey"===this.dcType?(a=c.objectToDataCollection(s.dcData,s.dcDefinition.id,s.dcDefinition),this.store.dispatch(new de({type:this.dcType,dataCollection:a}))):(this.contactOptions.data=D(this.contactOptions.data,n),this.store.dispatch(new de({type:this.dcType,contactCreateOptions:this.contactOptions,lastCompletedType:"form"}))),[2]}})})},t.prototype.submitHiddenDataCollection=function(t){var i={};t.fields&&t.fields.forEach(function(t){var e="undefined"!=typeof t.defaultConstant&&null!=t.defaultConstant;i[t.id]=e?t.defaultConstant.toString():t.defaultConstant});var e={dcDefinition:t,dcData:i};this.submitDataCollection(e)},t.prototype.submitSurvey=function(t){this.store.dispatch(new de({type:"survey",dataCollection:t}))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store},{type:Ie},{type:C}]},t}(),De=function(){function t(t){this.store=t,this.previousChannels=[],this.currentChannels=[]}return t.prototype.confirmNeeded=function(t){var e={askForConfirmation:!1,offer:{},media:""};for(var i in t)switch(i){case"Voice":this.isAlreadyConnectedWith("Voice")||"off"===t[i].tx||"off"===t[i].rx||(e.askForConfirmation=!0,e.offer[i]=t[i]);break;case"Video":(!this.isAlreadyConnectedWith("Video")&&"off"!==t[i].tx||"off"!==t[i].rx)&&(this.isAlreadyConnectedWith("Voice")||(e.askForConfirmation=!0,e.offer[i]=t[i]))}return e.offer.Voice&&(e.media="Voice"),e.offer.Video&&(e.media="Video"),e},t.prototype.getChannels=function(e){var i=[];return Object.keys(e).forEach(function(t){(e[t].tx||e[t].rx)&&i.push(t)}),i},t.prototype.isAlreadyConnectedWith=function(t){return this.lastMediaChange[t]&&this.lastMediaChange[t].tx&&this.lastMediaChange[t].rx},t.prototype.mergeOffer=function(t){for(var e in t)"Video"===e&&"optional"===t[e].tx&&(t[e].tx="off"),t[e].rx="off"!==t[e].rx,t[e].tx="off"!==t[e].tx;return t},t.prototype.setMediaChange=function(t){this.lastMediaChange=t},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store}]},t}(),Pe=function(){function t(t,e,i,o,n,a){this.store=t,this.dcService=e,this.protocolService=i,this.messageService=o,this.uiService=n,this.zone=a,this.hasReceivedMsgs=!1,this.isClosed=!1,this.isWritingTimeout=3e4,this.autoChat=!1,this.messageArchive=[],this.customActions={},this.cbnChannelStatus=["dialing","ringing","busy","no-answer","unassigned","failed","cancel","answer"],this.dimensions={}}return t.prototype.acceptAgentRequest=function(t){this.agentRequestCallback(null,!0),this.messageService.removeMessage(this.lastSystemMessageId),this.messageService.sendSystemMessage("STRINGS.MESSAGES."+t.toUpperCase()+"_ACCEPTED")},t.prototype.acceptOffer=function(){this.mergeOffer(this.incomingOffer,this.incomingCallback)},t.prototype.addChatToFullScreen=function(t){this.uiService.setFullScreenChat(t),"chat"!==this.context.mediaPreset&&this.askForUpgrade("Chat")},t.prototype.askForUpgrade=function(e){var i=this;"Chat"!==e&&this.uiService.setIsOffering(e),this.contact.getMediaOffer().then(function(t){t[e]="Chat"===e?{tx:"required",rx:"required"}:{tx:"required",rx:"required",via:"net",engine:"WebRTC"},"Video"===e&&(t.Voice={tx:"required",rx:"required",via:"net",engine:"WebRTC"}),i.contact.offerMedia(t).then(function(){i.zone.run(function(){})},function(t){i.zone.run(function(){i.uiService.setOfferRejected()})})})},t.prototype.attachDataAndCreateContact=function(t){for(var e={data:[]},i=t.dataCollections[0],o={},n=0;n<i.fields.length;n++){var a=i.fields[n];"nickname"===a.format&&a.id&&(e.nick=o[a.id]);var s="undefined"!=typeof a.defaultConstant;a.value=s?a.defaultConstant.toString():a.defaultConstant,o[a.id]=a.value}e.data.push(c.objectToDataCollection(o,i.id,i)),this.createContact(e)},t.prototype.cancelDissuasionTimeout=function(){this.dissuasionTimer&&(clearTimeout(this.dissuasionTimer),delete this.dissuasionTimer)},t.prototype.cancelTransferTimeout=function(){this.transferTimer&&(clearTimeout(this.transferTimer),delete this.transferTimer)},t.prototype.cbnStatusChanged=function(t,e){this.uiService.setCbnState(t)},t.prototype.checkForTranscript=function(){var t=this.contact.contact.transcript;for(var e in t){var i=t[e];switch(i.type){case"text":var o=!!i.agent&&this.agent;i.quick_replies?this.messageService.addQuickRepliesMessage(i,this.agent):i.template?this.messageService.addTemplateMessage(i,this.agent):this.messageService.addChatMessage(i,o,this.visitorNick);break;case"attachment":var n=i.meta;n.url=n.originalUrl?n.originalUrl:i.url;var a={body:n.desc||n.originalName,type:"chat",meta:n,from_nick:i.from_nick,from_id:i.from_id};i.agent?this.messageService.addChatMessage(a,this.agent,this.visitorNick):this.messageService.addChatMessage(a,null,this.visitorNick);break;case"link":this.messageService.addLinkMessage(i.url,i.from_id,i.from_nick,i.desc,i.agent)}}},t.prototype.closeApp=function(){this.vivocha.pageRequest("interactionClosed","destroy")},t.prototype.closeContact=function(e){var i=this;this.leave().then(function(t){i.zone.run(function(){i.uiService.setClosedByVisitor(),i.messageService.sendSystemMessage("STRINGS.MESSAGES.LOCAL_CLOSE"),i.context.variables.customSize&&e?i.setDimension(e):i.vivocha.setNormalScreen(),i.isClosed=!0,i.vivocha.pageRequest("interactionClosed",t)})})},t.prototype.closeUploadPanel=function(){this.uiService.setUploadPanel(!1)},t.prototype.createAutoContact=function(t){this.autoChat=!0,this.autoChatInitialData=t,this.uiService.setAutoChat(),this.uiService.setTopBar({title:"STRINGS.TOPBAR.TITLE_DEFAULT",subtitle:"STRINGS.TOPBAR.SUBTITLE_DEFAULT"}),this.context.variables.showWelcomeOnAutoChat&&this.messageService.sendSystemMessage("STRINGS.CHAT.AUTO_CHAT_FIRST_MESSAGE"),this.uiService.setUiReady()},t.prototype.createContact=function(t,i){var o=this,n=this.getContactOptions(t);n&&n.nick&&(this.visitorNick=n.nick),this.vivocha.pageRequest("interactionCreation",n,function(e){void 0===e&&(e=n),o.interactionStart=+new Date;var t=1e3*(o.context.routing.dissuasionTimeout||60);o.dissuasionTimer=setTimeout(function(){o.leave("dissuasion").then(function(){o.setRecallOrLeave("timeout","dissuasion")})},t),o.vivocha.createContact(e).then(function(t){o.vivocha.pageRequest("interactionCreated",t).then(function(){o.zone.run(function(){o.contact=t,o.uiService.setUiReady(),"cbn"===t.contact.type&&o.uiService.setCbnMode(),t.contact.initial_offer.Sharing?(o.autoChat||(t.contact.initial_offer.Chat&&i?o.uiService.hideQueueForChat():o.uiService.showQueuePanel()),o.uiService.initializeProtocol(o.context,{initialOffer:t.contact.initial_offer}),o.mapContact(),o.autoChat&&(o.messageArchive.map(function(t){return o.contact.sendText(t)}),o.autoChat=!1)):(o.hasReceivedMsgs=!0,o.cancelDissuasionTimeout(),o.uiService.setWebleadSent(),o.vivocha.pageRequest("interactionClosed","closed"))})})},function(t){console.log("Failed to create contact",t,e),o.zone.run(function(){o.cancelDissuasionTimeout(),o.setRecallOrLeave("Precondition Failed"===t.message?"noAgents":"error","error")})})})},t.prototype.getContactOptions=function(t){var e={campaignId:this.context.campaign.id,version:this.context.campaign.version,channelId:"web",entryPointId:this.context.entryPointId,engagementId:this.context.engagementId,mediaPreset:this.context.mediaPreset,lang:this.context.language,vvcu:this.context.page.vvcu,vvct:this.context.page.vvct,first_uri:this.context.page.first_uri,first_title:this.context.page.first_title};return this.context.page.first_uri&&(e.first_uri=this.context.page.first_uri),this.context.page.first_title&&(e.first_title=this.context.page.first_title),t?Object.assign({},e,t):Object.assign({},e)},t.prototype.hangUp=function(e){var i=this;this.contact.getMediaOffer().then(function(t){t.Voice&&(t.Voice.tx="off",t.Voice.rx="off"),t.Video&&(t.Video.tx="off",t.Video.rx="off"),i.zone.run(function(){t.Screen&&"off"!==t.Screen.rx||(i.setDimension(e),i.uiService.setHangUpState())}),i.contact.offerMedia(t).then(function(){i.zone.run(function(){"chat"!==i.context.mediaPreset&&i.askForUpgrade("Chat")})})})},t.prototype.hasRecallForNoAgent=function(){return!1},t.prototype.hideChat=function(){this.uiService.hideChat()},t.prototype.initializeContact=function(t,e){var o=this;this.vivocha=t,this.context=e,this.dcService.setInitialContext(e,t),this.isInPersistence()?(this.resumeContact(e),this.dcService.hasSurvey()&&this.dcService.onDataCollectionCompleted().subscribe(function(t){t&&"survey"===t.type&&o.contact.storeSurvey(t.dataCollection)})):(this.dcService.onDataCollectionCompleted().subscribe(function(t){if(t){var e=t.lastCompletedType&&"dialog"===t.lastCompletedType;switch(t.type){case"dc":o.dcService.setResolved(),o.isAutoChat()?o.createAutoContact(t.contactCreateOptions):o.createContact(t.contactCreateOptions,e);break;case"recontact":o.dcService.setResolved();var i=t.contactCreateOptions||{};o.createContact(i,e);break;case"survey":o.contact.storeSurvey(t.dataCollection)}}}),this.dcService.processDataCollections(),this.uiService.setTopBar({title:"STRINGS.TOPBAR.TITLE_DEFAULT",subtitle:"STRINGS.TOPBAR.SUBTITLE_DEFAULT"}))},t.prototype.isAutoChat=function(){return"chat"===this.context.mediaPreset&&this.context.variables.autoChat},t.prototype.isChatEmulationContact=function(){return!1},t.prototype.isOfflineMessage=function(e){return!!this.messageArchive.filter(function(t){return t===e})[0]&&(this.messageArchive=D(this.messageArchive.filter(function(t){return t!==e})),!0)},t.prototype.isRecallContact=function(){return!1},t.prototype.isInPersistence=function(){return!!this.context&&!!this.context.persistenceId},t.prototype.leave=function(n){var a=this;return new Promise(function(t,e){if(a.contact){var i=+new Date-a.interactionStart,o=n||(a.hasReceivedMsgs?"closed":1e4<i?"abandoned":"cancelled");a.contact.leave(o,function(){a.contact.release(),a.contact.channel.isConnected()&&a.contact.channel.disconnect(),a.isClosed=!0,t(n)})}else t("failed")})},t.prototype.mapContact=function(){var s=this;this.contact.on("agentrequest",function(t,e){s.zone.run(function(){s.onAgentRequest(t,e)})}),this.contact.on("attachment",function(e,i,o,n,a){s.zone.run(function(){i.url=i.originalUrl?i.originalUrl:e;var t={body:i.desc||i.originalName,type:"chat",meta:i,from_nick:n,from_id:o};a?s.messageService.addChatMessage(t,s.agent,s.visitorNick):s.messageService.addChatMessage(t,null,s.visitorNick)})}),this.contact.on("close",function(t){s.onClose(t)}),this.contact.on("datachannel",function(t){t&&"callstatus"===t.id&&s.zone.run(function(){s.registerCallStatusEvents(t)})}),this.contact.on("joined",function(t){t.user?(s.cancelDissuasionTimeout(),s.onAgentJoin(t)):s.onLocalJoin(t)}),this.contact.on("rawmessage",function(t){s.zone.run(function(){"text"===t.type&&(t.quick_replies?s.messageService.addQuickRepliesMessage(t,s.agent):t.template?s.messageService.addTemplateMessage(t,s.agent):s.messageService.addChatMessage(t,s.agent,s.visitorNick),t.agent&&s.uiService.setIsWriting(!1),s.uiService.newMessageReceived(),s.context.variables.playAudioNotification&&s.playAudioNotification(),s.hasReceivedMsgs=!0)})}),this.contact.on("link",function(t,e,i,o,n){s.openAttachment(t),s.zone.run(function(){s.messageService.addLinkMessage(t,e,i,o,n)})}),this.contact.on("iswriting",function(t,e,i){s.zone.run(function(){i&&s.setIsWriting()})}),this.contact.on("localtext",function(t){s.zone.run(function(){s.agent&&s.agent.is_bot&&s.setIsWriting(),s.isOfflineMessage(t)||s.messageService.addLocalMessage(t)})}),this.contact.on("left",function(t){s.onLeft(t)}),this.contact.on("localcapabilities",function(t){}),this.contact.on("capabilities",function(t){}),this.contact.on("mediachange",function(C,b){return p(s,void 0,void 0,function(){var e,i,o,n,a,s,c,r,d,u,l,p,h,f,g,v,m,y,S=this;return x(this,function(t){switch(t.label){case 0:return this.vivocha.dot(C,"Video.data.rx_stream.id")?(i=(e=this.vivocha).dot,o=[C,"Video.data.rx_stream.media"],[4,this.contact.getMediaStream("video","rx")]):[3,2];case 1:i.apply(e,o.concat([t.sent()])),t.label=2;case 2:return this.vivocha.dot(C,"Video.data.tx_stream.id")?(a=(n=this.vivocha).dot,s=[C,"Video.data.tx_stream.media"],[4,this.contact.getMediaStream("video","tx")]):[3,4];case 3:a.apply(n,s.concat([t.sent()])),t.label=4;case 4:return this.vivocha.dot(C,"Voice.data.rx_stream.id")?(r=(c=this.vivocha).dot,d=[C,"Voice.data.rx_stream.media"],[4,this.contact.getMediaStream("audio","rx")]):[3,6];case 5:r.apply(c,d.concat([t.sent()])),t.label=6;case 6:return this.vivocha.dot(C,"Voice.data.tx_stream.id")?(l=(u=this.vivocha).dot,p=[C,"Voice.data.tx_stream.media"],[4,this.contact.getMediaStream("audio","tx")]):[3,8];case 7:l.apply(u,p.concat([t.sent()])),t.label=8;case 8:return this.vivocha.dot(C,"Screen.data.rx_stream.id")?(f=(h=this.vivocha).dot,g=[C,"Screen.data.rx_stream.media"],[4,this.contact.getMediaStream("screen","rx")]):[3,10];case 9:f.apply(h,g.concat([t.sent()])),t.label=10;case 10:return this.vivocha.dot(C,"Screen.data.tx_stream.id")?(m=(v=this.vivocha).dot,y=[C,"Screen.data.tx_stream.media"],[4,this.contact.getMediaStream("screen","tx")]):[3,12];case 11:m.apply(v,y.concat([t.sent()])),t.label=12;case 12:return this.zone.run(function(){S.protocolService.setMediaChange(C),S.uiService.setMediaState(C),b&&b.removed&&b.removed.media&&b.removed.media.Screen&&(S.downgradeDimensions?S.setDimension(S.downgradeDimensions):S.vivocha.setNormalScreen(),S.uiService.setHangUpState())}),[2]}})})}),this.contact.on("mediaoffer",function(t,e){s.zone.run(function(){s.onMediaOffer(t,e)})}),this.contact.on("transferred",function(){s.zone.run(function(){s.messageService.sendSystemMessage("STRINGS.MESSAGES.TRANSFERRED"),s.setTransferTimer()})}),Object.keys(this.customActions).forEach(function(i){s.contact.on(i,function(t,e){s.zone.run(function(){s.customActions[i].callback=e,s.customActions[i].stream.next(t)})})})},t.prototype.maximizeWidget=function(t,e){t?this.uiService.setFullScreen():this.uiService.setNormalState(),this.setDimension(e)},t.prototype.mergeOffer=function(t,e){var i=this;this.contact.mergeMedia(t).then(function(t){i.zone.run(function(){e(undefined,t)})})},t.prototype.muteToggle=function(e){var i=this;this.uiService.setMuteInProgress(),this.contact.getMediaEngine("WebRTC").then(function(t){e?t.muteLocalAudio():t.unmuteLocalAudio(),i.zone.run(function(){i.uiService.setMuted(e)})})},t.prototype.minimize=function(t,e,i,o){t?this.uiService.setMinimizedState():e?this.setFullScreen():this.uiService.setNormalState()},t.prototype.minimizeMedia=function(){this.protocolService.isAlreadyConnectedWith("Chat")||this.askForUpgrade("Chat"),this.uiService.setMinimizedMedia()},t.prototype.minimizeWidget=function(t){this.uiService.setMinimizedState(),this.setDimension(t)},t.prototype.noAgents=function(){return!1},t.prototype.onAgentJoin=function(i){var o=this;this.cancelTransferTimeout(),this.contact.getMedia().then(function(e){o.zone.run(function(){var t={id:i.user,nick:i.nick,is_bot:!!i.is_bot,is_agent:!i.is_bot};i.avatar&&(t.avatar=i.avatar),o.agent=t,o.vivocha.pageRequest("interactionAnswered",t),o.protocolService.setMediaChange(e),o.uiService.initializeMedia(e),o.setAnsweredState(t)})})},t.prototype.onAgentRequest=function(t,e){this.agentRequestCallback=e,this.lastSystemMessageId=this.messageService.sendRequestMessage(t)},t.prototype.onClose=function(t){var e=this;this.leave("remote").then(function(){e.zone.run(function(){e.uiService.setClosedByAgent(),e.downgradeDimensions?e.setDimension(e.downgradeDimensions):e.vivocha.setNormalScreen(),e.messageService.sendSystemMessage("STRINGS.MESSAGES.REMOTE_CLOSE"),e.isClosed=!0,e.vivocha.pageRequest("interactionClosed","closed")})})},t.prototype.onLeft=function(t){var e=this;(t.channels&&t.channels.user!==undefined&&0===t.channels.user||t.reason&&"disconnect"===t.reason)&&this.leave("remote").then(function(){e.zone.run(function(){e.uiService.setClosedByAgent(),e.downgradeDimensions?e.setDimension(e.downgradeDimensions):e.vivocha.setNormalScreen(),e.messageService.sendSystemMessage("STRINGS.MESSAGES.REMOTE_CLOSE"),e.isClosed=!0,e.vivocha.pageRequest("interactionClosed","closed")})})},t.prototype.onLocalJoin=function(t){},t.prototype.onMediaOffer=function(t,e){this.uiService.setMediaOffer(t);var i=this.protocolService.confirmNeeded(t);if(i.askForConfirmation)this.incomingMedia=i.media,this.uiService.setIncomingMedia(i.media),this.incomingCallback=e,this.incomingOffer=i.offer;else{var o=this.protocolService.mergeOffer(t);this.mergeOffer(o,e)}},t.prototype.openAttachment=function(t,e,i){var o={type:"web_url",url:t,click:e,target:i};this.vivocha.pageRequest("interactionEvent",o.type,o)},t.prototype.playAudioNotification=function(){var t=new Audio;t.src=window.beepmp3,t.load(),t.play()},t.prototype.processQuickReply=function(t){this.messageService.updateQuickReply(t.msgId);var e={code:"message",type:"text",body:t.action.title};t.action.payload!==undefined&&(e.payload=t.action.payload),this.contact&&!this.isClosed?this.contact.send(e):this.dcService.sendMessageViaCollector(!1,e.body,e.payload),this.messageService.addLocalMessage(t.action.title)},t.prototype.registerCallStatusEvents=function(t){var e=this;for(var i in this.cbnChannelStatus)t.on(this.cbnChannelStatus[i],function(t){e.zone.run(function(){e.cbnStatusChanged(e.cbnChannelStatus[i],t)})})},t.prototype.registerCustomAction=function(t){return this.customActions[t.id]={stream:new n.Subject},this.customActions[t.id].stream},t.prototype.rejectAgentRequest=function(t){this.agentRequestCallback(null,!1),this.messageService.removeMessage(this.lastSystemMessageId),this.messageService.sendSystemMessage("STRINGS.MESSAGES."+t.toUpperCase()+"_REJECTED")},t.prototype.rejectOffer=function(){this.incomingCallback("error",{}),this.messageService.sendSystemMessage("STRINGS.CALL_REJECTED"),this.uiService.setOfferRejected()},t.prototype.resumeContact=function(e){var o=this;this.vivocha.dataRequest("getData","persistence.contact").then(function(t){o.vivocha.resumeContact(t).then(function(t){o.vivocha.pageRequest("interactionCreated",t),o.zone.run(function(){o.contact=t,o.uiService.setUiReady(),o.uiService.initializeProtocol(e,{initialOffer:t.initial_offer}),o.mapContact(),o.contact.getMedia().then(function(i){o.zone.run(function(){var t=o.contact.contact.agentInfo,e={id:t.id,nick:t.nick,is_bot:!!t.bot,is_agent:!t.bot};t.avatar&&(e.avatar=t.avatar),o.agent=e,o.uiService.setAgent(e),o.context.variables.showAgentInfoOnTopBar?o.uiService.setTopBarWithAgentInfo(e):o.uiService.setTopBar({title:"STRINGS.TOPBAR.TITLE_DEFAULT",subtitle:"STRINGS.TOPBAR.SUBTITLE_DEFAULT"}),o.protocolService.setMediaChange(i),o.uiService.initializeMedia(i),o.checkForTranscript()})})})},function(t){console.log("Failed to resume contact",t),o.vivocha.pageRequest("interactionFailed",t.message),o.uiService.setCreationFailed(),setTimeout(function(){o.closeApp()},2e3)})})},t.prototype.sendAttachment=function(t){var e=this;this.uiService.setUploading(),this.contact.attach(t.file,t.text).then(function(){e.zone.run(function(){e.uiService.setUploaded()})})},t.prototype.sendIsWriting=function(){!this.autoChat&&this.contact&&this.contact.sendIsWriting()},t.prototype.sendPostBack=function(t){var e={code:"message",type:"postback",body:t.title};t.payload!==undefined&&(e.payload=t.payload),"postback"===t.type?this.contact&&!this.isClosed?this.contact.send(e):this.dcService.sendMessageViaCollector(!0,e.body,e.payload):(t.click=!0,this.vivocha.pageRequest("interactionEvent",t.type,t))},t.prototype.sendRequest=function(t,e){return this.contact.request(t,e)},t.prototype.sendText=function(t){this.autoChat?(this.messageArchive.push(t),this.messageService.addChatMessage({body:t,ts:+(new Date).getTime()}),1===this.messageArchive.length&&(this.context.variables.showConnectingOnAutoChat&&this.messageService.sendSystemMessage("STRINGS.QUEUE.CONNECTING"),this.createContact(this.autoChatInitialData))):this.contact&&!this.isClosed?this.contact.sendText(t):(this.messageService.addChatMessage({body:t,ts:+(new Date).getTime()}),this.dcService.sendMessageViaCollector(!1,t))},t.prototype.setAnsweredState=function(t){this.messageService.removeMessage(this.lastSystemMessageId),this.uiService.setAgent(t),this.context.variables.showAgentInfoOnTopBar?this.uiService.setTopBarWithAgentInfo(t):this.uiService.setTopBar({title:"STRINGS.TOPBAR.TITLE_DEFAULT",subtitle:"STRINGS.TOPBAR.SUBTITLE_DEFAULT"}),this.context.variables.showWelcomeMessage&&(this.lastSystemMessageId=this.messageService.sendSystemMessage("STRINGS.CHAT.WELCOME_MESSAGE",{nickname:t.nick}))},t.prototype.setDimension=function(t){this.vivocha.pageRequest("setDimensions",t)},t.prototype.setFullScreen=function(){this.uiService.setFullScreen()},t.prototype.setIsWriting=function(){var t=this;clearTimeout(this.isWritingTimer),this.uiService.setIsWriting(!0),this.isWritingTimer=setTimeout(function(){t.uiService.setIsWriting(!1)},this.isWritingTimeout)},t.prototype.setNormalScreen=function(){this.uiService.setNormalScreen(),this.vivocha.setNormalScreen(),this.vivocha.pageRequest("setSize",{width:this.context.variables.initialWidth,height:this.context.variables.initialHeight}),this.vivocha.pageRequest("setPosition",{right:this.context.variables.initialRight,bottom:this.context.variables.initialBottom})},t.prototype.setQueueState=function(){this.lastSystemMessageId=this.messageService.sendSystemMessage("STRINGS.QUEUE.CONNECTING")},t.prototype.setTransferTimer=function(){var t=this,e=1e3*(this.context.routing.transferFailureTimeout||60);this.transferTimer=setTimeout(function(){t.leave("dissuasion").then(function(){t.setRecallOrLeave("timeout","dissuasion")})},e)},t.prototype.setRecallOrLeave=function(o,n){return p(this,void 0,void 0,function(){var e,i=this;return x(this,function(t){switch(t.label){case 0:return[4,this.vivocha.pageRequest("interactionFailed",o)];case 1:return e=t.sent(),this.zone.run(function(){e&&e.availablePresetModes&&0<e.availablePresetModes.length?(i.context.mediaPreset=e.availablePresetModes[0].offer,e.availablePresetModes[0].dataCollectionId&&""!==e.availablePresetModes[0].dataCollectionId?i.dcService.processDcById(e.availablePresetModes[0].dataCollectionId,"recontact"):i.dcService.processRecontact()):"dissuasion"===n?i.uiService.setDissuasion():i.uiService.setCreationFailed()}),[2]}})})},t.prototype.setTopBar=function(t,e,i){this.uiService.setTopBarWithAvatar(t,e,i)},t.prototype.setTopBarAvatar=function(t){this.uiService.setTopBarAvatar(t)},t.prototype.setTopBarSubtitle=function(t){this.uiService.setTopBarSubtitle(t)},t.prototype.setTopBarTitle=function(t){this.uiService.setTopBarTitle(t)},t.prototype.showCloseModal=function(t){this.uiService.setCloseModal(t)},t.prototype.showUploadPanel=function(){this.uiService.setUploadPanel(!0)},t.prototype.showSurvey=function(){this.dcService.showSurvey()},t.prototype.submitDataCollection=function(t){this.dcService.submitDataCollection(t)},t.prototype.submitSurvey=function(t){this.dcService.submitSurvey(t)},t.prototype.toggleEmojiPanel=function(){this.uiService.toggleEmojiPanel()},t.prototype.toggleVideo=function(t){var i=this;this.contact.getMediaOffer().then(function(t){if(t.Video){var e=t.Video.tx;t.Video.tx="required"===e?"off":"required"}i.zone.run(function(){i.uiService.setInTransit(!0)}),i.contact.offerMedia(t).then(function(){i.zone.run(function(){i.uiService.setInTransit(!1)})})})},t.prototype.updateLeftScrollOffset=function(t){this.messageService.updateLeftScroll(t)},t.prototype.upgradeCbnToChat=function(){this.uiService.upgradeCbnToChat()},t.prototype.useDimensionsForDowngrades=function(t){this.downgradeDimensions=t},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store},{type:Ae},{type:De},{type:C},{type:Ie},{type:e.NgZone}]},t}(),Ve=function(){function t(t,e,i,o){this.store=t,this.contextService=e,this.contactService=i,this.translateService=o}return t.prototype.acceptAgentRequest=function(t){this.contactService.acceptAgentRequest(t)},t.prototype.acceptOffer=function(){this.contactService.acceptOffer()},t.prototype.addChatToFullScreen=function(t){this.contactService.addChatToFullScreen(t)},t.prototype.askForVideoUpgrade=function(){this.contactService.askForUpgrade("Video")},t.prototype.askForVoiceUpgrade=function(){this.contactService.askForUpgrade("Voice")},t.prototype.changeLang=function(t){this.translateService.use(t)},t.prototype.closeApp=function(){this.contactService.closeApp()},t.prototype.closeContact=function(t){this.contactService.closeContact(t)},t.prototype.closeUploadPanel=function(){this.contactService.closeUploadPanel()},t.prototype.dismissCloseModal=function(){this.contactService.showCloseModal(!1)},t.prototype.getState=function(){return this.store.select(Te)},t.prototype.hangUp=function(t){this.contactService.hangUp(t)},t.prototype.hideChat=function(){this.contactService.hideChat()},t.prototype.init=function(){var e=this,t=this.contextService.ready();return t.subscribe(function(t){t.loaded&&(e.vivocha=e.contextService.getVivocha(),e.context=t,e.registerChangeLangService(),e.contactService.initializeContact(e.vivocha,e.context))}),t.pipe(a.filter(function(t){return t.loaded}))},t.prototype.minimize=function(t,e,i,o){this.contactService.minimize(t,e,i,o)},t.prototype.maximizeWidget=function(t,e){this.contactService.maximizeWidget(t,e)},t.prototype.minimizeMedia=function(){this.contactService.minimizeMedia()},t.prototype.minimizeWidget=function(t){this.contactService.minimizeWidget(t)},t.prototype.muteToggle=function(t){this.contactService.muteToggle(t)},t.prototype.openAttachment=function(t,e){this.contactService.openAttachment(t,e)},t.prototype.processQuickReply=function(t){this.contactService.processQuickReply(t)},t.prototype.registerChangeLangService=function(){var e=this;this.vivocha.bus.registerService("vvcApp",{changeLang:function(t){return e.changeLang(t)}})},t.prototype.registerCustomAction=function(t){return this.contactService.registerCustomAction(t)},t.prototype.rejectAgentRequest=function(t){this.contactService.rejectAgentRequest(t)},t.prototype.rejectOffer=function(){this.contactService.rejectOffer()},t.prototype.sendAttachment=function(t){this.contactService.sendAttachment(t)},t.prototype.sendIsWriting=function(){this.contactService.sendIsWriting()},t.prototype.sendPostBack=function(t){this.contactService.sendPostBack(t)},t.prototype.sendRequest=function(t,e){return this.contactService.sendRequest(t,e)},t.prototype.sendText=function(t){this.contactService.sendText(t)},t.prototype.setDimensions=function(t){this.firstDimensions||(this.firstDimensions=t,this.contactService.useDimensionsForDowngrades(t)),this.contactService.setDimension(t)},t.prototype.setFullScreen=function(){this.contactService.setFullScreen()},t.prototype.setNormalScreen=function(){this.contactService.setNormalScreen()},t.prototype.setTopBar=function(t,e,i){this.contactService.setTopBar(t,e,i)},t.prototype.setTopBarAvatar=function(t){this.contactService.setTopBarAvatar(t)},t.prototype.setTopBarSubtitle=function(t){this.contactService.setTopBarSubtitle(t)},t.prototype.setTopBarTitle=function(t){this.contactService.setTopBarTitle(t)},t.prototype.showCloseModal=function(){this.contactService.showCloseModal(!0)},t.prototype.showUploadPanel=function(){this.contactService.showUploadPanel()},t.prototype.showSurvey=function(){this.contactService.showSurvey()},t.prototype.submitDataCollection=function(t){this.contactService.submitDataCollection(t)},t.prototype.submitSurvey=function(t){this.contactService.submitSurvey(t)},t.prototype.toggleEmojiPanel=function(){this.contactService.toggleEmojiPanel()},t.prototype.toggleVideo=function(t){this.contactService.toggleVideo(t)},t.prototype.updateLeftScrollOffset=function(t){this.contactService.updateLeftScrollOffset(t)},t.prototype.upgradeCbnToChat=function(){this.contactService.upgradeCbnToChat()},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store},{type:je},{type:Pe},{type:o.TranslateService}]},t}();function Ee(t){var e=location.pathname.match(/(.*\/api\/v2\/public\/campaigns\/\w+\/\w+\/interaction\/)\w+(\/[^\/]+\/[^\/]+)\/main\.html/),i=location.origin+e[1];return new d.TranslateHttpLoader(t,i,e[2]+"/strings.json")}var ke=Ee,_e=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[s.CommonModule,r.HttpClientModule,i.StoreModule.forRoot(Se,{}),o.TranslateModule.forRoot({loader:{provide:o.TranslateLoader,useFactory:ke,deps:[r.HttpClient]}})],providers:[Ve,C,je,Pe,Ie,De,Ae,Re]}]}],t}();function Be(t){var e=location.pathname.match(/(.*\/api\/v2\/public\/campaigns\/\w+\/\w+\/interaction\/)\w+(\/[^\/]+\/[^\/]+)\/main\.html/),i=location.origin+e[1];return new d.TranslateHttpLoader(t,i,e[2]+"/strings.json")}var Ue=Be,We=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[s.CommonModule,r.HttpClientModule,i.StoreModule.forRoot(Se,{}),o.TranslateModule.forRoot({loader:{provide:o.TranslateLoader,useFactory:Ue,deps:[r.HttpClient]}}),u.StoreDevtoolsModule.instrument({maxAge:50})],providers:[Ve,C,je,Pe,Ie,De,Ae,Re]}]}],t}();t.VvcMessageService=C,t.VvcInteractionService=Ve,t.InteractionCoreModule=_e,t.InteractionCoreDebugModule=We,t.ɵb=Be,t.ɵa=Ee,t.ɵh=Pe,t.ɵe=je,t.ɵi=Ae,t.ɵj=De,t.ɵf=Ie,t.ɵg=Re,t.ɵk=ye,t.ɵn=fe,t.ɵd=Se,t.ɵm=te,t.ɵl=Xt,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@ngrx/store"),require("@ngx-translate/core"),require("@vivocha/public-entities/dist/wrappers/data_collection"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/common/http"),require("@ngx-translate/http-loader"),require("@ngrx/store-devtools")):"function"==typeof define&&define.amd?define("@vivocha/client-interaction-core",["exports","@angular/core","@ngrx/store","@ngx-translate/core","@vivocha/public-entities/dist/wrappers/data_collection","rxjs","rxjs/operators","@angular/common","@angular/common/http","@ngx-translate/http-loader","@ngrx/store-devtools"],e):e((t.vivocha=t.vivocha||{},t.vivocha["client-interaction-core"]={}),t.ng.core,null,null,null,t.rxjs,t.rxjs.operators,t.ng.common,t.ng.common.http,null,null)}(this,function(t,e,i,o,c,n,a,s,r,d,u){"use strict";var l=function(){return(l=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function p(e,s,c,r){return new(c||(c=Promise))(function(t,i){function o(t){try{a(r.next(t))}catch(e){i(e)}}function n(t){try{a(r["throw"](t))}catch(e){i(e)}}function a(e){e.done?t(e.value):new c(function(t){t(e.value)}).then(o,n)}a((r=r.apply(e,s||[])).next())})}function x(o,n){var a,s,c,t,r={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return t={next:e(0),"throw":e(1),"return":e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function i(t){if(a)throw new TypeError("Generator is already executing.");for(;r;)try{if(a=1,s&&(c=2&t[0]?s["return"]:t[0]?s["throw"]||((c=s["return"])&&c.call(s),0):s.next)&&!(c=c.call(s,t[1])).done)return c;switch(s=0,c&&(t=[2&t[0],c.value]),t[0]){case 0:case 1:c=t;break;case 4:return r.label++,{value:t[1],done:!1};case 5:r.label++,s=t[1],t=[0];continue;case 7:t=r.ops.pop(),r.trys.pop();continue;default:if(!(c=0<(c=r.trys).length&&c[c.length-1])&&(6===t[0]||2===t[0])){r=0;continue}if(3===t[0]&&(!c||t[1]>c[0]&&t[1]<c[3])){r.label=t[1];break}if(6===t[0]&&r.label<c[1]){r.label=c[1],c=t;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(t);break}c[2]&&r.ops.pop(),r.trys.pop();continue}t=n.call(o,r)}catch(e){t=[6,e],s=0}finally{a=c=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([e,t])}}}function h(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,n,a=i.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=a.next()).done;)s.push(o.value)}catch(c){n={error:c}}finally{try{o&&!o.done&&(i=a["return"])&&i.call(a)}finally{if(n)throw n.error}}return s}function P(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}var f="[Message] New message",g="[Message] Update message",v="[Message] Remove message",y=function Ne(t){this.payload=t,this.type=f},m=function Ge(t){this.payload=t,this.type=g},S=function Qe(t){this.payload=t,this.type=v},C=function(){function t(t){this.store=t}return t.prototype.addChatMessage=function(t,e,i){var o=(new Date).getTime().toString(),n={id:o,text:t.body,type:"chat",isAgent:e,time:this.getChatTimestamp(t.ts)};return e&&(n.agent=e),t.meta&&(n.meta=t.meta),i&&(n.visitorNick=i),this.store.dispatch(new y(n)),o},t.prototype.addCustomMessage=function(t){var e=(new Date).getTime().toString(),i={id:e,code:"message",type:"custom",body:l({},t)};return this.store.dispatch(new y(i)),e},t.prototype.addDialogMessage=function(t,e){t.quick_replies?this.addQuickRepliesMessage(t,e):t.template?this.addTemplateMessage(t,e):this.addChatMessage(t,e)},t.prototype.addLocalMessage=function(t){var e=(new Date).getTime().toString(),i={id:e,text:t,type:"chat",isAgent:!1,time:this.getChatTimestamp()};return this.store.dispatch(new y(i)),e},t.prototype.addLinkMessage=function(t,e,i,o,n){var a=(new Date).getTime().toString(),s={id:a,text:o||t,url:t,from_id:e,from_nick:i,type:"link",time:this.getChatTimestamp()};return this.store.dispatch(new y(s)),a},t.prototype.addQuickRepliesMessage=function(t,e){var i=(new Date).getTime().toString(),o={id:i,code:"message",type:"quick-replies",body:t.body,quick_replies:t.quick_replies,quick_replies_orientation:t.quick_replies_orientation,scrollLeft:0,time:this.getChatTimestamp()};return e&&(o.agent=e),this.store.dispatch(new y(o)),i},t.prototype.addTemplateMessage=function(t,e){var i=(new Date).getTime().toString(),o={id:i,type:"template",template:t.template.type,elements:t.template.elements,buttons:t.template.buttons,body:t.body,original:t.template,scrollLeft:0,time:this.getChatTimestamp()};return e&&(o.agent=e),this.store.dispatch(new y(o)),i},t.prototype.getChatTimestamp=function(t){var e;return e=t?new Date(t):new Date,(9<parseInt(e.getHours())?e.getHours():"0"+e.getHours())+":"+(9<parseInt(e.getMinutes())?e.getMinutes():"0"+e.getMinutes())},t.prototype.removeMessage=function(t){this.store.dispatch(new S(t))},t.prototype.sendRequestMessage=function(t){var e=(new Date).getTime().toString(),i={id:e,type:"request",text:t.toUpperCase()};return this.store.dispatch(new y(i)),e},t.prototype.sendSystemMessage=function(t,e){var i=(new Date).getTime().toString(),o={id:i,type:"system",text:t};return e&&(o.context=e),this.store.dispatch(new y(o)),i},t.prototype.updateQuickReply=function(t){this.store.dispatch(new m({id:t,patch:{replied:!0}}))},t.prototype.updateLeftScroll=function(t){this.store.dispatch(new m({id:t.messageId,patch:{scrollLeft:t.scrollLeft}}))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store}]},t}(),b="[Widget] Closed by Agent",w="[Widget] Closed by Visitor",O="[Widget] Contact Failed",T="[Widget] Hide Queue For Chat",M="[Widget] Incoming Media",R="[Widget] Init Chat",I="[Widget] Init Context",A="[Widget] Init Multimedia",j="[Widget] Init Protocol",D="[Widget] Is Offering",V="[Widget] Is Uploading",E="[Widget] Is Writing",k="[Widget] In Video Transit",_="[Widget] Mark as read",B="[Widget] Media Change",U="[Widget] Media Offer",W="[Widget] Mute in progress",F="[Widget] Mute Success",z="[Widget] New Message",L="[Widget] Offer Accepted",q="[Widget] Offer Rejected",N="[Widget] Set Agent",G="[Widget] Set Auto Chat",Q="[Widget] Set Cbn Mode",H="[Widget] Set Cbn State",J="[Widget] Set Dialog UI",Y="[Widget] Set Error",Z="[Widget] Set Fullscreen",K="[Widget] Set Minimized",X="[Widget] Set Minimized Media",$="[Widget] Set Normal",tt="[Widget] Set Top Bar",et="[Widget] Fullscreen Chat",it="[Widget] Show Close Panel",ot="[Widget] Show Queue Panel",nt="[Widget] Show Upload Panel",at="[Widget] Toggle Emoji Panel",st="[Widget] Ui Ready",ct="[Widget] Upload Completed",rt="[Widget] Upgrade Cbn to Chat",dt="[Widget] Weblead Sent",ut=function He(){this.type=b},lt=function Je(){this.type=w},pt=function Ye(){this.type=O},ht=function Ze(){this.type=T},ft=function Ke(t){this.payload=t,this.type=M},gt=function Xe(t){this.payload=t,this.type=R},vt=function $e(t){this.payload=t,this.type=I},yt=function ti(t){this.payload=t,this.type=A},mt=function ei(t){this.payload=t,this.type=j},St=function ii(t){this.payload=t,this.type=D},Ct=function oi(){this.type=V},bt=function ni(t){this.payload=t,this.type=E},xt=function ai(t){this.payload=t,this.type=k},wt=function si(){this.type=_},Ot=function ci(t){this.payload=t,this.type=B},Tt=function ri(t){this.payload=t,this.type=U},Mt=function di(){this.type=W},Rt=function ui(t){this.payload=t,this.type=F},It=function li(){this.type=z},At=function pi(){this.type=L},jt=function hi(){this.type=q},Pt=function fi(t){this.payload=t,this.type=N},Dt=function gi(){this.type=G},Vt=function vi(t){this.payload=t,this.type=Q},Et=function yi(t){this.payload=t,this.type=H},kt=function mi(){this.type=J},_t=function Si(){this.type=Y},Bt=function Ci(){this.type=Z},Ut=function bi(){this.type=K},Wt=function xi(t){this.payload=t,this.type=X},Ft=function wi(){this.type=$},zt=function Oi(t){this.payload=t,this.type=tt},Lt=function Ti(t){this.payload=t,this.type=et},qt=function Mi(t){this.payload=t,this.type=it},Nt=function Ri(){this.type=ot},Gt=function Ii(t){this.payload=t,this.type=nt},Qt=function Ai(){this.type=at},Ht=function ji(){this.type=ct},Jt=function Pi(){this.type=st},Yt=function Di(){this.type=rt},Zt=function Vi(){this.type=dt},Kt={context:{loaded:!1,translationLoaded:!1,isUiLoaded:!1},media:{isMinimized:!1},topBar:{},protocol:{contactStarted:!1}};function Xt(t,e){switch(void 0===t&&(t=Kt),e.type){case b:var i=Object.assign({},t.context,{closedByAgent:!0,showClosePanel:!1});return Object.assign({},t,{context:i});case w:i=Object.assign({},t.context,{closedByVisitor:!0,showClosePanel:!1});return Object.assign({},t,{context:i});case O:i=Object.assign({},t.context,{isUiLoaded:!0,contactCreationFailed:!0,hasError:!0,showQueuePanel:!0});return Object.assign({},t,{context:i});case T:var o={isVisible:!0,canUploadFiles:t.context.variables.showUploadButton,canSendEmoji:t.context.variables.showEmojiButton,uploadPanelOpened:!1,emojiPanelOpened:!1,notRead:0};return Object.assign({},t,{chat:o});case R:o={isVisible:t.protocol.initialOffer&&t.protocol.initialOffer.Chat,canUploadFiles:t.context.variables.showUploadButton,canSendEmoji:t.context.variables.showEmojiButton,uploadPanelOpened:!1,emojiPanelOpened:!1,notRead:0};return Object.assign({},t,{chat:o});case I:i=Object.assign({},t.context,l({},e.payload));return Object.assign({},t,{context:i});case A:var n=t.protocol.initialOffer&&t.protocol.initialOffer.Video&&(t.protocol.initialOffer.Video.rx||t.protocol.initialOffer.Video.tx),a={isVisible:t.protocol.initialOffer&&t.protocol.initialOffer.Voice&&(t.protocol.initialOffer.Voice.rx||t.protocol.initialOffer.Voice.tx)||n,isMinimized:t.protocol.initialOffer&&t.protocol.initialOffer.Chat};return Object.assign({},t,{media:a});case j:return Object.assign({},t,{protocol:e.payload});case V:i=Object.assign({},t.context,{isUploading:!0,uploadCompleted:!1});return Object.assign({},t,{context:i});case E:var s=Object.assign({},t.chat,{isWriting:e.payload});return Object.assign({},t,{chat:s});case _:s=Object.assign({},t.chat,{notRead:0});return Object.assign({},t,{chat:s});case B:a=Object.assign({},t.media,{media:e.payload});var c=Object.assign({},t.protocol,{incomingOffer:!1,isOffering:!1,offeringMedia:""});return Object.assign({},t,{media:a,protocol:c});case M:c=Object.assign({},t.protocol,{incomingMedia:e.payload,incomingOffer:!0}),a=Object.assign({},t.media,{isVisible:!0});return Object.assign({},t,{protocol:c,media:a});case U:c=Object.assign({},t.protocol,{offer:e.payload});return Object.assign({},t,{protocol:c});case D:c=Object.assign({},t.protocol,{offeringMedia:e.payload,isOffering:!0}),a=Object.assign({},t.media,{isVisible:!0});return Object.assign({},t,{protocol:c,media:a});case k:c=Object.assign({},t.protocol,{inVideoTransit:e.payload});return Object.assign({},t,{protocol:c});case W:a=Object.assign({},t.media,{muteInProgress:!0});return Object.assign({},t,{media:a});case F:a=Object.assign({},t.media,{muteInProgress:!1,isMuted:e.payload});return Object.assign({},t,{media:a});case z:if(t.context.isMinimized||t.context.cbnMode||!t.chat.isVisible||t.media.isVisible&&!t.media.isMinimized||t.context.isFullScreen&&!t.chat.showOnFullScreen){s=Object.assign({},t.chat,{notRead:t.chat.notRead+1});return Object.assign({},t,{chat:s})}return t;case L:case q:c=Object.assign({},t.protocol,{incomingOffer:!1,isOffering:!1,offeringMedia:""});return Object.assign({},t,{protocol:c});case N:s=Object.assign({},t.chat,{isAutoChat:!1}),i=Object.assign({},t.context,{showQueuePanel:!1});return Object.assign({},t,{agent:e.payload,context:i,chat:s});case G:o={isVisible:!0,isAutoChat:!0,canUploadFiles:!1,canSendEmoji:!1,uploadPanelOpened:!1,emojiPanelOpened:!1,notRead:0};return Object.assign({},t,{chat:o});case Q:i=Object.assign({},t.context,{cbnMode:e.payload});return Object.assign({},t,{context:i});case H:i=Object.assign({},t.context,{cbnState:e.payload});return Object.assign({},t,{context:i});case J:o={isVisible:!0,canUploadFiles:!1,canSendEmoji:!1,uploadPanelOpened:!1,emojiPanelOpened:!1,notRead:0},i=Object.assign({},t.context,{showQueuePanel:!1});return Object.assign({},t,{chat:o,context:i});case Y:i=Object.assign({},t.context,{hasError:!0,showQueuePanel:!0});return Object.assign({},t,{context:i});case Z:i=Object.assign({},t.context,{isFullScreen:!0,isMinimized:!1});return Object.assign({},t,{context:i});case K:i=Object.assign({},t.context,{isMinimized:!0});return Object.assign({},t,{context:i});case X:a=Object.assign({},t.media,{isMinimized:e.payload});return Object.assign({},t,{media:a});case $:i=Object.assign({},t.context,{isMinimized:!1,isFullScreen:!1});return Object.assign({},t,{context:i});case tt:var r=Object.assign({},t.topBar,e.payload);return Object.assign({},t,{topBar:r});case et:s=Object.assign({},t.chat,{showOnFullScreen:e.payload});return Object.assign({},t,{chat:s});case it:i=Object.assign({},t.context,{showClosePanel:e.payload});return Object.assign({},t,{context:i});case ot:i=Object.assign({},t.context,{showQueuePanel:!0});return Object.assign({},t,{context:i});case nt:s=Object.assign({},t.chat,{uploadPanelOpened:e.payload,emojiPanelOpened:!1});return Object.assign({},t,{chat:s});case at:s=Object.assign({},t.chat,{emojiPanelOpened:!t.chat.emojiPanelOpened,uploadPanelOpened:!1});return Object.assign({},t,{chat:s});case st:i=Object.assign({},t.context,{isUiLoaded:!0});return Object.assign({},t,{context:i});case ct:i=Object.assign({},t.context,{isUploading:!1,uploadCompleted:!0}),s=Object.assign({},t.chat,{uploadPanelOpened:!1});return Object.assign({},t,{context:i,chat:s});case rt:i=Object.assign({},t.context,{cbnMode:!1});return Object.assign({},t,{context:i});case dt:i=Object.assign({},t.context,{hasError:!0,showQueuePanel:!0,webleadSent:!0});return Object.assign({},t,{context:i});default:return t}}var $t={list:[]};function te(t,e){switch(void 0===t&&(t=$t),e.type){case g:var i=t.list.map(function(t){return t.id===e.payload.id?Object.assign({},t,e.payload.patch):t});return Object.assign({},t,{list:P(i)});case f:return Object.assign({},t,{list:P(t.list,[e.payload])});case v:return Object.assign({},t,{list:t.list.filter(function(t){return t.id!==e.payload})});default:return t}}var ee="[Data Collection] Initialized",ie="[Data Collection] Added Definition",oe="[Data Collection] Selected",ne="[Data Collection] Completed",ae="[Data Collection] Resolved",se="[Data Collection] Show Panel",ce=function Ei(t){this.payload=t,this.type=ee},re=function ki(t){this.payload=t,this.type=ie},de=function _i(t){this.payload=t,this.type=ne},ue=function Bi(t){this.payload=t,this.type=oe},le=function Ui(){this.type=ae},pe=function Wi(t){this.payload=t,this.type=se},he={items:{},completed:!1};function fe(t,e){switch(void 0===t&&(t=he),e.type){case ee:return Object.assign({},t,l({},t,e.payload));case ie:var i=l({},t.items,((o={})[e.payload.id]=e.payload,o));return Object.assign({},t,{items:i});case ne:return Object.assign({},t,{lastCompleted:e.payload});case oe:return Object.assign({},t,{selectedItem:{dc:e.payload.dc,type:e.payload.type},completed:!1});case ae:return Object.assign({},t,{completed:!0});case se:return Object.assign({},t,{showDataCollectionPanel:e.payload});default:return t}var o}var ge="[Context] Load Success",ve=function Fi(t){this.payload=t,this.type=ge},ye={loaded:!1};function me(t,e){switch(void 0===t&&(t=ye),e.type){case ge:return Object.assign({},t,e.payload);default:return t}}var Se="[Events] New Event",Ce=function zi(t){this.payload=t,this.type=Se};function be(t,e){switch(e.type){case Se:return Object.assign({},t,e.payload);default:return t}}var xe={context:me,widget:Xt,messages:te,dataCollection:fe,events:be},we=i.createFeatureSelector("widget"),Oe=i.createFeatureSelector("messages"),Te=i.createFeatureSelector("dataCollection"),Me=i.createFeatureSelector("context"),Re=i.createFeatureSelector("events"),Ie=i.createSelector(Oe,function(s){return{list:P(s.list.map(function(t,e){var i=!1,o=!1,n=s.list[e+1],a=s.list[e-1];return o=!a||!!(t.type!==a.type||t.isAgent!==a.isAgent||t.agent&&a.agent&&t.agent.id!==a.agent.id),i=!n||!!(t.type!==n.type||t.isAgent!==n.isAgent||a&&t.agent&&a.agent&&t.agent.id!==a.agent.id),Object.assign({},t,{isLast:i,isFirst:o})}))}}),Ae=i.createSelector(we,Ie,Te,function(t,e,i){var o=t.media.media,n=o&&t.media.media.Voice&&"pstn"!==t.media.media.Voice.via&&(t.media.media.Voice.rx||t.media.media.Voice.tx),a=o&&t.media.media.Video,s=a&&t.media.media.Video.tx,c=a&&t.media.media.Video.rx,r=s&&t.media.media.Video.data&&t.media.media.Video.data.tx_stream&&!!t.media.media.Video.data.tx_stream.media,d=!!r&&t.media.media.Video.data.tx_stream.media,u=c&&t.media.media.Video.data&&t.media.media.Video.data.rx_stream&&!!t.media.media.Video.data.rx_stream.media,l=!!u&&t.media.media.Video.data.rx_stream.media,p=n&&t.media.media.Voice.data&&t.media.media.Voice.data.rx_stream&&!!t.media.media.Voice.data.rx_stream.media,h=t.media.media&&t.media.media.Screen&&t.media.media.Screen.data&&t.media.media.Screen.data.rx_stream&&!!t.media.media.Screen.data.rx_stream.media,f=!!p&&t.media.media.Voice.data.rx_stream.media,g=!!h&&t.media.media.Screen.data.rx_stream.media,v=n&&!p,y=s&&r,m=c&&u,S=s&&!r||c&&!u,C=y||m,b=n&&p||y||m||g,x=v||S,w=t.chat&&!t.chat.uploadPanelOpened&&(t.protocol.incomingOffer||t.protocol.isOffering||x||b),O=t.context.webleadSent||t.context.closedByAgent||t.context.closedByVisitor||t.context.showQueuePanel||!t.context.isUiLoaded||i.selectedItem&&!i.completed,T=t.protocol.canStartAudio&&!n&&!v&&t.agent&&t.agent.is_agent&&"Voice"!==t.protocol.offeringMedia,M=t.protocol.canStartVideo&&t.agent&&t.agent.is_agent&&!s&&!S,R=t.context.showQueuePanel||t.context.cbnMode||w&&!t.media.isMinimized&&!t.context.isFullScreen||t.protocol.isOffering||t.protocol.incomingOffer,I=t.context.closedByAgent||t.context.closedByVisitor||t.context.webleadSent||t.context.hasError,A=t.chat&&!t.context.showQueuePanel&&!i.showDataCollectionPanel&&!t.protocol.isOffering&&!t.protocol.incomingOffer&&!x&&(!b||b&&t.media.isMinimized||t.context.isFullScreen),j=A&&(!I||i.selectedItem&&"dialog"===i.selectedItem.dc.type&&"survey"!==i.lastCompleted.type);return{agent:t.agent,messages:P(e.list),variables:t.context.variables||{},canMaximize:C||g,canMinimize:!0,canRemoveApp:O,canStartAudio:T,canStartVideo:M,cbnMode:t.context.cbnMode&&!t.context.showQueuePanel,cbnState:t.context.cbnState,connectedWithAgent:t.agent&&t.agent.is_agent,connectedWithBot:t.agent&&t.agent.is_bot,contactCreationFailed:t.context.contactCreationFailed,contactStarted:t.protocol.contactStarted,hasError:t.context.hasError,hasSurvey:!!t.context.surveyId,incomingOffer:t.protocol.incomingOffer,incomingMedia:t.protocol.incomingMedia,inVideoTransit:t.protocol.inVideoTransit,isAutoChat:t.chat&&t.chat.isAutoChat,isLoading:!t.context.isUiLoaded,isInQueue:t.context.showQueuePanel&&(i.completed||t.context.contactCreationFailed),isChatVisible:A&&!t.context.cbnMode,isChatBoxVisible:j,isClosed:I,isClosedByAgent:t.context.closedByAgent,isClosedByVisitor:t.context.closedByVisitor,isMediaConnected:b,isMediaConnecting:x,isMediaVisible:w,isMediaMinimized:t.media.isMinimized&&!t.protocol.isOffering&&!t.protocol.incomingOffer,isMinimized:t.context.isMinimized,isMobile:t.context.isMobile,isMuted:t.media.isMuted,isOffering:t.protocol.isOffering,isFullScreen:t.context.isFullScreen&&!I,isSendAreaVisible:j,isUploading:t.context.isUploading,isWriting:t.chat&&t.chat.isWriting&&!I,notRead:t.chat?t.chat.notRead:0,offeringMedia:t.protocol.offeringMedia,selectedDataCollection:i.selectedItem,showCloseModal:t.context.showClosePanel,showChatOnFullScreen:t.chat&&t.chat.showOnFullScreen,showDataCollectionPanel:i.showDataCollectionPanel,showEmojiPanel:t.chat&&t.chat.emojiPanelOpened,showUploadPanel:t.chat&&t.chat.uploadPanelOpened,topBarTitle:R?"":t.topBar.title,topBarSubtitle:R?"":t.topBar.subtitle,topBarAvatar:R?"":t.topBar.avatar,translationLoaded:t.context.translationLoaded,uploadCompleted:t.context.uploadCompleted,voiceRxStream:f,videoRxStream:l,videoTxStream:d,screenRxStream:g,webleadSent:t.context&&t.context.webleadSent}}),je=i.createSelector(Te,function(t){return t.lastCompleted});var Pe=function(){function t(){}return Object.defineProperty(t.prototype,"nativeWindow",{get:function(){return function t(){return window}()},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Injectable}],t}(),De=function(){function t(t){var e=this;this.store=t,this.store.select(we).subscribe(function(t){e.currentState=t})}return t.prototype.setCbnMode=function(){this.store.dispatch(new Vt(!0))},t.prototype.hideChat=function(){this.store.dispatch(new Wt(!1))},t.prototype.hideQueueForChat=function(){this.store.dispatch(new ht)},t.prototype.initializeChat=function(t){this.store.dispatch(new gt(t))},t.prototype.initializeContext=function(t){this.store.dispatch(new ve(t)),this.store.dispatch(new vt(t))},t.prototype.initializeMedia=function(t){this.initializeChat(t),this.initializeMultimedia(t),this.setMediaState(t)},t.prototype.initializeMultimedia=function(t){this.store.dispatch(new yt(t))},t.prototype.initializeProtocol=function(t,e){this.store.dispatch(new mt({mediaPreset:t.mediaPreset,canStartAudio:"both"===t.media.voice||"visitor"===t.media.voice,canStartVideo:"both"===t.media.video||"visitor"===t.media.video,initialOffer:e.initialOffer,contactStarted:!0}))},t.prototype.loadDataCollections=function(t){},t.prototype.newMessageReceived=function(){this.store.dispatch(new It)},t.prototype.resetTopBar=function(){this.store.dispatch(new zt({title:"",subtitle:"",avatar:""}))},t.prototype.selectDataCollection=function(t){this.store.dispatch(new ue(t)),this.store.dispatch(new zt({title:"STRINGS.QUEUE.TOPBAR.TITLE",subtitle:t.labelId,avatar:""}))},t.prototype.setOfferAccepted=function(){this.store.dispatch(new At)},t.prototype.setAgent=function(t){this.store.dispatch(new Pt(t))},t.prototype.setAutoChat=function(){this.store.dispatch(new Dt)},t.prototype.setCbnState=function(t){this.store.dispatch(new Et(t))},t.prototype.setClosedByAgent=function(){this.store.dispatch(new ut)},t.prototype.setClosedByVisitor=function(){this.store.dispatch(new lt)},t.prototype.setCloseModal=function(t){this.store.dispatch(new qt(t))},t.prototype.setCreationFailed=function(){this.store.dispatch(new pt)},t.prototype.setDataCollectionCompleted=function(t,e){},t.prototype.setDialogUi=function(){this.store.dispatch(new kt)},t.prototype.setDissuasion=function(){this.store.dispatch(new _t)},t.prototype.setFullScreenChat=function(t){this.store.dispatch(new Lt(t)),this.store.dispatch(new wt)},t.prototype.setFullScreen=function(){this.store.dispatch(new Bt)},t.prototype.setHangUpState=function(){this.store.dispatch(new Ft)},t.prototype.setNormalScreen=function(){this.store.dispatch(new Ft),this.store.dispatch(new Lt(!1))},t.prototype.setIncomingMedia=function(t){this.store.dispatch(new ft(t))},t.prototype.setInTransit=function(t){this.store.dispatch(new xt(t))},t.prototype.setIsOffering=function(t){this.store.dispatch(new St(t))},t.prototype.setIsWriting=function(t){this.store.dispatch(new bt(t))},t.prototype.setMediaOffer=function(t){this.store.dispatch(new Tt(t))},t.prototype.setMediaState=function(t){this.store.dispatch(new Ot(t))},t.prototype.setMinimizedState=function(){this.store.dispatch(new Ut)},t.prototype.setMinimizedMedia=function(){this.store.dispatch(new Wt(!0)),this.store.dispatch(new wt)},t.prototype.setMuted=function(t){this.store.dispatch(new Rt(t))},t.prototype.setMuteInProgress=function(){this.store.dispatch(new Mt)},t.prototype.setNormalState=function(){this.store.dispatch(new Ft),this.store.dispatch(new wt)},t.prototype.setOfferRejected=function(){this.store.dispatch(new jt)},t.prototype.setTopBar=function(t){this.store.dispatch(new zt({title:t.title,subtitle:t.subtitle}))},t.prototype.setTopBarAvatar=function(t){this.store.dispatch(new zt({avatar:t}))},t.prototype.setTopBarSubtitle=function(t){this.store.dispatch(new zt({subtitle:t}))},t.prototype.setTopBarTitle=function(t){this.store.dispatch(new zt({title:t}))},t.prototype.setTopBarWithAvatar=function(t,e,i){this.store.dispatch(new zt({title:e,subtitle:i,avatar:t}))},t.prototype.setTopBarWithAgentInfo=function(t){this.store.dispatch(new zt({title:t.nick,subtitle:"STRINGS.QUEUE.TOPBAR.CONNECTED",avatar:t.avatar}))},t.prototype.setSurveyPanel=function(){this.store.dispatch(new zt({title:"STRINGS.SURVEY.TITLE",subtitle:"STRINGS.SURVEY.SUBTITLE"}))},t.prototype.setUiReady=function(){this.store.dispatch(new Jt)},t.prototype.setUploadPanel=function(t){this.store.dispatch(new Gt(t))},t.prototype.setUploading=function(){this.store.dispatch(new Ct)},t.prototype.setUploaded=function(){this.store.dispatch(new Ht)},t.prototype.setWebleadSent=function(){this.store.dispatch(new Zt)},t.prototype.showQueuePanel=function(){this.store.dispatch(new Nt)},t.prototype.toggleEmojiPanel=function(){this.store.dispatch(new Qt)},t.prototype.upgradeCbnToChat=function(){this.store.dispatch(new Yt)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store}]},t}(),Ve=function(){function t(t,e,i,o,n){this.store=t,this.uiService=e,this.wref=i,this.ts=o,this.zone=n,this.isMobile=!1,this.window=i.nativeWindow,this.parseIframeUrl(),this.checkForVivocha()}return t.prototype.checkForVivocha=function(){return p(this,void 0,void 0,function(){var e,i,o=this;return x(this,function(t){switch(t.label){case 0:return this.window.vivocha&&this.window.vivocha.ready?[4,this.window.vivocha.ready(this.busId)]:[3,4];case 1:return t.sent(),[4,this.window.vivocha.pageRequest("getContext")];case 2:return e=t.sent(),[4,this.window.vivocha.pageRequest("getInteractionModeDataCollectionId",e.mediaPreset)];case 3:return(i=t.sent())&&(e.dataCollectionIds||(e.dataCollectionIds=[]),e.dataCollectionIds.push(i)),this.zone.run(function(){o.vivocha=o.window.vivocha,o.isMobile=o.window.vivocha.isMobile(),o.context=e,o.dispatchContext(e)}),[3,5];case 4:setTimeout(function(){return o.checkForVivocha()},200),t.label=5;case 5:return[2]}})})},t.prototype.dispatchContext=function(e){var i=this;this.ts.use(e.language),this.ts.getTranslation(e.language).toPromise().then(function(t){i.uiService.initializeContext(l({},e,{loaded:!0,translationLoaded:!0,isMobile:i.isMobile,busId:i.busId,acct:i.acct,world:i.world,variables:i.window.VVC_VAR_ASSETS||{}}))})},t.prototype.getVivocha=function(){return this.vivocha},t.prototype.parseIframeUrl=function(){if(-1!==this.window.location.hash.indexOf(";")){var t=this.window.location.hash.substr(2).split(";");this.busId=t[0],this.acct=t[1],this.world=t[2]}},t.prototype.ready=function(){return this.store.pipe(i.select(Me))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store},{type:De},{type:Pe},{type:o.TranslateService},{type:e.NgZone}]},t}(),Ee=function(){function t(t,e,i){this.store=t,this.uiService=e,this.messageService=i,this.contactOptions={data:[]},this.selectedIdx=0,this.dcType="dc",this.dcRefs=[]}return t.prototype.getSyncForm=function(){return{id:"sync",labelId:"STRINGS.SYNC.TITLE",type:"form",fields:[{id:"sync-code",labelId:"STRINGS.SYNC.ADD_CODE",format:"text",type:"string",required:!0}]}},t.prototype.setCollectorAgent=function(){this.collectorAgent={avatar:this.context.variables.collectorDefaultAvatar,id:"collector",nick:"collector",is_agent:!1,is_bot:!0}},t.prototype.setInitialContext=function(t,e){this.context=t,this.vivocha=e,this.setCollectorAgent(),this.store.dispatch(new ce({dataCollectionIds:this.context.dataCollectionIds||[],surveyId:this.context.surveyId}))},t.prototype.onDataCollectionCompleted=function(){return this.store.select(je)},t.prototype.processDataCollections=function(){return p(this,void 0,void 0,function(){var e;return x(this,function(t){switch(t.label){case 0:return this.isSyncContact()?(this.processSyncRef(),[3,4]):[3,1];case 1:return this.hasDataCollection()?[3,2]:(this.store.dispatch(new de({type:"dc"})),[3,4]);case 2:return[4,(e=this).vivocha.pageRequest("mergeDataCollections",this.context.dataCollectionIds)];case 3:e.dcRefs=t.sent(),console.log("DC-REFS",this.dcRefs),this.processDcByIdx(0),t.label=4;case 4:return[2]}})})},t.prototype.processDcById=function(i,o){return p(this,void 0,void 0,function(){var e;return x(this,function(t){switch(t.label){case 0:return[4,this.vivocha.pageRequest("prepareDataCollectionById",i)];case 1:return e=t.sent(),this.processDcByRef(e,o),[2]}})})},t.prototype.processDcByIdx=function(i){return p(this,void 0,void 0,function(){var e;return x(this,function(t){return this.selectedIdx=i,e=this.dcRefs[this.selectedIdx],this.processDcByRef(e),[2]})})},t.prototype.processDcByRef=function(o,n){return p(this,void 0,void 0,function(){var e,i;return x(this,function(t){switch(t.label){case 0:return n&&(this.dcType=n),this.store.dispatch(new re(o)),"form"!==o.type?[3,2]:[4,this.vivocha.pageRequest("prepareDataCollection",o)];case 1:return e=t.sent(),this.hasVisibleFields(e)?(this.uiService.setUiReady(),this.store.dispatch(new ue({dc:e,type:this.dcType})),this.store.dispatch(new pe(!0))):this.submitHiddenDataCollection(e),[3,4];case 2:return this.uiService.setUiReady(),this.store.dispatch(new ue({dc:o,type:this.dcType})),this.store.dispatch(new pe(!1)),[4,(i=this).vivocha.pageRequest("createCollector",o)];case 3:i.collectorRef=t.sent(),this.uiService.setDialogUi(),this.sendMessageViaCollector(!1,""),t.label=4;case 4:return[2]}})})},t.prototype.processRecontact=function(){this.store.dispatch(new de({type:"recontact",contactCreateOptions:this.contactOptions}))},t.prototype.processSyncRef=function(){var t=this.getSyncForm();this.dcType="sync",this.store.dispatch(new re(t)),this.uiService.setUiReady(),this.store.dispatch(new ue({dc:t,type:this.dcType})),this.store.dispatch(new pe(!0))},t.prototype.hasDataCollection=function(){return this.context.dataCollectionIds&&0<this.context.dataCollectionIds.length},t.prototype.hasSurvey=function(){return this.context&&!!this.context.surveyId},t.prototype.hasVisibleFields=function(t){var i=!1;return t.fields&&t.fields.forEach(function(t){var e="undefined"!=typeof t.defaultConstant&&null!=t.defaultConstant;-1===["visitor","both"].indexOf(t.hidden)&&(!e||e&&t.editIfDefault)&&(i=!0)}),i},t.prototype.isSyncContact=function(){return!1},t.prototype.sendMessageViaCollector=function(c,r,d){return p(this,void 0,void 0,function(){var e,i,o,n,a,s=this;return x(this,function(t){switch(t.label){case 0:return this.collectorRef?(e=void 0,c?[4,this.collectorRef.onPostback(r,d)]:[3,2]):[3,9];case 1:return e=t.sent(),[3,4];case 2:return[4,this.collectorRef.onText(r,d)];case 3:e=t.sent(),t.label=4;case 4:return e.forEach(function(t){s.messageService.addDialogMessage(t,s.collectorAgent)}),[4,this.collectorRef.completed()];case 5:return t.sent()?(n=(o=this.vivocha).pageRequest,a=["spreadCollectedData"],[4,this.collectorRef.data()]):[3,9];case 6:return a=a.concat([t.sent()]),[4,this.collectorRef.definition()];case 7:return[4,n.apply(o,a.concat([t.sent()]))];case 8:i=t.sent(),"dc"===this.dcType&&this.dcRefs&&this.dcRefs[this.selectedIdx+1]?(this.contactOptions.data=P(this.contactOptions.data,i),this.processDcByIdx(this.selectedIdx+1)):"survey"===this.dcType?this.store.dispatch(new de({type:this.dcType,dataCollection:i[0]})):(this.contactOptions.data=P(this.contactOptions.data,i),this.store.dispatch(new de({type:this.dcType,contactCreateOptions:this.contactOptions,lastCompletedType:"dialog"}))),t.label=9;case 9:return[2]}})})},t.prototype.setResolved=function(){this.store.dispatch(new le),this.store.dispatch(new pe(!1))},t.prototype.showSurvey=function(){return p(this,void 0,void 0,function(){return x(this,function(t){return this.processDcById(this.context.surveyId,"survey"),[2]})})},t.prototype.submitDataCollection=function(s){return p(this,void 0,void 0,function(){var e,i,o,n,a;return x(this,function(t){switch(t.label){case 0:for(e=s.dcDefinition,i=s.dcData,o=0;o<e.fields.length;o++)if("nickname"===e.fields[o].format&&i[e.fields[o].id]){this.contactOptions.nick=i[e.fields[o].id];break}return[4,this.vivocha.pageRequest("spreadCollectedData",s.dcData,s.dcDefinition)];case 1:return n=t.sent(),"dc"===this.dcType?this.dcRefs[this.selectedIdx+1]?(this.contactOptions.data=P(this.contactOptions.data,n),this.processDcByIdx(this.selectedIdx+1)):(this.contactOptions.data=P(this.contactOptions.data,n),this.store.dispatch(new de({type:"dc",contactCreateOptions:this.contactOptions,lastCompletedType:"form"}))):"survey"===this.dcType?(a=c.objectToDataCollection(s.dcData,s.dcDefinition.id,s.dcDefinition),this.store.dispatch(new de({type:this.dcType,dataCollection:a}))):(this.contactOptions.data=P(this.contactOptions.data,n),this.store.dispatch(new de({type:this.dcType,contactCreateOptions:this.contactOptions,lastCompletedType:"form"}))),[2]}})})},t.prototype.submitHiddenDataCollection=function(t){var i={};t.fields&&t.fields.forEach(function(t){var e="undefined"!=typeof t.defaultConstant&&null!=t.defaultConstant;i[t.id]=e?t.defaultConstant.toString():t.defaultConstant});var e={dcDefinition:t,dcData:i};this.submitDataCollection(e)},t.prototype.submitSurvey=function(t){this.store.dispatch(new de({type:"survey",dataCollection:t}))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store},{type:De},{type:C}]},t}(),ke=function(){function t(t){this.store=t,this.previousChannels=[],this.currentChannels=[]}return t.prototype.confirmNeeded=function(t){var e={askForConfirmation:!1,offer:{},media:""};for(var i in t)switch(i){case"Voice":this.isAlreadyConnectedWith("Voice")||"off"===t[i].tx||"off"===t[i].rx||(e.askForConfirmation=!0,e.offer[i]=t[i]);break;case"Video":(!this.isAlreadyConnectedWith("Video")&&"off"!==t[i].tx||"off"!==t[i].rx)&&(this.isAlreadyConnectedWith("Voice")||(e.askForConfirmation=!0,e.offer[i]=t[i]))}return e.offer.Voice&&(e.media="Voice"),e.offer.Video&&(e.media="Video"),e},t.prototype.getChannels=function(e){var i=[];return Object.keys(e).forEach(function(t){(e[t].tx||e[t].rx)&&i.push(t)}),i},t.prototype.isAlreadyConnectedWith=function(t){return this.lastMediaChange[t]&&this.lastMediaChange[t].tx&&this.lastMediaChange[t].rx},t.prototype.mergeOffer=function(t){for(var e in t)"Video"===e&&"optional"===t[e].tx&&(t[e].tx="off"),t[e].rx="off"!==t[e].rx,t[e].tx="off"!==t[e].tx;return t},t.prototype.setMediaChange=function(t){this.lastMediaChange=t},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store}]},t}(),_e=function(){function t(t,e,i,o,n,a){this.store=t,this.dcService=e,this.protocolService=i,this.messageService=o,this.uiService=n,this.zone=a,this.hasReceivedMsgs=!1,this.isClosed=!1,this.isWritingTimeout=3e4,this.autoChat=!1,this.messageArchive=[],this.customActions={},this.cbnChannelStatus=["dialing","ringing","busy","no-answer","unassigned","failed","cancel","answer"],this.dimensions={}}return t.prototype.acceptAgentRequest=function(t){this.agentRequestCallback(null,!0),this.messageService.removeMessage(this.lastSystemMessageId),this.messageService.sendSystemMessage("STRINGS.MESSAGES."+t.toUpperCase()+"_ACCEPTED")},t.prototype.acceptOffer=function(){this.mergeOffer(this.incomingOffer,this.incomingCallback)},t.prototype.addChatToFullScreen=function(t){this.uiService.setFullScreenChat(t),"chat"!==this.context.mediaPreset&&this.askForUpgrade("Chat")},t.prototype.askForUpgrade=function(e){var i=this;"Chat"!==e&&this.uiService.setIsOffering(e),this.contact.getMediaOffer().then(function(t){t[e]="Chat"===e?{tx:"required",rx:"required"}:{tx:"required",rx:"required",via:"net",engine:"WebRTC"},"Video"===e&&(t.Voice={tx:"required",rx:"required",via:"net",engine:"WebRTC"}),i.contact.offerMedia(t).then(function(){i.zone.run(function(){})},function(t){i.zone.run(function(){i.uiService.setOfferRejected()})})})},t.prototype.attachDataAndCreateContact=function(t){for(var e={data:[]},i=t.dataCollections[0],o={},n=0;n<i.fields.length;n++){var a=i.fields[n];"nickname"===a.format&&a.id&&(e.nick=o[a.id]);var s="undefined"!=typeof a.defaultConstant;a.value=s?a.defaultConstant.toString():a.defaultConstant,o[a.id]=a.value}e.data.push(c.objectToDataCollection(o,i.id,i)),this.createContact(e)},t.prototype.cancelDissuasionTimeout=function(){this.dissuasionTimer&&(clearTimeout(this.dissuasionTimer),delete this.dissuasionTimer)},t.prototype.cancelTransferTimeout=function(){this.transferTimer&&(clearTimeout(this.transferTimer),delete this.transferTimer)},t.prototype.cbnStatusChanged=function(t,e){this.uiService.setCbnState(t)},t.prototype.checkForTranscript=function(){var t=this.contact.contact.transcript;for(var e in t){var i=t[e];switch(i.type){case"text":var o=!!i.agent&&this.agent;i.quick_replies?this.messageService.addQuickRepliesMessage(i,this.agent):i.template?this.messageService.addTemplateMessage(i,this.agent):this.messageService.addChatMessage(i,o,this.visitorNick);break;case"attachment":var n=i.meta;n.url=n.originalUrl?n.originalUrl:i.url;var a={body:n.desc||n.originalName,type:"chat",meta:n,from_nick:i.from_nick,from_id:i.from_id};i.agent?this.messageService.addChatMessage(a,this.agent,this.visitorNick):this.messageService.addChatMessage(a,null,this.visitorNick);break;case"link":this.messageService.addLinkMessage(i.url,i.from_id,i.from_nick,i.desc,i.agent)}}},t.prototype.closeApp=function(){this.vivocha.pageRequest("interactionClosed","destroy")},t.prototype.closeContact=function(e){var i=this;this.leave().then(function(t){i.zone.run(function(){i.uiService.setClosedByVisitor(),i.messageService.sendSystemMessage("STRINGS.MESSAGES.LOCAL_CLOSE"),i.context.variables.customSize&&e?i.setDimension(e):i.vivocha.setNormalScreen(),i.isClosed=!0,i.vivocha.pageRequest("interactionClosed",t)})})},t.prototype.closeUploadPanel=function(){this.uiService.setUploadPanel(!1)},t.prototype.createAutoContact=function(t){this.autoChat=!0,this.autoChatInitialData=t,this.uiService.setAutoChat(),this.uiService.setTopBar({title:"STRINGS.TOPBAR.TITLE_DEFAULT",subtitle:"STRINGS.TOPBAR.SUBTITLE_DEFAULT"}),this.context.variables.showWelcomeOnAutoChat&&this.messageService.sendSystemMessage("STRINGS.CHAT.AUTO_CHAT_FIRST_MESSAGE"),this.uiService.setUiReady()},t.prototype.createContact=function(t,i){var o=this,n=this.getContactOptions(t);n&&n.nick&&(this.visitorNick=n.nick),this.vivocha.pageRequest("interactionCreation",n,function(e){void 0===e&&(e=n),o.interactionStart=+new Date;var t=1e3*(o.context.routing.dissuasionTimeout||60);o.dissuasionTimer=setTimeout(function(){o.leave("dissuasion").then(function(){o.setRecallOrLeave("timeout","dissuasion")})},t),o.vivocha.createContact(e).then(function(t){o.vivocha.pageRequest("interactionCreated",t).then(function(){o.zone.run(function(){o.contact=t,o.uiService.setUiReady(),"cbn"===t.contact.type&&o.uiService.setCbnMode(),t.contact.initial_offer.Sharing?(o.autoChat||(t.contact.initial_offer.Chat&&i?o.uiService.hideQueueForChat():o.uiService.showQueuePanel()),o.uiService.initializeProtocol(o.context,{initialOffer:t.contact.initial_offer}),o.mapContact(),o.autoChat&&(o.messageArchive.map(function(t){return o.contact.sendText(t)}),o.autoChat=!1)):(o.hasReceivedMsgs=!0,o.cancelDissuasionTimeout(),o.uiService.setWebleadSent(),o.vivocha.pageRequest("interactionClosed","closed"))})})},function(t){console.log("Failed to create contact",t,e),o.zone.run(function(){o.cancelDissuasionTimeout(),o.setRecallOrLeave("Precondition Failed"===t.message?"noAgents":"error","error")})})})},t.prototype.getContactOptions=function(t){var e={campaignId:this.context.campaign.id,version:this.context.campaign.version,channelId:"web",entryPointId:this.context.entryPointId,engagementId:this.context.engagementId,mediaPreset:this.context.mediaPreset,lang:this.context.language,vvcu:this.context.page.vvcu,vvct:this.context.page.vvct,first_uri:this.context.page.first_uri,first_title:this.context.page.first_title};return this.context.page.first_uri&&(e.first_uri=this.context.page.first_uri),this.context.page.first_title&&(e.first_title=this.context.page.first_title),t?Object.assign({},e,t):Object.assign({},e)},t.prototype.hangUp=function(e){var i=this;this.contact.getMediaOffer().then(function(t){t.Voice&&(t.Voice.tx="off",t.Voice.rx="off"),t.Video&&(t.Video.tx="off",t.Video.rx="off"),i.zone.run(function(){t.Screen&&"off"!==t.Screen.rx||(i.setDimension(e),i.uiService.setHangUpState())}),i.contact.offerMedia(t).then(function(){i.zone.run(function(){"chat"!==i.context.mediaPreset&&i.askForUpgrade("Chat")})})})},t.prototype.hasRecallForNoAgent=function(){return!1},t.prototype.hideChat=function(){this.uiService.hideChat()},t.prototype.initializeContact=function(t,e){var o=this;this.vivocha=t,this.context=e,this.dcService.setInitialContext(e,t),this.isInPersistence()?(this.resumeContact(e),this.dcService.hasSurvey()&&this.dcService.onDataCollectionCompleted().subscribe(function(t){t&&"survey"===t.type&&o.contact.storeSurvey(t.dataCollection)})):(this.dcService.onDataCollectionCompleted().subscribe(function(t){if(t){var e=t.lastCompletedType&&"dialog"===t.lastCompletedType;switch(t.type){case"dc":o.dcService.setResolved(),o.isAutoChat()?o.createAutoContact(t.contactCreateOptions):o.createContact(t.contactCreateOptions,e);break;case"recontact":o.dcService.setResolved();var i=t.contactCreateOptions||{};o.createContact(i,e);break;case"survey":o.contact.storeSurvey(t.dataCollection)}}}),this.dcService.processDataCollections(),this.uiService.setTopBar({title:"STRINGS.TOPBAR.TITLE_DEFAULT",subtitle:"STRINGS.TOPBAR.SUBTITLE_DEFAULT"}))},t.prototype.isAutoChat=function(){return"chat"===this.context.mediaPreset&&this.context.variables.autoChat},t.prototype.isChatEmulationContact=function(){return!1},t.prototype.isOfflineMessage=function(e){return!!this.messageArchive.filter(function(t){return t===e})[0]&&(this.messageArchive=P(this.messageArchive.filter(function(t){return t!==e})),!0)},t.prototype.isRecallContact=function(){return!1},t.prototype.isInPersistence=function(){return!!this.context&&!!this.context.persistenceId},t.prototype.leave=function(n){var a=this;return new Promise(function(t,e){if(a.contact){var i=+new Date-a.interactionStart,o=n||(a.hasReceivedMsgs?"closed":1e4<i?"abandoned":"cancelled");a.contact.leave(o,function(){a.contact.release(),a.contact.channel.isConnected()&&a.contact.channel.disconnect(),a.isClosed=!0,t(n)})}else t("failed")})},t.prototype.mapContact=function(){var s=this;this.contact.on("agentrequest",function(t,e){s.zone.run(function(){s.onAgentRequest(t,e)})}),this.contact.on("attachment",function(e,i,o,n,a){s.zone.run(function(){i.url=i.originalUrl?i.originalUrl:e;var t={body:i.desc||i.originalName,type:"chat",meta:i,from_nick:n,from_id:o};a?s.messageService.addChatMessage(t,s.agent,s.visitorNick):s.messageService.addChatMessage(t,null,s.visitorNick)})}),this.contact.on("close",function(t){s.onClose(t)}),this.contact.on("datachannel",function(t){t&&"callstatus"===t.id&&s.zone.run(function(){s.registerCallStatusEvents(t)})}),this.contact.on("joined",function(t){t.user?(s.cancelDissuasionTimeout(),s.onAgentJoin(t)):s.onLocalJoin(t)}),this.contact.on("rawmessage",function(t){s.zone.run(function(){"text"===t.type&&(t.quick_replies?s.messageService.addQuickRepliesMessage(t,s.agent):t.template?s.messageService.addTemplateMessage(t,s.agent):s.messageService.addChatMessage(t,s.agent,s.visitorNick),t.agent&&s.uiService.setIsWriting(!1),s.uiService.newMessageReceived(),s.context.variables.playAudioNotification&&s.playAudioNotification(),s.hasReceivedMsgs=!0)})}),this.contact.on("link",function(t,e,i,o,n){s.openAttachment(t),s.zone.run(function(){s.messageService.addLinkMessage(t,e,i,o,n)})}),this.contact.on("iswriting",function(t,e,i){s.zone.run(function(){i&&s.setIsWriting()})}),this.contact.on("localtext",function(t){s.zone.run(function(){s.agent&&s.agent.is_bot&&s.setIsWriting(),s.isOfflineMessage(t)||s.messageService.addLocalMessage(t)})}),this.contact.on("left",function(t){s.onLeft(t)}),this.contact.on("localcapabilities",function(t){}),this.contact.on("capabilities",function(t){}),this.contact.on("mediachange",function(C,b){return p(s,void 0,void 0,function(){var e,i,o,n,a,s,c,r,d,u,l,p,h,f,g,v,y,m,S=this;return x(this,function(t){switch(t.label){case 0:return this.vivocha.dot(C,"Video.data.rx_stream.id")?(i=(e=this.vivocha).dot,o=[C,"Video.data.rx_stream.media"],[4,this.contact.getMediaStream("video","rx")]):[3,2];case 1:i.apply(e,o.concat([t.sent()])),t.label=2;case 2:return this.vivocha.dot(C,"Video.data.tx_stream.id")?(a=(n=this.vivocha).dot,s=[C,"Video.data.tx_stream.media"],[4,this.contact.getMediaStream("video","tx")]):[3,4];case 3:a.apply(n,s.concat([t.sent()])),t.label=4;case 4:return this.vivocha.dot(C,"Voice.data.rx_stream.id")?(r=(c=this.vivocha).dot,d=[C,"Voice.data.rx_stream.media"],[4,this.contact.getMediaStream("audio","rx")]):[3,6];case 5:r.apply(c,d.concat([t.sent()])),t.label=6;case 6:return this.vivocha.dot(C,"Voice.data.tx_stream.id")?(l=(u=this.vivocha).dot,p=[C,"Voice.data.tx_stream.media"],[4,this.contact.getMediaStream("audio","tx")]):[3,8];case 7:l.apply(u,p.concat([t.sent()])),t.label=8;case 8:return this.vivocha.dot(C,"Screen.data.rx_stream.id")?(f=(h=this.vivocha).dot,g=[C,"Screen.data.rx_stream.media"],[4,this.contact.getMediaStream("screen","rx")]):[3,10];case 9:f.apply(h,g.concat([t.sent()])),t.label=10;case 10:return this.vivocha.dot(C,"Screen.data.tx_stream.id")?(y=(v=this.vivocha).dot,m=[C,"Screen.data.tx_stream.media"],[4,this.contact.getMediaStream("screen","tx")]):[3,12];case 11:y.apply(v,m.concat([t.sent()])),t.label=12;case 12:return this.zone.run(function(){S.protocolService.setMediaChange(C),S.uiService.setMediaState(C),b&&b.removed&&b.removed.media&&b.removed.media.Screen&&(S.store.dispatch(new Ce({type:"removedMediaScreen"})),S.uiService.setHangUpState())}),[2]}})})}),this.contact.on("mediaoffer",function(t,e){s.zone.run(function(){s.onMediaOffer(t,e)})}),this.contact.on("transferred",function(){s.zone.run(function(){s.messageService.sendSystemMessage("STRINGS.MESSAGES.TRANSFERRED"),s.setTransferTimer()})}),Object.keys(this.customActions).forEach(function(i){s.contact.on(i,function(t,e){s.zone.run(function(){s.customActions[i].callback=e,s.customActions[i].stream.next(t)})})})},t.prototype.maximizeWidget=function(t,e){t?this.uiService.setFullScreen():this.uiService.setNormalState(),this.setDimension(e)},t.prototype.mergeOffer=function(t,e){var i=this;this.contact.mergeMedia(t).then(function(t){i.zone.run(function(){e(undefined,t)})})},t.prototype.muteToggle=function(e){var i=this;this.uiService.setMuteInProgress(),this.contact.getMediaEngine("WebRTC").then(function(t){e?t.muteLocalAudio():t.unmuteLocalAudio(),i.zone.run(function(){i.uiService.setMuted(e)})})},t.prototype.minimize=function(t,e,i,o){t?this.uiService.setMinimizedState():e?this.setFullScreen():this.uiService.setNormalState()},t.prototype.minimizeMedia=function(){this.protocolService.isAlreadyConnectedWith("Chat")||this.askForUpgrade("Chat"),this.uiService.setMinimizedMedia()},t.prototype.minimizeWidget=function(t){this.uiService.setMinimizedState(),this.setDimension(t)},t.prototype.noAgents=function(){return!1},t.prototype.onAgentJoin=function(i){var o=this;this.cancelTransferTimeout(),this.contact.getMedia().then(function(e){o.zone.run(function(){var t={id:i.user,nick:i.nick,is_bot:!!i.is_bot,is_agent:!i.is_bot};i.avatar&&(t.avatar=i.avatar),o.agent=t,o.vivocha.pageRequest("interactionAnswered",t),o.protocolService.setMediaChange(e),o.uiService.initializeMedia(e),o.setAnsweredState(t)})})},t.prototype.onAgentRequest=function(t,e){this.agentRequestCallback=e,this.lastSystemMessageId=this.messageService.sendRequestMessage(t)},t.prototype.onClose=function(t){var e=this;this.leave("remote").then(function(){e.zone.run(function(){e.uiService.setClosedByAgent(),e.store.dispatch(new Ce({type:"closedByAgent",data:t})),e.messageService.sendSystemMessage("STRINGS.MESSAGES.REMOTE_CLOSE"),e.isClosed=!0,e.vivocha.pageRequest("interactionClosed","closed")})})},t.prototype.onLeft=function(t){var e=this;(t.channels&&t.channels.user!==undefined&&0===t.channels.user||t.reason&&"disconnect"===t.reason)&&this.leave("remote").then(function(){e.zone.run(function(){e.uiService.setClosedByAgent(),e.store.dispatch(new Ce({type:"closedByAgent",data:t})),e.messageService.sendSystemMessage("STRINGS.MESSAGES.REMOTE_CLOSE"),e.isClosed=!0,e.vivocha.pageRequest("interactionClosed","closed")})})},t.prototype.onLocalJoin=function(t){},t.prototype.onMediaOffer=function(t,e){this.uiService.setMediaOffer(t);var i=this.protocolService.confirmNeeded(t);if(i.askForConfirmation)this.incomingMedia=i.media,this.uiService.setIncomingMedia(i.media),this.incomingCallback=e,this.incomingOffer=i.offer;else{var o=this.protocolService.mergeOffer(t);this.mergeOffer(o,e)}},t.prototype.openAttachment=function(t,e,i){var o={type:"web_url",url:t,click:e,target:i};this.vivocha.pageRequest("interactionEvent",o.type,o)},t.prototype.playAudioNotification=function(){var t=new Audio;t.src=window.beepmp3,t.load(),t.play()},t.prototype.processQuickReply=function(t){this.messageService.updateQuickReply(t.msgId);var e={code:"message",type:"text",body:t.action.title};t.action.payload!==undefined&&(e.payload=t.action.payload),this.contact&&!this.isClosed?this.contact.send(e):this.dcService.sendMessageViaCollector(!1,e.body,e.payload),this.messageService.addLocalMessage(t.action.title)},t.prototype.registerCallStatusEvents=function(t){var e=this;for(var i in this.cbnChannelStatus)t.on(this.cbnChannelStatus[i],function(t){e.zone.run(function(){e.cbnStatusChanged(e.cbnChannelStatus[i],t)})})},t.prototype.registerCustomAction=function(t){return this.customActions[t.id]={stream:new n.Subject},this.customActions[t.id].stream},t.prototype.rejectAgentRequest=function(t){this.agentRequestCallback(null,!1),this.messageService.removeMessage(this.lastSystemMessageId),this.messageService.sendSystemMessage("STRINGS.MESSAGES."+t.toUpperCase()+"_REJECTED")},t.prototype.rejectOffer=function(){this.incomingCallback("error",{}),this.messageService.sendSystemMessage("STRINGS.CALL_REJECTED"),this.uiService.setOfferRejected()},t.prototype.resumeContact=function(e){var o=this;this.vivocha.dataRequest("getData","persistence.contact").then(function(t){o.vivocha.resumeContact(t).then(function(t){o.vivocha.pageRequest("interactionCreated",t),o.zone.run(function(){o.contact=t,o.uiService.setUiReady(),o.uiService.initializeProtocol(e,{initialOffer:t.initial_offer}),o.mapContact(),o.contact.getMedia().then(function(i){o.zone.run(function(){var t=o.contact.contact.agentInfo,e={id:t.id,nick:t.nick,is_bot:!!t.bot,is_agent:!t.bot};t.avatar&&(e.avatar=t.avatar),o.agent=e,o.uiService.setAgent(e),o.context.variables.showAgentInfoOnTopBar?o.uiService.setTopBarWithAgentInfo(e):o.uiService.setTopBar({title:"STRINGS.TOPBAR.TITLE_DEFAULT",subtitle:"STRINGS.TOPBAR.SUBTITLE_DEFAULT"}),o.protocolService.setMediaChange(i),o.uiService.initializeMedia(i),o.checkForTranscript()})})})},function(t){console.log("Failed to resume contact",t),o.vivocha.pageRequest("interactionFailed",t.message),o.uiService.setCreationFailed(),setTimeout(function(){o.closeApp()},2e3)})})},t.prototype.sendAttachment=function(t){var e=this;this.uiService.setUploading(),this.contact.attach(t.file,t.text).then(function(){e.zone.run(function(){e.uiService.setUploaded()})})},t.prototype.sendIsWriting=function(){!this.autoChat&&this.contact&&this.contact.sendIsWriting()},t.prototype.sendPostBack=function(t){var e={code:"message",type:"postback",body:t.title};t.payload!==undefined&&(e.payload=t.payload),"postback"===t.type?this.contact&&!this.isClosed?this.contact.send(e):this.dcService.sendMessageViaCollector(!0,e.body,e.payload):(t.click=!0,this.vivocha.pageRequest("interactionEvent",t.type,t))},t.prototype.sendRequest=function(t,e){return this.contact.request(t,e)},t.prototype.sendText=function(t){this.autoChat?(this.messageArchive.push(t),this.messageService.addChatMessage({body:t,ts:+(new Date).getTime()}),1===this.messageArchive.length&&(this.context.variables.showConnectingOnAutoChat&&this.messageService.sendSystemMessage("STRINGS.QUEUE.CONNECTING"),this.createContact(this.autoChatInitialData))):this.contact&&!this.isClosed?this.contact.sendText(t):(this.messageService.addChatMessage({body:t,ts:+(new Date).getTime()}),this.dcService.sendMessageViaCollector(!1,t))},t.prototype.setAnsweredState=function(t){this.messageService.removeMessage(this.lastSystemMessageId),this.uiService.setAgent(t),this.context.variables.showAgentInfoOnTopBar?this.uiService.setTopBarWithAgentInfo(t):this.uiService.setTopBar({title:"STRINGS.TOPBAR.TITLE_DEFAULT",subtitle:"STRINGS.TOPBAR.SUBTITLE_DEFAULT"}),this.context.variables.showWelcomeMessage&&(this.lastSystemMessageId=this.messageService.sendSystemMessage("STRINGS.CHAT.WELCOME_MESSAGE",{nickname:t.nick}))},t.prototype.setDimension=function(t){this.vivocha.pageRequest("setDimensions",t)},t.prototype.setFullScreen=function(){this.uiService.setFullScreen()},t.prototype.setIsWriting=function(){var t=this;clearTimeout(this.isWritingTimer),this.uiService.setIsWriting(!0),this.isWritingTimer=setTimeout(function(){t.uiService.setIsWriting(!1)},this.isWritingTimeout)},t.prototype.setNormalScreen=function(){this.uiService.setNormalScreen(),this.vivocha.setNormalScreen(),this.vivocha.pageRequest("setSize",{width:this.context.variables.initialWidth,height:this.context.variables.initialHeight}),this.vivocha.pageRequest("setPosition",{right:this.context.variables.initialRight,bottom:this.context.variables.initialBottom})},t.prototype.setQueueState=function(){this.lastSystemMessageId=this.messageService.sendSystemMessage("STRINGS.QUEUE.CONNECTING")},t.prototype.setTransferTimer=function(){var t=this,e=1e3*(this.context.routing.transferFailureTimeout||60);this.transferTimer=setTimeout(function(){t.leave("dissuasion").then(function(){t.setRecallOrLeave("timeout","dissuasion")})},e)},t.prototype.setRecallOrLeave=function(o,n){return p(this,void 0,void 0,function(){var e,i=this;return x(this,function(t){switch(t.label){case 0:return[4,this.vivocha.pageRequest("interactionFailed",o)];case 1:return e=t.sent(),this.zone.run(function(){e&&e.availablePresetModes&&0<e.availablePresetModes.length?(i.context.mediaPreset=e.availablePresetModes[0].offer,e.availablePresetModes[0].dataCollectionId&&""!==e.availablePresetModes[0].dataCollectionId?i.dcService.processDcById(e.availablePresetModes[0].dataCollectionId,"recontact"):i.dcService.processRecontact()):"dissuasion"===n?i.uiService.setDissuasion():i.uiService.setCreationFailed()}),[2]}})})},t.prototype.setTopBar=function(t,e,i){this.uiService.setTopBarWithAvatar(t,e,i)},t.prototype.setTopBarAvatar=function(t){this.uiService.setTopBarAvatar(t)},t.prototype.setTopBarSubtitle=function(t){this.uiService.setTopBarSubtitle(t)},t.prototype.setTopBarTitle=function(t){this.uiService.setTopBarTitle(t)},t.prototype.showCloseModal=function(t){this.uiService.setCloseModal(t)},t.prototype.showUploadPanel=function(){this.uiService.setUploadPanel(!0)},t.prototype.showSurvey=function(){this.dcService.showSurvey()},t.prototype.submitDataCollection=function(t){this.dcService.submitDataCollection(t)},t.prototype.submitSurvey=function(t){this.dcService.submitSurvey(t)},t.prototype.toggleEmojiPanel=function(){this.uiService.toggleEmojiPanel()},t.prototype.toggleVideo=function(t){var i=this;this.contact.getMediaOffer().then(function(t){if(t.Video){var e=t.Video.tx;t.Video.tx="required"===e?"off":"required"}i.zone.run(function(){i.uiService.setInTransit(!0)}),i.contact.offerMedia(t).then(function(){i.zone.run(function(){i.uiService.setInTransit(!1)})})})},t.prototype.updateLeftScrollOffset=function(t){this.messageService.updateLeftScroll(t)},t.prototype.upgradeCbnToChat=function(){this.uiService.upgradeCbnToChat()},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store},{type:Ee},{type:ke},{type:C},{type:De},{type:e.NgZone}]},t}(),Be=function(){function t(t,e,i,o){this.store=t,this.contextService=e,this.contactService=i,this.translateService=o}return t.prototype.acceptAgentRequest=function(t){this.contactService.acceptAgentRequest(t)},t.prototype.acceptOffer=function(){this.contactService.acceptOffer()},t.prototype.addChatToFullScreen=function(t){this.contactService.addChatToFullScreen(t)},t.prototype.askForVideoUpgrade=function(){this.contactService.askForUpgrade("Video")},t.prototype.askForVoiceUpgrade=function(){this.contactService.askForUpgrade("Voice")},t.prototype.changeLang=function(t){this.translateService.use(t)},t.prototype.closeApp=function(){this.contactService.closeApp()},t.prototype.closeContact=function(t){this.contactService.closeContact(t)},t.prototype.closeUploadPanel=function(){this.contactService.closeUploadPanel()},t.prototype.dismissCloseModal=function(){this.contactService.showCloseModal(!1)},t.prototype.events=function(){return this.store.pipe(i.select(Re))},t.prototype.getState=function(){return this.store.pipe(i.select(Ae))},t.prototype.hangUp=function(t){this.contactService.hangUp(t)},t.prototype.hideChat=function(){this.contactService.hideChat()},t.prototype.init=function(){var e=this,t=this.contextService.ready();return t.subscribe(function(t){t.loaded&&(e.vivocha=e.contextService.getVivocha(),e.context=t,e.registerChangeLangService(),e.contactService.initializeContact(e.vivocha,e.context))}),t.pipe(a.filter(function(t){return t.loaded}))},t.prototype.minimize=function(t,e,i,o){this.contactService.minimize(t,e,i,o)},t.prototype.maximizeWidget=function(t,e){this.contactService.maximizeWidget(t,e)},t.prototype.minimizeMedia=function(){this.contactService.minimizeMedia()},t.prototype.minimizeWidget=function(t){this.contactService.minimizeWidget(t)},t.prototype.muteToggle=function(t){this.contactService.muteToggle(t)},t.prototype.openAttachment=function(t,e){this.contactService.openAttachment(t,e)},t.prototype.processQuickReply=function(t){this.contactService.processQuickReply(t)},t.prototype.registerChangeLangService=function(){var e=this;this.vivocha.bus.registerService("vvcApp",{changeLang:function(t){return e.changeLang(t)},closeContact:function(t){return e.closeContact(t)},closeAndRemove:function(t){e.closeContact(t),e.closeApp()}})},t.prototype.registerCustomAction=function(t){return this.contactService.registerCustomAction(t)},t.prototype.rejectAgentRequest=function(t){this.contactService.rejectAgentRequest(t)},t.prototype.rejectOffer=function(){this.contactService.rejectOffer()},t.prototype.sendAttachment=function(t){this.contactService.sendAttachment(t)},t.prototype.sendIsWriting=function(){this.contactService.sendIsWriting()},t.prototype.sendPostBack=function(t){this.contactService.sendPostBack(t)},t.prototype.sendRequest=function(t,e){return this.contactService.sendRequest(t,e)},t.prototype.sendText=function(t){this.contactService.sendText(t)},t.prototype.setDimensions=function(t){this.contactService.setDimension(t)},t.prototype.setFullScreen=function(){this.contactService.setFullScreen()},t.prototype.setNormalScreen=function(){this.contactService.setNormalScreen()},t.prototype.setTopBar=function(t,e,i){this.contactService.setTopBar(t,e,i)},t.prototype.setTopBarAvatar=function(t){this.contactService.setTopBarAvatar(t)},t.prototype.setTopBarSubtitle=function(t){this.contactService.setTopBarSubtitle(t)},t.prototype.setTopBarTitle=function(t){this.contactService.setTopBarTitle(t)},t.prototype.showCloseModal=function(){this.contactService.showCloseModal(!0)},t.prototype.showUploadPanel=function(){this.contactService.showUploadPanel()},t.prototype.showSurvey=function(){this.contactService.showSurvey()},t.prototype.submitDataCollection=function(t){this.contactService.submitDataCollection(t)},t.prototype.submitSurvey=function(t){this.contactService.submitSurvey(t)},t.prototype.toggleEmojiPanel=function(){this.contactService.toggleEmojiPanel()},t.prototype.toggleVideo=function(t){this.contactService.toggleVideo(t)},t.prototype.updateLeftScrollOffset=function(t){this.contactService.updateLeftScrollOffset(t)},t.prototype.upgradeCbnToChat=function(){this.contactService.upgradeCbnToChat()},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:i.Store},{type:Ve},{type:_e},{type:o.TranslateService}]},t}();function Ue(t){var e=location.pathname.match(/(.*\/api\/v2\/public\/campaigns\/\w+\/\w+\/interaction\/)\w+(\/[^\/]+\/[^\/]+)\/main\.html/),i=location.origin+e[1];return new d.TranslateHttpLoader(t,i,e[2]+"/strings.json")}var We=Ue,Fe=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[s.CommonModule,r.HttpClientModule,i.StoreModule.forRoot(xe,{}),o.TranslateModule.forRoot({loader:{provide:o.TranslateLoader,useFactory:We,deps:[r.HttpClient]}})],providers:[Be,C,Ve,_e,De,ke,Ee,Pe]}]}],t}();function ze(t){var e=location.pathname.match(/(.*\/api\/v2\/public\/campaigns\/\w+\/\w+\/interaction\/)\w+(\/[^\/]+\/[^\/]+)\/main\.html/),i=location.origin+e[1];return new d.TranslateHttpLoader(t,i,e[2]+"/strings.json")}var Le=ze,qe=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[s.CommonModule,r.HttpClientModule,i.StoreModule.forRoot(xe,{}),o.TranslateModule.forRoot({loader:{provide:o.TranslateLoader,useFactory:Le,deps:[r.HttpClient]}}),u.StoreDevtoolsModule.instrument({maxAge:50})],providers:[Be,C,Ve,_e,De,ke,Ee,Pe]}]}],t}();t.VvcMessageService=C,t.VvcInteractionService=Be,t.InteractionCoreModule=Fe,t.InteractionCoreDebugModule=qe,t.ɵb=ze,t.ɵa=Ue,t.ɵh=_e,t.ɵe=Ve,t.ɵi=Ee,t.ɵj=ke,t.ɵf=De,t.ɵg=Pe,t.ɵk=me,t.ɵn=fe,t.ɵo=be,t.ɵd=xe,t.ɵm=te,t.ɵl=Xt,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=vivocha-client-interaction-core.umd.min.js.map

@@ -43,4 +43,5 @@ /**

if (extraDataCollection) {
if (!context.dataCollectionIds)
if (!context.dataCollectionIds) {
context.dataCollectionIds = [];
}
context.dataCollectionIds.push(extraDataCollection);

@@ -67,3 +68,3 @@ }

this.ts.getTranslation(context.language).toPromise().then(result => {
this.uiService.initializeContext(Object.assign({ loaded: true, translationLoaded: true, isMobile: this.isMobile, busId: this.busId, acct: this.acct, world: this.world, variables: this.window.VVC_VAR_ASSETS || {} }, context));
this.uiService.initializeContext(Object.assign({}, context, { loaded: true, translationLoaded: true, isMobile: this.isMobile, busId: this.busId, acct: this.acct, world: this.world, variables: this.window.VVC_VAR_ASSETS || {} }));
});

@@ -136,2 +137,2 @@ }

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHZpdm9jaGEvY2xpZW50LWludGVyYWN0aW9uLWNvcmUvIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvY29udGV4dC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFDLFVBQVUsRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGtCQUFrQixD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kYXRhQ29sbGVjdGlvbklkcy5wdXNoKGV4dHJhRGF0YUNvbGxlY3Rpb24pO1xuICAgICAgfVxuICAgICAgdGhpcy56b25lLnJ1biggKCkgPT4ge1xuICAgICAgICB0aGlzLnZpdm9jaGEgPSB0aGlzLndpbmRvdy52aXZvY2hhO1xuICAgICAgICB0aGlzLmlzTW9iaWxlID0gdGhpcy53aW5kb3cudml2b2NoYS5pc01vYmlsZSgpO1xuICAgICAgICB0aGlzLmNvbnRleHQgPSBjb250ZXh0O1xuICAgICAgICB0aGlzLmRpc3BhdGNoQ29udGV4dChjb250ZXh0KTtcbiAgICAgIH0pO1xuICAgIH0gZWxzZSB7XG4gICAgICBzZXRUaW1lb3V0KCAoKSA9PiB0aGlzLmNoZWNrRm9yVml2b2NoYSgpLCAyMDApO1xuICAgIH1cbiAgfVxuICBkaXNwYXRjaENvbnRleHQoY29udGV4dCkge1xuICAgIHRoaXMudHMudXNlKGNvbnRleHQubGFuZ3VhZ2UpO1xuICAgIHRoaXMudHMuZ2V0VHJhbnNsYXRpb24oY29udGV4dC5sYW5ndWFnZSkudG9Qcm9taXNlKCkudGhlbihcbiAgICAgIHJlc3VsdCA9PiB7XG4gICAgICAgICAgdGhpcy51aVNlcnZpY2UuaW5pdGlhbGl6ZUNvbnRleHQoe1xuICAgICAgICAgICAgbG9hZGVkOiB0cnVlLFxuICAgICAgICAgICAgdHJhbnNsYXRpb25Mb2FkZWQ6IHRydWUsXG4gICAgICAgICAgICBpc01vYmlsZTogdGhpcy5pc01vYmlsZSxcbiAgICAgICAgICAgIGJ1c0lkOiB0aGlzLmJ1c0lkLFxuICAgICAgICAgICAgYWNjdDogdGhpcy5hY2N0LFxuICAgICAgICAgICAgd29ybGQ6IHRoaXMud29ybGQsXG4gICAgICAgICAgICB2YXJpYWJsZXM6IHRoaXMud2luZG93LlZWQ19WQVJfQVNTRVRTIHx8IHt9LFxuICAgICAgICAgICAgLi4uY29udGV4dFxuICAgICAgICAgIH0pO1xuICAgICAg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ICAgICB9XG4gICAgICB0aGlzLnpvbmUucnVuKCAoKSA9PiB7XG4gICAgICAgIHRoaXMudml2b2NoYSA9IHRoaXMud2luZG93LnZpdm9jaGE7XG4gICAgICAgIHRoaXMuaXNNb2JpbGUgPSB0aGlzLndpbmRvdy52aXZvY2hhLmlzTW9iaWxlKCk7XG4gICAgICAgIHRoaXMuY29udGV4dCA9IGNvbnRleHQ7XG4gICAgICAgIHRoaXMuZGlzcGF0Y2hDb250ZXh0KGNvbnRleHQpO1xuICAgICAgfSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHNldFRpbWVvdXQoICgpID0+IHRoaXMuY2hlY2tGb3JWaXZvY2hhKCksIDIwMCk7XG4gICAgfVxuICB9XG4gIGRpc3BhdGNoQ29udGV4dChjb250ZXh0KSB7XG4gICAgdGhpcy50cy51c2UoY29udGV4dC5sYW5ndWFnZSk7XG4gICAgdGhpcy50cy5nZXRUcmFuc2xhdGlvbihjb250ZXh0Lmxhbmd1YWdlKS50b1Byb21pc2UoKS50aGVuKFxuICAgICAgcmVzdWx0ID0+IHtcbiAgICAgICAgICB0aGlzLnVpU2VydmljZS5pbml0aWFsaXplQ29udGV4dCh7XG4gICAgICAgICAgICAuLi5jb250ZXh0LFxuICAgICAgICAgICAgbG9hZGVkOiB0cnVlLFxuICAgICAgICAgICAgdHJhbnNsYXRpb25Mb2FkZWQ6IHRydWUsXG4gICAgICAgICAgICBpc01vYmlsZTogdGhpcy5pc01vYmlsZSxcbiAgICAgICAgICAgIGJ1c0lkOiB0aGlzLmJ1c0lkLFxuICAgICAgICAgICAgYWNjdDogdGhpcy5hY2N0LFxuICAgICAgICAgICAgd29ybGQ6IHRoaXMud29ybGQsXG4gICAgICAgICAgICB2YXJpYWJsZXM6IHRoaXMud2luZG93LlZWQ19WQVJfQVNTRVRTIHx8IHt9XG4gICAgICAgICAgfSk7XG4gICAgICB9KTtcbiAgfVxuICBnZXRWaXZvY2hhKCkge1xuICAgIHJldHVybiB0aGlzLnZpdm9jaGE7XG4gIH1cbiAgcGFyc2VJZnJhbWVVcmwoKSB7XG4gICAgY29uc3QgaGFzaCA9IHRoaXMud2luZG93LmxvY2F0aW9uLmhhc2g7XG4gICAgaWYgKGhhc2guaW5kZXhPZignOycpICE9PSAtMSkge1xuICAgICAgY29uc3QgaGFzaFBhcnRzID0gdGhpcy53aW5kb3cubG9jYXRpb24uaGFzaC5zdWJzdHIoMikuc3BsaXQoJzsnKTtcbiAgICAgIHRoaXMuYnVzSWQgPSBoYXNoUGFydHNbMF07XG4gICAgICB0aGlzLmFjY3QgID0gaGFzaFBhcnRzWzFdO1xuICAgICAgdGhpcy53b3JsZCA9IGhhc2hQYXJ0c1syXTtcbiAgICB9XG4gIH1cbiAgcmVhZHkoKTogT2JzZXJ2YWJsZTxDb250ZXh0U3RhdGU+IHtcbiAgICByZXR1cm4gdGhpcy5zdG9yZS5waXBlKHNlbGVjdChnZXRDb250ZXh0U3RhdGUpKTtcbiAgfVxufVxuIl19

@@ -31,2 +31,21 @@ /**

*/
getSyncForm() {
return {
id: 'sync',
labelId: 'STRINGS.SYNC.TITLE',
type: 'form',
fields: [
{
id: 'sync-code',
labelId: 'STRINGS.SYNC.ADD_CODE',
format: 'text',
type: 'string',
required: true
}
]
};
}
/**
* @return {?}
*/
setCollectorAgent() {

@@ -66,9 +85,15 @@ this.collectorAgent = {

return tslib_1.__awaiter(this, void 0, void 0, function* () {
if (!this.hasDataCollection()) {
this.store.dispatch(new DataCollectionEnd({ type: 'dc' }));
if (this.isSyncContact()) {
this.processSyncRef();
}
else {
// this.uiService.setUiReady();
this.dcRefs = yield this.vivocha.pageRequest('mergeDataCollections', this.context.dataCollectionIds);
this.processDcByIdx(0);
if (!this.hasDataCollection()) {
this.store.dispatch(new DataCollectionEnd({ type: 'dc' }));
}
else {
// this.uiService.setUiReady();
this.dcRefs = yield this.vivocha.pageRequest('mergeDataCollections', this.context.dataCollectionIds);
console.log('DC-REFS', this.dcRefs);
this.processDcByIdx(0);
}
}

@@ -144,2 +169,14 @@ });

*/
processSyncRef() {
/** @type {?} */
const dcRef = this.getSyncForm();
this.dcType = 'sync';
this.store.dispatch(new DataCollectionAdded(dcRef));
this.uiService.setUiReady();
this.store.dispatch(new DataCollectionSelected({ dc: dcRef, type: this.dcType }));
this.store.dispatch(new DataCollectionShowPanel(true));
}
/**
* @return {?}
*/
hasDataCollection() {

@@ -173,2 +210,9 @@ return (this.context.dataCollectionIds && this.context.dataCollectionIds.length > 0);

/**
* @return {?}
*/
isSyncContact() {
// return !!this.context.isSync;
return false;
}
/**
* @param {?} isTemplate

@@ -341,2 +385,2 @@ * @param {?} message

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1jb2xsZWN0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Adml2b2NoYS9jbGllbnQtaW50ZXJhY3Rpb24tY29yZS8iLCJzb3VyY2VzIjpbImxpYi9zZXJ2aWNlcy9kYXRhLWNvbGxlY3Rpb24uc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFekMsT0FBTyxFQUFDLEtBQUssRUFBQyxNQUFNLGFBQWEsQ0FBQztBQUNsQyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sY0FBYyxDQUFDO0FBQzFDLE9BQU8sRUFBQyxzQkFBc0IsRUFBQyxNQUFNLHdEQUF3RCxDQUFDO0FBRzlGLE9BQU8sRUFBQywwQkFBMEIsRUFBQyxNQUFNLHFDQUFxQyxDQUFDO0FBQy9FLE9BQU8sRUFDTCxtQkFBbUIsRUFBRSxpQkFBaUIsRUFDdEMseUJBQXlCLEVBQUUsc0JBQXNCLEVBQ2pELHNCQUFzQixFQUFFLHVCQUF1QixFQUNoRCxNQUFNLHlDQUF5QyxDQUFDO0FBQ2pELE9BQU8sRUFBQyxp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J3N1cnZleScsIGRhdGFDb2xsZWN0aW9uOiBzdXJ2ZXkgfSkpO1xuICB9XG59XG4iXX0=

@@ -6,4 +6,5 @@ /**

import { Injectable } from '@angular/core';
import { Store } from '@ngrx/store';
import { select, Store } from '@ngrx/store';
import { getUiState } from '../store/selectors/widget.selectors';
import { getEventsState } from '../store/reducers/main.reducer';
import { VvcContextService } from './context.service';

@@ -94,4 +95,10 @@ import { VvcContactWrap } from './contact-wrap.service';

*/
events() {
return this.store.pipe(select(getEventsState));
}
/**
* @return {?}
*/
getState() {
return this.store.select(getUiState);
return this.store.pipe(select(getUiState));
}

@@ -185,3 +192,8 @@ /**

this.vivocha.bus.registerService('vvcApp', {
changeLang: (lang) => this.changeLang(lang)
changeLang: (lang) => this.changeLang(lang),
closeContact: (dim) => this.closeContact(dim),
closeAndRemove: (dim) => {
this.closeContact(dim);
this.closeApp();
}
});

@@ -249,6 +261,2 @@ }

setDimensions(dim) {
if (!this.firstDimensions) {
this.firstDimensions = dim;
this.contactService.useDimensionsForDowngrades(dim);
}
this.contactService.setDimension(dim);

@@ -375,4 +383,2 @@ }

/** @type {?} */
VvcInteractionService.prototype.firstDimensions;
/** @type {?} */
VvcInteractionService.prototype.store;

@@ -387,2 +393,2 @@ /** @type {?} */

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJhY3Rpb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2aXZvY2hhL2NsaWVudC1pbnRlcmFjdGlvbi1jb3JlLyIsInNvdXJjZXMiOlsibGliL3NlcnZpY2VzL2ludGVyYWN0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFDLEtBQUssRUFBQyxNQUFNLGFBQWEsQ0FBQztBQUNsQyxPQUFPLEVBQUMsV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SA9IERDX1NFTEVDVEVEO1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgcGF5bG9hZDogeyBkYzogRGF0YUNvbGxlY3Rpb24sIHR5cGU6IHN0cmluZyB9KSB7fVxufVxuZXhwb3J0IGNsYXNzIERhdGFDb2xsZWN0aW9uUmVzb2x2ZWQgaW1wbGVtZW50cyBBY3Rpb24ge1xuICByZWFkb25seSB0eXBlID0gRENfUkVTT0xWRUQ7XG59XG5leHBvcnQgY2xhc3MgRGF0YUNvbGxlY3Rpb25TaG93UGFuZWwgaW1wbGVtZW50cyBBY3Rpb24ge1xuICByZWFkb25seSB0eXBlID0gRENfU0hPV19QQU5FTDtcbiAgY29uc3RydWN0b3IocHVibGljIHBheWxvYWQ6IGJvb2xlYW4pIHt9XG59XG5cbmV4cG9ydCB0eXBlIERhdGFDb2xsZWN0aW9uQWN0aW9uc1xuICA9IERhdGFDb2xsZWN0aW9uSW5pdGlhbGl6ZWRcbiAgfCBEYXRhQ29sbGVjdGlvbkFkZGVkXG4gIHwgRGF0YUNvbGxlY3Rpb25FbmRcbiAgfCBEYXRhQ29sbGVjdGlvblNlbGVjdGVkXG4gIHwgRGF0YUNvbGxlY3Rpb25SZXNvbHZlZFxuICB8IERhdGFDb2xsZWN0aW9uU2hvd1BhbmVsO1xuIl19

@@ -6,9 +6,9 @@ /**

/** @type {?} */
export const NEW_MESSAGE = "[Message] New message";
export const NEW_MESSAGE = '[Message] New message';
/** @type {?} */
export const UPDATE_MESSAGE = "[Message] Update message";
export const UPDATE_MESSAGE = '[Message] Update message';
/** @type {?} */
export const REM_IS_WRITING = "[Message] Remove is writing";
export const REM_IS_WRITING = '[Message] Remove is writing';
/** @type {?} */
export const REM_MESSAGE = "[Message] Remove message";
export const REM_MESSAGE = '[Message] Remove message';
export class NewMessage {

@@ -72,2 +72,2 @@ /**

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnZXMuYWN0aW9ucy5qcyIsInNvd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HBheWxvYWQ6IGFueSkge31cbn1cbmV4cG9ydCBjbGFzcyBVcGRhdGVNZXNzYWdlIGltcGxlbWVudHMgQWN0aW9uIHtcbiAgcmVhZG9ubHkgdHlwZSA9IFVQREFURV9NRVNTQUdFO1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgcGF5bG9hZDogYW55KSB7fVxufVxuZXhwb3J0IGNsYXNzIFJlbW92ZUlzV3JpdGluZyBpbXBsZW1lbnRzIEFjdGlvbiB7XG4gIHJlYWRvbmx5IHR5cGUgPSBSRU1fSVNfV1JJVElORztcbn1cbmV4cG9ydCBjbGFzcyBSZW1vdmVNZXNzYWdlIGltcGxlbWVudHMgQWN0aW9uIHtcbiAgcmVhZG9ubHkgdHlwZSA9IFJFTV9NRVNTQUdFO1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgcGF5bG9hZDogYW55KSB7fVxufVxuXG5leHBvcnQgdHlwZSBNZXNzYWdlc0FjdGlvbnMgPSBOZXdNZXNzYWdlIHwgVXBkYXRlTWVzc2FnZSB8IFJlbW92ZUlzV3JpdGluZyB8IFJlbW92ZU1lc3NhZ2U7XG4iXX0=

@@ -29,2 +29,10 @@ /**

*/
export function EventsState() { }
/** @type {?} */
EventsState.prototype.type;
/** @type {?|undefined} */
EventsState.prototype.data;
/**
* @record
*/
export function ContextState() { }

@@ -408,2 +416,2 @@ /** @type {?} */

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWxzLmludGVyZmFjZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2aXZvY2hhL2NsaWVudC1pbnRlcmFjdGlvbi1jb3JlLyIsInNvdXJjZXMiOlsibGliL3N0b3JlL21vZGVscy5pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIEFkdmFuY2VkRGF0YUNvbGxlY3Rpb24sXG4gIENsaWVudENvbnRhY3RD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Zyb21Db250ZXh0LkxPQURfQ09OVEVYVF9TVUNDRVNTOiB7XG4gICAgICByZXR1cm4gT2JqZWN0LmFzc2lnbih7fSwgc3RhdGUsIGFjdGlvbi5wYXlsb2FkKTtcbiAgICB9XG4gICAgZGVmYXVsdDogcmV0dXJuIHN0YXRlO1xuICB9XG59XG4iXX0=

@@ -10,2 +10,3 @@ /**

import { reducer as contextReducer } from './context.reducer';
import { reducer as eventsReducer } from './events.reducer';
/**

@@ -24,2 +25,4 @@ * @record

/** @type {?} */
AppState.prototype.events;
/** @type {?} */
export const reducers = {

@@ -30,2 +33,3 @@ context: contextReducer,

dataCollection: dcReducer,
events: eventsReducer
};

@@ -40,3 +44,5 @@ /** @type {?} */

export const getContextState = createFeatureSelector('context');
/** @type {?} */
export const getEventsState = createFeatureSelector('events');
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5yZWR1Y2VyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHZpdm9jaGEvY2xpZW50LWludGVyYWN0aW9uLWNvcmUvIiwic291cmNlcyI6WyJsaWIvc3RvcmUvcmVkdWNlcnMvbWFpbi5yZWR1Y2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQW1CLHFCQUFxQixFQUFtQixNQUFNLGFBQWEsQ0FBQztBQUl0RixPQUFPLEVBQUMsT0FBTyxJQUFJLGFBQWEsRUFBQyxNQUFNLGtCQUFrQixDQUFDO0FBQzFELE9BQU8sRUFBQyxPQUFPLElBQUksY0FBYyxFQUFDLE1BQU0sb0JBQW9CLENBQUM7QUFDN0QsT0FBTyxFQUFDLE9BQU8sSUFBSSxTQUFTLEVBQUMsTUFBTSwwQkFBMEIsQ0FBQztBQUM5RCxPQUFPLEVBQUMsT0FBTyxJQUFJLGNBQWMsRUFBQyxNQUFNLG1CQUFtQixDQUFDOzs7Ozs7Ozs7Ozs7OztBQVM1RCxhQUFhLFF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VjdGlvblN0YXRlLCBEYXRhQ29sbGVjdGlvbkNvbXBsZXRlZH0gZnJvbSAnLi4vbW9kZWxzLmludGVyZmFjZSc7XG5pbXBvcnQge2dldENvbXBsZXRlZERDfSBmcm9tICcuLi9yZWR1Y2Vycy9kYXRhQ29sbGVjdGlvbi5yZWR1Y2VyJztcblxuZXhwb3J0IGNvbnN0IGdldE1lc3NhZ2VzOiBNZW1vaXplZFNlbGVjdG9yPE9iamVjdCwgTWVzc2FnZXNTdGF0ZT4gPSBjcmVhdGVTZWxlY3RvcihcbiAgZ2V0TWVzc2FnZXNTdGF0ZSxcbiAgZ2V0TWVzc2FnZVJlZHV4XG4pO1xuXG5leHBvcnQgY29uc3QgZ2V0VWlTdGF0ZTogTWVtb2l6ZWRTZWxlY3RvcjxPYmplY3QsIFVpU3RhdGU+ID0gY3JlYXRlU2VsZWN0b3IoXG4gIGdldFdpZGdldFN0YXRlLFxuICBnZXRNZXNzYWdlcyxcbiAgZ2V0RGF0YUNvbGxlY3Rpb25TdGF0ZSxcbiAgZ2V0VWlTdGF0ZVJlZHV4XG4pO1xuXG5leHBvcnQgY29uc3QgZ2V0RGF0YUNvbGxlY3Rpb25Db21wbGV0ZWQ6IE1lbW9pemVkU2VsZWN0b3I8T2JqZWN0LCBEYXRhQ29sbGVjdGlvbkNvbXBsZXRlZD4gPSBjcmVhdGVTZWxlY3RvcihcbiAgZ2V0RGF0YUNvbGxlY3Rpb25TdGF0ZSxcbiAgZ2V0Q29tcGxldGVkRENcbik7XG4iXX0=

@@ -19,2 +19,3 @@ /**

export { reducer as ɵn } from './lib/store/reducers/dataCollection.reducer';
export { reducer as ɵo } from './lib/store/reducers/events.reducer';
export { reducers as ɵd } from './lib/store/reducers/main.reducer';

@@ -24,2 +25,2 @@ export { reducer as ɵm } from './lib/store/reducers/messages.reducer';

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidml2b2NoYS1jbGllbnQtaW50ZXJhY3Rpb24t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X0gZnJvbSAnLi9saWIvc3RvcmUvcmVkdWNlcnMvbWVzc2FnZXMucmVkdWNlcic7XG5leHBvcnQge3JlZHVjZXIgYXMgybVsfSBmcm9tICcuL2xpYi9zdG9yZS9yZWR1Y2Vycy93aWRnZXQucmVkdWNlcic7Il19

@@ -48,4 +48,5 @@ /**

if (extraDataCollection) {
if (!context_1.dataCollectionIds)
if (!context_1.dataCollectionIds) {
context_1.dataCollectionIds = [];
}
context_1.dataCollectionIds.push(extraDataCollection);

@@ -80,3 +81,3 @@ }

this.ts.getTranslation(context.language).toPromise().then(function (result) {
_this.uiService.initializeContext(tslib_1.__assign({ loaded: true, translationLoaded: true, isMobile: _this.isMobile, busId: _this.busId, acct: _this.acct, world: _this.world, variables: _this.window.VVC_VAR_ASSETS || {} }, context));
_this.uiService.initializeContext(tslib_1.__assign({}, context, { loaded: true, translationLoaded: true, isMobile: _this.isMobile, busId: _this.busId, acct: _this.acct, world: _this.world, variables: _this.window.VVC_VAR_ASSETS || {} }));
});

@@ -160,2 +161,2 @@ };

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHZpdm9jaGEvY2xpZW50LWludGVyYWN0aW9uLWNvcmUvIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvY29udGV4dC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFDLFVBQVUsRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGtCQUFrQixDQUFDO0FBQzNDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxjQUFjLENBQUM7QUFDMUMsT0FBTyxFQUFDLE1BQU0sRUFBRSxLQUFLLEVBQUMsTUFBTSxhQUFhLENBQUM7QUFDMUMsT0F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fCB7fVxuICAgICAgICAgIH0pO1xuICAgICAgfSk7XG4gIH1cbiAgZ2V0Vml2b2NoYSgpIHtcbiAgICByZXR1cm4gdGhpcy52aXZvY2hhO1xuICB9XG4gIHBhcnNlSWZyYW1lVXJsKCkge1xuICAgIGNvbnN0IGhhc2ggPSB0aGlzLndpbmRvdy5sb2NhdGlvbi5oYXNoO1xuICAgIGlmIChoYXNoLmluZGV4T2YoJzsnKSAhPT0gLTEpIHtcbiAgICAgIGNvbnN0IGhhc2hQYXJ0cyA9IHRoaXMud2luZG93LmxvY2F0aW9uLmhhc2guc3Vic3RyKDIpLnNwbGl0KCc7Jyk7XG4gICAgICB0aGlzLmJ1c0lkID0gaGFzaFBhcnRzWzBdO1xuICAgICAgdGhpcy5hY2N0ICA9IGhhc2hQYXJ0c1sxXTtcbiAgICAgIHRoaXMud29ybGQgPSBoYXNoUGFydHNbMl07XG4gICAgfVxuICB9XG4gIHJlYWR5KCk6IE9ic2VydmFibGU8Q29udGV4dFN0YXRlPiB7XG4gICAgcmV0dXJuIHRoaXMuc3RvcmUucGlwZShzZWxlY3QoZ2V0Q29udGV4dFN0YXRlKSk7XG4gIH1cbn1cbiJdfQ==

@@ -26,2 +26,24 @@ /**

*/
VvcDataCollectionService.prototype.getSyncForm = /**
* @return {?}
*/
function () {
return {
id: 'sync',
labelId: 'STRINGS.SYNC.TITLE',
type: 'form',
fields: [
{
id: 'sync-code',
labelId: 'STRINGS.SYNC.ADD_CODE',
format: 'text',
type: 'string',
required: true
}
]
};
};
/**
* @return {?}
*/
VvcDataCollectionService.prototype.setCollectorAgent = /**

@@ -79,15 +101,20 @@ * @return {?}

case 0:
if (!!this.hasDataCollection()) return [3 /*break*/, 1];
if (!this.isSyncContact()) return [3 /*break*/, 1];
this.processSyncRef();
return [3 /*break*/, 4];
case 1:
if (!!this.hasDataCollection()) return [3 /*break*/, 2];
this.store.dispatch(new DataCollectionEnd({ type: 'dc' }));
return [3 /*break*/, 3];
case 1:
return [3 /*break*/, 4];
case 2:
// this.uiService.setUiReady();
_a = this;
return [4 /*yield*/, this.vivocha.pageRequest('mergeDataCollections', this.context.dataCollectionIds)];
case 2:
case 3:
// this.uiService.setUiReady();
_a.dcRefs = _b.sent();
console.log('DC-REFS', this.dcRefs);
this.processDcByIdx(0);
_b.label = 3;
case 3: return [2 /*return*/];
_b.label = 4;
case 4: return [2 /*return*/];
}

@@ -202,2 +229,17 @@ });

*/
VvcDataCollectionService.prototype.processSyncRef = /**
* @return {?}
*/
function () {
/** @type {?} */
var dcRef = this.getSyncForm();
this.dcType = 'sync';
this.store.dispatch(new DataCollectionAdded(dcRef));
this.uiService.setUiReady();
this.store.dispatch(new DataCollectionSelected({ dc: dcRef, type: this.dcType }));
this.store.dispatch(new DataCollectionShowPanel(true));
};
/**
* @return {?}
*/
VvcDataCollectionService.prototype.hasDataCollection = /**

@@ -241,2 +283,12 @@ * @return {?}

/**
* @return {?}
*/
VvcDataCollectionService.prototype.isSyncContact = /**
* @return {?}
*/
function () {
// return !!this.context.isSync;
return false;
};
/**
* @param {?} isTemplate

@@ -462,2 +514,2 @@ * @param {?} message

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1jb2xsZWN0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Adml2b2NoYS9jbGllbnQtaW50ZXJhY3Rpb24tY29yZS8iLCJzb3VyY2VzIjpbImxpYi9zZXJ2aWNlcy9kYXRhLWNvbGxlY3Rpb24uc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFekMsT0FBTyxFQUFDLEtBQUssRUFBQyxNQUFNLGFBQWEsQ0FBQztBQUNsQyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sY0FBYyxDQUFDO0FBQzFDLE9BQU8sRUFBQyxzQkFBc0IsR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25zLFxuICAgICAgICAgIGxhc3RDb21wbGV0ZWRUeXBlOiAnZm9ybSdcbiAgICAgICAgfSkpO1xuICAgICAgfVxuICAgIH1cbiAgfVxuICBzdWJtaXRIaWRkZW5EYXRhQ29sbGVjdGlvbihkYykge1xuICAgIGNvbnN0IGRhdGEgPSB7fTtcbiAgICBpZiAoZGMuZmllbGRzKSB7XG4gICAgICBkYy5maWVsZHMuZm9yRWFjaCggZWxlbSA9PiB7XG4gICAgICAgIGNvbnN0IGhhc0RlZmF1bHQgPSAodHlwZW9mIGVsZW0uZGVmYXVsdENvbnN0YW50ICE9PSAndW5kZWZpbmVkJykgJiYgZWxlbS5kZWZhdWx0Q29uc3RhbnQgIT0gbnVsbDtcbiAgICAgICAgZGF0YVtlbGVtLmlkXSA9IGhhc0RlZmF1bHQgPyBlbGVtLmRlZmF1bHRDb25zdGFudC50b1N0cmluZygpIDogZWxlbS5kZWZhdWx0Q29uc3RhbnQ7XG4gICAgICB9KTtcbiAgICB9XG4gICAgY29uc3QgZGF0YUNvbGxlY3Rpb24gPSB7XG4gICAgICBkY0RlZmluaXRpb24gOiBkYyxcbiAgICAgIGRjRGF0YTogZGF0YVxuICAgIH07XG4gICAgLy8gY29uc29sZS5sb2coJ3N1Ym1pdHRpbmcgaGlkZGVuIGRjJywgZGF0YUNvbGxlY3Rpb24pO1xuICAgIHRoaXMuc3VibWl0RGF0YUNvbGxlY3Rpb24oZGF0YUNvbGxlY3Rpb24pO1xuICB9XG4gIHN1Ym1pdFN1cnZleShzdXJ2ZXkpIHtcbiAgICB0aGlzLnN0b3JlLmRpc3BhdGNoKG5ldyBEYXRhQ29sbGVjdGlvbkVuZCh7IHR5cGU6ICdzdXJ2ZXknLCBkYXRhQ29sbGVjdGlvbjogc3VydmV5IH0pKTtcbiAgfVxufVxuIl19

@@ -6,4 +6,5 @@ /**

import { Injectable } from '@angular/core';
import { Store } from '@ngrx/store';
import { select, Store } from '@ngrx/store';
import { getUiState } from '../store/selectors/widget.selectors';
import { getEventsState } from '../store/reducers/main.reducer';
import { VvcContextService } from './context.service';

@@ -124,2 +125,11 @@ import { VvcContactWrap } from './contact-wrap.service';

*/
VvcInteractionService.prototype.events = /**
* @return {?}
*/
function () {
return this.store.pipe(select(getEventsState));
};
/**
* @return {?}
*/
VvcInteractionService.prototype.getState = /**

@@ -129,3 +139,3 @@ * @return {?}

function () {
return this.store.select(getUiState);
return this.store.pipe(select(getUiState));
};

@@ -266,3 +276,8 @@ /**

this.vivocha.bus.registerService('vvcApp', {
changeLang: function (lang) { return _this.changeLang(lang); }
changeLang: function (lang) { return _this.changeLang(lang); },
closeContact: function (dim) { return _this.closeContact(dim); },
closeAndRemove: function (dim) {
_this.closeContact(dim);
_this.closeApp();
}
});

@@ -365,6 +380,2 @@ };

function (dim) {
if (!this.firstDimensions) {
this.firstDimensions = dim;
this.contactService.useDimensionsForDowngrades(dim);
}
this.contactService.setDimension(dim);

@@ -548,4 +559,2 @@ };

/** @type {?} */
VvcInteractionService.prototype.firstDimensions;
/** @type {?} */
VvcInteractionService.prototype.store;

@@ -560,2 +569,2 @@ /** @type {?} */

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJhY3Rpb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2aXZvY2hhL2NsaWVudC1pbnRlcmFjdGlvbi1jb3JlLyIsInNvdXJjZXMiOlsibGliL3NlcnZpY2VzL2ludGVyYWN0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFDLEtBQUssRUFBQyxNQUFNLGFBQWEsQ0FBQztBQUNsQyxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0scUNBQXFDLENBQUM7QUFFL0QsT0FBTyxFQUFDLGlCQUFpQixFQUFDLE1BQU0sbUJBQ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WxlY3RlZFxuICB8IERhdGFDb2xsZWN0aW9uUmVzb2x2ZWRcbiAgfCBEYXRhQ29sbGVjdGlvblNob3dQYW5lbDtcbiJdfQ==

@@ -6,9 +6,9 @@ /**

/** @type {?} */
export var NEW_MESSAGE = "[Message] New message";
export var NEW_MESSAGE = '[Message] New message';
/** @type {?} */
export var UPDATE_MESSAGE = "[Message] Update message";
export var UPDATE_MESSAGE = '[Message] Update message';
/** @type {?} */
export var REM_IS_WRITING = "[Message] Remove is writing";
export var REM_IS_WRITING = '[Message] Remove is writing';
/** @type {?} */
export var REM_MESSAGE = "[Message] Remove message";
export var REM_MESSAGE = '[Message] Remove message';
var NewMessage = /** @class */ (function () {

@@ -71,2 +71,2 @@ function NewMessage(payload) {

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnZXMuYWN0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2aXZvY2hhL2NsaWVudC1pbnRlcmFjdGlvbi1jb3JlLyIsInNvdXJjZXMiOlsibGliL3N0b3JlL2FjdGlvbnMvbWVzc2FnZXMuYWN0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUVBLFdBQWEsV0FBVyxHQUFHLHVCQUF1QixDQUFDOztBQUNuRCxXQUFhLGNBQWMsR0FBRywwQkFBMEIsQ0FBQzs7QUFDekQsV0FBYSxjQUFjLEdBQUcsNkJBQTZCLENBQUM7O0FBQzVELFdBQWEsV0FBVyxHQUFHLDBCQUEwQixDQUFDO0FBRXRELElBQUE7SUFFRSxvQkFBbUIsT0FBWTtRQUFaLFlBQU8sR0FBUCxPQUFPLENBQUs7b0JBRGYsV0FBVztLQUNPO3FCQVRwQztJQVVDLENBQUE7QUFIRCxzQkFHQzs7Ozs7OztBQUNELElBQUE7SUFFRSx1QkFBbUIsT0FBWTtRQUFaLFlBQU8sR0FBUCxPQUFPLENBQUs7b0JBRGYsY0FBYztLQUNJO3d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cmVhZG9ubHkgdHlwZSA9IFJFTV9NRVNTQUdFO1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgcGF5bG9hZDogYW55KSB7fVxufVxuXG5leHBvcnQgdHlwZSBNZXNzYWdlc0FjdGlvbnMgPSBOZXdNZXNzYWdlIHwgVXBkYXRlTWVzc2FnZSB8IFJlbW92ZUlzV3JpdGluZyB8IFJlbW92ZU1lc3NhZ2U7XG4iXX0=

@@ -29,2 +29,10 @@ /**

*/
export function EventsState() { }
/** @type {?} */
EventsState.prototype.type;
/** @type {?|undefined} */
EventsState.prototype.data;
/**
* @record
*/
export function ContextState() { }

@@ -408,2 +416,2 @@ /** @type {?} */

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWxzLmludGVyZmFjZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2aXZvY2hhL2NsaWVudC1pbnRlcmFjdGlvbi1jb3JlLyIsInNvdXJjZXMiOlsibGliL3N0b3JlL21vZGVscy5pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIEFkdmFuY2VkRGF0YUNvbGxlY3Rpb24sXG4gIENsaWVudENvbnRhY3RDcmVhdGlvbk9wdGlvbnMsXG4gIENvbnRhY3REYXRhQ29sbGVjdGlvbkZvcm0sXG4gIERhdGFDb2xsZWN0aW9uXG59IGZyb20gJ0B2aXZvY2hhL3B1YmxpYy1lbnRpdGllcy9kaXN0JztcblxuZXhwb3J0IHR5cGUgQ2JuU3RhdHVzID0gJ2RpYWxpbmcnIHwgJ3JpbmdpbmcnIHwgJ2J1c3knIHwgJ25vLWFuc3dlcicgfCAndW5hc3NpZ25lZCcgfCAnZmFpbGVkJyB8ICdjYW5jZWwnIHwgJ2Fuc3dlcic7XG5cbmV4cG9ydCBpbnRlcmZhY2UgRGltZW5zaW9uIHtcbiAgcG9zaXRpb246ICdmaXhlZCc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QUFBLEVBQUEsb0JBQWtDO0lBQ3hELE1BQU0sQ0FBQyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDO1FBQ3BCLEtBQUssV0FBVyxDQUFDLG9CQUFvQixFQUFFLENBQUM7WUFDdEMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsRUFBRSxFQUFFLEtBQUssRUFBRSxNQUFNLENBQUMsT0FBTyxDQUFDLENBQUM7U0FDakQ7UUFDRCxTQUFTLE1BQU0sQ0FBQyxLQUFLLENBQUM7S0FDdkI7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbnRleHRTdGF0ZSB9IGZyb20gJy4uL21vZGVscy5pbnRlcmZhY2UnO1xuaW1wb3J0ICogYXMgZnJvbUNvbnRleHQgZnJvbSAnLi4vYWN0aW9ucy9jb250ZXh0LmFjdGlvbnMnO1xuXG5jb25zdCBpbml0aWFsU3RhdGU6IENvbnRleHRTdGF0ZSA9IHtcbiAgbG9hZGVkOiBmYWxzZVxufTtcblxuZXhwb3J0IGZ1bmN0aW9uIHJlZHVjZXIoc3RhdGU6IENvbnRleHRTdGF0ZSA9IGluaXRpYWxTdGF0ZSwgYWN0aW9uOiBmcm9tQ29udGV4dC5Db250ZXh0QWN0aW9ucykge1xuICBzd2l0Y2ggKGFjdGlvbi50eXBlKSB7XG4gICAgY2FzZSBmcm9tQ29udGV4dC5MT0FEX0NPTlRFWFRfU1VDQ0VTUzoge1xuICAgICAgcmV0dXJuIE9iamVjdC5hc3NpZ24oe30sIHN0YXRlLCBhY3Rpb24ucGF5bG9hZCk7XG4gICAgfVxuICAgIGRlZmF1bHQ6IHJldHVybiBzdGF0ZTtcbiAgfVxufVxuIl19

@@ -10,2 +10,3 @@ /**

import { reducer as contextReducer } from './context.reducer';
import { reducer as eventsReducer } from './events.reducer';
/**

@@ -24,2 +25,4 @@ * @record

/** @type {?} */
AppState.prototype.events;
/** @type {?} */
export var reducers = {

@@ -30,2 +33,3 @@ context: contextReducer,

dataCollection: dcReducer,
events: eventsReducer
};

@@ -40,3 +44,5 @@ /** @type {?} */

export var getContextState = createFeatureSelector('context');
/** @type {?} */
export var getEventsState = createFeatureSelector('events');
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5yZWR1Y2VyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHZpdm9jaGEvY2xpZW50LWludGVyYWN0aW9uLWNvcmUvIiwic291cmNlcyI6WyJsaWIvc3RvcmUvcmVkdWNlcnMvbWFpbi5yZWR1Y2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQW1CLHFCQUFxQixFQUFtQixNQUFNLGFBQWEsQ0FBQztBQUl0RixPQUFPLEVBQUMsT0FBTyxJQUFJLGFBQWEsRUFBQyxNQUFNLGtCQUFrQixDQUFDO0FBQzFELE9BQU8sRUFBQyxPQUFPLElBQUksY0FBYyxFQUFDLE1BQU0sb0JBQW9CLENBQUM7QUFDN0QsT0FBTyxFQUFDLE9BQU8sSUFBSSxTQUFTLEVBQUMsTUFBTSwwQkFBMEIsQ0FBQztBQUM5RCxPQUFPLEVBQUMsT0FBTyxJQUFJLGNBQWMsRUFBQyxNQUFNLG1CQUFtQixDQUFDOzs7Ozs7Ozs7Ozs7OztBQVM1RCxXQUFhLFFBQVEsR0FBK0I7SUFDbEQsT0FBTyxFQUFFLGNBQWM7SUFDdkIsTUFBTSxFQUFFLGFBQWE7SUFDckIsUUFBUSxFQUFFLGNBQWM7SUFDeEIsY0FBYyxFQUFFLFNBQVM7Q0FDMUIsQ0FBQzs7QUFFRixXQUFhLGNBQWMsR0FBRyxxQkFBcUIsQ0FBYyxRQUFRLENBQUMsQ0FBQzs7QUFDM0UsV0FBYSxnQkFBZ0IsR0FBRyxxQkFBcUIsQ0FBZ0IsVUFBVSxDQUFDLENBQUM7O0FBQ2pGLFdBQWEsc0J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zc2FnZXNTdGF0ZSxcbiAgZ2V0TWVzc2FnZVJlZHV4XG4pO1xuXG5leHBvcnQgY29uc3QgZ2V0VWlTdGF0ZTogTWVtb2l6ZWRTZWxlY3RvcjxPYmplY3QsIFVpU3RhdGU+ID0gY3JlYXRlU2VsZWN0b3IoXG4gIGdldFdpZGdldFN0YXRlLFxuICBnZXRNZXNzYWdlcyxcbiAgZ2V0RGF0YUNvbGxlY3Rpb25TdGF0ZSxcbiAgZ2V0VWlTdGF0ZVJlZHV4XG4pO1xuXG5leHBvcnQgY29uc3QgZ2V0RGF0YUNvbGxlY3Rpb25Db21wbGV0ZWQ6IE1lbW9pemVkU2VsZWN0b3I8T2JqZWN0LCBEYXRhQ29sbGVjdGlvbkNvbXBsZXRlZD4gPSBjcmVhdGVTZWxlY3RvcihcbiAgZ2V0RGF0YUNvbGxlY3Rpb25TdGF0ZSxcbiAgZ2V0Q29tcGxldGVkRENcbik7XG4iXX0=

@@ -19,2 +19,3 @@ /**

export { reducer as ɵn } from './lib/store/reducers/dataCollection.reducer';
export { reducer as ɵo } from './lib/store/reducers/events.reducer';
export { reducers as ɵd } from './lib/store/reducers/main.reducer';

@@ -24,2 +25,2 @@ export { reducer as ɵm } from './lib/store/reducers/messages.reducer';

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidml2b2NoYS1jbGllbnQtaW50ZXJhY3Rpb24tY29yZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2aXZvY2hhL2NsaWVudC1pbnRlcmFjdGlvbi1jb3JlLyIsInNvdXJjZXMiOlsidml2b2NoYS1jbGllbnQtaW50ZXJhY3Rpb24tY29yZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsNEdBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxxQkFBcUIsSUFBSSxFQUFFLEVBQUMsTUFBTSxxQ0FBcUMsQ0FBQztBQUNoRixPQUFPLE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2xpYi9zZXJ2aWNlcy9kYXRhLWNvbGxlY3Rpb24uc2VydmljZSc7XG5leHBvcnQge1Z2Y1Byb3RvY29sU2VydmljZSBhcyDJtWp9IGZyb20gJy4vbGliL3NlcnZpY2VzL3Byb3RvY29sLnNlcnZpY2UnO1xuZXhwb3J0IHtWdmNVaVNlcnZpY2UgYXMgybVmfSBmcm9tICcuL2xpYi9zZXJ2aWNlcy91aS5zZXJ2aWNlJztcbmV4cG9ydCB7V2luZG93UmVmIGFzIMm1Z30gZnJvbSAnLi9saWIvc2VydmljZXMvd2luZG93LnNlcnZpY2UnO1xuZXhwb3J0IHtyZWR1Y2VyIGFzIMm1a30gZnJvbSAnLi9saWIvc3RvcmUvcmVkdWNlcnMvY29udGV4dC5yZWR1Y2VyJztcbmV4cG9ydCB7cmVkdWNlciBhcyDJtW59IGZyb20gJy4vbGliL3N0b3JlL3JlZHVjZXJzL2RhdGFDb2xsZWN0aW9uLnJlZHVjZXInO1xuZXhwb3J0IHtyZWR1Y2VyIGFzIMm1b30gZnJvbSAnLi9saWIvc3RvcmUvcmVkdWNlcnMvZXZlbnRzLnJlZHVjZXInO1xuZXhwb3J0IHtBcHBTdGF0ZSBhcyDJtWMscmVkdWNlcnMgYXMgybVkfSBmcm9tICcuL2xpYi9zdG9yZS9yZWR1Y2Vycy9tYWluLnJlZHVjZXInO1xuZXhwb3J0IHtyZWR1Y2VyIGFzIMm1bX0gZnJvbSAnLi9saWIvc3RvcmUvcmVkdWNlcnMvbWVzc2FnZXMucmVkdWNlcic7XG5leHBvcnQge3JlZHVjZXIgYXMgybVsfSBmcm9tICcuL2xpYi9zdG9yZS9yZWR1Y2Vycy93aWRnZXQucmVkdWNlcic7Il19

@@ -25,3 +25,2 @@ import { NgZone } from '@angular/core';

dissuasionTimer: any;
downgradeDimensions: Dimension;
transferTimer: any;

@@ -117,3 +116,2 @@ hasReceivedMsgs: boolean;

upgradeCbnToChat(): void;
useDimensionsForDowngrades(dim: Dimension): void;
}

@@ -7,2 +7,3 @@ import { AppState } from '../store/reducers/main.reducer';

import { VvcMessageService } from './messages.service';
import { AdvancedDataCollection } from '@vivocha/public-entities/dist';
export declare class VvcDataCollectionService {

@@ -18,5 +19,6 @@ private store;

collectorRef: any;
dcType: 'dc' | 'recontact' | 'survey';
dcType: 'dc' | 'recontact' | 'survey' | 'sync';
dcRefs: any[];
constructor(store: Store<AppState>, uiService: VvcUiService, messageService: VvcMessageService);
getSyncForm(): AdvancedDataCollection;
setCollectorAgent(): void;

@@ -30,5 +32,7 @@ setInitialContext(context: any, vivocha: any): void;

processRecontact(): void;
processSyncRef(): void;
hasDataCollection(): boolean;
hasSurvey(): boolean;
hasVisibleFields(dc: any): boolean;
isSyncContact(): boolean;
sendMessageViaCollector(isTemplate: any, message: any, payload?: any): Promise<void>;

@@ -35,0 +39,0 @@ setResolved(): void;

import { Store } from '@ngrx/store';
import { AppState } from '../store/reducers/main.reducer';
import { VvcContextService } from './context.service';
import { ContextState, Dimension, LeftScrollOffset, UiState } from '../store/models.interface';
import { ContextState, Dimension, EventsState, LeftScrollOffset, UiState } from '../store/models.interface';
import { VvcContactWrap } from './contact-wrap.service';

@@ -16,3 +16,2 @@ import { Observable } from 'rxjs';

agentRequestCallback: any;
firstDimensions: Dimension;
constructor(store: Store<AppState>, contextService: VvcContextService, contactService: VvcContactWrap, translateService: TranslateService);

@@ -30,2 +29,3 @@ /**** PUBLIC METHOD ****/

dismissCloseModal(): void;
events(): Observable<EventsState>;
getState(): Observable<UiState>;

@@ -32,0 +32,0 @@ hangUp(dim: Dimension): void;

@@ -12,2 +12,6 @@ import { AdvancedDataCollection, ClientContactCreationOptions, ContactDataCollectionForm, DataCollection } from '@vivocha/public-entities/dist';

}
export interface EventsState {
type: string;
data?: any;
}
export interface ContextState {

@@ -77,3 +81,3 @@ loaded: boolean;

export interface DataCollectionCompleted {
type: 'dc' | 'survey' | 'recontact';
type: 'dc' | 'survey' | 'recontact' | 'sync';
contactCreateOptions?: ClientContactCreationOptions;

@@ -80,0 +84,0 @@ dataCollection?: ContactDataCollectionForm;

import { ActionReducerMap, MemoizedSelector } from '@ngrx/store';
import { WidgetState, MessagesState, DataCollectionState, ContextState } from '../models.interface';
import { WidgetState, MessagesState, DataCollectionState, ContextState, EventsState } from '../models.interface';
export interface AppState {

@@ -8,2 +8,3 @@ context: ContextState;

dataCollection: DataCollectionState;
events: EventsState;
}

@@ -15,1 +16,2 @@ export declare const reducers: ActionReducerMap<AppState>;

export declare const getContextState: MemoizedSelector<object, ContextState>;
export declare const getEventsState: MemoizedSelector<object, EventsState>;
{
"name": "@vivocha/client-interaction-core",
"version": "6.4.9",
"version": "6.4.10",
"license": "SEE LICENSE IN LICENSE",

@@ -5,0 +5,0 @@ "repository": {

@@ -15,4 +15,5 @@ /**

export { reducer as ɵn } from './lib/store/reducers/dataCollection.reducer';
export { reducer as ɵo } from './lib/store/reducers/events.reducer';
export { AppState as ɵc, reducers as ɵd } from './lib/store/reducers/main.reducer';
export { reducer as ɵm } from './lib/store/reducers/messages.reducer';
export { reducer as ɵl } from './lib/store/reducers/widget.reducer';

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"UiState":{"__symbolic":"interface"},"Dimension":{"__symbolic":"interface"},"VvcMessageService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]}]}],"addChatMessage":[{"__symbolic":"method"}],"addCustomMessage":[{"__symbolic":"method"}],"addDialogMessage":[{"__symbolic":"method"}],"addLocalMessage":[{"__symbolic":"method"}],"addLinkMessage":[{"__symbolic":"method"}],"addQuickRepliesMessage":[{"__symbolic":"method"}],"addTemplateMessage":[{"__symbolic":"method"}],"getChatTimestamp":[{"__symbolic":"method"}],"removeMessage":[{"__symbolic":"method"}],"sendRequestMessage":[{"__symbolic":"method"}],"sendSystemMessage":[{"__symbolic":"method"}],"updateQuickReply":[{"__symbolic":"method"}],"updateLeftScroll":[{"__symbolic":"method"}]}},"VvcInteractionService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateService","line":25,"character":30}]}],"acceptAgentRequest":[{"__symbolic":"method"}],"acceptOffer":[{"__symbolic":"method"}],"addChatToFullScreen":[{"__symbolic":"method"}],"askForVideoUpgrade":[{"__symbolic":"method"}],"askForVoiceUpgrade":[{"__symbolic":"method"}],"changeLang":[{"__symbolic":"method"}],"closeApp":[{"__symbolic":"method"}],"closeContact":[{"__symbolic":"method"}],"closeUploadPanel":[{"__symbolic":"method"}],"dismissCloseModal":[{"__symbolic":"method"}],"getState":[{"__symbolic":"method"}],"hangUp":[{"__symbolic":"method"}],"hideChat":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"minimize":[{"__symbolic":"method"}],"maximizeWidget":[{"__symbolic":"method"}],"minimizeMedia":[{"__symbolic":"method"}],"minimizeWidget":[{"__symbolic":"method"}],"muteToggle":[{"__symbolic":"method"}],"openAttachment":[{"__symbolic":"method"}],"processQuickReply":[{"__symbolic":"method"}],"registerChangeLangService":[{"__symbolic":"method"}],"registerCustomAction":[{"__symbolic":"method"}],"rejectAgentRequest":[{"__symbolic":"method"}],"rejectOffer":[{"__symbolic":"method"}],"sendAttachment":[{"__symbolic":"method"}],"sendIsWriting":[{"__symbolic":"method"}],"sendPostBack":[{"__symbolic":"method"}],"sendRequest":[{"__symbolic":"method"}],"sendText":[{"__symbolic":"method"}],"setDimensions":[{"__symbolic":"method"}],"setFullScreen":[{"__symbolic":"method"}],"setNormalScreen":[{"__symbolic":"method"}],"setTopBar":[{"__symbolic":"method"}],"setTopBarAvatar":[{"__symbolic":"method"}],"setTopBarSubtitle":[{"__symbolic":"method"}],"setTopBarTitle":[{"__symbolic":"method"}],"showCloseModal":[{"__symbolic":"method"}],"showUploadPanel":[{"__symbolic":"method"}],"showSurvey":[{"__symbolic":"method"}],"submitDataCollection":[{"__symbolic":"method"}],"submitSurvey":[{"__symbolic":"method"}],"toggleEmojiPanel":[{"__symbolic":"method"}],"toggleVideo":[{"__symbolic":"method"}],"updateLeftScrollOffset":[{"__symbolic":"method"}],"upgradeCbnToChat":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"function"},"InteractionCoreModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":25,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":28,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngrx/store","name":"StoreModule","line":29,"character":4},"member":"forRoot"},"arguments":[{"__symbolic":"reference","name":"ɵd"},{}]},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateModule","line":30,"character":4},"member":"forRoot"},"arguments":[{"loader":{"provide":{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateLoader","line":32,"character":17},"useFactory":{"__symbolic":"reference","name":"ɵa"},"deps":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":34,"character":15}]}}]}],"providers":[{"__symbolic":"reference","name":"VvcInteractionService"},{"__symbolic":"reference","name":"VvcMessageService"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵg"}]}]}],"members":{}},"ɵb":{"__symbolic":"function"},"InteractionCoreDebugModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":25,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":28,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngrx/store","name":"StoreModule","line":29,"character":4},"member":"forRoot"},"arguments":[{"__symbolic":"reference","name":"ɵd"},{}]},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateModule","line":30,"character":4},"member":"forRoot"},"arguments":[{"loader":{"provide":{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateLoader","line":32,"character":17},"useFactory":{"__symbolic":"reference","name":"ɵb"},"deps":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":34,"character":15}]}}]},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngrx/store-devtools","name":"StoreDevtoolsModule","line":37,"character":4},"member":"instrument"},"arguments":[{"maxAge":50}]}],"providers":[{"__symbolic":"reference","name":"VvcInteractionService"},{"__symbolic":"reference","name":"VvcMessageService"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵg"}]}]}],"members":{}},"ɵc":{"__symbolic":"interface"},"ɵd":{"context":{"__symbolic":"reference","name":"ɵk"},"widget":{"__symbolic":"reference","name":"ɵl"},"messages":{"__symbolic":"reference","name":"ɵm"},"dataCollection":{"__symbolic":"reference","name":"ɵn"}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateService","line":26,"character":16},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":27,"character":18}]}],"checkForVivocha":[{"__symbolic":"method"}],"dispatchContext":[{"__symbolic":"method"}],"getVivocha":[{"__symbolic":"method"}],"parseIframeUrl":[{"__symbolic":"method"}],"ready":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":45,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]}]}],"setCbnMode":[{"__symbolic":"method"}],"hideChat":[{"__symbolic":"method"}],"hideQueueForChat":[{"__symbolic":"method"}],"initializeChat":[{"__symbolic":"method"}],"initializeContext":[{"__symbolic":"method"}],"initializeMedia":[{"__symbolic":"method"}],"initializeMultimedia":[{"__symbolic":"method"}],"initializeProtocol":[{"__symbolic":"method"}],"loadDataCollections":[{"__symbolic":"method"}],"newMessageReceived":[{"__symbolic":"method"}],"resetTopBar":[{"__symbolic":"method"}],"selectDataCollection":[{"__symbolic":"method"}],"setOfferAccepted":[{"__symbolic":"method"}],"setAgent":[{"__symbolic":"method"}],"setAutoChat":[{"__symbolic":"method"}],"setCbnState":[{"__symbolic":"method"}],"setClosedByAgent":[{"__symbolic":"method"}],"setClosedByVisitor":[{"__symbolic":"method"}],"setCloseModal":[{"__symbolic":"method"}],"setCreationFailed":[{"__symbolic":"method"}],"setDataCollectionCompleted":[{"__symbolic":"method"}],"setDialogUi":[{"__symbolic":"method"}],"setDissuasion":[{"__symbolic":"method"}],"setFullScreenChat":[{"__symbolic":"method"}],"setFullScreen":[{"__symbolic":"method"}],"setHangUpState":[{"__symbolic":"method"}],"setNormalScreen":[{"__symbolic":"method"}],"setIncomingMedia":[{"__symbolic":"method"}],"setInTransit":[{"__symbolic":"method"}],"setIsOffering":[{"__symbolic":"method"}],"setIsWriting":[{"__symbolic":"method"}],"setMediaOffer":[{"__symbolic":"method"}],"setMediaState":[{"__symbolic":"method"}],"setMinimizedState":[{"__symbolic":"method"}],"setMinimizedMedia":[{"__symbolic":"method"}],"setMuted":[{"__symbolic":"method"}],"setMuteInProgress":[{"__symbolic":"method"}],"setNormalState":[{"__symbolic":"method"}],"setOfferRejected":[{"__symbolic":"method"}],"setTopBar":[{"__symbolic":"method"}],"setTopBarAvatar":[{"__symbolic":"method"}],"setTopBarSubtitle":[{"__symbolic":"method"}],"setTopBarTitle":[{"__symbolic":"method"}],"setTopBarWithAvatar":[{"__symbolic":"method"}],"setTopBarWithAgentInfo":[{"__symbolic":"method"}],"setSurveyPanel":[{"__symbolic":"method"}],"setUiReady":[{"__symbolic":"method"}],"setUploadPanel":[{"__symbolic":"method"}],"setUploading":[{"__symbolic":"method"}],"setUploaded":[{"__symbolic":"method"}],"setWebleadSent":[{"__symbolic":"method"}],"showQueuePanel":[{"__symbolic":"method"}],"toggleEmojiPanel":[{"__symbolic":"method"}],"upgradeCbnToChat":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1}}],"members":{}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":14,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"VvcMessageService"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":52,"character":18}]}],"acceptAgentRequest":[{"__symbolic":"method"}],"acceptOffer":[{"__symbolic":"method"}],"addChatToFullScreen":[{"__symbolic":"method"}],"askForUpgrade":[{"__symbolic":"method"}],"attachDataAndCreateContact":[{"__symbolic":"method"}],"cancelDissuasionTimeout":[{"__symbolic":"method"}],"cancelTransferTimeout":[{"__symbolic":"method"}],"cbnStatusChanged":[{"__symbolic":"method"}],"checkForTranscript":[{"__symbolic":"method"}],"closeApp":[{"__symbolic":"method"}],"closeContact":[{"__symbolic":"method"}],"closeUploadPanel":[{"__symbolic":"method"}],"createAutoContact":[{"__symbolic":"method"}],"createContact":[{"__symbolic":"method"}],"getContactOptions":[{"__symbolic":"method"}],"hangUp":[{"__symbolic":"method"}],"hasRecallForNoAgent":[{"__symbolic":"method"}],"hideChat":[{"__symbolic":"method"}],"initializeContact":[{"__symbolic":"method"}],"isAutoChat":[{"__symbolic":"method"}],"isChatEmulationContact":[{"__symbolic":"method"}],"isOfflineMessage":[{"__symbolic":"method"}],"isRecallContact":[{"__symbolic":"method"}],"isInPersistence":[{"__symbolic":"method"}],"leave":[{"__symbolic":"method"}],"mapContact":[{"__symbolic":"method"}],"maximizeWidget":[{"__symbolic":"method"}],"mergeOffer":[{"__symbolic":"method"}],"muteToggle":[{"__symbolic":"method"}],"minimize":[{"__symbolic":"method"}],"minimizeMedia":[{"__symbolic":"method"}],"minimizeWidget":[{"__symbolic":"method"}],"noAgents":[{"__symbolic":"method"}],"onAgentJoin":[{"__symbolic":"method"}],"onAgentRequest":[{"__symbolic":"method"}],"onClose":[{"__symbolic":"method"}],"onLeft":[{"__symbolic":"method"}],"onLocalJoin":[{"__symbolic":"method"}],"onMediaOffer":[{"__symbolic":"method"}],"openAttachment":[{"__symbolic":"method"}],"playAudioNotification":[{"__symbolic":"method"}],"processQuickReply":[{"__symbolic":"method"}],"registerCallStatusEvents":[{"__symbolic":"method"}],"registerCustomAction":[{"__symbolic":"method"}],"rejectAgentRequest":[{"__symbolic":"method"}],"rejectOffer":[{"__symbolic":"method"}],"resumeContact":[{"__symbolic":"method"}],"sendAttachment":[{"__symbolic":"method"}],"sendIsWriting":[{"__symbolic":"method"}],"sendPostBack":[{"__symbolic":"method"}],"sendRequest":[{"__symbolic":"method"}],"sendText":[{"__symbolic":"method"}],"setAnsweredState":[{"__symbolic":"method"}],"setDimension":[{"__symbolic":"method"}],"setFullScreen":[{"__symbolic":"method"}],"setIsWriting":[{"__symbolic":"method"}],"setNormalScreen":[{"__symbolic":"method"}],"setQueueState":[{"__symbolic":"method"}],"setTransferTimer":[{"__symbolic":"method"}],"setRecallOrLeave":[{"__symbolic":"method"}],"setTopBar":[{"__symbolic":"method"}],"setTopBarAvatar":[{"__symbolic":"method"}],"setTopBarSubtitle":[{"__symbolic":"method"}],"setTopBarTitle":[{"__symbolic":"method"}],"showCloseModal":[{"__symbolic":"method"}],"showUploadPanel":[{"__symbolic":"method"}],"showSurvey":[{"__symbolic":"method"}],"submitDataCollection":[{"__symbolic":"method"}],"submitSurvey":[{"__symbolic":"method"}],"toggleEmojiPanel":[{"__symbolic":"method"}],"toggleVideo":[{"__symbolic":"method"}],"updateLeftScrollOffset":[{"__symbolic":"method"}],"upgradeCbnToChat":[{"__symbolic":"method"}],"useDimensionsForDowngrades":[{"__symbolic":"method"}]}},"ɵi":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":16,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"VvcMessageService"}]}],"setCollectorAgent":[{"__symbolic":"method"}],"setInitialContext":[{"__symbolic":"method"}],"onDataCollectionCompleted":[{"__symbolic":"method"}],"processDataCollections":[{"__symbolic":"method"}],"processDcById":[{"__symbolic":"method"}],"processDcByIdx":[{"__symbolic":"method"}],"processDcByRef":[{"__symbolic":"method"}],"processRecontact":[{"__symbolic":"method"}],"hasDataCollection":[{"__symbolic":"method"}],"hasSurvey":[{"__symbolic":"method"}],"hasVisibleFields":[{"__symbolic":"method"}],"sendMessageViaCollector":[{"__symbolic":"method"}],"setResolved":[{"__symbolic":"method"}],"showSurvey":[{"__symbolic":"method"}],"submitDataCollection":[{"__symbolic":"method"}],"submitHiddenDataCollection":[{"__symbolic":"method"}],"submitSurvey":[{"__symbolic":"method"}]}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]}]}],"confirmNeeded":[{"__symbolic":"method"}],"getChannels":[{"__symbolic":"method"}],"isAlreadyConnectedWith":[{"__symbolic":"method"}],"mergeOffer":[{"__symbolic":"method"}],"setMediaChange":[{"__symbolic":"method"}]}},"ɵk":{"__symbolic":"function"},"ɵl":{"__symbolic":"function"},"ɵm":{"__symbolic":"function"},"ɵn":{"__symbolic":"function"}},"origins":{"UiState":"./lib/store/models.interface","Dimension":"./lib/store/models.interface","VvcMessageService":"./lib/services/messages.service","VvcInteractionService":"./lib/services/interaction.service","ɵa":"./lib/interaction-core.module","InteractionCoreModule":"./lib/interaction-core.module","ɵb":"./lib/interaction-core-debug.module","InteractionCoreDebugModule":"./lib/interaction-core-debug.module","ɵc":"./lib/store/reducers/main.reducer","ɵd":"./lib/store/reducers/main.reducer","ɵe":"./lib/services/context.service","ɵf":"./lib/services/ui.service","ɵg":"./lib/services/window.service","ɵh":"./lib/services/contact-wrap.service","ɵi":"./lib/services/data-collection.service","ɵj":"./lib/services/protocol.service","ɵk":"./lib/store/reducers/context.reducer","ɵl":"./lib/store/reducers/widget.reducer","ɵm":"./lib/store/reducers/messages.reducer","ɵn":"./lib/store/reducers/dataCollection.reducer"},"importAs":"@vivocha/client-interaction-core"}
{"__symbolic":"module","version":4,"metadata":{"UiState":{"__symbolic":"interface"},"Dimension":{"__symbolic":"interface"},"VvcMessageService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]}]}],"addChatMessage":[{"__symbolic":"method"}],"addCustomMessage":[{"__symbolic":"method"}],"addDialogMessage":[{"__symbolic":"method"}],"addLocalMessage":[{"__symbolic":"method"}],"addLinkMessage":[{"__symbolic":"method"}],"addQuickRepliesMessage":[{"__symbolic":"method"}],"addTemplateMessage":[{"__symbolic":"method"}],"getChatTimestamp":[{"__symbolic":"method"}],"removeMessage":[{"__symbolic":"method"}],"sendRequestMessage":[{"__symbolic":"method"}],"sendSystemMessage":[{"__symbolic":"method"}],"updateQuickReply":[{"__symbolic":"method"}],"updateLeftScroll":[{"__symbolic":"method"}]}},"VvcInteractionService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateService","line":24,"character":30}]}],"acceptAgentRequest":[{"__symbolic":"method"}],"acceptOffer":[{"__symbolic":"method"}],"addChatToFullScreen":[{"__symbolic":"method"}],"askForVideoUpgrade":[{"__symbolic":"method"}],"askForVoiceUpgrade":[{"__symbolic":"method"}],"changeLang":[{"__symbolic":"method"}],"closeApp":[{"__symbolic":"method"}],"closeContact":[{"__symbolic":"method"}],"closeUploadPanel":[{"__symbolic":"method"}],"dismissCloseModal":[{"__symbolic":"method"}],"events":[{"__symbolic":"method"}],"getState":[{"__symbolic":"method"}],"hangUp":[{"__symbolic":"method"}],"hideChat":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"minimize":[{"__symbolic":"method"}],"maximizeWidget":[{"__symbolic":"method"}],"minimizeMedia":[{"__symbolic":"method"}],"minimizeWidget":[{"__symbolic":"method"}],"muteToggle":[{"__symbolic":"method"}],"openAttachment":[{"__symbolic":"method"}],"processQuickReply":[{"__symbolic":"method"}],"registerChangeLangService":[{"__symbolic":"method"}],"registerCustomAction":[{"__symbolic":"method"}],"rejectAgentRequest":[{"__symbolic":"method"}],"rejectOffer":[{"__symbolic":"method"}],"sendAttachment":[{"__symbolic":"method"}],"sendIsWriting":[{"__symbolic":"method"}],"sendPostBack":[{"__symbolic":"method"}],"sendRequest":[{"__symbolic":"method"}],"sendText":[{"__symbolic":"method"}],"setDimensions":[{"__symbolic":"method"}],"setFullScreen":[{"__symbolic":"method"}],"setNormalScreen":[{"__symbolic":"method"}],"setTopBar":[{"__symbolic":"method"}],"setTopBarAvatar":[{"__symbolic":"method"}],"setTopBarSubtitle":[{"__symbolic":"method"}],"setTopBarTitle":[{"__symbolic":"method"}],"showCloseModal":[{"__symbolic":"method"}],"showUploadPanel":[{"__symbolic":"method"}],"showSurvey":[{"__symbolic":"method"}],"submitDataCollection":[{"__symbolic":"method"}],"submitSurvey":[{"__symbolic":"method"}],"toggleEmojiPanel":[{"__symbolic":"method"}],"toggleVideo":[{"__symbolic":"method"}],"updateLeftScrollOffset":[{"__symbolic":"method"}],"upgradeCbnToChat":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"function"},"InteractionCoreModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":25,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":28,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngrx/store","name":"StoreModule","line":29,"character":4},"member":"forRoot"},"arguments":[{"__symbolic":"reference","name":"ɵd"},{}]},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateModule","line":30,"character":4},"member":"forRoot"},"arguments":[{"loader":{"provide":{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateLoader","line":32,"character":17},"useFactory":{"__symbolic":"reference","name":"ɵa"},"deps":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":34,"character":15}]}}]}],"providers":[{"__symbolic":"reference","name":"VvcInteractionService"},{"__symbolic":"reference","name":"VvcMessageService"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵg"}]}]}],"members":{}},"ɵb":{"__symbolic":"function"},"InteractionCoreDebugModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":25,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":28,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngrx/store","name":"StoreModule","line":29,"character":4},"member":"forRoot"},"arguments":[{"__symbolic":"reference","name":"ɵd"},{}]},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateModule","line":30,"character":4},"member":"forRoot"},"arguments":[{"loader":{"provide":{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateLoader","line":32,"character":17},"useFactory":{"__symbolic":"reference","name":"ɵb"},"deps":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":34,"character":15}]}}]},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngrx/store-devtools","name":"StoreDevtoolsModule","line":37,"character":4},"member":"instrument"},"arguments":[{"maxAge":50}]}],"providers":[{"__symbolic":"reference","name":"VvcInteractionService"},{"__symbolic":"reference","name":"VvcMessageService"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵg"}]}]}],"members":{}},"ɵc":{"__symbolic":"interface"},"ɵd":{"context":{"__symbolic":"reference","name":"ɵk"},"widget":{"__symbolic":"reference","name":"ɵl"},"messages":{"__symbolic":"reference","name":"ɵm"},"dataCollection":{"__symbolic":"reference","name":"ɵn"},"events":{"__symbolic":"reference","name":"ɵo"}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateService","line":26,"character":16},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":27,"character":18}]}],"checkForVivocha":[{"__symbolic":"method"}],"dispatchContext":[{"__symbolic":"method"}],"getVivocha":[{"__symbolic":"method"}],"parseIframeUrl":[{"__symbolic":"method"}],"ready":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":45,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]}]}],"setCbnMode":[{"__symbolic":"method"}],"hideChat":[{"__symbolic":"method"}],"hideQueueForChat":[{"__symbolic":"method"}],"initializeChat":[{"__symbolic":"method"}],"initializeContext":[{"__symbolic":"method"}],"initializeMedia":[{"__symbolic":"method"}],"initializeMultimedia":[{"__symbolic":"method"}],"initializeProtocol":[{"__symbolic":"method"}],"loadDataCollections":[{"__symbolic":"method"}],"newMessageReceived":[{"__symbolic":"method"}],"resetTopBar":[{"__symbolic":"method"}],"selectDataCollection":[{"__symbolic":"method"}],"setOfferAccepted":[{"__symbolic":"method"}],"setAgent":[{"__symbolic":"method"}],"setAutoChat":[{"__symbolic":"method"}],"setCbnState":[{"__symbolic":"method"}],"setClosedByAgent":[{"__symbolic":"method"}],"setClosedByVisitor":[{"__symbolic":"method"}],"setCloseModal":[{"__symbolic":"method"}],"setCreationFailed":[{"__symbolic":"method"}],"setDataCollectionCompleted":[{"__symbolic":"method"}],"setDialogUi":[{"__symbolic":"method"}],"setDissuasion":[{"__symbolic":"method"}],"setFullScreenChat":[{"__symbolic":"method"}],"setFullScreen":[{"__symbolic":"method"}],"setHangUpState":[{"__symbolic":"method"}],"setNormalScreen":[{"__symbolic":"method"}],"setIncomingMedia":[{"__symbolic":"method"}],"setInTransit":[{"__symbolic":"method"}],"setIsOffering":[{"__symbolic":"method"}],"setIsWriting":[{"__symbolic":"method"}],"setMediaOffer":[{"__symbolic":"method"}],"setMediaState":[{"__symbolic":"method"}],"setMinimizedState":[{"__symbolic":"method"}],"setMinimizedMedia":[{"__symbolic":"method"}],"setMuted":[{"__symbolic":"method"}],"setMuteInProgress":[{"__symbolic":"method"}],"setNormalState":[{"__symbolic":"method"}],"setOfferRejected":[{"__symbolic":"method"}],"setTopBar":[{"__symbolic":"method"}],"setTopBarAvatar":[{"__symbolic":"method"}],"setTopBarSubtitle":[{"__symbolic":"method"}],"setTopBarTitle":[{"__symbolic":"method"}],"setTopBarWithAvatar":[{"__symbolic":"method"}],"setTopBarWithAgentInfo":[{"__symbolic":"method"}],"setSurveyPanel":[{"__symbolic":"method"}],"setUiReady":[{"__symbolic":"method"}],"setUploadPanel":[{"__symbolic":"method"}],"setUploading":[{"__symbolic":"method"}],"setUploaded":[{"__symbolic":"method"}],"setWebleadSent":[{"__symbolic":"method"}],"showQueuePanel":[{"__symbolic":"method"}],"toggleEmojiPanel":[{"__symbolic":"method"}],"upgradeCbnToChat":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1}}],"members":{}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"VvcMessageService"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":52,"character":18}]}],"acceptAgentRequest":[{"__symbolic":"method"}],"acceptOffer":[{"__symbolic":"method"}],"addChatToFullScreen":[{"__symbolic":"method"}],"askForUpgrade":[{"__symbolic":"method"}],"attachDataAndCreateContact":[{"__symbolic":"method"}],"cancelDissuasionTimeout":[{"__symbolic":"method"}],"cancelTransferTimeout":[{"__symbolic":"method"}],"cbnStatusChanged":[{"__symbolic":"method"}],"checkForTranscript":[{"__symbolic":"method"}],"closeApp":[{"__symbolic":"method"}],"closeContact":[{"__symbolic":"method"}],"closeUploadPanel":[{"__symbolic":"method"}],"createAutoContact":[{"__symbolic":"method"}],"createContact":[{"__symbolic":"method"}],"getContactOptions":[{"__symbolic":"method"}],"hangUp":[{"__symbolic":"method"}],"hasRecallForNoAgent":[{"__symbolic":"method"}],"hideChat":[{"__symbolic":"method"}],"initializeContact":[{"__symbolic":"method"}],"isAutoChat":[{"__symbolic":"method"}],"isChatEmulationContact":[{"__symbolic":"method"}],"isOfflineMessage":[{"__symbolic":"method"}],"isRecallContact":[{"__symbolic":"method"}],"isInPersistence":[{"__symbolic":"method"}],"leave":[{"__symbolic":"method"}],"mapContact":[{"__symbolic":"method"}],"maximizeWidget":[{"__symbolic":"method"}],"mergeOffer":[{"__symbolic":"method"}],"muteToggle":[{"__symbolic":"method"}],"minimize":[{"__symbolic":"method"}],"minimizeMedia":[{"__symbolic":"method"}],"minimizeWidget":[{"__symbolic":"method"}],"noAgents":[{"__symbolic":"method"}],"onAgentJoin":[{"__symbolic":"method"}],"onAgentRequest":[{"__symbolic":"method"}],"onClose":[{"__symbolic":"method"}],"onLeft":[{"__symbolic":"method"}],"onLocalJoin":[{"__symbolic":"method"}],"onMediaOffer":[{"__symbolic":"method"}],"openAttachment":[{"__symbolic":"method"}],"playAudioNotification":[{"__symbolic":"method"}],"processQuickReply":[{"__symbolic":"method"}],"registerCallStatusEvents":[{"__symbolic":"method"}],"registerCustomAction":[{"__symbolic":"method"}],"rejectAgentRequest":[{"__symbolic":"method"}],"rejectOffer":[{"__symbolic":"method"}],"resumeContact":[{"__symbolic":"method"}],"sendAttachment":[{"__symbolic":"method"}],"sendIsWriting":[{"__symbolic":"method"}],"sendPostBack":[{"__symbolic":"method"}],"sendRequest":[{"__symbolic":"method"}],"sendText":[{"__symbolic":"method"}],"setAnsweredState":[{"__symbolic":"method"}],"setDimension":[{"__symbolic":"method"}],"setFullScreen":[{"__symbolic":"method"}],"setIsWriting":[{"__symbolic":"method"}],"setNormalScreen":[{"__symbolic":"method"}],"setQueueState":[{"__symbolic":"method"}],"setTransferTimer":[{"__symbolic":"method"}],"setRecallOrLeave":[{"__symbolic":"method"}],"setTopBar":[{"__symbolic":"method"}],"setTopBarAvatar":[{"__symbolic":"method"}],"setTopBarSubtitle":[{"__symbolic":"method"}],"setTopBarTitle":[{"__symbolic":"method"}],"showCloseModal":[{"__symbolic":"method"}],"showUploadPanel":[{"__symbolic":"method"}],"showSurvey":[{"__symbolic":"method"}],"submitDataCollection":[{"__symbolic":"method"}],"submitSurvey":[{"__symbolic":"method"}],"toggleEmojiPanel":[{"__symbolic":"method"}],"toggleVideo":[{"__symbolic":"method"}],"updateLeftScrollOffset":[{"__symbolic":"method"}],"upgradeCbnToChat":[{"__symbolic":"method"}]}},"ɵi":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":17,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"VvcMessageService"}]}],"getSyncForm":[{"__symbolic":"method"}],"setCollectorAgent":[{"__symbolic":"method"}],"setInitialContext":[{"__symbolic":"method"}],"onDataCollectionCompleted":[{"__symbolic":"method"}],"processDataCollections":[{"__symbolic":"method"}],"processDcById":[{"__symbolic":"method"}],"processDcByIdx":[{"__symbolic":"method"}],"processDcByRef":[{"__symbolic":"method"}],"processRecontact":[{"__symbolic":"method"}],"processSyncRef":[{"__symbolic":"method"}],"hasDataCollection":[{"__symbolic":"method"}],"hasSurvey":[{"__symbolic":"method"}],"hasVisibleFields":[{"__symbolic":"method"}],"isSyncContact":[{"__symbolic":"method"}],"sendMessageViaCollector":[{"__symbolic":"method"}],"setResolved":[{"__symbolic":"method"}],"showSurvey":[{"__symbolic":"method"}],"submitDataCollection":[{"__symbolic":"method"}],"submitHiddenDataCollection":[{"__symbolic":"method"}],"submitSurvey":[{"__symbolic":"method"}]}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"ɵc"}]}]}],"confirmNeeded":[{"__symbolic":"method"}],"getChannels":[{"__symbolic":"method"}],"isAlreadyConnectedWith":[{"__symbolic":"method"}],"mergeOffer":[{"__symbolic":"method"}],"setMediaChange":[{"__symbolic":"method"}]}},"ɵk":{"__symbolic":"function"},"ɵl":{"__symbolic":"function"},"ɵm":{"__symbolic":"function"},"ɵn":{"__symbolic":"function"},"ɵo":{"__symbolic":"function"}},"origins":{"UiState":"./lib/store/models.interface","Dimension":"./lib/store/models.interface","VvcMessageService":"./lib/services/messages.service","VvcInteractionService":"./lib/services/interaction.service","ɵa":"./lib/interaction-core.module","InteractionCoreModule":"./lib/interaction-core.module","ɵb":"./lib/interaction-core-debug.module","InteractionCoreDebugModule":"./lib/interaction-core-debug.module","ɵc":"./lib/store/reducers/main.reducer","ɵd":"./lib/store/reducers/main.reducer","ɵe":"./lib/services/context.service","ɵf":"./lib/services/ui.service","ɵg":"./lib/services/window.service","ɵh":"./lib/services/contact-wrap.service","ɵi":"./lib/services/data-collection.service","ɵj":"./lib/services/protocol.service","ɵk":"./lib/store/reducers/context.reducer","ɵl":"./lib/store/reducers/widget.reducer","ɵm":"./lib/store/reducers/messages.reducer","ɵn":"./lib/store/reducers/dataCollection.reducer","ɵo":"./lib/store/reducers/events.reducer"},"importAs":"@vivocha/client-interaction-core"}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc