/** * compiled: 2025-04-30 05:53:29 * version: 1.8.149 * commit: 03edb9c8925443706b6ef12d2302a00194861279 */ import{m as e,a as t,d as n,y as i,e as o,f as a,g as r,h as s,i as c,j as d,q as l,$ as u,b as p,c as h,_ as f,k as g,F as w,l as m,p as b,n as v,o as _,r as x,P as y}from"./vendor.d828290c.js";import{i as C,e as k,g as S,r as I,h as M,c as A,a as B,b as O,d as T,f as j,j as F,k as V,n as W,_ as N,l as D,u as P,s as R,m as E,o as z,p as L,q as H,t as q,v as U,w as G,x as K,y as Y,z as Q,A as Z,B as J,C as X,D as $,E as ee,F as te,G as ne,H as ie,I as oe,J as ae,K as re,L as se,M as ce,N as de,O as le,P as ue,Q as pe,R as he,S as fe,T as ge,U as we,V as me,W as be,X as ve,Y as _e,Z as xe,$ as ye,a0 as Ce,a1 as ke,a2 as Se,a3 as Ie,a4 as Me,a5 as Ae,a6 as Be,a7 as Oe,a8 as Te,a9 as je,aa as Fe,ab as Ve,ac as We,ad as Ne,ae as De,af as Pe,ag as Re,ah as Ee,ai as ze,aj as Le,ak as He,al as qe,am as Ue,an as Ge,ao as Ke,ap as Ye,aq as Qe,ar as Ze,as as Je,at as Xe,au as $e,av as et,aw as tt,ax as nt,ay as it,az as ot,aA as at,aB as rt,aC as st,aD as ct,aE as dt,aF as lt,aG as ut,aH as pt,aI as ht,aJ as ft,aK as gt,aL as wt,aM as mt,aN as bt}from"./common.d3c0db05.js";var vt="centered",_t="bottomMiddle",xt="bottomRight",yt="centeredWithOverlayBackground",Ct="middleLeft",kt="middleRight",St=".btn,button{-webkit-appearance:none}.btn,.buttonProgressContainer{position:relative;text-align:center}.btn,.buttonProgressBtnDefaultSize{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button{margin:0;padding:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif,Arial;outline:0}.botconfirm_list li p,.botconfirm_list li p:first-child,.btn,.form-fields .container-checkboxlist .checkbox__text,.form-fields .field__label,.header__teamName,.prechatForm__social .prechatForm__socialBtn{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif,Arial!important}.global-showFocus a:focus,.global-showFocus button:focus,.questionSuggestionContainer:focus{outline:#000001 auto 5px}.btn{text-decoration:none;zoom:1;display:inline-block;margin-bottom:0;font-size:1.06666667rem;font-weight:600;cursor:pointer;background-image:none;border:none;line-height:1.25;padding:9px 16px;border-radius:8px;-webkit-user-select:none;-ms-user-select:none;user-select:none;background-color:inherit}.btn span{height:100%}.window--mobile:not(.window--ipad) .btn{max-width:unset}.window--circular .btn{border-radius:20px}.disabled{cursor:default;box-shadow:none!important}.btn-grey:active,.btn-primary:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-primary{color:#00000e;background:#00000a;border:1px solid #00000a}.btn-primary.disabled{background-color:#00000a!important;border:1px solid #00000a!important}.btn-primary:focus,.btn-primary:hover{background:#000003;border:1px solid #000003;text-decoration:none}.btn-primary:active{background:#000003}.btn-grey{color:#000;background:#e8e8e8;border:1px solid #e8e8e8}.btn-grey:focus,.btn-grey:hover{background:#c4c4c4;border:1px solid #c4c4c4;text-decoration:none}.btn-grey:active{background:#e8e8e8;border:1px solid #e8e8e8}.btn-secondary{color:#00000c;border:1px solid #00000c}.btn-secondary:focus,.btn-secondary:hover{box-shadow:inset 0 0 0 1px #00000c}.buttonProgressBtnAnimated{animation-fill-mode:both}.buttonProgressContainerLoading .buttonProgressBtnAnimated,.buttonProgressContainerSuccess .buttonProgressBtnAnimated{animation-name:form__submit--loading;animation-duration:.4s;cursor:default}.window--ie .buttonProgressContainerLoading .buttonProgressBtnAnimated{animation:none;opacity:.65}@keyframes form__submit--loading{0%{border-radius:20px;text-indent:999em;background:#00000a;border:1px solid #00000a;width:128px;text-overflow:clip}99%{border-radius:32px;text-indent:999em;background:0 0;border:1px solid transparent;width:32px;text-overflow:clip}100%{border-radius:32px;text-indent:999em;background:0 0;border:1px solid transparent;width:32px;opacity:0;text-overflow:clip}}.lds-css,.lds-rolling{width:32px;height:32px}.buttonProgress__layerCircle{outline:0}.buttonProgress__layerCircle,.buttonProgress__layerLoading,.buttonProgress__layerSuccess,.lds-css{position:absolute;left:50%;top:50%;display:none}.buttonProgress__layerCircle,.buttonProgress__layerLoading,.lds-css{margin-top:-16px;margin-left:-16px}.buttonProgress__layerSuccess{margin-top:-8px;margin-left:-8px}.submit-loading,.submit_circle{position:absolute;left:50%;top:50%;margin-top:-19.5px;margin-left:-19.5px}.buttonProgressContainerLoading .buttonProgress__layerLoading,.buttonProgressContainerLoading .lds-css{display:block;animation:fadeIn 0s cubic-bezier(.785,.135,.15,.86) .4s both;cursor:default}.buttonProgressContainerSuccess .buttonProgress__layerLoading,.buttonProgressContainerSuccess .lds-css,.window--ie .buttonProgressContainerLoading .lds-css{display:none}.buttonProgressContainerSuccess .buttonProgress__layerCircle,.buttonProgressContainerSuccess .buttonProgress__layerSuccess{display:block;cursor:default}.buttonProgress__submitLoadingPath{fill:#00000a}.buttonProgress__submitCirclePath{stroke:#00000a;stroke-width:3px;stroke-dasharray:100;stroke-dashoffset:0;fill:#fff;fill-opacity:0}.buttonProgressContainerSuccess .buttonProgress__submitCirclePath{animation-timing-function:ease-in-out;animation-fill-mode:both;animation-name:buttonProgress__submitCirclePath-dash;animation-duration:.5s}@keyframes buttonProgress__submitCirclePath-dash{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}.buttonProgress__submitSuccessPath{fill:#00000a;stroke-width:1;-ms-transform:scale(0);transform:scale(0);opacity:0}.buttonProgressContainerSuccess .buttonProgress__submitSuccessPath{animation-timing-function:ease-in-out;animation-fill-mode:both;animation-name:buttonProgress__submitSuccessPath-animation;animation-duration:.5s;animation-delay:542ms}@keyframes buttonProgress__submitSuccessPath-animation{0%{transform:scale(0);transform-origin:50% 50%;opacity:0}100%{transform:scale(1);transform-origin:50% 50%;opacity:1}}@keyframes lds-rolling{0%{transform:rotate(0) translateZ(0)}100%{transform:rotate(360deg) translateZ(0)}}.lds-rolling{position:absolute;border:1px solid #00000a;border-top-color:transparent;border-radius:50%;animation:lds-rolling .75s linear infinite}.window--ie .lds-rolling{animation:none}.submit-loading{display:none}.buttonProgressContainerLoading .submit-loading{display:block;animation:fadeIn 0s cubic-bezier(.785,.135,.15,.86) .4s both;cursor:default}.circle-rolling{position:absolute;width:40px;height:40px;border:1px solid #00000a;border-top-color:transparent;border-radius:50%;animation:lds-rolling .75s linear infinite}.submit_circle{display:none;outline:0}.container-checkbox,.control{position:relative;padding-left:24px;color:#000;line-height:1.42857143}.buttonProgressContainerSuccess .submit_circle{display:inline}.circle-animation{stroke:#00000c;stroke-dasharray:122.52;stroke-dashoffset:0;fill:#fff;fill-opacity:0;animation-timing-function:ease-in-out;animation-fill-mode:both;animation-name:drawCircle;animation-duration:.5s}@keyframes drawCircle{from{stroke-dashoffset:122.52}to{stroke-dashoffset:0}}.checkmark-animation{stroke:#00000c;-ms-transform:scale(0);transform:scale(0);-ms-transform-origin:center;transform-origin:center;animation:scaleCheckmark .5s linear .5s forwards}@keyframes scaleCheckmark{to{transform:scale(1)}}.form-fields--horizonal .container-checkboxlist,.form-fields--horizonal .container-radiolist{width:calc(100% - 80px);max-width:calc(100% - 80px)}.container-checkboxlist{display:inline-block;width:100%;max-width:100%;margin-left:8px}.container-checkbox{display:inline-block;width:100%}.container-checkbox.disable{pointer-events:none}.container-checkbox i{display:-ms-inline-flexbox;display:inline-flex;width:20px;height:20px;position:absolute;left:0;top:0;-ms-flex-align:center;align-items:center}.container-checkbox i.selected{display:-ms-flexbox;display:flex}.container-checkbox i.unselected{display:-ms-inline-flexbox;display:inline-flex}.horizontal,.prepend,.prependContainer{display:inline-block}.checkbox:focus+.selected .checkbox2,.selected .checkbox2{fill:#666}.checkbox2{fill:#999}.checkbox3{fill:#fff}.container-checkbox:hover>.unselected .checkbox2,.svgPath{fill:#000}.checkbox:focus+.unselected .checkbox2{fill:#727272}.checkbox{position:absolute;z-index:-1;opacity:0;top:-2px;left:-2px;width:18px;height:16px}.horizontal{margin-right:10px}.control,.vertical{display:block}.container-checkbox input[type=Checkbox]:disabled~.checkbox__text,.container-checkbox input[type=Checkbox]:disabled~i svg{opacity:.6;pointer-events:none;cursor:default}.container-checkbox input[type=Checkbox]~.checkbox__text{cursor:pointer}.container-checkbox input[type=Checkbox]~i svg{cursor:pointer;width:14px;height:14px}.global-showFocus .container-checkbox input[type=Checkbox]:focus~i svg{outline:#000 auto 1px}.checkbox1{fill-rule:evenodd;clip-rule:evenodd;fill:#fff}.selected .checkbox1{fill:#666}.check-box.check-box-required .checkbox2{fill:#b31300}.control{margin-bottom:4px;cursor:pointer;font-size:.93333333rem}.control:last-child,.upload-file .upload-file__info .upload-file__title.upload-file__title--noSubtitle{margin-bottom:0}.control .radioText{padding-left:0}.control .radioText:hover{cursor:pointer}.control input[type=radio]{position:absolute;z-index:-1;opacity:0;top:-2px;left:-5px;width:18px;height:18px}.controlIndicator{position:absolute;top:0;left:0;margin-top:1px;height:16px;width:16px;border-radius:50%;overflow:hidden}.controlRadio .controlIndicator svg{width:16px;height:16px;border:1px solid #999;border-radius:50%;background-color:#fff}.control input[type=radio]:focus~.controlIndicator svg,.control:hover input[type=radio]~.controlIndicator svg{border:1px solid #000}.control input[type=radio]:checked~.controlIndicator svg{border:none}.control input[type=radio]~.controlIndicator svg circle{fill:#fff}.control input[type=radio]:focus~.controlIndicator svg{border:1px solid #000}.control input[type=radio]:checked~.controlIndicator svg circle:first-child{fill:#666;stroke:#666;stroke-width:1px}.control input[type=radio]:disabled~.controlIndicator{opacity:.6;pointer-events:none}.control:hover input[type=radio]:disabled~.controlIndicator{border:none}.control input[type=radio]:checked~.controlIndicator svg circle:nth-child(2){fill:#fff}.global-showFocus .control input[type=radio]:focus~.controlIndicator{outline:#666 auto 1px;outline-color:-webkit-focus-ring-color}.controlRadio.horizontal{float:left;margin-right:20px}.container-radiolist{margin-left:8px}.select-box{position:relative;height:40px;background:rgba(255,255,255,.7);border-radius:8px}.select-box svg{position:absolute;width:9px;height:6px;top:calc(50% - 3px);right:10px;color:#333}.window--ie9 .select-box svg{display:none}.select-box .select{position:absolute;left:0;right:0;top:0;bottom:0;z-index:9;padding:5px 25px 5px 10px;background:0 0;height:100%;width:100%;color:#000;cursor:pointer;border:1px solid rgba(33,33,33,.2);outline:0;font-size:1rem;font-family:inherit;appearance:none;border-radius:8px}.select-box .select:disabled{background-color:#f5f5f5}.embedded-window:not(.window--mobile) .select-box .select{font-size:1rem}.embedded-window:not(.window--mobile) .input,.input,.multipleText{font-size:.93333333rem}.select-box .select::-ms-expand{display:none}.select-box .select:focus{border-color:#00000a}.svg{width:20px;height:20px}.svg--loading{width:18px;height:18px}.svg--loadingChat{display:block;width:28px;height:28px;margin:0 auto}.svg.disabled{opacity:.3}svg:hover{cursor:pointer}.svg.disabled:hover{cursor:default}.svgPath{width:16px;height:16px}.svgRatePath1{fill:none;stroke:#000;stroke-miterlimit:10}.svgPathSendFile1{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.svgPathVideo1{fill:none;stroke:#000;stroke-miterlimit:10}.svgPathVideo2{fill:none}.svgPathVoice1{fill:none;stroke:#000;stroke-miterlimit:10}.svgPathVoice2{fill:#000}.sendemail1{fill:none}.sendemail2{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.svg:not(.disabled):hover .sendemail1,.svg:not(.disabled):hover .svgPathSendFile1,.svg:not(.disabled):hover .svgPathVideo1,.svg:not(.disabled):hover .svgPathVoice1,.svg:not(.disabled):hover .svgRatePath1{fill:rgba(0,0,0,.3)}.svg.active .svgRatePath1{fill:#000}.svg-white .svgPathVoice2,.svgClosePath,.svgMinimizePath,.svgPopupPath{fill:#fff}.svg-white .sendemail2,.svg-white .svgPathSendFile1,.svg-white .svgPathVideo1,.svg-white .svgPathVoice1,.svg-white .svgRatePath1{stroke:#fff}.svg-white:not(.disabled):hover .sendemail1,.svg-white:not(.disabled):hover .svgPathSendFile1,.svg-white:not(.disabled):hover .svgPathVideo1,.svg-white:not(.disabled):hover .svgPathVoice1,.svg-white:not(.disabled):hover .svgRatePath1{fill:rgba(255,255,255,.3)}.svg-white.active .svgRatePath1{fill:#fff!important}.svg-white.active .svgPathSendFile1{fill:#fff!important;stroke:#000001!important}.svg-white.active .sendemail2{fill:none!important;stroke:transparent!important}.svg-white.active .sendemail1{fill:#fff!important}.svg-sidewindow-icon{width:30px;height:30px;fill:#666;position:relative}.svg-sidewindow-icon-select-dark{border:1px solid #a2a2a2;border-radius:50%;fill:#000;background-color:#a2a2a2}.svg-sidewindow-icon-select-light-mobile{border:none;fill:#00000a}.svg-sidewindow-icon-select-dark-mobile{border:none;fill:#fdfdfd;background-color:#000}.window--circular .input{padding:5px 20px;border-radius:20px}.input{border:1px solid rgba(33,33,33,.2);padding:10px 16px;outline:0;line-height:1.42857143;-webkit-appearance:none;border-radius:8px}.input:disabled{background-color:#f5f5f5}.input[readOnly]{border:0}input.attachTicket{width:100px;margin-left:5px}.input:not(.input--effect01):focus{border-color:#00000a;outline:0}.prepend{line-height:18px;padding:5px 5px 4px;background-color:#fafafa}.prependContainer .input{border-top-left-radius:0;border-bottom-left-radius:0}.prependIcon{float:left;padding:0 6px 0 0}.defaultIcon{display:block;width:24px;height:24px}.inputContainer{position:relative;display:inline-block}.input.input--effect01{border:1px solid rgba(33,33,33,.2)}.input__focusBorder{display:block}.input.input--effect01:focus{border-color:#00000a;transition:26ms;transition-delay:182ms}.window--circular .input.input--effect01~.input__focusBorder::after,.window--circular .input.input--effect01~.input__focusBorder::before{left:20px}.input.input--effect01~.input__focusBorder::after,.input.input--effect01~.input__focusBorder::before{content:\"\";position:absolute;top:0;left:8px;width:0;height:1px;background-color:#00000a}.input.input--effect01~.input__focusBorder::after{top:auto;bottom:0}.input.input--effect01~.input__focusBorder i::after,.input.input--effect01~.input__focusBorder i::before{content:\"\";position:absolute;top:50%;left:0;width:1px;height:0;background:#ddd}.window--circular .input.input--effect01~.input__focusBorder i::after{top:20px;height:calc(100% - 40px)}.input.input--effect01:not(.error):focus~.input__focusBorder i::before{background-color:#00000a}.input.input--effect01~.input__focusBorder i::after{left:auto;right:0;top:8px;bottom:0;height:calc(100% - 16px)}.window--circular .input.input--effect01:focus~.input__focusBorder::after,.window--circular .input.input--effect01:focus~.input__focusBorder::before{width:calc(100% - 40px)}.input.input--effect01:focus~.input__focusBorder::after,.input.input--effect01:focus~.input__focusBorder::before{width:calc(100% - 16px);transition:156ms;transition-delay:26ms}.window--circular .input.input--effect01:focus~.input__focusBorder i::after,.window--circular .input.input--effect01:focus~.input__focusBorder i::before{height:calc(100% - 40px);top:20px}.input.input--effect01:focus~.input__focusBorder i::after,.input.input--effect01:focus~.input__focusBorder i::before{height:calc(100% - 16px);transition:26ms;top:8px}.input.input--effect01:focus~.input__focusBorder i::after{height:0;transition-delay:182ms;top:50%}.window--circular .input.input--effect01~.input__cornerLeft,.window--circular .input.input--effect01~.input__cornerRight{border-radius:20px}.input.input--effect01~.input__cornerLeft,.input.input--effect01~.input__cornerRight{width:0;display:block;border:0 solid #00000a;top:0;bottom:0;position:absolute;border-radius:8px}.window--circular .input.input--effect01:not(.error):focus~.input__cornerLeft,.window--circular .input.input--effect01:not(.error):focus~.input__cornerRight{width:20px}.input.input--effect01:not(.error):focus~.input__cornerLeft,.input.input--effect01:not(.error):focus~.input__cornerRight{width:16px;border-width:1px}.input.input--effect01:not(.error):focus~.input__cornerLeft{left:0;border-top-right-radius:0;border-bottom-right-radius:0;transition-delay:26ms;border-right-color:transparent}.input.input--effect01:not(.error):focus~.input__cornerRight{right:0;border-top-left-radius:0;border-bottom-left-radius:0;transition-delay:182ms;border-left-color:transparent;border-right-color:transparent}.input.error,.input.error:focus,.input.error:hover{border-color:#d34747}.input.error~.input__focusBorder i::after,.input.error~.input__focusBorder i::before,.input.error~.input__focusBorder::after,.input.error~.input__focusBorder::before{background:#d34747}input,textarea{-webkit-transform:translate3d(0,0,0)}input[type=search]{-webkit-appearance:textfield}.multipleText,.window--mobile input[type=search]{-webkit-appearance:none}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.multipleText{border:1px solid #ddd;padding:5px 10px;outline:0;transition:border-color .2s;border-radius:8px;width:100%;height:80px;overflow:auto}.multipleText:disabled{background-color:#f5f5f5}.multipleText:focus{border-color:#00000a;outline:0}.multipleText.error,.multipleText.error:focus,.multipleText.error:hover{border-color:#d34747}.window--circular .multipleText{border-radius:20px;padding:15px}.upload-file{z-index:0;position:relative;overflow:hidden;padding:10px 24px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;border-radius:4px;width:200px}.upload-file button{border:none;background:0 0;font-size:0;fill:#999;display:-ms-flexbox;display:flex}.upload-file button:hover{fill:#666}.upload-file button.upload-file__cancel,.upload-file button.upload-file__cancel>svg,.upload-file button.upload-file__retry,.upload-file button.upload-file__retry>svg{width:20px;height:20px}.upload-file .upload-file__clip{border-radius:4px;-ms-flex:none;flex:none;padding:6px;display:-ms-flexbox;display:flex;background-color:#000;-ms-flex-align:center;align-items:center}.upload-file .upload-file__clip svg{cursor:default;fill:#fff}.upload-file .upload-file__info{-ms-flex:auto;flex:auto;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;overflow:hidden}.upload-file .upload-file__info .upload-file__title{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:14px;line-height:17.6px}.upload-file .upload-file__info .upload-file__title .upload-file__file-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0}.upload-file .upload-file__info .upload-file__title .upload-file__file-ext{-ms-flex:none;flex:none}.upload-file .upload-file__info .upload-file__subtitle{overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:15.08px;color:#7a7a7a}.upload-file--initial{border:1px dashed #dedede;border-radius:8px;height:40px;cursor:pointer}.upload-file--initial .upload-file__icon{width:24px;height:24px;position:absolute;left:50%;top:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.upload-file--initial:hover{background-color:#f2f2f5}.upload-file--uploading{border:1px solid #d8ddf0}.upload-file--uploading>*{z-index:1}.upload-file--uploading .upload-file__progress{position:absolute;left:0;top:0;bottom:0;right:0;height:100%;z-index:0}.upload-file--uploading .upload-file__progress>div{background-color:#d8ddf0;transition:width .2s;height:100%}.upload-file--error{background-color:#FFEDF1}.upload-file-error{color:#B30A01;font-size:14px;line-height:21px}.bubble-box{visibility:hidden;position:absolute;background:rgba(0,0,0,.5);z-index:2147483645;width:100%;height:100%;right:0;bottom:0}.bubble{position:relative;width:305px;background:#fff;padding:36px 18px 28px;font-size:.93333333rem;line-height:1.42857143;border-radius:5px;box-shadow:0 0 10px rgba(0,0,0,.3);z-index:99;text-align:left}.window--ie .bubble{top:50%;left:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.window--circular .bubble{border-radius:20px}.bubble-box--show{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;visibility:visible;position:fixed}.window--ie .bubble-box--show{display:block}.bubble-box--show .bubble{animation:showBubble 333ms cubic-bezier(.785,.135,.15,.86) both}.window--ie .bubble-box--show .bubble{animation:none}@keyframes showBubble{0%{transform:scale(0)}100%{transform:scale(1)}}.window--ie9 .bubble .bubble__operation .btn:first-child{margin-right:0}.bubble .bubble__operation .btn:first-child,.rating .star{margin-right:10px}.bubble-close{position:absolute;right:10px;top:10px;cursor:pointer;background:0 0;border:none}.bubble-close svg{width:20px;height:20px;fill:#727272}.bubble-close svg:hover{fill:#000}.bubble__operation{margin-top:10px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.embedded-end-chatConfirmAction .btn,.media-chat-ConfirmAction .btn{max-width:50%}.bubble--title{color:#333;font-size:.93333333rem;margin-bottom:13px;word-wrap:break-word}.bubble--desc{font-size:.93333333rem;color:#000;margin-bottom:24px;text-align:center}.rating{position:relative;height:24px}.rating .star{display:inline-block;position:relative;cursor:pointer;background:0 0;border:none;width:24px;height:24px;overflow:hidden}.nps .npsItem:last-child,.rating .star:last-child{margin-right:0}.rating .star svg{fill:#fff;stroke:#626262;width:24px;height:24px}.window--bubble .form-fields--horizonal .rating .star{font-size:1.066667rem;line-height:16px;margin-right:6px}.window--circle .form-fields--horizonal .rating .star{font-size:1.666667rem;line-height:25px}.rating .starColor svg{fill:#ff9f49;stroke:#ff9f49}.rating .starColor.opacity svg{opacity:.3}.rating .focusColor svg{stroke:#ff9f49;stroke-width:1px}.window__headerContainer,.window__headerVessel{-ms-flex-negative:0;flex-shrink:0}.window__headerContainer:focus{outline:0}.window__header{width:100%;min-height:30px;border-radius:12px 12px 0 0;transition:height 50ms linear;overflow:initial!important}.window--circular .window__header{border-radius:20px 20px 20px 0}.window--mobile:not(.window--ipad) .window--circular .window__header{border-radius:0}.window--classic .window__header--fadeInDown{animation:fadeInDown 292ms both cubic-bezier(.785,.135,.15,.86);animation-delay:.3s}.window--ie .window--classic .window__header--fadeInDown{animation:none}.window__headerBox{padding:15px 27px 8px;width:100%}.window__headerBox.window__headerBox--banner,.window__headerBox.window__headerBox--empty,.window__headerBox.window__headerBox--hasAvatars,.window__headerBox.window__headerBox--team{padding:52px 24px 24px;margin-bottom:-24px}.window--classic.window--chat--chatted .window__headerVessel,.window--classic.window--chat--chatting .window__headerVessel,.window--classic.window--chat--invited .window__headerVessel,.window--classic.window--chat--waiting .window__headerVessel{z-index:9999}.window--classic.window--chat--chatting .window__headerBox.window__headerBox--empty,.window--classic.window--chat--waiting .window__headerBox.window__headerBox--empty{padding-top:40px}.window--classic.window--chat--chatted .window__header,.window--classic.window--chat--chatting .window__header,.window--classic.window--chat--invited .window__header,.window--classic.window--chat--invited .window__headerBox--hasAvatars,.window--classic.window--chat--waiting .window__header,.window--classic.window--chat--waiting .window__headerBox--hasAvatars{margin-bottom:0}.window--classic.window--chat--chatting .window__headerBox.window__headerBox--empty,.window--classic.window--chat--invited .window__headerBox.window__headerBox--empty,.window--classic.window--chat--waiting .window__headerBox.window__headerBox--empty{margin-bottom:0;padding-bottom:0}.window__header--hasAvatar .window__headerBox{padding:16px 24px 8px}.window__headerBox.window__headerBox--kb{margin-bottom:-24px}.window--classic.window--offline .window__headerBox--hasAvatars,.window--classic.window--offline--chatting .window__headerBox--hasAvatars,.window--classic.window--offline--waiting .window__headerBox--hasAvatars,.window--classic.window--prechat .window__headerBox--hasAvatars,.window--classic.window--prelogin .window__headerBox--hasAvatars{padding-bottom:72px}.window--classic.window--chat--invited .window__headerBox--hasAvatars{padding-bottom:24px;margin-bottom:0}.window__headerBox--onlylogo{min-height:85px}.window__headerBox--fadeInDown{opacity:1;-ms-transform:translateY(0);transform:translateY(0)}.title-buttons__operation{display:block;float:left;padding-left:10px;padding-right:10px}.window--circle:not(.window--embedded) .title-buttons__operation,.window--classic:not(.window--embedded) .title-buttons__operation{line-height:1}.window--mobile .title-buttons__operation{padding:0 9.5px}.title-buttons__operation .icon{cursor:pointer}.title-buttons__operation--text{border-left:2px solid rgba(255,255,255,.5)}.window--circle .title-buttons__operation--text{border-left-color:#a3a3a3;line-height:13px}.window--classic .title-buttons__operation--text{border-left-color:#000007;line-height:13px}.title-buttons__operation--text a{color:#fff;text-decoration:none;cursor:pointer;display:block;max-height:21px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.window--circle .title-buttons__operation--text a{color:#a3a3a3}.window--classic .window__headerBox{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative}.window--classic .window__headerBox.window__headerBox--banner{display:block;padding-top:28px;padding-bottom:24px;margin-bottom:24px}.window--classic.window--kb .window__headerBox--kb{-ms-flex-direction:column;flex-direction:column}.window--classic .window__headerBox--hasAvatars,.window--classic .window__headerBox--team{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.window--classic .header__agent--withlogo{margin-right:10px}.window--classic .title-buttons__operation--text a{color:#000004}.header__teamAvatar--gray .header__teamAvatarImg{filter:gray;-webkit-filter:grayscale(100%)}.window__operation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around;padding-right:8px}.window__operation .header__operationContainer>button>svg.icon-endchat,.window__operation .icon-close{width:20px;height:20px}.window--mobile .window__operation .icon-close,.window--mobile .window__operation .icon-endchat{width:20px}.window__operation .header__operationContainer>button,.window__operation>button{height:40px;width:40px;background:0 0;border:none;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.window__operation .header__operationContainer>button,button.menubar__btn{background:0 0;border:none}.window__operation .header__operationContainer>a:hover,.window__operation .header__operationContainer>button:hover,.window__operation>button:hover{cursor:pointer}.window__operation .header__operationContainer>a:hover svg,.window__operation .header__operationContainer>button:hover svg,.window__operation>button:hover svg{opacity:1}.window--bubble .window__operation .header__operationContainer>a.window__operation-menu-icon{margin-left:0}.window__operation-menu-icon{cursor:pointer}.window__operation-menu-icon>svg{width:20px}.body__dialog-menu .window__operation-menu,.window__menu-show.window__operation-menu{display:block;position:relative;z-index:11}.window__operation-menu{display:none;position:absolute;right:0}.window--bubble .window__operation-menu{position:absolute;right:-20px;top:44px}.window--ie9 .window--bubble .window__operation-menu{width:160px}.window__operation-menu li{height:auto;text-align:left}.window__operation-menu li>button{margin:0;height:auto;font-size:.93333333rem;line-height:1.42857143;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;padding:10px 16px;cursor:pointer;color:#666;background:0 0;border:none;width:100%}.window__operation-menu li>button:focus,.window__operation-menu li>button:hover{outline:0;color:#000;background-color:rgba(114,114,114,.08)}.window__operation-menu li>button>div.menu__text-container{text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:90px}.window--bubble .window__operation-menu li>button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.window--mobile .window__operation-menu li>button>div.menu__text-container>span{width:100%}.body__dialog-menu .window__operation-menu li>button:hover,.window--mobile .window__operation-menu li>button:hover{background-color:initial}.window__operation .window__operation-menu ul{background:#fff;border-radius:4px;z-index:2147483645;padding:4px 0;box-shadow:0 1px 6px 0 rgba(0,0,0,.2)}.window__operation .window__operation-menu ul li>button>svg{fill:#666;float:left;width:20px;height:20px}.window__operation .window__operation-menu ul li>button:focus svg,.window__operation .window__operation-menu ul li>button:hover svg{fill:#000}.global-showFocus .window__operation .header__operationContainer>a:focus,.global-showFocus .window__operation .header__operationContainer>button:focus,.global-showFocus .window__operation>button:focus{outline:#000004 solid 2px;border-radius:2px}.window--bubble .window__operation .window__operation-menu ul li>button>svg{-ms-flex-negative:0;flex-shrink:0;margin-top:0}.window__operation .header__operationContainer>a>svg,.window__operation .header__operationContainer>button>svg,.window__operation>button>svg{fill:#000004;opacity:.8}.window--bubble .window__operation .header__operationContainer>a>svg,.window--bubble .window__operation .header__operationContainer>button>svg,.window--bubble .window__operation>button>svg{fill:#000}.window__operation .header__operationContainer>button:hover,.window__operation>button:hover{background:rgba(0,0,0,.1)}.main-container .window__title{position:absolute;right:0;top:0}.window--classic .icon-close,.window--classic .icon-embedded,.window--classic .icon-minimize,.window--classic .icon-popup{color:#000004;font-size:.8rem}.header__bannerImg{max-height:90px;width:auto;height:auto}.window--classic .header__bannerImg{display:block;max-width:calc(100% + 48px)!important;margin:10px -24px -24px!important}.window--classic .header__agentInfo{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;max-width:calc(100% - 142px)}.window--classic .header__agent--withlogo .header__agentInfo{max-width:calc(100% - 38px)}.window--classic .header__agent--withlogo .header__agentInfo.header__agentInfoNoAvatar{max-width:100%}.window--classic .header__agentInfoNoAvatar{max-width:calc(100% - 100px);padding-left:0}.window--circle .header__agentInfo{width:100%}.window--classic .header__chatbot{height:50px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.window--classic .header__avatar{float:left;margin-right:8px;width:30px;height:30px;border-radius:50%}.window--classic .header__avatarImage{display:block;width:30px;height:30px;border-radius:50%}.header__agent{position:relative}.window--circle .header__agent--compact{height:18px}.window--circle .header__agent--compact.with__title{height:33px}.header__agent--compact:hover::before{content:'';position:absolute;z-index:99;width:calc(100% + 10px);height:calc(100% + 10px);background:rgba(0,0,0,.1);border-radius:4px;left:-5px;top:-5px;cursor:pointer}.window--circle .header__agent--compact:hover::before{width:100%;height:calc(100% + 6px);left:0;top:-3px;border-radius:10px}.window--classic .header__agent{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100%;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:1;flex-shrink:1;-ms-flex-wrap:wrap;flex-wrap:wrap}.header__agentBio,.window--circle .header__agentBio{display:-webkit-box;max-height:80px;-webkit-line-clamp:4;text-overflow:ellipsis;-webkit-box-orient:vertical}.window--classic .header__agent--fadeInUp{animation:fadeInUp 458ms cubic-bezier(.785,.135,.15,.86) both;animation-delay:.3s}.window--ie .window--classic .header__agent--fadeInUp{animation:none}.window--classic .header__agent.header__agent--withlogo{float:left;max-width:calc(100% - 110px);margin-top:11.5px;margin-bottom:11.5px}.window--classic .window__header--hasAvatar .header__agent--withlogo{margin-top:0;margin-bottom:0}.header__agentName,.header__agentTitle{max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.window--classic .header__agentName{font-size:.93333333rem;line-height:1.28571429;color:#000004;text-shadow:0 1px 0 rgba(0,0,0,.2);font-weight:600}.window--classic .header__agentTitle{font-size:.8rem;line-height:1.25;font-weight:500;color:#000004;opacity:.7;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.header__agentBio{overflow:hidden;word-wrap:break-word;transition:max-height .2s ease-in-out,opacity .2s ease-in-out}.window--classic .header__agentBio{font-size:.86666667rem;line-height:1.38461538;color:#000004;opacity:.9;margin-top:8px;padding-left:38px;max-height:96px;overflow-y:auto;-ms-flex-preferred-size:100%;flex-basis:100%}.window--classic .header__agentBio p{margin:0;line-height:1.38461538}.window--classic .header__agentBio a{color:#000004;border-bottom:1px solid #000004}.window--classic .header__logo{margin-left:auto}.window--classic.window--kb .header__logo{margin:37px auto 24px}.window--classic.window--kb .header__logo~.greeting-message__kb--header{margin-top:0;margin-bottom:28px}.window--classic.window--loading .window__headerBox.window__headerBox--logo,.window--classic.window--offline .window__headerBox.window__headerBox--logo,.window--classic.window--offline--chatting .window__headerBox.window__headerBox--logo,.window--classic.window--offline--waiting .window__headerBox.window__headerBox--logo,.window--classic.window--prechat .window__headerBox.window__headerBox--logo,.window--classic.window--prelogin .window__headerBox.window__headerBox--logo{margin-bottom:-20px;padding-bottom:20px}.window--classic.window--loading .header__logo,.window--classic.window--offline .header__logo,.window--classic.window--offline--chatting .header__logo,.window--classic.window--offline--waiting .header__logo,.window--classic.window--prechat .header__logo,.window--classic.window--prelogin .header__logo{margin:37px auto 24px}.window--classic.window--loading .header__logo{margin-bottom:0}.window--classic.window--chat--invited .window__headerBox.window__headerBox--logo,.window--classic.window--chat--waiting .window__headerBox.window__headerBox--logo{padding:52px 24px 18px}.window--classic.window--chat--invited .header__logo,.window--classic.window--chat--waiting .header__logo{margin-right:auto}.window--classic.window--chat--invited .header__agent--withlogo~.header__logo,.window--classic.window--chat--waiting .header__agent--withlogo~.header__logo{margin-right:unset}.window--classic.window--chat--chatted .window__headerBox--logo,.window--classic.window--chat--chatting .window__headerBox--logo{padding:40px 24px 18px}.window--classic .header__logoImg{max-height:45px;max-width:100px;display:block;float:right;width:auto;height:auto}.header__teamName{margin-top:0;font-weight:700}.window--classic .header__teamName{font-size:1.2rem;line-height:1.33333333;color:#000004;text-align:center;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:8px}.window--classic .header__teamName.header__teamNameNoAvatar{margin-bottom:48px}.window--classic .window__headerBox--hasAvatars .header__teamName,.window--classic.window--chat--chatted .window__headerBox,.window--classic.window--chat--chatting .window__headerBox,.window--classic.window--chat--invited .header__teamName.header__teamNameNoAvatar,.window--classic.window--chat--invited .window__headerBox,.window--classic.window--chat--waiting .header__teamName.header__teamNameNoAvatar,.window--classic.window--chat--waiting .window__headerBox,.window--classic.window--kb .header__teamName.header__teamNameNoAvatar{margin-bottom:0}.window--classic .window__headerBox.window__headerBox--empty{padding-bottom:24px}.window--classic .header__teamName+.header__teamAvatar{margin:16px auto 0}.window--classic .header__teamAvatar{position:relative;width:108px;height:40px}.header__teamAvatarImg{background:#f4f5f6}.window--classic .header__teamAvatarImg{position:absolute;width:40px;height:40px;border-radius:100%;border:1px solid #fff}.window--classic .header__teamAvatarImg:nth-child(1){left:0;z-index:9}.window--classic .header__teamAvatarImg:nth-child(2){left:34px;z-index:8}.window--classic .header__teamAvatarImg:nth-child(3){left:68px;z-index:7}.window--classic .window__header--prechatWithAvatar{height:126px}.window--classic .header--compact{height:55px}.window--classic .header--compact .header__teamAvatar,.window--classic.animation--chatting .header__teamAvatar{-ms-transform:translateY(-105px);transform:translateY(-105px)}.window--classic.animation--chatting .header__teamName{-ms-transform:translateY(-60px);transform:translateY(-60px)}.window--classic .header--bottom{width:100%;position:absolute;left:0;height:19px;top:100%}.window--classic .header--bottom svg{position:absolute;top:0}.window--classic .header--bottom svg:hover{cursor:default}.window--circle .header{border-top-left-radius:20px;border-top-right-radius:20px}.window--circle .header__bannerImg{display:block;max-width:calc(100% + 40px);margin:0 0 -16px -24px}.window--circle .header__avatar{position:absolute;top:-56px;left:50%;margin-left:-24px}.window--circle .header__agent .header__avatar~.header__agentInfo{margin-top:-8px}.window--mobile .window--circle .header__agent .header__avatar~.header__agentInfo{margin-top:8px}.body__dialog .window--embedded.window--circle .header__avatar::before,.body__dialog-menu .window--embedded.window--circle .header__avatar::before{content:'';position:absolute;top:0;left:0;height:50%;width:100%;border-radius:70px 70px 0 0;background-color:rgba(0,0,0,.5)}.body__dialog .window--mobile:not(.window--ipad) .window--circle .header__avatar::before,.body__dialog-menu .window--mobile:not(.window--ipad) .window--circle .header__avatar::before{height:0}.window--mobile .window--circle .header__avatar--withSideWindow,.window--mobile .window--circle .window__headerBox .header__teamAvatar--withSideWindow{left:50%}.window--circle .header__avatar--fadeInDown{animation:fadeInDown 292ms cubic-bezier(.785,.135,.15,.86) both;animation-delay:.3s}.window--ie .window--circle .header__avatar--fadeInDown{animation:none}.window--circle .header__avatarImage{display:block;border-radius:100%;width:48px;height:48px;border:1px solid #fff;margin:0 auto}.window--circle .header__agentInfo{text-align:center;display:-ms-flexbox;display:flex;display:-webkit-flex;flex-direction:column;-ms-flex-direction:column;-ms-flex-align:center;align-items:center}.window--circle .header__agentInfoNoAvatar{margin-top:0}.window--circle .header__agentName{max-width:calc(100% - 90px);margin:0 auto;font-size:.93333333rem;color:#000;line-height:1.28571429;font-weight:600}.window--circle .header__agentTitle{font-size:.86666667rem;font-weight:500;color:#666;line-height:1.38461538;opacity:.8}.window--circle .header__agentBio{text-align:center;margin-top:8px;font-size:.86666667rem;color:#000;line-height:1.38461538;overflow:hidden;width:100%;overflow-y:auto}.window--circle .header__agentBio p{margin:0}.window--circle .header__agentBio a{color:#000;border-bottom:1px solid #000}.window--circle .header__teamName{font-size:1.2rem;line-height:1.33333333;color:#000;width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.window--circle .header__teamNameNoAvatar{margin-top:0}.window--circle .header__teamAvatar{position:absolute;left:50%;top:-20px;width:112px;height:40px;margin-bottom:10px;margin-left:-56px;animation:fadeInDown 292ms cubic-bezier(.785,.135,.15,.86) both;animation-delay:.3s}.window--ie .window--circle .header__teamAvatar{animation:none}.window--circle .header__teamAvatarImg{position:absolute;width:40px;height:40px;border:1px solid #fff;border-radius:100%;top:0;box-sizing:border-box}.window--circle .header__teamAvatarImg:nth-child(1){z-index:8}.window--circle .header__teamAvatarImg:nth-child(2){left:36px;z-index:9}.window--circle .header__teamAvatarImg:nth-child(3){right:0;z-index:10}.global-showFocus .window--circle .window__operation .header__operationContainer>button:focus,.global-showFocus .window--circle .window__operation>a:focus,.global-showFocus .window--circle .window__operation>button:focus{border-bottom-color:#5d5d5d}.window--bubble .window__operation .header__operationContainer>button>svg,.window--bubble .window__operation>button>svg,.window--circle .window__operation .header__operationContainer>button>svg,.window--circle .window__operation>button>svg{fill:#666}.window--circle .window__headerBox{border-bottom:1px solid #ddd;width:calc(100% - 40px);margin:0 24px;padding:40px 0 16px}.window--circle .window__headerBox .header__agent,.window--circle .window__headerBox .header__teamName{padding:0 40px}.window--circle .window__headerBox.window__headerBox--team.window__headerBox--hasAvatars .header__teamName{margin-bottom:16px}.window--circle.window--offline .window__headerBox.window__headerBox--team.window__headerBox--hasAvatars .header__teamName,.window--circle.window--offline--waiting .window__headerBox.window__headerBox--team.window__headerBox--hasAvatars .header__teamName,.window--circle.window--prechat .window__headerBox.window__headerBox--team.window__headerBox--hasAvatars .header__teamName,.window--circle.window--prelogin .window__headerBox.window__headerBox--team.window__headerBox--hasAvatars .header__teamName{margin-bottom:0}.window--circle .window__headerBox.window__headerBox--hasAvatars{padding-bottom:0}.window--circle .window__headerBox.window__headerBox--empty{border-bottom:none}.window--circle .window__headerBox.window__headerBox--empty.window__headerBox--kb{padding:14px 0}.window--circle.window--offline .window__headerBox.window__headerBox--empty,.window--circle.window--offline--chatting .window__headerBox.window__headerBox--empty,.window--circle.window--prechat .window__headerBox.window__headerBox--empty,.window--circle.window--prelogin .window__headerBox.window__headerBox--empty{padding:24px 0}.window--circle.window--offline .window__headerBox.window__headerBox--hasAvatars,.window--circle.window--offline .window__headerBox.window__headerBox--team:not(.window__headerBox--hasAvatars),.window--circle.window--offline--waiting .window__headerBox.window__headerBox--hasAvatars,.window--circle.window--offline--waiting .window__headerBox.window__headerBox--team:not(.window__headerBox--hasAvatars),.window--circle.window--prechat .window__headerBox.window__headerBox--hasAvatars,.window--circle.window--prechat .window__headerBox.window__headerBox--team:not(.window__headerBox--hasAvatars),.window--circle.window--prelogin .window__headerBox.window__headerBox--hasAvatars,.window--circle.window--prelogin .window__headerBox.window__headerBox--team:not(.window__headerBox--hasAvatars){padding-bottom:8px}.window--circle .header-operator{margin-bottom:17px}.window--adaptive.window--offline--waiting .window__headerBox,.window--circle.window--offline .window__headerBox,.window--circle.window--prechat .window__headerBox,.window--circle.window--prelogin .window__headerBox{border:none}.body__dialog .window--bubble .window__title,.body__dialog-menu .window--bubble .window__title{visibility:visible;opacity:1}.window--bubble:hover .window__title{visibility:visible;opacity:1;transition:opacity .4s cubic-bezier(.785,.135,.15,.86)}.window--mobile .window--bubble .window__title{visibility:visible;opacity:1}.window--bubble .header__avatar{position:absolute;top:-45px;left:50%;margin-left:-42px}.window--bubble .header__avatarImage{display:block;border-radius:100%;width:85px;height:85px;border:1px solid #000004}.window--bubble .header__agentInfo{text-align:center;margin-top:35px}.window--bubble .header__agentName{font-size:1.2rem;color:#000}.window--bubble .header__agentTitle{font-size:.933333rem;color:rgba(0,0,0,.3)}.window--bubble .header__agentBio{font-size:.933333rem;color:rgba(0,0,0,.5);margin-top:5px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-height:20px;max-height:80px;-webkit-line-clamp:4;-webkit-box-orient:vertical}.window--bubble .icon-close,.window--bubble .icon-embedded,.window--bubble .icon-minimize,.window--bubble .icon-popup{color:#fff;font-size:.8rem}.window--bubble .window__operation{border-radius:10px;padding:0 5px}.window__operation .header__operationContainer{position:relative;height:40px;text-align:right}.window--bubble .window__operation .header__operationContainer>a,.window--bubble .window__operation .header__operationContainer>button,.window--bubble .window__operation>button{padding:2px 4px}.window--bubble .main-container .window__title{right:6px;z-index:2147483645;background-color:#fff;border-radius:12px;box-shadow:0 2px 6px 0 rgba(0,0,0,.08)}.window--bubble .window__headerBox{padding-bottom:0}.window--bubble .header-operator{border-bottom:1px solid #ddd;padding-bottom:28px}.window--ie .window--classic .window__headerBox--banner{display:block}.window--bubble .window__ssologin{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-positive:1;flex-grow:1;padding:28px 40px}.window--bubble .window__ssologin.window__ssologin--animation{animation:fadeInUp 458ms cubic-bezier(.785,.135,.15,.86) both;animation-delay:.3s}.window--ie .window__ssologin--animation{animation:none!important}.window__chat--animation,.window__form--animation{animation:fadeInUp 458ms cubic-bezier(.785,.135,.15,.86) both}.window__ssologinError{font-size:.93333333rem;line-height:1.29px;color:#be1300;margin-bottom:26px}.window__ssologinGreeting{font-size:.93333333rem;line-height:1.42857143;color:#000;margin:4px 0 20px;text-align:center}.window__ssologinForm{text-align:center}.window__ssologinOperation{display:block;margin:0 auto 12px;overflow:hidden;text-overflow:ellipsis}.window__ssologinOperation:last-child{margin-bottom:0}.prechatForm__social{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.form-fields--horizonal .prechatForm__social{-ms-flex-pack:left;justify-content:left}.prechatForm__social .prechatForm__socialBtn{border:none;fill:#fff;border-radius:8px;font-size:.93333333rem;line-height:1.28571429;background-color:rgba(33,33,33,.08);font-weight:700;height:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:4px;overflow:hidden;-ms-flex:1;flex:1;cursor:pointer}.prechatForm__socialBtn svg{height:20px;width:20px}.corner-style .prechatForm__social .prechatForm__socialBtn{border-radius:20px}.window--ie .form-fields--horizonal #social-login-icons{-ms-flex:0 0 70px;flex:0 0 70px}.prechatForm__divide{font-size:.86666667rem;line-height:1.38461538;position:relative;display:block;text-align:center;margin-top:10px;margin-bottom:24px;color:#727272}.prechatForm__divide::after,.prechatForm__divide::before{border-top:1px solid rgba(33,33,33,.2);width:40%;position:absolute;top:9px;content:''}.prechatForm__divide::before{left:0}.prechatForm__divide::after{right:0}.loading{display:block;background-size:50px}.icon-facebook{margin-right:10px;color:#39599c}.window--rtl .icon-facebook{margin-left:10px}.ssologin .window__ssologinForm{margin-bottom:30px}.captcha{perspective:100px;perspective-origin:left}:not(.window--ie) .window--rtl .captcha{perspective-origin:right}.window--edge .window--rtl .captcha,.window--ie .window--rtl .captcha{perspective-origin:0}.captcha>:first-child{transform:translateZ(-15px)}.window--bubble .captcha>:first-child{transform:translateZ(-13px)}.window--bubble.window--rtl .captcha>:first-child{transform:translateZ(-40px)}.form-fields--horizonal .captcha>:first-child{transform:translateZ(-70px)}.window__form_popout .captcha>:first-child{transform:translateZ(-8px)}.window__form_popout .form-fields--horizonal .captcha>:first-child{transform:translateZ(-53px)}.window__formContainer--bubble{overflow:hidden;padding:4px 0;-ms-flex-positive:1;flex-grow:1;margin-top:40px;margin-right:6px;border-radius:12px}.window__form{overflow:auto;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;width:100%;padding:16px 16px 14px;margin:0 16px 10px;border-radius:12px;background-color:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 2px 6px 0 rgba(0,0,0,.08);overflow-x:hidden}.window__form--animation{animation-delay:.3s}.window--ie .window__form--animation{animation:none}.window--bubble .window__form{padding:16px;-ms-flex-negative:0;flex-shrink:0;position:relative;margin:0;width:auto;overflow:visible}.window--circular .window--bubble .window__form{border-radius:20px}.window--mobile .window--bubble .icon-bubble-line{left:10px}.window--bubble .window__form .icon-bubble-line{position:absolute;left:-10px}.window--bubble .window__form .icon-bubble-line .bubbleline1{fill:#fff;stroke:#ddd;stroke-width:2px}.window--bubble .icon-bubble-line::before{color:#ddd}.window__formGreeting{font-size:.93333333rem;line-height:1.42857143;color:#000;margin-bottom:24px;word-wrap:break-word;word-break:break-word}.window__formGreeting a{color:#00000c;border-bottom:1px solid #00000c!important}.window__chat .window__formGreeting{text-align:center}.window__formError{font-size:.86666667rem;line-height:1.53846154;color:#be1300;margin-bottom:26px}.form-fields .box-field{margin-bottom:16px}.form-fields .box-field input[type=file]{width:100%}.form-fields.form-fields--horizonal .box-field div.field-name+:not(.container-checkbox){-ms-flex-preferred-size:calc(100% - 80px);flex-basis:calc(100% - 80px)}#postchat-window .form-fields.form-fields--horizonal .box-field div.field-name+:not(.container-checkbox){max-width:calc(100% - 60px)}.form-fields.form-fields--horizonal .box-field input[type=file]{width:calc(100% - 80px)}.form-fields--horizonal .box-field{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;-ms-flex-wrap:wrap;flex-wrap:wrap}.form__inputContainer{position:relative;text-align:center}.fieldControl__Ticket{display:-ms-flexbox;display:flex}.form-fields--horizonal .fieldControl__Ticket{-ms-flex-positive:1;flex-grow:1}.form__ticketPrefix{-ms-flex-negative:0;flex-shrink:0;line-height:35px;font-size:.934rem}.window--bubble .form-fields:not(.form-fields--horizonal) .fieldControl__Ticket .form__input--ie10{width:120px}.fieldControl__Ticket .form__inputContainer,.form-fields--horizonal .form__inputContainer,.form-fields--horizonal .multipleText,.form-fields--horizonal .select-box{-ms-flex-positive:1;flex-grow:1}.form-fields .field-name{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:2px;margin-bottom:4px;color:#000;word-wrap:break-word}.form-fields .checkbox__text{color:#000;font-size:.93333333rem;line-height:1.42857143;width:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.form-fields .container-checkboxlist .container-checkbox{display:block}.form-fields .container-checkboxlist>div+div{margin-top:4px}.form-fields .container-checkboxlist .checkbox__text{text-transform:none;font-weight:400;font-size:.93333333rem;line-height:1.42857143}.form-fields .field-control{-ms-flex-positive:1;flex-grow:1}.form-fields .field-control-password{position:relative}.form-fields .field-control-password input{padding-right:40px}.form-fields .field-control-password input[type=password]::-ms-reveal{display:none}.form-fields .field-control-password input[type=password]::-ms-clear{display:none}.form-fields .field-control-password input[type=password]::-o-clear{display:none}.form-fields .field-control-password .svg-icon{fill:#bebebe;position:absolute;top:0;right:10px;display:inline-block;width:40px;height:35px;margin-right:-10px;padding:7.5px 10px;font-size:35px;transition:fill .2s cubic-bezier(.4,0,.2,1) 0s;-webkit-user-select:none;-ms-user-select:none;user-select:none}.form-fields.form-fields--horizonal .field-control,.form-fields.form-fields--horizonal .fieldControl__Ticket,.window--ie10 .fieldControl__Ticket .field-control,.window--ie10 .form-fields--horizonal .select-box{-ms-flex-negative:1;flex-shrink:1}.form-fields--horizonal .field-name{margin-bottom:0;margin-right:10px;-ms-flex:1 0 80px;flex:1 0 80px;max-width:80px;display:-ms-flexbox;display:flex}.form-fields--horizonal .field-name .field__label{display:inline-block;max-width:80px}.form-fields--horizonal .field-name.checkbox-label{-ms-flex-preferred-size:unset;flex-basis:unset;max-width:none;-ms-flex-negative:1;flex-shrink:1;display:none}.form-fields--horizonal .field-name.checkbox-label .field__label{max-width:none}.form-fields--horizonal .form__ticketPrefix{-ms-flex-negative:0;flex-shrink:0}.form-fields .field__requiredTag{fill:#be1300;vertical-align:middle;width:7px;float:left}.check-box .field__requiredTag{margin-left:2px;-ms-flex-negative:0;flex-shrink:0;float:none}.window--rtl .form-fields .field__requiredTag{margin-left:4px;float:right}.form-fields .field__label{font-size:.93333333rem;line-height:1.28571429;float:left;font-weight:600}.form-fields .field__requiredMsg,.form-note{font-size:.86666667rem;line-height:1.38461538}.form-fields .field__label.field__error{color:#be1300}.window--rtl .form-fields .field__label{direction:rtl}.form-fields .field__requiredMsg{color:#be1300;margin-top:1px}.form-fields .field__requiredMsg svg{fill:#be1300;overflow:visible;width:12px;height:12px;margin-right:4px}.filed__content .original_input{width:100%}.form-fields--horizonal .filed__content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100%}.form-fields--horizonal .field__requiredMsg:not(.field__requiredMsg--checkbox){margin-left:90px}.form__input{height:40px;width:100%}.form__textarea{height:auto}.form__submitContainer{position:relative;text-align:center;margin-top:24px}.bubble .form__submitContainer{padding:0;margin-top:23px}.form__submit{width:160px}.form__submitContainer--loading .form__submit{animation-name:form__submit--loading;animation-duration:167ms}.form__layer-circle,.form__layer-success{position:absolute;left:50%;top:50%;-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);display:none}.form__submitContainer--loading .form__layer-circle,.form__submitContainer--loading .form__layer-success{display:block}.form__submitContainer--loading .form__submitCirclePath{stroke:#000001;stroke-width:3px;stroke-dasharray:100;stroke-dashoffset:100;fill:#fff;fill-opacity:0;animation-timing-function:ease-in-out;animation-fill-mode:both;animation-name:form__submitCirclePath-dash;animation-duration:.5s;animation-delay:167ms}.window_botform{padding:0!important;height:100%}.window_botform .botform_title{margin:0 0 10px;text-align:center;color:#444648;font-size:16px}.botform__submitContainer{text-align:center;margin:10px 0 30px}.botform__submitContainer button{padding:5px 18px;border:1px solid #00000a;border-radius:5px;color:#fff;margin:0 4px;cursor:pointer;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:160px}.botForm__container,.botForm__content,.botForm__content_iframe,.botForm__content_webview{height:100%;overflow:auto}.botform__submitContainer button.btn-submit{background-color:#00000a;color:#00000e}.botform__submitContainer button.btn-cancel{background-color:#fff;color:#00000c}.botform__submitContainer button.btn-submit:focus,.botform__submitContainer button.btn-submit:hover{background-color:#000003;border-color:#000003}.botform__submitContainer button.btn-cancel:focus,.botform__submitContainer button.btn-cancel:hover{color:#000003;border-color:#000003}.botform__submitContainer button[disabled]{background-color:#f5f5f5!important;color:#888!important;border-color:#b5b1b1!important;cursor:default}.botconfirm_list li p{color:#333}.botconfirm_list li p:first-child{font-weight:700}@keyframes form__submitCirclePath-dash{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}.form__submitContainer--loading .form__submitSuccessPath{fill:#00000a;stroke-width:1;-ms-transform:scale(0);transform:scale(0);opacity:0;animation-timing-function:ease-in-out;animation-fill-mode:both;animation-name:form__submitSuccessPath-animation;animation-duration:.5s;animation-delay:542ms}@keyframes form__submitSuccessPath-animation{0%{transform:scale(0);transform-origin:50% 50%;opacity:0}100%{transform:scale(1);transform-origin:50% 50%;opacity:1}}.botForm__content_webview{width:100%}.botForm__content_iframe{width:100%;border:none}.form__gradient--white{position:absolute;height:25px;width:100%;bottom:0;background-image:linear-gradient(to bottom,transparent,rgba(255,255,255,.97) 86%,#fff)}.container-checkbox span,.control span{display:inline-block}.form-fields--horizonal .form__attachmentContainer{height:36px}.form-fields--horizonal .form__attachmentContainer input[type=file]{position:absolute;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%)}.window_sendForm{padding:0!important;height:100%}.window_sendForm .sendForm_title{margin:0 0 10px;text-align:center;color:#444648;font-size:16px}.sendForm__submitContainer{text-align:center;margin:10px 0 30px}.sendForm__submitContainer button{border:1px solid #00000a;margin:0 4px;cursor:pointer;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:160px;border-radius:4px;color:#fff;padding:6px 18px}.sendForm__submitContainer button.btn-submit{background-color:#00000a;color:#00000e}.sendForm__submitContainer button.btn-cancel{background-color:#fff;color:#00000c;border:1px solid #00000c}.sendForm__submitContainer button.btn-submit:focus,.sendForm__submitContainer button.btn-submit:hover{background-color:#000003;border-color:#000003}.sendForm__submitContainer button.btn-cancel:focus,.sendForm__submitContainer button.btn-cancel:hover{color:#000010;border-color:#000010}.sendForm__submitContainer button[disabled]{background-color:#f5f5f5!important;color:#888!important;border-color:#b5b1b1!important;cursor:default}.sendForm__container,.sendForm__content{height:100%;overflow:auto}.sendForm__container .form-note{padding-left:20px}.sendFormConfirm_list{padding:20px;min-width:190px}.sendFormConfirm_list li{margin-bottom:10px}.sendFormConfirm_list li p,.sendFormConfirm_list li p:first-child{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif,Arial!important}.sendFormConfirm_list li p{color:#333}.sendFormConfirm_list li p:first-child{font-weight:700;color:#666}.form-note{color:#666;margin-bottom:12px;display:block}.form-submitted{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-top:128px;position:relative}.emoji,.nps{display:-ms-flexbox}.form-submitted svg{fill:none;height:42px;width:42px}.nps{display:flex;-ms-flex-pack:distribute;justify-content:space-around}.nps .npsItem{height:22px;width:22px;border:none;background:#e8e8e8;color:#626262;font-size:12px;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif,Arial!important;font-weight:600;border-radius:100%;overflow:hidden;cursor:pointer;position:relative}.nps .npsItem--selected,.nps .npsItem:hover{background:#00000a;color:#00000e}.nps .npsItem svg{position:relative;width:100%;height:100%;fill:#e8e8e8;border-radius:50%}.nps .npsItem--selected svg,.nps .npsItem:hover svg{fill:#00000a;color:#000004}.nps .npsItem .npsItem-label{position:absolute;top:50%;left:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%}.nps__label{font-size:11px;color:#626262;word-wrap:break-word}.nps__label--left{float:left;margin-top:5px;width:50%;padding-right:8px}.nps__label--right{float:right;margin-top:5px;width:50%;padding-left:8px;text-align:right}.window--rtl .nps .npsItem:last-child{margin-right:2px}.window--rtl .nps__label--left{float:right;padding-right:0;padding-left:8px}.window--rtl .nps__label--right{float:left;text-align:left;padding-left:0;padding-right:8px}.window--mobile .nps .npsItem--selected{background:#00000a;color:#00000e}.form-fields--horizonal .nps .npsItem{height:15px;width:15px;line-height:15px}.emoji{position:absolute;left:0;bottom:0;box-shadow:var(--shadow2-color);border-radius:4px;overflow:hidden;background-color:var(--whitePopup-color);--scrollbar-width:8px;--emoji-width:32px;--emoji-height:32px;--emoji-list-padding:12px;--emoji-category-title-height:22px;--emoji-font-size:22px;--emoji-column-count:8;--emoji-row-count:8;--emoji-list-width:var(--emoji-width) * var(--emoji-column-count) + var(--emoji-list-padding) * 2;--emoji-list-height:var(--emoji-height) * var(--emoji-row-count) + var(--emoji-category-title-height);--black-color:#000000;--white-color:#FFFFFF;--whiteFixed-color:#FFFFFF;--whiteFixed8-color:rgba(255, 255, 255, 0.08);--whiteFixed12-color:rgba(255, 255, 255, 0.12);--whitePopup-color:#FFFFFF;--blackLight-color:rgba(33, 33, 33, 0.2);--blackMid-color:#999999;--blackDark-color:#595959;--blackFixed-color:#212121;--blackToast-color:rgba(33, 33, 33, 0.8);--grey8-color:rgba(114, 114, 114, 0.08);--greyN2bg-color:#FCFCFC;--greyBackground-color:#F0F0F0;--greyMenu-color:#F0F0F0;--shadow1-color:0px 1px 6px 0px rgba(0, 0, 0, 0.2);--shadow2-color:0px 2px 6px 0px rgba(0, 0, 0, 0.08);--shadow3-color:1px 2px 12px 0px rgba(0, 0, 0, 0.16);--greyScrollbar-color:#BCBBBA;--greyScrollbarHover-color:#A1A1A1;--greyToast-color:#D3D3D3;--tableTitle-color:#EDEDED;--bubbleBackground-color:#FFFFFF;--replyBackground-color:#F0F0F0;display:flex;-ms-flex-flow:column;flex-flow:column}.emoji__scroll-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative;padding:var(--emoji-list-padding);width:calc(var(--emoji-list-width));height:calc(var(--emoji-list-height))}.emoji__cell{font-family:var(--emoji-font);font-size:var(--emoji-font-size);width:var(--emoji-width);height:var(--emoji-height);line-height:1;-ms-flex-preferred-size:var(--emoji-width);flex-basis:var(--emoji-width);display:-ms-flexbox;display:flex;-ms-flex:none;flex:none;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;outline:0;border-radius:4px;padding:4px}.emoji__cell img{width:100%;height:100%}.emoji__cell.emoji__cell--selected,.emoji__cell:focus,.emoji__cell:hover{outline:0;background-color:rgba(114,114,114,.08);text-decoration:none}.window__chat{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;overflow:auto;overflow:overlay;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;width:100%;padding:24px 24px 0;scroll-behavior:smooth}.chat__greetingContainer .window__chatSystemMessage,.chat__greetingContainer .window__formGreeting{margin-bottom:0;color:#000}.chat__greetingContainer .window__chatSystemMessage a[href],.chat__greetingContainer .window__formGreeting a[href]{color:#00000c}.window--mobile .window--bubble .chat__greetingContainer{margin-bottom:16px}.window__chat--animation{animation-delay:.3s}.window--ie .window__chat--animation{animation:none}.window__chatSystemMessage{color:#666;font-size:.86666667rem;line-height:1.38461538;text-align:center;animation:message--show 458ms cubic-bezier(.785,.135,.15,.86);word-wrap:break-word}.window--bubble .window__chat .window__chatSystemMessageContent{background:#f8f8f8;font-size:.86666667rem;line-height:1.38461538;padding:8px 14px;border-radius:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.window--bubble .chat__greetingContainer .window__chatSystemMessageContent{display:block}.window__chatSystemMessage a,.window__chatSystemMessage a[href]{color:#00000c;text-decoration:underline}.window__chatSystemMessage:hover a,.window__chatSystemMessage:hover a[href]{color:#000003;text-decoration:underline}.window--rtl .window__chatSystemMessage svg{right:-3px}.window__chatSystemMessage:hover svg{fill:#000010}.system-message-button{background-color:rgba(33,33,33,.04);padding:4px 12px;font-size:.93333333rem;line-height:1.42857143;border-radius:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:4px}.system-message-button a,.system-message-button a[href]{color:#00000c;text-decoration:none!important}.system-message-button svg{fill:#00000c}.system-message-button:hover{background-color:rgba(33,33,33,.08)}.window__chatAgent,.window__chatVisitor{display:-ms-flexbox;display:flex;animation:message--show 458ms cubic-bezier(.785,.135,.15,.86);position:relative}.window__chatAgent+.window__chatSystemMessage,.window__chatVisitor+.window__chatSystemMessage{margin-top:16px}.window__chatAgent{scroll-margin-top:20px}.window__chat>div{padding-bottom:15px}.window__chat>div>div+div{margin-top:12px}.window__chat>div>div+div:has(.taskbot_component_container)+.window__chatSystemMessage{margin-top:16px}.window__chat>div>div+div>.chat-message-time{position:absolute;margin-bottom:6px}.window__chat>div>div+div>.chat-message-time+.chat-visitor-message{margin-top:24px}.window__chat>div>div.botConfidenceAnswerDiv>div.window__chatAgent+div.window__chatAgent,.window__chat>div>div.botConfidenceAnswerDiv>div.window__chatVisitor+div.window__chatVisitor{margin-top:8px}.window__chat>div>div.botConfidenceAnswerDiv>div+div{margin-top:16px}.window__chat>div>div.botConfidenceAnswerDiv>div+div>.chat-message-time{position:absolute;margin-bottom:4px;top:0;right:0}.window__chat>div>div.botConfidenceAnswerDiv>div+div>.chat-message-time+.chat-visitor-message{margin-top:24px}.window--ie .window__chatAgent,.window--ie .window__chatSystemMessage,.window--ie .window__chatVisitor{animation:none}.window__chatVisitor{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.agentMessage__avatar{margin-right:8px;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-negative:0;flex-shrink:0}.agentMessage__avatarImg{display:block;width:24px;height:24px;border-radius:100%;margin-bottom:15px}.agentMessage__pci{background:#f0f0f0;border:1px solid #ddd;border-radius:4px;padding:23px 20px 12px}.agentMessage__pciField{margin-bottom:7px;color:#888}.agentMessage__pciControl{margin-bottom:12px}.agentMessage__pciControl .form__input{height:30px;line-height:30px;width:calc(100% - 20px)}.window__chatAgentMessage p{margin:0}.window--circular .window__chatAgentMessage,.window--circular .window__chatVisitorMessage{border-radius:20px}.window__chatAgentMessage,.window__chatVisitorMessage{position:relative;font-size:.93333333rem;line-height:1.42857143;padding:15px 19px;word-wrap:break-word;word-break:break-word;border-radius:12px;border:1px solid #f5f5f5}.window__chatAgentMessage.message__long,.window__chatVisitorMessage.message__long{width:100%;max-width:840px}.window__chatAgentMessage{margin-right:32px}.window__chatAgentMessage.message__long{margin-right:unset}@media (min-width:601px) and (max-width:960px){.window__chatAgentMessage,.window__chatVisitorMessage{max-width:75%}.window__chatAgentMessage.message__long,.window__chatVisitorMessage.message__long{width:87.5%}}@media (min-width:961px){.window__chatAgentMessage,.window__chatVisitorMessage{width:auto;max-width:720px}.window__chatAgentMessage.message__long,.window__chatVisitorMessage.message__long{width:840px;max-width:840px}}.window__chatAgentMessage_container .chat-message-extra-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:24px;margin-bottom:2px}.window__chatAgentMessage_container .chat-message-extra-info>.chat-message-time{margin-left:8px}.window__chatAgentMessage_container .window__chatAgentMessage{display:inline-block;border-top-left-radius:0}.window__formMessageContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.window--rtl .window__formMessageContainer{direction:rtl}.window__formMessage{padding:16px 20px;word-wrap:break-word;word-break:break-word;border-radius:12px;width:100%;max-width:640px;background-color:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 2px 6px 0 rgba(0,0,0,.08)}.window__formMessage .window__formGreeting{text-align:left;color:#000}.window--ie .window__chatVisitorMessage{margin-left:auto}.window__chatAgentMessage{border-top-left-radius:0}.window__chatVisitorMessage{margin-left:32px;background-color:#000001;color:#000;border-top-right-radius:0}.window__chatVisitorMessage.message__long{margin-left:unset}@keyframes bounceOut{20%{width:5px;height:5px;border-radius:5px;opacity:1}50%,55%{width:8px;height:8px;border-radius:8px;opacity:1}to{width:2px;height:2px;border-radius:2px;opacity:0}}.dot_container{width:20px;height:20px;position:absolute;left:-20px;bottom:14px}.message--notSeen,.message--seen{display:inline-block;background:#00000c;width:6px;height:6px;border-radius:6px;position:relative;left:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);fill:#00000c}.message--seen{animation:bounceOut .5s linear forwards}.window--rtl .dot_container{left:-35px}.window--ie9 .message--seen{display:none}.file__icon--cancel{float:right;width:20px;height:20px;position:relative;z-index:9}.file__icon--cancel svg{fill:#727272}.file__icon--cancel svg:hover{fill:#000010}.window__chatMessageOrignal{display:block;opacity:.85}.window__chatMessageTranslatedTag{display:inline}.window__chatAgentMessage img:not(.emoji-char){display:inline-block}img.emoji-char{height:1.2em;width:1.2em;margin:0 .05em 0 .1em;vertical-align:-.2em}img.emoji-char-large{height:2em;width:2em;margin:0 .05em 0 .1em;vertical-align:-.2em}.invitation__message img.emoji-char-large,.window__chatMessageOrignal img.emoji-char-large{height:1.2em;width:1.2em;margin:0 .1em;vertical-align:-.2em}.window__chatAgentMessage .chatMessage__questionList li{color:#00000a;line-height:1;margin-bottom:10px}.window__chatAgentMessage .chatMessage__questionList li span{margin-right:5px;display:inline-block;-ms-flex-negative:0;flex-shrink:0}.window__chatAgentMessage .chatMessage__questionList li:last-child{margin-bottom:0}.window__chatAgentMessage .chatMessage__questionList li a[href]{border-bottom-color:transparent}.chat-message--img a,.chat-message--video video{min-height:60px!important;border-bottom:none!important;overflow:hidden}.window__chatAgentMessage .chatMessage__questionList li a[href]:active,.window__chatAgentMessage .chatMessage__questionList li a[href]:focus,.window__chatAgentMessage .chatMessage__questionList li a[href]:hover{text-decoration:underline}.window__chatAgentMessage a[href]:active,.window__chatAgentMessage a[href]:focus,.window__chatAgentMessage a[href]:hover{text-decoration:underline}.chat-message--img a{max-width:200px!important;max-height:200px!important;min-width:60px!important;display:block}.chat-message--video video{max-width:250px!important;max-height:250px!important;min-width:60px!important}.chat-message--img .image-container{margin:0 auto;height:100%}.chat-message--img img,.chat-message--video video{display:block;margin:0 auto;border:none}.window__chatAgentMessage a[href],.window__chatVisitorMessage a[href]{color:#323dbf;border-bottom:1px solid #323dbf}.window__chatAgentMessage a[href]:hover,.window__chatVisitorMessage a[href]:hover{text-decoration:none}.window__chatAgentMessage a,.window__chatVisitorMessage a{max-width:100%}.window__chatVisitorMessage button{border:none;background:0 0;cursor:pointer}@keyframes message--show{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:translateY(0)}}.chat-time{opacity:0;color:#fff;font-size:.86666667rem;background:rgba(0,0,0,.6);padding:0 5px;line-height:1.38px;border-radius:8px;transition:opacity 50ms linear;position:absolute;z-index:1}.chat-message-time,.window__chatAgentName,.window__chatVisitorName{font-size:.8rem;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif,Arial!important}.chat-message-time{color:#727272;line-height:2}.window__chatAgentName,.window__chatVisitorName{font-weight:500;color:#000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5}.window--classic .window__chat.window__chat--showChatWithAgent{padding-bottom:40px}.chat-message--img,.window__chatAgentMessage.chat-message--video,.window__chatVisitorMessage.chat-message--video{padding:0}.window__chatAgentMessage{background:#fff;color:#000}.window__chatAgentMessage--file,.window__chatVisitorMessage--file{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;overflow:hidden;max-width:200px;margin:-4px 0}.window__chatAgentMessage--file a[href],.window__chatAgentMessage--file span.file,.window__chatVisitorMessage--file a[href],.window__chatVisitorMessage--file span.file{color:#000;border:none;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.window__chatAgentMessage--file .icon-file,.window__chatVisitorMessage--file .icon-file{width:28px;height:28px;background-color:#00000a;border-radius:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0}.window__chatAgentMessage--file .icon-file svg,.window__chatVisitorMessage--file .icon-file svg{fill:#fff}.window__chatAgentMessage--file .file-name,.window__chatVisitorMessage--file .file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.window__chatAgentMessage--file .file-ext,.window__chatVisitorMessage--file .file-ext{-ms-flex:none;flex:none}.window__chatAgentMessage--file .icon-sendfile,.window__chatVisitorMessage--file .icon-sendfile{color:#00000c}.file--percent{height:100%;width:0%;background-color:#000001;opacity:.2;position:absolute;top:0;left:0;border-top-left-radius:12px;border-bottom-left-radius:12px}.window_chatError{position:absolute;z-index:99;left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);font-size:.86666667rem;line-height:1.53846154;width:100%;text-align:left;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;background-color:#fff;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 2px 6px 0 rgba(0,0,0,.08);bottom:0;padding:8px 12px;border-radius:8px}.window_chatError svg{fill:#be1300;-ms-flex-negative:0;flex-shrink:0}.kbsearch__container .window_chatError,.window--mobile .kbsearch__container .window_chatError,.window--mobile .window--bubble .window__kb_formContainer .window_chatError{width:calc(100% - 88px)}.form-bottom .window_chatError{width:100%}.window--bubble .window__kb_formContainer .window_chatError{width:calc(100% - 38px)}.window--circular .window_chatError{border-radius:20px}.chatError__container{position:absolute;top:-12px;left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);width:100%;max-width:860px}.window_chatErrorClose{line-height:12px;cursor:pointer;background:0 0;border:none}.window_chatErrorClose svg{width:20px;height:20px}.window_chatErrorMessage{-ms-flex-positive:1;flex-grow:1}.window_chatError--urgency .window_chatErrorClose svg{fill:#be1300}.window_chatError--mitigate svg{fill:#A05700}.window_chatError i{vertical-align:bottom}.window_chatError--mitigate{color:#A05700}.window_chatError--urgency{color:#be1300;font-size:.86666667rem;line-height:1.53846154}.invitation__message a[href],.window--bubble .window__chatAgentMessage--file,.window--circle .window__chatAgentMessage--file::before{color:#000004}.window--circle .window__chat.window__chat--showChatWithAgent{padding-bottom:40px}.window--bubble .window__chat>div{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.window--bubble .window__chatAgent{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.window--bubble .window__chatVisitor{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.window--bubble .chat-time{font-size:.86666667rem;padding:0 5px;top:0}.window--bubble .icon-bubble-line{position:absolute;width:10px;bottom:-1px}.window--bubble .icon-bubble-line .svgPath{width:auto;height:auto}.window--bubble .window__chatVisitorMessage{max-width:calc(100% - 50px)}.window__chatVisitorMessage .chat-message--loading{position:absolute;left:-30px;top:50%;margin-top:-11px}.window--bubble .window__chat{padding:42px 15px 0 27px;margin-bottom:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.window--bubble .window__chat.window__chat--showChatWithAgent{padding-bottom:40px}.window--bubble .window--bubble__messageNoAvatar{margin-left:0;padding-left:15px;display:block}.chatMessage__questionList{margin-top:19px}.chatMessage__questionList li>a{display:inline}.chatMessage__questionList--disc{list-style-type:disc;padding-left:20px}.window__chatAgentMessage .chatMessage__questionList.chatMessage__questionList--disc li{display:list-item}.window__chatAgentMessage .btn{margin-top:16px}.chatMessage__chatBotRate__wrapper{position:absolute;right:-50px;bottom:0;width:40px}.chatMessage__chatBotRate{position:absolute;right:2px;-ms-flex-item-align:end;align-self:flex-end}.chatMessage__chatBotRate>button{width:24px;height:24px;border-radius:100%;background-color:#fff;box-shadow:0 0 4px 0 rgba(0,0,0,.16);cursor:pointer;border-width:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.chatMessage__chatBotRate>button svg{fill:#595959}.chatMessage__chatBotRate>button:hover{background-color:#00000a}.chatMessage__chatBotRate>button:hover svg{fill:#fff}.chatMessage__chatBotRate>button.chatMessage__chatBotRate--selected,.chatMessage__chatBotRate>button.chatMessage__chatBotRate--selected:hover{background-color:#00000a;color:#fff;cursor:default}.chatMessage__chatBotRate>button.chatMessage__chatBotRate--selected svg,.chatMessage__chatBotRate>button.chatMessage__chatBotRate--selected:hover svg{cursor:default;fill:#fff}.chatMessage__chatBotRate>button.chatMessage__chatBotRate--disabled,.chatMessage__chatBotRate>button.chatMessage__chatBotRate--disabled:hover{background-color:rgba(255,255,255,.7);cursor:default}.chatMessage__chatBotRate>button.chatMessage__chatBotRate--disabled svg,.chatMessage__chatBotRate>button.chatMessage__chatBotRate--disabled:hover svg{cursor:default;fill:rgba(21,21,21,.2)}.chatMessage__chatBotRate>button.chatMessage__chatBotRateLast{margin-top:6px}.taskbot_item_content.message__long~.chatMessage__chatBotRate{position:absolute;right:0;-ms-transform:translateX(50%);transform:translateX(50%)}.window__chatWithAgent{z-index:9;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px;height:23px;text-align:center;padding-right:15px;padding-left:15px;background:0 0;border:none;cursor:pointer}.window__chatWithAgent--above:focus,.window__chatWithAgent--above:hover{border:1px solid #000003;color:#000003}.window__chatWithAgent--above{padding:4.5px;font-size:.86666667rem;line-height:1.25;height:27px;width:175px;border-radius:5px;border:1px solid #00000a;color:#00000a;background-color:#fff;position:absolute;top:-37px;left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%)}.window--circular .window__chatWithAgent--above{border-radius:20px}.window__chatWithAgent--bottom:focus,.window__chatWithAgent--bottom:hover{color:#000003}.window__chatWithAgent--bottom{color:#00000a;font-size:.8rem;line-height:1.12;height:1rem;padding-left:12px;float:left}.window__chat .dot{position:relative;top:-1px;height:22px}.window__chat .dot__element{display:inline-block;width:4px;height:4px;border-radius:100%;margin-right:5px;background:#000005;fill:#000005}.window__chat .bot-loading-step{min-width:28px;height:22px;position:relative}.window__chat .bot-loading-step img{position:absolute;display:block!important;height:28px;top:-2px;left:0;right:0;margin:0 auto}.displayNone,.window__chat [hidden]{display:none}.window__chat .step-enter-start img{-ms-transform:scale(0);transform:scale(0)}.window__chat .step-entering img{-ms-transform:scale(1);transform:scale(1);transition:transform .3s ease-out}.window__chat .step-leave-start img{-ms-transform:scale(1);transform:scale(1)}.window__chat .step-leaving img{-ms-transform:scale(0);transform:scale(0);transition:transform .2s ease-out}@media screen and (-ms-high-contrast:active){.window__chat .dot__element{background:#fff;fill:#fff}.window__chat .bot-loading-step{color:#fff}}.window__chat .dot__element:last-child{margin-right:0}.amimated-infinite{-webkit-animation-iteration-count:infinite}.amimated-infinite,.animated.infinite,.window__chat .dot__element--loadingAnimation{animation-iteration-count:infinite}@keyframes dot__element--loadingAnimation{0%,100%,50%{transform:translateY(0)}25%{transform:translateY(-8px)}}.window__chat .dot__element--loadingAnimation{animation-name:dot__element--loadingAnimation;animation-duration:1s}.window--ie .webView_background .webView_scroll_container,.window--ie .window__chat .dot__element--loadingAnimation{animation:none}.window--bubble .chat-message--imgLoading,.window--circle .chat-message--imgLoading,.window--classic .chat-message--imgLoading{width:62px;height:62px;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.chat-message__secure-form span{display:block;position:absolute;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);top:50%;left:50%}.window_bot__secureForm{margin-top:16px}.postchatFormContainer{position:absolute;top:80px;bottom:30px;overflow:auto;overflow-x:hidden;padding:30px 50px;width:100%;-ms-transform:translateY(450px);transform:translateY(450px);opacity:0}*,.window__ssoLogin{-webkit-overflow-scrolling:touch}.postchatFormContainer__greeting{margin-bottom:20px}.postchatFormContainer__submitContainer{text-align:center}@keyframes fadeInUp--windowFormContainer{0%{opacity:0;transform:translateY(375px)}100%{opacity:1;transform:translateY(0)}}.window__ssoLogin{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;overflow-y:scroll}.window__ssoLogin iframe{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;background-color:#fff}.window--bubble .window__ssoLogin{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:1;flex-grow:1}.window--bubble .window__ssoLogin iframe{display:block;width:100%;height:100%;min-height:456px;background-color:#fff}.window_buttons_container .window_buttons_item{margin-top:12px;text-align:center;cursor:pointer}.window_buttons_container .window_buttons_item li{min-width:150px;margin-top:4px}.window_buttons_container .window_buttons_item button{border:none;border-radius:8px;background:#00000a;color:#00000e;cursor:pointer;padding:7px 24px;width:100%;font-size:.93333333rem;line-height:1.28571429;font-weight:600}.window_buttons_container .window_buttons_item--active button:hover{background:#000003!important;color:#00000e}.window_buttons_container .window_buttons_item--disable button{background-color:#e8e8e8!important;color:#626262!important;cursor:default}.webView_background{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.6);border-radius:12px 12px 0 0;z-index:1000}.webView_background .webView_scroll_container{width:100%;position:absolute;height:100%;bottom:0;max-height:100%;animation:fadeInUp 458ms cubic-bezier(.785,.135,.15,.86) both}.webView_background .webView_scroll_container--compact{max-height:300px}.webView_background .webView_scroll_container--full{max-height:530px}.webView_background .webView_scroll_container--tall{max-height:415px}.webView_background .webView--scroll{width:100%;position:relative;height:calc(100% - 40px);overflow:-moz-scrollbars-none;-ms-overflow-style:none}.webView_background .webView__title{width:100%;text-align:center;background-color:#fff;height:40px;border-bottom:1px solid #ddd;line-height:40px;border-radius:5px 5px 0 0}.webView_background .webView__title h1{font-weight:400;margin:0;width:200px;font-size:inherit;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}.webView_background .webView__close{position:absolute;right:10px;cursor:pointer;z-index:9999;fill:#5d5d5d;background:0 0;border:none;padding:6px 16px 0;width:40px;height:40px;top:0}.webView_background .webView{background:#fff}.webView_background .webView .box-field{margin-top:15px;padding:0 30px}.webView_background .webView__content{height:100%}.window--bubble .webView_scroll_container--compact{max-height:330px}.window--bubble .webView_scroll_container--full{max-height:560px}.window--bubble .webView_scroll_container--tall{max-height:445px}.window--bubble .webView_scroll_container{padding-top:30px}.window--bubble .webView__close{top:30px}.window_quick_reply_container_box{width:100%;display:-ms-flexbox;display:flex;padding:0 16px;position:relative;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around}.window_quick_reply_container_box i{cursor:pointer}.window_quick_reply_container_box .window_quick_reply_buttons_item{width:auto;min-width:75px;background-color:#fff;color:#00000c;border:1px solid #00000c;cursor:pointer;display:inline-block;padding:0;overflow:hidden;max-width:260px;line-height:25px;white-space:nowrap;margin-right:12px;border-radius:8px;margin-bottom:12px;text-overflow:ellipsis}.window_quick_reply_container_box .window_quick_reply_buttons_item .window_quick_reply_buttons_item_inner{width:100%;height:100%}.window_quick_reply_container_box .window_quick_reply_buttons_item .window_quick_reply_buttons_item_inner>span{display:inline-block;padding:0 12px;height:100%;width:100%}.window_quick_reply_container_box .window_quick_reply_buttons_item:hover{background-color:#00000c;color:#fff}.window_quick_reply_container_box .window_quick_reply_buttons{width:100%;margin:0;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;-ms-flex-align:center;align-items:center;padding-left:0;-ms-flex-line-pack:center;align-content:center;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:start;justify-content:flex-start;display:-ms-flexbox;display:flex}.window_quick_reply_container_box .window_quick_reply_buttons.one_reply_item{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}.window_quick_reply_container_box .window_quick_reply_buttons.one_reply_item>.window_quick_reply_buttons_item{margin:0}.window_quick_reply_container_box .window_quick_reply button:last-child{margin-right:0}.window_quick_reply_container_box .window_quick_reply_control+.window_quick_reply{width:calc(100% - 40px)}.botconfirm_list{padding:20px;min-width:190px}.botconfirm_list li{margin-bottom:10px}.botconfirm_list li p{margin:0}.botconfirm_list li p:first-child{color:#666;margin:0}.window__chatAgentMessage .window_botAnswer_richText a[href]{border-bottom:none}.window__chatAgentMessage .window_botAnswer_richText a[href]:hover{border-bottom:1px solid #323dbf}.window__chatAgentMessage .window_botAnswer_richText--disable a[href^=\"intent:\"]{color:#888}.visually-hidden{width:1px;height:1px}.visually-hidden:focus,.visually-hidden:hover{outline:0;border:none}.window__chatAgentMessage.bot_item_content.chat-message--img{padding:1px}.window__chatAgentMessage.bot_item_content.chat-message--img a{max-width:244px!important;min-height:10px!important}.window__chatAgentMessage h1,.window__chatAgentMessage h2,.window__chatAgentMessage h3,.window__chatAgentMessage h4,.window__chatAgentMessage h5,.window__chatAgentMessage h6{margin-block-start:.5rem;margin-block-end:.5rem}.window__chatAgentMessage h1{font-size:.93333333rem;line-height:1.28571429;font-weight:600}.window__chatAgentMessage h2,.window__chatAgentMessage h3,.window__chatAgentMessage h4{font-size:.93333333rem;line-height:1.28571429;font-weight:500}.window__chatAgentMessage h5{font-size:.86666667rem;line-height:1.38461538;font-weight:500}.window__chatAgentMessage h6{font-size:.8rem;line-height:1.33333333;font-weight:500}.window__chatAgentMessage hr{border:0;border-top:1px solid rgba(33,33,33,.2);margin-block-start:.67rem;margin-block-end:.67rem}.window__chatAgentMessage sub{font-size:.66666667rem;line-height:1.2}.window__chatAgentMessage blockquote{font-style:italic;color:#212121}.window__chatAgentMessage code{white-space:normal}#downloadTranscript,#emailTranscript{margin-top:8px}#startChatAgain{margin-top:16px}.chatInputContainer{position:relative;-ms-flex-negative:0;flex-shrink:0;background-color:#fff;box-shadow:0 1px 6px 0 rgba(0,0,0,.16);box-sizing:border-box;border:1px solid transparent;border-radius:8px}.chatInputLabel{visibility:hidden;position:absolute;left:-10000px}.chatInputContainer--fadeInUp{animation:fadeInUp 458ms cubic-bezier(.785,.135,.15,.86) both;animation-delay:.3}.window--ie .chatInputContainer--fadeInUp,.window--ie .invitation-showType,.window--ie .invitation__message,.window--ie .invitation__name{animation:none}.chat-input__controlbox{padding:4px 4px 4px 16px!important;display:-ms-flexbox;display:flex;border-radius:8px;box-sizing:border-box}.textareaContainer{-ms-flex-positive:1;flex-grow:1;padding:10px 0}.window--rtl .chat-input__controlbox{-ms-flex-pack:end;justify-content:flex-end}.window--rtl .chat-input__controlbox--noTool .window__chatInputControl{padding-right:8px}.window__chatInputControl{display:block;width:100%;padding:0;font-size:.93333333rem;color:#000;outline:0}.embedded-window:not(.window--mobile) .window__chatInputControl{font-size:.93333333rem}.chatInput--ripple{position:absolute;border-radius:50%;width:50px;height:50px;background:#ddd;animation:chatInput--ripple 2s}@keyframes chatInput--ripple{from{transform:scale(1);opacity:.4}to{transform:scale(100);opacity:0}}.chatInputContainer--hide{height:0!important;width:0!important;visibility:hidden}.chatInputContainer--hide+div>.footer{background:0 0!important}.chatInputContainer{height:auto;margin:0 12px 8px}.window--mobile .chatInputContainer--active .window__chatInputControl,.window--mobile .window__chatInputControl:focus{border-top:none;box-shadow:initial;transition:none}.window__chatInput--Drag::before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;background:rgba(250,245,205,.85);z-index:99;text-align:center;color:#d2b067;font-size:2.133333rem}.chat-input__toolbox{animation:fadeIn .5s;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-item-align:end;align-self:flex-end;-webkit-user-select:none;-ms-user-select:none;user-select:none;-moz-user-select:none;position:relative}.chat-input__toolbox button{cursor:pointer;background:0 0;width:36px;height:36px;margin:2px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:100%;border:1px solid transparent}.chat-input__toolbox button.chat-input__icon--disabled,.chat-input__toolbox button.chat-input__icon--disabled svg:hover,.chat-input__toolbox button.chat-input__icon--disabled:focus svg:hover{cursor:default}.chat-input__toolbox button.bubble-close{width:auto;height:auto}.chat-input__toolbox button.bubble-close svg{width:10px;height:10px}.chat-input__toolbox button:hover{background-color:rgba(114,114,114,.08);border-radius:4px}.chat-input__toolbox button:hover svg{fill:#00000c}.chat-input__toolbox button svg{fill:#727272}.chat-input__toolbox button.chat-input__icon--disabled,.chat-input__toolbox button.chat-input__icon--disabled:focus{background:0 0}.chat-input__toolbox button.chat-input__icon--disabled svg,.chat-input__toolbox button.chat-input__icon--disabled:focus svg{fill:#bbb}.chat-input__toolbox button:last-child{margin-right:0}.chat-input__toolbox svg{width:20px;height:20px;color:#727272}.chat-input__toolbox .window__chatSender{position:unset}.global-showFocus .chat-input__controlbox button:focus{outline:#000004 solid 2px;border-radius:2px}.global-showFocus .chat-input__controlbox button:focus svg{fill:#00000c}.window--bubble .chatInputContainer{border-radius:8px}.window--circular.window--bubble .chatInputContainer{border-radius:20px 20px 0 0}.window--mobile .window--circular.window--bubble .chatInputContainer{border-radius:0}.window--mobile.window--ipad .chatInputContainer{border-bottom-right-radius:5px;border-bottom-left-radius:5px}.window--mobile.window--ipad .window--circular .chatInputContainer{border-bottom-right-radius:20px;border-bottom-left-radius:20px}.window--mobile.window--ipad .window--bubble .bubble-box,.window--mobile.window--ipad .window--bubble .chatInputContainer,.window--mobile.window--ipad .window--circular.window--bubble .bubble-box,.window--mobile.window--ipad .window--circular.window--bubble .chatInputContainer{border-radius:0}.chatInputContainer.chatInputContainer--active{border-color:#00000a!important}.chatInputContainer--typed .window__chatInputControl{padding-right:10px}.window__chatInputControl{border:none;background-color:transparent;max-height:140px;min-height:20px;overflow-y:hidden;overflow-x:hidden;height:20px;line-height:1.42857143;box-sizing:border-box}.chatInputContainer--typed button.window__chatSender{background-color:#00000a;border-radius:4px}.chatInputContainer--typed button.window__chatSender svg{fill:#fff}.chatInputContainer--typed button.window__chatSender:focus,.chatInputContainer--typed button.window__chatSender:hover{background-color:#000003}.window--circular.window--bubble .window__chatInputControl{padding-left:20px}.chat-input__limitNumSpan{position:absolute;left:0;-ms-transform:translateX(-100%);transform:translateX(-100%);color:#b31300;padding:0;bottom:10px;font-size:.93333333rem;line-height:1.42857143}.window--bubble .chat-input__controlbox--limit .window__chatInputControl,.window--circle .chat-input__controlbox--limit .window__chatInputControl,.window--classic .chat-input__controlbox--limit .window__chatInputControl{padding-bottom:8px}.window--mobile .window--bubble .chat-input__controlbox--limit .window__chatInputControl,.window--mobile .window--circle .chat-input__controlbox--limit .window__chatInputControl,.window--mobile .window--classic .chat-input__controlbox--limit .window__chatInputControl{padding-bottom:0}.window--mobile .chat-input__limitNumSpan,.window--mobile .window--classic .chat-input__limitNumSpan{right:4px;bottom:0}.window--mobile .window__chatInputControl{border-radius:0}.pasteImageContainer{padding:0 50px 0 25px;-ms-flex-negative:1;flex-shrink:1;width:100%;height:84px;overflow-y:auto;display:-ms-flexbox;display:flex;ime-mode:disabled;outline:0}.pasteImageContainer::-webkit-scrollbar-thumb{background-color:#c8c8c8}.pasteImage{width:100%}.pasteImage img{max-width:100%}.pasteImageClose{position:absolute;float:right;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;right:30px;top:15px}.pasteImageClose button{outline:0;border:none;height:20px;width:20px;background:0 0}.pasteImageClose svg{width:20px;height:20px;fill:#666;opacity:.7}.date-picker-container>.taskbot_submit_btn_container svg,.pasteImageClose:hover svg{opacity:1}.pasteImageTemp{position:absolute;width:1;height:1;left:-1}.chat-input__toolbox-more{position:absolute;top:-52px;right:0;background-color:#fff;border-radius:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:4px;z-index:99;transition:160ms cubic-bezier(.16,.87,.3,1.3) 25ms}.chat-input__toolbox-more svg{width:28px;height:28px}.chat-input__toolbox-more--icon-expand{-ms-transform:rotate(0);transform:rotateZ(0);transition:160ms cubic-bezier(.16,.87,.3,1.3) 25ms}.chat-input__toolbox-more--icon-collapse{-ms-transform:rotate(45deg);transform:rotateZ(45deg);transition:160ms cubic-bezier(.16,.87,.3,1.3) 25ms}.emoji-container{position:relative;bottom:40px;left:-280px}.window__chatInputControl--disabled{opacity:.3}.questionSuggestionContainer{position:absolute;box-shadow:1px 2px 6px 0 rgba(0,0,0,.16);background-color:#fff;width:100%;z-index:100;border-radius:8px;box-sizing:border-box;display:block;overflow:visible}.questionSuggestionCloseButton{position:absolute;right:8px;top:-20px;cursor:pointer;background:#fff;width:40px;height:40px;border-radius:20px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;box-shadow:0 0 4px 0 rgba(0,0,0,.16);border:none}.questionSuggestionCloseButton:focus,.questionSuggestionCloseButton:hover{background-color:#ebebeb}.questionSuggestionCloseButton svg{fill:#727272;width:20px;height:20px}.chat-input__question-suggestions{list-style-type:none;padding:4px 0;margin:0}.chat-input__suggestion-item{border-width:8px 24px;font-size:.93333333rem;line-height:1.28571429;border-style:solid;border-color:transparent;cursor:pointer;display:-webkit-box;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;white-space:normal;box-sizing:border-box}.chat-input__suggestion-item--highlight,.chat-input__suggestion-item:hover{background-color:#f4f4f4}.footer-text-single-line{height:30px}.footer{-ms-flex-negative:0;flex-shrink:0;z-index:999;width:100%;padding-left:12px;padding-right:12px;font-size:.8rem;height:20px;background:0 0;border-radius:0 0 5px 5px}.window--bubble .footer{margin-top:12px}.window--bubble .window__chat+div>.footer.footer--empty,.window--bubble .window__formContainer+div>.footer.footer--empty,.window--bubble .window__kb_formContainer+div>.footer.footer--empty{margin-top:0;height:0}.window--bubble .chatInputContainer+div>.footer{margin-top:0}.window--circular .footer{border-radius:0 0 20px 20px}.poweredby{height:20px;float:right}.poweredby a[href]{line-height:12px}.poweredby a[href]:active,.poweredby a[href]:focus,.poweredby a[href]:hover{border-bottom:none}.poweredby a[href] svg{height:12px}.footer-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.footer-container .footer__alert-dialog{bottom:100px}.footer-container .chatError__container{width:calc(100% - 80px)}.invitation__message,.invitation__type{width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis}.invitation{position:fixed;bottom:0;cursor:pointer;min-width:270px;border:none;box-shadow:0 0 3px 0 rgba(0,0,0,.15);margin:3px}.window--circular .invitation{border-radius:20px 20px 0}.window--chrome.invitation{box-shadow:0 0 6px 0 rgba(0,0,0,.15)}.invitation__name{font-size:.933333333rem;line-height:1.21;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif,Arial!important;font-weight:700;-ms-flex-positive:0;flex-grow:0}.invitation__message{font-size:.933333333rem;line-height:1.57;padding:20px 35px;max-height:250px;min-height:95px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;border:none;cursor:pointer}a[href].invitation__message:focus,a[href].invitation__message:hover{border:none}.minimize-bar.window--circular,.window--circular .invitation__message{border-radius:20px 20px 0 0}.global-showFocus a[href].invitation__message:focus{background-color:#000006}.window--ie9 .invitation__message{display:block}.invitation__type{height:50px;line-height:1;padding:17.5px 27px;background:#f8f8f8;color:#333;font-size:.93333333rem;white-space:nowrap;border:none;border-radius:0 0 0 5px}button.invitation__type{cursor:pointer;padding:0 27px;color:#bbb}.invitation__type:focus{outline:0}.invitation__avatars{top:-15px;left:100px;position:absolute;z-index:99}.invitation__avatars img{width:28px;height:28px;border-radius:100%;border:1px solid #fff;margin-right:-5.5px}@keyframes invitation-show{0%{transform:scale(0);opacity:0;transform-origin:calc(100% - 29px) calc(100% + 18px)}100%{transform:scale(1);opacity:1;transform-origin:calc(100% - 29px) calc(100% + 18px)}}@keyframes invitation-showType{0%{transform:translateY(35px);opacity:0}100%{transform:translateY(0);opacity:1}}.invitation--coming .invitation:nth-child(2){animation:fadeOutUp 374ms linear both;z-index:2147483636}@keyframes fadeOutUp{from{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}.invitation--coming .invitation:nth-child(1){animation:invitation-show 375ms cubic-bezier(.785,.135,.15,.86) both;z-index:2147483636}.invitation__close{position:absolute;top:-4px;right:-4px;background:rgba(0,0,0,.6);border:none;z-index:1;width:21px;height:21px;cursor:pointer;border-radius:21px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.invitation__close:hover{background:#000}.invitation__close svg{fill:#fff;width:16px;height:16px;display:block}.invitation__image{display:block;max-width:100%;max-height:500px;margin:auto}.invitation__container{border-radius:5px;overflow:hidden;width:100%}.window--mobile .window--bubble .window__chatOperationPlus,.window--mobile .window--bubble .window__chatSender,.window--mobile .window--circle .window__chatOperationPlus,.window--mobile .window--circle .window__chatSender,.window--mobile .window--classic .window__chatOperationPlus{display:block}.window--mobile .chatInputContainer{overflow:initial;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.window--mobile .chatInputContainer.chatInputContainer--active{border-color:#00000a!important}.window--mobile .chat-input__controlbox{border:none!important;-ms-flex-positive:1;flex-grow:1;box-shadow:unset;border-radius:0}.window--mobile .chat-time{display:block}.window--mobile{background-color:rgba(0,0,0,.15);-webkit-backface-visibility:hidden}.window--mobileHorizontal .window--embedded,.window--mobileHorizontal .window--embedded .bubble-box,.window--mobileVertical .window--embedded,.window--mobileVertical .window--embedded .bubble-box{top:0;right:0;bottom:0;left:0;width:100%;height:100%}.window--rtl .container-checkbox i,.window--rtl .controlIndicator{left:auto;right:0}.window--mobileHorizontal .window--bio.window--circle,.window--mobileHorizontal .window--bio.window--circle .bubble-box,.window--mobileHorizontal .window--embedded .bubble-box.window--bio.window--circle,.window--mobileHorizontal .window--embedded .bubble-box.window--bio.window--circle .bubble-box,.window--mobileHorizontal .window--embedded.window--bio.window--circle,.window--mobileHorizontal .window--embedded.window--bio.window--circle .bubble-box,.window--mobileVertical .window--bio.window--circle,.window--mobileVertical .window--bio.window--circle .bubble-box,.window--mobileVertical .window--embedded .bubble-box.window--bio.window--circle,.window--mobileVertical .window--embedded .bubble-box.window--bio.window--circle .bubble-box,.window--mobileVertical .window--embedded.window--bio.window--circle,.window--mobileVertical .window--embedded.window--bio.window--circle .bubble-box{height:100%;top:0}.window--mobile .chat-input__controlbox ::-webkit-input-placeholder{color:#727272}.window--mobile .chat-input__controlbox ::-moz-placeholder{color:#727272}.window--mobile .chat-input__controlbox :-ms-input-placeholder{color:#727272}.window--mobile .window__chat{margin-bottom:0}.window--mobile .window__chatSender .icon-input-send{color:#626262;font-size:.93333333rem;margin-top:5px}.window--mobile .window__chatSender--active .icon-input-send{color:#000001}.window--mobile .window--bubble .window__chatSender .icon-input-send,.window--mobile .window--circle .window__chatSender .icon-input-send{color:#626262}.window--mobile .window--bubble .window__chatSender--active .icon-input-send,.window--mobile .window--circle .window__chatSender--active .icon-input-send{color:#00000a}.window--mobile .window__chatSender{bottom:20.5px;right:12px;width:37px;height:37px;padding:5px}.window--mobile .window__chatSender svg{width:27px;height:27px;fill:#626262}.time-selector-dark>svg path,.window--mobile .chatInputContainer--typed .window__chatSender svg,.window--mobile .window__chatSender--active .window__chatSenderSVGPath{fill:#fff}.window--mobile .window__chatSender.window__chatTools{bottom:unset;top:12px}.window--mobile .window__chatOperationPlusBox{-ms-flex-preferred-size:40px;flex-basis:40px}.window--mobile .window__chatOperationPlus{width:20px;height:20px;margin:0 auto}.window--mobile .window__chatOperationPlus .icon-plus{font-size:1.3125em;color:#fff}.window--mobile .window--classic .window__chatAgentMessage_container{max-width:calc(100% - 34px)}.window--mobile .window--classic .window__chatAgentMessage_container .window__chatAgentMessage.chat-message--img{max-width:200px;max-height:none}.window--mobileHorizontal .window--bubble.whole-window,.window--mobileVertical .window--bubble.whole-window{top:0;height:calc(100% - 0px)}.window--mobile .window--circle .main-container{height:100%}.window--mobile:not(.window--ipad) .window--circle,.window--mobile:not(.window--ipad) .window--circle .bubble-box,.window--mobile:not(.window--ipad) .window--circle .main-container{border-radius:0;top:0;height:100%}.window--mobile:not(.window--ipad) .window--circle .header__avatar{position:static;margin:0}.window--mobile:not(.window--ipad) .window--circle .window--circle .window__headerBox{padding-top:16px}.window--mobile:not(.window--ipad) .window--circle .window__headerBox:not(.window__headerBox--banner){display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse;-ms-flex-align:center;align-items:center}.window--mobile:not(.window--ipad) .window--circle .header__teamAvatar{position:relative;left:auto;top:0;margin:0}.window--mobile:not(.window--ipad) .window--circle .header__teamName{margin-top:16px}.window--mobile:not(.window--ipad) .window--circle .window__headerBox.window__headerBox--hasAvatars{padding:40px 0 16px}.window--mobile:not(.window--ipad) .window--circle .header__teamName.header__teamNameNoAvatar{margin-top:0}.window--mobile:not(.window--ipad) .window--circle .header__agent{max-width:100%}.window--mobile:not(.window--ipad) .window--circle .header__agentName{max-width:100%;margin:0 45px}.window--mobile .window--bubble .window__chat>div>div>div.window__chatAgent+div.window__chatAgent,.window--mobile .window--bubble .window__chat>div>div>div.window__chatVisitor+div.window__chatVisitor,.window--mobile:not(.window--ipad) .window__form{margin-top:8px}.window--mobile:not(.window--ipad) .window--bubble.whole-window .main-container{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.window--mobile .window__chatWithAgent--bottom{display:none}.window--mobile .bubble-box--show .bubble{-ms-transform:scale(1);transform:scale(1);animation:showBubble 333ms cubic-bezier(.785,.135,.15,.86) both}.window--mobile .window--bubble.whole-window .main-container{overflow:initial;background-color:#f5f5f5}.window--mobile .window__formContainer--bubble{margin-top:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;padding:0}.window--mobile .window--ie10 .window__formContainer--bubble{-ms-flex-negative:1;flex-shrink:1}.window--mobile .window--bubble .window__form{padding-left:45px;padding-right:43px}.window--mobile .window--bubble .window__form .greeting-message-container{-ms-flex-negative:0;flex-shrink:0}.window--mobile .window--bubble .window__operation{background-color:transparent;-ms-flex-pack:end;justify-content:flex-end}.window--mobile .window__operation{height:40px;padding-right:6px}.window--mobile .window__operation>a,.window--mobile .window__operation>button{height:20px}.window--mobile .window__operation>a>svg,.window--mobile .window__operation>button>svg{width:20px;height:20px}.window--mobile .window__operation .header__operationContainer,.window--mobile .window__operation .header__operationContainer>button,.window--mobile .window__operation>button{height:40px}.window--mobile .bubble-close{width:30px;height:30px;right:0;top:0}.global-showFocus .window--mobile .window--bubble a:focus{border-bottom-color:#787878}.window--mobile .window--bubble .main-container .window__title{position:relative;background-color:unset;box-shadow:none}.window--mobile .window--bubble .window__chat{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-left:25px;padding-right:27px}.window--mobile .window--bubble .window__chat>div{-ms-flex-negative:0;flex-shrink:0;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-positive:1;flex-grow:1}.window--mobile .window--bubble .window__chat>div>div>div+div{margin-top:16px}.window--mobile .window--bubble .window__chat>div>div>div+div>.chat-message-time{position:absolute;margin-bottom:4px;top:0;right:0}.window--mobile .window--bubble .window__chat>div>div>div+div>.chat-message-time+.chat-visitor-message{margin-top:20px}.window--mobile .window--bubble .window__chat>div>div+div{margin-top:0}.window--mobile .window--bubble .chatInputContainer{background-color:#fff}.window--mobile .window--bubble .window__kb_formContainer{-ms-flex-positive:1;flex-grow:1}.window--mobile .window--bubble .window__form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:unset}.window--mobile.window--ipad .window--bubble .chatInputContainer{border:2px solid #f0f1f2;border-top:none}.window--mobile.window--ipad.withSideWin .window--bubble .chatInputContainer{border-bottom:none}.window--mobile.window--ipad.withSideWin .window--bubble .window__chat>div>div>div.botConfidenceAnswerDiv>div.window__chatAgent+div.window__chatAgent,.window--mobile.window--ipad.withSideWin .window--bubble .window__chat>div>div>div.botConfidenceAnswerDiv>div.window__chatVisitor+div.window__chatVisitor{margin-top:8px}.window--mobile.window--ipad.withSideWin .window--bubble .window__chat>div>div>div.botConfidenceAnswerDiv>div+div{margin-top:16px}.window--mobile .window__chatVisitorMessage{border-color:#f5f7fa}.window--mobile .chat-input__toolbox,.window--mobile .chat-input__toolbox-more{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;border-radius:0}.window--mobile .chat-input__toolbox button,.window--mobile .chat-input__toolbox-more button{width:40px;height:40px;margin:0}.window--mobile .chat-input__toolbox button:hover,.window--mobile .chat-input__toolbox-more button:hover{background:0 0}.window--mobile .chat-input__toolbox button:hover svg,.window--mobile .chat-input__toolbox-more button:hover svg{fill:#787878}.window--mobile .chat-input__toolbox button.bubble-close,.window--mobile .chat-input__toolbox-more button.bubble-close{width:30px;height:30px}.window--mobile .chat-input__toolbox button.bubble-close svg,.window--mobile .chat-input__toolbox-more button.bubble-close svg{width:10px;height:10px}.window--mobile .chat-input__toolbox svg,.window--mobile .chat-input__toolbox-more svg{width:20px;height:20px;fill:#787878}.window--mobile .whole-window:not(.window--classic) .window__header{background-color:transparent;box-shadow:none}.window--mobile .whole-window:not(.window--classic) .window__header .header__agentName{color:#000}.window--classic:not(.window--embedded) .window__header,.window--mobile:not(.window--ipad) .window__header{border-radius:0}html:not(.global-showFocus) button::-moz-focus-inner{border:0}.window--mobile ::-webkit-scrollbar{display:none}.window--mobile .chat-input__toolbox button.bubble-close{width:30px;height:30px;margin-right:0;border:none}.window--mobile .chat-input__toolbox .bubble-close svg{width:10px;height:10px}.window--mobile .chat-input__toolbox-more{padding:32px;height:240px;display:-ms-flexbox;display:flex;gap:30px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start;position:relative;top:unset;right:unset;background-color:rgba(33,33,33,.04);box-sizing:border-box}.window--mobile .chat-input__toolbox-more button{width:52px;height:52px;cursor:pointer;margin:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:8px;border:none;background:#fff}.window--mobile .chat-input__toolbox-more button:active,.window--mobile .chat-input__toolbox-more button:focus{background-color:rgba(114,114,114,.08)}.window--mobile .chat-input__toolbox-more button:active svg,.window--mobile .chat-input__toolbox-more button:focus svg{fill:#000010}.window--mobile .chat-input__toolbox-more button svg{width:32px;height:32px}.window__kb_formContainer{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:44px 6px 0}.kbsearch__container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column}.window--mobile .window--bubble .kbsearch__container{margin-bottom:0;padding-bottom:98px;background-color:unset;box-shadow:none}.window--bubble .kbsearch__container{padding:12px 16px;background-color:#fff;box-shadow:0 2px 6px 0 rgba(0,0,0,.08);border-radius:12px}.window--bubble .kbsearch__container .kbsearch-input__container{margin-bottom:12px}.window--embedded.window--bubble .kbsearch__container{border-radius:12px}.window--embedded.window--bubble .kbsearch-window__chatWithAgent .buttonProgressContainer{border-radius:0 0 5px 5px}.window--mobile .window--bubble .kbsearch-window__chatWithAgent .buttonProgressContainer,.window--mobile .window--bubble .kbsearch__container{border-radius:0}.window--bubble .kbsearch-window__chatWithAgent .chatError__container{top:10px}.greeting-message__kb{margin-bottom:12px;color:#000}.greeting-message__kb--header{margin-top:48px;margin-bottom:12px;color:#000004;width:100%;max-width:640px;font-size:.93333333rem;line-height:1.42857143}.window--classic .window__headerBox--empty .greeting-message__kb--header{margin-top:0}.window--circle .greeting-message__kb{color:#000;padding:0 8px}.window--circle .window__form.kbsearch-window__form{padding-top:0;margin-top:12px}.kbsearch-noresult{width:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;gap:16px;border-radius:12px;background-color:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 2px 6px 0 rgba(0,0,0,.08);-ms-flex-positive:1;flex-grow:1;color:#666;font-size:.86666667rem;line-height:1.38461538}.kbsearch-input__container{margin-bottom:24px;position:relative}.kbsearch-input__container .field__requiredMsg{font-size:.86666667rem;line-height:1.38461538;color:#be1300;margin-top:1px;position:absolute}.visually-hidden{position:absolute;left:-10000px}.kbsearch-input{width:100%;box-shadow:0 2px 6px 0 rgba(33,33,33,.08);padding:13px 50px 13px 24px;border-radius:12px;background-color:#fff;font-size:.93333333rem!important;line-height:1.42857143;border:1px solid transparent!important}.kbsearch-icon,.kbsearch-icon svg{width:28px;height:28px}.kbsearch-input::-ms-clear{display:none}input::-webkit-search-cancel-button{display:none}.kbsearch-icon{position:absolute;right:18px;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);cursor:pointer;background:0 0;border:none}.animate-center,.kbsearch-icon i{-ms-transform:translate(-50%,-50%)}.window--rtl .kbsearch-icon{left:10px;right:auto}.kbsearch-icon i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);font-size:14px}.kbsearch-window__chatWithAgent{padding:6px 16px 16px}.kbsearch-window__chatWithAgent .btn{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:8px;border-radius:12px;padding:11px 16px 11px 24px}.kbsearch-window__chatWithAgent .btn svg{width:18px;height:18px;fill:#00000e}.window--bubble .kbsearch-window__chatWithAgent{padding:unset}.window--bubble .kbsearch-window__chatWithAgent .buttonProgressContainer{padding-top:12px}.window--bubble .kbsearch--noFooter .kbsearch-window__chatWithAgent{bottom:0}.window--mobile .window--bubble .kbsearch-window__chatWithAgent{bottom:0;width:100%;margin:0}.window--mobile .window--bubble .kbsearch-window__chatWithAgent .buttonProgressContainer{padding:30px 45px 35px}.window--mobile .window--bubble .kbsearch-window__chatWithAgent.kbsearch-window__chatWithAgent-mobile-bubble .buttonProgressContainer{padding-top:20px;padding-bottom:45px}.window--mobile.withSideWin .window--bubble .kbsearch-window__chatWithAgent.kbsearch-window__chatWithAgent-mobile-bubble .buttonProgressContainer{padding-bottom:30px}.window--ie .window--bubble.window--ie9 .kbsearch-window__chatWithAgent{bottom:20px}.window--ie .window--embeddend.window--bubble.window--ie9 .kbsearch-window__chatWithAgent{bottom:50px}.window__form.kbsearch-window__form{padding:0;background:0 0;-webkit-backdrop-filter:unset;backdrop-filter:unset;box-shadow:none}.window__formContainer--bubble .kbsearch-window__form{height:auto}.article-list-container{overflow:auto;width:100%;padding:12px 4px;border-radius:12px;background-color:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 2px 6px 0 rgba(0,0,0,.08);overflow-x:hidden}.article-list-container:hover::-webkit-scrollbar-thumb{background-color:#c8c8c8}.kbsearch-window__form>div.article-list-container .article-list .article-item:last-child,.kbsearch-window__form>div.article-list-container .article-list .article-item:last-child .article-summary{margin-bottom:0}.window--bubble .article-list-container{width:auto;margin:0 -12px;padding:12px 0;background-color:none;-webkit-backdrop-filter:unset;backdrop-filter:unset;box-shadow:none}.article-item{padding:12px 16px}.article-item:hover{background-color:rgba(33,33,33,.08);border-radius:8px}.article-title{font-size:.93333333rem;line-height:1.28571429;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif,Arial!important;font-weight:600;color:#000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;-webkit-text-size-adjust:100%;-webkit-box-orient:vertical;display:block;background:0 0;border:none;text-align:left;width:100%}.window--rtl .article-title{text-align:right}.article-title>span{border-bottom:1px solid transparent;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis}.article-title:active,.article-title:focus,.article-title:hover{border:none!important}.article-title:hover>span{text-decoration:underline}.article-summary{font-size:.93333333rem;line-height:1.42857143;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif,Arial!important;color:#666;max-height:40px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;-webkit-text-size-adjust:100%}.kb-highlight{color:#ed1c24}.window--bubble .window__form .icon-bubble-line__div{bottom:-1px;overflow:hidden;height:16px;position:absolute;width:10px;left:-10px}.window--bubble .window__form .icon-bubble-line__div .icon-bubble-line{left:0;bottom:0}.window--circle.window--ie10 .kbsearch__container,.window--classic.window--ie10 .kbsearch__container{max-height:calc(100% - 220px)}.window--mobile .window--bubble .kbsearch-window__chatWithAgent.kbsearch-window__chatWithAgent-mobile-bubble{bottom:45px}.kbsearch__container{-ms-flex:1;flex:1;overflow-y:hidden;width:100%;max-width:672px;margin-left:auto;margin-right:auto}.kbsearch-window__form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;overflow:hidden;margin-top:0}.window--ie .window--bubble:not(.window--mobile) .article-list-container{-ms-flex:auto;flex:auto}.window--mobile .kbsearch__container{margin-bottom:0}.window--mobile.withSideWin .kbsearch__container{margin-bottom:0;padding-bottom:45px}.DayPicker{display:inline-block}.DayPicker-wrapper{position:relative;-webkit-user-select:none;-ms-user-select:none;user-select:none;padding-bottom:1rem;-ms-flex-direction:row;flex-direction:row}.DayPicker-Month,.calendar-container{-webkit-user-select:none;-ms-user-select:none}.DayPicker-Months{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center}.window--bubble .DayPicker-Months,.window--circle .DayPicker-Months{color:#666}.DayPicker-Month{display:table;border-collapse:collapse;border-spacing:0;user-select:none;margin:1rem .5rem 0}.DayPicker-NavButton{position:absolute;cursor:pointer;top:1rem;right:1.5rem;margin-top:2px;color:#8b9898;width:1.25rem;height:1.25rem;display:inline-block;background-size:50%;background-repeat:no-repeat;background-position:center}.DayPicker-NavButton--interactionDisabled,.highContrast .header--bottom,.window--minimized .window--bubble{display:none}.DayPicker-NavButton:hover{opacity:.8}.DayPicker-NavButton--prev{margin-right:1.5rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAVVJREFUWAnN2G0KgjAYwPHpGfRkaZeqvgQaK+hY3SUHrk1YzNLay/OiEFp92I+/Mp2F2Mh2lLISWnflFjzH263RQjzMZ19wgs73ez0o1WmtW+dgA01VxrE3p6l2GLsnBy1VYQOtVSEH/atCCgqpQgKKqYIOiq2CBkqtggLKqQIKgqgCBjpJ2Y5CdJ+zrT9A7HHSTA1dxUdHgzCqJIEwq0SDsKsEg6iqBIEoq/wEcVRZBXFV+QJxV5mBtlDFB5VjYTaGZ2sf4R9PM7U9ZU+lLuaetPP/5Die3ToO1+u+MKtHs06qODB2zBnI/jBd4MPQm1VkY79Tb18gB+C62FdBFsZR6yeIo1YQiLJWMIiqVjQIu1YSCLNWFgijVjYIuhYYCKoWKAiiFgoopxYaKLUWOii2FgkophYp6F3r42W5A9s9OcgNvva8xQaysKXlFytoqdYmQH6tF3toSUo0INq9AAAAAElFTkSuQmCC)}.DayPicker-NavButton--next{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAXRJREFUWAnN119ugjAcwPHWzJ1gnmxzB/BBE0n24m4xfNkTaOL7wOtsl3AXMMb+Vjaa1BG00N8fSEibPpAP3xAKKs2yjzTPH9RAjhEo9WzPr/Vm8zgE0+gXATAxxuxtqeJ9t5tIwv5AtQAApsfT6TPdbp+kUBcgVwvO51KqVhMkXKsVJFXrOkigVhCIs1Y4iKlWZxB1rX4gwlpRIIpa8SDkWmggrFq4IIRaJKCYWnSgnrXIQV1r8YD+1Vrn+bReagysIFfLABRt31v8oBu1xEBttfRbltmfjgEcWh9snUS2kNdBK6WN1vrOWxObWsz+fjxevsxmB1GQDfINWiev83nhaoiB/CoOU438oPrhXS0WpQ9xc1ZQWxWHqUYe0I0qrKCQKjygDlXIQV2r0IF6ViEBxVTBBSFUQQNhVYkHIVeJAtkNsbQ7c1LtzP6FsObhb2rCKv7NBIGoq4SDmKoEgTirXAcJVGkFSVVpgoSrXICGUMUH/QBZNSUy5XWUhwAAAABJRU5ErkJggg==)}.DayPicker-Caption{padding:0 .5rem;display:table-caption;text-align:left;margin-bottom:.5rem}.DayPicker-Caption>div{font-size:1.15rem;font-weight:500}.DayPicker-Weekdays{margin-top:1rem;display:table-header-group}.DayPicker-WeekdaysRow{display:table-row}.DayPicker-Weekday{display:table-cell;padding:.5rem;font-size:.875em;text-align:center;color:#8b9898}.DayPicker-Weekday abbr[title]{border-bottom:none;text-decoration:none}.DayPicker-Body{display:table-row-group}.DayPicker-Week{display:table-row}.DayPicker-Day,.DayPicker-WeekNumber{display:table-cell;padding:.5rem;cursor:pointer;vertical-align:middle}.DayPicker-Day{text-align:center;outline:0}.DayPicker-WeekNumber{text-align:right;min-width:1rem;font-size:.75em;color:#8b9898;border-right:1px solid #eaecec}.DayPicker--interactionDisabled .DayPicker-Day{cursor:default}.DayPicker-Footer{padding-top:.5rem}.DayPicker-TodayButton{border:none;background-image:none;background-color:transparent;box-shadow:none;cursor:pointer;color:#4a90e2;font-size:.875em}.DayPicker-Day--today{color:#d0021b;font-weight:700}.DayPicker-Day--outside{cursor:default;color:#8b9898}.DayPicker-Day--disabled{color:#dce0e0;cursor:default}.DayPicker-Day--sunday{background-color:#f7f8f8}.DayPicker-Day--sunday:not(.DayPicker-Day--today){color:#dce0e0}.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){position:relative;color:#666;background-color:#000001;border-radius:100%}.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover{background-color:#000002}.window--circle .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){background-color:#000001;color:#000004}.window--circle .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover{background-color:#000002;color:#000004}.window--bubble .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){background-color:#000001;color:#000004}.window--bubble .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover{background-color:#000002;color:#000004}.DayPicker:not(.DayPicker--interactionDisabled) .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover{background-color:#f0f8ff;border-radius:50%}.DayPickerInput{position:relative}.DayPickerInput .input[readOnly]{border:1px solid #ddd}.DayPickerInput .form__input[disabled]{color:#888}.DayPickerInput-OverlayWrapper{position:absolute;z-index:99;top:-265px;left:0;width:225px}.DayPickerInput-Overlay{background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.15)}.calendar-container .date-picker-span.date-picker-span__selected,.calendar-container .date-view-span.date-view-span__selected,.minimize-bar{background-color:#000001}.minimize-bar{cursor:pointer;border:1px solid #000001;width:300px;height:30px;border-radius:5px 5px 0 0;padding:0 15px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-line-pack:center;align-content:center}.minimize-bar:focus{border:1px solid #000004}.minimize-bar .minimize-bar__message{font-size:14px;line-height:30px;color:#000004;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;text-align:left;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.date-picker-container>.date-picker-input,.time-selector>span{line-height:33px;min-width:80px;padding:0 14px;cursor:pointer}.minimize-bar svg{width:16px;height:30px;fill:#000004;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}@media (forced-colors:active){.minimize-bar{border:1px solid transparent}}.date-picker-container{background-color:#fff;color:#484848;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif!important;font-size:14px;position:relative;width:100%;height:33px}.date-picker-container>.date-picker-input{display:inline-block;height:33px;width:100%;border:1px solid #dbdbdb;border-radius:4px;position:relative}.date-picker-container>.date-picker-input>svg{color:#333;opacity:.5;font-size:16px;width:16px;height:16px;position:absolute;top:8px;right:12px}.date-picker-container>.date-picker-input.date-picker-input__withAction{width:calc(100% - 33px);border-right:none;border-radius:4px 0 0 4px}.date-picker-container>.date-picker-input:focus{border-color:#000001}.date-picker-container .svg{color:#333;opacity:.5;width:auto;height:auto}.date-picker-container button .svg{width:16px;height:16px}.calendar-container{width:100%;user-select:none;max-width:325px;min-width:315px;border:1px solid #f4f4f4;border-radius:6px;padding-bottom:16px;box-shadow:0 1px 3px rgba(63,63,68,.15)}.calendar-container:focus{outline:0}.calendar-container .date-picker-header{width:100%;text-align:left}.calendar-container .date-picker-icon{width:22px;height:22px;position:absolute;cursor:pointer;bottom:3px;margin:auto;right:10px}.calendar-container .date-picker-label{font-size:15px;color:#000}.calendar-container .date-picker-span{font-size:14px;text-align:center;color:#222;width:40px;height:40px;margin:15px;display:inline-block;line-height:40px;cursor:pointer;overflow:auto}.calendar-container .date-picker-wrapper{width:100%;max-width:280px;text-align:center;box-sizing:border-box;margin:0 auto}.calendar-container .calendar-heading{width:100%;height:40px;max-width:325px;max-height:40px;margin-top:8px;position:relative;border-radius:6px}.calendar-container .date-editor-wrapper{min-width:170px;text-align:center;height:40px;line-height:40px}.calendar-container .date-editor-span{display:inline-block;color:#7e7e7e;font-size:1.125em;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif!important;text-align:center;font-weight:600;cursor:pointer;height:40px;margin-right:10px;line-height:40px;overflow:auto}.calendar-container .date-editor-selected-span{color:#000001}.calendar-container .date-view-body{width:100%;text-align:left;height:40px}.calendar-container .date-view-span{border-radius:50%;font-size:14px;text-align:center;color:#222;display:inline-block;cursor:pointer;width:40px;height:40px;line-height:40px;margin:0;overflow:auto}.calendar-container .date-view-head-span{font-size:14px;text-align:center;color:#222;display:inline-block;cursor:pointer;width:40px;height:30px;line-height:30px;margin:0;font-weight:600;opacity:.4;overflow:auto}.calendar-container .date-view-today{display:block;width:100%;height:40px;line-height:40px}.calendar-container .month-view-wrapper{margin-top:18px}.calendar-container .month-view-span{border-radius:5px;margin:0;width:90px;height:50px;line-height:50px}.calendar-container .year-view-wrapper{margin-top:18px}.calendar-container .year-view-span{border-radius:5px;margin:0;width:66px;height:50px;line-height:50px}.calendar-container .date-picker-arrow{cursor:pointer;color:#333;border-radius:50%;width:22px;height:22px;display:inline-block;position:absolute;top:0;bottom:0;margin-top:10px;font-weight:700;opacity:.5}.calendar-container .single-arrow-left{left:50px}.calendar-container .single-arrow-right{right:50px}.calendar-container .double-arrow-left{left:16px}.calendar-container .double-arrow-right{right:16px}.scroll-column-stack{position:relative;width:100%;height:100%}.scroll-column-stack button{background:0 0;border:none;font-size:16px;width:100%;padding:0 5px;text-align:center;cursor:pointer}.scroll-column-stack button.disabled{opacity:.5}.scroll-column-stack>input{position:absolute;left:1px;top:calc(38%);width:calc(97%);height:24px;line-height:24px;margin:0;border:none;text-align:center;font-size:20px;padding:0}.scroll-column{position:relative;width:100%;height:150px}.scroll-clip{overflow:hidden;width:100%;height:100%}.scroll-clip>ul{position:relative;list-style:none;margin:0;padding:0}.scroll-column li{width:100%;height:30px;line-height:30px;margin:0;padding:0;text-align:center;cursor:pointer}.selected-region{position:absolute;width:100%;height:30px;left:0;top:60px;z-index:-1}.selected-region-bottom,.selected-region-top{position:absolute;width:calc(100%);height:60px}.selected-region-top{top:0}.selected-region-bottom{top:90px}.scroll-handle{position:absolute;width:100%;height:100%;left:0;top:0;background:0 0;cursor:pointer}.time-selector{border:1px solid #dbdbdb;border-radius:4px;font-size:14px;height:33px;position:relative;width:100%}.time-selector.time-selector-dark{background-color:#484e58;color:#fff}.time-selector-dark .time-range-panel{background-color:#484e58}.time-selector-dark .panel-arrow>path:first-child{fill:#484e58}.time-selector-dark .panel-arrow>path:last-child{stroke:#f58520;fill:none}.time-selector-dark .scroll-column-stack button{color:#fff}.time-selector-dark .scroll-column-stack>input{background-color:#f58520;box-shadow:0 0 3px inset rgba(0,0,0,.5);color:#fff}.time-selector-dark .selected-region{background-color:rgba(234,133,32,.9);box-shadow:0 0 6px rgba(0,0,0,.5)}.time-selector-dark .selected-region-top{border-bottom:2px solid #e4e7e7;background:linear-gradient(#484e58 10%,rgba(72,78,88,.2) 95%,transparent 100%)}.time-selector-dark .selected-region-bottom{border-top:2px solid #e4e7e7;background:linear-gradient(transparent 0,rgba(72,78,88,.2) 5%,#484e58 100%)}.time-selector.time-selector-light{background-color:#fff;color:#484848}.time-selector-light>svg path{fill:#484848}.time-selector-light.time-range-panel{background-color:#fff;box-shadow:0 1px 3px rgba(63,63,68,.15);border-radius:4px}.time-selector-light .panel-arrow>path:first-child{fill:#fff}.time-selector-light .panel-arrow>path:last-child{stroke:#dbdbdb;fill:none}.time-selector-light .scroll-column-stack button{color:#484848}.time-selector-light .scroll-column-stack>input{background-color:#00a699;box-shadow:0 0 3px inset rgba(255,255,255,.5);color:#333}.time-selector-light .scroll-selected-value{margin:1px 0 -1px;color:#333;font-weight:700}.time-selector-light .scroll-transparent-value{color:#a8a8a8}.time-selector-light .selected-region{box-shadow:0 0 6px rgba(255,255,255,.5);color:#fff}.time-selector-light .selected-region-top{border-bottom:1px solid #b9b9b9}.time-selector-light .selected-region-bottom{border-top:1px solid #b9b9b9}.time-selector>span{display:inline-block;height:33px;width:100%}.time-selector>span>svg{color:#333;opacity:.5;font-size:16px;width:16px;height:16px;position:absolute;top:8px;right:38px}.time-selector>.taskbot_submit_btn_container{top:-1px}.time-range-panel{padding:8px 12px;z-index:10}.time-range-panel>.panel-arrow{position:absolute;top:-10px;width:20px;height:20px}.time-range-panel>.arrow-left{left:22px}.time-range-panel>.arrow-right{left:122px}.time-range-panel .time-columns{display:-ms-grid;display:grid;-ms-grid-columns:(1fr) [3];grid-template-columns:repeat(3,1fr)}.time-range-panel .time_confirm{height:32px;line-height:32px;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;padding-right:8px;cursor:pointer}.time-range-panel .time_confirm .time_tick{width:32px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.time-range-panel .time_confirm .time_tick svg{width:16px;fill:#000001}.fc_input_ref{animation-duration:.6s;animation-timing-function:ease-in;animation-delay:.75s;animation-fill-mode:forwards}.fc_input_container{border-radius:5px;min-height:33px;position:relative;background-color:#fff}.fc_input{border-radius:5px 0 0 5px;height:33px;padding:7px 14px 6px;border:1px solid #d5d5d5;width:calc(100% - 33px);border-right:none}.fc_input_container_error .fc_input{border-color:#ed1c24!important}.fc_select_container{position:relative}.fc_select_input_container{position:relative;height:100%;border:1px solid #d5d5d5;border-radius:5px;box-sizing:border-box}.fc_select_input_container .fc_select_input_single{padding:7px 30px 6px 14px;width:100%;height:31px;line-height:18px;overflow:hidden;white-space:nowrap;cursor:pointer;text-overflow:ellipsis}.fc_select_input_container .fc_select_input_multiple{min-height:31px;padding:0 30px 4px 10px;max-height:85px;overflow-y:scroll;margin-right:1px}.fc_select_input_container .fc_select_input_multiple::-webkit-scrollbar-thumb{background:rgba(51,51,51,.2)}.fc_select_input_container .fc_select_input_multiple .fc_multiple_select_item{background:#efefef;border-radius:17px;height:23px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;margin:4px 4px 0}.fc_select_input_container .fc_select_input_multiple .fc_multiple_select_item span{font-size:12px;line-height:23px;color:#263238;margin:0 10px 0 16px;cursor:default;max-width:83px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.fc_select_input_container .fc_select_input_multiple .fc_multiple_select_item .delete_icon{width:18px;height:18px;fill:#c4c4c4;border-radius:50%;margin-right:3px}.fc_select_input_container .fc_select_input_multiple .fc_multiple_select_item .delete_icon:hover{fill:#6c6c6c}.fc_select_input_container .arrow_container{position:absolute;right:0;top:0;margin-right:12px;height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.fc_select_input_container .arrow{width:10px;height:10px;fill:#989898}.fc_select_input_container .arrow.arrow_down{-ms-transform:rotate(180deg);transform:rotateZ(180deg)}.fc_select_input_container:focus{border-color:#000001}.fc_select_input_container--error{border-color:#d34747}.fc_select_option_container{min-height:8px}.fc_select_option_list{box-shadow:0 1px 3px rgba(63,63,68,.35);margin-top:.5px;width:100%;padding:0;background:#fff;border-radius:5px;overflow-y:scroll;overflow-x:hidden;z-index:0;max-height:264px;animation-duration:.4s;animation-timing-function:ease-in-out;animation-delay:0s;animation-fill-mode:forwards}.fc_select_option_list::-webkit-scrollbar-thumb{background:rgba(51,51,51,.2)}.fc_select_option_list .fc_select_option_item{padding:0 16px;color:#747474;background:#fff;cursor:pointer;height:32px;line-height:32px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.fc_select_option_list .fc_select_option_item:hover{color:#263236;background-color:rgba(0,0,0,.06)}.fc_select_option_list .fc_select_option_item.selected{color:#000;background-color:#efefef}.highContrast .bubble,.highContrast .chatbot_quick_reply_container_buttons .window_quick_reply_container_box .window_quick_reply_buttons_item,.highContrast .fc_multiple_select_item,.highContrast .fc_select_option_list,.highContrast .prechatForm__social .prechatForm__socialBtn,.highContrast .taskbot-popper,.highContrast .taskbot_multiple_select_item,.highContrast .taskbot_select_multiple .taskbot_select_multiple_item,.highContrast .taskbot_select_option_list,.highContrast .taskbot_submit_btn_container,.highContrast .taskbot_tool_tip_container,.highContrast .time-range-panel,.highContrast .whole-window,.highContrast .window__chatAgentMessage,.highContrast .window__chatVisitorMessage,.highContrast .window_buttons_container .window_buttons_item button,.highContrast .window_quick_reply_buttons .window_quick_reply_buttons_item{border:1px solid}.highContrast .window__headerBox{border-bottom:1px solid}.highContrast .webView_background .webView__title{border-top:1px solid;border-bottom:none}.highContrast .window__chat .dot__element{background-color:CanvasText}.highContrast .calendar-container .date-picker-arrow svg,.highContrast .kbsearch-icon svg,.highContrast .time-range-panel .time_confirm .time_tick svg,.highContrast .window__operation button>svg{fill:CanvasText!important;opacity:1!important}.highContrast .calendar-container .date-picker-arrow{opacity:1}.highContrast .fc_select_option_list .fc_select_option_item.selected,.highContrast .taskbot_select_option_list .taskbot_select_option_item.active,.highContrast .taskbot_select_option_list .taskbot_select_option_item.selected{color:Highlight}.highContrast .chatMessage__chatBotRate>button.chatMessage__chatBotRate--selected,.highContrast .date-picker-container>.date-picker-input:focus,.highContrast .fc_select_input_container:focus,.highContrast .taskbot_select_input_container:focus{border:1px solid Highlight}.highContrast .chat-message-time{opacity:.8}.highContrast .calendar-container [aria-selected=true]{color:Highlight!important}.highContrast .container-checkbox i.selected .checkbox1{fill:Highlight}.highContrast .container-checkbox i.unselected .checkbox1,.highContrast .container-checkbox i.unselected .checkbox3,.highContrast .control input[type=radio]~.controlIndicator svg circle{fill:Canvas}.highContrast .checkbox2,.highContrast .date-picker-container>.date-picker-input>svg,.highContrast .prechatForm__social .prechatForm__socialBtn svg,.highContrast .taskbot_submit_btn_container .taskbot_send_button>div svg,.highContrast .taskbot_submit_btn_container .taskbot_submit_btn_svg .taskbot_tick,.highContrast .time-selector>span>svg{fill:CanvasText}.highContrast .controlRadio .controlIndicator svg{border:1px solid CanvasText}.highContrast .control input[type=radio]:checked~.controlIndicator svg circle:first-child{fill:Highlight;stroke:Highlight}.highContrast .taskbot_submit_btn_container .taskbot_submit_btn_svg .taskbot_loading circle{stroke:CanvasText}.highContrast #chat-input-control:-ms-input-placeholder{color:CanvasText}.highContrast #chat-input-control::placeholder{color:CanvasText}.highContrast .icon-file svg,.highContrast .poweredby a[href] svg path:not(:first-child),.highContrast .window__chatVisitorMessage .file__icon--cancel svg{fill:CanvasText!important}.highContrast .window__chatVisitorMessage a:hover{border-bottom:1px solid CanvasText!important}.highContrast .window__operation .window__operation-menu ul{border:1px solid Highlight}.highContrast .chatInputContainer.chatInputContainer--typed .window__chatSender svg{fill:Highlight!important}@media (forced-colors:active){.bubble,.chatbot_quick_reply_container_buttons .window_quick_reply_container_box .window_quick_reply_buttons_item,.fc_multiple_select_item,.fc_select_option_list,.prechatForm__social .prechatForm__socialBtn,.taskbot-popper,.taskbot_multiple_select_item,.taskbot_select_multiple .taskbot_select_multiple_item,.taskbot_select_option_list,.taskbot_submit_btn_container,.taskbot_tool_tip_container,.time-range-panel,.whole-window,.window__chatAgentMessage,.window__chatVisitorMessage,.window_buttons_container .window_buttons_item button,.window_quick_reply_buttons .window_quick_reply_buttons_item{border:1px solid}.window__headerBox{border-bottom:1px solid}.webView_background .webView__title{border-top:1px solid;border-bottom:none}.window__chat .dot__element{background-color:CanvasText}.calendar-container .date-picker-arrow svg,.kbsearch-icon svg,.time-range-panel .time_confirm .time_tick svg,.window__operation button>svg{fill:CanvasText!important;opacity:1!important}.calendar-container .date-picker-arrow{opacity:1}.fc_select_option_list .fc_select_option_item.selected,.taskbot_select_option_list .taskbot_select_option_item.active,.taskbot_select_option_list .taskbot_select_option_item.selected{color:Highlight}.chatMessage__chatBotRate>button.chatMessage__chatBotRate--selected,.date-picker-container>.date-picker-input:focus,.fc_select_input_container:focus,.taskbot_select_input_container:focus{border:1px solid Highlight}.chat-message-time{opacity:.8}.calendar-container [aria-selected=true]{color:Highlight!important}.container-checkbox i.selected .checkbox1{fill:Highlight}.container-checkbox i.unselected .checkbox1,.container-checkbox i.unselected .checkbox3,.control input[type=radio]~.controlIndicator svg circle{fill:Canvas}.checkbox2,.date-picker-container>.date-picker-input>svg,.prechatForm__social .prechatForm__socialBtn svg,.taskbot_submit_btn_container .taskbot_send_button>div svg,.taskbot_submit_btn_container .taskbot_submit_btn_svg .taskbot_tick,.time-selector>span>svg{fill:CanvasText}.controlRadio .controlIndicator svg{border:1px solid CanvasText}.control input[type=radio]:checked~.controlIndicator svg circle:first-child{fill:Highlight;stroke:Highlight}.taskbot_submit_btn_container .taskbot_submit_btn_svg .taskbot_loading circle{stroke:CanvasText}#chat-input-control:-ms-input-placeholder{color:CanvasText}#chat-input-control::placeholder{color:CanvasText}.icon-file svg,.poweredby a[href] svg path:not(:first-child),.window__chatVisitorMessage .file__icon--cancel svg{fill:CanvasText!important}.window__chatVisitorMessage a:hover{border-bottom:1px solid CanvasText!important}.window__operation .window__operation-menu ul{border:1px solid Highlight}.chatInputContainer.chatInputContainer--typed .window__chatSender svg{fill:Highlight!important}.header--bottom{display:none}}@media (prefers-contrast:more){.bubble,.chatbot_quick_reply_container_buttons .window_quick_reply_container_box .window_quick_reply_buttons_item,.fc_multiple_select_item,.fc_select_option_list,.prechatForm__social .prechatForm__socialBtn,.taskbot-popper,.taskbot_multiple_select_item,.taskbot_select_multiple .taskbot_select_multiple_item,.taskbot_select_option_list,.taskbot_submit_btn_container,.taskbot_tool_tip_container,.time-range-panel,.whole-window,.window__chatAgentMessage,.window__chatVisitorMessage,.window_buttons_container .window_buttons_item button,.window_quick_reply_buttons .window_quick_reply_buttons_item{border:1px solid}.window__headerBox{border-bottom:1px solid}.webView_background .webView__title{border-top:1px solid;border-bottom:none}.window__chat .dot__element{background-color:CanvasText}.calendar-container .date-picker-arrow svg,.kbsearch-icon svg,.time-range-panel .time_confirm .time_tick svg,.window__operation button>svg{fill:CanvasText!important;opacity:1!important}.calendar-container .date-picker-arrow{opacity:1}.fc_select_option_list .fc_select_option_item.selected,.taskbot_select_option_list .taskbot_select_option_item.active,.taskbot_select_option_list .taskbot_select_option_item.selected{color:Highlight}.chatMessage__chatBotRate>button.chatMessage__chatBotRate--selected,.date-picker-container>.date-picker-input:focus,.fc_select_input_container:focus,.taskbot_select_input_container:focus{border:1px solid Highlight}.chat-message-time{opacity:.8}.calendar-container [aria-selected=true]{color:Highlight!important}.container-checkbox i.selected .checkbox1{fill:Highlight}.container-checkbox i.unselected .checkbox1,.container-checkbox i.unselected .checkbox3,.control input[type=radio]~.controlIndicator svg circle{fill:Canvas}.checkbox2,.date-picker-container>.date-picker-input>svg,.prechatForm__social .prechatForm__socialBtn svg,.taskbot_submit_btn_container .taskbot_send_button>div svg,.taskbot_submit_btn_container .taskbot_submit_btn_svg .taskbot_tick,.time-selector>span>svg{fill:CanvasText}.controlRadio .controlIndicator svg{border:1px solid CanvasText}.control input[type=radio]:checked~.controlIndicator svg circle:first-child{fill:Highlight;stroke:Highlight}.taskbot_submit_btn_container .taskbot_submit_btn_svg .taskbot_loading circle{stroke:CanvasText}#chat-input-control:-ms-input-placeholder{color:CanvasText}#chat-input-control::placeholder{color:CanvasText}.icon-file svg,.poweredby a[href] svg path:not(:first-child),.window__chatVisitorMessage .file__icon--cancel svg{fill:CanvasText!important}.window__chatVisitorMessage a:hover{border-bottom:1px solid CanvasText!important}.window__operation .window__operation-menu ul{border:1px solid Highlight}.chatInputContainer.chatInputContainer--typed .window__chatSender svg{fill:Highlight!important}.header--bottom{display:none}*{border-color:#000!important}}.greeting-message .fr-img-caption.fr-rounded img,.greeting-message img.fr-rounded{border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;background-clip:padding-box}.greeting-message .fr-img-caption.fr-bordered img,.greeting-message img.fr-bordered{border:5px solid #CCC}.greeting-message img.fr-bordered{box-sizing:content-box}*,.greeting-message .fr-img-caption.fr-bordered img,::after,::before{box-sizing:border-box}.greeting-message .fr-img-caption.fr-shadow img,.greeting-message img.fr-shadow{box-shadow:10px 10px 5px 0 #ccc}@media all and (-webkit-min-device-pixel-ratio:0){::-webkit-scrollbar{height:6px;width:6px}.window__chat:hover::-webkit-scrollbar-thumb,.window__form:hover::-webkit-scrollbar-thumb,.window__formContainer:hover::-webkit-scrollbar-thumb,textarea:hover::-webkit-scrollbar-thumb{background-color:#c8c8c8}.window__chat{padding:24px 24px 0}.window--circle .window__chat,.window__chat.window__chat--withBanner{padding-top:8px}.window__form{width:calc(100% - 32px);max-width:640px;margin-left:auto;margin-right:auto}.window--mobile .window--bubble .kbsearch-window__chatWithAgent{width:calc(100% - 2px)}.window--mobile .window--bubble .kbsearch-window__chatWithAgent .buttonProgressContainer{padding:30px 43px 35px 45px}.window--mobile .window--bubble .window__form{padding-left:45px;padding-right:43px}.window--mobile .window--bubble .window__form.kbsearch-window__form{padding-left:20px;padding-right:18px}::-webkit-scrollbar-button{height:4px;background-color:transparent;background-repeat:no-repeat;cursor:pointer}::-webkit-scrollbar-corner{background-color:#fff}::-webkit-scrollbar-thumb{border-radius:4px;background-color:transparent}::-webkit-scrollbar-track{background-color:transparent}}body,html,ol,ul{margin:0}::-webkit-input-placeholder{color:#626262}::-moz-placeholder{color:#626262}:-ms-input-placeholder{color:#626262}.window--chrome .whole-window:not(.window--embedded).window--classic,body{overflow:hidden}html{position:fixed;left:0;right:0;top:0;bottom:0;font-size:15px;-webkit-text-size-adjust:100%}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif,'微软雅黑',Arial!important;line-height:1.42857143}h1,h2,h3{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif,Arial!important;font-weight:700}div,section{outline:0}.clearfix::after{content:'';display:block;clear:both}.clear{clear:both}a{color:#000001;cursor:pointer;text-decoration:none}.global-showFocus .window__operation .header__operationContainer>a:focus{outline:0!important;border-bottom-width:1px;border-bottom-style:solid;text-decoration:none}a[href]:active,a[href]:focus,a[href]:hover{text-decoration:none}input,textarea{font-family:inherit}ol,ul{list-style-type:none;padding:0}b,strong{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif,Arial!important;font-weight:700}textarea{resize:none}.animated{animation-duration:1s;animation-fill-mode:both}.animated.hinge{animation-duration:2s}.animated-delayFrames7{animation-delay:292ms}.animated-delayFrames10{animation-delay:417ms}.animated-delayFrames13{animation-delay:542ms}.transform-origin-00{-ms-transform-origin:0 0;transform-origin:0 0}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeInDown{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:none}}.fadeInDown{animation-name:fadeInDown}.fadeInUp,.fadeInUp--window__form{animation-name:fadeInUp}@keyframes main-container--fadeOut{0%{opacity:1;transform:translateY(0)}99%{opacity:0;transform:translateY(0)}100%{opacity:0;transform:translateY(620px)}}@keyframes main-container--fadeIn{0%{opacity:0;transform:translateY(0)}100%{opacity:1;transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translate3d(0,50%,0)}to{opacity:1;transform:none}}.fadeInUp--window__form{animation-duration:292ms;animation-fill-mode:both;animation-delay:625ms}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}.fadeOutUp{animation-name:fadeOutUp}@keyframes at-ripple{0%{box-shadow:0 0 0 0 #dadada}100%{box-shadow:0 0 0 25px rgba(218,218,218,0)}}.at-ripple{animation-name:at-ripple}@keyframes yAxisWindow{100%{opacity:1}}@keyframes window--opening{0%{opacity:0;transform:translateY(100%)}99.999999%{opacity:1;transform:translateY(0)}100%{opacity:1;transform:none}}@keyframes window--adaptive--opening{0%{opacity:.666667;transform:scale(.666667)}99.999999%{opacity:1;transform:scale(1)}100%{opacity:1;transform:none}}@keyframes window--minimizing{0%{transform:translateY(0);opacity:1}100%{transform:translateY(100%);opacity:0}}@keyframes window--adaptive--minimizing{0%{transform:scale(1);opacity:1}100%{transform:scale(.666667);opacity:0}}.animation--chatting.window--animated .header{transition:height 416ms cubic-bezier(.785,.135,.15,.86) .4s}.animation--chatting .prechatHeader,.animation--waiting .prechatHeader{opacity:0;-ms-transform:translateY(-140px);transform:translateY(-140px);transition:all 416ms cubic-bezier(.785,.135,.15,.86) 1.792s}@keyframes animation-translateY-Up{0%{transform:translateY(0);overflow:hidden}100%{transform:translateY(-100%)}}.animation-translateY-Up{animation-duration:458ms;animation-fill-mode:both;animation-timing-function:cubic-bezier(.785,.135,.15,.86);animation-name:animation-translateY-Up;animation-delay:1.209s}.whole-window{position:absolute;z-index:10;width:100%;height:100%;box-shadow:0 0 3px 0 rgba(0,0,0,.12);animation:window--opening .3s linear none;border-radius:12px}.window--chrome .whole-window{box-shadow:0 0 6px 0 rgba(0,0,0,.12)}.window--chrome .whole-window.window--bubble,.window--chrome .whole-window.window--bubble:not(.window--embedded){box-shadow:none}.window--chrome .whole-window:not(.window--embedded){box-shadow:0 0 6px 0 rgba(0,0,0,.12);max-width:960px;border-radius:0}.window--chrome .whole-window:not(.window--embedded).window--bubble{box-shadow:none}.whole-window:not(.window--embedded){box-shadow:3px 0 3px 0 rgba(0,0,0,.12)}.whole-window:not(.window--embedded).window--bubble,.window--bubble{box-shadow:none}@media screen and (min-width:961px){.window--chrome .whole-window:not(.window--embedded){border-radius:12px}}.whole-window.window--circular{border-radius:20px}.whole-window.window--adaptive{-ms-transform-origin:bottom right;transform-origin:bottom right;animation:window--adaptive--opening .2s linear none}.window--ie .whole-window,.window--ie .whole-window.window--adaptive{animation:none}.window--minimized .whole-window{animation:window--minimizing .3s linear forwards}.window--minimized .whole-window.window--adaptive{-ms-transform-origin:bottom right;transform-origin:bottom right;animation:window--adaptive--minimizing .2s linear forwards}.window--ie .window--minimized .whole-window,.window--ie .window--minimized .whole-window.window--adaptive{animation:none}.window--bubble.whole-window .main-container{position:relative;min-height:200px}.window--bubble,.window--ipad .window--embedded .bubble-box.bubble-box--minimize{position:absolute}.window--embedded,.window--embedded .bubble-box{right:3px;bottom:3px;width:calc(100% - 6px);height:calc(100% - 6px)}.window--circle--sidewindow,.window--classic--sidewindow{box-shadow:0 0 3px 0 rgba(0,0,0,.12)}.window--chrome .window--circle--sidewindow,.window--chrome .window--classic--sidewindow{box-shadow:0 0 6px 0 rgba(0,0,0,.12)}.embedded-window{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.window--embedded.window--circle--sidewindow,.window--embedded.window--circle--sidewindow .bubble-box,.window--embedded.window--classic--sidewindow,.window--embedded.window--classic--sidewindow .bubble-box{width:calc(100% - 6px)}.window--ipad .window--embedded,.window--ipad .window--embedded .bubble-box{right:3px;width:calc(100% - 6px)}.window--ipad .window--bubble.window--embedded,.window--ipad .window--bubble.window--embedded .bubble-box{bottom:0;height:100%}.window--bubble.window--embedded,.window--bubble.window--embedded .bubble-box{height:100%;width:100%;right:0;bottom:0}.window--bubble{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:end;justify-content:flex-end}.main-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%;height:100%;background-repeat:no-repeat;background-position:center bottom;background-color:#f5f7fa;background-size:cover}.loading-circle{fill:#a3a3a3}.main-container,.main-container .bubble-box{border-radius:12px}.window--circular .main-container,.window--circular .main-container .bubble-box{border-radius:20px}.window--mobile:not(.window--ipad) .main-container,.window--mobile:not(.window--ipad) .main-container .bubble-box{border-radius:0}.window--embedded.window--circle,.window--embedded.window--circle .bubble-box{height:calc(100% - 6px);top:3px}.window--embedded.window--bio.window--circle,.window--embedded.window--bio.window--circle .bubble-box{height:calc(100% - 35.5px);top:unset}.window--embedded.window--circle.window-noavator,.window--embedded.window--circle.window-noavator .bubble-box{height:calc(100% - 4px)}.window--bio.window--circle{height:calc(100% - 32.5px);top:32.5px}.window--bio.window--circle .bubble-box,.window--circle.window-noavator,.window--circle.window-noavator .bubble-box{top:0;height:100%}.window--circle.window--embedded.window-noavator,.window--circle.window--embedded.window-noavator .bubble-box{top:unset}.window--bubble{background:0 0}.window--bubble:not(.window--embedded){padding-left:0;padding-right:0}.window--rtl .container-checkbox,.window--rtl .control{padding-left:0;padding-right:26px}.window--bubble .main-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background:0 0;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-negative:0;flex-shrink:0;position:static;bottom:0;height:auto}.window--bubble.window--rtl .window__chatSystemMessageContent,.window--rtl .bubble,.window--rtl .knowlegedbase__content,.window--rtl .window__chatAgentMessage,.window--rtl .window__chatInputControl,.window--rtl .window__chatSystemMessage,.window--rtl .window__chatVisitorMessage,.window--rtl .window__form,.window--rtl .window__formContainer,.window--rtl .window__formGreeting,.window--rtl .window_chatError{direction:rtl}.window--bubble.window--rtl .window__chatSystemMessage{direction:ltr}.window--rtl .field__requiredMsg,.window--rtl .form-note,.window--rtl .invitation__message,.window--rtl .invitation__type,.window--rtl .minimize-bar__message{direction:rtl;text-align:right}.window--rtl .rating{text-align:right}.window--rtl .rating .star:last-child{margin-right:10px}.window--rtl .prechatForm__social .prechatForm__socialBtn{margin-right:0;margin-left:12px}.window--rtl .prechatForm__social .prechatForm__socialBtn:last-child{margin-left:0}.window--rtl .bubble .bubble__operation .btn:first-child,.window--rtl .form-fields--horizonal .field-name{margin-right:0;margin-left:10px}.window--rtl .minimize-bar__message{padding-right:15px}.window--ie9.window--classic .header__agentInfo,.window--ie9.window--classic .header__avatar{float:left}.window--ie9.window--circle .window__form,.window--ie9.window--classic .window__form{height:calc(100% - 156px);padding-bottom:30px}.window--ie9.window--circle .window__form.window__ssologin,.window--ie9.window--classic .window__form.window__ssologin{height:auto}.window--ie9 .chat-time{margin-top:15px}.window--ie9.chat-time{padding-top:10px}.window--ie9.window--classic .header__avatar{float:left}.window--ie9 .chatInputContainer{position:absolute;bottom:23px;width:100%}.window--ie9.window--bubble .window__chat,.window--ie9.window--bubble .window_quick_reply_container_box{position:relative;bottom:75px}.window--ie9 .buttonProgressContainerSuccess .buttonProgressBtnAnimated{opacity:.65}.window--ie9 .buttonProgress__layerCircle,.window--ie9 .buttonProgress__layerLoading,.window--ie9 .buttonProgress__layerSuccess,.window--ie9 .lds-css{display:none!important}.window--ie9 .window__footer{position:absolute;bottom:0;display:inline-block}.window--ie9 .multipleText{overflow:auto}.window--ie9.window--bubble .window__chatAgent{position:relative}.window--ie9 .rating .star.animate{color:#ffd051}.window--ie9 .select-box .select{padding:5px 10px}.window--ie9 .form-fields .box-field iframe{height:30px}.window--ie9 .window__formContainer--bubble{overflow-y:auto!important}.window--ie9.window--classic .header__agent--withlogo{max-width:calc(100% - 110px)}.window--ie9.window--classic .header__logo{float:right}.window--ie9.window--classic .header__agentInfo{max-width:calc(100% - 60px)}.window--ie9.window--classic .window__header--withBio{height:136px}.window--ie9.window--classic .window__header--noBio{height:126px;background-color:#000001}.window--ie9.window--circle .window__header--noBio,.window--ie9.window--circle .window__header--withBio,.window--ie9.window--circle .window__headerBox{height:136px}.window--ie9.window--classic .window__chat--withBio{max-height:calc(100% - 236px)}.window--ie9.window--classic .window__chat--withBio.window__chat--withQuickReply{height:calc(100% - 286px)}.window--ie9.window--classic .window__chat--noBio{height:calc(100% - 195px)}.window--ie9.window--classic .window__chat--noBio.window__chat--withQuickReply{height:calc(100% - 245px)}.window--ie9.window--circle .window__chat--withBio{max-height:calc(100% - 205px)}.window--ie9.window--circle .window__chat--withBio.window__chat--withQuickReply{height:calc(100% - 255px)}.window--ie9.window--circle .window__chat--noBio{height:calc(100% - 205px)}.window--ie9.window--circle .window__chat--noBio.window__chat--withQuickReply{height:calc(100% - 255px)}.window--ie9.window--bubble .main-container{overflow:auto;overflow-x:hidden}.window--ie9 .window__chatInputControl{padding:10px 0}.window--ie9 .chat-input__toolbox{position:absolute;right:20px;bottom:10px}.window--ie9 .main-container{display:block}.window--ie9 .window--bubble.whole-window .main-container{position:fixed}.window--ie9 .window__kb_formContainer{margin-right:0;margin-left:0}.window--ie9 .agentMessage__avatar,.window--ie9 .window__chatAgentMessage{float:left}.window--ie9 .window--bubble .window__operation-menu{max-width:160px}.window--ie9 .window__operation-menu li button>div.menu__text-container{max-width:85px}.window--ie9 .window__operation-menu,.window--ie9 .window__operation-menu-icon{width:150px}.window--circle .window__form{margin-top:16px}.window--ie .window--embedded.window--circle .window__header--hasAvatar+.window__title .bubble-box{top:32.5px}#container~div>:last-child{max-height:580px;overflow-y:auto!important}#container~div>:last-child::-webkit-scrollbar-thumb{background-color:#c8c8c8}.btnScrollToBottom{position:sticky;z-index:9;bottom:12px;float:right;margin-right:-12px;background-color:#fff;border:none;outline:0;border-radius:12px;box-shadow:1px 2px 12px 0 rgba(0,0,0,.16);padding:10px;height:40px;font-size:.93333333rem;line-height:1.42857143;color:#666;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;gap:4px}.btnScrollToBottom>svg{fill:#666;width:20px;height:20px}.greeting-message ol{list-style-type:decimal;text-align:initial;list-style-position:outside;padding-left:10px}.greeting-message ul{list-style-type:initial;text-align:initial;list-style-position:inside}.greeting-message table{border-collapse:collapse;empty-cells:show;max-width:100%}.greeting-message table td,.greeting-message table th{border:1px solid #ddd}.greeting-message table th{background:#ececec}.greeting-message table.fr-dashed-borders td,.greeting-message table.fr-dashed-borders th{border-style:dashed}.greeting-message table td.fr-highlighted,.greeting-message table th.fr-highlighted{border:1px double red}.greeting-message table td.fr-thick,.greeting-message table th.fr-thick{border-width:2px}.greeting-message table.fr-alternate-rows tbody tr:nth-child(2n){background:#dedede}.animate-bubble,.animate-center{background-color:#f6f6f6;border-radius:50%}.greeting-message table img{display:inline-block;float:none;margin-left:5px;margin-right:5px;max-width:calc(90%);vertical-align:bottom}.animate-container{width:111px;height:106px;position:relative}.animate-center{position:absolute;top:50%;left:50%;width:78px;height:78px;transform:translate(-50%,-50%);animation:centerAnimation .3s ease-in-out forwards}.animate-center--icon{position:absolute;top:50%;left:50%;width:42px;height:42px;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);animation:centerIconAnimation .3s ease-in-out forwards}.animate-center--icon svg{width:100%;height:100%}.animate-center--icon svg:hover{cursor:default}.animate-bubble{position:absolute;width:20px;height:20px;animation:bubbleAnimation .3s ease-in-out forwards}.animate-bubble:nth-child(2){width:11px;height:11px;--size:11px;--top:20%;--left:13%}.animate-bubble:nth-child(3){width:20px;height:20px;--size:20px;--top:0%;--left:82%}.animate-bubble:nth-child(4){width:11px;height:11px;--size:11px;--top:80%;--left:80%}.animate-bubble:nth-child(5){width:20px;height:20px;--size:20px;--top:82%;--left:0%}@keyframes centerAnimation{0%{width:0;height:0}66.66%{width:90px;height:90px}100%{width:78px;height:78px}}@keyframes bubbleAnimation{0%{width:0;height:0;top:50%;left:50%}100%{width:var(--size);height:var(--size);top:var(--top);left:var(--left)}}@keyframes centerIconAnimation{0%{width:0;height:0;transform:translate(-50%,-50%) rotate(0)}33.33%{transform:translate(-50%,-50%) rotate(-30deg)}66.66%{transform:translate(-50%,-50%) rotate(60deg)}100%{width:42px;height:42px;transform:translate(-50%,-50%) rotate(0)}}",It="desktop",Mt="mobile",At="ipad",Bt="systemEndChat",Ot="systemPromoteOfflineMesage",Tt="visitorNotRespond",jt="visitorNotRespondAndEndChat",Ft="systemStartChatbot",Vt="visitorAddTextMessage",Wt="visitorRequestChat",Nt="visitorSendFile",Dt="visitorSendImage",Pt="visitorSendPassword",Rt="visitorSubmitSecureForm",Et="visitorCancelSecureForm",zt="visitorCreditCardMasked",Lt="visitorGetSecureFormFailure",Ht="visitorTyping",qt="agentSendText",Ut="agentAddInvitationText",Gt="agentAcceptChat",Kt="agentRefuseChat",Yt="agentEndChat",Qt="agentJoinChat",Zt="agentTransferChat",Jt="agentSendUrl",Xt="agentTyping",$t="agentTransferChatToDepartment",en="agentAcceptTransfer",tn="agentSendFile",nn="agentSendImage",on="agentSendImageStart",an="agentRequestSecureForm",rn="agentPushPage",sn="agentVideoChatRequest",cn="agentVideoChatCancelRequest",dn="agentVideoChatAccept",ln="agentVideoChatRefuse",un="agentVideoChatStop",pn="visitorVideoChatRequest",hn="visitorVideoChatCancelRequest",fn="visitorVideoChatAccept",gn="visitorVideoChatRefuse",wn="visitorVideoChatStop",mn="systemVideoChatNoAnswer",bn="systemVideoChatEnd",vn="agentAudioChatRequest",_n="agentAudioChatCancelRequest",xn="agentAudioChatAccept",yn="agentAudioChatRefuse",Cn="agentAudioChatStop",kn="visitorAudioChatRequest",Sn="visitorAudioChatCancelRequest",In="visitorAudioChatAccept",Mn="visitorAudioChatRefuse",An="visitorAudioChatStop",Bn="systemAudioChatNoAnswer",On="systemAudioChatEnd",Tn="systemIfSupportWebrtc",jn="agentPushSSO",Fn="visitorSingleLogout",Vn="agentRequestRatingFromVisitor",Wn="agentAutoSendTextVisitorNotReply",Nn="agentAutoSendTextAgentNotReply",Dn="ratingForm",Pn="chatbotRequestQuestionGuid",Rn="chatbotIntentTaskComplete",En="chatbotHighConfidenceAnswer",zn="chatbotPossibleAnswer",Ln="chatbotBadAnswer",Hn="chatbotJoinChat",qn="chatbotSendGreetingMessage",Un="botSignIn",Gn="botForm",Kn="visitorCancelBotForm",Yn="visitorSubmitBotForm",Qn="botPrompt",Zn="botRequestLocation",Jn="chatbotSetAnswerIfHelpful",Xn="visitorRequestChatExceedChatQueueLimit",$n="visitorText",ei="visitorImage",ti="visitorFile",ni="systemPrompt",ii="startChatAgain",oi="downloadTranscript",ai="emailTranscript",ri="creditCardMasked",si="autoInvMsg",ci="pendingVisitorIsTyping",di="pendingVideoRequesting",li="pendingAudioRequesting",ui="pendingAccept",pi="pendingHangup",hi="pendingSubmitSecureForm",fi="pendingCancelSecureForm",gi="pendingGetSecureFormFailure",wi="agentScreenSharingRequest",mi="agentScreenSharingCancelRequest",bi="agentScreenSharingAccept",vi="agentScreenSharingRefuse",_i="agentScreenSharingStop",xi="visitorScreenSharingRequest",yi="visitorScreenSharingCancelRequest",Ci="visitorScreenSharingAccept",ki="visitorScreenSharingRefuse",Si="visitorScreenSharingStop",Ii="agentRequestVisitorScreenSharing",Mi="agentCancelRequestVisitorScreenSharing",Ai="visitorRefuseAgentRequestVisitorScreenSharing",Bi="visitorAcceptAgentRequestVisitorScreenSharing",Oi="systemScreenSharingNoAnswer",Ti="pendingScreenSharingRequesting",ji="pendingAcceptScreenSharing",Fi="pendingHangupScreenSharing",Vi="pendingVisitorAcceptAgentRequestVisitorScreenSharing",Wi="systemScreenSharingEnd",Ni="systemStartTaskbot",Di="taskbotJoinChat",Pi="taskbotActions",Ri="taskbotRequestQuestionGuid",Ei="taskbotComplete",zi="chatbotActions",Li="chatbotActionContactAgent",Hi="agentTransferChatToAnotherSite",qi="agentRecallMessage",Ui="recalledChatMessage",Gi={batchAction:"batchAction",uploadFileAction:"uploadFileAction",getConfig:"getConfig",setCustomVariables:"setCustomVariables",newVisitor:"newVisitor",pageVisit:"pageVisit",getChatButton:"getChatButton",getIfOnline:"getIfOnline",checkIfOnline:"checkIfOnline",checkAutoInvitation:"checkAutoInvitation",confirmAutoInvitation:"confirmAutoInvitation",acceptAutoInvitation:"acceptAutoInvitation",refuseAutoInvitation:"refuseAutoInvitation",checkManualInvitation:"checkManualInvitation",refuseManualInvitation:"refuseManualInvitation",manualInvitationShowed:"manualInvitationShowed",submitSSOInfo:"submitSSOInfo",submitPrechat:"submitPrechat",socialLogin:"socialLogin",requestChat:"requestChat",requestChatFromChatbot:"requestChatFromChatbot",sendChatMessages:"sendChatMessages",getChatMessages:"getChatMessages",getChatQueue:"getChatQueue",setVisitorStatus:"setVisitorStatus",submitRating:"submitRating",emailTranscript:"emailTranscript",sendFile:"sendFile",uploadFile:"uploadFile",endChat:"endChat",submitPostChat:"submitPostChat",submitOfflineMessage:"submitOfflineMessage",chatBotAnswerHelpful:"chatBotAnswerHelpful",chatBotSelectQuestion:"chatBotSelectQuestion",prechatHeartbeat:"prechatHeartbeat",offlineMessageHeartbeat:"offlineMessageHeartbeat",enterOfflineMessage:"enterOfflineMessage",checkManuallyInvited:"checkManuallyInvited",closeWindow:"closeWindow",getDepartments:"getDepartments",getAgents:"getAgents",checkBan:"checkBan",systemProcessingHeartbeat:"systemProcessingHeartbeat",restoreChat:"restoreChat",checkBBSCode:"checkBBSCode",checkDynamicCampaign:"checkDynamicCampaign",getDynamicCampaign:"getDynamicCampaign",pageHeartbeat:"pageHeartbeat",getChatWindowConfig:"getChatWindowConfig",getCustomVariables:"getCustomVariables",visitorHandleBotForm:"visitorHandleBotForm",setBotVariable:"setBotVariable",agentMsgSeenByVisitor:"agentMsgSeenByVisitor",visitorGetLatestMsgSeen:"visitorGetLatestMsgSeen",setLocation:"setLocation",getVisitorInfo:"getVisitorInfo",recoverVisitor:"recoverVisitor",getFileUploadToken:"getFileUploadToken",getSSORecoverInfo:"getSSORecoverInfo",requestChatFromAnotherSite:"requestChatFromAnotherSite",showInvitation:"showAutoInvitation",getChatbotQuestions:"getChatbotQuestions"},Ki=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o0){for(t=1,i=1;tS&&(S=C,I=[]),I.push(e))}function j(){var t,n,o;for(t=[],(n=V())===i&&(91===e.charCodeAt(C)?(n=r,C++):(n=i,T(s)),n===i&&(n=C,n=(o=F())!==i?e.substring(n,C):o));n!==i;)t.push(n),(n=V())===i&&(91===e.charCodeAt(C)?(n=r,C++):(n=i,T(s)),n===i&&(n=C,n=(o=F())!==i?e.substring(n,C):o));return t}function F(){var t,n;if(t=[],c.test(e.charAt(C))?(n=e.charAt(C),C++):(n=i,T(d)),n!==i)for(;n!==i;)t.push(n),c.test(e.charAt(C))?(n=e.charAt(C),C++):(n=i,T(d));else t=i;return t}function V(){var t,n,o;return t=C,n=function(){var t,n,o,a,c;t=C,91===e.charCodeAt(C)?(n=r,C++):(n=i,T(s));if(n!==i){if(o=[],(a=N())===i&&(a=C,a=(c=W())!==i?e.substring(a,C):c),a!==i)for(;a!==i;)o.push(a),(a=N())===i&&(a=C,a=(c=W())!==i?e.substring(a,C):c);else o=i;o!==i?(93===e.charCodeAt(C)?(a=u,C++):(a=i,T(p)),a!==i?t=n=h(o):(C=t,t=i)):(C=t,t=i)}else C=t,t=i;return t}(),n!==i?(o=function(){var t,n,o,a;t=C,40===e.charCodeAt(C)?(n=f,C++):(n=i,T(g));if(n!==i){if(o=[],(a=D())!==i)for(;a!==i;)o.push(a),a=D();else o=i;o!==i?(41===e.charCodeAt(C)?(a=w,C++):(a=i,T(m)),a!==i?t=n=b(o):(C=t,t=i)):(C=t,t=i)}else C=t,t=i;return t}(),o!==i?t=n=l(n,o):(C=t,t=i)):(C=t,t=i),t}function W(){var t,n,o,a;if(t=C,91===e.charCodeAt(C)?(n=r,C++):(n=i,T(s)),n!==i){for(o=[],(a=N())===i&&(a=W());a!==i;)o.push(a),(a=N())===i&&(a=W());o!==i?(93===e.charCodeAt(C)?(a=u,C++):(a=i,T(p)),a!==i?t=n=[n,o,a]:(C=t,t=i)):(C=t,t=i)}else C=t,t=i;return t}function N(){var t;return v.test(e.charAt(C))?(t=e.charAt(C),C++):(t=i,T(_)),t}function D(){var t;return x.test(e.charAt(C))?(t=e.charAt(C),C++):(t=i,T(y)),t}if((n=a())!==i&&C===e.length)return n;throw n!==i&&C0){var p=s[s.length-1];u=/[^a-zA-Z0-9!@#$%^&*~]/.test(p)}else if(i.length>o.length){var h=i[i.length-1],f=h[h-1];u=/[^a-zA-Z0-9!@#$%^&*~]/.test(f)}else i.length>0&&(u=!1,s=o.pop()+s);if(u&&(u=!/^\d/.test(t||"")),u)i.length>o.length?i[i.length-1]+=s:i.push(s),o.push(r);else{var g=s+r;i.length>o.length?i[i.length-1]+=g:i.push(g)}n=Ma.exec(t)}return t?i.length===o.length?i.push(t):i[i.length-1]+=t:i.length===o.length&&i.push(""),[i,o]}function Ba(e,t,n,i){var o,a;if(t instanceof RegExp)o=e.split(t),a=e.match(t);else{var r=t(e);o=r[0],a=r[1]}for(var s=new Array(2*o.length-1),c=0;c=0&&s<=.04?l=c<=.4?c:.4:s<=.6?(d=.6,l=c<=.45?c:.45):l=c<=.45?c:.45,p=l<=.2?l+.1:l-.1;var h=M(r,d,l),f=h[0],g=h[1],w=h[2],m=M(r,u,p);return{iconColor:"rgb("+f+","+g+","+w+")",iconHoverColor:"rgb("+m[0]+","+m[1]+","+m[2]+")",iconBgColor:"rgba("+f+","+g+","+w+", 0.06)"}}(t),b=m.iconColor,v=m.iconHoverColor,_=m.iconBgColor,x=V(t),y=va(t);return i=n(i,"#000002",o),i=n(i,"#000006",a),i=n(i,"#000003",g),i=n(i,"#000004",r),i=n(i,"#000005",d),i=n(i,"#000007",c),i=n(i,"#000008",l),i=n(i,"#000009",s),i=n(i,"#00000a",p),i=n(i,"#00000b",w),i=n(i,"#00000c",b),i=n(i,"#00000d",x),i=n(i,"#00000e",h),i=n(i,"#00000f",f),i=n(i,"#000010",v),i=n(i,"#000012",_),i=n(i,"#000013",y)},Ua=function(e){if(Ta)return Ta;var t=[].map((function(t){var n=t.family,i=t.filename;return'@font-face {font-family: "HindSiliguri'+n+'";src: url('+e("/visitorside/fonts/hindsiliguri-"+i+".woff2")+") format('woff2'),url("+e("/visitorside/fonts/hindsiliguri-"+i+".ttf")+") format('truetype')}"})).join("")+'@font-face{font-family:icons;src:url({FONT_URL_PREFIX}/icons.5312183de5c708f74390cf65df336e7e.eot?#iefix) format("embedded-opentype"),url({FONT_URL_PREFIX}/icons.5312183de5c708f74390cf65df336e7e.woff) format("woff"),url({FONT_URL_PREFIX}/icons.5312183de5c708f74390cf65df336e7e.ttf) format("truetype"),url({FONT_URL_PREFIX}/icons.5312183de5c708f74390cf65df336e7e.svg#icons) format("svg")}.icon{font-family:icons!important;font-style:normal;font-weight:400!important;display:inline-block;vertical-align:baseline;text-align:center;text-transform:none;text-rendering:auto;line-height:1;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-bot-active:before{content:"\\f101"}.icon-bot:before{content:"\\f102"}.icon-bubble-line:before{content:"\\f103"}.icon-bubble-line1:before{content:"\\f104"}.icon-bubble:before{content:"\\f105"}.icon-close:before{content:"\\f106"}.icon-coBrowsing-active:before{content:"\\f107"}.icon-coBrowsing:before{content:"\\f108"}.icon-drag:before{content:"\\f109"}.icon-embedded:before{content:"\\f10a"}.icon-facebook:before{content:"\\f10b"}.icon-googleplus:before{content:"\\f10c"}.icon-helpful:before{content:"\\f10d"}.icon-input-send:before{content:"\\f10e"}.icon-kb-active:before{content:"\\f10f"}.icon-kb-search:before{content:"\\f110"}.icon-kb:before{content:"\\f111"}.icon-kbSearch-active:before{content:"\\f112"}.icon-kbSearch:before{content:"\\f113"}.icon-media-active:before{content:"\\f114"}.icon-media:before{content:"\\f115"}.icon-minimize:before{content:"\\f116"}.icon-not-helpful:before{content:"\\f117"}.icon-plus:before{content:"\\f118"}.icon-popup:before{content:"\\f119"}.icon-rating-full:before{content:"\\f11a"}.icon-rating-half:before{content:"\\f11b"}.icon-sendfile:before{content:"\\f11c"}.icon-video:before{content:"\\f11d"}.icon-voice-active:before{content:"\\f11e"}.icon-voice:before{content:"\\f11f"}'.replace(/[{]FONT_URL_PREFIX[}]/g,e("/visitorside/fonts"))+"";return Ta=t,t},Ga=e(1)((function(e){return A(e)?"black":"white"})),Ka=function(e){var t=e;return Object.keys(t).forEach((function(e){Array.isArray(t[e])&&(t[e]=t[e].join(R))})),t},Ya=function(e){var t=Object.assign({},e);return Ka(t),"ticketId"in t&&(t.ticketId=""===t.ticketId||Number.isNaN(+t.ticketId)?void 0:t.ticketId),"department"in t&&(t.department=""!==t.department?t.department:W),t.custom&&(t.custom=Object.assign({},t.custom),Ka(t.custom)),t},Qa=function(e){return i("a",{href:"tel:"+("+"===e[0]?"":"+")+e,target:"_blank",rel:"noopener noreferrer"},e)},Za=function(e,t){if("string"!=typeof e)return e;var o=n.parse(e,{buildUrl:function(e){return t+"/svg/"+e+".svg"}}).filter((function(e){return!!e.url}));if(0===o.length)return e;for(var a=[],r=0,s=0;s=0},er=function(){return void 0===window.File},tr=[Jt,rn,Vt,qt,Ut,si,Xt,Ht,ci,nn,tn,Nt,Dt,on,Wt,Ot,Ft,Ln,En,qn,zn,Pn,$n,ei,ti,an,Tn,ii,oi,ai,Un,Gn,Yn,Qn,Zn,Kn,Bt,jn,Wn,Nn,Ni,Di,Pi,Ri,Ei,zi,Dn],nr=function(e){return C&&(e===On||e===bn||e===Bn||e===mn||e===In||e===Sn||e===Mn||e===An||e===xn||e===_n||e===yn||e===Cn||e===fn||e===hn||e===gn||e===wn||e===dn||e===cn||e===ln||e===un)},ir=function(e){return C&&(e===Wi||e===Oi||e===Ci||e===yi||e===ki||e===Ai||e===Bi||e===Mi||e===Si||e===bi||e===mi||e===vi||e===_i)},or=function(e){return tr.indexOf(e.type)<0};function ar(e){return e.type===$n||e.type===ti||e.type===ei||e.type===Vt||e.type===Nt||e.type===Dt||e.type===Yn||e.type===Kn}function rr(e){return e.type===qt||e.type===Ut||e.type===si||e.type===Jt||e.type===tn||e.type===nn||e.type===on||e.type===rn||e.type===jn||e.type===Nn||e.type===Wn}function sr(e){return e.type===Pn||e.type===Ln||e.type===En||e.type===zn||e.type===Un||e.type===Gn||e.type===qn||e.type===Qn||e.type===Zn}var cr=[zi];function dr(e){return cr.includes(e.type)}var lr=function(e){var t=e.type;return t===Pi||t===Ri};var ur=function(e,t){return[Ua(t),qa(".emoji{position:absolute;left:0;bottom:0;box-shadow:var(--shadow2-color);border-radius:4px;overflow:hidden;background-color:var(--whitePopup-color);--scrollbar-width:8px;--emoji-width:32px;--emoji-height:32px;--emoji-list-padding:12px;--emoji-category-title-height:22px;--emoji-font-size:22px;--emoji-column-count:8;--emoji-row-count:8;--emoji-list-width:var(--emoji-width) * var(--emoji-column-count) + var(--emoji-list-padding) * 2;--emoji-list-height:var(--emoji-height) * var(--emoji-row-count) + var(--emoji-category-title-height);--black-color:#000000;--white-color:#FFFFFF;--whiteFixed-color:#FFFFFF;--whiteFixed8-color:rgba(255, 255, 255, 0.08);--whiteFixed12-color:rgba(255, 255, 255, 0.12);--whitePopup-color:#FFFFFF;--blackLight-color:rgba(33, 33, 33, 0.2);--blackMid-color:#999999;--blackDark-color:#595959;--blackFixed-color:#212121;--blackToast-color:rgba(33, 33, 33, 0.8);--grey8-color:rgba(114, 114, 114, 0.08);--greyN2bg-color:#FCFCFC;--greyBackground-color:#F0F0F0;--greyMenu-color:#F0F0F0;--shadow1-color:0px 1px 6px 0px rgba(0, 0, 0, 0.2);--shadow2-color:0px 2px 6px 0px rgba(0, 0, 0, 0.08);--shadow3-color:1px 2px 12px 0px rgba(0, 0, 0, 0.16);--greyScrollbar-color:#BCBBBA;--greyScrollbarHover-color:#A1A1A1;--greyToast-color:#D3D3D3;--tableTitle-color:#EDEDED;--bubbleBackground-color:#FFFFFF;--replyBackground-color:#F0F0F0;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.emoji__scroll-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative;padding:var(--emoji-list-padding);width:calc(var(--emoji-list-width));height:calc(var(--emoji-list-height))}.emoji__cell{font-family:var(--emoji-font);font-size:var(--emoji-font-size);width:var(--emoji-width);height:var(--emoji-height);line-height:1;-ms-flex-preferred-size:var(--emoji-width);flex-basis:var(--emoji-width);display:-ms-flexbox;display:flex;-ms-flex:none;flex:none;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;outline:0;border-radius:4px;padding:4px}.emoji__cell img{width:100%;height:100%}.emoji__cell.emoji__cell--selected,.emoji__cell:focus,.emoji__cell:hover{outline:0;background-color:rgba(114,114,114,.08);text-decoration:none}.window__chat{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;overflow:auto;overflow:overlay;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;width:100%;padding:24px 24px 0;scroll-behavior:smooth}.chat__greetingContainer .window__chatSystemMessage,.chat__greetingContainer .window__formGreeting{margin-bottom:0;color:#000}.chat__greetingContainer .window__chatSystemMessage a[href],.chat__greetingContainer .window__formGreeting a[href]{color:#00000c}.window--mobile .window--bubble .chat__greetingContainer{margin-bottom:16px}.window__chat--animation{animation:fadeInUp 458ms cubic-bezier(.785,.135,.15,.86) both;animation-delay:.3s}.window--ie .window__chat--animation{animation:none}.window__chatSystemMessage{color:#666;font-size:.86666667rem;line-height:1.38461538;text-align:center;animation:message--show 458ms cubic-bezier(.785,.135,.15,.86);word-wrap:break-word}.window--bubble .window__chat .window__chatSystemMessageContent{background:#f8f8f8;font-size:.86666667rem;line-height:1.38461538;padding:8px 14px;border-radius:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.window--bubble .chat__greetingContainer .window__chatSystemMessageContent{display:block}.window__chatSystemMessage a,.window__chatSystemMessage a[href]{color:#00000c;text-decoration:underline}.window__chatSystemMessage:hover a,.window__chatSystemMessage:hover a[href]{color:#000003;text-decoration:underline}.window--rtl .window__chatSystemMessage svg{right:-3px}.window__chatSystemMessage:hover svg{fill:#000010}.system-message-button{background-color:rgba(33,33,33,.04);padding:4px 12px;font-size:.93333333rem;line-height:1.42857143;border-radius:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:4px}.system-message-button a,.system-message-button a[href]{color:#00000c;text-decoration:none!important}.system-message-button svg{fill:#00000c}.system-message-button:hover{background-color:rgba(33,33,33,.08)}.window__chatAgent,.window__chatVisitor{display:-ms-flexbox;display:flex;animation:message--show 458ms cubic-bezier(.785,.135,.15,.86);position:relative}.window__chatAgent+.window__chatSystemMessage,.window__chatVisitor+.window__chatSystemMessage{margin-top:16px}.window__chatAgent{scroll-margin-top:20px}.window__chat>div{padding-bottom:15px}.window__chat>div>div+div{margin-top:12px}.window__chat>div>div+div:has(.taskbot_component_container)+.window__chatSystemMessage{margin-top:16px}.window__chat>div>div+div>.chat-message-time{position:absolute;margin-bottom:6px}.window__chat>div>div+div>.chat-message-time+.chat-visitor-message{margin-top:24px}.window__chat>div>div.botConfidenceAnswerDiv>div.window__chatAgent+div.window__chatAgent,.window__chat>div>div.botConfidenceAnswerDiv>div.window__chatVisitor+div.window__chatVisitor{margin-top:8px}.window__chat>div>div.botConfidenceAnswerDiv>div+div{margin-top:16px}.window__chat>div>div.botConfidenceAnswerDiv>div+div>.chat-message-time{position:absolute;margin-bottom:4px;top:0;right:0}.window__chat>div>div.botConfidenceAnswerDiv>div+div>.chat-message-time+.chat-visitor-message{margin-top:24px}.window--ie .window__chatAgent,.window--ie .window__chatSystemMessage,.window--ie .window__chatVisitor{animation:none}.window__chatVisitor{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.agentMessage__avatar{margin-right:8px;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-negative:0;flex-shrink:0}.agentMessage__avatarImg{display:block;width:24px;height:24px;border-radius:100%;margin-bottom:15px}.agentMessage__pci{background:#f0f0f0;border:1px solid #ddd;border-radius:4px;padding:23px 20px 12px}.agentMessage__pciField{margin-bottom:7px;color:#888}.agentMessage__pciControl{margin-bottom:12px}.agentMessage__pciControl .form__input{height:30px;line-height:30px;width:calc(100% - 20px)}.window__chatAgentMessage p{margin:0}.window--circular .window__chatAgentMessage,.window--circular .window__chatVisitorMessage{border-radius:20px}.window__chatAgentMessage,.window__chatVisitorMessage{position:relative;font-size:.93333333rem;line-height:1.42857143;padding:15px 19px;word-wrap:break-word;word-break:break-word;border-radius:12px;border:1px solid #f5f5f5}.window__chatAgentMessage.message__long,.window__chatVisitorMessage.message__long{width:100%;max-width:840px}.window__chatAgentMessage{margin-right:32px}.window__chatAgentMessage.message__long{margin-right:unset}@media (min-width:601px) and (max-width:960px){.window__chatAgentMessage,.window__chatVisitorMessage{max-width:75%}.window__chatAgentMessage.message__long,.window__chatVisitorMessage.message__long{width:87.5%}}@media (min-width:961px){.window__chatAgentMessage,.window__chatVisitorMessage{width:auto;max-width:720px}.window__chatAgentMessage.message__long,.window__chatVisitorMessage.message__long{width:840px;max-width:840px}}.window__chatAgentMessage_container .chat-message-extra-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:24px;margin-bottom:2px}.window__chatAgentMessage_container .chat-message-extra-info>.chat-message-time{margin-left:8px}.window__chatAgentMessage_container .window__chatAgentMessage{display:inline-block;border-top-left-radius:0}.window__formMessageContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.window--rtl .window__formMessageContainer{direction:rtl}.window__formMessage{padding:16px 20px;word-wrap:break-word;word-break:break-word;border-radius:12px;width:100%;max-width:640px;background-color:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 2px 6px 0 rgba(0,0,0,.08)}.window__formMessage .window__formGreeting{text-align:left;color:#000}.window--ie .window__chatVisitorMessage{margin-left:auto}.window__chatAgentMessage{border-top-left-radius:0}.window__chatVisitorMessage{margin-left:32px;background-color:#000001;color:#000;border-top-right-radius:0}.window__chatVisitorMessage.message__long{margin-left:unset}@keyframes bounceOut{20%{width:5px;height:5px;border-radius:5px;opacity:1}50%,55%{width:8px;height:8px;border-radius:8px;opacity:1}to{width:2px;height:2px;border-radius:2px;opacity:0}}.dot_container{width:20px;height:20px;position:absolute;left:-20px;bottom:14px}.message--notSeen,.message--seen{display:inline-block;background:#00000c;width:6px;height:6px;border-radius:6px;position:relative;left:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);fill:#00000c}.message--seen{animation:bounceOut .5s linear forwards}.window--rtl .dot_container{left:-35px}.window--ie9 .message--seen{display:none}.file__icon--cancel{float:right;width:20px;height:20px;position:relative;z-index:9}.file__icon--cancel svg{fill:#727272}.file__icon--cancel svg:hover{fill:#000010}.window__chatMessageOrignal{display:block;opacity:.85}.window__chatMessageTranslatedTag{display:inline}.window__chatAgentMessage img:not(.emoji-char){display:inline-block}img.emoji-char{height:1.2em;width:1.2em;margin:0 .05em 0 .1em;vertical-align:-.2em}img.emoji-char-large{height:2em;width:2em;margin:0 .05em 0 .1em;vertical-align:-.2em}.invitation__message img.emoji-char-large,.window__chatMessageOrignal img.emoji-char-large{height:1.2em;width:1.2em;margin:0 .1em;vertical-align:-.2em}.window__chatAgentMessage .chatMessage__questionList li{color:#00000a;line-height:1;margin-bottom:10px}.window__chatAgentMessage .chatMessage__questionList li span{margin-right:5px;display:inline-block;-ms-flex-negative:0;flex-shrink:0}.window__chatAgentMessage .chatMessage__questionList li:last-child{margin-bottom:0}.window__chatAgentMessage .chatMessage__questionList li a[href]{border-bottom-color:transparent}.chat-message--img a,.chat-message--video video{min-height:60px!important;border-bottom:none!important;overflow:hidden}.window__chatAgentMessage .chatMessage__questionList li a[href]:active,.window__chatAgentMessage .chatMessage__questionList li a[href]:focus,.window__chatAgentMessage .chatMessage__questionList li a[href]:hover{text-decoration:underline}.window__chatAgentMessage a[href]:active,.window__chatAgentMessage a[href]:focus,.window__chatAgentMessage a[href]:hover{text-decoration:underline}.chat-message--img a{max-width:200px!important;max-height:200px!important;min-width:60px!important;display:block}.chat-message--video video{max-width:250px!important;max-height:250px!important;min-width:60px!important}.chat-message--img .image-container{margin:0 auto;height:100%}.chat-message--img img,.chat-message--video video{display:block;margin:0 auto;border:none}.window__chatAgentMessage a[href],.window__chatVisitorMessage a[href]{color:#323dbf;border-bottom:1px solid #323dbf}.window__chatAgentMessage a[href]:hover,.window__chatVisitorMessage a[href]:hover{text-decoration:none}.window__chatAgentMessage a,.window__chatVisitorMessage a{max-width:100%}.window__chatVisitorMessage button{border:none;background:0 0;cursor:pointer}@keyframes message--show{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:translateY(0)}}.chat-time{opacity:0;color:#fff;font-size:.86666667rem;background:rgba(0,0,0,.6);padding:0 5px;line-height:1.38px;border-radius:8px;transition:opacity 50ms linear;position:absolute;z-index:1}.chat-message-time{font-size:.8rem;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif,Arial!important;color:#727272;line-height:2}.window__chatAgentName,.window__chatVisitorName{font-size:.8rem;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,sans-serif,Arial!important;font-weight:500;color:#000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5}.window--classic .window__chat.window__chat--showChatWithAgent{padding-bottom:40px}.chat-message--img,.window__chatAgentMessage.chat-message--video,.window__chatVisitorMessage.chat-message--video{padding:0}.window__chatAgentMessage{background:#fff;color:#000}.window__chatAgentMessage--file,.window__chatVisitorMessage--file{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;overflow:hidden;max-width:200px;margin:-4px 0}.window__chatAgentMessage--file a[href],.window__chatAgentMessage--file span.file,.window__chatVisitorMessage--file a[href],.window__chatVisitorMessage--file span.file{color:#000;border:none;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.window__chatAgentMessage--file .icon-file,.window__chatVisitorMessage--file .icon-file{width:28px;height:28px;background-color:#00000a;border-radius:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0}.window__chatAgentMessage--file .icon-file svg,.window__chatVisitorMessage--file .icon-file svg{fill:#fff}.window__chatAgentMessage--file .file-name,.window__chatVisitorMessage--file .file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.window__chatAgentMessage--file .file-ext,.window__chatVisitorMessage--file .file-ext{-ms-flex:none;flex:none}.window__chatAgentMessage--file .icon-sendfile,.window__chatVisitorMessage--file .icon-sendfile{color:#00000c}.file--percent{height:100%;width:0%;background-color:#000001;opacity:.2;position:absolute;top:0;left:0;border-top-left-radius:12px;border-bottom-left-radius:12px}.window_chatError{position:absolute;z-index:99;left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);font-size:.86666667rem;line-height:1.53846154;width:100%;text-align:left;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;background-color:#fff;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 2px 6px 0 rgba(0,0,0,.08);bottom:0;padding:8px 12px;border-radius:8px}.window_chatError svg{fill:#be1300;-ms-flex-negative:0;flex-shrink:0}.kbsearch__container .window_chatError,.window--mobile .kbsearch__container .window_chatError,.window--mobile .window--bubble .window__kb_formContainer .window_chatError{width:calc(100% - 88px)}.form-bottom .window_chatError{width:100%}.window--bubble .window__kb_formContainer .window_chatError{width:calc(100% - 38px)}.window--circular .window_chatError{border-radius:20px}.chatError__container{position:absolute;top:-12px;left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);width:100%;max-width:860px}.window_chatErrorClose{line-height:12px;cursor:pointer;background:0 0;border:none}.window_chatErrorClose svg{width:20px;height:20px}.window_chatErrorMessage{-ms-flex-positive:1;flex-grow:1}.window_chatError--urgency .window_chatErrorClose svg{fill:#be1300}.window_chatError--mitigate svg{fill:#A05700}.window_chatError i{vertical-align:bottom}.window_chatError--mitigate{color:#A05700}.window_chatError--urgency{color:#be1300;font-size:.86666667rem;line-height:1.53846154}.window--bubble .window__chatAgentMessage--file,.window--circle .window__chatAgentMessage--file::before{color:#000004}.window--circle .window__chat.window__chat--showChatWithAgent{padding-bottom:40px}.window--bubble .window__chat>div{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.window--bubble .window__chatAgent{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.window--bubble .window__chatVisitor{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.window--bubble .chat-time{font-size:.86666667rem;padding:0 5px;top:0}.window--bubble .icon-bubble-line{position:absolute;width:10px;bottom:-1px}.window--bubble .icon-bubble-line .svgPath{width:auto;height:auto}.window--bubble .window__chatVisitorMessage{max-width:calc(100% - 50px)}.window__chatVisitorMessage .chat-message--loading{position:absolute;left:-30px;top:50%;margin-top:-11px}.window--bubble .window__chat{padding:42px 15px 0 27px;margin-bottom:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.window--bubble .window__chat.window__chat--showChatWithAgent{padding-bottom:40px}.window--bubble .window--bubble__messageNoAvatar{margin-left:0;padding-left:15px;display:block}.chatMessage__questionList{margin-top:19px}.chatMessage__questionList li>a{display:inline}.chatMessage__questionList--disc{list-style-type:disc;padding-left:20px}.window__chatAgentMessage .chatMessage__questionList.chatMessage__questionList--disc li{display:list-item}.window__chatAgentMessage .btn{margin-top:16px}.chatMessage__chatBotRate__wrapper{position:absolute;right:-50px;bottom:0;width:40px}.chatMessage__chatBotRate{position:absolute;right:2px;-ms-flex-item-align:end;align-self:flex-end}.chatMessage__chatBotRate>button{width:24px;height:24px;border-radius:100%;background-color:#fff;box-shadow:0 0 4px 0 rgba(0,0,0,.16);cursor:pointer;border-width:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.chatMessage__chatBotRate>button svg{fill:#595959}.chatMessage__chatBotRate>button:hover{background-color:#00000a}.chatMessage__chatBotRate>button:hover svg{fill:#fff}.chatMessage__chatBotRate>button.chatMessage__chatBotRate--selected,.chatMessage__chatBotRate>button.chatMessage__chatBotRate--selected:hover{background-color:#00000a;color:#fff;cursor:default}.chatMessage__chatBotRate>button.chatMessage__chatBotRate--selected svg,.chatMessage__chatBotRate>button.chatMessage__chatBotRate--selected:hover svg{cursor:default;fill:#fff}.chatMessage__chatBotRate>button.chatMessage__chatBotRate--disabled,.chatMessage__chatBotRate>button.chatMessage__chatBotRate--disabled:hover{background-color:rgba(255,255,255,.7);cursor:default}.chatMessage__chatBotRate>button.chatMessage__chatBotRate--disabled svg,.chatMessage__chatBotRate>button.chatMessage__chatBotRate--disabled:hover svg{cursor:default;fill:rgba(21,21,21,.2)}.chatMessage__chatBotRate>button.chatMessage__chatBotRateLast{margin-top:6px}.taskbot_item_content.message__long~.chatMessage__chatBotRate{position:absolute;right:0;-ms-transform:translateX(50%);transform:translateX(50%)}.window__chatWithAgent{z-index:9;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px;height:23px;text-align:center;padding-right:15px;padding-left:15px;background:0 0;border:none;cursor:pointer}.window__chatWithAgent--above:focus,.window__chatWithAgent--above:hover{border:1px solid #000003;color:#000003}.window__chatWithAgent--above{padding:4.5px;font-size:.86666667rem;line-height:1.25;height:27px;width:175px;border-radius:5px;border:1px solid #00000a;color:#00000a;background-color:#fff;position:absolute;top:-37px;left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%)}.window--circular .window__chatWithAgent--above{border-radius:20px}.window__chatWithAgent--bottom:focus,.window__chatWithAgent--bottom:hover{color:#000003}.window__chatWithAgent--bottom{color:#00000a;font-size:.8rem;line-height:1.12;height:1rem;padding-left:12px;float:left}.window__chat .dot{position:relative;top:-1px;height:22px}.window__chat .dot__element{display:inline-block;width:4px;height:4px;border-radius:100%;margin-right:5px;background:#000005;fill:#000005}.window__chat .bot-loading-step{min-width:28px;height:22px;position:relative}.window__chat .bot-loading-step img{position:absolute;display:block!important;height:28px;top:-2px;left:0;right:0;margin:0 auto}.window__chat .step-enter-start img{-ms-transform:scale(0);transform:scale(0)}.window__chat .step-entering img{-ms-transform:scale(1);transform:scale(1);transition:transform .3s ease-out}.window__chat .step-leave-start img{-ms-transform:scale(1);transform:scale(1)}.window__chat .step-leaving img{-ms-transform:scale(0);transform:scale(0);transition:transform .2s ease-out}.window__chat [hidden]{display:none}@media screen and (-ms-high-contrast:active){.window__chat .dot__element{background:#fff;fill:#fff}.window__chat .bot-loading-step{color:#fff}}.window__chat .dot__element:last-child{margin-right:0}.animated-delayFrames7{animation-delay:292ms}.animated-delayFrames10{animation-delay:417ms}.animated-delayFrames13{animation-delay:542ms}.amimated-infinite{-webkit-animation-iteration-count:infinite}@keyframes dot__element--loadingAnimation{0%,100%,50%{transform:translateY(0)}25%{transform:translateY(-8px)}}.window__chat .dot__element--loadingAnimation{animation-name:dot__element--loadingAnimation;animation-duration:1s;animation-iteration-count:infinite}.window--ie .webView_background .webView_scroll_container,.window--ie .window__chat .dot__element--loadingAnimation{animation:none}.window--bubble .chat-message--imgLoading,.window--circle .chat-message--imgLoading,.window--classic .chat-message--imgLoading{width:62px;height:62px;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.chat-message__secure-form span{display:block;position:absolute;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);top:50%;left:50%}.window_bot__secureForm{margin-top:16px}.postchatFormContainer{position:absolute;top:80px;bottom:30px;overflow:auto;overflow-x:hidden;padding:30px 50px;width:100%;-ms-transform:translateY(450px);transform:translateY(450px);opacity:0}.postchatFormContainer__greeting{margin-bottom:20px}.postchatFormContainer__submitContainer{text-align:center}@keyframes fadeInUp--windowFormContainer{0%{opacity:0;transform:translateY(375px)}100%{opacity:1;transform:translateY(0)}}.window__ssoLogin{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;-webkit-overflow-scrolling:touch;overflow-y:scroll}.window__ssoLogin iframe{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;background-color:#fff}.window--bubble .window__ssoLogin{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:1;flex-grow:1}.window--bubble .window__ssoLogin iframe{display:block;width:100%;height:100%;min-height:456px;background-color:#fff}.window_buttons_container .window_buttons_item{margin-top:12px;text-align:center;cursor:pointer}.window_buttons_container .window_buttons_item li{min-width:150px;margin-top:4px}.window_buttons_container .window_buttons_item button{border:none;border-radius:8px;background:#00000a;color:#00000e;cursor:pointer;padding:7px 24px;width:100%;font-size:.93333333rem;line-height:1.28571429;font-weight:600}.window_buttons_container .window_buttons_item--active button:hover{background:#000003!important;color:#00000e}.window_buttons_container .window_buttons_item--disable button{background-color:#e8e8e8!important;color:#626262!important;cursor:default}.webView_background{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.6);border-radius:12px 12px 0 0;z-index:1000}.webView_background .webView_scroll_container{width:100%;position:absolute;height:100%;bottom:0;max-height:100%;animation:fadeInUp 458ms cubic-bezier(.785,.135,.15,.86) both}.webView_background .webView_scroll_container--compact{max-height:300px}.webView_background .webView_scroll_container--full{max-height:530px}.webView_background .webView_scroll_container--tall{max-height:415px}.webView_background .webView--scroll{width:100%;position:relative;height:calc(100% - 40px);overflow:-moz-scrollbars-none;-ms-overflow-style:none}.webView_background .webView__title{width:100%;text-align:center;background-color:#fff;height:40px;border-bottom:1px solid #ddd;line-height:40px;border-radius:5px 5px 0 0}.webView_background .webView__title h1{font-weight:400;margin:0;width:200px;font-size:inherit;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}.webView_background .webView__close{position:absolute;right:10px;cursor:pointer;z-index:9999;fill:#5d5d5d;background:0 0;border:none;padding:6px 16px 0;width:40px;height:40px;top:0}.webView_background .webView{background:#fff}.webView_background .webView .box-field{margin-top:15px;padding:0 30px}.webView_background .webView__content{height:100%}.window--bubble .webView_scroll_container--compact{max-height:330px}.window--bubble .webView_scroll_container--full{max-height:560px}.window--bubble .webView_scroll_container--tall{max-height:445px}.window--bubble .webView_scroll_container{padding-top:30px}.window--bubble .webView__close{top:30px}.window_quick_reply_container_box{width:100%;display:-ms-flexbox;display:flex;padding:0 16px;position:relative;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around}.window_quick_reply_container_box i{cursor:pointer}.window_quick_reply_container_box .window_quick_reply_buttons_item{width:auto;min-width:75px;background-color:#fff;color:#00000c;border:1px solid #00000c;cursor:pointer;display:inline-block;padding:0;overflow:hidden;max-width:260px;line-height:25px;white-space:nowrap;margin-right:12px;border-radius:8px;margin-bottom:12px;text-overflow:ellipsis}.window_quick_reply_container_box .window_quick_reply_buttons_item .window_quick_reply_buttons_item_inner{width:100%;height:100%}.window_quick_reply_container_box .window_quick_reply_buttons_item .window_quick_reply_buttons_item_inner>span{display:inline-block;padding:0 12px;height:100%;width:100%}.window_quick_reply_container_box .window_quick_reply_buttons_item:hover{background-color:#00000c;color:#fff}.window_quick_reply_container_box .window_quick_reply_buttons{width:100%;margin:0;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;-ms-flex-align:center;align-items:center;padding-left:0;-ms-flex-line-pack:center;align-content:center;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:start;justify-content:flex-start;display:-ms-flexbox;display:flex}.window_quick_reply_container_box .window_quick_reply_buttons.one_reply_item{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}.window_quick_reply_container_box .window_quick_reply_buttons.one_reply_item>.window_quick_reply_buttons_item{margin:0}.window_quick_reply_container_box .window_quick_reply button:last-child{margin-right:0}.window_quick_reply_container_box .window_quick_reply_control+.window_quick_reply{width:calc(100% - 40px)}.botconfirm_list{padding:20px;min-width:190px}.botconfirm_list li{margin-bottom:10px}.botconfirm_list li p{margin:0}.botconfirm_list li p:first-child{color:#666;margin:0}.window__chatAgentMessage .window_botAnswer_richText a[href]{border-bottom:none}.window__chatAgentMessage .window_botAnswer_richText a[href]:hover{border-bottom:1px solid #323dbf}.window__chatAgentMessage .window_botAnswer_richText--disable a[href^=\"intent:\"]{color:#888}.visually-hidden{position:absolute;left:-10000px;width:1px;height:1px}.visually-hidden:focus,.visually-hidden:hover{outline:0;border:none}.window__chatAgentMessage.bot_item_content.chat-message--img{padding:1px}.window__chatAgentMessage.bot_item_content.chat-message--img a{max-width:244px!important;min-height:10px!important}.window__chatAgentMessage h1,.window__chatAgentMessage h2,.window__chatAgentMessage h3,.window__chatAgentMessage h4,.window__chatAgentMessage h5,.window__chatAgentMessage h6{margin-block-start:.5rem;margin-block-end:.5rem}.window__chatAgentMessage h1{font-size:.93333333rem;line-height:1.28571429;font-weight:600}.window__chatAgentMessage h2,.window__chatAgentMessage h3,.window__chatAgentMessage h4{font-size:.93333333rem;line-height:1.28571429;font-weight:500}.window__chatAgentMessage h5{font-size:.86666667rem;line-height:1.38461538;font-weight:500}.window__chatAgentMessage h6{font-size:.8rem;line-height:1.33333333;font-weight:500}.window__chatAgentMessage hr{border:0;border-top:1px solid rgba(33,33,33,.2);margin-block-start:.67rem;margin-block-end:.67rem}.window__chatAgentMessage sub{font-size:.66666667rem;line-height:1.2}.window__chatAgentMessage blockquote{font-style:italic;color:#212121}.window__chatAgentMessage code{white-space:normal}#downloadTranscript,#emailTranscript{margin-top:8px}#startChatAgain{margin-top:16px}",e)].join("")},pr=function(e){var t=/[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}/gi.exec(e);return t?t[0]:e},hr=function(e){return e.filter((function(e){return"string"==typeof e.id})).reduce((function(e,t){var n,i=e;return t.type===jo?i.name=t.value:t.type===Fo?i.email=t.value:t.type===Vo?i.phone=t.value:t.type===Wo?i.company=t.value:t.type===No?i.product=t.value:t.type===Do?i.department=t.value:t.type===Ro?i.rating=t.value:t.type===Eo?i.comment=t.value:t.type===zo?i.subject=t.value:t.type===Lo?i.content=t.value:t.type===Ho?i.attachment=t.value:t.type===Po?i.ticketId=t.value:t.type===Zo?i.captcha=t.value:i.custom?i.custom[pr(t.id)]=t.value:i.custom=((n={})[pr(t.id)]=t.value,n),i}),{})},fr=e(1)((function(e){var t,n,i;if(null==e)return[];for(var o=[],a=((t={})[ca]=Mn,t[da]=An,t[la]=Sn,t[oa]=gn,t[sa]=wn,t[ra]=hn,t),r=((n={})[ha]=ki,n[ga]=Si,n[pa]=yi,n[fa]=Si,n[wa]=Ai,n),s=((i={})[$n]=Vt,i[ri]=zt,i[li]=kn,i[di]=pn,i[hi]=Rt,i[fi]=Et,i[gi]=Lt,i[Ti]=xi,i),c=e.length-1;c>=0;c-=1){var d=e[c],l=void 0;if(d.type===ui||d.type===pi){var u=d.content;d.type===ui&&(l=u===ca?In:fn),d.type===pi&&(l=a[u])}else if(d.type===ji||d.type===Fi||d.type===Vi){var p=d.content;d.type===ji&&(l=Ci),d.type===Fi&&(l=r[p]),d.type===Vi&&(l=Bi)}else l=s[d.type];l&&o.push({type:l,guid:d.guid,sender:d.sender,content:void 0===d.content?"":d.content,isPassword:d.isPassword,isSuggestionsAdopted:d.isSuggestionsAdopted,isVisitorQuestionSuggestionsEnabled:d.isVisitorQuestionSuggestionsEnabled,isCollect:d.isCollect,quickReplyNextActionId:d.quickReplyNextActionId||k})}return o.reverse()})),gr=e(1)((function(e,t){if(null==t)return[];for(var n=[],i=t.length-1;i>=0;i-=1){var o=t[i];o.type===ti&&o.content.fileKey&&n.push({type:Gi.sendFile,chatGuid:e,fileName:o.content.fileName,fileKey:o.content.fileKey,isUseStandbyFileService:o.content.isUseStandbyFileService})}return n.reverse()})),wr=function(e){return!/^\s*$/.test(e)},mr=function(e,t){return e/t>3.34?{height:"100%"}:e/t<.3?{width:"100%"}:e===t?{width:"100%",height:"100%"}:e>60&&t>60?e>t?{width:"100%"}:{height:"100%"}:e>t?{height:60}:e3.34?{width:200,height:60}:e/t<.3?{width:60,height:200}:e>=200&&e>t?{width:200}:t>=200&&t>e?{height:200}:null},vr=function(e,t,n,i){return t?e+"?maxWidth=200&maxHeight=200":n/i>3.34?e+"?maxHeight=60":n/i<.3?e+"?maxWidth=60":e+"?maxWidth=200&maxHeight=200"},_r=e(1)((function(e,t,n){return B(n,"guid",e)>B(n,"guid",t)})),xr=e(1)((function(e,t){var n=e.filter((function(e){return e.guid===t}));if(n.length>0){var i=n[0];return i.type===qt||i.type===Ut||i.type===tn||i.type===nn||i.type===on||i.type===jn||i.type===Wn||i.type===Nn}return!1})),yr=e(1)((function(e,t){for(var n=e.length-1;n>=0;n-=1){var i=e[n];if(i.guid===t)return t;if(i.type===qt||i.type===Ut||i.type===tn||i.type===nn||i.type===on||i.type===jn||i.type===Nn||i.type===Wn)return i.guid}return t})),Cr=[$n,ei,ti,ni,ii,oi,"postChatSuccess",ai,ri,si,ci,di,li,ui,pi,hi,fi,gi,Fn,Ti,ji,Fi,Vi],kr=function(e){return 0===e.type.indexOf("image")},Sr=function(e){return kr(e)&&/.*[.](jpg|png|jpeg|bmp)$/i.test(e.name.toLowerCase())},Ir=function(e){return new Promise((function(t,n){var i=new FileReader;i.onload=function(){t(i.result,e)},i.onerror=n,i.readAsDataURL(e)}))},Mr=function(e,t){return new Promise((function(n,i){var o=new Image;o.onload=function(){var e=document.createElement("canvas"),i=e.getContext("2d");e.width=o.width,e.height=o.height,i.drawImage(o,0,0,o.width,o.height);var a=e.toDataURL(t,.5);n({data:a,originalSize:{width:o.width,height:o.height}}),e.width=0,e.height=0},o.onerror=i,o.src=e}))};function Ar(e,t){return Br.apply(this,arguments)}function Br(){return(Br=N(E().mark((function e(t,n){var i,o;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return i=e.sent,e.next=5,i.blob();case 5:return o=e.sent,e.abrupt("return",new File([o],n||(new Date).toISOString().replace(/[.:]/g,"-")+".png",{type:o.type}));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Or=function(e){return new Promise((function(t,n){var i=new Image;i.onload=function(){t({width:i.width,height:i.height})},i.onerror=n,i.src=e}))},Tr=function(){var e=document.createElement("canvas");return!!(e.getContext&&e.getContext("2d")&&e.toDataURL)},jr=function(e){return new Promise((function(t,n){var i=new Image,o=document.createElement("canvas"),a=o.getContext("2d"),r=!0;i.onload=function(){o.width=i.width,o.height=i.height,a.drawImage(i,0,0);for(var e=a.getImageData(0,0,o.width,o.height).data,n=0;n=t.size)){e.next=17;break}return e.abrupt("return",t);case 17:if(!(s.size/t.size<=.02)){e.next=21;break}return e.abrupt("return",t);case 21:return e.next=23,jr(s);case 23:if(!e.sent){e.next=25;break}return e.abrupt("return",t);case 25:return e.next=27,Or(a);case 27:if(c=e.sent,r.width===c.width&&r.height===c.height){e.next=30;break}return e.abrupt("return",t);case 30:return e.abrupt("return",s);case 31:return e.abrupt("return",t);case 34:return e.prev=34,e.t0=e.catch(0),e.abrupt("return",t);case 37:case"end":return e.stop()}}),e,null,[[0,34]])}))),Vr.apply(this,arguments)}var Wr=function(e,t,n){if(!t)return e;if(Nr(e)===Nr(n))return e;var i=null;try{i=e.split(/fileservice\/v1\/files\//i)[1]}catch(e){}return i?t+"/files/"+i:e},Nr=function(e){var t=e.match(/^https?:\/\/([^\/]+)/);if(t&&t[1])return t[1]},Dr=function(e,t){return t?e.replace(/^https:\/\/[\w.-]+/,t):e};var Pr=D.site_id,Rr=function(e){return/^\d+$/.test(e)?+e:void 0}(D.chatGroup),Er=function(){return Array.prototype.map.call(D.chat_buttons,(function(e){return e.code_plan||e.id})).filter((function(e){return e}))},zr=function(e,t){var n=Array.prototype.find.call(D.chat_buttons,(function(n){return!n.code_plan||t>0&&n.code_plan.toString()===t.toString()||("number"==typeof n.code_plan?n.code_plan===e:n.code_plan.toLowerCase()===e)}));if(n)return n.div_id;if(D.dynamic){var i=Array.prototype.find.call(D.chat_buttons,(function(e){return null==e.code_plan}));return i&&i.div_id}},Lr=D.openType,Hr=D.onReady;var qr,Ur,Gr,Kr,Yr,Qr=D.main_code_plan,Zr=function(e){if(e)switch(e.includes("-")?e.split("-")[0].toLowerCase():e.toLowerCase()){case"arabic":case"ar":return"arabic";case"bulgarian":case"bg":return"bulgarian";case"german":case"de":return"german";case"greek":case"el":return"greek";case"english":case"en":return"english";case"spanish":case"es":return"spanish";case"french":case"fr":return"french";case"italian":case"it":return"italian";case"japanese":case"ja":return"japanese";case"dutch":case"nl":return"dutch";case"portuguese":case"pt":return"portuguese";case"russian":case"ru":return"russian";case"turkish":case"tr":return"turkish";case"simplifiedchinese":case"zh":case"cn":return"simplifiedChinese";default:return console.warn("Language "+e+" is not supported. Valid values are "+["arabic","bulgarian","german","greek","english","spanish","french","italian","japanese","dutch","portuguese","russian","turkish","simplifiedChinese"]),e}},Jr=0,Xr=function(e){function t(){qr===Ur&&(qr=qr.slice())}function n(e){if("function"!=typeof e)throw new Error("Invalid listeners, expected a function.");var n=!0;return t(),qr.push(e),function(){n&&(t(),qr.splice(qr.indexOf(e),1),n=!1)}}function i(){Jr>0||(Ur=qr,qr.forEach((function(e){return e()})))}return Ur=qr=[],function(t,o,a){var r,s=e(t,o,a),c=(r=s.dispatch,function(e){if(!e||!e.type||"@@redux/batch"!==e.type)return r(e);var t=[].concat(e.payload);return Jr+=t.length,t.reduce((function(e,t){Jr-=1;try{return r(t)}catch(e){throw e}}),null)});return s.subscribe(i),Object.assign({},s,{dispatch:c,subscribe:n})}},$r="config/updateConfig",es="config/setMaxMessageLength",ts="config/updateServerInstanceTag",ns="config/updateUrl",is="page/setButtonIsOnline",os="page/updateVisitor",as="page/resetVisitor",rs="page/showInvitation",ss="papge/showInvitationProcessing",cs="addVisitorNavigation",ds="emptyVisitorNavigation",ls="page/setIsSubmitSSO",us="page/setSSOArtifact",ps="page/setSSOJwt",hs="chatWindow/open",fs="chatWindow/popOut",gs="chatWindow/popIn",ws="chatWindow/showTab",ms="chatWindow/chatInputWarning",bs="chatWindow/restrictedWordsError",vs="chatWindow/update-position",_s="chatWindow/toggle-toolbox",xs="chatWindow/reset",ys="chatWindow/restoreCrossSiteChat",Cs="chatWindow/updateChatWindowGreetingMessage",ks="entities/updateCampaign",Ss="entities/updateButton",Is="entities/button/visible",Ms="entities/updateAgent",As="entities/updateFields",Bs="entities/updateDepartment",Os="footer/chatToolRating",Ts="footer/chatToolAudio",js="footer/chatToolVideo",Fs="footer/chatToolScreenSharing",Vs="invitaton/accept",Ws="invitaton/refuse",Ns="web/showInvitation",Ds="page/buttonClick",Ps="page/setSkipPreChat",Rs="page/updateSize",Es="page/updateOrientation",zs="page/updatePageVisitorStatus",Ls="window/update-upload",Hs="window/sucess-file",qs="window/fail-file",Us="sso/updateSSO",Gs="window/update-messages",Ks="window/remove-agent-is-typing",Ys="window/sendText",Qs="window/sendFile",Zs="window/sendImage",Js="window/startWaiting",Xs="window/startChatBot",$s="window/updateChatBot",ec="window/updateChatBotContext",tc="window/updateFieldsFromBotAction",nc="window/addSystemMessage",ic="window/updateChatIdentity",oc="window/updateMaxReadId",ac="window/updateWindowId",rc="window/closeMinimizeBubble",sc="window/togglePopupBubble",cc="window/addPendingMessage",dc="window/updateMaxAgentReadId",lc="window/updateMaxVisitorReadId",uc="window/updateVisitorStatus",pc="window/updateChatVersion",hc="window/updateEmailToSendTranscript",fc="window/ssoLoginInPopUp",gc="window/ssoLoginInSelf",wc="window/updateTransferCampaignId",mc="window/updateRequestFromAnotherDone",bc="window/updateCrossSiteTransfer",vc="window/updateConfigTransferSite",_c="window/updateTransferVisitorGuid",xc="window/updateRatingFieldsAfterCrossSiteTransfer",yc="window/updateAutoEjectTranscript",Cc="window/hideRatingFormInWindow",kc="window/updateChatbotQuestions",Sc="page/update-window-status",Ic="page/set-focus-bar",Mc="window/toggle-error",Ac="window/toggle-warning",Bc="window/updateWindowWidth",Oc="window/removeForm",Tc="app/ready",jc="app/ban",Fc="app/setIsActive",Vc="app/switchServer",Wc="app/recoverSuccess",Nc="app/increaseRecoverTimes",Dc="app/setIsRecovering",Pc="app/setLastSuccessTime",Rc="app/setSoundOff",Ec="app/globalError",zc="window/endchat",Lc="window/toggleFocus",Hc="window/contentScrollStatusUpdate",qc="window/toggle-disable",Uc="window/updateTransferredServerInstanceTag",Gc="web/sendAction",Kc="web/pageHeartbeat",Yc="web/chatHeartbeat",Qc="web/prechatHeartbeat",Zc="web/offlineHeartbeat",Jc="web/submitRating",Xc="web/emailTranscript",$c="web/endChat",ed="web/submitOfflineMessage",td="web/submitPostChat",nd="web/submitPrechat",id="web/submitSSOInfo",od="web/submitSSOInfo4ChatBot",ad="web/skipLogin",rd="web/sendPageVisit",sd="web/updateUrl",cd="web/updateCustomVariables",dd="web/getChatButton",ld="web/getConfig",ud="web/getChatWindowConfig",pd="web/getChatbotQuestions",hd="web/agentMsgSeenByVisitor",fd="web/getSSORecoverInfo",gd="web/fromChatbotToAgent",wd="web/chatBotSelectQuestion",md="web/chatBotAnswerHelpful",bd="web/enterOfflineMessage",vd="web/startChatAgain",_d="window/updateQueue",xd="chatinput/setVisitorIsTyping",yd="window/sendChatMessages",Cd="window/updateVideoStatus",kd="window/prepareP2pChat",Sd="window/hangupAudioVideoChat",Id="window/hangupScreenSharing",Md="window/acceptAudioVideoChat",Ad="window/unmuteRemote",Bd="window/flipCamera",Od="window/setIsRecording",Td="window/updateMessageIsProcessed",jd="window/updateMessageIfDisable",Fd="sideWindow/hideAudioVideoChat",Vd="sideWindow/sideWidowTabSelect",Wd="sideWindow/toggleSideWindow",Nd="sideWindow/setWindowTabs",Dd="sideWindow/closeKnowledgeBase",Pd="sideWindow/showKnowledgeBaseInfo",Rd="sideWindow/closePushPage",Ed="sideWindow/replaceSideWindowTab",zd="app/setIsOpenerExists",Ld="window/closeSliently",Hd="window/setFrequencyLimitState",qd="web/chatBotVisitorCancelBotForm",Ud="web/chatBotVisitorSubmitBotForm",Gd="web/setBotVariable",Kd="window/cleanPendingMessages",Yd="form/update-value",Qd="form/update-error",Zd="form/focus",Jd="form/blur",Xd="form/submit-start",$d="form/submit-success",el="form/submit-fail",tl="form/submit-social",nl="form/validate-all",il="form/update",ol="form/fill-default",al="form/reset",rl="page/setCampaignId",sl="page/setCampaignIntId",cl="window/setId",dl="window/mounted",ll="window/chatbotTimeout",ul="window/resetMaxId",pl="web/getArticles",hl="web/getArticleByID",fl="window/success-articles",gl="window/success-articleByID",wl="web/fromKBToAgent",ml="window/articleClickTitile",bl="window/error-articles",vl="window/error-articleByID",_l="window/updateKBConfig",xl="sideWindow/openBotSideWindow",yl="sideWindow/closeBotSideWindow",Cl="window/pushPage",kl="webView/open",Sl="webView/close",Il="webView/loading",Ml="webView/visitorInfo",Al="web/setLocation",Bl="web/getVisitorInfo",Ol="window/updateBotFormMessage",Tl="window/hideQuickReply",jl="state/restore",Fl="state/get-restore",Vl="window/updateChatbotSendFormMessage",Wl="window/updateVisibleInputAreaWhenBotChatting",Nl="window/updateDisableInputAreaWhenBotChatting",Dl="window/updateIsMessageScrollBottom",Pl="window/updateMessageStatusToRead",Rl="window/updatePostChatVisible",El="sideWindow/hideScreenSharing",zl="Window/prepareScreenSharing",Ll="window/acceptScreenSharing",Hl="window/startScreenSharingDirectly",ql="window/popScreenSharing",Ul="window/previewImage",Gl="api/sendText",Kl="window/cancelVisitorSendText",Yl="window/setBotCollectFileError",Ql="window/updateSsoInfo",Zl="page/updateIsKeyboardFocus",Jl="page/updateFocusOnDropdownMenu",Xl=((Gr={})[Tc]=function(e){return Object.assign({},e,{isReady:!0})},Gr[jc]=function(e){return Object.assign({},e,{banned:!0})},Gr[Vc]=function(e,t){return Object.assign({},e,{server:t})},Gr[Fc]=function(e,t){return Object.assign({},e,{isActive:t})},Gr[zd]=function(e,t){return Object.assign({},e,{isOpenerExists:t})},Gr[Wc]=function(e){return Object.assign({},e,{recoverFailTimes:0,isRecovering:!1})},Gr[Nc]=function(e){var t=e.recoverFailTimes;return Object.assign({},e,{recoverFailTimes:t+1})},Gr[Dc]=function(e,t){return Object.assign({},e,{isRecovering:t})},Gr[Pc]=function(e,t){return Object.assign({},e,{lastSuccessTime:t})},Gr[Rc]=function(e,t){return t?Object.assign({},e,{isSoundOff:!0}):Object.assign({},e,{isSoundOff:!1})},Gr[Ec]=function(e,t){return Object.assign({},e,{error:t})},Gr),$l=U({banned:!1},Xl),eu="open",tu="restored",nu="minimized",iu="close",ou="waitingForChat",au="chatting",ru="preChat",su="manuallyInvited",cu="autoInvited",du="offlineMessage",lu="refusedByVisitor",uu="chatEnded",pu="inSite",hu="manuallyInvitedByWindow",fu="systemProcessing",gu="searchKB",wu="popupImage",mu="embeddedWindow",bu="bubble",vu="mobile",_u={agentAvatar:"agentAvatar",image:"image"},xu="button",yu="autoInvitation",Cu="manualInvitation",ku="landscape",Su="portrait",Iu="monitor",Mu="text",Au="image",Bu="float",Ou="adaptive",Tu={platform:It,buttons:{},windowStatus:iu,dynamicCampaign:!1,campaignId:0,chatGroup:0,invitation:null,visitor:{},skipPreChat:!1,width:0,height:0,orientation:Su,visitorStatus:pu,artifact:void 0},ju=function(e,t){return po(e,{type:t.isManual?Cu:yu,invitationId:t.id,invitationType:t.type})},Fu=((Kr={})[is]=function(e,t){var n,i,o=t.campaignId,a=t.ifOnline;if(e.buttons[o]===a)return e;var r=e.isDynamicCampaign?((n={})[o]=a,n):Object.assign({},e.buttons,((i={})[o]=a,i));return Object.assign({},e,{buttons:r})},Kr[rs]=function(e,t,n){var i=n.buttonType;if(t.type===mu){var o=t.windowStatus||eu;return Object.assign({},e,{requestChatAction:ju(e.campaignId,t),windowStatus:o,visitorStatus:t.isManual?hu:cu})}return t.isManual&&i===Ou&&t.type===bu?t.bubbleInvitationHeader===_u.image?Object.assign({},e,{requestChatAction:ju(e.campaignId,t),visitorStatus:hu,invitation:t}):Object.assign({},e,{requestChatAction:ju(e.campaignId,t),windowStatus:nu,visitorStatus:hu,manualInvitation:t}):t.isManual&&i!==Ou&&t.type===bu?Object.assign({},e,{requestChatAction:ju(e.campaignId,t),visitorStatus:hu,invitation:t}):null==e.invitation?Object.assign({},e,{invitation:t,visitorStatus:t.isManual?su:cu}):e},Kr[ss]=function(e,t){return Object.assign({},e,{ifShowInvitationProcessing:t})},Kr[os]=function(e,t){var n=Object.assign({},e.visitor,t);return Object.assign({},e,{visitor:n})},Kr[as]=function(e,t){return Object.assign({},e,{visitor:t})},Kr[Ws]=function(e){return Object.assign({},e,{invitation:null,visitorStatus:lu})},Kr[ys]=function(e,t){var n=t.chatInfo,i=t.campaignId;return Object.assign({},e,{windowStatus:n.windowStatus||eu,requestChatAction:po(i)})},Kr[hs]=function(e,t){var n=t.campaignId;return Object.assign({},e,{windowStatus:eu,invitation:null,requestChatAction:e.requestChatAction||po(n,{type:xu})})},Kr[Sc]=function(e,t){return Object.assign({},e,{windowStatus:t,invitation:t===eu?null:e.invitation})},Kr[Ic]=function(e,t){return Object.assign({},e,{shouldFocusBar:t})},Kr[fs]=function(e){return Object.assign({},e,{windowStatus:iu})},Kr[Vs]=function(e,t){var n=e.invitation;return n?Object.assign({},e,{invitation:null,requestChatAction:ju(t,n)}):e},Kr[Ds]=function(e,t){return Object.assign({},e,{invitation:null,requestChatAction:po(t,{type:xu})})},Kr[vd]=function(e){return Object.assign({},e,{requestChatAction:po(e.requestChatAction.campaignId,{type:xu})})},Kr[Ps]=function(e,t){return e.skipPreChat===t?e:Object.assign({},e,{skipPreChat:t})},Kr[Rs]=function(e,t){var n=t.size;return e.width===n.width&&e.height===n.height?e:Object.assign({},e,n)},Kr[rc]=function(e,t,n){return n?Object.assign({},e,{windowStatus:iu,visitorStatus:lu}):e},Kr[Es]=function(e,t){return e.orientation===t?e:Object.assign({},e,{orientation:t})},Kr[rl]=function(e,t){if(e.campaignId===t)return e;var n="number"==typeof t?t:t.toLowerCase();return Object.assign({},e,{campaignId:n})},Kr[sl]=function(e,t){var n=t.guid,i=t.intId;return e.campaignIntId===i?e:Object.assign({},e,{campaignId:n,campaignIntId:i})},Kr[zs]=function(e,t){return e.visitorStatus===t?e:Object.assign({},e,{visitorStatus:t})},Kr[us]=function(e,t){return e.artifact===t?e:Object.assign({},e,{artifact:t})},Kr[ps]=function(e,t){return e.jwt===t?e:Object.assign({},e,{jwt:t})},Kr[ls]=function(e,t){return e.isSubmitSSO===t?e:Object.assign({},e,{isSubmitSSO:t})},Kr[nd]=function(e,t){var n=t.form.ticketId;return Object.assign({},e,{requestChatAction:Object.assign({},e.requestChatAction,{ticketId:n})})},Kr[Zl]=function(e,t){return Object.assign({},e,{isKeyboardFocus:t})},Kr[Jl]=function(e,t){return Object.assign({},e,{isFocusOnDropdownMenu:t})},Kr),Vu=U(Tu,Fu),Wu="fetching",Nu="done",Du="error",Pu=["entity"],Ru=["name","avatar"],Eu=["name","avatar","id"],zu={entities:{},errors:{},fetchStatus:{}},Lu={agents:zu,messages:zu,buttons:zu,campaigns:zu,fields:zu,departments:zu,kbArticles:zu},Hu=function(e,t){var n,i,o,a=e.entities,r=e.errors,s=e.fetchStatus,c=t.id,d=t.entity,l=t.error,u=t.fetchStatus;return{entities:Object.assign({},a,(n={},n[c]=Object.assign({},a[c],d),n)),errors:Object.assign({},r,(i={},i[c]=l||r[c],i)),fetchStatus:Object.assign({},s,(o={},o[c]=u||s[c],o))}};function qu(e){var t=e.fields.entities,n=Object.keys(t).reduce((function(e,n){var i=e,o=t[n];return i[n]=Object.assign({},o,{value:null,isFocused:!1,isErrorShowed:!1}),delete i[n].error,i}),{});return Object.assign({},e,{fields:Object.assign({},e.fields,{entities:n})})}function Uu(e,t){if(e.buttons.entities[t]){var n=e.buttons,i=n.entities,o=n.errors,a=n.fetchStatus;return delete i[t],delete o[t],delete a[t],Object.assign({},e,{entities:i,errors:o,fetchStatus:a})}return e}var Gu,Ku,Yu,Qu=(Yr={},Yr[Is]=function(e,t){var n=t.isHidden,i=t.campaignId,o=e.buttons.entities[i];return o?o.isHidden===n?e:Object.assign({},e,{buttons:Hu(e.buttons,{id:i,entity:{isHidden:n}})}):e},Yr[As]=function(e,t){var n=t.fields,i=t.type,o=t.campaignId,a=n.reduce((function(e,t){var n=e;return n.entities[i+"-"+t.id]=Object.assign({},t,{id:i+"-"+t.id}),n.errors[i+"-"+t.id]=null,n.fetchStatus[i+"-"+t.id]="done",n}),{entities:Object.assign({},e.fields.entities),errors:Object.assign({},e.fields.errors),fetchStatus:Object.assign({},e.fields.fetchStatus)}),r=Object.assign({},e.campaigns.entities[o]);return r[i]=n.map((function(e){return e.id})),Object.assign({},e,{campaigns:Hu(e.campaigns,{id:o,entity:r}),fields:a})},Yr[Ss]=function(e,t){return t.entity&&t.entity.color&&!G(t.entity.color)&&(t.entity.color=K),t.entity.update=Date.now(),Object.assign({},e,{buttons:Hu(e.buttons,t)})},Yr[ks]=function(e,t){var n=t.entity;if(null==n)return Object.assign({},e,{campaigns:Hu(e.campaigns,t)});n.prechat&&n.prechatCaptcha&&n.prechat.push({id:-1,type:Zo,label:n.prechatCaptchaLabel,value:null,isRequired:!0});var i=["prechat","postchat","offline"],o=[];i.forEach((function(e){var n=t.entity[e];n&&n.length>0&&(o=o.concat(n.map((function(t){return Object.assign({isErrorShowed:!1,isFocused:!1},t,{id:e+"-"+t.id})}))))}));var a=t.entity?i.reduce((function(e,t){var n;return e[t]?Object.assign({},e,((n={})[t]=e[t].map((function(e){return e.id})),n)):e}),t.entity):null;return Object.assign({},e,{campaigns:Hu(e.campaigns,Object.assign({},t,{entity:a})),fields:o.reduce((function(e,t){return Hu(e,{id:t.id,entity:t,error:null,fetchStatus:Nu})}),e.fields)})},Yr[Ms]=function(e,t,n){var i=n.ifHideAgentName,o=n.agentDefaultName,a=n.apiHost,r=t.entity,s=z(t,Pu);return r.name=i?o:r.name,r.avatar=Dr(r.avatar,a),Object.assign({},e,{agents:Hu(e.agents,Object.assign({entity:r},s))})},Yr[Bs]=function(e,t){return Object.assign({},e,{departments:Hu(e.departments,t)})},Yr[rs]=function(e,t,n){var i=t.agent,o=n.ifHideAgentName,a=n.agentDefaultName,r=n.apiHost;if(i){var s=i.name,c=i.avatar,d=z(i,Ru);return Object.assign({},e,{agents:Hu(e.agents,{id:i.id,entity:Object.assign({name:o?a:s,avatar:Dr(c,r)},d),fetchStatus:Nu})})}return e},Yr[Qd]=function(e,t){var n,i=e.fields.entities[t.id];if(i.customError===t.error&&i.isErrorShowed)return e;var o=Object.assign({},i,{customError:t.error,isErrorShowed:!0,isFocused:!0}),a=Object.assign({},e.fields,{entities:Object.assign({},e.fields.entities,(n={},n[t.id]=o,n))});return Object.assign({},e,{fields:a})},Yr[Yd]=function(e,t){var n,i=e.fields.entities[t.id];if(i.value===t.value&&i.isErrorShowed)return e;var o=Object.assign({},i,{value:t.value,isErrorShowed:!0,customError:""}),a=Object.assign({},e.fields,{entities:Object.assign({},e.fields.entities,(n={},n[t.id]=o,n))});return Object.assign({},e,{fields:a})},Yr[Zd]=function(e,t){var n,i=e.fields.entities[t.id];if(!i)return e;var o=Object.assign({},i,{isFocused:!0}),a=Object.assign({},e.fields.entities,((n={})[t.id]=o,n)),r=Object.assign({},e.fields,{entities:a});return Object.assign({},e,{fields:r})},Yr[Jd]=function(e,t){var n,i=e.fields.entities[t.id],o=Object.assign({},i,{isErrorShowed:!0,isFocused:!1}),a=Object.assign({},e.fields.entities,((n={})[t.id]=o,n)),r=Object.assign({},e.fields,{entities:a});return Object.assign({},e,{fields:r})},Yr[nl]=function(e,t){var n=!1,i=t.ids.reduce((function(e,t){var i=e[t],o=e;return o[t]=Object.assign({},i,{isErrorShowed:!0,isFocused:!n}),n=!0,o}),Object.assign({},e.fields.entities)),o=Object.assign({},e.fields,{entities:i});return Object.assign({},e,{fields:o})},Yr[Gs]=function(e,t,n){return t.reduce((function(e,t){if(t.type!==Qt&&t.type!==Gt&&t.type!==en)return e;var i=t.content.agent,o=i.name,a=i.avatar,r=i.id,s=z(i,Eu);return r?Object.assign({},e,{agents:Hu(e.agents,{id:t.content.agent.id,entity:Object.assign({name:n&&n.ifHideAgentName?n.agentDefaultName:o,avatar:Dr(a,n.apiHost)},s),error:null,fetchStatus:Nu,index:Object.keys(e.agents).length})}):e}),e)},Yr[al]=qu,Yr[Sc]=function(e,t,n){if(t!==iu)return e;var i=e;return n&&n.transferCampaignId&&(i=Uu(e,n.transferCampaignId)),qu(i)},Yr[fs]=function(e,t,n){var i=e;return n&&n.transferCampaignId&&(i=Uu(e,n.transferCampaignId)),qu(i)},Yr[rc]=function(e,t,n){return n?qu(e):e},Yr[fl]=function(e,t){var n=t.reduce((function(e,t){var n=e;return n[t.id]=t,n}),{});return Object.assign({},e,{kbArticles:{entities:n}})},Yr),Zu=U(Lu,Qu),Ju="loading",Xu="prelogin",$u="ssoLogin",ep="prechat",tp="chat",np="postchat",ip="offline",op="kb",ap="none",rp="pending",sp="success",cp="visitor",dp="agent",lp="system",up="chatbot",pp="taskbot",hp="none",fp="waiting",gp="invited",wp="chatting",mp="chatted",bp="prechat",vp="postchat",_p="offline",xp="sso",yp="rating",Cp=Object.freeze({__proto__:null,offline:_p,postchat:vp,prechat:bp,rating:yp,sso:xp}),kp="maxFileSize",Sp="emptyFile",Ip="maxLengh",Mp="limited",Ap="maxFileCount",Bp="notSupported",Op="kb",Tp="bot",jp="video",Fp="audio",Vp="bubble",Wp="kbSearch",Np="pushPage",Dp="screenSharing",Pp="taskbotCollectName",Rp="taskbotCollectEmail",Ep="taskbotCollectPhoneNumber",zp="taskbotCollectCompanyName",Lp="taskbotCollectComment",Hp="taskbotCollectLocation",qp="taskbotCollectVariableData",Up="taskbotSendMessage",Gp="taskbotSendImage",Kp="taskbotSendVideo",Yp="taskbotSSOLoginButton",Qp="taskbotQuickReply",Zp="taskbotMessage",Jp="taskbotBookMeeting",Xp="taskbotActionBookingViaMicrosoftBooking",$p="loading",eh="taskbotActionSendAMenu",th="taskbotActionCollectFeedback",nh="horizontal",ih="agent",oh="banner",ah="logo",rh=function(e,t){return Y(e,"entities.campaigns.entities."+t)},sh=function(e,t){return Y(e,"entities.campaigns.entities."+t)},ch="none",dh="main",lh=function(e){return e.app.isReady},uh=function(e){return e.app.server===dh},ph=function(e){return e.app.isPoppedOut},hh=function(e){return e.app.banned},fh=function(e){return e.app.isActive},gh=function(e){return!e.app.isActive},wh=function(e){return e.app.isRecovering},mh=function(e){return e.app.isSoundOff},bh=function(e,t){return/^https?:/.test(t)||null==e.configuration?t:null==t?null:[uh(e)?e.configuration.url:e.configuration.standbyUrl,t].join(/^\//.test(t)?"":"/")},vh=function(e){return null==e.configuration?"":uh(e)?e.configuration.url:e.configuration.standbyUrl},_h=function(e,t){return/^https?:/.test(t)||null==e.configuration?t:null==t?null:[e.configuration.vue,t].join(/^\//.test(t)?"":"/")},xh=function(e){return e.configuration&&e.configuration.vue},yh=function(e){return _h(e,"/visitorside/location/position.html")},Ch=function(e,t){var n=function(e,t){return _h(e,"/visitorside/sso/ssoredirect.html")}(e),i="returnUrl="+encodeURIComponent(n),o=/\breturnurl=[^&]+/i;return o.test(t)?t.replace(o,i):t+"&"+i},kh=function(e){return/^(https?:\/\/)?([^/]*)/gi.exec(e)[2]},Sh=function(e,t){if(/^https?:/.test(t))return t;if(null==e.configuration)return t;var n=e.configuration.webrtcSignalingServiceUrl;return[kh(n),t].join(/^\//.test(t)?"":"/")},Ih=function(e){return e.configuration.heartbeat.online},Mh=function(e){return e.configuration.heartbeat.offline},Ah=function(e){return e.configuration.heartbeat.stopAfter},Bh=function(e){return e.configuration.attachmentMaxSize},Oh=function(e){return e.configuration.frequencyLimit},Th=function(e){return e.configuration.messageLengthLimit},jh=function(e){return e.configuration.kbClientUrl},Fh=function(e){return!!e.configuration.features.hideAgentName&&e.configuration.features.hideAgentName},Vh=function(e){return e.configuration.encoding},Wh=function(e){return e.configuration.ifPartner},Nh=function(e){return e.configuration.features.audioVideoChatRecording},Dh=function(e){return e.configuration.brandConfig},Ph=function(e){return e.window?e.window.crossSiteChatTransfer:null},Rh=function(e){return function(t){var n=t.configuration.features||{};return function(e){return e.window&&!!e.window.crossSiteChatTransfer}(t)&&(n=Ph(t).configuration&&Ph(t).configuration.features||{}),n[e]}},Eh=function(e){return e.configuration.restrictedWords},zh=e(1)((function(e){if(!e||0===e.length)return null;var t=e.map(o).join("|");return{regWithWordSeperator:new RegExp("\\b("+t+")\\b","ig"),reg:new RegExp("("+t+")","ig")}})),Lh=function(e){return"OnlySendTheTranslation"===e.configuration.messageContentInLiveChat},Hh="goToIntent",qh="contactAgent",Uh="text",Gh=function(e){return Y(e,"window")},Kh=function(e,t){return function(n){var i=Gh(n);return i?e(i,n):t}},Yh=Kh((function(e){return e.chatStatus}),hp),Qh=function(e){var t=e.window;return t?t.tab!==tp&&t.tab!==np||t.chatStatus!==wp&&t.chatStatus!==gp&&t.chatStatus!==mp||t.isChatBot||0===t.involvedAgents.length?null:e.entities.agents.entities[t.involvedAgents[0]]:null},Zh=function(e){var t=e.window;return t&&(t.tab===tp||t.isChatBot&&t.tab===np)?t.chatStatus!==wp&&t.chatStatus!==fp&&t.chatStatus!==mp?null:t.isChatBot?e.window.chatBot||{}:null:null},Jh=function(e){var t=e.window;return t?t.chatbotContext||{}:null},Xh=function(e){var t=Jh(e);return t?t.variables:null},$h=function(e){var t=Jh(e);return t?t.visitorInfo:null},ef=Kh((function(e,t){if(!t.entities)return!1;if(!t.entities.campaigns)return!1;var n=t.entities.campaigns;return n.fetchStatus[e.id]===Nu&&!!n.entities[e.id]}),!1),tf=function(e){return Y(e,"window.tab")},nf=Kh((function(e){return e.sideWindowItems}),[]),of=function(e){return Y(e,"window.id")},af=function(e){return Y(e,"window.crossSiteChatTransfer.campaignId")},rf=Kh((function(e,t){var n=af(t)||of(t);return t.entities.campaigns.entities[n]}),null),sf=Kh((function(e,t){return t.entities.campaigns.entities[t.window.id]}),null),cf=Kh((function(e,t){return t.entities.campaigns.entities[t.window.id].mainColor}),""),df=function(e){var t=e.entities.campaigns.entities[e.window.id].chat.texture;return t?"url("+t+")":null},lf=Kh((function(e){return e.ssoUrl}),""),uf=Kh((function(e){return e.showPrelogin}),!1),pf=Kh((function(e){return e.isChatBot}),!1),hf=Kh((function(e){return e.pendingMessage}),void 0),ff=e(1)((function(e,t,n,i,o){return function(a){var r=t.entities[n];if(a.sender.type===dp){var s=e.entities[a.sender.id];return Object.assign({},a,{sender:s||{name:r.languages.operatorDefaultName}})}if(a.type===Pn)return Object.assign({},a,{sender:Object.assign({},a.sender,{name:o?o.name:"",avatar:o?o.avatar:""})});if(a.sender.type===up){var c=o?o.name:"",d=a.sender?a.sender.name:"",l=o?o.avatar:"",u=a.sender?a.sender.avatar:"";return Object.assign({},a,{sender:Object.assign({},a.sender,{name:d||c,avatar:u||l})})}if(Wt===a.type)return Object.assign({},a,{queuePosition:i.position,estimatedWaitTime:i.waitTime});if(a.type===Qt||a.type===Yt||a.type===Zt){var p=e.entities[a.sender.id];return Object.assign({},a,{sender:p||{name:r.languages.operatorDefaultName}})}return a}})),gf=e(1)((function(e,t,n,i,o,a,r){return o.map(ff(e,t,n,i,r)).filter(function(e){return function(t){return t.type!==ri&&t.type!==ui&&t.type!==ji&&t.type!==Vi&&t.type!==li&&t.type!==Ti&&t.type!==pi&&t.type!==Fi&&t.type!==di&&t.type!==hi&&t.type!==fi&&t.type!==gi&&t.type!==Ht&&t.type!==ci&&t.type!==Ui&&(t.type!==Ot||e===fp)&&(t.type===Dn||!!t.content&&("string"==typeof t.content||("string"==typeof t.content.fileName?t.content.fileName:"string"==typeof t.content.name?t.content.name:"string"==typeof t.content.text?t.content.text:null!==t.content.text&&"object"==typeof t.content&&Object.keys(t.content).length>0)))}}(a))})),wf=Kh((function(e,t){var n=e.messages,i=t.entities,o=i.agents,a=i.campaigns,r=e.id,s=e.queue,c=e.chatStatus,d=e.chatBot;return gf(o,a,r,s,n,c,d)}),[]),mf=Kh((function(e){return e.messages}),[]),bf=Kh((function(e){return e.sourceMessages}),[]),vf=Kh((function(e){return e.queue}),{}),_f=Kh((function(e){return e.involvedAgents}),[]),xf=Kh((function(e){return e.audioVideoAgentId}),0),yf=Kh((function(e){return e.chatGuid})),Cf=Kh((function(e){return e.visitorTyping}),!1),kf=Kh((function(e){return e.draft}),""),Sf=Kh((function(e){return e.maxId}),-1),If=Kh((function(e){return e.error})),Mf=Kh((function(e){return e.botCollectFileError})),Af=Kh((function(e){return e.warning})),Bf=Kh((function(e){return e.maxReadId}),-1),Of=Kh((function(e,t){for(var n=wf(t),i=e.maxReadId,o=0,a=n.length-1;a>=0;a-=1){var r=n[a];if(r.id<=i)break;if(void 0!==r.id&&$a(r)&&(o+=1)>=99)return 99}return o}),0),Tf=Kh((function(e,t){var n=wf(t);if(!(Of(t)<=0))for(var i=n.length-1;i>=0;i-=1){var o=n[i];if($a(o))return o}})),jf=Kh((function(e,t){var n=wf(t);if(Of(t)<=0)return 0;for(var i=n.length-1;i>=0;i-=1){var o=n[i];if($a(o))return o.id}return 0})),Ff=function(){var e=Q.href;return"https://www.${brandingNameLowerCase}.com/powered-by/".replace("${brandingNameLowerCase}",H.brandingNameLowerCase)+"?customer="+(encodeURIComponent(Z(e))||"")+"&utm_source=PoweredBy&utm_medium=ChatWindow&utm_campaign=BottomLink"},Vf=function(e){return e.window&&e.window.messages&&e.window.messages.find((function(e){return e.type===Kt}))},Wf=Kh((function(e){var t;if(!(void 0===e.isChatBot||(null!=(t=e.sourceMessages)?t:[]).length<1)){if(e.isChatBot){var n=e.sourceMessages.some((function(e){return e.type===Hn}));return e.sourceMessages.some((function(e){return e.type===Rn||e.type===zi}))?"end":n?"pending":ch}return ch}}),void 0),Nf=Kh((function(e){if(e.tab!==tp)return!1;var t=function(){switch(e.chatStatus){case wp:return!e.isChatBot||!1!==e.isVisibleInputAreaWhenBotChatting;case fp:return!!e.allowWaitingSendMessage&&!e.isChatBot;case mp:return!1;case gp:return!0;default:return!1}};return e.isTaskBot?!1!==e.enableChatInputWhenTaskbot&&(e.isVisibleInputAreaWhenTaskbot&&t()):t()}),!1),Df=Kh((function(e){return!!e.webView}),!1),Pf=Kh((function(e){if(e.tab!==tp)return!1;return function(){switch(e.chatStatus){case wp:return!e.isChatBot||!0!==e.isDisableInputAreaWhenBotChatting;case fp:return!!e.allowWaitingSendMessage;case mp:return!1;default:return!0}}()}),!1),Rf=function(e){return e.window&&e.window.messages&&e.window.messages.find((function(e){return e.type===ti}))},Ef=Kh((function(e){return e.chatStatus===wp}),!1),zf=Kh((function(e){return e.chatStatus===gp}),!1),Lf=function(e){var t=_f(e);if(0!==t.length){var n=t[0];return e.entities.agents.entities[n]}},Hf=function(e){var t=_f(e);if(0!==t.length){var n=xf(e);if(n>0)return e.entities.agents.entities[n];if(t.length>1)return{avatar:_h(e,"/visitorside/images/avatar.png"),name:""};var i=t[0];return e.entities.agents.entities[i]}},qf=function(e){var t=zf(e);if(Ef(e)||t){if(t){if(!(e.page.requestChatAction.source.type===Cu))return;return Lf(e)}var n=Zh(e);if(n)return n;var i=Xg(e);return i||Lf(e)}},Uf=function(e){var t=qf(e);return t?t.avatar:t},Gf=function(e){var t=Hf(e);return t?t.avatar:""},Kf=function(e){var t=Hf(e);return t?t.name:""},Yf=Kh((function(e){return e.chatStatus===fp||e.chatStatus===wp}),!1),Qf=Kh((function(e){return e.chatStatus===fp}),!1),Zf=Kh((function(e){return e.chatStatus===wp&&e.isChatBot}),!1),Jf=Kh((function(e){return e.chatStatus===fp&&e.isChatBot}),!1),Xf=Kh((function(e){return e.chatStatus===mp}),!1),$f=Kh((function(e){return e.ifHideBio}),!1),eg=Kh((function(e){return e.fileUploadCount}),0),tg=function(e,t){return Y(e,"window.fields."+t)},ng=Kh((function(e){return e.disabled}),!1),ig=function(e){var t=e.window,n=Y(e,"page.windowStatus");return t&&(t.tab===tp||t.tab===op||t.tab===Ju||t.tab===$u||t.tab===Xu||t.tab===ep||t.tab===ip)&&(n===eu||n===tu)&&!!t.sideWindowSelectedTab},og=function(e){var t=Qh(e);return!!t&&t.isSupportWebrtc},ag=function(e){return Y(e,"window.sideWindowItems")},rg=Kh((function(e){return e.audio_video_disabled}),!1),sg=function(e){return Y(e,"window.showChatWindowInSidewindow")},cg=function(e){return Y(e,"window.sideWindowSelectedTab")},dg=function(e){var t=Y(e,"window.pushPage.url").trim();return J(t)},lg=function(e){return sf(e).customCSS},ug=function(e,t){var n=rh(e,t);return n?n.customCSS:""},pg=Kh((function(e){return e.vChatStatus}),aa),hg=Kh((function(e){return e.audioVideoChatStartTime}),0),fg=function(e){var t=pg(e);return t===sa||t===da},gg=Kh((function(e){return e.isRecording}),!1),wg=Kh((function(e){return e.isFocused}),!1),mg=Kh((function(e){return e.frequencyLimitState}),!1),bg=Kh((function(e){return e.autoEjectTranscript}),!1),vg=function(e){var t=sf(e);return t&&t.isRTL},_g=function(e,t){var n=rh(e,t);return n&&n.isRTL},xg=function(e){var t=Qh(e);return!(!t||!t.bio)&&(!Kh((function(e){return e.ifHideBio}),!1)(e)&&sf(e).header.showBio)},yg=Kh((function(e){return e.kbChatWithAgentClicked}),!1),Cg=function(e){return Y(e,"window.kb.activeArticle")},kg=function(e){return Y(e,"window.kbConfig.greetingMessage")},Sg=function(e){return Y(e,"window.kbConfig.maxCount")},Ig=function(e){var t=Y(e,"window.kb");if(!t)return!1;if(!1!==t.isLoading)return!1;var n=t.articles;return!(n&&n.length>0)},Mg=function(e){return Y(e,"window.kb.isLoading")},Ag=function(e){return Y(e,"window.kbConfig.notShowContent")},Bg=Kh((function(e){return e.botSideWindow}),null),Og=Kh((function(e){return e.bottom}),0),Tg=Kh((function(e){return e.right}),0),jg=function(e,t){var n=t?e.entities.campaigns.entities[t]:sf(e);return n&&n.ifEnableVisitorSeeMsgSentSeen},Fg=Kh((function(e){return e.maxAgentReadId}),""),Vg=Kh((function(e){return e.maxVisitorReadId}),""),Wg=function(e){return Zf(e)?e.window.quickReply:Ef(e)&&e.window.quickReply?Object.assign({},e.window.quickReply,{items:e.window.quickReply.items.filter((function(e){return e.type!==qh}))}):null},Ng=Kh((function(e){return e.webView}),null),Dg=function(e){var t=Ng(e);return!t||t.ifLoading},Pg=function(e){var t=Ng(e);return!!t&&t.success},Rg=function(e){var t=Ng(e);return t?t.visitorInfo:null},Eg=Kh((function(e){return e.showToolbox}),!1),zg=Kh((function(e){return e.chatVersion}),""),Lg=Kh((function(e,t){return{chatGuid:yf(t),chatVersion:zg(t)}}),{chatGuid:null,chatVersion:""}),Hg=Kh((function(e){return e.visitorStatus}),pu),qg=function(e){var t=bf(e).find((function(e){return e.type===Gt||e.type===Ft||e.type===Ni}));return t?t.time:""},Ug=function(e){var t=bf(e).find((function(e){return e.type===Bt}));return t?t.time:""},Gg=function(e){var t=bf(e);return t.length>0?t[t.length-1].guid:""},Kg=Kh((function(e){return e.emailToSendTranscript}),""),Yg=function(e){var t=mf(e),n=!1;return t.forEach((function(e){e.type===an&&e.content&&e.content.url?n=!0:e.type===Et&&(n=!1)})),n&&Yh(e)===wp},Qg=Kh((function(e,t){return t.entities.campaigns.entities[e.id]}),"none"),Zg=function(e){return void 0===e.window.ifOpenSignInPageEmbeddedWindow||e.window.ifOpenSignInPageEmbeddedWindow},Jg=Kh((function(e){return e.popupBubble}),!1),Xg=function(e){var t=e.window;return t&&t.isTaskBot&&(t.tab===tp||t.isThatBot)?t.chatStatus!==wp&&t.chatStatus!==fp&&t.chatStatus!==mp?null:t.taskBot||{}:null},$g=Kh((function(e){return e.isMessageScrollBottom}),!0),ew=function(e){return mf(e).filter((function(e){return!1===e.isSeenByVisitor})).length},tw=Kh((function(e){return e.width})),nw=Kh((function(e){return e.isPostChatVisible})),iw=Kh((function(e){return e.screenSharingStatus}),ua),ow=function(e){var t=iw(e);return t===wa||t===ha},aw=Kh((function(e){return e.screenSharingAgentId}),0),rw=function(e){var t=_f(e);if(0!==t.length){var n=aw(e);if(n&&e.entities.agents.entities[n])return e.entities.agents.entities[n];if(t.length>1)return{avatar:_h(e,"/visitorside/images/avatar.png"),name:""};var i=t[0];return e.entities.agents.entities[i]}},sw=function(e){var t=rw(e);return t?t.name:""},cw=function(e){var t=rw(e);return t?t.avatar:""},dw=Kh((function(e){return e.screenSharing_disabled}),!1),lw=Kh((function(e){return e.previewImage}),{}),uw=function(e){var t,n;return null==(t=e.window)||null==(n=t.messages)?void 0:n.find((function(e){var t=e.type;return t===ti||t===ei}))},pw=function(e,t){var n;if(!e.window||!e.window.messages)return!1;var i=function(e,t){for(var n=e.length-1;n>=0;n--){var i=e[n];if(t(i))return i}}(e.window.messages,(function(e){return e.type===zi||(e.type===Qt||e.type===Bt||e.type===Gt)}));return i.type===zi&&(null==(n=i.content)?void 0:n.GUID)===t},hw=Kh((function(e){return e.ssoInfo})),fw=Math.pow(2,0),gw=Math.pow(2,1),ww=Math.pow(2,2),mw=Math.pow(2,3),bw=Math.pow(2,4),vw=Math.pow(2,5),_w=Math.pow(2,6),xw=Math.pow(2,7),yw=Math.pow(2,8),Cw=function(e){return e.page.campaignId},kw=function(e){return e.window&&e.window.id?e.window.id:e.page.campaignId},Sw=function(e){return e.page.chatGroup},Iw=function(e){return e.page.buttons},Mw=function(e){return e.page.siteId},Aw=function(e){return e.window&&e.window.crossSiteChatTransfer?e.window.crossSiteChatTransfer.siteId:e.page.siteId},Bw=function(e){return e.page.windowStatus},Ow=function(e){return e.page.visitor.guid},Tw=function(e){return e.window&&e.window.crossSiteChatTransfer?e.window.crossSiteChatTransfer.visitorGuid:e.page.visitor.guid},jw=function(e){var t=function(e){return e.page}(e).popout;return t?{url:t.url,title:t.title}:"about:srcdoc"===Q.href?{url:H.parent.location.href,title:H.parent.document.title}:{url:Q.href,title:q.title}},Fw=function(e,t){void 0===t&&(t=0);var n=jw(e);return e.page.requestChatAction?Object.assign({},e.page.requestChatAction,{campaignId:t,source:Object.assign({},e.page.requestChatAction.source,{page:n})}):po(t,{type:xu,page:n})},Vw=function(e){var t=Fw(e);return t&&t.source},Ww=function(e){var t=function(e,t){void 0===t&&(t=0);var n=jw(e);if(e.page.requestChatAction){var i={};return pf(e)&&(i={type:"bot"}),Yh(e)===fp&&(i={type:"queue"}),Object.assign({},e.page.requestChatAction,{campaignId:t,source:Object.assign({},Object.assign({},e.page.requestChatAction.source,i),{page:n})})}return po(t,{type:xu,page:n})}(e);return t&&t.source},Nw=function(e){return(Vw(e)||{}).type},Dw=function(e){return(Vw(e)||{}).invitationId},Pw=function(e){return e.page.manualInvitation},Rw=function(e,t){return e.page.buttons[t]},Ew=function(e){return e.page.platform===Mt||e.page.platform===At},zw=function(e){return e.page.platform===At},Lw=function(e){return Object.keys(e.page.buttons).map((function(t){var n=e.entities.buttons.entities[t];if(!n)return null;var i=Mw(e);return Object.assign({},n,{chatWindowLink:_h(e,ya(i,t))})})).filter((function(e){return e}))},Hw=function(e,t){var n=e.type;return(n===Bu||n===Ou)&&function(e){return e!==iu}(t)},qw=e(1)((function(e,t,n){return e.map((function(e){var i=!function(e,t){return e.isHideOffline&&!t[e.id]}(e,t)&&!Hw(e,n)&&!e.isHidden;return Object.assign({},e,{isHidden:!i})}))})),Uw=function(e){var t=Lw(e),n=Iw(e),i=Bw(e);return qw(t,n,i)},Gw=function(e){return e.page.skipPreChat},Kw=function(e){return e.page.artifact},Yw=function(e){return e.page.height},Qw=function(e){return e.page.width},Zw=function(e){return e.page.isDynamicCampaign},Jw=function(e){return e.page.visitorStatus},Xw=function(e){return e.page.shouldFocusBar},$w=function(e){return e.page.jwt},em=function(e){return e.page.isKeyboardFocus},tm=function(e){return e.page.isFocusOnDropdownMenu},nm=function(e,t){var n=Y(e,"entities.campaigns.entities."+t+".chat.tools");return void 0===n?0:n},im=function(e,t){return!(!(ww&nm(e,t))||e.window.chatStatus!==mp&&e.window.chatStatus!==wp)},om=function(e,t){return!!(fw&nm(e,t))&&e.window.chatStatus!==mp},am=function(e,t){return!!(mw&nm(e,t))&&e.window.chatStatus!==mp&&Rh("audioVideoChat")(e)&&C},rm=function(e,t){return!!(bw&nm(e,t))&&e.window.chatStatus!==mp&&Rh("audioVideoChat")(e)&&C},sm=function(e,t){return!!(xw&nm(e,t))&&e.window.chatStatus!==mp&&Rh("screenSharing")(e)&&C&&!Ew(e)},cm=function(e,t){return!!(_w&nm(e,t))},dm=function(e,t){return!!(yw&nm(e,t))&&e.window.chatStatus!==mp&&!Ew(e)},lm=function(e,t){var n=rf(e);return n&&n.postchat?n.postchat.map((function(t){return e.entities.fields.entities["postchat-"+t]})).find((function(e){return e.type===t})):null},um=function(e){return lm(e,Ro)},pm=function(e){return lm(e,Eo)},hm="classic",fm="circle",gm="bubble",wm=function(e){return"window--"+e},mm=Object.freeze({__proto__:null,bubble:gm,circle:fm,classic:hm,styleClassName:wm}),bm=function(e,t){return e.entities.agents.entities[t]},vm=function(e){return(t=e.entities.agents.entities)&&Object.keys(t)||[];var t},_m=function(e){return e.entities.agents.entities},xm=function(e){var t=Mw(e),n=function(e){return vm(e).reduce((function(t,n){return t.concat([bm(e,n)])}),[])}(e).sort((function(e,t){return e.index-t.index})).filter((function(e){return e.siteId===t})).map((function(e){return e.avatar})).filter((function(e){return e})),i=null;switch(n.length){case 0:return null;case 1:i=[n[0],_h(e,"/visitorside/images/avatar-male.png"),_h(e,"/visitorside/images/avatar-female.png")];break;case 2:i=[].concat(n,[_h(e,"/visitorside/images/avatar-male.png")]).filter((function(e){return e}));break;default:i=n.slice(0,3)}return i},ym=function(e,t){var n=t,i=e.entities.buttons.entities,o=Number(t);if(!isNaN(o)){var a=Object.keys(i).filter((function(e){return i[e].intId===o}));if(a.length>0)return i[a[0]]}return"number"!=typeof t&&(n=t.toLowerCase()),i[n]},Cm=function(e,t){var n=e.entities.buttons.entities;if(!n)return null;var i=Object.keys(n).filter((function(e){return n[e].intId===t}));return i.length>0?n[i[0]].id:null},km=function(e,t){var n=ym(e,t);return n&&n.customOffline},Sm=function(e,t){return!!e.entities.buttons&&ym(e,t).isEmbeddedWindow},Im=function(e){return e.entities.departments.entities},Mm=/(#chat-window(?!-)\b[^{}]*?{([^}]*?)})(?!(.*|\r\n|\r|\n)\*\/)/,Am=/(?:;|\s|{)width\s*:\s*(?:-?)(\d+)/,Bm=/(?:;|\s|{)height\s*:\s*(?:-?)(\d+)/,Om=function(e){return e===hm?712:700},Tm=function(e,t){var n=sh(e,t),i=ym(e,t);if(i){var o=i.iframeStyle;if(!o)return o;if(!n)return o;var a=n.style;if(a===gm)return o;if(n.customCSS&&Mm.test(n.customCSS)){var r=Mm.exec(n.customCSS)[0],s=Am.exec(r),c=Bm.exec(r);return o.width=s?parseInt(s[1]):412,o.height=c?parseInt(c[1]):Om(a),o}return o.width=412,o.height=Om(a),o}},jm=function(e,t){var n=ym(e,t),i=Ew(e);return n&&n.type===Ou?{right:i?n.adaptiveButtonRightOffsetOnMobile:n.adaptiveButtonRightOffset,bottom:i?n.adaptiveButtonBottomOffsetOnMobile:n.adaptiveButtonBottomOffset}:{right:0,bottom:0}},Fm=function(e){var t=Y(e,"window.kb.articles");return t&&t.map((function(t){var n=e.entities.kbArticles.entities[t];return{id:n.id,title:n.title,summary:n.body.replace(/<\/?[^>]+(>|>$)/g," ").substr(0,200)}}))},Vm=function(e,t){var n=e.entities.campaigns.entities[t];return n?n.mainColor:""},Wm=function(e){return e.entities.campaigns.entities[kw(e)].ifRemovePoweredBy},Nm="promptPressEnterToSend",Dm="titleChatWindow",Pm="titleOfflineMessageWindow",Rm="titlePreChatWindow",Em="eventSendTranscript",zm="errorVisitorNotExist",Lm="buttonKBChatWithAgent",Hm="buttonKBLeaveMessage",qm="buttonSendFile",Um=function(e,t,n){return n+"_"+e+(t?"_"+t:"")},Gm=(Gu={},{get:function(e){return Gu[e]||null},set:function(e,t){null!=t&&(Gu[e]=t)},setSession:function(e,t){Gu[e]=t},remove:function(e){delete Gu[e]}}),Km={get:function(e){for(var t=q.cookie.split("; "),n=0;n-1){var o=t[n].substring(0,i),a=t[n].substring(i+1);if(o===e&&a)return a}}return null},set:function(e,t,n){void 0===n&&(n=!1),null!==t&&(q.cookie=e+"="+t+";path=/;"+(n?"secure=true;":"")+"expires=Sat, 01 Jan 10000 00:00:00 GMT")},setSession:function(e,t,n){void 0===n&&(n=!1),null!==t&&(q.cookie=e+"="+t+";path=/;"+(n?"secure=true;":""))},remove:function(e){q.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;"}},Ym=Km,Qm=function(){Ym=Gm},Zm=function(e){return Ym.get(e)},Jm=function(e){return Ym.remove(e)},Xm=function(e,t){return Ym.get(e)&&Ym.remove(e),Ym.set(e,t,X)},$m=function(e,t){return Ym.setSession(e,t,X)},eb=function(e){return Ym.remove(e)},tb=H.brandingNameLowerCase+"_session",nb=H.brandingNameLowerCase+"standby_session",ib=H.brandingNameLowerCase+"_visitor",ob=H.brandingNameLowerCase+"_visitorguid",ab=H.brandingNameLowerCase+"_visitor",rb=H.brandingNameLowerCase+"_chat",sb=H.brandingNameLowerCase+"_session",cb=H.brandingNameLowerCase+"_page",db=H.brandingNameLowerCase+"_crossSiteChatTransfer",lb=H.brandingNameLowerCase+"_frequencyLimit",ub=H.brandingNameLowerCase+"_soundOff",pb=(Ku=function(){var e="livechattestkey",t=H.sessionStorage;try{return t.setItem(e,"test"),t.removeItem(e),!1}catch(e){return e.code===DOMException.QUOTA_EXCEEDED_ERR&&0===t.length}},function(){return void 0===Yu&&(Yu=Ku()),Yu}),hb=function(e){var t=window[e]||{};return window[e]=t,{getItem:function(e){return t[e]},setItem:function(e,n){t[e]=n.toString()},removeItem:function(e){delete t[e]}}},fb=function(){try{return!window.sessionStorage||pb()?hb("sessionStorage"):H.sessionStorage}catch(e){return hb("session-storage")}},gb=function(){try{return!window.localStorage||pb()?hb("localStorage"):H.localStorage}catch(e){return hb("local-storage")}},wb=gb(),mb=fb(),bb=!1,vb=function(e){bb=e},_b=function(){return Um(Pr,Rr,ib)},xb=function(){return e=Zm(_b()),isNaN(+e)||0==+e?void 0:Math.floor(+e);var e},yb=function(e){return Um(e||Pr,Rr,ob)},Cb=function(e){return Zm(yb(e))},kb=function(e,t){e&&(bb?$m:Xm)(yb(t),e)},Sb=function(e){return Um(e||Pr,Rr,ab)},Ib=function(e){try{return JSON.parse(wb.getItem(e))||{}}catch(e){return{}}},Mb=function(e,t){try{return wb.setItem(e,JSON.stringify(t))}catch(e){}},Ab=function(e){return Ib(Sb(e))},Bb=function(e,t){return wb.setItem(Sb(t),JSON.stringify(Object.assign({},Ab(t),e)))},Ob=function(e){return Ib(Sb(e)).sessionId},Tb=function(e){return Um(e||Pr,Rr,""+rb)},jb=function(e,t){var n=Ib(Tb(t));return n.chatGuid===e?n:{}},Fb=function(){return lb+"_"+Pr},Vb=function(e){Mb(Fb(),e)},Wb=function(e,t,n){if(wb){var i=jb(e,n);wb.setItem(Tb(n),JSON.stringify(i.chatGuid===e?Object.assign({},i,t):Object.assign({chatGuid:e},t)))}},Nb=function(e){return Um(e||Pr,Rr,""+sb)},Db=function(e){void 0===e&&(e=Cb());var t=Ib(Nb());return t.visitorGuid===e?t:{}},Pb=function(e,t){void 0===t&&(t=Cb());var n=Db(t);wb.setItem(Nb(),JSON.stringify(n.visitorGuid===t?Object.assign({},n,e):Object.assign({visitorGuid:t},e)))},Rb=function(){return Um(Pr,Rr,""+cb)},Eb=function(){return function(e){try{return JSON.parse(mb.getItem(e))||{}}catch(e){return{}}}(Rb())},zb=function(e){return mb&&mb.setItem(Rb(),JSON.stringify(Object.assign({},Eb(),e)))},Lb=function(){Jm(Um(Pr,Rr,tb)),Jm(Um(Pr,Rr,nb))},Hb=function(){return Eb().mediaChatHash},qb=function(e){return jb(e).mediaChatHash},Ub=function(e){Wb(e,{mediaChatHash:Hb()})},Gb=function(e){var t=qb(e);t&&t===Hb()&&Wb(e,{mediaChatHash:null})},Kb=function(){return Eb().facingMode||"user"},Yb=function(e){zb({facingMode:e})},Qb=function(e){Wb(e,{mediaChatHash:null}),zb({mediaChatHash:null,facingMode:null})},Zb=function(){return(Ab()||{}).lastChattedAgents||[]},Jb=Um(Pr,Rr,"SSOSessionToken"),Xb=Um(Pr,Rr,"SSOSessionInfo"),$b=function(e){var t=e.ssoSessionToken,n=e.ssoInfo;$m(Jb,t),n?(ev(n),iv()):av()},ev=function(e){$m(Xb,e.replace(/=/g,"#").replace(/;/,"@"))},tv=function(){var e=Zm(Xb);return e?e.replace(/#/g,"=").replace(/@/,";"):null},nv=Um(Pr,Rr,"SSOSessionLoggedIn"),iv=function(){$m(nv,!0)},ov=function(){eb(nv)},av=function(){eb(Jb),eb(Xb),ov()},rv=function(e,t){return db+"_"+e+(t?"_"+t:"")},sv=function(e,t){try{wb.removeItem(rv(e,t))}catch(e){}},cv=function(e,t,n){Mb(rv(e,t),n)},dv=function(e,t){var n=Ib(rv(e,t));return n.siteId&&n},lv=function(){return"true"===wb.getItem(ub)},uv=function(){return wb.removeItem(ub)},pv=Math.pow(2,0),hv=Math.pow(2,1),fv=Math.pow(2,2),gv=e(1)((function(e){var t=Object.assign({},e);return t.id=e.id,t.isManual=e.isManual,t.type=bu,t.campaignId=e.campaignId,t.message=e.text,t.textTypeHere=e.textTypeHere,t.messageCount=e.messageCount,e.agent&&(t.agentName=e.agent.name,t.avatar=e.agent.avatar),t.agent=e.agent,t})),wv=e(1)((function(e){var t=Object.assign({},e);return t.id=e.id,t.type=vu,t.campaignId=e.campaignId,t.message=e.text,t.acceptText=e.acceptText,t.refuseText=e.refuseText,t.themeColor=e.themeColor,t.title=e.title,t.agent=e.agent,t})),mv=e(1)((function(e){var t={};if(t.id=e.id,t.type=wu,t.image=e.image,t.message=e.text,t.fontSize=e.fontSize,t.color=e.color,t.themeColor=e.themeColor,t.fontFamily=e.fontFamily,t.ifModal=e.ifModal,e.fontStyle){var n=e.fontStyle;t.fontWeight=n&pv?"bold":"",t.fontStyle=n&hv?"italic":"",t.textDecoration=n&fv?"underline":""}return t.messageArea={left:e.textArea[0],top:e.textArea[1],width:e.textArea[2],height:e.textArea[3]},t.closeArea={left:e.closeArea[0],top:e.closeArea[1],width:e.closeArea[2],height:e.closeArea[3]},t.textAlign=e.textAlign,e.position&&(t.position=e.position),t.isManual=e.isManual,t.campaignId=e.campaignId,t.agent=e.agent,t}));function bv(e){var t=Y(e,"page.invitation");if(!t)return null;var n=t.type;return bu===n?gv(t):wu===n?mv(Object.assign({},t,{image:bh(e,t.image)})):vu===n?wv(t):null}var vv,_v,xv,yv=function(e){return e.page&&e.page.invitation},Cv=function(e){return e.page&&e.page.ifShowInvitationProcessing},kv=Kh((function(e){return e.isTaskBot}),!1),Sv=function(e){var t=e.window;return t?t.chatStatus!==wp&&t.chatStatus!==fp&&t.chatStatus!==mp?null:t.taskBot||{}:null},Iv=function(e){kv(e);var t=Sv(e);return t&&t.id?t.id:"00000000-0000-0000-0000-000000000000"},Mv=e(1)((function(e){return Object.keys(e).map((function(t){var n=e[t];return{value:n.id,label:n.name,isOnline:n.isOnline}})).sort((function(e,t){return e.label.toLowerCase()Math.pow(1024,2)*u&&(r=o.languages.promptFileSizeExceed.replace("{fileSize}",u))}return Object.assign({},n,{value:c,error:n.customError||r})}))}return[]},jv=function(e,t){return e.window.forms[t]},Fv=function(e){var t=e.entities.campaigns.entities[e.window.id];return t&&t.prechat?t.prechat.map((function(t){return e.entities.fields.entities["prechat-"+t]})):[]},Vv=function(e){var t=e.entities.campaigns.entities[e.window.id],n=[];t&&(n=(n=(n=n.concat(t.prechat?t.prechat.map((function(t){return e.entities.fields.entities["prechat-"+t]})):[])).concat(t.postchat?t.postchat.map((function(t){return e.entities.fields.entities["postchat-"+t]})):[])).concat(t.offline?t.offline.map((function(t){return e.entities.fields.entities["offline-"+t]})):[]));var i={text:!0,textarea:!0,radio:!0,checkbox:!0,select:!0,"checkbox-list":!0,attachment:!0,rating:!0};return n.filter((function(e){return i[e.type]}))},Wv=function(e){var t=_f(e),n=[];t&&t.length>0&&t.map((function(t){return bm(e,t)&&n.push(bm(e,t))}));var i=e.window.chatBot;return i&&(n=n.concat(i)),n},Nv=function(e){return e.window&&!!e.window.crossSiteChatTransfer},Dv=function(e){return e.window?e.window.crossSiteChatTransfer:null},Pv=function(e){return Dv(e)?Dv(e).siteId:0},Rv=function(e){return!Dv(e)||Dv(e).isTransferDone},Ev=function(e){return Dv(e)?Dv(e).campaignId:kw(e)},zv=function(e){var t=Dv(e);return t&&t.configuration?t.configuration.serverInstanceTag:function(e){return e.configuration.serverInstanceTag}(e)},Lv=function(e){var t,n=Dv(e),i=Vh(e),o=xa(bf(e),i),a=function(e){for(var t=e.length-1;t>=0;t-=1)if(e[t].type===Hi&&e[t].sender&&e[t].extras&&"null"!==e[t].extras)return e[t].id;return null}(o),r=n.siteId,s=n.toCompanyName,c=n.fromCompanyName,d=n.fromSiteId,l={toSiteId:r,toCompanyName:s,fromSiteId:d,fromCompanyName:c,withChatTranscript:n.withChatTranscript,departmentId:n.departmentId,agentId:n.agentId,campaignId:n.campaignId,chatbotId:n.chatbotId,chatbot:n.chatbot,messages:o.filter((function(e){return e.id!==a})),name:Ab(d).name,email:Ab(d).email,visitorSendTranscript:!!Kg(e),agents:Wv(e)};return t=l,Object.assign({},t,{type:Gi.requestChatFromAnotherSite,isSupportWebrtc:C})},Hv=function(e){return!Zf(e)&&Rh("sendFile")(e)},qv=Rh("heartbeat"),Uv=Rh("autoInvitation"),Gv=Rh("isFreemium"),Kv=function(e,t){if(t=t||kw(e),nm(e,t)<1)return!1;var n=e.window,i=tf(e);return!(!n||i===vp)&&(n.chatStatus===wp||n.chatStatus===mp)},Yv=function(e){return e.configuration.features.ga},Qv=function(e,t){return Y(e,"entities.campaigns.entities."+t+".style")},Zv=function(e,t){return Y(e,"entities.campaigns.entities."+t+".cornerStyle")},Jv=function(e){var t=of(e);return Qv(e,t)},Xv=function(e){var t=of(e);return Zv(e,t)},$v=function(e){return e.configuration.customVariables},e_=function(e){return e.configuration.customVariableResult},t_=function(e){return e.configuration.features.hideCreditCard},n_=function(e){return e.configuration.features.showTypingContent},i_=function(e){return e.entities.campaigns.entities[e.window.id].languages},o_=function(e){return function(t,n){var i=function(e){var t=af(e)||of(e);if(!e.entities.campaigns.entities[t])return{};var n=e.entities.campaigns.entities[t].greetingMessages;return n||{}}(t),o=e[n];if(o)return i[o]}}((vv={},vv[bp]="preChatGreetingMessage",vv[vp]="postChatGreetingMessage",vv[_p]="offlineMessageGreetingMessage",vv)),a_=function(e,t){var n=af(e)||of(e);if(t===bp)return e.entities.campaigns.entities[e.window.id].formStyles.preChatFormStyle===nh;if(t===vp){var i=e.entities.campaigns.entities[n];if(!i)return!1;if(i.formStyles)return i.formStyles.postChatFormStyle===nh}return e.entities.campaigns.entities[e.window.id].formStyles.offlineMessageFormStyle===nh},r_=function(e){return function(t,n){var i=i_(t),o=e[n];if(o)return i[o]}}((_v={},_v[bp]="buttonStartChat",_v[vp]="buttonSubmit",_v[_p]="buttonSubmit",_v)),s_=function(e,t){if(!(t<=0))return i_(e).embeddedWindowNewMessages.replace("{count}",t)},c_=function(e){return i_(e).writeReply},d_=function(e){var t=of(e),n=sh(e,t).mainColor;return Ga(n)},l_=function(e){return Y(e,"entities.campaigns.entities."+(e.window&&e.window.id)+".chat.showAvatar")},u_=function(e){var t=kw(e),n=e.entities.campaigns.entities[t];if(!n)return!1;var i=n.header,o=i.chatWindowShowAvatar,a=i.type;return!!o||!(!pf(e)||a!==oh)},p_=function(e,t){if(e.window){var n=function(e){return e.entities.campaigns.entities[e.window.id].sounds}(e);return n&&n[t]}},h_=function(e){var t=e.siteId,n=e.visitorGuid;return e.urls.chatServer.concat(["/visitor.ashx?",t?"siteId="+t:"",n?"&visitorGuid="+n:""].join(""))},f_=function(e){var t=Sw(e),n=Mw(e),i=Ow(e);if(Nv(e)){var o=Dv(e);return h_(o,uh(e))}return bh(e,["/visitor.ashx?",n?"siteId="+n:"",t?"&chatGroup="+t:"",i?"&visitorGuid="+i:""].join(""))},g_=function(e){return Nw(e)===Cu&&Yh(e)===gp},w_=function(e){return function(e,t){var n=ym(e,t);if(n)return n.customJs}(e,Cw(e))},m_=function(e){return ph(e)&&null==Nw(e)},b_=function(e){return function(e){return e.app.isOpenerExists}(e)&&ph(e)&&Sm(e,kw(e))&&!m_(e)&&!Yg(e)},v_=function(e,t){return(e.entities.campaigns.entities[t||kw(e)]||{}).languages},__=function(e,t){return(e.entities.campaigns.entities[t||kw(e)]||{}).languageCode||"en"},x_=function(e,t,n){if(n=n||kw(e),t===Dm)return function(e,t){return Y(e,"entities.campaigns.entities."+t+".popupChatWindowTitle")}(e,n);if(t===Rm)return function(e,t){return Y(e,"entities.campaigns.entities."+t+".popupPreChatTitle")}(e,n);if(t===Pm)return function(e,t){return Y(e,"entities.campaigns.entities."+t+".popupOfflineMessageTitle")}(e,n);var i=v_(e,n);return i&&i[t]},y_=function(e){return e.configuration.campaignDisplayLanguage},C_=function(e){var t=Dv(e),n=t?t.configuration:e.configuration;return n?n.fileServiceUrl:""},k_=function(e){var t=Dv(e);return t?t.configuration.fileServiceAddress:e.configuration.fileService||e.configuration.fileServiceAddress},S_=Rh("ifEnableCompression"),I_=function(e){return e.configuration.fileService},M_=function(e){var t=Dv(e);return t&&t.configuration?t.configuration.fileServiceStandbyAddress:e.configuration.fileServiceStandbyAddress},A_=function(e){return e.configuration.apiHost},B_=function(e){var t=kw(e);return ym(e,"string"==typeof t?t.toLowerCase():t).type===Ou},O_=function(e){var t=B_(e),n=Ew(e)&&!zw(e),i=Bw(e);if(i===iu)return!1;var o=!ph(e)&&t;return o&&n&&(o=i===nu),o},T_=(xv={},xv[op]="kbWin",xv[Ju]="loadingWin",xv[Xu]="loginWin",xv[ip]="offlineWin",xv[np]="postWin",xv[ep]="preWin",xv[$u]="loginWin",xv),j_=function(e){var t=tf(e),n=$[__(e)];if(t!==tp)return n[T_[t]];var i=Yh(e),o=v_(e);if(i===fp)return o.embeddedWindowWaitingForChat;if(i===gp)return n.invited;if(i===mp)return o.embeddedWindowChatEnded;var a=function(e){var t=qf(e);return t?t.name:t}(e);return o.embeddedWindowChattingWithOperator.replace(/{agent}/g,a)},F_=function(e){if(!function(e){return!!sf(e).prechat}(e))return"";var t=tg(e,Do);if(t>0){var n=Im(e)[t];return n?n.name:""}return""},V_=function(e){var t=function(e){return e.window?e.window.messages.map((function(e){if(e.senderType===dp||e.type===Gt||e.type===Qt||e.type===en)return e.senderId||e.sender&&e.sender.id})).reduce((function(e,t){return t&&-1===e.indexOf(t)&&e.push(t),e}),[]).map((function(t){return bm(e,t)})).filter((function(e){return!!e})):[]}(e).map((function(e){return e.name}));return e.window.chatBot?t.concat(e.window.chatBot.name):t},W_=function(e){var t=Gh(e),n=Hg(e);return t||(n=Jw(e)),n},N_=function(e){var t=Dv(e);if(!t)return!1;var n=_f(e);if(0===n.length)return!1;var i=bm(e,n[0]);return!i||t.siteId!==i.siteId},D_=function(){return{type:jc}},P_=function(){return{type:Tc}},R_=function(){return{type:zd}},E_=function(e){return{type:Fc,payload:e}},z_=function(){return{type:Wc}},L_=function(){return{type:Nc}},H_=function(e){return{type:Dc,payload:e}},q_=function(){return{type:Pc,payload:Date.now()}},U_=function(e){return{type:jl,payload:e}},G_=function(){return{type:Fl}},K_=function(e){return{type:Rc,payload:e}},Y_=function(e){return{type:Ec,payload:e}},Q_=function(e,t){return{type:is,payload:{campaignId:e,ifOnline:t}}},Z_=function(e){return{type:rs,payload:e}},J_=function(e){return{type:ss,payload:e}},X_=function(e){return{type:os,payload:e}},$_=function(e){return{type:cs,payload:e}},ex=function(){return{type:ds}},tx=function(e){return{type:Vs,payload:e}},nx=function(e){return{type:Ds,payload:e}},ix=function(){return{type:Ws}},ox=function(){return{type:Dd}},ax=function(){return{type:Rd}},rx=function(e,t){return{type:Ed,payload:{targetTab:e,newTab:t}}},sx=function(e,t){return void 0===t&&(t=!1),{type:hs,payload:{campaignId:e,isRestoreChat:t}}},cx=function(e,t,n){return{type:ys,payload:{campaignId:e,crossSiteChatTransfer:t,chatInfo:n}}},dx=function(e){return{type:Sc,payload:e}},lx=te(dx,eu),ux=function(){var e=te(dx,nu).apply(void 0,arguments);return setTimeout((function(){if(top.frames.chat_button_adaptive_container){var e=top.frames.chat_button_adaptive_container.contentWindow;if(e){var t=e.document.querySelector(".chatButton");t&&t.focus()}}else if(top.frames.chat_button_bar_container){var n=top.frames.chat_button_bar_container.contentWindow;if(n){var i=n.document.querySelector(".minimize-bar");i&&i.focus()}}}),500),e},px=te(dx,iu),hx=te(dx,tu),fx=function(e){return{type:Ic,payload:e}},gx=function(e){return{type:Ps,payload:e}},wx=function(e,t){return{type:Rs,payload:{size:e,buttonOffset:t}}},mx=function(e){return{type:Es,payload:e}},bx=te(mx,ku),vx=te(mx,Su),_x=function(e){return{type:rl,payload:e}},xx=function(e,t){return{type:sl,payload:{guid:e,intId:t}}},yx=function(e){return{type:zs,payload:e}},Cx=function(e){return{type:us,payload:e}},kx=function(e){return{type:ls,payload:e}},Sx=function(e){return{type:ps,payload:e}},Ix=function(e){return{type:Zl,payload:e}},Mx=function(e){return{type:Jl,payload:e}},Ax=function(e){return{type:$r,payload:e}},Bx=function(e){return{type:es,payload:e}},Ox=function(e){return{type:ts,payload:e}},Tx=function(e){return{type:ns,payload:e}},jx=function(e){return{type:ks,payload:e}},Fx=function(e){return{type:Ss,payload:e}},Vx=function(e,t){return{type:Is,payload:{isHidden:!e,campaignId:t}}},Wx=function(e){return{type:Ms,payload:e}},Nx=function(e){return{type:Bs,payload:e}},Dx=function(e,t,n){return{type:As,payload:{type:e,fields:t,campaignId:n}}},Px=function(e,t){return{type:e,payload:t}},Rx=function(e,t,n){return{type:Ls,payload:{name:e,percent:t,onCancel:n}}},Ex=function(e){return{type:Hs,payload:e}},zx=function(e){return{type:qs,payload:e}},Lx=function(e){return{type:Yl,payload:e}},Hx=function(e){return{type:ws,payload:e}},qx=function(e,t,n){return{type:Us,payload:{ssoUrl:e,showPrelogin:t,ifOpenSignInPageEmbeddedWindow:n}}},Ux=function(e,t){return{type:$s,payload:t}},Gx=function(e){return{type:tc,payload:e}},Kx=function(e){return{type:ec,payload:e}},Yx=function(e){return{type:_l,payload:e}},Qx=function(e){return{type:Gs,payload:e}},Zx=function(e){return{type:nc,payload:e}},Jx=function(e,t,n){return void 0===n&&(n={}),{type:Ys,payload:{message:e,guid:ne(),ifCardMasking:t,options:n}}},Xx=function(e,t){return{type:Qs,payload:e,meta:t}},$x=function(){return{type:Js}},ey=function(){return{type:Xs}},ty=function(e){return{type:Oc,payload:e}},ny=ty,iy=ty,oy=function(e){return{type:Ac,payload:e}},ay=function(e){return{type:Lc,payload:e}},ry=oy,sy=te(oy,""),cy=function(e){return{type:Mc,payload:e}},dy=function(){return{type:zc}},ly=cy,uy=te(cy,""),py=function(){return{type:gd}},hy=function(e){return{type:wd,payload:e}},fy=function(e,t,n,i,o,a){return{type:md,payload:{ifHelpful:e,actionGuid:t,intentId:n,question:i,botId:o,chatbotMessageId:a}}},gy=function(e,t,n,i){return{type:qd,payload:{formActionType:2,guid:e,intentId:t,agentId:n,botId:i,formName:""}}},wy=function(e,t,n,i,o,a,r){return{type:Ud,payload:{formActionType:0,guid:e,intentId:t,agentId:n,values:a,botId:i,question:o,message:r,formName:""}}},my=function(e){return{type:Gd,payload:e}},by=function(e,t){return{type:ic,payload:{chatGuid:e,serverTime:t}}},vy=function(e,t){return{type:ms,payload:{type:e,params:t}}},_y=function(e){return{type:Hd,payload:e}},xy=function(){return{type:vd}},yy=function(){return{type:xs}},Cy=function(e){return{type:Hc,payload:e}},ky=function(e){return{type:qc,payload:e}},Sy=te(ky,!0),Iy=te(ky,!1),My=function(){return{type:fs}},Ay=function(){return{type:gs}},By=function(e){return{type:_d,payload:e}},Oy=function(e){return{type:xd,payload:{message:e}}},Ty=function(e,t,n){return{type:kd,payload:{localVideoContainer:e,remoteVideoContainer:t,unmuteRemoteContainer:n}}},jy=function(){return{type:Fd}},Fy=function(e,t){return{type:Md,payload:{localVideoContainer:e,remoteVideoContainer:t}}},Vy=function(){return{type:Ad}},Wy=function(){return{type:Bd}},Ny=function(e){return{type:Vd,payload:e}},Dy=function(e){return{type:Wd,payload:e}},Py=function(e){return{type:Nd,payload:e}},Ry=function(e){return{type:oc,payload:e}},Ey=function(e){return{type:dc,payload:e}},zy=function(e){return{type:lc,payload:e}},Ly=function(){return{type:rc}},Hy=function(e){return{type:sc,payload:e}},qy=function(){return{type:Ld}},Uy=function(e){return{type:cl,payload:e}},Gy=function(){return{type:Ks}},Ky=function(){return{type:dl}},Yy=function(e){return{type:ll,payload:e}},Qy=function(){return{type:wl}},Zy=function(e){return{type:ml,payload:e}},Jy=function(e){return{type:Cl,payload:e}},Xy=function(){return{type:bl}},$y=function(e){return{type:kl,payload:e}},eC=function(){return{type:Sl}},tC=function(){return{type:Il}},nC=function(e){return{type:Ml,payload:e}},iC=function(e,t,n,i,o,a){return{type:xl,payload:{url:e,type:t,title:n,iframe:i,noFocus:o,botId:a}}},oC=function(){return{type:yl}},aC=function(){return{type:Kd}},rC=function(e,t){return{type:vs,payload:{right:e,bottom:t}}},sC=function(e){return{type:cc,payload:e}},cC=function(e,t){return sC({text:e,ifDirectlySendOut:t})},dC=function(){return sC(void 0)},lC=function(){return{type:Ts,payload:!0}},uC=function(){return{type:js,payload:!0}},pC=function(e,t){return{type:Ol,payload:{guid:e,fieldsValue:t}}},hC=function(e){return{type:_s,payload:e}},fC=function(e){return{type:uc,payload:e}},gC=function(e){return{type:pc,payload:e}},wC=function(e){return{type:hc,payload:e}},mC=function(){return{type:Tl}},bC=function(){return{type:fc}},vC=function(){return{type:fd}},_C=function(){return{type:gc}},xC=function(e){return{type:Td,payload:{guid:e}}},yC=function(e){return{payload:e,type:jd}},CC=function(e){return{payload:e,type:wc}},kC=function(e,t){return{payload:{isTransferDone:e,chatGuid:t},type:mc}},SC=function(e){return{payload:e,type:bc}},IC=function(e){return{payload:e,type:vc}},MC=function(e){return{payload:e,type:kc}},AC=function(e){return{payload:e,type:_c}},BC=function(){return{type:xc}},OC=function(e){return{type:Uc,payload:e}},TC=function(e){return{type:Wl,payload:e}},jC=function(e){return{type:Nl,payload:e}},FC=function(e){return{type:Dl,payload:e}},VC=function(){return{type:Pl}},WC=function(e){return{type:yc,payload:e}},NC=function(){return{type:Cc}},DC=function(e){return{type:Bc,payload:e}},PC=function(e){return{type:Rl,payload:e}},RC=function(e){return{type:Ll,payload:{remoteVideoContainer:e}}},EC=function(e,t){return{type:zl,payload:{localVideoContainer:e,remoteVideoContainer:t}}},zC=function(){return{type:Fs,payload:!0}},LC=function(){return{type:Fs,payload:!1}},HC=function(){return{type:El}},qC=function(e){return{type:Hl,payload:e}},UC=function(e){return{type:ql,payload:e}},GC=function(){return{type:bs}},KC=function(e){return{type:Gl,payload:e}},YC=function(e){var t=e.url,n=e.name;return{type:Ul,payload:{url:t,name:n}}},QC=function(e){return{type:Kl,payload:e}},ZC=function(e){return{type:Ql,payload:e}},JC=function(e){return{type:Cs,payload:e}},XC=function(){for(var e=arguments.length,t=new Array(e),n=0;n0){var l=d.map((function(e){return e.id}));return r(Rk(t,l)),void c(l)}var u=hr(a),p=Eb().popout;p&&p.ticketId&&!Number.isNaN(+p.ticketId)&&(u.ticketId=+p.ticketId),p&&p.departmentId&&!Number.isNaN(+p.departmentId)&&(u.department=+p.departmentId),r(Vk(t)),bS(i+".submit",u),r(e(Ya(u),(function(e){return new Promise((function(c){bS(i+".submit.success"),r(Wk(t));var d=u;if(u.custom){var l=Object.keys(u.custom).reduce((function(e,i){var o=e;return o[a.find((function(e){return e.id===(n||t)+"-"+i})).label]=u.custom[i],o}),{});d=Object.assign({},u,{custom:l})}delete d.captcha,r(Dk(d,t)),setTimeout((function(){r(t===_p?Sy():function(e){return{type:al,meta:e}}(t)),c(e),s()}),o)}))}),(function(e){bS(i+".submit.fail",e),c(null,e)})))}))}}},zk=Ek(ok,bp),Lk=Ek(ak,vp,vp),Hk=Ek(rk,_p),qk=function(e,t,n){return e===bp?zk("livechat.prechat",t,n):e===vp?Lk("livechat.postChat",t,n):Hk("livechat.offlineMessage",t,n)},Uk=3e4,Gk=18e4,Kk=function(e,t){return e===t||typeof e==typeof t&&(null==e||null==t?e==t:Object.keys(e).reduce((function(n,i){return n&&e[i]===t[i]}),!0)&&Object.keys(t).reduce((function(n,i){return n&&t[i]===e[i]}),!0))},Yk=function(e,t){return Object.keys(e).reduce((function(n,i){if(e[i]===t[i])return n;var o=n;return o[i]=e[i],o}),{})};function Qk(e,t,n){void 0===n&&(n=!0);var i=e.getState(),o=e_(i),a=Object.assign({},o,t);if(!Kk(a,o)){n&&e.dispatch(Ax({customVariableResult:a}));var r=o?Yk(a,o):a;Object.keys(r).length>0&&e.dispatch(gk(r))}}var Zk,Jk,Xk,$k=function(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i1?t-1:0),i=1;i1?i-1:0),a=1;a=0;o--)if(!HS.includes(e[o].type)){n=o;break}return n},US=function(e,t){return e.concat(t)},GS=function(e,t,n){for(var i=function(){var i=e[o];if(n(i))return{v:e.map((function(e){return e===i?Object.assign({},t,{displayedText:e.displayedText}):e}))}},o=0;o0},tI=function(e){return function(t,n){var i=$S(t.messages);return Object.assign({},t,{isUploading:!0,error:"",warning:"",messages:i.concat({type:e,time:new Date,content:{fileName:n.fileName,parentMessageId:n.parentMessageId,percent:0,onCancel:void 0},sender:{type:cp}}),quickReply:null})}},nI=function(e,t){Hb()||zb({mediaChatHash:Date.now().toString()});var n=e.involvedAgents||[];return n.filter((function(e){return e===t})).length>0?Object.assign({},e,{chatStatus:wp,visitorStatus:au}):(n=(e.involvedAgents||[]).concat([t]),Object.assign({},e,{involvedAgents:n,chatStatus:wp,isChatBot:!1,webView:null,quickReply:null,visitorStatus:au}))},iI=function(e,t){var n=e.disPlayPriority+1;e.sideWindowItems.some((function(e){var i=e.id===t;return i&&(e.disPlayPriority=n),i}));var i=t===Vp||t===Wp;return{sideWindowSelectedTab:t,disPlayPriority:n,showChatWindowInSidewindow:i,isFocused:i}},oI=function(e,t){var n=e.disPlayPriority;n?n+=1:n=0;var i=e.sideWindowItems,o=t.id,a=t.noFocus||!1,r=Da()&&t.id===Tp&&a,s=t.id;return Da()&&(s=e.tab===op?Wp:Vp,r&&(o=s)),i&&i.some((function(e){var i=e.id===t.id;return i&&(e.disPlayPriority=n),i}))?{sideWindowSelectedTab:o,showChatWindowInSidewindow:r,isFocused:!1,disPlayPriority:n}:(t.disPlayPriority=n,i&&0!==i.length||(i=[],Da()&&i.push({id:s,isSystem:!0,disPlayPriority:0})),i.push(t),{sideWindowItems:i,sideWindowSelectedTab:o,showChatWindowInSidewindow:r,isFocused:!1,disPlayPriority:n})},aI=function(e,t,n,i){return void 0===i&&(i=!1),t?oI(e,{id:n,isSystem:!0,noFocus:i}):function(e,t){var n=e.sideWindowItems;if(n){var i=-1;n.some((function(e,n){var o=e.id===t;return o&&(i=n),o}));var o={};if(i>-1)return 1===n.length||2===n.length&&Da()?(o.sideWindowSelectedTab=void 0,o.disPlayPriority=0,n=[]):e.sideWindowSelectedTab===t?(n.splice(i,1),o.sideWindowSelectedTab=n.reduce((function(e,t){return e.disPlayPriority>t.disPlayPriority?e:t})).id,o.sideWindowSelectedTab===Vp||o.sideWindowSelectedTab===Wp?(o.showChatWindowInSidewindow=!0,o.isFocused=!0,o.maxReadId=Math.max(e.maxReadId,e.maxId)):(o.showChatWindowInSidewindow=!1,o.isFocused=!1)):n.splice(i,1),o.sideWindowItems=n,o}return{}}(e,n)},rI=function(e,t){return Object.assign({},e,aI(e,t.status===ra||t.status===oa||t.status===sa,jp),aI(e,t.status===la||t.status===ca||t.status===da,Fp),{vChatStatus:t.status,audioVideoChatStartTime:t.startTime||0,audio_video_disabled:t.status!==aa})},sI=function(e,t){return Object.assign({},e,aI(e,t.status===pa||t.status===ha||t.status===fa||t.status===ga||t.status===wa,Dp),{screenSharingStatus:t.status,screenSharing_disabled:t.status!==ua})},cI=function(e){return Object.assign({},rI(e,{status:aa,startTime:0}),{audioVideoAgentId:0,isRecording:!1})},dI=function(e){return Object.assign({},sI(e,{status:ua}),{screenSharingAgentId:0})},lI=function(e){return Object.assign({},(t=e,n={status:ua},Object.assign({},t,aI(t,n.status===pa||n.status===ha||n.status===fa||n.status===ga||n.status===wa,Dp),{screenSharingStatus:n.status})),{screenSharingAgentId:0});var t,n},uI=function(e){var t=gb();if(t.removeItem("pushpage_list"),t.removeItem("botConfidenceAnswerLoading_list"),!e)return e;var n=ZS(e.messages.filter(KS),!1);return n=JS(n.filter((function(e){return e.type!==Ri}))),n=XS(n),Object.assign({},e,aI(e,!1,Op),aI(e,!1,Tp),{disPlayPriority:0,chatStatus:mp,error:"",warning:"",messages:n,webView:null,quickReply:null,visitorStatus:uu})},pI=function(e,t){return n=e.chatGuid,((i=qb(n))?i===Hb():(Ub(n),1))?t():e;var n,i},hI=function(e,t){return!!e.crossSiteChatTransfer&&(!!t.siteId&&e.crossSiteChatTransfer.siteId!==t.siteId)},fI=function(){return function(e,t){return e.webView?Object.assign({},e,{webView:null}):e}},gI=function(){return function(e,t){if(t.type===Qn){var n=fI()(e,t);if(t.content.options&&t.content.options.length>0)return Object.assign({},n,{quickReply:{items:t.content.options.map((function(e){return{type:Uh,name:e.label}})),botId:t.content.botId,agentId:t.content.agentId}})}if(t.type===Ln&&t.content.textChatWithAgent)return Object.assign({},e,{quickReply:{items:[{type:qh,name:t.content.textChatWithAgent}],contactAgentText:t.content.textChatWithAgent}});if(t.type===Gn||t.type===Un||t.type===Zn){var i=fI()(e,t);return Object.assign({},i,{quickReply:null})}if(t.type===En||t.type===qn){var o=e;if(t.type===En&&(o=fI()(e,t)),t.content.intentAnswers&&t.content.intentAnswers.length>0){var a=null,r=t.content.intentAnswers.filter((function(e){return e.type===IS}));r.length>0&&(a=r[r.length-1]);var s=0;return t.content.intentAnswers.forEach((function(e,t){s+=e.delayTime})),a&&a.content&&a.content.quickReplyItems&&a.content.quickReplyItems.length>0?Object.assign({},o,{quickReply:{delayTime:s-a.delayTime,items:a.content.quickReplyItems,contactAgentText:t.content.ifAgentOnline?a.content.agentOnlineText:a.content.agentOfflineText,botId:t.content.botId,agentId:t.content.agentId}}):Object.assign({},o,{quickReply:null})}}return Object.assign({},e,{quickReply:null,webView:null})}},wI=function(e,t,n,i,o,a){var r,s=Object.assign({},OS,((r={})[Ei]=function(n){var i=JS(n.messages.filter((function(e){return e.id=t.id}))),isTaskBot:!1,isVisibleInputAreaWhenTaskbot:!0,enableChatInputWhenTaskbot:!0})},r[Gt]=function(e){if(hI(e,t))return e;var n=t.content.agent.id||t.senderId;return Object.assign({},nI(e,n),{involvedAgents:[n],isTaskBot:!1,webView:null})},r[Qt]=function(e){return hI(e,t)?e:nI(e,t.content.agent.id)},r[en]=function(e){return hI(e,t)?e:e.involvedAgents?e.involvedAgents.indexOf(t.senderId)>=0?e:Object.assign({},e,{involvedAgents:e.involvedAgents.concat(t.senderId)}):e},r[Yt]=function(e){var n=e.involvedAgents||[];return n.length<=1?e:Object.assign({},e,{involvedAgents:n.filter((function(e){return e.toString()!==t.sender.id.toString()}))})},r[Kt]=function(e){return Object.assign({},e,aI(e,!1,Op),{chatStatus:mp,visitorStatus:"refusedByOperator"})},r[Vt]=function(e){return Object.assign({},e,{quickReply:null,isVisibleInputAreaWhenBotChatting:!0,isDisableInputAreaWhenBotChatting:!1})},r[Bt]=function(e){if(!(a||n).postchat)return uI(e);var t=JS(e.messages.filter((function(e){return e.type!==Ri}))).filter((function(e){return e.type!==Dn})).concat({type:Dn,sender:{type:dp}});return Object.assign({},e,{error:""},aI(e,!1,Op),{chatStatus:mp,quickReply:null,webView:null,visitorStatus:uu,messages:t})},r[Wt]=function(e){return Object.assign({},e,{chatStatus:fp,quickReply:null,webView:null,visitorStatus:ou})},r[Xn]=function(e){return Object.assign({},e,{chatStatus:fp,quickReply:null,webView:null,visitorStatus:ou})},r[Hn]=function(e,t){return function(e,t,n){return Object.assign({},e,{isChatBot:!0,isTaskBot:!1,chatBot:Object.assign({},e.chatBot,function(){var e=t.content.bot;if(e&&e.avatar&&-1!==e.avatar.indexOf("|"))return e.avatar=Dr(e.avatar.split("|")[1],n),e;var i=e.avatar,o=z(e,zS);return i=Dr(i,n),Object.assign({avatar:i},o)}()),chatStatus:wp,visitorStatus:au})}(e,t,o)},r[pn]=function(e){return pI(e,(function(){return rI(e,{status:ra})}))},r[fn]=function(e,t){return pI(e,(function(){return rI(e,{status:sa,startTime:t.time-e.timeDelay})}))},r[kn]=function(e){return pI(e,(function(){return rI(e,{status:la})}))},r[In]=function(e,t){return pI(e,(function(){return rI(e,{status:da,startTime:t.time-e.timeDelay})}))},r[sn]=function(e,t){return e.vChatStatus!==aa?e:pI(e,(function(){return Object.assign({},rI(e,{status:oa}),{audioVideoAgentId:t.sender.id})}))},r[dn]=function(e,t){return pI(e,(function(){return Object.assign({},rI(e,{status:sa,startTime:t.time-e.timeDelay}),{audioVideoAgentId:t.sender.id})}))},r[vn]=function(e,t){return e.vChatStatus!==aa?e:pI(e,(function(){return Object.assign({},rI(e,{status:ca}),{audioVideoAgentId:t.sender.id})}))},r[xn]=function(e,t){return pI(e,(function(){return Object.assign({},rI(e,{status:da,startTime:t.time-e.timeDelay}),{audioVideoAgentId:t.sender.id})}))},r[cn]=cI,r[ln]=cI,r[un]=cI,r[Cn]=cI,r[yn]=cI,r[_n]=cI,r[Bn]=cI,r[On]=cI,r[mn]=cI,r[bn]=cI,r[Sn]=cI,r[Mn]=cI,r[An]=cI,r[hn]=cI,r[gn]=cI,r[wn]=cI,r[xi]=function(e){return pI(e,(function(){return sI(e,{status:pa})}))},r[Ci]=function(e){return pI(e,(function(){return sI(e,{status:fa})}))},r[wi]=function(e,t){return e.screenSharingStatus!==ua?e:pI(e,(function(){return Object.assign({},sI(e,{status:ha}),{screenSharingAgentId:t.sender.id})}))},r[bi]=function(e,t){return pI(e,(function(){return Object.assign({},sI(e,{status:ga}),{screenSharingAgentId:t.sender.id})}))},r[Bi]=function(e,t){return pI(e,(function(){return Object.assign({},sI(e,{status:ga}),{screenSharingAgentId:t.sender.id})}))},r[Ii]=function(e,t){return e.screenSharingStatus!==ua?e:pI(e,(function(){return Object.assign({},sI(e,{status:wa}),{screenSharingAgentId:t.sender.id})}))},r[mi]=dI,r[vi]=dI,r[_i]=dI,r[Oi]=dI,r[Wi]=dI,r[yi]=dI,r[ki]=dI,r[Ai]=dI,r[Si]=dI,r[Mi]=dI,r[Xt]=function(e){return e.limitClockerCount>0?Object.assign({},e,{warning:"",limitClockerCount:0,stopLimitClocker:!0}):e},r.systemAudioIsBeingRecorded=function(e){return Object.assign({},e,{isRecording:!0})},r.systemVideoIsBeingRecorded=function(e){return Object.assign({},e,{isRecording:!0})},r[zi]=gI(),r[En]=gI(),r[Qn]=gI(),r[Ln]=gI(),r[qn]=gI(),r[Yn]=function(e,t){return e.webView&&e.webView.content&&e.webView.content.GUID&&t.content.GUID===e.webView.content.GUID?Object.assign({},e,{webView:Object.assign({},e.webView,{success:!0})}):e},r[Zn]=gI(),r[Gn]=gI(),r[Un]=gI(),r[Kn]=gI(),r.cancelBotForm=gI(),r[Ut]=function(e){return Object.assign({},e,{visitorStatus:hu})},r)),c=s[t.type],d=e;return c&&(d=c(e,t,o)),d.isFocused&&(d=Object.assign({},d,{maxReadId:Math.max(e.maxReadId,e.maxId)})),d},mI=function(e){return Object.assign({fields:{name:"",email:"",phone:"",company:"",product:"",department:void 0,ticketId:void 0,custom:{}},forms:{prechat:"none",postchat:"none",offline:"none",rating:"none"},chatStatus:"none",messages:[],sourceMessages:[],maxId:-1,involvedAgents:[],draft:"",maxReadId:-1,isFocused:!1,isFrequencyLimited:!1,showPrelogin:!1,ssoUrl:"",queue:{},error:"",warning:"",fileUploadCount:0,disabled:!1,vChatStatus:aa,screenSharingStatus:ua,audioVideoChatStartTime:0,stopLimitClocker:!1,limitClockerCount:0,popupBubble:"none",bottom:0,right:0,pendingMessage:void 0,maxAgentReadId:"",maxVisitorReadId:"",showToolbox:!1,visitorStatus:pu,chatVersion:"",isMessageScrollBottom:!0},e)},bI=e(1)((function(e,t){return e.find((function(e){return e.guid===t.guid}))}));function vI(e){return mI({id:e.id,tab:Ju,right:e.right,bottom:e.bottom})}var _I,xI,yI=function(e,t){var n=e;return 0===t.sourceMessages.length||e.find((function(e){return e.type===Hi}))&&e.forEach((function(e){if(e.type===Hi)if(e.sender.type===dp)n=n.filter((function(e){return e.type!==Bt}));else{var i=function(e){for(var t=e.length-1;t>=0;t-=1)if(e[t].type===Hi&&e[t].extras&&"null"!==e[t].extras)return!0;return!1}(t.sourceMessages);i&&(n=n.filter((function(e){return e.type!==Hi})))}})),n},CI=Object.assign({},ES,((Xk={})[cc]=function(e,t){return Object.assign({},e,{pendingMessage:t})},Xk[ys]=function(e,t,n){var i=t.campaignId,o=t.crossSiteChatTransfer,a=t.chatInfo,r=n.right,s=n.bottom;return mI({id:i,tab:tp,involvedAgents:[],chatStatus:wp,visitorStatus:au,chatGuid:o.chatGuid,crossSiteChatTransfer:o,right:r,bottom:s,maxReadId:a.maxReadId,isFocused:a.windowStatus!==nu})},Xk[hs]=function(e,t,n){var i=t.campaignId,o=n.right,a=n.bottom;return mI({id:i,tab:Ju,right:o,bottom:a})},Xk[vd]=vI,Xk[xs]=vI,Xk[rs]=function(e,t,n){var i=n.campaignId,o=n.right,a=n.bottom,r=t.chat;return e?Object.assign({},e,{chatGuid:r&&r.guid}):t.type===mu||t.type===bu&&t.isManual?function(e,t,n,i){var o=t.isManual,a=o&&(t.type===bu||t.type===mu),r=t.chat,s=cu;return o&&(s=a?hu:su),mI({id:e,tab:tp,chatStatus:gp,chatGuid:r&&r.guid,right:n,bottom:i,messages:a?[]:[{id:-1,time:new Date,type:si,sender:{id:t.agent?t.agent.id:0,type:dp},content:t.text,guid:ne()}],sourceMessages:[],involvedAgents:t.agent?[t.agent.id]:[],visitorStatus:s})}(i,t,o,a):e},Xk[vs]=function(e,t){return Object.assign({},e,{right:t.right,bottom:t.bottom})},Xk[Rs]=function(e,t){var n=t.buttonOffset;return e?Object.assign({},e,{right:n.right,bottom:n.bottom}):e},Xk[Us]=function(e,t){return Object.assign({},e,t)},Xk[$s]=function(e,t){return Object.assign({},e,{chatBot:function(){var e=t;if(e&&e.avatar&&-1!==e.avatar.indexOf("|"))return e.avatar=Dr(e.avatar.split("|")[1],t.apiHost),e;var n=e.avatar,i=e.apiHost,o=z(e,LS);return n=Dr(n,i),Object.assign({avatar:n},o)}()})},Xk[ec]=function(e,t){return Object.assign({},e,{chatbotContext:t})},Xk[tc]=function(e,t){return Object.assign({},e,{fields:Object.assign({},e.fields,t)})},Xk[_l]=function(e,t){return Object.assign({},e,{kbConfig:t})},Xk[Gs]=function(e,t,n){var i=n.campaign,o=(n.fields,n.downloadUrl),a=n.apiHost,r=n.crossSiteTransferCampaign,s=t;e.isMessageScrollBottom||(s=t.map((function(e){return or(e)||rr(e)||sr(e)||lr(e)||dr(e)?Object.assign({},e,{isSeenByVisitor:!1}):e})));var c=s.filter((function(t){return!bI(e.sourceMessages,t)})),d=e.isVisibleInputAreaWhenBotChatting,l=c[c.length-1];l&&(SI(l)||[pp,dp].includes(l.sender.type))&&(d=!0);var u=s.find((function(e){return e.type===Ht})),p=e.visitorTyping;u&&(p=!1);var h=s[s.length-1].guid,f=s.find((function(e){return e.type===Wt}))&&e.messages.find((function(e){return e.type===Wt})),g=s.find((function(e){return e.type===Ot}))&&e.messages.find((function(e){return e.type===Ot})),w=s.filter((function(t){var n=(void 0===t.id||bI(c,t))&&t.type!==Ht;return(!n||!f||t.type!==Wt)&&((!n||!g||t.type!==Ot)&&("botConfirmForm"!==t.type&&"visitorConfirmBotForm"!==t.type&&"agentAttachTicketFail"!==t.type&&((t.type!==Bt||!s.find((function(e){return e.type===Hi&&e.extras})))&&(n&&t.type===Hi?function(e,t){if(t.sender.type===dp&&t.extras&&"null"!==t.extras)return!0;for(var n=!0,i=e.messages.length-1;i>=0;i-=1)if(e.messages[i].type===Hi&&e.messages[i].extras&&null!==e.messages[i].extras){n=!1;break}return n}(e,t):n))))})),m=function(e){var t=e.find((function(e){return e.type===Di})),n=e.find((function(e){return e.type===Pi}));if(t&&n){var i=e.reduce((function(e,t,n){return t.type.toLowerCase().startsWith("visitor")?e.concat(n):e}),[]);if(i.length>0){var o=i[i.length-1];return e.map((function(e,t){return t0){if(r[0].type===si&&!r.find((function(e){return e.type===Hn})))return r.map((function(e,t){return 0===t?Object.assign({},e,{type:qt,id:s.id},s):e}));var m=r.filter((function(e){return e.type!==Xt}));return US(m,s)}if(s.type===Jn){var b=r.map((function(e){return e.type===zi&&e.content.GUID===s.content.guid?Object.assign({},e,{disableRate:!0,visitorRate:s.content.visitorRate}):e}));return US(b,s)}if(s.type===Yn){var v=r.map((function(e){var t=e.content.GUID||e.content.messageGuid;return e.type!==Gn&&e.type!==zi||t!==s.content.GUID?e:Object.assign({},e,{ifDisable:!0})}));return US(v,s)}if(s.type===Vn)return[].concat(r).filter((function(e){return e.type!==Dn})).concat(s).concat({type:Dn,sender:{type:dp}});if(s.type===Hi)return[].concat(r).map((function(e){return e.type===jn?Object.assign({},e,{content:Object.assign({},e.content,{isDisable:!0})}):e.type!==an||e.isHidden?e:Object.assign({},e,{isHidden:!0})})).filter((function(e){return e.type!==Pn&&e.type!==Dn})).concat(s);if(s.type===qi)return[].concat(r).map((function(t){return t.guid===s.recallTargetMessageGuid?Object.assign({},t,{content:(e&&e.eventAgentRecallsMessage||"Agent {agent} has recalled a message.").replace("{agent}",s.senderName),type:qi,sender:{id:k,type:lp}}):t}));if(s.type===Ui){var _=[].concat(r);return s.recalledMessage&&s.recalledMessage.type===nn?GS(_,s,(function(e){return e.type===on&&e.content===s.recalledMessage.content.guid})):US(r,s)}return US(r,s)}}(r.languages,e.timeDelay||0,o),e.messages);if((b=function(e){var t=[],n=e.filter((function(e){return!e.content||!e.content.replacedId||""===e.content.replacedId||(t.push(e),!1)}));return n.map((function(e,i){var o=e,a=t.find((function(t){return(e.content||{}).id===(t.content||{}).replacedId}));return a&&(o=Object.assign({},e,{content:Object.assign({},a.content,{replaced:!0,replacedId:""})})),Object.assign({},o,{isProcessed:i0){var x=b.filter((function(e){return e.type!==ei&&e.type!==ti})).concat(_);b=x}var y=w.reduce((function(e,t){return wI(e,t,i,0,a,r)}),Object.assign({},e,{messages:b,sourceMessages:e.sourceMessages.concat(yI(c,e)),visitorTyping:p,maxId:Math.max(e.maxId,s[s.length-1].id),chatVersion:h}));return y=function(e){var t=e.messages.map((function(t){return t.type!==En||e.chatStatus===wp&&e.isChatBot?t:Object.assign({},t,{disableRate:!0})}));return Object.assign({},e,{messages:t})}(y),y=function(e){var t=e.messages.reverse(),n=t.findIndex((function(e){return"visitorSubmitRatingForm"===e.type})),i=t.findIndex((function(e){return e.type===Dn}));return-1!==n&&n0?Object.assign({},e,{isHidden:!0}):e}))})},Xk[Xs]=function(e){return bS("livechat.chat.start",e.chatGuid),function(e){return Object.assign({},e,{isChatBot:!0,isTaskBot:!1,chatStatus:wp,messages:e.messages.filter((function(e){return"system"===e.sender.type})),maxId:-1,visitorStatus:au})}(e)},Xk[Mc]=function(e,t){return e&&e.error!==t?Object.assign({},e,{error:t}):e},Xk[Yl]=function(e,t){return Object.assign({},e,{botCollectFileError:t})},Xk[Ac]=function(e,t){return e&&e.warning!==t?Object.assign({},e,{warning:t,stopLimitClocker:""===t||e.stopLimitClocker,limitClockerCount:""===t?0:e.limitClockerCount}):e},Xk[zc]=uI,Xk[ic]=function(e,t){var n=0;return t.serverTime>0&&(n=ie(t.serverTime)),Object.assign({},e,{chatGuid:t.chatGuid,requestTime:t.serverTime,timeDelay:n})},Xk[Lc]=function(e,t){return null==e||e.isFocused===t?e:Object.assign({},e,{isFocused:t,maxReadId:t?Math.max(e.maxId,e.maxReadId):e.maxReadId})},Xk[Sc]=function(e,t){return t===iu?null:t===nu?Object.assign({},e,{isFocused:!1,maxReadId:Math.max(e.maxId,e.maxReadId)}):(t===tu&&oe&&bS("livechat.chatwindow.restore"),t===eu||t===tu?Object.assign({},e,{isFocused:!0,maxReadId:Math.max(e.maxId,e.maxReadId)}):e)},Xk[Hc]=function(e,t){return Object.assign({},e,{ifHideBio:t})},Xk[md]=function(e,t){if(e.chatStatus===wp&&e.isChatBot){var n=e.messages.map((function(e){return e.type===En&&e.content.GUID===t.actionGuid?Object.assign({},e,{disableRate:!0}):e}));return Object.assign({},e,{messages:n})}return e},Xk[bs]=function(e,t,n){var i=n.languages;return Object.assign({},e,{error:i.promptRemoveRestrictedWords})},Xk[ms]=function(e,t,n){var i,o=n.maxLength,a=n.languages,r=((i={})[Ip]=function(){return a.promptInputLimit.replace(ae,o)},i[Sp]=function(){return"File must not be empty."},i[kp]=function(){return a.promptFileSizeExceed.replace("{fileSize}",t.params.fileSize)},i[Mp]=function(){return"You're sending messages too frequently. Please wait for "+t.params.seconds+" second(s) and try again."},i[Ap]=function(){return a.promptSendFileCountLimit.replace("{fileCount}",t.params.fileCount)},i[Bp]=function(){return"This file type is not supported."},i);if(t.type===Mp&&t.params.fromClocker&&e.stopLimitClocker)return e;if(t.type===Mp&&e.limitClockerCount>=10)return Object.assign({},e,{warning:"",limitClockerCount:0,stopLimitClocker:!0});if(r[t.type]){var s=r[t.type]();return Object.assign({},e,{warning:t.params&&t.params.isBotCollectFile&&t.type!==Ap?e.warning:s,botCollectFileError:t.params&&t.params.isBotCollectFile?t.type===Ap?"":s:e.error,stopLimitClocker:t.type!==Mp&&e.stopLimitClocker,limitClockerCount:t.type===Mp?e.limitClockerCount+1:e.limitClockerCount})}return e},Xk[gd]=function(e){var t=e.messages;return t[0].type===si&&(t=t.map((function(e,t){return 0===t?Object.assign({},e,{type:qt}):e}))),Object.assign({},e,{isVisibleInputAreaWhenBotChatting:!0,isDisableInputAreaWhenBotChatting:!1,chatWithAgentClicked:!0,messages:t,webView:null,quickReply:null})},Xk[qc]=function(e,t){return t===e.disabled?e:Object.assign({},e,{disabled:t})},Xk[fs]=function(){return null},Xk[_d]=function(e,t){return 0===t.position&&0===t.waitTime?e:Object.assign({},e,{queue:{position:t.position,waitTime:Math.ceil(t.waitTime/60)}})},Xk[Cd]=rI,Xk[js]=function(e,t){return Object.assign({},e,{showChatWindowInSidewindow:e.showChatWindowInSidewindow&&!t,maxReadId:e.showChatWindowInSidewindow&&!t?Math.max(e.maxReadId,e.maxId):e.maxReadId,audio_video_disabled:!0,isFocused:e.showChatWindowInSidewindow&&!t})},Xk[Ts]=function(e,t){return Object.assign({},e,{showChatWindowInSidewindow:e.showChatWindowInSidewindow&&!t,maxReadId:e.showChatWindowInSidewindow&&!t?Math.max(e.maxReadId,e.maxId):e.maxReadId,audio_video_disabled:!0,isFocused:e.showChatWindowInSidewindow&&!t})},Xk[Fs]=function(e,t){return Object.assign({},e,{showChatWindowInSidewindow:e.showChatWindowInSidewindow&&!t,maxReadId:e.showChatWindowInSidewindow&&!t?Math.max(e.maxReadId,e.maxId):e.maxReadId,screenSharing_disabled:t,isFocused:e.showChatWindowInSidewindow&&!t})},Xk[Os]=function(e,t){var n=Object.assign({},e.fields,{rating:t.score,comment:t.comment});return Object.assign({},e,{fields:n})},Xk[yd]=function(e,t){var n=[];return t.forEach((function(t){(t.type!==ui||eI(e,ui))&&(t.type!==ji||eI(e,ji))&&(t.type!==Vi||eI(e,Vi))&&(t.type!==pi||eI(e,pi))&&(t.type!==Fi||eI(e,Fi))&&(t.type!==gi||eI(e,gi))?t.type!==pi&&t.type!==Fi&&t.type!==ui&&t.type!==ji&&t.type!==Vi&&t.type!==gi&&n.push(t):n.push(t)})),Object.assign({},e,{messages:e.messages.concat(n)})},Xk[Vd]=function(e,t){var n={};return n.showChatWindowInSidewindow=t===Vp,n.isFocused=n.showChatWindowInSidewindow,n.maxReadId=n.showChatWindowInSidewindow?Math.max(e.maxReadId,e.maxId):e.maxReadId,Object.assign({},e,n,iI(e,t))},Xk[Wd]=function(e,t){return t?e.sideWindowSelectedTab?e:e.sideWindowItems&&0!==e.sideWindowItems.length?Object.assign({},e,iI(e,e.sideWindowItems[0].id)):e:e.sideWindowSelectedTab?Object.assign({},e,{sideWindowSelectedTab:void 0}):e},Xk[Sd]=function(e){return cI(e)},Xk[Id]=function(e){return lI(e)},Xk[Dd]=function(e){return Object.assign({},e,aI(e,!1,Op))},Xk[Pd]=function(e){return Object.assign({},e,aI(e,!0,Op))},Xk[Rd]=function(e){return Object.assign({},e,aI(e,!1,Np))},Xk[Ed]=function(e,t){return Object.assign({},e,function(e,t,n){var i=e.sideWindowItems;i&&i.some((function(e){var i=e.id===t;return i&&(e.id=n),i}));var o=e.sideWindowSelectedTab;return{sideWindowItems:i,sideWindowSelectedTab:o===t?n:o}}(e,t.targetTab,t.newTab))},Xk[oc]=function(e,t){return Object.assign({},e,{maxReadId:t})},Xk[ac]=function(e,t){return Object.assign({},e,{id:t})},Xk[rc]=function(e,t,n){return n?null:e},Xk[sc]=function(e,t){return e?e.popupBubble===t?e:Object.assign({},e,{popupBubble:t,autoEjectTranscript:!1}):e},Xk[Nd]=function(e,t){var n=e;t&&t.length>0&&[].concat(t).forEach((function(e){n=oI(n,e)}));return Object.assign({},e,n)},Xk[Hd]=function(e,t){return e?e.frequencyLimitState===t?e:Object.assign({},e,{frequencyLimitState:t}):e},Xk[Xc]=function(e,t){return Object.assign({},e,function(e,t,n){var i=e.fields||{};return i[t]=n,{fields:i}}(e,Fo,t))},Xk[cl]=function(e,t){return null==e||e.id===t?e:Object.assign({},e,{id:t})},Xk[Ks]=function(e){return e?Object.assign({},e,{messages:e.messages.filter((function(e){return e.type!==Xt}))}):e},Xk[ll]=function(e){return e},Xk[ul]=function(e){var t=e.messages.length,n=e.messages.map((function(e,n){return Object.assign({},e,{id:n-t})}));return Object.assign({},e,{maxId:-1,maxReadId:-1,messages:n})},Xk[wl]=function(e){return Object.assign({},e,{kbChatWithAgentClicked:!0})},Xk[pl]=function(e){return Object.assign({},e,{kb:Object.assign({},e.kb,{isLoading:!0})})},Xk[fl]=function(e,t){var n=t.map((function(e){return e.id}));return Object.assign({},e,{kb:Object.assign({},e.kb,{articles:n,isLoading:!1}),error:""})},Xk[gl]=function(e,t){return Object.assign({},e,aI(e,!0,Op),{kb:Object.assign({},e.kd,{activeArticle:t}),error:""})},Xk[ml]=function(e,t){return Object.assign({},e,aI(e,!0,Op),{kb:Object.assign({},e.kb,{activeArticle:t})})},Xk[Cl]=function(e,t){return Object.assign({},e,aI(e,!0,Np),{pushPage:Object.assign({},e.pushPage,{url:t})})},Xk[bl]=function(e){return Object.assign({},e,{error:"Network error",kb:{isLoading:!1}})},Xk[vl]=function(e,t){return Object.assign({},e,{error:404===t?"Page not found":"Network error"})},Xk[kl]=function(e,t){return Object.assign({},e,{webView:t})},Xk[Sl]=function(e){return Object.assign({},e,{webView:null})},Xk[Il]=function(e){return Object.assign({},e,{webView:Object.assign({},e.webView,{ifLoading:!0})})},Xk[Ml]=function(e,t){return Object.assign({},e,{webView:Object.assign({},e.webView,{ifLoading:!1,visitorInfo:t})})},Xk[xl]=function(e,t){return Object.assign({},e,aI(e,!0,Tp,t.noFocus),{botSideWindow:t})},Xk[yl]=function(e){return Object.assign({},e,aI(e,!1,Tp),{botSideWindow:null})},Xk[Kd]=function(e){return Object.assign({},e,{messages:e&&e.messages?e.messages.filter(YS).filter(QS):[]})},Xk[dc]=function(e,t){return t!==e.maxAgentReadId?Object.assign({},e,{maxAgentReadId:t}):e},Xk[lc]=function(e,t){return Object.assign({},e,{maxVisitorReadId:t})},Xk[Ol]=function(e,t){return Object.assign({},e,{messages:e.messages.map((function(e){if(e.type===Gn&&e.content.GUID===t.guid){var n=e.content.fields.map((function(e){var n=t.fieldsValue[e.id];return n?e.type===Yo&&n.value.indexOf(R)>-1?Object.assign({},e,{value:n.value.split(R)}):Object.assign({},e,{value:n.value}):e}));return Object.assign({},e,{content:Object.assign({},e.content,{fields:n})})}return e}))})},Xk[Vl]=function(e,t){return Object.assign({},e)},Xk[_s]=function(e,t){return e.showToolbox===t?e:Object.assign({},e,{showToolbox:t})},Xk[uc]=function(e,t){return e.visitorStatus===t?e:Object.assign({},e,{visitorStatus:t})},Xk[pc]=function(e,t){return e?e.chatVersion===t?e:Object.assign({},e,{chatVersion:t}):e},Xk[hc]=function(e,t){return e.emailToSendTranscript===t?e:Object.assign({},e,{emailToSendTranscript:t})},Xk[Tl]=function(e){return Object.assign({},e,{quickReply:null})},Xk[Od]=function(e,t){return e.isRecording===t?e:Object.assign({},e,{isRecording:t})},Xk[Td]=function(e,t){var n=t.guid,i=e.messages.map((function(e){return e.guid===n?Object.assign({},e,{isProcessed:!0}):e}));return Object.assign({},e,{messages:i})},Xk[jd]=function(e,t){var n=t.guid,i=t.ifDisable,o=e.messages.map((function(e){return e.guid===n?Object.assign({},e,{ifDisable:i}):e}));return Object.assign({},e,{messages:o})},Xk[wc]=function(e,t){var n=Object.assign({},e.crossSiteChatTransfer,{campaignId:t});return Object.assign({},e,{crossSiteChatTransfer:n})},Xk[_c]=function(e,t){var n=Object.assign({},e.crossSiteChatTransfer,{visitorGuid:t});return Object.assign({},e,{crossSiteChatTransfer:n})},Xk[mc]=function(e,t,n){var i=t.isTransferDone,o=t.chatGuid,a=Object.assign({},e.crossSiteChatTransfer,{isTransferDone:i,chatGuid:o});return Object.assign({},e,{crossSiteChatTransfer:a,sourceMessages:i?e.sourceMessages:e.sourceMessages.map((function(e){return Object.assign({},e,{siteId:n})}))})},Xk[bc]=function(e,t){return Object.assign({},e,{crossSiteChatTransfer:t})},Xk[vc]=function(e,t){var n=Object.assign({},e.crossSiteChatTransfer,{configuration:t});return Object.assign({},e,{crossSiteChatTransfer:n})},Xk[kc]=function(e,t){return Object.assign({},e,{chatBot:Object.assign({},e.chatBot,{intentQuestions:t})})},Xk[xc]=function(e,t){return Object.assign({},e,{fields:Object.assign({},e.fields,{rating:void 0,comment:void 0})})},Xk[Uc]=function(e,t){var n=e.crossSiteChatTransfer;return Object.assign({},e,{crossSiteChatTransfer:Object.assign({},n,{configuration:Object.assign({},n.configuration,{serverInstanceTag:t})})})},Xk[Uc]=function(e,t){var n=e.crossSiteChatTransfer;return Object.assign({},e,{crossSiteChatTransfer:Object.assign({},n,{configuration:Object.assign({},n.configuration,{serverInstanceTag:t})})})},Xk[Wl]=function(e,t){return Object.assign({},e,{isVisibleInputAreaWhenBotChatting:t})},Xk[Nl]=function(e,t){return Object.assign({},e,{isDisableInputAreaWhenBotChatting:t})},Xk[Gd]=function(e,t){var n=e.chatbotContext,i=n.variables||{},o=t.variableName,a=t.variableValue;return o&&a&&(i[o]=a),Object.assign({},e,{chatbotContext:Object.assign({},n,{variables:Object.assign({},i)})})},Xk[Dl]=function(e,t){return null===e?e:Object.assign({},e,{isMessageScrollBottom:t})},Xk[Pl]=function(e){return Object.assign({},e,{messages:e.messages.map((function(e){return!1===e.isSeenByVisitor?Object.assign({},e,{isSeenByVisitor:!0}):e}))})},Xk[yc]=function(e,t){return Object.assign({},e,{autoEjectTranscript:t,popupBubble:"sendEmail"})},Xk[Cc]=function(e){return Object.assign({},e,{messages:e.messages.filter((function(e){return e.type!==Dn})),forms:Object.assign({},e.forms,{rating:ap})})},Xk[Bc]=function(e,t){return Object.assign({},e,{width:t})},Xk[Rl]=function(e,t){return null===e?e:Object.assign({},e,{isPostChatVisible:t})},Xk[ql]=function(e,t){return null===e?e:Object.assign({},e,aI(e,!t,Dp))},Xk[Ul]=function(e,t){return null===e?e:Object.assign({},e,{previewImage:t})},Xk[Ql]=function(e,t){return Object.assign({},e,{ssoInfo:t})},Xk[Cs]=function(e,t){return Object.assign({},e,{chatWindowGreetingMessage:t})},Xk)),kI=U(null,CI),SI=function(e){if(e&&e.type===Rn&&e.context){try{var t=JSON.parse(e.context);if(!t.ChatbotContext||!t.ChatbotContext.Extra)return!0;if(t.ChatbotContext.Extra.isFromGotoIntent)return!1}catch(e){}return!0}return!1},II=U({},((_I={})[$r]=function(e,t){return Object.assign({},e,t)},_I[es]=function(e,t){return Object.assign({},e,{messageLengthLimit:t})},_I[sd]=function(e){var t=[].concat(e.heartbeat.online);return t=0===t[0].duration&&0===t[0].timespan?t.filter((function(e,t){return 0!==t})):[{duration:0,timespan:0}].concat(t),Object.assign({},e,{heartbeat:Object.assign({},e.heartbeat,{online:t})})},_I[ts]=function(e,t){return Object.assign({},e,{serverInstanceTag:t})},_I[ns]=function(e,t){return Object.assign({},e,{url:t})},_I)),MI=function(e,t){return e.entities.campaigns.entities[t||e.window.id].languages},AI=function(e,t,n){return Object.assign({},t,{config:MI(e,n)})};function BI(e,t){var n=Tm(e,t),i=jm(e,t);if(!n)return i;var o={right:n.right||i.right,bottom:n.bottom||i.bottom},a=void 0!==n.top,r=void 0!==n.left;if((a||r)&&(o.right=n.right||0,o.bottom=n.bottom||0),a){var s=Yw(e);o.bottom=s-n.top-n.height}if(r){var c=Qw(e);o.right=c-n.left-n.width}return o}var OI=((xI={})[hs]=function(e,t){var n=BI(e,t.payload.campaignId);return Object.assign({},t,{config:n})},xI[ys]=function(e,t){var n=BI(e,t.payload.campaignId);return Object.assign({},t,{config:n})},xI[rs]=function(e,t){var n=v_(e),i=t.payload.campaignId,o=BI(e,i),a=o.right,r=o.bottom,s=function(e,t){return ym(e,t).type}(e,i);return Object.assign({},t,{config:{right:a,bottom:r,campaignId:i,ifHideAgentName:Fh(e),agentDefaultName:n&&n.operatorDefaultName||"Agent",buttonType:s,apiHost:A_(e)}})},xI[bs]=function(e,t){return Object.assign({},t,{config:{languages:MI(e)}})},xI[ms]=function(e,t){return Object.assign({},t,{config:{languages:MI(e),maxLength:Th(e)}})},xI[ll]=function(e,t){return AI(e,t)},xI[Gs]=function(e,t){var n=sf(e),i=rf(e),o=e.entities.fields.entities,a=function(e){return Aw(e),yf(e),Tw(e),C_(e)+"/download.ashx?siteId="+Mw(e)+"&chatGuid="+yf(e)+"&visitorGuid="+Ow(e)+"&TranscriptPDF=1"}(e),r=Fh(e),s=n&&n.languages,c=s?s.operatorDefaultName:"Agent",d=A_(e);return Object.assign({},t,{config:{campaign:n,fields:o,downloadUrl:a,ifHideAgentName:r,agentDefaultName:c,apiHost:d,crossSiteTransferCampaign:i}})},xI[$d]=function(e,t){return AI(e,t,Ev(e))},xI[rc]=function(e,t){return Object.assign({},t,{config:g_(e)})},xI[Ld]=function(){return px()},xI[ws]=function(e,t){var n=Nw(e)===yu;return Object.assign({},t,{config:n})},xI[ml]=function(e,t){var n=function(e,t){return Y(e,"entities.kbArticles.entities."+t)}(e,t.payload);return Object.assign({},t,{payload:n})},xI[Ms]=function(e,t){var n=Fh(e),i=function(e){return sh(e,Cw(e))}(e),o=i&&i.languages,a=o?o.operatorDefaultName:"Agent",r=A_(e);return Object.assign({},t,{config:{ifHideAgentName:n,agentDefaultName:a,apiHost:r}})},xI[Sc]=function(e,t){if(t.payload!==iu)return t;if(e.window&&e.window.crossSiteChatTransfer){var n=e.window.crossSiteChatTransfer.campaignId;return n===e.page.campaignId?t:Object.assign({},t,{config:{transferCampaignId:n}})}return t},xI[fs]=function(e,t){if(e.window&&e.window.crossSiteChatTransfer){var n=e.window.crossSiteChatTransfer.campaignId;return n===e.page.campaignId?t:Object.assign({},t,{config:{transferCampaignId:n}})}return t},xI[mc]=function(e,t){return Object.assign({},t,{config:Mw(e)})},xI),TI=a({app:$l,page:Vu,entities:Zu,window:kI,configuration:II}),jI=function(e,t){return t.payload&&t.payload.window&&t.type===jl?function(e,t){var n=Object.assign({},t.payload.window,{messages:t.payload.window.messages.map((function(e){return Object.assign({},e,{time:new Date(e.time)})}))}),i=ee(),o=Object.assign({},t.payload.page,{height:i.height,width:i.width});return Object.assign({},e,{configuration:t.payload.configuration,entities:t.payload.entities,page:o,window:n})}(e,t):TI(e,function(e,t){return OI[t.type]?OI[t.type](e,t):t}(e,t))},FI="",VI=function(){var e=Eb().popout;if(e){var t={};return e.ticketId&&(t.ticketId=e.ticketId),e.departmentId&&(t.department=e.departmentId),t}return{}},WI="granted",NI="denied",DI="notsupported",PI=function(){var e=[WI,"default",NI,DI],t=["auto","ltr","rtl"],n=-1,i=["click","scroll","focus"],o=function(e){var t=e.lastIndexOf(".");return(-1!==t?e.substr(0,t):e)+".ico"};function a(){var e=q.createElement("div");this.addEventListener=function(t,n){e.addEventListener(t,n.bind(this))},this.removeEventListener=function(t,n){e.removeEventListener(t,n.bind(this))},this.dispatchEvent=function(t){if("string"==typeof t)try{e.dispatchEvent(new Event(t))}catch(i){var n=q.createEvent("Event");n.initEvent(t,!1,!0),e.dispatchEvent(n)}}}function r(){}function s(){var e=this;a.call(this);var t=n;Object.defineProperties(this,{close:{value:function(){var e=this;t===n&&(window.external.msSiteModeClearIconOverlay(),i.forEach((function(t){H.removeEventListener(t,e.close)})),this.dispatchEvent("click"),this.dispatchEvent("close"),t=null)}.bind(this)}}),this.close(),this.icon&&window.external.msSiteModeSetIconOverlay(o(this.icon),this.description||this.title),window.external.msSiteModeActivate(),this.dispatchEvent("show"),i.forEach((function(t){H.addEventListener(t,e.close)})),t=n+=1}var c=window.Notification||window.webkitNotifications&&r||"external"in window&&"msIsSiteMode"in window.external&&void 0!==window.external.msIsSiteMode()&&s||a;function d(e,n){var i=e;if(!arguments.length)throw TypeError('Failed to construct "Notification": 1 argument required, but only 0 present.');if(""===i&&(i="\b"),arguments.length>1&&"object"!=typeof n)throw TypeError('Failed to construct "Notification": parameter 2 ("options") is not an object.');var o=Object(n),a=o.dir;if(void 0!==a&&-1===t.indexOf(a))throw TypeError('Failed to construct "Notification": The provided value "'+a+'" is not a valid enum value of type NotificationDirection.');var r=new c(i,o);return r.body||Object.defineProperty(r,"body",{value:String(o.body||"")}),r.data||Object.defineProperty(r,"data",{value:o.data||null}),r.dir||Object.defineProperty(r,"dir",{value:a||t[0]}),r.icon||Object.defineProperty(r,"icon",{value:String(o.icon||"")}),r.lang||Object.defineProperty(r,"lang",{value:String(o.lang||"")}),r.requireInteraction||Object.defineProperty(r,"requireInteraction",{value:Boolean(o.requireInteraction)}),r.silent||Object.defineProperty(r,"silent",{value:Boolean(o.silent)}),r.tag||Object.defineProperty(r,"tag",{value:String(o.tag||"")}),r.title||Object.defineProperty(r,"title",{value:String(i)}),r.timestamp||Object.defineProperty(r,"timestamp",{value:(new Date).getTime()}),r}return Object.defineProperty(a,"permission",{enumerable:!0,get:function(){return DI}}),Object.defineProperty(a,"requestPermission",{enumerable:!0,writable:!0,value:function(e){e(this.permission)}}),Object.defineProperty(s,"permission",{enumerable:!0,get:function(){return window.external.msIsSiteMode()?WI:NI}}),Object.defineProperty(s,"requestPermission",{enumerable:!0,writable:!0,value:function(){var e=this;return new Promise((function(t){t(e.permission)}))}}),Object.defineProperty(s,"PERMISSION_REQUEST_MESSAGE",{writable:!0,value:"IE supports notifications in pinned mode only. Pin this page on your taskbar to receive notifications."}),Object.defineProperty(r,"permission",{enumerable:!0,get:function(){return e[window.webkitNotifications.checkPermission()]}}),Object.defineProperty(r,"requestPermission",{enumerable:!0,writable:!0,value:function(){return new Promise((function(e){window.webkitNotifications.requestPermission((function(t){e(t)}))}))}}),c.permission||Object.defineProperty(c,"permission",{enumerable:!0,get:function(){return c.permissionLevel&&c.permissionLevel()}}),Object.defineProperty(d,"permission",{enumerable:!0,get:function(){return c.permission}}),Object.defineProperty(d,"requestPermission",{enumerable:!0,value:function(){return new Promise((function(e,t){var n=c.requestPermission((function(t){e(t)}));n&&("function"==typeof n.then&&"function"==typeof n.catch?e(n):t(n))}))}}),d}(),RI=PI.requestPermission,EI="video-request",zI="screensharing-request",LI=function(){var e={},t=function(t){if(null==t)return Promise.reject("sound url is null");if(e[t])return Promise.resolve(e[t]);var n=new Promise((function(e,n){var i=new Audio(t);i.oncanplay=function(){i.oncanplay=null,e(i)},i.onerror=n}));return e[t]=n,n};return{play:function(e,n){return t(e).then((function(e){return e.loop=n?"loop":"",e.play()}))},stop:function(e){return t(e).then((function(e){e.loop=""}))}}}(),HI=se(LI.play,500),qI=ce((function(e,t){if(PI.permission===WI){var n=new PI(Q.host,{body:e,icon:t,tag:"livechat_notify"}),i=null;n.onclick=function(){H.focus(),n.close()},n.onshow=function(){i=setTimeout((function(){n.close(),i=null}),5e3)},n.onclose=function(){i&&clearTimeout(i)}}}),50);function UI(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent}var GI,KI=function(){return{type:jS,payload:{type:"locationCancelled"}}},YI=function(){return{type:FS,payload:{type:"visitorSSOCancelled"}}},QI=function(){return{type:VS,payload:{type:"meetingCancelled"}}},ZI=function(){return{type:PS,payload:{type:"microsoftBooking"}}},JI=function(e){var t=e.eventUri,n=e.inviteeUri;return{type:WS,payload:{bookMeetingEventUri:t,bookMeetingEventInviteeUri:n,type:"meetingSubmitted"}}},XI=function(e){return{payload:e,type:NS}},$I=function(e){return{type:DS,payload:{guid:e}}},eM="chat",tM="chatbot",nM="taskbot",iM="offline",oM="systemProcessing",aM=((GI={}).prechat=function(e){e(Hx(ep)),e(fC(ru)),e(yx(ru))},GI[eM]=function(e,t){Yf(t)||(e($x()),e(Hx(tp)),e(fC(ou)),e(yx(ou)))},GI[tM]=function(e,t,n){var i=A_(t);e(Ux(n.url,Object.assign({apiHost:i},n.bot))),e(ey()),e(Hx(tp)),e(fC(au)),e(yx(au))},GI[nM]=function(e,t,n){e({type:TS}),e(Hx(tp)),e(fC(au)),e(yx(au))},GI[iM]=function(e){e(Hx(ip)),e(fC(du)),e(yx(du))},GI.sso=function(e,t,n){e(qx(Ch(t,n.url),n.showPrelogin,n.ifOpenSignInPageEmbeddedWindow));var i=de(H.location.href,"ssoInfo");if(i){e(sk(i));var o=H.location.href.substring(0,H.location.href.indexOf("&ssoInfo="));H.history.replaceState(H.history.state,document.title,o)}else n.showPrelogin?e(Hx(Xu)):e(Hx($u)),n.showPrelogin||n.ifOpenSignInPageEmbeddedWindow||(ph(t)?e(_C()):e(bC()));e(fC(pu)),e(yx(pu))},GI.kb=function(e){e(Hx(op)),e(fC(gu)),e(yx(gu))},GI),rM=function(e,t,n){if(n.next===eM||n.next===tM||n.next===nM){var i=n.chatGuid,o=n.serverTime;"chatWindowGreetingMessage"in n&&e(JC(n.chatWindowGreetingMessage)),e(by(i,o)),setTimeout((function(){return e(Sk(),0)}))}if("kb"===n.next){var a=n.ifOnline,r=n.id,s=n.greetingMessage,c=n.maxCount;e(Q_(of(t),a)),e(Yx({id:r,greetingMessage:s,maxCount:c}))}else e(Q_(of(t),n.next!==iM));(aM[n.next]||function(){})(e,t,n)},sM=1004,cM=1036,dM=314,lM=1050,uM=4342338;function pM(e){return/\bjson\b/gi.test(function(e){return e.contentType?e.contentType:e.getResponseHeader?e.getResponseHeader("content-type"):null}(e))?JSON.parse(e.responseText):e.responseText}function hM(e,t,n,i,o,a){return new Promise((function(r,s){var c=function(){if("withCredentials"in new XMLHttpRequest)return new XMLHttpRequest;if(window.XDomainRequest)return new window.XDomainRequest;throw new Error("No CORS support.")}(),d=te((function(e,i){return s({url:t,input:n,error:{code:e,message:i,statusCode:c.status}})}),uM);!function(e,t,n){if(window.XDomainRequest&&e instanceof window.XDomainRequest&&/^https?:/.test(n)){var i=Q.href.toString().match(/^(https?):/)[1];e.open(t,i+n.substr(n.indexOf(":")),!0)}else e.open(t,n,!0)}(c,e,t),c.withCredentials=!(n instanceof window.FormData)&&a,o&&o.forEach((function(e){return c.setRequestHeader(e.prop,e.value)})),function(e,t){if(t){var n=function(){e.abort()};e.upload&&e.upload.addEventListener("progress",(function(e){var i=e.lengthComputable?Math.round(100*e.loaded/e.total):void 0;t(i,n)}),!1),t(void 0,n)}}(c,i),c.onload=function(){if(null==c.status||c.status>=200&&c.status<300)r({url:t,input:n,output:pM(c)});else{var e="http error "+c.status;if(c.responseText)try{e=JSON.parse(c.responseText).message}catch(e){}d(e)}},c.onabort=function(){return d("")},c.ontimeout=function(){return d("request timeout")},c.onerror=function(){return d("network error")},c.onprogress=function(){},null!=window.FormData&&n instanceof window.FormData?(c.timeout=Gk,c.send(n)):(c.timeout=Uk,c.send(JSON.stringify(n)))}))}var fM,gM,wM=te(hM,"GET"),mM=te(hM,"POST"),bM=wM,vM=mM,_M=function(e,t,n,i,o){var a=new FormData;return a.append("file",t,o),vM(e,a,i,[{prop:"Authorization",value:"Bearer "+n.token}])},xM=function(e,t,n,i){var o=n.replace(/\/campaign\.ashx.*$/i,""),a=function(e){return e&&o+(/^\//.test(e)?e:"/"+e)};return e(jx({id:t,entity:null,fetchStatus:Wu})),bM(n).then((function(n){var o=function(e){return G(e.mainColor)?e:Object.assign({},e,{mainColor:K})}(function(e){return Object.assign({},e,{sounds:e.sounds&&Object.keys(e.sounds).reduce((function(t,n){var i;return Object.assign({},t,((i={})[n]=a(e.sounds[n]),i))}),{}),chatBot:e.chatBot&&Object.assign({},e.chatBot,{avatar:a(e.chatBot.avatar)}),chat:e.chat&&Object.assign({},e.chat,{texture:e.chat.texture?_h(i,"/visitorside/"+e.chat.texture):e.chat.texture}),header:e.header&&Object.assign({},e.header,{banner:e.header.banner&&a(e.header.banner),logo:e.header.logo&&a(e.header.logo)})})}(n.output));return e(jx({id:t,entity:o,error:null,fetchStatus:Nu})),o})).catch((function(n){throw e(jx({id:t,entity:null,error:n.error.message,fetchStatus:Du})),n}))},yM=function(e,t,n){var i=Ab(e),o=(null==i?void 0:i.form)||{},a=function(e,t){try{var n={},i={};for(var o in e){var a=o.match(/{!Variable\.([\s|\S]+)}/)||[],r=o.match(/{!Pre-Chat\.([\s|\S]+)}/)||[];switch((a[1]||r[1]||"").toLocaleLowerCase()){case"name":n.name=e[o];break;case"email":n.email=e[o];break;case"companyname":n.company=e[o];break;case"phone":case"phonenumber":n.phone=e[o];break;default:r[1]&&(i[r[1]]=e[o])}}return"{}"!==JSON.stringify(i)&&(n.custom=Object.assign({},t.custom||{},i)),Object.assign({},t,n)}catch(e){return t}}(t,o);JSON.stringify(a)!==JSON.stringify(o)&&(Bb({name:a.name,email:a.email,form:a},e),n(Gx(a)))},CM=function(e,t,n){try{var i=JSON.parse(e.context),o=i&&i.ChatbotContext||{},a=o.Variables||{},r=o.CustomData||{};n(Kx({variables:a,visitorInfo:r})),yM(Mw(t),a,n)}catch(e){}try{var s=JSON.parse(e.content);return Object.assign({},e,{content:s})}catch(t){var c=[{content:{text:e.content}}];return Object.assign({},e,{content:c})}},kM=((fM={})[Pi]=function(e,t){try{var n=JSON.parse(e.content);return Object.assign({},e,{content:n})}catch(t){var i=[{type:"complex",content:{text:e.content}}];return Object.assign({},e,{content:i})}},fM[Rn]=function(e,t,n){return CM(e,t,n)},fM[zi]=function(e,t,n){return CM(e,t,n)},fM[qn]=function(e,t){try{var n=JSON.parse(e.content);return Object.assign({},e,{content:n})}catch(n){var i=[{type:AS,content:{text:e.content}}],o=Zh(t),a={ifAgentOnline:!0,ifRate:!1,intentAnswers:i,botId:o&&o.id||0};return Object.assign({},e,{content:a})}},fM[Xn]=function(e,t,n){return n(E_(!1)),e},fM[jn]=function(e,t,n){var i=e.content.info.split(R);if(4===i.length){var o=Ch(t,i[2]),a="true"===i[3].split("=")[1].toLowerCase();n(qx(o,!1,a))}return e},fM[Bt]=function(e,t,n){return n(vC()),e},fM),SM=function(e,t,n){return e.map((function(e){var i=kM[e.type];return i?i(e,t,n):e}))},IM=function(e,t,n){return e.forEach((function(e){if(e.type===Hi&&e.extras){var i=JSON.parse(e.extras);if(i){if(Dv(t)){var o=Dv(t);if(o.siteId===i.siteId&&o.fromSiteId===i.fromSiteId)return}n(SC(Object.assign({},i,{visitorGuid:Cb(i.siteId)}))),n(kC(!1)),n(_k()).then((function(e){var o=e.output.payload.crossSiteTransferDefaultCampaignId;if(!rh(t,o)){var a=y_(t),r=a?"&language="+a:"";xM(n,o,h_(i).replace(/\/visitor.ashx.*$/i,"/campaign.ashx?siteId="+i.siteId+"&campaignId="+o+"&lastUpdateTime="+Date.now()+r),t)}})),n(xk(i.siteId)),n(BC())}}}))},MM="{email}",AM=Gi,BM=function(e,t,n){var i=te(bh,t),o=Aw(t),a=ym(t,n).lastUpdateTime,r=rh(t,n);if(r)return Promise.resolve(r);var s=y_(t),c=i("/campaign.ashx?siteId="+o+"&campaignId="+n+"&lastUpdateTime="+a+(s?"&language="+s:""));return xM(e,n,c,t)},OM=function(e,t,n){var i=te(bh,t);return bM(i(n.customizedAdaptiveButtonIcon)).then((function(t){e(Fx({id:n.id,entity:Object.assign({},n,{customizeIcon:t.output,fetchStatus:Nu})}))})).catch((function(t){throw e(Fx({id:n.id,entity:Object.assign({},n,{fetchStatus:Du})})),t}))};function TM(e,t,n){var i=n.visitorGuid,o=n.ifNewVisitor,a=n.sessionId,r=n.ifMigrated,s=n.migrationInfo,c={guid:i,sessionId:a};c.ifNewVisitor=o,r&&(c.migrationInfo=s),Nv(e)&&t(AC(i)),Nv(e)?Aw(e):Mw(e),t(X_(c)),t(ex())}function jM(e,t,n){var i,o=e.dispatch,a=e.getState,r=t.input,s=t.output,c=a(),d=((i={})[AM.getConfig]=function(e){e.features&&(vb(!!e.features.useSessionCookie),(e.features.disableCookie||"about:srcdoc"===q.location.href&&q.location.ancestorOrigins.length>1)&&Qm()),Nv(a())?(o(CC(e.crossSiteTransferDefaultCampaignId)),o(IC(e))):o(Ax(e.customVaraibles?e:Object.assign({},e,{kbAPIUrl:Dr(e.kbAPIUrl,A_(c)),customVariableResult:ph(c)?e_(c):Ca(e.customVariables)}))),o(lk())},i[AM.getChatWindowConfig]=function(e){var t=e.messageLengthLimit||ae;r.siteId&&r.siteId===Pv(a())?o(IC(Object.assign({},e,{messageLengthLimit:t,features:Object.assign({},Dv(a()).configuration.features,e.features)}))):o(Ax(Object.assign({},e,{messageLengthLimit:t,features:Object.assign({},c.configuration.features,e.features)})))},i[AM.getChatbotQuestions]=function(e){o(MC(e))},i[AM.getCustomVariables]=function(e){var t="product service",n=le(e,["name","email","phone","company",t]),i=n[0],a=n[1];i[t]&&(i.product=i[t],delete i[t]);var r=Vv(c).map((function(e){return e.label})),s=le(a,r)[0];o(Dk(Object.assign({},i,{custom:s})))},i[AM.getChatButton]=function(e){var t=Zw(c);if(t)o(_x(e.id));else{var n=kw(c);n===e.id||isNaN(parseInt(n,10))||o(xx(e.id,n))}var i=0;r.campaignId===e.id||isNaN(parseInt(r.campaignId,10))||(i=parseInt(r.campaignId,10)),o(Fx({id:e.id,entity:Object.assign({},e,{intId:i,divId:zr(e.id,i)}),fetchStatus:e.isCustomizedAdaptiveButtonUsed?Wu:Nu})),t&&bS("livechat.dynamicCampaign.change",e.id),e.isCustomizedAdaptiveButtonUsed&&OM(o,a(),e),BM(o,a(),e.id).then((function(e){return Nv(a())||o(P_()),new Promise((function(t){setTimeout(t,0,e)}))})).then((function(e){var n=a(),i=ph(n),s=q.getElementsByTagName("iframe"),d="$brandingName-iframe".replace("$brandingName",H.brandingNameLowerCase);if(s.length>0&&s[d]&&s[d].setAttribute("lang",e.languageCode),i){var l=q.getElementsByTagName("html");l.length>0&&l[0].setAttribute("lang",e.languageCode)}if(cm(n,e.id)){var u=lv();o(K_(u))}else uv(),o(K_(!1));i&&Bw(n)!==eu&&(Lr===fs?o(G_()):dv(Mw(c),Sw(c))||(o(sx(kw(a()))),o(lx()))),(t||r.alreadyCampaignId)&&o(Uy(e.id));var p=q.getElementById("windowLoading");p&&p.parentNode.removeChild(p)}))},i[AM.checkManualInvitation]=function(e){var t=r.campaignId===k,n=/^-?\d+$/.test(r.campaignId)?Cm(c,parseInt(r.campaignId,10)):r.campaignId,i=t?kw(c):n;if(e&&e.agent&&!yv(c)&&Bw(c)===iu){var a=function(){var t=e.type!==bu&&e.type!==wu||!G(e.textBackgroundColor)?K:e.textBackgroundColor,n=Object.assign({},e,{isManual:!0,campaignId:i,textBackgroundColor:t});o(Z_(n)),bS("livechat.invitation.display",n)};e.type===mu||e.type===bu?o(xk()).then(a):a()}},i[AM.confirmAutoInvitation]=function(e){var t=r.campaignId===k?kw(c):r.campaignId,n=Number(t);if(isNaN(n)||(t=Cm(c,n)),e&&!yv(c)&&!Cv(c)&&Bw(c)===iu){var i=function(){var n=e.type!==bu&&e.type!==wu||!G(e.textBackgroundColor)?K:e.textBackgroundColor,i=Object.assign({},e,{isManual:!1,campaignId:t,textBackgroundColor:n});o(Z_(i)),"chatWindowGreetingMessage"in e&&o(JC(e.chatWindowGreetingMessage)),o(J_(!1)),bS("livechat.invitation.display",i)};o(J_(!0)),e.type===mu?o(xk()).then(i):i()}},i[AM.checkAutoInvitation]=function(e){if(null!=e){var t={};e.forEach((function(e){var n=e.id,i=e.delay;Object.keys(t).indexOf(i.toString())>-1?t[i]=t[i].concat(n):t[i]=[n]})),Object.keys(t).forEach((function(e){setTimeout((function(){Bw(a())===iu&&o(XC.apply(Bk,[_o()].concat(t[e].map((function(e){return eo(r.campaignId,e)})))))}),1e3*e)}))}},i[AM.showInvitation]=function(e){var t=kw(c);if(e&&!yv(c)&&Bw(c)===iu){var n=function(){var n=Object.assign({},e,{isManual:!1,campaignId:t});o(Z_(n)),bS("livechat.invitation.display",n)};e.type===mu?o(xk()).then(n):n()}},i[AM.manualInvitationShowed]=function(e){kw(c),"chatWindowGreetingMessage"in e&&o(JC(e.chatWindowGreetingMessage))},i[AM.getIfOnline]=function(e){var t=e.campaignId,n=e.ifOnline;o(Q_(t,n))},i[AM.checkIfOnline]=function(e){var t=e.campaignId,n=e.ifOnline;o(Q_(t,n))},i[AM.batchAction]=function(e){for(var t=0;t0?i.custom[e.name]=e.value.split(R):i.custom[e.name]=e.value}));else if("department"===o){var a=Object.keys(t).filter((function(n){return t[n].name===e.department}));a.length>0?i[o]=Number(a[0]):i[o]=""}else"ssoId"===o&&"userId"===o&&"variables"===o&&"ssoSessionToken"===o||(i[o]=e[o])})),$b(e),o(ZC(e)),o(Dk(i,xp))}},i[AM.refuseAutoInvitation]=function(){o(yx(lu))},i[AM.refuseManualInvitation]=function(){o(yx(lu))},i[AM.recoverVisitor]=function(e){o(gC(e.baseVersion)),o(z_()),Nv(c)?o(OC(e.serverInstanceTag)):o(Ox(e.serverInstanceTag))},i[AM.closeWindow]=function(){var e=W_(c);e!==ou&&e!==ru&&e!==gu||o(yx(pu)),e===au&&o(yx(uu))},i[AM.getSSORecoverInfo]=function(e){e&&e!==tv()&&(ev(e),ov())},i[AM.requestChatFromAnotherSite]=function(e){if("offline"===e.next){var t=kw(c),n=__(c,t),i=$[n].transferToOffline;o(Zx(i)),o(dy())}else{rM(o,a(),e),o(kC(!0,e.chatGuid)),o(gC(""));var r=Dv(c);cv(Mw(c),Sw(c),Object.assign({},r,{isTransferDone:!0,chatGuid:e.chatGuid,agents:Object.assign({},r.agents||{},_m(c))}))}},i);null!=r&&null!=d[r.type]&&d[r.type](s.payload)}var FM,VM,WM,NM=function(e){return{chatGuid:yf(e),siteId:Mw(e),sessionId:Ob(),visitorGuid:Ow(e)}},DM=function(e){return fo(yf(e),Sf(e))},PM=function(e,t){return xo([Object.assign({},NM(t),e),DM(t)])},RM=((gM={})[VS]=PM,gM[WS]=PM,gM[jS]=PM,gM[FS]=PM,gM[PS]=PM,gM[RS]=function(e,t){var n=Iv(t);return xo([Object.assign({taskbotId:n},NM(t),e),DM(t)])},gM),EM="chatbot/locationCancelled",zM="chatbot/visitorSSOCancelled",LM="chatbot/meetingCancelled",HM="chatbot/meetingSubmitted",qM="chatbot/chatbotFormCancelled",UM="chatbot/microsoftBooking",GM="chatbot/canvasAuthorization",KM=function(e){return{chatGuid:yf(e),siteId:Mw(e),sessionId:Ob(),visitorGuid:Ow(e)}},YM=function(e){return fo(yf(e),Sf(e))},QM=function(e,t){return xo([Object.assign({},KM(t),e),YM(t)])},ZM=((FM={})[LM]=QM,FM[HM]=QM,FM[EM]=QM,FM[zM]=QM,FM[qM]=QM,FM[UM]=QM,FM[GM]=QM,FM),JM=Gi,XM=0,$M=[],eA={},tA={},nA=null,iA=function(e,t,n,i,o){try{var a=JSON.parse(i.output);if(i.code)return void t({input:Object.assign({},e.action,{isUseStandbyFileService:o}),error:a})}catch(t){e.action.fileServiceUrl?n({input:e.action,output:{name:e.action.fileName,key:i.output,isUseStandbyFileService:o}}):n({input:e.action,output:i.output[0]})}},oA=[JM.getChatMessages,JM.agentMsgSeenByVisitor,JM.visitorGetLatestMsgSeen],aA=function(e){return!!e&&(e.code===uM&&""===e.message)},rA=function(e,t){var n=Ib("chatServerUrls"),i=new URL(t).origin,o=n.indexOf(i)||0;return new Promise((function a(r,s){e(t).then(r).catch((function(e){var c=e.error;if(c&&405===c.statusCode)s(e);else if(o=500||404===s.statusCode)?r(a,o.file,o.action,n).then((function(n){return iA(o,t,e,n,!0)})).catch((function(e){if(e instanceof Error)throw e;aA(e.error)?t({input:o.action,error:Object.assign({},e.error,{message:void 0})}):t({input:o.action,error:i.error})})):t({input:o.action,error:i.error})}))})):(o.type===JM.newVisitor&&av(),new Promise((function(t,n){null==nA&&(nA=function(){var e=0;return function(){return e+=1}}());var a=nA();(function(e,t){var n=!0,i=!1;return e.forEach((function(e){Co(e,JM.submitSSOInfo)&&(i=!0)})),i&&yo((function(e){oA.indexOf(e.type)>-1&&(n=!1)}),t),n})($M,o)&&$M.push(Object.assign({},o,{id:a})),eA[a]=t,tA[a]=n,clearTimeout(XM),XM=setTimeout(N(E().mark((function n(){var o,a,r,s,c;return E().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=$M.splice(0,$M.length),a=!!Co(o,JM.newVisitor),r=[],n.prev=3,!Km.get("aws-waf-token")){n.next=9;break}s=Km.get("aws-waf-token"),r.push({prop:"x-aws-waf-token",value:s}),n.next=14;break;case 9:if(!H.AwsWafIntegration){n.next=14;break}return n.next=12,H.AwsWafIntegration.getToken();case 12:c=n.sent,r.push({prop:"x-aws-waf-token",value:c});case 14:n.next=18;break;case 16:n.prev=16,n.t0=n.catch(3);case 18:rA((function(e){return vM(e,o,null,r,a)}),e).then((function(e){var t=e.input,n=e.output,o=e.url;t.forEach((function(e,t){n[t].error?tA[e.id]({input:e,error:n[t].error,serverInstanceTag:i}):eA[e.id]({input:e,output:n[t],serverInstanceTag:i,newValidChatServerUrl:new URL(o).origin}),delete eA[e.id],delete tA[e.id]}))})).catch((function(e){if(e instanceof Error)throw e;var n=e.input,i=e.error;i&&405===i.statusCode?t({input:n,error:i}):n.forEach((function(e){tA[e.id]({input:e,error:i}),delete eA[e.id],delete tA[e.id]}))}));case 19:case"end":return n.stop()}}),n,null,[[3,16]])}))),0)})))},cA=function(e,t,n,i){return sA(e,t,n,i).then((function(e){return e}))},dA=Gi,lA=null,uA=function(e){var t=e.getState,n=e.resolve;return cA(f_(t()),{type:Gi.systemProcessingHeartbeat}).then((function(e){if(!e.output.payload){clearInterval(lA),lA=null;var i=t(),o=null;if(Rv(i)){var a=Fw(i,Zw(i)?k:kw(i)),r=Yh(i),s=Zb();o=r===gp?xo([Object.assign({},a,{isPrechatDone:!0,isProcessingDone:!0,lastChattedAgents:s})].concat(function(e){var t=Sf(e),n=mf(e),i=fr(n),o=[].concat(i);if(Cf(e)){var a=kf(e);o.push({type:Ht,content:a,sender:{type:cp},id:n.length+t+1})}return[0===o.length?null:bo(null,o),fo(null,-1)]}(i))):Object.assign({},a,{isProcessingDone:!0,lastChattedAgents:s})}else o=Object.assign({},Lv(i),{isProcessingDone:!0});cA(f_(i),o).then((function(e){e.output.payload&&(clearInterval(lA),lA=null,n(e))}))}}))},pA=function(e){var t=e.getState,n=e.dispatch,i=function(e){return new Promise((function(e,n){null===lA?(uA({getState:t,resolve:e}),lA=setInterval(uA,2e3,{getState:t,resolve:e})):n("Already checking system processing")})).then((function(t){var n=t.output;return function(e,t){return Object.assign({},e,{output:ko((function(e){if(e.type===dA.requestChat){if(t.type===dA.batchAction){var n=t.payload.filter((function(e){return e.type===dA.requestChat}));if(n.length>0)return Object.assign({},e,n[0])}return Object.assign({},e,t)}if(e.type===dA.requestChatFromAnotherSite){if(t.type===dA.batchAction){var i=t.payload.filter((function(e){return e.type===dA.requestChatFromAnotherSite}));if(i.length>0)return Object.assign({},e,i[0])}return Object.assign({},e,t)}if(e.type===dA.getChatMessages&&t.type===dA.batchAction){var o=t.payload.filter((function(e){return e.type===dA.getChatMessages}));if(o.length>0)return Object.assign({},e,o[0])}return e}),e.output)})}(e,n)}))};return function(e){var o=Co(e.output,dA.requestChatFromAnotherSite);if(o&&o.payload.next===oM){var a=Co(e.output,dA.newVisitor);return a&&TM(t(),n,a.payload),i(e)}var r=Co(e.output,dA.requestChat);return r&&r.payload.next===oM?(n(Hx(Ju)),n(fC(fu)),n(yx(fu)),i(e)):e}},hA=[Gi.checkBan,Gi.checkBBSCode,Gi.closeWindow,Gi.emailTranscript,Gi.getAgents,Gi.getChatButton,Gi.getConfig,Gi.getDepartments,Gi.submitPostChat,Gi.recoverVisitor],fA=function(e){return[So({visitorGuid:Ow(e),visitorId:xb()}),Yi(Ev(e),xb(),Ow(e),q.referrer,jw(e),ka(),Sa(),C,Ab(Aw(e)||Mw(e)),y_(e))]},gA=function(e,t){var n=W_(e),i=n===gu;n=i?ru:n;var o=function(e){var t=Ib(Sb(e));return t.navigation?t.navigation.filter((function(e){return e})):[]}(),a=tv(),r=kv(e),s=Iv(e);return[So({visitorGuid:Ow(e)}),Qi(kw(e),Ow(e),q.referrer,ka(),Sa(),C,Ab(),jw(e),n,i,o,t,a,r,s,y_(e))]},wA=function(e,t,n,i){var o,a=Fw(e,Zw(e)?k:t),r=a.source;return o=r.type===Cu||r.type!==xu&&a.invitationtype===mu,Object.assign({},a,{lastChattedAgents:n,isPrechatDone:o,artifact:i})},mA=function(e){var t=[];return function(e){return vm(e).length}(e)<3&&t.push(_o()),function(e){return e.configuration.features.department}(e)&&t.push(vo()),t},bA=function(e){var t=W_(e),n=Vh(e),i=t===du?[]:xa(bf(e),n),o=jw(e),a=kw(e),r=Tv(e,bp,a),s=pf(e),c=Zh(e),d=kv(e),l=Sv(e),u=Eb().popout,p=Ab(),h=p.name,f=p.email,g=p.form,w=Ya(hr(r));g&&g.custom&&Object.keys(g.custom).forEach((function(e){var t=r.filter((function(t){return t.label===e}));if(t.length>0){var n=pr(t[0].id);w.custom[n]=w.custom[n]||g.custom[e].join&&g.custom[e].join(R)}}));var m=Object.assign({},w,{name:h,email:f,phone:w.phone||g?g.phone:"",company:w.company||g?g.company:""});return u&&u.ticketId&&!Number.isNaN(+u.ticketId)&&(m.ticketId=+u.ticketId),u&&u.departmentId&&!Number.isNaN(+u.departmentId)&&(m.department=+u.departmentId),Object.assign({chatGuid:yf(e),messages:i,source:Vw(e),requestingPageUrl:o.url,requestingPageTitle:o.title,botId:s&&c?c.id:k,isChattingWithTaskbot:d,taskbotId:d&&l&&l.id?l.id:k},m,{maxAgentReadGuid:Fg(e),maxVisitorReadGuid:Vg(e),emailToSendTranscript:Kg(e)})},vA=Gi,_A=function(e){return Co(e,vA.pageVisit)||Co(e,vA.requestChat)||Co(e,vA.requestChatFromChatbot)||Co(e,vA.submitOfflineMessage)||Co(e,vA.requestChatFromAnotherSite)||Co(e,vA.showInvitation)},xA=function(e,t){var n=e.split("-"),i=n[0],o=n[1],a=t.split("-"),r=a[0],s=a[1];return i===r&&o!==s},yA=function(e,t){var n=zv(e),i=t.serverInstanceTag,o=t.error.serverInstanceTag;return wh(e)||n&&o&&xA(i,o)&&n===o},CA=function(e,t){var n=function(e){return e.app.lastSuccessTime}(e),i=Date.now()-n<12e4,o=zv(e),a=t.error.serverInstanceTag;return i&&(!o||o&&a&&xA(o,a))},kA=function(e){var t=kw(e),n=e_(e),i=jw(e);return[n&&Ji(n,t),Zi(t,i,y_(e))]},SA=function(e,t,n,i){if(!Co(t,vA.setCustomVariables)){var o=Ca($v(e)),a=o?Ji(o,kw(e)):null;return xo(a?i.concat(a).concat(n):i.concat(n))}return xo(i.concat(n))},IA=function(e,t){if(Nv(e))return MA(e,t);if(Co(t,Gi.recoverVisitor))return t;var n=t.type===vA.batchAction?t.actions:t,i=bA(e),o=gA(e,i);if(Co(t,vA.requestChat)){var a=kA(e);return xo(o.concat(a).concat(n))}return SA(e,t,n,o)},MA=function(e,t){if(Co(t,Gi.recoverVisitor))return t;t.type===vA.batchAction&&t.actions;var n=function(e,t){var n=kv(e),i=Iv(e);return[So({visitorGuid:Tw(e)}),Qi(Ev(e),Tw(e),q.referrer,ka(),Sa(),C,Ab(Aw(e)||Mw(e)),jw(e),N_(e)?"transferring":au,!1,[],t,null,n,i,y_(e))]}(e,bA(e));return xo(n)},AA=function(e,t,n,i){var o=e.getState;return e.dispatch,function(e){var a=e.input,r=e.error.code,s=o(),c=Co(a,vA.newVisitor);if(r===sM){if(yA(s,e)&&!_A(a))return e;if(c)throw e;if(CA(s,e)){var d=IA(s,a);return t(d,n,i)}if(_A(a)){var l=function(e,t){var n=t.type===vA.batchAction?t.actions:t,i=fA(e);if(Co(t,vA.requestChat)){var o=kA(e);return xo(i.concat(o).concat(n))}return Co(t,vA.requestChatFromAnotherSite)?xo(i.concat(n)):SA(e,t,n,i)}(s,a);return t(l,n,i)}}else if(r===lM){if(yA(s,e)&&!_A(a))return e;if(CA(s,e)||_A(a)){var u=IA(s,a);return t(u,n,i)}}throw e}},BA=function(e,t,n){var i=Mw(n),o=function(e){return Y(e,"window.kbConfig.id")}(n),a=[jh(n),"/"+i+"/"+o+"/articles?keyword="+encodeURIComponent(t)].join("");bM(a).then((function(t){e(Px(fl,t.output))})).catch((function(){e(Xy())}))},OA="waf-js-captcha-container",TA="waf-js-captcha-puzzle-container",jA="puzzle-loading",FA="waf-js-captcha-script",VA={},WA=function(){return new Promise((function(e){var t=VA.apiKey&&VA.jsUrl?VA:VA=NA({apiKey:H.wafConfig.wafApiKey,jsUrl:H.wafConfig.wafJSUrl});try{if(H.AwsWafCaptcha)return void e(H.AwsWafCaptcha);if(!t.jsUrl||!t.apiKey)return void e(null);var n=q.createElement("script");if(n.src=t.jsUrl,n.id=FA,n.onload=function(){e(H.AwsWafCaptcha)},q.getElementById(FA))return void e(H.AwsWafCaptcha);q.head.appendChild(n)}catch(t){e(null)}}))},NA=function(e){return Object.assign(VA,e)},DA=function(e,t){void 0===e&&(e=!0);for(var n=window.violatedQueue.shift();n;)try{e?n.resolve(Object.assign({},n.reason,{wafToken:t})):n.reject(n.reason)}catch(e){}finally{n=window.violatedQueue.shift()}},PA=function(e,t){return new Promise((function(n,i){try{if(d={resolve:n,reject:i,reason:e},window.violatedQueue||(window.violatedQueue=[]),window.violatedQueue.push(d),window.violatedQueue.length>=2)return;t&&NA(t);var o=function(){var e=q.getElementById(OA);e||((e=q.createElement("div")).id=OA,e.style.cssText="display:none;position:fixed;inset:0px;z-index:9999;background-color:rgba(0, 0, 0, 0.5);justify-content:center;align-items:center;",q.body.appendChild(e));var t=q.getElementById(TA);t||((t=q.createElement("div")).style.cssText="display:none;padding:24px;border-radius:4px;width:302px;position:absolute",t.id=TA,e.appendChild(t));var n=q.getElementById(jA);return n||((n=q.createElement("div")).style.display="none",n.id=jA,n.innerHTML='\n\n \n\n',e.appendChild(n)),{container:t,showLoading:function(){e.style.display="flex",n.style.display="flex",t.style.backgroundColor="",t.style.display="block"},openPuzzle:function(){n.style.display="none",t.style.display="block",t.style.backgroundColor="#fff",t.style.width=""},hide:function(){e.style.display="none",n.style.display="none",t.style.display="none"}}}(),a=o.container,r=o.showLoading,s=o.openPuzzle,c=o.hide;WA().then((function(e){e&&(r(),e.renderCaptcha(a,{apiKey:VA.apiKey,dynamicWidth:!0,onSuccess:function(e){c(),DA(!0,e)},onError:function(){for(var e=arguments.length,t=new Array(e),n=0;n1328})),w=zh(Eh(e)),m=w?g?w.reg:w.regWithWordSeperator:null;m&&(f=f.replace(m,"******")),r.push({type:Ht,content:f,sender:{type:cp},id:i.length+t+1,guid:ne()})}return Rv(e)?a.concat([0===r.length?null:bo(n,r),(l||u)&&fo(n,t),Xf(e)&&Bo(),c&&d&&!_r(p,h,mf(e))&&mo(n)]):[]},LA=Object.assign({},RM,ZM,((VM={})[hs]=function(e,t){var n,i=e.campaignId,o=Gw(t),a=Kw(t);if(o){var r=Tv(t,bp,i),s=r.some((function(e){return""!==e.error}));if(!s){var c=Eb().popout;n=Ya(hr(r)),c&&c.ticketId&&!Number.isNaN(+c.ticketId)&&(n.ticketId=+c.ticketId),c&&c.departmentId&&!Number.isNaN(+c.departmentId)&&(n.department=+c.departmentId)}}var d=Zb();return xo([m_(t)?{type:Gi.checkBBSCode}:null,Oo(),n&&wA(t,i,d,a),n&&ao(n,i),Object.assign({},wA(t,i,d,a),n?{isPrechatDone:!0}:{}),Zw(t)?Ao():null,$v(t)?{type:Gi.getCustomVariables}:null].concat(mA(t),[go(null),fo(null,-1)]))},VM[Ws]=function(e,t){var n=kw(t),i=yv(t);return no(n,i.isManual,i.id)},VM[Qc]=function(e,t){return gh(t)?null:{type:Gi.prechatHeartbeat}},VM[Zc]=function(e,t){return gh(t)?null:{type:Gi.offlineMessageHeartbeat}},VM[Yc]=function(e,t){if(gh(t))return null;if(!Gh(t))return null;if(wh(t))return null;if(Ef(t)&&Nv(t)&&!Rv(t))return null;var n=Yh(t);if(n===gp){var i=Nw(t);if(i===yu)return Bo();if(i===Cu)return xo([so(yf(t)),EA(t)])}var o=[];return n===fp&&o.push(go(yf(t))),xo(o.concat(zA(t)))},VM[Sc]=function(e,t){if(e!==iu)return null;if(gh(t))return null;var n=tf(t),i=Yh(t),o=of(t);if(n===ep||n===ip||n===op)return{type:Gi.closeWindow};if(n===tp){if(i===gp){var a=Fw(t,o).source,r=a.type,s=a.invitationId;return bS("livechat.invitation.refuse",s),no(o,r===Cu,s)}if(i===fp)return xo([ho(yf(t)),EA(t)])}return null},VM[tl]=function(e,t){return xo([uo(e),Object.assign({},Fw(t,of(t)),{lastChattedAgents:Zb(),isPrechatDone:!0,skipSSO:!0})])},VM[id]=function(e,t){var n=Fw(t,of(t)),i=Zb(),o=Ef(t);return xo([oo(e,of(t)),!o&&Object.assign({},n,{isFromKB:!0,lastChattedAgents:i})])},VM[od]=function(e,t){return oo(e,of(t))},VM[Al]=function(e,t){return function(e,t){return{type:Gi.setLocation,chatGuid:t,location:e}}(e,yf(t))},VM[Bl]=function(){return{type:Gi.getVisitorInfo}},VM[rs]=function(e,t){return xo([e.isManual?(n=e.id,{type:Gi.manualInvitationShowed,invitationId:n}):null].concat(mA(t)));var n},VM[ad]=function(e,t){var n=Fw(t,of(t)),i=Zb();return Object.assign({},n,{skipSSO:!0,lastChattedAgents:i})},VM[vd]=function(e,t){var n=po(Zw(t)?k:of(t),{type:xu,page:jw(t)}),i=Zb();return xo([Oo(Mw(t)),Object.assign({},n,{lastChattedAgents:i})])},VM[gd]=function(e,t){if(Zf(t)){var n=function(e){var t=Vw(e),n=(e.page.requestChatAction||{}).departmentId;return{type:Gi.requestChatFromChatbot,departmentId:n,source:t}}(t,of(t)),i=yf(t);return xo([n,go(i),wo(i)])}return null},VM[Jc]=function(e,t){var n=yf(t);return xo([lo(n,e),EA(t)])},VM[Xc]=function(e,t){return function(e,t){return{type:Gi.emailTranscript,chatGuid:e,email:t}}(yf(t),e)},VM[Gc]=function(e){return e},VM[$c]=function(e,t){return xo([ho(yf(t)),EA(t)])},VM[md]=function(e,t){return Zf(t)?function(e,t){return Object.assign({type:Gi.chatBotAnswerHelpful,chatGuid:e},t)}(yf(t),e):null},VM[wd]=function(e,t){return Ef(t)?e.agentId<=0&&!Zf(t)||e.agentId>0&&!function(e,t){var n=_f(e);return 0!==n.length&&!!n.find((function(e){return e===t}))}(t,e.agentId)?null:function(e,t){return{type:Gi.chatBotSelectQuestion,chatGuid:e,question:{questionId:t.id,questionName:t.name},clickType:t.clickType,agentId:t.agentId,botId:t.botId||k,senderType:t.agentId>0?1:3,senderId:t.agentId}}(yf(t),e):null},VM[qd]=function(e,t){return function(e,t){return Object.assign({type:Gi.visitorHandleBotForm,chatGuid:e},t,{senderType:t.agentId>0?1:3,senderId:t.agentId})}(yf(t),e)},VM[Ud]=function(e,t){return function(e,t){return Object.assign({type:Gi.visitorHandleBotForm,chatGuid:e},t,{senderType:t.agentId>0?1:3,senderId:t.agentId})}(yf(t),e)},VM[Gd]=function(e,t){return function(e,t){return Object.assign({type:Gi.setBotVariable},t)}(yf(t),e)},VM[ws]=function(e){return e===ip?ro():null},VM[cd]=function(e,t){var n=Zw(t)?k:kw(t);return xo([Ji(e,n),Zw(t)?Ao():null,Zw(t)?io(n):null,Xi(n),$i(n)])},VM[rc]=function(e,t){return g_(t)?(bS("livechat.invitation.refuse"),no(of(t),!0)):null},VM[dd]=function(e){var t=e.campaignId,n=e.alreadyCampaignId;return xo([io(t,n),Xi(t)])},VM[rd]=function(e,t){return t.window&&t.window.crossSiteChatTransfer?function(e){return xo([Lv(e)])}(t):function(e){var t=kw(e),n=Ow(e),i=!!dv(Mw(e),Sw(e)),o=!ph(e)&&!Db(Ow(e)).isEmbeddedPoppedOut&&!i,a=e_(e),r=qv(e),s=Uv(e);return xo([].concat(n?[]:fA(e),[a&&Ji(a,t),t!==k||a?null:Mo(),Zi(t,jw(e),y_(e)),io(t),Xi(t),o?Io():null,r&&!i&&to(t),s&&!i&&$i(t),To()]))}(t)},VM[sd]=function(e,t){return function(e){var t=Zw(e),n=kw(e),i=Gh(e),o=Zi(n,jw(e));if(!i){var a=Uv(e);return xo([o,t?Mo():null,t?Ao():null,Xi(n),a&&$i(n)])}return o}(t)},VM[ld]=function(){return{type:Gi.getConfig}},VM[ud]=function(e){return Oo(e)},VM[pd]=function(e){return function(e){return{type:Gi.getChatbotQuestions,chatbotId:e}}(e)},VM[wl]=function(e,t){var n=Zb(),i=Fw(t,of(t)),o=Kw(t);return Object.assign({},i,{lastChattedAgents:n,isFromKB:!0,artifact:o})},VM[hd]=function(e,t){var n=Yh(t)===wp||Yh(t)===gp||Yh(t)===fp,i=Vg(t),o=bf(t),a=Gg(t),r=e||a,s=yf(t);if(!Rv(t))return null;if(s){if(!xr(o,a)){var c=yr(o,i);return c&&c!==r&&c!==i&&n?wo(s,c):null}if(r&&n&&r!==i&&!_r(i,a,o))return wo(s,r)}return null},VM[fd]=function(){return To()},VM[Ns]=function(e){return{type:Gi.showInvitation,invitationId:e}},VM[bd]=function(){return ro()},VM)),HA=((WM={})[Ys]=function(e,t){if(Yh(t)===gp){g_(t)?bS("livechat.invitation.accept"):bS("livechat.invitation.accept",Dw(t));var n=Fw(t,of(t)),i=Zb();return xo([Object.assign({},n,{isPrechatDone:!0,lastChattedAgents:i})].concat(zA(t)))}return xo(zA(t))},WM),qA=function(e){return function(t){if(t instanceof Error)throw t;return e(t)}},UA=function(e,t){if(!e)return e;var n=Lg(t).chatVersion;return e.actions?(e.actions.forEach((function(e){return Object.assign(e,{chatVersion:n})})),e):Object.assign(e,{chatVersion:n})},GA=function(e){var t=e.isNewWindow,n=function(e){return/^(https?:)?\/\//.test(e)?e:e&&"http://"+e}(e.url);t?H.open(n):Q.href=n},KA=function(e){if(/^file:\/\//i.test(e))return"*";var t=e.match(/^[^:]+:\/\/[^/]+/);return t?t[0]:"*"};function YA(e,t,n){var i=KA(t);return{dispatch:function(t){e.postMessage(JSON.stringify(t),i)},subscribe:function(e){var t=function(t){t.origin===i&&e(t)};return(n?H:window).addEventListener("message",t),function(){return(n?H:window).removeEventListener("message",t)}}}}var QA,ZA,JA,XA,$A,eB="removeOpener",tB="popin",nB="restoreState",iB="getRestoreState",oB=((QA={})[Ju]=Dm,QA[Xu]=Rm,QA[ep]=Rm,QA[ip]=Pm,QA[tp]=Dm,QA[np]=Dm,QA[$u]=Rm,QA),aB=function(e){null!=e&&(q.title=e)},rB=function(e){return e.window.messages&&e.window.messages.filter((function(e){return e.type!==ti}))},sB=function(e,t){var n=Tm(e,t);return n?function(){try{var e=q.getElementById("chat_window_container");if(!e)return null;var t=e.contentWindow.document.querySelector(".whole-window").getBoundingClientRect();return{width:t.width,height:t.height}}catch(e){return null}}()||n:{width:360,height:600}},cB=function(e,t,n){var i=Mw(e),o=Sw(e),a=jw(e),r=a.title,s=a.url,c=Ow(e),d=Dw(e),l=Nw(e)||xu,u=y_(e),p=["chatwindow.aspx","?siteId="+i,o?"&chatGroup="+o:null,D.version?"&version="+D.version:null,"&planId="+t,u?"&language="+u:null,"#","&chatSource="+l,d?"&invitationId="+d:null,c?"&visitorGuid="+c:null,uh(e)?null:"&isStandbyServer=1",r?"&title="+encodeURIComponent(r):null,s?"&url="+encodeURIComponent(s):null,"&openType="+n].join(""),h=_h(e,p),f=sB(e,t),g=f.width,w=f.height,m=Math.max(g,380);return{win:H.open(h,""+"$brandingNameChatWindow".replace("$brandingName",H.brandingName)+i,"width="+m+",height="+w+",left=200,top=100,status=no,toolbar=no,menubar=no,resizable=yes,location=no,titlebar=no"),url:h}},dB=!1,lB=function(){H.opener&&(H.opener=null),dB=!0,H.close()},uB=function(e,t){return{type:e,time:new Date,content:t,guid:ne(),sender:{type:cp}}};function pB(e,t){return e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function hB(e,t){pB(e,t)||(e.className=e.className+" "+t)}function fB(e,t){if(pB(e,t)){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}var gB=function(e){var t=Sh(e,"/webrtcSignalingService/signaling.ashx");XA&&t&&XA.start(t)},wB=function(e){var t=Sh(e,"/webrtcSignalingService/signaling.ashx");$A&&t&&$A.start(t)},mB=function(){XA&&(XA.stop(),XA=null)},bB=function(){$A&&($A.stopScreenSharing(),$A=null)},vB=((ZA={})[dn]=gB,ZA[xn]=gB,ZA[cn]=mB,ZA[ln]=mB,ZA[un]=mB,ZA[Cn]=mB,ZA[yn]=mB,ZA[_n]=mB,ZA[Bn]=mB,ZA[On]=mB,ZA[mn]=mB,ZA[bn]=mB,ZA[Sn]=mB,ZA[Mn]=mB,ZA[An]=mB,ZA[hn]=mB,ZA[gn]=mB,ZA[wn]=mB,ZA[In]=gB,ZA[fn]=gB,ZA[bi]=wB,ZA[vi]=bB,ZA[mi]=bB,ZA[_i]=bB,ZA[Oi]=bB,ZA[Wi]=bB,ZA[Ci]=wB,ZA[ki]=bB,ZA[yi]=bB,ZA[Si]=bB,ZA),_B=((JA={})[dn]="livechat.chat.video.start",JA[xn]="livechat.chat.audio.start",JA[un]="livechat.chat.video.stop",JA[Cn]="livechat.chat.audio.stop",JA[bn]="livechat.chat.video.stop",JA[On]="livechat.chat.audio.stop",JA[An]="livechat.chat.audio.stop",JA[wn]="livechat.chat.video.stop",JA[In]="livechat.chat.audio.start",JA[fn]="livechat.chat.video.start",JA[vn]="livechat.chat.audio.request",JA[sn]="livechat.chat.video.request",JA[kn]="livechat.chat.audio.request",JA[pn]="livechat.chat.video.request",JA[ln]="livechat.chat.video.refuse",JA[yn]="livechat.chat.audio.refuse",JA[gn]="livechat.chat.video.refuse",JA[Mn]="livechat.chat.audio.refuse",JA[cn]="livechat.chat.video.cancel",JA[hn]="livechat.chat.video.cancel",JA[_n]="livechat.chat.audio.cancel",JA[Sn]="livechat.chat.audio.cancel",JA[Bn]="livechat.chat.audio.noanswer",JA[mn]="livechat.chat.video.noanswer",JA),xB=function(e,t){return wf(e).filter((function(e){return e.type===t})).length>0},yB=null,CB=function(e,t){return e.output.payload.find((function(e){return e.type===t})).payload},kB=function(e,t,n,i,o,a){return cA(e,xo([Io(),_o(),vo()])).then((function(r){if((CB(r,Gi.restoreChat)||{}).guid!==o.chatGuid)throw new Error("try to restore cross site chat but chat guid not match.");var s=y_(a),c=s?"&language="+s:"";return xM(t,o.campaignId,e.replace(/\/visitor.ashx.*$/i,"/campaign.ashx?siteId="+o.siteId+"&campaignId="+o.campaignId+"&lastUpdateTime="+Date.now()+c),a).then((function(){var e=function(e,t){var n=Object.assign({},t.agents||{});return(CB(e,Gi.getAgents)||[]).forEach((function(e){n[e.id]||(n[e.id]=e)})),Object.values(n)}(r,o);e.forEach((function(e,n){return t(Wx({id:e.id,entity:Object.assign({},e,{index:n}),fetchStatus:Nu}))}));var a=CB(r,Gi.getDepartments);a&&a.forEach((function(e){return t(Nx({id:e.id,entity:e,fetchStatus:Nu}))})),t(cx(n,o,i))}))}))},SB=function(e,t){var n=Tm(e,t);return n?function(){try{var e=document.getElementById("chat_window_container");if(!e)return null;var t=e.contentWindow.document.querySelector(".whole-window").getBoundingClientRect();return{width:t.width,height:t.height}}catch(e){return null}}()||n:{width:360,height:600}};var IB="sso-login",MB="setLocation",AB="closeLocation",BB="customVariableLogin",OB="webViewLinkDone",TB="popoutScreenSharingClose";function jB(e,t){if(!t||0===t.length)return!1;var n=function(e,t){var n=e.map(o).join("|");return t?new RegExp(""+n,"i"):new RegExp("\\b("+n+")\\b","i")}(t,e.split("").some((function(e){return e.charCodeAt(0)>1328})));return n.test(e)}var FB;FB=r(s,(function(e){e.dispatch;var t=e.getState;return function(e){var n,i=((n={})[Ys]=function(t,n){var i=function(e){return function(e){var t=!1;return{data:e,cancel:function(){t=!0},isCancelled:function(){return t}}}({text:e})}(t.payload.message);!function(e,t){mS[e]&&mS[e].forEach((function(e){try{e(t)}catch(e){}}))}("livechat.chat.visitor.sendText",i),i.isCancelled()||e(t)},n[Gl]=function(t,n){e(Jx(t.payload))},n);return function(n){var o=i[n.type];if(!o)return e(n);o(n,t())}}}),(function(e){var t=e.dispatch,n=e.getState;return function(e){var i,o=((i={})[Ys]=function(n,i){if(jB(n.payload.message,Eh(i)))throw setTimeout((function(){return t(GC())}),0),new Error(x_(i,"promptRemoveRestrictedWords"));e(n)},i);return function(t){var i=o[t.type];if(!i)return e(t);i(t,n())}}}),(function(e){var t=e.dispatch,n=e.getState;return function(e){return function(i){var o=n();if(i.type===hs&&!i.payload.isRestoreChat&&!Rw(o,i.payload.campaignId)){var a=km(o,i.payload.campaignId);if(a)return GA(a),null}if(i.type===ws&&i.payload===ip){var r=of(o),s=km(o,r);if(s)return t(pk()),GA(s),s.isNewWindow&&t(qy()),t($C()),null}return e(i)}}}),(function(e){var t=e.dispatch,n=e.getState;return function(e){var i=null,o=function(e){return function(t){return e(JSON.parse(t.data))}},a=function(t){var a=t.win,r=t.url;if(!i)var s=(i=YA(a,r,!0)).subscribe(o((function(t){if(t.type===tB)s(),i=null,H.focus(),e(U_(t.payload)),Pb({isEmbeddedPoppedOut:!1},Ow(n()));else if(t.type===iB){var o=H.restoreState;i&&i.dispatch({type:nB,payload:o})}})))},r=function(e){i&&i.dispatch({type:tB,payload:e})};return H.addEventListener("beforeunload",(function(e){var t=n();if(ph(t)&&Sm(t,kw(t))&&!dB&&!Yg(t)){if(fg(t)){var i=x_(t,"audioVideoChangeWindowType"),o=e||H.event;return o.stopPropagation(),o.preventDefault(),o.returnValue=i,i}r(t)}})),function(s){var c=n();if(!c)return e(s);if(s.type===Tc&&null==i&&b_(c))var d=jw(c).url||q.referrer,l=(i=YA(H.opener,d,!0)).subscribe(o((function(t){t.type===eB?(l(),H.opener=null,e(R_())):t.type===nB&&e(U_(t.payload))})));if(s.type===ws&&ph(c)&&(aB(x_(c,oB[s.payload])),de(H.location.href,"ssoInfo"))){var u,p=de(H.location.href,"ssoInfo");if(s.payload===Xu||s.payload===$u||s.payload===tp){u=sk(p),t(u);var h=H.location.href.substring(0,H.location.href.indexOf("&ssoInfo="));H.history.replaceState(H.history.state,q.title,h)}}if(s.type===dl&&ph(c)){var f=tf(c);aB(x_(c,oB[f]))}if(s.type===hs){var g=s.payload.campaignId,w=(Db(Ow(c))||{}).isEmbeddedPoppedOut,m=Sm(c,g);if(!ph(c)&&(w||!m)){var b=cB(c,g,hs);return w&&a(b),null}}if(s.type===fs){var v=of(c);if(!ph(c)){a(cB(c,v,fs)),Pb({isEmbeddedPoppedOut:!0},Ow(c));var _=yf(c);_&&(Qb(_),Rf(c)&&(c.window.messages=rB(c))),i&&H.addEventListener("beforeunload",(function(){i.dispatch({type:eB})})),H.restoreState=c}}if(s.type===gs&&ph(c)){var x=yf(c);return x&&(Qb(x),Rf(c)&&(c.window.messages=rB(c))),r(c),lB(),null}if((s.type===Ld||s.type===Sc&&s.payload===iu)&&ph(c)){var y=e(s);return y&&y.catch?(Promise.race([y.catch((function(){})),ue(3e3)]).then(lB),null):(lB(),null)}return s.type===Fl&&i&&i.dispatch({type:iB}),e(s)}}}),(function(e){var t=e.getState,n=e.dispatch;return function(e){return function(){var i=N(E().mark((function i(o){var a,r,s,c,d,l,u,p,h,f,g,w;return E().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a=function(){var e=N(E().mark((function e(i){var o,a,r;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(yB){e.next=7;break}return e.next=3,pe((function(){return import("./p2pChat.71dfbf62.js")}),(function(){n(ly("Error loading modules. Please refresh the page and try again."))}));case 3:if(o=e.sent,yB=o&&o.default){e.next=7;break}return e.abrupt("return",null);case 7:return a=L(Sh(t(),"/webrtcSignalingService/Statistics")),(r=new yB(Object.assign({},i,{visitorId:Ow(t()),siteId:Mw(t()),url:a}))).onevent((function(e,t){if("error"===e)n(mk()),n(bk());else if("start"===e){if(!XA&&!$A)return;if(XA){var i=XA.getRemoteVideo();i&&hB(i,"mediaChatWindow__remoteVideo--loading")}if($A){var o=$A.getRemoteScreenSharingVideo(),a=$A.getLocalScreenSharingVideoItem();o&&!a&&hB(o,"mediaChatWindow__remoteVideo--loading")}}else if("remoteStreamReceived"===e){if(!XA&&!$A)return;if(XA){var r=XA.getRemoteVideo();r&&fB(r,"mediaChatWindow__remoteVideo--loading")}if($A){var s=$A.getRemoteScreenSharingVideo();s&&fB(s,"mediaChatWindow__remoteVideo--loading")}}})),e.abrupt("return",r);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r=t(),s=function(){n(bk())},o.type!==Ts){i.next=13;break}if(XA){i.next=8;break}return i.next=7,a({chat:yf(r),actionType:"audioVideo"});case 7:XA=i.sent;case 8:return Ub(yf(r)),XA.requirePermission(!1).then((function(){var t=uB(li,"");n(wk([t])),e(o)})),i.abrupt("return",null);case 13:if(o.type!==js){i.next=23;break}if(XA){i.next=18;break}return i.next=17,a({chat:yf(r),actionType:"audioVideo"});case 17:XA=i.sent;case 18:return Ub(yf(r)),XA.requirePermission(!0).then((function(){var t=uB(di,"");n(wk([t])),e(o)})),i.abrupt("return",null);case 23:if(o.type!==Fs){i.next=34;break}if(e(o),$A){i.next=29;break}return i.next=28,a({chat:yf(r),actionType:"screenSharing"});case 28:$A=i.sent;case 29:return Ub(yf(r)),$A.requireScreenSharingPermission(s).then((function(){if(ow(t()))bB();else{var e=uB(Ti,"");n(wk([e]))}})).catch((function(){e(LC())})),i.abrupt("return",null);case 34:if(o.type!==Hl){i.next=41;break}return i.next=37,a({chat:yf(r),actionType:"screenSharing"});case 37:($A=i.sent)&&($A.setScreenSharingVideoContainers(o.payload),$A.requireScreenSharingPermission(s).then((function(){wB(r);var t=uB(Vi,"");n(wk([t])),e(o)}))),i.next=42;break;case 41:o.type===fs?(mB(),bB(),Gb(yf(r))):o.type===gs&&(mB(),bB());case 42:if(c=e(o),d=t(),l=pg(d),u=pg(r),p=iw(r),h=iw(d),o.type!==Fd){i.next=52;break}XA&&XA.hideVideos(),i.next=98;break;case 52:if(o.type!==El){i.next=56;break}$A&&$A.hideScreenSharingVideos(),i.next=98;break;case 56:if(o.type!==kd){i.next=61;break}Ub(yf(d)),XA&&XA.setVideoContainers(o.payload.localVideoContainer,o.payload.remoteVideoContainer,o.payload.unmuteRemoteContainer),i.next=98;break;case 61:if(o.type!==zl){i.next=65;break}$A&&$A.setScreenSharingVideoContainers(o.payload.localVideoContainer,o.payload.remoteVideoContainer),i.next=98;break;case 65:if(o.type!==Gs){i.next=81;break}if(o.payload.forEach((function(e){f=_B[e.type]})),f&&bS(f),(XA||$A)&&o.payload.forEach((function(e){var t=vB[e.type];t&&t(d)})),XA||l!==sa&&l!==da){i.next=74;break}return i.next=72,a({chat:yf(d),actionType:"audioVideo",facingMode:Kb()});case 72:(XA=i.sent)&&XA.requirePermission(l===sa).then((function(){return gB(d)}));case 74:if($A||h!==fa&&h!==ga){i.next=79;break}return i.next=77,a({chat:yf(d),actionType:"screenSharing"});case 77:($A=i.sent)&&(h===fa?Promise.resolve().then((function(){return wB(d)})):$A.requireScreenSharingPermission(s).then((function(){return wB(d)})));case 79:i.next=98;break;case 81:if(o.type!==Md){i.next=89;break}if(XA){i.next=86;break}return i.next=85,a({chat:yf(d),localVideoContainer:o.payload.localVideoContainer,remoteVideoContainer:o.payload.remoteVideoContainer,unmuteRemoteContainer:o.payload.unmuteRemoteContainer,actionType:"audioVideo",facingMode:Kb()});case 85:XA=i.sent;case 86:XA&&XA.requirePermission(l===oa).then((function(){var e=uB(ui,l);n(wk([e]))})),i.next=98;break;case 89:if(o.type!==Ll){i.next=97;break}if($A){i.next=94;break}return i.next=93,a({chat:yf(d),remoteScreenSharingVideoContainer:o.payload.remoteVideoContainer,actionType:"screenSharing"});case 93:$A=i.sent;case 94:$A&&Promise.resolve().then((function(){var e=uB(ji,h);n(wk([e]))})),i.next=98;break;case 97:o.type===Sd?(mB(),xB(d,pi)||(g=uB(pi,u),n(wk([g])),yf(d),zb({facingMode:null}))):o.type===Id?(bB(),xB(d,Fi)||(w=uB(Fi,p),n(wk([w])))):o.type===Ad?(XA&&XA.unmuteRemote(),$A&&$A.unmuteRemote()):o.type===ql?o.payload?$A&&$A.stopScreenSharing():wB(d):o.type===Bd&&XA&&XA.flipCamera((function(e){Yb(e)}));case 98:return i.abrupt("return",c);case 99:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}()}}),(function(e){var n=e.getState;return function(i){var o=function i(o,a,r){void 0===r&&(r=function(e){return Promise.resolve(e)});var s=Vh(n()),c=Co(o,Gi.sendChatMessages);s&&c&&(c.messages=function(e,n){return e.map((function(e){var i=e.content,o=z(e,RA);return Object.assign({content:o.encoding?i:t.Base64.encode(i),encoding:n},o)}))}(c.messages,s)),function(e,t){Co(t,Gi.recoverVisitor)&&(e.dispatch(E_(!0)),e.dispatch(H_(!0)))}(e,o);var d=zv(n());if(n().page.isSubmitSSO)return null;!function(e,t){Co(t,Gi.submitSSOInfo)&&e.dispatch(kx(!0))}(e,o);var l=f_(n()),u=function(e){if(!e)return e;var t=Ob();return e.actions?(e.actions.forEach((function(e){return Object.assign(e,{sessionId:t})})),e):Object.assign({},e,{sessionId:t})}(o);return cA(l,u,a,d).then(function(e,t){var n=e.getState,i=e.dispatch,o=t.url,a=t.retryAction,r=t.onProgress,s=t.serverInstanceTag;return function(e){return e.input,405===(e.error&&e.error.statusCode)?(n(),i(E_(!1)),PA().then((function(e){return i(E_(!0)),cA(o,a,r,s)}))):e}}(e,{url:l,retryAction:u,onProgress:a,serverInstanceTag:d})).then((function(e){return e})).then(pA(e)).then(r).then((function(t){return t.newValidChatServerUrl&&e.dispatch(Tx(t.newValidChatServerUrl)),jM(e,t),function(e,t){yo((function(t){hA.indexOf(t.type)<0&&e.dispatch(q_()),t.type===Gi.recoverVisitor&&e.dispatch(H_(!1))}),t.input)}(e,t),t})).catch(qA((function(e){var t=e.error.code;throw-1!==[sM,lM].indexOf(t)&&e.error.serverInstanceTag,e}))).catch(qA(AA(e,i,a,r))).catch(qA(function(e){var t=e.getState,n=e.dispatch;return function(e){if(e.input.type===Gi.getVisitorInfo)n(nC(null));else if(Co(e.input,Gi.submitSSOInfo))n(ly(e.error.message));else{var i=e.error.code;if(-1!==[dM,sM,cM,lM].indexOf(i)){var o=t();Gh(o)&&(Yf(o)||Yh(o)===gp)&&n(ly(x_(t(),zm))),n(E_(!1))}else if(1024===i||1032===i)n(D_());else if(9003===i){n(E_(!1));var a=t();Yf(a)?n(ly(e.error.message)):n(Y_(e.error.message))}else if(7601===i)e.error.message&&n(ly(e.error.message));else if(4342339===i)n(ly("Oops.We're getting problems to the chatbot. Please refresh this page to chat with a live agent.")),n(E_(!1));else if(1037===i)n(ly(e.error.message)),n(E_(!1));else if(9002===i){n(ly(e.error.message));var r=Co(e.input,Gi.sendChatMessages);r&&n(QC(r.messages))}else{if(Co(e.input,Gi.recoverVisitor))throw e;if(i!==uM){var s=x_(t(),"promptServerException");s&&n(ly(s.replace("{errorCode}",i)))}else{var c=e.input;c.type===Gi.requestChat&&c.isFromKB&&n(ly(e.error.message))}}}throw e}}(e))).catch(qA(function(e){var t=e.getState,n=e.dispatch;return function(e){var i=e.input;if(!Co(i,Gi.recoverVisitor)||!e.error)throw e;20===t().app.recoverFailTimes&&(n(E_(!1)),n(ly(x_(t(),zm)))),n(L_()),n(H_(!1))}}(e))).catch(qA(function(e){var t=e.dispatch,n=e.getState;return function(e){throw e.error.code===sM&&cA(f_(n()),So({visitorGuid:Ow(n()),visitorId:xb()})).catch((function(e){var n=e.error.code;throw 1024!==n&&1032!==n||t(D_()),e})),e}}(e))).catch(qA(function(e){var t=e.dispatch,n=e.getState;return function(e){if(2003===e.error.code){var i=e.error,o=i.ssoServiceUrl,a=i.artifactServiceUrl,r=i.issuer,s=n(),c=Mw(s),d=Kw(s)||"",l=Ch(s,(d?a:o)+"?siteId="+c+"&issuer="+r+"&artifact="+d+"&cookieId="+Ow(s)),u=Qg(s);t(yy()),t(qx(l,"showPrelogin"===u)),t(Hx($u))}throw e}}(e))).catch(qA((function(t){throw 1===t.error.code&&e.dispatch(aC()),t})))},a=function(e,t,n,a,r){return o(t,null,n).catch((function(t){var n=t.error?t.error.message:t.message;if(t.error&&318===t.error.code){var o=__(r,kw(r));n=$[o].recaptchaFailure}throw i(Nk(e)),i(ly(n)),a&&a(n),t}))};return function(e){e.type===pl?BA(i,e.payload,n()):e.type===hl?function(e,t,n){var i=t.link;e(Px(gl,{url:i}))}(i,e.payload,n()):e.type===vd&&i(e);var t=LA[e.type];if(t){var r=t(e.payload,n());if(r){UA(r,n());var s=o(r);if(e.type===ld||e.type===rd||e.type===Qc||e.type===dd||e.type===ud||e.type===pd)return s;if(e.type===Sc&&e.payload===iu&&ph(n()))return s;if(e.type===vd)return s}return i(e)}if(e.type===Kc)return gh(n())||(o(to(kw(n()))),function(e){return Object.keys(e.page.buttons)}(n()).forEach((function(e){return o(function(e){return{type:Gi.getIfOnline,campaignId:e}}(e))}))),null;if(e.type===Qs){var c=e.payload.file;if(!c)return null;if(Rf(n()))return null;var d=Bh(n()),l=eg(n()),u=function(e){return e.configuration.attachmentMaxCount}(n()),p=k_(n()),h=M_(n()),f=!!e.payload.isBotCollectFile;return l>=u?(i(vy(Ap,{fileCount:u,isBotCollectFile:f})),Promise.resolve()):c.size>d*Math.pow(2,20)?(setTimeout((function(){i(vy(kp,{fileSize:d,isBotCollectFile:f}))}),1e3),Promise.resolve()):0===c.size?(i(vy(Sp,{isBotCollectFile:f})),Promise.resolve()):(i(e),o(co(!0,yf(n()))).then((function(t){if(uw(n())){var a=t.output.payload,r=S_(n()),s=function(t){return o(function(e,t,n,i,o,a,r,s){return Ki({type:Gi.sendFile,chatGuid:t,visitorGuid:i,siteId:n,fileServiceUrl:o,standbyFileServiceUrl:a,token:r,fileName:s},e)}(t,e.meta,Mw(n()),Ow(n()),p,h,a,e.payload.fileName),(function(t,n){t>=98||i(Rx(e.payload.fileName,t,n))})).then((function(e){var t=e.output;i(Ex(t))})).catch(qA((function(e){var t=e.error;return i(zx(Object.assign({},t,{isBotCollectFile:f})))}))).catch((function(e){return i(zx({message:e.message,isBotCollectFile:f}))}))};return r&&Sr(c)?Fr(c).then((function(e){return s(e)})):s(c)}i(zx(null))})).catch(qA((function(e){var t=e.error;return i(zx(Object.assign({},t,{isBotCollectFile:f})))}))).catch((function(e){i(zx({message:e.message,isBotCollectFile:f}))})))}if(e.type===nd){var g=e.payload,w=g.form,m=g.onSuccess,b=g.onError,v=Fw(n(),of(n())),_=Object.assign({},v,{lastChattedAgents:Zb(),ticketId:w.ticketId||v.ticketId,departmentId:null==w.department?v.departmentId:void 0,isPrechatDone:!0,skipSSO:!0});a(bp,xo([ao(w,of(n())),_]),m,b,n())}else if(e.type===ed){var x=n(),y=Dv(x),C=y&&y.campaignId?y.campaignId:of(x),k=e.payload,S=k.form,I=k.onSuccess,M=k.onError,A=yf(x),B=Object.assign({},Ww(x));A&&(B.chatGuid=A);var O=function(e){var t=e&&{name:e.name,fileKey:e.key};a(_p,function(e,t,n){return{type:Gi.submitOfflineMessage,campaignId:e,form:t,source:n}}(C,Object.assign({},S,{attachment:t}),B),I,M)};if(S.attachment){var T=function(e,t,n,i){var o=Tv(e,_p,n);if(o&&o.length>0){var a=o.filter((function(e){return e.type===i}));if(a.length>0)return a[0]}return""}(n(),0,C,Ho),j=S.attachment,F=function(e){return o(co(!1)).then((function(t){var a=t.output.payload;o(function(e,t,n,i,o,a){return Ki({siteId:t,fileServiceUrl:n,standbyFileServiceUrl:i,token:a,fileName:o.name},o)}(0,Mw(n()),k_(n()),M_(n()),e,a)).then((function(e){var t=e.output;return O(Object.assign({},t))})).catch((function(e){e.input;var t=e.error;i(Nk(_p)),i(Tk(_p,T.id,t.message))}))})).catch((function(e){e.input;var t=e.error;i(Nk(_p)),i(Tk(_p,T.id,t.message))}))};S_(n())&&Sr(j)?Fr(j).then((function(e){return F(e)})):F(j)}else O()}else if(e.type===td){var V=yf(n()),W=e.payload,N=W.form,D=W.onSuccess,P=W.onError;a(vp,function(e,t,n){return{type:Gi.submitPostChat,chatGuid:e,form:t,campaignId:n}}(V,N,af(n())),D,P).then((function(){return i(Hx(tp))}))}var R=i(e),E=HA[e.type];if(E){var z=E(e.payload,n());UA(z,n()),z&&o(z)}return R}}}),(function(e){var t=e.dispatch,n=e.getState;return function(e){return function(i){if(!n())return e(i);var o,a=Aw(n());if(i.type===os){var r=i.payload,s=r.guid,c=r.ifNewVisitor,d=r.sessionId,l=r.migrationInfo,u=r.persistentVisitor;if(s&&(kb(s,a),Jm(_b())),d&&Bb({sessionId:d},a),c){var p=Ab(a),h=p.firstVisitTime,f=p.visitTimes;Bb({firstVisitTime:h||(new Date).getTime(),visitTimes:(f||0)+1},a)}u&&Bb({persistentVisitor:u},a),l&&Bb(Object.assign({},l),a)}if(i.type===cs&&i.payload&&function(e,t){var n=Ib(Sb(t)).navigation||[];wb.setItem(Sb(t),JSON.stringify(Object.assign({},Ab(t),{navigation:n.concat(e)})))}(i.payload,a),i.type===ds&&(o=a,wb.setItem(Sb(o),JSON.stringify(Object.assign({},Ab(o),{navigation:[]})))),i.type===Xc){var g=Ab(a),w=g&&g.form&&void 0!==g.form.email?Object.assign({},g.form,{email:i.payload}):{};void 0!==w.email?Bb({email:i.payload,form:w},a):Bb({email:i.payload},a)}if(i.type===ws&&i.payload===ep){var m,b=ym(n(),of(n())).routeDepartment;b&&(m={department:b});var v=Ab(a),_=sf(n());m=Object.assign({},!_.isForgetPrechat&&v?v.form:{},m,ph(n())?VI():{}),Object.keys(m).length>0&&e(Pk(m))}if(i.type===ws&&i.payload===ip){var x,y=ym(n(),of(n())).routeDepartment;y&&(x={department:y});var C=Ab(a);(x=Object.assign({name:C.name?C.name:"",email:C.email?C.email:""},C?C.form:{},x,ph(n())?VI():{}))&&e(Pk(x))}if(i.type===rs){var k=i.payload;if(k.isManual&&k.chat){var S=k.chat.guid,I=jb(S,a),M=I.windowStatus,A=I.maxReadId;if(M){var B=e(Object.assign({},i,{payload:Object.assign({},i.payload,{windowStatus:M})}));return null!=A&&t(Ry(A)),B}}}if(i.type===jl){var O=hw(i.payload);O&&$b(O)}var T=n(),j=Yf(T),F=e(i),V=n();if(a=Mw(V),i.type===tl||i.type===il){var W=Ab(),N=W||{},D=N.name,P=N.email,R=Object.assign({},i.payload);W&&W.form?Bb({name:R.name&&R.name!==D?R.name:D||"",email:R.email&&R.email!==P?R.email:P||"",form:Object.assign({},W.form,{name:W.form.name&&R.name?R.name:D||"",email:W.form.email&&R.email?R.email:P||""})},a):Bb({name:R.name&&R.name!==D?R.name:D||"",email:R.email&&R.email!==P?R.email:P||""},a)}if(i.type===il&&bp===i.meta&&!sf(V).isForgetPrechat){var E=Object.assign({},i.payload);delete E.department,delete E.ticketId,delete E.captcha,Bb({form:E},a)}var z=Yf(V),L=yf(V);if(!j&&z){var H=Bw(V);H!==eu&&H!==nu&&H!==tu||Wb(L,{windowStatus:H},Aw(V))}if(i.type===Sc){var q=i.payload===nu||i.payload===eu||i.payload===tu,U=g_(V);(z||U)&&q&&Wb(L,{windowStatus:i.payload},Aw(V))}if(i.type===Lc||i.type===Sc||i.type===Gs||i.type===ul){var G=Bf(T),K=Bf(V);G!==K&&Wb(L,{maxReadId:K},Aw(V))}return i.type===Gs&&i.payload.forEach((function(e){var n=e.content,i=e.type;if(i!==Gt&&i!==Hn||function(e,t){var n=Ab(t)||{},i=n.chatTimes;n.lastChatGuid!==e&&Bb({chatTimes:(i||0)+1,lastChatGuid:e},t)}(yf(V),a),i===Hn&&n.bot.isVisitorQuestionSuggestionsEnabled&&t(yk(n.bot.id)),i===Qt||i===Gt||i===en){if(n.agent){var o=yf(V);FI!==o&&(FI=o,Bb({lastChattedAgents:[]},void 0)),function(e,t){var n=(Ab(t)||{}).lastChattedAgents||[];if(-1===n.indexOf(e)&&Number.isNaN(Number(e))){var i=n.concat([e]);Bb({lastChattedAgents:i},t)}}(n.agent.id)}}else i===Yt&&n.agent&&function(e,t){var n=(Ab(t)||{}).lastChattedAgents||[];if(-1!==n.indexOf(e)){var i=n.filter((function(t){return t!==e}));Bb({lastChattedAgents:i},t)}}(n.agent.id);i===Bt||i===Kt?av():i===Fn&&tv()!==n.ssoInfo&&(ev(n.ssoInfo),ov())})),i.type===zc&&av(),i.type===Rc&&(i.payload?wb.setItem(ub,!0):wb.removeItem(ub)),F}}}),(function(e){e.dispatch;var t=e.getState;return function(e){return function(n){var i=t();if(n.type===Tc){var o=Mw(i),a=Sw(i),r=dv(o,a);if(r){var s=jb(r.chatGuid,r.siteId),c=kw(i);h_(r),function(e,t,n,i,o){var a=h_(i);return kB(a,e,t,n,i,o).catch((function(a){var r=a&&a.error&&a.error.code;if(r===uM||r===dM){var s=h_(i);return kB(s,e,t,n,i,o)}throw a}))}(e,c,s,r,i).then((function(){e(n)})).catch((function(t){sv(o,a),e(n)}))}else e(n)}else n.type===jl?(n.payload.window.crossSiteChatTransfer&&cv(Mw(n.payload),Sw(n.payload),Dv(n.payload)),e(n)):e(n)}}}),(function(e){var t=e.getState;return function(e){var n=function(e,t){var n=ce((function(){return t(Gy())}),1e4,!1);return function(t){var i=t.type,o=t.sender,a=t.content,r=e();if(i===Xt)n();else if(i===Qt||i===Gt||i===en){var s=a.agent;bS("livechat.chat.agent.join",s)}else if(i===Zt||i===$t){var c=bm(r,o.id);bS("livechat.chat.agent.transfer",c)}else if(i===Yt){var d=bm(r,o.id);bS("livechat.chat.agent.leave",d)}}}(t,e);return function(t){var i=e(t);return t.type===Gs&&t.payload.forEach(n),i}}}),(function(e){return function(t){return function(n){var i=e.getState(),o=mh(e.getState());n.type===Rc&&n.payload&&LI.stop(p_(i,EI)),n.type!==fs&&n.type!==gs||LI.stop(p_(i,EI));var a=t(n),r=e.getState();if(!lh(r))return null;var s=function(e){var t=sf(e);return t&&t.notification}(r),c=Bf(i);if(n.type===zc&&bS("livechat.chat.end"),n.type===Gs){var d=Yh(i),l=Yh(r);d!==l&&(l===wp?bS("livechat.chat.start",yf(r)):l===mp&&bS("livechat.chat.end"));var u=0,p=0,h=0,f=0;n.payload.forEach((function(e){if($a(e)&&e.id&&!(e.id<=c)&&(nr(e.type)&&(p+=1),ir(e.type)&&(f+=1),!C||e.type!==kn&&e.type!==vn&&e.type!==pn&&e.type!==sn||(u+=1),!C||e.type!==xi&&e.type!==wi&&e.type!==Ii?nr(e.type)&&e.type!==In&&e.type!==fn&&e.type!==xn&&e.type!==dn?o||HI(p_(r,"video-end")):ir(e.type)&&e.type!==Ci&&e.type!==bi?o||HI(p_(r,"screensharing-end")):o||HI(p_(r,"new-response")):h+=1,e.type!==Gt)){if(e.sender.type===dp){var t=null;switch(e.type){case En:t=re(function(e){var t=e.content.intentAnswers[0];return t.type===xS?UI(t.content):t.type===CS||t.type===MS?t.content.name:t.type===kS?"[Video]":t.type===AS?UI(t.content.text):t.content.text}(e),0,48);break;case Un:t=e.content.message+" "+e.content.signInText;break;case Gn:case Zn:case Qn:t=e.content.message}if(null!=t){var n=_h(r,"/visitorside/images/logo60.png");return Wh(r)&&(n=""),void qI(t,n)}}if(s){var i="string"==typeof e.content?e.content:e.content.text,a=_h(r,"/visitorside/images/logo60.png");Wh(r)&&(a=""),qI(i,a)}}})),(u>0||p>0)&&(u>p?o||LI.play(p_(r,EI),!0):LI.stop(p_(r,EI))),(h>0||f>0)&&(h>f?o||LI.play(p_(r,zI),!0):LI.stop(p_(r,zI)))}if(s&&Ef(r)&&!Ef(i)&&RI(),n.type===is){var g=n.payload.campaignId;if(Rw(i,g)!==Rw(r,g)){var w=ym(r,n.payload.campaignId),m=Rw(r,g);bS(m?"livechat.button.online":"livechat.button.offline",w)}}if(n.type===_d){var b=vf(i),v=vf(r);v.position===b.position&&v.waitTime===b.waitTime||bS("livechat.chat.waitingQueue.update",v)}return a}}}),(function(e){var t=e.dispatch,n=e.getState;return function(e){return function(i){var o,a=n();if(i.type!==fc||Zg(a)){if(i.type===gc){var r=lf(a),s=de(r,"returnUrl"),c=H.location.href.replace("#",""),d=decodeURIComponent(s)+(s.indexOf("?")>0?"&":"?")+"return="+encodeURIComponent(c),l=$w(a),u=l?"&jwt="+l:"";Q.href=r.substring(0,r.indexOf("returnUrl="))+"returnUrl="+encodeURIComponent(d)+u}}else{var p=Mw(a),h=lf(a),f=jw(a).url.match(/^[^:]+:\/\/[^/]+/)[0],g=h+encodeURIComponent("?target="+f),w=$w(a),m=g+"&color=ffffff"+(w?"&jwt="+w:""),b="",v=de(h,"returnUrl");v&&(b=v.match(/^[^:]+:\/\/[^/]+/)[0]);var _=kw(a),x=SB(a,_),y=x.width,C=x.height,k=Math.max(y,380);H.open(m,""+x_(a,Rm)+p,"width="+k+",height="+C+",left=200,top=100,status=no,toolbar=no,menubar=no,resizable=yes,location=no,titlebar=no");var S=(o=b,{subscribe:function(e){var t=function(t){var n=o.match(/^[^:]+:\/\/[^/]+/)[0];t.origin===n&&e(t)};return H.addEventListener("message",t),function(){return H.removeEventListener("message",t)}}}),I=S.subscribe((function(e){if(e.data){var n=JSON.parse(e.data);"sso-login"===n.type&&(t(sk(n.payload)),I(),S=null)}}))}return e(i)}}}),(function(e){var t=e.dispatch,n=e.getState;return function(e){var i=null;return function(o){var a=n(),r=yf(a),s=Ow(a);if(o.type===ql){if(o.payload){var c=function(e){var t=Mw(e),n=yf(e),i=Ow(e),o=ph(e)?window.location.href:jw(e).url||window.location.href,a="html/screensharing.07e755f562284b7f199c8f2e999fc761129fd7ab.html?siteId="+t+"&visitorId="+i+"&chatId="+n+"&target="+encodeURIComponent(o),r=_h(e,"/visitorside/"+a);return{win:H.open(r,""+x_(e,"screensharing")+t,"left=200,top=100,status=no,toolbar=no,menubar=no,resizable=yes,location=0,titlebar=no"),url:r}}(a),d=c.win,l=c.url,u=(i=YA(d,l,!0)).subscribe((function(e){if(e.data){var n=JSON.parse(e.data);if("popoutScreenSharingLoaded"===n.type){var o=rh(a),c=v_(a,o);i&&i.dispatch({type:"popoutScreenSharingInit",payload:{title:c.viewAgentSharedScreen.replace("{agent}",sw(a)),popInLabel:c.embeddedWindowPopin,refuseLabel:c.visitorLeavesScreenSharing,webrtcUrl:Sh(a,"/webrtcSignalingService/signaling.ashx")},meta:{chatId:r,visitorId:s}})}"popoutScreenSharingEnd"===n.type?(t(bk()),u(),i=null):"popinScreenSharing"===n.type&&(t(UC(!1)),u(),i=null)}}));H.addEventListener("beforeunload",(function(){i&&i.dispatch({type:TB,meta:{chatId:r,visitorId:s}})}))}}else o.type===Gs?o.payload.forEach((function(e){e.type!==_i&&e.type!==Wi&&e.type!==Bt||i&&i.dispatch({type:TB,meta:{chatId:r,visitorId:s}})})):o.type===jc&&dw(a)&&(t(bk()),i&&i.dispatch({type:TB,meta:{chatId:r,visitorId:s}}));return e(o)}}}));var VB="$brandingName Live Chat".replace("$brandingName",H.brandingName);function WB(e){var t=H.GoogleAnalyticsObject;if(t){var n=H[t];try{for(var i=n.getAll(),o=0;o<\/script>')})),t.join("")},lO=function(e){function t(){return e.apply(this,arguments)||this}he(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t,n=this,i=this.props,o=i.noIframe,a=i.languageTag,r=i.extraJs,s=i.baseTarget,c=i.title;if(o)this.container=this.div,e=H,t=QB(this.div);else{var d=function(e,t,n){return["",e?'':"",""+n+"",'','',t?dO(t):"","","",'
',"",""].join("")}(a,r,c);this.container=function(e,t){var n=e.contentDocument;return n.open(),n.write(t),n.close(),n.getElementById("container")}(this.iframe,d),e=this.iframe.contentWindow,t=this.iframe.contentDocument,s&&function(e,t){var n=document.createElement("BASE");n.target=t,e.head.appendChild(n)}(t,s)}var l,u=qB(this,this.container),p=u.render,h=u.unmount,f=YB(this,["style","innerCss","className"]);this.shouldComponentUpdate=function(n){var i=f(n);return i||(o?n.callback&&n.callback(e,t):p(n.children,(function(){return n.callback&&n.callback(e,t)}))),i},this.componentDidUpdate=function(){o?n.props.callback&&n.props.callback(e,t):p(n.props.children,(function(){return n.props.callback&&n.props.callback(e,t)}))},this.componentWillUnmount=o?function(){}:h,o||p(this.props.children),this.props.onMounted&&this.props.onMounted(e,t),this.props.callback&&this.props.callback(e,t),l=t,we&&l.addEventListener("selectionchange",(function(){var e=l.activeElement;if(e&&("TEXTAREA"===e.tagName||"INPUT"===e.tagName&&"text"===e.type)){var t=l.createEvent("CustomEvent");t.initCustomEvent("input",!0,!0,{}),e.dispatchEvent(t)}})),function(e,t,n,i){var o="global-showFocus",a=new RegExp("\\b"+o+"\\b"),r=function(){n&&n(!0),a.test(t.documentElement.className)||(t.documentElement.className+=" "+o+" ")},s=function(e){e.sourceCapabilities&&(n&&n(!1),t.documentElement.className=t.documentElement.className.replace(a,"").trim())};e.addEventListener("keydown",r,!0),e.addEventListener("touchstart",s,!0),e.addEventListener("mousedown",s,!0),i&&r()}(e,t,this.props.setIsKeyboardFocus,this.props.isKeyboardFocus)},n.render=function(){var e=this,t=this.props,n=t.children;t.innerCss;var o=t.noIframe,a=t.languageTag,r=t.title;t.extraJs;var s=z(t,cO);return o?i("div",ge({},s,{ref:function(t){e.div=t}}),n):i("iframe",ge({allowFullScreen:"1",allow:"microphone;camera;midi;encrypted-media",title:r},s,{lang:a||"en",ref:function(t){e.iframe=t}}))},t}(p),uO=Math.pow(2,31),pO=uO-6,hO=uO-5,fO=uO-4,gO=uO-7,wO=uO-5,mO=uO-1,bO=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={isMouseDown:!1},n.doDrag=n.doDrag.bind(fe(n)),n.stopDrag=n.stopDrag.bind(fe(n)),n.startDrag=n.startDrag.bind(fe(n)),n.mouseStart={x:0,y:0},n.divStart={x:0,y:0},n.benchmarkTopAndLeft=void 0!==t.left&&void 0!==t.top,n}he(t,e);var n=t.prototype;return n.startDrag=function(e){var t=e;me(t),this.mouseStart.x=t.clientX,this.mouseStart.y=t.clientY,this.setState({isMouseDown:!0});var n=this.props,i=n.left,o=n.top;this.benchmarkTopAndLeft?(this.divStart.x=i,this.divStart.y=o):(this.divStart.x=this.props.width-Math.min(this.props.right,this.props.width-this.props.ifrWidth)-this.props.ifrWidth,this.divStart.y=this.props.height-Math.min(this.props.bottom,this.props.height-this.props.ifrHeight)-this.props.ifrHeight),q.addEventListener("mousemove",this.doDrag),q.addEventListener("mouseup",this.stopDrag)},n.doDrag=function(e){var t=e;if(t||t.button){var n=t.clientX-this.mouseStart.x+this.divStart.x,i=t.clientY-this.mouseStart.y+this.divStart.y,o=this.props.width-this.props.ifrWidth,a=this.props.height-this.props.ifrHeight;n=(n=n<0?0:n)>o?o:n,i=(i=i<0?0:i)>a?a:i;var r=this.props.width-n-this.props.ifrWidth,s=this.props.height-i-this.props.ifrHeight,c=n,d=i;this.benchmarkTopAndLeft?this.props.ifrLeftAndTopPositionChanged(c,this.props.ifCanOnlyHorizontalDrag?this.props.top:d):this.props.ifrPositionChanged(r,s)}else this.stopDrag()},n.stopDrag=function(){this.setState({isMouseDown:!1}),q.removeEventListener("mousemove",this.doDrag),q.removeEventListener("mouseup",this.stopDrag)},n.render=function(){var e,t,n=this.props,o=n.id,a=n.left,r=n.top,s=n.width,c=n.height,d=n.barHeight,l=n.barWidth,u=n.ifrHeight,p=n.ifrWidth,h=n.ifrOffsetTop,f=n.ifrOffsetLeft;return e=this.state.isMouseDown?this.benchmarkTopAndLeft?c-r-d:Math.min(this.props.bottom,c-u):this.benchmarkTopAndLeft?c-r-d:Math.min(this.props.bottom+u,c)-(d+h),t=this.state.isMouseDown?this.benchmarkTopAndLeft?s-a-l-f:Math.min(this.props.right,s-p):this.benchmarkTopAndLeft?s-a-l-f:Math.min(this.props.right+p,s)-(l+f),i("div",{id:o,className:"movediv",onMouseDown:this.startDrag,style:{height:this.state.isMouseDown?u:d,width:this.state.isMouseDown?p:l,bottom:e,right:t,position:"fixed",cursor:"move",zIndex:mO}})},t}(p);bO.defaultProps={ifrOffsetLeft:30,ifrOffsetTop:30,barHeight:24,barWidth:315};var vO="circular",_O="square",xO=function(e){function t(t){var n;return(n=e.call(this,t)||this).maxHandledMsgId=-1,n.bodyDisableScroll=t.onMount,n.bodyEnableScroll=t.onUnmount,n.onReadNewMsg=n.onReadNewMsg.bind(fe(n)),n.escMinimize=n.escMinimize.bind(fe(n)),n.resize=null,n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;this.props.show?this.bodyDisableScroll():this.bodyEnableScroll(),be(this.element.firstChild,this.props.onAnimated),ve(this.element.firstChild,this.onReadNewMsg,this.props.isMobile),this.element.ownerDocument.addEventListener("keydown",this.escMinimize),this.props.isPoppedOut&&this.props.windowStyle!==gm&&window.ResizeObserver&&(this.resize=new window.ResizeObserver(ce((function(t){e.props.updateMainWindowWidth(t[0].contentRect.width)}),200)).observe(this.element))},n.componentDidUpdate=function(e){var t=this.props.show;!e.show&&t&&this.onReadNewMsg(),e.show!==t&&(t?this.bodyDisableScroll():this.bodyEnableScroll())},n.componentWillUnmount=function(){this.bodyEnableScroll(),be(this.element.firstChild,this.props.onAnimated),_e(this.element.firstChild,this.onReadNewMsg,this.props.isMobile),this.element.ownerDocument.removeEventListener("keydown",this.escMinimize),this.props.isPoppedOut&&this.props.windowStyle!==gm&&this.resize&&this.resize.disconnect()},n.onReadNewMsg=function(){this.props.chatStatus!==wp&&this.props.chatStatus!==gp||!this.props.isMessageScrollBottom||(!this.props.maxVisitorReadId||this.props.maxVisitorReadId&&!_r(this.props.maxVisitorReadId,this.props.maxGuid,this.props.messages))&&this.props.maxGuid!==this.maxHandledMsgId&&(this.props.onReadNewMsg(this.props.maxGuid),this.maxHandledMsgId=this.props.maxGuid)},n.escMinimize=function(e){if(this.props.show&&27===e.keyCode){var t=xe(this.container);(null==t?void 0:t.getElementById("visitor-question-suggestions"))&&this.props.minimize&&this.props.minimize()}},n.render=function(){var e=this,t=this.props,n=t.isMobile,o=t.isRightToLeft,a=t.isPoppedOut,r=t.windowStyle,s=t.children,c=t.windowTab,d=t.chatStatus,l=t.env,u=t.isIPad,p=t.show,f=t.showAvatar,g=t.ifShowSideWindow,w=t.cornerStyle,m=t.isCurrentAdaptiveButton,b=t.width,v=t.isWaitingFromChatBotToAgent;ye(this.context);var _,x=h(c===tp&&h(d===fp&&"animation--waiting",d===wp&&"animation--chatting",d===mp&&"animation-chatted")),y=h("embedded-window",n&&"window--mobile",g&&"withSideWin",u&&"window--ipad",n&&2===l&&"window--mobileVertical",n&&1===l&&"window--mobileHorizontal",oe&&"window--ie",Ce&&"window--edge",!ke&&Se&&"window--chrome");w===vO?_="window--circular":w===_O&&(_="window--square");var C=null;return n&&!u&&(C=b),i("div",{className:h(y,!p&&"window--minimized"),ref:function(t){e.element=t}},i("div",{id:"whole-window",className:h(f&&"window--bio","whole-window","window--animated",o?"window--rtl":"",a?"":"window--embedded",_,wm(r),r===fm&&g&&!u&&!n&&"window--circle--sidewindow",r===hm&&g&&!u&&!n&&"window--classic--sidewindow",m&&"window--adaptive",x,we?"window--ie9":"",Ie&&"window--ie10",v?"window--"+c+"--chatting":"window--"+c+(d!==hp?"--"+d:"")),style:{maxWidth:C},tabIndex:"0"},i("main",{id:"main",className:"main-container",style:g&&n&&(c===tp||c===ep||c===ip||c===Xu||c===$u)&&(r!==gm?{height:"calc(100% - 40px)"}:{"margin-bottom":"45px"})},s)))},t}(p),yO=function(e,t){if(!e||!t)return!1;var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return[new RegExp("\\."+n+"\\s*\\{","i"),new RegExp("\\."+n+"\\s*,","i"),new RegExp(",\\s*\\."+n+"\\s*,","i"),new RegExp(",\\s*\\."+n+"\\s*\\{","i")].some((function(t){return t.test(e)}))},CO=function(e,t,n){if(!e)return"";var i=function(e){return e?e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/.*$/gm,""):""}(e),o=function(e){return yO(e,"main-container")}(i),a=function(e){return yO(e,"window__header")||yO(e,"window__headerBox")}(i),r=[];return o&&(r.push(".window__form{background-color:transparent;box-shadow:none;backdrop-filter:none;}"),null!=n&&n.banner||r.push(".window__form:not(.kbsearch-window__form){margin-top:24px;}"),r.push(".header--bottom{display:none}")),!o&&a&&r.push(".header--bottom{display:none}"),r.join("")},kO=function(e){return{position:e?"absolute":"fixed",width:"100%",height:"100%",overflow:"hidden",top:0,bottom:0,right:0,left:0,margin:0,touchAction:"none"}},SO={display:"none"},IO=12,MO=function(e){var t=e.showAdaptiveMinimizeIcon,n=91;return e.windowStyle===gm||(n-=11),t?n:0},AO=function(e){return e.showAdaptiveMinimizeIcon?18:0},BO=function(){},OO=null,TO=null,jO={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};Object.keys(jO).forEach((function(e){e in q&&(OO=jO[e],TO=e)}));var FO=function(e){function t(t){var n;(n=e.call(this,t)||this).state={showMessage:!0,windowBaseChildrenDidMount:!1,minimized:t.windowStatus===nu,sideWindowAnimationEnd:!1,isBubbleMinimizing:!1,isBubbleRestoring:!1},n.setWinSize=function(){},n.getWinStyle=function(){},n.getSideWinStyle=function(){},n.getInnerCss=n.getInnerCss.bind(fe(n)),n.updateIframe=function(){return BO},n.shouldComponentUpdate=YB(fe(n),["windowStatus","windowTab","children","windowStyle","unread","title","seed","sideWindow","right","bottom","width","height","cornerStyle","showToolbox","isPoppedOut","showChatWindowInSidewindow"],["showMessage","windowBaseChildrenDidMount","minimized"]);var i=t.onFocusToggle;return n.onFocus=function(){var e=n.props.windowStatus;e!==eu&&e!==tu||i(!0)},n.onFocusToggle=function(){var e=n.props.windowStatus;i(!q[TO]&&(e===eu||e===tu))},n.getChildren=n.getChildren.bind(fe(n)),n.getSideWin=n.getSideWin.bind(fe(n)),n.getDragBar=n.getDragBar.bind(fe(n)),n.onAnimated=n.onAnimated.bind(fe(n)),n.onMount=n.onMount.bind(fe(n)),n.bodyEnableScroll=n.bodyEnableScroll.bind(fe(n)),n.bodyDisableScroll=n.bodyDisableScroll.bind(fe(n)),n.sideWindowOnAnimated=n.sideWindowOnAnimated.bind(fe(n)),n.updateSideWindowNoScroll=n.updateSideWindowNoScroll.bind(fe(n)),n.bubbleIframeHeight=0,n.onWindowVisibleChange=n.onWindowVisibleChange.bind(fe(n)),n.disableScrollTimer=null,n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){if(this.props.isPoppedOut&&!this.props.showChatWindowInSidewindow){var e=Eb().popout;e&&e.SideWinWidth&&e.SideWinWidth>0&&H.resizeTo(H.outerWidth-e.SideWinWidth,H.outerHeight),zb({popout:Object.assign({},e,{SideWinWidth:-1,isLarged:!1})})}var t=this.props,n=t.isMobile,i=t.isIPad,o=t.isPoppedOut;(n&&!i||o)&&Me(this.onWindowVisibleChange)},n.componentWillReceiveProps=function(e){var t=this.props;e.width!==t.width||(e.height,t.height),e.unread>t.unread&&this.setState({showMessage:!0}),e.windowStatus!==this.props.windowStatus&&this.setState({minimized:!1}),(e.windowStatus===eu||e.windowStatus===tu)&&e.windowStatus!==this.props.windowStatus&&this.props.onReadNewMsg(),this.setState({isBubbleMinimizing:e.windowStatus!==this.props.windowStatus&&e.windowStatus===nu}),this.setState({isBubbleRestoring:e.windowStatus!==this.props.windowStatus&&e.windowStatus===tu})},n.componentWillUnmount=function(){var e=this.contentWindow;e&&e.removeEventListener&&(e.removeEventListener("focus",this.onFocus),e.removeEventListener("blur",this.onBlur)),q.removeEventListener(OO,this.onFocusToggle),this.timer&&(clearTimeout(this.timer),this.timer=null),this.bodyEnableScroll();var t=this.props,n=t.isMobile,i=t.isIPad,o=t.isPoppedOut;(n&&!i||o)&&Ae(this.onWindowVisibleChange),this.disableScrollTimer&&clearTimeout(this.disableScrollTimer)},n.onAnimated=function(){this.props.windowStatus===nu&&!this.state.minimized&&this.setState({minimized:!0})},n.onMount=function(e){this.contentWindow=e,e.addEventListener("focus",this.onFocus),e.addEventListener("blur",this.onBlur),this.props.onMounted&&(this.props.onMounted(),q.addEventListener(OO,this.onFocusToggle))},n.onWindowVisibleChange=function(){var e=this.props,t=e.windowStatus,n=e.chatStatus;!Me()||t!==eu&&t!==tu||n!==wp&&n!==gp||this.props.onReadNewMsg()},n.getInnerCss=function(){var e,t=this.props,n=t.isMobile;t.windowStyle,e=t.background?"background-image:"+t.background:"background-color: "+va(t.mainColor);var i=n?"#glance_gesture{position: fixed;}":"";return[[t.fontCSS,qa(St,t.mainColor),qa(oO,t.mainColor),".online .chatButton:after{","background-color:"+t.mainColor,"}",".offline .chatButton:after{","background-color:#bbb","}",".main-container{\n "+e+"}","}",".window--bubble .window__operation{background:"+V(t.mainColor)+"}",""].join(""),"",t.amyCustomCSS,t.customCss,i,"",CO(t.customCss,t.windowStyle,t.header)]},n.getChildren=function(e){var t=this.props,n=t.windowStatus,o=t.isMobile,a=t.title,r=t.isRightToLeft,s=t.isPoppedOut,c=t.windowStyle,d=t.children,l=t.windowTab,u=t.chatStatus,p=t.isIPad,h=t.showAvatar,f=t.ifShowSideWindow,g=t.cornerStyle,w=t.isCurrentAdaptiveButton,m=t.width,b=t.ifEnableVisitorSeeMsgSentSeen,v=t.maxVisitorReadId,_=t.maxMsgId,x=t.onReadNewMsg,y=t.maxGuid,C=t.messages,k=t.minimize,S=t.isMessageScrollBottom;return i(xO,{show:n===eu||n===tu,isMobile:o,title:a,isRightToLeft:r,isPoppedOut:s,windowStyle:c,windowTab:l,chatStatus:u,isIPad:p,env:e,onUnmount:this.bodyEnableScroll,onMount:this.bodyDisableScroll,onAnimated:this.onAnimated,showAvatar:h,ifShowSideWindow:f,cornerStyle:g,isCurrentAdaptiveButton:w,width:m,ifEnableVisitorSeeMsgSentSeen:b,maxVisitorReadId:v,maxMsgId:_,maxGuid:y,onReadNewMsg:x,messages:C,minimize:k,isMessageScrollBottom:S,updateMainWindowWidth:this.props.updateMainWindowWidth,isWaitingFromChatBotToAgent:this.props.isWaitingFromChatBotToAgent},d)},n.getSideWin=function(e,t,n,o){var a=this.props,r=a.sideWindow;a.fontCSS;var s,c=a.onFocusToggle,d=a.isMobile,l=a.extraJs,u=this.props,p=SO;if(r){if(n)p={display:"none"};else{p=this.getSideWinStyle(e,t,n),d&&!t?(p.bottom=0,p.right=0):(p.bottom+=MO(u)+function(e){var t=e.windowStyle,n=e.isMobile,i=e.isIPad,o=e.isPoppedOut,a=t===gm;return i?a||o?0:11:!a||n||o?0:-11}(u),p.right+=AO(this.props));var h=0;p&&p.bottom&&(h=p.bottom),p.maxHeight="calc(100% - "+h+"px)"}s=i(r,{ToogleChatWinFocused:c,sideWindowOnAnimated:this.sideWindowOnAnimated,updateSideWindowNoScroll:this.updateSideWindowNoScroll})}u.isMobile||u.isPoppedOut||u.windowStyle===gm||(p.zIndex=wO,p.right+=5.5);var f=ye(this.context);return i(lO,{key:"sideWin",id:"side_window_container",style:p,languageTag:o,scrolling:this.state.sideWindowAnimationEnd?"auto":"no",title:f.sideWindow,extraJs:l},s)},n.getDragBar=function(){var e=this,t=this.props,n=t.windowStyle,o=t.windowStatus,a=t.isPoppedOut,r=t.width,s=t.height,c=t.showAvatar;if(!((o===eu||o===tu)&&!a&&!(n===gm)))return null;var d=this.winWidth,l=Math.min(this.winHeight,s-MO(this.props)),u=1;return n===fm&&c&&(u=32.5),i(bO,{key:"dragBar",barWidth:d-IO-128,ifrOffsetTop:u,ifrOffsetLeft:6,width:r,height:s,right:this.props.right,bottom:this.props.bottom+MO(this.props),ifrWidth:d,ifrHeight:l,ifrPositionChanged:function(t,n){var i=n-MO(e.props);e.props.onPositionChange(t,Math.max(0,i))}})},n.sideWindowOnAnimated=function(){this.setState({sideWindowAnimationEnd:!0})},n.updateSideWindowNoScroll=function(){this.setState({sideWindowAnimationEnd:!1})},n.bodyDisableScroll=function(){var e=this;this.props.isMobile&&!this.props.isIPad&&(this.disableScrollTimer=setTimeout((function(){var t=q.body.style,n=!e.props.isIPad;e.style=Object.keys(kO(n)).reduce((function(e,i){var o=e;return o[i]=t[i],t[i]=kO(n)[i],o}),{}),e.props.isPoppedOut||q.addEventListener("touchmove",me),e.setState({windowBaseChildrenDidMount:!0})}),200))},n.bodyEnableScroll=function(){var e=this;this.props.isMobile&&(this.disableScrollTimer&&clearTimeout(this.disableScrollTimer),Object.keys(this.style||{}).forEach((function(t){q.body.style[t]=e.style[t]})),this.props.isPoppedOut||q.removeEventListener("touchmove",me),this.setState({windowBaseChildrenDidMount:!1}))},n.render=function(){var e=this,t=this.props,n=t.windowStatus,o=t.isMobile,a=t.width,r=t.height,s=t.orientation,c=t.isIPad,d=t.title,l=t.isPoppedOut,u=t.languageTag,p=t.windowStyle;t.brandConfig;var h=t.isSideWindowSelectedTabKb,f=H.brandingNameLowerCase,g=3;o&&(s===ku&&(!c||a<760)?g=1:s===Su&&(!c||r<760)&&(g=2)),this.setWinSize(g,c);var w=n===nu,m=3!==g&&!w,b=this.getWinStyle(g,c),v=w&&(this.state.minimized||!Be||oe||p===gm);if(p===gm&&this.state.isBubbleRestoring&&this.bubbleIframeHeight&&(b=Object.assign({},b,{height:this.bubbleIframeHeight})),v&&((b=Object.assign({},b,{width:0,height:0,display:"none"})).left="",b.top=""),!v&&l&&p===fm&&(b.backgroundColor="#d5d5d5"),"100%"===b.height||p===gm&&l)b.bottom=0,b.right=0;else{var _=Math.min(r-MO(this.props),b.height);b.bottom=Math.min(b.bottom+MO(this.props),r-_),b.right=Math.min(b.right,a-b.width)+AO(this.props)}var x=0,y=0;if(!o||c?(b&&b.right&&(x=b.right),b&&b.bottom&&(y=b.bottom),b.maxWidth="calc(100% - "+x+"px)",b.maxHeight="calc(100% - "+y+"px)"):(b.right=0,b.bottom=0),p===gm&&!l&&(!o||c)){this.props.showAdaptiveMinimizeIcon&&(b.bottom=72,b.maxHeight="calc(100% - 72px)")}h&&o&&!c&&(b.display="none");var C,k=this.getInnerCss();m&&(C=function(e,t){return{position:e?"absolute":"fixed",top:0,right:0,bottom:0,left:0,zIndex:t?1:gO}}(o&&!c,l));var S=o&&!l&&!c&&!w&&"html{width:100%!important;position:static!important}body>*:not(#"+f+"-container){display:none!important}body{text-indent:-9999px!important}#"+f+"-container,#"+f+"-container>div{position:static!important}",I=ye(this.context);return i("div",{style:C,onTouchMove:!l&&me},this.state.windowBaseChildrenDidMount&&S&&i(sO,{css:S}),this.getSideWin(g,c,w,u),this.getDragBar(g),i(lO,{key:"win"+(l?1:0),id:"chat_window_container",ref:function(t){e.container=t},onMounted:this.onMount,style:b,callback:this.updateIframe(g,c),noIframe:l,languageTag:u,tabIndex:v?-1:void 0,title:I.chatWindow,baseTarget:"_top",setIsKeyboardFocus:this.props.setIsKeyboardFocus,isKeyboardFocus:this.props.isKeyboardFocus},i(sO,{css:k}),!l&&i(aO,{message:d}),this.getChildren(g)))},t}(p),VO=function(e,t){if(!e)return 0;var n=e.querySelector("#main");if(!n)return 0;var i=n.getBoundingClientRect().height;if(t){i+=45}return i},WO=function(t){function n(n){var i;(i=t.call(this,n)||this).state=Object.assign({},i.state,{innerHeight:0}),i.updateIframe=e(1)((function(e,t){return function(n,o){var a=i.props,r=a.windowStatus,s=a.sideWindow;if(r===eu||r===tu){var c=3===e&&t&&s;i.setState({innerHeight:VO(o,c)}),i.timer&&clearTimeout(i.timer),i.timer=setTimeout((function(){i.setState({innerHeight:VO(o,c)}),i.timer=null}),460)}r===nu&&i.setState({innerHeight:0})}}));i.setWinSize=function(e){3===e&&(i.winWidth=i.props.isPoppedOut?380:375,i.props.windowStatus!==nu||i.state.minimized?i.winHeight=Math.max(Math.min(i.props.height,i.state.innerHeight),500):("100%"!==i.winHeight&&(i.bubbleIframeHeight=i.winHeight),i.winHeight="100%")),1===e&&(i.props.width>500?i.winWidth=500:i.winWidth="100%",i.winHeight="100%"),2===e&&(i.winWidth="100%",i.winHeight="100%")},i.getWinStyle=function(e,t){var n,o,a=0,r=0;return 3===e&&(a=i.props.bottom,r=i.props.right,n=i.state.left,o=i.state.top),{position:3===e||t||i.props.isMinimized?"fixed":"absolute",border:0,zIndex:i.props.isPoppedOut?2:pO,top:o,left:n,bottom:a,right:r,width:i.winWidth,height:i.winHeight}},i.getSideWinStyle=function(e,t){var n=i.props,o=n.isPoppedOut,a=n.width,r=n.windowStyle;if(3===e&&!t){var s=i.props.right+i.winWidth=a?a-i.winWidth-s-484:i.props.right+i.winWidth,d=o?i.winWidth:c,l=o?480:484,u=i.props.height-i.winHeight>87.5?i.props.height-i.winHeight-87.5:0,p=i.winHeight+i.props.bottom>=i.props.height?u:i.props.bottom;r!==gm||o||(p=0);var h=Math.max(0,Math.min(a-d,l));return{zIndex:o?1:gO,width:l,height:o?555:580,bottom:p,right:d,background:"transparent",position:"fixed",border:0,maxWidth:h}}var f=i.props.showChatWindowInSidewindow,g=o&&t,w=g?"100%":i.winWidth,m=g?"100%":i.winHeight;return{zIndex:wO,width:w,height:f?60:m,right:i.props.right>=a-i.winWidth?a-i.winWidth:i.props.right,bottom:0,background:"transparent",position:"fixed",border:0}};var o=i.shouldComponentUpdate;return i.shouldComponentUpdate=function(e,t){return!!o(e,t)||t.innerHeight!==i.state.innerHeight},i}return he(n,t),n}(FO),NO=function(e){function t(t){var n;return(n=e.call(this,t)||this).setWinSize=function(e){var t=n.props.iframeStyle,i=t&&t.width,o=t&&t.height,a=i;3===e&&(n.winWidth=a,n.sideWindowWidth=i,n.winHeight=o),1===e&&(n.props.width>500?n.winWidth=500:n.winWidth="100%",n.winHeight="100%"),2===e&&(n.winWidth="100%",n.winHeight="100%")},n.getWinStyle=function(e,t){var i=n.props.isMinimized;return{position:3===e||t||i?"fixed":"absolute",border:0,zIndex:pO,top:n.state.top,left:n.state.left,bottom:n.props.bottom,right:n.props.right,width:n.winWidth,height:n.winHeight}},n.getSideWinStyle=function(e,t){var i=n.props.showChatWindowInSidewindow,o=12;if(3===e){var a=n.props.showAvatar,r=n.winHeight;a&&(r-=25),t&&(i?r=60:(r-=o,a&&(r+=26)));var s=n.props.right+n.winWidth=n.props.width&&n.props.right>=496?n.props.width-n.winWidth-s-496:n.winWidth+n.props.right-o,d=n.winWidth+n.props.right>=n.props.width?n.props.width-n.winWidth-s+6:n.props.right+6,l=t?d:c,u=n.props.height-n.winHeight>87.5?n.props.height-n.winHeight-87.5:0,p=n.winHeight+n.props.bottom>n.props.height?u:n.props.bottom,h=Math.max(n.props.width-l,0);return{zIndex:t?wO:gO,width:t?n.winWidth-o:496,height:r,bottom:p,right:l,background:"transparent",position:"fixed",border:0,maxWidth:h}}return{zIndex:wO,width:n.winWidth,height:i?60:n.winHeight,right:0,bottom:n.props.bottom,background:"transparent",position:"fixed",border:0}},n}return he(t,e),t}(FO),DO=function(e){function t(t){var n;return(n=e.call(this,t)||this).setWinSize=function(e){var t=n.props.iframeStyle,i=t&&t.width,o=t&&t.height,a=i;3===e&&(n.winWidth=a,n.winHeight=o),1===e&&(n.props.width>500?n.winWidth=500:n.winWidth="100%",n.winHeight="100%"),2===e&&(n.winWidth="100%",n.winHeight="100%")},n.getWinStyle=function(e,t){var i=3!==e||t?pO:gO;return{position:3===e||t||n.props.isMinimized?"fixed":"absolute",border:0,zIndex:i,top:n.state.top,left:n.state.left,bottom:n.props.bottom,right:n.props.right,width:n.winWidth,height:n.winHeight}},n.getSideWinStyle=function(e,t){if(3===e){var i=n.winHeight;t&&(i=n.props.showChatWindowInSidewindow?60:n.winHeight-12);var o=n.props.right+n.winWidth=n.props.width&&n.props.right>=496?n.props.width-n.winWidth-o-496:n.winWidth+n.props.right-12,r=n.winWidth+n.props.right>=n.props.width?n.props.width-n.winWidth-o+6:n.props.right+6,s=t?r:a,c=n.props.height-n.winHeight>87.5?n.props.height-n.winHeight-87.5:0,d=n.winHeight+n.props.bottom>n.props.height?c:n.props.bottom,l=Math.max(0,n.props.width-s);return{zIndex:3===e&&!t?gO:wO,width:t?n.winWidth-12:496,height:i,bottom:d,right:s,background:"transparent",position:"fixed",border:0,maxWidth:l}}return{zIndex:wO,width:n.winWidth,height:n.props.showChatWindowInSidewindow?60:n.winHeight,right:0,bottom:n.props.bottom,background:"transparent",position:"fixed",border:0}},n}return he(t,e),t}(FO),PO=function(e){function t(t){var n;return(n=e.call(this,t)||this).setWinSize=function(e,t){n.winHeight="100%";var i=n.props,o="100%",a="100%";if(i.sideWindow&&3===e&&!t){var r=i.width;r>860?(o=r-480,a=480):(o="44.2%",a="55.8%")}n.winWidth=o,n.sideWinWidth=a,n.sideWinHeight=i.showChatWindowInSidewindow?60:n.winHeight},n.getSideWinStyle=function(e,t){var i=n.props.width-n.winWidth;return 3!==e||t||(i=Math.min(i,500)),{background:"transparent",position:"fixed",border:0,zIndex:3!==e||t?3:1,width:n.sideWinWidth,height:n.sideWinHeight,bottom:0,left:0,maxWidth:i}},n.getWinStyle=function(){return{position:"absolute",border:0,zIndex:2,width:n.winWidth,height:n.winHeight,right:0,bottom:0}},n}return he(t,e),t}(FO),RO=["hOnline","hOffline","hCallback","hStop"],EO=function(e){return function(t){function n(e){var n;return(n=t.call(this,e)||this).timer=null,n.stopTimer=null,n.hOnline=[].concat(e.hOnline),n.setTimespan=n.setTimespan.bind(fe(n)),n.heartbeat=n.heartbeat.bind(fe(n)),n.tick=n.tick.bind(fe(n)),n.registerStop=n.registerStop.bind(fe(n)),n.clean=n.clean.bind(fe(n)),n.initial=n.initial.bind(fe(n)),n}he(n,t);var o=n.prototype;return o.componentDidMount=function(){this.props.hOnline&&this.initial()},o.componentDidUpdate=function(e){e.hOnline&&!this.props.hOnline&&this.clean(),!e.hOnline&&this.props.hOnline&&(this.hOnline=[].concat(this.props.hOnline),this.initial()),!function(e,t){if(!e&&t)return!1;if(!t&&e)return!1;if(!t&&!e)return!0;var n=[].concat(e),i=[].concat(t);return n.length===i.length&&n.every((function(e,t){return e.timespan===i[t].timespan&&e.duration===i[t].duration}))}(e.hOnline,this.props.hOnline)&&e.hOnline&&this.props.hOnline&&(this.clean(),this.hOnline=[].concat(this.props.hOnline),this.initial())},o.componentWillUnmount=function(){this.clean()},o.setTimespan=function(){var e=this.hOnline.shift();e&&(this.duration=e.duration,this.timespanTimer=setTimeout(this.setTimespan,1e3*e.timespan))},o.initial=function(){this.setTimespan(),this.tick(),this.registerStop(),this.props.hDelay||this.props.hCallback(this.props),this.props.hOnInit&&this.props.hOnInit.call()},o.heartbeat=function(){this.props.hCallback(this.props),this.duration?this.tick():this.heartbeatTimer=null},o.tick=function(){var e=void 0!==this.props.hOffline?this.props.hOffline:this.duration;this.heartbeatTimer=setTimeout(this.heartbeat,1e3*e)},o.registerStop=function(){var e=this;void 0!==this.props.hStop&&(this.stopTimer=setTimeout((function(){e.clean.call(),e.props.hOnStopped&&e.props.hOnStopped.call()}),1e3*this.props.hStop))},o.clean=function(){this.heartbeatTimer&&clearTimeout(this.heartbeatTimer),this.timespanTimer&&clearTimeout(this.timespanTimer),this.stopTimer&&clearTimeout(this.stopTimer),this.heartbeatTimer=null,this.timespanTimer=null,this.stopTimer=null},o.render=function(){var t=this.props;t.hOnline,t.hOffline,t.hCallback,t.hStop;var n=z(t,RO);return i(e,n)},n}(p)},zO=["en","zh-Hans"],LO=function(){var e=N(E().mark((function e(){var t,n;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("./language.7f73b43e.js");case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0),t=0;case 9:if(!(t<5)){e.next=25;break}return e.next=12,new Promise((function(e){return setTimeout(e,5e3)}));case 12:return(n=new URL(e.t0.message.replace("Failed to fetch dynamically imported module: ","").trim())).searchParams.set("t",""+ +new Date),e.prev=14,e.next=17,import(n.href);case 17:return e.abrupt("return",e.sent);case 20:e.prev=20,e.t1=e.catch(14);case 22:t++,e.next=9;break;case 25:throw e.t0;case 26:case"end":return e.stop()}}),e,null,[[0,6],[14,20]])})));return function(){return e.apply(this,arguments)}}(),HO=function(e){var t=function(t){function n(e){var n;return(n=t.call(this,e)||this).languageOtherRef=f(),n.languageOtherRef.current=null,n.state={language:null},n}he(n,t);var o=n.prototype;return o.getChildContext=function(){return{language:this.state.language}},o.componentDidMount=function(){var e=this,t=this.props.languageTag;if(zO.includes(t)){var n=$[t];this.setState({language:n})}else this.languageOtherRef.current||LO().then((function(n){var i=n.default;e.languageOtherRef.current=i,e.setState({language:i[t]})}))},o.render=function(){return this.state.language?i(e,this.props):null},n}(p),n=e.displayName||e.name;return t.displayName="language("+n+")",t},qO=EO(HO((function(e){var t=e.windowStyle,n=e.isPoppedOut;return i(function(e,t){return e&&t!==gm?PO:t===gm?WO:t===fm?NO:DO}(n,t),e)}))),UO=Oe((function(){return import("./RatingForm.bb3a371c.js")})),GO=Oe((function(){return import("./SendEmailForm.13fefb75.js")}));function KO(e){if(e)return e.displayName||e.name}var YO=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={focusKey:t.show?KO(t.icons[0]):void 0,showRatingForm:!1,showSendEmailForm:!1},n.onFocus=n.onFocus.bind(fe(n)),n.onKeyDown=n.onKeyDown.bind(fe(n)),n.onDialogToggle=n.onDialogToggle.bind(fe(n)),n.onRatingFormChange=n.onRatingFormChange.bind(fe(n)),n.onEmailChange=n.onEmailChange.bind(fe(n)),n.hasModal=!1,n.score=0,n.comment="",n.emailValue="",n}he(t,e);var n=t.prototype;return n.componentWillReceiveProps=function(e){this.props.show||!e.show||this.hasModal?this.props.show&&!e.show&&this.setState({focusKey:void 0}):this.setState({focusKey:KO(e.icons[0])})},n.onRatingFormChange=function(e){this.score=e.score,this.comment=e.comment},n.onEmailChange=function(e){this.emailChangeFlag=!0,this.emailValue=e.emailAddress},n.onDialogToggle=function(e,t){e?this.setState({focusKey:void 0,showRatingForm:"rating"===t,showSendEmailForm:"sendEmail"===t}):(this.setState({showRatingForm:!1,showSendEmailForm:!1}),this.props.hideMenu()),this.hasModal=e},n.onFocus=function(e){this.hasModal||this.setState({focusKey:e})},n.onKeyDown=function(e){if(this.hasModal)e.stopPropagation();else{var t=this.props.icons.map(KO),n=t.indexOf(this.state.focusKey);if(!(n<0)){var i=n,o=!1;switch(e.keyCode){case 40:o=!0,i=Math.min(n+1,t.length-1);break;case 38:o=!0,i=Math.max(n-1,0);break;case 36:o=!0,i=0;break;case 35:o=!0,i=t.length-1;break;case 27:o=!0,this.props.hideMenu(),this.props.onESCHide();break;case 9:this.props.hideMenu()}o&&(e.preventDefault(),e.stopPropagation()),this.setState({focusKey:t[i]})}}},n.render=function(){var e=this,t=this.props;return i("div",{className:h("window__operation-menu",t.show&&"window__menu-show"),onKeyDown:this.onKeyDown},i("ul",{role:"menu","aria-haspopup":!0,"aria-expanded":t.show.toString(),className:h("none"!==t.popupBubbleType&&"displayNone")},t.icons.map((function(t){var n=KO(t),o=n===e.state.focusKey;return"lazy"===t.type?i(Te,{fallback:i("div",null)},i(je,null,i(t.component,{key:n,onDialogToggle:e.onDialogToggle,onFocus:e.onFocus,focusKey:n,focus:o}))):i(t,{key:n,onDialogToggle:e.onDialogToggle,onFocus:e.onFocus,focusKey:n,focus:o})}))),this.state.showRatingForm&&i(Te,{fallback:i("div",null)},i(je,{failCallback:function(){e.setState({showRatingForm:!1,showSendEmailForm:!1})}},i(UO,{isShow:!0,onDialogToggle:this.onDialogToggle,onChange:this.onRatingFormChange,isKeyboardFocus:this.props.isKeyboardFocus}))),this.state.showSendEmailForm&&i(Te,{fallback:i("div",null)},i(je,{failCallback:function(){e.setState({showRatingForm:!1,showSendEmailForm:!1})}},i(GO,{isShow:!0,emailAddress:this.emailChangeFlag?this.emailValue:t.emailAddress,onDialogToggle:this.onDialogToggle,onChange:this.onEmailChange,isKeyboardFocus:this.props.isKeyboardFocus}))))},t}(p),QO=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateBodyCss=n.updateBodyCss.bind(fe(n)),n.focusOnClose=n.focusOnClose.bind(fe(n)),n.focusOnLastButton=n.focusOnLastButton.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;this.updateBodyCss(),this.props.ifShow&&setTimeout((function(){if(e.props.autoFocus){var t=e.btn.ownerDocument.getElementById(e.props.autoFocus);t&&t.focus()}else e.btn.focus()}),100)},n.componentDidUpdate=function(e){var t=this;e.ifShow!==this.props.ifShow&&this.updateBodyCss(),!e.ifShow&&this.props.ifShow&&setTimeout((function(){if(t.props.autoFocus){var e=t.btn.ownerDocument.getElementById(t.props.autoFocus);e&&e.focus()}else t.btn&&t.btn.focus()}),100)},n.componentWillUnmount=function(){var e=this.props.globalClass,t=this.element.ownerDocument,n=new RegExp("\\b"+e+"\\b","g");if(n.test(t.body.className)&&(t.body.className=t.body.className.replace(n,"").trim()),this.props.focusParent&&this.props.isKeyboardFocus){var i=this.props.focusParent,o=t.getElementById(i);o&&setTimeout((function(){return o.focus()}),100)}},n.focusOnClose=function(){this.btn.focus()},n.focusOnLastButton=function(){var e=this.element.querySelectorAll("button");e[e.length-1].focus()},n.updateBodyCss=function(){var e=this.props.ifShow,t=this.element.ownerDocument,n=this.props.globalClass,i=new RegExp("\\b"+n+"\\b"),o=i.test(t.body.className);e&&!o?t.body.className+=" "+n:!e&&o&&(t.body.className=t.body.className.replace(i,"").trim())},n.render=function(){var e=this,t=this.props,n=t.id,o=t.className,a=t.children,r=t.ifShow,s=t.onClose,c=t.title,d=t.aria,l=t.role,u=ye(this.context);return i("div",{id:n&&"bubble_box_"+n,ref:function(t){e.element=t},className:h("bubble-box",r&&"bubble-box--show",o),onClick:s},r&&[i("div",{tabIndex:0,onFocus:this.focusOnLastButton,ariaHidden:!0}),i("div",ge({id:n,className:"bubble",onClick:function(e){e.stopPropagation()},role:l||"alertdialog",style:{width:this.props.width},"aria-modal":"true","aria-label":"Dialog"},d),i("button",{className:"bubble-close",onClick:s,"aria-label":u.closeDialog,ref:function(t){e.btn=t}},i(Fe,{type:Ve,ariaHidden:!0})),c&&i("div",{className:"bubble--title"},c),a),i("div",{tabIndex:0,onFocus:this.focusOnClose,ariaHidden:!0})])},t}(p),ZO=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={ifShowDialog:!1},n.show=n.toggle.bind(fe(n),!0),n.hide=n.toggle.bind(fe(n),!1),n}he(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){t.ifShowDialog&&!this.state.ifShowDialog&&this.btn&&this.btn.focus()},n.toggle=function(e,t){t&&t.stopPropagation(),this.setState({ifShowDialog:e})},n.render=function(){var e=this,t=this.props,n=t.languages,o=We(this.show);return i("div",{className:"header__operationContainer"},i("button",{role:"button",tabIndex:0,onClick:this.show,ref:function(t){e.btn=t},onKeyDown:o,title:n.buttonEndChat,"aria-label":n.buttonEndChat},i(Fe,{type:Ne,className:"icon-endchat",ariaHidden:!0,viewBox:"0 0 20 20",fill:"none"})),i(QO,{globalClass:"body__dialog",ifShow:this.state.ifShowDialog,onClose:this.hide,className:t.windowStatus===nu&&"bubble-box--minimize",aria:{"aria-label":"","aria-describedby":"prompt-end-chat-title"},autoFocus:"embedded-end-chatConfirmLeave"},i("div",{id:"prompt-end-chat-title",className:"bubble--desc"},n.promptStopChat),i("div",{className:"embedded-end-chatConfirmAction bubble__operation"},i("button",{id:"embedded-end-chatConfirmLeave",className:"btn btn-primary",onClick:function(n){e.hide(n),t.onEndChat()}},n.buttonYes),i("button",{id:"embedded-end-chatConfirmCancel",className:"btn btn-secondary",onClick:this.hide},n.buttonNo))))},t}(p);ZO.displayName="EndChat";var JO=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={showEndChatConfirm:!1,showMenu:!1},n.onClickShowEndChatConfirm=n.onClickShowEndChatConfirm.bind(fe(n)),n.updateEndChatConfirmStatus=n.updateEndChatConfirmStatus.bind(fe(n)),n.showMenu=n.setMenuStatus.bind(fe(n),!0),n.hideMenu=n.setMenuStatus.bind(fe(n),!1),n.toggleMenuStatus=n.toggleMenuStatus.bind(fe(n)),n.onKeyDown=We(n.toggleMenuStatus),n.onEnterPress=n.onEnterPress.bind(fe(n)),n.handleClickOutSide=n.handleClickOutSide.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){this.container&&(this.container.ownerDocument.body.addEventListener("touchend",this.hideMenu,!1),this.container.ownerDocument.addEventListener("mousedown",this.handleClickOutSide))},n.componentWillReceiveProps=function(e){var t=this;this.minimizeBtn&&e.windowStatus===tu&&this.props.windowStatus===nu&&e.isKeyboardFocus&&setTimeout((function(){return t.minimizeBtn.focus()}),100),e.isFocusOnDropdownMenu&&(this.props.resetFocusOnDropdownMenu(),setTimeout((function(){t.menuBtn.focus()}),300))},n.componentWillUnmount=function(){this.container&&(this.container.ownerDocument.body.removeEventListener("touchend",this.hideMenu,!1),this.container.ownerDocument.removeEventListener("mousedown",this.handleClickOutSide))},n.onClickShowEndChatConfirm=function(e){this.props.ifViewConfirmBubble?this.state.showEndChatConfirm||(e.stopPropagation(),e.preventDefault(),this.updateEndChatConfirmStatus(!0)):this.props.onEndChat(this.props.passEventArgs)},n.onEnterPress=function(e){13===e.keyCode&&(this.props.onEnterMinimize(),this.props.onMinimize(this.props.tab))},n.setMenuStatus=function(e){this.setState({showMenu:e})},n.handleClickOutSide=function(e){this.menuContainer&&!this.menuContainer.contains(e.target)&&this.setMenuStatus(!1)},n.updateEndChatConfirmStatus=function(e){this.setState({showEndChatConfirm:e})},n.toggleMenuStatus=function(e){e&&"keydown"===e.type||this.setState({showMenu:!this.state.showMenu})},n.render=function(){var e=this,t=this.props,n=t.icons.length>0,o=t.languages.embeddedWindowMinimize,a=i("button",{"aria-label":t.languages.buttonClose,onClick:function(){return t.onClose(t.tab)}},i(Fe,{type:Ne,className:"icon-close",title:t.languages.buttonClose,ariaHidden:!0,viewBox:"0 0 20 20",fill:"none"})),r=ye(this.context);return i("div",{className:"title-buttons window__operation",ref:function(t){t&&(e.container=t)}},n&&i("div",{ref:function(t){e.menuContainer=t},className:"header__operationContainer"},i("button",{className:"window__operation-menu-icon menubar__btn",onKeyDown:this.onKeyDown,onClick:this.toggleMenuStatus,"aria-label":r.menu,tabIndex:0,ref:function(t){e.menuBtn=t},id:"dropdown-menu"},i(Fe,{type:Re,ariaHidden:!0})),i(YO,{icons:t.icons,show:this.state.showMenu,hideMenu:this.hideMenu,onESCHide:function(){return e.menuBtn.focus()},popupBubbleType:t.popupBubbleType,emailAddress:t.emailAddress,isKeyboardFocus:t.isKeyboardFocus})),t.hasMinimize&&!t.isMobile&&i("button",{title:o,"aria-label":o,onClick:function(){return t.onMinimize(t.tab)},onKeyDown:this.onEnterPress,ref:function(t){e.minimizeBtn=t}},i(Fe,{type:Pe,className:"icon-minimize",ariaHidden:!0,viewBox:"0 0 20 20"})),t.hasEndChat?i(ZO,{languages:t.languages,onEndChat:t.onEndChat,windowStatus:t.windowStatus,isKeyboardFocus:t.isKeyboardFocus}):t.hideCloseButton?null:a,t.hasMinimize&&t.isMobile&&i("button",{title:o,"aria-label":o,onClick:function(){return t.onMinimize(t.tab)},onKeyDown:this.onEnterPress,ref:function(t){e.minimizeBtn=t}},i(Fe,{type:De,className:"icon-minimize",ariaHidden:!0,viewBox:"0 0 20 20"})))},t}(p),XO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAIAAAC2BqGFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTk1OENGMTMxRUZFMTFFNTlBMDdBNjRGRTU4NjdDNTAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTk1OENGMTQxRUZFMTFFNTlBMDdBNjRGRTU4NjdDNTAiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1OTU4Q0YxMTFFRkUxMUU1OUEwN0E2NEZFNTg2N0M1MCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1OTU4Q0YxMjFFRkUxMUU1OUEwN0E2NEZFNTg2N0M1MCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PscdlE0AAAduSURBVHja7J3tUxJbHMeXheV5EQUBwUdEqGayrKhpanrf/9ubunlfVLc718xeiRL4rIgPmKRpINL9CjN25w6Q4J4nOt8XTdNMZ5fP/s7v9/3tnj1revHihSJFXqpEIEFL0FIStAQtQUtJ0BK0lAQtQUvQUhK0BC0lQUvQErSUBC1BS0nQErQELUVeFt4DQVW9Nbndbl3X7Xa7paZqtVqpVMrl8nFNX79+PTg4KJVKEnR7MplMgUAgEon09/cDa8MLYK0JF+DyH4vFYj6f39raOj09laB/dUIWy2hNNput3f/bU1M8Ht/Z2clkMghzCbpxFI+MjMRisQ4Q/2+cUE25XC6dTp+cnEjQP+XxeCYnJxGPBo4ZDoeDwSBYr66u/vjxQ4JWotFoIpFA2jV8ZLPZfOvWLUT33Nwc21LJ2N4B7t27d2/evEmC8qX6+vqePn1q7HQRCTTq3qNHj2AtKBwLvvDx48fwML8daFBOJpOINWpHRBp58OABK9Yqq4yB30yT8uVx79+/j/bndwGNAuXz+Zgcuh7XyCTdD3poaAh+mWFtgE8Ha6Lllz1op9OJcGZuKOFA0Bl1M+g7d+40vHdBXwBN0/BRBT04OEi/ALbo1GnOLXqgUYXQ/ik8CVcdTWO3gR4eHqZf63+pRDyO0O4e0PgxY2NjCn9y6zqdbEYJNGaow+FQuFSUSgRQAg3vrPCqQDBot9m7AbSmaX6/X+FYoYFQN4BG3qBTcDpWJBI5Pz8XHjTn4Qx5vV6VcCjQAM1Pk9KKdW+v2KCdTieH9rnBtPP5iD5XJA7a4/EoIqi3r69yVhEYtMvlEgI0AuKsciYwaG77lAbnKXTqsFqtiiAiev+WOGiz2SwKaFVVydVDVegwMfhUNU1g0AIJPYvAoKvVqiigiXbhqtBnb6zOzkS2d+VyWRTQ379/Fxg0h4vvG6pUKmHykbvLSBz0t2/fhABdfz1AYNBcvd/QQoeHh6pJFTuiK5UK/6ALhYJqJkiDOGg404ODA/5B7+TzRJtYlU6wcE4Z0+7o6Ejsex1QPp/nHPTm5ib+NIsO+uTk5MuXLzyDXl1dVVVV+NQBbWxs8Ow39nZ3NcK3cymB3t7e5rZFzGQyCvn75pRAw+GtrKzw2XZnMxkkDdK3c+ndJl1bWyN616YzpVIpdN7XfCmaL9CgnF5c5Iry8fExTgkNobWbQEPrGxtcdeQfZ2cvwtlhp7BijSpodImfPn1i/v77paWDF4Kro5A3FPqPstCApebneWgFP8zMKBcLqVxdteL/UvhVS8vLcHsMKVer1bdv3pRKJVg6zarROSiDh7PwUogmtAmsQP/9/v3+/j6ShpPiKio2T8HhWt+9fYuiz6AAfvwIR4+J5XK7aa7aZrfcwGT6c3qaMuvZ2dmFVOoiNbtclBecqOw4m0yq+urly8L+PoXDwcb99e7d4sIC/u5wOukvVGO5gAZZUrNap6ens9ksaY/xx6tX9XsArNZrM16vVa9Isx8+wIckk0kSCMAXtbdcLmMK4VisFl2aePieIVqY09qmaVNTU+OxmFE1qlgsIilv53L1K4rqx3AhIBcrEOuxhqCb+Wcmk80+f/78+mPOzc2h7tW7UEQxxmf7ZhhHSz0v2gdNM+oxR/HwEJQxGkofhmX+6/haU4ugM2oLILeuO3h6T4m7Zbu6rhsyjtfrNascrYHnDrRRW3j5/f5q9VyCbpo6jHr78yKizTKim4ehUQ4M12wgHJagG2t0dNTA0cajUU4eMvAFOhgMBgIBAwf0+f0RboKaC3vncrni8fjAwIDhI0/duxfa3k6n08yXaTMGbbPZJiYmhoeHybVtuH6YK+vr65lMhuEiHmag0a2Nj48jKVPwBqqq4kCDg4NLS0srKytM3l9iABpk8bNBmXJnDD+TSCRwaGSSzc1NynWSKmjkh6GhIaRjOk/4myWrycnJaDS6sLCwu7vbhaDD4TAQc7KrhNvtTiaThUJhcXGRzmNiGqD7+/tv3LjB4Q4pPp/vyZMnuVzu8+fPpG0JWdDog4GY1Z7cV59qoVCItC0hBVrXdVQe+CpFBFGwJcaDdjgcyMWRSITzve6a2ZKRkRFkEsNtiZGgrVZrLBbDiVLe1d1Y2e12ErbEYlQs4MzGxsYE2gaFsi25LhcEb/1LYgLtncTElnQOGikYiRjpWJR9wK5pS9bW1rLZbMe2pEPQODDqxn8/2tjdwsRFYoQtWV5e7syWWDqYTbDGTD7Ow1yapnVsS9oAjdYOiBl+14srW4IAhy3Z29szEjSy8MTEBCaOcNaYnNCRPXz4EKBTqdRVFh9bfjlZ6r5NoH0CaQrz+9mzZ2jfkUxa10lL64p3+/btrvRtBqr+qVw4k/n5+a2trabltMUQ+P+S8tXrZOsvramtuyNJ8Opy1RbEtg0azbQQO5nzI8z+Fh8KUFtUVcmu7TskLnfboGXe6MTz9Xia7cUqI9pI9Xg8zbpzGdFGytPTU20XtChfm+BKvb29501SR9OG5fXr18dHRxzuGcO/oW7bRwu09TM/Oq80hvavAAMAcWJ5ooQVnC0AAAAASUVORK5CYII=",$O=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={src:XO},n.download=n.download.bind(fe(n)),n.download(t.src),n}he(t,e);var n=t.prototype;return n.componentWillReceiveProps=function(e){e.src!==this.props.src&&(this.setState({src:XO}),this.download(e.src))},n.shouldComponentUpdate=function(e,t){return t.src!==this.state.src},n.download=function(e){var t=this,n=new Image,i=function(){t.setState({src:e})};n.onload=i,n.onerror=i,n.src=e},n.render=function(){var e=this.props;return i("img",ge({},e,{alt:"",src:this.state.src}))},t}(p),eT=function(e){function t(){return e.apply(this,arguments)||this}return he(t,e),t.prototype.render=function(){var e=this.props,t=e.startColor,n=e.stopColor;return i("div",{className:"header--bottom"},i("svg",{width:"100%",height:"19",viewBox:"0 0 400 19",fill:"none",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M400 0H0V10.9095C0 10.9095 31.7291 1.0207 106.425 0.536459C148.011 0.266856 180.189 2.43423 213.43 4.6732C239.895 6.45573 267.033 8.28364 300.129 8.9633C374.796 10.4966 400 7.12588 400 7.12588L400 0ZM400 19L0 18.9999V19H400Z",fill:"url(#paint0_linear_726_5413)"}),i("defs",null,i("linearGradient",{id:"paint0_linear_726_5413",x1:"0",y1:"0",x2:"338.508",y2:"154.089",gradientUnits:"userSpaceOnUse"},i("stop",{"stop-color":t}),i("stop",{offset:"1","stop-color":n})))),i("svg",{width:"100%",height:"16",viewBox:"0 0 400 16",fill:"none",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{opacity:"0.6","fill-rule":"evenodd","clip-rule":"evenodd",d:"M400 0H0V11.9255C0 11.9255 56.32 5.31752 131.86 6.22541C169.686 6.68002 193.798 8.17098 217.2 9.61806C240.534 11.0609 263.163 12.4602 297.977 12.745C367.706 13.3155 400 7.61551 400 7.61551V0ZM400 15.9996H0V16H400V15.9996Z",fill:"url(#paint0_linear_726_5410)"}),i("defs",null,i("linearGradient",{id:"paint0_linear_726_5410",x1:"0",y1:"0",x2:"316.244",y2:"170.946",gradientUnits:"userSpaceOnUse"},i("stop",{"stop-color":t}),i("stop",{offset:"1","stop-color":n})))),i("svg",{width:"100%",height:"16",viewBox:"0 0 400 16",fill:"none",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{opacity:"0.55","fill-rule":"evenodd","clip-rule":"evenodd",d:"M400 0H0V13.5201C0 13.5201 53.2853 10.4755 129.103 11.1944C164.787 11.5328 189.16 12.5134 212.372 13.4473C238.478 14.4977 263.117 15.489 300.73 15.4412C371.785 15.3508 400 8.21602 400 8.21602V0Z",fill:"url(#paint0_linear_726_5407)"}),i("defs",null,i("linearGradient",{id:"paint0_linear_726_5407",x1:"0",y1:"0",x2:"311.077",y2:"174.219",gradientUnits:"userSpaceOnUse"},i("stop",{"stop-color":t}),i("stop",{offset:"1","stop-color":n})))))},t}(p),tT=nO("header.icons")(JO),nT=e(1)(Ee),iT=e(1)(ze),oT=function(e){function t(){var t;return(t=e.call(this)||this).state={showEndChatConfirm:!1,headerHeight:0},t.header=null,t.shuoldUpdateHeaderHeight=!1,t.shouldComponentUpdate=YB(fe(t),["passEventArgs","ifViewConfirmBubble","ifHideBio","ifViewHeaderBox","ifViewHeader","color","onMinimize","team","avatars","banner","avatar","name","title","bio","logo","tab","controls","languages","agent","windowDisabled","icons","hasEndChat","hasCloseButton"],["showEndChatConfirm","headerHeight"]),t.onMinimize=t.onMinimize.bind(fe(t)),t.onClose=t.onClose.bind(fe(t)),t.showAnimation=!0,t}he(t,e);var n=t.prototype;return n.componentDidMount=function(){this.headerContainer.focus()},n.componentWillReceiveProps=function(e){e.tab===tp&&this.props.tab!==tp&&(this.showAnimation=!0);var t=e.agent&&e.agent.bio,n=this.props.agent&&this.props.agent.bio;(e.ifHideBio!==this.props.ifHideBio||this.props.windowDisabled&&t!==n||this.agent&&this.props.agent.avatar!==e.agent.avatar||this.agent&&this.props.agent.title!==e.agent.title)&&(this.shuoldUpdateHeaderHeight=!0),e.tab!==this.props.tab&&this.headerContainer.focus()},n.componentDidUpdate=function(){var e=this;we||this.header&&this.shuoldUpdateHeaderHeight&&!this.props.isMobile&&(this.shuoldUpdateHeaderHeight=!1,this.props.agent&&this.props.agent.bio?this.props.ifHideBio?this.header.style.height="":this.props.windowDisabled&&setTimeout((function(){e.header.style.height=""}),400):(this.props.windowDisabled&&this.props.agent||!this.props.agent)&&(this.header.style.height=""))},n.onMinimize=function(){this.props.onMinimize(this.props.tab)},n.onClose=function(){return this.props.onClose(this.props.tab)},n.updateEndChatConfirmStatus=function(e){this.setState({showEndChatConfirm:e})},n.render=function(){var e=this,t=this.props,n=this.props.agent,o=this.showAnimation,a=t.chatWindowStyle===hm,r=nT(t.mainColor),s=t.avatars,c=!(t.team||s||t.banner||n||t.logo),d=ye(this.context);return i("header",{className:"window__headerContainer",onTouchMove:me,ref:function(t){e.headerContainer=t},tabIndex:-1},t.ifViewHeader&&i("div",{id:"branding",className:h("window__header","window__header--noBio",o&&"window__header--fadeInDown",n&&n.avatar&&"window__header--hasAvatar"),style:{background:a?r:"none"},ref:function(t){t&&(e.header=t)}},t.ifViewHeaderBox&&i("div",null,i("div",{className:h("window__headerBox","clearfix",t.team&&"window__headerBox--team",s&&"window__headerBox--hasAvatars",t.banner&&"window__headerBox--banner",c&&"window__headerBox--empty",t.logo&&"window__headerBox--logo",!t.banner&&t.tab===op&&"window__headerBox--kb")},t.team&&i("div",{className:h("header__teamName",!s&&"header__teamNameNoAvatar")},t.team),s&&i("div",{className:h("header__teamAvatar",t.isAvatarGray&&"header__teamAvatar--gray",t.ifShowSideWindow&&"header__teamAvatar--withSideWindow")},s.map((function(e,t){return i($O,{className:"header__teamAvatarImg",src:e,width:"40",height:"40",alt:d.avatar})}))),t.banner&&i("img",{className:"header__bannerImg",src:t.banner,alt:d.banner}),n&&i("div",{className:h("header__agent",t.logo?"header__agent--withlogo":"",n.bio&&t.ifHideBio&&!t.isMobile?"header__agent--compact":"",n.title&&"with__title",o&&"header__agent--fadeInUp"),onClick:function(){t.ifHideBio&&e.props.onUpdateScrollStatus(!1)},onTouchEnd:function(){t.ifHideBio&&e.props.onUpdateScrollStatus(!1)}},n.avatar&&i("div",{id:"header-operator-avatar",className:h("header__avatar",this.props.ifShowSideWindow&&"header__avatar--withSideWindow",o&&"header__avatar--fadeInDown"),key:"avatar"},i($O,{className:"header__avatarImage",src:n.avatar,alt:function(e){var t=e.type;return"chatbot"===t?"Chatbot avatar":"taskbot"===t?"Taskbot avatar":d.avatar}(n),width:"50",height:"50"})),i("div",{className:h("header__agentInfo",!n.avatar&&"header__agentInfoNoAvatar")},n.name&&i("div",{className:"direction-ltr header__agentName"},n.name),n.title&&i("div",{className:"direction-ltr header__agentTitle"},n.title)),n.bio&&i("div",{className:"header__agentBio",style:{maxHeight:t.ifHideBio?"0":"96px",marginTop:t.ifHideBio?0:"8px",opacity:t.ifHideBio?0:"0.9",paddingLeft:n.avatar&&t.chatWindowStyle===hm?"38px":0,overflow:"hidden"},dangerouslySetInnerHTML:{__html:n.bio},ref:function(t){return e.bio=t}})),t.logo&&i("div",{className:"header__logo "+(n&&(n.avatar||n.name)?"header__logo--up":""),key:"logo"},i("img",{id:"logo-image",className:"header__logoImg",src:t.logo,alt:d.logo,"aria-hidden":!0})),a&&!t.banner&&i(eT,iT(t.mainColor)),!t.banner&&t.tab===op&&a&&i("div",{className:"greeting-message__kb--header",tabIndex:-1},t.kbGreetingMessage)))),i("div",{className:"end-chat-top window__title"},i("span",{id:"embedded-window-title",className:"title-text embedded-only"}),i(tT,{tab:t.tab,hasMinimize:t.hasMinimize,hasEndChat:t.hasEndChat,icons:t.icons,popupBubbleType:t.popupBubbleType,languages:t.languages,passEventArgs:t.passEventArgs,ifViewConfirmBubble:t.ifViewConfirmBubble,ifViewHeader:t.ifViewHeader,onMinimize:this.onMinimize,onPopIn:t.onPopIn,onClose:t.onClose,onEndChat:t.onEndChat,isMobile:t.isMobile,windowStatus:t.windowStatus,onEnterMinimize:t.onEnterMinimize,emailAddress:t.emailAddress,hideCloseButton:t.hideCloseButton,isKeyboardFocus:t.isKeyboardFocus,isFocusOnDropdownMenu:t.isFocusOnDropdownMenu,resetFocusOnDropdownMenu:t.resetFocusOnDropdownMenu})))},t}(p),aT=nO("header","window__headerVessel")(oT),rT=function(e,t,n,i){return e&&{name:e.name,avatar:(n||t.chatWindowShowAvatar||t.showAvatar)&&e.avatar,title:(t.chatWindowShowTitle||t.showTitle)&&e.title,bio:t.chatWindowShowBio&&("
 
"===e.bio?null:e.bio),type:i||"agent"}},sT=function(e,t,n){var i=Qh(e)||Zh(e)||Sv(e);return{agent:rT(i,t.header,n)}},cT=function(e){return{banner:e.header.banner}},dT=function(e,t,n,i){var o=pf(t);return!i||e!==ih&&e!==oh?e===ih?sT(t,n,!1):o&&e===oh?function(e,t,n){var i=Qh(e)||Zh(e)||Sv(e);return{agent:rT(i,t.header,n,"chatbot")}}(t,n,!0):e===ah?function(e,t){return t.header.showAvatar||t.header.logo?{logo:t.header.logo,agent:sT(e,t).agent}:{ifViewHeaderBox:!0}}(t,n):e===oh?cT(n):{}:function(e,t){return{agent:rT(Sv(e),t.header,!0,"taskbot")}}(t,n)},lT=function(e,t,n){return e===ih?Gh(t).tab===Ju?{}:function(e,t){var n=tf(e),i=n===op,o=Iw(e)[t.id],a=Qf(e),r=n===ep||i&&o||a||Jw(e)===cu||n===Xu||n===$u?t.header.preChatShowTeam:t.header.offlineMessageShowTeam,s=n===ep||i&&o||a||Jw(e)===cu||n===Xu||n===$u?t.header.preChatTeamName:t.header.offlineMessageTeamName;return{team:r&&s,avatars:(n===ep||i&&o||a||Jw(e)===cu||n===Xu||n===$u?t.header.preChatShowAvatars:t.header.offlineMessageShowAvatars)&&xm(e)}}(t,n):e===ah?function(e,t){return{logo:t.header.logo}}(0,n):e===oh?cT(n):{}},uT=function(e,t,n){if(e===gm)return{ifViewHeader:!1};var i=Gh(t),o=function(e){var t=Y(e,"window.involvedAgents");return t&&t.length>0}(t),a=n.header.type;if(i.tab===tp&&(o||i.isChatBot||i.isTaskBot||i.chatStatus===mp&&!i.isTaskBot)&&(i.chatStatus===wp||i.chatStatus===mp||i.chatStatus===gp&&Nw(t)===Cu||i.isChatBot||i.isTaskBot)||i.tab===np){var r=!o&&!i.isChatBot&&(i.isTaskBot||i.chatStatus===mp&&!i.isTaskBot);return dT(a,t,n,r)}return lT(a,t,n)},pT=function(e,t){var n=sh(e,t);return!(!n||!n.header)&&(n.header&&n.header.type===oh)},hT=function(e){function t(t){var n;(n=e.call(this,t)||this).onClick=n.onClick.bind(fe(n)),n.toggle=n.toggle.bind(fe(n)),n.shouldComponentUpdate=YB(fe(n),["disabled","focus"],["active","fields"]),n.onButtonFocus=n.onButtonFocus.bind(fe(n));var i=function(){n.props.focus&&n.btn&&setTimeout((function(){return n.btn.focus()}),0)};return n.componentDidMount=i,n.componentDidUpdate=i,n}he(t,e);var n=t.prototype;return n.onClick=function(){this.toggle(!0)},n.onButtonFocus=function(){this.props.onFocus(this.props.focusKey)},n.toggle=function(e){this.props.onDialogToggle(e,"rating")},n.render=function(){var e,t=this,n=this.props,o=this.props,a=o.languages,r=o.ratingField,s=o.commentField;if(this.state.active||n.windowDisabled||(e=function(e){e.stopPropagation(),t.onClick(e)}),r||s){return i("li",{role:"none"},i("button",ge({},{role:"menuitem"},{onClick:e,tabIndex:n.focus?0:-1,onFocus:this.onButtonFocus,onMouseEnter:this.onButtonFocus,ref:function(e){t.btn=e},onTouchEnd:function(e){return e&&e.stopPropagation?(e.stopPropagation(),!0):(window.event.cancelBubble=!0,!1)}}),i(Fe,{type:Le,title:a.buttonRating,id:"iconRating",ariaHidden:!0}),i("div",{className:"menu__text-container"},a.buttonRating)))}return null},t}(p);hT.displayName="Rating";var fT,gT=g((function(e){return{isPoppedOut:ph(e),isRightToLeft:vg(e),commentField:pm(e),ratingField:um(e),ratingValue:tg(e,"rating"),commentValue:tg(e,"comment"),languages:v_(e),popupBubbleType:Jg(e)}}),(function(e){return{onSubmit:function(t){bS("livechat.chat.visitor.rate",t),e(tk(t)),e({type:Os,payload:t})},onToggle:function(t){e(Hy(t?"rating":"none"))}}}))(hT),wT="error",mT="warning",bT=w({announce:function(e,t,n){},removeMessage:function(e){}}),vT=function(e){function t(t){return e.call(this,t)||this}he(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return this.props.id!==e.id},n.componentWillUnmount=function(){this.props.removeMessageWhenUnmount&&this.removeMessage&&this.removeMessage(this.props.id,this.props.message)},n.render=function(){var e=this,t=this.props,n=t.id,o=t.message,a=t.isHtml,r=void 0!==a&&a;return i(bT.Consumer,null,(function(t){var i=t.announce,a=t.removeMessage;e.removeMessage=a,i(n,o,r)}))},t}(p),_T=function(e){function t(t){return e.call(this,t)||this}he(t,e);var n=t.prototype;return n.componentDidMount=function(){this.errorContainer.focus()},n.render=function(){var e=this,t=this.props,n=t.type===wT,o=t.type===mT,a=ye(this.context);return i("div",{className:h("chatError__container",t.className),ref:function(t){e.errorContainer=t}},i("div",{className:h("window_chatError",n&&"window_chatError--urgency",o&&"window_chatError--mitigate"),role:"alert"},i(Fe,{title:"Error",type:He,viewBox:"0 0 20 20"}),i("span",{className:"window_chatErrorMessage"},t.message),i("button",{className:"window_chatErrorClose",onClick:t.onClose,ref:function(t){e.btn=t},"aria-label":a.closeAlert},i(Fe,{type:Ve,className:"icon-close"}))))},t}(p),xT=function(e){function t(t){var n;return(n=e.call(this,t)||this).shouldCOmponentUpdate=YB(fe(n),["input.value","isDisabled"]),n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.focused&&this.element&&this.element.focus()},n.componentDidUpdate=function(e){e.focused!==this.props.focused&&this.props.focused&&this.element&&this.element.focus()},n.render=function(){var e=this,t=this.props,n=!(!t.input.value&&!t.initialValue),o=t.uniqKey||t.id,a=t.isDisabled?"":"checkbox-"+o;return i("div",{className:h("container-checkbox",t.isDisabled&&"disable",t.className),onClick:t.isDisabled?void 0:function(e){"label"!==e.target.tagName.toLowerCase()&&t.input.onChange(!n,t.text,t.id)}},i("label",{className:h(t.isDisabled&&"disable",t.className,"checkbox__text"),id:"checkbox-label-"+o,htmlFor:a},t.text||t.children,t.isRequired&&i(Fe,{type:Ue,className:"field__requiredTag",viewBox:"0 0 7 7"})),i("input",{id:a,type:"Checkbox",className:"checkbox",disabled:t.isDisabled,checked:n,onFocus:t.input.onFocus,onBlur:t.input.onBlur,ref:function(t){e.element=t},"aria-labelledby":"checkbox-label-"+o,"aria-required":(t.isRequired||!1).toString()}),i("i",{className:n?"selected":"unselected"},i(Fe,{type:qe,viewBox:"0 0 16 16"})))},t}(p),yT=[jo,Fo,Vo,Wo,No,Do,Ro,Eo,zo,Lo,Ho,Zo],CT=function(e){var t=function(t){function n(e){var n;return(n=t.call(this,e)||this).params={onChange:n.onChange.bind(fe(n)),onBlur:n.onBlur.bind(fe(n)),onFocus:n.onFocus.bind(fe(n)),siteId:e.siteId,style:e.style,disabled:e.disabled,languages:e.languages,forceLabel:e.forceLabel,captchaSettings:e.captchaSettings,languageTag:e.languageTag,isHorizontal:e.isHorizontal,ifBotForm:e.ifBotForm},n.shouldComponentUpdate=YB(fe(n),["field","disabled"]),n}he(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=this.params;t.disabled===e.disabled&&t.languages===e.languages||(this.params.disabled=e.disabled,this.params.languages=e.languages)},o.onChange=function(e){this.props.onChange(this.props.field,e)},o.onBlur=function(){this.props.onBlur(this.props.field)},o.onFocus=function(){this.props.onFocus(this.props.field)},o.render=function(){var t=this.props.field,n=t.label,o=t.error,a=void 0===o?"":o,r=t.isErrorShowed,s=t.isHidden,c=t.isRequired,d=t.id,l="required"===a.toLowerCase(),u=!!a&&!l,p=u?Object.assign({},this.props.field,{isInvalidError:u}):this.props.field,f=function(e){return yT.indexOf(e)>=0}(p.type);if(s)return null;var g=p.type===Go||p.type===Ko,w=g;return g?i("div",{className:h("box-field",f&&"system-field")},i("div",{className:h("check-box","clearfix",r&&a&&"check-box-required")},e(p,this.params),r&&a&&d!==Ge&&i("span",{className:h("field__requiredMsg","field__requiredMsg--checkbox"),role:"alert"},l?p.label+" is required.":a))):i("div",{className:h("box-field",f&&"system-field")},i("div",{className:"filed__content"},i("div",{className:h("field-name clearfix",g&&"checkbox-label")},w?"":i("label",{className:h("field__label",r&&a&&d!==Ge&&"field__error"),htmlFor:"field-"+d,id:"label-field-"+d},n),c&&!w&&i(Fe,{type:Ue,className:"field__requiredTag",title:"star",viewBox:"0 0 7 7"})),e(p,this.params)),r&&a&&d!==Ge&&i("div",{className:h("field__requiredMsg"),id:"field-error-"+d,role:"alert"},l?p.label+" is required.":a))},n}(p);return t},kT=CT((function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.disabled,s=e.value;if(Array.isArray(s)){var c=s.indexOf(e.label);s=c>=0?"true":"false",n(c>=0?"true":"false")}else s||(s="false",n("false"));return i(xT,{input:{value:s&&"true"===s.toString(),onChange:function(e){n(e?"true":"false")},onFocus:a,onBlur:o,"aria-describedby":"field-error-"+e.id},text:e.label,id:e.id,focused:e.isFocused,isDisabled:r,isRequired:e.isRequired})})),ST=["className","options","align","focused","ariaLabelledby"],IT=function(){},MT=function(e){function t(t){var n;(n=e.call(this,t)||this).Change=n.Change.bind(fe(n)),n.shouldComponentUpdate=YB(fe(n),["input.value","options"]);var i=n.validate.bind(fe(n));return n.componentDidMount=i,n.componentDidUpdate=i,n.onFocus=n.onFocus.bind(fe(n)),n.onBlur=n.onBlur.bind(fe(n)),n.hasFocus=!1,n}he(t,e);var n=t.prototype;return n.onBlur=function(){var e=this.props.input.onBlur;this.hasFocus=!1,e&&e()},n.onFocus=function(){var e=this.props.input.onFocus;this.hasFocus=!0,e&&e()},n.validate=function(){var e=this,t=this.props.input.value;0!==t.length&&t.every((function(t){return e.props.options.every((function(e){return e.id.toString()!==t.toString()}))}))&&this.props.input.onChange([])},n.Change=function(e,t,n){var i=this.props.input.value,o=this.props.input.onChange||IT;-1===i.indexOf(n)?o(i.concat(n)):o(i.filter((function(e){return e!==n})))},n.render=function(){var e=this,t=this.props,n=t.className,o=t.options;t.align;var a=t.focused,r=t.ariaLabelledby,s=z(t,ST);return i("div",{className:h("container-checkboxlist",n),id:this.props.id,role:"group","aria-labelledby":r||"label-"+this.props.id},o.map((function(t,n){return i("div",{key:t.id,className:"vertical"},i(xT,ge({},s,{focused:!e.hasFocus&&0===n&&a,id:t.id.toString(),uniqKey:e.props.input.id+"-"+n,text:t.text,input:{value:-1!==e.props.input.value.indexOf(t.id.toString()),onChange:e.Change,onBlur:e.onBlur,onFocus:e.onFocus},fieldId:e.props.id})))})))},t}(p),AT=CT((function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.disabled,s=e.value,c=e.options;return c||(c=[]),Array.isArray(s)||(s?n(s=c.find((function(e){return e.value===s}))?[s]:[]):s=[]),i(MT,{input:{id:e.id,value:s,onChange:n,onFocus:a,onBlur:o,"aria-describedby":"field-error-"+e.id},options:c.map((function(e){return{id:e.value,text:e.label}})),focused:e.isFocused,isDisabled:r,id:"field-"+e.id})})),BT=function(e){function t(t){var n;return(n=e.call(this,t)||this).onChange=n.onChange.bind(fe(n)),n.onError=n.onError.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){this.element=this.props.field.element(this.onChange,this.onError),this.element&&this.container.appendChild(this.element)},n.componentWillUnmount=function(){this.container.removeChild(this.element)},n.onChange=function(e){this.props.onChange(this.props.field,e)},n.onError=function(e){this.props.onError(this.props.field,e)},n.render=function(){var e=this;return i("div",{ref:function(t){e.container=t}})},t}(p),OT=BT,TT=["isRequired","input","isReadOnly","isDisabled","className","meta","type","placeholder","autoComplete","maxLength","animationEffect","style"],jT=function(e,t){var n=e.isRequired,o=e.input,a=e.isReadOnly,r=e.isDisabled,s=e.className,c=e.meta,d=e.type,l=e.placeholder,u=e.autoComplete,p=e.maxLength,f=e.animationEffect,g=e.style,w=z(e,TT);return i("input",ge({},o,{readOnly:a,disabled:r,className:h("input","form__input",f&&"input--effect01",s,c&&c.touched&&c.invalid&&"error"),type:d,placeholder:l,"aria-label":l,autoComplete:u||"off",maxLength:p,style:g,ref:t,"aria-required":n.toString()},w))},FT=function(e){function t(t){var n;return(n=e.call(this,t)||this).refCallback=n.refCallback.bind(fe(n)),n.shouldComponentUpdate=YB(fe(n),["input.value","meta.invalid","meta.touched","focused","isRequired","isDisabled","style","type"]),n.focus=n.focus.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.focused&&this.focus()},n.componentDidUpdate=function(e){this.props.focused!==e.focused&&this.props.focused&&this.focus()},n.focus=function(){var e=this.element;e&&e.focus()},n.refCallback=function(e){this.element=e},n.render=function(){var e=this.props;return e.animationEffect?i("div",{className:"form__inputContainer"},jT(e,this.refCallback)):jT(e,this.refCallback)},t}(p),VT=CT((function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.style,s=t.disabled,c=e.value;return Array.isArray(c)&&(c=c.join(","),n(c)),i("div",{className:"field-control"},i(FT,{maxLength:64,type:"email",input:{value:e.value,onBlur:function(e){o()},onFocus:a,disabled:s,"aria-invalid":(e.isInvalidError||!1).toString(),onChange:function(e){var t=e.target.value;t!==c&&n(t)},"aria-describedby":"field-error-"+e.id},meta:{invalid:!!e.error,touched:e.isErrorShowed},isRequired:e.isRequired,isDisabled:s,animationEffect:hm===r,focused:e.isFocused,id:"field-"+e.id,autoComplete:"email"}))})),WT=function(e){function t(){var t;return(t=e.call(this)||this).shouldComponentUpdate=YB(fe(t),["radioOption","selectedVal"]),t}he(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.focused&&this.first&&this.first.focus()},n.componentDidUpdate=function(e){e.focused!==this.props.focused&&this.props.focused&&!this.props.selectedVal&&this.first&&this.first.focus()},n.render=function(){var e=this;return i("div",{className:"clearfix container-radiolist",role:"radiogroup","aria-labelledby":this.props.ariaLabelledby||"label-field-"+this.props.id,id:"field-"+this.props.id},this.props.radioOption.map((function(t,n){var o=e.props.disabled,a=o?"":"radio-"+e.props.id+"-"+n,r=o?"":"radio-"+e.props.id+"-"+e.props.label,s=o?"":"radio-label-"+e.props.id+"-"+n,c=o?"":a;return i("div",{className:h("control","controlRadio",e.props.className),onClick:function(){o||e.props.handleChange(t.value)}},i("label",{key:t.id,className:"radioText",htmlFor:c,id:s},t.text),i("input",{type:"radio",name:r,value:t.value,checked:e.props.selectedVal===t.value||t.checked,onBlur:e.props.onBlur,onFocus:e.props.onFocus,id:a,disabled:e.props.disabled,ref:function(t){0===n&&(e.first=t)},"aria-labelledby":s}),i("div",{className:"controlIndicator","aria-hidden":"true"},i("svg",{viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false"},i("circle",{r:"8",cx:"8",cy:"8"}),i("circle",{r:"3",cx:"8",cy:"8"}))),t.component?t.component:"")})))},t}(p),NT=CT((function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.disabled,s=e.value,c=e.options;return c||(c=[]),Array.isArray(s)&&(s=s.find((function(e){return c.some((function(t){return t.value===e}))}))||null,n(s)),i(WT,{label:e.label,id:e.id,radioOption:c.map((function(t,n){return{id:n,text:t.label,value:t.value,checked:t.value===e.value}})),selectedVal:e.value,handleChange:function(e){e!==s&&n(e)},onBlur:o,onFocus:a,focused:e.isFocused,disabled:r,"aria-labelledby":"field-"+e.id})})),DT=["input","rows","cols","style","isDisabled","placeholder","maxLength","className","meta"],PT=function(e){e.stopPropagation()},RT=function(e){function t(t){var n;return(n=e.call(this,t)||this).shouldComponentUpdate=YB(fe(n),["input.value","meta.touched","meta.invalid","focused","isDisabled"]),n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.focused&&this.element&&this.element.focus()},n.componentDidUpdate=function(e){e.focused!==this.props.focused&&this.props.focused&&this.element&&this.element.focus()},n.render=function(){var e=this,t=this.props,n=t.input,o=t.rows,a=t.cols,r=t.style,s=t.isDisabled,c=t.placeholder,d=t.maxLength,l=t.className,u=t.meta,p=z(t,DT);return i("textarea",ge({onKeyDown:PT},n,{cols:a,rows:o,style:r,disabled:!!s&&"disabled",className:h(l,"multipleText",u.touched&&u.invalid&&"error"),placeholder:c,"aria-label":c,maxLength:d,ref:function(t){e.element=t},"aria-required":(this.props.isRequired||!1).toString()},p))},t}(p),ET=CT((function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.disabled,s=t.ifBotForm,c=e.value;return Array.isArray(c)&&(c=c.join(","),n(c)),i("div",{className:"field-control"},i(RT,{input:{value:e.value,onBlur:function(e){o()},onChange:function(e){var t=e.target.value;t!==c&&n(t)},onFocus:a,id:"field-"+e.id,onTouchMove:e.ontouchmove,"aria-describedby":"field-error-"+e.id},rows:2,meta:{touched:e.isErrorShowed,invalid:!!e.error},maxLength:s?8e3:2048,focused:e.isFocused,isDisabled:r,isRequired:e.isRequired}))})),zT=function(e,t,n){void 0===t&&(t="text");return CT((function(o,a){var r=a.onChange,s=a.onBlur,c=a.onFocus,d=a.style,l=a.disabled,u=o.value;return o.field,Array.isArray(o.value)&&(u=u.join(","),r(u)),i("div",{className:"field-control"},i(FT,{maxLength:e,type:t,input:{value:o.value,onBlur:function(e){s()},onFocus:c,onChange:function(e){var t=e.target.value;t!==u&&r(t)},"aria-invalid":(o.isInvalidError||!1).toString(),"aria-describedby":"field-error-"+o.id},meta:{invalid:!!o.error,touched:o.isErrorShowed},isRequired:o.isRequired,animationEffect:d===hm,focused:o.isFocused,isDisabled:l,id:"field-"+o.id,autoComplete:n}))}))},LT=zT(128),HT=zT(64,"text","name"),qT=zT(32,"text","tel"),UT=zT(64,"text","organization"),GT=["options","disabled","className","width","selectedValue"],KT=function(e,t){return e==t},YT=function(e){function t(t){var n;return(n=e.call(this,t)||this).shouldComponentUpdate=YB(fe(n),["options","disabled","className","width","selectedValue"]),n.handleChange=n.handleChange.bind(fe(n)),n.validate=n.validate.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.focused&&this.element&&this.element.focus(),this.validate()},n.componentDidUpdate=function(e){this.validate(),e.focused!==this.props.focused&&this.props.focused&&this.element&&this.element.focus()},n.handleChange=function(e){e.target.value!==this.props.selectedValue&&this.props.handleChange(e.target.value)},n.validate=function(){var e=this;this.props.selectedValue&&this.props.options.every((function(t){return!KT(t.value,e.props.selectedValue)}))&&this.props.handleChange(this.props.options[0].value)},n.render=function(){var e=this,t=this.props,n=t.options,o=t.disabled,a=t.className,r=t.width,s=t.selectedValue,c=z(t,GT);return i("div",{className:"select-box",style:{width:r+"px"}},i("select",ge({disabled:o,onChange:this.handleChange,className:"select "+(void 0!==a?a:""),ref:function(t){e.element=t}},c),n.map((function(e){return i("option",{index:e.id,style:{color:e.themeColor||"black"},value:e.value,selected:KT(s,e.value),ariaSelected:KT(s,e.value)},e.text)}))),i("svg",{viewBox:"0 0 9 6",focusable:"false"},i("path",{d:"M5.2,5.7c-0.4,0.4-1,0.4-1.4,0L0.3,1.9c-0.4-0.4-0.4-1.1,0-1.6s1-0.4,1.4,0l2.8,3.1l2.8-3.1c0.4-0.4,1-0.4,1.4,0s0.4,1.1,0,1.6L5.2,5.7z"})))},t}(p),QT=CT((function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.disabled,s=t.languages,c=e.value,d=e.options;return d||(d=[]),Array.isArray(c)&&n(c=c.find((function(e){return d.some((function(t){return t.value===e}))}))||""),i(YT,{options:[{id:-1,text:s.dropdownListDefault,value:""}].concat(d.map((function(e,t){return{id:t,value:e.value,text:e.label}}))),selectedValue:c,handleChange:n,onFocus:a,onBlur:o,focused:e.isFocused,disabled:r,id:"field-"+e.id})})),ZT=QT,JT=zT(32),XT=CT((function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.disabled,s=t.languages,c=e.value;return Array.isArray(c)?n(c=c.find((function(t){return e.options.some((function(e){return e.value==t}))}))||""):c===W&&(c=""),i(YT,{options:[{id:W,text:s.fieldNoDepartment,value:""}].concat(e.options.map((function(e,t){return{id:t,value:e.value,text:e.label+" "+(e.isOnline?s.fieldDepartmentStatusOnline:s.fieldDepartmentStatusOffline),themeColor:e.isOnline?"green":"red"}}))),selectedValue:c,handleChange:n,onFocus:a,onBlur:o,focused:e.isFocused,disabled:r,id:"field-"+e.id})})),$T=XT,ej=function(e){function t(t){var n;n=e.call(this,t)||this;for(var i=0,o=0;o0,a=-1===this.state.hoverRateVal?n:this.state.hoverRateVal;return i("div",{ref:function(t){e.ratingDiv=t},className:"rating",id:t.id,style:Object.assign({width:t.width,height:t.height},t.style),onFocus:t.onFocus,onBlur:t.onBlur,onMouseLeave:this.onClear,onKeyDown:this.onKeyDown,"aria-labelledby":"label-"+t.id,role:"radiogroup"},t.rateItems.map((function(t,r){var s=-1,c=r===n-1;return o?r===a-1&&(s=0):0===r&&(s=0),i("button",{key:t.value,type:"button",name:"rating-"+r,className:h("star",t.value<=n&&"starColor",e.state.hoverRateVal>-1&&e.state.hoverRateVal-1-1&&r=n||isNaN(n))&&"focusColor"),onClick:function(){return e.clickChange(t.value)},onFocus:function(){return e.setState({hoverRateVal:r+1})},onMouseLeave:function(){return e.onClear()},onMouseEnter:function(){return e.setState({hoverRateVal:r+1})},ref:function(t){e.stars[r]=t},title:t.label,"aria-label":t.label,"aria-checked":c.toString(),role:"radio",tabIndex:s},i("svg",{viewBox:"0 0 24 24",focusable:"false"},i("path",{d:"M18.539,7.366c-.12-.241-.241-.361-.481-.361L12.646,5.921,10,.861C9.88.62,9.76.5,9.52.5s-.361.12-.481.361L6.393,5.921.981,7C.74,7,.62,7.12.5,7.361a1.086,1.086,0,0,0,.12.6l3.728,4.216-.722,5.782a.627.627,0,0,0,.241.482.538.538,0,0,0,.6,0L9.4,16.04l4.931,2.409h.241a.439.439,0,0,0,.361-.12.915.915,0,0,0,.241-.482l-.722-5.782L18.18,7.849C18.539,7.728,18.539,7.607,18.539,7.366Z"})))})),t.children)},t}(p),tj=CT((function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.disabled,s=e.value;return Array.isArray(s)&&n(s=s.find((function(t){return e.options.some((function(e){return+e.value==+t}))}))||0),i(ej,{rateVal:+s,rateItems:e.options.map((function(e){return{id:e.id,value:e.value,label:e.label}})),rateChange:n,onBlur:o,onFocus:a,disabled:r,id:"field-"+e.id,isFocused:e.isFocused})})),nj=CT((function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.siteId,s=t.style,c=t.disabled,d=e.value;return Array.isArray(d)&&(d=d[0],n(d)),i("div",{className:"fieldControl__Ticket"},i("div",{className:"form__ticketPrefix"},"S"+r+"-#"),i("div",{className:"field-control"},i(FT,{maxLength:10,type:"text",input:{value:d,onBlur:function(e){o()},onChange:function(e){var t=e.target.value;t!==d&&n(t)},onFocus:a,"aria-invalid":(e.isInvalidError||!1).toString(),"aria-describedby":"field-error-"+e.id},meta:{invalid:!!e.error,touched:e.isErrorShowed},isDisabled:c,isRequired:e.isRequired,animationEffect:hm===s,focused:e.isFocused,className:Ie&&"form__input--ie10",id:"field-"+e.id})))})),ij=nj,oj=function(e){function t(){return e.apply(this,arguments)||this}return he(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=Date.now().toString(),o=ye(t);return i(lO,{id:n,src:"about:blank",style:e.style,frameborder:0,scrolling:"no",innerCss:"body{margin:0;padding:0}",title:o.uploadForm,onMounted:function(e){e.ownerDocument}},i("form",{id:"form",method:"post",encType:"multipart/form-data",encoding:"multipart/form-data"},i("input",{ref:function(t){e.onMounted&&e.onMounted(t)},type:"file",name:"file",onChange:function(t){var i,o;e.onChange&&e.onChange({formId:n,name:(i=t.target.value,o=i.split(/\/|\\/),o[o.length-1])})},onBlur:e.onBlur,onFocus:e.onFocus})))},t}(p),aj=["focused"],rj=function(e){function t(t){var n;return(n=e.call(this,t)||this).focus=n.focus.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.focused&&this.focus()},n.componentDidUpdate=function(e){this.props.focused!==e.focused&&this.props.focused&&this.focus()},n.focus=function(){var e=this.element;e&&e.focus()},n.render=function(){var e=this,t=this.props;t.focused;var n=z(t,aj);return i("input",ge({type:"file",ref:function(t){return e.element=t}},n))},t}(p),sj=function(e){function t(){return e.apply(this,arguments)||this}he(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t;e=this.div,t=this.props,l(i(oj,t),e)},n.shouldComponentUpdate=function(){return!1},n.render=function(){var e=this;return i("div",{ref:function(t){e.div=t},"aria-labelledby":"field-"+this.props.id})},t}(p),cj=er()?function(e,t,n,o){return i(sj,{onChange:t,onBlur:n,onFocus:o})}:function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.disabled;return i("div",{className:"form__attachmentContainer"},i(rj,{onChange:function(e){n(e.target.files[0])},focused:e.isFocused,onBlur:o,onFocus:a,disabled:r,id:"field-"+e.id,name:e.label,"aria-invalid":(e.isInvalidError||!1).toString(),"aria-required":(e.isRequired||!1).toString(),"aria-describedby":"field-error-"+e.id}))},dj=CT(cj),lj=["onChange","onBlur","onFocus","style","disabled"],uj=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={showPassword:!1},n.onClickShowPassword=n.onClickShowPassword.bind(fe(n)),n.onClickHidePassword=n.onClickHidePassword.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.onClickShowPassword=function(){this.setState({showPassword:!0})},n.onClickHidePassword=function(){this.setState({showPassword:!1})},n.render=function(){var e=this.state.showPassword,t=this.props,n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.style,s=t.disabled,c=z(t,lj);return i("div",{className:"field-control field-control-password"},i(FT,{maxLength:128,type:e?"text":"password",input:{value:c.value,onBlur:o,onFocus:a,onChange:function(e){var t=e.target.value;t!==c.value&&n(t)},"aria-invalid":(c.isInvalidError||!1).toString(),"aria-describedby":"field-error-"+c.id},meta:{invalid:!!c.error,touched:c.isErrorShowed},isRequired:c.isRequired,animationEffect:r===hm,focused:c.isFocused,isDisabled:s,id:"field-"+c.id}),e?i("svg",{class:"svg-icon",focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true",onClick:this.onClickHidePassword},i("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"})):i("svg",{class:"svg-icon",focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true",onClick:this.onClickShowPassword},i("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})))},t}(p),pj=CT((function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.style,s=t.disabled;return i(uj,Object.assign({},e,{onChange:n,onBlur:o,onFocus:a,style:r,disabled:s}))})),hj=zT(128,"number"),fj=function(e){var t=e.target.value;t=t.replace(/\D/g,""),e.target.value=t},gj=function(e,t){void 0===t&&(t="text");return CT((function(n,o){var a=o.onChange,r=o.onBlur,s=o.onFocus,c=o.style,d=o.disabled,l=n.value;return n.field,Array.isArray(n.value)&&(l=l.join(","),a(l)),i("div",{className:"field-control"},i(FT,{maxLength:e,type:t,input:{onInput:fj,value:n.value,onBlur:function(e){r()},onFocus:s,onChange:function(e){var t=e.target.value;t!==l&&a(t)},"aria-describedby":"field-error-"+n.id},meta:{invalid:!!n.error,touched:n.isErrorShowed},isRequired:n.isRequired,animationEffect:c===hm,focused:n.isFocused,isDisabled:d,id:"field-"+n.id}))}))}(128,"number"),wj=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={},n.handleDocumentClick=n.handleDocumentClick.bind(fe(n)),n.anchorElRef=null,n.contentRef=null,n.doc=null,n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){this.doc=xe(this.anchorElRef),this.doc.addEventListener("click",this.handleDocumentClick,!0),this.doc.addEventListener("touchend",this.handleDocumentClick,!0)},n.componentDidUpdate=function(e){var t=this;if(this.props.open&&this.props.open!==e.open&&this.doc)setTimeout((function(){t.contentRef.querySelector("[tabindex='0'],[tabindex='-1']").focus()}),20);else if(!this.props.open){if(!e.open)return;setTimeout((function(){t.anchorElRef.querySelector("[tabindex='0'],[tabindex='-1']").focus()}),20)}},n.componentWillUnmount=function(){this.doc&&(this.doc.removeEventListener("click",this.handleDocumentClick,!0),this.doc.removeEventListener("touchend",this.handleDocumentClick,!0))},n.handleDocumentClick=function(e){this.props.open&&this.contentRef&&!this.contentRef.contains(e.target)&&this.props.onClose()},n.render=function(){var e=this;this.state;var t=this.props,n=t.children,o=t.anchorEl,a=t.open;return i("div",{className:h(["taskbot-dropdown"]),onClick:this.onClick},i("div",{className:h(["taskbot-dropdown-trigger"]),ref:function(t){e.anchorElRef=t}},o),a&&i("div",{className:h(["taskbot-dropdown-content"]),ref:function(t){e.contentRef=t}},n))},t}(p),mj=["options","mainColor","isProcessed","onBlur","error","ariaLabel","required"],bj=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={open:!1,inputWidth:t.width?t.width+"px":"192px",sIndex:0,value:Array.isArray(t.value)?t.value:[]},n.handleOpen=n.handleOpen.bind(fe(n)),n.handleClose=n.handleClose.bind(fe(n)),n.handleToggle=n.handleToggle.bind(fe(n)),n.handleChange=n.handleChange.bind(fe(n)),n.handleDelete=n.handleDelete.bind(fe(n)),n.handleKeydown=n.handleKeydown.bind(fe(n)),n.handleOptionKeyDown=n.handleOptionKeyDown.bind(fe(n)),n._isSelected=n._isSelected.bind(fe(n)),n.isClose=!1,n}he(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){!0===this.state.open&&!1===t.open&&this.setState({sIndex:0})},n.handleToggle=function(){this.isClose?this.isClose=!1:this.setState({open:!this.state.open})},n.handleOpen=function(){this.state.open||this.setState({open:!0})},n.handleClose=function(){var e=this,t=this.props.onClose;t&&t(),this.isClose=!0,this.setState({open:!1}),setTimeout((function(){e.isClose=!1}),100)},n.handleDelete=function(e,t){void 0===t&&(t=0),e.stopPropagation();var n=this.props.onChange;if(t>=0){var i=[].concat(this.state.value);i.splice(t,1),this.setState({value:i}),n(i)}window.event?window.event.cancelBubble=!0:e.stopPropagation()},n.handleChange=function(e,t){var n=this.props,i=n.onChange;n.options;var o=this.state.value.indexOf(e),a=[].concat(this.state.value);-1!==o?a.splice(o,1):a.push(e),this.setState({value:a}),void 0!==t&&this.setState({sIndex:t}),i(a)},n.handleKeydown=function(e){13!==e.keyCode&&32!==e.keyCode||this.handleToggle()},n.handleOptionKeyDown=function(e){e.stopPropagation();var t=e.keyCode,n=this.state.sIndex,i=this.props.options;38===t||37===t?(n=0===n?i.length-1:n-1,this.setState({sIndex:n})):39===t||40===t?(n=n===i.length-1?0:n+1,this.setState({sIndex:n})):13===t?this.handleChange(i[n].value):27!==event.keyCode&&9!==event.keyCode||(event.stopPropagation(),event.preventDefault(),this.handleClose())},n._isSelected=function(e){return-1!==this.state.value.indexOf(e)},n.render=function(){var e=this,t=this.props,n=t.options,o=void 0===n?[]:n;t.mainColor;var a=t.isProcessed,r=t.onBlur,s=t.error,c=t.ariaLabel,d=t.required,l=z(t,mj),u=this.state,p=u.sIndex,f=u.value;return a?null:i(wj,{open:this.state.open,onClose:this.handleClose,anchorEl:i("div",ge({className:h("taskbot_input","taskbot_select_box",s&&"taskbot_input_error"),"aria-label":c||"multiple select"+(f&&f.length>0?" selected "+f.join(","):""),onClick:this.handleToggle,onKeyDown:this.handleKeydown,tabIndex:0,onBlur:r,role:"listbox","aria-expanded":this.state.open,"aria-required":d},l),i("div",{className:"taskbot_select_multiple"},f.map((function(t,n){return i("div",{className:"taskbot_select_multiple_item"},i("span",null,t),i("svg",{className:"delete_icon",onClick:function(t){return e.handleDelete(t,n)},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18.008 18.003"},i("path",{d:"M15.367,2.634a9,9,0,1,0,0,12.733A9,9,0,0,0,15.367, 2.634Zm-1.867,9.6L12.23,13.5,9, 10.269H9L5.769,13.5,4.5,12.231,7.731,9,4.5,5.769, 5.769,4.5,9,7.731,12.231,4.5,13.5,5.769,10.269,9Z",transform:"translate(0.004 0.003)"})))}))),i(Fe,{type:Ke,className:h("arrow",{arrow_down:!this.state.open})})),onSelectionKeydown:this.handleOptionKeyDown},i("div",{className:"taskbot_select_option_container",style:{height:o.length>8?264:32*o.length+1}},i("ul",{ref:function(t){e.selectOptionRef=t},className:"taskbot_select_option_list",style:{width:this.state.inputWidth},tabIndex:-1,onKeyDown:this.handleOptionKeyDown,role:"listbox","aria-activedescendant":"taskbot_select_option_item_"+p,"aria-multiselectable":"true"},o.map((function(t,n){return i("li",{id:"taskbot_select_option_item_"+n,key:t.value,className:h("taskbot_select_option_item",{selected:e._isSelected(t.value),active:p===n}),onClick:function(){return e.handleChange(t.value,n)},role:"option","aria-selected":e._isSelected(t.value),"data-value":t.value,"aria-label":t.label},t.label)})))))},t}(p),vj=CT((function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.disabled;t.languages;var s=e.value,c=e.options;return c||(c=[]),i(bj,{options:c,value:s,onChange:n,onFocus:a,onBlur:o,focused:e.isFocused,disabled:r,id:"field-"+e.id,width:308,error:e.error})})),_j=CT((function(e,t){var n=t.onChange;t.onBlur;var o=t.onFocus,a=t.disabled;t.style;var r=e.value;return r||n(Ye(new Date,"YYYY/MM/DD")),i(Qe,{value:r,onChange:n,onFocus:o,disabled:a,id:"field-"+e.id})})),xj=function(e,t){void 0===t&&(t="AM");var n=e%60,i=(e-n)/60;return"PM"===t&&0===i&&(i="12"),i+":"+(n=n<10?"0"+n:""+n)+" "+t},yj=function(e){if("number"!=typeof e)return"";return e<720?xj(e):xj(e-720,"PM")},Cj=function(){var e=new Date;return 60*e.getHours()+e.getMinutes()},kj=CT((function(e,t){var n=t.onChange;t.onBlur;var o=t.onFocus,a=t.disabled;t.style;var r=e.value,s=r?function(e){var t=Ye(new Date,"YYYY/MM/DD"),n=new Date(t+" "+e);return 60*n.getHours()+n.getMinutes()}(r):Cj();return r||n(yj(Cj())),i(Ze,{value:s,onChange:function(e){n(yj(e))},onFocus:o,disabled:a,formatType:"min",id:"field-"+e.id})})),Sj=kj,Ij=CT((function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.disabled;t.languages;var s=e.value,c=e.options;return c||(c=[]),i(Je,{options:c,value:s,onChange:n,onFocus:a,onBlur:o,focused:e.isFocused,disabled:r,id:"field-"+e.id,error:e.error})})),Mj={},Aj=function(e){function t(){return e.apply(this,arguments)||this}he(t,e);var n=t.prototype;return n.componentWillMount=function(){var e=this,t=this.chatWindow(),n=ye(this.context);this.captcha=i(Fe,{type:Xe,className:"svg--loading",viewBox:"0 0 100 100","aria-label":n.loading,"aria-busy":"true",style:{transform:"none"}}),t.recaptchaLoadedCallback=function(){e.renderRecaptcha(t.grecaptcha)}},n.componentDidMount=function(){var e=this.chatWindow();e.grecaptcha&&e.grecaptcha.reset?e.grecaptcha.reset(Mj[this.container.id]):(!function(e,t){var n=H.brandingNameLowerCase,i=e.head;if(i){var o=i.querySelector("style#recaptch");o||((o=e.createElement("style")).id="recaptch",i.appendChild(o));var a="#"+n+"-container ~ div > :last-child {max-height: 550px !important;overflow-y: auto !important;}#"+n+"-container ~ div > :last-child::-webkit-scrollbar-thumb {background-color: #c8c8c8;}#"+n+"-container ~ div:last-child {left: 0px !important;}#container ~ div:last-child {left: 0px !important;}";o.innerHTML=a}}(e.document,this.props.brandConfig),e.document.head.appendChild(this.createRecaptchaApiScript()))},n.shouldComponentUpdate=function(){return!1},n.createRecaptchaApiScript=function(){var e=this.chatWindow().document.createElement("script"),t=this.props,n=t.settings,i=t.language;return e.src="https://"+n.host+"/recaptcha/api.js?hl="+i+"&render=explicit&onload=recaptchaLoadedCallback",e.defer=!0,e.async=!0,e},n.componentWillUnmount=function(){this.chatWindow().grecaptcha=null},n.chatWindow=function(){var e=window.parent||window,t=e.document.getElementById("chat_window_container");return t&&"iframe"===t.tagName.toLowerCase()?t.contentWindow:e},n.renderRecaptcha=function(e){var t=this.props,n=t.settings,i=t.onError,o=t.onExpired,a=t.onSuccess,r=n.siteKey,s=n.isCompact;this.container.innerHTML="",Mj[this.container.id]=e.render(this.container,{sitekey:r,size:s?"compact":"normal",callback:a,"expired-callback":o,"error-callback":i}),this.container.height=this.container.height+1},n.render=function(){var e=this;return i("div",{id:this.props.id,ref:function(t){e.container=t},className:h(!this.props.settings.isCompact&&"captcha")},this.captcha)},t}(p),Bj=Aj,Oj=CT((function(e,t){var n=t.isHorizontal,o=t.onChange,a=t.captchaSettings,r=t.languageTag,s=t.brandConfig;return i(Bj,{id:"captcha-"+e.id,isCompact:n,onSuccess:o,onExpired:function(){return o(null)},settings:a,language:r,brandConfig:s})})),Tj=Oj,jj=["fields"],Fj=Oe((function(){return import("./NPS.177a5bad.js")})),Vj=((fT={})[jo]=HT,fT[Fo]=VT,fT[Vo]=qT,fT[Wo]=UT,fT[No]=ZT,fT[Do]=$T,fT[Ro]=tj,fT[Eo]=ET,fT[Lo]=ET,fT[zo]=JT,fT[Po]=ij,fT[Go]=kT,fT[Ko]=kT,fT[Yo]=AT,fT.checkBoxList=AT,fT.custom=OT,fT.radioBox=NT,fT.radio=NT,fT.dropdownList=ZT,fT.dropDownList=ZT,fT[Uo]=ET,fT[qo]=LT,fT[Ho]=dj,fT[Qo]=Fj,fT[Zo]=Tj,fT[Jo]=Ij,fT[Xo]=vj,fT[$o]=_j,fT[ea]=Sj,fT[ta]=pj,fT[ia]=gj,fT[na]=hj,fT),Wj=nO("form")((function(e){var t=e.fields,n=z(e,jj);return i("div",{className:"field-table form-style-hor"},t.map((function(e){return e.type===Qo?i(Te,null,i(je,null,i(Vj[e.type],Object.assign({},n,{field:e,key:e.id})))):i(Vj[e.type],Object.assign({},n,{field:e,key:e.id}))})))})),Nj=["disabled","text","onClick","className","htmlType","loading","size","icon","iconPosition","type","children","spanStyle","ariaLabelText","focus","onFocus"],Dj={large:"btn-lg",small:"btn-sm"},Pj={primary:"btn-primary",default:"btn-default",gray:"btn-grey",noborder:"btn-noborder"},Rj=function(e){function t(t){var n;return(n=e.call(this,t)||this).shouldComponentUpdate=YB(fe(n),["disabled","text","className","loading","size","icon","iconPosition","type","children","focus"]),n}he(t,e);var n=t.prototype;return n.componentWillReceiveProps=function(e){e.focus&&this.btn.focus()},n.render=function(){var e=this,t=this.props,n=t.disabled,o=t.text,a=t.onClick,r=t.className,s=t.htmlType;t.loading;var c=t.size,d=t.icon,l=t.iconPosition,u=t.type,p=t.children;t.spanStyle;var f=t.ariaLabelText;t.focus;var g=t.onFocus,w=z(t,Nj),m=null;return d&&(m=d),i("button",ge({},w,{className:h("btn",n&&"disabled",Dj[c]||"",Pj[u]||"btn-default",r),onClick:n?void 0:a,type:s,"aria-label":f,"aria-disabled":n,ref:function(t){e.btn=t},onFocus:g}),"right"!==l&&m,"right"!==l&&p,o&&i("span",{className:"window_quick_reply_buttons_item_inner"},i("span",null,o)),"right"===l&&p,"right"===l&&m)},t}(p),Ej=["isSubmitting","onClick","success","text","disabled"],zj=function(e){function t(){return e.apply(this,arguments)||this}he(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){var t=this;if(this.props.success&&!e.success&&ke)var n=0,i=setInterval((function(){t.btn&&(t.btn.style.fontSize=n/50%2==0?"1rem":"1.0001rem"),(n+=50)>500&&clearInterval(i)}),50);this.props.success&&!e.success&&this.svg.focus()},n.render=function(){var e=this,t=this.props,n=t.isSubmitting,o=t.onClick,a=t.success,r=t.text,s=t.disabled,c=z(t,Ej),d=ye(this.context);return a?d.submitted:n&&d.uploading,i("div",{className:h("buttonProgressContainer",n&&!a&&"buttonProgressContainerLoading",a&&"buttonProgressContainerSuccess"),ref:function(t){e.btn=t}},i(Rj,ge({type:"primary",text:r,className:"buttonProgressBtnAnimated buttonProgressBtnDefaultSize",htmlType:"submit",onClick:o,disabled:s||n},c)),i("div",{className:"submit-loading"},i("div",{className:"circle-rolling"})),i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",focusable:"false",ref:function(t){e.svg=t},tabindex:"-1","aria-label":d.submitted,className:"submit_circle"},i("path",{d:"M20,1a19,19 0 0 1 19,19a19,19 0 0 1-19,19a19,19 0 0 1-19-19a19,19 0 0 1 19-19z",className:"circle-animation"}),i("path",{d:"M12 18.9216L18.0488 25L28 15","stroke-width":"3","stroke-linecap":"round",class:"checkmark-animation"})))},t}(p),Lj=nO("submit")((function(e){return i(zj,{onClick:e.onClick,isSubmitting:e.isSubmitting,success:e.success,text:e.text,disabled:e.disabled})})),Hj=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={reCaptchaError:""},n.onSubmit=n.onSubmit.bind(fe(n)),n.onReCaptchaErrorClose=n.onReCaptchaErrorClose.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.onSubmit=function(e){var t=this;e.preventDefault(),setTimeout((function(){if(t.props.submitStatus!==rp){var e=t.props.fields.filter((function(e){return""!==e.error}));if(e.length>0){var n=e.map((function(e){return e.id}));t.props.onValidateAll(n);for(var i=0;iMath.pow(2,Uj.repeat-1)&&(eF=1),Vb(rF($j,eF))}function fF(){return!!iF||!(Zj.length<=Uj.count)&&(hF(),!0)}function gF(){Zj.shift(),nF.shift(),cF()}var wF=function(e,t,n){var i;Uj=e,Yj=t,Qj=n,(i={})[Jj]="",i[Xj]="",i[$j]="",oF=i,lF(),dF(),uF(),Zj=[],eF=1,tF=null,function(){var e=(new Date).getTime(),t=aF(Xj);if(null!=t&&""!==t){var n=!1;t.split(":").forEach((function(t){var i=new Date(+t);e-i<=1e3*Uj.penalty&&(Zj.push(+t),nF.push(setTimeout(gF,1e3*Uj.penalty-(e-i))),n=!0)})),n&&cF()}var i=sF();i&&e0?Yj(t):(Yj(0),dF())}),1e3)),!e&&tF&&dF(),{isLimited:e,waitSecond:t}},vF=g((function(e){return{isPopout:!0,isAudioVideoChatting:fg(e),isScreenSharing:dw(e),languages:v_(e)}}),(function(e){return{onClick:function(){dF(),e(My())},onContinue:function(t,n){t&&e(mk()),n&&e(bk()),setTimeout((function(){dF(),e(My())}),1e3)},updateFocusOnDropdownMenu:function(t){e(Mx(t))}}}))(Kj),_F=g((function(e){return{isPopout:!1,isAudioVideoChatting:fg(e),isScreenSharing:dw(e),languages:v_(e)}}),(function(e){return{onClick:function(){e(Ay())},onContinue:function(t,n){t&&e(mk()),n&&e(bk()),e(Ay())},updateFocusOnDropdownMenu:function(t){e(Mx(t))}}}))(Kj),xF=function(e){function t(t){var n;(n=e.call(this,t)||this).onButtonFocus=n.onButtonFocus.bind(fe(n));var i=function(){n.props.focus&&n.btn&&setTimeout((function(){return n.btn.focus()}),0)};return n.componentDidMount=i,n.componentDidUpdate=i,n}he(t,e);var n=t.prototype;return n.onButtonFocus=function(){this.props.onFocus(this.props.focusKey)},n.render=function(){var e=this,t=this.props,n=this.props,o=n.languages,a=n.isSoundOff,r=n.setSoundOff;return i("li",{role:"none"},i("button",ge({},{role:"menuitem"},{onClick:function(){return r(!e.props.isSoundOff)},tabIndex:t.focus?0:-1,onFocus:this.onButtonFocus,onMouseEnter:this.onButtonFocus,onKeyDown:this.onKeyDown,ref:function(t){e.btn=t},onTouchEnd:function(e){return e&&e.stopPropagation?(e.stopPropagation(),!0):(window.event.cancelBubble=!0,!1)}}),i(Fe,{type:a?nt:it,title:a?o.buttonSoundOff:o.buttonSoundOn,id:"iconSound",ariaHidden:!0}),i("div",{className:"menu__text-container"},a?o.buttonSoundOff:o.buttonSoundOn)))},t}(p);xF.displayName="Sound";var yF,CF=g((function(e){return{languages:v_(e),isSoundOff:mh(e)}}),(function(e){return{setSoundOff:function(t){e(K_(t))}}}))(xF),kF=Oe((function(){return import("./Print.171e7eb7.js")})),SF=((yF={})[tp]="livechat.chat",yF[ep]="livechat.prechat",yF[np]="livechat.postChat",yF[ip]="livechat.offlineMessage",yF),IF=g((function(e){var t=tf(e),n=sf(e),i=Qv(e,n.id),o=Bw(e),a=ig(e),r=Ev(e),s=Kv(e,r),c=s&&function(e,t){return!!(gw&nm(e,t))&&e.window.chatStatus!==mp}(e,r)&&um(e),d=s&&im(e,r)&&!Vf(e),l=s&&function(e,t){return!!(vw&nm(e,t))&&!Vf(e)&&!Ew(e)}(e,r),u=ph(e),p=O_(e),h=!u&&!p,f=fh(e),g=Yh(e),w=t===tp&&g===wp,m=f&&w,b=b_(e),v=Ew(e),_=!u;_=_&&!Yg(e);var x=Yw(e),y=s&&cm(e,r),C=!b&&!_&&!w;return Object.assign({tab:t,hasMinimize:h,hasEndChat:m,hasPrint:l,icons:[c&&gT,d&&Gj,l&&{type:"lazy",name:"Print",component:kF},y&&CF,b&&_F,_&&vF].filter((function(e){return e})),windowDisabled:ng(e),chatWindowStyle:i,isAvatarGray:t===ip||t===op&&!Rw(e,n.id),ifViewConfirmBubble:t!==np,ifHideBio:$f(e),isPopout:ph(e),languages:n.languages,ifViewHeader:!0,ifViewHeaderBox:x>340,color:d_(e),mainColor:cf(e),windowStatus:o,ifShowSideWindow:a,height:Yw(e)},uT(i,e,n),{isMobile:v,popupBubbleType:Jg(e),emailAddress:tg(e,"email"),hideCloseButton:C,isKeyboardFocus:em(e),isFocusOnDropdownMenu:tm(e),kbGreetingMessage:kg(e)})}),(function(e){return{onMinimize:function(t){var n=SF[t];n&&bS(n+".minimize"),e(ux())},onEnterMinimize:function(){e(fx(!0))},onClose:function(t){var n=SF[t];n&&bS(n+".close"),setTimeout((function(){return e(px())}),0)},onEndChat:function(){e(ik()),e(ox())},onUpdateScrollStatus:function(t){e(Cy(t))},resetFocusOnDropdownMenu:function(){e(Mx(!1))}}}))(aT),MF=function(e){function t(t){var n;return(n=e.call(this,t)||this).handlerKeydown=n.handlerKeydown.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.handlerKeydown=function(e){if(9===e.keyCode&&!top.frames.chat_button_adaptive_container){var t=top.frames.side_window_container&&top.frames.side_window_container.contentWindow,n=t&&t.document.querySelector(".sideWindow");if(n)return void n.focus();var i=this.poweredByRef.ownerDocument.querySelector(".whole-window");i&&i.focus()}},n.render=function(){var e=this,t=this.props,n=ye(this.context);return 1e4===t.partnerId?i("div",{className:"poweredby",onKeyDown:this.handlerKeydown,ref:function(t){e.poweredByRef=t}},i("a",{rel:"noopener noreferrer nofollow",target:"_blank",href:t.poweredByUrl,onClick:void 0,hrefLang:"en","aria-label":n.poweredBy.replace("${brandingName}",H.brandingName),title:"Powered by "+t.brandingName},i("svg",{viewBox:"0 0 70 12",style:{width:70},focusable:"false"},i("path",{d:"M8.30769 4.20028H4.90894L7.17506 0H2.71864L0 6.97449H3.3229L1.4352 12L8.30769 4.20028Z",fill:"#FFC63E"}),i("path",{d:"M17.4332 11.4632C17.3159 11.4632 17.2022 11.4524 17.0922 11.4307C16.9895 11.4091 16.8942 11.3838 16.8062 11.355L16.9822 10.6518C17.0409 10.6663 17.1069 10.6807 17.1802 10.6951C17.2535 10.7167 17.3232 10.7276 17.3892 10.7276C17.6899 10.7276 17.9392 10.6194 18.1372 10.403C18.3352 10.1939 18.4892 9.92705 18.5992 9.60252L18.7202 9.21308L16.5752 3.94482H17.5102L18.5992 6.8548C18.6799 7.07837 18.7642 7.31997 18.8522 7.57959C18.9475 7.83922 19.0355 8.09163 19.1162 8.33684H19.1602C19.2409 8.09885 19.3179 7.85004 19.3912 7.59041C19.4645 7.33079 19.5379 7.08558 19.6112 6.8548L20.5682 3.94482H21.4482L19.4352 9.63497C19.3105 9.98114 19.1602 10.2912 18.9842 10.5653C18.8155 10.8393 18.6029 11.0557 18.3462 11.2144C18.0969 11.3802 17.7925 11.4632 17.4332 11.4632Z",fill:"#666666"}),i("path",{d:"M13.6726 9.33206C13.4233 9.33206 13.163 9.27437 12.8916 9.15898C12.6276 9.03638 12.3783 8.87051 12.1436 8.66136H12.1106L12.0336 9.20225H11.3076V1.5H12.2096V3.59865L12.1876 4.55061C12.4296 4.34147 12.6936 4.16838 12.9796 4.03136C13.273 3.88712 13.5663 3.815 13.8596 3.815C14.5563 3.815 15.0843 4.0566 15.4436 4.53979C15.803 5.02299 15.9826 5.67205 15.9826 6.48699C15.9826 7.08557 15.8726 7.59761 15.6526 8.02311C15.44 8.44861 15.1576 8.77315 14.8056 8.99671C14.461 9.22028 14.0833 9.33206 13.6726 9.33206ZM13.5186 8.58564C13.9586 8.58564 14.3216 8.40174 14.6076 8.03393C14.901 7.65892 15.0476 7.14687 15.0476 6.49781C15.0476 5.92086 14.9376 5.4557 14.7176 5.10232C14.505 4.74172 14.1456 4.56143 13.6396 4.56143C13.4123 4.56143 13.1813 4.62273 12.9466 4.74533C12.712 4.86793 12.4663 5.04462 12.2096 5.2754V8.03393C12.4443 8.23586 12.6753 8.3801 12.9026 8.46664C13.1373 8.54597 13.3426 8.58564 13.5186 8.58564Z",fill:"#666666"}),i("path",{d:"M32.9261 4.09534C31.3559 4.09534 30.083 5.34946 30.083 6.8965C30.083 8.44354 31.3559 9.69767 32.9261 9.69767C34.4964 9.69767 35.7693 8.44354 35.7693 6.8965C35.7673 5.35043 34.4954 4.09728 32.9261 4.09534ZM32.9261 8.67149C31.9308 8.67149 31.1246 7.8771 31.1246 6.8965C31.1246 5.9159 31.9308 5.12151 32.9261 5.12151C33.9214 5.12151 34.7277 5.9159 34.7277 6.8965C34.7277 7.87613 33.9205 8.67052 32.9261 8.67149Z",fill:"black"}),i("path",{d:"M55.0615 3.17305H55.7871V9.74241L56.8287 9.75402V2.28553L55.0615 2.27393V3.17305Z",fill:"black"}),i("path",{d:"M27.5816 8.40574C26.2043 8.14483 25.3025 6.8335 25.5673 5.47753C25.8322 4.1206 27.1632 3.23218 28.5395 3.49309C29.0642 3.59202 29.5436 3.85192 29.9089 4.23504C30.2062 3.9363 30.5399 3.6754 30.9032 3.45911C29.4984 1.93147 27.1031 1.81509 25.5526 3.19822C24.002 4.58231 23.8839 6.94215 25.2878 8.46979C25.8371 9.06727 26.5676 9.47267 27.3699 9.62786C28.1742 9.78402 29.0091 9.67444 29.7445 9.31653C29.4875 8.97996 29.2749 8.61142 29.1134 8.22151C28.6349 8.43877 28.0994 8.5037 27.5816 8.40574Z",fill:"black"}),i("path",{d:"M44.744 9.74291H43.5745V6.68861C43.6089 6.24729 43.5203 5.80497 43.3175 5.40924C43.1256 5.13572 42.7987 4.98736 42.463 5.0213C42.1096 5.02809 41.7857 5.21528 41.6085 5.51692C41.3693 5.86707 41.2462 6.2822 41.257 6.70412V9.73516H40.0885V6.58483C40.0885 5.53634 39.7144 5.0174 38.9652 5.0174C38.6167 5.01837 38.2938 5.1978 38.1107 5.48975C37.8724 5.85251 37.7533 6.27929 37.771 6.71188V9.74291H36.6133V4.14153H37.772V5.02906H37.7956C38.1481 4.38308 38.8411 3.99024 39.5854 4.01449C39.9555 4.00479 40.3188 4.11828 40.6152 4.33748C40.8652 4.55572 41.0306 4.85347 41.0828 5.17937C41.4205 4.45774 42.1598 4.00089 42.9661 4.01544C44.2183 4.01544 44.7214 4.77589 44.7214 6.29771V9.74386L44.744 9.74291Z",fill:"black"}),i("path",{d:"M54.0672 9.74291H52.8976V6.68861C52.9321 6.24729 52.8435 5.80497 52.6407 5.40924C52.4487 5.13572 52.1219 4.98736 51.7862 5.0213C51.4327 5.02809 51.1088 5.21528 50.9316 5.51692C50.6924 5.86707 50.5693 6.2822 50.5802 6.70412V9.73516H49.4106V6.58483C49.4106 5.53634 49.0365 5.0174 48.2874 5.0174C47.9389 5.01837 47.6159 5.1978 47.4328 5.48975C47.1946 5.85251 47.0755 6.27929 47.0932 6.71188V9.74291H45.9482V4.14153H47.107V5.02906H47.1306C47.483 4.38308 48.1761 3.99024 48.9203 4.01449C49.2905 4.00479 49.6538 4.11828 49.9501 4.33748C50.2002 4.55572 50.3656 4.85347 50.4178 5.17937C50.7554 4.45774 51.4948 4.00089 52.301 4.01544C53.5533 4.01544 54.0564 4.77589 54.0564 6.29771V9.74386L54.0672 9.74291Z",fill:"black"}),i("path",{d:"M63.3699 6.02068C63.359 3.03523 61.8843 2.29712 60.7728 2.29712C59.6614 2.29712 58.1758 3.03523 58.1758 6.02068V6.04394C58.1876 9.02939 59.7667 9.76756 60.7728 9.76756C61.9542 9.76756 63.3699 9.02939 63.3699 6.04394V6.02068ZM60.7728 8.79568C59.8868 8.79568 59.2636 7.93148 59.2636 6.02944C59.2636 4.1274 59.8838 3.2632 60.7728 3.2632C61.6618 3.2632 62.282 4.1274 62.282 6.02944C62.282 7.93148 61.6618 8.79568 60.7728 8.79568Z",fill:"black"}),i("path",{d:"M69.4421 6.02068C69.4313 3.03523 67.9566 2.29712 66.8451 2.29712C65.7336 2.29712 64.248 3.03523 64.248 6.02068V6.04394C64.2599 9.02939 65.839 9.76756 66.8451 9.76756C68.0265 9.76756 69.4421 9.02939 69.4421 6.04394V6.02068ZM66.8451 8.79568C65.9591 8.79568 65.3359 7.93148 65.3359 6.02944C65.3359 4.1274 65.9561 3.2632 66.8451 3.2632C67.7341 3.2632 68.3543 4.1274 68.3543 6.02944C68.3543 7.93148 67.7341 8.79568 66.8451 8.79568Z",fill:"black"})))):i("div",{className:"poweredby",dangerouslySetInnerHTML:{__html:t.poweredByContent},onKeyDown:this.handlerKeydown,ref:function(t){e.poweredByRef=t}})},t}(p),AF=nO("footer.poweredby")(MF),BF=function(e){function t(t){var n;return(n=e.call(this,t)||this).focusInput=n.focusInput.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.focusInput=function(){var e=this.container.ownerDocument.querySelector("#chat-input textarea");e&&e.focus()},n.render=function(){var e=this,t=this.props;return i(m,null,!t.isChatInputVisible&&(t.error||t.warning)&&i(_T,{message:t.error||t.warning,type:t.error?wT:mT,onClose:t.error?t.onErrorClose:t.onWarningClose,className:"footer__alert-dialog"}),i("footer",{ref:function(t){e.container=t},className:h("footer window__footer",!t.poweredByUrl&&!t.showChatWithAgent&&"footer--empty"),style:t.style,onTouchMove:me,onClick:this.focusInput},t.poweredByUrl&&i(AF,t),t.showChatWithAgent&&i("button",{onClick:t.onChatWithAgentClick,className:"window__chatWithAgent window__chatWithAgent--bottom"},t.chatWithAgentText)))},t}(p),OF=nO("footer","footer-container")(BF),TF=g((function(e){var t=Ew(e),n=ag(e),i=t&&n&&n.length>0||Wm(e)?null:Ff(),o=tf(e),a=Dh(e),r=of(e),s=Qv(e,r)===gm;return{tab:o,poweredByUrl:i,showChatWithAgent:!1,chatWithAgentText:x_(e,"buttonChatbotChatWithAgent"),brandingName:a&&a.brandingName,partnerId:a&&a.partnerId,poweredByContent:a&&a.poweredByContent,isPopout:ph(e),width:tw(e),isBubble:s,warning:Af(e),error:If(e),isChatInputVisible:Nf(e)}}),(function(e){return{onChatWithAgentClick:function(){e(py())},onWarningClose:function(){e(sy())},onErrorClose:function(){e(uy())}}}))(OF),jF={},FF=e(5)((function(e){return ot("iframe",{src:e,style:{display:"none"},title:"Login"},document.body).then((function(t){var n=YA(t.contentWindow,e),i=function(e){try{return JSON.parse(e)}catch(e){return}};return n.subscribe((function(e){var t=e.data,n=i(t);if(n&&jF[n.meta]){var o=jF[n.meta],a=o.reject,r=o.resolve;n.error?a(n.payload):r(n.payload)}})),n}))}));function VF(e,t){var n=Math.random().toString();return FF(t).then((function(t){return new Promise((function(i,o){var a=Object.assign({meta:n},e);jF[a.meta]={resolve:i,reject:o},t.dispatch(a)}))}))}var WF,NF=function(e,t){return VF({type:"facebook-init",payload:e},t)},DF=((WF={})[1]={text:"Facebook",color:"#004991",svg:"M11.6818 0H1.59091C0.954546 0 0.5 0.454546 0.5 1.09091V18.9091C0.5 19.5455 0.954546 20 1.59091 20H10.5V13H8.77273V10.5455H10.5V8.81818C10.4091 7.90909 10.5909 7 11.0455 6.27273C11.6818 5.45455 12.6818 5 13.7727 5C14.7727 5 15.8636 5.09091 16.8636 5.27273L16.4091 7.81818C15.9545 7.63636 15.4091 7.54545 14.8636 7.54545C14.2273 7.54545 13.6818 8.09091 13.6818 8.72727V10.3636H16.4091V10.4545L16.2273 12.9091H13.6818V20H19.4091C20.0455 20 20.5 19.5455 20.5 18.9091V1.18182C20.5 0.545455 19.9545 0 19.3182 0H11.6818Z",id:"fb-login"},WF),PF=function(e){function t(){return e.apply(this,arguments)||this}he(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this,t=this.btn.style.backgroundColor;this.btn.style.backgroundColor="initital",setTimeout((function(){e.btn&&(e.btn.style.backgroundColor=t)}),0)},n.render=function(){var e=this,t=this.props,n=DF[t.type];return i("button",{className:h("prechatForm__socialBtn"),onClick:t.onClick,id:n.id,style:{color:n.color},"aria-label":n.text,ref:function(t){e.btn=t}},i("svg",{viewBox:"0 0 20 20",focusable:"false",style:{fill:n.color}},i("path",{d:n.svg})),i("span",null,n.text))},t}(p),RF=function(e){function t(){return e.apply(this,arguments)||this}he(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return e.prefix!==this.props.prefix||e.greeting!==this.props.greeting},n.render=function(){var e=this.props,t=e.prefix,n=e.greeting;return i("div",{className:"greeting-message window__formGreeting clearfix",id:t+"-greeting",dangerouslySetInnerHTML:{__html:n}})},t}(p),EF=nO("greeting")(RF),zF=e(1)((function(e,t,n,o,a,r){if(!e)return null;var s,c,d,l=t+"&key="+o;if(e){var u=(c=te(NF,e,l),d=PF,function(e){function t(t){var n;return(n=e.call(this,t)||this).state={status:"loading"},n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;c().then((function(){e.setState({status:"done"})}),(function(){e.setState({status:"error"})}))},n.render=function(){var e=ye(this.context);return"loading"===this.state.status?i(Fe,{type:Xe,className:"svg--loading",viewBox:"0 0 100 100","aria-label":e.loading,"aria-busy":"true"}):"done"===this.state.status?i(d,this.props):null},t}(p));s=i(u,{type:1,onClick:function(){return function(e){return VF({type:"facebook-login"},e)}(l).then(n)},isSimpleIcon:r})}else s=null;return nO("social")((function(){return i("div",{id:"social-logins",className:h("prechatForm__login",r&&"form-fields--horizonal","form-fields")},i("div",{className:"box-field"},i("div",{className:"filed__content"},i("div",{className:"field-name clearfix"},i("span",{className:"lang-sign-in-with system LanguagePreChatSocialMediaSignInWith prechatForm__signinwith field__label"},a.preChatSocialMediaSignInWith)),i("span",{id:"social-login-icons",className:"float-left box-icons prechatForm__social field-control"},s))),i("div",{className:"box-hor-or"},i("span",{className:"LanguagePreChatSocialMediaOr hor-or prechatForm__divide"},a.preChatSocialMediaOr)))}))})),LF=function(e,t){var n=e.facebookAppId,i=e.iframeSrc,o=e.onLogin,a=e.languages,r=e.isHorizontal;return zF(n,i,o,t,a,r)},HF=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={animated:!1,isAnimationEnd:!1},n.social=null,n.key=+new Date,n.social=LF(t,n.key),n.onAnimated=n.onAnimated.bind(fe(n)),n.onAnimationEnd=n.onAnimationEnd.bind(fe(n)),n.onScroll=n.onScroll.bind(fe(n)),n.canUpdateHideBio=!0,n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;this.props.onMounted(),setTimeout((function(){e.element&&(e.element.scrollTop=0)}),0),oe&&this.onAnimationEnd(),be(this.animation,this.onAnimationEnd),setTimeout((function(){}),10),be(this.animation,this.onAnimated)},n.componentWillReceiveProps=function(e){this.social=LF(e,this.key)},n.componentDidUpdate=function(e){var t=this,n=e.ifHideBio;this.props.ifHideBio!==n&&(this.canUpdateHideBio=!1,setTimeout((function(){t.canUpdateHideBio=!0}),625))},n.componentWillUnmount=function(){at(this.animation,this.onAnimated),at(this.animation,this.onAnimationEnd)},n.onAnimated=function(){this.setState({animated:!0})},n.onAnimationEnd=function(){this.setState({isAnimationEnd:!0})},n.onScroll=function(e){if(!(window.navigator.userAgent.toLowerCase().indexOf("msie 9.0")>=0)&&this.props.tab!==ep){var t=e.currentTarget.scrollTop;this.canUpdateHideBio&&t>0&&!this.props.ifHideBio&&this.props.onUpdateScrollStatus(!0),this.canUpdateHideBio&&0===t&&this.props.ifHideBio&&this.props.onUpdateScrollStatus(!1)}},n.render=function(){var e=this,t=this.props,n=t.prefix,o=t.greeting,a=t.submitStatus,r=t.onChange,s=t.onBlur,c=t.onFocus,d=t.isHorizontal,l=t.buttonText,u=t.siteId,p=t.style,f=t.error,g=t.windowStyle,w=t.disabled,m=t.tab,b=t.height,v=t.languages,_=t.isMobile,x=t.onError,y=t.onValidateAll,C=t.onSubmit;t.mainColor;var k,S=t.showAdaptiveMinimizeIcon,I=t.isIPad,M=t.fields,A=t.isPopout,B=t.hasPoweredBy,O=t.ifShowSideWindow,T=t.captchaSettings,j=t.languageTag,F=t.isEmbeddedWindow,V=t.brandConfig,W=t.ifCrossSiteTransfer,N=this.state.isAnimationEnd?"auto":"hidden";if(g===gm){if(k=b-(_?20:30),_||(k-=B?35:0),!_||I){S&&(k-=105)}if(I){O&&(k-=45)}_&&!I&&(k="100%")}var D=rt(),P=M;Ce&&(P=[{type:qo,isHidden:!0,value:"",error:""}].concat(P));var R="";n===bp?R="Pre-chat window":n===vp?R="Post-chat window":n===_p&&(R="Offline message window");var E={maxHeight:k};return g===gm?i("div",{className:"window__formContainer window__formContainer--bubble",style:{maxHeight:k,overflowY:N},ref:function(t){e.element=t}},i("div",{className:h("form window__form",!this.state.isAnimationEnd&&"window__form--animation"),id:n+"-window",ref:function(t){e.animation=t},style:!_&&{background:D}},i("h1",{className:"visually-hidden","aria-hidden":!0},R),f&&i("div",{className:"window__formError"},f),o&&i("div",{className:"greeting-message-container",ref:function(t){e.greetingElement=t},tabindex:-1},i(EF,{prefix:n,greeting:o,tab:m})),this.social&&i(this.social,{tab:m}),i(Hj,{onSubmit:C,onChange:r,onError:x,onBlur:s,onFocus:c,onValidateAll:y,fieldId:n+"-fields",isHorizontal:d,tab:m,fields:P,siteId:u,disabled:w,windowStyle:p,languages:v,submitStatus:a,buttonText:l,style:{background:D},captchaSettings:T,languageTag:j,ifCrossSiteTransfer:W}))):i("div",{onScroll:this.onScroll,className:h("form window__form",!this.state.isAnimationEnd&&"window__form--animation",(A||!F)&&"window__form_popout"),id:n+"-window",style:E,ref:function(t){e.element=t,e.animation=t}},i("div",{style:{}},i("h1",{className:"visually-hidden","aria-hidden":!0},R),o&&i("div",{tabIndex:0,ref:function(t){e.greetingElement=t}},i(EF,{prefix:n,greeting:o,tab:m})),this.social&&i(this.social,{tab:m}),i(Hj,{onSubmit:C,onChange:r,onError:x,onBlur:s,onFocus:c,onValidateAll:y,fieldId:n+"-fields",isHorizontal:d,tab:m,fields:P,siteId:u,disabled:w,windowStyle:p,languages:v,submitStatus:a,buttonText:l,captchaSettings:T,languageTag:j,brandConfig:V,ifCrossSiteTransfer:W})))},t}(p),qF=HF,UF=function(e){var t="";e===bp?t="livechat.prechat":e===vp?t="livechat.postChat":e===_p&&(t="livechat.offlineMessage");return g((function(n){var i,o=e===bp,a=function(e){return e.configuration.isChinaIP}(n),r=o&&function(e){var t=e.entities.campaigns.entities[e.window.id];return!!t.socialLogin&&t.socialLogin.facebook}(n),s=r&&!a?function(e){return e.configuration.facebookAppId}(n):void 0;e===bp?i=ep:e===vp?i=np:e===_p&&(i=ip);var c=ph(n),d=Yw(n),l=of(n),u=af(n)||l,p=e===vp?Ov(n):Tv(n,e,u),h=ng(n);e===_p&&0===p.length&&(h=!0);var f=v_(n),g=cf(n),w=Ew(n),m=!w&&!Wm(n)&&!!Ff(),b=__(n),v=Sm(n,l),_=a_(n,e),x=Qv(n,l),y=w&&ke&&yg(n)||_&&x===gm||yg(n)&&ke&&vg(n),C=Object.assign({},function(e){return e.configuration.recaptchaSettings}(n),{isCompact:y});return{height:d,isPopout:c,tab:i,fields:p,prefix:e,facebookAppId:s,iframeSrc:_h(n,"/visitorside/html/socialiframe.61363e27025e3f2ca667600f2c4531f5eaba5cba.html?origin="+Q.origin+"&id="+(window.frameElement?window.frameElement.id:"id")),captchaSettings:C,submitStatus:jv(n,e),greeting:o_(n,e),isHorizontal:_,buttonText:r_(n,e),hCallback:undefined,siteId:Mw(n),style:Jv(n),error:If(n),windowStyle:Qv(n,l),disabled:h,isMobile:w,isIPad:zw(n),languages:f,languageTag:b,ifHideBio:$f(n),mainColor:g,bottom:Og(n),hasPoweredBy:m,showAdaptiveMinimizeIcon:O_(n),ifShowSideWindow:ig(n),onMounted:function(){bS(t+".display",u)},isEmbeddedWindow:v,brandConfig:Dh(n),ifCrossSiteTransfer:!!Dv(n),width:tw(n)}}),(function(n){return{onChange:function(i,o){n(Ok(e,i.id,o)),bS(t+".field.change",Object.assign({},i,{value:o}))},onError:function(t,i){n(Tk(e,t.id,i))},onBlur:function(i){n(Fk(e,i.id)),bS(t+".field.blur",Object.assign({},i,{isFocused:!1}))},onFocus:function(i){n(jk(e,i.id)),bS(t+".field.focus",Object.assign({},i,{isFocused:!0}))},onLogin:function(t){n(function(e,t){return{type:tl,payload:t,meta:{formType:e}}}(e,t))},onSubmit:function(t){return n(qk(e,1500,t))},onValidateAll:function(e){n(Rk(Cp,e))},onUpdateScrollStatus:function(e){n(Cy(e))}}}))(qF)},GF=UF(bp),KF=UF(vp),YF=UF(_p);Math.pow("production",b.shape({fields:b.arrayOf(b.shape()),buttons:b.arrayOf(b.shape()),isEnable:b.bool,tabIndex:b.number}));var QF=function(e){function t(){return e.apply(this,arguments)||this}he(t,e);var n=t.prototype;return n.componentDidMount=function(){if(this.props.isMessageScrollBottom){var e=this.props.scrollDown;e(),be(this.container,e)}},n.componentWillUnmount=function(){this.props.isMessageScrollBottom&&at(this.container,this.props.scrollDown)},n.render=function(){var e=this,t=this.props,n=t.windowStyle===gm;return t.type===Xn?i("div",{className:"chat__greetingContainer"},i("div",{className:n?"chat-system-message window__chatSystemMessage":"greeting-message window__formGreeting"},i("div",{className:h(n&&"window__chatSystemMessageContent"),dangerouslySetInnerHTML:{__html:t.message}}))):i("div",{tabIndex:t.tabIndex,id:t.type===Wt?"system-queue-position":t.id||null,className:"chat-system-message window__chatSystemMessage",ref:function(t){e.container=t}},i(vT,{id:t.messageGuid,message:t.liveMessage||t.message}),n&&i("div",{className:"window__chatSystemMessageContent"},t.message),!n&&t.message)},t}(p),ZF=e(1)((function(e,t){return e?B(t,"guid",e):-1}));function JF(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent}var XF=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={ifShowLoading:!1,imgWidth:0,imgHeight:0},n.timer=null,n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;if(this.props.type===$n&&(this.timer=setTimeout((function(){e.setState({ifShowLoading:!0}),e.timer=null}),1e3)),(0,this.props.scrollDown)(!0),this.props.type===Nt&&this.props.message.url&&/.*[.](jpg|gif|jpeg|png|bmp)$/i.test(this.props.message.name)){var t=new Image;t.src=vr(this.props.message.url,!0),t.onload=function(){e.setState({imgWidth:t.width,imgHeight:t.height})}}},n.componentWillReceiveProps=function(e){e.type!==$n&&(this.timer&&clearTimeout(this.timer),this.setState({ifShowLoading:!1}))},n.componentWillUnmount=function(){this.timer&&clearTimeout(this.timer)},n.getLiveMessage=function(){var e,t=ye(this.context),n=this.props,i=n.type;return i===$n?e=t.sendMessageLiveMessage.replace("${message}",n.displayedText?n.displayedText:n.message):i===Vt?e=n.translated&&n.translated!==n.message&&n.ifShowTranslationOnly?t.translateLiveMessage.replace("${translated}",n.translated).replace("${message}",n.message):t.sendMessageLiveMessage.replace("${message}",n.displayedText?n.displayedText:n.message):i===Dt?e=t.sendImgLiveMessage:i===Nt?e=t.sendFileLiveMessage.replace("${name}",n.message.name):n.type===ti||n.type===ei?e=t.sendingFileLiveMessage.replace("${name}",n.message.fileName):i===Pt?e=t.sendPwdLiveMessage:i!==Yn&&i!==Kn||(e=t.sendMessageLiveMessage.replace("${message}",n.message.message)),e&&(e=t.visitorSendLiveMessage.replace("${message}",e).replace("${time}",st(n.time))),e},n.render=function(){var e,t,n,o=this,a=this.props,r=!1,s=!1,c="",d="",l=a.isMobile&&!a.isIpad,u=ye(this.context);if(a.type===$n)e=Ja(a.displayedText?a.displayedText:a.message,i("br",null),a.KbHost,a.onKbLinkClick,a.siteId,l,a.resourceOrigin);else if(a.type===Vt)a.translated&&a.translated!==a.message&&!a.ifShowTranslationOnly&&function(e,t,n){if(e){var i=t.findIndex((function(e){return e.type===Qt}));return!(i<0)&&t.findIndex((function(e){return e.guid===n}))>i}return!0}(a.isAIAgent,a.originalMessages,a.msgGuid)?((e=Ja(a.translated,i("br",null),a.KbHost,a.onKbLinkClick,a.siteId,l,a.resourceOrigin)).push(i("em",{className:"window__chatMessageOrignal window__chatMessageTranslatedTag"},"(",a.translatedTag,")")),e.push(i("em",{className:"window__chatMessageOrignal"},Ja(a.message,i("br",null),a.KbHost,a.onKbLinkClick,a.siteId,l,a.resourceOrigin)," (",a.originalTag,")"))):e=Ja(a.displayedText?a.displayedText:a.message,i("br",null),a.KbHost,a.onKbLinkClick,a.siteId,l,a.resourceOrigin);else if(a.type===Dt)d=Wr(a.message.url,a.customizeFileService,a.standbyFileService),r=!0,c=/.*[.](gif)$/i.test(a.message.name)?d:d+"?maxWidth=200&maxHeight=200",e=i("a",{onClick:function(){a.onPreviewImage(c,a.message.name)}},i("img",{src:c,alt:a.message.name,style:{maxWidth:200,maxHeight:200},onLoad:function(){return a.scrollDown(!0)}}));else if(a.type===Nt)d=Wr(a.message.url,a.customizeFileService,a.standbyFileService),/.*[.](jpg|gif|jpeg|png|bmp)$/i.test(a.message.name)?(r=!0,0===this.state.imgWidth?(r=!1,e=i("div",{className:"chat-visitor-message window__chatVisitorMessage--file"},i("div",{className:"icon-file"},i(Fe,{type:dt,ariaHidden:!0})),i("a",{href:d,target:"_blank",rel:"noopener noreferrer"},ct(a.message.name)))):(c=/.*[.](gif)$/i.test(a.message.name)?d:vr(d,!1,this.state.imgWidth,this.state.imgHeight),e=i("a",{onClick:function(){a.onPreviewImage(d,a.message.name)},rel:"noopener noreferrer",style:br(this.state.imgWidth,this.state.imgHeight)},i("div",{className:"image-container"},i("img",{src:c,alt:a.message.name,onLoad:function(){return a.scrollDown(!0)},style:mr(this.state.imgWidth,this.state.imgHeight)}))))):lt(a.message.name)?(s=!0,e=i("div",{className:"chat-visitor-message window__chatVisitorMessage--file"},i("video",{controls:!0,src:d,alt:a.message.name}))):(r=!1,d=Wr(a.message.url,a.customizeFileService,a.standbyFileService),e=i("div",{className:"chat-visitor-message window__chatVisitorMessage--file"},i("div",{className:"icon-file"},i(Fe,{type:dt,ariaHidden:!0})),i("a",{href:d,target:"_blank",rel:"noopener noreferrer"},ct(a.message.name))));else if(a.type===ti||a.type===ei){var p=[i("div",{className:"icon-file"},i(Fe,{type:dt,ariaHidden:!0})),i("span",{className:"file"},ct(a.fileName))];a.percent&&p.push(i("span",{className:"file--percent",role:"progressbar","aria-valuenow":a.percent,"aria-valuemin":"0","aria-valuemax":"100",style:{width:a.percent+"%"}})),a.onCloseClick&&p.push(i("button",{onClick:function(e){e.preventDefault(),e.stopPropagation(),a.onCloseClick()},"aria-label":u.cancelUpload,className:"file__icon--cancel"},i(Fe,{type:Ve}))),e=i("div",{className:"chat-visitor-message window__chatVisitorMessage--file"},p)}else a.type===Yn?(t=a.message,n=t.message?t.message.replace(/\r\n|\r|\n/g,"
"):"",e=i("div",null,i("div",{dangerouslySetInnerHTML:{__html:n}}),t.values.map((function(e,t){return i("div",{key:t},e.label," : ","checkbox"===e.type?"true"===e.value?JF("✔"):JF("✖"):"checkbox-list"===e.type?e.value.replace(/\u2299/gi,","):e.value)})))):a.type===Kn&&(e=a.message.message);a.textType===Pt&&(e=a.message?"•".repeat(a.message.length):"");var f=this.getLiveMessage();return i("div",{className:h("chat-visitor","window__chatVisitor","clearfix",a.type===Yn&&"window__chatVisitorFormMessage"),ref:function(e){o.container=e}},i(vT,{id:a.msgGuid,message:f}),a.time&&i("span",{className:"chat-message-time"},st(a.time)),i("div",{className:h("chat-visitor-message","window__chatVisitorMessage",r&&"chat-message--img",s&&"chat-message--video",a.meta.isFirst&&"window__chatVisitorFirstMessage",a.meta.isLast&&"window__chatVisitorLastMessage",ut(e)&&"message__long"),style:{background:V(a.mainColor),borderColor:V(a.mainColor)}},!function(e){return e===ti||e===ei}(a.type)&&function(e,t,n,o,a){if(e){var r=ZF(n,a),s=ZF(t,a),c=-1===r||r&&r>s?"message--notSeen":"message--seen",d=r>s?o:"";return i("div",{className:h("dot_container"),"aria-label":d},i("span",{title:d},i("svg",{version:"1.1",x:"0px",y:"0px",width:"6px",height:"6px",viewBox:"0 0 6 6",xmlSpace:"preserve",focusable:"false",className:c,"aria-hidden":"true"},i("circle",{r:"3",cy:"3",cx:"3",className:"innerDot"}))))}return null}(a.ifShowSeenDot,a.maxAgentReadId,a.msgGuid,a.tooltip,a.originalMessages),e,this.state.ifShowLoading&&i("span",{className:"chat-message--loading"},i(Fe,{type:Xe,className:"svg--loading",viewBox:"0 0 100 100","aria-label":u.uploading,"aria-busy":"true"}))))},t}(p),$F=function(e){function t(t){return e.call(this,t)||this}return he(t,e),t.prototype.render=function(){return i("div",null,this.props.message)},t}(p),eV=tO("livechat.invitation.message","invitation")($F),tV=Oe((function(){return import("./AgentSendSSO.6a73f83b.js")})),nV=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={mobileShowTime:!1,imgWidth:0,imgHeight:0},n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this,t=this.props;if(t.isMessageScrollBottom&&(t.scrollDown(),be(this.container,t.scrollDown)),bS("livechat.chat.agent.input",t.sender,t.message),(t.type===tn||t.type===nn)&&t.message.url&&/.*[.](jpg|gif|jpeg|png|bmp)$/i.test(t.message.name)){var n=new Image;n.src=vr(t.message.url,!0),n.onload=function(){e.setState({imgWidth:n.width,imgHeight:n.height})}}if(this.props.type===rn&&this.props.message&&this.props.chatStatus===wp){if(this.props.isPrint)return;var i=J(this.props.message.url);switch(this.props.message.pushType){case"sideWindow":this.props.onPushPage(i);break;case"currentWindow":H.location.href=i;break;case"newWindow":H.open(i,"_blank")}}},n.componentDidUpdate=function(){var e=this,t=this.props;if(t.type===nn&&t.message.url&&/.*[.](jpg|gif|jpeg|png|bmp)$/i.test(t.message.name)){var n=new Image;n.src=vr(t.message.url,!0),n.onload=function(){e.setState({imgWidth:n.width,imgHeight:n.height})}}},n.shouldComponentUpdate=function(e,t){return this.props.message!==e.message||e.sender.name!==this.props.sender.name||e.sender.avatar!==this.props.sender.avatar||e.time!==this.props.time||e.translated!==this.props.translated||e.ifShowName!==this.props.ifShowName||e.ifShowAvatar!==this.props.ifShowAvatar||e.isMobile!==this.props.isMobile||e.type!==this.props.type||t.mobileShowTime!==this.state.mobileShowTime||t.imgWidth!==this.state.imgWidth||t.imgHeight!==this.state.imgHeight||e.isSSOLoggedIn!==this.props.isSSOLoggedIn||e.isChatting!==this.props.isChatting},n.componentWillUnmount=function(){this.props.isMessageScrollBottom&&at(this.container,this.props.scrollDown)},n.getLiveMessage=function(){var e,t=ye(this.context),n=this.props,i=n.type;if(i===qt||i===si||i===Ut||i===Nn||i===Wn?e=n.translated&&n.translated!==n.message&&!n.ifShowTranslationOnly?t.translateLiveMessage.replace("${translated}",n.translated).replace("${message}",n.message):t.sendMessageLiveMessage.replace("${message}",n.message):i===Jt?e=t.sendLinkLiveMessage.replace("${message}",n.message):i===rn?e=t.sendPageLiveMessage.replace("${url}",n.message.url):i===nn?e=t.sendImgLiveMessage:i===tn&&(e=t.sendFileLiveMessage.replace("${name}",n.message.name)),e)return t.agentSendLiveMessage.replace("${senderName}",n.sender.name).replace("${message}",e).replace("${time}",st(n.time))},n.render=function(){var e,t=this,n=this.props,o=!1,a=!1,r="",s="",c=n.isMobile&&!n.isIpad,d=ye(this.context);if(n.type===qt||n.type===si||n.type===Ut||n.type===Wn||n.type===Nn)if(n.translated&&n.translated!==n.message)n.ifShowTranslationOnly?e=Ja(n.translated,i("br",null),n.KbHost,n.onKbLinkClick,n.siteId,c,n.resourceOrigin):((e=Ja(n.translated,i("br",null),n.KbHost,n.onKbLinkClick,n.siteId,c,n.resourceOrigin)).push(i("em",{className:"window__chatMessageOrignal window__chatMessageTranslatedTag"},"(",n.translatedTag,")")),e.push(i("em",{className:"window__chatMessageOrignal"},Ja(n.message,i("br",null),n.KbHost,n.onKbLinkClick,n.siteId,c,n.resourceOrigin)," (",n.originalTag,")")));else if(n.type===si){var l=Ja(n.message,i("br",null),n.KbHost,n.onKbLinkClick,n.siteId,c,n.resourceOrigin);e=[i(eV,{message:l})]}else e=Ja(n.message,i("br",null),n.KbHost,n.onKbLinkClick,n.siteId,c,n.resourceOrigin);else n.type===Jt?e=pt(n.message):n.type===rn?e=Ja(n.message.url,i("br",null)):n.type===nn?/.*[.](jpg|gif|jpeg|png|bmp)$/i.test(n.message.name)&&(o=!0,r=s=Wr(n.message.url,n.customizeFileService,n.standbyFileService),0===this.state.imgWidth?(o=!1,e=i("div",{className:"chat-operator-message window__chatAgentMessage--file"},i("span",{className:"chat-message--loading","aria-label":d.uploading},i(Fe,{type:Xe,className:"svg--loading",viewBox:"0 0 100 100","aria-label":d.uploading,"aria-busy":"true"})),i("a",{href:r,target:"_blank",rel:"noopener noreferrer"},ct(n.message.name)))):(r=s,e=i("a",{onClick:function(){n.onPreviewImage(s,n.message.name)},rel:"noopener noreferrer",style:br(this.state.imgWidth,this.state.imgHeight)},i("div",{className:"image-container"},i("img",{src:r,alt:n.message.name,style:mr(this.state.imgWidth,this.state.imgHeight),onLoad:function(){n.isMessageScrollBottom&&n.scrollDown()}}))))):n.type===tn&&(/.*[.](jpg|gif|jpeg|png|bmp)$/i.test(n.message.name)?(o=!0,r=s=Wr(n.message.url,n.customizeFileService,n.standbyFileService),0===this.state.imgWidth?(o=!1,e=i("div",{className:"chat-operator-message window__chatAgentMessage--file"},i("span",{className:"chat-message--loading","aria-label":d.uploading},i(Fe,{type:Xe,className:"svg--loading",viewBox:"0 0 100 100","aria-label":d.uploading,"aria-busy":"true"})),i("a",{href:r,target:"_blank",rel:"noopener noreferrer"},ct(n.message.name)))):(r=/.*[.](gif)$/i.test(n.message.name)?s:vr(s,!1,this.state.imgWidth,this.state.imgHeight),e=i("a",{onClick:function(){n.onPreviewImage(s,n.message.name)},href:""+s,target:"_blank",rel:"noopener noreferrer",style:br(this.state.imgWidth,this.state.imgHeight)},i("div",{className:"image-container"},i("img",{src:r,alt:n.message.name,style:mr(this.state.imgWidth,this.state.imgHeight),onLoad:function(){n.isMessageScrollBottom&&n.scrollDown()}}))))):lt(n.message.name)?(s=Wr(n.message.url,n.customizeFileService,n.standbyFileService),a=!0,e=i("div",{className:"chat-operator-message window__chatAgentMessage--file"},i("video",{controls:!0,src:s,alt:n.message.name}))):(s=Wr(n.message.url,n.customizeFileService,n.standbyFileService),o=!1,e=i("div",{className:"chat-operator-message window__chatAgentMessage--file"},i("div",{className:"icon-file"},i(Fe,{type:dt,ariaHidden:!0})),i("a",{href:s,target:"_blank",rel:"noopener noreferrer"},ct(n.message.name)))));var u=this.getLiveMessage(),p=n.isMobile?"#fff":rt(n.mainColor),f=ut(e);return i("div",{className:"window__chatAgent clearfix",ref:function(e){t.container=e}},i(vT,{id:n.messageGuid,message:u}),n.ifShowAvatar&&n.sender.avatar&&i("div",{className:"agentMessage__avatar"},i($O,{src:n.sender.avatar,alt:d.avatar,className:"agentMessage__avatarImg"})),i("div",{className:"window__chatAgentMessage_container"},i("div",{className:"chat-message-extra-info"},n.sender.name&&i("span",{className:"chat-operator-name window__chatAgentName"},n.sender.name),n.time&&i("span",{className:"chat-message-time"},st(n.time))),i("div",{className:h("chat-operator-message","window__chatAgentMessage",o&&"chat-message--img",a&&"chat-message--video",n.type===on&&"chat-message--imgLoading",(!n.ifShowAvatar||!n.sender.avatar)&&"window__chatMessageNoAvatar",f&&"message__long"),style:{background:p}},n.type===on&&i(Fe,{type:Xe,className:"svg--loading",viewBox:"0 0 100 100","aria-label":d.loading,"aria-busy":"true"}),n.type===jn?i(Te,null,i(je,null,i(tV,{message:n.message,ifDisable:n.isSSOLoggedIn||!n.isChatting||n.message.isDisable,onClick:n.onSSORequestClick,mainColor:n.mainColor,isPopoutWindow:n.isPopoutWindow}))):e)))},t}(p),iV=function(e){function t(){return e.apply(this,arguments)||this}he(t,e);var n=t.prototype;return n.componentDidMount=function(){if(this.props.isMessageScrollBottom){var e=this.props.scrollDown;e(),be(this.container,e)}},n.componentWillUnmount=function(){this.props.isMessageScrollBottom&&at(this.container,this.props.scrollDown)},n.render=function(){var e=this,t=this.props,n=t.fields,o=t.greeting,a=t.buttonText,r=t.onFocus,s=t.onBlur,c=t.onChange,d=t.onSubmit,l=t.onValidateAll,u=t.submitStatus,p=t.languages,h=t.isHorizontal,f=t.isMobile?"#fff":rt(t.mainColor),g=u!==ap;return 0===n.length?null:i("div",{className:"window__formMessageContainer"},i("div",{tabIndex:t.tabIndex,className:"window__formMessage",style:{background:f},ref:function(t){e.container=t}},t.greeting&&i("div",{className:"greeting-message-container greeting-message window__formGreeting",ref:function(t){e.greetingElement=t},tabIndex:-1,dangerouslySetInnerHTML:{__html:t.greeting}}),i(Hj,{fields:n,greeting:o,buttonText:a,onFocus:r,onBlur:s,onSubmit:d,onChange:c,onValidateAll:l,submitStatus:u,text:a,disabled:g,languages:p,isHorizontal:h,tab:t.tab})))},t}(p);function oV(e,t){return function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a1?a[0]+"\n["+a[1]+"]":e.originalMessage}return e.type===Ln||e.type===En||e.type===zn||e.type===qn||e.type===Un||e.type===Gn||e.type===Zn||e.type===Qn||e.type===Kn||e.type===Yn?JSON.stringify(e.content):e.type===qi?e.content:e.originalMessage},bV=((dV={})[Wt]=function(e,t){var n=t.windowStyle,o=t.scrollDown,a=t.chatStatus,r=t.isMessageScrollBottom;if(e.content){var s=e.content;if(s.indexOf(hV)>=0&&void 0===e.queuePosition)return null;if(s.indexOf(fV)>=0&&(void 0===e.estimatedWaitTime||0===e.estimatedWaitTime))return null;for(;s.indexOf(hV)>=0;)a===wp||a===mp?s=s.replace(hV,gV):(s=s.replace(hV,e.queuePosition),gV=e.queuePosition);for(;s.indexOf(fV)>=0;)a===wp||a===mp?s=s.replace(fV,wV):(s=s.replace(fV,e.estimatedWaitTime),wV=e.estimatedWaitTime);return i(QF,{key:e.guid,messageGuid:e.guid,type:e.type,message:s,windowStyle:n,scrollDown:o,isMessageScrollBottom:r})}return null},dV[Ot]=function(e,t){var n=t.gotoOfflineLinkText,o=t.onOfflineLinkClick,a=t.windowStyle,r=t.scrollDown,s=t.chatStatus,c=t.isMessageScrollBottom;if(s===fp){var d=[];if(e.content){for(var l=e.content.split(/{linkText}/gi),u=0;u=0)}))}(p).map((function(e){return{type:e.type,message:mV(e,h),senderType:e.sender.type,senderName:e.senderName,time:Math.round(e.originalTime/1e3),translated:e.translated}}));wt(b,t.Base64.encode(JSON.stringify({agents:s,department:c,startTime:d,endTime:l,campaignId:u,timezone:ka(),messages:n}))),e.preventDefault(),e.stopPropagation()},target:"_blank",rel:"noopener noreferrer",href:"",role:"button"},m));return i(QF,{key:e.guid,type:oi,message:v,liveMessage:m+" button",messageGuid:e.guid,windowStyle:o,scrollDown:a,isMessageScrollBottom:f,id:oi})}return null},dV[an]=function(e,t){var n=t.isPrint,o=t.windowStyle,a=t.scrollDown,r=t.isMessageScrollBottom,s=[];return s.push(i(QF,{key:e.guid,type:e.type,message:e.content.text,messageGuid:e.guid,windowStyle:o,sender:e.sender,scrollDown:a,isMessageScrollBottom:r})),!n&&e.content.url&&s.push(i(Te,null,i(je,null,i(pV,{isHidden:e.isHidden,url:e.content.url,targetUrl:Q.href,getSecureFormFailure:t.getSecureFormFailure,submitSecureForm:t.submitSecureForm,cancelSecureForm:t.cancelSecureForm,windowStyle:o,scrollDown:a,isPopedOut:t.isPopout})))),s},dV[Xt]=function(e,t){var n=t.isPrint,o=t.windowStyle,a=t.ifShowName,r=t.ifShowAvatar,s=t.isMobile,c=t.scrollDown,d=t.mainColor,l=t.agentTypingText,u=t.isMessageScrollBottom;return n?null:i(sV,{key:e.guid,message:l,time:e.time,windowStyle:o,sender:e.sender,ifShowName:a,ifShowAvatar:r,isMobile:s,scrollDown:c,mainColor:d,isMessageScrollBottom:u})},dV[Bt]=function(e,t){if(e.content){var n=t.windowStyle,o=t.scrollDown,a=t.isMessageScrollBottom,r=e.time,s=r.getHours(),c=r.getMinutes(),d=r.getSeconds(),l=e.content.concat(" ("+gt(s)+":"+gt(c)+":"+gt(d)+")");return i(QF,{key:e.guid,type:e.type,message:l,messageGuid:e.guid,windowStyle:n,sender:e.sender,scrollDown:o,isMessageScrollBottom:a})}return null},dV[ai]=function(e,t){var n=t.onEmailTranscriptClick,o=t.ifCanEmailTranscript,a=t.windowStyle,r=t.scrollDown,s=t.isMessageScrollBottom,c=t.isPrint,d=t.popupBubble,l=t.isKeyboardFocus;if(e.content&&o){var u=c?i("span",null,e.content):i("div",{className:"system-message-button"},i(Fe,{type:$e,ariaHidden:!0}),i(cV,{onClick:n,content:e.content,popupBubble:d,isKeyboardFocus:l}));return i(QF,{key:e.guid,type:ai,message:u,messageGuid:e.guid,liveMessage:e.content+" button",windowStyle:a,scrollDown:r,isMessageScrollBottom:s,id:ai})}return null},dV);var vV=function(e,t){if(function(e){return e.type===ri||e.type===ui||e.type===ji||e.type===Vi||e.type===li||e.type===Ti||e.type===pi||e.type===Fi||e.type===di}(e))return null;if(or(e))return function(e,t){var n=t.windowStyle,o=t.scrollDown,a=t.isMessageScrollBottom;return e.content?"string"==typeof e.content&&e.content?i(QF,{key:e.guid,messageGuid:e.guid,type:e.type,message:e.content,windowStyle:n,sender:e.sender,scrollDown:o,isMessageScrollBottom:a}):"string"==typeof e.content.text&&e.content.text?i(QF,{key:e.guid,messageGuid:e.guid,type:e.type,message:e.content.text,windowStyle:n,sender:e.sender,scrollDown:o,isMessageScrollBottom:a}):null:null}(e,t);var n;if(ar(e))return e.type!==ti&&e.type!==ei||null==(n=e.content)||!n.parentMessageId?function(e,t){return i(XF,ge({key:e.guid,type:e.type,textType:e.textType,message:e.content,time:e.time,meta:e.meta,translated:e.translated,fileName:e.content.fileName,percent:e.content.percent,onCloseClick:e.content.onCancel,ifShowSeenDot:t.ifEnableVisitorSeeMsgSentSeen&&t.isChattingWithAgent,msgId:e.id,msgGuid:e.guid,tooltip:t.msgNotSeenByAgent,displayedText:e.displayedText},t))}(e,t):i(m,null);if(rr(e))return function(e,t){return i(nV,ge({key:e.guid,messageGuid:e.guid,type:e.type,message:e.content,sender:e.sender,time:e.time,translated:e.translated},t))}(e,t);if(function(e){return e.type===Dn}(e))return function(e,t){return t.isPrint?null:t.isChatting?i(aV,ge({fields:t.ratingForm.fields,greeting:t.ratingForm.greeting,buttonText:t.ratingForm.buttonText,submitStatus:t.ratingForm.submitStatus,onChange:function(e,t){return othersProps.onChange(e,t,!0)},onBlur:function(e){return t.onBlur(e,!0)},onFocus:function(e){return t.onFocus(e,!0)}},t)):i(rV,ge({fields:t.ratingForm.fields,greeting:t.ratingForm.greeting,buttonText:t.ratingForm.buttonText,submitStatus:t.ratingForm.submitStatus,onChange:function(e,t){return othersProps.onChange(e,t,!1)},onBlur:function(e){return t.onBlur(e,!1)},onFocus:function(e){return t.onFocus(e,!1)}},t))}(0,t);if(function(e){return sr(e)||dr(e)||lr(e)}(e))return i(Te,null,i(je,null,i(uV,{message:e,otherProps:t})));var o=bV[e.type];return o?o(e,t):null},_V=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={botLoaded:!1},n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this.element;if(e&&this.props.isBubble){var t=e.getBoundingClientRect().width;e.style.width=t+"px"}},n.render=function(){var e=this,t=this.props,n=t.messages,o=z(t,lV),a=n.reduce((function(e,t){return function(e,t){if(!ar(t))return e.concat(t);if(e.length>0){var n=e[e.length-1];if(ar(n))return n.meta.isLast=!1,e.concat(Object.assign({},t,{meta:{isLast:!0}}))}return e.concat(Object.assign({},t,{meta:{isFirst:!0}}))}(e,t)}),[]).map((function(e){return vV(e,o)})).filter((function(e){return null!==e})).reduce((function(e,t){return e.concat(t)}),[]);return i("div",{ref:function(t){e.element=t},id:"chatMessages"},a)},t}(p),xV=function(e){function t(){return e.apply(this,arguments)||this}he(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return e.isBubble!==this.props.isBubble||e.greeting!==this.props.greeting},n.render=function(){var e=this.props,t=e.isBubble,n=e.greeting;return i("div",{className:"chat__greetingContainer"},i("div",{className:t?"chat-system-message window__chatSystemMessage clearfix":"greeting-message window__formGreeting clearfix"},i("div",{className:h(t&&"window__chatSystemMessageContent"),dangerouslySetInnerHTML:{__html:n}})))},t}(p),yV=["greeting","height","hasMobileSideWindow","bottom","ifShowBio","ifHideBio"];function CV(e,t){if(function(e,t){return e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}(e,t)){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}var kV,SV,IV=function(e){function t(t){var n;return(n=e.call(this,t)||this).onScroll=n.onScroll.bind(fe(n)),n.scrollDown=n.scrollDown.bind(fe(n)),n.canUpdateHideBio=!0,n.beforeunload=n.beforeunload.bind(fe(n)),n.onTouch=n.onTouch.bind(fe(n)),n.io=null,n.scrollTimeout=null,n.hasNewMessage=!0,n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;this.props.onMounted(),setTimeout((function(){e.element&&(e.hasAnimation=!0,CV(e.element,"window__chat--animation"))}),625),H.addEventListener("beforeunload",this.beforeunload),vS("livechat.chatwindow.restore",(function(){e.scrollDown()})),!this.props.isPrint&&window.IntersectionObserver&&(this.io=new window.IntersectionObserver((function(t){t[0].intersectionRatio<=0?(clearTimeout(e.scrollTimeout),e.scrollTimeout=setTimeout((function(){e.props.updateIsMessageScrollBottom(!1)}),1e3)):(clearTimeout(e.scrollTimeout),e.props.updateIsMessageScrollBottom(!0),e.props.onReadNewMsg())})),this.io.observe(this.refBottomElement))},n.shouldComponentUpdate=function(e){return this.props.messages!==e.messages||e.ifHideBio!==this.props.ifHideBio||e.height!==this.props.height||e.hasMobileSideWindow!==this.props.hasMobileSideWindow||e.isInputVisible!==this.props.isInputVisible||e.showToolbox!==this.props.showToolbox||e.maxAgentReadId!==this.props.maxAgentReadId||e.isSSOLoggedIn!==this.props.isSSOLoggedIn||e.isChatting!==this.props.isChatting||e.isMessageScrollBottom!==this.props.isMessageScrollBottom||JSON.stringify(e.ratingForm.fields)!==JSON.stringify(this.props.ratingForm.fields)||e.ratingForm.submitStatus!==this.props.ratingForm.submitStatus||e.width!==this.props.width||e.popupBubble!==this.props.popupBubble},n.componentDidUpdate=function(e){var t=this,n=e.ifHideBio;this.props.ifHideBio!==n&&(this.canUpdateHideBio=!1,setTimeout((function(){t.canUpdateHideBio=!0}),625)),this.hasAnimation&&CV(this.element,"window__chat--animation")},n.componentWillUnmount=function(){H.removeEventListener("beforeunload",this.beforeunload),!this.props.isPrint&&this.io&&this.io.disconnect()},n.componentWillReceiveProps=function(e){var t=this;e.isInputVisible!==this.props.isInputVisible&&e.isInputVisible&&setTimeout((function(){t.scrollDown()}),625),this.props.messages.filter((function(e){return e.type!==Xt&&e.type!==Pn})).length0&&!this.props.ifHideBio&&this.props.onUpdateScrollStatus(!0),this.canUpdateHideBio&&0===t&&this.props.ifHideBio&&this.props.onUpdateScrollStatus(!1)}},n.beforeunload=function(){Gb(this.props.chatGuid)},n.scrollDown=function(e){var t=this;if(this.element&&(this.props.isMessageScrollBottom||e)){if(!this.props.isChatting&&!this.props.isPostChatVisible){var n=this.props.messages.length>1?this.props.messages[this.props.messages.length-1]:null;if(n&&n.type===Dn)return}var i=this.element.querySelector(".window__chatAgent:last-child");i&&this.hasNewMessage&&!i.querySelector(".dot")&&!i.querySelector(".chat-message--bot_loading")&&(!e||e&&"click"!==e.type)?setTimeout((function(){i.scrollIntoView({behavior:"instant"}),t.hasNewMessage=!1}),500):this.element.scrollTop=this.element.scrollHeight}},n.render=function(){var e,t=this,n=this.props,o=n.greeting,a=n.height,r=n.hasMobileSideWindow,s=n.bottom,c=n.ifShowBio;n.ifHideBio;var d,l,u=z(n,yV),p=u.isInputVisible,f=!1;if(u.windowStyle===gm){f=!0;var g=0;if(this.element){var w,m=this.element.nextElementSibling;(w=this.props.ifShowQuickReply?m.nextSibling:m)&&"chat-input"===w.id&&(g=w.getBoundingClientRect().height)}if(u.isMobile){if(d=a-20,u.isIpad&&(d-=s),p&&(d-=Math.max(g,70)),r){d-=45}}else{d=a-35,p&&(d-=Math.max(g,47))}this.props.showAdaptiveMinimizeIcon&&(d-=105)}u.isPrint&&(d="");var b=i("div",null,(l="
 
"!==o&&!!o)&&i(xV,{isBubble:f,greeting:o}),i(_V,ge({},u,{scrollDown:this.scrollDown}))),v=i(_V,ge({},u,{scrollDown:this.scrollDown})),_=ye(this.context),x={maxHeight:d};return i("div",{id:"window-chat-wrapper",ref:function(e){t.element=e},className:h("chat window__chat window__chat--animation",(null==(e=this.props.header)?void 0:e.banner)&&"window__chat--withBanner",c?"window__chat--withBio":"window__chat--noBio",this.props.ifShowQuickReply&&"window__chat--withQuickReply"),onScroll:this.onScroll,onTouchEnd:this.onTouch,style:x},i("h1",{className:"visually-hidden","aria-hidden":!0},"Chat window"),i(vT,{id:"greeting"+this.props.chatGuid,message:o,isHtml:!0}),!(f&&u.isMobile)&&l&&i(xV,{isBubble:f,greeting:o}),f&&u.isMobile?b:v,i("div",{ref:function(e){t.refBottomElement=e},style:{height:5,padding:0}}),!this.props.isMessageScrollBottom&&!u.isPrint&&i("button",{onClick:this.scrollDown,"aria-label":_.scrollToBottom,className:h("btnScrollToBottom",{btnScrollToBottomWithBadge:this.props.unReadMessageCount>0}),title:_.scrollToBottom},this.props.unReadMessageCount>0&&i("span",null,this.props.unReadMessageCount),i("svg",{viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1},i("path",{d:"M4.48356 5.14645C4.2883 4.95118 3.97171 4.95118 3.77645 5.14645C3.58119 5.34171 3.58119 5.65829 3.77645 5.85355L9.64264 11.7197C9.8379 11.915 10.1545 11.915 10.3497 11.7197L16.2159 5.85355C16.4112 5.65829 16.4112 5.34171 16.2159 5.14645C16.0207 4.95118 15.7041 4.95118 15.5088 5.14645L9.99619 10.6591L4.48356 5.14645ZM16 15.1338C16.2761 15.1338 16.5 14.9099 16.5 14.6338C16.5 14.3576 16.2761 14.1338 16 14.1338H4C3.72386 14.1338 3.5 14.3576 3.5 14.6338C3.5 14.9099 3.72386 15.1338 4 15.1338H16Z"}))))},t}(p),MV=function(){return{type:EM,payload:{type:"locationCancelled"}}},AV=function(){return{type:zM,payload:{type:"visitorSSOCancelled"}}},BV=function(e){var t=e.fromSource;return{type:LM,payload:{type:"meetingCancelled",fromSource:t}}},OV=function(e){var t=e.eventUri,n=e.inviteeUri,i=e.fromSource;return{type:HM,payload:{bookMeetingEventUri:t,bookMeetingEventInviteeUri:n,fromSource:i,type:"meetingSubmitted"}}},TV=function(){return{type:qM,payload:{type:"formCancelled"}}},jV=function(e){var t=e.fromSource;return{type:UM,payload:{fromSource:t,type:"microsoftBooking"}}},FV=function(e,t){return{type:e,guid:ne(),time:new Date,content:t,sender:{type:cp}}},VV=g((function(e){var t=wf(e),n=_f(e).length;t.filter((function(e){return e.type===Hn||e.type===Ni||e.type===Di})).length>0&&(n+=1);var i=function(e){var t;return 1===(null==(t=Zh(e))?void 0:t.type)}(e),o=ph(e),a=Yw(e),r=Ew(e),s=of(e),c=function(e){return e.window&&"chatWindowGreetingMessage"in e.window?e.window.chatWindowGreetingMessage:e.entities.campaigns.entities[e.window.id].greetingMessages.chatWindowGreetingMessage}(e);!c||"
 
"!==c&&"
"!==c&&"
"!==c||(c="");var d=function(e){var t=jw(e).url;return Z(t)}(e),l=Ev(e),u=function(e,t){return Y(e,"entities.campaigns.entities."+t+".chatWindowIfCanDownloadChatDetail")}(e,l),p=im(e,l),h=Ev(e),f=Yh(e)===wp,g=Ov(e),w=f?g.filter((function(e){return"rating"===e.type||"comment"===e.type})):g,m=jv(e,f?yp:vp);return{isAIAgent:i,siteId:Mw(e),transferSiteId:Aw(e),KbHost:d,height:a,isPopout:o,isMobile:r,isIpad:zw(e),ifShowBio:xg(e),hasMobileSideWindow:ig(e)&&r,windowStyle:Qv(e,s),greeting:c||"",messages:t,ifShowName:n>1,gotoOfflineLinkText:x_(e,"eventLinkText")||"here",startChatAgainText:x_(e,"startChatAgain",h),emailTranscriptText:x_(e,"buttonTranscript",h),translatedTag:x_(e,"translation"),originalTag:x_(e,"original"),agentTypingText:x_(e,"eventOperatorIsTyping",h),chatStatus:Yh(e),ifShowAvatar:Jv(e)===gm||l_(e),chatGuid:yf(e),ifHideBio:$f(e),isInputVisible:Nf(e),mainColor:cf(e),bottom:Og(e),showAdaptiveMinimizeIcon:O_(e),showToolbox:Eg(e),onMounted:function(){bS("livechat.chat.display",s)},maxAgentReadId:Fg(e),ifEnableVisitorSeeMsgSentSeen:jg(e,h),msgNotSeenByAgent:x_(e,"msgNotSeenByAgent",h),isChattingWithAgent:Yh(e)===wp&&!pf(e)&&!kv(e)||Yh(e)===gp||Yh(e)===fp||Yh(e)===mp&&0!==_f(e).length,languages:v_(e),ifShowQuickReply:!!Wg(e),agents:V_(e),prechatDepartment:F_(e),startTime:qg(e),endTime:Ug(e),campaignId:kw(e),transferCampaignId:Ev(e),originalMessages:mf(e),chatWindowIfCanDownloadChatDetail:u,ifCanEmailTranscript:p,isSSOLoggedIn:null!==Zm(nv)&&Zm(nv),isChatting:f,isPopoutWindow:ph(e),isFreemiumSignupFormInsideChatWindowEnabled:Gv(e),isChatEnded:W_(e)===uu,prechatEmail:tg(e,"email"),customizeFileService:I_(e),standbyFileService:M_(e),apiHost:A_(e),isMessageScrollBottom:$g(e),unReadMessageCount:ew(e),ratingForm:{fields:w,greeting:o_(e,vp),buttonText:r_(e,vp),submitStatus:m,ratingValue:tg(e,"rating"),commentValue:tg(e,"comment")},isHorizontal:a_(e,vp),width:tw(e),isPostChatVisible:nw(e),onPostChatMounted:function(){bS("livechat.postChat.display",s)},enableGa:Yv(e),ifShowTranslationOnly:Lh(e),resourceOrigin:xh(e),visitorDraft:kf(e),popupBubble:Jg(e),isKeyboardFocus:em(e),header:uT(Jv(e),e,sf(e))}}),(function(e){return{submitSecureForm:function(t,n){var i=FV(hi,""+t+R+n);e(wk([i]))},cancelSecureForm:function(t){e(iy(t));var n=FV(fi,"");e(wk([n]))},getSecureFormFailure:function(){var t=FV(gi,"");e(wk([t]))},onOfflineLinkClick:function(t){t.preventDefault(),e(Hx(ip))},onChatWithAgentClick:function(){e(py())},onRateClick:function(t,n,i,o,a,r){e(fy(n,t,i,o,a,r))},onStartChatAgainClick:function(t){t.preventDefault(),e(xy())},onEmailTranscriptClick:function(t){t.preventDefault(),e(WC(!0))},onUpdateScrollStatus:function(t){e(Cy(t))},onChatbotTimeout:function(t){e(Yy(t))},onKbLinkClick:function(t,n){e(kk(t,n))},onSideWindowLinkClick:function(t){var n=t.url,i=t.type,o=t.title,a=t.iframe,r=t.noFocus,s=t.botId;e(iC(n,i,o,a,r,s))},onCloseBotSignWindow:function(){e(oC())},onWebViewLinkClick:function(t){e($y(t))},onIntentLinkClick:function(t,n,i,o,a,r){e(xC(r)),e(hy({id:t,name:n,clickType:i,agentId:o,botId:a}))},onPushPage:function(t){e(Jy(t))},onSSORequestClick:function(t){t.isPopoutWindow?e(_C()):t.content.ifOpenSignInPageEmbeddedWindow?e($y(t)):e(bC())},onTaskBotQuickReplyClick:function(t,n){bS("livechat.chat.visitor.input",t),e(Jx(t)),e($I(n))},onTaskBotCollectInput:function(t,n){bS("livechat.chat.visitor.input",t),setTimeout((function(){e(Jx(t)),e($I(n))}),1350)},onChatbotActionSendText:function(t){var n=t.text,i=t.messageGuid,o=t.delay,a=void 0===o?0:o,r=t.textType,s=t.isCollect,c=void 0!==s&&s,d=t.displayedText,l=t.quickReplyNextActionId;bS("livechat.chat.visitor.input",n),setTimeout((function(){e(Jx(n,!1,{textType:r,isCollect:c,displayedText:d,quickReplyNextActionId:l})),i&&e(xC(i))}),a)},onChatbotActionChatWithAgentoptions:function(t){t.text;var n=t.messageGuid;e(py()),e(xC(n)),bS("livechat.chat.visitor.chatwithagent")},hideQuickReply:function(){e(mC())},onInputAreaVisibleChange:function(t){e(TC(t))},onInputAreaDisableChange:function(t){e(jC(t))},onReadNewMsg:function(){e(Sk()),e(VC())},updateIsMessageScrollBottom:function(t){e(FC(t))},onBotFeedback:function(t){e(function(e){return{type:RS,payload:Object.assign({},e,{type:"botFeedback"})}}(t))},onChange:function(t,n,i){e(Ok(vp,t.id,n)),i||bS("livechat.postChat.field.change",Object.assign({},t,{value:n}))},onError:function(t,n){e(Tk(vp,t.id,n))},onBlur:function(t,n){e(Fk(vp,t.id)),n||bS("livechat.postChat.field.blur",Object.assign({},t,{isFocused:!1}))},onFocus:function(t,n){e(jk(vp,t.id)),n||bS("livechat.postChat.field.focus",Object.assign({},t,{isFocused:!0}))},onSubmit:function(t){e(Vk(vp)),e(qk(vp,1500,t)).then((function(){return e(NC())}))},onSubmitRating:function(t){e(Vk(yp)),bS("livechat.chat.visitor.rate",t),e(tk(t)),e({type:Os,payload:t})},onValidateAll:function(t){e(Rk(Cp,t))},updatePostChatVisible:function(t){e(PC(t))},onPreviewImage:function(t,n){e(YC({url:t,name:n}))},onChatbotCanvasAuthorization:function(t){var n=t.status,i=t.fromSource;e(function(e){var t=e.status,n=e.fromSource;return{type:GM,payload:{type:"canvasAuthorization",status:t,fromSource:n}}}({status:n,fromSource:i}))}}}))(IV),WV=function(e){function t(){var t;return(t=e.call(this)||this).state={showIcon:!1,animated:!1},t.animated=function(){t.setState({animated:!0})},t}he(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;this.timer=setTimeout((function(){return e.setState({showIcon:!0})}),200),be(this.element,this.animated)},n.componentWillUnmount=function(){clearTimeout(this.timer),at(this.element,this.animated)},n.render=function(){var e=this,t=this.props,n=ye(this.context);return i("div",{className:h(this.state.animated&&"window__form--animation"),ref:function(t){e.element=t}},t.errorMessage&&i("div",{className:"window__formError"},t.errorMessage),this.state.showIcon&&!t.errorMessage&&i(Fe,{type:Xe,className:"svg--loadingChat",viewBox:"0 0 100 100","aria-label":n.loading,"aria-busy":"true"}))},t}(p),NV=g((function(e){return{errorMessage:If(e),windowStyle:Qv(e,kw(e))}}))(WV),DV=Oe((function(){return import("./SideWindow.c6f85840.js")})),PV=function(e){return i(Te,{key:"sideWindow",style:{background:"#f2f2f2",display:"flex",alignItems:"center",position:"absolute",boxShadow:"0 5px 15px 0 rgba(0,0,0,.15)",width:"calc(100% - 15px)",bottom:12.5,height:"calc(100% - 15px)",borderRadius:5,right:0}},i(je,null,i(DV,e)))},RV=Oe((function(){return import("./KBsearch.0db8ce1b.js")}));Oe((function(){return import("./SideWindow.c6f85840.js")}));var EV,zV=Oe((function(){return import("./ChatInput.6fab6fee.js")})),LV=Oe((function(){return import("./WebView.de4a1f92.js")})),HV=Oe((function(){return import("./PreLogin.e3fb2ca6.js")})),qV=Oe((function(){return import("./SSOLogin.aa5f3a5e.js")})),UV=((kV={})[ep]=GF,kV[np]=KF,kV[ip]=YF,kV[tp]=VV,kV[Xu]=HV,kV[$u]=qV,kV[Ju]=NV,kV[op]=RV,kV),GV=((SV={})[ep]={timespan:0,duration:20},SV[np]={timespan:0,duration:20},SV[ip]={timespan:0,duration:20},SV[tp]={timespan:0,duration:2},SV[Xu]=null,SV[$u]=null,SV[Ju]=null,SV[op]={timespan:0,duration:20},SV),KV=function(){},YV=g((function(e){var t,n=tf(e),o=UV[n],a=Zg(e);n!==$u||a||(o=HV);var r=Bw(e),s=r===nu,c=zw(e),d=Yh(e),l=n===Xu||n===$u||n===op?i(Te,null,i(je,null,i(o))):i(o);t=n===$u?a?[l]:[i(IF,null),l]:[i(IF,null),l,Nf(e)&&i(Te,null,i(je,null,i(zV,{isIPad:c}))),i(TF,null),Df(e)&&i(Te,null,i(je,null,i(LV,null)))].filter((function(e){return e}));var u=d===wp,p=Jv(e),h=Xv(e),f=Af(e),g=If(e),w=Of(e),m=s_(e,w),b=c_(e),v=GV[n];d!==mp||n!==tp&&n!==np||(v={timespan:0,duration:10});var _=d===mp,x=d===mp?180:void 0,y=lg(e),C=0,k=ig(e),S=k?PV:null;p===gm&&(C=Math.random());var I=Qw(e),M=Yw(e),A=kw(e),B=Tm(e,A),O=ym(e,A),T=vg(e),j=function(e){return e.page.orientation}(e),F=uT(p,e,rh(e,A)),V=Iw(e)[A],W=O_(e),N=Tg(e),D=Og(e),P=wf(e),R=Gg(e),E=function(e){return e.configuration.visitorsideCustomCSS}(e),z=Ev(e),L=$g(e);return{isPoppedOut:ph(e),fontCSS:Ua(te(_h,e)),mainColor:cf(e),background:df(e),isFocused:wg(e),children:t,windowTab:n,windowStatus:r,windowStyle:p,warning:f,error:g,isMobile:Ew(e),isIPad:c,showChatWindowInSidewindow:sg(e),title:u?m:void 0,seed:C,hOnline:v,writeReply:b,ifShowSideWindow:k,sideWindow:S,customCss:y,amyCustomCSS:E,width:I,height:M,isRightToLeft:T,iframeStyle:B,orientation:j,showAvatar:!!(F.avatars||F.avatar||F.agent&&F.agent.avatar),isMinimized:s,iconStyle:O.svg,cornerStyle:h,languageTag:__(e),online:V,showAdaptiveMinimizeIcon:W,isCurrentAdaptiveButton:B_(e),right:N,bottom:D,ifEnableVisitorSeeMsgSentSeen:jg(e,z),maxVisitorReadId:Vg(e),maxMsgId:Sf(e),maxGuid:R,messages:P,chatStatus:d,showToolbox:Eg(e),hDelay:_,hStop:x,brandConfig:Dh(e),isSideWindowSelectedTabKb:cg(e)===Op,isMessageScrollBottom:L,isKeyboardFocus:em(e),isWaitingFromChatBotToAgent:Jf(e),header:F}}),(function(e){return{dispatch:e,onMounted:function(){e(Ky())},onErrorClose:function(){e(uy())},onWarningClose:function(){e(sy())},onFocusToggle:function(t){e(ay(t))},onPositionChange:function(t,n){e(rC(t,n))},onReadNewMsg:function(t){e(Sk(t))},hOnInit:function(){e(E_(!0))},hOnStopped:function(){e(E_(!1))},minimize:function(){e(ux())},updateMainWindowWidth:function(t){e(DC(t))},setIsKeyboardFocus:function(t){e(Ix(t))}}}),(function(e,t){var n=e.windowTab,i=t.dispatch,o=KV;return n===tp?o=function(){return i(ek())}:n===ep||n===op?o=function(){return i(hk())}:n===np?o=function(){return i(ek())}:n===ip&&(o=function(){return i(fk())}),Object.assign({},e,t,{hCallback:o})}))(qO),QV=function(e){function t(){return e.apply(this,arguments)||this}he(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return this.props.message!==e.message},n.render=function(){return i("div",{"aria-live":"polite",style:{position:"absolute",left:-1e4,top:-1e4,width:1,height:1}},this.props.message)},t}(p),ZV=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={message:"",htmlMessage:""},n.pendingMessage=[],n.announcedMessageIds={},n.announce=n.announce.bind(fe(n)),n.removeMessage=n.removeMessage.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.timer&&clearTimeout(this.timer),this.htmlTimer&&clearTimeout(this.htmlTimer)},n.shouldComponentUpdate=function(e,t){return this.props.children!==e.children||this.state.message!==t.message},n.announce=function(e,t,n){var i,o,a=this;this.announcedMessageIds[e]||(this.announcedMessageIds[e]=!0,this.pendingMessage.push(n?(i=t,(o=document.createElement("div")).innerHTML=i,o.textContent||o.innerHTML):t),this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){var e=a.pendingMessage.join("\n");a.pendingMessage=[],a.setState({message:e})}),100))},n.removeMessage=function(e,t){this.announcedMessageIds[e]&&(this.announcedMessageIds[e]=void 0,t&&this.state.message===t&&this.setState({message:""}))},n.render=function(){return i(bT.Provider,{value:{announce:this.announce,removeMessage:this.removeMessage}},i(QV,{message:this.state.message}),this.props.children)},t}(p),JV=Oe((function(){return import("./ImagePinch.841e3498.js")})),XV=function(e){return i(Te,null,i(je,null,i(JV,e)))},$V=function(e,t){var n=.95*H.document.documentElement.clientWidth,i=.95*H.document.documentElement.clientHeight,o=1;return{width:e/(o=e/t>=n/i?e>=n?e/n:1:t>=i?t/i:1),height:t/o}},eW=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={loading:!0,rotation:1},n.hidePreview=n.hidePreview.bind(fe(n)),n.rotate=n.rotate.bind(fe(n)),n.onImgLoad=n.onImgLoad.bind(fe(n)),n.setImageSize=n.setImageSize.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.onImgLoad=function(e){var t=e.target.naturalWidth,n=e.target.naturalHeight;this.setState({originalWidth:t,originalHeight:n},this.setImageSize)},n.setImageSize=function(){if(this.state.rotation%2==1){var e=$V(this.state.originalWidth,this.state.originalHeight),t=e.width,n=e.height;this.image.style.width=t+"px",this.image.style.height=n+"px"}else{var i=$V(this.state.originalHeight,this.state.originalWidth),o=i.width,a=i.height;this.image.style.width=a+"px",this.image.style.height=o+"px"}},n.rotate=function(e){var t=this;e.stopPropagation(),this.container.style.overflow="hidden",this.setState({rotation:this.state.rotation+1},(function(){t.container.style.overflow="",t.setImageSize()})),this.image.style.transform="rotate(-"+90*this.state.rotation+"deg)"},n.hidePreview=function(e){e.target!==this.image&&(this.props.onResetPreviewImage(),this.setState({rotation:1}))},n.render=function(){var e=this,t=this.props,n=t.url,o=t.labels,a=t.name,r=t.isMobile;if(!n)return null;var s=ye(this.context);return i(m,null,i("style",null,".preview-modal {\n position: absolute;\n background: rgba(0, 0, 0, 0.5);\n z-index: 2147483647;\n width: 100%;\n height: 100%;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n }\n .preview-modal img {\n transition: 160ms ease-in-out;\n }\n .preview-operation {\n position: absolute;\n top: 10px;\n right: 15px;\n background-color: #fff;\n box-shadow: 0px 1px 6px 0px rgba(0,0,0,0.16);\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 4px;\n z-index: 99;\n }\n .preview-operation button {\n outline: none;\n border: none;\n background: none;\n width: 28px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n padding: 2px 4px;\n }\n .preview-operation button:hover,\n .preview-operation button:active {\n background-color: rgba(33,33,33,0.08);\n border-radius: 4px;\n }\n .preview-operation svg {\n width: 20px;\n height: 20px;\n fill: #000;\n }"),i("div",{className:"preview-modal",onClick:this.hidePreview,ref:function(t){e.container=t}},i("div",{className:"preview-operation"},i("button",{"aria-label":s.rotate,title:s.rotate,onClick:this.rotate},i(Fe,{type:mt,ariaHidden:!0})),i("button",{"aria-label":o.popout,title:o.popout,onClick:function(){H.open(n)}},i(Fe,{type:et,ariaHidden:!0})),i("button",{"aria-label":o.close,title:o.close,onClick:this.hidePreview},i(Fe,{type:Ve,ariaHidden:!0}))),r?i(XV,null,i("img",{src:n,alt:a,ref:function(t){e.image=t},onLoad:this.onImgLoad})):i("img",{src:n,alt:a,ref:function(t){e.image=t},onLoad:this.onImgLoad})))},t}(p),tW=HO(eW),nW=g((function(e){var t=lw(e),n=v_(e);return Object.assign({},t,{labels:{close:n.buttonClose,popout:n.embeddedWindowPopup},languageTag:__(e),isMobile:Ew(e)})}),(function(e){return{onResetPreviewImage:function(){e(YC({}))}}}))(tW),iW="chatButton",oW="chatButton--ripple",aW=e(1)(Ee),rW=e(1)((function(e,t,n){var i="";return t&&(i=".chatButton--avatar:after{background-image:url("+t+");background-color:#f4f5f6;background-size: 52px 52px;}"),[[qa(oO,e),".online .chatButton:after{","background:"+aW(e),"}",".online ."+oW+"."+iW+":before{","animation:at-ripple 16.417s linear 3.625s infinite","}",".offline .chatButton:after{","background:"+aW("#bbb"),"}",".innerIcon {","fill:"+aW(e),"}"].join(""),i,n]})),sW=e(1)(bt),cW=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={ifReceiveNewMessage:!0,customizeIcon:""},n.removeAnimationClass=n.removeAnimationClass.bind(fe(n)),n.getCustomSvgIcon=n.getCustomSvgIcon.bind(fe(n)),n.shouldComponentUpdate=YB(fe(n),["iconStyle","count","href","status","avatar","online","mainColor","showArrowDown","customCSS","ifUseCustomizeIcon","customizeIcon","isKeyboardFocus"],["ifReceiveNewMessage","customizeIcon"]),n.handleReFocus=n.handleReFocus.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;setTimeout((function(){e.button&&(e.button.style.zIndex=pO)}),0),this.button.addEventListener("mouseenter",(function(){if(e.icon&&e.props.online&&(!e.props.ifUseCustomizeIcon||!e.props.customizeIcon)){e.icon.classList.add("moveIn"),e.icon.classList.remove("moveOut");var t=e.props.online?e.props.mainColor:"#bbb";e.dotContainer.innerHTML=''}})),this.button.addEventListener("mouseleave",(function(){!e.icon||!e.props.online||e.props.ifUseCustomizeIcon&&e.props.customizeIcon||(e.icon.classList.remove("moveIn"),e.icon.classList.add("moveOut"),e.dotContainer.innerHTML="")})),this.props.status===iu&&this.props.isKeyboardFocus&&this.buttonEl&&this.buttonEl.focus()},n.componentWillReceiveProps=function(e){e.status===iu&&this.button&&(this.button.style.zIndex=pO+1),e.count!==this.props.count&&this.setState({ifReceiveNewMessage:!0}),e.status===tu&&this.props.status===nu&&e.isKeyboardFocus&&this.buttonEl&&this.buttonEl.focus()},n.getCustomSvgIcon=function(e){var t=this;if(""!==e)if(e.indexOf("=0)this.setState({customizeIcon:e});else{var n=e.indexOf("http")>=0?e:""+this.props.chatserverUrl+e;bM(n).then((function(e){t.setState({customizeIcon:e.output})}))}},n.removeAnimationClass=function(){this.setState({ifReceiveNewMessage:!1})},n.handleReFocus=function(e){var t=this.props.status;if([eu,tu].includes(t)&&9===e.keyCode){var n=top.frames.chat_window_container.contentWindow,i=top.frames.side_window_container&&top.frames.side_window_container.contentWindow,o=i&&i.document.querySelector(".sideWindow");if(o)return void o.focus();if(n){var a=n.document.querySelector(".whole-window");a&&a.focus()}}},n.render=function(){var e=this,t=this.props,n=t.onClick;t.href;var o=t.count,a=t.status,r=t.avatar,s=t.online,c=t.ifRipple,d=t.isMobile;t.iconStyle;var l=t.mainColor,u=t.showArrowDown,p=t.customCSS,f=t.onTouchStart,g=t.onMouseEnter,w=t.ifUseCustomizeIcon,m=rW(l,r,p),b=ye(this.context),v=sW(s?l:"#bbb"),_=v.startColor,x=v.stopColor,y=this.props.customizeIcon;return i("div",{className:h("chatButtonContainer",d&&"chatButtonContainer--mobile",a===nu&&r&&"chatButton--avatar",s?"online":"offline"),ref:function(t){e.button=t}},i(sO,{css:m,id:"adaptive"}),i("a",{className:h(c&&oW,iW),href:"",onClick:n,onTouchStart:f,onMouseEnter:g,"aria-label":this.props["aria-label"],role:"button",onKeyDown:this.handleReFocus,ref:function(t){e.buttonEl=t}},u?i("svg",{x:"0px",y:"0px",width:"28px",height:"28px",viewBox:"0 0 32 32",enableBackground:"new 0 0 32 32",focusable:"false",className:"chatButton__svg-chat","aria-hidden":"true"},i("path",{className:"chatButton__svg-chat-path",stroke:"#fff",d:"M25.8,14.9c-0.5-0.4-1.3-0.3-1.7,0.2l-6,6l-6.2-6.1c-0.6-0.5-1.3-0.6-1.7-0.2c-0.3,0.5-0.3,1.2,0.2,1.7l6.6,6.5c0.2,0.2,0.4,0.3,0.6,0.4h0.1c0.1,0,0.1,0,0.2,0c0.4,0,0.8-0.1,1.1-0.4l6.6-6.6C26,16,26.2,15.4,25.8,14.9z"})):w&&y?i("div",{className:"chatButton__svg-container",dangerouslySetInnerHTML:{__html:y}}):i("div",{className:"svg-container",ref:function(t){e.icon=t}},i("svg",{x:"0px",y:"0px",width:"28px",height:"28px",viewBox:"0 0 32 32",enableBackground:"new 0 0 32 32",focusable:"false",className:"outIcon","aria-hidden":"true"},i("g",null,i("defs",null,i("linearGradient",{id:"linear"},i("stop",{offset:"0%","stop-color":_}),i("stop",{offset:"100%","stop-color":x}))),i("path",{fill:"#fff",className:"chatButton__svg-chat-path",d:"M16.007 0c-8.299 0-14.023 6.836-14.023 14.024 0 5.88 2.982 8.636 4.107 9.916 0 0 4.093 4.585 12.068 8.060v-4.121c4.783-0.563 11.858-5.289 11.858-13.855-0.001-8.271-6.794-14.024-14.010-14.024z"}),i("path",{fill:"url(#linear)",ref:function(t){e.path=t},className:"innerIcon",d:"M18.035 22.372v3.657c-0.014 0-2.729-1.364-4.276-2.574-2.926-2.236-6.498-4.416-6.498-9.438 0-4.993 4.149-8.622 8.622-8.622 0.005 0 0.011-0 0.017-0 4.744 0 8.591 3.838 8.605 8.579v0.043c0 5.162-4.164 7.779-6.47 8.355z"}))),i("div",{className:"innerDotContainer",ref:function(t){e.dotContainer=t}})),!!o&&o>0&&i("div",{ref:function(t){t&&(e.newMessageCount=t)},className:h("chatButton--newMessage",this.state.ifReceiveNewMessage&&"chatButton--newMessageAnimation"),onAnimationEnd:this.removeAnimationClass,"aria-label":b.unread},o)))},t}(p),dW=Object.freeze({__proto__:null,default:cW}),lW={width:88,height:88,position:"fixed",border:"none",zIndex:pO},uW=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={showNotify:!0},n.onClick=n.onClick.bind(fe(n)),n.onAccept=n.onAccept.bind(fe(n)),n.onRefuse=n.onRefuse.bind(fe(n)),n}he(t,e);var n=t.prototype;return n.componentWillReceiveProps=function(e){e.unread!==this.props.unread&&this.setState({showNotify:!0})},n.onAccept=function(e,t,n){this.props.onMaximize(this.props.windowTab),t&&this.props.onSend(t,n)},n.onRefuse=function(){this.setState({showNotify:!1}),this.props.isBubbleManualInvited&&this.props.onRefuse()},n.onClick=function(e){e.preventDefault(),(this.props.windowStatus===nu?this.props.onMaximize:this.props.onMinimize)(this.props.windowTab)},n.render=function(){var e=this.props,t=e.windowStatus===nu,n=this.state.showNotify&&e.NotifyBubble,o=this.props.isBubbleManualInvited?e.refuseText:e.closeText,a=this.props.isBubbleManualInvited?e.acceptText:e.openText,r=!1,s=ye(this.context),c=s.closeChatWindow;t&&(c=s.openChatWindow),t||(r=!0);var d=this.onAccept,l=this.onRefuse,u=e.windowStyle===gm?350:e.chatWindowWidth,p=Math.min(e.right,n?e.windowWidth-270-25:e.windowWidth-u)||0,h=Math.min(e.windowHeight-87.5,e.chatWindowHeight),f=Math.min(e.bottom,n?e.windowHeight-177.5-87.5:e.windowHeight-h-87.5);e.windowStyle!==gm||n||(f=0);var g=e.isRightToLeft,w=e.fontCSS;return i("div",null,n&&i(e.NotifyBubble,{onAccept:d,onRefuse:l,xText:o,acceptText:a,fontCSS:w,isRightToLeft:g}),i(lO,{style:Object.assign({},lW,{right:p,bottom:f}),title:s.minimizeBtn,id:"chat_button_adaptive_container",languageTag:e.languageTag},i(cW,{isMobile:e.isMobile,avatar:e.avatar,onClick:this.onClick,count:e.unread,status:e.windowStatus,online:e.online,iconStyle:e.iconStyle,showArrowDown:r,mainColor:e.buttonColor,"aria-label":c,customCSS:e.customCSS,ifUseCustomizeIcon:e.isCustomizedAdaptiveButtonUsed,customizeIcon:e.customizeIcon,isKeyboardFocus:e.isKeyboardFocus})))},t}(p),pW=Oe((function(){return import("./Bar.20ad79b8.js")})),hW=HO((function(e){return e.showAdaptiveMinimizeIcon?i(uW,e):i(Te,{fallback:i("div",null)},i(je,null,i(pW,e)))})),fW=Oe((function(){return import("./NotifyBubble.f6e290b4.js")})),gW=function(e){return i(Te,{fallback:i("div",null)},i(je,null,i(fW,e)))};var wW,mW=((EV={})[tp]="livechat.chat",EV[ep]="livechat.prechat",EV[np]="livechat.postChat",EV[ip]="livechat.offlineMessage",EV),bW=g((function(e){var t=function(e){var t,n=Jv(e);return u_(e)&&n!==gm&&(t=Uf(e)),t}(e),n=of(e),i=tf(e),o=Bw(e),a=function(e){if(Bw(e)===nu)return Of(e)}(e),r=function(e){var t=kw(e);return Iw(e)[t]}(e),s=function(e){var t=kw(e);return ym(e,t).svg}(e),c=cf(e),d=O_(e),l=ym(e,n),u=l.color,p=Xv(e),h=j_(e),f=s_(e,a),g=Tg(e),w=Og(e),m=o===nu,b=g_(e),v=function(e){return(Vw(e)||{}).invitationType===bu}(e),_=lg(e),x=__(e),y=kw(e),C=Tm(e,y),k=C&&C.width,S=Qw(e),I=C&&C.height,M=Yw(e),A=Jv(e);return{isMobile:Ew(e),isIPad:zw(e),avatar:t,windowTab:i,windowStatus:o,unread:a,online:r,iconStyle:s,mainColor:c,buttonColor:u,showAdaptiveMinimizeIcon:d,cornerStyle:p,text:h,notification:f,right:g,bottom:w,isBubbleManualInvited:b&&v,customCSS:_,NotifyBubble:m?gW:null,languageTag:x,languages:v_(e),openText:$[x].openChatWindow,acceptText:$[x].acceptInv,refuseText:$[x].refuseInv,closeText:$[x].closeNewMsg,chatWindowWidth:k,windowWidth:S,windowStyle:A,isPoppedOut:ph(e),fontCSS:Ua(te(_h,e)),isRightToLeft:vg(e),chatWindowHeight:I,windowHeight:M,isCustomizedAdaptiveButtonUsed:l.isCustomizedAdaptiveButtonUsed,customizeIcon:l.customizeIcon,shouldFocusBar:Xw(e),isKeyboardFocus:em(e)}}),(function(e){return{onMinimize:function(t){var n=mW[t];n&&bS(n+".minimize"),e(ux())},onMaximize:function(t){var n=mW[t];n&&bS(n+".restore"),setTimeout((function(){return e(hx())}),0)},onRefuse:function(){e(Ly())},onSend:function(t,n){e(cC(t,n))},onBlurMinimize:function(){e(fx(!1))}}}))(hW),vW=function(e){return i("div",{style:{position:"absolute",display:"flex",alignItems:"center",flexDirection:"column",top:"50%",left:"50%",transform:"translate(-50%, -50%)",lineHeight:"80px"}},i("div",{style:{fontSize:"84px",fontWeight:"700"}},"Oops!"),i("div",{style:{fontSize:"40px",fontWeight:"300"}},e.message))},_W=Oe((function(){return import("./Button.61d6d46f.js")})),xW=Oe((function(){return import("./Invitation.bd938b5f.js")})),yW=g((function(e){var t,n=lh(e),i=function(e){return e.app.error}(e),o=ph(e);if(!n)return{isReady:n,error:i,isPoppedOut:o};var a=O_(e);return{isReady:n,enableGa:Yv(e),tab:tf(e),invitation:bv(e),guid:yf(e),ban:hh(e),isCampaignReady:ef(e),windowStatus:Bw(e),isPoppedOut:ph(e),customJs:w_(e),chatStatus:Yh(e),showAdaptiveMinimizeIcon:a,languageMaxmized:null==(t=$[__(e)])?void 0:t.maximized}}))((function(e){var t=e.isReady,n=e.windowStatus,o=e.tab,a=e.enableGa,r=e.customJs,s=e.chatStatus,c=e.error,d=e.invitation,l=e.guid,u=e.ban,p=e.isCampaignReady,h=e.isPoppedOut,f=e.showAdaptiveMinimizeIcon,g=e.languageMaxmized;if(e.previewImageUrl,!t)return c&&h?i(vW,{message:c}):null;if(u)return null;var w=n!==iu,m=n===nu,b=m;return m||(b=f),i("div",null,r&&i($B,{key:"js",textContent:r,name:"script",type:"text/javascript",nonce:"setupVisitorSideCustomJS"}),i(JB,{enableGa:a,windowTab:o,invitation:d,guid:l,chatStatus:s}),!h&&i(Te,{fallback:i("div",null)},i(je,{isShowError:!1},i(_W,null))),p&&w&&i(ZV,{key:"chatwindow"},i(YV,null)),i(ZV,{key:"invitation"},d&&d.type===bu&&i(vT,{id:"invitation",message:(d.agent?d.agent+": ":"")+d.message+"}",isHtml:!0,removeMessageWhenUnmount:!0}),d&&i(Te,{fallback:i("div",null)},i(je,{isShowError:!1},i(xW,null))),b&&i(bW,null),!m&&!b&&w&&i(vT,{id:"restoreChatWindow",message:g,removeMessageWhenUnmount:!0})),p&&i(nW,null))})),CW=function(e){var t=e.store;return i(iO,{getRender:wS},i(y,{store:t},i(yW,null)))},kW="$brandingName-container".replace("$brandingName",H.brandingNameLowerCase);wW=[function(e){var t=q.getElementById(kW),n=t||q.createElement("div");return t||(n.id=kW,q.body.appendChild(n)),l(i(CW,{store:e}),n),function(){n.innerHTML=""}},function(e){if(ph(e.getState()))return null;var t=null,n=null,i=function(){if(null===t){var n=e.getState(),i=$v(n),o=te(Qk,e);t=setInterval((function(){var e=Ca(i);o(e)}),1e3)}},o=function(){t&&clearInterval(t),n&&clearTimeout(n),t=null,n=null},a=e.getState(),r=e.subscribe((function(){var t=e.getState();if(hh(t)||gh(t))o();else if(!lh(a)&&lh(t)||gh(a)&&fh(t)){if(hh(t))return;if(null==$v(t))return;i(),n=setTimeout(o,1e3*Ah(t))}else lh(t)&&Ih(t)!==Ih(a)&&(o(),i(),n=setTimeout(o,1e3*Ah(t)));a=t}));return function(){r(),o()}},function(e){gS={},mS={},D.get=_S(function(e){return{"livechat.siteId":tS(e),"livechat.campaignIds":Er,"livechat.isDynamicCampaign":nS(e),"livechat.isMobile":iS(e),"livechat.button.isVisible":oS(e),"livechat.button.status":aS(e),"livechat.prechat.isSkip":rS(e),"livechat.prechat.fields":cS(bp,e),"livechat.postChat.fields":cS(vp,e),"livechat.offlineMessage.fields":cS(_p,e),"livechat.sideWindow.isVisible":sS(e),"livechat.sideWindow.tabs":lS(e),"livechat.visitor.guid":uS(e),"livechat.chat.maxMessageLength":pS(e),"livechat.sso.artifact":dS(e)}}(e)),D.set=_S(function(e){var t=$k(e),n=t(Vx);return{"livechat.customVariables":function(t){void 0===t&&(t=[]),Qk(e,Array.prototype.reduce.call(t,(function(e,t){var n=e;return void 0===t.value||(n[t.name]=""+t.value),n}),{}),!1)},"livechat.button.isVisible":function(t,i){void 0===i&&(i=kw(e.getState())),n(t,i)},"livechat.button.color":function(n,i){void 0===i&&(i=kw(e.getState())),t(Fx)({id:i,entity:{color:n}})},"livechat.prechat.isSkip":t(gx),"livechat.prechat.fields":hS(e,bp),"livechat.postChat.fields":hS(e,vp),"livechat.offlineMessage.fields":hS(e,_p),"livechat.sideWindow.isVisible":t(Dy),"livechat.sideWindow.tabs":t(Py),"livechat.chat.maxMessageLength":t(Bx),"livechat.sso.artifact":t(Cx),"livechat.chatWindow.color":function(n,i){void 0===i&&(i=kw(e.getState())),t(jx)({id:i,entity:{mainColor:n}})},"livechat.sso.jwt":t(Sx)}}(e)),D.do=_S(function(e){var t=$k(e),n=t(ux),i=t(hx),o=t(px),a=t(ik),r=function(e){return t(te(jk,e))},s=function(t){return function(n){var i=bv(e.getState());i&&n===i.id&&t(kw(e.getState()))}},c=t(nx,sx);function d(t,n,i){return function(){return new Promise((function(o,a){var r=e.getState();if(Yh(r)!==wp||Zf(r))return a("not_chatting");if(!C||!1===og(r))return a("webrtc_not_supported");var s=of(r);return t(r,s)?rg(r)?a("audio_video_chatting"):mg(r)?a("frequency_limited"):(e.dispatch(i()),o()):a(n)}))}}var l,u=d(am,"audio_not_enabled",lC),p=d(rm,"video_not_enabled",uC);return{"livechat.button.click":function(t){return void 0===t&&(t=kw(e.getState())),c(t)},"livechat.invitation.accept":s(t(tx,sx)),"livechat.invitation.refuse":s(t(ix)),"livechat.prechat.minimize":n,"livechat.chat.minimize":n,"livechat.postChat.minimize":n,"livechat.offlineMessage.minimize":n,"livechat.prechat.restore":i,"livechat.chat.restore":i,"livechat.postChat.restore":i,"livechat.offlineMessage.restore":i,"livechat.prechat.close":o,"livechat.chat.close":o,"livechat.postChat.close":o,"livechat.offlineMessage.close":o,"livechat.chat.endChat":a,"livechat.prechat.field.focus":r(bp),"livechat.postChat.field.focus":r(vp),"livechat.offlineMessage.field.focus":r(_p),"livechat.prechat.submit":fS(bp,e),"livechat.postChat.submit":fS(vp,e),"livechat.offlineMessage.submit":fS(_p,e),"livechat.sideWindow.tabs.click":t(Ny),"livechat.chat.audio.request":u,"livechat.chat.video.request":p,"livechat.pageVisit":t(lk),"livechat.invitation.show":(l=t(Ak),function(t){var n=e.getState(),i=W_(n);Ef(n)||Bw(n)===eu||Bw(n)===tu||i===cu||i===su||i===hu||zf(n)||l(t)}),"livechat.chat.visitor.sendText":function(t){Nf(e.getState())&&e.dispatch(KC(t))}}}(e)),D.render=function(e,t){gS[e]=t},D.on=vS;var t=$k(e),n=function(){};eS("ban",t(D_)),eS("end_chat",t(ik)),eS("setIfSkipPrechat",t(gx));var i=te(vS,"livechat.invitation.display");eS("onBeforeImageInvitationDisplay",i),eS("onAfterImageInvitationDisplay",i);var o=te(vS,"livechat.chat.display");eS("onChatWindowLoadBegin",o),eS("onChatWindowLoaded",o),eS("setIfHideChatWindowLoadingAnimation",n),eS("onChatWindowStatusChanged",n);var a=t(nx,sx);eS("open_chat_window",(function(t,n){return void 0===n&&(n=kw(e.getState())),a(n)})),eS("set_custom_variables",(function(t){return void 0===t&&(t=[]),Qk(e,Array.prototype.reduce.call(t,(function(e,t){var n=e;return n[t.name]=""+t.value,n}),{}),!1)})),D.setCustomVariables=D.set_custom_variables;var r=e.getState(),s=e.subscribe((function(){if(!lh(r)){var t=e.getState();lh(t)&&(s(),function(){"function"==typeof Hr&&Hr(),D.onReady&&D.onReady!==Hr&&D.onReady();var e=D.onReady;Object.defineProperty(D,"onReady",{get:function(){return e},set:function(t){"function"==typeof t&&t(),e=t},configurable:!1})}()),r=t}}));return function(){delete D.get,delete D.set,delete D.do,delete D.render,delete D.on,s()}},function(e){var t=function(e){return e&&e.indexOf("landscape")>=0},n=function(){var t=e.getState(),n=Qw(t),i=Yw(t),o=ee(),a=kw(t),r=jm(t,a);o.width===n&&o.height===i||e.dispatch(wx(o,r))},i=function(){!function(){var e=H.screen,n=e.msOrientation||e.mozOrientation||e.orientation,i=typeof n;return"undefined"===i?"orientation"in H&&90===Math.abs(H.orientation):t("string"===i?n:n.type)}()?e.dispatch(vx()):e.dispatch(bx())},o=ce((function(){e.dispatch(uk())}),500);H.addEventListener("resize",ce(n,200)),H.addEventListener("orientationchange",ce(i,50)),H.addEventListener("hashchange",o),H.addEventListener("popstate",o);var a=H.history.pushState,r=H.history.replaceState;return H.history.pushState=function(e,t,n){a.call(H.history,e,t,n),o()},H.history.replaceState=function(e,t,n){r.call(H.history,e,t,n),o()},n(),i(),function(){H.removeEventListener("resize",n),H.removeEventListener("orientationchange",i),H.removeEventListener("hashchange",o),H.addEventListener("popstate",o),H.history.pushState=a,H.history.replaceState=r}}];var SW=10,IW=[];function MW(e){IW.length>=SW&&IW.shift(),IW.push(e)}window.getStoredErrors=function(){return IW},function(e){return function(t,n,i,o){if(!D.loaded){D.loaded=!0,function(e){var t=e.length>0?e[e.length-1].div_id:null;if(t&&q.body&&!q.getElementById(t)){var n=q.getElementsByTagName("head")[0];if(n)for(var i=n.getElementsByTagName("script"),o=0;o