text: webpackJsonp([1],{0:function(t,n,e){t.exports=e("x35b")},"7YgM":function(t,n){t.exports={name:"@chat21/chat21-web-widget",author:"Dario De Pascalis - Frontiere21 SRL",version:"3.0.19-beta.18I",license:"AGPL-3.0",homepage:"https://www.tiledesk.com",repository:{type:"git",url:"https://github.com/chat21/chat21-web-widget"},private:!1,scripts:{ng:"ng",serve:"ng serve",start:"node server.js",build:"ng build",test:"ng test",lint:"ng lint",e2e:"ng e2e",postinstall:"ng build --prod --base-href --output-hashing none  --build-optimizer=false"},bin:{"chat21-web-widget":"./bin/chat21-web-widget"},dependencies:{"@angular/animations":"^5.0.2","@angular/common":"^5.0.2","@angular/compiler":"^5.0.2","@angular/core":"^5.0.2","@angular/forms":"^5.0.2","@angular/http":"^5.0.2","@angular/platform-browser":"^5.0.2","@angular/platform-browser-dynamic":"^5.0.2","@angular/router":"^5.0.2","angular-2-local-storage":"^1.0.1","angular-linky":"^1.2.2","angular-resize-event":"^0.4.4","angular2-moment":"^1.8.0","angular2-uuid":"^1.1.1","classlist.js":"^1.1.20150312","core-js":"^2.5.1","custom-event-polyfill":"^1.0.6",firebase:"^5.8.5","humanize-duration-ts":"^2.0.0",intl:"^1.2.5",ionicons:"^3.0.0",less:"^2.7.3","material-design-icons":"^3.0.1",rxjs:"^5.4.2","zone.js":"^0.8.14","@angular/cli":"^1.7.1","@angular/compiler-cli":"^5.0.2",typescript:"~2.4.2","@types/node":"^8.0.58","@types/jasmine":"2.8.2","@types/jasminewd2":"~2.0.2","ts-node":"~3.3.0"},devDependencies:{"@angular/language-service":"^5.0.2",codelyzer:"~4.0.1","jasmine-core":"~2.8.0","jasmine-spec-reporter":"~4.2.1",karma:"~1.7.0","karma-chrome-launcher":"~2.2.0","karma-cli":"~1.0.1","karma-coverage-istanbul-reporter":"^1.2.1","karma-jasmine":"~1.1.0","karma-jasmine-html-reporter":"^0.2.2",protractor:"~5.2.0",tslint:"~5.8.0"}}},Jnfr:function(t,n){function e(t){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+t+"'.")})}e.keys=function(){return[]},e.resolve=e,t.exports=e,e.id="Jnfr"},uslO:function(t,n,e){var l={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-nz":"dyB6","./en-nz.js":"dyB6","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};function o(t){return e(i(t))}function i(t){var n=l[t];if(!(n+1))throw new Error("Cannot find module '"+t+"'.");return n}o.keys=function(){return Object.keys(l)},o.resolve=i,t.exports=o,o.id="uslO"},x35b:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=e("WT6e"),o={production:!0,version:e("7YgM").version,remoteConfig:!1,firebase:{apiKey:"AIzaSyDWMsqHBKmWVT7mWiSqBfRpS5U8YwTl7H0",authDomain:"chat-v2-dev.firebaseapp.com",databaseURL:"https://chat-v2-dev.firebaseio.com",projectId:"chat-v2-dev",storageBucket:"chat-v2-dev.appspot.com",messagingSenderId:"77360455507"},apiUrl:"https://api.tiledesk.com/v1/",tenant:"tilechat",defaultLang:"en",shemaVersion:"1"},i=e("ItHS"),r=function(){function t(t){this.http=t,this.appConfig=o}return t.prototype.loadAppConfig=function(){var t=this;return this.http.get(this.appConfig.remoteConfigUrl).toPromise().then(function(n){t.appConfig.firebase=n}).catch(function(t){})},t.prototype.getConfig=function(){return this.appConfig},t}(),a=function(t){return function(){if(o.remoteConfig)return t.loadAppConfig()}},s=function(){return function(){}}(),u=e("4zOZ"),c=(e("fvZC"),e("PJh5")),d=(e("FKXc"),"Oggi"),p="Ieri",g=["Luned\xec","Marted\xec","Mercoled\xec","Gioved\xec","Venerd\xec","Sabato","Domenica"],h=100,m=150,f=250,b="https://firebasestorage.googleapis.com/v0/b/chat-v2-dev.appspot.com/o/",v="/assets/images/avatar_bot_tiledesk.svg",w="/assets/images/avatar_male_tiledesk.svg";function x(t){var n,e=new Date(t),l=new Date,o="";return l.getFullYear()!==e.getFullYear()?o=e.getDay()+"/"+e.getMonth()+"/"+e.getFullYear():l.getMonth()!==e.getMonth()?o=e.getDay()+"/"+e.getMonth()+"/"+e.getFullYear():l.getDay()===e.getDay()?o=d:l.getDay()-e.getDay()==1?o=p:(n=e.getDay(),o=g[n]),o}function k(){try{return"localStorage"in window&&null!==window.localStorage}catch(t){return!1}}function y(){try{return"sessionStorage"in window&&null!==window.sessionStorage}catch(t){return!1}}function C(t){return t&&(t=P(t)),t}function O(t,n){return t.findIndex(function(t){return t.uid===n})}function _(t){var n=t.split("popup=")[1];return!!n&&!!n.startsWith("true")}function M(t,n,e){var l=this.strip_tags(n),o=screen.width/2-300,i=screen.height/2-300,r=t.open(l,"_blank","fullscreen=1, titlebar=0, toolbar=no, location=0, status=0, menubar=0, scrollbars=0, resizable=0, width=600, height=600, top="+i+", left="+o);t.focus&&r.focus()}function P(t){return t=(t=(t=(t=(t=t.replace(/&/g,"&amp;")).replace(/>/g,"&gt;")).replace(/</g,"&lt;")).replace(/"/g,"&quot;")).replace(/'/g,"&#039;")}function E(t){return t.replace(/<.*?>/g,"").trim()}function S(t){return t?t.replace(/[\n\r]/g,"<br>"):t}function I(t){var n="";t&&t.split(" ").forEach(function(t){t.trim().length>1&&n.length<3&&(n+=t.substring(0,1).toUpperCase())});return n}function L(t){var n=["#fba76f","#80d066","#73cdd0","#ecd074","#6fb1e4","#f98bae"],e=0;if(t){var l=t.charCodeAt(t.length-1);e=Math.round(l%n.length)}return n[e]}function T(t,n){return c.locale(t.navigator.language),c.unix(n).fromNow()}function A(t){return/Android|iPhone/i.test(t.navigator.userAgent)}function R(t,n){var e=t;if(t.indexOf("#")>-1)t=t.replace("#",""),e="rgba("+parseInt(t.substring(0,2),16)+","+parseInt(t.substring(2,4),16)+","+parseInt(t.substring(4,6),16)+","+n/100+")";else if(t.indexOf("rgba")>-1){e="rgba("+(l=t.split(","))[0].substring(5)+","+l[1]+","+l[2]+","+n/100+")"}else if(t.indexOf("rgb(")>-1){var l;e="rgba("+(l=t.split(","))[0].substring(4)+","+l[1]+","+l[2].substring(0,l[2].length-1)+","+n/100+")"}return e}function N(t,n){var e=t.location.href;n=n.replace(/[\[\]]/g,"\\$&");var l=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)").exec(e);return l?l[2]?"false"===l[2]||"0"===l[2]?"false":decodeURIComponent(l[2].replace(/\+/g," ")):"true":null}function F(t,n){return void 0===n&&(n="asc"),function(e,l){if(!e.hasOwnProperty(t)||!l.hasOwnProperty(t))return 0;var o="string"==typeof e[t]?e[t].toUpperCase():e[t],i="string"==typeof l[t]?l[t].toUpperCase():l[t],r=0;return o>i?r=1:o<i&&(r=-1),"desc"===n?-1*r:r}}function z(t){return b+"profiles%2F"+t+"%2Fthumb_photo.jpg?alt=media"}function D(t){var n=t;if("string"!=typeof t)return n=JSON.stringify(t);if(t)switch(n.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case null:return!1;default:return n}}function B(t,n){return t.map(function(t){return t[n]}).map(function(t,n,e){return e.indexOf(t)===n&&n}).filter(function(n){return t[n]}).map(function(n){return t[n]})}function U(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}var Z=function(){function t(){this.obsObjChanged=new u.a(null),this.obsIsOpen=new u.a(null),this.BASE_LOCATION="https://widget.tiledesk.com/v2",this.POWERED_BY='<a tabindex="-1" target="_blank" href="http://www.tiledesk.com/">Powered by <b>TileDesk</b></a>',this.DEFAULT_LOGO_CHAT="/assets/images/tiledesk_logo_white_small.png",this.WIDGET_TITLE="TileDesk",this.getParameterByName=N,this.convertColorToRGBA=R,this.availableAgents=[],this.isLogout=!1,this.availableAgentsStatus=!1,this.firstOpen=!0,this.autoplay_activated=!0}return t.prototype.initDefafultParameters=function(){this.globalsParameters={},this.filterSystemMsg=!0;var t=window;window.frameElement&&"parent"===window.frameElement.getAttribute("tiledesk_context")&&(t=window.parent);var n=N(window,"windowcontext");null!==n&&"window.parent"===n&&(t=window.parent),this.windowContext=t,this.baseLocation=this.BASE_LOCATION,this.autoStart=!0,this.isShown=!0,this.isOpen=!1,this.startFromHome=!0,this.isOpenPrechatForm=!0,this.isOpenStartRating=!1,this.projectid="",this.preChatForm=!1,this.align="right",this.calloutTimer=-1,this.calloutTitle="",this.calloutMsg="",this.userFullname="",this.userEmail="",this.widgetTitle=this.WIDGET_TITLE,this.hideHeaderCloseButton=!1,this.fullscreenMode=!1,this.themeColor=R("#2a6ac1",100),this.themeForegroundColor=R("#ffffff",100),this.showWidgetNameInConversation=!1,this.allowTranscriptDownload=!1,this.poweredBy=this.POWERED_BY,this.logoChat=this.BASE_LOCATION+this.DEFAULT_LOGO_CHAT,this.marginX="20px",this.marginY="20px",this.isLogEnabled=!1,this.filterByRequester=!1,this.persistence="local",this.showWaitTime=!0,this.showAvailableAgents=!0,this.showLogoutOption=!0,this.offline_msg=this.LABEL_FIRST_MSG_NO_AGENTS,this.online_msg=this.LABEL_FIRST_MSG,this.hideAttachButton=!1,this.showMicButton=!1,this.showResetConversation=!1,this.start_hidden_message="__start",this.tenant=o.tenant,this.channelType="group",this.default_settings={},this.isMobile=!1,this.isLogged=!1,this.isLogoutEnabled=!0,this.BUILD_VERSION="v."+o.version,this.filterSystemMsg=!0,this.isSoundActive=!0,this.conversationsBadge=0,this.activeConversation="",this.isOpenMenuOptions=!1,this.signInWithCustomToken=!1,this.displayEyeCatcherCard="none",this.supportMode=!0},t.prototype.initialize=function(){this.createDefaultSettingsObject(),this.setParameter("isMobile",A(this.windowContext)),this.setParameter("attributes",this.attributes)},t.prototype.createDefaultSettingsObject=function(){this.default_settings={tenant:this.tenant,recipientId:this.recipientId,projectid:this.projectid,widgetTitle:this.widgetTitle,poweredBy:this.poweredBy,userId:this.userId,userEmail:this.userEmail,userPassword:this.userPassword,userFullname:this.userFullname,preChatForm:this.preChatForm,isOpen:this.isOpen,channelType:this.channelType,lang:this.lang,calloutTimer:this.calloutTimer,align:this.align,showWidgetNameInConversation:this.showWidgetNameInConversation,welcomeMsg:this.welcomeMsg,calloutTitle:this.calloutTitle,calloutMsg:this.calloutMsg,fullscreenMode:this.fullscreenMode,hideHeaderCloseButton:this.hideHeaderCloseButton,themeColor:this.themeColor,themeForegroundColor:this.themeForegroundColor,allowTranscriptDownload:this.allowTranscriptDownload,userToken:this.userToken,autoStart:this.autoStart,isShown:this.isShown,startFromHome:this.startFromHome,logoChat:this.logoChat,welcomeTitle:this.welcomeTitle,marginX:this.marginX,marginY:this.marginY,isLogEnabled:this.isLogEnabled,filterByRequester:this.filterByRequester,persistence:this.persistence,showWaitTime:this.showWaitTime,showAvailableAgents:this.showAvailableAgents,showLogoutOption:this.showLogoutOption,hideAttachButton:this.hideAttachButton,showMicButton:this.showMicButton,showResetConversation:this.showResetConversation}},t.prototype.setColorWithGradient=function(){this.themeColor50=R(this.themeColor,30),this.colorGradient="linear-gradient("+this.themeColor+", "+this.themeColor50+")"},t.prototype.setIsOpen=function(t){this.isOpen=t,this.obsIsOpen.next(t)},t.prototype.setParameter=function(t,n){this[t]=n;var e={key:t,val:n};this.obsObjChanged.next(e)},t.prototype.setAttributeParameter=function(t,n){this.attributes[t]=n,this.setParameter("attributes",this.attributes)},t.prototype.wdLog=function(t){this.isLogEnabled&&console.log(t.toString())},t}(),V=e("yviF"),Y=(e("dih4"),e("NOoU")),j=function(){function t(t,n,e){this.http=t,this.g=n,this.appConfigService=e,this.obsLoggedUser=new u.a(null),this.API_URL=e.getConfig().apiUrl}return t.prototype.onAuthStateChanged=function(){var t=this;this.unsubscribe=V.auth().onAuthStateChanged(function(n){n?(t.g.wdLog(["PASSO CURRENT USER"]),t.user=V.auth().currentUser,t.g.wdLog(["onAuthStateChanged"]),t.getIdToken(),t.obsLoggedUser.next(V.auth().currentUser)):(t.g.wdLog(["NO CURRENT USER PASSO NULL"]),!1===t.g.isLogout&&t.obsLoggedUser.next(0))})},t.prototype.getCurrentUser=function(){return this.g.wdLog([" ---------------- getCurrentUser ---------------- "]),V.auth().currentUser},t.prototype.reloadCurrentUser=function(){return V.auth().currentUser.reload()},t.prototype.getIdToken=function(){this.g.wdLog(["getIdToken CURRENT USER"]);var t=this;V.auth().currentUser.getIdToken().then(function(n){return t.token=n,t.g.wdLog(["******************** ---------------\x3e idToken.",n]),n}).catch(function(t){console.error("idToken ERROR: ",t)})},t.prototype.getToken=function(){return this.token},t.prototype.authenticateFirebaseAnonymously=function(){var t=this;V.auth().setPersistence(this.getFirebaseAuthPersistence()).then(function(){V.auth().signInAnonymously().then(function(n){t.user=n,t.unsubscribe&&t.unsubscribe(),t.g.wdLog(["authenticateFirebaseAnonymously"]),t.getIdToken(),t.obsLoggedUser.next(V.auth().currentUser)}).catch(function(n){var e=n.code,l=n.message;t.unsubscribe&&t.unsubscribe(),t.obsLoggedUser.next(0),t.g.wdLog(["signInAnonymously ERROR: ",e,l])})}).catch(function(t){console.error("Error setting firebase auth persistence",t)})},t.prototype.authenticateFirebaseCustomToken=function(t){this.g.wdLog(["authService.authenticateFirebaseCustomToken",t]);var n=this;V.auth().setPersistence(this.getFirebaseAuthPersistence()).then(function(){V.auth().signInWithCustomToken(t).then(function(t){n.g.wdLog(["USER by signInWithCustomToken: ",t]),n.user=t,n.unsubscribe&&n.unsubscribe(),n.obsLoggedUser.next(V.auth().currentUser),n.getToken()}).catch(function(t){var e=t.code,l=t.message;n.unsubscribe&&n.unsubscribe(),n.obsLoggedUser.next(0),n.g.wdLog(["authenticateFirebaseCustomToken ERROR: ",e,l])})}).catch(function(t){console.error("Error setting firebase auth persistence",t)})},t.prototype.authenticateFirebaseWithEmailAndPassword=function(t,n){var e=this;V.auth().setPersistence(this.getFirebaseAuthPersistence()).then(function(){V.auth().signInWithEmailAndPassword(t,n).then(function(t){e.user=t,e.unsubscribe&&e.unsubscribe(),e.obsLoggedUser.next(V.auth().currentUser),e.g.wdLog(["authenticateFirebaseWithEmailAndPassword"]),e.getIdToken()}).catch(function(t){var n=t.code,l=t.message;e.unsubscribe&&e.unsubscribe(),e.obsLoggedUser.next(0),e.g.wdLog(["authenticateFirebaseWithEmailAndPassword ERROR: ",n,l])})}).catch(function(t){console.error("Error setting firebase auth persistence",t)})},t.prototype.signOut=function(t){var n=this;return V.auth().signOut().then(function(e){n.g.wdLog(["Nice, signOut OK!",e]),n.hideIFrame(),n.unsubscribe&&n.unsubscribe(),t?n.obsLoggedUser.next(t):n.obsLoggedUser.next(-1)}).catch(function(t){n.g.wdLog(["Something went wrong in signOut:",t.message]),n.obsLoggedUser.next(V.auth().currentUser)})},t.prototype.hideIFrame=function(){var t=this.g.windowContext.document.getElementById("tiledesk-container");t&&(t.classList.add("closed"),t.classList.remove("open"))},t.prototype.decode=function(t,n){var e=this.API_URL+n+"/jwt/decode",l=new Y.d;return l.append("Content-Type","application/json"),l.append("Authorization","JWT "+t),this.http.post(e,null,{headers:l}).map(function(t){return t.json()})},t.prototype.createFirebaseToken=function(t,n){var e=this.API_URL+n+"/firebase/createtoken",l=new Y.d;return l.append("Content-Type","application/json"),l.append("Authorization","JWT "+t),this.http.post(e,null,{headers:l}).map(function(t){return t.json()})},t.prototype.getFirebaseAuthPersistence=function(){return"local"===this.g.persistence?k()?V.auth.Auth.Persistence.LOCAL:V.auth.Auth.Persistence.NONE:"session"===this.g.persistence?y()?V.auth.Auth.Persistence.SESSION:V.auth.Auth.Persistence.NONE:"none"===this.g.persistence?V.auth.Auth.Persistence.NONE:k()?V.auth.Auth.Persistence.LOCAL:V.auth.Auth.Persistence.NONE},t}(),X=(e("hZls"),function(){function t(t,n,e,l,o,i,r,a,s,u,c,d,p,g,h){this.uid=t,this.language=n,this.recipient=e,this.recipient_fullname=l,this.sender=o,this.sender_fullname=i,this.status=r,this.metadata=a,this.text=s,this.timestamp=u,this.headerDate=c,this.type=d,this.attributes=p,this.channel_type=g,this.projectid=h}return t.prototype.asFirebaseMessage=function(){return{language:this.language,recipient:this.recipient,recipient_fullname:this.recipient_fullname,sender:this.sender,sender_fullname:this.sender_fullname,status:this.status,metadata:this.metadata,text:this.text,timestamp:V.database.ServerValue.TIMESTAMP,type:this.type,attributes:this.attributes,channel_type:this.channel_type,projectid:this.projectid}},t}()),W=function(){function t(t,n,e,l){if(this.http=t,this.auth=n,this.g=e,this.appConfigService=l,this.API_URL=this.appConfigService.getConfig().apiUrl,!this.API_URL)throw new Error("apiUrl is not defined");this.obsCloseConversation=new u.a(null)}return t.prototype.httpSendRate=function(t,n,e){var l=new Y.d;l.append("Accept","application/json"),l.append("Content-Type","application/json");var o=new Y.g({headers:l}),i=this.API_URL+"chat/support/tilechat/requests/"+e+"/rate?token=chat21-secret-orgAa,&rating="+t+"&rating_message="+n;this.g.wdLog(["2 url: ",i]);var r={rating:t,rating_message:n};return this.g.wdLog(["------------------\x3e options: ",o]),this.g.wdLog(["------------------\x3e body: ",JSON.stringify(r)]),this.http.post(i,JSON.stringify(r),o).map(function(t){return t.json()})},t.prototype.setOsservable=function(t){this.g.wdLog(["------------------\x3e setOsservable: ",t]),this.obsCloseConversation.next(t)},t.prototype._dowloadTranscript=function(t){var n=this.API_URL+"public/requests/"+t+"/messages.html";this.g.windowContext.open(n,"_blank")},t}(),H=function(){function t(t){this.g=t}return t.prototype.getItem=function(t){var n="tiledesk_widget_";try{n+="sv"+o.shemaVersion+"_"}catch(t){console.error("Error environment.shemaVersion",t)}var e=n+this.g.projectid+"_"+t;return"local"===this.g.persistence?k()?localStorage.getItem(e):(console.warn("localStorage is not defind. Storage disabled"),null):"session"===this.g.persistence?y()?sessionStorage.getItem(e):(console.warn("sessionStorage is not defind. Storage disabled"),null):"none"===this.g.persistence?null:k()?localStorage.getItem(e):(console.warn("localStorage is not defind. Storage disabled"),null)},t.prototype.setItem=function(t,n){this.removeItem(t);var e="tiledesk_widget_";try{e+="sv"+o.shemaVersion+"_"}catch(t){console.error("Error environment.shemaVersion",t)}var l=e+this.g.projectid+"_"+t;return"local"===this.g.persistence?k()?localStorage.setItem(l,n):(console.warn("localStorage is not defind. Storage disabled"),null):"session"===this.g.persistence?y()?sessionStorage.setItem(l,n):(console.warn("sessionStorage is not defind. Storage disabled"),null):"none"===this.g.persistence?null:k()?localStorage.setItem(l,n):(console.warn("localStorage is not defind. Storage disabled"),null)},t.prototype.removeItem=function(t){var n="tiledesk_widget_";try{n+="sv"+o.shemaVersion+"_"}catch(t){console.error("Error environment.shemaVersion",t)}var e=n+this.g.projectid+"_"+t;return this.removeItemForKey(e)},t.prototype.removeItemForKey=function(t){return"local"===this.g.persistence?k()?localStorage.removeItem(t):(console.warn("localStorage is not defind. Storage disabled"),null):"session"===this.g.persistence?y()?sessionStorage.removeItem(t):(console.warn("sessionStorage is not defind. Storage disabled"),null):"none"===this.g.persistence?null:k()?localStorage.removeItem(t):(console.warn("localStorage is not defind. Storage disabled"),null)},t.prototype.clear=function(){var t="tiledesk_widget_";try{t+="sv"+o.shemaVersion+"_"}catch(t){console.error("Error environment.shemaVersion",t)}for(var n=t+this.g.projectid,e=[],l=0;l<localStorage.length;l++){var i=localStorage.key(l);-1!==i.indexOf(n)&&e.push(i)}for(l=0;l<e.length;l++)this.removeItemForKey(e[l])},t}(),G=function(){function t(t,n,e,l,o){if(this.starRatingWidgetService=t,this.http=n,this.g=e,this.storageService=l,this.appConfigService=o,this.messages=[],this.filterSystemMsg=!0,this.AGENT_NAME=null,this.API_URL=o.getConfig().apiUrl,!this.API_URL)throw new Error("apiUrl is not defined");this.obsAdded=new u.a(null)}return t.prototype.sendMessageService=function(t){var n=new Y.d;n.append("Accept","application/json"),n.append("Content-Type","application/json");var e="";t.session=this.sessionUid,t.agent="supporto-anagrafe-vcqvkb",t.recipient="bari_bot",t.recipient_fullname="Ernesto",this.g.start_hidden_message="__start";try{e=this.g.customAttributes.proxy_url,t.agent=this.g.customAttributes.agent,t.recipient=this.g.customAttributes.agent,t.recipient_fullname=this.g.customAttributes.recipient_fullname,this.g.start_hidden_message=this.g.customAttributes.start_hidden_message}catch(t){console.log("> Error is handled attributes: ",t)}return this.AGENT_NAME&&(t.agent=this.AGENT_NAME),this.g.wdLog(["------------------\x3e body: ",JSON.stringify(t)]),this.http.post(e,JSON.stringify(t),{headers:n}).map(function(t){return t.json()})},t.prototype.onMessageReceived=function(t){var n=t;this.g.wdLog(["added msg*****",t.key,JSON.stringify(n)]);var e=S(n.text);if(this.checkMessage(n)){var l=x(n.timestamp);try{if(n.attributes){var o=n.attributes.changeAgentTo;o&&(this.AGENT_NAME=o,this.storageService.setItem("agent_name",o)),console.log("changeAgentTo::: "+o)}}catch(t){console.error("Error is: ",t)}var i=new X(t.key,n.language,n.recipient,n.recipient_fullname,n.sender,n.sender_fullname,n.status,n.metadata,e,n.timestamp,l,n.type,n.attributes,n.channel_type,n.progectId);i.sender_urlImage=this.getUrlImgProfile(n.sender),this.triggerGetImageUrlThumb(i),this.addMessage(i)}},t.prototype.getUrlImgProfile=function(t){var n=this.g.baseLocation;return t&&"system"!==t?"error"===t?n+w:z(t):n+v},t.prototype.triggerGetImageUrlThumb=function(t){try{var n=this.g.windowContext,e=new CustomEvent("getImageUrlThumb",{detail:{message:t}});n.tiledesk&&n.tiledesk.tiledeskroot&&n.tiledesk.tiledeskroot.dispatchEvent(e)}catch(t){console.error("Error triggering triggerAfterSendMessageEvent",t)}},t.prototype.addMessage=function(t){if(t&&t.sender===this.senderId){var n=O(this.messages,t.key);n<0&&(this.g.wdLog(["--------\x3e ADD MSG IMG",n,t]),t.status=m.toString(),this.messages.push(t))}else t.status=m.toString(),this.g.wdLog(["--------\x3e ADD MSG",t.status]),this.messages.push(t);this.messages.sort(this.compareValues("timestamp","asc")),this.obsAdded.next(t);try{this.storageService.setItem("messages",JSON.stringify(this.messages))}catch(t){console.log("> Error is handled attributes: ",t)}},t.prototype.initialize=function(t,n,e){this.g.wdLog(["***** initialize MessagingService *****"]),this.messages=[],this.channel_type=e,this.senderId=t,this.tenant=n,this.urlMessages="/apps/"+this.tenant+"/users/"+this.senderId+"/messages/",this.urlConversation="/apps/"+this.tenant+"/users/"+this.senderId+"/conversations/"},t.prototype.connect=function(t){this.sessionUid=this.storageService.getItem("sessionUid"),this.sessionUid||(this.sessionUid=U(),this.storageService.setItem("sessionUid",this.sessionUid)),this.g.wdLog(["***** connect MessagingService *****"]);try{this.storageService.getItem("messages")&&(this.messages=JSON.parse(this.storageService.getItem("messages")))}catch(t){console.log("> Error is :",t)}try{console.log("> GET agent_name storageService :"),this.storageService.getItem("agent_name")&&(this.AGENT_NAME=this.storageService.getItem("agent_name"),console.log(">this.AGENT_NAME :",this.AGENT_NAME))}catch(t){console.log("> Error is :",t)}},t.prototype.checkMessages=function(t){},t.prototype.subscriptionsToMessages=function(){},t.prototype.checkMessage=function(t){return(""!==t.text.trim()||"text"!==t.type)&&((!this.filterSystemMsg||!t.attributes||"info"!==t.attributes.subtype)&&(t&&t.sender===this.senderId&&t.type,!0))},t.prototype.compareValues=function(t,n){return void 0===n&&(n="asc"),function(e,l){if(!e.hasOwnProperty(t)||!l.hasOwnProperty(t))return 0;var o="string"==typeof e[t]?e[t].toUpperCase():e[t],i="string"==typeof l[t]?l[t].toUpperCase():l[t],r=0;return o>i?r=1:o<i&&(r=-1),"desc"===n?-1*r:r}},t.prototype.setStatusMessage=function(t,n){if(t.val().status<200){var e=t.val();if(e.sender!==this.senderId&&e.status<200){var l="/apps/"+this.tenant+"/users/"+this.senderId+"/messages/"+n+"/"+t.key;this.g.wdLog(["AGGIORNO STATO MESSAGGIO",l])}}},t.prototype.checkWritingMessages=function(t,n){},t.prototype.checkIsBot=function(t){this.g.wdLog(["snapshot.numChildren() *****",t.numChildren()]);var n=this,e=null;return 0===t.numChildren()?"":(t.forEach(function(t){var l=t.key;n.g.wdLog(["childSnapshot *****",l]),l.startsWith("bot_")&&(e=l)}),n.g.wdLog(["RESP:",e]),e)},t.prototype.sendMessage=function(t,n,e,l,o,i,r,a,s){this.g.wdLog(["SEND MESSAGE: ",n,t,i]),this.g.wdLog(["metadata:: ",l.button]);var u=U();r.uid=u,l.uid&&(u=l.uid,r.uid=l.uid),t&&""!==t||(t="Guest"),i&&""!==i||(i="Guest");var c=this,d=(new Date).valueOf(),p=navigator.language,g=x(d),h=new X(u,p,o,i,this.senderId,t,"",l,n,d,g,e,r,s,a);h.text!==this.g.start_hidden_message&&this.addMessage(h);try{if(h.text===this.g.start_hidden_message&&this.messages.length>0)return}catch(t){console.log("> Error is handled attributes: ",t)}return this.sendMessageService(h).subscribe(function(t){console.log("RESPONSE\xb0\xb0\xb0\xb0\xb0\xb0\xb0\xb0\xb0\xb0\xb0\xb0\xb0\xb0\xb0\xb0\xb0\xb0\xb0\xb0 ",t),c.onMessageReceived(t)},function(t){console.error("::onMessageReceivement",t)},function(){console.log("onMessageReceivement")}),h},t.prototype.checkRemoveConversation=function(t){var n=this;this.conversationsRef.on("child_removed",function(e){n.g.wdLog(["child_removed ***********************",e.key,e.val()]),e.key===t&&n.closeConversation()})},t.prototype.closeConversation=function(){this.g.wdLog(["MessagingService::closeConversation","conversation closed"]),this.starRatingWidgetService.setOsservable(!0)},t.prototype.generateUidConversation=function(t){return"conversazione_bari_bot"},t.prototype.controlOfMessage=function(t){return this.g.wdLog(["controlOfMessage **************",t]),""!==(t=t.replace(/(\r\n|\n|\r)/gm,"")).trim()?t:""},t.prototype.updateMetadataMessage=function(t,n){n.status=!0},t.prototype.unsubscribeAllReferences=function(){this.g.wdLog(["--------\x3e messagesRef.off"]);try{this.messagesRef&&this.messagesRef.off()}catch(t){console.log("> Error is: ",t)}},t}(),K=(e("cWbj"),function(){function t(t){this.g=t}return t.prototype.initialize=function(t,n,e){this.listContacts=[];var l=this;this.tenant=n,this.conversationId=e,this.userId=t,this.urlNodeFirebaseGroup="/apps/"+this.tenant+"/users/"+this.userId+"/groups/"+this.conversationId+"/members";V.database().ref(this.urlNodeFirebaseGroup).once("value").then(function(t){l.getProfileUser(t)})},t.prototype.getProfileUser=function(t){var n=this;t.forEach(function(t){n.urlNodeFirebaseContact="/apps/"+n.tenant+"/contacts/"+t.key;V.database().ref(n.urlNodeFirebaseContact).once("value").then(function(t){if(t.val()){var e=t.val();n.listContacts.push(e)}})})},t.prototype.getContactProfile=function(t){return this.listContacts.filter(function(n){return n.uid===t})[0]},t.prototype.profileImage=function(t,n){if(t&&""!==t){var e=void 0;return e="thumb"===n?"/profiles/"+t+"/thumb_photo.jpg":"/profiles/"+t+"/photo.jpg",V.storage().ref().child(e).getDownloadURL()}},t}()),q={LABEL_PLACEHOLDER:"type your message..",LABEL_START_NW_CONV:"New conversation",LABEL_FIRST_MSG:"Describe shortly your problem, you will be contacted by an agent.",LABEL_FIRST_MSG_NO_AGENTS:"\ud83e\udd14 All operators are offline at the moment. You can anyway describe your problem. It will be assigned to the support team who will answer you as soon as possible.",LABEL_SELECT_TOPIC:"Select a topic",LABEL_COMPLETE_FORM:"Complete the form to start a conversation with the next available agent.",LABEL_FIELD_NAME:"Name",LABEL_ERROR_FIELD_NAME:"Required field (minimum 5 characters).",LABEL_FIELD_EMAIL:"Email",LABEL_ERROR_FIELD_EMAIL:"Enter a valid email address.",LABEL_WRITING:"is writing...",AGENT_NOT_AVAILABLE:" - Offline",AGENT_AVAILABLE:" - Online",GUEST_LABEL:"Guest",ALL_AGENTS_OFFLINE_LABEL:"All operators are offline at the moment",LABEL_LOADING:"Loading...",CALLOUT_TITLE_PLACEHOLDER:"Need Help?",CALLOUT_MSG_PLACEHOLDER:"Click here and start chatting with us!",CUSTOMER_SATISFACTION:"Customer satisfaction",YOUR_OPINION_ON_OUR_CUSTOMER_SERVICE:"your opinion on our customer service",DOWNLOAD_TRANSCRIPT:"Download transcript",BACK:"Back",YOUR_RATING:"your rating",WRITE_YOUR_OPINION:"Write your opinion ... (optional)",SUBMIT:"Submit",THANK_YOU_FOR_YOUR_EVALUATION:"Thank you for your evaluation",YOUR_RATING_HAS_BEEN_RECEIVED:"your rating has been received",ALERT_LEAVE_CHAT:"Do you want to leave the chat?",YES:"Yes",NO:"No",BUTTON_CLOSE_TO_ICON:"Minimize chat",BUTTON_EDIT_PROFILE:"Update profile",BUTTON_DOWNLOAD_TRANSCRIPT:"Download transcript",BUTTON_RESET_CONVERSATION:"Reset conversation",RATE_CHAT:"Rate chat",WELCOME_TITLE:"Hi, welcome to Tiledesk",WELCOME_MSG:"How can we help?",WELCOME:"Welcome",OPTIONS:"options",SOUND_OFF:"sound off",SOUND_ON:"sound on",LOGOUT:"logout",CLOSE:"close",PREV_CONVERSATIONS:"Your conversations",YOU:"You",SHOW_ALL_CONV:"show all",START_A_CONVERSATION:"Start a conversation",NO_CONVERSATION:"No conversation",SEE_PREVIOUS:"see previous",WAITING_TIME_FOUND:"The team typically replies in ",WAITING_TIME_NOT_FOUND:"The team will reply as soon as possible",CLOSED:"CLOSED"},$={LABEL_PLACEHOLDER:"Scrivi la tua domanda...",LABEL_START_NW_CONV:"Nuova conversazione",LABEL_FIRST_MSG:"Descrivi sinteticamente il tuo problema, ti metteremo in contatto con un operatore specializzato.",LABEL_FIRST_MSG_NO_AGENTS:"\ud83e\udd14 Tutti gli operatori sono offline al momento.Puoi comunque descrivere il tuo problema. Sar\xe0 assegnato al team di supporto che ti risponder\xe0 appena possibile.",LABEL_SELECT_TOPIC:"Seleziona un argomento",LABEL_COMPLETE_FORM:"Completa il form per iniziare una conversazione con il prossimo agente disponibile.",LABEL_FIELD_NAME:"Nome",LABEL_ERROR_FIELD_NAME:"Nome richiesto (minimo 2 caratteri).",LABEL_FIELD_EMAIL:"Email",LABEL_ERROR_FIELD_EMAIL:"Inserisci un indirizzo email valido.",LABEL_WRITING:"sta scrivendo...",AGENT_NOT_AVAILABLE:" - Offline",AGENT_AVAILABLE:" - Online",GUEST_LABEL:"Ospite",ALL_AGENTS_OFFLINE_LABEL:"Tutti gli operatori sono offline al momento",LABEL_LOADING:"Caricamento...",CALLOUT_TITLE_PLACEHOLDER:"Bisogno di aiuto?",CALLOUT_MSG_PLACEHOLDER:"Clicca qui e inizia a chattare con noi!",CUSTOMER_SATISFACTION:"Valutazione servizio",YOUR_OPINION_ON_OUR_CUSTOMER_SERVICE:"il tuo giudizio sul nostro servizio clienti",DOWNLOAD_TRANSCRIPT:"Scarica transcript",BACK:"Indietro",YOUR_RATING:"il tuo voto",WRITE_YOUR_OPINION:"Scrivi la tua opinione...(opzionale)",SUBMIT:"Invia",THANK_YOU_FOR_YOUR_EVALUATION:"Grazie per la tua valutazione",YOUR_RATING_HAS_BEEN_RECEIVED:"il tuo voto \xe8 stato ricevuto",ALERT_LEAVE_CHAT:"Vuoi abbandonare la conversazione?",YES:"Yes",NO:"No",BUTTON_CLOSE_TO_ICON:"Riduci a icona la chat",BUTTON_EDIT_PROFILE:"Modifica profilo",BUTTON_DOWNLOAD_TRANSCRIPT:"Scarica transcript",BUTTON_RESET_CONVERSATION:"Azzera conversazione",RATE_CHAT:"Valuta chat",WELCOME_TITLE:"Ciao, benvenuto su Tiledesk",WELCOME_MSG:"Come possiamo aiutarti?",OPTIONS:"opzioni",WELCOME:"Benvenuto",SOUND_OFF:"suono spento",SOUND_ON:"suono acceso",LOGOUT:"disconnetti",CLOSE:"Chiudi",PREV_CONVERSATIONS:"Le tue conversazioni",YOU:"Tu",SHOW_ALL_CONV:"vedi tutte",START_A_CONVERSATION:"Inizia una conversazione",NO_CONVERSATION:"Nessuna conversazione attiva",SEE_PREVIOUS:"vedi precedenti",WAITING_TIME_FOUND:"Il team tipicamente risponde in ",WAITING_TIME_NOT_FOUND:"Vi risponderemo appena possibile",CLOSED:"CHIUSA"},J=function(){function t(){this.defaultLanguage="it"}return t.prototype.translate=function(t){this.setLanguage(t.windowContext,t.lang),t.LABEL_PLACEHOLDER=this.translateForKey("LABEL_PLACEHOLDER"),t.LABEL_START_NW_CONV=this.translateForKey("LABEL_START_NW_CONV"),t.LABEL_FIRST_MSG=this.translateForKey("LABEL_FIRST_MSG"),t.LABEL_FIRST_MSG_NO_AGENTS=this.translateForKey("LABEL_FIRST_MSG_NO_AGENTS"),t.LABEL_SELECT_TOPIC=this.translateForKey("LABEL_SELECT_TOPIC"),t.LABEL_COMPLETE_FORM=this.translateForKey("LABEL_COMPLETE_FORM"),t.LABEL_FIELD_NAME=this.translateForKey("LABEL_FIELD_NAME"),t.LABEL_ERROR_FIELD_NAME=this.translateForKey("LABEL_ERROR_FIELD_NAME"),t.LABEL_FIELD_EMAIL=this.translateForKey("LABEL_FIELD_EMAIL"),t.LABEL_ERROR_FIELD_EMAIL=this.translateForKey("LABEL_ERROR_FIELD_EMAIL"),t.LABEL_WRITING=this.translateForKey("LABEL_WRITING"),t.AGENT_NOT_AVAILABLE=this.translateForKey("AGENT_NOT_AVAILABLE"),t.AGENT_AVAILABLE=this.translateForKey("AGENT_AVAILABLE"),t.GUEST_LABEL=this.translateForKey("GUEST_LABEL"),t.ALL_AGENTS_OFFLINE_LABEL=this.translateForKey("ALL_AGENTS_OFFLINE_LABEL"),t.CALLOUT_TITLE_PLACEHOLDER=this.translateForKey("CALLOUT_TITLE_PLACEHOLDER"),t.CALLOUT_MSG_PLACEHOLDER=this.translateForKey("CALLOUT_MSG_PLACEHOLDER"),t.ALERT_LEAVE_CHAT=this.translateForKey("ALERT_LEAVE_CHAT"),t.YES=this.translateForKey("YES"),t.NO=this.translateForKey("NO"),t.BUTTON_CLOSE_TO_ICON=this.translateForKey("BUTTON_CLOSE_TO_ICON"),t.BUTTON_EDIT_PROFILE=this.translateForKey("BUTTON_EDIT_PROFILE"),t.BUTTON_DOWNLOAD_TRANSCRIPT=this.translateForKey("BUTTON_DOWNLOAD_TRANSCRIPT"),t.BUTTON_RESET_CONVERSATION=this.translateForKey("BUTTON_RESET_CONVERSATION"),t.RATE_CHAT=this.translateForKey("RATE_CHAT"),t.WELCOME_TITLE=this.translateForKey("WELCOME_TITLE"),t.WELCOME_MSG=this.translateForKey("WELCOME_MSG"),t.WELCOME=this.translateForKey("WELCOME"),t.OPTIONS=this.translateForKey("OPTIONS"),t.SOUND_ON=this.translateForKey("SOUND_ON"),t.SOUND_OFF=this.translateForKey("SOUND_OFF"),t.LOGOUT=this.translateForKey("LOGOUT"),t.CUSTOMER_SATISFACTION=this.translateForKey("CUSTOMER_SATISFACTION"),t.YOUR_OPINION_ON_OUR_CUSTOMER_SERVICE=this.translateForKey("YOUR_OPINION_ON_OUR_CUSTOMER_SERVICE"),t.DOWNLOAD_TRANSCRIPT=this.translateForKey("DOWNLOAD_TRANSCRIPT"),t.YOUR_RATING=this.translateForKey("YOUR_RATING"),t.WRITE_YOUR_OPINION=this.translateForKey("WRITE_YOUR_OPINION"),t.SUBMIT=this.translateForKey("SUBMIT"),t.THANK_YOU_FOR_YOUR_EVALUATION=this.translateForKey("THANK_YOU_FOR_YOUR_EVALUATION"),t.YOUR_RATING_HAS_BEEN_RECEIVED=this.translateForKey("YOUR_RATING_HAS_BEEN_RECEIVED"),t.CLOSE=this.translateForKey("CLOSE"),t.PREV_CONVERSATIONS=this.translateForKey("PREV_CONVERSATIONS"),t.YOU=this.translateForKey("YOU"),t.SHOW_ALL_CONV=this.translateForKey("SHOW_ALL_CONV"),t.START_A_CONVERSATION=this.translateForKey("START_A_CONVERSATION"),t.NO_CONVERSATION=this.translateForKey("NO_CONVERSATION"),t.SEE_PREVIOUS=this.translateForKey("SEE_PREVIOUS"),t.WAITING_TIME_FOUND=this.translateForKey("WAITING_TIME_FOUND"),t.WAITING_TIME_NOT_FOUND=this.translateForKey("WAITING_TIME_NOT_FOUND"),t.CLOSED=this.translateForKey("CLOSED"),t.welcomeTitle||(t.welcomeTitle=t.WELCOME_TITLE),t.welcomeMsg||(t.welcomeMsg=t.WELCOME_MSG)},t.prototype.getBrowserLanguage=function(t){var n=t.navigator.language;return n||void 0},t.prototype.setLanguage=function(t,n){n?this.language=n:void 0!==this.getBrowserLanguage(t)?this.language=this.getBrowserLanguage(t):this.language=this.defaultLanguage,this.language=this.language.substring(0,2),this.getLanguageObject(this.language)},t.prototype.getLanguageObject=function(t){this.translations="en"===t?q:"it"===t?$:q},t.prototype.translateForKey=function(t){return this.translations[t]?this.translations[t]:""},t.prototype.getLanguage=function(){return this.language},t.prototype.getDefaultLanguage=function(){return this.defaultLanguage},t}(),Q=function(){function t(t){this.g=t}return t.prototype.initialize=function(){this.urlNodeFirebase="/apps/"+this.g.tenant},t.prototype.userIsOnline=function(t){},t.prototype.lastOnlineForUser=function(t){},t.prototype.getTimeLastConnection=function(t){},t.prototype.lastOnlineRefForUser=function(t){var n=this.urlNodeFirebase+"/presence/"+t+"/lastOnline";return V.database().ref().child(n)},t.prototype.onlineRefForUser=function(t){var n=this.urlNodeFirebase+"/presence/"+t+"/connections";return this.g.wdLog(["onlineRefForUser *****",n]),V.database().ref().child(n)},t.prototype.setupMyPresence=function(t){var n=this;n.g.wdLog(["setupMyPresence: ",t]),this.myConnectionsRef=this.onlineRefForUser(t),this.lastOnlineRef=this.lastOnlineRefForUser(t);V.database().ref("/.info/connected").on("value",function(t){if(t.val())if(n.myConnectionsRef){n.myConnectionsRef.push(!0).onDisconnect().remove();var e=(new Date).valueOf();n.lastOnlineRef.onDisconnect().set(e)}else n.g.wdLog(["This is an error. self.deviceConnectionRef already set. Cannot be set again."])})},t.prototype.goOffline=function(){this.g.wdLog(["goOffline.",this.myConnectionsRef]),this.removeLastOnlineReference()},t.prototype.removeLastOnlineReference=function(){this.lastOnlineRef&&(this.lastOnlineRef.off(),this.lastOnlineRef.remove()),this.lastOnlineRef=null},t}(),tt=e("YaPU"),nt=(e("owTz"),e("xgm2"),e("MDfR"),function(){function t(t,n){if(this.http=t,this.appConfigService=n,this.API_URL=n.getConfig().apiUrl,!this.API_URL)throw new Error("apiUrl is not defined")}return t.prototype.getAvailableAgents=function(t){if(!t)return tt.a.throw("projectId is not valid");if(null==t)return tt.a.throw("projectId is null");if(void 0===t)return tt.a.throw("projectId is undefined");var n=this.API_URL+"projects/"+t+"/users/availables",e=new Y.d;return e.append("Content-Type","application/json"),this.http.get(n,{headers:e}).map(function(t){return t.json()})},t.prototype.getAvailableAgentsForDepartment=function(t,n){if(!t)return tt.a.throw("projectId is not valid");if(null==t)return tt.a.throw("projectId is null");if(void 0===t)return tt.a.throw("projectId is undefined");var e=this.API_URL+t+"/departments/"+n+"/operators/",l=new Y.d;return l.append("Content-Type","application/json"),this.http.get(e,{headers:l}).map(function(t){return t.json()})},t}()),et=e("3Z5w"),lt=function(){function t(t,n,e){this.http=t,this.storageService=n,this.appConfigService=e,this.obsSettingsService=new u.a(null)}return t.prototype.initWidgetParamiters=function(t,n){this.globals=t,this.el=n,this.globals.initDefafultParameters();try{this.setProjectId()}catch(t){return void this.globals.wdLog(["error projectid: ",t.name])}this.setMainParametersFromSettings(t),this.setParameters(null)},t.prototype.setProjectId=function(){try{(t=this.globals.windowContext.tiledeskSettings.projectid)&&(this.globals.projectid=t)}catch(t){}try{(t=this.el.nativeElement.getAttribute("projectid"))&&(this.globals.projectid=t)}catch(t){this.globals.wdLog(["2 > Error is handled: ",t.name])}try{var t;(t=N(this.globals.windowContext,"tiledesk_projectid"))&&(this.globals.projectid=t)}catch(t){this.globals.wdLog(["3 > Error is handled: ",t.name])}return this.globals.projectid},t.prototype.setMainParametersFromSettings=function(t){var n;try{var e=this.globals.windowContext.tiledesk.getBaseLocation();this.globals.wdLog(["1 > baseLocation: ",e]),"undefined"!=typeof e&&(this.globals.baseLocation=e)}catch(t){}try{n=this.globals.windowContext.tiledeskSettings}catch(t){}try{var l=n.persistence;"undefined"!=typeof l&&(this.globals.persistence=l)}catch(t){}try{var o=n.userToken;"undefined"!=typeof o&&(this.globals.userToken=o)}catch(t){}try{var i=n.userId;"undefined"!=typeof i&&(this.globals.userId=i)}catch(t){}try{var r=n.filterByRequester;this.globals.wdLog(["1 > filterByRequester: ",r]),"undefined"!=typeof r&&(this.globals.filterByRequester=!0===r)}catch(t){}try{var a=n.isLogEnabled;"undefined"!=typeof a&&(this.globals.isLogEnabled=!0===a)}catch(t){}},t.prototype.setParameters=function(t){null!==t&&(this.globals.wdLog(["----\x3e setParameters",t]),this.setVariablesFromService(this.globals,t)),this.setVariablesFromSettings(this.globals),this.setVariablesFromAttributeHtml(this.globals,this.el),this.setVariablesFromUrlParameters(this.globals),this.setVariableFromStorage(this.globals),this.globals.setColorWithGradient(),this.setCssIframe(),this.obsSettingsService.next(!0)},t.prototype.setCssIframe=function(){var t=this.globals.windowContext.document.getElementById("tiledeskiframe");t&&("left"===this.globals.align?t.style.left=this.globals.marginX:"right"===this.globals.align&&(t.style.right=this.globals.marginX),t.style.bottom=this.globals.marginY,!0===this.globals.fullscreenMode&&(t.style.left=0,t.style.right=0,t.style.top=0,t.style.bottom=0,t.style.width="100%",t.style.height="100%",t.style.maxHeight="none",t.style.maxWidth="none"))},t.prototype.setVariablesFromService=function(t,n){this.globals=t;try{var e=n.departments;"undefined"!=typeof e&&this.initDepartments(e)}catch(t){this.initDepartments(null),this.globals.wdLog(["> Error is departments: ",t])}try{var l=n.user_available;"undefined"!=typeof l&&(t.wdLog(["user_available ::::",l]),this.setAvailableAgentsStatus(l))}catch(t){this.setAvailableAgentsStatus(null),this.globals.wdLog(["> Error is departments: ",t])}try{var o=n.project.widget;if("undefined"!=typeof o)for(var i=0,r=Object.keys(o);i<r.length;i++){var a=r[i];if("align"===a&&"left"===o[a])t.windowContext.document.getElementById("tiledeskiframe").style.left="0";o[a]&&null!==o[a]&&"online_msg"!==a&&(t[a]=D(o[a]))}}catch(t){this.globals.wdLog(["> Error is handled: ",t.name])}},t.prototype.setVariablesFromSettings=function(t){var n=t.windowContext;if(n.tiledesk){var e,l=n.tiledesk.getBaseLocation();void 0!==l&&(t.baseLocation=l);var o=n.tiledeskSettings;if(void 0!==(e=o.tenant)&&(t.tenant=e),void 0!==(e=o.recipientId)&&(t.recipientId=e),void 0!==(e=o.widgetTitle)&&(t.widgetTitle=e),void 0!==(e=o.poweredBy)&&(t.poweredBy=e),void 0!==(e=o.userEmail)&&(t.userEmail=e),void 0!==(e=o.userPassword)&&(t.userPassword=e),void 0!==(e=o.userFullname)&&(t.userFullname=e),void 0!==(e=o.preChatForm)&&(t.preChatForm=!0===e),void 0!==(e=o.isOpen)&&(t.isOpen=!0===e),void 0!==(e=o.channelType)&&(t.channelType=e),e=o.lang,et.a&&(t.lang=e),void 0!==(e=o.align))if(t.align=e,"left"===t.align)n.document.getElementById("tiledeskiframe").style.left="0";void 0!==(e=o.marginX)&&(t.marginX=e),void 0!==(e=o.marginY)&&(t.marginY=e),void 0!==(e=o.calloutTimer)&&(t.calloutTimer=e),void 0!==(e=o.calloutTitle)&&(t.calloutTitle=e),void 0!==(e=o.calloutMsg)&&(t.calloutMsg=e),void 0!==(e=o.fullscreenMode)&&(t.fullscreenMode=e),void 0!==(e=o.hideHeaderCloseButton)&&(t.hideHeaderCloseButton=e),void 0!==(e=o.themeColor)&&(t.themeColor=R(e,100)),void 0!==(e=o.themeForegroundColor)&&(t.themeForegroundColor=R(e,100)),void 0!==(e=o.allowTranscriptDownload)&&(t.allowTranscriptDownload=!0===e),void 0!==(e=o.startFromHome)&&(t.startFromHome=!0===e),void 0!==(e=o.logoChat)&&(t.logoChat=e),void 0!==(e=o.welcomeTitle)&&(t.welcomeTitle=e),void 0!==(e=o.welcomeMsg)&&(t.welcomeMsg=e),void 0!==(e=o.autoStart)&&(t.autoStart=!0===e),void 0!==(e=o.isShown)&&(t.isShown=!0===e),void 0!==(e=o.filterByRequester)&&(t.filterByRequester=!0===e),void 0!==(e=o.showWaitTime)&&(t.showWaitTime=!0===e),void 0!==(e=o.showAvailableAgents)&&(t.showAvailableAgents=!0===e),void 0!==(e=o.showLogoutOption)&&(t.showLogoutOption=!0===e),void 0!==(e=o.showWidgetNameInConversation)&&(t.showWidgetNameInConversation=!0===e),void 0!==(e=o.customAttributes)&&(this.globals.wdLog(["40 - customAttributes:: ",e]),t.customAttributes=e),void 0!==(e=o.hideAttachButton)&&(t.hideAttachButton=!0===e),void 0!==(e=o.showMicButton)&&(t.showMicButton=!0===e),void 0!==(e=o.showResetConversation)&&(t.showResetConversation=!0===e),void 0!==(e=o.showResetConversation)&&(t.showResetConversation=!0===e)}},t.prototype.setVariablesFromAttributeHtml=function(t,n){var e;null!==(e=n.nativeElement.getAttribute("tenant"))&&(this.globals.tenant=e),null!==(e=n.nativeElement.getAttribute("recipientId"))&&(this.globals.recipientId=e),null!==(e=n.nativeElement.getAttribute("widgetTitle"))&&(this.globals.widgetTitle=e),null!==(e=n.nativeElement.getAttribute("poweredBy"))&&(this.globals.poweredBy=e),null!==(e=n.nativeElement.getAttribute("userId"))&&(this.globals.userId=e),null!==(e=n.nativeElement.getAttribute("userEmail"))&&(this.globals.userEmail=e),null!==(e=n.nativeElement.getAttribute("userPassword"))&&(this.globals.userPassword=e),null!==(e=n.nativeElement.getAttribute("userFullname"))&&(this.globals.userFullname=e),null!==(e=n.nativeElement.getAttribute("preChatForm"))&&(this.globals.preChatForm=!0===e),null!==(e=n.nativeElement.getAttribute("isOpen"))&&(this.globals.isOpen=!0===e),null!==(e=n.nativeElement.getAttribute("channelType"))&&(this.globals.channelType=e),null!==(e=n.nativeElement.getAttribute("lang"))&&(this.globals.lang=e),null!==(e=n.nativeElement.getAttribute("align"))&&(this.globals.align=e),null!==(e=n.nativeElement.getAttribute("marginX"))&&(this.globals.marginX=e),null!==(e=n.nativeElement.getAttribute("marginY"))&&(this.globals.marginY=e),null!==(e=n.nativeElement.getAttribute("calloutTimer"))&&(this.globals.calloutTimer=e),null!==(e=n.nativeElement.getAttribute("welcomeMsg"))&&(this.globals.welcomeMsg=e),null!==(e=n.nativeElement.getAttribute("calloutTitle"))&&(this.globals.calloutTitle=e),null!==(e=n.nativeElement.getAttribute("calloutMsg"))&&(this.globals.calloutMsg=e),null!==(e=n.nativeElement.getAttribute("startFromHome"))&&(this.globals.startFromHome=!0===e),null!==(e=n.nativeElement.getAttribute("logoChat"))&&(this.globals.logoChat=e),null!==(e=n.nativeElement.getAttribute("welcomeTitle"))&&(this.globals.welcomeTitle=e),null!==(e=n.nativeElement.getAttribute("autoStart"))&&(this.globals.autoStart=!0===e),null!==(e=n.nativeElement.getAttribute("isShown"))&&(this.globals.isShown=!0===e),null!==(e=n.nativeElement.getAttribute("isLogoutEnabled"))&&(this.globals.isLogoutEnabled=!0===e),null!==(e=n.nativeElement.getAttribute("isLogEnabled"))&&(this.globals.isLogEnabled=!0===e),null!==(e=n.nativeElement.getAttribute("filterByRequester"))&&(this.globals.filterByRequester=!0===e),null!==(e=n.nativeElement.getAttribute("hideAttachButton"))&&(this.globals.hideAttachButton=!0===e),null!==(e=n.nativeElement.getAttribute("showMicButton"))&&(this.globals.showMicButton=!0===e),null!==(e=n.nativeElement.getAttribute("showResetConversation"))&&(this.globals.showResetConversation=!0===e)},t.prototype.setVariablesFromUrlParameters=function(t){var n,e=t.windowContext;((n=N(e,"tiledesk_tenant"))&&(t.tenant=D(n)),(n=N(e,"tiledesk_recipientid"))&&(t.recipientId=D(n)),(n=N(e,"tiledesk_widgetTitle"))&&(t.widgetTitle=D(n)),(n=N(e,"tiledesk_poweredby"))&&(t.poweredBy=D(n)),(n=N(e,"tiledesk_userid"))&&(t.userId=D(n)),(n=N(e,"tiledesk_useremail"))&&(t.userEmail=D(n)),(n=N(e,"tiledesk_userpassword"))&&(t.userPassword=D(n)),(n=N(e,"tiledesk_userfullname"))&&(t.userFullname=D(n)),(n=N(e,"tiledesk_channeltype"))&&(t.channelType=D(n)),n=N(e,"tiledesk_lang"),(n=N(e,"tiledesk_callouttimer"))&&(t.calloutTimer=Number(n)),n=N(e,"tiledesk_align"))&&(t.align=D(n),"left"===t.align&&(e.document.getElementById("tiledeskiframe").style.left="0"));if((n=N(e,"tiledesk_marginX"))&&(t.marginX=D(n)),(n=N(e,"tiledesk_marginY"))&&(t.marginY=D(n)),(n=N(e,"tiledesk_welcomeMsg"))&&(t.welcomeMsg=D(n)),(n=N(e,"tiledesk_callouttitle"))&&(t.calloutTitle=D(n)),(n=N(e,"tiledesk_calloutmsg"))&&(t.calloutMsg=D(n)),(n=N(e,"tiledesk_hideHeaderCloseButton"))&&(t.hideHeaderCloseButton=D(n)),n=N(e,"tiledesk_themecolor")){var l=D(n);t.themeColor=R(l,100)}if(n=N(e,"tiledesk_themeforegroundcolor")){var o=D(n);t.themeForegroundColor=R(o,100)}(n=N(e,"tiledesk_logoChat"))&&(t.logoChat=D(n)),(n=N(e,"tiledesk_welcomeTitle"))&&(t.welcomeTitle=D(n)),(n=N(e,"tiledesk_autoStart"))&&(t.autoStart=D(n)),(n=N(e,"tiledesk_isShown"))&&(t.isShown=D(n)),(n=N(e,"tiledesk_isLogEnabled"))&&(t.isLogEnabled=D(n)),t.wdLog(["isLogEnabled: ",t.isLogEnabled]),(n=N(e,"tiledesk_filterByRequester"))&&(t.filterByRequester=D(n)),(n=N(e,"tiledesk_showWaitTime"))&&(t.showWaitTime=D(n)),(n=N(e,"tiledesk_showAvailableAgents"))&&(t.showAvailableAgents=D(n)),(n=N(e,"tiledesk_showLogoutOption"))&&(t.showLogoutOption=D(n)),(n=N(e,"tiledesk_prechatform"))&&(t.preChatForm=D(n)),(n=N(e,"tiledesk_isopen"))&&(t.isOpen=D(n)),(n=N(e,"tiledesk_allowtranscriptdownload"))&&(t.allowTranscriptDownload=D(n)),(n=N(e,"tiledesk_showWidgetNameInConversation"))&&(t.showWidgetNameInConversation=D(n)),(n=N(e,"tiledesk_startFromHome"))&&(t.startFromHome=D(n)),(n=N(e,"tiledesk_fullscreenMode"))&&(t.fullscreenMode=D(n)),(n=N(e,"tiledesk_customAttributes"))&&(t.customAttributes=D(n),this.globals.wdLog(["globals.customAttributes: "+t.customAttributes])),(n=N(e,"tiledesk_hideAttachButton"))&&(t.hideAttachButton=D(n)),(n=N(e,"tiledesk_showMicButton"))&&(t.showMicButton=D(n)),(n=N(e,"tiledesk_showResetConversation"))&&(t.showResetConversation=D(n))},t.prototype.setVariableFromStorage=function(t){this.globals.wdLog(["setVariableFromStorage :::::::: SET VARIABLE ----------\x3e",Object.keys(t)]);for(var n=0,e=Object.keys(t);n<e.length;n++){var l=e[n],o=this.storageService.getItem(l);this.globals.wdLog(["SET globals KEY ----------\x3e",l]),this.globals.wdLog(["SET globals VAL ----------\x3e",o]),o&&null!==o&&(t[l]=D(o))}},t.prototype.initDepartments=function(t){var n=this;if(this.globals.setParameter("departmentSelected",null),this.globals.setParameter("departmentDefault",null),this.globals.wdLog(["departments ::::",t]),null!==t)if(this.globals.departments=t,1===t.length){var e=t[0];this.globals.wdLog(["DEPARTMENT FIRST ::::",t[0]]),this.globals.setParameter("departmentDefault",t[0]),e&&e.online_msg&&""!==e.online_msg&&(this.globals.online_msg=e.online_msg),e&&e.offline_msg&&""!==e.offline_msg&&(this.globals.offline_msg=e.offline_msg),this.setDepartment(t[0])}else{if(!(t.length>1))return void this.globals.wdLog(["DEPARTMENT DEFAULT NON RESTITUISCE RISULTATI ::::"]);this.globals.wdLog(["CI SONO + DI 2 DIPARTIMENTI ::::",t[0]]);var l=0;t.forEach(function(e){if(!0===e.default)return e&&e.online_msg&&""!==e.online_msg&&(n.globals.online_msg=e.online_msg),e&&e.offline_msg&&""!==e.offline_msg&&(n.globals.offline_msg=e.offline_msg),void t.splice(l,1);l++}),this.globals.setParameter("departmentDefault",t[0]),this.setDepartment(t[0])}},t.prototype.setDepartment=function(t){this.globals.wdLog(["setDepartment: ",JSON.stringify(t)]),this.globals.setParameter("departmentSelected",t);var n=JSON.parse(this.storageService.getItem("attributes"));n?(n.departmentId=t._id,n.departmentName=t.name):n={departmentId:t._id,departmentName:t.name},this.globals.wdLog(["setAttributes: ",JSON.stringify(n)]),this.globals.setParameter("departmentSelected",t),this.globals.setParameter("attributes",n),this.storageService.setItem("attributes",JSON.stringify(n))},t.prototype.setAvailableAgentsStatus=function(t){if(this.globals.setParameter("availableAgentsStatus",!1),null!==t&&t.length>0){var n=[];t.forEach(function(t,e){t.imageurl=z(t.id),n.push(t)}),this.globals.availableAgents=n,this.globals.setParameter("availableAgentsStatus",!0)}},t.prototype.getProjectParametersById=function(t){var n=this.appConfigService.getConfig().apiUrl+t+"/widgets",e=new Y.d;return e.append("Content-Type","application/json"),this.http.get(n,{headers:e}).map(function(t){return t.json()})},t}(),ot=function(){function t(t,n){this.g=t,this.storageService=n}return t.prototype.initialize=function(){this.setGlobalsSubscription()},t.prototype.setGlobalsSubscription=function(){var t=this;this.g.obsObjChanged.subscribe(function(n){n&&t.setVariable(n.key,n.val)})},t.prototype.setVariable=function(t,n){JSON.stringify(n);this.storageService.setItem(t,D(n)),this.g.wdLog(["SET key: ",t," - VAL: ",D(n)," ----------\x3e",JSON.stringify(n)])},t}(),it=function(){function t(t,n,e,l,o,i,r,a,s,c,d,p,g){if(this.el=t,this.ngZone=n,this.g=e,this.translatorService=l,this.authService=o,this.messagingService=i,this.contactService=r,this.chatPresenceHandlerService=a,this.agentAvailabilityService=s,this.storageService=c,this.appConfigService=d,this.globalSettingsService=p,this.settingsSaverService=g,this.isInitialized=!1,this.isOpenHome=!0,this.isOpenConversation=!1,this.isOpenAllConversation=!1,this.isOpenSelectionDepartment=!1,this.isOpenStartRating=!1,this.departments=[],this.detectIfIsMobile=A,this.isPopupUrl=_,this.popupUrl=M,this.strip_tags=E,this.subscriptions=[],this.IMG_PROFILE_SUPPORT="https://user-images.githubusercontent.com/32448495/39111365-214552a0-46d5-11e8-9878-e5c804adfe6a.png",!d.getConfig().firebase||"CHANGEIT"===d.getConfig().firebase.apiKey)throw new Error("firebase config is not defined. Please create your firebase-config.json. See the Chat21-Web_widget Installation Page");V.initializeApp(d.getConfig().firebase),this.obsEndRenderMessage=new u.a(null)}return t.prototype.ngOnInit=function(){this.g.wdLog(" ---------------- ngOnInit ---------------- "),this.initWidgetParamiters()},t.prototype.ngAfterViewInit=function(){},t.prototype.setLoginSubscription=function(){var t=this,n=this,e=this.authService.obsLoggedUser.subscribe(function(e){t.ngZone.run(function(){var t=n.g.autoStart;-2===e?(n.setAuthentication(),n.initAll()):-1===e?(n.g.setParameter("isLogged",!1),n.g.setParameter("isShown",!1),n.g.isLogout=!0,n.g.wdLog(["LOGOUT : ",e]),n.triggerIsLoggedInEvent()):0===e?(n.g.wdLog(["NO CURRENT USER AUTENTICATE: "]),n.g.setParameter("isLogged",!1),!0===t&&n.setAuthentication(),n.triggerIsLoggedInEvent()):e&&(n.g.wdLog(["USER AUTENTICATE: ",e.uid]),n.g.setParameter("senderId",e.uid),n.g.setParameter("isLogged",!0),n.g.setParameter("isShown",!0),n.g.setParameter("attributes",n.setAttributesFromStorageService()),n.g.wdLog([" this.g.senderId",e.uid]),n.startNwConversation(),n.startUI(),n.triggerIsLoggedInEvent(),n.g.wdLog([" 1 - IMPOSTO STATO CONNESSO UTENTE "]),n.chatPresenceHandlerService.setupMyPresence(e.uid))})});this.subscriptions.push(e),this.authService.onAuthStateChanged()},t.prototype.initWidgetParamiters=function(){var t=this,n=this,e=this.globalSettingsService.obsSettingsService.subscribe(function(e){t.ngZone.run(function(){e&&(n.initAll(),n.setLoginSubscription())})});this.subscriptions.push(e),this.globalSettingsService.initWidgetParamiters(this.g,this.el)},t.prototype.initAll=function(){this.translatorService.translate(this.g);var t=this.setAttributesFromStorageService();t&&(this.g.attributes=t),this.settingsSaverService.initialize(),this.g.initialize(),this.g.wdLog([" ---------------- A1 ---------------- "]),this.removeFirebasewebsocketFromLocalStorage(),this.triggerLoadParamsEvent(),this.addComponentToWindow(this.ngZone),this.initLauncherButton(),this.chatPresenceHandlerService.initialize()},t.prototype.initLauncherButton=function(){this.isInitialized=!0,this.marginBottom=+this.g.marginY+70},t.prototype.removeFirebasewebsocketFromLocalStorage=function(){this.g.wdLog([" ---------------- A1 ---------------- "]),k()&&localStorage.removeItem("firebase:previous_websocket_failure")},t.prototype.setAttributesFromStorageService=function(){var t=navigator.userAgent,n=this.g.projectid,e=this.g.userEmail,l=this.g.userFullname,o=this.g.senderId,i={};try{i=JSON.parse(this.storageService.getItem("attributes"))}catch(t){this.g.wdLog(["> Error is: ",t])}i||null!==i||(i={}),t&&(i.client=t),location.href&&(i.sourcePage=location.href),n&&(i.projectId=n),e&&(i.userEmail=e),l&&(i.userFullname=l),o&&(i.requester_id=o);try{i.payload=this.g.customAttributes.payload}catch(t){this.g.wdLog(["> Error is handled payload: ",t])}return i},t.prototype.setAuthentication=function(){var t=this.g.userEmail,n=this.g.userPassword,e=this.g.userId,l=this.g.userToken;if(t&&n)this.g.wdLog([" ---------------- 10 ---------------- "]),this.authService.authenticateFirebaseWithEmailAndPassword(t,n);else if(e)this.g.wdLog([" ---------------- 11 ---------------- "]),this.g.wdLog(["this.userId:: ",e]),this.g.senderId=e,this.g.setParameter("senderId",e),this.g.setParameter("isLogged",!0),this.g.setParameter("attributes",this.setAttributesFromStorageService()),this.startNwConversation(),this.startUI(),this.g.wdLog([" 11 - IMPOSTO STATO CONNESSO UTENTE "]);else if(l)this.g.wdLog([" ---------------- 12 ---------------- "]),this.g.wdLog(["this.g.userToken:: ",l]),this.authService.authenticateFirebaseCustomToken(l);else if(this.authService.getCurrentUser()){this.g.wdLog([" ---------------- 13 ---------------- "]);var o=this.authService.getCurrentUser();this.g.wdLog([" ---------------- 13 ---------------- "]),this.g.senderId=o.uid,this.g.setParameter("senderId",o.uid),this.g.setParameter("isLogged",!0),this.g.setParameter("attributes",this.setAttributesFromStorageService()),this.startNwConversation(),this.startUI(),this.g.wdLog([" 13 - IMPOSTO STATO CONNESSO UTENTE "]),this.chatPresenceHandlerService.setupMyPresence(o.uid)}else this.g.wdLog([" ---------------- 14 ---------------- "]),this.g.wdLog([" authenticateFirebaseAnonymously"]),this.authService.authenticateFirebaseAnonymously()},t.prototype.startUI=function(){var t=this;this.g.wdLog([" ============ startUI ==============="]);var n=this.g.departments,e=this.g.attributes,l=this.g.preChatForm;if(this.isOpenHome=!0,this.isOpenConversation=!1,this.g.setParameter("isOpenPrechatForm",!1),this.isOpenSelectionDepartment=!1,this.isOpenAllConversation=!1,this.g.startFromHome)this.isOpenConversation=!1,this.g.setParameter("isOpenPrechatForm",!1),this.isOpenSelectionDepartment=!1;else if(!l||e&&e.userFullname&&e.userEmail){this.g.setParameter("isOpenPrechatForm",!1),this.isOpenConversation=!1,this.isOpenSelectionDepartment=!1;try{n.length>1?this.isOpenSelectionDepartment=!0:this.isOpenConversation=!0}catch(t){this.isOpenConversation=!0,this.g.wdLog(["> Error is: ",t])}}else this.g.setParameter("isOpenPrechatForm",!0),this.isOpenConversation=!1,this.isOpenSelectionDepartment=!1,n.length>1&&(this.isOpenSelectionDepartment=!0);this.triggerOnViewInit(),setTimeout(function(){var n=t.g.windowContext.document.getElementById("tiledesk-container");n&&(n.style.display="block")},500)},t.prototype.addComponentToWindow=function(t){var n=this.g.windowContext;n.tiledesk&&(n.tiledesk.angularcomponent={component:this,ngZone:t},n.tiledesk.setUserInfo=function(e){t.run(function(){n.tiledesk.angularcomponent.component.setUserInfo(e)})},n.tiledesk.signInWithCustomToken=function(e){t.run(function(){n.tiledesk.angularcomponent.component.signInWithCustomToken(e)})},n.tiledesk.signInAnonymous=function(){t.run(function(){n.tiledesk.angularcomponent.component.signInAnonymous()})},n.tiledesk.show=function(){t.run(function(){n.tiledesk.angularcomponent.component.showAllWidget()})},n.tiledesk.hide=function(){t.run(function(){n.tiledesk.angularcomponent.component.hideAllWidget()})},n.tiledesk.close=function(){t.run(function(){n.tiledesk.angularcomponent.component.f21_close()})},n.tiledesk.open=function(){t.run(function(){n.tiledesk.angularcomponent.component.f21_open()})},n.tiledesk.setPreChatForm=function(e){t.run(function(){n.tiledesk.angularcomponent.component.setPreChatForm(e)})},n.tiledesk.sendMessage=function(e,l,o,i,r,a,s){t.run(function(){n.tiledesk.angularcomponent.component.sendMessage(e,l,o,i,r,a,s)})},n.tiledesk.endMessageRender=function(){t.run(function(){n.tiledesk.angularcomponent.component.endMessageRender()})},n.tiledesk.reInit=function(){t.run(function(){n.tiledesk.angularcomponent.component.reInit()})},n.tiledesk.logout=function(){t.run(function(){n.tiledesk.angularcomponent.component.logout()})},n.tiledesk.showCallout=function(){t.run(function(){n.tiledesk.angularcomponent.component.showCallout()})})},t.prototype.endMessageRender=function(){this.obsEndRenderMessage.next()},t.prototype.sendMessage=function(t,n,e,l,o,i,r){var a=this.messagingService.sendMessage(t,l,o,"",n,e,r,null,i);this.g.wdLog([a])},t.prototype.signInWithCustomToken=function(t){var n=this;this.g.wdLog(["signInWithCustomToken token ",t]);var e=this,l=this.g.projectid;this.authService.createFirebaseToken(t,l).subscribe(function(o){e.authService.decode(t,l).subscribe(function(t){e.g.attributes;var l=o.firebaseToken;n.g.wdLog(["firebaseToken",l]),n.g.wdLog(["resDec",t.decoded]),e.g.setParameter("signInWithCustomToken",!0),e.g.setParameter("userEmail",t.decoded.email),e.g.setParameter("userFullname",t.decoded.name),e.g.setParameter("userToken",l),e.g.setParameter("signInWithCustomToken",!0),e.g.setParameter("signInWithCustomToken",!0),e.g.setParameter("signInWithCustomToken",!0),e.authService.authenticateFirebaseCustomToken(l),e.g.setAttributeParameter("userEmail",t.decoded.email),e.g.setAttributeParameter("userFullname",t.decoded.name)},function(t){console.error("Error decoding token: ",t),e.signOut()})},function(t){console.error("Error creating firebase token: ",t),e.signOut()})},t.prototype.signInAnonymous=function(){this.g.wdLog(["signInAnonymous"]),this.authService.authenticateFirebaseAnonymously()},t.prototype.setPreChatForm=function(t){null!=t&&(this.g.setParameter("preChatForm",t),!0===t?this.storageService.setItem("preChatForm",t):this.storageService.removeItem("preChatForm"))},t.prototype.showAllWidget=function(){this.g.setParameter("isShown",!0)},t.prototype.hideAllWidget=function(){this.g.setParameter("isShown",!1)},t.prototype.f21_open=function(){var t=this.g.senderId;this.g.wdLog(["f21_open senderId: ",t]),t&&(this.g.setParameter("displayEyeCatcherCard","none"),this.g.setIsOpen(!0),this.isInitialized=!0,this.storageService.setItem("isOpen","true"),this.triggerOnOpenEvent())},t.prototype.f21_close=function(){this.g.setIsOpen(!1),this.storageService.setItem("isOpen","false"),this.triggerOnCloseEvent()},t.prototype.reInit=function(){this.storageService.clear();var t=this.g.windowContext.document.getElementsByTagName("tiledeskwidget-root")[0];this.g.windowContext.document.getElementById("tiledesk-container").remove(),t.remove(),this.g.windowContext.initWidget()},t.prototype.reInit_old=function(){var t=this;this.storageService.clear();var n=this.authService.getCurrentUser();this.authService.reloadCurrentUser().then(function(){n=t.authService.getCurrentUser(),t.initAll(),t.g.wdLog(["USER AUTENTICATE: ",n.uid]),t.g.setParameter("senderId",n.uid),t.g.setParameter("isLogged",!0),t.g.setParameter("attributes",t.setAttributesFromStorageService()),t.g.wdLog([" this.g.senderId",n.uid]),t.startNwConversation(),t.startUI(),t.g.wdLog([" 1 - IMPOSTO STATO CONNESSO UTENTE "]),t.chatPresenceHandlerService.setupMyPresence(n.uid)})},t.prototype.logout=function(){this.signOut()},t.prototype.showCallout=function(){!1===this.g.isOpen&&(this.g.setParameter("displayEyeCatcherCard","block"),this.triggerOnOpenEyeCatcherEvent())},t.prototype.ngOnDestroy=function(){this.g.wdLog(["this.subscriptions",this.subscriptions]);var t=this.g.windowContext;t.tiledesk&&(t.tiledesk.angularcomponent=null,this.g.windowContext=t),this.unsubscribe()},t.prototype.unsubscribe=function(){this.subscriptions.forEach(function(t){t.unsubscribe()}),this.subscriptions=[],this.g.wdLog(["this.subscriptions",this.subscriptions])},t.prototype.signOut=function(){this.g.wdLog(["SIGNOUT"]),this.storageService.clear(),this.chatPresenceHandlerService.goOffline(),this.authService.signOut(null)},t.prototype.generateNewUidConversation=function(){return this.g.wdLog(["generateUidConversation **************: senderId= ",this.g.senderId]),this.messagingService.generateUidConversation(this.g.senderId)},t.prototype.startNwConversation=function(){this.g.wdLog(["AppComponent::startNwConversation"]),this.g.setParameter("recipientId",this.generateNewUidConversation()),this.g.wdLog([" recipientId: ",this.g.recipientId])},t.prototype.returnCloseWidget=function(){this.isOpenConversation=!1,this.isOpenHome=!0,this.f21_close()},t.prototype.openCloseWidget=function(t){this.g.setParameter("displayEyeCatcherCard","none"),!0===this.g.isOpen?(this.triggerOnOpenEvent(),this.startUI()):this.triggerOnCloseEvent()},t.prototype.returnDepartmentSelected=function(t){t&&(this.g.wdLog(["onSelectDepartment: ",t]),this.g.setParameter("departmentSelected",t),this.startNwConversation(),this.isOpenHome=!0,this.isOpenConversation=!0,this.isOpenSelectionDepartment=!1)},t.prototype.returnCloseModalDepartment=function(){this.g.wdLog(["returnCloseModalDepartment"]),this.isOpenHome=!0,this.isOpenSelectionDepartment=!1,this.isOpenConversation=!1},t.prototype.returnPrechatFormComplete=function(){this.g.wdLog(["returnPrechatFormComplete"]),this.isOpenHome=!0,this.isOpenConversation=!0,this.g.setParameter("isOpenPrechatForm",!1)},t.prototype.returnCloseModalPrechatForm=function(){this.g.wdLog(["returnCloseModalPrechatForm"]),this.isOpenHome=!0,this.isOpenSelectionDepartment=!1,this.isOpenConversation=!1,this.g.setParameter("isOpenPrechatForm",!1)},t.prototype.returnSelectedConversation=function(t){t&&(this.conversationSelected=t,this.g.setParameter("recipientId",t.recipient),this.isOpenConversation=!0,this.g.wdLog(["onSelectConversation in APP COMPONENT: ",t]))},t.prototype.returnNewConversation=function(){var t=this;this.g.wdLog(["returnNewConversation in APP COMPONENT"]);var n=this.g.preChatForm,e=this.g.attributes,l=this.g.departments;!n||e&&e.userFullname&&e.userEmail?(this.g.setParameter("isOpenPrechatForm",!1),this.isOpenConversation=!1,this.isOpenSelectionDepartment=!1,l&&l.length>1?this.isOpenSelectionDepartment=!0:this.isOpenConversation=!0):(this.isOpenConversation=!1,this.g.setParameter("isOpenPrechatForm",!0),this.isOpenSelectionDepartment=!1,l&&l.length>1&&(this.isOpenSelectionDepartment=!0)),this.startNwConversation(),setTimeout(function(){t.isOpenHome=!1},1e3)},t.prototype.returnOpenAllConversation=function(){this.isOpenHome=!0,this.isOpenConversation=!1,this.isOpenAllConversation=!0},t.prototype.returnOpenChat=function(){this.f21_open()},t.prototype.returnCloseConversation=function(){var t=this,n=this.isOpenAllConversation;this.isOpenHome=!1,this.isOpenAllConversation=!1,setTimeout(function(){t.isOpenAllConversation=n,t.isOpenHome=!0,t.isOpenConversation=!1},200),this.startNwConversation()},t.prototype.returnCloseAllConversation=function(){var t=this,n=this.isOpenConversation;this.isOpenHome=!1,this.isOpenConversation=!1,setTimeout(function(){t.isOpenHome=!0,t.isOpenConversation=n,t.isOpenAllConversation=!1},200)},t.prototype.returnSignOut=function(){this.signOut()},t.prototype.returnCloseModalRateChat=function(){this.isOpenHome=!0,this.g.setParameter("isOpenPrechatForm",!1),this.isOpenConversation=!1,this.isOpenSelectionDepartment=!1,this.g.setParameter("isOpenStartRating",!1),this.startNwConversation()},t.prototype.returnRateChatComplete=function(){this.isOpenHome=!0,this.g.setParameter("isOpenPrechatForm",!1),this.isOpenConversation=!1,this.isOpenSelectionDepartment=!1,this.g.setParameter("isOpenStartRating",!1),this.startNwConversation()},t.prototype.returneventOpenEyeCatcher=function(t){!0===t?this.triggerOnOpenEyeCatcherEvent():this.triggerOnClosedEyeCatcherEvent()},t.prototype.triggerOnViewInit=function(){var t=this.g.default_settings,n=this.g.windowContext;this.g.wdLog([" ---------------- triggerOnInit ---------------- ",t]);var e=new CustomEvent("onInit",{detail:{default_settings:t}});n.tiledesk&&n.tiledesk.tiledeskroot?n.tiledesk.tiledeskroot.dispatchEvent(e):this.el.nativeElement.dispatchEvent(e)},t.prototype.triggerOnOpenEvent=function(){var t=this.g.default_settings;this.g.wdLog([" ---------------- triggerOnOpenEvent ---------------- ",t]);var n=new CustomEvent("onOpen",{detail:{default_settings:t}}),e=this.g.windowContext;e.tiledesk&&e.tiledesk.tiledeskroot?(e.tiledesk.tiledeskroot.dispatchEvent(n),this.g.windowContext=e):this.el.nativeElement.dispatchEvent(n)},t.prototype.triggerOnCloseEvent=function(){var t=this.g.default_settings;this.g.wdLog([" ---------------- triggerOnCloseEvent ---------------- ",t]);var n=new CustomEvent("onClose",{detail:{default_settings:t}}),e=this.g.windowContext;e.tiledesk&&e.tiledesk.tiledeskroot?(e.tiledesk.tiledeskroot.dispatchEvent(n),this.g.windowContext=e):this.el.nativeElement.dispatchEvent(n)},t.prototype.triggerOnOpenEyeCatcherEvent=function(){var t=this.g.default_settings;this.g.wdLog([" ---------------- triggerOnOpenEyeCatcherEvent ---------------- ",t]);var n=new CustomEvent("onOpenEyeCatcher",{detail:{default_settings:t}}),e=this.g.windowContext;e.tiledesk&&e.tiledesk.tiledeskroot?(e.tiledesk.tiledeskroot.dispatchEvent(n),this.g.windowContext=e):this.el.nativeElement.dispatchEvent(n)},t.prototype.triggerOnClosedEyeCatcherEvent=function(){this.g.wdLog([" ---------------- triggerOnClosedEyeCatcherEvent ---------------- "]);var t=new CustomEvent("onClosedEyeCatcher",{detail:{}}),n=this.g.windowContext;n.tiledesk&&n.tiledesk.tiledeskroot?(n.tiledesk.tiledeskroot.dispatchEvent(t),this.g.windowContext=n):this.el.nativeElement.dispatchEvent(t)},t.prototype.triggerIsLoggedInEvent=function(){this.g.wdLog([" ---------------- triggerIsLoggedInEvent ---------------- ",this.g.isLogged]);var t=new CustomEvent("isLoggedIn",{detail:this.g.isLogged}),n=this.g.windowContext;n.tiledesk&&n.tiledesk.tiledeskroot?(n.tiledesk.tiledeskroot.dispatchEvent(t),this.g.windowContext=n):this.el.nativeElement.dispatchEvent(t)},t.prototype.triggerLoadParamsEvent=function(){this.g.wdLog([" ---------------- triggerLoadParamsEvent ---------------- ",this.g.default_settings]);var t=this.g.default_settings,n=new CustomEvent("loadParams",{detail:{default_settings:t}}),e=this.g.windowContext;e.tiledesk&&e.tiledesk.tiledeskroot?(e.tiledesk.tiledeskroot.dispatchEvent(n),this.g.windowContext=e):this.el.nativeElement.dispatchEvent(n)},t}(),rt=e("Xjw4"),at=function(){function t(t,n){this.g=t,this.storageService=n,this.eventSignOut=new l.EventEmitter}return t.prototype.ngOnInit=function(){var t=this.g.themeColor;this.themeColor50=R(t,50)},t.prototype.f21_toggle_options=function(){this.g.setParameter("isOpenMenuOptions",!this.g.isOpenMenuOptions)},t.prototype.toggleSound=function(){this.g.setParameter("isSoundActive",!this.g.isSoundActive)},t.prototype.signOut=function(){this.g.setParameter("isOpenMenuOptions",!1),this.eventSignOut.emit()},t}(),st=[["#c21-menu-options[_ngcontent-%COMP%]   .modal-menu-options[_ngcontent-%COMP%]{width:auto;height:auto;min-height:40px;min-width:100px;max-width:80%;position:absolute;bottom:40px;left:5px;border-radius:3px;font-size:1.2em;line-height:normal;overflow:hidden;border:1px solid #d7d7d7;background-color:#fff;z-index:25}#c21-menu-options[_ngcontent-%COMP%]   .button-menu-options[_ngcontent-%COMP%]{position:absolute;width:auto;line-height:12px;font-size:1em;font-weight:700;color:#777;display:inline-block;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:4px;padding:0;cursor:pointer}.c21-button[_ngcontent-%COMP%]{cursor:pointer;margin:10px 0;padding:0 10px;color:#777;display:-webkit-box;display:-ms-flexbox;display:flex}.c21-button[_ngcontent-%COMP%]:hover{background-color:#f5f5f5;cursor:pointer}.label-menu-welcome[_ngcontent-%COMP%]{cursor:default;font-weight:500;margin:10px 0;padding:0 10px}#c21-options-menu[_ngcontent-%COMP%]{width:auto;height:auto;min-height:40px;min-width:100px;max-width:80%;position:absolute;z-index:10;top:40px;right:15px;border-radius:3px;font-size:1.2em;line-height:normal;overflow:hidden;border:1px solid #d7d7d7;background-color:#fff;padding:20px 0 10px}#c21-options-menu[_ngcontent-%COMP%]   .c21-header-button[_ngcontent-%COMP%]{padding:6px 10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}#c21-options-menu[_ngcontent-%COMP%]   .label-menu-item[_ngcontent-%COMP%], .label-menu-item[_ngcontent-%COMP%]{line-height:20px;position:relative;margin:0 10px}"]],ut=l["\u0275crt"]({encapsulation:0,styles:st,data:{}});function ct(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"div",[["class","label-menu-welcome"]],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,[""," ",""]))],null,function(t,n){var e=n.component;t(n,1,0,e.g.WELCOME,e.g.userFullname)})}function dt(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,10,":svg:svg",[["aria-labelledby","altIconTitle"],["height","20"],["viewBox","0 0 24 24"],["width","20"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](1,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](2,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](4,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](6,0,null,null,0,":svg:path",[["d","M4.34 2.93L2.93 4.34 7.29 8.7 7 9H3v6h4l5 5v-6.59l4.18 4.18c-.65.49-1.38.88-2.18 1.11v2.06c1.34-.3 2.57-.92 3.61-1.75l2.05 2.05 1.41-1.41L4.34 2.93zM10 15.17L7.83 13H5v-2h2.83l.88-.88L10 11.41v3.76zM19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zm-7-8l-1.88 1.88L12 7.76zm4.5 8c0-1.77-1.02-3.29-2.5-4.03v1.79l2.48 2.48c.01-.08.02-.16.02-.24z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](8,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](9,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n        "]))],function(t,n){t(n,1,0,t(n,2,0,n.component.g.themeColor))},function(t,n){t(n,9,0,n.component.g.SOUND_OFF)})}function pt(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,10,":svg:svg",[["aria-labelledby","altIconTitle"],["height","20"],["viewBox","0 0 24 24"],["width","20"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](1,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](2,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](4,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](6,0,null,null,0,":svg:path",[["d","M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](8,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](9,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n        "]))],function(t,n){t(n,1,0,t(n,2,0,n.component.g.themeColor))},function(t,n){t(n,9,0,n.component.g.SOUND_ON)})}function gt(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"span",[["class","label-menu-item"]],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,[" ",""]))],null,function(t,n){t(n,1,0,n.component.g.SOUND_OFF)})}function ht(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"span",[["class","label-menu-item"]],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,[" ",""]))],null,function(t,n){t(n,1,0,n.component.g.SOUND_ON)})}function mt(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"span",[["class","label-menu-item"]],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,[" ",""]))],null,function(t,n){t(n,1,0,n.component.g.LOGOUT)})}function ft(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,16,"div",[["class","c21-button"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.signOut()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](2,0,null,null,10,":svg:svg",[["aria-labelledby","altIconTitle"],["height","20"],["viewBox","0 0 24 24"],["width","20"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](3,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](4,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275eld"](6,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275eld"](8,0,null,null,0,":svg:path",[["d","M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275eld"](10,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](11,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,mt)),l["\u0275did"](15,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n      "]))],function(t,n){var e=n.component;t(n,3,0,t(n,4,0,e.g.themeColor)),t(n,15,0,e.g.isLogged&&!0===e.g.showLogoutOption)},function(t,n){t(n,11,0,n.component.g.LOGOUT)})}function bt(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,28,"div",[["class","modal-menu-options"]],null,null,null,null,null)),l["\u0275did"](1,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](2,{"border-top":0,"border-top-color":1}),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](4,0,null,null,23,"div",[["class",""]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n      "])),(t()(),l["\u0275ted"](-1,null,["\n      \n      "])),(t()(),l["\u0275and"](16777216,null,null,1,null,ct)),l["\u0275did"](8,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n      \n\n      "])),(t()(),l["\u0275eld"](10,0,null,null,13,"div",[["class","c21-button"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.toggleSound()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,dt)),l["\u0275did"](13,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,pt)),l["\u0275did"](16,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,gt)),l["\u0275did"](19,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,ht)),l["\u0275did"](22,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n      "])),(t()(),l["\u0275ted"](-1,null,["\n\n      "])),(t()(),l["\u0275and"](16777216,null,null,1,null,ft)),l["\u0275did"](26,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n\n  "])),(t()(),l["\u0275ted"](-1,null,["\n\n"]))],function(t,n){var e=n.component;t(n,1,0,t(n,2,0,"2.4px solid",e.themeColor50)),t(n,8,0,e.g.signInWithCustomToken&&e.g.userFullname),t(n,13,0,!e.g.isSoundActive),t(n,16,0,e.g.isSoundActive),t(n,19,0,!e.g.isSoundActive),t(n,22,0,e.g.isSoundActive),t(n,26,0,e.g.isLogged&&!0===e.g.showLogoutOption)},null)}function vt(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,19,"div",[["id","c21-menu-options"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n  "])),(t()(),l["\u0275eld"](2,0,null,null,14,"div",[["class","button-menu-options"]],null,[[null,"click"],[null,"mouseover"],[null,"mouseleave"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.f21_toggle_options()&&l);"mouseover"===n&&(l=!1!=(o.hover=!0)&&l);"mouseleave"===n&&(l=!1!=(o.hover=!1)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](4,0,null,null,11,":svg:svg",[[":xml:space","preserve"],[":xmlns:xlink","http://www.w3.org/1999/xlink"],["height","22"],["id","Livello_1"],["style","enable-background:new -113 139 24 24; border-radius: 4px;"],["version","1.0"],["viewBox","-113 139 24 24"],["width","22"],["x","0px"],["xmlns","http://www.w3.org/2000/svg"],["y","0px"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275eld"](6,0,null,null,3,":svg:path",[["class","svg-icon"],["d","M-90.7,148.6l-1.6-0.2c-0.2-0.5-0.4-1.1-0.6-1.6l0.9-1.4c0.4-0.6,0.3-1.3-0.2-1.8l-1.4-1.4\n      c-0.3-0.3-0.7-0.4-1-0.4c-0.3,0-0.6,0.1-0.8,0.2l-1.4,0.9c-0.5-0.3-1-0.5-1.6-0.7l-0.3-1.6c-0.1-0.7-0.7-1.2-1.4-1.2h-2\n      c-0.7,0-1.3,0.5-1.4,1.2l-0.3,1.6l-1.6,0.7l-1.3-0.9c-0.3-0.2-0.5-0.2-0.8-0.2c-0.4,0-0.7,0.1-1,0.4l-1.5,1.4\n      c-0.5,0.5-0.6,1.2-0.2,1.8l1,1.4c-0.3,0.5-0.5,1-0.6,1.5l-1.6,0.2c-0.7,0.1-1.2,0.7-1.2,1.4v2c0,0.7,0.5,1.3,1.2,1.4l1.6,0.2\n      c0.2,0.5,0.4,1.1,0.7,1.6l-0.9,1.3c-0.4,0.6-0.4,1.3,0.1,1.8l1.4,1.4c0.3,0.2,0.6,0.4,1,0.4c0.3,0,0.6-0.1,0.8-0.2l1.4-0.9\n      c0.5,0.2,1,0.4,1.5,0.6l0.3,1.6c0.1,0.7,0.7,1.2,1.4,1.2h2c0.7,0,1.3-0.5,1.4-1.2l0.3-1.6c0.5-0.1,1.1-0.4,1.6-0.7l1.3,0.9\n      c0.2,0.2,0.5,0.3,0.8,0.2l0,0c0.4,0,0.7-0.1,1-0.4l1.4-1.4c0.5-0.5,0.5-1.2,0.2-1.8l-0.9-1.4c0.3-0.5,0.5-1,0.6-1.6l1.6-0.2\n      c0.7-0.1,1.2-0.7,1.2-1.4v-2C-89.5,149.3-90,148.7-90.7,148.6z M-90.8,152c0,0.1,0,0.1-0.1,0.1l0,0l-2,0.3c-0.3,0.1-0.5,0.3-0.5,0.5\n      c-0.2,0.7-0.4,1.3-0.8,1.9c-0.2,0.2-0.2,0.5,0,0.7l1.2,1.6c0.1,0.1,0.1,0.1,0,0.2l-1.5,1.4h-0.2l-1.7-1.2c-0.2-0.1-0.5-0.2-0.7-0.1\n      c-0.6,0.4-1.3,0.7-2,0.9c-0.2,0-0.4,0.3-0.4,0.5l-0.3,2c0,0.1-0.1,0.1-0.2,0.1h-2c-0.1,0-0.2-0.1-0.2-0.1l-0.3-2\n      c-0.1-0.3-0.2-0.4-0.5-0.5c-0.7-0.2-1.3-0.5-2-0.8l-0.3-0.1c-0.1,0-0.3,0.1-0.3,0.1l-1.7,1.1c0,0,0,0,0,0.1c-0.1,0-0.1,0-0.1-0.1\n      l-1.5-1.4c-0.1-0.1-0.1-0.1,0-0.2l1.2-1.6c0.2-0.2,0.2-0.5,0.1-0.8c-0.4-0.6-0.6-1.3-0.9-1.9c-0.1-0.3-0.2-0.4-0.5-0.5l-2-0.4\n      l-0.1-0.1v-2c0-0.1,0-0.1,0.1-0.2l2-0.3c0.3-0.1,0.5-0.3,0.5-0.5c0.2-0.7,0.4-1.4,0.8-2c0.1-0.2,0.1-0.5-0.1-0.7l-1.2-1.6\n      c0-0.1,0-0.1,0.1-0.1l1.4-1.4h0.2l1.7,1.2c0.2,0.2,0.5,0.2,0.7,0c0.6-0.4,1.3-0.6,2-0.8c0.3-0.1,0.4-0.3,0.5-0.6l0.3-2\n      c0-0.1,0-0.1,0.1-0.1l0,0h2.1c0.1,0,0.1,0,0.1,0.1c0,0,0,0,0,0l0.3,2c0,0.2,0.2,0.4,0.5,0.5c0.7,0.2,1.4,0.5,2.1,0.9\n      c0.2,0.1,0.5,0.1,0.7-0.1l1.7-1.2c0,0,0,0,0.1,0h0.1l1.4,1.4c0.1,0.1,0.1,0.1,0,0.2l-1.2,1.7c-0.1,0.2-0.1,0.5,0,0.6\n      c0.4,0.6,0.6,1.3,0.8,2c0.1,0.2,0.3,0.4,0.5,0.5l2,0.4c0.1,0,0.1,0,0.1,0.1l0,0V152L-90.8,152z"]],null,null,null,null,null)),l["\u0275did"](7,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](8,{fill:0}),l["\u0275pod"](9,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](11,0,null,null,3,":svg:path",[["d","M-101,146.1c-2.7,0-4.9,2.2-4.8,4.9c0,2.7,2.2,4.9,4.9,4.8c2.7,0,4.8-2.2,4.8-4.9\n      C-96,148.3-98.2,146.1-101,146.1C-101,146.1-101,146.1-101,146.1z M-101,154.6c-2,0-3.7-1.6-3.7-3.6s1.6-3.6,3.7-3.6\n      s3.7,1.6,3.7,3.6l0,0C-97.3,153-99,154.6-101,154.6z"]],null,null,null,null,null)),l["\u0275did"](12,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](13,{fill:0}),l["\u0275pod"](14,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n  "])),(t()(),l["\u0275ted"](-1,null,["\n  "])),(t()(),l["\u0275ted"](-1,null,["\n  "])),(t()(),l["\u0275and"](16777216,null,null,1,null,bt)),l["\u0275did"](19,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,7,0,e.hover?t(n,8,0,e.g.themeColor):t(n,9,0,e.g.themeColor)),t(n,12,0,e.hover?t(n,13,0,e.g.themeColor):t(n,14,0,e.g.themeColor)),t(n,19,0,e.g.isOpenMenuOptions)},null)}l["\u0275ccf"]("tiledeskwidget-menu-options",at,function(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"tiledeskwidget-menu-options",[],null,null,null,vt,ut)),l["\u0275did"](1,114688,null,0,at,[Z,H],null,null)],function(t,n){t(n,1,0)},null)},{},{eventSignOut:"eventSignOut"},[]);var wt=function(){function t(t){this.g=t,this.eventNewConv=new l.EventEmitter,this.eventSelctedConv=new l.EventEmitter,this.eventClose=new l.EventEmitter,this.eventSignOut=new l.EventEmitter,this.eventOpenAllConv=new l.EventEmitter,this.welcome_summary='Ciao, mi chiamo Ernesto e sono il tuo assistente virtuale sul sito della Citt\xe0 Metropolitana di Bari. Per richiedere il mio aiuto premi il pulsante "Chiedi a Ernesto"',this.welcome_image="https://user-images.githubusercontent.com/9556761/64190907-aec3ac00-ce77-11e9-8ce7-8935e43d15cb.png",this.buttonLabel="Chiedi"}return t.prototype.ngOnInit=function(){this.g.wdLog(["ngOnInit app-home"]),this.tenant=this.g.tenant,this.colorBck="#000000";try{this.welcome_summary=this.g.customAttributes.welcome_summary,this.welcome_image=this.g.customAttributes.welcome_image,this.buttonLabel=this.g.customAttributes.button_label}catch(t){console.log("> Error is handled attributes: ",t)}!0===this.g.firstOpen&&(this.addAnimation(),this.g.firstOpen=!1)},t.prototype.returnNewConversation=function(){this.removeAnimation(),this.eventNewConv.emit()},t.prototype.returnOpenAllConversation=function(){this.removeAnimation(),this.eventOpenAllConv.emit()},t.prototype.returnSelectedConversation=function(t){t&&(this.removeAnimation(),this.eventSelctedConv.emit(t))},t.prototype.f21_close=function(){this.addAnimation(),this.eventClose.emit()},t.prototype.hideMenuOptions=function(){this.g.wdLog(["hideMenuOptions"]),this.g.setParameter("isOpenMenuOptions",!1)},t.prototype.returnSignOut=function(){this.eventSignOut.emit()},t.prototype.addAnimation=function(){try{var t=this.element.nativeElement;t&&t.classList.add("start-animation")}catch(t){console.log("> Error: ",t)}},t.prototype.removeAnimation=function(){try{var t=this.element.nativeElement;t&&t.classList.remove("start-animation")}catch(t){console.log("> Error: ",t)}},t}(),xt=[["#chat21-home-component{position:absolute;width:100%;height:100%}#chat21-home-component.start-animation .fade-in-top{-webkit-animation:.5s cubic-bezier(.39,.575,.565,1) .3s both fade-in-top;animation:.5s cubic-bezier(.39,.575,.565,1) .3s both fade-in-top}#chat21-home-component.start-animation .fade-in-bottom{-webkit-animation:.5s cubic-bezier(.6,-.28,.735,.045) fade-in-bottom;animation:.5s cubic-bezier(.6,-.28,.735,.045) fade-in-bottom}#chat21-home-component.start-animation .fade-in-bottom-footer{-webkit-animation:1s ease-in 0ms fade-in-dw-up;animation:1s ease-in 0ms fade-in-dw-up}#chat21-home-component .c21-header{position:absolute;width:100%;height:252px;overflow:hidden;margin:0;padding:0}#chat21-home-component .c21-header .c21-header-container{padding:0;margin:0;width:100%;height:100%;position:absolute}#chat21-home-component .c21-header .c21-header-container .c21-header-button{display:block;width:100%;height:70px;position:absolute;margin:0}#chat21-home-component .c21-header .c21-header-container .c21-header-content{position:relative;margin:30px 40px 0;width:auto;height:auto}#chat21-home-component .c21-header .c21-header-container .c21-header-content .c21-logo{position:relative;width:auto;height:32px;margin-bottom:20px}#chat21-home-component .c21-header .c21-header-container .c21-header-content .c21-logo img{max-width:100%;max-height:100%;margin:auto 0;display:block}#chat21-home-component .c21-header .c21-header-container .c21-header-content .c21-text{font-family:'Google Sans'}#chat21-home-component .c21-header .c21-header-container .c21-header-content .c21-text .c21-text-welcome{overflow:hidden;line-height:1.2em;max-height:2.4em;font-weight:400;font-size:2.6em;margin-bottom:10px}#chat21-home-component .c21-header .c21-header-container .c21-header-content .c21-text .c21-text-intro{display:inline-block;font-size:1.4em;font-weight:300;line-height:1.2em;max-height:2.4em}#chat21-home-component .c21-body{position:absolute;width:100%;height:calc(100% - 30px);padding:0;margin:0;overflow:hidden;background-color:#fff;top:0;-webkit-box-shadow:none;box-shadow:none}#chat21-home-component .c21-body .c21-body-content{position:relative;padding:210px 10px 20px;margin:0}#chat21-home-component .c21-body .c21-body-content .c21-cards .c21-card{position:relative;margin-bottom:20px;background-color:#fff;border-radius:3px;font-size:1.4em;line-height:1.4;color:#1a1a1a;overflow:hidden;-webkit-box-shadow:0 4px 15px 0 rgba(0,0,0,.2),0 1px 2px 0 rgba(0,0,0,.2);box-shadow:0 4px 15px 0 rgba(0,0,0,.2),0 1px 2px 0 rgba(0,0,0,.2);z-index:20}#chat21-home-component .c21-footer{position:absolute;width:100%;height:30px;bottom:0;left:0;right:0;background-color:#fff;-webkit-box-shadow:0 0 10px 0 rgba(191,191,191,.2);box-shadow:0 0 10px 0 rgba(191,191,191,.2)}#chat21-home-component .c21-footer .c21-powered-by{height:25px;text-align:center;padding:0;margin:5px 0;position:absolute;color:#aaa;top:0;left:80px;right:80px;cursor:pointer}#chat21-home-component .c21-footer .c21-powered-by a{text-decoration:none;color:#aaa;font-size:1.1em;font-weight:500;line-height:22px}#chat21-home-component .c21-footer .c21-powered-by b{font-weight:bolder}#chat21-home-component .c21-footer .build_version{display:none;font-size:1em;color:#aaa;position:absolute;bottom:0;right:10px;line-height:30px}#chat21-home-component .c21-footer #c21-powered-by:hover div.build_version{display:block}@media (max-width:451px){#chat21-container .c21-header-button.close{display:-webkit-box;display:-ms-flexbox;display:flex}}"]],kt=l["\u0275crt"]({encapsulation:2,styles:xt,data:{}});function yt(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,3,"div",[["class","c21-logo fade-in-bottom"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](2,0,null,null,0,"img",[["alt","logo"]],[[8,"src",4]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "]))],null,function(t,n){var e=n.component;t(n,2,0,l["\u0275inlineInterpolate"](1,"",e.g.BASE_LOCATION+e.g.DEFAULT_LOGO_CHAT,""))})}function Ct(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,3,"div",[["class","c21-logo fade-in-bottom"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](2,0,null,null,0,"img",[["alt","logo"]],[[8,"src",4]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "]))],null,function(t,n){var e=n.component;t(n,2,0,l["\u0275inlineInterpolate"](1,"",e.g.logoChat,""))})}function Ot(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"div",[["class","c21-text-intro"]],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,["",""]))],null,function(t,n){t(n,1,0,n.component.g.welcomeMsg)})}function _t(t){return l["\u0275vid"](0,[l["\u0275qud"](402653184,1,{element:0}),(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275eld"](3,0,[[1,0],["homeComponent",1]],null,113,"div",[["id","chat21-home-component"],["onFocus","document.querySelector('[aflistconv]').focus()"],["tabindex","2002"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](6,0,null,null,49,"div",[["class","c21-header"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.hideMenuOptions()&&l);return l},null,null)),l["\u0275did"](7,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](8,{"background-color":0,color:1,"background-image":2}),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275eld"](10,0,null,null,44,"div",[["class","c21-header-container"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](13,0,null,null,19,"div",[["class","c21-header-button"]],null,null,null,null,null)),l["\u0275did"](14,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](15,{display:0}),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](17,0,null,null,14,"div",[["class","c21-close-button"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](19,0,null,null,11,"button",[["aria-label","    chiudi chat"],["class","c21-close-button-body"],["tabindex","2001"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.f21_close()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](21,0,null,null,8,":svg:svg",[["aria-labelledby","altIconTitle"],["height","20px"],["role","img"],["viewBox","0 0 24 24"],["width","20px"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](22,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](23,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](25,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](27,0,null,null,0,":svg:path",[["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](35,0,null,null,18,"div",[["class","c21-header-content"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275and"](16777216,null,null,1,null,yt)),l["\u0275did"](39,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Ct)),l["\u0275did"](42,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](45,0,null,null,7,"div",[["class","c21-text fade-in-bottom"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](47,0,null,null,1,"div",[["class","c21-text-welcome"]],null,null,null,null,null)),(t()(),l["\u0275ted"](48,null,["",""])),(t()(),l["\u0275ted"](-1,null,["          \n                    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Ot)),l["\u0275did"](51,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    \n\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](58,0,null,null,42,"div",[["class","c21-body"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.hideMenuOptions()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](61,0,null,null,37,"div",[["class","c21-body-content"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](63,0,null,null,34,"div",[["class","c21-cards"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](66,0,null,null,30,"div",[["class","c21-card fade-in-top"],["style","text-align: center;"]],null,null,null,null,null)),l["\u0275did"](67,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](68,{"border-top":0,"border-top-color":1}),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](70,0,null,null,0,"img",[["style","float:left; padding: 10px; width: calc(40% - 20px);"],["width","50%"]],[[8,"src",4]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](72,0,null,null,1,"span",[["style","display: inline-block;\n                        padding: 10px 20px 10px 0px;\n                        font-size: 15px;\n                        font-weight: 300;\n                        text-align: left;\n                        width: calc(60% - 20px);"]],null,null,null,null,null)),(t()(),l["\u0275ted"](73,null,["","\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](75,0,[["aflistconv",1]],null,18,"button",[["aflistconv",""],["class","c21-button-primary"],["tabindex","1040"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.returnNewConversation()&&l);return l},null,null)),l["\u0275did"](76,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](77,{"background-color":0,"border-color":1,color:2}),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](79,0,null,null,10,"span",[["class","v-align-center"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](81,0,null,null,7,":svg:svg",[["height","20"],["viewBox","0 0 24 24"],["width","20"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](82,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](83,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                                    "])),(t()(),l["\u0275eld"](85,0,null,null,2,":svg:path",[["d","M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"]],null,null,null,null,null)),l["\u0275did"](86,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](87,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](91,0,null,null,1,"span",[["class","v-align-center c21-label-button"]],null,null,null,null,null)),(t()(),l["\u0275ted"](92,null,["\n                            ","\n                            "])),(t()(),l["\u0275ted"](-1,null,["  \n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](95,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        \n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](103,0,null,null,12,"div",[["class","c21-footer fade-in-bottom-footer"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](105,0,null,null,1,"tiledeskwidget-menu-options",[],null,[[null,"eventSignOut"]],function(t,n,e){var l=!0,o=t.component;"eventSignOut"===n&&(l=!1!==o.returnSignOut()&&l);return l},vt,ut)),l["\u0275did"](106,114688,null,0,at,[Z,H],null,{eventSignOut:"eventSignOut"}),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](108,0,null,null,6,"div",[["id","c21-powered-by"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](110,0,null,null,0,"div",[["class","c21-powered-by"],["tabindex","-1"]],[[8,"innerHTML",1]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](112,0,null,null,1,"div",[["class","build_version"]],null,null,null,null,null)),(t()(),l["\u0275ted"](113,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n"])),(t()(),l["\u0275ted"](-1,null,["\n"]))],function(t,n){var e=n.component;t(n,7,0,t(n,8,0,e.colorBck,e.g.themeForegroundColor,e.g.colorGradient)),t(n,14,0,t(n,15,0,e.g.hideHeaderCloseButton?"none":"block")),t(n,22,0,t(n,23,0,e.g.themeForegroundColor)),t(n,39,0,"tiledesklogo"==e.g.logoChat),t(n,42,0,"nologo"!=e.g.logoChat&&"tiledesklogo"!=e.g.logoChat),t(n,51,0,e.g.welcomeMsg),t(n,67,0,t(n,68,0,"2.4px solid",e.g.themeColor50)),t(n,76,0,t(n,77,0,e.g.themeColor,e.g.themeColor,e.g.themeForegroundColor)),t(n,82,0,t(n,83,0,"yellow")),t(n,86,0,t(n,87,0,e.g.themeForegroundColor)),t(n,106,0)},function(t,n){var e=n.component;t(n,48,0,e.g.welcomeTitle),t(n,70,0,l["\u0275inlineInterpolate"](1,"",e.welcome_image,"")),t(n,73,0,e.welcome_summary),t(n,92,0,e.buttonLabel),t(n,110,0,e.g.poweredBy),t(n,113,0,e.g.BUILD_VERSION)})}l["\u0275ccf"]("tiledeskwidget-home",wt,function(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"tiledeskwidget-home",[],null,null,null,_t,kt)),l["\u0275did"](1,114688,null,0,wt,[Z],null,null)],function(t,n){t(n,1,0)},null)},{senderId:"senderId"},{eventNewConv:"eventNewConv",eventSelctedConv:"eventSelctedConv",eventClose:"eventClose",eventSignOut:"eventSignOut",eventOpenAllConv:"eventOpenAllConv"},[]);var Mt=function(){function t(t,n){this.g=t,this.settingsSaverService=n,this.avatarPlaceholder=I,this.setColorFromString=L,this.getFromNow=T,this.archivedConversations=new Array,this.listConversations=new Array,this.obsArchivedConversations=new u.a(null),this.obsListConversations=new u.a(null)}return t.prototype.initialize=function(t,n){this.tenant=n,this.senderId=t,this.urlConversation="/apps/"+this.tenant+"/users/"+this.senderId+"/conversations/",this.urlArchivedConversation="/apps/"+this.tenant+"/users/"+this.senderId+"/archived_conversations/";var e=this;this.g.obsIsOpen.subscribe(function(t){!0===t&&e.listConversations.forEach(function(t){e.g.activeConversation===t.uid&&(e.updateIsNew(t),e.updateConversationBadge())})})},t.prototype.checkListConversations=function(){var t=this,n=V.database().ref(this.urlConversation);this.conversationRef=n.orderByChild("timestamp").limitToLast(10),t.g.wdLog(["checkListConversations *****",this.urlConversation]),this.conversationRef.on("child_added",function(n){var e=t.setConversation(n,!1);(t.g.wdLog(["child_added val ******",n.val()]),t.ifCanAddConversation(e))&&(-1===t.searchIndexInArrayForUid(t.listConversations,n.key)&&setTimeout(function(){t.listConversations.unshift(e),t.checkIsNew(e),t.checkIsSound(e),t.updateConversationBadge(),t.listConversations.sort(F("timestamp","desc")),t.listConversations=B(t.listConversations,"uid"),t.g.wdLog(["checkListConversations - child_added: ",t.listConversations.length]),t.obsListConversations.next(t.listConversations)},0))}),this.conversationRef.on("child_changed",function(n){t.g.wdLog(["child_changed val *****",n.val()]);var e=t.setConversation(n,!1);if(t.ifCanAddConversation(e)){var l=t.searchIndexInArrayForUid(t.listConversations,n.key);l>-1&&setTimeout(function(){t.listConversations.splice(l,1,e),t.checkIsNew(e),t.checkIsSound(e),t.updateConversationBadge(),t.listConversations.sort(F("timestamp","desc")),t.listConversations=B(t.listConversations,"uid"),t.g.wdLog(["checkListConversations child_changed *****",t.listConversations,l]),t.obsListConversations.next(t.listConversations)},0)}}),this.conversationRef.on("child_removed",function(n){t.g.wdLog(["child_removed val *****",n.val()]);var e=t.searchIndexInArrayForUid(t.listConversations,n.key);e>-1&&setTimeout(function(){t.listConversations.splice(e,1),t.listConversations.sort(F("timestamp","desc")),t.listConversations=B(t.listConversations,"uid"),t.obsListConversations.next(t.listConversations)},0),t.updateConversationBadge()})},t.prototype.checkListArchivedConversations=function(t){(!t||t<=0)&&(t=100);var n=this,e=V.database().ref(this.urlArchivedConversation).orderByChild("timestamp").limitToLast(t);n.g.wdLog(["checkListArchivedConversations *****",this.urlArchivedConversation]),e.on("child_added",function(t){n.g.wdLog(["childSnapshot.val() *****",t.val()]);var e=n.setConversation(t,!0);n.ifCanAddConversation(e)&&(-1===n.searchIndexInArrayForUid(n.archivedConversations,t.key)&&(n.archivedConversations.unshift(e),n.checkIsNew(e),n.archivedConversations.sort(F("timestamp","desc")),n.archivedConversations=B(n.archivedConversations,"uid"),n.obsArchivedConversations.next(n.archivedConversations)))}),e.on("child_changed",function(t){var e=n.setConversation(t,!0);if(n.ifCanAddConversation(e)){var l=n.searchIndexInArrayForUid(n.archivedConversations,t.key);l>-1&&(n.archivedConversations.splice(l,1,e),n.checkIsNew(e),n.archivedConversations.sort(F("timestamp","desc")),n.archivedConversations=B(n.archivedConversations,"uid"),n.obsArchivedConversations.next(n.archivedConversations),n.g.wdLog([" checkListArchivedConversations child_changed *****",n.archivedConversations,l]))}}),e.on("child_removed",function(t){var e=n.searchIndexInArrayForUid(n.archivedConversations,t.key);e>-1&&(n.archivedConversations.splice(e,1),n.archivedConversations.sort(F("timestamp","desc")),n.archivedConversations=B(n.archivedConversations,"uid"),n.obsArchivedConversations.next(n.archivedConversations))})},t.prototype.ifCanAddConversation=function(t){return this.g.wdLog(["***** filterByRequester *****",this.g.filterByRequester]),this.g.wdLog(["***** that.g.senderId *****",this.g.senderId]),!!(!1===this.g.filterByRequester||!0===this.g.filterByRequester&&t.attributes&&t.attributes.requester_id===this.g.senderId)},t.prototype.checkIsSound=function(t){this.g.activeConversation!==t.recipient&&t.sender!==this.senderId&&!0===t.is_new&&this.soundMessage()},t.prototype.checkIsNew=function(t){this.g.activeConversation===t.uid&&!0===this.g.isOpen&&this.updateIsNew(t)},t.prototype.updateIsNew=function(t){var n="";n=!0===t.archived?this.urlArchivedConversation+t.recipient:this.urlConversation+t.recipient;var e={"/is_new":!1};return this.g.wdLog(["**** updateIsNew::"+n]),V.database().ref(n).update(e)},t.prototype.updateConversationBadge=function(){var t=0;this.listConversations.forEach(function(n){!0===n.is_new&&!1===n.archived&&t++}),this.g.wdLog(["updateConversationBadge",t]),this.g.setParameter("conversationsBadge",t)},t.prototype.setConversation=function(t,n){if(this.g.wdLog(["snapshot.val() *****",this.senderId,t.val()]),t.val()){var e=t.val();e.uid=t.key,e.last_message_text=e.last_message_text;var l=e.timestamp/1e3;e.time_last_message=this.getFromNow(this.g.windowContext,l),e.archived=n,e.sender===this.senderId&&(e.sender_fullname=this.g.YOU);return e.image="https://user-images.githubusercontent.com/32448495/39111365-214552a0-46d5-11e8-9878-e5c804adfe6a.png",e}},t.prototype.setImageConversation=function(t,n){t.image="https://user-images.githubusercontent.com/32448495/39111365-214552a0-46d5-11e8-9878-e5c804adfe6a.png";var e="/apps/"+this.tenant+"/contacts/"+t.sender+"/imageurl/";this.g.wdLog(["setImageConversation *****",e]),V.database().ref(e).once("value").then(function(n){n.val().trim()&&(t.image=n.val())}).catch(function(t){this.g.wdLog(["> Error is: ",t])})},t.prototype.soundMessage=function(){!0===this.g.isSoundActive&&(this.g.wdLog(["****** soundMessage *****"]),this.audio=new Audio,this.audio.src=this.g.baseLocation+"/assets/sounds/Carme.mp3",this.audio.load(),this.audio.play())},t.prototype.searchIndexInArrayForUid=function(t,n){return t.findIndex(function(t){return t.recipient===n})},t}(),Pt=function(){function t(t,n,e){this.g=t,this.ngZone=n,this.conversationsService=e,this.eventSelctedConv=new l.EventEmitter,this.eventClosePage=new l.EventEmitter,this.convertMessage=C,this.subscriptions=[],this.tenant="",this.themeColor="",this.themeForegroundColor=""}return t.prototype.ngOnInit=function(){this.initialize()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){t.afallconv&&t.afallconv.nativeElement.focus()},1e3)},t.prototype.initialize=function(){this.g.wdLog(["initialize: ListConversationsComponent"]),this.senderId=this.g.senderId,this.tenant=this.g.tenant,this.LABEL_START_NW_CONV=this.g.LABEL_START_NW_CONV,this.subscriptions=[],this.listConversations=[],this.archivedConversations=[],this.allConversations=[],this.g.wdLog(["senderId: ",this.senderId]),this.g.wdLog(["tenant: ",this.tenant]),this.conversationsService.initialize(this.senderId,this.tenant);var t=this,n=this.conversationsService.obsListConversations.subscribe(function(n){t.ngZone.run(function(){t.listConversations=n,t.concatAndOrderArray(),t.g.wdLog([" ListAllConversationsComponent conversations:::: ",t.listConversations])})});this.subscriptions.push(n);var e=this.conversationsService.obsArchivedConversations.subscribe(function(n){t.ngZone.run(function(){t.archivedConversations=n,t.concatAndOrderArray(),t.g.wdLog([" ListAllConversationsComponent archivedConversations:::: ",t.allConversations])})});this.subscriptions.push(e)},t.prototype.concatAndOrderArray=function(){var t;if(this.listConversations&&this.listConversations.length>0?t=this.archivedConversations&&this.archivedConversations.length>0?this.listConversations.concat(this.archivedConversations):this.listConversations:this.archivedConversations&&this.archivedConversations.length>0&&(t=this.archivedConversations),t){for(var n=[],e=new Map,l=0,o=t;l<o.length;l++){var i=o[l];e.has(i.uid)||(e.set(i.uid,!0),n.push(i))}this.allConversations=n,this.allConversations.sort(F("timestamp","desc")),this.g.wdLog([" concatAndOrderArray:::: ",this.allConversations])}},t.prototype.returnClosePage=function(){this.eventClosePage.emit()},t.prototype.openConversationByID=function(t){this.g.wdLog(["openConversationByID: ",t]),t&&this.eventSelctedConv.emit(t)},t.prototype.getUrlImgProfile=function(t){var n=this.g.baseLocation;return t&&"system"!==t?n+w:n+v},t.prototype.ngOnDestroy=function(){this.g.wdLog(["list conv destroy subscriptions",this.subscriptions]),this.unsubscribe()},t.prototype.unsubscribe=function(){this.subscriptions.forEach(function(t){t.unsubscribe()}),this.subscriptions=[],this.allConversations=[],this.g.wdLog(["this.subscriptions",this.subscriptions])},t}(),Et=[["#c21-app-list-all-conversations[_ngcontent-%COMP%]{display:block;font-size:10px;background-color:#fff;width:100%;height:100%;position:relative;margin:0;padding:0}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]{overflow:hidden;width:100%;height:52px;position:relative;margin:0;padding:0}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-container[_ngcontent-%COMP%]{position:relative;height:52px;width:100%;margin:0 auto}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-container[_ngcontent-%COMP%]   .c21-header-content[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-container[_ngcontent-%COMP%]   .c21-header-content[_ngcontent-%COMP%]   .c21-header-writing[_ngcontent-%COMP%]{position:absolute;bottom:4px;width:100%;text-align:center;margin:0;padding:0;font-size:1.2em;color:#fff}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]{position:relative;display:block;width:100%;height:calc(100% - 52px);top:0;font-size:1em;-webkit-box-shadow:none;box-shadow:none;overflow:hidden}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]{width:100%;height:auto;position:relative;margin:auto;padding:0;cursor:pointer;-webkit-appearance:initial;border:none;border-bottom:1px solid #eee;background-color:#fff;text-align:left}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]   .c21-body-conv[_ngcontent-%COMP%]{width:auto;margin:0 24px;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-height:80px;text-align:left}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]   .c21-body-conv[_ngcontent-%COMP%]   .c21-left-conv[_ngcontent-%COMP%]{width:auto;height:100%;float:left;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]   .c21-body-conv[_ngcontent-%COMP%]   .c21-left-conv[_ngcontent-%COMP%]   .c21-icon-avatar[_ngcontent-%COMP%]{position:relative;padding:0;margin:0;height:40px;width:40px;min-height:40px;min-width:40px;line-height:40px;border-radius:50%;overflow:hidden;background-color:#fff}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]   .c21-body-conv[_ngcontent-%COMP%]   .c21-left-conv[_ngcontent-%COMP%]   .c21-icon-avatar[_ngcontent-%COMP%]   .c21-avatar-placeholder[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;text-align:center;font-size:14px;color:#fff;font-weight:500}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]   .c21-body-conv[_ngcontent-%COMP%]   .c21-left-conv[_ngcontent-%COMP%]   .c21-icon-avatar[_ngcontent-%COMP%]   .c21-avatar-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;margin:2px 0 0;background-repeat:no-repeat;background-position:center;background-size:cover}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]   .c21-body-conv[_ngcontent-%COMP%]   .c21-right-conv[_ngcontent-%COMP%]{width:calc(100% - 70px);margin-left:15px;height:auto;float:left;padding:17px 0}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]   .c21-body-conv[_ngcontent-%COMP%]   .c21-right-conv[_ngcontent-%COMP%]   .c21-last-time[_ngcontent-%COMP%]{font-size:.8em;color:#aaa;float:right;display:block;padding:0;margin:0;width:auto;height:auto}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]   .c21-body-conv[_ngcontent-%COMP%]   .c21-right-conv[_ngcontent-%COMP%]   .c21-name[_ngcontent-%COMP%]{font-weight:700;color:#3a3c4c;font-size:1.3em;line-height:1.7;min-height:20px}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]   .c21-body-conv[_ngcontent-%COMP%]   .c21-right-conv[_ngcontent-%COMP%]   .c21-msg[_ngcontent-%COMP%]{font-weight:200;color:#3a3c4c;font-size:1.3em;line-height:1.7}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]   .c21-body-conv[_ngcontent-%COMP%]   .c21-right-conv[_ngcontent-%COMP%]   .not-read.c21-msg[_ngcontent-%COMP%]{font-weight:500}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]:active, #c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]:focus, #c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-item-conversation[_ngcontent-%COMP%]:hover{background-color:#fafafa}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-footer[_ngcontent-%COMP%]{width:auto;margin:0 24px;height:auto;position:relative;padding:0;border-top:1px solid #eee;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-shadow:none;box-shadow:none}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-divBudge[_ngcontent-%COMP%]{position:absolute;top:40px;left:inherit;right:0;width:10px;height:10px;min-width:10px;font-size:1.2em;line-height:10px;border-radius:50%;background-color:red;color:#fff;font-weight:700;padding:0;text-align:center;margin-right:0;display:inline-block}#c21-app-list-all-conversations[_ngcontent-%COMP%]   .c21-lablel-close[_ngcontent-%COMP%]{border:1px solid #e2e2e2;background-color:#ececec;padding:4px;border-radius:4px;position:absolute;right:0;bottom:8px;margin-right:-10px;color:#858585;font-weight:500}"]],St=l["\u0275crt"]({encapsulation:0,styles:Et,data:{}});function It(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,3,"div",[["class","c21-divBudge"]],null,null,null,null,null)),l["\u0275did"](1,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](2,{"background-color":0}),(t()(),l["\u0275ted"](3,null,["",""]))],function(t,n){t(n,1,0,t(n,2,0,n.component.g.themeColor))},function(t,n){t(n,3,0,n.parent.context.$implicit.badge)})}function Lt(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"div",[["class","c21-lablel-close"]],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,["",""]))],null,function(t,n){t(n,1,0,n.component.g.CLOSED)})}function Tt(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,39,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n      \n      "])),(t()(),l["\u0275eld"](2,0,[[1,0],["afallconv",1]],null,36,"button",[["class","c21-item-conversation c21-button-clean"],["start-focus",""],["tabindex","1301"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.openConversationByID(t.context.$implicit)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](4,0,null,null,31,"div",[["class","c21-body-conv"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275eld"](6,0,null,null,11,"div",[["class","c21-left-conv"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n            "])),(t()(),l["\u0275eld"](8,0,null,null,7,"div",[["class","c21-icon-avatar"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](10,0,null,null,4,"div",[["class","profile_image"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                  "])),(t()(),l["\u0275ted"](-1,null,["\n                  "])),(t()(),l["\u0275eld"](13,0,null,null,0,"img",[["onError","this.src = 'https://s3.eu-west-1.amazonaws.com/tiledesk-widget/dev/2.0.4-beta.7/assets/images/avatar_male_tiledesk.svg'"]],[[8,"src",4]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275eld"](19,0,null,null,9,"div",[["class","c21-right-conv"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](21,0,null,null,1,"div",[["class","c21-last-time"]],null,null,null,null,null)),(t()(),l["\u0275ted"](22,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](24,0,null,null,1,"div",[["class","truncate c21-name"]],null,null,null,null,null)),(t()(),l["\u0275ted"](25,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](27,0,null,null,0,"div",[["class","truncate c21-msg"]],[[2,"not-read",null],[8,"innerHTML",1]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275and"](16777216,null,null,1,null,It)),l["\u0275did"](31,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Lt)),l["\u0275did"](34,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](37,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n      "])),(t()(),l["\u0275ted"](-1,null,["\n    "]))],function(t,n){t(n,31,0,n.context.$implicit.is_new),t(n,34,0,n.context.$implicit.archived)},function(t,n){var e=n.component;t(n,13,0,l["\u0275inlineInterpolate"](1,"",e.getUrlImgProfile(n.context.$implicit.sender),"")),t(n,22,0,n.context.$implicit.time_last_message),t(n,25,0,n.context.$implicit.sender_fullname),t(n,27,0,n.context.$implicit.is_new,e.convertMessage(n.context.$implicit.last_message_text))})}function At(t){return l["\u0275vid"](0,[l["\u0275qud"](671088640,1,{afallconv:0}),(t()(),l["\u0275eld"](1,0,null,null,75,"div",[["id","c21-app-list-all-conversations"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275ted"](-1,null,["\n\n  "])),(t()(),l["\u0275ted"](-1,null,["\n  "])),(t()(),l["\u0275eld"](5,0,null,null,60,"div",[["class","c21-header"]],null,null,null,null,null)),l["\u0275did"](6,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](7,{"background-color":0}),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](9,0,null,null,55,"div",[["class","c21-header-container"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n      "])),(t()(),l["\u0275ted"](-1,null,["\n      "])),(t()(),l["\u0275eld"](12,0,null,null,51,"div",[["class","c21-header-content"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](15,0,null,null,13,"div",[["class","c21-header-button c21-right c21-close"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275eld"](17,0,null,null,10,":svg:svg",[["aria-labelledby","altIconTitle"],["height","24px"],["role","img"],["viewBox","0 0 24 24"],["width","24px"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](18,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](19,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](21,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](23,0,null,null,0,":svg:path",[["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](25,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](26,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](37,0,null,null,14,"button",[["aria-label","indietro"],["class","c21-header-button c21-left c21-button-clean"],["tabindex","1310"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.returnClosePage()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275eld"](39,0,null,null,11,":svg:svg",[["aria-labelledby","altIconTitle"],["height","24px"],["role","img"],["viewBox","0 0 24 24"],["width","24px"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](40,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](41,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](44,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](46,0,null,null,0,":svg:path",[["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](48,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](49,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](54,0,null,null,7,"div",[["class","c21-title"]],null,null,null,null,null)),l["\u0275did"](55,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](56,{color:0}),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275eld"](58,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),l["\u0275ted"](59,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n          "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n\n      "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n  "])),(t()(),l["\u0275ted"](-1,null,["\n\n  "])),(t()(),l["\u0275ted"](-1,null,["\n  "])),(t()(),l["\u0275eld"](68,0,null,null,4,"div",[["class","c21-body"],["onFocus","document.querySelector('[start-focus]').focus()"],["tabindex","1311"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Tt)),l["\u0275did"](71,802816,null,0,rt.NgForOf,[l.ViewContainerRef,l.TemplateRef,l.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n  "])),(t()(),l["\u0275ted"](-1,null,["\n\n\n  "])),(t()(),l["\u0275eld"](74,0,null,null,1,"div",[["class","c21-footer"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n  "])),(t()(),l["\u0275ted"](-1,null,["\n\n\n"]))],function(t,n){var e=n.component;t(n,6,0,t(n,7,0,e.g.themeColor)),t(n,18,0,t(n,19,0,e.g.themeForegroundColor)),t(n,40,0,t(n,41,0,e.g.themeForegroundColor)),t(n,55,0,t(n,56,0,e.g.themeForegroundColor)),t(n,71,0,e.allConversations)},function(t,n){var e=n.component;t(n,26,0,e.g.BUTTON_CLOSE_TO_ICON),t(n,49,0,e.g.PREV_CONVERSATIONS),t(n,59,0,e.g.widgetTitle)})}l["\u0275ccf"]("tiledeskwidget-list-all-conversations",Pt,function(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"tiledeskwidget-list-all-conversations",[],null,null,null,At,St)),l["\u0275did"](1,4440064,null,0,Pt,[Z,l.NgZone,Mt],null,null)],function(t,n){t(n,1,0)},null)},{senderId:"senderId"},{eventSelctedConv:"eventSelctedConv",eventClosePage:"eventClosePage"},[]);var Rt=e("2U+b"),Nt=function(){function t(){this.eventOpenAttachment=new l.EventEmitter}return t.prototype.ngOnInit=function(){this.getAttachment()},t.prototype.getAttachment=function(){if(this.message&&this.message.attributes&&this.message.attributes.attachment){try{this.type=this.message.attributes.attachment.type}catch(t){return}try{this.buttons=this.message.attributes.attachment.buttons}catch(t){return}}},t.prototype.actionButton=function(t){t&&this.eventOpenAttachment.emit(t)},t}(),Ft=[["#buttons-in-message[_ngcontent-%COMP%]{display:block;float:right;margin-bottom:20px;height:auto;min-height:40px}#buttons-in-message[_ngcontent-%COMP%]   .div-button[_ngcontent-%COMP%]{float:left}#buttons-in-message[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]{background-color:#fff;color:#333;border:1px solid #1cb841}#buttons-in-message[_ngcontent-%COMP%]   .button-error[_ngcontent-%COMP%]{background-color:#fff;color:#333;border:1px solid #ca3c3c}#buttons-in-message[_ngcontent-%COMP%]   .button-warning[_ngcontent-%COMP%]{background-color:#fff;color:#333;border:1px solid #df7514}#buttons-in-message[_ngcontent-%COMP%]   .button-secondary[_ngcontent-%COMP%]{background-color:#fff;color:#333;border:1px solid #42b8dd}#buttons-in-message[_ngcontent-%COMP%]   .button-success[_ngcontent-%COMP%]:hover{color:#fff;background:#1cb841}#buttons-in-message[_ngcontent-%COMP%]   .button-error[_ngcontent-%COMP%]:hover{color:#fff;background:#ca3c3c}#buttons-in-message[_ngcontent-%COMP%]   .button-warning[_ngcontent-%COMP%]:hover{color:#fff;background:#df7514}#buttons-in-message[_ngcontent-%COMP%]   .button-secondary[_ngcontent-%COMP%]:hover{color:#fff;background:#42b8dd}.button-in-msg[_ngcontent-%COMP%]{position:relative;max-width:300px;min-width:inherit;padding:8px 16px;cursor:pointer;border:1px solid #2a6ac1;border-radius:20px;margin:3px;background:0 0;overflow:hidden;font-family:Muli,sans-serif;font-size:15px;text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.24px;-webkit-font-smoothing:antialiased;color:#2a6ac1}.button-in-msg[_ngcontent-%COMP%]:hover{color:#fff;background:#2a6ac1}"]],zt=l["\u0275crt"]({encapsulation:0,styles:Ft,data:{}});function Dt(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"div",[],[[8,"className",0],[8,"title",0]],[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.actionButton(t.parent.context.$implicit.value)&&l);return l},null,null)),(t()(),l["\u0275ted"](1,null,["",""]))],null,function(t,n){t(n,0,0,l["\u0275inlineInterpolate"](1,"button-in-msg ",n.parent.context.$implicit.class,""),l["\u0275inlineInterpolate"](1,"",n.parent.context.$implicit.value,"")),t(n,1,0,n.parent.context.$implicit.value)})}function Bt(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,5,"div",[["class","div-button"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n      "])),(t()(),l["\u0275ted"](-1,null,["\n      "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Dt)),l["\u0275did"](4,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,[" \n  "]))],function(t,n){t(n,4,0,"text"===n.context.$implicit.type)},null)}function Ut(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,4,"div",[["id","buttons-in-message"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n  "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Bt)),l["\u0275did"](3,802816,null,0,rt.NgForOf,[l.ViewContainerRef,l.TemplateRef,l.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275ted"](-1,null,["\n\n\n"]))],function(t,n){t(n,3,0,n.component.buttons)},null)}l["\u0275ccf"]("tiledeskwidget-message-attachment",Nt,function(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"tiledeskwidget-message-attachment",[],null,null,null,Ut,zt)),l["\u0275did"](1,114688,null,0,Nt,[],null,null)],function(t,n){t(n,1,0)},null)},{message:"message"},{eventOpenAttachment:"eventOpenAttachment"},[]);var Zt=e("3FeX"),Vt=e("7DMc"),Yt=e("XZJt"),jt=[{name:"WebAudioRecorder",src:"./assets/js/WebAudioRecorder.min.js"},{name:"audio",src:"./assets/js/audio.js"}],Xt=function(){function t(){var t=this;this.scripts={},jt.forEach(function(n){t.scripts[n.name]={loaded:!1,src:n.src}})}return t.prototype.load=function(){for(var t=this,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var l=[];return n.forEach(function(n){return l.push(t.loadScript(n))}),Promise.all(l)},t.prototype.loadScript=function(t){var n=this;return new Promise(function(e,l){if(n.scripts[t].loaded)e({script:t,loaded:!0,status:"Already Loaded"});else{var o=document.createElement("script");o.type="text/javascript",o.src=n.scripts[t].src,o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,n.scripts[t].loaded=!0,e({script:t,loaded:!0,status:"Loaded"}))}:o.onload=function(){n.scripts[t].loaded=!0,e({script:t,loaded:!0,status:"Loaded"})},o.onerror=function(n){return e({script:t,loaded:!1,status:"Loaded"})},document.getElementsByTagName("head")[0].appendChild(o)}})},t}(),Wt=(function(){}(),function(){function t(t,n){this.g=t,this.appConfigService=n,this.observable=new u.a("")}return t.prototype.initialize=function(t,n,e){this.senderId=t,this.tenant=n||this.appConfigService.getConfig().tenant,this.recipientId=e},t.prototype.processFile=function(t){var n=this,e=t.files[0],l=e.name,o=e.type,i=new FileReader;this.g.wdLog(["OK preload: ",l,o,i]),i.addEventListener("load",function(){if(n.g.wdLog(["addEventListener load",i.result]),o.startsWith("image")){var t=new Image;n.g.wdLog(["onload ",t]),t.src=i.result.toString(),t.title=l,t.onload=function(){n.g.wdLog(["onload immagine"]);var e=n.createGuid();n.arrayFilesLoad.push("{ uid: "+e+", file: "+t+", type: "+o+" }"),n.g.wdLog(["OK: ",n.arrayFilesLoad[0]])}}}),i.readAsDataURL(e),this.g.wdLog(["reader-result: ",e])},t.prototype.pushUpload=function(t){var n=this.createGuid(),e="/public/images/"+(n=n+"_"+t.file.name)+"/";return this.g.wdLog(["pushUpload::::::::::::: ",e]),V.storage().ref().child(e).put(t.file)},t.prototype.pushUpload_Old=function(t){var n="/public/images/"+this.createGuid();this.g.wdLog(["pushUpload::::::::::::: ",n]);var e=V.storage().ref().child(n).put(t.file);e.on(V.storage.TaskEvent.STATE_CHANGED)(function(n){var e=n,l=e.bytesTransferred/e.totalBytes*100;this.g.wdLog(["snapshot::::::::::::: ",l]),t.progress=l},function(t){this.g.wdLog([t])},function(){t.url=e.snapshot.downloadURL,t.name=t.file.name,t.progress=100})},t.prototype.createGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})},t}()),Ht=(function(){}(),function(){return function(t){this.createdAt=new Date,this.file=t}}()),Gt=e("OE0E"),Kt=function(){function t(t,n,e,o,i,r,a,s,u,c,d,p,g,b){this.el=t,this.g=n,this.ngZone=e,this.messagingService=o,this.upSvc=i,this.contactService=r,this.agentAvailabilityService=a,this.starRatingWidgetService=s,this.sanitizer=u,this.appComponent=c,this.storageService=d,this.conversationsService=p,this.appConfigService=g,this.audioRecorderService=b,this.eventClose=new l.EventEmitter,this.eventCloseWidget=new l.EventEmitter,this.writingMessage="",this.isMenuShow=!1,this.isScrolling=!1,this.isRecording=!1,this.timer=Yt.a.timer(1e3,1e3),this.startScroll=!0,this.idDivScroll="c21-contentScroll",this.showButtonToBottom=!1,this.NUM_BADGES=0,this.isFilePendingToUpload=!1,this.isFileSelected=!1,this.preChatForm=!1,this.HEIGHT_DEFAULT="22px",this.isPopupUrl=_,this.IMG_PROFILE_SUPPORT="https://user-images.githubusercontent.com/32448495/39111365-214552a0-46d5-11e8-9878-e5c804adfe6a.png",this.isNewConversation=!0,this.CLIENT_BROWSER=navigator.userAgent,this.subscriptions=[],this.MSG_STATUS_SENT=h,this.MSG_STATUS_SENT_SERVER=m,this.MSG_STATUS_RETURN_RECEIPT=f,this.lastMsg=!1,this.isNwMsg=!1,this.isIE=/msie\s|trident\//i.test(window.navigator.userAgent),this.API_URL=this.appConfigService.getConfig().apiUrl,this.initAll()}return t.prototype.ngOnInit=function(){this.g.wdLog([" ngOnInit: app-conversation ",this.g]);this.isNwMsg=!1,setBaseLocation(this.g.baseLocation),this.ngZone.run(function(){});var t=this.appComponent.obsEndRenderMessage.subscribe(function(){});this.subscriptions.push(t),this.setFocusOnId("chat21-main-message-context"),this.updateConversationBadge()},t.prototype.ngAfterViewInit=function(){var t=this;this.g.wdLog([" --------ngAfterViewInit-------- "]),setTimeout(function(){t.afConversationComponent&&t.afConversationComponent.nativeElement.focus()},1e3)},t.prototype.ngOnChanges=function(){!0===this.isOpen&&this.updateConversationBadge()},t.prototype.updateConversationBadge=function(){this.conversation&&(this.conversationsService.updateIsNew(this.conversation),this.conversationsService.updateConversationBadge())},t.prototype.initAll=function(){var t=this.g.themeColor;this.themeColor50=R(t,50),this.messages=[],this.g.wdLog([" ---------------- 2: setConversation ---------------------- "]),this.setConversation(),this.g.wdLog([" ---------------- 3: connectConversation ---------------------- "]),this.connectConversation(),this.g.wdLog([" ---------------- 4: initializeChatManager ------------------- "]),this.initializeChatManager(),this.g.wdLog([" ---------------- 5: setAvailableAgentsStatus ---------------- "]),this.setAvailableAgentsStatus(),this.g.setParameter("activeConversation",this.conversationWith);try{this.g.recipientFullname=this.g.customAttributes.recipient_fullname,this.urlAudiorepo=this.g.customAttributes.url_audiorepo,this.g.wdLog(["> this.urlAudiorepo: ",this.urlAudiorepo])}catch(t){this.g.wdLog(["> Error is: ",t])}},t.prototype.onResize=function(t){this.g.wdLog(["RESIZE ----------\x3e "+t.target.innerWidth])},t.prototype.setAvailableAgentsStatus=function(){var t=this.g.departmentDefault;this.g.wdLog(["departmentDefault",t]),this.g.wdLog(["messages1: ",this.g.online_msg,this.g.offline_msg]),this.g.online_msg&&"undefined"!==this.g.online_msg&&""!==this.g.online_msg||(this.g.online_msg=this.g.LABEL_FIRST_MSG),this.g.offline_msg&&"undefined"!==this.g.offline_msg&&""!==this.g.offline_msg||(this.g.offline_msg=this.g.LABEL_FIRST_MSG_NO_AGENTS),this.g.wdLog(["messages2: ",this.g.online_msg,this.g.offline_msg]);var n=this.g.availableAgents;n&&n.length<=0?(this.addFirstMessage(this.g.offline_msg),this.g.areAgentsAvailableText=this.g.AGENT_NOT_AVAILABLE):(this.addFirstMessage(this.g.online_msg),this.g.areAgentsAvailableText=this.g.AGENT_AVAILABLE),(this.g.recipientId.includes("_bot")||this.g.recipientId.includes("bot_"))&&(this.g.areAgentsAvailableText=""),this.g.wdLog(["messages: ",this.g.online_msg,this.g.offline_msg])},t.prototype.addFirstMessage=function(t){var n=this;try{this.g.start_hidden_message=this.g.customAttributes.start_hidden_message}catch(t){this.g.wdLog(["> Error is: ",t])}setTimeout(function(){0===n.messages.length&&n.sendMessage(n.g.start_hidden_message,"text")},1e3)},t.prototype.setConversation=function(){var t=this.g.recipientId,n=this.g.channelType;this.g.wdLog(["setConversation recipientId: ",t,n]),t||this.g.setParameter("recipientId",this.setRecipientId()),n||this.g.setParameter("channelType",this.setChannelType()),this.conversationWith=t},t.prototype.setRecipientId=function(){var t,n=this.g.senderId;return(t=this.storageService.getItem(n))||(t=this.messagingService.generateUidConversation(n)),t},t.prototype.setChannelType=function(){var t="group",n=this.g.projectid;return this.recipientId&&-1!==this.recipientId.indexOf("group")?t="group":n||(t="direct"),t},t.prototype.connectConversation=function(){var t=this.g.senderId,n=this.g.tenant,e=this.g.channelType;this.messagingService.initialize(t,n,e),this.upSvc.initialize(t,n,this.conversationWith),this.messagingService.connect(this.conversationWith),this.messages=this.messagingService.messages,this.scrollToBottomStart()},t.prototype.initializeChatManager=function(){this.arrayFilesLoad=[],this.setSubscriptions(),this.checkWritingMessages()},t.prototype.setSubscriptions=function(){var t=this;this.starRatingWidgetService.setOsservable(!1),t.g.wdLog(["setSubscriptions!!!! StartRating",this.starRatingWidgetService.obsCloseConversation,this.starRatingWidgetService]);var n=this.starRatingWidgetService.obsCloseConversation.subscribe(function(n){t.g.setParameter("isOpenStartRating",n),!1===n?t.g.wdLog(["CHIUDOOOOO!!!! StartRating"]):!0===n&&t.g.wdLog(["APROOOOOOOO!!!! StartRating"])});this.subscriptions.push(n);var e=this.messagingService.obsAdded.subscribe(function(n){t.g.wdLog(["Subscription NEW MSG",n]),t.writingMessage="";var e=t.g.senderId;if(t.startScroll||n.sender===e)t.g.wdLog(["1-------"]),setTimeout(function(){t.scrollToBottom()},200);else if(t.scrollMe){var l=t.scrollMe.nativeElement;t.checkContentScrollPosition(l)?(t.g.wdLog(["2-------"]),setTimeout(function(){t.scrollToBottom()},0)):(t.g.wdLog(["3-------"]),t.NUM_BADGES++,t.soundMessage())}n&&n.text&&(t.g.wdLog(["4------- controllo focus"]),setTimeout(function(){var e="",l=document.getElementById("testFocus"),o=document.getElementById("altTextArea");o&&l&&setTimeout(function(){n.sender!==t.g.senderId&&(e+="messaggio ricevuto da operatore: "+t.g.recipientFullname,o.innerHTML=e+",  testo messaggio: "+n.text)},1e3)},1e3))});this.subscriptions.push(e)},t.prototype.checkWritingMessages=function(){var t=this,n=this.g.tenant;try{var e=this.messagingService.checkWritingMessages(n,this.conversationWith);e&&e.on("value",function(n){n.exists()?t.writingMessage=t.g.LABEL_WRITING:t.writingMessage=""})}catch(t){console.error("Error checkWritingMessages ",t)}},t.prototype.checkListMessages=function(){},t.prototype.isAutoplay=function(t){return!(!0!==t||!0!==this.isNwMsg||!this.g.autoplay_activated||!0!==this.g.autoplay_activated)},t.prototype.toggleAutoplay=function(){!0===this.g.autoplay_activated?this.g.autoplay_activated=!1:this.g.autoplay_activated=!0,this.g.setParameter("autoplay_activated",this.g.autoplay_activated)},t.prototype.setFocusOnId=function(t){setTimeout(function(){var n=document.getElementById(t);n&&(n.setAttribute("value"," "),n.focus())},500)},t.prototype.onkeypress=function(t){var n=t.which||t.keyCode;this.textInputTextArea=document.getElementById("chat21-main-message-context").value,13===n?this.performSendingMessage():9===n&&t.preventDefault()},t.prototype.performSendingMessage=function(){var t=document.getElementById("chat21-main-message-context").value;t&&""!==t.trim()&&(t=S(t),this.sendMessage(t,"text"))},t.prototype.restoreTextArea=function(){this.resizeInputField();var t=document.getElementById("chat21-main-message-context");this.textInputTextArea="",t?(t.value="",t.placeholder=this.g.LABEL_PLACEHOLDER,this.g.wdLog(["AppComponent:restoreTextArea::restoreTextArea::textArea:","restored"])):this.g.wdLog(["AppComponent:restoreTextArea::restoreTextArea::textArea:","not restored"]),this.setFocusOnId("chat21-main-message-context")},t.prototype.sendMessage=function(t,n,e){this.isNwMsg=!0,this.pauseAudioMsg(null);var l=this;if(setTimeout(function(){0===l.messages.length?l.writingMessage="":l.writingMessage=l.g.LABEL_WRITING},300),e=e||"",this.g.wdLog(["SEND MESSAGE: ",t,n,e]),t&&""!==t.trim()||"text"!==n){var o=this.g.GUEST_LABEL,i=this.g.attributes,r=this.g.projectid,a=this.g.channelType,s=this.g.userFullname,u=this.g.userEmail,c=this.g.showWidgetNameInConversation,d=this.g.widgetTitle,p=this.conversationWith;this.triggerBeforeSendMessageEvent(o,t,n,e,p,o,i,r,a),o=s||(u||(i&&i.userFullname?i.userFullname:this.g.GUEST_LABEL)),c&&!0===c&&(o+=" - "+d);var g=this.messagingService.sendMessage(o,t,n,e,p,o,i,r,a);this.triggerAfterSendMessageEvent(g),this.isNewConversation=!1,this.restoreTextArea()}},t.prototype.printMessage=function(t,n,e){this.triggerBeforeMessageRender(t,n,e);var l=t.text;return this.triggerAfterMessageRender(t,n,e),l},t.prototype.triggerBeforeMessageRender=function(t,n,e){try{var l=new CustomEvent("beforeMessageRender",{detail:{message:t,sanitizer:this.sanitizer,messageEl:n,component:e}});this.elRoot.nativeElement.dispatchEvent(l)}catch(t){console.error("Error triggering triggerBeforeMessageRender",t)}},t.prototype.triggerAfterMessageRender=function(t,n,e){try{var l=new CustomEvent("afterMessageRender",{detail:{message:t,sanitizer:this.sanitizer,messageEl:n,component:e}});this.elRoot.nativeElement.dispatchEvent(l)}catch(t){console.error("Error triggering triggerAfterMessageRender",t)}},t.prototype.triggerBeforeSendMessageEvent=function(t,n,e,l,o,i,r,a,s){try{var u=new CustomEvent("beforeMessageSend",{detail:{senderFullname:t,text:n,type:e,metadata:l,conversationWith:o,recipientFullname:i,attributes:r,projectid:a,channelType:s}});this.el.nativeElement.dispatchEvent(u)}catch(t){console.error("Error triggering triggerBeforeSendMessageEvent",t)}},t.prototype.triggerAfterSendMessageEvent=function(t){try{var n=new CustomEvent("afterMessageSend",{detail:{message:t}});this.el.nativeElement.dispatchEvent(n)}catch(t){console.error("Error triggering triggerAfterSendMessageEvent",t)}},t.prototype.onSendPressed=function(t){this.g.wdLog(["onSendPressed:event",t]),this.g.wdLog(["AppComponent::onSendPressed::isFilePendingToUpload:",this.isFilePendingToUpload]),this.isFilePendingToUpload?(this.g.wdLog(["AppComponent::onSendPressed","is a file"]),this.loadFile(),this.isFilePendingToUpload=!1,this.g.wdLog(["AppComponent::onSendPressed::isFilePendingToUpload:",this.isFilePendingToUpload])):this.textInputTextArea.length>0&&(this.g.wdLog(["AppComponent::onSendPressed","is a message"]),this.performSendingMessage())},t.prototype.getUrlImgProfile=function(t){var n=this.g.baseLocation;return t&&"system"!==t?"error"===t?n+w:z(t):n+v},t.prototype.resizeInputField=function(){var t=document.getElementById("chat21-main-message-context");t&&(t.style.height="100%","\n"===document.getElementById("chat21-main-message-context").value?(document.getElementById("chat21-main-message-context").value="",t.style.height=this.HEIGHT_DEFAULT):t.scrollHeight>t.offsetHeight?(this.g.wdLog(["PASSO 2"]),t.style.height=t.scrollHeight+"px"):t.style.height=this.HEIGHT_DEFAULT)},t.prototype.onScroll=function(t){if(console.log("onScroll: ",t),this.startScroll=!1,this.scrollMe){var n=this.scrollMe.nativeElement;this.checkContentScrollPosition(n)?(this.showButtonToBottom=!1,this.NUM_BADGES=0):this.showButtonToBottom=!0}},t.prototype.checkContentScrollPosition=function(t){return t.scrollHeight-t.scrollTop<=t.clientHeight+40?(this.g.wdLog(["SONO ALLA FINE ::"]),!0):(this.g.wdLog([" NON SONO ALLA FINE ::"]),!1)},t.prototype.scrollToBottomStart=function(){var t=this;!1===this.isScrolling&&setTimeout(function(){try{t.isScrolling=!0;var n=document.getElementById(t.idDivScroll);setTimeout(function(){t.g.wdLog(["objDiv::",n.scrollHeight]),n.scrollIntoView(!1),n.style.opacity="1"},200),t.isScrolling=!1}catch(t){this.g.wdLog(["> Error is: ",t])}},300)},t.prototype.scrollToBottom=function(){this.g.wdLog([" scrollToBottom: ",this.isScrolling]);var t=this;!1===this.isScrolling&&setTimeout(function(){try{t.isScrolling=!0;var n=document.getElementById(t.idDivScroll);setTimeout(function(){!0===t.isIE?n.scrollIntoView(!1):n.scrollIntoView({behavior:"smooth",block:"end"}),t.g.wdLog(["objDiv::",n.scrollHeight])},0),t.isScrolling=!1}catch(n){this.g.wdLog(["> Error is: ",n]),setTimeout(function(){t.isScrolling=!1},0)}},0)},t.prototype.detectFiles=function(t){if(this.g.wdLog(["detectFiles: ",t]),t){this.selectedFiles=t.target.files,this.g.wdLog(["AppComponent:detectFiles::selectedFiles",this.selectedFiles]),null==this.selectedFiles?this.isFilePendingToUpload=!1:this.isFilePendingToUpload=!0,this.g.wdLog(["AppComponent:detectFiles::selectedFiles::isFilePendingToUpload",this.isFilePendingToUpload]),this.g.wdLog(["fileChange: ",t.target.files]),t.target.files.length<=0?this.isFilePendingToUpload=!1:this.isFilePendingToUpload=!0;var n=this;if(t.target.files&&t.target.files[0]){var e=t.target.files[0].name,l=t.target.files[0].type,o=new FileReader;n.g.wdLog(["OK preload: ",e,l,o]),o.addEventListener("load",function(){if(n.g.wdLog(["addEventListener load",o.result]),n.isFileSelected=!0,l.startsWith("image")){var t=new Image;n.g.wdLog(["onload ",t]),t.src=o.result.toString(),t.title=e,n.g.wdLog(["imageXLoad.src ",t.src]),t.onload=function(){n.g.wdLog(["onload immagine"]);var e=(new Date).getTime().toString(36);n.arrayFilesLoad[0]={uid:e,file:t,type:l},n.g.wdLog(["OK: ",n.arrayFilesLoad[0]]),n.loadFile()}}else{n.g.wdLog(["onload file"]);var i={src:o.result.toString(),title:e};n.g.wdLog(["fileXLoad.src ",i.src]);var r=(new Date).getTime().toString(36);n.arrayFilesLoad[0]={uid:r,file:i,type:l},n.g.wdLog(["OK: ",n.arrayFilesLoad[0]]),n.loadFile()}},!1),t.target.files[0]&&(o.readAsDataURL(t.target.files[0]),n.g.wdLog(["reader-result: ",t.target.files[0]]))}}},t.prototype.loadFile=function(){if(this.g.wdLog(["that.fileXLoad: ",this.arrayFilesLoad]),this.arrayFilesLoad[0]&&this.arrayFilesLoad[0].file){var t=this.arrayFilesLoad[0].file,n=(this.arrayFilesLoad[0].uid,this.arrayFilesLoad[0].type);this.g.wdLog(["that.fileXLoad: ",n]);var e=void 0;e=n.startsWith("image")?{name:t.title,src:t.src,width:t.width,height:t.height,type:n}:{name:t.title,src:t.src,type:n},this.g.wdLog(["metadata -------\x3e ",e]);var l=this.selectedFiles.item(0);this.uploadSingle(e,l)}},t.prototype.uploadSingle=function(t,n){var e=this,l=this;document.getElementById("chat21-start-upload-doc").disabled=!0,l.g.wdLog(["AppComponent::uploadSingle::",t,n]);var o=new Ht(n);this.upSvc.pushUpload(o).then(function(t){return t.ref.getDownloadURL()}).then(function(n){l.g.wdLog(["AppComponent::uploadSingle:: downloadURL",n]),l.g.wdLog(["Successfully uploaded file and got download link - "+n]),t.src=n;var e="text",o="File: "+t.src;t.type.startsWith("image")&&(e="image",o=""),l.sendMessage(o,e,t),l.isFilePendingToUpload=!1}).catch(function(t){e.g.wdLog(["> Error is: ",t])}),l.g.wdLog(["reader-result: ",n])},t.prototype.getSizeImg=function(t){var n=t.metadata,e={width:n.width,height:n.height};if(n.width&&n.width>230){var l=n.width/n.height;e.width=230,e.height=230/l}return e},t.prototype.updateMessage=function(t){this.g.wdLog(["UPDATE MSG:",t.metadata.uid]);var n=O(this.messages,t.metadata.uid);n>-1?(this.messages[n].uid=t.uid,this.messages[n].status=t.status,this.messages[n].timestamp=t.timestamp,this.messages[n].headerDate=t.headerDate,this.g.wdLog(["UPDATE ok:",this.messages[n]])):this.messages.push(t)},t.prototype.loadJS=function(){var t=this;this.audioRecorderService.load("WebAudioRecorder","audio").then(function(t){}).catch(function(n){return t.g.wdLog(["> Error is: ",n])})},t.prototype.recording=function(t){var n=this,e=document.getElementById("chat21-main-message-context");if(!0===this.isRecording){this.isRecording=!1,this.subTimer.unsubscribe(),e.readOnly=!1,e&&(e.value="",e.placeholder=this.g.LABEL_PLACEHOLDER);try{stopRecording(),document.getElementById("chat21-start-mic").focus()}catch(t){this.g.wdLog(["> Error is: ",t])}}else{this.isRecording=!0,e.readOnly=!0,navigator.mediaDevices.getUserMedia({audio:!0}).then(function(t){n.subTimer=n.timer.subscribe(function(t){var n,l;e&&(e.value="",e.placeholder=(n=t,(l=Math.floor(n/60)).toString().padStart(2,"0")+":"+(n-60*l).toString().padStart(2,"0")))}),n.subscriptions.push(n.subTimer)}).catch(function(t){this.g.wdLog(["> Error is: ",t])});var l=U();this.pauseAudioMsg(null);try{startRecording(this.urlAudiorepo,l,function(t,e){var l=n.urlAudiorepo+"/audio/"+e,o={src:l,type:"audio",uid:t};o.src=l;n.sendMessage(null,"audio",o),document.getElementById("chat21-start-mic").focus()})}catch(t){this.g.wdLog(["> Error is: ",t])}}},t.prototype.returnHome=function(){this.g.setParameter("activeConversation",null),this.eventClose.emit()},t.prototype.returnCloseWidget=function(){this.g.setParameter("activeConversation",null),this.eventCloseWidget.emit()},t.prototype.dowloadTranscript=function(){var t=this.API_URL+"public/requests/"+this.conversationWith+"/messages.html";this.g.windowContext.open(t,"_blank"),this.isMenuShow=!1},t.prototype.toggleSound=function(){this.g.setParameter("isSoundActive",!this.g.isSoundActive),this.isMenuShow=!1},t.prototype.toggleMenu=function(){this.isMenuShow=!this.isMenuShow},t.prototype.openInputFiles=function(){(alert("ok"),document.getElementById("chat21-file"))&&(document.getElementById("chat21-file").style.display="block")},t.prototype.ngOnDestroy=function(){this.g.wdLog(["ngOnDestroy ------------------\x3e this.subscriptions",this.subscriptions]),this.unsubscribe()},t.prototype.unsubscribe=function(){this.subscriptions.forEach(function(t){try{t.unsubscribe()}catch(t){this.g.wdLog(["> Error is: ",t])}}),this.subscriptions.length=0,this.messagingService.unsubscribeAllReferences(),this.g.wdLog(["this.subscriptions",this.subscriptions])},t.prototype.soundMessage=function(){var t=this.g.isSoundActive,n=this.g.baseLocation;if(t){var e=this;this.audio=new Audio,this.audio.src=n+"/assets/sounds/Carme.mp3",e.g.wdLog(["****** soundMessage *****",this.audio.src]),this.audio.load(),setTimeout(function(){e.audio.play()},0)}},t.prototype.hideMenuOptions=function(){this.g.wdLog(["hideMenuOptions"]),this.isMenuShow=!1},t.prototype.resetConversation=function(){this.g.wdLog(["resetConversation"]),this.sendMessage("reset","text",null),this.isMenuShow=!1},t.prototype.isLastMessage=function(t){return t===this.messages[this.messages.length-1].uid},t.prototype.isClassClean=function(t){try{return!(!t||"text"===t.type||!t.attributes||t.attributes.alwaysShowText)}catch(t){return this.g.wdLog(["> Error is: ",t]),!1}},t.prototype.isTypeText=function(t){try{return!!("text"===t.type||"audio"===t.type&&t.attributes.alwaysShowText)}catch(t){return this.g.wdLog(["> Error is: ",t]),!1}},t.prototype.isAlwaysShowText=function(t){try{return!!t.attributes.alwaysShowText&&t.attributes.alwaysShowText}catch(t){return this.g.wdLog(["> Error is: ",t]),!1}},t.prototype.returnOpenAttachment=function(t){if(t){this.sendMessage(t,"text",{button:!0})}},t.prototype.playAudioMsg=function(t){this.uidAudioPlayng&&document.getElementById(this.uidAudioPlayng).pause();try{this.uidAudioPlayng=t.target.id}catch(t){this.g.wdLog(["> Error is: ",t])}},t.prototype.pauseAudioMsg=function(t){try{if(this.uidAudioPlayng)document.getElementById(this.uidAudioPlayng).pause()}catch(t){this.g.wdLog(["> Error is: ",t])}try{this.uidAudioPlayng&&(this.uidAudioPlayng="")}catch(t){this.g.wdLog(["> Error is: ",t])}},t.prototype.playPausaAudioMsg=function(t){try{var n=document.getElementById(this.uidAudioPlayng);n&&n.pause()}catch(t){this.g.wdLog(["> Error is: ",t])}try{var e=document.getElementById(t);e&&setTimeout(function(){e.play(),this.uidAudioPlayng=t},300)}catch(t){this.g.wdLog(["> Error is: ",t])}},t}(),qt=[['.rowMsg[_ngcontent-%COMP%]{position:relative;height:auto;display:block}#chat21-conversation-component[_ngcontent-%COMP%]{position:absolute;background-color:#fff;width:100%;height:100%;top:0;left:0;right:0;bottom:0}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-icon-avatar[_ngcontent-%COMP%]{position:relative;padding:0;margin:0;height:40px;width:40px;min-height:40px;min-width:40px;line-height:40px;border-radius:50%;overflow:hidden;background-color:#fff}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-icon-avatar[_ngcontent-%COMP%]   .c21-avatar-placeholder[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;text-align:center;font-size:1.4em;color:#fff;font-weight:500}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-icon-avatar[_ngcontent-%COMP%]   .c21-avatar-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;background-repeat:no-repeat;background-position:center;background-size:cover;border-radius:50%}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-icon-avatar[_ngcontent-%COMP%]   .c21-avatar-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;width:100%;height:100%;min-width:25px;min-height:25px;-o-object-fit:cover;object-fit:cover}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-container[_ngcontent-%COMP%]   .c21-header-content[_ngcontent-%COMP%]   .c21-header-writing[_ngcontent-%COMP%]{position:absolute;left:40px;right:40px;bottom:4px;width:auto;text-align:center;margin:0;padding:0;font-size:1.2em;color:#fff}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-header[_ngcontent-%COMP%]   .chat21-header-modal-select[_ngcontent-%COMP%]{font-family:\'Google Sans\',sans-serif!important;padding:0;background-color:#b9b9b921;margin:8px;line-height:1.2em;color:#616161;font-size:15px;text-align:center;word-wrap:break-word;border-radius:8px}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-header[_ngcontent-%COMP%]   .chat21-header-modal-select-more-of-one-dept[_ngcontent-%COMP%]{position:relative;height:auto;padding:10px;margin:30px 0 0}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]{position:absolute;top:0;right:0;left:0;bottom:43px;overflow:hidden}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%]{margin-bottom:20px}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .chat21-conversation-parts-container[_ngcontent-%COMP%]{height:100%;overflow-y:hidden}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   #c21-contentScroll[_ngcontent-%COMP%]{position:absolute;left:0;right:10px;padding:10px;opacity:0;-webkit-transition:opacity .5s ease-in;transition:opacity .5s ease-in}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .chat21-conversation-parts-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px;background-color:#00000000!important}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .chat21-conversation-parts-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.1);background-color:#00000000!important}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .chat21-conversation-parts-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:6px!important;-webkit-box-shadow:inset 0 0 6px transparent;background-color:#00000040!important}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   #scroll-me[_ngcontent-%COMP%]{height:100%;width:100%;overflow-y:auto;overflow-x:hidden;position:absolute;top:0;right:0}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   #scroll-me[_ngcontent-%COMP%]:hover::-webkit-scrollbar-thumb{background:#777}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .msg_container[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;opacity:0}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]{border-radius:14px;padding:14px}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:1.4em;margin:0;padding:0;font-style:normal;letter-spacing:normal;font-stretch:normal;font-variant:normal;font-weight:300;overflow:hidden;text-align:left}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .messages[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:8px;padding:0;margin-bottom:0;max-width:100%}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_sent[_ngcontent-%COMP%]{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding:2px 0 4px 40px}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_sent[_ngcontent-%COMP%]   .msg_sent[_ngcontent-%COMP%]{background-color:#62a8ea;color:#fff;margin-right:0;margin-left:4px;margin-top:10px;max-width:calc(100% - 30px);min-width:14px}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_sent[_ngcontent-%COMP%]   .msg_sent[_ngcontent-%COMP%]:active, #chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_sent[_ngcontent-%COMP%]   .msg_sent[_ngcontent-%COMP%]:focus{-webkit-box-shadow:0 1px 8px 0 rgba(0,0,0,.24),0 0 0 0 rgba(0,0,0,.19);box-shadow:0 1px 8px 0 rgba(0,0,0,.24),0 0 0 0 rgba(0,0,0,.19)}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_sent[_ngcontent-%COMP%]   .msg_sent.clean[_ngcontent-%COMP%]{background-color:transparent;padding:0;margin:10px}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_sent[_ngcontent-%COMP%]   audio[_ngcontent-%COMP%]{max-width:244px;background-color:#62a8ea;border-radius:14px}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_sent[_ngcontent-%COMP%]   audio[_ngcontent-%COMP%]::-webkit-media-controls-enclosure{background:0 0}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_sent[_ngcontent-%COMP%]   .status-message[_ngcontent-%COMP%]{width:16px;height:16px;margin-left:4px}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_sent[_ngcontent-%COMP%]   .status-message[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:13px;height:13px;background-repeat:no-repeat;background-position:center;background-size:cover;overflow-x:hidden}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_sent[_ngcontent-%COMP%]   .status-message[_ngcontent-%COMP%]   .c21-ico-schedule[_ngcontent-%COMP%]{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 18 18%22%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill%3Anone%3B%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Ctitle%3Eic_schedule%3C%2Ftitle%3E%3Cg id%3D%22Livello_2%22 data-name%3D%22Livello 2%22%3E%3Cg id%3D%22Livello_1-2%22 data-name%3D%22Livello 1%22%3E%3Cpath d%3D%22M9%2C1.5A7.5%2C7.5%2C0%2C1%2C0%2C16.5%2C9%2C7.5%2C7.5%2C0%2C0%2C0%2C9%2C1.5ZM9%2C15a6%2C6%2C0%2C1%2C1%2C6-6A6%2C6%2C0%2C0%2C1%2C9%2C15Z%22%2F%3E%3Cpath class%3D%22cls-1%22 d%3D%22M0%2C0H18V18H0Z%22%2F%3E%3Cpath d%3D%22M9.38%2C5.25H8.25v4.5l3.94%2C2.36.56-.92-3.37-2Z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E")}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_sent[_ngcontent-%COMP%]   .status-message[_ngcontent-%COMP%]   .c21-ico-done[_ngcontent-%COMP%]{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 18 18%22%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill%3Anone%3B%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Ctitle%3Eic_done%3C%2Ftitle%3E%3Cg id%3D%22Livello_2%22 data-name%3D%22Livello 2%22%3E%3Cg id%3D%22Livello_1-2%22 data-name%3D%22Livello 1%22%3E%3Cpath class%3D%22cls-1%22 d%3D%22M0%2C0H18V18H0Z%22%2F%3E%3Cpath d%3D%22M6.75%2C12.15%2C3.6%2C9%2C2.55%2C10l4.2%2C4.2%2C9-9-1-1.05Z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E")}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_sent[_ngcontent-%COMP%]   .status-message[_ngcontent-%COMP%]   .c21-ico-done_all[_ngcontent-%COMP%]{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 18 18%22%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill%3Anone%3B%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Ctitle%3Eic_done_all%3C%2Ftitle%3E%3Cg id%3D%22Livello_2%22 data-name%3D%22Livello 2%22%3E%3Cg id%3D%22Livello_1-2%22 data-name%3D%22Livello 1%22%3E%3Cpath class%3D%22cls-1%22 d%3D%22M0%2C0H18V18H0Z%22%2F%3E%3Cpath d%3D%22M13.5%2C5.25%2C12.44%2C4.19%2C7.69%2C8.95%2C8.74%2C10Zm3.18-1.06L8.74%2C12.13%2C5.61%2C9%2C4.55%2C10.06l4.19%2C4.19%2C9-9ZM.31%2C10.06%2C4.5%2C14.25l1.06-1.06L1.37%2C9Z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E")}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_receive[_ngcontent-%COMP%]{padding:0 0 6px}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_receive[_ngcontent-%COMP%]   .content-avatar[_ngcontent-%COMP%]{position:relative;border-radius:50%;width:28px;height:28px;margin-right:6px}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_receive[_ngcontent-%COMP%]   .content-avatar[_ngcontent-%COMP%]   .profile_image[_ngcontent-%COMP%]{position:relative;width:25px;height:25px;border-radius:50%;overflow:hidden;background-color:#fff;border:1px solid #e2e2e2}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_receive[_ngcontent-%COMP%]   .content-avatar[_ngcontent-%COMP%]   .profile_image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;width:100%;height:100%;min-width:25px;min-height:25px;-o-object-fit:cover;object-fit:cover}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_receive[_ngcontent-%COMP%]   .msg_receive[_ngcontent-%COMP%]{background-color:#f7f7f7;color:#1a1a1a;max-width:260px;min-width:14px;margin:10px 20px 4px 10px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_receive[_ngcontent-%COMP%]   .msg_receive[_ngcontent-%COMP%]:active, #chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_receive[_ngcontent-%COMP%]   .msg_receive[_ngcontent-%COMP%]:focus{-webkit-box-shadow:0 1px 8px 0 rgba(0,0,0,.24),0 0 0 0 rgba(0,0,0,.19);box-shadow:0 1px 8px 0 rgba(0,0,0,.24),0 0 0 0 rgba(0,0,0,.19)}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_receive[_ngcontent-%COMP%]   .msg_receive.clean[_ngcontent-%COMP%]{background-color:transparent;padding:0;margin:10px}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_receive[_ngcontent-%COMP%]   audio[_ngcontent-%COMP%]{max-width:244px;background-color:#f7f7f7;border-radius:14px}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .base_receive[_ngcontent-%COMP%]   audio[_ngcontent-%COMP%]::-webkit-media-controls-enclosure{background:0 0}#chat21-conversation-component[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-container[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .chat21-sheet-content[_ngcontent-%COMP%]   .message_sender_fullname[_ngcontent-%COMP%]{font-size:1em;color:#aaa;margin:0 auto 4px}#chat21-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;margin:0;padding:0;-webkit-box-shadow:0 -1px 0 0 rgba(191,191,191,.2);box-shadow:0 -1px 0 0 rgba(191,191,191,.2);background:#fff}#chat21-footer[_ngcontent-%COMP%]   .chat21-textarea-button.active[_ngcontent-%COMP%], #chat21-footer[_ngcontent-%COMP%]   .visible-text-area[_ngcontent-%COMP%], #chat21-footer[_ngcontent-%COMP%]   .visible-text-area.active[_ngcontent-%COMP%]{pointer-events:auto}#chat21-footer[_ngcontent-%COMP%]   .chat21-textarea-button[_ngcontent-%COMP%]{fill:#2a6ac1;pointer-events:auto;position:absolute;display:block;bottom:22px;opacity:.3;width:20px;height:20px;cursor:initial}#chat21-footer[_ngcontent-%COMP%]   .chat21-textarea-button[_ngcontent-%COMP%]:active, #chat21-footer[_ngcontent-%COMP%]   .chat21-textarea-button[_ngcontent-%COMP%]:focus{min-width:20px;min-height:20px;padding:4 0 0 2;background-color:#f7f7f7;border-radius:12px;-webkit-box-shadow:#62a8ea 0 0 0 2px inset;box-shadow:#62a8ea 0 0 0 2px inset;outline:0}#chat21-footer[_ngcontent-%COMP%]   #chat21-buttonToBottom[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;margin-right:10px;margin-top:-40px;float:right;width:30px;height:30px;border-radius:50%;z-index:1;cursor:pointer;background-color:#fff;border:1px solid rgba(191,191,191,.2);text-align:center}#chat21-footer[_ngcontent-%COMP%]   #chat21-buttonToBottom[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin:auto;fill:#aaa}#chat21-footer[_ngcontent-%COMP%]   #chat21-buttonToBottom[_ngcontent-%COMP%]:hover{background-color:#2a6ac1;opacity:1!important;transition:.45s ease-in-out!important;-moz-transition:.45s ease-in-out!important;-webkit-transition:.45s ease-in-out!important;border:1px solid #fff}#chat21-footer[_ngcontent-%COMP%]   #chat21-buttonToBottom[_ngcontent-%COMP%]:hover   svg[_ngcontent-%COMP%]{fill:#fff}#chat21-footer[_ngcontent-%COMP%]   #chat21-main-message-context[_ngcontent-%COMP%]{overflow:hidden;word-wrap:break-word;resize:horizontal;overflow-y:auto;-webkit-box-sizing:border-box;box-sizing:border-box;color:#1a1a1a;min-width:100%;outline:0;resize:none;font-size:1.4em;line-height:1.4em;font-weight:300;max-height:110px;min-height:auto;height:22px;padding:3px 40px;margin:10px 0;border:none}#chat21-footer[_ngcontent-%COMP%]   .chat21-textarea-button.active[_ngcontent-%COMP%]{opacity:1;cursor:pointer}#chat21-footer[_ngcontent-%COMP%]   #chat21-button-send[_ngcontent-%COMP%]{right:8px;bottom:10px}#chat21-footer[_ngcontent-%COMP%]   #chat21-button-send[_ngcontent-%COMP%]:active, #chat21-footer[_ngcontent-%COMP%]   #chat21-button-send[_ngcontent-%COMP%]:focus{background-color:#f7f7f7;border-radius:12px}#chat21-footer[_ngcontent-%COMP%]   #chat21-file[_ngcontent-%COMP%]{left:8px;bottom:10px}#chat21-footer[_ngcontent-%COMP%]   #chat21-start-mic[_ngcontent-%COMP%], #chat21-footer[_ngcontent-%COMP%]   #chat21-start-upload-doc[_ngcontent-%COMP%]{left:6px;top:8px;padding:4 0 0 2;min-width:24px;min-height:24px}#c21-options-menu[_ngcontent-%COMP%]{width:auto;height:auto;min-height:40px;min-width:100px;max-width:80%;position:absolute;z-index:10;top:40px;right:15px;border-radius:3px;font-size:1.2em;line-height:normal;overflow:hidden;border:1px solid #d7d7d7;background-color:#fff;padding:20px 0 10px}#c21-options-menu[_ngcontent-%COMP%]   .c21-header-button[_ngcontent-%COMP%]{padding:6px 10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}#c21-options-menu[_ngcontent-%COMP%]   .c21-header-button[_ngcontent-%COMP%]:active, #c21-options-menu[_ngcontent-%COMP%]   .c21-header-button[_ngcontent-%COMP%]:focus, #c21-options-menu[_ngcontent-%COMP%]   .c21-header-button[_ngcontent-%COMP%]:hover{background-color:#f5f5f5;cursor:pointer}#c21-options-menu[_ngcontent-%COMP%]   .label-menu-item[_ngcontent-%COMP%]{line-height:20px;position:relative;margin:0 10px}@media (max-width:451px){#chat21-conversation-component[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-container[_ngcontent-%COMP%]   .c21-header-content[_ngcontent-%COMP%]   .c21-header-button.c21-close[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}}']],$t=l["\u0275crt"]({encapsulation:0,styles:qt,data:{}});function Jt(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,12,"span",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](2,0,null,null,9,":svg:svg",[["aria-labelledby","altIconTitle"],["height","24"],["viewBox","0 0 24 24"],["width","24"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](3,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](4,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](6,0,null,null,0,":svg:path",[["d","M12.99 9.18c0-.06.01-.12.01-.18 0-2.21-1.79-4-4-4-.06 0-.12.01-.18.01l4.17 4.17zm-6.1-3.56L4.27 3 3 4.27l2.62 2.62C5.23 7.5 5 8.22 5 9c0 2.21 1.79 4 4 4 .78 0 1.5-.23 2.11-.62L19.73 21 21 19.73l-8.62-8.62-5.49-5.49zM9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](8,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](10,0,null,null,0,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                        "]))],function(t,n){t(n,3,0,t(n,4,0,n.component.g.themeForegroundColor))},null)}function Qt(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,14,"span",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](2,0,null,null,11,":svg:svg",[["aria-labelledby","altIconTitle"],["height","24"],["viewBox","0 0 24 24"],["width","24"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](3,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](4,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](6,0,null,null,0,":svg:circle",[["cx","9"],["cy","9"],["r","4"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](8,0,null,null,0,":svg:path",[["d","M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](10,0,null,null,0,":svg:path",[["d","M0 0h24v24H0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](12,0,null,null,0,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                        "]))],function(t,n){t(n,3,0,t(n,4,0,n.component.g.themeForegroundColor))},null)}function tn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,0,"img",[["class","message-contentX message-content-imageX"]],[[8,"src",4],[8,"width",0]],null,null,null,null))],null,function(t,n){var e=n.component;t(n,0,0,n.parent.parent.parent.context.$implicit.metadata.src,e.getSizeImg(n.parent.parent.parent.context.$implicit).width)})}function nn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275and"](16777216,null,null,1,null,tn)),l["\u0275did"](3,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                                            "]))],function(t,n){t(n,3,0,n.parent.parent.context.$implicit.metadata)},null)}function en(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,7,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275eld"](2,0,[[3,0],["audio_msg",1]],null,3,"audio",[["aria-label","traccia audio"],["controls",""],["controlsList","nodownload"]],[[8,"id",0]],[[null,"pause"],[null,"play"]],function(t,n,e){var l=!0,o=t.component;"pause"===n&&(l=!1!==o.pauseAudioMsg(e)&&l);"play"===n&&(l=!1!==o.playAudioMsg(e)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275eld"](4,0,null,null,0,"source",[["type","audio/x-wav"]],[[8,"src",4]],null,null,null,null)),(t()(),l["\u0275ted"](5,null,["\n                                                    ","\n                                                "])),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "]))],null,function(t,n){t(n,2,0,l["\u0275inlineInterpolate"](1,"",n.parent.parent.context.$implicit.uid,"")),t(n,4,0,l["\u0275inlineInterpolate"](1,"",n.parent.parent.context.$implicit.metadata.src,"")),t(n,5,0,n.parent.parent.context.$implicit.metadata.src)})}function ln(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,6,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275eld"](2,0,null,null,3,"video",[["controls",""],["width","230"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275eld"](4,0,null,null,0,"source",[["type","video/mp4"]],[[8,"src",4]],null,null,null,null)),(t()(),l["\u0275ted"](5,null,["\n                                                    ","\n                                                "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "]))],null,function(t,n){t(n,4,0,l["\u0275inlineInterpolate"](1,"",n.parent.parent.context.$implicit.metadata.src,"")),t(n,5,0,n.parent.parent.context.$implicit.metadata.src)})}function on(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275eld"](2,0,null,null,1,"iframe",[["frameBorder","0"],["src","https://www.youtube.com/embed/tgbNymZ7vqY"],["width","230"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "]))],null,null)}function rn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["here\n                                                    is ignored"]))],null,null)}function an(t){return l["\u0275vid"](0,[(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275eld"](1,0,null,null,1,"p",[["style","text-decoration: underline; padding:8px; cursor: pointer;"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.popupUrl(o.g.windowContext,t.parent.parent.parent.context.$implicit.text,"windowName")&&l);return l},null,null)),(t()(),l["\u0275ted"](2,null,["\n                                                        ","\n                                                    "])),(t()(),l["\u0275ted"](-1,null,["\n                                                "]))],null,function(t,n){t(n,2,0,n.component.strip_tags(n.parent.parent.parent.context.$implicit.text))})}function sn(t){return l["\u0275vid"](0,[(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275eld"](1,0,[["messageEl",1]],null,1,"p",[],[[8,"innerHTML",1]],null,null,null,null)),l["\u0275ppd"](2,1),(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275ted"](-1,null,["\n                                                "]))],null,function(t,n){var e=n.component;t(n,1,0,l["\u0275unv"](n,1,0,t(n,2,0,l["\u0275nov"](n.parent.parent.parent.parent,0),e.printMessage(n.parent.parent.parent.context.$implicit,l["\u0275nov"](n,1),e))))})}function un(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,9,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,[" \n                                               \n                                                "])),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275and"](16777216,null,null,1,null,rn)),l["\u0275did"](4,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"],ngIfThen:[1,"ngIfThen"],ngIfElse:[2,"ngIfElse"]},null),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275and"](0,[["contentPopup",2]],null,0,null,an)),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275and"](0,[["contentNewTab",2]],null,0,null,sn)),(t()(),l["\u0275ted"](-1,null,["\n                                            "]))],function(t,n){t(n,4,0,n.component.isPopupUrl(n.parent.parent.context.$implicit.text),l["\u0275nov"](n,6),l["\u0275nov"](n,8))},null)}function cn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,0,"div",[["class","icon f21ico-schedule"]],null,null,null,null,null))],null,null)}function dn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,0,"div",[["class","icon c21-ico-done"]],null,null,null,null,null))],null,null)}function pn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,0,"div",[["class","icon c21-ico-done"]],null,null,null,null,null))],null,null)}function gn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,0,"div",[["class","icon c21-ico-done_all"]],null,null,null,null,null))],null,null)}function hn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,44,"div",[["class","msg_container base_sent slide-in-right"],["role","messaggio"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                            \n                                        "])),(t()(),l["\u0275eld"](2,0,null,null,25,"button",[["class","messages msg_sent c21-button-clean"],["tabindex","1521"]],[[2,"clean",null]],[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.playPausaAudioMsg(t.parent.context.$implicit.uid)&&l);return l},null,null)),l["\u0275did"](3,278528,null,0,rt.NgClass,[l.IterableDiffers,l.KeyValueDiffers,l.ElementRef,l.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),l["\u0275pod"](4,{"button-in-msg":0}),l["\u0275did"](5,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](6,{padding:0}),(t()(),l["\u0275ted"](-1,null,["\n\n                                            "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,nn)),l["\u0275did"](10,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                                            \n\n                                            "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,en)),l["\u0275did"](14,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n                                            "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,ln)),l["\u0275did"](18,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n                                            "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,on)),l["\u0275did"](22,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n    \n\n                                            "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,un)),l["\u0275did"](26,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n                                        "])),(t()(),l["\u0275ted"](-1,null,["\n\n                                        "])),(t()(),l["\u0275ted"](-1,null,["\n                                        "])),(t()(),l["\u0275eld"](30,0,null,null,13,"div",[["class","status-message"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,cn)),l["\u0275did"](33,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,dn)),l["\u0275did"](36,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,pn)),l["\u0275did"](39,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,gn)),l["\u0275did"](42,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                                        "])),(t()(),l["\u0275ted"](-1,null,["\n\n                                    "]))],function(t,n){var e=n.component;t(n,3,0,"messages msg_sent c21-button-clean",t(n,4,0,n.parent.context.$implicit.metadata.button)),t(n,5,0,t(n,6,0,"image"==n.parent.context.$implicit.type?"0px":"auto")),t(n,10,0,"image"==n.parent.context.$implicit.type),t(n,14,0,"audio"==n.parent.context.$implicit.type),t(n,18,0,"video"==n.parent.context.$implicit.type),t(n,22,0,"youtube"==n.parent.context.$implicit.type),t(n,26,0,n.parent.context.$implicit.text),t(n,33,0,!n.parent.context.$implicit.status),t(n,36,0,n.parent.context.$implicit.status==e.MSG_STATUS_SENT),t(n,39,0,n.parent.context.$implicit.status==e.MSG_STATUS_SENT_SERVER),t(n,42,0,n.parent.context.$implicit.status==e.MSG_STATUS_RETURN_RECEIPT)},function(t,n){t(n,2,0,n.component.isClassClean(n.parent.context.$implicit))})}function mn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"div",[["class","message_sender_fullname slide-in-left"],["role","messaggio"]],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,["",""]))],null,function(t,n){t(n,1,0,n.parent.context.$implicit.sender_fullname)})}function fn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,0,"img",[["aria-label","messaggio ricevuto"],["class","message-contentX message-content-imageX"]],[[8,"src",4],[8,"width",0]],null,null,null,null))],null,function(t,n){var e=n.component;t(n,0,0,n.parent.parent.parent.context.$implicit.metadata.src,e.getSizeImg(n.parent.parent.parent.context.$implicit).width)})}function bn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275and"](16777216,null,null,1,null,fn)),l["\u0275did"](3,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                                            "]))],function(t,n){t(n,3,0,"image"==n.parent.parent.context.$implicit.type&&n.parent.parent.context.$implicit.metadata)},null)}function vn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,6,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275eld"](2,0,[[3,0],["audio_msg",1]],null,3,"audio",[["controls",""],["controlsList","nodownload"]],[[8,"id",0],[1,"autoplay",0]],[[null,"pause"],[null,"play"]],function(t,n,e){var l=!0,o=t.component;"pause"===n&&(l=!1!==o.pauseAudioMsg(e)&&l);"play"===n&&(l=!1!==o.playAudioMsg(e)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275eld"](4,0,null,null,0,"source",[["type","audio/x-wav"]],[[8,"src",4]],null,null,null,null)),(t()(),l["\u0275ted"](5,null,["\n                                                    ","\n                                                "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "]))],null,function(t,n){var e=n.component;t(n,2,0,l["\u0275inlineInterpolate"](1,"",n.parent.parent.context.$implicit.uid,""),e.isAutoplay(n.parent.parent.context.last)?"true":null),t(n,4,0,l["\u0275inlineInterpolate"](1,"",n.parent.parent.context.$implicit.metadata.src,"")),t(n,5,0,n.parent.parent.context.$implicit.metadata.src)})}function wn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,6,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275eld"](2,0,null,null,3,"video",[["controls",""],["width","230"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275eld"](4,0,null,null,0,"source",[["type","video/mp4"]],[[8,"src",4]],null,null,null,null)),(t()(),l["\u0275ted"](5,null,["\n                                                    ","\n                                                "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "]))],null,function(t,n){t(n,4,0,l["\u0275inlineInterpolate"](1,"",n.parent.parent.context.$implicit.metadata.src,"")),t(n,5,0,n.parent.parent.context.$implicit.metadata.src)})}function xn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275eld"](2,0,null,null,1,"iframe",[["frameBorder","0"],["src","https://www.youtube.com/embed/tgbNymZ7vqY"],["width","230"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "]))],null,null)}function kn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["here\n                                                    is ignored"]))],null,null)}function yn(t){return l["\u0275vid"](0,[(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275eld"](1,0,null,null,1,"p",[["style","text-decoration: underline; padding:8px; cursor: pointer;"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.popupUrl(o.g.windowContext,t.parent.parent.parent.context.$implicit.text,"windowName")&&l);return l},null,null)),(t()(),l["\u0275ted"](2,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                                                "]))],null,function(t,n){t(n,2,0,n.component.strip_tags(n.parent.parent.parent.context.$implicit.text))})}function Cn(t){return l["\u0275vid"](0,[(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275eld"](4,0,[["messageEl",1]],null,1,"p",[],[[8,"innerHTML",1]],null,null,null,null)),l["\u0275ppd"](5,1),(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275ted"](-1,null,["  \n                                                    "])),(t()(),l["\u0275ted"](-1,null,["\n                                                    "])),(t()(),l["\u0275ted"](-1,null,["\n                                                "]))],null,function(t,n){var e=n.component;t(n,4,0,l["\u0275unv"](n,4,0,t(n,5,0,l["\u0275nov"](n.parent.parent.parent.parent,0),e.printMessage(n.parent.parent.parent.context.$implicit,l["\u0275nov"](n,4),e))))})}function On(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,8,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275and"](16777216,null,null,1,null,kn)),l["\u0275did"](3,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"],ngIfThen:[1,"ngIfThen"],ngIfElse:[2,"ngIfElse"]},null),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275and"](0,[["contentPopup",2]],null,0,null,yn)),(t()(),l["\u0275ted"](-1,null,["\n\n                                                "])),(t()(),l["\u0275and"](0,[["contentNewTab",2]],null,0,null,Cn)),(t()(),l["\u0275ted"](-1,null,["\n                                            "]))],function(t,n){t(n,3,0,n.component.isPopupUrl(n.parent.parent.context.$implicit.text),l["\u0275nov"](n,5),l["\u0275nov"](n,7))},null)}function _n(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,35,"div",[["class","msg_container base_receive slide-in-left"],["role","messaggio"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n        \n                                        "])),(t()(),l["\u0275ted"](-1,null,["\n\n                                        "])),(t()(),l["\u0275eld"](3,0,null,null,7,"div",[["class","c21-icon-avatar slide-in-left"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275eld"](5,0,null,null,4,"div",[["class","c21-avatar-image profile_image"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275ted"](-1,null,["\n                                                "])),(t()(),l["\u0275eld"](8,0,null,null,0,"img",[["onError","this.src = 'https://s3.eu-west-1.amazonaws.com/tiledesk-widget/dev/2.0.4-beta.7/assets/images/avatar_bot_tiledesk.svg'"]],[[8,"src",4]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275ted"](-1,null,[" \n                                        "])),(t()(),l["\u0275ted"](-1,null,["\n\n\n                                        "])),(t()(),l["\u0275eld"](12,0,null,null,22,"button",[["class","messages msg_receive c21-button-clean"],["tabindex","1521"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.playPausaAudioMsg(t.parent.context.$implicit.uid)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275ted"](-1,null,["\n\n                                            "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,bn)),l["\u0275did"](17,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n                                            "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,vn)),l["\u0275did"](21,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n                                             "])),(t()(),l["\u0275ted"](-1,null,["\n                                             "])),(t()(),l["\u0275and"](16777216,null,null,1,null,wn)),l["\u0275did"](25,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n                                            "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,xn)),l["\u0275did"](29,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n                                            "])),(t()(),l["\u0275ted"](-1,null,["\n                                            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,On)),l["\u0275did"](33,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                                        "])),(t()(),l["\u0275ted"](-1,null,["\n\n                                    "]))],function(t,n){t(n,17,0,"image"==n.parent.context.$implicit.type),t(n,21,0,"audio"==n.parent.context.$implicit.type),t(n,25,0,"video"==n.parent.context.$implicit.type),t(n,29,0,"youtube"==n.parent.context.$implicit.type),t(n,33,0,n.parent.context.$implicit.text)},function(t,n){t(n,8,0,l["\u0275inlineInterpolate"](1,"",n.parent.context.$implicit.sender_urlImage,""))})}function Mn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,2,"time",[],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,[""," "])),l["\u0275pid"](131072,Rt.TimeAgoPipe,[l.ChangeDetectorRef,l.NgZone])],null,function(t,n){t(n,1,0,l["\u0275unv"](n,1,0,l["\u0275nov"](n,2).transform(n.parent.context.$implicit.timestamp)))})}function Pn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,5,"div",[["class","slide-in-left"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,[" \n                                        "])),(t()(),l["\u0275eld"](2,0,null,null,2,"tiledeskwidget-message-attachment",[["style","min-height: 50px; display: table-cell;"]],null,[[null,"eventOpenAttachment"]],function(t,n,e){var l=!0,o=t.component;"eventOpenAttachment"===n&&(l=!1!==o.returnOpenAttachment(e)&&l);return l},Ut,zt)),l["\u0275did"](3,114688,null,0,Nt,[],{message:[0,"message"]},{eventOpenAttachment:"eventOpenAttachment"}),(t()(),l["\u0275ted"](-1,null,["\n                                        "])),(t()(),l["\u0275ted"](-1,null,["\n                                    "]))],function(t,n){t(n,3,0,n.parent.context.$implicit)},null)}function En(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,26,"div",[["class","rowMsg"]],null,null,null,null,null)),l["\u0275did"](1,278528,null,0,rt.NgClass,[l.IterableDiffers,l.KeyValueDiffers,l.ElementRef,l.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),l["\u0275pod"](2,{last:0}),(t()(),l["\u0275ted"](-1,null,["\n    \n                                    "])),(t()(),l["\u0275ted"](-1,null,["\n                                    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,hn)),l["\u0275did"](6,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n\n                                    "])),(t()(),l["\u0275ted"](-1,null,["\n                                    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,mn)),l["\u0275did"](10,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                                    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,_n)),l["\u0275did"](13,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n\n                                    "])),(t()(),l["\u0275eld"](15,0,null,null,6,"div",[["class","time slide-in-left"]],null,null,null,null,null)),l["\u0275did"](16,278528,null,0,rt.NgClass,[l.IterableDiffers,l.KeyValueDiffers,l.ElementRef,l.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),l["\u0275pod"](17,{sender:0}),(t()(),l["\u0275ted"](-1,null,["\n                                        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Mn)),l["\u0275did"](20,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                                    "])),(t()(),l["\u0275ted"](-1,null,["\n\n\n                                    "])),(t()(),l["\u0275ted"](-1,null,["\n                                    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Pn)),l["\u0275did"](25,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n                                "]))],function(t,n){var e=n.component;t(n,1,0,"rowMsg",t(n,2,0,n.context.last)),t(n,6,0,n.context.$implicit.sender==e.g.senderId),t(n,10,0,n.context.$implicit.sender!=e.g.senderId),t(n,13,0,n.context.$implicit.sender!=e.g.senderId);t(n,16,0,"time slide-in-left",t(n,17,0,n.context.$implicit.sender==e.g.senderId)),t(n,20,0,""!==n.context.$implicit.sender&&"{.sv: timestamp}"!==n.context.$implicit.timestamp),t(n,25,0,n.context.$implicit.attributes&&n.context.$implicit.attributes.attachment&&e.isLastMessage(n.context.$implicit.uid))},null)}function Sn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,10,":svg:svg",[["aria-labelledby","altIconTitle"],["height","20"],["viewBox","0 0 24 24"],["width","20"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](1,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](2,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](4,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](6,0,null,null,0,":svg:path",[["d","M4.34 2.93L2.93 4.34 7.29 8.7 7 9H3v6h4l5 5v-6.59l4.18 4.18c-.65.49-1.38.88-2.18 1.11v2.06c1.34-.3 2.57-.92 3.61-1.75l2.05 2.05 1.41-1.41L4.34 2.93zM10 15.17L7.83 13H5v-2h2.83l.88-.88L10 11.41v3.76zM19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zm-7-8l-1.88 1.88L12 7.76zm4.5 8c0-1.77-1.02-3.29-2.5-4.03v1.79l2.48 2.48c.01-.08.02-.16.02-.24z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](8,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](9,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n            "]))],function(t,n){t(n,1,0,t(n,2,0,n.component.g.themeColor))},function(t,n){t(n,9,0,n.component.g.SOUND_OFF)})}function In(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,10,":svg:svg",[["aria-labelledby","altIconTitle"],["height","20"],["viewBox","0 0 24 24"],["width","20"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](1,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](2,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](4,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](6,0,null,null,0,":svg:path",[["d","M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](8,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](9,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n            "]))],function(t,n){t(n,1,0,t(n,2,0,n.component.g.themeColor))},function(t,n){t(n,9,0,n.component.g.SOUND_ON)})}function Ln(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"span",[["class","label-menu-item"]],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,[" ",""]))],null,function(t,n){t(n,1,0,n.component.g.SOUND_OFF)})}function Tn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"span",[["class","label-menu-item"]],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,[" ",""]))],null,function(t,n){t(n,1,0,n.component.g.SOUND_ON)})}function An(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,17,"div",[["class","c21-header-button c21-right"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.dowloadTranscript()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](2,0,null,null,11,":svg:svg",[["aria-labelledby","altIconTitle"],["height","20px"],["role","img"],["viewBox","0 0 24 24"],["width","20px"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](3,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](4,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](7,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](9,0,null,null,0,":svg:path",[["d","M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](11,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](12,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](15,0,null,null,1,"span",[["class","label-menu-item"]],null,null,null,null,null)),(t()(),l["\u0275ted"](16,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n        "]))],function(t,n){t(n,3,0,t(n,4,0,n.component.g.themeColor))},function(t,n){var e=n.component;t(n,12,0,e.g.BUTTON_DOWNLOAD_TRANSCRIPT),t(n,16,0,e.g.BUTTON_DOWNLOAD_TRANSCRIPT)})}function Rn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,18,"div",[["class","c21-header-button c21-right"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.resetConversation()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](2,0,null,null,12,":svg:svg",[["aria-labelledby","altIconTitle"],["height","20"],["viewBox","0 0 24 24"],["width","20"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](3,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](4,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](6,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](8,0,null,null,0,":svg:path",[["d","M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](10,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](12,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](13,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](16,0,null,null,1,"span",[["class","label-menu-item"]],null,null,null,null,null)),(t()(),l["\u0275ted"](17,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n        "]))],function(t,n){t(n,3,0,t(n,4,0,n.component.g.themeColor))},function(t,n){var e=n.component;t(n,13,0,e.g.BUTTON_RESET_CONVERSATION),t(n,17,0,e.g.BUTTON_RESET_CONVERSATION)})}function Nn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,29,"div",[["id","c21-options-menu"]],null,null,null,null,null)),l["\u0275did"](1,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](2,{"border-top":0,"border-top-color":1,color:2}),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](5,0,null,null,13,"div",[["class","c21-header-button c21-right"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.toggleSound()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Sn)),l["\u0275did"](8,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,In)),l["\u0275did"](11,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Ln)),l["\u0275did"](14,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Tn)),l["\u0275did"](17,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,An)),l["\u0275did"](22,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        \n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Rn)),l["\u0275did"](28,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n    "]))],function(t,n){var e=n.component;t(n,1,0,t(n,2,0,"2.4px solid",e.themeColor50,e.g.themeColor)),t(n,8,0,!e.g.isSoundActive),t(n,11,0,e.g.isSoundActive),t(n,14,0,!e.g.isSoundActive),t(n,17,0,e.g.isSoundActive),t(n,22,0,e.messages&&e.messages.length>1&&e.g.allowTranscriptDownload),t(n,28,0,e.g.showResetConversation)},null)}function Fn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"div",[["class","c21-divBudge"],["id","chat21-divBudge"]],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,["",""]))],null,function(t,n){t(n,1,0,n.component.NUM_BADGES)})}function zn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,8,"div",[["id","chat21-buttonToBottom"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.scrollToBottom()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](2,0,null,null,2,":svg:svg",[["height","24"],["viewBox","0 0 24 24"],["width","24"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(t()(),l["\u0275eld"](3,0,null,null,0,":svg:path",[["d","M24 24H0V0h24v24z"],["fill","none"],["opacity",".87"]],null,null,null,null,null)),(t()(),l["\u0275eld"](4,0,null,null,0,":svg:path",[["d","M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Fn)),l["\u0275did"](7,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n    "]))],function(t,n){t(n,7,0,0!=n.component.NUM_BADGES)},null)}function Dn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,16,"label",[["aria-label","allegati"],["class","chat21-textarea-button"],["for","chat21-file"],["id","chat21-start-upload-doc"],["tabindex","1502"]],[[2,"active",null]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](2,0,null,null,9,"span",[["class","v-align-center"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](4,0,null,null,6,":svg:svg",[["height","24"],["viewBox","0 0 28 28"],["width","24"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](5,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](6,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](9,0,null,null,0,":svg:path",[["d","M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](13,0,null,null,2,"input",[["accept","image/*,.pdf,.zip"],["aria-label","seleziona allegato"],["class","inputfile"],["id","chat21-file"],["name","chat21-file"],["tabindex","1503"],["type","file"]],null,[[null,"change"]],function(t,n,e){var l=!0,o=t.component;"change"===n&&(l=!1!==o.detectFiles(e)&&l);return l},null,null)),l["\u0275did"](14,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](15,{display:0,height:1,width:2,overflow:3}),(t()(),l["\u0275ted"](-1,null,["\n        "]))],function(t,n){t(n,5,0,t(n,6,0,n.component.g.themeColor)),t(n,14,0,t(n,15,0,"block","1px","1px","hidden"))},function(t,n){t(n,0,0,!n.component.isFilePendingToUpload)})}function Bn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,13,"button",[["aria-label","microfono"],["class","chat21-textarea-button c21-button-clean"],["for","chat21-file"],["id","chat21-start-mic"],["tabindex","1502"]],[[2,"active",null]],[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.recording(e)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,[" \n            "])),(t()(),l["\u0275eld"](2,0,null,null,10,"span",[["class","v-align-center"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](4,0,null,null,7,":svg:svg",[["aria-label","registra traccia audio"],["height","24"],["viewBox","0 0 28 28"],["width","24"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](5,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](6,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](8,0,null,null,0,":svg:path",[["d","M12,14c1.66,0,3-1.34,3-3V5c0-1.66-1.34-3-3-3S9,3.34,9,5v6C9,12.66,10.34,14,12,14z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](10,0,null,null,0,":svg:path",[["d","M17,11c0,2.76-2.24,5-5,5s-5-2.24-5-5H5c0,3.53,2.61,6.43,6,6.92V21h2v-3.08c3.39-0.49,6-3.39,6-6.92H17z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["    \n                "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n        "]))],function(t,n){t(n,5,0,t(n,6,0,n.component.g.themeColor))},function(t,n){t(n,0,0,!0)})}function Un(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,13,"button",[["aria-label","stop registrazione"],["autofocus",""],["class","chat21-textarea-button c21-button-clean"],["for","chat21-file"],["id","chat21-start-mic"],["tabindex","1502"]],[[2,"active",null]],[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.recording(e)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,[" \n            "])),(t()(),l["\u0275eld"](2,0,null,null,10,"span",[["class","v-align-center"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](4,0,null,null,7,":svg:svg",[["aria-label","termina registrazione"],["height","24"],["viewBox","0 0 28 28"],["width","24"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](5,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](6,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](8,0,null,null,0,":svg:path",[["d","M0 0h24v24H0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](10,0,null,null,0,":svg:path",[["d","M6 6h12v12H6z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n        "]))],function(t,n){t(n,5,0,t(n,6,0,n.component.g.themeColor))},function(t,n){t(n,0,0,!0)})}function Zn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,[["div_mic",1]],null,7,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Bn)),l["\u0275did"](3,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Un)),l["\u0275did"](6,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n    "]))],function(t,n){var e=n.component;t(n,3,0,!e.isRecording),t(n,6,0,e.isRecording)},null)}function Vn(t){return l["\u0275vid"](0,[l["\u0275pid"](0,Zt.LinkyPipe,[]),l["\u0275qud"](402653184,1,{scrollMe:0}),l["\u0275qud"](402653184,2,{afConversationComponent:0}),l["\u0275qud"](671088640,3,{audioMessage:0}),(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275eld"](6,0,[[2,0],["afConversationComponent",1]],null,145,"div",[["aria-modal","true"],["id","chat21-conversation-component"],["onFocus","document.querySelector('[start-focus-chat21-conversation-component]').focus()"],["tabindex","1500"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](9,0,null,null,87,"div",[["class","c21-header"]],null,null,null,null,null)),l["\u0275did"](10,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](11,{"background-color":0}),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275eld"](13,0,null,null,82,"div",[["class","c21-header-container"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](16,0,null,null,78,"div",[["class","c21-header-content"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](19,0,null,null,15,"button",[["class","c21-header-button c21-right c21-close c21-button-clean"],["tabindex","-1"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.returnCloseWidget()&&l);return l},null,null)),l["\u0275did"](20,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](21,{display:0}),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](23,0,null,null,10,":svg:svg",[["aria-labelledby","altIconTitle"],["height","24px"],["role","img"],["viewBox","0 0 24 24"],["width","24px"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](24,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](25,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](27,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](29,0,null,null,0,":svg:path",[["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](31,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](32,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275eld"](36,0,null,null,13,"button",[["class","c21-header-button c21-right c21-button-clean"],["tabindex","-1"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.toggleMenu()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](38,0,null,null,10,":svg:svg",[["aria-labelledby","altIconTitle"],["height","24"],["viewBox","0 0 24 24"],["width","24"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](39,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](40,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](42,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](44,0,null,null,0,":svg:path",[["d","M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](46,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](47,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n                \n                \n\n\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](52,0,null,null,14,"button",[["aria-label"," indietro "],["class","c21-header-button c21-left c21-button-clean"],["tabindex","1530"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.returnHome()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](54,0,null,null,11,":svg:svg",[["aria-labelledby","altIconTitle"],["height","24px"],["role","img"],["viewBox","0 0 24 24"],["width","24px"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](55,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](56,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](59,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](61,0,null,null,0,":svg:path",[["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](63,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](64,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275eld"](68,0,null,null,7,"button",[["aria-label"," autoplay "],["class","c21-header-button c21-left c21-button-clean"],["tabindex","1529"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.toggleAutoplay()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Jt)),l["\u0275did"](71,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Qt)),l["\u0275did"](74,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                \n                    \n      \n\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](78,0,null,null,10,"div",[["class","c21-title"]],null,null,null,null,null)),l["\u0275did"](79,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](80,{color:0}),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](83,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),l["\u0275ted"](84,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](86,0,null,null,1,"span",[["id","agent-available-status"]],null,null,null,null,null)),(t()(),l["\u0275ted"](87,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](90,0,null,null,3,"p",[["class","c21-header-writing"]],null,null,null,null,null)),l["\u0275did"](91,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](92,{color:0}),(t()(),l["\u0275ted"](93,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](99,0,null,null,48,"div",[["class","c21-body"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.hideMenuOptions()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](101,0,null,null,45,"div",[["class","c21-body-container"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](103,0,null,null,10,"div",[["class","c21-body-header"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n\n            "])),(t()(),l["\u0275eld"](115,0,null,null,30,"div",[["aria-label"," messaggi della conversazione: "],["class","c21-body-content"],["tabindex","1520"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](118,0,null,null,10,"div",[["class","chat21-spinner"],["id","chat21-spinner"]],[[2,"active",null]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](120,0,null,null,0,"div",[["class","chat21-bounce1"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](122,0,null,null,0,"div",[["class","chat21-bounce2"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](124,0,null,null,0,"div",[["class","chat21-bounce3"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](126,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["loading"])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275eld"](130,0,null,null,14,"div",[["class","chat21-sheet-content"],["id","chat21-sheet-content"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](132,0,null,null,11,"div",[["class","chat21-conversation-parts-container"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](134,0,[[1,0],["scrollMe",1]],null,8,"div",[["id","scroll-me"]],null,[[null,"scroll"]],function(t,n,e){var l=!0,o=t.component;"scroll"===n&&(l=!1!==o.onScroll(e)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n                            "])),(t()(),l["\u0275eld"](136,0,null,null,5,"div",[["class","c21-contentScroll"],["name","c21-contentScroll"]],[[8,"id",0]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,[" "])),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275and"](16777216,null,null,1,null,En)),l["\u0275did"](140,802816,null,0,rt.NgForOf,[l.ViewContainerRef,l.TemplateRef,l.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Nn)),l["\u0275did"](150,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275ted"](-1,null,["\n\n"])),(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275eld"](154,0,null,null,44,"div",[["id","chat21-footer"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.hideMenuOptions()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,zn)),l["\u0275did"](157,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275eld"](159,0,null,null,9,"div",[["class","visible-text-area"]],[[2,"active",null]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](161,0,[["textbox",1]],null,6,"textarea",[["aria-labelledby","altTextArea"],["class","f21textarea c21-button-clean"],["id","chat21-main-message-context"],["inputTextArea",""],["rows","1"],["start-focus-chat21-conversation-component",""],["tabindex","1501"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keypress"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,n,e){var o=!0,i=t.component;"input"===n&&(o=!1!==l["\u0275nov"](t,162)._handleInput(e.target.value)&&o);"blur"===n&&(o=!1!==l["\u0275nov"](t,162).onTouched()&&o);"compositionstart"===n&&(o=!1!==l["\u0275nov"](t,162)._compositionStart()&&o);"compositionend"===n&&(o=!1!==l["\u0275nov"](t,162)._compositionEnd(e.target.value)&&o);"ngModelChange"===n&&(o=!1!==(i.textInputTextArea=e)&&o);"ngModelChange"===n&&(o=!1!==i.resizeInputField()&&o);"keypress"===n&&(o=!1!==i.onkeypress(e)&&o);return o},null,null)),l["\u0275did"](162,16384,null,0,Vt.c,[l.Renderer2,l.ElementRef,[2,Vt.a]],null,null),l["\u0275prd"](1024,null,Vt.h,function(t){return[t]},[Vt.c]),l["\u0275did"](164,671744,null,0,Vt.l,[[8,null],[8,null],[8,null],[2,Vt.h]],{model:[0,"model"]},{update:"ngModelChange"}),l["\u0275prd"](2048,null,Vt.i,null,[Vt.l]),l["\u0275did"](166,16384,null,0,Vt.j,[Vt.i],null,null),(t()(),l["\u0275ted"](-1,null,["        "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n\n    "])),(t()(),l["\u0275eld"](170,0,[["div_attached",1]],null,18,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Dn)),l["\u0275did"](173,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](176,0,null,null,11,"div",[["class","chat21-textarea-button"],["id","chat21-button-send"],["tabindex","-1"]],[[2,"active",null],[2,"active",null]],[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.onSendPressed(e)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](178,0,null,null,8,"span",[["class","v-align-center"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](180,0,null,null,5,":svg:svg",[["height","20"],["viewBox","0 0 24 24"],["width","20"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](181,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](182,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](184,0,null,null,0,":svg:path",[["d","M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Zn)),l["\u0275did"](191,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n    \n    \n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](194,0,null,null,0,"span",[["id","testFocus"],["onFocus","document.querySelector('[start-focus-chat21-conversation-component]').focus()"],["tabindex","1599"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](196,0,null,null,1,"span",[["id","altTextArea"],["style","display: none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["scrivi la tua domanda"])),(t()(),l["\u0275ted"](-1,null,["\n\n"])),(t()(),l["\u0275ted"](-1,null,["\n\n"]))],function(t,n){var e=n.component;t(n,10,0,t(n,11,0,e.g.themeColor)),t(n,20,0,t(n,21,0,e.g.hideHeaderCloseButton?"none":"flex")),t(n,24,0,t(n,25,0,e.g.themeForegroundColor)),t(n,39,0,t(n,40,0,e.g.themeForegroundColor)),t(n,55,0,t(n,56,0,e.g.themeForegroundColor)),t(n,71,0,!e.g.autoplay_activated),t(n,74,0,e.g.autoplay_activated),t(n,79,0,t(n,80,0,e.g.themeForegroundColor)),t(n,91,0,t(n,92,0,e.g.themeForegroundColor)),t(n,140,0,e.messages),t(n,150,0,e.isMenuShow),t(n,157,0,e.showButtonToBottom),t(n,164,0,e.textInputTextArea),t(n,173,0,0==e.g.hideAttachButton),t(n,181,0,t(n,182,0,e.g.themeColor)),t(n,191,0,e.g.showMicButton)},function(t,n){var e=n.component;t(n,32,0,e.g.BUTTON_CLOSE_TO_ICON),t(n,47,0,e.g.OPTIONS),t(n,64,0,e.g.PREV_CONVERSATIONS),t(n,84,0,e.g.recipientFullname),t(n,87,0,e.g.areAgentsAvailableText),t(n,93,0,e.writingMessage),t(n,118,0,!e.isNewConversation&&e.messages&&0==e.messages.length),t(n,136,0,l["\u0275inlineInterpolate"](1,"",e.idDivScroll,"")),t(n,159,0,!e.isFilePendingToUpload),t(n,161,0,l["\u0275inlineInterpolate"](1,"",e.g.LABEL_PLACEHOLDER,""),l["\u0275nov"](n,166).ngClassUntouched,l["\u0275nov"](n,166).ngClassTouched,l["\u0275nov"](n,166).ngClassPristine,l["\u0275nov"](n,166).ngClassDirty,l["\u0275nov"](n,166).ngClassValid,l["\u0275nov"](n,166).ngClassInvalid,l["\u0275nov"](n,166).ngClassPending),t(n,176,0,!e.isFilePendingToUpload,e.textInputTextArea)})}l["\u0275ccf"]("tiledeskwidget-conversation",Kt,function(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"tiledeskwidget-conversation",[],null,[["window","resize"]],function(t,n,e){var o=!0;return"window:resize"===n&&(o=!1!==l["\u0275nov"](t,1).onResize(e)&&o),o},Vn,$t)),l["\u0275did"](1,4964352,null,0,Kt,[l.ElementRef,Z,l.NgZone,G,Wt,K,nt,W,Gt.c,it,H,Mt,r,Xt],null,null)],function(t,n){t(n,1,0)},null)},{recipientId:"recipientId",elRoot:"elRoot",conversation:"conversation",isOpen:"isOpen"},{eventClose:"eventClose",eventCloseWidget:"eventCloseWidget"},[]);var Yn=function(){function t(t,n,e){this.g=t,this.messagingService=n,this.storageService=e,this.eventDepartmentSelected=new l.EventEmitter,this.eventClosePage=new l.EventEmitter,this.eventOpenPage=new l.EventEmitter}return t.prototype.ngOnInit=function(){this.g.wdLog(["ngOnInit :::: SelectionDepartmentComponent"])},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){t.afSelectionDepartment&&t.afSelectionDepartment.nativeElement.focus()},1e3)},t.prototype.setDepartment=function(t){if(this.g.setParameter("departmentSelected",t),this.g.attributes){var n=this.g.attributes;this.g.setAttributeParameter("departmentId",t._id),this.g.setAttributeParameter("departmentName",t.name),this.storageService.setItem("attributes",JSON.stringify(n)),this.g.wdLog(["setAttributes setDepartment: ",JSON.stringify(n)])}this.closePage()},t.prototype.onSelectDepartment=function(t){this.g.wdLog([" onSelectDepartment: ",t]),this.setDepartment(t),this.eventDepartmentSelected.emit(t)},t.prototype.openPage=function(){this.g.wdLog([" openPage: "]),this.eventOpenPage.emit()},t.prototype.closePage=function(){this.g.wdLog([" closePage:  SelectDepartment"]),this.eventClosePage.emit()},t}(),jn=[["#chat21-selection-department[_ngcontent-%COMP%]{background-color:#fff;width:100%;height:100%}#chat21-selection-department[_ngcontent-%COMP%]   .c21-button-department[_ngcontent-%COMP%]{width:100%;text-align:left}#chat21-selection-department[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]{overflow:hidden;width:100%;height:52px}#chat21-selection-department[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-button[_ngcontent-%COMP%]   .c21-close-button.c21-small[_ngcontent-%COMP%]{width:31px;height:31px}#chat21-selection-department[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-button[_ngcontent-%COMP%]   .c21-close-button.c21-small[_ngcontent-%COMP%]   .c21-close-button-body[_ngcontent-%COMP%]{width:31px;height:31px;-webkit-appearance:initial;border:none}#chat21-selection-department[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;margin:0 auto}#chat21-selection-department[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-container[_ngcontent-%COMP%]   .c21-header-content[_ngcontent-%COMP%]{width:100%;height:auto;padding:0 40px}#chat21-selection-department[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-container[_ngcontent-%COMP%]   .c21-header-content[_ngcontent-%COMP%]   .c21-title[_ngcontent-%COMP%]{display:inline-block;width:100%;height:auto;padding:0;text-align:center;font-size:1.8em;line-height:normal}#chat21-selection-department[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]{padding:0}#chat21-selection-department[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-header[_ngcontent-%COMP%]{position:relative;top:0;bottom:0;left:0;right:0;padding:20px 30px 0}#chat21-selection-department[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-header[_ngcontent-%COMP%]   .c21-message-field[_ngcontent-%COMP%]{padding:0;margin:0;line-height:1.2em;color:#aaa;font-size:1.6em;text-align:center;word-wrap:break-word}#chat21-selection-department[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]{padding:0 0 40px;position:relative}.chat21-content-modal-select[_ngcontent-%COMP%]{margin:0 0 2em;list-style-type:none;padding:0;height:auto;overflow-y:auto}.chat21-content-modal-select[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{cursor:pointer;position:relative;margin:15px 0;padding:4px 20px;font-size:1.4em;text-align:left;color:#1a1a1a;line-height:normal;display:block}.chat21-content-modal-select[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:rgba(191,191,191,.2)}.chat21-content-modal-select[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{position:relative}.chat21-content-modal-select[_ngcontent-%COMP%]   .chat21-badge[_ngcontent-%COMP%]{-webkit-box-sizing:initial;box-sizing:initial;display:inline-block;font-size:12px;padding:0;line-height:24px;height:24px;width:24px;border-radius:50%;margin:0 10px 0 0;text-align:center;font-weight:500}.chat21-content-modal-select[_ngcontent-%COMP%]   .chat21-name-list[_ngcontent-%COMP%]{font-size:18px;font-weight:300;line-height:24px}.chat21-content-modal-select[_ngcontent-%COMP%]   .chat21-title[_ngcontent-%COMP%]{margin-left:10px;font-weight:initial;line-height:normal}"]],Xn=l["\u0275crt"]({encapsulation:0,styles:jn,data:{}});function Wn(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,12,"li",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](2,0,null,null,9,"button",[["class","c21-button-department c21-button-clean"],["tabindex","1202"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.onSelectDepartment(t.context.$implicit)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](4,0,null,null,3,"span",[["class","chat21-badge"]],null,null,null,null,null)),l["\u0275did"](5,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](6,{"background-color":0,color:1}),(t()(),l["\u0275ted"](7,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](9,0,null,null,1,"span",[["class","chat21-name-list"]],null,null,null,null,null)),(t()(),l["\u0275ted"](10,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                        "]))],function(t,n){var e=n.component;t(n,5,0,t(n,6,0,e.g.themeColor,e.g.themeForegroundColor))},function(t,n){t(n,7,0,n.context.index+1),t(n,10,0,null==n.context.$implicit?null:n.context.$implicit.name)})}function Hn(t){return l["\u0275vid"](0,[l["\u0275qud"](402653184,1,{afSelectionDepartment:0}),(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275ted"](-1,null,["\n\n"])),(t()(),l["\u0275eld"](3,0,[[1,0],["afSelectionDepartment",1]],null,65,"div",[["aria-modal","true"],["id","chat21-selection-department"],["onFocus","document.querySelector('[start-focus-chat21-selection-department]').focus()"],["tabindex","1200"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](6,0,null,null,37,"div",[["class","c21-header"]],null,null,null,null,null)),l["\u0275did"](7,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](8,{"background-color":0}),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](10,0,null,null,32,"div",[["class","c21-header-container"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                \n                "])),(t()(),l["\u0275eld"](13,0,null,null,17,"div",[["class","c21-header-button"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](15,0,null,null,14,"div",[["class","c21-close-button c21-small"],["role","button"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](17,0,null,null,11,"button",[["aria-label"," chiudi pannello"],["class","c21-close-button-body"],["tabindex","1210"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.closePage()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](19,0,null,null,8,":svg:svg",[["aria-labelledby","altIconTitle"],["height","20px"],["role","img"],["viewBox","0 0 24 24"],["width","20px"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](20,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](21,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](23,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](25,0,null,null,0,":svg:path",[["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](33,0,null,null,8,"div",[["class","c21-header-content"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](36,0,null,null,4,"div",[["class","c21-title"]],null,null,null,null,null)),l["\u0275did"](37,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](38,{color:0}),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n            "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](46,0,null,null,19,"div",[["class","c21-body"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](48,0,null,null,16,"div",[["class","c21-body-container"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n    \n                "])),(t()(),l["\u0275eld"](50,0,null,null,4,"div",[["class","c21-body-header"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](52,0,null,null,1,"div",[["class","c21-message-field"],["start-focus-chat21-selection-department",""],["tabindex","1201"]],null,null,null,null,null)),(t()(),l["\u0275ted"](53,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275eld"](56,0,null,null,7,"div",[["class","c21-body-content"],["onFocus","document.querySelector('[start-focus]').focus()"],["tabindex","211"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](58,0,null,null,4,"ul",[["class","chat21-content-modal-select"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Wn)),l["\u0275did"](61,802816,null,0,rt.NgForOf,[l.ViewContainerRef,l.TemplateRef,l.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n            "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n    \n        "])),(t()(),l["\u0275eld"](67,0,null,null,0,"span",[["onFocus","document.querySelector('[start-focus-chat21-selection-department]').focus()"],["style","height:0px"],["tabindex","1299"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,[" \n"])),(t()(),l["\u0275ted"](-1,null,[" \n   "]))],function(t,n){var e=n.component;t(n,7,0,t(n,8,0,e.g.themeColor)),t(n,20,0,t(n,21,0,e.g.themeForegroundColor)),t(n,37,0,t(n,38,0,e.g.themeForegroundColor)),t(n,61,0,e.g.departments)},function(t,n){t(n,53,0,n.component.g.LABEL_SELECT_TOPIC)})}l["\u0275ccf"]("tiledeskwidget-selection-department",Yn,function(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"tiledeskwidget-selection-department",[],null,null,null,Hn,Xn)),l["\u0275did"](1,4308992,null,0,Yn,[Z,G,H],null,null)],function(t,n){t(n,1,0)},null)},{},{eventDepartmentSelected:"eventDepartmentSelected",eventClosePage:"eventClosePage",eventOpenPage:"eventOpenPage"},[]);var Gn=function(){function t(t,n,e){this.g=t,this.formBuilder=n,this.storageService=e,this.eventClosePage=new l.EventEmitter,this.eventCloseForm=new l.EventEmitter}return t.prototype.ngOnInit=function(){this.initialize()},t.prototype.initialize=function(){this.preChatFormGroup=this.createForm(this.formBuilder),this.preChatFormGroup&&this.subcribeToFormChanges()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){t.afPrechatFormComponent&&t.afPrechatFormComponent.nativeElement.focus()},1e3)},t.prototype.createForm=function(t){return t.group({email:[this.userEmail,Vt.n.compose([Vt.n.required,Vt.n.pattern(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)])],name:[this.userFullname,Vt.n.compose([Vt.n.minLength(2),Vt.n.required])]})},t.prototype.subcribeToFormChanges=function(){var t=this;this.preChatFormGroup.valueChanges.subscribe(function(n){t.userFullname=n.name,t.userEmail=n.email})},t.prototype.openNewConversation=function(){if(this.g.attributes){var t=this.g.attributes;this.g.setAttributeParameter("userFullname",this.userFullname),this.g.setAttributeParameter("userEmail",this.userEmail),this.storageService.setItem("attributes",JSON.stringify(t)),this.eventCloseForm.emit()}},t.prototype.returnClosePage=function(){this.eventClosePage.emit()},t}(),Kn=[["#chat21-prechat-form[_ngcontent-%COMP%]{background-color:#fff;width:100%;height:100%}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]{overflow:hidden;width:100%;height:52px}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-button[_ngcontent-%COMP%]   .c21-close-button.c21-small[_ngcontent-%COMP%]{width:31px;height:31px}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-button[_ngcontent-%COMP%]   .c21-close-button.c21-small[_ngcontent-%COMP%]   .c21-close-button-body[_ngcontent-%COMP%]{width:31px;height:31px;-webkit-appearance:initial;border:none}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;margin:0 auto}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-container[_ngcontent-%COMP%]   .c21-header-content[_ngcontent-%COMP%]{width:auto;height:auto;top:6px;left:40px;right:40px}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-container[_ngcontent-%COMP%]   .c21-header-content[_ngcontent-%COMP%]   .c21-title[_ngcontent-%COMP%]{display:inline-block;width:100%;height:auto;padding:0;margin:10px 0;text-align:center;font-size:1.6em;line-height:normal}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]{padding:0;margin:20px auto}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-header[_ngcontent-%COMP%]{padding:10px 30px;position:relative;left:0;right:0}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-header[_ngcontent-%COMP%]   .c21-form-message-field[_ngcontent-%COMP%]{padding:0;margin:0;line-height:1.2em;color:#616161;font-size:1.5em;text-align:center;word-wrap:break-word}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]{padding:10px 30px;position:relative}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .c21-label-button[_ngcontent-%COMP%]{font-size:1.2em}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]{padding:0 0 30px}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .text-danger[_ngcontent-%COMP%]{color:#a94442;font-size:1em;min-height:20px;background-color:#fff;margin:0 10px}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]{overflow:hidden;height:36px;border-bottom:1px solid rgba(211,212,213,.4);border-radius:3px;background-color:#fff;margin:0;position:relative;padding:0;width:100%;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], #chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{width:100%;margin:0;border:0;padding:12px 0;background-color:#fff;vertical-align:middle}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{display:block;padding:11px 10px 8px;color:#616161;font-size:1.3em;font-weight:300;line-height:1.2em;-webkit-box-shadow:none;box-shadow:none}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#b3b6b8;font-weight:initial;opacity:1}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-ms-input-placeholder{opacity:1;color:#b3b6b8;font-weight:initial}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-ms-input-placeholder{color:#b3b6b8;font-weight:initial;opacity:1}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#b3b6b8;font-weight:initial;opacity:1}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:active, #chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus, #chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:hover, #chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:visited{-webkit-box-shadow:none;box-shadow:none;background-color:#fff;outline:0}#chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-webkit-autofill, #chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-webkit-autofill:active, #chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-webkit-autofill:focus, #chat21-prechat-form[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   #chat21-form-container[_ngcontent-%COMP%]   .c21-input-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-webkit-autofill:hover{-webkit-transition:background-color 5000s ease-in-out;transition:background-color 5000s ease-in-out}"]],qn=l["\u0275crt"]({encapsulation:0,styles:Kn,data:{}});function $n(t){return l["\u0275vid"](0,[l["\u0275qud"](402653184,1,{afPrechatFormComponent:0}),(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275eld"](2,0,[[1,0],["afPrechatFormComponent",1]],null,121,"div",[["aria-modal","true"],["id","chat21-prechat-form"],["onFocus","document.querySelector('[start-focus-chat21-prechat-form]').focus()"],["tabindex","1400"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](5,0,null,null,37,"div",[["class","c21-header"]],null,null,null,null,null)),l["\u0275did"](6,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](7,{"background-color":0}),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](9,0,null,null,32,"div",[["class","c21-header-container"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](12,0,null,null,17,"div",[["class","c21-header-button"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](14,0,null,null,14,"div",[["class","c21-close-button c21-small"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](16,0,null,null,11,"button",[["aria-label"," chiudi pannello"],["class","c21-close-button-body"],["tabindex","1490"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.returnClosePage()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](18,0,null,null,8,":svg:svg",[["aria-labelledby","altIconTitle"],["height","20px"],["role","img"],["viewBox","0 0 24 24"],["width","20px"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](19,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](20,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](22,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](24,0,null,null,0,":svg:path",[["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n                 "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](32,0,null,null,8,"div",[["class","c21-header-content"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](35,0,null,null,4,"div",[["class","c21-title"]],null,null,null,null,null)),l["\u0275did"](36,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](37,{color:0}),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n            "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n    \n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](45,0,null,null,77,"div",[["class","c21-body"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n            "])),(t()(),l["\u0275eld"](47,0,null,null,72,"div",[["class","c21-body-container"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275eld"](49,0,null,null,4,"div",[["class","c21-body-header"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](51,0,null,null,1,"div",[["class","c21-form-message-field"],["start-focus-chat21-prechat-form",""],["tabindex","1410"]],null,null,null,null,null)),(t()(),l["\u0275ted"](52,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275eld"](55,0,null,null,63,"div",[["class","c21-body-content"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n                    "])),(t()(),l["\u0275eld"](57,0,null,null,38,"form",[["id","chat21-form-container"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(t,n,e){var o=!0;"submit"===n&&(o=!1!==l["\u0275nov"](t,59).onSubmit(e)&&o);"reset"===n&&(o=!1!==l["\u0275nov"](t,59).onReset()&&o);return o},null,null)),l["\u0275did"](58,16384,null,0,Vt.p,[],null,null),l["\u0275did"](59,540672,null,0,Vt.f,[[8,null],[8,null]],{form:[0,"form"]},null),l["\u0275prd"](2048,null,Vt.b,null,[Vt.f]),l["\u0275did"](61,16384,null,0,Vt.k,[Vt.b],null,null),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](64,0,null,null,8,"div",[["class","c21-input-container"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](66,0,null,null,5,"input",[["formControlName","name"],["id","form-field-name"],["tabindex","1411"],["type","text"]],[[1,"disabled",0],[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,n,e){var o=!0;"input"===n&&(o=!1!==l["\u0275nov"](t,67)._handleInput(e.target.value)&&o);"blur"===n&&(o=!1!==l["\u0275nov"](t,67).onTouched()&&o);"compositionstart"===n&&(o=!1!==l["\u0275nov"](t,67)._compositionStart()&&o);"compositionend"===n&&(o=!1!==l["\u0275nov"](t,67)._compositionEnd(e.target.value)&&o);return o},null,null)),l["\u0275did"](67,16384,null,0,Vt.c,[l.Renderer2,l.ElementRef,[2,Vt.a]],null,null),l["\u0275prd"](1024,null,Vt.h,function(t){return[t]},[Vt.c]),l["\u0275did"](69,671744,null,0,Vt.e,[[3,Vt.b],[8,null],[8,null],[2,Vt.h]],{name:[0,"name"]},null),l["\u0275prd"](2048,null,Vt.i,null,[Vt.e]),l["\u0275did"](71,16384,null,0,Vt.j,[Vt.i],null,null),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](74,0,null,null,4,"div",[["class","text-danger"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](76,0,null,null,1,"small",[],[[8,"hidden",0]],null,null,null,null)),(t()(),l["\u0275ted"](77,null,["\n                                ","\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](80,0,null,null,8,"div",[["class","c21-input-container"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](82,0,null,null,5,"input",[["formControlName","email"],["id","form-field-email"],["tabindex","1412"],["type","email"]],[[1,"disabled",0],[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,n,e){var o=!0;"input"===n&&(o=!1!==l["\u0275nov"](t,83)._handleInput(e.target.value)&&o);"blur"===n&&(o=!1!==l["\u0275nov"](t,83).onTouched()&&o);"compositionstart"===n&&(o=!1!==l["\u0275nov"](t,83)._compositionStart()&&o);"compositionend"===n&&(o=!1!==l["\u0275nov"](t,83)._compositionEnd(e.target.value)&&o);return o},null,null)),l["\u0275did"](83,16384,null,0,Vt.c,[l.Renderer2,l.ElementRef,[2,Vt.a]],null,null),l["\u0275prd"](1024,null,Vt.h,function(t){return[t]},[Vt.c]),l["\u0275did"](85,671744,null,0,Vt.e,[[3,Vt.b],[8,null],[8,null],[2,Vt.h]],{name:[0,"name"]},null),l["\u0275prd"](2048,null,Vt.i,null,[Vt.e]),l["\u0275did"](87,16384,null,0,Vt.j,[Vt.i],null,null),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](90,0,null,null,4,"div",[["class","text-danger"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](92,0,null,null,1,"small",[],[[8,"hidden",0]],null,null,null,null)),(t()(),l["\u0275ted"](93,null,["\n                                ","\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    \n                    "])),(t()(),l["\u0275eld"](97,0,null,null,20,"button",[["class","c21-button-primary"],["tabindex","1413"]],[[8,"disabled",0]],[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.openNewConversation()&&l);return l},null,null)),l["\u0275did"](98,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](99,{"background-color":0,"border-color":1,color:2}),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](101,0,null,null,10,"span",[["class","v-align-center"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](103,0,null,null,7,":svg:svg",[["height","18"],["viewBox","0 0 24 24"],["width","18"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](105,0,null,null,2,":svg:path",[["d","M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"]],null,null,null,null,null)),l["\u0275did"](106,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](107,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](109,0,null,null,0,":svg:path",[["d","M0 0h24v24H0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](113,0,null,null,1,"span",[["class","v-align-center c21-label-button"]],null,null,null,null,null)),(t()(),l["\u0275ted"](114,null,["\n                            ","\n                        "])),(t()(),l["\u0275ted"](-1,null,["  \n                        "])),(t()(),l["\u0275eld"](116,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275ted"](-1,null,["\n\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](121,0,null,null,0,"span",[["onFocus","document.querySelector('[start-focus-chat21-prechat-form]').focus()"],["tabindex","1499"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        \n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n"]))],function(t,n){var e=n.component;t(n,6,0,t(n,7,0,e.g.themeColor)),t(n,19,0,t(n,20,0,e.g.themeForegroundColor)),t(n,36,0,t(n,37,0,e.g.themeForegroundColor)),t(n,59,0,e.preChatFormGroup);t(n,69,0,"name");t(n,85,0,"email"),t(n,98,0,t(n,99,0,e.g.themeColor,e.g.themeColor,e.g.themeForegroundColor)),t(n,106,0,t(n,107,0,e.g.themeForegroundColor))},function(t,n){var e=n.component;t(n,52,0,e.g.LABEL_COMPLETE_FORM),t(n,57,0,l["\u0275nov"](n,61).ngClassUntouched,l["\u0275nov"](n,61).ngClassTouched,l["\u0275nov"](n,61).ngClassPristine,l["\u0275nov"](n,61).ngClassDirty,l["\u0275nov"](n,61).ngClassValid,l["\u0275nov"](n,61).ngClassInvalid,l["\u0275nov"](n,61).ngClassPending),t(n,66,0,e.g.isOpenPrechatForm?null:"",l["\u0275inlineInterpolate"](1,"",e.g.LABEL_FIELD_NAME,""),l["\u0275nov"](n,71).ngClassUntouched,l["\u0275nov"](n,71).ngClassTouched,l["\u0275nov"](n,71).ngClassPristine,l["\u0275nov"](n,71).ngClassDirty,l["\u0275nov"](n,71).ngClassValid,l["\u0275nov"](n,71).ngClassInvalid,l["\u0275nov"](n,71).ngClassPending),t(n,76,0,e.preChatFormGroup.controls.name.valid||e.preChatFormGroup.controls.name.pristine),t(n,77,0,e.g.LABEL_ERROR_FIELD_NAME),t(n,82,0,e.g.isOpenPrechatForm?null:"",l["\u0275inlineInterpolate"](1,"",e.g.LABEL_FIELD_EMAIL,""),l["\u0275nov"](n,87).ngClassUntouched,l["\u0275nov"](n,87).ngClassTouched,l["\u0275nov"](n,87).ngClassPristine,l["\u0275nov"](n,87).ngClassDirty,l["\u0275nov"](n,87).ngClassValid,l["\u0275nov"](n,87).ngClassInvalid,l["\u0275nov"](n,87).ngClassPending),t(n,92,0,e.preChatFormGroup.controls.email.valid||e.preChatFormGroup.controls.email.pristine),t(n,93,0,e.g.LABEL_ERROR_FIELD_EMAIL),t(n,97,0,!e.preChatFormGroup.controls.name.valid||!e.preChatFormGroup.controls.email.valid),t(n,114,0,e.g.LABEL_START_NW_CONV)})}l["\u0275ccf"]("tiledeskwidget-prechat-form",Gn,function(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"tiledeskwidget-prechat-form",[],null,null,null,$n,qn)),l["\u0275did"](1,4308992,null,0,Gn,[Z,Vt.d,H],null,null)],function(t,n){t(n,1,0)},null)},{},{eventClosePage:"eventClosePage",eventCloseForm:"eventCloseForm"},[]);var Jn=function(){function t(t,n){this.starRatingWidgetService=t,this.g=n,this.eventClosePage=new l.EventEmitter,this.eventCloseRate=new l.EventEmitter}return t.prototype.ngOnInit=function(){this.step=0},t.prototype.dowloadTranscript=function(){this.starRatingWidgetService._dowloadTranscript(this.g.recipientId)},t.prototype.openRate=function(t){var n=this;this.rate=t,setTimeout(function(){n.step=1},300)},t.prototype.mouseOverRate=function(t){this.mouseRate=t},t.prototype.nextStep=function(){this.step=this.step+1},t.prototype.prevStep=function(){this.step=this.step-1},t.prototype.sendRate=function(){this.message=document.getElementById("chat21-message-rate-context").value,this.g.wdLog(["sendRate!!!::",this.message]);var t=this;this.starRatingWidgetService.httpSendRate(this.rate,this.message,this.g.recipientId).subscribe(function(n){t.g.wdLog(["OK sender ::::",n]),t.nextStep()},function(n){t.nextStep()},function(){})},t.prototype.closeRate=function(){this.starRatingWidgetService.setOsservable(!1),this.step=0,this.returnClosePage()},t.prototype.ngOnDestroy=function(){this.step=0},t.prototype.returnClosePage=function(){this.g.wdLog([" closePage: "]),this.step=0,this.starRatingWidgetService.setOsservable(!1),this.eventClosePage.emit()},t}(),Qn=[".star.active[_ngcontent-%COMP%]{\n    fill:#FFD700;\n}\nsvg.star[_ngcontent-%COMP%]{\n    fill: #efefef;\n}\nsvg.star[_ngcontent-%COMP%]:hover{\n    fill: #FFD700;\n}",["#chat21-star-rating-widget[_ngcontent-%COMP%]{background-color:#fff;width:100%;height:100%;font-size:10px}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-button[_ngcontent-%COMP%]{z-index:1}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-button[_ngcontent-%COMP%]   .c21-close-button[_ngcontent-%COMP%]{width:31px;height:31px}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-button[_ngcontent-%COMP%]   .c21-close-button[_ngcontent-%COMP%]   .c21-close-button-body[_ngcontent-%COMP%]{width:31px;height:31px;-webkit-appearance:initial;border:none}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-header[_ngcontent-%COMP%]   .c21-header-container[_ngcontent-%COMP%]   .c21-header-content[_ngcontent-%COMP%]   .c21-title[_ngcontent-%COMP%]{position:absolute;left:45px;right:45px;display:inline-block;width:auto;height:1.6em;line-height:1.6em;padding:0;margin:13px 0;text-align:center;font-size:1.6em;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]{overflow:hidden}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-header[_ngcontent-%COMP%]{padding:10px 30px}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-header[_ngcontent-%COMP%]   .c21-message-field[_ngcontent-%COMP%]{padding:0;margin:0;line-height:1.2em;color:#616161;font-size:1.5em;text-align:center;word-wrap:break-word}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]{padding:10px 0}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .default-title[_ngcontent-%COMP%]{font-size:2em;font-family:Roboto;color:#1a1a1a}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .default-text[_ngcontent-%COMP%]{font-size:1.4em;font-family:Roboto;color:#1a1a1a;margin:0 0 4px}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-body[_ngcontent-%COMP%]   .c21-body-content[_ngcontent-%COMP%]   .step-rate[_ngcontent-%COMP%]{text-align:center;position:relative;margin:10px 0}#chat21-star-rating-widget[_ngcontent-%COMP%]   .chat21-rating[_ngcontent-%COMP%]{border:none;width:190px;min-height:30px;margin:20px auto;font-size:1.6em;padding:0}#chat21-star-rating-widget[_ngcontent-%COMP%]   .chat21-rating[_ngcontent-%COMP%]   input.c21-input-star[_ngcontent-%COMP%]{border:0;width:1px;height:1px;overflow:hidden;position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);opacity:0}#chat21-star-rating-widget[_ngcontent-%COMP%]   .chat21-rating[_ngcontent-%COMP%]   label.c21-button[_ngcontent-%COMP%]{position:relative;display:inline;float:none;color:#c8c8c8}#chat21-star-rating-widget[_ngcontent-%COMP%]   .chat21-rating[_ngcontent-%COMP%]   label.c21-button[_ngcontent-%COMP%]:before{margin:5px;display:inline-block;font-size:24px;color:#ccc;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#chat21-star-rating-widget[_ngcontent-%COMP%]   .chat21-rating[_ngcontent-%COMP%]   input.c21-input-star[_ngcontent-%COMP%]:checked ~ label.c21-button[_ngcontent-%COMP%]:before{color:#ffc107}#chat21-star-rating-widget[_ngcontent-%COMP%]   .chat21-rating[_ngcontent-%COMP%]   label.c21-button[_ngcontent-%COMP%]:hover ~ label.c21-button[_ngcontent-%COMP%]:before{color:#ffdb70}#chat21-star-rating-widget[_ngcontent-%COMP%]   .chat21-rating[_ngcontent-%COMP%]   label.c21-button[_ngcontent-%COMP%]:hover:before{color:#ffc107}#chat21-star-rating-widget[_ngcontent-%COMP%]   .step-rate[_ngcontent-%COMP%]   .chat21-stars[_ngcontent-%COMP%]{padding:0;position:absolute;text-align:right;display:block;top:0;right:40px;width:70px;line-height:20px;fill:gold}#chat21-star-rating-widget[_ngcontent-%COMP%]   .step-rate[_ngcontent-%COMP%]   svg.star[_ngcontent-%COMP%]{fill:#efefef}#chat21-star-rating-widget[_ngcontent-%COMP%]   .step-rate[_ngcontent-%COMP%]   svg.star.active[_ngcontent-%COMP%], #chat21-star-rating-widget[_ngcontent-%COMP%]   .step-rate[_ngcontent-%COMP%]   svg.star[_ngcontent-%COMP%]:hover{fill:gold}#chat21-star-rating-widget[_ngcontent-%COMP%]   .step-rate[_ngcontent-%COMP%]   .fa-star[_ngcontent-%COMP%]:before{margin:0;font-size:1em;display:inline-block;color:gold}#chat21-star-rating-widget[_ngcontent-%COMP%]   .step-rate[_ngcontent-%COMP%]   textarea.textarea-rate[_ngcontent-%COMP%]{margin:0 auto 10px;border:hidden;overflow-x:hidden;overflow-y:visible;-webkit-box-sizing:border-box;box-sizing:border-box;padding:10px;color:#1a1a1a;width:calc(100% - 40px);height:80px;resize:none;font-size:13px;border-radius:6px;background-color:#fafafa;text-align:left}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-step-content[_ngcontent-%COMP%]{margin:10px 0 20px;position:relative}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-button-primary[_ngcontent-%COMP%]{font-size:1.4em;border:1px solid;margin:0 10px}#chat21-star-rating-widget[_ngcontent-%COMP%]   .c21-link[_ngcontent-%COMP%]{cursor:pointer;font-size:14px}#chat21-star-rating-widget[_ngcontent-%COMP%]   a.c21-link[_ngcontent-%COMP%]:link, #chat21-star-rating-widget[_ngcontent-%COMP%]   a.c21-link[_ngcontent-%COMP%]:visited{color:#2a6ac1}"]],te=l["\u0275crt"]({encapsulation:0,styles:Qn,data:{}});function ne(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,14,"div",[["class","c21-header-button c21-left"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.prevStep()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](2,0,null,null,11,":svg:svg",[["aria-labelledby","altIconTitle"],["class","c21-button"],["height","24px"],["role","img"],["viewBox","0 0 24 24"],["width","24px"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](3,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](4,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](7,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](9,0,null,null,0,":svg:path",[["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](11,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["BUTTON_PREV"])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n            "]))],function(t,n){t(n,3,0,t(n,4,0,n.component.g.themeForegroundColor))},null)}function ee(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,9,"div",[["class","c21-modal-content"],["style","text-align: right; margin: 0px 20px 30px 10px;"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](2,0,null,null,6,"div",[["class","c21-link"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.dowloadTranscript()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](4,0,null,null,3,"span",[],null,null,null,null,null)),l["\u0275did"](5,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](6,{color:0}),(t()(),l["\u0275ted"](7,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                    "]))],function(t,n){t(n,5,0,t(n,6,0,n.component.g.themeColor))},function(t,n){t(n,7,0,n.component.g.DOWNLOAD_TRANSCRIPT)})}function le(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,65,"div",[["class","step-rate"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,ee)),l["\u0275did"](3,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](5,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                   \n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](8,0,null,null,47,"div",[["class","c21-modal-content"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](10,0,null,null,1,"div",[["class","default-text"]],null,null,null,null,null)),(t()(),l["\u0275ted"](11,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](13,0,null,null,41,"fieldset",[["class","chat21-rating"]],[[1,"disabled",0]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](15,0,null,null,0,"input",[["class","c21-input-star"],["id","star1"],["name","rating"],["type","radio"],["value","1"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](17,0,null,null,4,"label",[["class","full c21-button"],["for","star1"],["title","scarso - 1 star"]],null,[[null,"mouseover"],[null,"mouseleave"],[null,"click"]],function(t,n,e){var l=!0,o=t.component;"mouseover"===n&&(l=!1!==o.mouseOverRate(1)&&l);"mouseleave"===n&&(l=!1!==o.mouseOverRate(0)&&l);"click"===n&&(l=!1!==o.openRate(1)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](19,0,null,null,1,":svg:svg",[["class","star"],["height","30px"],["viewBox","0 0 576 512"],["width","30px"],["xmlns","http://www.w3.org/2000/svg"]],[[2,"active",null]],null,null,null,null)),(t()(),l["\u0275eld"](20,0,null,null,0,":svg:path",[["d","M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](23,0,null,null,0,"input",[["class","c21-input-star"],["id","star2"],["name","rating"],["type","radio"],["value","2"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](25,0,null,null,4,"label",[["class","full c21-button"],["for","star2"],["title","sufficiente - 2 stars"]],null,[[null,"mouseover"],[null,"mouseleave"],[null,"click"]],function(t,n,e){var l=!0,o=t.component;"mouseover"===n&&(l=!1!==o.mouseOverRate(2)&&l);"mouseleave"===n&&(l=!1!==o.mouseOverRate(0)&&l);"click"===n&&(l=!1!==o.openRate(2)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](27,0,null,null,1,":svg:svg",[["class","star"],["height","30px"],["viewBox","0 0 576 512"],["width","30px"],["xmlns","http://www.w3.org/2000/svg"]],[[2,"active",null]],null,null,null,null)),(t()(),l["\u0275eld"](28,0,null,null,0,":svg:path",[["d","M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](31,0,null,null,0,"input",[["class","c21-input-star"],["id","star3"],["name","rating"],["type","radio"],["value","3"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](33,0,null,null,4,"label",[["class","full c21-button"],["for","star3"],["title","buono - 3 stars"]],null,[[null,"mouseover"],[null,"mouseleave"],[null,"click"]],function(t,n,e){var l=!0,o=t.component;"mouseover"===n&&(l=!1!==o.mouseOverRate(3)&&l);"mouseleave"===n&&(l=!1!==o.mouseOverRate(0)&&l);"click"===n&&(l=!1!==o.openRate(3)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](35,0,null,null,1,":svg:svg",[["class","star"],["height","30px"],["viewBox","0 0 576 512"],["width","30px"],["xmlns","http://www.w3.org/2000/svg"]],[[2,"active",null]],null,null,null,null)),(t()(),l["\u0275eld"](36,0,null,null,0,":svg:path",[["d","M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](39,0,null,null,0,"input",[["class","c21-input-star"],["id","star4"],["name","rating"],["type","radio"],["value","4"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](41,0,null,null,4,"label",[["class","full c21-button"],["for","star4"],["title","ottimo - 4 stars"]],null,[[null,"mouseover"],[null,"mouseleave"],[null,"click"]],function(t,n,e){var l=!0,o=t.component;"mouseover"===n&&(l=!1!==o.mouseOverRate(4)&&l);"mouseleave"===n&&(l=!1!==o.mouseOverRate(0)&&l);"click"===n&&(l=!1!==o.openRate(4)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](43,0,null,null,1,":svg:svg",[["class","star"],["height","30px"],["viewBox","0 0 576 512"],["width","30px"],["xmlns","http://www.w3.org/2000/svg"]],[[2,"active",null]],null,null,null,null)),(t()(),l["\u0275eld"](44,0,null,null,0,":svg:path",[["d","M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](47,0,null,null,0,"input",[["class","c21-input-star"],["id","star5"],["name","rating"],["type","radio"],["value","5"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](49,0,null,null,4,"label",[["class","full c21-button"],["for","star5"],["title","eccellente - 5 stars"]],null,[[null,"mouseover"],[null,"mouseleave"],[null,"click"]],function(t,n,e){var l=!0,o=t.component;"mouseover"===n&&(l=!1!==o.mouseOverRate(5)&&l);"mouseleave"===n&&(l=!1!==o.mouseOverRate(0)&&l);"click"===n&&(l=!1!==o.openRate(5)&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                                "])),(t()(),l["\u0275eld"](51,0,null,null,1,":svg:svg",[["class","star"],["height","30px"],["viewBox","0 0 576 512"],["width","30px"],["xmlns","http://www.w3.org/2000/svg"]],[[2,"active",null]],null,null,null,null)),(t()(),l["\u0275eld"](52,0,null,null,0,":svg:path",[["d","M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](57,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](60,0,null,null,4,"button",[["class","c21-button-link"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.returnClosePage()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](62,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),l["\u0275ted"](63,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                "]))],function(t,n){t(n,3,0,n.component.g.allowTranscriptDownload)},function(t,n){var e=n.component;t(n,11,0,e.g.YOUR_OPINION_ON_OUR_CUSTOMER_SERVICE),t(n,13,0,e.g.isOpenStartRating?null:""),t(n,19,0,e.mouseRate>=1),t(n,27,0,e.mouseRate>=2),t(n,35,0,e.mouseRate>=3),t(n,43,0,e.mouseRate>=4),t(n,51,0,e.mouseRate>=5),t(n,63,0,e.g.CLOSE)})}function oe(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,9,"div",[["class","c21-modal-content"],["style","text-align: right; margin: 0px 20px 30px 10px;"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](2,0,null,null,6,"div",[["class","c21-link"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.dowloadTranscript()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](4,0,null,null,3,"span",[],null,null,null,null,null)),l["\u0275did"](5,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](6,{color:0}),(t()(),l["\u0275ted"](7,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                    "]))],function(t,n){t(n,5,0,t(n,6,0,n.component.g.themeColor))},function(t,n){t(n,7,0,n.component.g.DOWNLOAD_TRANSCRIPT)})}function ie(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,31,"div",[["class","step-rate"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,oe)),l["\u0275did"](4,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](6,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](8,0,null,null,22,"div",[["class","c21-step-content"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                        \n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                        \n\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](14,0,[["textbox",1]],null,1,"textarea",[["class","textarea-rate"],["id","chat21-message-rate-context"],["rows","1"]],[[8,"placeholder",0]],null,null,null,null)),(t()(),l["\u0275ted"](15,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](17,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n                        "])),(t()(),l["\u0275eld"](19,0,null,null,4,"button",[["class","c21-button-link"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.returnClosePage()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](21,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),l["\u0275ted"](22,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](25,0,null,null,4,"button",[["class","c21-button-link"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.sendRate()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](27,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),l["\u0275ted"](28,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n\n                    \n\n                "]))],function(t,n){t(n,4,0,n.component.g.allowTranscriptDownload)},function(t,n){var e=n.component;t(n,14,0,l["\u0275inlineInterpolate"](1,"",e.g.WRITE_YOUR_OPINION,"")),t(n,15,0,e.message),t(n,22,0,e.g.CLOSE),t(n,28,0,e.g.SUBMIT)})}function re(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,9,"div",[["class","c21-modal-content"],["style","text-align: right; margin: 0px 20px 30px 10px;"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](2,0,null,null,6,"div",[["class","c21-link"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.dowloadTranscript()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                            "])),(t()(),l["\u0275eld"](4,0,null,null,3,"span",[],null,null,null,null,null)),l["\u0275did"](5,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](6,{color:0}),(t()(),l["\u0275ted"](7,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275ted"](-1,null,["\n                    "]))],function(t,n){t(n,5,0,t(n,6,0,n.component.g.themeColor))},function(t,n){t(n,7,0,n.component.g.DOWNLOAD_TRANSCRIPT)})}function ae(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,22,"div",[["class","step-rate"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,re)),l["\u0275did"](3,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](5,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                \n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](8,0,null,null,7,"div",[["class","c21-step-content"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](10,0,null,null,1,"div",[["class","default-title"]],null,null,null,null,null)),(t()(),l["\u0275ted"](11,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](13,0,null,null,1,"div",[["class","default-text"]],null,null,null,null,null)),(t()(),l["\u0275ted"](14,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n\n                    "])),(t()(),l["\u0275eld"](17,0,null,null,4,"button",[["class","c21-button-link"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.returnClosePage()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n                        "])),(t()(),l["\u0275eld"](19,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),l["\u0275ted"](20,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                "]))],function(t,n){t(n,3,0,n.component.g.allowTranscriptDownload)},function(t,n){var e=n.component;t(n,11,0,e.g.THANK_YOU_FOR_YOUR_EVALUATION),t(n,14,0,e.g.YOUR_RATING_HAS_BEEN_RECEIVED),t(n,20,0,e.g.CLOSE)})}function se(t){return l["\u0275vid"](0,[(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275eld"](1,0,null,null,51,"div",[["id","chat21-star-rating-widget"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](4,0,null,null,25,"div",[["class","c21-header"]],null,null,null,null,null)),l["\u0275did"](5,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](6,{"background-color":0}),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](8,0,null,null,20,"div",[["class","c21-header-container"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275and"](16777216,null,null,1,null,ne)),l["\u0275did"](14,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](17,0,null,null,10,"div",[["class","c21-header-content"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](20,0,null,null,6,"div",[["class","c21-title"]],null,null,null,null,null)),l["\u0275did"](21,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](22,{color:0}),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](24,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),l["\u0275ted"](25,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](32,0,null,null,19,"div",[["class","c21-body"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275eld"](34,0,null,null,16,"div",[["class","c21-body-container"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n            "])),(t()(),l["\u0275eld"](36,0,null,null,13,"div",[["class","c21-body-content"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275and"](16777216,null,null,1,null,le)),l["\u0275did"](40,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275and"](16777216,null,null,1,null,ie)),l["\u0275did"](44,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275and"](16777216,null,null,1,null,ae)),l["\u0275did"](48,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n\n\n\n\n\n\n\n\n            "])),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n"]))],function(t,n){var e=n.component;t(n,5,0,t(n,6,0,e.g.themeColor)),t(n,14,0,e.step>0&&2!=e.step),t(n,21,0,t(n,22,0,e.g.themeForegroundColor)),t(n,40,0,0==e.step),t(n,44,0,1==e.step),t(n,48,0,2==e.step)},function(t,n){t(n,25,0,n.component.g.CUSTOMER_SATISFACTION)})}l["\u0275ccf"]("tiledeskwidget-star-rating-widget",Jn,function(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"tiledeskwidget-star-rating-widget",[],null,null,null,se,te)),l["\u0275did"](1,245760,null,0,Jn,[W,Z],null,null)],function(t,n){t(n,1,0)},null)},{},{eventClosePage:"eventClosePage",eventCloseRate:"eventCloseRate"},[]);var ue=function(){function t(t){this.g=t,this.eventOpenChat=new l.EventEmitter,this.eventOpenEyeCatcher=new l.EventEmitter}return t.prototype.ngOnInit=function(){this.state="default",this.g.setParameter("displayEyeCatcherCard","none"),this.displayEyeCatcherCardCloseBtnWrapper="none",this.displayEyeCatcherCardCloseBtnIsMobileWrapper="none",this.displayEyeCatcherCardCloseBtn="none",this.openIfCallOutTimer()},t.prototype.openIfCallOutTimer=function(){var t=this,n=this.g.calloutTimer;n>=0&&setTimeout(function(){t.openEyeCatcher()},1e3*n)},t.prototype.openEyeCatcher=function(){!1===this.g.isOpen&&(this.eventOpenEyeCatcher.emit(!0),this.g.setParameter("displayEyeCatcherCard","block"),this.displayEyeCatcherCardCloseBtnWrapper="block",this.displayEyeCatcherCardCloseBtnIsMobileWrapper="block",this.rotateCalloutEmoticon())},t.prototype.rotateCalloutEmoticon=function(){var t=this;"default"===this.state&&setTimeout(function(){return t.state="rotated"})},t.prototype.openChatFromEyeCatcherCard=function(){this.g.setParameter("displayEyeCatcherCard","none"),this.eventOpenChat.emit()},t.prototype.mouseEnter=function(){this.displayEyeCatcherCardCloseBtn="block"},t.prototype.mouseLeave=function(){this.displayEyeCatcherCardCloseBtn="none"},t.prototype.closeEyeCatcherCard=function(){this.eventOpenEyeCatcher.emit(!1),this.g.setParameter("displayEyeCatcherCard","none"),this.displayEyeCatcherCardCloseBtnWrapper="none"},t}(),ce=[[".eye-catcher_column[_ngcontent-%COMP%]{float:left}.ec_left[_ngcontent-%COMP%]{width:45px;padding-left:10px;padding-top:4px;padding-bottom:4px;-webkit-box-sizing:border-box;box-sizing:border-box}.ec_right[_ngcontent-%COMP%]{width:calc(100% - 70px);height:60px;padding:4px;max-height:calc(100% - 10px);overflow:scroll}.ec_right[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.eye-catcher_row[_ngcontent-%COMP%]:after{content:\"\";display:table;clear:both}.eye-catcher-card-close-btn-wrapper[_ngcontent-%COMP%]{z-index:1;height:40px;width:40px;position:absolute;top:0;right:0}.eye-catcher-card-close-btn[_ngcontent-%COMP%]{z-index:2;background-color:#5d6c80;width:24px;height:24px;border-radius:50px;position:relative;left:0;right:0;cursor:pointer;float:right;margin:4px;-webkit-box-shadow:0 2px 8px 0 rgba(35,47,53,.1);box-shadow:0 2px 8px 0 rgba(35,47,53,.1)}.eye-catcher-card-close-btn-img[_ngcontent-%COMP%]{width:40px;position:relative;bottom:5px;right:5px;max-width:none}.eye-catcher-card-close-btn-img-is-mobile-wrapper[_ngcontent-%COMP%]{z-index:1;position:absolute;top:-39px;right:-14px;cursor:pointer}.eye-catcher-card-close-btn-img-is-mobile[_ngcontent-%COMP%]{width:40px;position:relative;max-width:none}.eye-catcher-card[_ngcontent-%COMP%]{position:fixed;z-index:1;margin:0 0 10px;bottom:10px;cursor:pointer;background-color:#fff;border:1px solid #dedfde;-webkit-box-shadow:0 2px 8px 0 rgba(35,47,53,.1);box-shadow:0 2px 8px 0 rgba(35,47,53,.1);width:270px;height:68px}.eye-catcher-card.c21-align-left[_ngcontent-%COMP%]{margin-right:0;margin-left:68px}.eye-catcher-card.c21-align-right[_ngcontent-%COMP%]{margin-right:68px;margin-left:0}.eye-catcher-card-text-wrapper[_ngcontent-%COMP%]{width:200px}.eye-catcher-card-title[_ngcontent-%COMP%]{font-family:'Google Sans',sans-serif;font-size:15px;color:#44484a;padding-left:5px;padding-right:10px;font-weight:500;margin-bottom:6px;word-wrap:break-word;margin-top:0;line-height:normal}.eye-catcher-card-msg[_ngcontent-%COMP%]{font-family:'Google Sans',sans-serif;color:#44484a;padding-left:5px;padding-right:10px;margin-top:6px;margin-bottom:6px;letter-spacing:1px;font-weight:500;word-wrap:break-word;font-size:12px;line-height:normal}.eye-catcher-card-img-wrapper[_ngcontent-%COMP%]{border:1px solid #dedfde;border-radius:100px;height:65px;width:65px}.eye-catcher-card[_ngcontent-%COMP%]   .chat21-card-img[_ngcontent-%COMP%]{position:relative;bottom:14px;right:15px;width:95px;max-width:none}.chat21-card-emoticons[_ngcontent-%COMP%]{font-size:30px}"]],de=l["\u0275crt"]({encapsulation:0,styles:ce,data:{animation:[{type:7,name:"rotatedState",definitions:[{type:0,name:"default",styles:{type:6,styles:{transform:"scale(0)"},offset:null},options:void 0},{type:0,name:"rotated",styles:{type:6,styles:{transform:"scale(1)"},offset:null},options:void 0},{type:1,expr:"rotated => default",animation:{type:4,styles:null,timings:"1000ms ease-out"},options:null},{type:1,expr:"default => rotated",animation:{type:4,styles:null,timings:"1000ms ease-in"},options:null}],options:{}}]}});function pe(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,["\n                        ","\n                    "]))],null,function(t,n){t(n,1,0,n.component.g.calloutTitle)})}function ge(t){return l["\u0275vid"](0,[(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](1,null,["\n                    ","\n                "]))],null,function(t,n){t(n,1,0,n.component.g.CALLOUT_TITLE_PLACEHOLDER)})}function he(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,["\n                        ","\n                    "]))],null,function(t,n){t(n,1,0,n.component.g.calloutMsg)})}function me(t){return l["\u0275vid"](0,[(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](1,null,["\n                    ","\n                "]))],null,function(t,n){t(n,1,0,n.component.g.CALLOUT_MSG_PLACEHOLDER)})}function fe(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,72,"div",[["class","eye-catcher-card scale-in-center"]],null,[[null,"mouseenter"],[null,"mouseleave"]],function(t,n,e){var l=!0,o=t.component;"mouseenter"===n&&(l=!1!==o.mouseEnter()&&l);"mouseleave"===n&&(l=!1!==o.mouseLeave()&&l);return l},null,null)),l["\u0275did"](1,278528,null,0,rt.NgClass,[l.IterableDiffers,l.KeyValueDiffers,l.ElementRef,l.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),l["\u0275pod"](2,{"c21-align-left":0,"c21-align-right":1}),l["\u0275did"](3,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](4,{display:0,bottom:1,left:2,right:3}),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](7,0,null,null,24,"div",[],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](9,0,null,null,21,"div",[["class","eye-catcher-card-close-btn-wrapper"]],null,[[null,"mouseenter"],[null,"mouseleave"]],function(t,n,e){var l=!0,o=t.component;"mouseenter"===n&&(l=!1!==o.mouseEnter()&&l);"mouseleave"===n&&(l=!1!==o.mouseLeave()&&l);return l},null,null)),l["\u0275did"](10,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](11,{display:0}),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](13,0,null,null,16,"div",[["class","eye-catcher-card-close-btn"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.closeEyeCatcherCard()&&l);return l},null,null)),l["\u0275did"](14,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](15,{display:0}),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](18,0,null,null,10,":svg:svg",[["aria-labelledby","altIconTitle"],["height","24px"],["role","img"],["viewBox","0 0 24 24"],["width","24px"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](19,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](20,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](22,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](24,0,null,null,0,":svg:path",[["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275eld"](26,0,null,null,1,":svg:title",[["id","altIconTitle"]],null,null,null,null,null)),(t()(),l["\u0275ted"](27,null,["",""])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275eld"](36,0,null,null,35,"div",[["class","eye-catcher_row"]],null,[[null,"mouseenter"],[null,"mouseleave"],[null,"click"]],function(t,n,e){var l=!0,o=t.component;"mouseenter"===n&&(l=!1!==o.mouseEnter()&&l);"mouseleave"===n&&(l=!1!==o.mouseLeave()&&l);"click"===n&&(l=!1!==o.openChatFromEyeCatcherCard()&&l);return l},null,null)),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275eld"](38,0,null,null,8,"div",[["class","eye-catcher_column ec_left"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](41,0,null,null,4,"div",[["class","eye-catcher-card-emoticons-wrapper"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](43,0,null,null,1,"span",[["class","chat21-card-emoticons"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,[" \ud83e\udd16 "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275eld"](48,0,null,null,22,"div",[["class","eye-catcher_column ec_right"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](50,0,null,null,19,"div",[["class","eye-catcher-card-text-wrapper"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](52,0,null,null,5,"div",[["class","eye-catcher-card-title"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,[" \n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,pe)),l["\u0275did"](56,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),l["\u0275ted"](-1,null,["  \n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275and"](0,[["calloutTitle_placeholder",2]],null,0,null,ge)),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275eld"](61,0,null,null,5,"div",[["class","eye-catcher-card-msg"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275ted"](-1,null,["\n                    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,he)),l["\u0275did"](65,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),l["\u0275ted"](-1,null,["   \n                "])),(t()(),l["\u0275ted"](-1,null,["\n                "])),(t()(),l["\u0275and"](0,[["calloutMsg_placeholder",2]],null,0,null,me)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n"]))],function(t,n){var e=n.component;t(n,1,0,"eye-catcher-card scale-in-center",t(n,2,0,"left"===e.g.align,"left"!==e.g.align)),t(n,3,0,t(n,4,0,e.g.displayEyeCatcherCard,e.g.marginY+"px","left"===e.g.align?e.g.marginX+"px":"","right"===e.g.align?e.g.marginX+"px":"")),t(n,10,0,t(n,11,0,e.g.displayEyeCatcherCard)),t(n,14,0,t(n,15,0,e.displayEyeCatcherCardCloseBtn)),t(n,19,0,t(n,20,0,e.g.themeForegroundColor)),t(n,56,0,""!==e.g.calloutTitle,l["\u0275nov"](n,59)),t(n,65,0,""!==e.g.calloutMsg,l["\u0275nov"](n,68))},function(t,n){t(n,27,0,n.component.g.BUTTON_CLOSE_TO_ICON)})}function be(t){return l["\u0275vid"](0,[(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275and"](16777216,null,null,1,null,fe)),l["\u0275did"](3,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,[" "]))],function(t,n){t(n,3,0,!n.component.g.isMobile)},null)}l["\u0275ccf"]("tiledeskwidget-eyeeye-catcher-card",ue,function(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"tiledeskwidget-eyeeye-catcher-card",[],null,null,null,be,de)),l["\u0275did"](1,114688,null,0,ue,[Z],null,null)],function(t,n){t(n,1,0)},null)},{},{eventOpenChat:"eventOpenChat",eventOpenEyeCatcher:"eventOpenEyeCatcher"},[]);var ve=function(){function t(t,n){this.g=t,this.storageService=n,this.eventOpenCloseWidget=new l.EventEmitter}return t.prototype.ngOnInit=function(){this.g.wdLog(["open_close_handler BUTTON 1: ",this.g.isOpen])},t.prototype.ngAfterViewInit=function(){},t.prototype.openCloseWidget=function(){!0===this.g.isLogged&&(this.g.isOpen=!this.g.isOpen,this.storageService.setItem("isOpen",this.g.isOpen),this.eventOpenCloseWidget.emit(this.g.isOpen))},t}(),we=[["#c21-launcher-button[_ngcontent-%COMP%]{border-radius:50%;position:fixed;bottom:0;width:60px;height:60px;cursor:pointer;display:block}#c21-launcher-button[_ngcontent-%COMP%]   .launcher-button[_ngcontent-%COMP%]{width:100%;height:100%;padding:0;margin:0}#c21-launcher-button[_ngcontent-%COMP%]:active, #c21-launcher-button[_ngcontent-%COMP%]:focus{-webkit-box-shadow:#62a8ea 0 0 0 5px inset;box-shadow:#62a8ea 0 0 0 5px inset;outline:0}.c21-divBudge[_ngcontent-%COMP%]{position:absolute;top:0;width:16px;height:16px;min-width:12px;font-size:1.2em;line-height:16px;border-radius:50%;background-color:red;color:#fff;font-weight:700;padding:5px;text-align:center;margin-top:-10px;display:inline-block}"]],xe=l["\u0275crt"]({encapsulation:0,styles:we,data:{animation:[{type:7,name:"enterCloseAnimation",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{transform:"rotate(-90deg)",opacity:1},offset:null},{type:4,styles:{type:6,styles:{transform:"rotate(0deg)",opacity:1},offset:null},timings:"450ms ease-out"}],options:null},{type:1,expr:":leave",animation:[{type:6,styles:{transform:"scale(1)",opacity:1},offset:null},{type:4,styles:{type:6,styles:{transform:"scale(0.5)",opacity:0},offset:null},timings:"200ms ease-in"}],options:null}],options:{}},{type:7,name:"enterBubbleAnimation",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{transform:"scale(0.5)",opacity:0},offset:null},{type:4,styles:{type:6,styles:{transform:"scale(1)",opacity:1},offset:null},timings:"200ms ease-out"}],options:null},{type:1,expr:":leave",animation:[{type:6,styles:{transform:"scale(1)",opacity:1},offset:null},{type:4,styles:{type:6,styles:{transform:"scale(0.5)",opacity:0},offset:null},timings:"200ms ease-in"}],options:null}],options:{}}]}});function ke(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"div",[["class","c21-divBudge"]],null,null,null,null,null)),(t()(),l["\u0275ted"](1,null,["",""]))],null,function(t,n){t(n,1,0,n.component.g.conversationsBadge)})}function ye(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,10,"div",[["class","launcher-button rotate-center"]],[[24,"@enterBubbleAnimation",0]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](2,0,null,null,7,":svg:svg",[["height","100%"],["role","img"],["viewBox","0 0 90 90"],["width","100%"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](3,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](4,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](6,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](8,0,null,null,0,":svg:path",[["d","M33.57,31A4.58,4.58,0,0,0,29,35.57V58.3a1.94,1.94,0,0,0,3.32,1.38l3-3a.29.29,0,0,1,.21-.09H56.43A4.58,4.58,0,0,0,61,52V35.57A4.58,4.58,0,0,0,56.43,31Z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n    "]))],function(t,n){t(n,3,0,t(n,4,0,n.component.g.themeForegroundColor))},function(t,n){t(n,0,0,void 0)})}function Ce(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,10,"div",[["class","launcher-button rotate-center"]],[[24,"@enterCloseAnimation",0]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275eld"](2,0,null,null,7,":svg:svg",[["height","100%"],["role","img"],["viewBox","0 0 90 90"],["width","100%"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),l["\u0275did"](3,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](4,{fill:0}),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](6,0,null,null,0,":svg:path",[["d","M0 0h24v24H0V0z"],["fill","none"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](8,0,null,null,0,":svg:path",[["class","cls-1"],["d","M54.92,37.08l-2-2L45,43l-7.92-7.92-2,2L43,45l-7.92,7.92,2,2L45,47l7.92,7.92,2-2L47,45Z"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275ted"](-1,null,["\n    "]))],function(t,n){t(n,3,0,t(n,4,0,n.component.g.themeForegroundColor))},function(t,n){t(n,0,0,void 0)})}function Oe(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,[[1,0],["aflauncherbutton",1]],null,16,"button",[["aflauncherbutton",""],["aria-label","    apri chat"],["class","c21-button-clean scale-in-center"],["id","c21-launcher-button"],["tabindex","1000"]],null,[[null,"click"]],function(t,n,e){var l=!0,o=t.component;"click"===n&&(l=!1!==o.openCloseWidget()&&l);return l},null,null)),l["\u0275did"](1,278528,null,0,rt.NgClass,[l.IterableDiffers,l.KeyValueDiffers,l.ElementRef,l.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),l["\u0275pod"](2,{"c21-align-left":0,"c21-align-right":1}),l["\u0275did"](3,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](4,{"background-color":0,bottom:1,left:2,right:3}),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,ke)),l["\u0275did"](7,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,ye)),l["\u0275did"](11,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Ce)),l["\u0275did"](15,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n"]))],function(t,n){var e=n.component;t(n,1,0,"c21-button-clean scale-in-center",t(n,2,0,"left"===e.g.align,"left"!==e.g.align)),t(n,3,0,t(n,4,0,e.g.themeColor,e.g.marginY+"px!important","left"===e.g.align?e.g.marginX+"px!important":"","right"===e.g.align?e.g.marginX+"px!important":"")),t(n,7,0,e.g.conversationsBadge>0),t(n,11,0,!e.g.isOpen),t(n,15,0,e.g.isOpen)},null)}function _e(t){return l["\u0275vid"](0,[l["\u0275qud"](671088640,1,{aflauncherbutton:0}),(t()(),l["\u0275ted"](-1,null,["\n\n"])),(t()(),l["\u0275and"](16777216,null,null,1,null,Oe)),l["\u0275did"](3,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,3,0,1==e.g.isLogged&&0==e.g.isOpen)},null)}l["\u0275ccf"]("tiledeskwidget-launcher-button",ve,function(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"tiledeskwidget-launcher-button",[],null,null,null,_e,xe)),l["\u0275did"](1,4308992,null,0,ve,[Z,H],null,null)],function(t,n){t(n,1,0)},null)},{},{eventOpenCloseWidget:"eventOpenCloseWidget"},[]);var Me=[['@import url(https://fonts.googleapis.com/css?family=Google+Sans:200,400,800);@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,300|Material+Icons);.hvr-grow{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-grow:active,.hvr-grow:focus,.hvr-grow:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.hvr-shrink{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-shrink:active,.hvr-shrink:focus,.hvr-shrink:hover{-webkit-transform:scale(.9);transform:scale(.9)}@-webkit-keyframes hvr-pulse{25%{-webkit-transform:scale(1.1);transform:scale(1.1)}75%{-webkit-transform:scale(.9);transform:scale(.9)}}@keyframes hvr-pulse{25%{-webkit-transform:scale(1.1);transform:scale(1.1)}75%{-webkit-transform:scale(.9);transform:scale(.9)}}.hvr-pulse{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-pulse:active,.hvr-pulse:focus,.hvr-pulse:hover{-webkit-animation-name:hvr-pulse;animation-name:hvr-pulse;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}@-webkit-keyframes hvr-pulse-grow{to{-webkit-transform:scale(1.1);transform:scale(1.1)}}@keyframes hvr-pulse-grow{to{-webkit-transform:scale(1.1);transform:scale(1.1)}}.hvr-pulse-grow{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-pulse-grow:active,.hvr-pulse-grow:focus,.hvr-pulse-grow:hover{-webkit-animation-name:hvr-pulse-grow;animation-name:hvr-pulse-grow;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-direction:alternate}@-webkit-keyframes hvr-pulse-shrink{to{-webkit-transform:scale(.9);transform:scale(.9)}}@keyframes hvr-pulse-shrink{to{-webkit-transform:scale(.9);transform:scale(.9)}}.hvr-pulse-shrink{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-pulse-shrink:active,.hvr-pulse-shrink:focus,.hvr-pulse-shrink:hover{-webkit-animation-name:hvr-pulse-shrink;animation-name:hvr-pulse-shrink;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-direction:alternate}@-webkit-keyframes hvr-push{50%{-webkit-transform:scale(.8);transform:scale(.8)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes hvr-push{50%{-webkit-transform:scale(.8);transform:scale(.8)}100%{-webkit-transform:scale(1);transform:scale(1)}}.hvr-push{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-push:active,.hvr-push:focus,.hvr-push:hover{-webkit-animation-name:hvr-push;animation-name:hvr-push;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:1;animation-iteration-count:1}@-webkit-keyframes hvr-pop{50%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes hvr-pop{50%{-webkit-transform:scale(1.2);transform:scale(1.2)}}.hvr-pop{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-pop:active,.hvr-pop:focus,.hvr-pop:hover{-webkit-animation-name:hvr-pop;animation-name:hvr-pop;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:1;animation-iteration-count:1}.hvr-bounce-in{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.5s;transition-duration:.5s}.hvr-bounce-in:active,.hvr-bounce-in:focus,.hvr-bounce-in:hover{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-transition-timing-function:cubic-bezier(.47,2.02,.31,-.36);transition-timing-function:cubic-bezier(.47,2.02,.31,-.36)}.hvr-bounce-out{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.5s;transition-duration:.5s}.hvr-bounce-out:active,.hvr-bounce-out:focus,.hvr-bounce-out:hover{-webkit-transform:scale(.8);transform:scale(.8);-webkit-transition-timing-function:cubic-bezier(.47,2.02,.31,-.36);transition-timing-function:cubic-bezier(.47,2.02,.31,-.36)}.hvr-rotate{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-rotate:active,.hvr-rotate:focus,.hvr-rotate:hover{-webkit-transform:rotate(4deg);transform:rotate(4deg)}.hvr-grow-rotate{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-grow-rotate:active,.hvr-grow-rotate:focus,.hvr-grow-rotate:hover{-webkit-transform:scale(1.1) rotate(4deg);transform:scale(1.1) rotate(4deg)}.hvr-float{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-float:active,.hvr-float:focus,.hvr-float:hover{-webkit-transform:translateY(-8px);transform:translateY(-8px)}.hvr-sink{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-sink:active,.hvr-sink:focus,.hvr-sink:hover{-webkit-transform:translateY(8px);transform:translateY(8px)}@-webkit-keyframes hvr-bob{0%,100%{-webkit-transform:translateY(-8px);transform:translateY(-8px)}50%{-webkit-transform:translateY(-4px);transform:translateY(-4px)}}@keyframes hvr-bob{0%,100%{-webkit-transform:translateY(-8px);transform:translateY(-8px)}50%{-webkit-transform:translateY(-4px);transform:translateY(-4px)}}@-webkit-keyframes hvr-bob-float{100%{-webkit-transform:translateY(-8px);transform:translateY(-8px)}}@keyframes hvr-bob-float{100%{-webkit-transform:translateY(-8px);transform:translateY(-8px)}}.hvr-bob{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-bob:active,.hvr-bob:focus,.hvr-bob:hover{-webkit-animation-name:hvr-bob-float,hvr-bob;animation-name:hvr-bob-float,hvr-bob;-webkit-animation-duration:.3s,1.5s;animation-duration:.3s,1.5s;-webkit-animation-delay:0s,.3s;animation-delay:0s,.3s;-webkit-animation-timing-function:ease-out,ease-in-out;animation-timing-function:ease-out,ease-in-out;-webkit-animation-iteration-count:1,infinite;animation-iteration-count:1,infinite;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-direction:normal,alternate;animation-direction:normal,alternate}@-webkit-keyframes hvr-hang{0%,100%{-webkit-transform:translateY(8px);transform:translateY(8px)}50%{-webkit-transform:translateY(4px);transform:translateY(4px)}}@keyframes hvr-hang{0%,100%{-webkit-transform:translateY(8px);transform:translateY(8px)}50%{-webkit-transform:translateY(4px);transform:translateY(4px)}}@-webkit-keyframes hvr-hang-sink{100%{-webkit-transform:translateY(8px);transform:translateY(8px)}}@keyframes hvr-hang-sink{100%{-webkit-transform:translateY(8px);transform:translateY(8px)}}.hvr-hang{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-hang:active,.hvr-hang:focus,.hvr-hang:hover{-webkit-animation-name:hvr-hang-sink,hvr-hang;animation-name:hvr-hang-sink,hvr-hang;-webkit-animation-duration:.3s,1.5s;animation-duration:.3s,1.5s;-webkit-animation-delay:0s,.3s;animation-delay:0s,.3s;-webkit-animation-timing-function:ease-out,ease-in-out;animation-timing-function:ease-out,ease-in-out;-webkit-animation-iteration-count:1,infinite;animation-iteration-count:1,infinite;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-direction:normal,alternate;animation-direction:normal,alternate}.hvr-skew{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-skew:active,.hvr-skew:focus,.hvr-skew:hover{-webkit-transform:skew(-10deg);transform:skew(-10deg)}.hvr-skew-forward{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transform-origin:0 100%;transform-origin:0 100%}.hvr-skew-forward:active,.hvr-skew-forward:focus,.hvr-skew-forward:hover{-webkit-transform:skew(-10deg);transform:skew(-10deg)}.hvr-skew-backward{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transform-origin:0 100%;transform-origin:0 100%}.hvr-skew-backward:active,.hvr-skew-backward:focus,.hvr-skew-backward:hover{-webkit-transform:skew(10deg);transform:skew(10deg)}@-webkit-keyframes hvr-wobble-vertical{16.65%{-webkit-transform:translateY(8px);transform:translateY(8px)}33.3%{-webkit-transform:translateY(-6px);transform:translateY(-6px)}49.95%{-webkit-transform:translateY(4px);transform:translateY(4px)}66.6%{-webkit-transform:translateY(-2px);transform:translateY(-2px)}83.25%{-webkit-transform:translateY(1px);transform:translateY(1px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes hvr-wobble-vertical{16.65%{-webkit-transform:translateY(8px);transform:translateY(8px)}33.3%{-webkit-transform:translateY(-6px);transform:translateY(-6px)}49.95%{-webkit-transform:translateY(4px);transform:translateY(4px)}66.6%{-webkit-transform:translateY(-2px);transform:translateY(-2px)}83.25%{-webkit-transform:translateY(1px);transform:translateY(1px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}.hvr-wobble-vertical{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-wobble-vertical:active,.hvr-wobble-vertical:focus,.hvr-wobble-vertical:hover{-webkit-animation-name:hvr-wobble-vertical;animation-name:hvr-wobble-vertical;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-iteration-count:1;animation-iteration-count:1}@-webkit-keyframes hvr-wobble-horizontal{16.65%{-webkit-transform:translateX(8px);transform:translateX(8px)}33.3%{-webkit-transform:translateX(-6px);transform:translateX(-6px)}49.95%{-webkit-transform:translateX(4px);transform:translateX(4px)}66.6%{-webkit-transform:translateX(-2px);transform:translateX(-2px)}83.25%{-webkit-transform:translateX(1px);transform:translateX(1px)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes hvr-wobble-horizontal{16.65%{-webkit-transform:translateX(8px);transform:translateX(8px)}33.3%{-webkit-transform:translateX(-6px);transform:translateX(-6px)}49.95%{-webkit-transform:translateX(4px);transform:translateX(4px)}66.6%{-webkit-transform:translateX(-2px);transform:translateX(-2px)}83.25%{-webkit-transform:translateX(1px);transform:translateX(1px)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.hvr-wobble-horizontal{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-wobble-horizontal:active,.hvr-wobble-horizontal:focus,.hvr-wobble-horizontal:hover{-webkit-animation-name:hvr-wobble-horizontal;animation-name:hvr-wobble-horizontal;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-iteration-count:1;animation-iteration-count:1}@-webkit-keyframes hvr-wobble-to-bottom-right{16.65%{-webkit-transform:translate(8px,8px);transform:translate(8px,8px)}33.3%{-webkit-transform:translate(-6px,-6px);transform:translate(-6px,-6px)}49.95%{-webkit-transform:translate(4px,4px);transform:translate(4px,4px)}66.6%{-webkit-transform:translate(-2px,-2px);transform:translate(-2px,-2px)}83.25%{-webkit-transform:translate(1px,1px);transform:translate(1px,1px)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@keyframes hvr-wobble-to-bottom-right{16.65%{-webkit-transform:translate(8px,8px);transform:translate(8px,8px)}33.3%{-webkit-transform:translate(-6px,-6px);transform:translate(-6px,-6px)}49.95%{-webkit-transform:translate(4px,4px);transform:translate(4px,4px)}66.6%{-webkit-transform:translate(-2px,-2px);transform:translate(-2px,-2px)}83.25%{-webkit-transform:translate(1px,1px);transform:translate(1px,1px)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}.hvr-wobble-to-bottom-right{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-wobble-to-bottom-right:active,.hvr-wobble-to-bottom-right:focus,.hvr-wobble-to-bottom-right:hover{-webkit-animation-name:hvr-wobble-to-bottom-right;animation-name:hvr-wobble-to-bottom-right;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-iteration-count:1;animation-iteration-count:1}@-webkit-keyframes hvr-wobble-to-top-right{16.65%{-webkit-transform:translate(8px,-8px);transform:translate(8px,-8px)}33.3%{-webkit-transform:translate(-6px,6px);transform:translate(-6px,6px)}49.95%{-webkit-transform:translate(4px,-4px);transform:translate(4px,-4px)}66.6%{-webkit-transform:translate(-2px,2px);transform:translate(-2px,2px)}83.25%{-webkit-transform:translate(1px,-1px);transform:translate(1px,-1px)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@keyframes hvr-wobble-to-top-right{16.65%{-webkit-transform:translate(8px,-8px);transform:translate(8px,-8px)}33.3%{-webkit-transform:translate(-6px,6px);transform:translate(-6px,6px)}49.95%{-webkit-transform:translate(4px,-4px);transform:translate(4px,-4px)}66.6%{-webkit-transform:translate(-2px,2px);transform:translate(-2px,2px)}83.25%{-webkit-transform:translate(1px,-1px);transform:translate(1px,-1px)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}.hvr-wobble-to-top-right{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-wobble-to-top-right:active,.hvr-wobble-to-top-right:focus,.hvr-wobble-to-top-right:hover{-webkit-animation-name:hvr-wobble-to-top-right;animation-name:hvr-wobble-to-top-right;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-iteration-count:1;animation-iteration-count:1}@-webkit-keyframes hvr-wobble-top{16.65%{-webkit-transform:skew(-12deg);transform:skew(-12deg)}33.3%{-webkit-transform:skew(10deg);transform:skew(10deg)}49.95%{-webkit-transform:skew(-6deg);transform:skew(-6deg)}66.6%{-webkit-transform:skew(4deg);transform:skew(4deg)}83.25%{-webkit-transform:skew(-2deg);transform:skew(-2deg)}100%{-webkit-transform:skew(0);transform:skew(0)}}@keyframes hvr-wobble-top{16.65%{-webkit-transform:skew(-12deg);transform:skew(-12deg)}33.3%{-webkit-transform:skew(10deg);transform:skew(10deg)}49.95%{-webkit-transform:skew(-6deg);transform:skew(-6deg)}66.6%{-webkit-transform:skew(4deg);transform:skew(4deg)}83.25%{-webkit-transform:skew(-2deg);transform:skew(-2deg)}100%{-webkit-transform:skew(0);transform:skew(0)}}.hvr-wobble-top{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transform-origin:0 100%;transform-origin:0 100%}.hvr-wobble-top:active,.hvr-wobble-top:focus,.hvr-wobble-top:hover{-webkit-animation-name:hvr-wobble-top;animation-name:hvr-wobble-top;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-iteration-count:1;animation-iteration-count:1}@-webkit-keyframes hvr-wobble-bottom{16.65%{-webkit-transform:skew(-12deg);transform:skew(-12deg)}33.3%{-webkit-transform:skew(10deg);transform:skew(10deg)}49.95%{-webkit-transform:skew(-6deg);transform:skew(-6deg)}66.6%{-webkit-transform:skew(4deg);transform:skew(4deg)}83.25%{-webkit-transform:skew(-2deg);transform:skew(-2deg)}100%{-webkit-transform:skew(0);transform:skew(0)}}@keyframes hvr-wobble-bottom{16.65%{-webkit-transform:skew(-12deg);transform:skew(-12deg)}33.3%{-webkit-transform:skew(10deg);transform:skew(10deg)}49.95%{-webkit-transform:skew(-6deg);transform:skew(-6deg)}66.6%{-webkit-transform:skew(4deg);transform:skew(4deg)}83.25%{-webkit-transform:skew(-2deg);transform:skew(-2deg)}100%{-webkit-transform:skew(0);transform:skew(0)}}.hvr-wobble-bottom{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transform-origin:100% 0;transform-origin:100% 0}.hvr-wobble-bottom:active,.hvr-wobble-bottom:focus,.hvr-wobble-bottom:hover{-webkit-animation-name:hvr-wobble-bottom;animation-name:hvr-wobble-bottom;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-iteration-count:1;animation-iteration-count:1}@-webkit-keyframes hvr-wobble-skew{16.65%{-webkit-transform:skew(-12deg);transform:skew(-12deg)}33.3%{-webkit-transform:skew(10deg);transform:skew(10deg)}49.95%{-webkit-transform:skew(-6deg);transform:skew(-6deg)}66.6%{-webkit-transform:skew(4deg);transform:skew(4deg)}83.25%{-webkit-transform:skew(-2deg);transform:skew(-2deg)}100%{-webkit-transform:skew(0);transform:skew(0)}}@keyframes hvr-wobble-skew{16.65%{-webkit-transform:skew(-12deg);transform:skew(-12deg)}33.3%{-webkit-transform:skew(10deg);transform:skew(10deg)}49.95%{-webkit-transform:skew(-6deg);transform:skew(-6deg)}66.6%{-webkit-transform:skew(4deg);transform:skew(4deg)}83.25%{-webkit-transform:skew(-2deg);transform:skew(-2deg)}100%{-webkit-transform:skew(0);transform:skew(0)}}.hvr-wobble-skew{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-wobble-skew:active,.hvr-wobble-skew:focus,.hvr-wobble-skew:hover{-webkit-animation-name:hvr-wobble-skew;animation-name:hvr-wobble-skew;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-iteration-count:1;animation-iteration-count:1}@-webkit-keyframes hvr-buzz{50%{-webkit-transform:translateX(3px) rotate(2deg);transform:translateX(3px) rotate(2deg)}100%{-webkit-transform:translateX(-3px) rotate(-2deg);transform:translateX(-3px) rotate(-2deg)}}@keyframes hvr-buzz{50%{-webkit-transform:translateX(3px) rotate(2deg);transform:translateX(3px) rotate(2deg)}100%{-webkit-transform:translateX(-3px) rotate(-2deg);transform:translateX(-3px) rotate(-2deg)}}.hvr-buzz{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-buzz:active,.hvr-buzz:focus,.hvr-buzz:hover{-webkit-animation-name:hvr-buzz;animation-name:hvr-buzz;-webkit-animation-duration:.15s;animation-duration:.15s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}@-webkit-keyframes hvr-buzz-out{10%,30%{-webkit-transform:translateX(3px) rotate(2deg);transform:translateX(3px) rotate(2deg)}20%,40%{-webkit-transform:translateX(-3px) rotate(-2deg);transform:translateX(-3px) rotate(-2deg)}50%,70%{-webkit-transform:translateX(2px) rotate(1deg);transform:translateX(2px) rotate(1deg)}60%,80%{-webkit-transform:translateX(-2px) rotate(-1deg);transform:translateX(-2px) rotate(-1deg)}90%{-webkit-transform:translateX(1px) rotate(0);transform:translateX(1px) rotate(0)}100%{-webkit-transform:translateX(-1px) rotate(0);transform:translateX(-1px) rotate(0)}}@keyframes hvr-buzz-out{10%,30%{-webkit-transform:translateX(3px) rotate(2deg);transform:translateX(3px) rotate(2deg)}20%,40%{-webkit-transform:translateX(-3px) rotate(-2deg);transform:translateX(-3px) rotate(-2deg)}50%,70%{-webkit-transform:translateX(2px) rotate(1deg);transform:translateX(2px) rotate(1deg)}60%,80%{-webkit-transform:translateX(-2px) rotate(-1deg);transform:translateX(-2px) rotate(-1deg)}90%{-webkit-transform:translateX(1px) rotate(0);transform:translateX(1px) rotate(0)}100%{-webkit-transform:translateX(-1px) rotate(0);transform:translateX(-1px) rotate(0)}}.hvr-buzz-out{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-buzz-out:active,.hvr-buzz-out:focus,.hvr-buzz-out:hover{-webkit-animation-name:hvr-buzz-out;animation-name:hvr-buzz-out;-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:1;animation-iteration-count:1}.hvr-forward{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-forward:active,.hvr-forward:focus,.hvr-forward:hover{-webkit-transform:translateX(8px);transform:translateX(8px)}.hvr-backward{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-backward:active,.hvr-backward:focus,.hvr-backward:hover{-webkit-transform:translateX(-8px);transform:translateX(-8px)}.hvr-fade{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;overflow:hidden;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:color,background-color;transition-property:color,background-color}.hvr-fade:active,.hvr-fade:focus,.hvr-fade:hover{background-color:#2098d1;color:#fff}@-webkit-keyframes hvr-back-pulse{50%{background-color:rgba(32,152,209,.75)}}@keyframes hvr-back-pulse{50%{background-color:rgba(32,152,209,.75)}}.hvr-back-pulse{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;overflow:hidden;-webkit-transition-duration:.5s;transition-duration:.5s;-webkit-transition-property:color,background-color;transition-property:color,background-color}.hvr-back-pulse:active,.hvr-back-pulse:focus,.hvr-back-pulse:hover{-webkit-animation-name:hvr-back-pulse;animation-name:hvr-back-pulse;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-delay:.5s;animation-delay:.5s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;background-color:#2098d1;color:#fff}.hvr-sweep-to-right{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-sweep-to-right:before{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;background:#2098d1;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:0 50%;transform-origin:0 50%;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-sweep-to-right:active,.hvr-sweep-to-right:focus,.hvr-sweep-to-right:hover{color:#fff}.hvr-sweep-to-right:active:before,.hvr-sweep-to-right:focus:before,.hvr-sweep-to-right:hover:before{-webkit-transform:scaleX(1);transform:scaleX(1)}.hvr-sweep-to-left{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-sweep-to-left:before{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;background:#2098d1;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:100% 50%;transform-origin:100% 50%;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-sweep-to-left:active,.hvr-sweep-to-left:focus,.hvr-sweep-to-left:hover{color:#fff}.hvr-sweep-to-left:active:before,.hvr-sweep-to-left:focus:before,.hvr-sweep-to-left:hover:before{-webkit-transform:scaleX(1);transform:scaleX(1)}.hvr-sweep-to-bottom{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-sweep-to-bottom:before{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;background:#2098d1;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:50% 0;transform-origin:50% 0;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-sweep-to-bottom:active,.hvr-sweep-to-bottom:focus,.hvr-sweep-to-bottom:hover{color:#fff}.hvr-sweep-to-bottom:active:before,.hvr-sweep-to-bottom:focus:before,.hvr-sweep-to-bottom:hover:before{-webkit-transform:scaleY(1);transform:scaleY(1)}.hvr-sweep-to-top{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-sweep-to-top:before{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;background:#2098d1;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:50% 100%;transform-origin:50% 100%;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-sweep-to-top:active,.hvr-sweep-to-top:focus,.hvr-sweep-to-top:hover{color:#fff}.hvr-sweep-to-top:active:before,.hvr-sweep-to-top:focus:before,.hvr-sweep-to-top:hover:before{-webkit-transform:scaleY(1);transform:scaleY(1)}.hvr-bounce-to-right{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.5s;transition-duration:.5s}.hvr-bounce-to-right:before{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;background:#2098d1;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:0 50%;transform-origin:0 50%;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.5s;transition-duration:.5s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-bounce-to-right:active,.hvr-bounce-to-right:focus,.hvr-bounce-to-right:hover{color:#fff}.hvr-bounce-to-right:active:before,.hvr-bounce-to-right:focus:before,.hvr-bounce-to-right:hover:before{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transition-timing-function:cubic-bezier(.52,1.64,.37,.66);transition-timing-function:cubic-bezier(.52,1.64,.37,.66)}.hvr-bounce-to-left{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.5s;transition-duration:.5s}.hvr-bounce-to-left:before{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;background:#2098d1;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:100% 50%;transform-origin:100% 50%;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.5s;transition-duration:.5s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-bounce-to-left:active,.hvr-bounce-to-left:focus,.hvr-bounce-to-left:hover{color:#fff}.hvr-bounce-to-left:active:before,.hvr-bounce-to-left:focus:before,.hvr-bounce-to-left:hover:before{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transition-timing-function:cubic-bezier(.52,1.64,.37,.66);transition-timing-function:cubic-bezier(.52,1.64,.37,.66)}.hvr-bounce-to-bottom{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.5s;transition-duration:.5s}.hvr-bounce-to-bottom:before{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;background:#2098d1;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:50% 0;transform-origin:50% 0;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.5s;transition-duration:.5s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-bounce-to-bottom:active,.hvr-bounce-to-bottom:focus,.hvr-bounce-to-bottom:hover{color:#fff}.hvr-bounce-to-bottom:active:before,.hvr-bounce-to-bottom:focus:before,.hvr-bounce-to-bottom:hover:before{-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition-timing-function:cubic-bezier(.52,1.64,.37,.66);transition-timing-function:cubic-bezier(.52,1.64,.37,.66)}.hvr-bounce-to-top{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.5s;transition-duration:.5s}.hvr-bounce-to-top:before{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;background:#2098d1;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:50% 100%;transform-origin:50% 100%;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.5s;transition-duration:.5s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-bounce-to-top:active,.hvr-bounce-to-top:focus,.hvr-bounce-to-top:hover{color:#fff}.hvr-bounce-to-top:active:before,.hvr-bounce-to-top:focus:before,.hvr-bounce-to-top:hover:before{-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition-timing-function:cubic-bezier(.52,1.64,.37,.66);transition-timing-function:cubic-bezier(.52,1.64,.37,.66)}.hvr-radial-out{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;overflow:hidden;background:#e1e1e1;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-radial-out:before{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;background:#2098d1;border-radius:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-radial-out:active,.hvr-radial-out:focus,.hvr-radial-out:hover{color:#fff}.hvr-radial-out:active:before,.hvr-radial-out:focus:before,.hvr-radial-out:hover:before{-webkit-transform:scale(2);transform:scale(2)}.hvr-radial-in{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;overflow:hidden;background:#2098d1;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-radial-in:before{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;background:#e1e1e1;border-radius:100%;-webkit-transform:scale(2);transform:scale(2);-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-radial-in:active,.hvr-radial-in:focus,.hvr-radial-in:hover{color:#fff}.hvr-radial-in:active:before,.hvr-radial-in:focus:before,.hvr-radial-in:hover:before{-webkit-transform:scale(0);transform:scale(0)}.hvr-rectangle-in{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;background:#2098d1;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-rectangle-in:before{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;background:#e1e1e1;-webkit-transform:scale(1);transform:scale(1);-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-rectangle-in:active,.hvr-rectangle-in:focus,.hvr-rectangle-in:hover{color:#fff}.hvr-rectangle-in:active:before,.hvr-rectangle-in:focus:before,.hvr-rectangle-in:hover:before{-webkit-transform:scale(0);transform:scale(0)}.hvr-rectangle-out{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;background:#e1e1e1;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-rectangle-out:before{content:"";position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;background:#2098d1;-webkit-transform:scale(0);transform:scale(0);-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-rectangle-out:active,.hvr-rectangle-out:focus,.hvr-rectangle-out:hover{color:#fff}.hvr-rectangle-out:active:before,.hvr-rectangle-out:focus:before,.hvr-rectangle-out:hover:before{-webkit-transform:scale(1);transform:scale(1)}.hvr-shutter-in-horizontal{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;background:#2098d1;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-shutter-in-horizontal:before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:0;right:0;background:#e1e1e1;-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:50%;transform-origin:50%;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-shutter-in-horizontal:active,.hvr-shutter-in-horizontal:focus,.hvr-shutter-in-horizontal:hover{color:#fff}.hvr-shutter-in-horizontal:active:before,.hvr-shutter-in-horizontal:focus:before,.hvr-shutter-in-horizontal:hover:before{-webkit-transform:scaleX(0);transform:scaleX(0)}.hvr-shutter-out-horizontal{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;background:#e1e1e1;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-shutter-out-horizontal:before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:0;right:0;background:#2098d1;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:50%;transform-origin:50%;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-shutter-out-horizontal:active,.hvr-shutter-out-horizontal:focus,.hvr-shutter-out-horizontal:hover{color:#fff}.hvr-shutter-out-horizontal:active:before,.hvr-shutter-out-horizontal:focus:before,.hvr-shutter-out-horizontal:hover:before{-webkit-transform:scaleX(1);transform:scaleX(1)}.hvr-shutter-in-vertical{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;background:#2098d1;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-shutter-in-vertical:before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:0;right:0;background:#e1e1e1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transform-origin:50%;transform-origin:50%;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-shutter-in-vertical:active,.hvr-shutter-in-vertical:focus,.hvr-shutter-in-vertical:hover{color:#fff}.hvr-shutter-in-vertical:active:before,.hvr-shutter-in-vertical:focus:before,.hvr-shutter-in-vertical:hover:before{-webkit-transform:scaleY(0);transform:scaleY(0)}.hvr-shutter-out-vertical{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;background:#e1e1e1;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-shutter-out-vertical:before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:0;right:0;background:#2098d1;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:50%;transform-origin:50%;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-shutter-out-vertical:active,.hvr-shutter-out-vertical:focus,.hvr-shutter-out-vertical:hover{color:#fff}.hvr-shutter-out-vertical:active:before,.hvr-shutter-out-vertical:focus:before,.hvr-shutter-out-vertical:hover:before{-webkit-transform:scaleY(1);transform:scaleY(1)}.hvr-border-fade{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-box-shadow;transition-property:box-shadow,-webkit-box-shadow;-webkit-box-shadow:inset 0 0 0 4px #e1e1e1,0 0 1px transparent;box-shadow:inset 0 0 0 4px #e1e1e1,0 0 1px transparent}.hvr-border-fade:active,.hvr-border-fade:focus,.hvr-border-fade:hover{-webkit-box-shadow:inset 0 0 0 4px #2098d1,0 0 1px transparent;box-shadow:inset 0 0 0 4px #2098d1,0 0 1px transparent}.hvr-hollow{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:background;transition-property:background;-webkit-box-shadow:inset 0 0 0 4px #e1e1e1,0 0 1px transparent;box-shadow:inset 0 0 0 4px #e1e1e1,0 0 1px transparent}.hvr-hollow:active,.hvr-hollow:focus,.hvr-hollow:hover{background:0 0}.hvr-trim{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-trim:before{content:\'\';position:absolute;border:4px solid #fff;top:4px;left:4px;right:4px;bottom:4px;opacity:0;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:opacity;transition-property:opacity}.hvr-trim:active:before,.hvr-trim:focus:before,.hvr-trim:hover:before{opacity:1}@-webkit-keyframes hvr-ripple-out{100%{top:-12px;right:-12px;bottom:-12px;left:-12px;opacity:0}}@keyframes hvr-ripple-out{100%{top:-12px;right:-12px;bottom:-12px;left:-12px;opacity:0}}.hvr-ripple-out{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-ripple-out:before{content:\'\';position:absolute;border:6px solid #e1e1e1;top:0;right:0;bottom:0;left:0;-webkit-animation-duration:1s;animation-duration:1s}.hvr-ripple-out:active:before,.hvr-ripple-out:focus:before,.hvr-ripple-out:hover:before{-webkit-animation-name:hvr-ripple-out;animation-name:hvr-ripple-out}@-webkit-keyframes hvr-ripple-in{100%{top:0;right:0;bottom:0;left:0;opacity:1}}@keyframes hvr-ripple-in{100%{top:0;right:0;bottom:0;left:0;opacity:1}}.hvr-ripple-in{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-ripple-in:before{content:\'\';position:absolute;border:4px solid #e1e1e1;top:-12px;right:-12px;bottom:-12px;left:-12px;opacity:0;-webkit-animation-duration:1s;animation-duration:1s}.hvr-ripple-in:active:before,.hvr-ripple-in:focus:before,.hvr-ripple-in:hover:before{-webkit-animation-name:hvr-ripple-in;animation-name:hvr-ripple-in}.hvr-outline-out{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-outline-out:before{content:\'\';position:absolute;border:4px solid #e1e1e1;top:0;right:0;bottom:0;left:0;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:top,right,bottom,left;transition-property:top,right,bottom,left}.hvr-outline-out:active:before,.hvr-outline-out:focus:before,.hvr-outline-out:hover:before{top:-8px;right:-8px;bottom:-8px;left:-8px}.hvr-outline-in{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-outline-in:before{pointer-events:none;content:\'\';position:absolute;border:4px solid #e1e1e1;top:-16px;right:-16px;bottom:-16px;left:-16px;opacity:0;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:top,right,bottom,left;transition-property:top,right,bottom,left}.hvr-outline-in:active:before,.hvr-outline-in:focus:before,.hvr-outline-in:hover:before{top:-8px;right:-8px;bottom:-8px;left:-8px;opacity:1}.hvr-round-corners{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:border-radius;transition-property:border-radius}.hvr-round-corners:active,.hvr-round-corners:focus,.hvr-round-corners:hover{border-radius:1em}.hvr-underline-from-left{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;overflow:hidden}.hvr-underline-from-left:before{content:"";position:absolute;z-index:-1;left:0;right:100%;bottom:0;background:#2098d1;height:4px;-webkit-transition-property:right;transition-property:right;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-underline-from-left:active:before,.hvr-underline-from-left:focus:before,.hvr-underline-from-left:hover:before{right:0}.hvr-underline-from-center{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;overflow:hidden}.hvr-underline-from-center:before{content:"";position:absolute;z-index:-1;left:51%;right:51%;bottom:0;background:#2098d1;height:4px;-webkit-transition-property:left,right;transition-property:left,right;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-underline-from-center:active:before,.hvr-underline-from-center:focus:before,.hvr-underline-from-center:hover:before{left:0;right:0}.hvr-underline-from-right{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;overflow:hidden}.hvr-underline-from-right:before{content:"";position:absolute;z-index:-1;left:100%;right:0;bottom:0;background:#2098d1;height:4px;-webkit-transition-property:left;transition-property:left;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-underline-from-right:active:before,.hvr-underline-from-right:focus:before,.hvr-underline-from-right:hover:before{left:0}.hvr-overline-from-left{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;overflow:hidden}.hvr-overline-from-left:before{content:"";position:absolute;z-index:-1;left:0;right:100%;top:0;background:#2098d1;height:4px;-webkit-transition-property:right;transition-property:right;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-overline-from-left:active:before,.hvr-overline-from-left:focus:before,.hvr-overline-from-left:hover:before{right:0}.hvr-overline-from-center{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;overflow:hidden}.hvr-overline-from-center:before{content:"";position:absolute;z-index:-1;left:51%;right:51%;top:0;background:#2098d1;height:4px;-webkit-transition-property:left,right;transition-property:left,right;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-overline-from-center:active:before,.hvr-overline-from-center:focus:before,.hvr-overline-from-center:hover:before{left:0;right:0}.hvr-overline-from-right{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;overflow:hidden}.hvr-overline-from-right:before{content:"";position:absolute;z-index:-1;left:100%;right:0;top:0;background:#2098d1;height:4px;-webkit-transition-property:left;transition-property:left;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-overline-from-right:active:before,.hvr-overline-from-right:focus:before,.hvr-overline-from-right:hover:before{left:0}.hvr-reveal{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;overflow:hidden}.hvr-reveal:before{content:"";position:absolute;z-index:-1;left:0;right:0;top:0;bottom:0;-webkit-transition-property:border-width;transition-property:border-width;-webkit-transition-duration:.1s;transition-duration:.1s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;border:0 solid #2098d1}.hvr-reveal:active:before,.hvr-reveal:focus:before,.hvr-reveal:hover:before{-webkit-transform:translateY(0);transform:translateY(0);border-width:4px}.hvr-underline-reveal{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;overflow:hidden}.hvr-underline-reveal:before{content:"";position:absolute;z-index:-1;left:0;right:0;bottom:0;background:#2098d1;height:4px;-webkit-transform:translateY(4px);transform:translateY(4px);-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-underline-reveal:active:before,.hvr-underline-reveal:focus:before,.hvr-underline-reveal:hover:before{-webkit-transform:translateY(0);transform:translateY(0)}.hvr-overline-reveal{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;overflow:hidden}.hvr-overline-reveal:before{content:"";position:absolute;z-index:-1;left:0;right:0;top:0;background:#2098d1;height:4px;-webkit-transform:translateY(-4px);transform:translateY(-4px);-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-overline-reveal:active:before,.hvr-overline-reveal:focus:before,.hvr-overline-reveal:hover:before{-webkit-transform:translateY(0);transform:translateY(0)}.hvr-glow{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-box-shadow;transition-property:box-shadow,-webkit-box-shadow}.hvr-glow:active,.hvr-glow:focus,.hvr-glow:hover{-webkit-box-shadow:0 0 8px rgba(0,0,0,.6);box-shadow:0 0 8px rgba(0,0,0,.6)}.hvr-shadow{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-box-shadow;transition-property:box-shadow,-webkit-box-shadow}.hvr-shadow:active,.hvr-shadow:focus,.hvr-shadow:hover{-webkit-box-shadow:0 10px 10px -10px rgba(0,0,0,.5);box-shadow:0 10px 10px -10px rgba(0,0,0,.5)}.hvr-grow-shadow{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-box-shadow,-webkit-transform;transition-property:box-shadow,transform,-webkit-box-shadow,-webkit-transform}.hvr-grow-shadow:active,.hvr-grow-shadow:focus,.hvr-grow-shadow:hover{-webkit-box-shadow:0 10px 10px -10px rgba(0,0,0,.5);box-shadow:0 10px 10px -10px rgba(0,0,0,.5);-webkit-transform:scale(1.1);transform:scale(1.1)}.hvr-box-shadow-outset{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-box-shadow;transition-property:box-shadow,-webkit-box-shadow}.hvr-box-shadow-outset:active,.hvr-box-shadow-outset:focus,.hvr-box-shadow-outset:hover{-webkit-box-shadow:2px 2px 2px rgba(0,0,0,.6);box-shadow:2px 2px 2px rgba(0,0,0,.6)}.hvr-box-shadow-inset{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-box-shadow;transition-property:box-shadow,-webkit-box-shadow;-webkit-box-shadow:inset 0 0 0 rgba(0,0,0,.6),0 0 1px transparent;box-shadow:inset 0 0 0 rgba(0,0,0,.6),0 0 1px transparent}.hvr-box-shadow-inset:active,.hvr-box-shadow-inset:focus,.hvr-box-shadow-inset:hover{-webkit-box-shadow:inset 2px 2px 2px rgba(0,0,0,.6),0 0 1px transparent;box-shadow:inset 2px 2px 2px rgba(0,0,0,.6),0 0 1px transparent}.hvr-float-shadow{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-float-shadow:before{pointer-events:none;position:absolute;z-index:-1;content:\'\';top:100%;left:5%;height:10px;width:90%;opacity:0;background:radial-gradient(ellipse at center,rgba(0,0,0,.35) 0,rgba(0,0,0,0) 80%);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:opacity,-webkit-transform;transition-property:transform,opacity,-webkit-transform}.hvr-float-shadow:active,.hvr-float-shadow:focus,.hvr-float-shadow:hover{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.hvr-float-shadow:active:before,.hvr-float-shadow:focus:before,.hvr-float-shadow:hover:before{opacity:1;-webkit-transform:translateY(5px);transform:translateY(5px)}.hvr-shadow-radial{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-shadow-radial:after,.hvr-shadow-radial:before{pointer-events:none;position:absolute;content:\'\';left:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;background-repeat:no-repeat;height:5px;opacity:0;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:opacity;transition-property:opacity}.hvr-shadow-radial:before{bottom:100%;background:radial-gradient(ellipse at 50% 150%,rgba(0,0,0,.6) 0,rgba(0,0,0,0) 80%)}.hvr-shadow-radial:after{top:100%;background:radial-gradient(ellipse at 50% -50%,rgba(0,0,0,.6) 0,rgba(0,0,0,0) 80%)}.hvr-shadow-radial:active:after,.hvr-shadow-radial:active:before,.hvr-shadow-radial:focus:after,.hvr-shadow-radial:focus:before,.hvr-shadow-radial:hover:after,.hvr-shadow-radial:hover:before{opacity:1}.hvr-bubble-top{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-bubble-top:before{pointer-events:none;position:absolute;z-index:-1;content:\'\';border-style:solid;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;left:calc(50% - 10px);top:0;border-width:0 10px 10px;border-color:transparent transparent #e1e1e1}.hvr-bubble-top:active:before,.hvr-bubble-top:focus:before,.hvr-bubble-top:hover:before{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.hvr-bubble-right{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-bubble-right:before{pointer-events:none;position:absolute;z-index:-1;content:\'\';border-style:solid;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;top:calc(50% - 10px);right:0;border-width:10px 0 10px 10px;border-color:transparent transparent transparent #e1e1e1}.hvr-bubble-right:active:before,.hvr-bubble-right:focus:before,.hvr-bubble-right:hover:before{-webkit-transform:translateX(10px);transform:translateX(10px)}.hvr-bubble-bottom{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-bubble-bottom:before{pointer-events:none;position:absolute;z-index:-1;content:\'\';border-style:solid;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;left:calc(50% - 10px);bottom:0;border-width:10px 10px 0;border-color:#e1e1e1 transparent transparent}.hvr-bubble-bottom:active:before,.hvr-bubble-bottom:focus:before,.hvr-bubble-bottom:hover:before{-webkit-transform:translateY(10px);transform:translateY(10px)}.hvr-bubble-left{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-bubble-left:before{pointer-events:none;position:absolute;z-index:-1;content:\'\';border-style:solid;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;top:calc(50% - 10px);left:0;border-width:10px 10px 10px 0;border-color:transparent #e1e1e1 transparent transparent}.hvr-bubble-left:active:before,.hvr-bubble-left:focus:before,.hvr-bubble-left:hover:before{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.hvr-bubble-float-top{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-bubble-float-top:before{position:absolute;z-index:-1;content:\'\';left:calc(50% - 10px);top:0;border-style:solid;border-width:0 10px 10px;border-color:transparent transparent #e1e1e1;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-bubble-float-top:active,.hvr-bubble-float-top:focus,.hvr-bubble-float-top:hover{-webkit-transform:translateY(10px);transform:translateY(10px)}.hvr-bubble-float-top:active:before,.hvr-bubble-float-top:focus:before,.hvr-bubble-float-top:hover:before{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.hvr-bubble-float-right{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-bubble-float-right:before{position:absolute;z-index:-1;top:calc(50% - 10px);right:0;content:\'\';border-style:solid;border-width:10px 0 10px 10px;border-color:transparent transparent transparent #e1e1e1;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-bubble-float-right:active,.hvr-bubble-float-right:focus,.hvr-bubble-float-right:hover{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.hvr-bubble-float-right:active:before,.hvr-bubble-float-right:focus:before,.hvr-bubble-float-right:hover:before{-webkit-transform:translateX(10px);transform:translateX(10px)}.hvr-bubble-float-bottom{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-bubble-float-bottom:before{position:absolute;z-index:-1;content:\'\';left:calc(50% - 10px);bottom:0;border-style:solid;border-width:10px 10px 0;border-color:#e1e1e1 transparent transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-bubble-float-bottom:active,.hvr-bubble-float-bottom:focus,.hvr-bubble-float-bottom:hover{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.hvr-bubble-float-bottom:active:before,.hvr-bubble-float-bottom:focus:before,.hvr-bubble-float-bottom:hover:before{-webkit-transform:translateY(10px);transform:translateY(10px)}.hvr-bubble-float-left{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-bubble-float-left:before{position:absolute;z-index:-1;content:\'\';top:calc(50% - 10px);left:0;border-style:solid;border-width:10px 10px 10px 0;border-color:transparent #e1e1e1 transparent transparent;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform}.hvr-bubble-float-left:active,.hvr-bubble-float-left:focus,.hvr-bubble-float-left:hover{-webkit-transform:translateX(10px);transform:translateX(10px)}.hvr-bubble-float-left:active:before,.hvr-bubble-float-left:focus:before,.hvr-bubble-float-left:hover:before{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.hvr-icon-back{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.1s;transition-duration:.1s}.hvr-icon-back .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-duration:.1s;transition-duration:.1s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-back:active .hvr-icon,.hvr-icon-back:focus .hvr-icon,.hvr-icon-back:hover .hvr-icon{-webkit-transform:translateX(-4px);transform:translateX(-4px)}.hvr-icon-forward{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.1s;transition-duration:.1s}.hvr-icon-forward .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-duration:.1s;transition-duration:.1s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-forward:active .hvr-icon,.hvr-icon-forward:focus .hvr-icon,.hvr-icon-forward:hover .hvr-icon{-webkit-transform:translateX(4px);transform:translateX(4px)}@-webkit-keyframes hvr-icon-down{0%,100%,50%{-webkit-transform:translateY(0);transform:translateY(0)}25%,75%{-webkit-transform:translateY(6px);transform:translateY(6px)}}@keyframes hvr-icon-down{0%,100%,50%{-webkit-transform:translateY(0);transform:translateY(0)}25%,75%{-webkit-transform:translateY(6px);transform:translateY(6px)}}.hvr-icon-down{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-icon-down .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0)}.hvr-icon-down:active .hvr-icon,.hvr-icon-down:focus .hvr-icon,.hvr-icon-down:hover .hvr-icon{-webkit-animation-name:hvr-icon-down;animation-name:hvr-icon-down;-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes hvr-icon-up{0%,100%,50%{-webkit-transform:translateY(0);transform:translateY(0)}25%,75%{-webkit-transform:translateY(-6px);transform:translateY(-6px)}}@keyframes hvr-icon-up{0%,100%,50%{-webkit-transform:translateY(0);transform:translateY(0)}25%,75%{-webkit-transform:translateY(-6px);transform:translateY(-6px)}}.hvr-icon-up{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-icon-up .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0)}.hvr-icon-up:active .hvr-icon,.hvr-icon-up:focus .hvr-icon,.hvr-icon-up:hover .hvr-icon{-webkit-animation-name:hvr-icon-up;animation-name:hvr-icon-up;-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}.hvr-icon-spin{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-icon-spin .hvr-icon{-webkit-transition-duration:1s;transition-duration:1s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.hvr-icon-spin:active .hvr-icon,.hvr-icon-spin:focus .hvr-icon,.hvr-icon-spin:hover .hvr-icon{-webkit-transform:rotate(360deg);transform:rotate(360deg)}@-webkit-keyframes hvr-icon-drop{0%{opacity:0}50%{opacity:0;-webkit-transform:translateY(-100%);transform:translateY(-100%)}100%,51%{opacity:1}}@keyframes hvr-icon-drop{0%{opacity:0}50%{opacity:0;-webkit-transform:translateY(-100%);transform:translateY(-100%)}100%,51%{opacity:1}}.hvr-icon-drop{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-icon-drop .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0)}.hvr-icon-drop:active .hvr-icon,.hvr-icon-drop:focus .hvr-icon,.hvr-icon-drop:hover .hvr-icon{opacity:0;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-animation-name:hvr-icon-drop;animation-name:hvr-icon-drop;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:.3s;animation-delay:.3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:cubic-bezier(.52,1.64,.37,.66);animation-timing-function:cubic-bezier(.52,1.64,.37,.66)}.hvr-icon-fade{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-icon-fade .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-duration:.5s;transition-duration:.5s;-webkit-transition-property:color;transition-property:color}.hvr-icon-fade:active .hvr-icon,.hvr-icon-fade:focus .hvr-icon,.hvr-icon-fade:hover .hvr-icon{color:#0f9e5e}@-webkit-keyframes hvr-icon-float-away{0%{opacity:1}100%{opacity:0;-webkit-transform:translateY(-1em);transform:translateY(-1em)}}@keyframes hvr-icon-float-away{0%{opacity:1}100%{opacity:0;-webkit-transform:translateY(-1em);transform:translateY(-1em)}}.hvr-icon-float-away{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-icon-float-away .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hvr-icon-float-away:active .hvr-icon,.hvr-icon-float-away:focus .hvr-icon,.hvr-icon-float-away:hover .hvr-icon{-webkit-animation-name:hvr-icon-float-away;animation-name:hvr-icon-float-away;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes hvr-icon-sink-away{0%{opacity:1}100%{opacity:0;-webkit-transform:translateY(1em);transform:translateY(1em)}}@keyframes hvr-icon-sink-away{0%{opacity:1}100%{opacity:0;-webkit-transform:translateY(1em);transform:translateY(1em)}}.hvr-icon-sink-away{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-icon-sink-away .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hvr-icon-sink-away:active .hvr-icon,.hvr-icon-sink-away:focus .hvr-icon,.hvr-icon-sink-away:hover .hvr-icon{-webkit-animation-name:hvr-icon-sink-away;animation-name:hvr-icon-sink-away;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}.hvr-icon-grow{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-grow .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-grow:active .hvr-icon,.hvr-icon-grow:focus .hvr-icon,.hvr-icon-grow:hover .hvr-icon{-webkit-transform:scale(1.3) translateZ(0);transform:scale(1.3) translateZ(0)}.hvr-icon-shrink{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-shrink .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-shrink:active .hvr-icon,.hvr-icon-shrink:focus .hvr-icon,.hvr-icon-shrink:hover .hvr-icon{-webkit-transform:scale(.8);transform:scale(.8)}@-webkit-keyframes hvr-icon-pulse{25%{-webkit-transform:scale(1.3);transform:scale(1.3)}75%{-webkit-transform:scale(.8);transform:scale(.8)}}@keyframes hvr-icon-pulse{25%{-webkit-transform:scale(1.3);transform:scale(1.3)}75%{-webkit-transform:scale(.8);transform:scale(.8)}}.hvr-icon-pulse{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-icon-pulse .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-pulse:active .hvr-icon,.hvr-icon-pulse:focus .hvr-icon,.hvr-icon-pulse:hover .hvr-icon{-webkit-animation-name:hvr-icon-pulse;animation-name:hvr-icon-pulse;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}@-webkit-keyframes hvr-icon-pulse-grow{to{-webkit-transform:scale(1.3);transform:scale(1.3)}}@keyframes hvr-icon-pulse-grow{to{-webkit-transform:scale(1.3);transform:scale(1.3)}}.hvr-icon-pulse-grow{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-icon-pulse-grow .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-pulse-grow:active .hvr-icon,.hvr-icon-pulse-grow:focus .hvr-icon,.hvr-icon-pulse-grow:hover .hvr-icon{-webkit-animation-name:hvr-icon-pulse-grow;animation-name:hvr-icon-pulse-grow;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-direction:alternate}@-webkit-keyframes hvr-icon-pulse-shrink{to{-webkit-transform:scale(.8);transform:scale(.8)}}@keyframes hvr-icon-pulse-shrink{to{-webkit-transform:scale(.8);transform:scale(.8)}}.hvr-icon-pulse-shrink{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent}.hvr-icon-pulse-shrink .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-pulse-shrink:active .hvr-icon,.hvr-icon-pulse-shrink:focus .hvr-icon,.hvr-icon-pulse-shrink:hover .hvr-icon{-webkit-animation-name:hvr-icon-pulse-shrink;animation-name:hvr-icon-pulse-shrink;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-direction:alternate}@-webkit-keyframes hvr-icon-push{50%{-webkit-transform:scale(.5);transform:scale(.5)}}@keyframes hvr-icon-push{50%{-webkit-transform:scale(.5);transform:scale(.5)}}.hvr-icon-push{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-push .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-push:active .hvr-icon,.hvr-icon-push:focus .hvr-icon,.hvr-icon-push:hover .hvr-icon{-webkit-animation-name:hvr-icon-push;animation-name:hvr-icon-push;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:1;animation-iteration-count:1}@-webkit-keyframes hvr-icon-pop{50%{-webkit-transform:scale(1.5);transform:scale(1.5)}}@keyframes hvr-icon-pop{50%{-webkit-transform:scale(1.5);transform:scale(1.5)}}.hvr-icon-pop{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-pop .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-pop:active .hvr-icon,.hvr-icon-pop:focus .hvr-icon,.hvr-icon-pop:hover .hvr-icon{-webkit-animation-name:hvr-icon-pop;animation-name:hvr-icon-pop;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:1;animation-iteration-count:1}.hvr-icon-bounce{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-bounce .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-bounce:active .hvr-icon,.hvr-icon-bounce:focus .hvr-icon,.hvr-icon-bounce:hover .hvr-icon{-webkit-transform:scale(1.5);transform:scale(1.5);-webkit-transition-timing-function:cubic-bezier(.47,2.02,.31,-.36);transition-timing-function:cubic-bezier(.47,2.02,.31,-.36)}.hvr-icon-rotate{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-rotate .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-rotate:active .hvr-icon,.hvr-icon-rotate:focus .hvr-icon,.hvr-icon-rotate:hover .hvr-icon{-webkit-transform:rotate(20deg);transform:rotate(20deg)}.hvr-icon-grow-rotate{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-grow-rotate .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-grow-rotate:active .hvr-icon,.hvr-icon-grow-rotate:focus .hvr-icon,.hvr-icon-grow-rotate:hover .hvr-icon{-webkit-transform:scale(1.5) rotate(12deg);transform:scale(1.5) rotate(12deg)}.hvr-icon-float{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-float .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-float:active .hvr-icon,.hvr-icon-float:focus .hvr-icon,.hvr-icon-float:hover .hvr-icon{-webkit-transform:translateY(-4px);transform:translateY(-4px)}.hvr-icon-sink{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-sink .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:-webkit-transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.hvr-icon-sink:active .hvr-icon,.hvr-icon-sink:focus .hvr-icon,.hvr-icon-sink:hover .hvr-icon{-webkit-transform:translateY(4px);transform:translateY(4px)}@-webkit-keyframes hvr-icon-bob{0%,100%{-webkit-transform:translateY(-6px);transform:translateY(-6px)}50%{-webkit-transform:translateY(-2px);transform:translateY(-2px)}}@keyframes hvr-icon-bob{0%,100%{-webkit-transform:translateY(-6px);transform:translateY(-6px)}50%{-webkit-transform:translateY(-2px);transform:translateY(-2px)}}@-webkit-keyframes hvr-icon-bob-float{100%{-webkit-transform:translateY(-6px);transform:translateY(-6px)}}@keyframes hvr-icon-bob-float{100%{-webkit-transform:translateY(-6px);transform:translateY(-6px)}}.hvr-icon-bob{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-bob .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0)}.hvr-icon-bob:active .hvr-icon,.hvr-icon-bob:focus .hvr-icon,.hvr-icon-bob:hover .hvr-icon{-webkit-animation-name:hvr-icon-bob-float,hvr-icon-bob;animation-name:hvr-icon-bob-float,hvr-icon-bob;-webkit-animation-duration:.3s,1.5s;animation-duration:.3s,1.5s;-webkit-animation-delay:0s,.3s;animation-delay:0s,.3s;-webkit-animation-timing-function:ease-out,ease-in-out;animation-timing-function:ease-out,ease-in-out;-webkit-animation-iteration-count:1,infinite;animation-iteration-count:1,infinite;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-direction:normal,alternate;animation-direction:normal,alternate}@-webkit-keyframes hvr-icon-hang{0%,100%{-webkit-transform:translateY(6px);transform:translateY(6px)}50%{-webkit-transform:translateY(2px);transform:translateY(2px)}}@keyframes hvr-icon-hang{0%,100%{-webkit-transform:translateY(6px);transform:translateY(6px)}50%{-webkit-transform:translateY(2px);transform:translateY(2px)}}@-webkit-keyframes hvr-icon-hang-sink{100%{-webkit-transform:translateY(6px);transform:translateY(6px)}}@keyframes hvr-icon-hang-sink{100%{-webkit-transform:translateY(6px);transform:translateY(6px)}}.hvr-icon-hang{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-hang .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0)}.hvr-icon-hang:active .hvr-icon,.hvr-icon-hang:focus .hvr-icon,.hvr-icon-hang:hover .hvr-icon{-webkit-animation-name:hvr-icon-hang-sink,hvr-icon-hang;animation-name:hvr-icon-hang-sink,hvr-icon-hang;-webkit-animation-duration:.3s,1.5s;animation-duration:.3s,1.5s;-webkit-animation-delay:0s,.3s;animation-delay:0s,.3s;-webkit-animation-timing-function:ease-out,ease-in-out;animation-timing-function:ease-out,ease-in-out;-webkit-animation-iteration-count:1,infinite;animation-iteration-count:1,infinite;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-direction:normal,alternate;animation-direction:normal,alternate}@-webkit-keyframes hvr-icon-wobble-horizontal{16.65%{-webkit-transform:translateX(6px);transform:translateX(6px)}33.3%{-webkit-transform:translateX(-5px);transform:translateX(-5px)}49.95%{-webkit-transform:translateX(4px);transform:translateX(4px)}66.6%{-webkit-transform:translateX(-2px);transform:translateX(-2px)}83.25%{-webkit-transform:translateX(1px);transform:translateX(1px)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes hvr-icon-wobble-horizontal{16.65%{-webkit-transform:translateX(6px);transform:translateX(6px)}33.3%{-webkit-transform:translateX(-5px);transform:translateX(-5px)}49.95%{-webkit-transform:translateX(4px);transform:translateX(4px)}66.6%{-webkit-transform:translateX(-2px);transform:translateX(-2px)}83.25%{-webkit-transform:translateX(1px);transform:translateX(1px)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.hvr-icon-wobble-horizontal{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-wobble-horizontal .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0)}.hvr-icon-wobble-horizontal:active .hvr-icon,.hvr-icon-wobble-horizontal:focus .hvr-icon,.hvr-icon-wobble-horizontal:hover .hvr-icon{-webkit-animation-name:hvr-icon-wobble-horizontal;animation-name:hvr-icon-wobble-horizontal;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-iteration-count:1;animation-iteration-count:1}@-webkit-keyframes hvr-icon-wobble-vertical{16.65%{-webkit-transform:translateY(6px);transform:translateY(6px)}33.3%{-webkit-transform:translateY(-5px);transform:translateY(-5px)}49.95%{-webkit-transform:translateY(4px);transform:translateY(4px)}66.6%{-webkit-transform:translateY(-2px);transform:translateY(-2px)}83.25%{-webkit-transform:translateY(1px);transform:translateY(1px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes hvr-icon-wobble-vertical{16.65%{-webkit-transform:translateY(6px);transform:translateY(6px)}33.3%{-webkit-transform:translateY(-5px);transform:translateY(-5px)}49.95%{-webkit-transform:translateY(4px);transform:translateY(4px)}66.6%{-webkit-transform:translateY(-2px);transform:translateY(-2px)}83.25%{-webkit-transform:translateY(1px);transform:translateY(1px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}.hvr-icon-wobble-vertical{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-wobble-vertical .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0)}.hvr-icon-wobble-vertical:active .hvr-icon,.hvr-icon-wobble-vertical:focus .hvr-icon,.hvr-icon-wobble-vertical:hover .hvr-icon{-webkit-animation-name:hvr-icon-wobble-vertical;animation-name:hvr-icon-wobble-vertical;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-iteration-count:1;animation-iteration-count:1}@-webkit-keyframes hvr-icon-buzz{50%{-webkit-transform:translateX(3px) rotate(2deg);transform:translateX(3px) rotate(2deg)}100%{-webkit-transform:translateX(-3px) rotate(-2deg);transform:translateX(-3px) rotate(-2deg)}}@keyframes hvr-icon-buzz{50%{-webkit-transform:translateX(3px) rotate(2deg);transform:translateX(3px) rotate(2deg)}100%{-webkit-transform:translateX(-3px) rotate(-2deg);transform:translateX(-3px) rotate(-2deg)}}.hvr-icon-buzz{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-buzz .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0)}.hvr-icon-buzz:active .hvr-icon,.hvr-icon-buzz:focus .hvr-icon,.hvr-icon-buzz:hover .hvr-icon{-webkit-animation-name:hvr-icon-buzz;animation-name:hvr-icon-buzz;-webkit-animation-duration:.15s;animation-duration:.15s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}@-webkit-keyframes hvr-icon-buzz-out{10%,30%{-webkit-transform:translateX(3px) rotate(2deg);transform:translateX(3px) rotate(2deg)}20%,40%{-webkit-transform:translateX(-3px) rotate(-2deg);transform:translateX(-3px) rotate(-2deg)}50%,70%{-webkit-transform:translateX(2px) rotate(1deg);transform:translateX(2px) rotate(1deg)}60%,80%{-webkit-transform:translateX(-2px) rotate(-1deg);transform:translateX(-2px) rotate(-1deg)}90%{-webkit-transform:translateX(1px) rotate(0);transform:translateX(1px) rotate(0)}100%{-webkit-transform:translateX(-1px) rotate(0);transform:translateX(-1px) rotate(0)}}@keyframes hvr-icon-buzz-out{10%,30%{-webkit-transform:translateX(3px) rotate(2deg);transform:translateX(3px) rotate(2deg)}20%,40%{-webkit-transform:translateX(-3px) rotate(-2deg);transform:translateX(-3px) rotate(-2deg)}50%,70%{-webkit-transform:translateX(2px) rotate(1deg);transform:translateX(2px) rotate(1deg)}60%,80%{-webkit-transform:translateX(-2px) rotate(-1deg);transform:translateX(-2px) rotate(-1deg)}90%{-webkit-transform:translateX(1px) rotate(0);transform:translateX(1px) rotate(0)}100%{-webkit-transform:translateX(-1px) rotate(0);transform:translateX(-1px) rotate(0)}}.hvr-icon-buzz-out{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;-webkit-transition-duration:.3s;transition-duration:.3s}.hvr-icon-buzz-out .hvr-icon{-webkit-transform:translateZ(0);transform:translateZ(0)}.hvr-icon-buzz-out:active .hvr-icon,.hvr-icon-buzz-out:focus .hvr-icon,.hvr-icon-buzz-out:hover .hvr-icon{-webkit-animation-name:hvr-icon-buzz-out;animation-name:hvr-icon-buzz-out;-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:1;animation-iteration-count:1}.hvr-curl-top-left{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-curl-top-left:before{pointer-events:none;position:absolute;content:\'\';height:0;width:0;top:0;left:0;background:#fff;background:linear-gradient(135deg,#fff 45%,#aaa 50%,#ccc 56%,#fff 80%);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=\'#ffffff\', endColorstr=\'#000000\');z-index:1000;-webkit-box-shadow:1px 1px 1px rgba(0,0,0,.4);box-shadow:1px 1px 1px rgba(0,0,0,.4);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:width,height;transition-property:width,height}.hvr-curl-top-left:active:before,.hvr-curl-top-left:focus:before,.hvr-curl-top-left:hover:before{width:25px;height:25px}.hvr-curl-top-right{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-curl-top-right:before{pointer-events:none;position:absolute;content:\'\';height:0;width:0;top:0;right:0;background:#fff;background:linear-gradient(225deg,#fff 45%,#aaa 50%,#ccc 56%,#fff 80%);-webkit-box-shadow:-1px 1px 1px rgba(0,0,0,.4);box-shadow:-1px 1px 1px rgba(0,0,0,.4);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:width,height;transition-property:width,height}.hvr-curl-top-right:active:before,.hvr-curl-top-right:focus:before,.hvr-curl-top-right:hover:before{width:25px;height:25px}.hvr-curl-bottom-right{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-curl-bottom-right:before{pointer-events:none;position:absolute;content:\'\';height:0;width:0;bottom:0;right:0;background:#fff;background:linear-gradient(315deg,#fff 45%,#aaa 50%,#ccc 56%,#fff 80%);-webkit-box-shadow:-1px -1px 1px rgba(0,0,0,.4);box-shadow:-1px -1px 1px rgba(0,0,0,.4);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:width,height;transition-property:width,height}.hvr-curl-bottom-right:active:before,.hvr-curl-bottom-right:focus:before,.hvr-curl-bottom-right:hover:before{width:25px;height:25px}.hvr-curl-bottom-left{display:inline-block;vertical-align:middle;-webkit-transform:perspective(1px) translateZ(0);transform:perspective(1px) translateZ(0);-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative}.hvr-curl-bottom-left:before{pointer-events:none;position:absolute;content:\'\';height:0;width:0;bottom:0;left:0;background:#fff;background:linear-gradient(45deg,#fff 45%,#aaa 50%,#ccc 56%,#fff 80%);-webkit-box-shadow:1px -1px 1px rgba(0,0,0,.4);box-shadow:1px -1px 1px rgba(0,0,0,.4);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:width,height;transition-property:width,height}.hvr-curl-bottom-left:active:before,.hvr-curl-bottom-left:focus:before,.hvr-curl-bottom-left:hover:before{width:25px;height:25px}#chat21-container html{line-height:1.15;-webkit-text-size-adjust:100%}#chat21-container body{margin:0}#chat21-container main{display:block}#chat21-container h1{font-size:2em;margin:.67em 0}#chat21-container hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}#chat21-container code,#chat21-container kbd,#chat21-container pre,#chat21-container samp{font-family:monospace,monospace;font-size:1em}#chat21-container a{background-color:transparent}#chat21-container abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}#chat21-container b,#chat21-container strong{font-weight:bolder}#chat21-container small{font-size:80%}#chat21-container sub,#chat21-container sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}#chat21-container sub{bottom:-.25em}#chat21-container sup{top:-.5em}#chat21-container img{border-style:none}#chat21-container button,#chat21-container input,#chat21-container optgroup,#chat21-container select,#chat21-container textarea{font-family:inherit;font-size:100%;line-height:1.15}#chat21-container button,#chat21-container input{overflow:visible}#chat21-container button,#chat21-container select{text-transform:none}#chat21-container [type=button],#chat21-container [type=reset],#chat21-container [type=submit],#chat21-container button{-webkit-appearance:button}#chat21-container [type=button]::-moz-focus-inner,#chat21-container [type=reset]::-moz-focus-inner,#chat21-container [type=submit]::-moz-focus-inner,#chat21-container button::-moz-focus-inner{border-style:none;padding:0}#chat21-container [type=button]:-moz-focusring,#chat21-container [type=reset]:-moz-focusring,#chat21-container [type=submit]:-moz-focusring,#chat21-container button:-moz-focusring{outline:ButtonText dotted 1px}#chat21-container fieldset{padding:.35em .75em .625em}#chat21-container legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}#chat21-container progress{vertical-align:baseline}#chat21-container textarea{overflow:auto}#chat21-container [type=checkbox],#chat21-container [type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}#chat21-container [type=number]::-webkit-inner-spin-button,#chat21-container [type=number]::-webkit-outer-spin-button{height:auto}#chat21-container [type=search]{-webkit-appearance:textfield;outline-offset:-2px}#chat21-container [type=search]::-webkit-search-decoration{-webkit-appearance:none}#chat21-container ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}#chat21-container details{display:block}#chat21-container summary{display:list-item}#chat21-container [hidden],#chat21-container template{display:none}@-webkit-keyframes modal-active-in{0%{left:100%;opacity:0}100%{background-color:rgba(0,0,0,.8);opacity:1;left:0}}@keyframes modal-active-in{0%{left:100%;opacity:0}100%{background-color:rgba(0,0,0,.8);opacity:1;left:0}}@-webkit-keyframes modal-active-out{0%{left:0;opacity:1;display:block}99%{display:block}100%{opacity:0;left:100%;display:none}}@keyframes modal-active-out{0%{opacity:1;left:0;display:block}99%{display:block}100%{left:100%;opacity:0;display:none}}@-webkit-keyframes slide-out-right{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%,99%{-webkit-transform:translateX(1000px);transform:translateX(1000px);opacity:0}}@keyframes slide-out-right{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%,99%{-webkit-transform:translateX(1000px);transform:translateX(1000px);opacity:0}}@-webkit-keyframes rotate-scale-up{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.6) rotateZ(180deg);transform:scale(1.6) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes rotate-scale-up{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.6) rotateZ(180deg);transform:scale(1.6) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes swirl-in-bck{0%{-webkit-transform:rotate(540deg) scale(5);transform:rotate(540deg) scale(5);opacity:0}100%{-webkit-transform:rotate(0) scale(1);transform:rotate(0) scale(1);opacity:1}}@keyframes swirl-in-bck{0%{-webkit-transform:rotate(540deg) scale(5);transform:rotate(540deg) scale(5);opacity:0}100%{-webkit-transform:rotate(0) scale(1);transform:rotate(0) scale(1);opacity:1}}@-webkit-keyframes jello-horizontal{0%,100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}}@keyframes jello-horizontal{0%,100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}}@-webkit-keyframes scale-in-center{0%{-webkit-transform:scale(0);transform:scale(0);opacity:1}100%{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes scale-in-center{0%{-webkit-transform:scale(0);transform:scale(0);opacity:1}100%{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-webkit-keyframes rotate-center{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate-center{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes swing-in-bottom-fwd{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);-webkit-transform-origin:bottom;transform-origin:bottom;opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);-webkit-transform-origin:bottom;transform-origin:bottom;opacity:1}}@keyframes swing-in-bottom-fwd{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);-webkit-transform-origin:bottom;transform-origin:bottom;opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);-webkit-transform-origin:bottom;transform-origin:bottom;opacity:1}}@-webkit-keyframes heartbeat{from{-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:center center;transform-origin:center center;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}10%{-webkit-transform:scale(.91);transform:scale(.91);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}17%{-webkit-transform:scale(.98);transform:scale(.98);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}33%{-webkit-transform:scale(.87);transform:scale(.87);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}45%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes heartbeat{from{-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:center center;transform-origin:center center;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}10%{-webkit-transform:scale(.91);transform:scale(.91);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}17%{-webkit-transform:scale(.98);transform:scale(.98);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}33%{-webkit-transform:scale(.87);transform:scale(.87);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}45%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@-webkit-keyframes fade-in-top{0%{-webkit-transform:translateY(-50px);transform:translateY(-50px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes fade-in-top{0%{-webkit-transform:translateY(-50px);transform:translateY(-50px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@-webkit-keyframes fade-in-bottom{0%{-webkit-transform:translateY(50px);transform:translateY(50px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes fade-in-bottom{0%{-webkit-transform:translateY(50px);transform:translateY(50px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@-webkit-keyframes fade-in-dw-up{0%{display:none;-webkit-transform:translateY(50px);transform:translateY(50px);opacity:0}1%{display:block;-webkit-transform:translateY(50px);transform:translateY(50px);opacity:0}100%{display:block;-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes fade-in-dw-up{0%{display:none;-webkit-transform:translateY(50px);transform:translateY(50px);opacity:0}1%{display:block;-webkit-transform:translateY(50px);transform:translateY(50px);opacity:0}100%{display:block;-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@-webkit-keyframes slide-in-right{0%{-webkit-transform:translateX(1000px);transform:translateX(1000px);opacity:0}100%,99%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}}@keyframes slide-in-right{0%{-webkit-transform:translateX(1000px);transform:translateX(1000px);opacity:0}100%,99%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}}@-webkit-keyframes slide-in-left{0%{-webkit-transform:translateX(-1000px);transform:translateX(-1000px);opacity:0}100%,99%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}}@keyframes slide-in-left{0%{-webkit-transform:translateX(-1000px);transform:translateX(-1000px);opacity:0}100%,99%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}}body{margin:0}button{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.slide-in-right{-webkit-animation:.5s cubic-bezier(.895,.03,.685,.22) both slide-in-right;animation:.5s cubic-bezier(.895,.03,.685,.22) both slide-in-right}.slide-in-left{-webkit-animation:.5s cubic-bezier(.895,.03,.685,.22) .2s both slide-in-left;animation:.5s cubic-bezier(.895,.03,.685,.22) .2s both slide-in-left}.scale-in-center{display:block;opacity:1;-webkit-animation:.5s both scale-in-center;animation:.5s both scale-in-center}.jello-horizontal{-webkit-animation:.9s 3s both jello-horizontal;animation:.9s 3s both jello-horizontal}.swirl-in-bck{-webkit-animation:.65s ease-in .5s both swirl-in-bck;animation:.65s ease-in .5s both swirl-in-bck}.rotate-scale-up{-webkit-animation:.65s linear both rotate-scale-up;animation:.65s linear both rotate-scale-up}.rotate-center:hover{-webkit-animation:.6s ease-in-out both rotate-center;animation:.6s ease-in-out both rotate-center}.swing-in-bottom-fwd{-webkit-animation:.5s cubic-bezier(.175,.885,.32,1.275) both swing-in-bottom-fwd;animation:.5s cubic-bezier(.175,.885,.32,1.275) both swing-in-bottom-fwd}.heartbeat:hover{-webkit-animation:1.5s ease-in-out infinite both heartbeat;animation:1.5s ease-in-out infinite both heartbeat}textarea::-webkit-input-placeholder{color:#aaa;font-weight:300}textarea:-ms-input-placeholder{color:#aaa;font-weight:300}textarea::-ms-input-placeholder{color:#aaa;font-weight:300}textarea::placeholder{color:#aaa;font-weight:300}.msg_container .button-in-msg{color:#fff!important;background:#2a6ac1!important;position:relative;max-width:300px;min-width:inherit;padding:8px 16px!important;cursor:auto;border:1px solid #fff;border-radius:20px!important;margin:3px;overflow:hidden;font-family:Muli,sans-serif;font-size:15px;text-overflow:ellipsis;white-space:normal;letter-spacing:-.24px;-webkit-font-smoothing:antialiased}.msg_container .button-in-msg p{font-size:15px!important;font-family:Muli,sans-serif!important;font-weight:400!important}tiledeskwidget-root{position:absolute;display:block;width:100%;height:100%}tiledeskwidget-root :focus{outline:0}tiledeskwidget-root button{cursor:pointer}tiledeskwidget-root textarea,tiledeskwidget-root textarea:active,tiledeskwidget-root textarea:focus,tiledeskwidget-root textarea:hover,tiledeskwidget-root textarea:visited{all:unset;line-height:15px!important;outline:0!important;-webkit-box-shadow:none!important;box-shadow:none!important;border:0 solid rgba(0,0,0,.2)!important}tiledeskwidget-root .c21-button-clean{-webkit-appearance:initial;border:none;background-color:transparent;padding:0;margin:0}tiledeskwidget-root #chat21-container{position:absolute;width:100%;height:100%;font-family:Roboto,\'Google Sans\',Helvetica,Arial,sans-serif;font-size:10px;text-align:left;background-color:transparent;display:none;overflow:hidden}tiledeskwidget-root #chat21-container.active{display:block}tiledeskwidget-root #chat21-container a:active,tiledeskwidget-root #chat21-container a:hover,tiledeskwidget-root #chat21-container a:link,tiledeskwidget-root #chat21-container a:visited{color:#fff}tiledeskwidget-root #chat21-container div.clear{all:unset;clear:both}tiledeskwidget-root #chat21-container .truncate{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}tiledeskwidget-root #chat21-container .v-align-center{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;float:left}tiledeskwidget-root #chat21-container .c21-align-left{left:0}tiledeskwidget-root #chat21-container .c21-align-right{right:0}tiledeskwidget-root #chat21-container .time{font-size:1em;color:#aaa;text-align:left;margin:-2px 0 0;padding:0 40px;background-color:transparent}tiledeskwidget-root #chat21-container .time.sender{text-align:right;margin-right:24px;padding:0}tiledeskwidget-root #chat21-container .msg_receive a{color:#62a8ea}tiledeskwidget-root #chat21-container button.c21-button-primary{width:auto;height:40px;line-height:40px;margin:8px 0;padding:0 24px;opacity:1;text-align:center;font-size:1em;border-radius:40px;background-color:#2a6ac1;color:#fff;border:0;cursor:pointer}tiledeskwidget-root #chat21-container button.c21-button-primary .c21-label-button{margin-left:8px;font-weight:400;font-size:.9em}tiledeskwidget-root #chat21-container button.c21-button-primary:active,tiledeskwidget-root #chat21-container button.c21-button-primary:focus,tiledeskwidget-root #chat21-container button.c21-button-primary:hover{opacity:.8}tiledeskwidget-root #chat21-container button.c21-button-link{font-weight:400;font-size:14px;color:#2a6ac1;text-decoration:none;background-color:transparent;border:1px solid transparent;cursor:pointer}tiledeskwidget-root #chat21-container button.c21-button-link:active,tiledeskwidget-root #chat21-container button.c21-button-link:focus,tiledeskwidget-root #chat21-container button.c21-button-link:hover{text-decoration:underline;outline:0}tiledeskwidget-root #chat21-container .c21-divBudge{position:absolute;top:0;width:auto;height:12px;min-width:12px;font-size:1em;line-height:1.2em;border-radius:50%;background-color:red;color:#fff;text-align:center;margin-top:-10px;display:inline-block;-webkit-box-sizing:initial;box-sizing:initial;padding:5px;left:0}tiledeskwidget-root #chat21-container .c21-button{display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer}tiledeskwidget-root #chat21-container .c21-close-button{position:absolute;width:50px;height:50px;top:0;right:0;margin:10px;z-index:10}tiledeskwidget-root #chat21-container .c21-close-button .c21-close-button-body{cursor:pointer;width:51px;height:51px;border-radius:8px;padding:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:initial;border:none;background-color:rgba(0,0,0,0)}tiledeskwidget-root #chat21-container .c21-close-button .c21-close-button-body:hover{background-color:rgba(0,0,0,.4)}tiledeskwidget-root #chat21-container .c21-close-button .c21-close-button-body svg{margin:0 auto;fill:#fff}tiledeskwidget-root #chat21-container #chat21-spinner{display:none;width:70px;min-height:20px;margin:20px auto 0;text-align:center}tiledeskwidget-root #chat21-container #chat21-spinner.active{display:block}tiledeskwidget-root #chat21-container #chat21-spinner>div{width:12px;height:12px;background-color:#2a6ac1;border-radius:100%;display:inline-block;-webkit-animation:1.4s ease-in-out infinite both sk-bouncedelay;animation:1.4s ease-in-out infinite both sk-bouncedelay}tiledeskwidget-root #chat21-container #chat21-spinner .chat21-bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s}tiledeskwidget-root #chat21-container #chat21-spinner .chat21-bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s}tiledeskwidget-root #chat21-container #chat21-spinner span{display:block;margin:.5em 0 0;color:#2a6ac1;font-family:Roboto,sans-serif;-webkit-animation:2s linear infinite pulse;animation:2s linear infinite pulse;text-align:center}@-webkit-keyframes sk-bouncedelay{0%,100%,80%{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes sk-bouncedelay{0%,100%,80%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}tiledeskwidget-root #chat21-container #chat21-conversations{position:absolute;left:1px;right:1px;top:1px;bottom:1px;border-radius:0;overflow:hidden;background-color:transparent;border:1px solid #ccc;margin:0;padding:0}tiledeskwidget-root #chat21-container #chat21-conversations.full-screen-mode{width:100%;height:100%;right:0;top:0;left:0;bottom:0;border-radius:0;max-height:none}tiledeskwidget-root #chat21-container .chat21-fullscreen{width:100%;height:100%;right:0;left:0;bottom:0;border-radius:0;max-height:none}tiledeskwidget-root #chat21-container .modal-page{position:absolute;height:100%;width:100%;top:0;bottom:0;z-index:1;background-color:transparent;opacity:0;display:none}tiledeskwidget-root #chat21-container .modal-page.active{display:inline-block;opacity:1}tiledeskwidget-root #chat21-container .modal-page.modal-slide-in-right{position:absolute;left:0;top:0;bottom:0;opacity:1;display:inline-block;-webkit-animation-name:modal-active-in;-webkit-animation-duration:.3s;animation-name:modal-active-in;animation-duration:.3s}tiledeskwidget-root #chat21-container .modal-page.modal-slide-out-right{position:absolute;opacity:1;display:inline-block;-webkit-animation:.3s cubic-bezier(.55,.085,.68,.53) both slide-out-right;animation:.3s cubic-bezier(.55,.085,.68,.53) both slide-out-right}tiledeskwidget-root .c21-header{overflow:hidden;width:100%;height:52px;position:relative;margin:0;padding:0;color:#fff;z-index:10}tiledeskwidget-root .c21-header button:hover{background:rgba(240,240,240,.2)!important;opacity:1!important;transition:.45s ease-in-out!important;-moz-transition:.45s ease-in-out!important;-webkit-transition:.45s ease-in-out!important;padding:0;margin:0;border-radius:10%}tiledeskwidget-root .c21-header button:active,tiledeskwidget-root .c21-header button:focus{background:rgba(240,240,240,.2)!important;opacity:1!important;padding:0;margin:0;border-radius:10%}tiledeskwidget-root .c21-header .c21-header-container{position:relative;height:52px;width:100%;margin:0 auto}tiledeskwidget-root .c21-header .c21-header-container .c21-header-content{position:absolute;top:0;left:0;width:100%;height:100%}tiledeskwidget-root .c21-header .c21-header-container .c21-header-content .c21-header-button{display:block;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center;width:40px;height:40px;margin:6px 6px 0;padding:0;cursor:pointer}tiledeskwidget-root .c21-header .c21-header-container .c21-header-content .c21-header-button.c21-right{float:right}tiledeskwidget-root .c21-header .c21-header-container .c21-header-content .c21-header-button.c21-left{float:left}tiledeskwidget-root .c21-header .c21-header-container .c21-header-content .c21-header-button.c21-close{display:none}tiledeskwidget-root .c21-header .c21-header-container .c21-header-content .c21-header-button svg{height:20px;width:20px;margin:10px}tiledeskwidget-root .c21-header .c21-header-container .c21-header-content .c21-title{position:absolute;left:0;display:inline-block;width:calc(100% - 200px);height:1.6em;line-height:1.6em;padding:0;margin:10px 100px;text-align:center;font-size:1.6em;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tiledeskwidget-root .c21-body::-webkit-scrollbar{display:none}tiledeskwidget-root .c21-body{position:absolute;top:52px;bottom:0;left:0;right:0;padding:0;margin:0 auto;overflow:hidden}tiledeskwidget-root .c21-body .c21-body-container{position:absolute;top:0;bottom:0;left:0;right:0;height:auto;width:auto}tiledeskwidget-root .c21-body .c21-body-container .c21-body-header{position:absolute;top:0;left:30px;right:30px;padding:10px 0;margin:0 auto;width:auto;height:auto;z-index:2}tiledeskwidget-root .c21-body .c21-body-container .c21-body-content{position:absolute;top:0;bottom:0;left:0;right:0;padding:0;margin:0 auto;height:auto}@media (width:376px){tiledeskwidget-root #chat21-conversations{border-radius:10px!important}}@media (max-width:451px){tiledeskwidget-root #chat21-container .header-button.close{display:-webkit-box;display:-ms-flexbox;display:flex}}']],Pe=l["\u0275crt"]({encapsulation:2,styles:Me,data:{}});function Ee(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,5,"div",[["class","modal-page active"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](3,0,null,null,1,"tiledeskwidget-home",[],null,[[null,"eventClose"],[null,"eventNewConv"],[null,"eventSelctedConv"],[null,"eventSignOut"],[null,"eventOpenAllConv"]],function(t,n,e){var l=!0,o=t.component;"eventClose"===n&&(l=!1!==o.returnCloseWidget()&&l);"eventNewConv"===n&&(l=!1!==o.returnNewConversation()&&l);"eventSelctedConv"===n&&(l=!1!==o.returnSelectedConversation(e)&&l);"eventSignOut"===n&&(l=!1!==o.returnSignOut()&&l);"eventOpenAllConv"===n&&(l=!1!==o.returnOpenAllConversation()&&l);return l},_t,kt)),l["\u0275did"](4,114688,null,0,wt,[Z],{senderId:[0,"senderId"]},{eventNewConv:"eventNewConv",eventSelctedConv:"eventSelctedConv",eventClose:"eventClose",eventSignOut:"eventSignOut",eventOpenAllConv:"eventOpenAllConv"}),(t()(),l["\u0275ted"](-1,null,["\n        "]))],function(t,n){t(n,4,0,n.component.senderId)},null)}function Se(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,5,"div",[["class","modal-page active"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](3,0,null,null,1,"tiledeskwidget-list-all-conversations",[],null,[[null,"eventClosePage"],[null,"eventSelctedConv"]],function(t,n,e){var l=!0,o=t.component;"eventClosePage"===n&&(l=!1!==o.returnCloseAllConversation()&&l);"eventSelctedConv"===n&&(l=!1!==o.returnSelectedConversation(e)&&l);return l},At,St)),l["\u0275did"](4,4440064,null,0,Pt,[Z,l.NgZone,Mt],{senderId:[0,"senderId"]},{eventSelctedConv:"eventSelctedConv",eventClosePage:"eventClosePage"}),(t()(),l["\u0275ted"](-1,null,["\n        "]))],function(t,n){t(n,4,0,n.component.recipientId)},null)}function Ie(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,5,"div",[["class","modal-page"]],[[2,"modal-slide-in-right",null]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](3,0,null,null,1,"tiledeskwidget-conversation",[],null,[[null,"eventClose"],[null,"eventCloseWidget"],["window","resize"]],function(t,n,e){var o=!0,i=t.component;"window:resize"===n&&(o=!1!==l["\u0275nov"](t,4).onResize(e)&&o);"eventClose"===n&&(o=!1!==i.returnCloseConversation()&&o);"eventCloseWidget"===n&&(o=!1!==i.returnCloseWidget()&&o);return o},Vn,$t)),l["\u0275did"](4,4964352,null,0,Kt,[l.ElementRef,Z,l.NgZone,G,Wt,K,nt,W,Gt.c,it,H,Mt,r,Xt],{recipientId:[0,"recipientId"],elRoot:[1,"elRoot"],conversation:[2,"conversation"],isOpen:[3,"isOpen"]},{eventClose:"eventClose",eventCloseWidget:"eventCloseWidget"}),(t()(),l["\u0275ted"](-1,null,["\n        "]))],function(t,n){var e=n.component;t(n,4,0,e.recipientId,e.el,e.conversationSelected,e.g.isOpen)},function(t,n){t(n,0,0,n.component.isOpenConversation)})}function Le(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,4,"div",[["class","modal-page selection-department active"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](2,0,null,null,1,"tiledeskwidget-selection-department",[],null,[[null,"eventClosePage"],[null,"eventDepartmentSelected"]],function(t,n,e){var l=!0,o=t.component;"eventClosePage"===n&&(l=!1!==o.returnCloseModalDepartment()&&l);"eventDepartmentSelected"===n&&(l=!1!==o.returnDepartmentSelected(e)&&l);return l},Hn,Xn)),l["\u0275did"](3,4308992,null,0,Yn,[Z,G,H],null,{eventDepartmentSelected:"eventDepartmentSelected",eventClosePage:"eventClosePage"}),(t()(),l["\u0275ted"](-1,null,["\n        "]))],function(t,n){t(n,3,0)},null)}function Te(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,4,"div",[["class","modal-page prechat-form active"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](2,0,null,null,1,"tiledeskwidget-prechat-form",[],null,[[null,"eventClosePage"],[null,"eventCloseForm"]],function(t,n,e){var l=!0,o=t.component;"eventClosePage"===n&&(l=!1!==o.returnCloseModalPrechatForm()&&l);"eventCloseForm"===n&&(l=!1!==o.returnPrechatFormComplete()&&l);return l},$n,qn)),l["\u0275did"](3,4308992,null,0,Gn,[Z,Vt.d,H],null,{eventClosePage:"eventClosePage",eventCloseForm:"eventCloseForm"}),(t()(),l["\u0275ted"](-1,null,["\n        "]))],function(t,n){t(n,3,0)},null)}function Ae(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,4,"div",[["class","modal-page star-rating-widget active"]],null,null,null,null,null)),(t()(),l["\u0275ted"](-1,null,["\n            "])),(t()(),l["\u0275eld"](2,0,null,null,1,"tiledeskwidget-star-rating-widget",[],null,[[null,"eventClosePage"],[null,"eventCloseRate"]],function(t,n,e){var l=!0,o=t.component;"eventClosePage"===n&&(l=!1!==o.returnCloseModalRateChat()&&l);"eventCloseRate"===n&&(l=!1!==o.returnRateChatComplete()&&l);return l},se,te)),l["\u0275did"](3,245760,null,0,Jn,[W,Z],null,{eventClosePage:"eventClosePage",eventCloseRate:"eventCloseRate"}),(t()(),l["\u0275ted"](-1,null,["\n        "]))],function(t,n){t(n,3,0)},null)}function Re(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"tiledeskwidget-eyeeye-catcher-card",[],null,[[null,"eventOpenChat"],[null,"eventOpenEyeCatcher"]],function(t,n,e){var l=!0,o=t.component;"eventOpenChat"===n&&(l=!1!==o.returnOpenChat()&&l);"eventOpenEyeCatcher"===n&&(l=!1!==o.returneventOpenEyeCatcher(e)&&l);return l},be,de)),l["\u0275did"](1,114688,null,0,ue,[Z],null,{eventOpenChat:"eventOpenChat",eventOpenEyeCatcher:"eventOpenEyeCatcher"})],function(t,n){t(n,1,0)},null)}function Ne(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"tiledeskwidget-launcher-button",[],null,[[null,"eventOpenCloseWidget"]],function(t,n,e){var l=!0,o=t.component;"eventOpenCloseWidget"===n&&(l=!1!==o.openCloseWidget(e)&&l);return l},_e,xe)),l["\u0275did"](1,4308992,null,0,ve,[Z,H],null,{eventOpenCloseWidget:"eventOpenCloseWidget"})],function(t,n){t(n,1,0)},null)}function Fe(t){return l["\u0275vid"](0,[(t()(),l["\u0275ted"](-1,null,["\n"])),(t()(),l["\u0275eld"](1,0,null,null,39,"div",[["id","chat21-container"],["onFocus","document.querySelector('.btn-new-conversation').focus()"],["tabindex","9999"]],[[2,"active",null]],null,null,null,null)),(t()(),l["\u0275ted"](-1,null,[" \n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275eld"](5,0,null,null,26,"div",[["id","chat21-conversations"]],null,null,null,null,null)),l["\u0275did"](6,278528,null,0,rt.NgClass,[l.IterableDiffers,l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngClass:[0,"ngClass"]},null),l["\u0275pod"](7,{"swing-in-bottom-fwd":0,"full-screen-mode":1,"c21-align-left":2,"c21-align-right":3}),l["\u0275did"](8,278528,null,0,rt.NgStyle,[l.KeyValueDiffers,l.ElementRef,l.Renderer2],{ngStyle:[0,"ngStyle"]},null),l["\u0275pod"](9,{display:0,bottom:1,left:2,right:3}),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Ee)),l["\u0275did"](12,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Se)),l["\u0275did"](15,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n        \n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Ie)),l["\u0275did"](18,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n        \n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Le)),l["\u0275did"](22,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n    \n\n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Te)),l["\u0275did"](26,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n            \n        "])),(t()(),l["\u0275ted"](-1,null,["\n        "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Ae)),l["\u0275did"](30,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n\n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Re)),l["\u0275did"](35,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["     \n    \n    \n    "])),(t()(),l["\u0275ted"](-1,null,["\n    "])),(t()(),l["\u0275and"](16777216,null,null,1,null,Ne)),l["\u0275did"](39,16384,null,0,rt.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["\u0275ted"](-1,null,["\n    \n"]))],function(t,n){var e=n.component;t(n,6,0,t(n,7,0,!0===e.g.isOpen,!0===e.g.fullscreenMode,"left"===e.g.align,"left"!==e.g.align)),t(n,8,0,t(n,9,0,1==e.g.isOpen?"block":"none",e.g.marginY+"px","left"===e.g.align?e.g.marginX+"px":"","right"===e.g.align?e.g.marginX+"px":"")),t(n,12,0,e.isOpenHome&&e.g.senderId),t(n,15,0,e.isOpenAllConversation&&e.g.senderId),t(n,18,0,e.isOpenConversation&&e.g.senderId),t(n,22,0,e.isOpenSelectionDepartment),t(n,26,0,e.g.isOpenPrechatForm),t(n,30,0,e.g.isOpenStartRating),t(n,35,0,e.g.senderId),t(n,39,0,e.isInitialized)},function(t,n){t(n,1,0,n.component.g.isShown)})}var ze=l["\u0275ccf"]("tiledeskwidget-root",it,function(t){return l["\u0275vid"](0,[(t()(),l["\u0275eld"](0,0,null,null,1,"tiledeskwidget-root",[],null,null,null,Fe,Pe)),l["\u0275did"](1,4440064,null,0,it,[l.ElementRef,l.NgZone,Z,J,j,G,K,Q,nt,H,r,lt,ot],null,null)],function(t,n){t(n,1,0)},null)},{},{},[]),De=e("Px6H"),Be=e("Bj4q"),Ue=e("WPXp"),Ze=e("aZ1r"),Ve=function(){function t(t,n,e,l,o){if(this.starRatingWidgetService=t,this.http=n,this.g=e,this.storageService=l,this.appConfigService=o,this.filterSystemMsg=!0,this.API_URL=o.getConfig().apiUrl,!this.API_URL)throw new Error("apiUrl is not defined");this.obsAdded=new u.a(null)}return t.prototype.getMongDbDepartments=function(t){var n=this.API_URL+t+"/departments/";this.g.wdLog(["***** getMongDbDepartments *****",n]);var e=new Y.d;return e.append("Content-Type","application/json"),this.http.get(n,{headers:e}).map(function(t){return t.json()})},t.prototype.initialize=function(t,n,e){this.g.wdLog(["***** initialize MessagingService *****"]),this.messages=[],this.channel_type=e,this.senderId=t,this.tenant=n,this.urlMessages="/apps/"+this.tenant+"/users/"+this.senderId+"/messages/",this.urlConversation="/apps/"+this.tenant+"/users/"+this.senderId+"/conversations/"},t.prototype.connect=function(t){this.g.wdLog(["***** connect MessagingService *****"]),this.checkRemoveConversation(t),this.checkMessages(t)},t.prototype.checkMessages=function(t){var n=this.urlMessages+t,e=V.database().ref(n);this.messagesRef=e.orderByChild("timestamp").limitToLast(1e3),this.subscriptionsToMessages()},t.prototype.subscriptionsToMessages=function(){var t=this;this.messagesRef.on("child_removed",function(n){var e=O(t.messages,n.key);e>-1&&t.messages.splice(e,1)}),this.messagesRef.on("child_added",function(n){var e=n.val();t.g.wdLog(["child_added *****",n.key,JSON.stringify(e)]);var l=S(e.text);if(t.checkMessage(e)){var o=x(e.timestamp),i=new X(n.key,e.language,e.recipient,e.recipient_fullname,e.sender,e.sender_fullname,e.status,e.metadata,l,e.timestamp,o,e.type,e.attributes,e.channel_type,e.progectId);if(e&&e.sender===t.senderId){var r=O(t.messages,n.key);r<0&&(t.g.wdLog(["--------\x3e ADD MSG IMG",r,i]),i.status="150",t.messages.push(i))}else i.status="150",t.g.wdLog(["--------\x3e ADD MSG",i.status]),t.messages.push(i);t.messages.sort(t.compareValues("timestamp","asc")),t.obsAdded.next(i)}})},t.prototype.checkMessage=function(t){return(""!==t.text.trim()||"text"!==t.type)&&((!this.filterSystemMsg||!t.attributes||"info"!==t.attributes.subtype)&&(t&&t.sender===this.senderId&&t.type,!0))},t.prototype.compareValues=function(t,n){return void 0===n&&(n="asc"),function(e,l){if(!e.hasOwnProperty(t)||!l.hasOwnProperty(t))return 0;var o="string"==typeof e[t]?e[t].toUpperCase():e[t],i="string"==typeof l[t]?l[t].toUpperCase():l[t],r=0;return o>i?r=1:o<i&&(r=-1),"desc"===n?-1*r:r}},t.prototype.setStatusMessage=function(t,n){if(t.val().status<200){var e=t.val();if(e.sender!==this.senderId&&e.status<200){var l="/apps/"+this.tenant+"/users/"+this.senderId+"/messages/"+n+"/"+t.key;this.g.wdLog(["AGGIORNO STATO MESSAGGIO",l]),V.database().ref(l).update({status:200})}}},t.prototype.checkWritingMessages=function(t,n){this.conversationWith=n;var e="/apps/"+t+"/typings/"+n;return this.g.wdLog(["checkWritingMessages *****",e]),V.database().ref(e).orderByChild("timestamp").limitToLast(1)},t.prototype.checkIsBot=function(t){this.g.wdLog(["snapshot.numChildren() *****",t.numChildren()]);var n=this,e=null;return 0===t.numChildren()?"":(t.forEach(function(t){var l=t.key;n.g.wdLog(["childSnapshot *****",l]),l.startsWith("bot_")&&(e=l)}),n.g.wdLog(["RESP:",e]),e)},t.prototype.sendMessage=function(t,n,e,l,o,i,r,a,s){this.g.wdLog(["SEND MESSAGE: ",n,t,i]),this.g.wdLog(["attributes:: ",r.toString()]),t&&""!==t||(t="Guest"),i&&""!==i||(i="Guest");var u=this,c=V.database.ServerValue.TIMESTAMP,d=navigator.language,p=x(c),g=new X("",d,o,i,this.senderId,t,"",l,n,c,p,e,r,s,a),h=V.database().ref(this.urlMessages+o);u.g.wdLog([g.toString()]);var m=h.push(),f=m.key;g.uid=f,u.g.wdLog(["messageRef: ",m]);var b=g.asFirebaseMessage();return u.g.wdLog(["messageForFirebase: ",b]),m.set(b,function(t){t?(g.status="-100",u.g.wdLog(["ERRORE",t])):(g.status="150",u.g.wdLog(["OK MSG INVIATO CON SUCCESSO AL SERVER",g]))}),g},t.prototype.checkRemoveConversation=function(t){var n=this;this.conversationsRef=V.database().ref(this.urlConversation),this.conversationsRef.on("child_removed",function(e){n.g.wdLog(["child_removed ***********************",e.key,e.val()]),e.key===t&&n.closeConversation()})},t.prototype.closeConversation=function(){this.g.wdLog(["MessagingService::closeConversation","conversation closed"]),this.starRatingWidgetService.setOsservable(!0)},t.prototype.generateUidConversation=function(t){this.firebaseMessagesKey=V.database().ref(this.urlMessages);var n="support-group"+this.firebaseMessagesKey.push().key;return this.g.wdLog(["setItem ************** UID:",t," KWY: ",n]),this.conversationWith=n,n},t.prototype.controlOfMessage=function(t){return this.g.wdLog(["controlOfMessage **************",t]),""!==(t=t.replace(/(\r\n|\n|\r)/gm,"")).trim()?t:""},t.prototype.updateMetadataMessage=function(t,n){n.status=!0;var e={metadata:n};V.database().ref(this.urlMessages+t).set(e)},t.prototype.unsubscribeAllReferences=function(){this.g.wdLog(["--------\x3e messagesRef.off"]);try{this.messagesRef&&this.messagesRef.off()}catch(t){this.g.wdLog(["> Error is: ",t])}},t}(),Ye=function(){function t(t,n,e){this.http=t,this.g=n,this.appConfigService=e,this.API_URL=e.getConfig().apiUrl}return t.prototype.getCurrent=function(t){var n=this.API_URL+t+"/publicanalytics/waiting/current",e=new Y.d;return e.append("Content-Type","application/json"),this.http.get(n,{headers:e}).map(function(t){return t.json()})},t}(),je=e("Il7p"),Xe=e("CRcF"),We=e("Onme"),He=e("J9sc"),Ge=l["\u0275cmf"](s,[it],function(t){return l["\u0275mod"]([l["\u0275mpd"](512,l.ComponentFactoryResolver,l["\u0275CodegenComponentFactoryResolver"],[[8,[ze]],[3,l.ComponentFactoryResolver],l.NgModuleRef]),l["\u0275mpd"](5120,l.LOCALE_ID,l["\u0275q"],[[3,l.LOCALE_ID]]),l["\u0275mpd"](4608,rt.NgLocalization,rt.NgLocaleLocalization,[l.LOCALE_ID,[2,rt["\u0275a"]]]),l["\u0275mpd"](4608,l.Compiler,l.Compiler,[]),l["\u0275mpd"](5120,l.APP_ID,l["\u0275i"],[]),l["\u0275mpd"](5120,l.IterableDiffers,l["\u0275n"],[]),l["\u0275mpd"](5120,l.KeyValueDiffers,l["\u0275o"],[]),l["\u0275mpd"](4608,Gt.c,Gt.r,[rt.DOCUMENT]),l["\u0275mpd"](6144,l.Sanitizer,null,[Gt.c]),l["\u0275mpd"](4608,Gt.f,Gt.g,[]),l["\u0275mpd"](5120,Gt.d,function(t,n,e,l,o){return[new Gt.k(t,n),new Gt.o(e),new Gt.n(l,o)]},[rt.DOCUMENT,l.NgZone,rt.DOCUMENT,rt.DOCUMENT,Gt.f]),l["\u0275mpd"](4608,Gt.e,Gt.e,[Gt.d,l.NgZone]),l["\u0275mpd"](135680,Gt.m,Gt.m,[rt.DOCUMENT]),l["\u0275mpd"](4608,Gt.l,Gt.l,[Gt.e,Gt.m]),l["\u0275mpd"](5120,De.a,Be.d,[]),l["\u0275mpd"](5120,De.c,Be.e,[]),l["\u0275mpd"](4608,De.b,Be.c,[De.a,De.c]),l["\u0275mpd"](5120,l.RendererFactory2,Be.f,[Gt.l,De.b,l.NgZone]),l["\u0275mpd"](6144,Gt.p,null,[Gt.m]),l["\u0275mpd"](4608,l.Testability,l.Testability,[l.NgZone]),l["\u0275mpd"](4608,Gt.h,Gt.h,[rt.DOCUMENT]),l["\u0275mpd"](4608,Gt.i,Gt.i,[rt.DOCUMENT]),l["\u0275mpd"](4608,Ue.b,Be.b,[l.RendererFactory2,Gt.b]),l["\u0275mpd"](4608,Y.c,Y.c,[]),l["\u0275mpd"](4608,Y.h,Y.b,[]),l["\u0275mpd"](5120,Y.j,Y.k,[]),l["\u0275mpd"](4608,Y.i,Y.i,[Y.c,Y.h,Y.j]),l["\u0275mpd"](4608,Y.g,Y.a,[]),l["\u0275mpd"](5120,Y.e,Y.l,[Y.i,Y.g]),l["\u0275mpd"](4608,i.h,i.n,[rt.DOCUMENT,l.PLATFORM_ID,i.l]),l["\u0275mpd"](4608,i.o,i.o,[i.h,i.m]),l["\u0275mpd"](5120,i.a,function(t){return[t]},[i.o]),l["\u0275mpd"](4608,Vt.q,Vt.q,[]),l["\u0275mpd"](4608,Vt.d,Vt.d,[]),l["\u0275mpd"](4608,Ze.LocalStorageService,Ze.LocalStorageService,["LOCAL_STORAGE_SERVICE_CONFIG"]),l["\u0275mpd"](4608,Z,Z,[]),l["\u0275mpd"](4608,j,j,[Y.e,Z,r]),l["\u0275mpd"](4608,W,W,[Y.e,j,Z,r]),l["\u0275mpd"](4608,H,H,[Z]),l["\u0275mpd"](4608,Ve,Ve,[W,Y.e,Z,H,r]),l["\u0275mpd"](4608,G,G,[W,Y.e,Z,H,r]),l["\u0275mpd"](4608,lt,lt,[Y.e,H,r]),l["\u0275mpd"](4608,ot,ot,[Z,H]),l["\u0275mpd"](4608,Mt,Mt,[Z,ot]),l["\u0275mpd"](4608,Wt,Wt,[Z,r]),l["\u0275mpd"](4608,K,K,[Z]),l["\u0275mpd"](4608,nt,nt,[Y.e,r]),l["\u0275mpd"](4608,J,J,[]),l["\u0275mpd"](4608,Q,Q,[Z]),l["\u0275mpd"](4608,Ye,Ye,[Y.e,Z,r]),l["\u0275mpd"](4608,Xt,Xt,[]),l["\u0275mpd"](512,rt.CommonModule,rt.CommonModule,[]),l["\u0275mpd"](1024,l.ErrorHandler,Gt.q,[]),l["\u0275mpd"](512,i.k,i.k,[]),l["\u0275mpd"](2048,i.i,null,[i.k]),l["\u0275mpd"](512,i.g,i.g,[i.i]),l["\u0275mpd"](2048,i.b,null,[i.g]),l["\u0275mpd"](512,i.f,i.j,[i.b,l.Injector]),l["\u0275mpd"](512,i.c,i.c,[i.f]),l["\u0275mpd"](512,r,r,[i.c]),l["\u0275mpd"](1024,l.APP_INITIALIZER,function(t,n){return[Gt.t(t),a(n)]},[[2,l.NgProbeToken],r]),l["\u0275mpd"](512,l.ApplicationInitStatus,l.ApplicationInitStatus,[[2,l.APP_INITIALIZER]]),l["\u0275mpd"](131584,l.ApplicationRef,l.ApplicationRef,[l.NgZone,l["\u0275Console"],l.Injector,l.ErrorHandler,l.ComponentFactoryResolver,l.ApplicationInitStatus]),l["\u0275mpd"](512,l.ApplicationModule,l.ApplicationModule,[l.ApplicationRef]),l["\u0275mpd"](512,Gt.a,Gt.a,[[3,Gt.a]]),l["\u0275mpd"](512,Be.a,Be.a,[]),l["\u0275mpd"](512,Y.f,Y.f,[]),l["\u0275mpd"](512,i.e,i.e,[]),l["\u0275mpd"](512,i.d,i.d,[]),l["\u0275mpd"](512,Vt.o,Vt.o,[]),l["\u0275mpd"](512,Vt.g,Vt.g,[]),l["\u0275mpd"](512,Vt.m,Vt.m,[]),l["\u0275mpd"](512,je.LinkyModule,je.LinkyModule,[]),l["\u0275mpd"](512,Xe.LocalStorageModule,Xe.LocalStorageModule,[]),l["\u0275mpd"](512,We.MomentModule,We.MomentModule,[]),l["\u0275mpd"](512,He.AngularResizedEventModule,He.AngularResizedEventModule,[]),l["\u0275mpd"](512,s,s,[]),l["\u0275mpd"](256,i.l,"XSRF-TOKEN",[]),l["\u0275mpd"](256,i.m,"X-XSRF-TOKEN",[]),l["\u0275mpd"](256,"LOCAL_STORAGE_SERVICE_CONFIG",{prefix:"chat21-web-widget",storageType:"localStorage"},[])])});o.production&&Object(l.enableProdMode)(),Gt.j().bootstrapModuleFactory(Ge).catch(function(t){return console.log(t)})}},[0]);