text: import{r as t,e}from"./p-8988f6c5.js";import{H as n}from"./p-0afcd70e.js";const o=()=>{const t=t=>{n.trackAdobeAndNetmind({eventAction:"chat",pageUrl:window.location.href,eventLabel:"chat",eventValue:t,componentName:"chatbot",elementName:"div",clickId:"eva_chatWindow"})},e="/api/auth/webtoken",o="/api/auth/refresh",c="/conversation",a="/vassistant/api/session/reset",i="/vassistant/api/session/keepalive",s="/vassistant/api/conversation-feedback",u=15e3,r=5e3,d=!0,v=5e4,_=!1,l=125e3,f=!1,h=!1,m={clientId:"standard",userInput:"",previousUserInput:"",concatTimeout:0,feedbackComment:"",conversationFeedbackGiven:!1,checkedStar:"",labels:{chatBubbleNoteTitle:"Hallo! Ich bin Ihr digitaler Assistent und unterstütze meine menschlichen Kollegen bei Fragen zur Versicherung. Wie kann ich Ihnen helfen?",chatTitle:"Ihr digitaler Assistent",standardPlaceholder:"Ihre Nachricht...",profanityPlaceholder:"",answerProposalPlaceholder:"Bitte wählen Sie einen der Vorschläge",chatError:"In der Kommunikation mit Ihrem digitalen Assistenten ist ein Fehler aufgetreten.",warnings:"Es ist ein interner Fehler aufgetreten. Die nachfolgende Nachricht könnte unvollständig oder inkorrekt sein.",feedbackSuccessMsg:"Herzlichen Dank für ihr Feedback.<br>Sie helfen uns damit, den digitalen Assistenten stetig weiter zu entwickeln.",commentPlaceholder:"Hier ist Platz für Ihren Kommentar...",convFeedbackTitle:"Bitte bewerten Sie Ihr Chaterlebnis",convFeedbackSubTitle:"Helfen Sie uns dabei unseren Service und den digitalen Assistenten zu verbessern.",feedbackFailMsg:"Beim Speichern des Feedbacks ist ein Fehler aufgetreten.",submitConvFeedback:"Feedback senden",cancelConvFeedback:"Abbrechen"},chatIsClicked:!1,chatWasActive:!1,initialized:!1,session_id:"",chatHistory:[""],lock_level:0,answer_proposals:void 0,messages:[""],authToken:""};window.addEventListener("chatBotRendered",(function(){b()})),setInterval((function(){P(void 0,void 0)}),36e5),setInterval((function(){g()}),168e4);const b=function(){p(),q((function(t){"init"!==t.initStatus&&"history"!==t.initStatus||(m.session_id=t.session_id,m.chatHistory=t.chatHistory,"init"===t.initStatus&&(I(),k()),H(),S(),x(),L(),C(),M(),A(),w(),"init"===t.initStatus?T():"history"===t.initStatus&&(J(m.chatHistory),document.getElementById("eva_chatWindow").style.display="block",m.chatIsClicked=!0,m.answer_proposals=t.answer_proposals?t.answer_proposals:void 0,m.lock_level=t.lock_level?t.lock_level:0,F(m.answer_proposals),Q(m.lock_level),void 0!==t.toggleOnInit&&!0!==t.toggleOnInit&&"true"!==t.toggleOnInit||V()))}),(function(){}))},w=function(){m.messages=[],m.answer_proposals=void 0,m.initialized=!0},p=function(){N((function(t){m.authToken=t.jsonWebToken}),(function(){}))},g=function(){O((function(t){m.authToken=t.jsonWebToken}),(function(){}))},k=function(){const e=document.createElement("div");e.id="eva_chat_bubble",e.className="eva_chat_bubble",e.onclick=function(){t("open"),ot()},document.body.appendChild(e)},I=function(){const e=document.createElement("div");e.id="eva_bubblechat_note",e.className="eva_chat_bubble_note";const n=document.createElement("table"),o=document.createElement("tr"),c=document.createElement("td"),a=document.createElement("td");a.innerHTML=m.labels.chatBubbleNoteTitle,o.appendChild(c),o.appendChild(a),n.appendChild(o),e.appendChild(n),e.onclick=function(){t("open"),ot()},document.body.appendChild(e)},T=function(){st()&&!h||(y(r,d),y(v,_),y(l,f))},y=function(t,e){const n=document.getElementById("eva_bubblechat_note");setTimeout((function(){!1===m.chatIsClicked&&(n.style.display="block",at(n),e&&setTimeout((function(){const t=setInterval((function(){ct()}),700);setTimeout((function(){clearInterval(t)}),2150)}),1200),setTimeout((function(){it(n)}),u))}),t)},H=function(){const e=document.createElement("div");e.id="eva_chatWindow",e.className="eva_chat_window",e.style.display="none",document.body.appendChild(e);const n=document.createElement("div");n.className="eva_chat_title",n.id="eva_chatTitle",n.innerHTML=m.labels.chatTitle,n.onclick=function(){m.chatWasActive?m.chatWasActive=!1:(t("toggle"),V())},e.appendChild(n)},S=function(){const t=document.getElementById("eva_chatWindow"),e=document.createElement("div");e.id="eva_chatContent",e.className="eva_chat_content",t.appendChild(e);const n=document.createElement("div");n.id="eva_chatHistory",n.className="eva_chat_history",e.appendChild(n);const o=document.createElement("div");o.id="eva_tooltipDiv",document.body.appendChild(o);const c=document.createElement("div");c.className="eva_conversation-feedback",c.id="eva_conversationFeedback",c.style.display="none",e.appendChild(c);const a=document.createElement("div");a.innerHTML=m.labels.convFeedbackTitle,a.className="eva_feedbackText",c.appendChild(a);const i=document.createElement("div");i.innerHTML=m.labels.convFeedbackSubTitle,i.className="eva_feedbackSubText",c.appendChild(i);const s=document.createElement("fieldset");s.className="eva_rating",c.appendChild(s);for(let v=0;v<5;v++){const t=document.createElement("input");t.type="radio",t.id="eva_star"+v,t.name="eva_rating",t.className="eva_starInput",t.value=(5-v).toString(),t.onclick=function(){r.disabled=!1,m.checkedStar=t.value},s.appendChild(t);const e=document.createElement("label");e.className="eva_full",e.title=(5-v).toString(),e.htmlFor="eva_star"+v,s.appendChild(e)}const u=document.createElement("textarea");u.placeholder=m.labels.commentPlaceholder,u.id="eva_feedbackText",u.className="eva_user-feedback",u.onkeyup=function(){u.value.length?r.disabled=!1:void 0===m.checkedStar&&(r.disabled=!0)},c.appendChild(u);const r=document.createElement("button");c.appendChild(r),r.innerHTML=m.labels.submitConvFeedback,r.className="eva_feedback-button",r.id="eva_feedbackButtonSave",r.disabled=!0,r.onclick=function(){for(let e=0;e<5;e++){const t=document.getElementById("eva_star"+e);1==t.checked&&(m.checkedStar=t.value)}const t=document.getElementById("eva_feedbackText");m.feedbackComment=t.value,c.style.display="none",Q(0),z((function(){m.conversationFeedbackGiven=!0,e.removeChild(c),Z(m.labels.feedbackSuccessMsg,"success")}),(function(){Z(m.labels.feedbackFailMsg,"warning")}))};const d=document.createElement("button");c.appendChild(d),d.innerHTML=m.labels.cancelConvFeedback,d.className="eva_feedback-button",d.id="eva_feedbackButtonCancel",d.onclick=function(){c.style.display="none",Q(0)}},x=function(){const t=document.getElementById("eva_chatHistory"),e=document.createElement("div");e.id="eva_chatMessages",t.appendChild(e),$()},L=function(){const t=document.getElementById("eva_chatHistory"),e=document.createElement("div");e.id="eva_answerProposals",e.className="eva_answer_proposals",t.appendChild(e)},C=function(){const t=document.getElementById("eva_chatHistory"),e=document.getElementById("eva_chatContent"),n=document.createElement("div");t.id="eva_chatHistory",n.id="eva_chatHistoryEnd",t.appendChild(n);const o=document.createElement("div");o.id="eva_typingAnimation",o.className="eva_typing_animation",o.style.visibility="hidden",e.appendChild(o)},M=function(){const e=document.getElementById("eva_chatContent"),n=document.createElement("div");n.className="eva_chat_input",n.id="eva_textInputContainer";const o=document.createElement("input");o.id="eva_textInput",o.type="text",o.placeholder=m.labels.standardPlaceholder,o.tabIndex=-1,o.onkeydown=function(t){D(t)},o.onclick=function(){t("typing")},n.appendChild(o),e.appendChild(n)},A=function(){const t=document.getElementById("eva_chatContent"),e=document.createElement("div");e.id="eva_alert_message",e.className="eva_alert";const n=document.createElement("div");n.id="eva_blind_chat";const o=document.createElement("div");o.innerHTML="&times;",o.id="eva_alert_close",o.className="eva_alert_closebtn",o.id="eva_alert_close",o.onclick=function(){o.style.visibility="hidden",e.style.visibility="hidden",n.style.visibility="hidden"},t.insertBefore(e,t.firstChild),t.insertBefore(o,t.firstChild),t.insertBefore(n,t.firstChild)},R=function(t){const e=document.getElementById("eva_chatMessages"),n=document.createElement("div");n.className="watson"==t.user?"eva_message--watson":"eva_message--user",n.className+=" eva_message",n.id="eva_chatmessage_"+(m.messages.length-1);const o=document.createElement("p");"watson"===t.user?o.innerHTML=t.text:o.textContent=t.text,n.appendChild(o),e.appendChild(n),"watson"==t.user&&tt(n),$()},F=function(t){const e=document.getElementById("eva_answerProposals");for(;e.firstChild;)e.removeChild(e.firstChild);let n=[];const o=et(t);n=nt(o,n);for(let c=0;c<o.length;c++){const t=document.createElement("button");t.className=n[c],t.innerHTML=o[c],t.id=c.toString(),t.onclick=function(t){G(o[t.target.id])},e.appendChild(t)}e.style.visibility="visible",$(!0)},N=function(t,n){const o=new XMLHttpRequest;o.open("GET",e,!1),o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE)return 200===o.status?t(JSON.parse(o.responseText)):n()},o.send()},O=function(t,e){const n=new XMLHttpRequest;n.open("GET",o,!1),n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return 202===n.status?t(JSON.parse(n.responseText)):e()},n.setRequestHeader("Authorization",m.authToken),n.send()},q=function(t,e){const n=new XMLHttpRequest;n.open("GET",c,!0),n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return 200===n.status?t(JSON.parse(n.responseText)):e()},n.send()},P=function(t,e){const n=new XMLHttpRequest;n.open("POST",i,!0),n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return 200===n.status?t():e()};const o={};o.session_id=m.session_id,n.setRequestHeader("Authorization",m.authToken),n.setRequestHeader("Content-Type","application/json"),n.send(JSON.stringify(o))},X=function(t,e,n,o){const a=new XMLHttpRequest;a.open("POST",c,!0),a.onreadystatechange=function(){if(a.readyState===XMLHttpRequest.DONE){if(200===a.status)try{const t=JSON.parse(a.responseText);return m.lock_level=t.lock_level?t.lock_level:0,t.answer_proposals&&t.answer_proposals.length>0&&(m.answer_proposals=t.answer_proposals),n(t)}catch(t){return o()}if(500===a.status){if(a.responseText)try{return o(JSON.parse(a.responseText))}catch(e){return o()}return o()}return o()}};const i={};i.client_id=t,i.session_id=m.session_id,e&&(i.text=e),a.setRequestHeader("Authorization",m.authToken),a.setRequestHeader("Content-Type","application/json"),a.send(JSON.stringify(i))},z=function(t,e){const n=new XMLHttpRequest;n.open("POST",s,!0),n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE){if(200===n.status)try{return t(JSON.parse(n.responseText))}catch(o){return e()}if(500!==n.status)return e();if(n.responseText)try{return e(JSON.parse(n.responseText))}catch(c){return e()}}};const o={};o.client_id=m.clientId,o.comment=m.feedbackComment,m.checkedStar&&(o.rating=parseInt(m.checkedStar)),o.session_id=m.session_id,n.setRequestHeader("Authorization",m.authToken),n.setRequestHeader("Content-Type","application/json"),n.send(JSON.stringify(o))},J=function(t){if(t)for(const e in t){const n=t[e];"human"===n.user?j(n.text):W(n)}else B();$()},B=function(){U(!0),Q(1),function(){const t=new XMLHttpRequest;t.open("POST",a,!0),t.onreadystatechange=function(){if(t.readyState===XMLHttpRequest.DONE)return 200===t.status?void X(m.clientId,void 0,(function(t){U(!1),Q(0),t.lock_level&&Q(t.lock_level);const e={text:t.text[0]?t.text[0]:"",user:"watson",messageId:t.messageId,topIntent:t.topIntent?t.topIntent:void 0,topConfidence:t.confidence?t.confidence.toString():void 0};W(e),t.text.length<=0&&Z(m.labels.warnings,"warning"),t.answer_proposals&&(m.answer_proposals=t.answer_proposals,F(m.answer_proposals))}),(function(t){U(!1),Q(0),t&&t.text?K(t):Z(m.labels.chatError,"error"),Z(m.labels.chatError,"error")})):(U(!1),Q(0),void Z(m.labels.chatError,"error"))};const e={};e.session_id=m.session_id,t.setRequestHeader("Authorization",m.authToken),t.setRequestHeader("Content-Type","application/json"),t.send(JSON.stringify(e))}()},E=function(t){Y(!0),Q(1),X(m.clientId,t,(function(t){t.lock_level&&Q(t.lock_level);let e=!1;if(t.int_actions&&-1!==t.int_actions.indexOf("requestConversationFeedback")&&0==m.conversationFeedbackGiven&&(Q(1),e=!0,setTimeout((function(){document.getElementById("eva_conversationFeedback").style.display="inline"}),3e3)),t.text.length>0){let n=0,o=0;for(let c=0;c<t.text.length;c++){const a={user:"watson"};a.text=t.text[c],a.messageId=t.messageId,a.automatedRated=t.rated?t.rated:void 0,setTimeout((function(e,n){o++,W(e),o==t.text.length&&(Y(!1),t.lock_level||!t.answer_id||-1!=t.answer_id.indexOf("Profanity_1")||n||Q(0),t.answer_proposals&&t.answer_proposals.length>0&&(m.answer_proposals=t.answer_proposals,F(t.answer_proposals)))}),n,a,e);let i=30*String(t.text[c]).replace(/<[^>]+>/gm,"").length;i<750&&(i=750),n+=i}}else{const e={user:"watson",text:""};e.messageId=t.messageId,e.automatedRated=t.rated?t.rated:void 0,setTimeout((function(){W(e),U(!1),Q(0),t.answer_proposals&&t.answer_proposals.length>0&&F(t.answer_proposals)}),e)}t.warnings&&t.warnings.length>0&&Z(m.labels.warnings,"warning")}),(function(t){t&&t.text?K(t):Z(m.labels.chatError,"error"),U(!1),Q(0),$()}))},D=function(t){if(13===t.keyCode){const t=document.getElementById("eva_textInput");m.userInput=t.value,m.previousUserInput?m.previousUserInput+=" "+m.userInput:m.previousUserInput=m.userInput,""!=m.userInput&&j(m.userInput)}m.concatTimeout&&clearTimeout(m.concatTimeout),m.concatTimeout=window.setInterval((function(){m.previousUserInput&&(document.activeElement.blur(),E(m.previousUserInput),m.previousUserInput="",m.userInput="")}),13===t.keyCode?1500:3500)},W=function(t){m.messages.push(t),R(t),!!st()||setTimeout((function(){document.getElementById("eva_textInput").focus()}),0),$()},j=function(t){document.getElementById("eva_textInput").value="";const e=document.getElementById("eva_answerProposals");if(m.answer_proposals){for(;e.firstChild;)e.removeChild(e.firstChild);m.answer_proposals=void 0}const n=document.getElementById("eva_alert_message");"eva_alert eva_alert--yellow"!==n.className&&"eva_alert eva_alert--blue"!==n.className||(n.style.visibility="hidden",document.getElementById("eva_alert_close").style.visibility="hidden");const o={text:t,user:"human"};m.messages.push(o),R(o),$()},G=function(t){j(t),E(t)},K=function(t){W({text:t.text,user:"watson"})},V=function(){const t=document.getElementById("eva_chatContent"),e=document.getElementById("eva_chatWindow"),n=document.getElementById("eva_chatHistory");-1!=t.className.indexOf("eva_chat_content--show")?(t.className=t.className.replace("eva_chat_content--show",""),e.className=e.className.replace("eva_chat_window_move_top",""),e.className=e.className.replace("eva_chat_window--show",""),n.className=n.className.replace("eva_chat_history--show","")):(t.className+=" eva_chat_content--show",e.className+=" eva_chat_window--show eva_chat_window_move_top",n.className+=" eva_chat_history--show",setTimeout((function(){st()||"visible"==document.getElementById("eva_alert_message").style.visibility||setTimeout((function(){document.getElementById("eva_textInput").focus()}),0)}),1e3))},U=function(t){document.getElementById("eva_typingAnimation").style.visibility=t?"visible":"hidden"},Y=function(t){const e=document.getElementById("eva_chatMessages");if(t){const t=document.createElement("div");t.id="eva_speechLoadAnimation",t.className="eva_message--watson eva_message eva_speech_load_animation",t.textContent="   ",e.parentNode.insertBefore(t,e.nextSibling),$()}else document.getElementById("eva_speechLoadAnimation").remove()},Q=function(t){const e=document.getElementById("eva_textInput");e.disabled=t>0,t<=1?e.placeholder=m.labels.standardPlaceholder:2==t?e.placeholder=m.labels.answerProposalPlaceholder:3==t&&(e.placeholder=m.labels.profanityPlaceholder)},Z=function(t,e){const n=document.getElementById("eva_alert_message"),o=document.getElementById("eva_alert_close");n.innerHTML=t,n.style.visibility="visible";const c=document.getElementById("eva_blind_chat");c.style.visibility="visible",document.getElementById("eva_alert_close").style.visibility="visible","error"==e?(n.className="eva_alert eva_alert--red",o.className="eva_alert_closebtn"):"warning"==e?(n.className="eva_alert eva_alert--yellow",o.className="eva_alert_closebtn",c.style.visibility="hidden"):"success"==e&&(n.className="eva_alert eva_alert--blue",o.className="eva_alert_closebtnblack",c.style.visibility="hidden")},$=function(t){const e=document.getElementById("eva_chatHistory"),n=e.querySelectorAll(".eva_message--watson");if(n.length>0){const o=n[n.length-1],c=Date.now();if(t)return void(e.scrollTop+=100);setTimeout((function(){let t=e.scrollTop;if(e.scrollTop<o.offsetTop-10){const n=setInterval((function(){Date.now()-c>=3e3?clearInterval(n):e.scrollTop<o.offsetTop-10?(t=e.scrollTop,e.scrollTop+=5,e.scrollTop!==t||clearInterval(n)):clearInterval(n)}),5)}}),50)}},tt=function(t){const e=t.querySelectorAll(".eva_tooltip"),n=document.getElementById("eva_tooltipDiv"),o=function(){n.className="",n.style.zIndex="-1"},c=function(t,e){const o=e.getAttribute("data-tooltip");n.innerText=o;const c=n.offsetHeight+window.pageYOffset;parseInt(ut(e).top,10)>c?(n.style.top=parseInt(ut(e).top,10)+"px",n.className="eva_tooltip_div_after"):(n.style.top=parseInt(ut(e).top+n.offsetHeight+e.offsetHeight+5,10)+"px",n.className="eva_tooltip_div_before");const a=window,i=document.getElementsByTagName("body")[0],s=a.innerWidth||t.clientWidth||i.clientWidth;let u=parseInt(ut(e).left+e.offsetWidth/2,10);const r=s+window.pageXOffset-n.offsetWidth/2-5;u>r&&(u=r);const d=window.pageXOffset+n.offsetWidth/2+5;u<d&&(u=d),n.style.left=u+"px",n.style.zIndex="",n.className+=" eva_tooltip--show"};for(let a=0;a<e.length;a++){const t=e[a];t.setAttribute("data-tooltip",e[a].title),t.removeAttribute("title"),t.addEventListener("mouseover",(function(t){c(t,t.target)})),t.addEventListener("touchstart",(function(t){c(t,t.target),t.preventDefault()})),t.addEventListener("touchend",(function(t){o(),t.preventDefault()})),t.addEventListener("mouseout",o)}},et=function(t){const e=[],n=[];for(let o=0;o<t.length;o++)t[o].length>19?e.push(t[o]):n.push(t[o]);return e.concat(n)},nt=function(t,e){let n=0,o=0;for(let c=0;c<t.length;c++)t[c].length>19?e[c]="eva_answer_button eva_answer_button--big":t[c].length<5?(e[c]="eva_answer_button eva_answer_button--small",o++):(e[c]="eva_answer_button",n++);if(o%4!=0)for(let c=0;c<t.length;c++)"eva_answer_button eva_answer_button--small"==e[c]&&(e[c]="eva_answer_button");return n%2!=0&&(e[t.length-1]="eva_answer_button eva_answer_button--big"),e},ot=function(){document.getElementById("eva_chatWindow").style.display="block",B(),setTimeout((function(){document.getElementById("eva_bubblechat_note").style.display="none",document.getElementById("eva_chat_bubble").style.display="none",V(),m.chatIsClicked=!0}),500)},ct=function(){document.getElementById("eva_bubblechat_note").classList.add("eva_chat_bubble_note--shaking")},at=function(t){t.style.opacity=0;let e=0;const n=setInterval((function(){t.style.opacity=e+=.1,t.style.opacity>=1&&clearInterval(n)}),70)},it=function(t){t.style.opacity=1;let e=1;const n=setInterval((function(){t.style.opacity=e-=.1,t.style.opacity<=0&&(clearInterval(n),t.style.display="none")}),70)},st=function(){const t=window,e=document,n=e.documentElement,o=e.getElementsByTagName("body")[0];return(t.innerWidth||n.clientWidth||o.clientWidth)<=736},ut=function(t){const e={},n=document.body.getBoundingClientRect(),o=t.getBoundingClientRect();return e.top=o.top-n.top,e.left=o.left-n.left,e};window.tabChangeListener={onFocus:function(){m.initialized&&m.chatIsClicked&&q((function(t){m.session_id=t.session_id,m.chatHistory=t.chatHistory,"history"===t.initStatus&&(document.getElementById("eva_chatMessages").innerHTML="",J(m.chatHistory),t.answer_proposals&&(m.answer_proposals=t.answer_proposals,F(m.answer_proposals)),m.lock_level=t.lock_level?t.lock_level:0,Q(m.lock_level),m.chatWasActive&&V())}),(function(){}))},onBlur:function(){const t=document.getElementById("eva_chatContent");m.chatWasActive=-1!==t.className.indexOf("eva_chat_content--show")}},window.addEventListener("chatBotRendered",(function(){window.addEventListener("focus",window.tabChangeListener.onFocus),window.addEventListener("blur",window.tabChangeListener.onBlur)}))},c=class{constructor(n){t(this,n),this.chatBotRendered=e(this,"chatBotRendered",7)}componentDidLoad(){this.chatBotRendered.emit()}render(){return o()}static get style(){return"\@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}\@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.huk-text--white{color:#fff}.huk-text--orange{color:#fba308}.huk-text--mint{color:#00abba}.huk-text--mint-dark{color:#055e5f}.eva_chat_bubble{cursor:pointer;display:block;width:80px;height:80px;-webkit-box-shadow:0 .313rem .625rem 0 rgba(0,0,0,.12);box-shadow:0 .313rem .625rem 0 rgba(0,0,0,.12);background-color:#fba308;background-image:url(/stylelib/2_9/img/chat.svg),linear-gradient(135deg,#ffd385,#fb9105);background-size:65% 65%,100% 100%;background-position:50%;background-repeat:no-repeat;border:2px solid #fef1da;border-radius:40px;bottom:4rem;position:fixed;z-index:4000;right:4.5rem;-webkit-transition:-webkit-transform .15s ease-in-out 0ms;transition:-webkit-transform .15s ease-in-out 0ms;transition:transform .15s ease-in-out 0ms;transition:transform .15s ease-in-out 0ms,-webkit-transform .15s ease-in-out 0ms}\@media (max-width:767.98px){.eva_chat_bubble{right:20px;bottom:20px}}.eva_chat_bubble:focus,.eva_chat_bubble:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.eva_chat_bubble:active{background-image:url(/stylelib/2_9/img/chat.svg)}.eva_chat_bubble_note{cursor:pointer;display:none;width:320px;margin:2rem auto;color:#35444c;background-color:#f5fcff;border-radius:.25rem;border:2px solid #35444c;padding:.75rem 1rem;-webkit-box-shadow:0 .313rem .625rem 0 rgba(0,0,0,.12);box-shadow:0 .313rem .625rem 0 rgba(0,0,0,.12);position:fixed;z-index:4001;bottom:8.5rem;right:4.5rem}.eva_chat_bubble_note:before{content:\"\";position:absolute;display:block;z-index:1;bottom:0;right:40px;background-color:#f5fcff;width:16px;height:16px;margin-left:-8px;-webkit-transform:rotate(225deg) translate3d(-11.25px,0,0);transform:rotate(225deg) translate3d(-11.25px,0,0);border-color:#35444c transparent transparent #35444c;border-style:solid;border-width:2px}.eva_chat_bubble_note--shaking{-webkit-animation:shake 1s cubic-bezier(.36,.07,.19,.97) both;animation:shake 1s cubic-bezier(.36,.07,.19,.97) both;-webkit-transform:translateZ(0);transform:translateZ(0)}.eva_chat_window{font-size:13px;color:#35444c;position:fixed;z-index:4000;width:352px;height:365px;bottom:0;right:70px;padding-top:43px;-webkit-transition:bottom .5s ease-in-out,max-height 1s;transition:bottom .5s ease-in-out,max-height 1s;max-height:43px}\@media (max-width:767.98px){.eva_chat_window{width:100%;left:0;height:95vh!important}}\@media (min-width:1024px){.eva_chat_window{width:400px}}.eva_chat_window--show{max-height:100%!important}.eva_chat_window--show .eva_chat_title:before{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.eva_chat_window--show .eva_chat_input input{opacity:1}.eva_chat_window hr{border:0;height:1px;background:#e7e9ea;margin:.5rem auto}.eva_chat_window button{margin:0 0 5px;padding:5px;white-space:normal;border-radius:.25rem;border:0;background-image:linear-gradient(30deg,#fba308,#fcba44);background-repeat:repeat-x;color:#fff;font-size:13px;font-weight:700;cursor:pointer}.eva_chat_window button:focus,.eva_chat_window button:hover{background-image:none;background-color:#fb9105}.eva_chat_window button:active{background-color:#f0670a}.eva_chat_window table{border-collapse:collapse;border-spacing:0;background-color:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;max-width:100%;margin-bottom:1rem}.eva_chat_window table>thead:first-child>tr:first-child>td,.eva_chat_window table>thead:first-child>tr:first-child>th{border-top:0}.eva_chat_window table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #cbcfd2}.eva_chat_window table>tbody>tr>td,.eva_chat_window table>tbody>tr>th{vertical-align:top;border-top:1px solid #cbcfd2;padding:5px}.eva_chat_window .info{background-color:#cbcfd2}.eva_chat_window .text-center{text-align:center}.eva_chat_window .liste_tarifleistung{padding:4px 8px 0;border:1px solid #00abba;border-radius:.25rem;max-width:320px;margin-top:.5rem}.eva_chat_window .liste_tarifleistung h4{font-size:19px;margin:0;border-bottom:1px solid #00abba;padding:4px;color:#00abba}.eva_chat_window .liste_tarifleistung ul{margin-left:-10px;margin-top:0;margin-bottom:10px;padding:4px 0 0 2.5em;list-style-position:outside;list-style-type:none}.eva_chat_window .liste_tarifleistung ul li{margin:0;padding:2px 2px 0}.eva_chat_window .liste_tarifleistung ul li:before{text-indent:-2em;padding-left:1em;background-color:transparent;background-size:100%;background-repeat:no-repeat;background-position:50%;background-image:url(/stylelib/2_9/img/check.svg)}.eva_chat_window .glyphicon{background-size:100% 100%;background-size:contain;background-position:50%;content:\"\";background-repeat:no-repeat}.eva_chat_window .glyphicon-calendar{display:inline;padding-left:1em;background-image:url(/stylelib/2_9/img/date-picker.svg)}.eva_chat_window [data-tooltip]{display:inline-block;position:relative;cursor:help;padding-right:4px;margin-right:4px}.eva_chat_window [data-tooltip]:hover:after,.eva_chat_window [data-tooltip]:hover:before{display:block}.eva_chat_window [data-tooltip]:after{content:\"i\";font-size:13px;font-style:italic;font-weight:700;padding-left:2px;padding-right:2px;vertical-align:super;position:absolute;right:-3px;top:1px;z-index:2}.eva_chat_title{position:absolute;display:block;top:0;left:0;width:100%;height:43px;background-image:linear-gradient(30deg,#fba308,#fcba44);background-repeat:repeat-x;color:#fff;font-size:19px;font-weight:700;padding:.5rem 1rem;border-radius:.5rem .5rem 0 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.eva_chat_title:before{background-size:100% 100%;background-size:contain;background-position:50%;background-repeat:no-repeat;display:inline;padding-left:1em;background-image:url(/stylelib/2_9/img/arrow-right_white.svg);-webkit-transition:-webkit-transform .15s ease-in-out 0ms;transition:-webkit-transform .15s ease-in-out 0ms;transition:transform .15s ease-in-out 0ms;transition:transform .15s ease-in-out 0ms,-webkit-transform .15s ease-in-out 0ms;content:\"\";display:block;position:absolute;right:1rem;top:48%;width:12px;height:12px;margin-top:-6px}.eva_chat_title:focus,.eva_chat_title:hover{background-image:none;background-color:#fb9105}.eva_chat_title:active{background-color:#f0670a}.eva_chat_content{position:relative;top:0;left:0;height:100%;width:100%;background:#fff;border:1px solid #cbcfd2;border-top:0;-webkit-transition:visibility .8s;transition:visibility .8s;visibility:hidden}.eva_chat_content .eva_typing_animation{position:absolute;opacity:0;bottom:45px;height:calc(100% - 46px);width:100%;left:0;background:hsla(0,0%,100%,.5)}.eva_chat_content .eva_typing_animation:before{content:\"\";display:block;position:absolute;z-index:99;opacity:1;color:#fba308;-webkit-animation:spin .85s ease-in-out infinite;animation:spin .85s ease-in-out infinite;border:.45rem solid transparent;border-top-color:#fba308;border-radius:50%;top:50%;left:50%;margin-left:-1.5rem;margin-top:-1.5rem;width:3rem;height:3rem}.eva_chat_content--show{visibility:visible!important}.eva_chat_content--show .eva_typing_animation{opacity:1}.eva_chat_history{position:absolute;max-height:calc(100% - 46px);width:100%;top:0;left:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:.5rem;-webkit-transition:height 1s;transition:height 1s}.eva_chat_history--show{height:calc(100% - 46px)}.eva_chat_history .img-in-msg{margin:15px auto 0;display:block;width:40%}.eva_img_speechbubble{height:60px}.eva_not_allowed_cursor{cursor:not-allowed}.eva_pointer_cursor{cursor:pointer}.eva_message{display:block;position:relative;max-width:70%;background-color:#fef1da;border-radius:12px 12px 12px 0;padding:.5rem 1rem;margin:0 0 4px;text-align:left;color:#35444c}.eva_message p{margin:0 0 4px!important;padding:0!important;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;white-space:pre-line}.eva_message p *{max-width:100%!important;font:inherit!important;-webkit-hyphens:inherit!important;-ms-hyphens:inherit!important;hyphens:inherit!important;white-space:inherit!important}.eva_message p ul{margin:0 0 4px;padding:0 0 0 1.2em}.eva_message p:last-child{margin-bottom:0!important}.eva_message--user{margin-left:30%;text-align:right;background-color:#f7f7f8;border-radius:12px 12px 0 12px}.eva_message--user+.eva_message--watson,.eva_message--watson+.eva_message--user{margin-top:1rem}.eva_answer_proposals{width:100%;max-width:100%;margin-top:1rem}.eva_answer_proposals .eva_answer_button{width:48%;margin:0 1% 5px 0}.eva_answer_proposals .eva_answer_button--small{width:73px}.eva_answer_proposals .eva_answer_button--big{display:block;width:100%}.eva_chat_input{position:absolute;height:45px;width:100%;bottom:0;left:0;padding:.5rem}.eva_chat_input input{border:1px solid #cbcfd2;border-radius:.25rem;outline:none;padding:5px 8px;margin:0;display:block;width:100%;font-size:13px;-webkit-appearance:textfield;-webkit-rtl-ordering:logical;-webkit-user-select:text;cursor:auto;opacity:0;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.eva_chat_input input[disabled]{background:#cbcfd2}.eva_chat_input i{cursor:pointer;display:block;float:left;font-size:23px;height:45px;line-height:45px;margin-left:4px;margin-right:4px;text-align:center;width:30px}.eva_alert{color:#35444c;visibility:hidden;z-index:4004;padding:14px 25px 14px 14px;position:absolute;width:100%;max-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.eva_alert--red{font-size:13px;background-color:#f7f7f8}.eva_alert--yellow{background-color:#fba308;border-right:3px solid #fba308}.eva_alert--blue{background-color:#cbcfd2;border-right:3px solid #cbcfd2;color:#35444c}.eva_alert_closebtn{color:#fff;font-weight:700;float:right;font-size:23px;line-height:20px;cursor:pointer;-webkit-transition:.3s;transition:.3s;position:absolute;z-index:4005;right:15px;margin-top:10px;visibility:hidden}.eva_alert_closebtn:hover{color:#fff}.eva_alert_closebtnblack{color:#35444c;font-weight:700;float:right;font-size:23px;line-height:20px;cursor:pointer;-webkit-transition:.3s;transition:.3s;position:absolute;z-index:4005;right:15px;margin-top:10px;visibility:hidden}.eva_alert_closebtnblack:hover{color:#35444c}#eva_blind_chat{background-color:#808a90;width:100%;height:100%;position:absolute;z-index:4003;opacity:.65;left:0;visibility:hidden}.eva_tooltip{color:#00abba}#eva_tooltipDiv{position:absolute;z-index:5000;opacity:0;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transition:opacity .2s ease-out;transition:opacity .2s ease-out;will-change:opacity;color:#fff;padding:4px 8px;width:180px;text-align:center;border-radius:4px;background-color:#055e5f!important;font-size:13px;-webkit-box-sizing:border-box;box-sizing:border-box}.eva_tooltip_div_after:after{content:\" \";position:absolute;top:100%;left:50%;margin-left:-5px;border:5px solid transparent;border-top-color:#055e5f}.eva_tooltip_div_before:before{content:\" \";position:absolute;top:-10px;left:50%;margin-left:-5px;border:5px solid transparent;border-bottom-color:#055e5f}.eva_tooltip--show{opacity:1!important}.eva_rating{border:0;margin:.5rem auto;padding:0;width:230px;height:40px;overflow:hidden}.eva_starInput{display:none}.eva_full{display:block;float:right;height:40px;width:40px;background-image:url(/stylelib/2_9/img/star.svg);background-color:transparent;background-size:contain;background-repeat:no-repeat;background-position:50%;margin:0 3px;padding:0}.eva_full:hover,.eva_full:hover~.eva_rating>input:checked~label,.eva_rating:not(:checked)>label:hover,.eva_rating:not(:checked)>label:hover~label,.eva_rating>input:checked+label:hover,.eva_rating>input:checked~label:hover,.eva_rating>input:checked~label:hover~label,.eva_starInput:checked~.eva_full{background-image:url(/stylelib/2_9/img/star_orange.svg)}.eva_user-feedback{font-size:13px;padding:2px 7px;margin:10px;display:block;background-color:#fff;border:1px solid #ccc;text-overflow:ellipsis;line-height:25px;height:80px;width:calc(100% - 20px);outline:0;-webkit-appearance:textfield}.eva_feedbackText{font-size:19px;margin:0;border:0;padding:10px;text-align:center}.eva_feedbackSubText{margin:0;border:0;padding:0 10px;text-align:center}.eva_feedback-button{width:45%;text-align:center;height:35px;position:absolute;bottom:10px}#eva_feedbackButtonSave{left:10px}#eva_feedbackButtonCancel{right:10px}.eva_feedback-button:disabled{background:#ccc}.eva_feedback-button:hover{background:rgba(1,54,130,.8);color:#fff}.eva_feedback-button:disabled:hover{background:#ccc;cursor:not-allowed}.eva_conversation-feedback{position:absolute;z-index:5000;height:100%;width:100%;top:0;left:0;background-color:#f7f7f8;overflow-y:auto;-webkit-overflow-scrolling:touch}\@-webkit-keyframes shake{10%,90%{-webkit-transform:translate3d(-1px,0,0);transform:translate3d(-1px,0,0)}20%,80%{-webkit-transform:translate3d(2px,0,0);transform:translate3d(2px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-4px,0,0);transform:translate3d(-4px,0,0)}40%,60%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}}\@keyframes shake{10%,90%{-webkit-transform:translate3d(-1px,0,0);transform:translate3d(-1px,0,0)}20%,80%{-webkit-transform:translate3d(2px,0,0);transform:translate3d(2px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-4px,0,0);transform:translate3d(-4px,0,0)}40%,60%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}}.eva_speech_load_animation{background-image:url(/stylelib/2_9/img/bubbles.svg);background-repeat:no-repeat;background-size:128px;background-position:16px;width:103px;height:36px}"}};export{c as huk_chatbot};