/** * compiled: 2025-04-22 07:08:48 * version: 1.8.149 * commit: ece28510908c884ecad141be3dd428eaee6896a2 */ 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.0395b101.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.905e2277.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=0,Jr=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(){Zr>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 Zr+=t.length,t.reduce((function(e,t){Zr-=1;try{return r(t)}catch(e){throw e}}),null)});return s.subscribe(i),Object.assign({},s,{dispatch:c,subscribe:n})}},Xr="config/updateConfig",$r="config/setMaxMessageLength",es="config/updateServerInstanceTag",ts="config/updateUrl",ns="page/setButtonIsOnline",is="page/updateVisitor",os="page/resetVisitor",as="page/showInvitation",rs="papge/showInvitationProcessing",ss="addVisitorNavigation",cs="emptyVisitorNavigation",ds="page/setIsSubmitSSO",ls="page/setSSOArtifact",us="page/setSSOJwt",ps="chatWindow/open",hs="chatWindow/popOut",fs="chatWindow/popIn",gs="chatWindow/showTab",ws="chatWindow/chatInputWarning",ms="chatWindow/restrictedWordsError",bs="chatWindow/update-position",vs="chatWindow/toggle-toolbox",_s="chatWindow/reset",xs="chatWindow/restoreCrossSiteChat",ys="chatWindow/updateChatWindowGreetingMessage",Cs="entities/updateCampaign",ks="entities/updateButton",Ss="entities/button/visible",Is="entities/updateAgent",Ms="entities/updateFields",As="entities/updateDepartment",Bs="footer/chatToolRating",Os="footer/chatToolAudio",Ts="footer/chatToolVideo",js="footer/chatToolScreenSharing",Fs="invitaton/accept",Vs="invitaton/refuse",Ws="web/showInvitation",Ns="page/buttonClick",Ds="page/setSkipPreChat",Ps="page/updateSize",Rs="page/updateOrientation",Es="page/updatePageVisitorStatus",zs="window/update-upload",Ls="window/sucess-file",Hs="window/fail-file",qs="sso/updateSSO",Us="window/update-messages",Gs="window/remove-agent-is-typing",Ks="window/sendText",Ys="window/sendFile",Qs="window/sendImage",Zs="window/startWaiting",Js="window/startChatBot",Xs="window/updateChatBot",$s="window/updateChatBotContext",ec="window/updateFieldsFromBotAction",tc="window/addSystemMessage",nc="window/updateChatIdentity",ic="window/updateMaxReadId",oc="window/updateWindowId",ac="window/closeMinimizeBubble",rc="window/togglePopupBubble",sc="window/addPendingMessage",cc="window/updateMaxAgentReadId",dc="window/updateMaxVisitorReadId",lc="window/updateVisitorStatus",uc="window/updateChatVersion",pc="window/updateEmailToSendTranscript",hc="window/ssoLoginInPopUp",fc="window/ssoLoginInSelf",gc="window/updateTransferCampaignId",wc="window/updateRequestFromAnotherDone",mc="window/updateCrossSiteTransfer",bc="window/updateConfigTransferSite",vc="window/updateTransferVisitorGuid",_c="window/updateRatingFieldsAfterCrossSiteTransfer",xc="window/updateAutoEjectTranscript",yc="window/hideRatingFormInWindow",Cc="window/updateChatbotQuestions",kc="page/update-window-status",Sc="page/set-focus-bar",Ic="window/toggle-error",Mc="window/toggle-warning",Ac="window/updateWindowWidth",Bc="window/removeForm",Oc="app/ready",Tc="app/ban",jc="app/setIsActive",Fc="app/switchServer",Vc="app/recoverSuccess",Wc="app/increaseRecoverTimes",Nc="app/setIsRecovering",Dc="app/setLastSuccessTime",Pc="app/setSoundOff",Rc="app/globalError",Ec="window/endchat",zc="window/toggleFocus",Lc="window/contentScrollStatusUpdate",Hc="window/toggle-disable",qc="window/updateTransferredServerInstanceTag",Uc="web/sendAction",Gc="web/pageHeartbeat",Kc="web/chatHeartbeat",Yc="web/prechatHeartbeat",Qc="web/offlineHeartbeat",Zc="web/submitRating",Jc="web/emailTranscript",Xc="web/endChat",$c="web/submitOfflineMessage",ed="web/submitPostChat",td="web/submitPrechat",nd="web/submitSSOInfo",id="web/submitSSOInfo4ChatBot",od="web/skipLogin",ad="web/sendPageVisit",rd="web/updateUrl",sd="web/updateCustomVariables",cd="web/getChatButton",dd="web/getConfig",ld="web/getChatWindowConfig",ud="web/getChatbotQuestions",pd="web/agentMsgSeenByVisitor",hd="web/getSSORecoverInfo",fd="web/fromChatbotToAgent",gd="web/chatBotSelectQuestion",wd="web/chatBotAnswerHelpful",md="web/enterOfflineMessage",bd="web/startChatAgain",vd="window/updateQueue",_d="chatinput/setVisitorIsTyping",xd="window/sendChatMessages",yd="window/updateVideoStatus",Cd="window/prepareP2pChat",kd="window/hangupAudioVideoChat",Sd="window/hangupScreenSharing",Id="window/acceptAudioVideoChat",Md="window/unmuteRemote",Ad="window/flipCamera",Bd="window/setIsRecording",Od="window/updateMessageIsProcessed",Td="window/updateMessageIfDisable",jd="sideWindow/hideAudioVideoChat",Fd="sideWindow/sideWidowTabSelect",Vd="sideWindow/toggleSideWindow",Wd="sideWindow/setWindowTabs",Nd="sideWindow/closeKnowledgeBase",Dd="sideWindow/showKnowledgeBaseInfo",Pd="sideWindow/closePushPage",Rd="sideWindow/replaceSideWindowTab",Ed="app/setIsOpenerExists",zd="window/closeSliently",Ld="window/setFrequencyLimitState",Hd="web/chatBotVisitorCancelBotForm",qd="web/chatBotVisitorSubmitBotForm",Ud="web/setBotVariable",Gd="window/cleanPendingMessages",Kd="form/update-value",Yd="form/update-error",Qd="form/focus",Zd="form/blur",Jd="form/submit-start",Xd="form/submit-success",$d="form/submit-fail",el="form/submit-social",tl="form/validate-all",nl="form/update",il="form/fill-default",ol="form/reset",al="page/setCampaignId",rl="page/setCampaignIntId",sl="window/setId",cl="window/mounted",dl="window/chatbotTimeout",ll="window/resetMaxId",ul="web/getArticles",pl="web/getArticleByID",hl="window/success-articles",fl="window/success-articleByID",gl="web/fromKBToAgent",wl="window/articleClickTitile",ml="window/error-articles",bl="window/error-articleByID",vl="window/updateKBConfig",_l="sideWindow/openBotSideWindow",xl="sideWindow/closeBotSideWindow",yl="window/pushPage",Cl="webView/open",kl="webView/close",Sl="webView/loading",Il="webView/visitorInfo",Ml="web/setLocation",Al="web/getVisitorInfo",Bl="window/updateBotFormMessage",Ol="window/hideQuickReply",Tl="state/restore",jl="state/get-restore",Fl="window/updateChatbotSendFormMessage",Vl="window/updateVisibleInputAreaWhenBotChatting",Wl="window/updateDisableInputAreaWhenBotChatting",Nl="window/updateIsMessageScrollBottom",Dl="window/updateMessageStatusToRead",Pl="window/updatePostChatVisible",Rl="sideWindow/hideScreenSharing",El="Window/prepareScreenSharing",zl="window/acceptScreenSharing",Ll="window/startScreenSharingDirectly",Hl="window/popScreenSharing",ql="window/previewImage",Ul="api/sendText",Gl="window/cancelVisitorSendText",Kl="window/setBotCollectFileError",Yl="window/updateSsoInfo",Ql="page/updateIsKeyboardFocus",Zl="page/updateFocusOnDropdownMenu",Jl=((Gr={})[Oc]=function(e){return Object.assign({},e,{isReady:!0})},Gr[Tc]=function(e){return Object.assign({},e,{banned:!0})},Gr[Fc]=function(e,t){return Object.assign({},e,{server:t})},Gr[jc]=function(e,t){return Object.assign({},e,{isActive:t})},Gr[Ed]=function(e,t){return Object.assign({},e,{isOpenerExists:t})},Gr[Vc]=function(e){return Object.assign({},e,{recoverFailTimes:0,isRecovering:!1})},Gr[Wc]=function(e){var t=e.recoverFailTimes;return Object.assign({},e,{recoverFailTimes:t+1})},Gr[Nc]=function(e,t){return Object.assign({},e,{isRecovering:t})},Gr[Dc]=function(e,t){return Object.assign({},e,{lastSuccessTime:t})},Gr[Pc]=function(e,t){return t?Object.assign({},e,{isSoundOff:!0}):Object.assign({},e,{isSoundOff:!1})},Gr[Rc]=function(e,t){return Object.assign({},e,{error:t})},Gr),Xl=U({banned:!1},Jl),$l="open",eu="restored",tu="minimized",nu="close",iu="waitingForChat",ou="chatting",au="preChat",ru="manuallyInvited",su="autoInvited",cu="offlineMessage",du="refusedByVisitor",lu="chatEnded",uu="inSite",pu="manuallyInvitedByWindow",hu="systemProcessing",fu="searchKB",gu="popupImage",wu="embeddedWindow",mu="bubble",bu="mobile",vu={agentAvatar:"agentAvatar",image:"image"},_u="button",xu="autoInvitation",yu="manualInvitation",Cu="landscape",ku="portrait",Su="monitor",Iu="text",Mu="image",Au="float",Bu="adaptive",Ou={platform:It,buttons:{},windowStatus:nu,dynamicCampaign:!1,campaignId:0,chatGroup:0,invitation:null,visitor:{},skipPreChat:!1,width:0,height:0,orientation:ku,visitorStatus:uu,artifact:void 0},Tu=function(e,t){return po(e,{type:t.isManual?yu:xu,invitationId:t.id,invitationType:t.type})},ju=((Kr={})[ns]=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[as]=function(e,t,n){var i=n.buttonType;if(t.type===wu){var o=t.windowStatus||$l;return Object.assign({},e,{requestChatAction:Tu(e.campaignId,t),windowStatus:o,visitorStatus:t.isManual?pu:su})}return t.isManual&&i===Bu&&t.type===mu?t.bubbleInvitationHeader===vu.image?Object.assign({},e,{requestChatAction:Tu(e.campaignId,t),visitorStatus:pu,invitation:t}):Object.assign({},e,{requestChatAction:Tu(e.campaignId,t),windowStatus:tu,visitorStatus:pu,manualInvitation:t}):t.isManual&&i!==Bu&&t.type===mu?Object.assign({},e,{requestChatAction:Tu(e.campaignId,t),visitorStatus:pu,invitation:t}):null==e.invitation?Object.assign({},e,{invitation:t,visitorStatus:t.isManual?ru:su}):e},Kr[rs]=function(e,t){return Object.assign({},e,{ifShowInvitationProcessing:t})},Kr[is]=function(e,t){var n=Object.assign({},e.visitor,t);return Object.assign({},e,{visitor:n})},Kr[os]=function(e,t){return Object.assign({},e,{visitor:t})},Kr[Vs]=function(e){return Object.assign({},e,{invitation:null,visitorStatus:du})},Kr[xs]=function(e,t){var n=t.chatInfo,i=t.campaignId;return Object.assign({},e,{windowStatus:n.windowStatus||$l,requestChatAction:po(i)})},Kr[ps]=function(e,t){var n=t.campaignId;return Object.assign({},e,{windowStatus:$l,invitation:null,requestChatAction:e.requestChatAction||po(n,{type:_u})})},Kr[kc]=function(e,t){return Object.assign({},e,{windowStatus:t,invitation:t===$l?null:e.invitation})},Kr[Sc]=function(e,t){return Object.assign({},e,{shouldFocusBar:t})},Kr[hs]=function(e){return Object.assign({},e,{windowStatus:nu})},Kr[Fs]=function(e,t){var n=e.invitation;return n?Object.assign({},e,{invitation:null,requestChatAction:Tu(t,n)}):e},Kr[Ns]=function(e,t){return Object.assign({},e,{invitation:null,requestChatAction:po(t,{type:_u})})},Kr[bd]=function(e){return Object.assign({},e,{requestChatAction:po(e.requestChatAction.campaignId,{type:_u})})},Kr[Ds]=function(e,t){return e.skipPreChat===t?e:Object.assign({},e,{skipPreChat:t})},Kr[Ps]=function(e,t){var n=t.size;return e.width===n.width&&e.height===n.height?e:Object.assign({},e,n)},Kr[ac]=function(e,t,n){return n?Object.assign({},e,{windowStatus:nu,visitorStatus:du}):e},Kr[Rs]=function(e,t){return e.orientation===t?e:Object.assign({},e,{orientation:t})},Kr[al]=function(e,t){if(e.campaignId===t)return e;var n="number"==typeof t?t:t.toLowerCase();return Object.assign({},e,{campaignId:n})},Kr[rl]=function(e,t){var n=t.guid,i=t.intId;return e.campaignIntId===i?e:Object.assign({},e,{campaignId:n,campaignIntId:i})},Kr[Es]=function(e,t){return e.visitorStatus===t?e:Object.assign({},e,{visitorStatus:t})},Kr[ls]=function(e,t){return e.artifact===t?e:Object.assign({},e,{artifact:t})},Kr[us]=function(e,t){return e.jwt===t?e:Object.assign({},e,{jwt:t})},Kr[ds]=function(e,t){return e.isSubmitSSO===t?e:Object.assign({},e,{isSubmitSSO:t})},Kr[td]=function(e,t){var n=t.form.ticketId;return Object.assign({},e,{requestChatAction:Object.assign({},e.requestChatAction,{ticketId:n})})},Kr[Ql]=function(e,t){return Object.assign({},e,{isKeyboardFocus:t})},Kr[Zl]=function(e,t){return Object.assign({},e,{isFocusOnDropdownMenu:t})},Kr),Fu=U(Ou,ju),Vu="fetching",Wu="done",Nu="error",Du=["entity"],Pu=["name","avatar"],Ru=["name","avatar","id"],Eu={entities:{},errors:{},fetchStatus:{}},zu={agents:Eu,messages:Eu,buttons:Eu,campaigns:Eu,fields:Eu,departments:Eu,kbArticles:Eu},Lu=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 Hu(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 qu(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 Uu,Gu,Ku,Yu=(Yr={},Yr[Ss]=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:Lu(e.buttons,{id:i,entity:{isHidden:n}})}):e},Yr[Ms]=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:Lu(e.campaigns,{id:o,entity:r}),fields:a})},Yr[ks]=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:Lu(e.buttons,t)})},Yr[Cs]=function(e,t){var n=t.entity;if(null==n)return Object.assign({},e,{campaigns:Lu(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:Lu(e.campaigns,Object.assign({},t,{entity:a})),fields:o.reduce((function(e,t){return Lu(e,{id:t.id,entity:t,error:null,fetchStatus:Wu})}),e.fields)})},Yr[Is]=function(e,t,n){var i=n.ifHideAgentName,o=n.agentDefaultName,a=n.apiHost,r=t.entity,s=z(t,Du);return r.name=i?o:r.name,r.avatar=Dr(r.avatar,a),Object.assign({},e,{agents:Lu(e.agents,Object.assign({entity:r},s))})},Yr[As]=function(e,t){return Object.assign({},e,{departments:Lu(e.departments,t)})},Yr[as]=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,Pu);return Object.assign({},e,{agents:Lu(e.agents,{id:i.id,entity:Object.assign({name:o?a:s,avatar:Dr(c,r)},d),fetchStatus:Wu})})}return e},Yr[Yd]=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[Kd]=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[Qd]=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[Zd]=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[tl]=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[Us]=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,Ru);return r?Object.assign({},e,{agents:Lu(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:Wu,index:Object.keys(e.agents).length})}):e}),e)},Yr[ol]=Hu,Yr[kc]=function(e,t,n){if(t!==nu)return e;var i=e;return n&&n.transferCampaignId&&(i=qu(e,n.transferCampaignId)),Hu(i)},Yr[hs]=function(e,t,n){var i=e;return n&&n.transferCampaignId&&(i=qu(e,n.transferCampaignId)),Hu(i)},Yr[ac]=function(e,t,n){return n?Hu(e):e},Yr[hl]=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),Qu=U(zu,Yu),Zu="loading",Ju="prelogin",Xu="ssoLogin",$u="prechat",ep="chat",tp="postchat",np="offline",ip="kb",op="none",ap="pending",rp="success",sp="visitor",cp="agent",dp="system",lp="chatbot",up="taskbot",pp="none",hp="waiting",fp="invited",gp="chatting",wp="chatted",mp="prechat",bp="postchat",vp="offline",_p="sso",xp="rating",yp=Object.freeze({__proto__:null,offline:vp,postchat:bp,prechat:mp,rating:xp,sso:_p}),Cp="maxFileSize",kp="emptyFile",Sp="maxLengh",Ip="limited",Mp="maxFileCount",Ap="notSupported",Bp="kb",Op="bot",Tp="video",jp="audio",Fp="bubble",Vp="kbSearch",Wp="pushPage",Np="screenSharing",Dp="taskbotCollectName",Pp="taskbotCollectEmail",Rp="taskbotCollectPhoneNumber",Ep="taskbotCollectCompanyName",zp="taskbotCollectComment",Lp="taskbotCollectLocation",Hp="taskbotCollectVariableData",qp="taskbotSendMessage",Up="taskbotSendImage",Gp="taskbotSendVideo",Kp="taskbotSSOLoginButton",Yp="taskbotQuickReply",Qp="taskbotMessage",Zp="taskbotBookMeeting",Jp="taskbotActionBookingViaMicrosoftBooking",Xp="loading",$p="taskbotActionSendAMenu",eh="taskbotActionCollectFeedback",th="horizontal",nh="agent",ih="banner",oh="logo",ah=function(e,t){return Y(e,"entities.campaigns.entities."+t)},rh=function(e,t){return Y(e,"entities.campaigns.entities."+t)},sh="none",ch="main",dh=function(e){return e.app.isReady},lh=function(e){return e.app.server===ch},uh=function(e){return e.app.isPoppedOut},ph=function(e){return e.app.banned},hh=function(e){return e.app.isActive},fh=function(e){return!e.app.isActive},gh=function(e){return e.app.isRecovering},wh=function(e){return e.app.isSoundOff},mh=function(e,t){return/^https?:/.test(t)||null==e.configuration?t:null==t?null:[lh(e)?e.configuration.url:e.configuration.standbyUrl,t].join(/^\//.test(t)?"":"/")},bh=function(e){return null==e.configuration?"":lh(e)?e.configuration.url:e.configuration.standbyUrl},vh=function(e,t){return/^https?:/.test(t)||null==e.configuration?t:null==t?null:[e.configuration.vue,t].join(/^\//.test(t)?"":"/")},_h=function(e){return e.configuration&&e.configuration.vue},xh=function(e){return vh(e,"/visitorside/location/position.html")},yh=function(e,t){var n=function(e,t){return vh(e,"/visitorside/sso/ssoredirect.html")}(e),i="returnUrl="+encodeURIComponent(n),o=/\breturnurl=[^&]+/i;return o.test(t)?t.replace(o,i):t+"&"+i},Ch=function(e){return/^(https?:\/\/)?([^/]*)/gi.exec(e)[2]},kh=function(e,t){if(/^https?:/.test(t))return t;if(null==e.configuration)return t;var n=e.configuration.webrtcSignalingServiceUrl;return[Ch(n),t].join(/^\//.test(t)?"":"/")},Sh=function(e){return e.configuration.heartbeat.online},Ih=function(e){return e.configuration.heartbeat.offline},Mh=function(e){return e.configuration.heartbeat.stopAfter},Ah=function(e){return e.configuration.attachmentMaxSize},Bh=function(e){return e.configuration.frequencyLimit},Oh=function(e){return e.configuration.messageLengthLimit},Th=function(e){return e.configuration.kbClientUrl},jh=function(e){return!!e.configuration.features.hideAgentName&&e.configuration.features.hideAgentName},Fh=function(e){return e.configuration.encoding},Vh=function(e){return e.configuration.ifPartner},Wh=function(e){return e.configuration.features.audioVideoChatRecording},Nh=function(e){return e.configuration.brandConfig},Dh=function(e){return e.window?e.window.crossSiteChatTransfer:null},Ph=function(e){return function(t){var n=t.configuration.features||{};return function(e){return e.window&&!!e.window.crossSiteChatTransfer}(t)&&(n=Dh(t).configuration&&Dh(t).configuration.features||{}),n[e]}},Rh=function(e){return e.configuration.restrictedWords},Eh=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")}})),zh=function(e){return"OnlySendTheTranslation"===e.configuration.messageContentInLiveChat},Lh="goToIntent",Hh="contactAgent",qh="text",Uh=function(e){return Y(e,"window")},Gh=function(e,t){return function(n){var i=Uh(n);return i?e(i,n):t}},Kh=Gh((function(e){return e.chatStatus}),pp),Yh=function(e){var t=e.window;return t?t.tab!==ep&&t.tab!==tp||t.chatStatus!==gp&&t.chatStatus!==fp&&t.chatStatus!==wp||t.isChatBot||0===t.involvedAgents.length?null:e.entities.agents.entities[t.involvedAgents[0]]:null},Qh=function(e){var t=e.window;return t&&(t.tab===ep||t.isChatBot&&t.tab===tp)?t.chatStatus!==gp&&t.chatStatus!==hp&&t.chatStatus!==wp?null:t.isChatBot?e.window.chatBot||{}:null:null},Zh=function(e){var t=e.window;return t?t.chatbotContext||{}:null},Jh=function(e){var t=Zh(e);return t?t.variables:null},Xh=function(e){var t=Zh(e);return t?t.visitorInfo:null},$h=Gh((function(e,t){if(!t.entities)return!1;if(!t.entities.campaigns)return!1;var n=t.entities.campaigns;return n.fetchStatus[e.id]===Wu&&!!n.entities[e.id]}),!1),ef=function(e){return Y(e,"window.tab")},tf=Gh((function(e){return e.sideWindowItems}),[]),nf=function(e){return Y(e,"window.id")},of=function(e){return Y(e,"window.crossSiteChatTransfer.campaignId")},af=Gh((function(e,t){var n=of(t)||nf(t);return t.entities.campaigns.entities[n]}),null),rf=Gh((function(e,t){return t.entities.campaigns.entities[t.window.id]}),null),sf=Gh((function(e,t){return t.entities.campaigns.entities[t.window.id].mainColor}),""),cf=function(e){var t=e.entities.campaigns.entities[e.window.id].chat.texture;return t?"url("+t+")":null},df=Gh((function(e){return e.ssoUrl}),""),lf=Gh((function(e){return e.showPrelogin}),!1),uf=Gh((function(e){return e.isChatBot}),!1),pf=Gh((function(e){return e.pendingMessage}),void 0),hf=e(1)((function(e,t,n,i,o){return function(a){var r=t.entities[n];if(a.sender.type===cp){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===lp){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}})),ff=e(1)((function(e,t,n,i,o,a,r){return o.map(hf(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===hp)&&(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))})),gf=Gh((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 ff(o,a,r,s,n,c,d)}),[]),wf=Gh((function(e){return e.messages}),[]),mf=Gh((function(e){return e.sourceMessages}),[]),bf=Gh((function(e){return e.queue}),{}),vf=Gh((function(e){return e.involvedAgents}),[]),_f=Gh((function(e){return e.audioVideoAgentId}),0),xf=Gh((function(e){return e.chatGuid})),yf=Gh((function(e){return e.visitorTyping}),!1),Cf=Gh((function(e){return e.draft}),""),kf=Gh((function(e){return e.maxId}),-1),Sf=Gh((function(e){return e.error})),If=Gh((function(e){return e.botCollectFileError})),Mf=Gh((function(e){return e.warning})),Af=Gh((function(e){return e.maxReadId}),-1),Bf=Gh((function(e,t){for(var n=gf(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),Of=Gh((function(e,t){var n=gf(t);if(!(Bf(t)<=0))for(var i=n.length-1;i>=0;i-=1){var o=n[i];if($a(o))return o}})),Tf=Gh((function(e,t){var n=gf(t);if(Bf(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})),jf=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"},Ff=function(e){return e.window&&e.window.messages&&e.window.messages.find((function(e){return e.type===Kt}))},Vf=Gh((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":sh}return sh}}),void 0),Wf=Gh((function(e){if(e.tab!==ep)return!1;var t=function(){switch(e.chatStatus){case gp:return!e.isChatBot||!1!==e.isVisibleInputAreaWhenBotChatting;case hp:return!!e.allowWaitingSendMessage&&!e.isChatBot;case wp:return!1;case fp:return!0;default:return!1}};return e.isTaskBot?!1!==e.enableChatInputWhenTaskbot&&(e.isVisibleInputAreaWhenTaskbot&&t()):t()}),!1),Nf=Gh((function(e){return!!e.webView}),!1),Df=Gh((function(e){if(e.tab!==ep)return!1;return function(){switch(e.chatStatus){case gp:return!e.isChatBot||!0!==e.isDisableInputAreaWhenBotChatting;case hp:return!!e.allowWaitingSendMessage;case wp:return!1;default:return!0}}()}),!1),Pf=function(e){return e.window&&e.window.messages&&e.window.messages.find((function(e){return e.type===ti}))},Rf=Gh((function(e){return e.chatStatus===gp}),!1),Ef=Gh((function(e){return e.chatStatus===fp}),!1),zf=function(e){var t=vf(e);if(0!==t.length){var n=t[0];return e.entities.agents.entities[n]}},Lf=function(e){var t=vf(e);if(0!==t.length){var n=_f(e);if(n>0)return e.entities.agents.entities[n];if(t.length>1)return{avatar:vh(e,"/visitorside/images/avatar.png"),name:""};var i=t[0];return e.entities.agents.entities[i]}},Hf=function(e){var t=Ef(e);if(Rf(e)||t){if(t){if(!(e.page.requestChatAction.source.type===yu))return;return zf(e)}var n=Qh(e);if(n)return n;var i=Jg(e);return i||zf(e)}},qf=function(e){var t=Hf(e);return t?t.avatar:t},Uf=function(e){var t=Lf(e);return t?t.avatar:""},Gf=function(e){var t=Lf(e);return t?t.name:""},Kf=Gh((function(e){return e.chatStatus===hp||e.chatStatus===gp}),!1),Yf=Gh((function(e){return e.chatStatus===hp}),!1),Qf=Gh((function(e){return e.chatStatus===gp&&e.isChatBot}),!1),Zf=Gh((function(e){return e.chatStatus===hp&&e.isChatBot}),!1),Jf=Gh((function(e){return e.chatStatus===wp}),!1),Xf=Gh((function(e){return e.ifHideBio}),!1),$f=Gh((function(e){return e.fileUploadCount}),0),eg=function(e,t){return Y(e,"window.fields."+t)},tg=Gh((function(e){return e.disabled}),!1),ng=function(e){var t=e.window,n=Y(e,"page.windowStatus");return t&&(t.tab===ep||t.tab===ip||t.tab===Zu||t.tab===Xu||t.tab===Ju||t.tab===$u||t.tab===np)&&(n===$l||n===eu)&&!!t.sideWindowSelectedTab},ig=function(e){var t=Yh(e);return!!t&&t.isSupportWebrtc},og=function(e){return Y(e,"window.sideWindowItems")},ag=Gh((function(e){return e.audio_video_disabled}),!1),rg=function(e){return Y(e,"window.showChatWindowInSidewindow")},sg=function(e){return Y(e,"window.sideWindowSelectedTab")},cg=function(e){var t=Y(e,"window.pushPage.url").trim();return J(t)},dg=function(e){return rf(e).customCSS},lg=function(e,t){var n=ah(e,t);return n?n.customCSS:""},ug=Gh((function(e){return e.vChatStatus}),aa),pg=Gh((function(e){return e.audioVideoChatStartTime}),0),hg=function(e){var t=ug(e);return t===sa||t===da},fg=Gh((function(e){return e.isRecording}),!1),gg=Gh((function(e){return e.isFocused}),!1),wg=Gh((function(e){return e.frequencyLimitState}),!1),mg=Gh((function(e){return e.autoEjectTranscript}),!1),bg=function(e){var t=rf(e);return t&&t.isRTL},vg=function(e,t){var n=ah(e,t);return n&&n.isRTL},_g=function(e){var t=Yh(e);return!(!t||!t.bio)&&(!Gh((function(e){return e.ifHideBio}),!1)(e)&&rf(e).header.showBio)},xg=Gh((function(e){return e.kbChatWithAgentClicked}),!1),yg=function(e){return Y(e,"window.kb.activeArticle")},Cg=function(e){return Y(e,"window.kbConfig.greetingMessage")},kg=function(e){return Y(e,"window.kbConfig.maxCount")},Sg=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)},Ig=function(e){return Y(e,"window.kb.isLoading")},Mg=function(e){return Y(e,"window.kbConfig.notShowContent")},Ag=Gh((function(e){return e.botSideWindow}),null),Bg=Gh((function(e){return e.bottom}),0),Og=Gh((function(e){return e.right}),0),Tg=function(e,t){var n=t?e.entities.campaigns.entities[t]:rf(e);return n&&n.ifEnableVisitorSeeMsgSentSeen},jg=Gh((function(e){return e.maxAgentReadId}),""),Fg=Gh((function(e){return e.maxVisitorReadId}),""),Vg=function(e){return Qf(e)?e.window.quickReply:Rf(e)&&e.window.quickReply?Object.assign({},e.window.quickReply,{items:e.window.quickReply.items.filter((function(e){return e.type!==Hh}))}):null},Wg=Gh((function(e){return e.webView}),null),Ng=function(e){var t=Wg(e);return!t||t.ifLoading},Dg=function(e){var t=Wg(e);return!!t&&t.success},Pg=function(e){var t=Wg(e);return t?t.visitorInfo:null},Rg=Gh((function(e){return e.showToolbox}),!1),Eg=Gh((function(e){return e.chatVersion}),""),zg=Gh((function(e,t){return{chatGuid:xf(t),chatVersion:Eg(t)}}),{chatGuid:null,chatVersion:""}),Lg=Gh((function(e){return e.visitorStatus}),uu),Hg=function(e){var t=mf(e).find((function(e){return e.type===Gt||e.type===Ft||e.type===Ni}));return t?t.time:""},qg=function(e){var t=mf(e).find((function(e){return e.type===Bt}));return t?t.time:""},Ug=function(e){var t=mf(e);return t.length>0?t[t.length-1].guid:""},Gg=Gh((function(e){return e.emailToSendTranscript}),""),Kg=function(e){var t=wf(e),n=!1;return t.forEach((function(e){e.type===an&&e.content&&e.content.url?n=!0:e.type===Et&&(n=!1)})),n&&Kh(e)===gp},Yg=Gh((function(e,t){return t.entities.campaigns.entities[e.id]}),"none"),Qg=function(e){return void 0===e.window.ifOpenSignInPageEmbeddedWindow||e.window.ifOpenSignInPageEmbeddedWindow},Zg=Gh((function(e){return e.popupBubble}),!1),Jg=function(e){var t=e.window;return t&&t.isTaskBot&&(t.tab===ep||t.isThatBot)?t.chatStatus!==gp&&t.chatStatus!==hp&&t.chatStatus!==wp?null:t.taskBot||{}:null},Xg=Gh((function(e){return e.isMessageScrollBottom}),!0),$g=function(e){return wf(e).filter((function(e){return!1===e.isSeenByVisitor})).length},ew=Gh((function(e){return e.width})),tw=Gh((function(e){return e.isPostChatVisible})),nw=Gh((function(e){return e.screenSharingStatus}),ua),iw=function(e){var t=nw(e);return t===wa||t===ha},ow=Gh((function(e){return e.screenSharingAgentId}),0),aw=function(e){var t=vf(e);if(0!==t.length){var n=ow(e);if(n&&e.entities.agents.entities[n])return e.entities.agents.entities[n];if(t.length>1)return{avatar:vh(e,"/visitorside/images/avatar.png"),name:""};var i=t[0];return e.entities.agents.entities[i]}},rw=function(e){var t=aw(e);return t?t.name:""},sw=function(e){var t=aw(e);return t?t.avatar:""},cw=Gh((function(e){return e.screenSharing_disabled}),!1),dw=Gh((function(e){return e.previewImage}),{}),lw=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}))},uw=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},pw=Gh((function(e){return e.ssoInfo})),hw=Math.pow(2,0),fw=Math.pow(2,1),gw=Math.pow(2,2),ww=Math.pow(2,3),mw=Math.pow(2,4),bw=Math.pow(2,5),vw=Math.pow(2,6),_w=Math.pow(2,7),xw=Math.pow(2,8),yw=function(e){return e.page.campaignId},Cw=function(e){return e.window&&e.window.id?e.window.id:e.page.campaignId},kw=function(e){return e.page.chatGroup},Sw=function(e){return e.page.buttons},Iw=function(e){return e.page.siteId},Mw=function(e){return e.window&&e.window.crossSiteChatTransfer?e.window.crossSiteChatTransfer.siteId:e.page.siteId},Aw=function(e){return e.page.windowStatus},Bw=function(e){return e.page.visitor.guid},Ow=function(e){return e.window&&e.window.crossSiteChatTransfer?e.window.crossSiteChatTransfer.visitorGuid:e.page.visitor.guid},Tw=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}},jw=function(e,t){void 0===t&&(t=0);var n=Tw(e);return e.page.requestChatAction?Object.assign({},e.page.requestChatAction,{campaignId:t,source:Object.assign({},e.page.requestChatAction.source,{page:n})}):po(t,{type:_u,page:n})},Fw=function(e){var t=jw(e);return t&&t.source},Vw=function(e){var t=function(e,t){void 0===t&&(t=0);var n=Tw(e);if(e.page.requestChatAction){var i={};return uf(e)&&(i={type:"bot"}),Kh(e)===hp&&(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:_u,page:n})}(e);return t&&t.source},Ww=function(e){return(Fw(e)||{}).type},Nw=function(e){return(Fw(e)||{}).invitationId},Dw=function(e){return e.page.manualInvitation},Pw=function(e,t){return e.page.buttons[t]},Rw=function(e){return e.page.platform===Mt||e.page.platform===At},Ew=function(e){return e.page.platform===At},zw=function(e){return Object.keys(e.page.buttons).map((function(t){var n=e.entities.buttons.entities[t];if(!n)return null;var i=Iw(e);return Object.assign({},n,{chatWindowLink:vh(e,ya(i,t))})})).filter((function(e){return e}))},Lw=function(e,t){var n=e.type;return(n===Au||n===Bu)&&function(e){return e!==nu}(t)},Hw=e(1)((function(e,t,n){return e.map((function(e){var i=!function(e,t){return e.isHideOffline&&!t[e.id]}(e,t)&&!Lw(e,n)&&!e.isHidden;return Object.assign({},e,{isHidden:!i})}))})),qw=function(e){var t=zw(e),n=Sw(e),i=Aw(e);return Hw(t,n,i)},Uw=function(e){return e.page.skipPreChat},Gw=function(e){return e.page.artifact},Kw=function(e){return e.page.height},Yw=function(e){return e.page.width},Qw=function(e){return e.page.isDynamicCampaign},Zw=function(e){return e.page.visitorStatus},Jw=function(e){return e.page.shouldFocusBar},Xw=function(e){return e.page.jwt},$w=function(e){return e.page.isKeyboardFocus},em=function(e){return e.page.isFocusOnDropdownMenu},tm=function(e,t){var n=Y(e,"entities.campaigns.entities."+t+".chat.tools");return void 0===n?0:n},nm=function(e,t){return!(!(gw&tm(e,t))||e.window.chatStatus!==wp&&e.window.chatStatus!==gp)},im=function(e,t){return!!(hw&tm(e,t))&&e.window.chatStatus!==wp},om=function(e,t){return!!(ww&tm(e,t))&&e.window.chatStatus!==wp&&Ph("audioVideoChat")(e)&&C},am=function(e,t){return!!(mw&tm(e,t))&&e.window.chatStatus!==wp&&Ph("audioVideoChat")(e)&&C},rm=function(e,t){return!!(_w&tm(e,t))&&e.window.chatStatus!==wp&&Ph("screenSharing")(e)&&C&&!Rw(e)},sm=function(e,t){return!!(vw&tm(e,t))},cm=function(e,t){return!!(xw&tm(e,t))&&e.window.chatStatus!==wp&&!Rw(e)},dm=function(e,t){var n=af(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},lm=function(e){return dm(e,Ro)},um=function(e){return dm(e,Eo)},pm="classic",hm="circle",fm="bubble",gm=function(e){return"window--"+e},wm=Object.freeze({__proto__:null,bubble:fm,circle:hm,classic:pm,styleClassName:gm}),mm=function(e,t){return e.entities.agents.entities[t]},bm=function(e){return(t=e.entities.agents.entities)&&Object.keys(t)||[];var t},vm=function(e){return e.entities.agents.entities},_m=function(e){var t=Iw(e),n=function(e){return bm(e).reduce((function(t,n){return t.concat([mm(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],vh(e,"/visitorside/images/avatar-male.png"),vh(e,"/visitorside/images/avatar-female.png")];break;case 2:i=[].concat(n,[vh(e,"/visitorside/images/avatar-male.png")]).filter((function(e){return e}));break;default:i=n.slice(0,3)}return i},xm=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]},ym=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},Cm=function(e,t){var n=xm(e,t);return n&&n.customOffline},km=function(e,t){return!!e.entities.buttons&&xm(e,t).isEmbeddedWindow},Sm=function(e){return e.entities.departments.entities},Im=/(#chat-window(?!-)\b[^{}]*?{([^}]*?)})(?!(.*|\r\n|\r|\n)\*\/)/,Mm=/(?:;|\s|{)width\s*:\s*(?:-?)(\d+)/,Am=/(?:;|\s|{)height\s*:\s*(?:-?)(\d+)/,Bm=function(e){return e===pm?712:700},Om=function(e,t){var n=rh(e,t),i=xm(e,t);if(i){var o=i.iframeStyle;if(!o)return o;if(!n)return o;var a=n.style;if(a===fm)return o;if(n.customCSS&&Im.test(n.customCSS)){var r=Im.exec(n.customCSS)[0],s=Mm.exec(r),c=Am.exec(r);return o.width=s?parseInt(s[1]):412,o.height=c?parseInt(c[1]):Bm(a),o}return o.width=412,o.height=Bm(a),o}},Tm=function(e,t){var n=xm(e,t),i=Rw(e);return n&&n.type===Bu?{right:i?n.adaptiveButtonRightOffsetOnMobile:n.adaptiveButtonRightOffset,bottom:i?n.adaptiveButtonBottomOffsetOnMobile:n.adaptiveButtonBottomOffset}:{right:0,bottom:0}},jm=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)}}))},Fm=function(e,t){var n=e.entities.campaigns.entities[t];return n?n.mainColor:""},Vm=function(e){return e.entities.campaigns.entities[Cw(e)].ifRemovePoweredBy},Wm="promptPressEnterToSend",Nm="titleChatWindow",Dm="titleOfflineMessageWindow",Pm="titlePreChatWindow",Rm="eventSendTranscript",Em="errorVisitorNotExist",zm="buttonKBChatWithAgent",Lm="buttonKBLeaveMessage",Hm="buttonSendFile",qm=function(e,t,n){return n+"_"+e+(t?"_"+t:"")},Um=(Uu={},{get:function(e){return Uu[e]||null},set:function(e,t){null!=t&&(Uu[e]=t)},setSession:function(e,t){Uu[e]=t},remove:function(e){delete Uu[e]}}),Gm={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=/;"}},Km=Gm,Ym=function(){Km=Um},Qm=function(e){return Km.get(e)},Zm=function(e){return Km.remove(e)},Jm=function(e,t){return Km.get(e)&&Km.remove(e),Km.set(e,t,X)},Xm=function(e,t){return Km.setSession(e,t,X)},$m=function(e){return Km.remove(e)},eb=H.brandingNameLowerCase+"_session",tb=H.brandingNameLowerCase+"standby_session",nb=H.brandingNameLowerCase+"_visitor",ib=H.brandingNameLowerCase+"_visitorguid",ob=H.brandingNameLowerCase+"_visitor",ab=H.brandingNameLowerCase+"_chat",rb=H.brandingNameLowerCase+"_session",sb=H.brandingNameLowerCase+"_page",cb=H.brandingNameLowerCase+"_crossSiteChatTransfer",db=H.brandingNameLowerCase+"_frequencyLimit",lb=H.brandingNameLowerCase+"_soundOff",ub=(Gu=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===Ku&&(Ku=Gu()),Ku}),pb=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]}}},hb=function(){try{return!window.sessionStorage||ub()?pb("sessionStorage"):H.sessionStorage}catch(e){return pb("session-storage")}},fb=function(){try{return!window.localStorage||ub()?pb("localStorage"):H.localStorage}catch(e){return pb("local-storage")}},gb=fb(),wb=hb(),mb=!1,bb=function(e){mb=e},vb=function(){return qm(Pr,Rr,nb)},_b=function(){return e=Qm(vb()),isNaN(+e)||0==+e?void 0:Math.floor(+e);var e},xb=function(e){return qm(e||Pr,Rr,ib)},yb=function(e){return Qm(xb(e))},Cb=function(e,t){e&&(mb?Xm:Jm)(xb(t),e)},kb=function(e){return qm(e||Pr,Rr,ob)},Sb=function(e){try{return JSON.parse(gb.getItem(e))||{}}catch(e){return{}}},Ib=function(e,t){try{return gb.setItem(e,JSON.stringify(t))}catch(e){}},Mb=function(e){return Sb(kb(e))},Ab=function(e,t){return gb.setItem(kb(t),JSON.stringify(Object.assign({},Mb(t),e)))},Bb=function(e){return Sb(kb(e)).sessionId},Ob=function(e){return qm(e||Pr,Rr,""+ab)},Tb=function(e,t){var n=Sb(Ob(t));return n.chatGuid===e?n:{}},jb=function(){return db+"_"+Pr},Fb=function(e){Ib(jb(),e)},Vb=function(e,t,n){if(gb){var i=Tb(e,n);gb.setItem(Ob(n),JSON.stringify(i.chatGuid===e?Object.assign({},i,t):Object.assign({chatGuid:e},t)))}},Wb=function(e){return qm(e||Pr,Rr,""+rb)},Nb=function(e){void 0===e&&(e=yb());var t=Sb(Wb());return t.visitorGuid===e?t:{}},Db=function(e,t){void 0===t&&(t=yb());var n=Nb(t);gb.setItem(Wb(),JSON.stringify(n.visitorGuid===t?Object.assign({},n,e):Object.assign({visitorGuid:t},e)))},Pb=function(){return qm(Pr,Rr,""+sb)},Rb=function(){return function(e){try{return JSON.parse(wb.getItem(e))||{}}catch(e){return{}}}(Pb())},Eb=function(e){return wb&&wb.setItem(Pb(),JSON.stringify(Object.assign({},Rb(),e)))},zb=function(){Zm(qm(Pr,Rr,eb)),Zm(qm(Pr,Rr,tb))},Lb=function(){return Rb().mediaChatHash},Hb=function(e){return Tb(e).mediaChatHash},qb=function(e){Vb(e,{mediaChatHash:Lb()})},Ub=function(e){var t=Hb(e);t&&t===Lb()&&Vb(e,{mediaChatHash:null})},Gb=function(){return Rb().facingMode||"user"},Kb=function(e){Eb({facingMode:e})},Yb=function(e){Vb(e,{mediaChatHash:null}),Eb({mediaChatHash:null,facingMode:null})},Qb=function(){return(Mb()||{}).lastChattedAgents||[]},Zb=qm(Pr,Rr,"SSOSessionToken"),Jb=qm(Pr,Rr,"SSOSessionInfo"),Xb=function(e){var t=e.ssoSessionToken,n=e.ssoInfo;Xm(Zb,t),n?($b(n),nv()):ov()},$b=function(e){Xm(Jb,e.replace(/=/g,"#").replace(/;/,"@"))},ev=function(){var e=Qm(Jb);return e?e.replace(/#/g,"=").replace(/@/,";"):null},tv=qm(Pr,Rr,"SSOSessionLoggedIn"),nv=function(){Xm(tv,!0)},iv=function(){$m(tv)},ov=function(){$m(Zb),$m(Jb),iv()},av=function(e,t){return cb+"_"+e+(t?"_"+t:"")},rv=function(e,t){try{gb.removeItem(av(e,t))}catch(e){}},sv=function(e,t,n){Ib(av(e,t),n)},cv=function(e,t){var n=Sb(av(e,t));return n.siteId&&n},dv=function(){return"true"===gb.getItem(lb)},lv=function(){return gb.removeItem(lb)},uv=Math.pow(2,0),pv=Math.pow(2,1),hv=Math.pow(2,2),fv=e(1)((function(e){var t=Object.assign({},e);return t.id=e.id,t.isManual=e.isManual,t.type=mu,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})),gv=e(1)((function(e){var t=Object.assign({},e);return t.id=e.id,t.type=bu,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})),wv=e(1)((function(e){var t={};if(t.id=e.id,t.type=gu,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&uv?"bold":"",t.fontStyle=n&pv?"italic":"",t.textDecoration=n&hv?"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 mv(e){var t=Y(e,"page.invitation");if(!t)return null;var n=t.type;return mu===n?fv(t):gu===n?wv(Object.assign({},t,{image:mh(e,t.image)})):bu===n?gv(t):null}var bv,vv,_v,xv=function(e){return e.page&&e.page.invitation},yv=function(e){return e.page&&e.page.ifShowInvitationProcessing},Cv=Gh((function(e){return e.isTaskBot}),!1),kv=function(e){var t=e.window;return t?t.chatStatus!==gp&&t.chatStatus!==hp&&t.chatStatus!==wp?null:t.taskBot||{}:null},Sv=function(e){Cv(e);var t=kv(e);return t&&t.id?t.id:"00000000-0000-0000-0000-000000000000"},Iv=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[]},Tv=function(e,t){return e.window.forms[t]},jv=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]})):[]},Fv=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]}))},Vv=function(e){var t=vf(e),n=[];t&&t.length>0&&t.map((function(t){return mm(e,t)&&n.push(mm(e,t))}));var i=e.window.chatBot;return i&&(n=n.concat(i)),n},Wv=function(e){return e.window&&!!e.window.crossSiteChatTransfer},Nv=function(e){return e.window?e.window.crossSiteChatTransfer:null},Dv=function(e){return Nv(e)?Nv(e).siteId:0},Pv=function(e){return!Nv(e)||Nv(e).isTransferDone},Rv=function(e){return Nv(e)?Nv(e).campaignId:Cw(e)},Ev=function(e){var t=Nv(e);return t&&t.configuration?t.configuration.serverInstanceTag:function(e){return e.configuration.serverInstanceTag}(e)},zv=function(e){var t,n=Nv(e),i=Fh(e),o=xa(mf(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:Mb(d).name,email:Mb(d).email,visitorSendTranscript:!!Gg(e),agents:Vv(e)};return t=l,Object.assign({},t,{type:Gi.requestChatFromAnotherSite,isSupportWebrtc:C})},Lv=function(e){return!Qf(e)&&Ph("sendFile")(e)},Hv=Ph("heartbeat"),qv=Ph("autoInvitation"),Uv=Ph("isFreemium"),Gv=function(e,t){if(t=t||Cw(e),tm(e,t)<1)return!1;var n=e.window,i=ef(e);return!(!n||i===bp)&&(n.chatStatus===gp||n.chatStatus===wp)},Kv=function(e){return e.configuration.features.ga},Yv=function(e,t){return Y(e,"entities.campaigns.entities."+t+".style")},Qv=function(e,t){return Y(e,"entities.campaigns.entities."+t+".cornerStyle")},Zv=function(e){var t=nf(e);return Yv(e,t)},Jv=function(e){var t=nf(e);return Qv(e,t)},Xv=function(e){return e.configuration.customVariables},$v=function(e){return e.configuration.customVariableResult},e_=function(e){return e.configuration.features.hideCreditCard},t_=function(e){return e.configuration.features.showTypingContent},n_=function(e){return e.entities.campaigns.entities[e.window.id].languages},i_=function(e){return function(t,n){var i=function(e){var t=of(e)||nf(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]}}((bv={},bv[mp]="preChatGreetingMessage",bv[bp]="postChatGreetingMessage",bv[vp]="offlineMessageGreetingMessage",bv)),o_=function(e,t){var n=of(e)||nf(e);if(t===mp)return e.entities.campaigns.entities[e.window.id].formStyles.preChatFormStyle===th;if(t===bp){var i=e.entities.campaigns.entities[n];if(!i)return!1;if(i.formStyles)return i.formStyles.postChatFormStyle===th}return e.entities.campaigns.entities[e.window.id].formStyles.offlineMessageFormStyle===th},a_=function(e){return function(t,n){var i=n_(t),o=e[n];if(o)return i[o]}}((vv={},vv[mp]="buttonStartChat",vv[bp]="buttonSubmit",vv[vp]="buttonSubmit",vv)),r_=function(e,t){if(!(t<=0))return n_(e).embeddedWindowNewMessages.replace("{count}",t)},s_=function(e){return n_(e).writeReply},c_=function(e){var t=nf(e),n=rh(e,t).mainColor;return Ga(n)},d_=function(e){return Y(e,"entities.campaigns.entities."+(e.window&&e.window.id)+".chat.showAvatar")},l_=function(e){var t=Cw(e),n=e.entities.campaigns.entities[t];if(!n)return!1;var i=n.header,o=i.chatWindowShowAvatar,a=i.type;return!!o||!(!uf(e)||a!==ih)},u_=function(e,t){if(e.window){var n=function(e){return e.entities.campaigns.entities[e.window.id].sounds}(e);return n&&n[t]}},p_=function(e){var t=e.siteId,n=e.visitorGuid;return e.urls.chatServer.concat(["/visitor.ashx?",t?"siteId="+t:"",n?"&visitorGuid="+n:""].join(""))},h_=function(e){var t=kw(e),n=Iw(e),i=Bw(e);if(Wv(e)){var o=Nv(e);return p_(o,lh(e))}return mh(e,["/visitor.ashx?",n?"siteId="+n:"",t?"&chatGroup="+t:"",i?"&visitorGuid="+i:""].join(""))},f_=function(e){return Ww(e)===yu&&Kh(e)===fp},g_=function(e){return function(e,t){var n=xm(e,t);if(n)return n.customJs}(e,yw(e))},w_=function(e){return uh(e)&&null==Ww(e)},m_=function(e){return function(e){return e.app.isOpenerExists}(e)&&uh(e)&&km(e,Cw(e))&&!w_(e)&&!Kg(e)},b_=function(e,t){return(e.entities.campaigns.entities[t||Cw(e)]||{}).languages},v_=function(e,t){return(e.entities.campaigns.entities[t||Cw(e)]||{}).languageCode||"en"},__=function(e,t,n){if(n=n||Cw(e),t===Nm)return function(e,t){return Y(e,"entities.campaigns.entities."+t+".popupChatWindowTitle")}(e,n);if(t===Pm)return function(e,t){return Y(e,"entities.campaigns.entities."+t+".popupPreChatTitle")}(e,n);if(t===Dm)return function(e,t){return Y(e,"entities.campaigns.entities."+t+".popupOfflineMessageTitle")}(e,n);var i=b_(e,n);return i&&i[t]},x_=function(e){var t=Nv(e),n=t?t.configuration:e.configuration;return n?n.fileServiceUrl:""},y_=function(e){var t=Nv(e);return t?t.configuration.fileServiceAddress:e.configuration.fileService||e.configuration.fileServiceAddress},C_=Ph("ifEnableCompression"),k_=function(e){return e.configuration.fileService},S_=function(e){var t=Nv(e);return t&&t.configuration?t.configuration.fileServiceStandbyAddress:e.configuration.fileServiceStandbyAddress},I_=function(e){return e.configuration.apiHost},M_=function(e){var t=Cw(e);return xm(e,"string"==typeof t?t.toLowerCase():t).type===Bu},A_=function(e){var t=M_(e),n=Rw(e)&&!Ew(e),i=Aw(e);if(i===nu)return!1;var o=!uh(e)&&t;return o&&n&&(o=i===tu),o},B_=(_v={},_v[ip]="kbWin",_v[Zu]="loadingWin",_v[Ju]="loginWin",_v[np]="offlineWin",_v[tp]="postWin",_v[$u]="preWin",_v[Xu]="loginWin",_v),O_=function(e){var t=ef(e),n=$[v_(e)];if(t!==ep)return n[B_[t]];var i=Kh(e),o=b_(e);if(i===hp)return o.embeddedWindowWaitingForChat;if(i===fp)return n.invited;if(i===wp)return o.embeddedWindowChatEnded;var a=function(e){var t=Hf(e);return t?t.name:t}(e);return o.embeddedWindowChattingWithOperator.replace(/{agent}/g,a)},T_=function(e){if(!function(e){return!!rf(e).prechat}(e))return"";var t=eg(e,Do);if(t>0){var n=Sm(e)[t];return n?n.name:""}return""},j_=function(e){var t=function(e){return e.window?e.window.messages.map((function(e){if(e.senderType===cp||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 mm(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},F_=function(e){var t=Uh(e),n=Lg(e);return t||(n=Zw(e)),n},V_=function(e){var t=Nv(e);if(!t)return!1;var n=vf(e);if(0===n.length)return!1;var i=mm(e,n[0]);return!i||t.siteId!==i.siteId},W_=function(){return{type:Tc}},N_=function(){return{type:Oc}},D_=function(){return{type:Ed}},P_=function(e){return{type:jc,payload:e}},R_=function(){return{type:Vc}},E_=function(){return{type:Wc}},z_=function(e){return{type:Nc,payload:e}},L_=function(){return{type:Dc,payload:Date.now()}},H_=function(e){return{type:Tl,payload:e}},q_=function(){return{type:jl}},U_=function(e){return{type:Pc,payload:e}},G_=function(e){return{type:Rc,payload:e}},K_=function(e,t){return{type:ns,payload:{campaignId:e,ifOnline:t}}},Y_=function(e){return{type:as,payload:e}},Q_=function(e){return{type:rs,payload:e}},Z_=function(e){return{type:is,payload:e}},J_=function(e){return{type:ss,payload:e}},X_=function(){return{type:cs}},$_=function(e){return{type:Fs,payload:e}},ex=function(e){return{type:Ns,payload:e}},tx=function(){return{type:Vs}},nx=function(){return{type:Nd}},ix=function(){return{type:Pd}},ox=function(e,t){return{type:Rd,payload:{targetTab:e,newTab:t}}},ax=function(e,t){return void 0===t&&(t=!1),{type:ps,payload:{campaignId:e,isRestoreChat:t}}},rx=function(e,t,n){return{type:xs,payload:{campaignId:e,crossSiteChatTransfer:t,chatInfo:n}}},sx=function(e){return{type:kc,payload:e}},cx=te(sx,$l),dx=function(){var e=te(sx,tu).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},lx=te(sx,nu),ux=te(sx,eu),px=function(e){return{type:Sc,payload:e}},hx=function(e){return{type:Ds,payload:e}},fx=function(e,t){return{type:Ps,payload:{size:e,buttonOffset:t}}},gx=function(e){return{type:Rs,payload:e}},wx=te(gx,Cu),mx=te(gx,ku),bx=function(e){return{type:al,payload:e}},vx=function(e,t){return{type:rl,payload:{guid:e,intId:t}}},_x=function(e){return{type:Es,payload:e}},xx=function(e){return{type:ls,payload:e}},yx=function(e){return{type:ds,payload:e}},Cx=function(e){return{type:us,payload:e}},kx=function(e){return{type:Ql,payload:e}},Sx=function(e){return{type:Zl,payload:e}},Ix=function(e){return{type:Xr,payload:e}},Mx=function(e){return{type:$r,payload:e}},Ax=function(e){return{type:es,payload:e}},Bx=function(e){return{type:ts,payload:e}},Ox=function(e){return{type:Cs,payload:e}},Tx=function(e){return{type:ks,payload:e}},jx=function(e,t){return{type:Ss,payload:{isHidden:!e,campaignId:t}}},Fx=function(e){return{type:Is,payload:e}},Vx=function(e){return{type:As,payload:e}},Wx=function(e,t,n){return{type:Ms,payload:{type:e,fields:t,campaignId:n}}},Nx=function(e,t){return{type:e,payload:t}},Dx=function(e,t,n){return{type:zs,payload:{name:e,percent:t,onCancel:n}}},Px=function(e){return{type:Ls,payload:e}},Rx=function(e){return{type:Hs,payload:e}},Ex=function(e){return{type:Kl,payload:e}},zx=function(e){return{type:gs,payload:e}},Lx=function(e,t,n){return{type:qs,payload:{ssoUrl:e,showPrelogin:t,ifOpenSignInPageEmbeddedWindow:n}}},Hx=function(e,t){return{type:Xs,payload:t}},qx=function(e){return{type:ec,payload:e}},Ux=function(e){return{type:$s,payload:e}},Gx=function(e){return{type:vl,payload:e}},Kx=function(e){return{type:Us,payload:e}},Yx=function(e){return{type:tc,payload:e}},Qx=function(e,t,n){return void 0===n&&(n={}),{type:Ks,payload:{message:e,guid:ne(),ifCardMasking:t,options:n}}},Zx=function(e,t){return{type:Ys,payload:e,meta:t}},Jx=function(){return{type:Zs}},Xx=function(){return{type:Js}},$x=function(e){return{type:Bc,payload:e}},ey=$x,ty=$x,ny=function(e){return{type:Mc,payload:e}},iy=function(e){return{type:zc,payload:e}},oy=ny,ay=te(ny,""),ry=function(e){return{type:Ic,payload:e}},sy=function(){return{type:Ec}},cy=ry,dy=te(ry,""),ly=function(){return{type:fd}},uy=function(e){return{type:gd,payload:e}},py=function(e,t,n,i,o,a){return{type:wd,payload:{ifHelpful:e,actionGuid:t,intentId:n,question:i,botId:o,chatbotMessageId:a}}},hy=function(e,t,n,i){return{type:Hd,payload:{formActionType:2,guid:e,intentId:t,agentId:n,botId:i,formName:""}}},fy=function(e,t,n,i,o,a,r){return{type:qd,payload:{formActionType:0,guid:e,intentId:t,agentId:n,values:a,botId:i,question:o,message:r,formName:""}}},gy=function(e){return{type:Ud,payload:e}},wy=function(e,t){return{type:nc,payload:{chatGuid:e,serverTime:t}}},my=function(e,t){return{type:ws,payload:{type:e,params:t}}},by=function(e){return{type:Ld,payload:e}},vy=function(){return{type:bd}},_y=function(){return{type:_s}},xy=function(e){return{type:Lc,payload:e}},yy=function(e){return{type:Hc,payload:e}},Cy=te(yy,!0),ky=te(yy,!1),Sy=function(){return{type:hs}},Iy=function(){return{type:fs}},My=function(e){return{type:vd,payload:e}},Ay=function(e){return{type:_d,payload:{message:e}}},By=function(e,t,n){return{type:Cd,payload:{localVideoContainer:e,remoteVideoContainer:t,unmuteRemoteContainer:n}}},Oy=function(){return{type:jd}},Ty=function(e,t){return{type:Id,payload:{localVideoContainer:e,remoteVideoContainer:t}}},jy=function(){return{type:Md}},Fy=function(){return{type:Ad}},Vy=function(e){return{type:Fd,payload:e}},Wy=function(e){return{type:Vd,payload:e}},Ny=function(e){return{type:Wd,payload:e}},Dy=function(e){return{type:ic,payload:e}},Py=function(e){return{type:cc,payload:e}},Ry=function(e){return{type:dc,payload:e}},Ey=function(){return{type:ac}},zy=function(e){return{type:rc,payload:e}},Ly=function(){return{type:zd}},Hy=function(e){return{type:sl,payload:e}},qy=function(){return{type:Gs}},Uy=function(){return{type:cl}},Gy=function(e){return{type:dl,payload:e}},Ky=function(){return{type:gl}},Yy=function(e){return{type:wl,payload:e}},Qy=function(e){return{type:yl,payload:e}},Zy=function(){return{type:ml}},Jy=function(e){return{type:Cl,payload:e}},Xy=function(){return{type:kl}},$y=function(){return{type:Sl}},eC=function(e){return{type:Il,payload:e}},tC=function(e,t,n,i,o,a){return{type:_l,payload:{url:e,type:t,title:n,iframe:i,noFocus:o,botId:a}}},nC=function(){return{type:xl}},iC=function(){return{type:Gd}},oC=function(e,t){return{type:bs,payload:{right:e,bottom:t}}},aC=function(e){return{type:sc,payload:e}},rC=function(e,t){return aC({text:e,ifDirectlySendOut:t})},sC=function(){return aC(void 0)},cC=function(){return{type:Os,payload:!0}},dC=function(){return{type:Ts,payload:!0}},lC=function(e,t){return{type:Bl,payload:{guid:e,fieldsValue:t}}},uC=function(e){return{type:vs,payload:e}},pC=function(e){return{type:lc,payload:e}},hC=function(e){return{type:uc,payload:e}},fC=function(e){return{type:pc,payload:e}},gC=function(){return{type:Ol}},wC=function(){return{type:hc}},mC=function(){return{type:hd}},bC=function(){return{type:fc}},vC=function(e){return{type:Od,payload:{guid:e}}},_C=function(e){return{payload:e,type:Td}},xC=function(e){return{payload:e,type:gc}},yC=function(e,t){return{payload:{isTransferDone:e,chatGuid:t},type:wc}},CC=function(e){return{payload:e,type:mc}},kC=function(e){return{payload:e,type:bc}},SC=function(e){return{payload:e,type:Cc}},IC=function(e){return{payload:e,type:vc}},MC=function(){return{type:_c}},AC=function(e){return{type:qc,payload:e}},BC=function(e){return{type:Vl,payload:e}},OC=function(e){return{type:Wl,payload:e}},TC=function(e){return{type:Nl,payload:e}},jC=function(){return{type:Dl}},FC=function(e){return{type:xc,payload:e}},VC=function(){return{type:yc}},WC=function(e){return{type:Ac,payload:e}},NC=function(e){return{type:Pl,payload:e}},DC=function(e){return{type:zl,payload:{remoteVideoContainer:e}}},PC=function(e,t){return{type:El,payload:{localVideoContainer:e,remoteVideoContainer:t}}},RC=function(){return{type:js,payload:!0}},EC=function(){return{type:js,payload:!1}},zC=function(){return{type:Rl}},LC=function(e){return{type:Ll,payload:e}},HC=function(e){return{type:Hl,payload:e}},qC=function(){return{type:ms}},UC=function(e){return{type:Ul,payload:e}},GC=function(e){var t=e.url,n=e.name;return{type:ql,payload:{url:t,name:n}}},KC=function(e){return{type:Gl,payload:e}},YC=function(e){return{type:Yl,payload:e}},QC=function(e){return{type:ys,payload:e}},ZC=function(){for(var e=arguments.length,t=new Array(e),n=0;n0){var l=d.map((function(e){return e.id}));return r(Dk(t,l)),void c(l)}var u=hr(a),p=Rb().popout;p&&p.ticketId&&!Number.isNaN(+p.ticketId)&&(u.ticketId=+p.ticketId),p&&p.departmentId&&!Number.isNaN(+p.departmentId)&&(u.department=+p.departmentId),r(jk(t)),wS(i+".submit",u),r(e(Ya(u),(function(e){return new Promise((function(c){wS(i+".submit.success"),r(Fk(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(Wk(d,t)),setTimeout((function(){r(t===vp?Cy():function(e){return{type:ol,meta:e}}(t)),c(e),s()}),o)}))}),(function(e){wS(i+".submit.fail",e),c(null,e)})))}))}}},Rk=Pk(nk,mp),Ek=Pk(ik,bp,bp),zk=Pk(ok,vp),Lk=function(e,t,n){return e===mp?Rk("livechat.prechat",t,n):e===bp?Ek("livechat.postChat",t,n):zk("livechat.offlineMessage",t,n)},Hk=3e4,qk=18e4,Uk=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))},Gk=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 Kk(e,t,n){void 0===n&&(n=!0);var i=e.getState(),o=$v(i),a=Object.assign({},o,t);if(!Uk(a,o)){n&&e.dispatch(Ix({customVariableResult:a}));var r=o?Gk(a,o):a;Object.keys(r).length>0&&e.dispatch(hk(r))}}var Yk,Qk,Zk,Jk=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(!zS.includes(e[o].type)){n=o;break}return n},HS=function(e,t){return e.concat(t)},qS=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},$S=function(e){return function(t,n){var i=JS(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:sp}}),quickReply:null})}},eI=function(e,t){Lb()||Eb({mediaChatHash:Date.now().toString()});var n=e.involvedAgents||[];return n.filter((function(e){return e===t})).length>0?Object.assign({},e,{chatStatus:gp,visitorStatus:ou}):(n=(e.involvedAgents||[]).concat([t]),Object.assign({},e,{involvedAgents:n,chatStatus:gp,isChatBot:!1,webView:null,quickReply:null,visitorStatus:ou}))},tI=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===Fp||t===Vp;return{sideWindowSelectedTab:t,disPlayPriority:n,showChatWindowInSidewindow:i,isFocused:i}},nI=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===Op&&a,s=t.id;return Da()&&(s=e.tab===ip?Vp:Fp,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})},iI=function(e,t,n,i){return void 0===i&&(i=!1),t?nI(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===Fp||o.sideWindowSelectedTab===Vp?(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)},oI=function(e,t){return Object.assign({},e,iI(e,t.status===ra||t.status===oa||t.status===sa,Tp),iI(e,t.status===la||t.status===ca||t.status===da,jp),{vChatStatus:t.status,audioVideoChatStartTime:t.startTime||0,audio_video_disabled:t.status!==aa})},aI=function(e,t){return Object.assign({},e,iI(e,t.status===pa||t.status===ha||t.status===fa||t.status===ga||t.status===wa,Np),{screenSharingStatus:t.status,screenSharing_disabled:t.status!==ua})},rI=function(e){return Object.assign({},oI(e,{status:aa,startTime:0}),{audioVideoAgentId:0,isRecording:!1})},sI=function(e){return Object.assign({},aI(e,{status:ua}),{screenSharingAgentId:0})},cI=function(e){return Object.assign({},(t=e,n={status:ua},Object.assign({},t,iI(t,n.status===pa||n.status===ha||n.status===fa||n.status===ga||n.status===wa,Np),{screenSharingStatus:n.status})),{screenSharingAgentId:0});var t,n},dI=function(e){var t=fb();if(t.removeItem("pushpage_list"),t.removeItem("botConfidenceAnswerLoading_list"),!e)return e;var n=YS(e.messages.filter(US),!1);return n=QS(n.filter((function(e){return e.type!==Ri}))),n=ZS(n),Object.assign({},e,iI(e,!1,Bp),iI(e,!1,Op),{disPlayPriority:0,chatStatus:wp,error:"",warning:"",messages:n,webView:null,quickReply:null,visitorStatus:lu})},lI=function(e,t){return n=e.chatGuid,((i=Hb(n))?i===Lb():(qb(n),1))?t():e;var n,i},uI=function(e,t){return!!e.crossSiteChatTransfer&&(!!t.siteId&&e.crossSiteChatTransfer.siteId!==t.siteId)},pI=function(){return function(e,t){return e.webView?Object.assign({},e,{webView:null}):e}},hI=function(){return function(e,t){if(t.type===Qn){var n=pI()(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:qh,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:Hh,name:t.content.textChatWithAgent}],contactAgentText:t.content.textChatWithAgent}});if(t.type===Gn||t.type===Un||t.type===Zn){var i=pI()(e,t);return Object.assign({},i,{quickReply:null})}if(t.type===En||t.type===qn){var o=e;if(t.type===En&&(o=pI()(e,t)),t.content.intentAnswers&&t.content.intentAnswers.length>0){var a=null,r=t.content.intentAnswers.filter((function(e){return e.type===kS}));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})}},fI=function(e,t,n,i,o,a){var r,s=Object.assign({},AS,((r={})[Ei]=function(n){var i=QS(n.messages.filter((function(e){return e.id=t.id}))),isTaskBot:!1,isVisibleInputAreaWhenTaskbot:!0,enableChatInputWhenTaskbot:!0})},r[Gt]=function(e){if(uI(e,t))return e;var n=t.content.agent.id||t.senderId;return Object.assign({},eI(e,n),{involvedAgents:[n],isTaskBot:!1,webView:null})},r[Qt]=function(e){return uI(e,t)?e:eI(e,t.content.agent.id)},r[en]=function(e){return uI(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,iI(e,!1,Bp),{chatStatus:wp,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 dI(e);var t=QS(e.messages.filter((function(e){return e.type!==Ri}))).filter((function(e){return e.type!==Dn})).concat({type:Dn,sender:{type:cp}});return Object.assign({},e,{error:""},iI(e,!1,Bp),{chatStatus:wp,quickReply:null,webView:null,visitorStatus:lu,messages:t})},r[Wt]=function(e){return Object.assign({},e,{chatStatus:hp,quickReply:null,webView:null,visitorStatus:iu})},r[Xn]=function(e){return Object.assign({},e,{chatStatus:hp,quickReply:null,webView:null,visitorStatus:iu})},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,RS);return i=Dr(i,n),Object.assign({avatar:i},o)}()),chatStatus:gp,visitorStatus:ou})}(e,t,o)},r[pn]=function(e){return lI(e,(function(){return oI(e,{status:ra})}))},r[fn]=function(e,t){return lI(e,(function(){return oI(e,{status:sa,startTime:t.time-e.timeDelay})}))},r[kn]=function(e){return lI(e,(function(){return oI(e,{status:la})}))},r[In]=function(e,t){return lI(e,(function(){return oI(e,{status:da,startTime:t.time-e.timeDelay})}))},r[sn]=function(e,t){return e.vChatStatus!==aa?e:lI(e,(function(){return Object.assign({},oI(e,{status:oa}),{audioVideoAgentId:t.sender.id})}))},r[dn]=function(e,t){return lI(e,(function(){return Object.assign({},oI(e,{status:sa,startTime:t.time-e.timeDelay}),{audioVideoAgentId:t.sender.id})}))},r[vn]=function(e,t){return e.vChatStatus!==aa?e:lI(e,(function(){return Object.assign({},oI(e,{status:ca}),{audioVideoAgentId:t.sender.id})}))},r[xn]=function(e,t){return lI(e,(function(){return Object.assign({},oI(e,{status:da,startTime:t.time-e.timeDelay}),{audioVideoAgentId:t.sender.id})}))},r[cn]=rI,r[ln]=rI,r[un]=rI,r[Cn]=rI,r[yn]=rI,r[_n]=rI,r[Bn]=rI,r[On]=rI,r[mn]=rI,r[bn]=rI,r[Sn]=rI,r[Mn]=rI,r[An]=rI,r[hn]=rI,r[gn]=rI,r[wn]=rI,r[xi]=function(e){return lI(e,(function(){return aI(e,{status:pa})}))},r[Ci]=function(e){return lI(e,(function(){return aI(e,{status:fa})}))},r[wi]=function(e,t){return e.screenSharingStatus!==ua?e:lI(e,(function(){return Object.assign({},aI(e,{status:ha}),{screenSharingAgentId:t.sender.id})}))},r[bi]=function(e,t){return lI(e,(function(){return Object.assign({},aI(e,{status:ga}),{screenSharingAgentId:t.sender.id})}))},r[Bi]=function(e,t){return lI(e,(function(){return Object.assign({},aI(e,{status:ga}),{screenSharingAgentId:t.sender.id})}))},r[Ii]=function(e,t){return e.screenSharingStatus!==ua?e:lI(e,(function(){return Object.assign({},aI(e,{status:wa}),{screenSharingAgentId:t.sender.id})}))},r[mi]=sI,r[vi]=sI,r[_i]=sI,r[Oi]=sI,r[Wi]=sI,r[yi]=sI,r[ki]=sI,r[Ai]=sI,r[Si]=sI,r[Mi]=sI,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]=hI(),r[En]=hI(),r[Qn]=hI(),r[Ln]=hI(),r[qn]=hI(),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]=hI(),r[Gn]=hI(),r[Un]=hI(),r[Kn]=hI(),r.cancelBotForm=hI(),r[Ut]=function(e){return Object.assign({},e,{visitorStatus:pu})},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},gI=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:uu,chatVersion:"",isMessageScrollBottom:!0},e)},wI=e(1)((function(e,t){return e.find((function(e){return e.guid===t.guid}))}));function mI(e){return gI({id:e.id,tab:Zu,right:e.right,bottom:e.bottom})}var bI,vI,_I=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===cp)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},xI=Object.assign({},PS,((Zk={})[sc]=function(e,t){return Object.assign({},e,{pendingMessage:t})},Zk[xs]=function(e,t,n){var i=t.campaignId,o=t.crossSiteChatTransfer,a=t.chatInfo,r=n.right,s=n.bottom;return gI({id:i,tab:ep,involvedAgents:[],chatStatus:gp,visitorStatus:ou,chatGuid:o.chatGuid,crossSiteChatTransfer:o,right:r,bottom:s,maxReadId:a.maxReadId,isFocused:a.windowStatus!==tu})},Zk[ps]=function(e,t,n){var i=t.campaignId,o=n.right,a=n.bottom;return gI({id:i,tab:Zu,right:o,bottom:a})},Zk[bd]=mI,Zk[_s]=mI,Zk[as]=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===wu||t.type===mu&&t.isManual?function(e,t,n,i){var o=t.isManual,a=o&&(t.type===mu||t.type===wu),r=t.chat,s=su;return o&&(s=a?pu:ru),gI({id:e,tab:ep,chatStatus:fp,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:cp},content:t.text,guid:ne()}],sourceMessages:[],involvedAgents:t.agent?[t.agent.id]:[],visitorStatus:s})}(i,t,o,a):e},Zk[bs]=function(e,t){return Object.assign({},e,{right:t.right,bottom:t.bottom})},Zk[Ps]=function(e,t){var n=t.buttonOffset;return e?Object.assign({},e,{right:n.right,bottom:n.bottom}):e},Zk[qs]=function(e,t){return Object.assign({},e,t)},Zk[Xs]=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,ES);return n=Dr(n,i),Object.assign({avatar:n},o)}()})},Zk[$s]=function(e,t){return Object.assign({},e,{chatbotContext:t})},Zk[ec]=function(e,t){return Object.assign({},e,{fields:Object.assign({},e.fields,t)})},Zk[vl]=function(e,t){return Object.assign({},e,{kbConfig:t})},Zk[Us]=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!wI(e.sourceMessages,t)})),d=e.isVisibleInputAreaWhenBotChatting,l=c[c.length-1];l&&(CI(l)||[up,cp].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||wI(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===cp&&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 HS(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 HS(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 HS(v,s)}if(s.type===Vn)return[].concat(r).filter((function(e){return e.type!==Dn})).concat(s).concat({type:Dn,sender:{type:cp}});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:dp}}):t}));if(s.type===Ui){var _=[].concat(r);return s.recalledMessage&&s.recalledMessage.type===nn?qS(_,s,(function(e){return e.type===on&&e.content===s.recalledMessage.content.guid})):HS(r,s)}return HS(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 fI(e,t,i,0,a,r)}),Object.assign({},e,{messages:b,sourceMessages:e.sourceMessages.concat(_I(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===gp&&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}))})},Zk[Js]=function(e){return wS("livechat.chat.start",e.chatGuid),function(e){return Object.assign({},e,{isChatBot:!0,isTaskBot:!1,chatStatus:gp,messages:e.messages.filter((function(e){return"system"===e.sender.type})),maxId:-1,visitorStatus:ou})}(e)},Zk[Ic]=function(e,t){return e&&e.error!==t?Object.assign({},e,{error:t}):e},Zk[Kl]=function(e,t){return Object.assign({},e,{botCollectFileError:t})},Zk[Mc]=function(e,t){return e&&e.warning!==t?Object.assign({},e,{warning:t,stopLimitClocker:""===t||e.stopLimitClocker,limitClockerCount:""===t?0:e.limitClockerCount}):e},Zk[Ec]=dI,Zk[nc]=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})},Zk[zc]=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})},Zk[kc]=function(e,t){return t===nu?null:t===tu?Object.assign({},e,{isFocused:!1,maxReadId:Math.max(e.maxId,e.maxReadId)}):(t===eu&&oe&&wS("livechat.chatwindow.restore"),t===$l||t===eu?Object.assign({},e,{isFocused:!0,maxReadId:Math.max(e.maxId,e.maxReadId)}):e)},Zk[Lc]=function(e,t){return Object.assign({},e,{ifHideBio:t})},Zk[wd]=function(e,t){if(e.chatStatus===gp&&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},Zk[ms]=function(e,t,n){var i=n.languages;return Object.assign({},e,{error:i.promptRemoveRestrictedWords})},Zk[ws]=function(e,t,n){var i,o=n.maxLength,a=n.languages,r=((i={})[Sp]=function(){return a.promptInputLimit.replace(ae,o)},i[kp]=function(){return"File must not be empty."},i[Cp]=function(){return a.promptFileSizeExceed.replace("{fileSize}",t.params.fileSize)},i[Ip]=function(){return"You're sending messages too frequently. Please wait for "+t.params.seconds+" second(s) and try again."},i[Mp]=function(){return a.promptSendFileCountLimit.replace("{fileCount}",t.params.fileCount)},i[Ap]=function(){return"This file type is not supported."},i);if(t.type===Ip&&t.params.fromClocker&&e.stopLimitClocker)return e;if(t.type===Ip&&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!==Mp?e.warning:s,botCollectFileError:t.params&&t.params.isBotCollectFile?t.type===Mp?"":s:e.error,stopLimitClocker:t.type!==Ip&&e.stopLimitClocker,limitClockerCount:t.type===Ip?e.limitClockerCount+1:e.limitClockerCount})}return e},Zk[fd]=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})},Zk[Hc]=function(e,t){return t===e.disabled?e:Object.assign({},e,{disabled:t})},Zk[hs]=function(){return null},Zk[vd]=function(e,t){return 0===t.position&&0===t.waitTime?e:Object.assign({},e,{queue:{position:t.position,waitTime:Math.ceil(t.waitTime/60)}})},Zk[yd]=oI,Zk[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})},Zk[Os]=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})},Zk[js]=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})},Zk[Bs]=function(e,t){var n=Object.assign({},e.fields,{rating:t.score,comment:t.comment});return Object.assign({},e,{fields:n})},Zk[xd]=function(e,t){var n=[];return t.forEach((function(t){(t.type!==ui||XS(e,ui))&&(t.type!==ji||XS(e,ji))&&(t.type!==Vi||XS(e,Vi))&&(t.type!==pi||XS(e,pi))&&(t.type!==Fi||XS(e,Fi))&&(t.type!==gi||XS(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)})},Zk[Fd]=function(e,t){var n={};return n.showChatWindowInSidewindow=t===Fp,n.isFocused=n.showChatWindowInSidewindow,n.maxReadId=n.showChatWindowInSidewindow?Math.max(e.maxReadId,e.maxId):e.maxReadId,Object.assign({},e,n,tI(e,t))},Zk[Vd]=function(e,t){return t?e.sideWindowSelectedTab?e:e.sideWindowItems&&0!==e.sideWindowItems.length?Object.assign({},e,tI(e,e.sideWindowItems[0].id)):e:e.sideWindowSelectedTab?Object.assign({},e,{sideWindowSelectedTab:void 0}):e},Zk[kd]=function(e){return rI(e)},Zk[Sd]=function(e){return cI(e)},Zk[Nd]=function(e){return Object.assign({},e,iI(e,!1,Bp))},Zk[Dd]=function(e){return Object.assign({},e,iI(e,!0,Bp))},Zk[Pd]=function(e){return Object.assign({},e,iI(e,!1,Wp))},Zk[Rd]=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))},Zk[ic]=function(e,t){return Object.assign({},e,{maxReadId:t})},Zk[oc]=function(e,t){return Object.assign({},e,{id:t})},Zk[ac]=function(e,t,n){return n?null:e},Zk[rc]=function(e,t){return e?e.popupBubble===t?e:Object.assign({},e,{popupBubble:t,autoEjectTranscript:!1}):e},Zk[Wd]=function(e,t){var n=e;t&&t.length>0&&[].concat(t).forEach((function(e){n=nI(n,e)}));return Object.assign({},e,n)},Zk[Ld]=function(e,t){return e?e.frequencyLimitState===t?e:Object.assign({},e,{frequencyLimitState:t}):e},Zk[Jc]=function(e,t){return Object.assign({},e,function(e,t,n){var i=e.fields||{};return i[t]=n,{fields:i}}(e,Fo,t))},Zk[sl]=function(e,t){return null==e||e.id===t?e:Object.assign({},e,{id:t})},Zk[Gs]=function(e){return e?Object.assign({},e,{messages:e.messages.filter((function(e){return e.type!==Xt}))}):e},Zk[dl]=function(e){return e},Zk[ll]=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})},Zk[gl]=function(e){return Object.assign({},e,{kbChatWithAgentClicked:!0})},Zk[ul]=function(e){return Object.assign({},e,{kb:Object.assign({},e.kb,{isLoading:!0})})},Zk[hl]=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:""})},Zk[fl]=function(e,t){return Object.assign({},e,iI(e,!0,Bp),{kb:Object.assign({},e.kd,{activeArticle:t}),error:""})},Zk[wl]=function(e,t){return Object.assign({},e,iI(e,!0,Bp),{kb:Object.assign({},e.kb,{activeArticle:t})})},Zk[yl]=function(e,t){return Object.assign({},e,iI(e,!0,Wp),{pushPage:Object.assign({},e.pushPage,{url:t})})},Zk[ml]=function(e){return Object.assign({},e,{error:"Network error",kb:{isLoading:!1}})},Zk[bl]=function(e,t){return Object.assign({},e,{error:404===t?"Page not found":"Network error"})},Zk[Cl]=function(e,t){return Object.assign({},e,{webView:t})},Zk[kl]=function(e){return Object.assign({},e,{webView:null})},Zk[Sl]=function(e){return Object.assign({},e,{webView:Object.assign({},e.webView,{ifLoading:!0})})},Zk[Il]=function(e,t){return Object.assign({},e,{webView:Object.assign({},e.webView,{ifLoading:!1,visitorInfo:t})})},Zk[_l]=function(e,t){return Object.assign({},e,iI(e,!0,Op,t.noFocus),{botSideWindow:t})},Zk[xl]=function(e){return Object.assign({},e,iI(e,!1,Op),{botSideWindow:null})},Zk[Gd]=function(e){return Object.assign({},e,{messages:e&&e.messages?e.messages.filter(GS).filter(KS):[]})},Zk[cc]=function(e,t){return t!==e.maxAgentReadId?Object.assign({},e,{maxAgentReadId:t}):e},Zk[dc]=function(e,t){return Object.assign({},e,{maxVisitorReadId:t})},Zk[Bl]=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}))})},Zk[Fl]=function(e,t){return Object.assign({},e)},Zk[vs]=function(e,t){return e.showToolbox===t?e:Object.assign({},e,{showToolbox:t})},Zk[lc]=function(e,t){return e.visitorStatus===t?e:Object.assign({},e,{visitorStatus:t})},Zk[uc]=function(e,t){return e?e.chatVersion===t?e:Object.assign({},e,{chatVersion:t}):e},Zk[pc]=function(e,t){return e.emailToSendTranscript===t?e:Object.assign({},e,{emailToSendTranscript:t})},Zk[Ol]=function(e){return Object.assign({},e,{quickReply:null})},Zk[Bd]=function(e,t){return e.isRecording===t?e:Object.assign({},e,{isRecording:t})},Zk[Od]=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})},Zk[Td]=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})},Zk[gc]=function(e,t){var n=Object.assign({},e.crossSiteChatTransfer,{campaignId:t});return Object.assign({},e,{crossSiteChatTransfer:n})},Zk[vc]=function(e,t){var n=Object.assign({},e.crossSiteChatTransfer,{visitorGuid:t});return Object.assign({},e,{crossSiteChatTransfer:n})},Zk[wc]=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})}))})},Zk[mc]=function(e,t){return Object.assign({},e,{crossSiteChatTransfer:t})},Zk[bc]=function(e,t){var n=Object.assign({},e.crossSiteChatTransfer,{configuration:t});return Object.assign({},e,{crossSiteChatTransfer:n})},Zk[Cc]=function(e,t){return Object.assign({},e,{chatBot:Object.assign({},e.chatBot,{intentQuestions:t})})},Zk[_c]=function(e,t){return Object.assign({},e,{fields:Object.assign({},e.fields,{rating:void 0,comment:void 0})})},Zk[qc]=function(e,t){var n=e.crossSiteChatTransfer;return Object.assign({},e,{crossSiteChatTransfer:Object.assign({},n,{configuration:Object.assign({},n.configuration,{serverInstanceTag:t})})})},Zk[qc]=function(e,t){var n=e.crossSiteChatTransfer;return Object.assign({},e,{crossSiteChatTransfer:Object.assign({},n,{configuration:Object.assign({},n.configuration,{serverInstanceTag:t})})})},Zk[Vl]=function(e,t){return Object.assign({},e,{isVisibleInputAreaWhenBotChatting:t})},Zk[Wl]=function(e,t){return Object.assign({},e,{isDisableInputAreaWhenBotChatting:t})},Zk[Ud]=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)})})},Zk[Nl]=function(e,t){return null===e?e:Object.assign({},e,{isMessageScrollBottom:t})},Zk[Dl]=function(e){return Object.assign({},e,{messages:e.messages.map((function(e){return!1===e.isSeenByVisitor?Object.assign({},e,{isSeenByVisitor:!0}):e}))})},Zk[xc]=function(e,t){return Object.assign({},e,{autoEjectTranscript:t,popupBubble:"sendEmail"})},Zk[yc]=function(e){return Object.assign({},e,{messages:e.messages.filter((function(e){return e.type!==Dn})),forms:Object.assign({},e.forms,{rating:op})})},Zk[Ac]=function(e,t){return Object.assign({},e,{width:t})},Zk[Pl]=function(e,t){return null===e?e:Object.assign({},e,{isPostChatVisible:t})},Zk[Hl]=function(e,t){return null===e?e:Object.assign({},e,iI(e,!t,Np))},Zk[ql]=function(e,t){return null===e?e:Object.assign({},e,{previewImage:t})},Zk[Yl]=function(e,t){return Object.assign({},e,{ssoInfo:t})},Zk[ys]=function(e,t){return Object.assign({},e,{chatWindowGreetingMessage:t})},Zk)),yI=U(null,xI),CI=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},kI=U({},((bI={})[Xr]=function(e,t){return Object.assign({},e,t)},bI[$r]=function(e,t){return Object.assign({},e,{messageLengthLimit:t})},bI[rd]=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})})},bI[es]=function(e,t){return Object.assign({},e,{serverInstanceTag:t})},bI[ts]=function(e,t){return Object.assign({},e,{url:t})},bI)),SI=function(e,t){return e.entities.campaigns.entities[t||e.window.id].languages},II=function(e,t,n){return Object.assign({},t,{config:SI(e,n)})};function MI(e,t){var n=Om(e,t),i=Tm(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=Kw(e);o.bottom=s-n.top-n.height}if(r){var c=Yw(e);o.right=c-n.left-n.width}return o}var AI=((vI={})[ps]=function(e,t){var n=MI(e,t.payload.campaignId);return Object.assign({},t,{config:n})},vI[xs]=function(e,t){var n=MI(e,t.payload.campaignId);return Object.assign({},t,{config:n})},vI[as]=function(e,t){var n=b_(e),i=t.payload.campaignId,o=MI(e,i),a=o.right,r=o.bottom,s=function(e,t){return xm(e,t).type}(e,i);return Object.assign({},t,{config:{right:a,bottom:r,campaignId:i,ifHideAgentName:jh(e),agentDefaultName:n&&n.operatorDefaultName||"Agent",buttonType:s,apiHost:I_(e)}})},vI[ms]=function(e,t){return Object.assign({},t,{config:{languages:SI(e)}})},vI[ws]=function(e,t){return Object.assign({},t,{config:{languages:SI(e),maxLength:Oh(e)}})},vI[dl]=function(e,t){return II(e,t)},vI[Us]=function(e,t){var n=rf(e),i=af(e),o=e.entities.fields.entities,a=function(e){return Mw(e),xf(e),Ow(e),x_(e)+"/download.ashx?siteId="+Iw(e)+"&chatGuid="+xf(e)+"&visitorGuid="+Bw(e)+"&TranscriptPDF=1"}(e),r=jh(e),s=n&&n.languages,c=s?s.operatorDefaultName:"Agent",d=I_(e);return Object.assign({},t,{config:{campaign:n,fields:o,downloadUrl:a,ifHideAgentName:r,agentDefaultName:c,apiHost:d,crossSiteTransferCampaign:i}})},vI[Xd]=function(e,t){return II(e,t,Rv(e))},vI[ac]=function(e,t){return Object.assign({},t,{config:f_(e)})},vI[zd]=function(){return lx()},vI[gs]=function(e,t){var n=Ww(e)===xu;return Object.assign({},t,{config:n})},vI[wl]=function(e,t){var n=function(e,t){return Y(e,"entities.kbArticles.entities."+t)}(e,t.payload);return Object.assign({},t,{payload:n})},vI[Is]=function(e,t){var n=jh(e),i=function(e){return rh(e,yw(e))}(e),o=i&&i.languages,a=o?o.operatorDefaultName:"Agent",r=I_(e);return Object.assign({},t,{config:{ifHideAgentName:n,agentDefaultName:a,apiHost:r}})},vI[kc]=function(e,t){if(t.payload!==nu)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},vI[hs]=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},vI[wc]=function(e,t){return Object.assign({},t,{config:Iw(e)})},vI),BI=a({app:Xl,page:Fu,entities:Qu,window:yI,configuration:kI}),OI=function(e,t){return t.payload&&t.payload.window&&t.type===Tl?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):BI(e,function(e,t){return AI[t.type]?AI[t.type](e,t):t}(e,t))},TI="",jI=function(){var e=Rb().popout;if(e){var t={};return e.ticketId&&(t.ticketId=e.ticketId),e.departmentId&&(t.department=e.departmentId),t}return{}},FI="granted",VI="denied",WI="notsupported",NI=function(){var e=[FI,"default",VI,WI],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 WI}}),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()?FI:VI}}),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}(),DI=NI.requestPermission,PI="video-request",RI="screensharing-request",EI=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=""}))}}}(),zI=se(EI.play,500),LI=ce((function(e,t){if(NI.permission===FI){var n=new NI(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 HI(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent}var qI,UI=function(){return{type:OS,payload:{type:"locationCancelled"}}},GI=function(){return{type:TS,payload:{type:"visitorSSOCancelled"}}},KI=function(){return{type:jS,payload:{type:"meetingCancelled"}}},YI=function(){return{type:NS,payload:{type:"microsoftBooking"}}},QI=function(e){var t=e.eventUri,n=e.inviteeUri;return{type:FS,payload:{bookMeetingEventUri:t,bookMeetingEventInviteeUri:n,type:"meetingSubmitted"}}},ZI=function(e){return{payload:e,type:VS}},JI=function(e){return{type:WS,payload:{guid:e}}},XI="chat",$I="chatbot",eM="taskbot",tM="offline",nM="systemProcessing",iM=((qI={}).prechat=function(e){e(zx($u)),e(pC(au)),e(_x(au))},qI[XI]=function(e,t){Kf(t)||(e(Jx()),e(zx(ep)),e(pC(iu)),e(_x(iu)))},qI[$I]=function(e,t,n){var i=I_(t);e(Hx(n.url,Object.assign({apiHost:i},n.bot))),e(Xx()),e(zx(ep)),e(pC(ou)),e(_x(ou))},qI[eM]=function(e,t,n){e({type:BS}),e(zx(ep)),e(pC(ou)),e(_x(ou))},qI[tM]=function(e){e(zx(np)),e(pC(cu)),e(_x(cu))},qI.sso=function(e,t,n){e(Lx(yh(t,n.url),n.showPrelogin,n.ifOpenSignInPageEmbeddedWindow));var i=de(H.location.href,"ssoInfo");if(i){e(ak(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(zx(Ju)):e(zx(Xu)),n.showPrelogin||n.ifOpenSignInPageEmbeddedWindow||(uh(t)?e(bC()):e(wC()));e(pC(uu)),e(_x(uu))},qI.kb=function(e){e(zx(ip)),e(pC(fu)),e(_x(fu))},qI),oM=function(e,t,n){if(n.next===XI||n.next===$I||n.next===eM){var i=n.chatGuid,o=n.serverTime;"chatWindowGreetingMessage"in n&&e(QC(n.chatWindowGreetingMessage)),e(wy(i,o)),setTimeout((function(){return e(Ck(),0)}))}if("kb"===n.next){var a=n.ifOnline,r=n.id,s=n.greetingMessage,c=n.maxCount;e(K_(nf(t),a)),e(Gx({id:r,greetingMessage:s,maxCount:c}))}else e(K_(nf(t),n.next!==tM));(iM[n.next]||function(){})(e,t,n)},aM=1004,rM=1036,sM=314,cM=1050,dM=4342338;function lM(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 uM(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}})}),dM);!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:lM(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=qk,c.send(n)):(c.timeout=Hk,c.send(JSON.stringify(n)))}))}var pM,hM,fM=te(uM,"GET"),gM=te(uM,"POST"),wM=fM,mM=gM,bM=function(e,t,n,i,o){var a=new FormData;return a.append("file",t,o),mM(e,a,i,[{prop:"Authorization",value:"Bearer "+n.token}])},vM=function(e,t,n,i){var o=n.replace(/\/campaign\.ashx.*$/i,""),a=function(e){return e&&o+(/^\//.test(e)?e:"/"+e)};return e(Ox({id:t,entity:null,fetchStatus:Vu})),wM(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?vh(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(Ox({id:t,entity:o,error:null,fetchStatus:Wu})),o})).catch((function(n){throw e(Ox({id:t,entity:null,error:n.error.message,fetchStatus:Nu})),n}))},_M=function(e,t,n){var i=Mb(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)&&(Ab({name:a.name,email:a.email,form:a},e),n(qx(a)))},xM=function(e,t,n){try{var i=JSON.parse(e.context),o=i&&i.ChatbotContext||{},a=o.Variables||{},r=o.CustomData||{};n(Ux({variables:a,visitorInfo:r})),_M(Iw(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})}},yM=((pM={})[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})}},pM[Rn]=function(e,t,n){return xM(e,t,n)},pM[zi]=function(e,t,n){return xM(e,t,n)},pM[qn]=function(e,t){try{var n=JSON.parse(e.content);return Object.assign({},e,{content:n})}catch(n){var i=[{type:IS,content:{text:e.content}}],o=Qh(t),a={ifAgentOnline:!0,ifRate:!1,intentAnswers:i,botId:o&&o.id||0};return Object.assign({},e,{content:a})}},pM[Xn]=function(e,t,n){return n(P_(!1)),e},pM[jn]=function(e,t,n){var i=e.content.info.split(R);if(4===i.length){var o=yh(t,i[2]),a="true"===i[3].split("=")[1].toLowerCase();n(Lx(o,!1,a))}return e},pM[Bt]=function(e,t,n){return n(mC()),e},pM),CM=function(e,t,n){return e.map((function(e){var i=yM[e.type];return i?i(e,t,n):e}))},kM=function(e,t,n){return e.forEach((function(e){if(e.type===Hi&&e.extras){var i=JSON.parse(e.extras);if(i){if(Nv(t)){var o=Nv(t);if(o.siteId===i.siteId&&o.fromSiteId===i.fromSiteId)return}n(CC(Object.assign({},i,{visitorGuid:yb(i.siteId)}))),n(yC(!1)),n(bk()).then((function(e){var o=e.output.payload.crossSiteTransferDefaultCampaignId;ah(t,o)||vM(n,o,p_(i).replace(/\/visitor.ashx.*$/i,"/campaign.ashx?siteId="+i.siteId+"&campaignId="+o+"&lastUpdateTime="+Date.now()),t)})),n(vk(i.siteId)),n(MC())}}}))},SM="{email}",IM=Gi,MM=function(e,t,n){var i=te(mh,t),o=Mw(t),a=xm(t,n).lastUpdateTime,r=ah(t,n);if(r)return Promise.resolve(r);var s=i("/campaign.ashx?siteId="+o+"&campaignId="+n+"&lastUpdateTime="+a);return vM(e,n,s,t)},AM=function(e,t,n){var i=te(mh,t);return wM(i(n.customizedAdaptiveButtonIcon)).then((function(t){e(Tx({id:n.id,entity:Object.assign({},n,{customizeIcon:t.output,fetchStatus:Wu})}))})).catch((function(t){throw e(Tx({id:n.id,entity:Object.assign({},n,{fetchStatus:Nu})})),t}))};function BM(e,t,n){var i,o=e.dispatch,a=e.getState,r=t.input,s=t.output,c=a(),d=((i={})[IM.getConfig]=function(e){e.features&&(bb(!!e.features.useSessionCookie),(e.features.disableCookie||"about:srcdoc"===q.location.href&&q.location.ancestorOrigins.length>1)&&Ym()),Wv(a())?(o(xC(e.crossSiteTransferDefaultCampaignId)),o(kC(e))):o(Ix(e.customVaraibles?e:Object.assign({},e,{kbAPIUrl:Dr(e.kbAPIUrl,I_(c)),customVariableResult:uh(c)?$v(c):Ca(e.customVariables)}))),o(ck())},i[IM.getChatWindowConfig]=function(e){var t=e.messageLengthLimit||ae;r.siteId&&r.siteId===Dv(a())?o(kC(Object.assign({},e,{messageLengthLimit:t,features:Object.assign({},Nv(a()).configuration.features,e.features)}))):o(Ix(Object.assign({},e,{messageLengthLimit:t,features:Object.assign({},c.configuration.features,e.features)})))},i[IM.getChatbotQuestions]=function(e){o(SC(e))},i[IM.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=Fv(c).map((function(e){return e.label})),s=le(a,r)[0];o(Wk(Object.assign({},i,{custom:s})))},i[IM.getChatButton]=function(e){var t=Qw(c);if(t)o(bx(e.id));else{var n=Cw(c);n===e.id||isNaN(parseInt(n,10))||o(vx(e.id,n))}var i=0;r.campaignId===e.id||isNaN(parseInt(r.campaignId,10))||(i=parseInt(r.campaignId,10)),o(Tx({id:e.id,entity:Object.assign({},e,{intId:i,divId:zr(e.id,i)}),fetchStatus:e.isCustomizedAdaptiveButtonUsed?Vu:Wu})),t&&wS("livechat.dynamicCampaign.change",e.id),e.isCustomizedAdaptiveButtonUsed&&AM(o,a(),e),MM(o,a(),e.id).then((function(e){return Wv(a())||o(N_()),new Promise((function(t){setTimeout(t,0,e)}))})).then((function(e){var n=a(),i=uh(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(sm(n,e.id)){var u=dv();o(U_(u))}else lv(),o(U_(!1));i&&Aw(n)!==$l&&(Lr===hs?o(q_()):cv(Iw(c),kw(c))||(o(ax(Cw(a()))),o(cx()))),(t||r.alreadyCampaignId)&&o(Hy(e.id));var p=q.getElementById("windowLoading");p&&p.parentNode.removeChild(p)}))},i[IM.checkManualInvitation]=function(e){var t=r.campaignId===k,n=/^-?\d+$/.test(r.campaignId)?ym(c,parseInt(r.campaignId,10)):r.campaignId,i=t?Cw(c):n;if(e&&e.agent&&!xv(c)&&Aw(c)===nu){var a=function(){var t=e.type!==mu&&e.type!==gu||!G(e.textBackgroundColor)?K:e.textBackgroundColor,n=Object.assign({},e,{isManual:!0,campaignId:i,textBackgroundColor:t});o(Y_(n)),wS("livechat.invitation.display",n)};e.type===wu||e.type===mu?o(vk()).then(a):a()}},i[IM.confirmAutoInvitation]=function(e){var t=r.campaignId===k?Cw(c):r.campaignId,n=Number(t);if(isNaN(n)||(t=ym(c,n)),e&&!xv(c)&&!yv(c)&&Aw(c)===nu){var i=function(){var n=e.type!==mu&&e.type!==gu||!G(e.textBackgroundColor)?K:e.textBackgroundColor,i=Object.assign({},e,{isManual:!1,campaignId:t,textBackgroundColor:n});o(Y_(i)),"chatWindowGreetingMessage"in e&&o(QC(e.chatWindowGreetingMessage)),o(Q_(!1)),wS("livechat.invitation.display",i)};o(Q_(!0)),e.type===wu?o(vk()).then(i):i()}},i[IM.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(){Aw(a())===nu&&o(ZC.apply(Mk,[_o()].concat(t[e].map((function(e){return eo(r.campaignId,e)})))))}),1e3*e)}))}},i[IM.showInvitation]=function(e){var t=Cw(c);if(e&&!xv(c)&&Aw(c)===nu){var n=function(){var n=Object.assign({},e,{isManual:!1,campaignId:t});o(Y_(n)),wS("livechat.invitation.display",n)};e.type===wu?o(vk()).then(n):n()}},i[IM.manualInvitationShowed]=function(e){Cw(c),"chatWindowGreetingMessage"in e&&o(QC(e.chatWindowGreetingMessage))},i[IM.getIfOnline]=function(e){var t=e.campaignId,n=e.ifOnline;o(K_(t,n))},i[IM.checkIfOnline]=function(e){var t=e.campaignId,n=e.ifOnline;o(K_(t,n))},i[IM.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])})),Xb(e),o(YC(e)),o(Wk(i,_p))}},i[IM.refuseAutoInvitation]=function(){o(_x(du))},i[IM.refuseManualInvitation]=function(){o(_x(du))},i[IM.recoverVisitor]=function(e){o(hC(e.baseVersion)),o(R_()),Wv(c)?o(AC(e.serverInstanceTag)):o(Ax(e.serverInstanceTag))},i[IM.closeWindow]=function(){var e=F_(c);e!==iu&&e!==au&&e!==fu||o(_x(uu)),e===ou&&o(_x(lu))},i[IM.getSSORecoverInfo]=function(e){e&&e!==ev()&&($b(e),iv())},i[IM.requestChatFromAnotherSite]=function(e){if("offline"===e.next){var t=Cw(c),n=v_(c,t),i=$[n].transferToOffline;o(Yx(i)),o(sy())}else{oM(o,a(),e),o(yC(!0,e.chatGuid)),o(hC(""));var r=Nv(c);sv(Iw(c),kw(c),Object.assign({},r,{isTransferDone:!0,chatGuid:e.chatGuid,agents:Object.assign({},r.agents||{},vm(c))}))}},i);null!=r&&null!=d[r.type]&&d[r.type](s.payload)}var OM,TM,jM,FM=function(e){return{chatGuid:xf(e),siteId:Iw(e),sessionId:Bb(),visitorGuid:Bw(e)}},VM=function(e){return fo(xf(e),kf(e))},WM=function(e,t){return xo([Object.assign({},FM(t),e),VM(t)])},NM=((hM={})[jS]=WM,hM[FS]=WM,hM[OS]=WM,hM[TS]=WM,hM[NS]=WM,hM[DS]=function(e,t){var n=Sv(t);return xo([Object.assign({taskbotId:n},FM(t),e),VM(t)])},hM),DM="chatbot/locationCancelled",PM="chatbot/visitorSSOCancelled",RM="chatbot/meetingCancelled",EM="chatbot/meetingSubmitted",zM="chatbot/chatbotFormCancelled",LM="chatbot/microsoftBooking",HM="chatbot/canvasAuthorization",qM=function(e){return{chatGuid:xf(e),siteId:Iw(e),sessionId:Bb(),visitorGuid:Bw(e)}},UM=function(e){return fo(xf(e),kf(e))},GM=function(e,t){return xo([Object.assign({},qM(t),e),UM(t)])},KM=((OM={})[RM]=GM,OM[EM]=GM,OM[DM]=GM,OM[PM]=GM,OM[zM]=GM,OM[LM]=GM,OM[HM]=GM,OM),YM=Gi,QM=0,ZM=[],JM={},XM={},$M=null,eA=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]})}},tA=[YM.getChatMessages,YM.agentMsgSeenByVisitor,YM.visitorGetLatestMsgSeen],nA=function(e){return!!e&&(e.code===dM&&""===e.message)},iA=function(e,t){var n=Sb("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 eA(o,t,e,n,!0)})).catch((function(e){if(e instanceof Error)throw e;nA(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===YM.newVisitor&&ov(),new Promise((function(t,n){null==$M&&($M=function(){var e=0;return function(){return e+=1}}());var a=$M();(function(e,t){var n=!0,i=!1;return e.forEach((function(e){Co(e,YM.submitSSOInfo)&&(i=!0)})),i&&yo((function(e){tA.indexOf(e.type)>-1&&(n=!1)}),t),n})(ZM,o)&&ZM.push(Object.assign({},o,{id:a})),JM[a]=t,XM[a]=n,clearTimeout(QM),QM=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=ZM.splice(0,ZM.length),a=!!Co(o,YM.newVisitor),r=[],n.prev=3,!Gm.get("aws-waf-token")){n.next=9;break}s=Gm.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:iA((function(e){return mM(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?XM[e.id]({input:e,error:n[t].error,serverInstanceTag:i}):JM[e.id]({input:e,output:n[t],serverInstanceTag:i,newValidChatServerUrl:new URL(o).origin}),delete JM[e.id],delete XM[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){XM[e.id]({input:e,error:i}),delete JM[e.id],delete XM[e.id]}))}));case 19:case"end":return n.stop()}}),n,null,[[3,16]])}))),0)})))},aA=function(e,t,n,i){return oA(e,t,n,i).then((function(e){return e}))},rA=Gi,sA=null,cA=function(e){var t=e.getState,n=e.resolve;return aA(h_(t()),{type:Gi.systemProcessingHeartbeat}).then((function(e){if(!e.output.payload){clearInterval(sA),sA=null;var i=t(),o=null;if(Pv(i)){var a=jw(i,Qw(i)?k:Cw(i)),r=Kh(i),s=Qb();o=r===fp?xo([Object.assign({},a,{isPrechatDone:!0,isProcessingDone:!0,lastChattedAgents:s})].concat(function(e){var t=kf(e),n=wf(e),i=fr(n),o=[].concat(i);if(yf(e)){var a=Cf(e);o.push({type:Ht,content:a,sender:{type:sp},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({},zv(i),{isProcessingDone:!0});aA(h_(i),o).then((function(e){e.output.payload&&(clearInterval(sA),sA=null,n(e))}))}}))},dA=function(e){var t=e.getState,n=e.dispatch,i=function(e){return new Promise((function(e,n){null===sA?(cA({getState:t,resolve:e}),sA=setInterval(cA,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===rA.requestChat){if(t.type===rA.batchAction){var n=t.payload.filter((function(e){return e.type===rA.requestChat}));if(n.length>0)return Object.assign({},e,n[0])}return Object.assign({},e,t)}if(e.type===rA.requestChatFromAnotherSite){if(t.type===rA.batchAction){var i=t.payload.filter((function(e){return e.type===rA.requestChatFromAnotherSite}));if(i.length>0)return Object.assign({},e,i[0])}return Object.assign({},e,t)}if(e.type===rA.getChatMessages&&t.type===rA.batchAction){var o=t.payload.filter((function(e){return e.type===rA.getChatMessages}));if(o.length>0)return Object.assign({},e,o[0])}return e}),e.output)})}(e,n)}))};return function(e){var t=Co(e.output,rA.requestChatFromAnotherSite);if(t&&t.payload.next===nM)return i(e);var o=Co(e.output,rA.requestChat);return o&&o.payload.next===nM?(n(zx(Zu)),n(pC(hu)),n(_x(hu)),i(e)):e}},lA=[Gi.checkBan,Gi.checkBBSCode,Gi.closeWindow,Gi.emailTranscript,Gi.getAgents,Gi.getChatButton,Gi.getConfig,Gi.getDepartments,Gi.submitPostChat,Gi.recoverVisitor],uA=function(e){return[So({visitorGuid:Bw(e),visitorId:_b()}),Yi(Rv(e),_b(),Bw(e),q.referrer,Tw(e),ka(),Sa(),C,Mb(Mw(e)||Iw(e)))]},pA=function(e,t){var n=F_(e),i=n===fu;n=i?au:n;var o=function(e){var t=Sb(kb(e));return t.navigation?t.navigation.filter((function(e){return e})):[]}(),a=ev(),r=Cv(e),s=Sv(e);return[So({visitorGuid:Bw(e)}),Qi(Cw(e),Bw(e),q.referrer,ka(),Sa(),C,Mb(),Tw(e),n,i,o,t,a,r,s)]},hA=function(e,t,n,i){var o,a=jw(e,Qw(e)?k:t),r=a.source;return o=r.type===yu||r.type!==_u&&a.invitationtype===wu,Object.assign({},a,{lastChattedAgents:n,isPrechatDone:o,artifact:i})},fA=function(e){var t=[];return function(e){return bm(e).length}(e)<3&&t.push(_o()),function(e){return e.configuration.features.department}(e)&&t.push(vo()),t},gA=function(e){var t=F_(e),n=Fh(e),i=t===cu?[]:xa(mf(e),n),o=Tw(e),a=Cw(e),r=Ov(e,mp,a),s=uf(e),c=Qh(e),d=Cv(e),l=kv(e),u=Rb().popout,p=Mb(),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:xf(e),messages:i,source:Fw(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:jg(e),maxVisitorReadGuid:Fg(e),emailToSendTranscript:Gg(e)})},wA=Gi,mA=function(e){return Co(e,wA.pageVisit)||Co(e,wA.requestChat)||Co(e,wA.requestChatFromChatbot)||Co(e,wA.submitOfflineMessage)||Co(e,wA.requestChatFromAnotherSite)||Co(e,wA.showInvitation)},bA=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},vA=function(e,t){var n=Ev(e),i=t.serverInstanceTag,o=t.error.serverInstanceTag;return gh(e)||n&&o&&bA(i,o)&&n===o},_A=function(e,t){var n=function(e){return e.app.lastSuccessTime}(e),i=Date.now()-n<12e4,o=Ev(e),a=t.error.serverInstanceTag;return i&&(!o||o&&a&&bA(o,a))},xA=function(e){var t=Cw(e),n=$v(e),i=Tw(e);return[n&&Ji(n,t),Zi(t,i)]},yA=function(e,t,n,i){if(!Co(t,wA.setCustomVariables)){var o=Ca(Xv(e)),a=o?Ji(o,Cw(e)):null;return xo(a?i.concat(a).concat(n):i.concat(n))}return xo(i.concat(n))},CA=function(e,t){if(Wv(e))return kA(e,t);if(Co(t,Gi.recoverVisitor))return t;var n=t.type===wA.batchAction?t.actions:t,i=gA(e),o=pA(e,i);if(Co(t,wA.requestChat)){var a=xA(e);return xo(o.concat(a).concat(n))}return yA(e,t,n,o)},kA=function(e,t){if(Co(t,Gi.recoverVisitor))return t;t.type===wA.batchAction&&t.actions;var n=function(e,t){var n=Cv(e),i=Sv(e);return[So({visitorGuid:Ow(e)}),Qi(Rv(e),Ow(e),q.referrer,ka(),Sa(),C,Mb(Mw(e)||Iw(e)),Tw(e),V_(e)?"transferring":ou,!1,[],t,null,n,i)]}(e,gA(e));return xo(n)},SA=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,wA.newVisitor);if(r===aM){if(vA(s,e)&&!mA(a))return e;if(c)throw e;if(_A(s,e)){var d=CA(s,a);return t(d,n,i)}if(mA(a)){var l=function(e,t){var n=t.type===wA.batchAction?t.actions:t,i=uA(e);if(Co(t,wA.requestChat)){var o=xA(e);return xo(i.concat(o).concat(n))}return Co(t,wA.requestChatFromAnotherSite)?xo(i.concat(n)):yA(e,t,n,i)}(s,a);return t(l,n,i)}}else if(r===cM){if(vA(s,e)&&!mA(a))return e;if(_A(s,e)||mA(a)){var u=CA(s,a);return t(u,n,i)}}throw e}},IA=function(e,t,n){var i=Iw(n),o=function(e){return Y(e,"window.kbConfig.id")}(n),a=[Th(n),"/"+i+"/"+o+"/articles?keyword="+encodeURIComponent(t)].join("");wM(a).then((function(t){e(Nx(hl,t.output))})).catch((function(){e(Zy())}))},MA="waf-js-captcha-container",AA="waf-js-captcha-puzzle-container",BA="puzzle-loading",OA="waf-js-captcha-script",TA={},jA=function(){return new Promise((function(e){var t=TA.apiKey&&TA.jsUrl?TA:TA=FA({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=OA,n.onload=function(){e(H.AwsWafCaptcha)},q.getElementById(OA))return void e(H.AwsWafCaptcha);q.head.appendChild(n)}catch(t){e(null)}}))},FA=function(e){return Object.assign(TA,e)},VA=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()}},WA=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&&FA(t);var o=function(){var e=q.getElementById(MA);e||((e=q.createElement("div")).id=MA,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(AA);t||((t=q.createElement("div")).style.cssText="display:none;padding:24px;border-radius:4px;width:302px;position:absolute",t.id=AA,e.appendChild(t));var n=q.getElementById(BA);return n||((n=q.createElement("div")).style.display="none",n.id=BA,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;jA().then((function(e){e&&(r(),e.renderCaptcha(a,{apiKey:TA.apiKey,dynamicWidth:!0,onSuccess:function(e){c(),VA(!0,e)},onError:function(){for(var e=arguments.length,t=new Array(e),n=0;n1328})),w=Eh(Rh(e)),m=w?g?w.reg:w.regWithWordSeperator:null;m&&(f=f.replace(m,"******")),r.push({type:Ht,content:f,sender:{type:sp},id:i.length+t+1,guid:ne()})}return Pv(e)?a.concat([0===r.length?null:bo(n,r),(l||u)&&fo(n,t),Jf(e)&&Bo(),c&&d&&!_r(p,h,wf(e))&&mo(n)]):[]},RA=Object.assign({},NM,KM,((TM={})[ps]=function(e,t){var n,i=e.campaignId,o=Uw(t),a=Gw(t);if(o){var r=Ov(t,mp,i),s=r.some((function(e){return""!==e.error}));if(!s){var c=Rb().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=Qb();return xo([w_(t)?{type:Gi.checkBBSCode}:null,Oo(),n&&hA(t,i,d,a),n&&ao(n,i),Object.assign({},hA(t,i,d,a),n?{isPrechatDone:!0}:{}),Qw(t)?Ao():null,Xv(t)?{type:Gi.getCustomVariables}:null].concat(fA(t),[go(null),fo(null,-1)]))},TM[Vs]=function(e,t){var n=Cw(t),i=xv(t);return no(n,i.isManual,i.id)},TM[Yc]=function(e,t){return fh(t)?null:{type:Gi.prechatHeartbeat}},TM[Qc]=function(e,t){return fh(t)?null:{type:Gi.offlineMessageHeartbeat}},TM[Kc]=function(e,t){if(fh(t))return null;if(!Uh(t))return null;if(gh(t))return null;if(Rf(t)&&Wv(t)&&!Pv(t))return null;var n=Kh(t);if(n===fp){var i=Ww(t);if(i===xu)return Bo();if(i===yu)return xo([so(xf(t)),DA(t)])}var o=[];return n===hp&&o.push(go(xf(t))),xo(o.concat(PA(t)))},TM[kc]=function(e,t){if(e!==nu)return null;if(fh(t))return null;var n=ef(t),i=Kh(t),o=nf(t);if(n===$u||n===np||n===ip)return{type:Gi.closeWindow};if(n===ep){if(i===fp){var a=jw(t,o).source,r=a.type,s=a.invitationId;return wS("livechat.invitation.refuse",s),no(o,r===yu,s)}if(i===hp)return xo([ho(xf(t)),DA(t)])}return null},TM[el]=function(e,t){return xo([uo(e),Object.assign({},jw(t,nf(t)),{lastChattedAgents:Qb(),isPrechatDone:!0,skipSSO:!0})])},TM[nd]=function(e,t){var n=jw(t,nf(t)),i=Qb(),o=Rf(t);return xo([oo(e,nf(t)),!o&&Object.assign({},n,{isFromKB:!0,lastChattedAgents:i})])},TM[id]=function(e,t){return oo(e,nf(t))},TM[Ml]=function(e,t){return function(e,t){return{type:Gi.setLocation,chatGuid:t,location:e}}(e,xf(t))},TM[Al]=function(){return{type:Gi.getVisitorInfo}},TM[as]=function(e,t){return xo([e.isManual?(n=e.id,{type:Gi.manualInvitationShowed,invitationId:n}):null].concat(fA(t)));var n},TM[od]=function(e,t){var n=jw(t,nf(t)),i=Qb();return Object.assign({},n,{skipSSO:!0,lastChattedAgents:i})},TM[bd]=function(e,t){var n=po(Qw(t)?k:nf(t),{type:_u,page:Tw(t)}),i=Qb();return xo([Oo(Iw(t)),Object.assign({},n,{lastChattedAgents:i})])},TM[fd]=function(e,t){if(Qf(t)){var n=function(e){var t=Fw(e),n=(e.page.requestChatAction||{}).departmentId;return{type:Gi.requestChatFromChatbot,departmentId:n,source:t}}(t,nf(t)),i=xf(t);return xo([n,go(i),wo(i)])}return null},TM[Zc]=function(e,t){var n=xf(t);return xo([lo(n,e),DA(t)])},TM[Jc]=function(e,t){return function(e,t){return{type:Gi.emailTranscript,chatGuid:e,email:t}}(xf(t),e)},TM[Uc]=function(e){return e},TM[Xc]=function(e,t){return xo([ho(xf(t)),DA(t)])},TM[wd]=function(e,t){return Qf(t)?function(e,t){return Object.assign({type:Gi.chatBotAnswerHelpful,chatGuid:e},t)}(xf(t),e):null},TM[gd]=function(e,t){return Rf(t)?e.agentId<=0&&!Qf(t)||e.agentId>0&&!function(e,t){var n=vf(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}}(xf(t),e):null},TM[Hd]=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})}(xf(t),e)},TM[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})}(xf(t),e)},TM[Ud]=function(e,t){return function(e,t){return Object.assign({type:Gi.setBotVariable},t)}(xf(t),e)},TM[gs]=function(e){return e===np?ro():null},TM[sd]=function(e,t){var n=Qw(t)?k:Cw(t);return xo([Ji(e,n),Qw(t)?Ao():null,Qw(t)?io(n):null,Xi(n),$i(n)])},TM[ac]=function(e,t){return f_(t)?(wS("livechat.invitation.refuse"),no(nf(t),!0)):null},TM[cd]=function(e){var t=e.campaignId,n=e.alreadyCampaignId;return xo([io(t,n),Xi(t)])},TM[ad]=function(e,t){return t.window&&t.window.crossSiteChatTransfer?function(e){return xo([zv(e)])}(t):function(e){var t=Cw(e),n=Bw(e),i=!!cv(Iw(e),kw(e)),o=!uh(e)&&!Nb(Bw(e)).isEmbeddedPoppedOut&&!i,a=$v(e),r=Hv(e),s=qv(e);return xo([].concat(n?[]:uA(e),[a&&Ji(a,t),t!==k||a?null:Mo(),Zi(t,Tw(e)),io(t),Xi(t),o?Io():null,r&&!i&&to(t),s&&!i&&$i(t),To()]))}(t)},TM[rd]=function(e,t){return function(e){var t=Qw(e),n=Cw(e),i=Uh(e),o=Zi(n,Tw(e));if(!i){var a=qv(e);return xo([o,t?Mo():null,t?Ao():null,Xi(n),a&&$i(n)])}return o}(t)},TM[dd]=function(){return{type:Gi.getConfig}},TM[ld]=function(e){return Oo(e)},TM[ud]=function(e){return function(e){return{type:Gi.getChatbotQuestions,chatbotId:e}}(e)},TM[gl]=function(e,t){var n=Qb(),i=jw(t,nf(t)),o=Gw(t);return Object.assign({},i,{lastChattedAgents:n,isFromKB:!0,artifact:o})},TM[pd]=function(e,t){var n=Kh(t)===gp||Kh(t)===fp||Kh(t)===hp,i=Fg(t),o=mf(t),a=Ug(t),r=e||a,s=xf(t);if(!Pv(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},TM[hd]=function(){return To()},TM[Ws]=function(e){return{type:Gi.showInvitation,invitationId:e}},TM[md]=function(){return ro()},TM)),EA=((jM={})[Ks]=function(e,t){if(Kh(t)===fp){f_(t)?wS("livechat.invitation.accept"):wS("livechat.invitation.accept",Nw(t));var n=jw(t,nf(t)),i=Qb();return xo([Object.assign({},n,{isPrechatDone:!0,lastChattedAgents:i})].concat(PA(t)))}return xo(PA(t))},jM),zA=function(e){return function(t){if(t instanceof Error)throw t;return e(t)}},LA=function(e,t){if(!e)return e;var n=zg(t).chatVersion;return e.actions?(e.actions.forEach((function(e){return Object.assign(e,{chatVersion:n})})),e):Object.assign(e,{chatVersion:n})},HA=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},qA=function(e){if(/^file:\/\//i.test(e))return"*";var t=e.match(/^[^:]+:\/\/[^/]+/);return t?t[0]:"*"};function UA(e,t,n){var i=qA(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 GA,KA,YA,QA,ZA,JA="removeOpener",XA="popin",$A="restoreState",eB="getRestoreState",tB=((GA={})[Zu]=Nm,GA[Ju]=Pm,GA[$u]=Pm,GA[np]=Dm,GA[ep]=Nm,GA[tp]=Nm,GA[Xu]=Pm,GA),nB=function(e){null!=e&&(q.title=e)},iB=function(e){return e.window.messages&&e.window.messages.filter((function(e){return e.type!==ti}))},oB=function(e,t){var n=Om(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}},aB=function(e,t,n){var i=Iw(e),o=kw(e),a=Tw(e),r=a.title,s=a.url,c=Bw(e),d=Nw(e),l=Ww(e)||_u,u=["chatwindow.aspx","?siteId="+i,o?"&chatGroup="+o:null,D.version?"&version="+D.version:null,"&planId="+t,"#","&chatSource="+l,d?"&invitationId="+d:null,c?"&visitorGuid="+c:null,lh(e)?null:"&isStandbyServer=1",r?"&title="+encodeURIComponent(r):null,s?"&url="+encodeURIComponent(s):null,"&openType="+n].join(""),p=vh(e,u),h=oB(e,t),f=h.width,g=h.height,w=Math.max(f,380);return{win:H.open(p,""+"$brandingNameChatWindow".replace("$brandingName",H.brandingName)+i,"width="+w+",height="+g+",left=200,top=100,status=no,toolbar=no,menubar=no,resizable=yes,location=no,titlebar=no"),url:p}},rB=!1,sB=function(){H.opener&&(H.opener=null),rB=!0,H.close()},cB=function(e,t){return{type:e,time:new Date,content:t,guid:ne(),sender:{type:sp}}};function dB(e,t){return e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function lB(e,t){dB(e,t)||(e.className=e.className+" "+t)}function uB(e,t){if(dB(e,t)){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}var pB=function(e){var t=kh(e,"/webrtcSignalingService/signaling.ashx");QA&&t&&QA.start(t)},hB=function(e){var t=kh(e,"/webrtcSignalingService/signaling.ashx");ZA&&t&&ZA.start(t)},fB=function(){QA&&(QA.stop(),QA=null)},gB=function(){ZA&&(ZA.stopScreenSharing(),ZA=null)},wB=((KA={})[dn]=pB,KA[xn]=pB,KA[cn]=fB,KA[ln]=fB,KA[un]=fB,KA[Cn]=fB,KA[yn]=fB,KA[_n]=fB,KA[Bn]=fB,KA[On]=fB,KA[mn]=fB,KA[bn]=fB,KA[Sn]=fB,KA[Mn]=fB,KA[An]=fB,KA[hn]=fB,KA[gn]=fB,KA[wn]=fB,KA[In]=pB,KA[fn]=pB,KA[bi]=hB,KA[vi]=gB,KA[mi]=gB,KA[_i]=gB,KA[Oi]=gB,KA[Wi]=gB,KA[Ci]=hB,KA[ki]=gB,KA[yi]=gB,KA[Si]=gB,KA),mB=((YA={})[dn]="livechat.chat.video.start",YA[xn]="livechat.chat.audio.start",YA[un]="livechat.chat.video.stop",YA[Cn]="livechat.chat.audio.stop",YA[bn]="livechat.chat.video.stop",YA[On]="livechat.chat.audio.stop",YA[An]="livechat.chat.audio.stop",YA[wn]="livechat.chat.video.stop",YA[In]="livechat.chat.audio.start",YA[fn]="livechat.chat.video.start",YA[vn]="livechat.chat.audio.request",YA[sn]="livechat.chat.video.request",YA[kn]="livechat.chat.audio.request",YA[pn]="livechat.chat.video.request",YA[ln]="livechat.chat.video.refuse",YA[yn]="livechat.chat.audio.refuse",YA[gn]="livechat.chat.video.refuse",YA[Mn]="livechat.chat.audio.refuse",YA[cn]="livechat.chat.video.cancel",YA[hn]="livechat.chat.video.cancel",YA[_n]="livechat.chat.audio.cancel",YA[Sn]="livechat.chat.audio.cancel",YA[Bn]="livechat.chat.audio.noanswer",YA[mn]="livechat.chat.video.noanswer",YA),bB=function(e,t){return gf(e).filter((function(e){return e.type===t})).length>0},vB=null,_B=function(e,t){return e.output.payload.find((function(e){return e.type===t})).payload},xB=function(e,t,n,i,o,a){return aA(e,xo([Io(),_o(),vo()])).then((function(r){if((_B(r,Gi.restoreChat)||{}).guid!==o.chatGuid)throw new Error("try to restore cross site chat but chat guid not match.");return vM(t,o.campaignId,e.replace(/\/visitor.ashx.*$/i,"/campaign.ashx?siteId="+o.siteId+"&campaignId="+o.campaignId+"&lastUpdateTime="+Date.now()),a).then((function(){var e=function(e,t){var n=Object.assign({},t.agents||{});return(_B(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(Fx({id:e.id,entity:Object.assign({},e,{index:n}),fetchStatus:Wu}))}));var a=_B(r,Gi.getDepartments);a&&a.forEach((function(e){return t(Vx({id:e.id,entity:e,fetchStatus:Wu}))})),t(rx(n,o,i))}))}))},yB=function(e,t){var n=Om(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 CB="sso-login",kB="setLocation",SB="closeLocation",IB="customVariableLogin",MB="webViewLinkDone",AB="popoutScreenSharingClose";function BB(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 OB;OB=r(s,(function(e){e.dispatch;var t=e.getState;return function(e){var n,i=((n={})[Ks]=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){gS[e]&&gS[e].forEach((function(e){try{e(t)}catch(e){}}))}("livechat.chat.visitor.sendText",i),i.isCancelled()||e(t)},n[Ul]=function(t,n){e(Qx(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={})[Ks]=function(n,i){if(BB(n.payload.message,Rh(i)))throw setTimeout((function(){return t(qC())}),0),new Error(__(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===ps&&!i.payload.isRestoreChat&&!Pw(o,i.payload.campaignId)){var a=Cm(o,i.payload.campaignId);if(a)return HA(a),null}if(i.type===gs&&i.payload===np){var r=nf(o),s=Cm(o,r);if(s)return t(lk()),HA(s),s.isNewWindow&&t(Ly()),t(JC()),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=UA(a,r,!0)).subscribe(o((function(t){if(t.type===XA)s(),i=null,H.focus(),e(H_(t.payload)),Db({isEmbeddedPoppedOut:!1},Bw(n()));else if(t.type===eB){var o=H.restoreState;i&&i.dispatch({type:$A,payload:o})}})))},r=function(e){i&&i.dispatch({type:XA,payload:e})};return H.addEventListener("beforeunload",(function(e){var t=n();if(uh(t)&&km(t,Cw(t))&&!rB&&!Kg(t)){if(hg(t)){var i=__(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===Oc&&null==i&&m_(c))var d=Tw(c).url||q.referrer,l=(i=UA(H.opener,d,!0)).subscribe(o((function(t){t.type===JA?(l(),H.opener=null,e(D_())):t.type===$A&&e(H_(t.payload))})));if(s.type===gs&&uh(c)&&(nB(__(c,tB[s.payload])),de(H.location.href,"ssoInfo"))){var u,p=de(H.location.href,"ssoInfo");if(s.payload===Ju||s.payload===Xu||s.payload===ep){u=ak(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===cl&&uh(c)){var f=ef(c);nB(__(c,tB[f]))}if(s.type===ps){var g=s.payload.campaignId,w=(Nb(Bw(c))||{}).isEmbeddedPoppedOut,m=km(c,g);if(!uh(c)&&(w||!m)){var b=aB(c,g,ps);return w&&a(b),null}}if(s.type===hs){var v=nf(c);if(!uh(c)){a(aB(c,v,hs)),Db({isEmbeddedPoppedOut:!0},Bw(c));var _=xf(c);_&&(Yb(_),Pf(c)&&(c.window.messages=iB(c))),i&&H.addEventListener("beforeunload",(function(){i.dispatch({type:JA})})),H.restoreState=c}}if(s.type===fs&&uh(c)){var x=xf(c);return x&&(Yb(x),Pf(c)&&(c.window.messages=iB(c))),r(c),sB(),null}if((s.type===zd||s.type===kc&&s.payload===nu)&&uh(c)){var y=e(s);return y&&y.catch?(Promise.race([y.catch((function(){})),ue(3e3)]).then(sB),null):(sB(),null)}return s.type===jl&&i&&i.dispatch({type:eB}),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(vB){e.next=7;break}return e.next=3,pe((function(){return import("./p2pChat.d87bf2c1.js")}),(function(){n(cy("Error loading modules. Please refresh the page and try again."))}));case 3:if(o=e.sent,vB=o&&o.default){e.next=7;break}return e.abrupt("return",null);case 7:return a=L(kh(t(),"/webrtcSignalingService/Statistics")),(r=new vB(Object.assign({},i,{visitorId:Bw(t()),siteId:Iw(t()),url:a}))).onevent((function(e,t){if("error"===e)n(gk()),n(wk());else if("start"===e){if(!QA&&!ZA)return;if(QA){var i=QA.getRemoteVideo();i&&lB(i,"mediaChatWindow__remoteVideo--loading")}if(ZA){var o=ZA.getRemoteScreenSharingVideo(),a=ZA.getLocalScreenSharingVideoItem();o&&!a&&lB(o,"mediaChatWindow__remoteVideo--loading")}}else if("remoteStreamReceived"===e){if(!QA&&!ZA)return;if(QA){var r=QA.getRemoteVideo();r&&uB(r,"mediaChatWindow__remoteVideo--loading")}if(ZA){var s=ZA.getRemoteScreenSharingVideo();s&&uB(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(wk())},o.type!==Os){i.next=13;break}if(QA){i.next=8;break}return i.next=7,a({chat:xf(r),actionType:"audioVideo"});case 7:QA=i.sent;case 8:return qb(xf(r)),QA.requirePermission(!1).then((function(){var t=cB(li,"");n(fk([t])),e(o)})),i.abrupt("return",null);case 13:if(o.type!==Ts){i.next=23;break}if(QA){i.next=18;break}return i.next=17,a({chat:xf(r),actionType:"audioVideo"});case 17:QA=i.sent;case 18:return qb(xf(r)),QA.requirePermission(!0).then((function(){var t=cB(di,"");n(fk([t])),e(o)})),i.abrupt("return",null);case 23:if(o.type!==js){i.next=34;break}if(e(o),ZA){i.next=29;break}return i.next=28,a({chat:xf(r),actionType:"screenSharing"});case 28:ZA=i.sent;case 29:return qb(xf(r)),ZA.requireScreenSharingPermission(s).then((function(){if(iw(t()))gB();else{var e=cB(Ti,"");n(fk([e]))}})).catch((function(){e(EC())})),i.abrupt("return",null);case 34:if(o.type!==Ll){i.next=41;break}return i.next=37,a({chat:xf(r),actionType:"screenSharing"});case 37:(ZA=i.sent)&&(ZA.setScreenSharingVideoContainers(o.payload),ZA.requireScreenSharingPermission(s).then((function(){hB(r);var t=cB(Vi,"");n(fk([t])),e(o)}))),i.next=42;break;case 41:o.type===hs?(fB(),gB(),Ub(xf(r))):o.type===fs&&(fB(),gB());case 42:if(c=e(o),d=t(),l=ug(d),u=ug(r),p=nw(r),h=nw(d),o.type!==jd){i.next=52;break}QA&&QA.hideVideos(),i.next=98;break;case 52:if(o.type!==Rl){i.next=56;break}ZA&&ZA.hideScreenSharingVideos(),i.next=98;break;case 56:if(o.type!==Cd){i.next=61;break}qb(xf(d)),QA&&QA.setVideoContainers(o.payload.localVideoContainer,o.payload.remoteVideoContainer,o.payload.unmuteRemoteContainer),i.next=98;break;case 61:if(o.type!==El){i.next=65;break}ZA&&ZA.setScreenSharingVideoContainers(o.payload.localVideoContainer,o.payload.remoteVideoContainer),i.next=98;break;case 65:if(o.type!==Us){i.next=81;break}if(o.payload.forEach((function(e){f=mB[e.type]})),f&&wS(f),(QA||ZA)&&o.payload.forEach((function(e){var t=wB[e.type];t&&t(d)})),QA||l!==sa&&l!==da){i.next=74;break}return i.next=72,a({chat:xf(d),actionType:"audioVideo",facingMode:Gb()});case 72:(QA=i.sent)&&QA.requirePermission(l===sa).then((function(){return pB(d)}));case 74:if(ZA||h!==fa&&h!==ga){i.next=79;break}return i.next=77,a({chat:xf(d),actionType:"screenSharing"});case 77:(ZA=i.sent)&&(h===fa?Promise.resolve().then((function(){return hB(d)})):ZA.requireScreenSharingPermission(s).then((function(){return hB(d)})));case 79:i.next=98;break;case 81:if(o.type!==Id){i.next=89;break}if(QA){i.next=86;break}return i.next=85,a({chat:xf(d),localVideoContainer:o.payload.localVideoContainer,remoteVideoContainer:o.payload.remoteVideoContainer,unmuteRemoteContainer:o.payload.unmuteRemoteContainer,actionType:"audioVideo",facingMode:Gb()});case 85:QA=i.sent;case 86:QA&&QA.requirePermission(l===oa).then((function(){var e=cB(ui,l);n(fk([e]))})),i.next=98;break;case 89:if(o.type!==zl){i.next=97;break}if(ZA){i.next=94;break}return i.next=93,a({chat:xf(d),remoteScreenSharingVideoContainer:o.payload.remoteVideoContainer,actionType:"screenSharing"});case 93:ZA=i.sent;case 94:ZA&&Promise.resolve().then((function(){var e=cB(ji,h);n(fk([e]))})),i.next=98;break;case 97:o.type===kd?(fB(),bB(d,pi)||(g=cB(pi,u),n(fk([g])),xf(d),Eb({facingMode:null}))):o.type===Sd?(gB(),bB(d,Fi)||(w=cB(Fi,p),n(fk([w])))):o.type===Md?(QA&&QA.unmuteRemote(),ZA&&ZA.unmuteRemote()):o.type===Hl?o.payload?ZA&&ZA.stopScreenSharing():hB(d):o.type===Ad&&QA&&QA.flipCamera((function(e){Kb(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=Fh(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,NA);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(P_(!0)),e.dispatch(z_(!0)))}(e,o);var d=Ev(n());if(n().page.isSubmitSSO)return null;!function(e,t){Co(t,Gi.submitSSOInfo)&&e.dispatch(yx(!0))}(e,o);var l=h_(n()),u=function(e){if(!e)return e;var t=Bb();return e.actions?(e.actions.forEach((function(e){return Object.assign(e,{sessionId:t})})),e):Object.assign({},e,{sessionId:t})}(o);return aA(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(P_(!1)),WA().then((function(e){return i(P_(!0)),aA(o,a,r,s)}))):e}}(e,{url:l,retryAction:u,onProgress:a,serverInstanceTag:d})).then((function(e){return e})).then(dA(e)).then(r).then((function(t){return t.newValidChatServerUrl&&e.dispatch(Bx(t.newValidChatServerUrl)),BM(e,t),function(e,t){yo((function(t){lA.indexOf(t.type)<0&&e.dispatch(L_()),t.type===Gi.recoverVisitor&&e.dispatch(z_(!1))}),t.input)}(e,t),t})).catch(zA((function(e){var t=e.error.code;throw-1!==[aM,cM].indexOf(t)&&e.error.serverInstanceTag,e}))).catch(zA(SA(e,i,a,r))).catch(zA(function(e){var t=e.getState,n=e.dispatch;return function(e){if(e.input.type===Gi.getVisitorInfo)n(eC(null));else if(Co(e.input,Gi.submitSSOInfo))n(cy(e.error.message));else{var i=e.error.code;if(-1!==[sM,aM,rM,cM].indexOf(i)){var o=t();Uh(o)&&(Kf(o)||Kh(o)===fp)&&n(cy(__(t(),Em))),n(P_(!1))}else if(1024===i||1032===i)n(W_());else if(9003===i){n(P_(!1));var a=t();Kf(a)?n(cy(e.error.message)):n(G_(e.error.message))}else if(7601===i)e.error.message&&n(cy(e.error.message));else if(4342339===i)n(cy("Oops.We're getting problems to the chatbot. Please refresh this page to chat with a live agent.")),n(P_(!1));else if(1037===i)n(cy(e.error.message)),n(P_(!1));else if(9002===i){n(cy(e.error.message));var r=Co(e.input,Gi.sendChatMessages);r&&n(KC(r.messages))}else{if(Co(e.input,Gi.recoverVisitor))throw e;if(i!==dM){var s=__(t(),"promptServerException");s&&n(cy(s.replace("{errorCode}",i)))}else{var c=e.input;c.type===Gi.requestChat&&c.isFromKB&&n(cy(e.error.message))}}}throw e}}(e))).catch(zA(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(P_(!1)),n(cy(__(t(),Em)))),n(E_()),n(z_(!1))}}(e))).catch(zA(function(e){var t=e.dispatch,n=e.getState;return function(e){throw e.error.code===aM&&aA(h_(n()),So({visitorGuid:Bw(n()),visitorId:_b()})).catch((function(e){var n=e.error.code;throw 1024!==n&&1032!==n||t(W_()),e})),e}}(e))).catch(zA(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=Iw(s),d=Gw(s)||"",l=yh(s,(d?a:o)+"?siteId="+c+"&issuer="+r+"&artifact="+d+"&cookieId="+Bw(s)),u=Yg(s);t(_y()),t(Lx(l,"showPrelogin"===u)),t(zx(Xu))}throw e}}(e))).catch(zA((function(t){throw 1===t.error.code&&e.dispatch(iC()),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=v_(r,Cw(r));n=$[o].recaptchaFailure}throw i(Vk(e)),i(cy(n)),a&&a(n),t}))};return function(e){e.type===ul?IA(i,e.payload,n()):e.type===pl?function(e,t,n){var i=t.link;e(Nx(fl,{url:i}))}(i,e.payload,n()):e.type===bd&&i(e);var t=RA[e.type];if(t){var r=t(e.payload,n());if(r){LA(r,n());var s=o(r);if(e.type===dd||e.type===ad||e.type===Yc||e.type===cd||e.type===ld||e.type===ud)return s;if(e.type===kc&&e.payload===nu&&uh(n()))return s;if(e.type===bd)return s}return i(e)}if(e.type===Gc)return fh(n())||(o(to(Cw(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===Ys){var c=e.payload.file;if(!c)return null;if(Pf(n()))return null;var d=Ah(n()),l=$f(n()),u=function(e){return e.configuration.attachmentMaxCount}(n()),p=y_(n()),h=S_(n()),f=!!e.payload.isBotCollectFile;return l>=u?(i(my(Mp,{fileCount:u,isBotCollectFile:f})),Promise.resolve()):c.size>d*Math.pow(2,20)?(setTimeout((function(){i(my(Cp,{fileSize:d,isBotCollectFile:f}))}),1e3),Promise.resolve()):0===c.size?(i(my(kp,{isBotCollectFile:f})),Promise.resolve()):(i(e),o(co(!0,xf(n()))).then((function(t){if(lw(n())){var a=t.output.payload,r=C_(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,Iw(n()),Bw(n()),p,h,a,e.payload.fileName),(function(t,n){t>=98||i(Dx(e.payload.fileName,t,n))})).then((function(e){var t=e.output;i(Px(t))})).catch(zA((function(e){var t=e.error;return i(Rx(Object.assign({},t,{isBotCollectFile:f})))}))).catch((function(e){return i(Rx({message:e.message,isBotCollectFile:f}))}))};return r&&Sr(c)?Fr(c).then((function(e){return s(e)})):s(c)}i(Rx(null))})).catch(zA((function(e){var t=e.error;return i(Rx(Object.assign({},t,{isBotCollectFile:f})))}))).catch((function(e){i(Rx({message:e.message,isBotCollectFile:f}))})))}if(e.type===td){var g=e.payload,w=g.form,m=g.onSuccess,b=g.onError,v=jw(n(),nf(n())),_=Object.assign({},v,{lastChattedAgents:Qb(),ticketId:w.ticketId||v.ticketId,departmentId:null==w.department?v.departmentId:void 0,isPrechatDone:!0,skipSSO:!0});a(mp,xo([ao(w,nf(n())),_]),m,b,n())}else if(e.type===$c){var x=n(),y=Nv(x),C=y&&y.campaignId?y.campaignId:nf(x),k=e.payload,S=k.form,I=k.onSuccess,M=k.onError,A=xf(x),B=Object.assign({},Vw(x));A&&(B.chatGuid=A);var O=function(e){var t=e&&{name:e.name,fileKey:e.key};a(vp,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=Ov(e,vp,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,Iw(n()),y_(n()),S_(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(Vk(vp)),i(Bk(vp,T.id,t.message))}))})).catch((function(e){e.input;var t=e.error;i(Vk(vp)),i(Bk(vp,T.id,t.message))}))};C_(n())&&Sr(j)?Fr(j).then((function(e){return F(e)})):F(j)}else O()}else if(e.type===ed){var V=xf(n()),W=e.payload,N=W.form,D=W.onSuccess,P=W.onError;a(bp,function(e,t,n){return{type:Gi.submitPostChat,chatGuid:e,form:t,campaignId:n}}(V,N,of(n())),D,P).then((function(){return i(zx(ep))}))}var R=i(e),E=EA[e.type];if(E){var z=E(e.payload,n());LA(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=Mw(n());if(i.type===is){var r=i.payload,s=r.guid,c=r.ifNewVisitor,d=r.sessionId,l=r.migrationInfo,u=r.persistentVisitor;if(s&&(Cb(s,a),Zm(vb())),d&&Ab({sessionId:d},a),c){var p=Mb(a),h=p.firstVisitTime,f=p.visitTimes;Ab({firstVisitTime:h||(new Date).getTime(),visitTimes:(f||0)+1},a)}u&&Ab({persistentVisitor:u},a),l&&Ab(Object.assign({},l),a)}if(i.type===ss&&i.payload&&function(e,t){var n=Sb(kb(t)).navigation||[];gb.setItem(kb(t),JSON.stringify(Object.assign({},Mb(t),{navigation:n.concat(e)})))}(i.payload,a),i.type===cs&&(o=a,gb.setItem(kb(o),JSON.stringify(Object.assign({},Mb(o),{navigation:[]})))),i.type===Jc){var g=Mb(a),w=g&&g.form&&void 0!==g.form.email?Object.assign({},g.form,{email:i.payload}):{};void 0!==w.email?Ab({email:i.payload,form:w},a):Ab({email:i.payload},a)}if(i.type===gs&&i.payload===$u){var m,b=xm(n(),nf(n())).routeDepartment;b&&(m={department:b});var v=Mb(a),_=rf(n());m=Object.assign({},!_.isForgetPrechat&&v?v.form:{},m,uh(n())?jI():{}),Object.keys(m).length>0&&e(Nk(m))}if(i.type===gs&&i.payload===np){var x,y=xm(n(),nf(n())).routeDepartment;y&&(x={department:y});var C=Mb(a);(x=Object.assign({name:C.name?C.name:"",email:C.email?C.email:""},C?C.form:{},x,uh(n())?jI():{}))&&e(Nk(x))}if(i.type===as){var k=i.payload;if(k.isManual&&k.chat){var S=k.chat.guid,I=Tb(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(Dy(A)),B}}}if(i.type===Tl){var O=pw(i.payload);O&&Xb(O)}var T=n(),j=Kf(T),F=e(i),V=n();if(a=Iw(V),i.type===el||i.type===nl){var W=Mb(),N=W||{},D=N.name,P=N.email,R=Object.assign({},i.payload);W&&W.form?Ab({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):Ab({name:R.name&&R.name!==D?R.name:D||"",email:R.email&&R.email!==P?R.email:P||""},a)}if(i.type===nl&&mp===i.meta&&!rf(V).isForgetPrechat){var E=Object.assign({},i.payload);delete E.department,delete E.ticketId,delete E.captcha,Ab({form:E},a)}var z=Kf(V),L=xf(V);if(!j&&z){var H=Aw(V);H!==$l&&H!==tu&&H!==eu||Vb(L,{windowStatus:H},Mw(V))}if(i.type===kc){var q=i.payload===tu||i.payload===$l||i.payload===eu,U=f_(V);(z||U)&&q&&Vb(L,{windowStatus:i.payload},Mw(V))}if(i.type===zc||i.type===kc||i.type===Us||i.type===ll){var G=Af(T),K=Af(V);G!==K&&Vb(L,{maxReadId:K},Mw(V))}return i.type===Us&&i.payload.forEach((function(e){var n=e.content,i=e.type;if(i!==Gt&&i!==Hn||function(e,t){var n=Mb(t)||{},i=n.chatTimes;n.lastChatGuid!==e&&Ab({chatTimes:(i||0)+1,lastChatGuid:e},t)}(xf(V),a),i===Hn&&n.bot.isVisitorQuestionSuggestionsEnabled&&t(_k(n.bot.id)),i===Qt||i===Gt||i===en){if(n.agent){var o=xf(V);TI!==o&&(TI=o,Ab({lastChattedAgents:[]},void 0)),function(e,t){var n=(Mb(t)||{}).lastChattedAgents||[];if(-1===n.indexOf(e)&&Number.isNaN(Number(e))){var i=n.concat([e]);Ab({lastChattedAgents:i},t)}}(n.agent.id)}}else i===Yt&&n.agent&&function(e,t){var n=(Mb(t)||{}).lastChattedAgents||[];if(-1!==n.indexOf(e)){var i=n.filter((function(t){return t!==e}));Ab({lastChattedAgents:i},t)}}(n.agent.id);i===Bt||i===Kt?ov():i===Fn&&ev()!==n.ssoInfo&&($b(n.ssoInfo),iv())})),i.type===Ec&&ov(),i.type===Pc&&(i.payload?gb.setItem(lb,!0):gb.removeItem(lb)),F}}}),(function(e){e.dispatch;var t=e.getState;return function(e){return function(n){var i=t();if(n.type===Oc){var o=Iw(i),a=kw(i),r=cv(o,a);if(r){var s=Tb(r.chatGuid,r.siteId),c=Cw(i);p_(r),function(e,t,n,i,o){var a=p_(i);return xB(a,e,t,n,i,o).catch((function(a){var r=a&&a.error&&a.error.code;if(r===dM||r===sM){var s=p_(i);return xB(s,e,t,n,i,o)}throw a}))}(e,c,s,r,i).then((function(){e(n)})).catch((function(t){rv(o,a),e(n)}))}else e(n)}else n.type===Tl?(n.payload.window.crossSiteChatTransfer&&sv(Iw(n.payload),kw(n.payload),Nv(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(qy())}),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;wS("livechat.chat.agent.join",s)}else if(i===Zt||i===$t){var c=mm(r,o.id);wS("livechat.chat.agent.transfer",c)}else if(i===Yt){var d=mm(r,o.id);wS("livechat.chat.agent.leave",d)}}}(t,e);return function(t){var i=e(t);return t.type===Us&&t.payload.forEach(n),i}}}),(function(e){return function(t){return function(n){var i=e.getState(),o=wh(e.getState());n.type===Pc&&n.payload&&EI.stop(u_(i,PI)),n.type!==hs&&n.type!==fs||EI.stop(u_(i,PI));var a=t(n),r=e.getState();if(!dh(r))return null;var s=function(e){var t=rf(e);return t&&t.notification}(r),c=Af(i);if(n.type===Ec&&wS("livechat.chat.end"),n.type===Us){var d=Kh(i),l=Kh(r);d!==l&&(l===gp?wS("livechat.chat.start",xf(r)):l===wp&&wS("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||zI(u_(r,"video-end")):ir(e.type)&&e.type!==Ci&&e.type!==bi?o||zI(u_(r,"screensharing-end")):o||zI(u_(r,"new-response")):h+=1,e.type!==Gt)){if(e.sender.type===cp){var t=null;switch(e.type){case En:t=re(function(e){var t=e.content.intentAnswers[0];return t.type===vS?HI(t.content):t.type===xS||t.type===SS?t.content.name:t.type===yS?"[Video]":t.type===IS?HI(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=vh(r,"/visitorside/images/logo60.png");return Vh(r)&&(n=""),void LI(t,n)}}if(s){var i="string"==typeof e.content?e.content:e.content.text,a=vh(r,"/visitorside/images/logo60.png");Vh(r)&&(a=""),LI(i,a)}}})),(u>0||p>0)&&(u>p?o||EI.play(u_(r,PI),!0):EI.stop(u_(r,PI))),(h>0||f>0)&&(h>f?o||EI.play(u_(r,RI),!0):EI.stop(u_(r,RI)))}if(s&&Rf(r)&&!Rf(i)&&DI(),n.type===ns){var g=n.payload.campaignId;if(Pw(i,g)!==Pw(r,g)){var w=xm(r,n.payload.campaignId),m=Pw(r,g);wS(m?"livechat.button.online":"livechat.button.offline",w)}}if(n.type===vd){var b=bf(i),v=bf(r);v.position===b.position&&v.waitTime===b.waitTime||wS("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!==hc||Qg(a)){if(i.type===fc){var r=df(a),s=de(r,"returnUrl"),c=H.location.href.replace("#",""),d=decodeURIComponent(s)+(s.indexOf("?")>0?"&":"?")+"return="+encodeURIComponent(c),l=Xw(a),u=l?"&jwt="+l:"";Q.href=r.substring(0,r.indexOf("returnUrl="))+"returnUrl="+encodeURIComponent(d)+u}}else{var p=Iw(a),h=df(a),f=Tw(a).url.match(/^[^:]+:\/\/[^/]+/)[0],g=h+encodeURIComponent("?target="+f),w=Xw(a),m=g+"&color=ffffff"+(w?"&jwt="+w:""),b="",v=de(h,"returnUrl");v&&(b=v.match(/^[^:]+:\/\/[^/]+/)[0]);var _=Cw(a),x=yB(a,_),y=x.width,C=x.height,k=Math.max(y,380);H.open(m,""+__(a,Pm)+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(ak(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=xf(a),s=Bw(a);if(o.type===Hl){if(o.payload){var c=function(e){var t=Iw(e),n=xf(e),i=Bw(e),o=uh(e)?window.location.href:Tw(e).url||window.location.href,a="html/screensharing.07e755f562284b7f199c8f2e999fc761129fd7ab.html?siteId="+t+"&visitorId="+i+"&chatId="+n+"&target="+encodeURIComponent(o),r=vh(e,"/visitorside/"+a);return{win:H.open(r,""+__(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=UA(d,l,!0)).subscribe((function(e){if(e.data){var n=JSON.parse(e.data);if("popoutScreenSharingLoaded"===n.type){var o=ah(a),c=b_(a,o);i&&i.dispatch({type:"popoutScreenSharingInit",payload:{title:c.viewAgentSharedScreen.replace("{agent}",rw(a)),popInLabel:c.embeddedWindowPopin,refuseLabel:c.visitorLeavesScreenSharing,webrtcUrl:kh(a,"/webrtcSignalingService/signaling.ashx")},meta:{chatId:r,visitorId:s}})}"popoutScreenSharingEnd"===n.type?(t(wk()),u(),i=null):"popinScreenSharing"===n.type&&(t(HC(!1)),u(),i=null)}}));H.addEventListener("beforeunload",(function(){i&&i.dispatch({type:AB,meta:{chatId:r,visitorId:s}})}))}}else o.type===Us?o.payload.forEach((function(e){e.type!==_i&&e.type!==Wi&&e.type!==Bt||i&&i.dispatch({type:AB,meta:{chatId:r,visitorId:s}})})):o.type===Tc&&cw(a)&&(t(wk()),i&&i.dispatch({type:AB,meta:{chatId:r,visitorId:s}}));return e(o)}}}));var TB="$brandingName Live Chat".replace("$brandingName",H.brandingName);function jB(e){var t=H.GoogleAnalyticsObject;if(t){var n=H[t];try{for(var i=n.getAll(),o=0;o<\/script>')})),t.join("")},sO=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=GB(this.div);else{var d=function(e,t,n){return["",e?'':"",""+n+"",'','',t?rO(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=zB(this,this.container),p=u.render,h=u.unmount,f=UB(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,aO);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),cO=Math.pow(2,31),dO=cO-6,lO=cO-5,uO=cO-4,pO=cO-7,hO=cO-5,fO=cO-1,gO=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:fO}})},t}(p);gO.defaultProps={ifrOffsetLeft:30,ifrOffsetTop:30,barHeight:24,barWidth:315};var wO="circular",mO="square",bO=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!==fm&&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!==fm&&this.resize&&this.resize.disconnect()},n.onReadNewMsg=function(){this.props.chatStatus!==gp&&this.props.chatStatus!==fp||!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===ep&&h(d===hp&&"animation--waiting",d===gp&&"animation--chatting",d===wp&&"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===wO?_="window--circular":w===mO&&(_="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",_,gm(r),r===hm&&g&&!u&&!n&&"window--circle--sidewindow",r===pm&&g&&!u&&!n&&"window--classic--sidewindow",m&&"window--adaptive",x,we?"window--ie9":"",Ie&&"window--ie10",v?"window--"+c+"--chatting":"window--"+c+(d!==pp?"--"+d:"")),style:{maxWidth:C},tabIndex:"0"},i("main",{id:"main",className:"main-container",style:g&&n&&(c===ep||c===$u||c===np||c===Ju||c===Xu)&&(r!==fm?{height:"calc(100% - 40px)"}:{"margin-bottom":"45px"})},s)))},t}(p),vO=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)}))},_O=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 vO(e,"main-container")}(i),a=function(e){return vO(e,"window__header")||vO(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("")},xO=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"}},yO={display:"none"},CO=12,kO=function(e){var t=e.showAdaptiveMinimizeIcon,n=91;return e.windowStyle===fm||(n-=11),t?n:0},SO=function(e){return e.showAdaptiveMinimizeIcon?18:0},IO=function(){},MO=null,AO=null,BO={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};Object.keys(BO).forEach((function(e){e in q&&(MO=BO[e],AO=e)}));var OO=function(e){function t(t){var n;(n=e.call(this,t)||this).state={showMessage:!0,windowBaseChildrenDidMount:!1,minimized:t.windowStatus===tu,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 IO},n.shouldComponentUpdate=UB(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!==$l&&e!==eu||i(!0)},n.onFocusToggle=function(){var e=n.props.windowStatus;i(!q[AO]&&(e===$l||e===eu))},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=Rb().popout;e&&e.SideWinWidth&&e.SideWinWidth>0&&H.resizeTo(H.outerWidth-e.SideWinWidth,H.outerHeight),Eb({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===$l||e.windowStatus===eu)&&e.windowStatus!==this.props.windowStatus&&this.props.onReadNewMsg(),this.setState({isBubbleMinimizing:e.windowStatus!==this.props.windowStatus&&e.windowStatus===tu}),this.setState({isBubbleRestoring:e.windowStatus!==this.props.windowStatus&&e.windowStatus===eu})},n.componentWillUnmount=function(){var e=this.contentWindow;e&&e.removeEventListener&&(e.removeEventListener("focus",this.onFocus),e.removeEventListener("blur",this.onBlur)),q.removeEventListener(MO,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===tu&&!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(MO,this.onFocusToggle))},n.onWindowVisibleChange=function(){var e=this.props,t=e.windowStatus,n=e.chatStatus;!Me()||t!==$l&&t!==eu||n!==gp&&n!==fp||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(tO,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,"",_O(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(bO,{show:n===$l||n===eu,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=yO;if(r){if(n)p={display:"none"};else{p=this.getSideWinStyle(e,t,n),d&&!t?(p.bottom=0,p.right=0):(p.bottom+=kO(u)+function(e){var t=e.windowStyle,n=e.isMobile,i=e.isIPad,o=e.isPoppedOut,a=t===fm;return i?a||o?0:11:!a||n||o?0:-11}(u),p.right+=SO(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===fm||(p.zIndex=hO,p.right+=5.5);var f=ye(this.context);return i(sO,{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===$l||o===eu)&&!a&&!(n===fm)))return null;var d=this.winWidth,l=Math.min(this.winHeight,s-kO(this.props)),u=1;return n===hm&&c&&(u=32.5),i(gO,{key:"dragBar",barWidth:d-CO-128,ifrOffsetTop:u,ifrOffsetLeft:6,width:r,height:s,right:this.props.right,bottom:this.props.bottom+kO(this.props),ifrWidth:d,ifrHeight:l,ifrPositionChanged:function(t,n){var i=n-kO(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(xO(n)).reduce((function(e,i){var o=e;return o[i]=t[i],t[i]=xO(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===Cu&&(!c||a<760)?g=1:s===ku&&(!c||r<760)&&(g=2)),this.setWinSize(g,c);var w=n===tu,m=3!==g&&!w,b=this.getWinStyle(g,c),v=w&&(this.state.minimized||!Be||oe||p===fm);if(p===fm&&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===hm&&(b.backgroundColor="#d5d5d5"),"100%"===b.height||p===fm&&l)b.bottom=0,b.right=0;else{var _=Math.min(r-kO(this.props),b.height);b.bottom=Math.min(b.bottom+kO(this.props),r-_),b.right=Math.min(b.right,a-b.width)+SO(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===fm&&!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:pO}}(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(oO,{css:S}),this.getSideWin(g,c,w,u),this.getDragBar(g),i(sO,{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(oO,{css:k}),!l&&i(nO,{message:d}),this.getChildren(g)))},t}(p),TO=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},jO=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===$l||r===eu){var c=3===e&&t&&s;i.setState({innerHeight:TO(o,c)}),i.timer&&clearTimeout(i.timer),i.timer=setTimeout((function(){i.setState({innerHeight:TO(o,c)}),i.timer=null}),460)}r===tu&&i.setState({innerHeight:0})}}));i.setWinSize=function(e){3===e&&(i.winWidth=i.props.isPoppedOut?380:375,i.props.windowStatus!==tu||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:dO,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!==fm||o||(p=0);var h=Math.max(0,Math.min(a-d,l));return{zIndex:o?1:pO,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:hO,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}(OO),FO=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:dO,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?hO:pO,width:t?n.winWidth-o:496,height:r,bottom:p,right:l,background:"transparent",position:"fixed",border:0,maxWidth:h}}return{zIndex:hO,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}(OO),VO=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?dO:pO;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?pO:hO,width:t?n.winWidth-12:496,height:i,bottom:d,right:s,background:"transparent",position:"fixed",border:0,maxWidth:l}}return{zIndex:hO,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}(OO),WO=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}(OO),NO=["hOnline","hOffline","hCallback","hStop"],DO=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,NO);return i(e,n)},n}(p)},PO=["en","zh-Hans"],RO=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.1c1cc069.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)}}(),EO=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(PO.includes(t)){var n=$[t];this.setState({language:n})}else this.languageOtherRef.current||RO().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},zO=DO(EO((function(e){var t=e.windowStyle,n=e.isPoppedOut;return i(function(e,t){return e&&t!==fm?WO:t===fm?jO:t===hm?FO:VO}(n,t),e)}))),LO=Oe((function(){return import("./RatingForm.c33d054b.js")})),HO=Oe((function(){return import("./SendEmailForm.7937d2f6.js")}));function qO(e){if(e)return e.displayName||e.name}var UO=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={focusKey:t.show?qO(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:qO(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(qO),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=qO(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(LO,{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(HO,{isShow:!0,emailAddress:this.emailChangeFlag?this.emailValue:t.emailAddress,onDialogToggle:this.onDialogToggle,onChange:this.onEmailChange,isKeyboardFocus:this.props.isKeyboardFocus}))))},t}(p),GO=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),KO=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(GO,{globalClass:"body__dialog",ifShow:this.state.ifShowDialog,onClose:this.hide,className:t.windowStatus===tu&&"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);KO.displayName="EndChat";var YO=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===eu&&this.props.windowStatus===tu&&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(UO,{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(KO,{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),QO="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=",ZO=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={src:QO},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:QO}),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),JO=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),XO=$B("header.icons")(YO),$O=e(1)(Ee),eT=e(1)(ze),tT=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=UB(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===ep&&this.props.tab!==ep&&(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===pm,r=$O(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===ip&&"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(ZO,{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(ZO,{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===pm?"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(JO,eT(t.mainColor)),!t.banner&&t.tab===ip&&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(XO,{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),nT=$B("header","window__headerVessel")(tT),iT=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"}},oT=function(e,t,n){var i=Yh(e)||Qh(e)||kv(e);return{agent:iT(i,t.header,n)}},aT=function(e){return{banner:e.header.banner}},rT=function(e,t,n,i){var o=uf(t);return!i||e!==nh&&e!==ih?e===nh?oT(t,n,!1):o&&e===ih?function(e,t,n){var i=Yh(e)||Qh(e)||kv(e);return{agent:iT(i,t.header,n,"chatbot")}}(t,n,!0):e===oh?function(e,t){return t.header.showAvatar||t.header.logo?{logo:t.header.logo,agent:oT(e,t).agent}:{ifViewHeaderBox:!0}}(t,n):e===ih?aT(n):{}:function(e,t){return{agent:iT(kv(e),t.header,!0,"taskbot")}}(t,n)},sT=function(e,t,n){return e===nh?Uh(t).tab===Zu?{}:function(e,t){var n=ef(e),i=n===ip,o=Sw(e)[t.id],a=Yf(e),r=n===$u||i&&o||a||Zw(e)===su||n===Ju||n===Xu?t.header.preChatShowTeam:t.header.offlineMessageShowTeam,s=n===$u||i&&o||a||Zw(e)===su||n===Ju||n===Xu?t.header.preChatTeamName:t.header.offlineMessageTeamName;return{team:r&&s,avatars:(n===$u||i&&o||a||Zw(e)===su||n===Ju||n===Xu?t.header.preChatShowAvatars:t.header.offlineMessageShowAvatars)&&_m(e)}}(t,n):e===oh?function(e,t){return{logo:t.header.logo}}(0,n):e===ih?aT(n):{}},cT=function(e,t,n){if(e===fm)return{ifViewHeader:!1};var i=Uh(t),o=function(e){var t=Y(e,"window.involvedAgents");return t&&t.length>0}(t),a=n.header.type;if(i.tab===ep&&(o||i.isChatBot||i.isTaskBot||i.chatStatus===wp&&!i.isTaskBot)&&(i.chatStatus===gp||i.chatStatus===wp||i.chatStatus===fp&&Ww(t)===yu||i.isChatBot||i.isTaskBot)||i.tab===tp){var r=!o&&!i.isChatBot&&(i.isTaskBot||i.chatStatus===wp&&!i.isTaskBot);return rT(a,t,n,r)}return sT(a,t,n)},dT=function(e,t){var n=rh(e,t);return!(!n||!n.header)&&(n.header&&n.header.type===ih)},lT=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=UB(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);lT.displayName="Rating";var uT,pT=g((function(e){return{isPoppedOut:uh(e),isRightToLeft:bg(e),commentField:um(e),ratingField:lm(e),ratingValue:eg(e,"rating"),commentValue:eg(e,"comment"),languages:b_(e),popupBubbleType:Zg(e)}}),(function(e){return{onSubmit:function(t){wS("livechat.chat.visitor.rate",t),e($C(t)),e({type:Bs,payload:t})},onToggle:function(t){e(zy(t?"rating":"none"))}}}))(lT),hT="error",fT="warning",gT=w({announce:function(e,t,n){},removeMessage:function(e){}}),wT=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(gT.Consumer,null,(function(t){var i=t.announce,a=t.removeMessage;e.removeMessage=a,i(n,o,r)}))},t}(p),mT=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===hT,o=t.type===fT,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),bT=function(e){function t(t){var n;return(n=e.call(this,t)||this).shouldCOmponentUpdate=UB(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),vT=[jo,Fo,Vo,Wo,No,Do,Ro,Eo,zo,Lo,Ho,Zo],_T=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=UB(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 vT.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},xT=_T((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(bT,{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})})),yT=["className","options","align","focused","ariaLabelledby"],CT=function(){},kT=function(e){function t(t){var n;(n=e.call(this,t)||this).Change=n.Change.bind(fe(n)),n.shouldComponentUpdate=UB(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||CT;-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,yT);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(bT,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),ST=_T((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(kT,{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})})),IT=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),MT=IT,AT=["isRequired","input","isReadOnly","isDisabled","className","meta","type","placeholder","autoComplete","maxLength","animationEffect","style"],BT=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,AT);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))},OT=function(e){function t(t){var n;return(n=e.call(this,t)||this).refCallback=n.refCallback.bind(fe(n)),n.shouldComponentUpdate=UB(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"},BT(e,this.refCallback)):BT(e,this.refCallback)},t}(p),TT=_T((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(OT,{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:pm===r,focused:e.isFocused,id:"field-"+e.id,autoComplete:"email"}))})),jT=function(e){function t(){var t;return(t=e.call(this)||this).shouldComponentUpdate=UB(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),FT=_T((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(jT,{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})})),VT=["input","rows","cols","style","isDisabled","placeholder","maxLength","className","meta"],WT=function(e){e.stopPropagation()},NT=function(e){function t(t){var n;return(n=e.call(this,t)||this).shouldComponentUpdate=UB(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,VT);return i("textarea",ge({onKeyDown:WT},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),DT=_T((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(NT,{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}))})),PT=function(e,t,n){void 0===t&&(t="text");return _T((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(OT,{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===pm,focused:o.isFocused,isDisabled:l,id:"field-"+o.id,autoComplete:n}))}))},RT=PT(128),ET=PT(64,"text","name"),zT=PT(32,"text","tel"),LT=PT(64,"text","organization"),HT=["options","disabled","className","width","selectedValue"],qT=function(e,t){return e==t},UT=function(e){function t(t){var n;return(n=e.call(this,t)||this).shouldComponentUpdate=UB(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!qT(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,HT);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:qT(s,e.value),ariaSelected:qT(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),GT=_T((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(UT,{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})})),KT=GT,YT=PT(32),QT=_T((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(UT,{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})})),ZT=QT,JT=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),XT=_T((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(JT,{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})})),$T=_T((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(OT,{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:pm===s,focused:e.isFocused,className:Ie&&"form__input--ie10",id:"field-"+e.id})))})),ej=$T,tj=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(sO,{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),nj=["focused"],ij=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,nj);return i("input",ge({type:"file",ref:function(t){return e.element=t}},n))},t}(p),oj=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(tj,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),aj=er()?function(e,t,n,o){return i(oj,{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(ij,{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}))},rj=_T(aj),sj=["onChange","onBlur","onFocus","style","disabled"],cj=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,sj);return i("div",{className:"field-control field-control-password"},i(OT,{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===pm,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),dj=_T((function(e,t){var n=t.onChange,o=t.onBlur,a=t.onFocus,r=t.style,s=t.disabled;return i(cj,Object.assign({},e,{onChange:n,onBlur:o,onFocus:a,style:r,disabled:s}))})),lj=PT(128,"number"),uj=function(e){var t=e.target.value;t=t.replace(/\D/g,""),e.target.value=t},pj=function(e,t){void 0===t&&(t="text");return _T((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(OT,{maxLength:e,type:t,input:{onInput:uj,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===pm,focused:n.isFocused,isDisabled:d,id:"field-"+n.id}))}))}(128,"number"),hj=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),fj=["options","mainColor","isProcessed","onBlur","error","ariaLabel","required"],gj=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,fj),u=this.state,p=u.sIndex,f=u.value;return a?null:i(hj,{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),wj=_T((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(gj,{options:c,value:s,onChange:n,onFocus:a,onBlur:o,focused:e.isFocused,disabled:r,id:"field-"+e.id,width:308,error:e.error})})),mj=_T((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})})),bj=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},vj=function(e){if("number"!=typeof e)return"";return e<720?bj(e):bj(e-720,"PM")},_j=function(){var e=new Date;return 60*e.getHours()+e.getMinutes()},xj=_T((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):_j();return r||n(vj(_j())),i(Ze,{value:s,onChange:function(e){n(vj(e))},onFocus:o,disabled:a,formatType:"min",id:"field-"+e.id})})),yj=xj,Cj=_T((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})})),kj={},Sj=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(kj[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="",kj[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),Ij=Sj,Mj=_T((function(e,t){var n=t.isHorizontal,o=t.onChange,a=t.captchaSettings,r=t.languageTag,s=t.brandConfig;return i(Ij,{id:"captcha-"+e.id,isCompact:n,onSuccess:o,onExpired:function(){return o(null)},settings:a,language:r,brandConfig:s})})),Aj=Mj,Bj=["fields"],Oj=Oe((function(){return import("./NPS.9aed71b4.js")})),Tj=((uT={})[jo]=ET,uT[Fo]=TT,uT[Vo]=zT,uT[Wo]=LT,uT[No]=KT,uT[Do]=ZT,uT[Ro]=XT,uT[Eo]=DT,uT[Lo]=DT,uT[zo]=YT,uT[Po]=ej,uT[Go]=xT,uT[Ko]=xT,uT[Yo]=ST,uT.checkBoxList=ST,uT.custom=MT,uT.radioBox=FT,uT.radio=FT,uT.dropdownList=KT,uT.dropDownList=KT,uT[Uo]=DT,uT[qo]=RT,uT[Ho]=rj,uT[Qo]=Oj,uT[Zo]=Aj,uT[Jo]=Cj,uT[Xo]=wj,uT[$o]=mj,uT[ea]=yj,uT[ta]=dj,uT[ia]=pj,uT[na]=lj,uT),jj=$B("form")((function(e){var t=e.fields,n=z(e,Bj);return i("div",{className:"field-table form-style-hor"},t.map((function(e){return e.type===Qo?i(Te,null,i(je,null,i(Tj[e.type],Object.assign({},n,{field:e,key:e.id})))):i(Tj[e.type],Object.assign({},n,{field:e,key:e.id}))})))})),Fj=["disabled","text","onClick","className","htmlType","loading","size","icon","iconPosition","type","children","spanStyle","ariaLabelText","focus","onFocus"],Vj={large:"btn-lg",small:"btn-sm"},Wj={primary:"btn-primary",default:"btn-default",gray:"btn-grey",noborder:"btn-noborder"},Nj=function(e){function t(t){var n;return(n=e.call(this,t)||this).shouldComponentUpdate=UB(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,Fj),m=null;return d&&(m=d),i("button",ge({},w,{className:h("btn",n&&"disabled",Vj[c]||"",Wj[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),Dj=["isSubmitting","onClick","success","text","disabled"],Pj=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,Dj),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(Nj,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),Rj=$B("submit")((function(e){return i(Pj,{onClick:e.onClick,isSubmitting:e.isSubmitting,success:e.success,text:e.text,disabled:e.disabled})})),Ej=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!==ap){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,Lj.repeat-1)&&(Jj=1),Fb(iF(Zj,Jj))}function uF(){return!!eF||!(Kj.length<=Lj.count)&&(lF(),!0)}function pF(){Kj.shift(),$j.shift(),aF()}var hF=function(e,t,n){var i;Lj=e,Uj=t,Gj=n,(i={})[Yj]="",i[Qj]="",i[Zj]="",tF=i,sF(),rF(),cF(),Kj=[],Jj=1,Xj=null,function(){var e=(new Date).getTime(),t=nF(Qj);if(null!=t&&""!==t){var n=!1;t.split(":").forEach((function(t){var i=new Date(+t);e-i<=1e3*Lj.penalty&&(Kj.push(+t),$j.push(setTimeout(pF,1e3*Lj.penalty-(e-i))),n=!0)})),n&&aF()}var i=oF();i&&e0?Uj(t):(Uj(0),rF())}),1e3)),!e&&Xj&&rF(),{isLimited:e,waitSecond:t}},wF=g((function(e){return{isPopout:!0,isAudioVideoChatting:hg(e),isScreenSharing:cw(e),languages:b_(e)}}),(function(e){return{onClick:function(){rF(),e(Sy())},onContinue:function(t,n){t&&e(gk()),n&&e(wk()),setTimeout((function(){rF(),e(Sy())}),1e3)},updateFocusOnDropdownMenu:function(t){e(Sx(t))}}}))(qj),mF=g((function(e){return{isPopout:!1,isAudioVideoChatting:hg(e),isScreenSharing:cw(e),languages:b_(e)}}),(function(e){return{onClick:function(){e(Iy())},onContinue:function(t,n){t&&e(gk()),n&&e(wk()),e(Iy())},updateFocusOnDropdownMenu:function(t){e(Sx(t))}}}))(qj),bF=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);bF.displayName="Sound";var vF,_F=g((function(e){return{languages:b_(e),isSoundOff:wh(e)}}),(function(e){return{setSoundOff:function(t){e(U_(t))}}}))(bF),xF=Oe((function(){return import("./Print.25591a7d.js")})),yF=((vF={})[ep]="livechat.chat",vF[$u]="livechat.prechat",vF[tp]="livechat.postChat",vF[np]="livechat.offlineMessage",vF),CF=g((function(e){var t=ef(e),n=rf(e),i=Yv(e,n.id),o=Aw(e),a=ng(e),r=Rv(e),s=Gv(e,r),c=s&&function(e,t){return!!(fw&tm(e,t))&&e.window.chatStatus!==wp}(e,r)&&lm(e),d=s&&nm(e,r)&&!Ff(e),l=s&&function(e,t){return!!(bw&tm(e,t))&&!Ff(e)&&!Rw(e)}(e,r),u=uh(e),p=A_(e),h=!u&&!p,f=hh(e),g=Kh(e),w=t===ep&&g===gp,m=f&&w,b=m_(e),v=Rw(e),_=!u;_=_&&!Kg(e);var x=Kw(e),y=s&&sm(e,r),C=!b&&!_&&!w;return Object.assign({tab:t,hasMinimize:h,hasEndChat:m,hasPrint:l,icons:[c&&pT,d&&Hj,l&&{type:"lazy",name:"Print",component:xF},y&&_F,b&&mF,_&&wF].filter((function(e){return e})),windowDisabled:tg(e),chatWindowStyle:i,isAvatarGray:t===np||t===ip&&!Pw(e,n.id),ifViewConfirmBubble:t!==tp,ifHideBio:Xf(e),isPopout:uh(e),languages:n.languages,ifViewHeader:!0,ifViewHeaderBox:x>340,color:c_(e),mainColor:sf(e),windowStatus:o,ifShowSideWindow:a,height:Kw(e)},cT(i,e,n),{isMobile:v,popupBubbleType:Zg(e),emailAddress:eg(e,"email"),hideCloseButton:C,isKeyboardFocus:$w(e),isFocusOnDropdownMenu:em(e),kbGreetingMessage:Cg(e)})}),(function(e){return{onMinimize:function(t){var n=yF[t];n&&wS(n+".minimize"),e(dx())},onEnterMinimize:function(){e(px(!0))},onClose:function(t){var n=yF[t];n&&wS(n+".close"),setTimeout((function(){return e(lx())}),0)},onEndChat:function(){e(tk()),e(nx())},onUpdateScrollStatus:function(t){e(xy(t))},resetFocusOnDropdownMenu:function(){e(Sx(!1))}}}))(nT),kF=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),SF=$B("footer.poweredby")(kF),IF=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(mT,{message:t.error||t.warning,type:t.error?hT:fT,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(SF,t),t.showChatWithAgent&&i("button",{onClick:t.onChatWithAgentClick,className:"window__chatWithAgent window__chatWithAgent--bottom"},t.chatWithAgentText)))},t}(p),MF=$B("footer","footer-container")(IF),AF=g((function(e){var t=Rw(e),n=og(e),i=t&&n&&n.length>0||Vm(e)?null:jf(),o=ef(e),a=Nh(e),r=nf(e),s=Yv(e,r)===fm;return{tab:o,poweredByUrl:i,showChatWithAgent:!1,chatWithAgentText:__(e,"buttonChatbotChatWithAgent"),brandingName:a&&a.brandingName,partnerId:a&&a.partnerId,poweredByContent:a&&a.poweredByContent,isPopout:uh(e),width:ew(e),isBubble:s,warning:Mf(e),error:Sf(e),isChatInputVisible:Wf(e)}}),(function(e){return{onChatWithAgentClick:function(){e(ly())},onWarningClose:function(){e(ay())},onErrorClose:function(){e(dy())}}}))(MF),BF={},OF=e(5)((function(e){return ot("iframe",{src:e,style:{display:"none"},title:"Login"},document.body).then((function(t){var n=UA(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&&BF[n.meta]){var o=BF[n.meta],a=o.reject,r=o.resolve;n.error?a(n.payload):r(n.payload)}})),n}))}));function TF(e,t){var n=Math.random().toString();return OF(t).then((function(t){return new Promise((function(i,o){var a=Object.assign({meta:n},e);BF[a.meta]={resolve:i,reject:o},t.dispatch(a)}))}))}var jF,FF=function(e,t){return TF({type:"facebook-init",payload:e},t)},VF=((jF={})[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"},jF),WF=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=VF[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),NF=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),DF=$B("greeting")(NF),PF=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(FF,e,l),d=WF,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 TF({type:"facebook-login"},e)}(l).then(n)},isSimpleIcon:r})}else s=null;return $B("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)))}))})),RF=function(e,t){var n=e.facebookAppId,i=e.iframeSrc,o=e.onLogin,a=e.languages,r=e.isHorizontal;return PF(n,i,o,t,a,r)},EF=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=RF(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=RF(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!==$u){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===fm){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===mp?R="Pre-chat window":n===bp?R="Post-chat window":n===vp&&(R="Offline message window");var E={maxHeight:k};return g===fm?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(DF,{prefix:n,greeting:o,tab:m})),this.social&&i(this.social,{tab:m}),i(Ej,{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(DF,{prefix:n,greeting:o,tab:m})),this.social&&i(this.social,{tab:m}),i(Ej,{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),zF=EF,LF=function(e){var t="";e===mp?t="livechat.prechat":e===bp?t="livechat.postChat":e===vp&&(t="livechat.offlineMessage");return g((function(n){var i,o=e===mp,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===mp?i=$u:e===bp?i=tp:e===vp&&(i=np);var c=uh(n),d=Kw(n),l=nf(n),u=of(n)||l,p=e===bp?Bv(n):Ov(n,e,u),h=tg(n);e===vp&&0===p.length&&(h=!0);var f=b_(n),g=sf(n),w=Rw(n),m=!w&&!Vm(n)&&!!jf(),b=v_(n),v=km(n,l),_=o_(n,e),x=Yv(n,l),y=w&&ke&&xg(n)||_&&x===fm||xg(n)&&ke&&bg(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:vh(n,"/visitorside/html/socialiframe.61363e27025e3f2ca667600f2c4531f5eaba5cba.html?origin="+Q.origin+"&id="+(window.frameElement?window.frameElement.id:"id")),captchaSettings:C,submitStatus:Tv(n,e),greeting:i_(n,e),isHorizontal:_,buttonText:a_(n,e),hCallback:undefined,siteId:Iw(n),style:Zv(n),error:Sf(n),windowStyle:Yv(n,l),disabled:h,isMobile:w,isIPad:Ew(n),languages:f,languageTag:b,ifHideBio:Xf(n),mainColor:g,bottom:Bg(n),hasPoweredBy:m,showAdaptiveMinimizeIcon:A_(n),ifShowSideWindow:ng(n),onMounted:function(){wS(t+".display",u)},isEmbeddedWindow:v,brandConfig:Nh(n),ifCrossSiteTransfer:!!Nv(n),width:ew(n)}}),(function(n){return{onChange:function(i,o){n(Ak(e,i.id,o)),wS(t+".field.change",Object.assign({},i,{value:o}))},onError:function(t,i){n(Bk(e,t.id,i))},onBlur:function(i){n(Tk(e,i.id)),wS(t+".field.blur",Object.assign({},i,{isFocused:!1}))},onFocus:function(i){n(Ok(e,i.id)),wS(t+".field.focus",Object.assign({},i,{isFocused:!0}))},onLogin:function(t){n(function(e,t){return{type:el,payload:t,meta:{formType:e}}}(e,t))},onSubmit:function(t){return n(Lk(e,1500,t))},onValidateAll:function(e){n(Dk(yp,e))},onUpdateScrollStatus:function(e){n(xy(e))}}}))(zF)},HF=LF(mp),qF=LF(bp),UF=LF(vp);Math.pow("production",b.shape({fields:b.arrayOf(b.shape()),buttons:b.arrayOf(b.shape()),isEnable:b.bool,tabIndex:b.number}));var GF=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===fm;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(wT,{id:t.messageGuid,message:t.liveMessage||t.message}),n&&i("div",{className:"window__chatSystemMessageContent"},t.message),!n&&t.message)},t}(p),KF=e(1)((function(e,t){return e?B(t,"guid",e):-1}));function YF(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent}var QF=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?YF("✔"):YF("✖"):"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(wT,{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=KF(n,a),s=KF(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),ZF=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),JF=XB("livechat.invitation.message","invitation")(ZF),XF=Oe((function(){return import("./AgentSendSSO.7d69a9e9.js")})),$F=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)),wS("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===gp){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(JF,{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(wT,{id:n.messageGuid,message:u}),n.ifShowAvatar&&n.sender.avatar&&i("div",{className:"agentMessage__avatar"},i(ZO,{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(XF,{message:n.message,ifDisable:n.isSSOLoggedIn||!n.isChatting||n.message.isDisable,onClick:n.onSSORequestClick,mainColor:n.mainColor,isPopoutWindow:n.isPopoutWindow}))):e)))},t}(p),eV=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!==op;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(Ej,{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 tV(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},gV=((rV={})[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(lV)>=0&&void 0===e.queuePosition)return null;if(s.indexOf(uV)>=0&&(void 0===e.estimatedWaitTime||0===e.estimatedWaitTime))return null;for(;s.indexOf(lV)>=0;)a===gp||a===wp?s=s.replace(lV,pV):(s=s.replace(lV,e.queuePosition),pV=e.queuePosition);for(;s.indexOf(uV)>=0;)a===gp||a===wp?s=s.replace(uV,hV):(s=s.replace(uV,e.estimatedWaitTime),hV=e.estimatedWaitTime);return i(GF,{key:e.guid,messageGuid:e.guid,type:e.type,message:s,windowStyle:n,scrollDown:o,isMessageScrollBottom:r})}return null},rV[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===hp){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:fV(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(GF,{key:e.guid,type:oi,message:v,liveMessage:m+" button",messageGuid:e.guid,windowStyle:o,scrollDown:a,isMessageScrollBottom:f,id:oi})}return null},rV[an]=function(e,t){var n=t.isPrint,o=t.windowStyle,a=t.scrollDown,r=t.isMessageScrollBottom,s=[];return s.push(i(GF,{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(dV,{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},rV[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(oV,{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})},rV[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(GF,{key:e.guid,type:e.type,message:l,messageGuid:e.guid,windowStyle:n,sender:e.sender,scrollDown:o,isMessageScrollBottom:a})}return null},rV[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(aV,{onClick:n,content:e.content,popupBubble:d,isKeyboardFocus:l}));return i(GF,{key:e.guid,type:ai,message:u,messageGuid:e.guid,liveMessage:e.content+" button",windowStyle:a,scrollDown:r,isMessageScrollBottom:s,id:ai})}return null},rV);var wV=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(GF,{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(GF,{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(QF,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($F,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(nV,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(iV,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(cV,{message:e,otherProps:t})));var o=gV[e.type];return o?o(e,t):null},mV=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,sV),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 wV(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),bV=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),vV=["greeting","height","hasMobileSideWindow","bottom","ifShowBio","ifHideBio"];function _V(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 xV,yV,CV=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,_V(e.element,"window__chat--animation"))}),625),H.addEventListener("beforeunload",this.beforeunload),mS("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&&_V(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(){Ub(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,vV),p=u.isInputVisible,f=!1;if(u.windowStyle===fm){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(bV,{isBubble:f,greeting:o}),i(mV,ge({},u,{scrollDown:this.scrollDown}))),v=i(mV,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(wT,{id:"greeting"+this.props.chatGuid,message:o,isHtml:!0}),!(f&&u.isMobile)&&l&&i(bV,{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),kV=function(){return{type:DM,payload:{type:"locationCancelled"}}},SV=function(){return{type:PM,payload:{type:"visitorSSOCancelled"}}},IV=function(e){var t=e.fromSource;return{type:RM,payload:{type:"meetingCancelled",fromSource:t}}},MV=function(e){var t=e.eventUri,n=e.inviteeUri,i=e.fromSource;return{type:EM,payload:{bookMeetingEventUri:t,bookMeetingEventInviteeUri:n,fromSource:i,type:"meetingSubmitted"}}},AV=function(){return{type:zM,payload:{type:"formCancelled"}}},BV=function(e){var t=e.fromSource;return{type:LM,payload:{fromSource:t,type:"microsoftBooking"}}},OV=function(e,t){return{type:e,guid:ne(),time:new Date,content:t,sender:{type:sp}}},TV=g((function(e){var t=gf(e),n=vf(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=Qh(e))?void 0:t.type)}(e),o=uh(e),a=Kw(e),r=Rw(e),s=nf(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=Tw(e).url;return Z(t)}(e),l=Rv(e),u=function(e,t){return Y(e,"entities.campaigns.entities."+t+".chatWindowIfCanDownloadChatDetail")}(e,l),p=nm(e,l),h=Rv(e),f=Kh(e)===gp,g=Bv(e),w=f?g.filter((function(e){return"rating"===e.type||"comment"===e.type})):g,m=Tv(e,f?xp:bp);return{isAIAgent:i,siteId:Iw(e),transferSiteId:Mw(e),KbHost:d,height:a,isPopout:o,isMobile:r,isIpad:Ew(e),ifShowBio:_g(e),hasMobileSideWindow:ng(e)&&r,windowStyle:Yv(e,s),greeting:c||"",messages:t,ifShowName:n>1,gotoOfflineLinkText:__(e,"eventLinkText")||"here",startChatAgainText:__(e,"startChatAgain",h),emailTranscriptText:__(e,"buttonTranscript",h),translatedTag:__(e,"translation"),originalTag:__(e,"original"),agentTypingText:__(e,"eventOperatorIsTyping",h),chatStatus:Kh(e),ifShowAvatar:Zv(e)===fm||d_(e),chatGuid:xf(e),ifHideBio:Xf(e),isInputVisible:Wf(e),mainColor:sf(e),bottom:Bg(e),showAdaptiveMinimizeIcon:A_(e),showToolbox:Rg(e),onMounted:function(){wS("livechat.chat.display",s)},maxAgentReadId:jg(e),ifEnableVisitorSeeMsgSentSeen:Tg(e,h),msgNotSeenByAgent:__(e,"msgNotSeenByAgent",h),isChattingWithAgent:Kh(e)===gp&&!uf(e)&&!Cv(e)||Kh(e)===fp||Kh(e)===hp||Kh(e)===wp&&0!==vf(e).length,languages:b_(e),ifShowQuickReply:!!Vg(e),agents:j_(e),prechatDepartment:T_(e),startTime:Hg(e),endTime:qg(e),campaignId:Cw(e),transferCampaignId:Rv(e),originalMessages:wf(e),chatWindowIfCanDownloadChatDetail:u,ifCanEmailTranscript:p,isSSOLoggedIn:null!==Qm(tv)&&Qm(tv),isChatting:f,isPopoutWindow:uh(e),isFreemiumSignupFormInsideChatWindowEnabled:Uv(e),isChatEnded:F_(e)===lu,prechatEmail:eg(e,"email"),customizeFileService:k_(e),standbyFileService:S_(e),apiHost:I_(e),isMessageScrollBottom:Xg(e),unReadMessageCount:$g(e),ratingForm:{fields:w,greeting:i_(e,bp),buttonText:a_(e,bp),submitStatus:m,ratingValue:eg(e,"rating"),commentValue:eg(e,"comment")},isHorizontal:o_(e,bp),width:ew(e),isPostChatVisible:tw(e),onPostChatMounted:function(){wS("livechat.postChat.display",s)},enableGa:Kv(e),ifShowTranslationOnly:zh(e),resourceOrigin:_h(e),visitorDraft:Cf(e),popupBubble:Zg(e),isKeyboardFocus:$w(e),header:cT(Zv(e),e,rf(e))}}),(function(e){return{submitSecureForm:function(t,n){var i=OV(hi,""+t+R+n);e(fk([i]))},cancelSecureForm:function(t){e(ty(t));var n=OV(fi,"");e(fk([n]))},getSecureFormFailure:function(){var t=OV(gi,"");e(fk([t]))},onOfflineLinkClick:function(t){t.preventDefault(),e(zx(np))},onChatWithAgentClick:function(){e(ly())},onRateClick:function(t,n,i,o,a,r){e(py(n,t,i,o,a,r))},onStartChatAgainClick:function(t){t.preventDefault(),e(vy())},onEmailTranscriptClick:function(t){t.preventDefault(),e(FC(!0))},onUpdateScrollStatus:function(t){e(xy(t))},onChatbotTimeout:function(t){e(Gy(t))},onKbLinkClick:function(t,n){e(yk(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(tC(n,i,o,a,r,s))},onCloseBotSignWindow:function(){e(nC())},onWebViewLinkClick:function(t){e(Jy(t))},onIntentLinkClick:function(t,n,i,o,a,r){e(vC(r)),e(uy({id:t,name:n,clickType:i,agentId:o,botId:a}))},onPushPage:function(t){e(Qy(t))},onSSORequestClick:function(t){t.isPopoutWindow?e(bC()):t.content.ifOpenSignInPageEmbeddedWindow?e(Jy(t)):e(wC())},onTaskBotQuickReplyClick:function(t,n){wS("livechat.chat.visitor.input",t),e(Qx(t)),e(JI(n))},onTaskBotCollectInput:function(t,n){wS("livechat.chat.visitor.input",t),setTimeout((function(){e(Qx(t)),e(JI(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;wS("livechat.chat.visitor.input",n),setTimeout((function(){e(Qx(n,!1,{textType:r,isCollect:c,displayedText:d,quickReplyNextActionId:l})),i&&e(vC(i))}),a)},onChatbotActionChatWithAgentoptions:function(t){t.text;var n=t.messageGuid;e(ly()),e(vC(n)),wS("livechat.chat.visitor.chatwithagent")},hideQuickReply:function(){e(gC())},onInputAreaVisibleChange:function(t){e(BC(t))},onInputAreaDisableChange:function(t){e(OC(t))},onReadNewMsg:function(){e(Ck()),e(jC())},updateIsMessageScrollBottom:function(t){e(TC(t))},onBotFeedback:function(t){e(function(e){return{type:DS,payload:Object.assign({},e,{type:"botFeedback"})}}(t))},onChange:function(t,n,i){e(Ak(bp,t.id,n)),i||wS("livechat.postChat.field.change",Object.assign({},t,{value:n}))},onError:function(t,n){e(Bk(bp,t.id,n))},onBlur:function(t,n){e(Tk(bp,t.id)),n||wS("livechat.postChat.field.blur",Object.assign({},t,{isFocused:!1}))},onFocus:function(t,n){e(Ok(bp,t.id)),n||wS("livechat.postChat.field.focus",Object.assign({},t,{isFocused:!0}))},onSubmit:function(t){e(jk(bp)),e(Lk(bp,1500,t)).then((function(){return e(VC())}))},onSubmitRating:function(t){e(jk(xp)),wS("livechat.chat.visitor.rate",t),e($C(t)),e({type:Bs,payload:t})},onValidateAll:function(t){e(Dk(yp,t))},updatePostChatVisible:function(t){e(NC(t))},onPreviewImage:function(t,n){e(GC({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:HM,payload:{type:"canvasAuthorization",status:t,fromSource:n}}}({status:n,fromSource:i}))}}}))(CV),jV=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),FV=g((function(e){return{errorMessage:Sf(e),windowStyle:Yv(e,Cw(e))}}))(jV),VV=Oe((function(){return import("./SideWindow.3ef5fc68.js")})),WV=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(VV,e)))},NV=Oe((function(){return import("./KBsearch.778f734d.js")}));Oe((function(){return import("./SideWindow.3ef5fc68.js")}));var DV,PV=Oe((function(){return import("./ChatInput.88f51872.js")})),RV=Oe((function(){return import("./WebView.4792b708.js")})),EV=Oe((function(){return import("./PreLogin.10240fa5.js")})),zV=Oe((function(){return import("./SSOLogin.7c812516.js")})),LV=((xV={})[$u]=HF,xV[tp]=qF,xV[np]=UF,xV[ep]=TV,xV[Ju]=EV,xV[Xu]=zV,xV[Zu]=FV,xV[ip]=NV,xV),HV=((yV={})[$u]={timespan:0,duration:20},yV[tp]={timespan:0,duration:20},yV[np]={timespan:0,duration:20},yV[ep]={timespan:0,duration:2},yV[Ju]=null,yV[Xu]=null,yV[Zu]=null,yV[ip]={timespan:0,duration:20},yV),qV=function(){},UV=g((function(e){var t,n=ef(e),o=LV[n],a=Qg(e);n!==Xu||a||(o=EV);var r=Aw(e),s=r===tu,c=Ew(e),d=Kh(e),l=n===Ju||n===Xu||n===ip?i(Te,null,i(je,null,i(o))):i(o);t=n===Xu?a?[l]:[i(CF,null),l]:[i(CF,null),l,Wf(e)&&i(Te,null,i(je,null,i(PV,{isIPad:c}))),i(AF,null),Nf(e)&&i(Te,null,i(je,null,i(RV,null)))].filter((function(e){return e}));var u=d===gp,p=Zv(e),h=Jv(e),f=Mf(e),g=Sf(e),w=Bf(e),m=r_(e,w),b=s_(e),v=HV[n];d!==wp||n!==ep&&n!==tp||(v={timespan:0,duration:10});var _=d===wp,x=d===wp?180:void 0,y=dg(e),C=0,k=ng(e),S=k?WV:null;p===fm&&(C=Math.random());var I=Yw(e),M=Kw(e),A=Cw(e),B=Om(e,A),O=xm(e,A),T=bg(e),j=function(e){return e.page.orientation}(e),F=cT(p,e,ah(e,A)),V=Sw(e)[A],W=A_(e),N=Og(e),D=Bg(e),P=gf(e),R=Ug(e),E=function(e){return e.configuration.visitorsideCustomCSS}(e),z=Rv(e),L=Xg(e);return{isPoppedOut:uh(e),fontCSS:Ua(te(vh,e)),mainColor:sf(e),background:cf(e),isFocused:gg(e),children:t,windowTab:n,windowStatus:r,windowStyle:p,warning:f,error:g,isMobile:Rw(e),isIPad:c,showChatWindowInSidewindow:rg(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:v_(e),online:V,showAdaptiveMinimizeIcon:W,isCurrentAdaptiveButton:M_(e),right:N,bottom:D,ifEnableVisitorSeeMsgSentSeen:Tg(e,z),maxVisitorReadId:Fg(e),maxMsgId:kf(e),maxGuid:R,messages:P,chatStatus:d,showToolbox:Rg(e),hDelay:_,hStop:x,brandConfig:Nh(e),isSideWindowSelectedTabKb:sg(e)===Bp,isMessageScrollBottom:L,isKeyboardFocus:$w(e),isWaitingFromChatBotToAgent:Zf(e),header:F}}),(function(e){return{dispatch:e,onMounted:function(){e(Uy())},onErrorClose:function(){e(dy())},onWarningClose:function(){e(ay())},onFocusToggle:function(t){e(iy(t))},onPositionChange:function(t,n){e(oC(t,n))},onReadNewMsg:function(t){e(Ck(t))},hOnInit:function(){e(P_(!0))},hOnStopped:function(){e(P_(!1))},minimize:function(){e(dx())},updateMainWindowWidth:function(t){e(WC(t))},setIsKeyboardFocus:function(t){e(kx(t))}}}),(function(e,t){var n=e.windowTab,i=t.dispatch,o=qV;return n===ep?o=function(){return i(XC())}:n===$u||n===ip?o=function(){return i(uk())}:n===tp?o=function(){return i(XC())}:n===np&&(o=function(){return i(pk())}),Object.assign({},e,t,{hCallback:o})}))(zO),GV=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),KV=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(gT.Provider,{value:{announce:this.announce,removeMessage:this.removeMessage}},i(GV,{message:this.state.message}),this.props.children)},t}(p),YV=Oe((function(){return import("./ImagePinch.9a023bdb.js")})),QV=function(e){return i(Te,null,i(je,null,i(YV,e)))},ZV=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}},JV=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=ZV(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=ZV(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(QV,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),XV=EO(JV),$V=g((function(e){var t=dw(e),n=b_(e);return Object.assign({},t,{labels:{close:n.buttonClose,popout:n.embeddedWindowPopup},languageTag:v_(e),isMobile:Rw(e)})}),(function(e){return{onResetPreviewImage:function(){e(GC({}))}}}))(XV),eW="chatButton",tW="chatButton--ripple",nW=e(1)(Ee),iW=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(tO,e),".online .chatButton:after{","background:"+nW(e),"}",".online ."+tW+"."+eW+":before{","animation:at-ripple 16.417s linear 3.625s infinite","}",".offline .chatButton:after{","background:"+nW("#bbb"),"}",".innerIcon {","fill:"+nW(e),"}"].join(""),i,n]})),oW=e(1)(bt),aW=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=UB(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=dO)}),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===nu&&this.props.isKeyboardFocus&&this.buttonEl&&this.buttonEl.focus()},n.componentWillReceiveProps=function(e){e.status===nu&&this.button&&(this.button.style.zIndex=dO+1),e.count!==this.props.count&&this.setState({ifReceiveNewMessage:!0}),e.status===eu&&this.props.status===tu&&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;wM(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([$l,eu].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=iW(l,r,p),b=ye(this.context),v=oW(s?l:"#bbb"),_=v.startColor,x=v.stopColor,y=this.props.customizeIcon;return i("div",{className:h("chatButtonContainer",d&&"chatButtonContainer--mobile",a===tu&&r&&"chatButton--avatar",s?"online":"offline"),ref:function(t){e.button=t}},i(oO,{css:m,id:"adaptive"}),i("a",{className:h(c&&tW,eW),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),rW=Object.freeze({__proto__:null,default:aW}),sW={width:88,height:88,position:"fixed",border:"none",zIndex:dO},cW=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===tu?this.props.onMaximize:this.props.onMinimize)(this.props.windowTab)},n.render=function(){var e=this.props,t=e.windowStatus===tu,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===fm?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!==fm||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(sO,{style:Object.assign({},sW,{right:p,bottom:f}),title:s.minimizeBtn,id:"chat_button_adaptive_container",languageTag:e.languageTag},i(aW,{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),dW=Oe((function(){return import("./Bar.4e001804.js")})),lW=EO((function(e){return e.showAdaptiveMinimizeIcon?i(cW,e):i(Te,{fallback:i("div",null)},i(je,null,i(dW,e)))})),uW=Oe((function(){return import("./NotifyBubble.e4bd23c7.js")})),pW=function(e){return i(Te,{fallback:i("div",null)},i(je,null,i(uW,e)))};var hW,fW=((DV={})[ep]="livechat.chat",DV[$u]="livechat.prechat",DV[tp]="livechat.postChat",DV[np]="livechat.offlineMessage",DV),gW=g((function(e){var t=function(e){var t,n=Zv(e);return l_(e)&&n!==fm&&(t=qf(e)),t}(e),n=nf(e),i=ef(e),o=Aw(e),a=function(e){if(Aw(e)===tu)return Bf(e)}(e),r=function(e){var t=Cw(e);return Sw(e)[t]}(e),s=function(e){var t=Cw(e);return xm(e,t).svg}(e),c=sf(e),d=A_(e),l=xm(e,n),u=l.color,p=Jv(e),h=O_(e),f=r_(e,a),g=Og(e),w=Bg(e),m=o===tu,b=f_(e),v=function(e){return(Fw(e)||{}).invitationType===mu}(e),_=dg(e),x=v_(e),y=Cw(e),C=Om(e,y),k=C&&C.width,S=Yw(e),I=C&&C.height,M=Kw(e),A=Zv(e);return{isMobile:Rw(e),isIPad:Ew(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?pW:null,languageTag:x,languages:b_(e),openText:$[x].openChatWindow,acceptText:$[x].acceptInv,refuseText:$[x].refuseInv,closeText:$[x].closeNewMsg,chatWindowWidth:k,windowWidth:S,windowStyle:A,isPoppedOut:uh(e),fontCSS:Ua(te(vh,e)),isRightToLeft:bg(e),chatWindowHeight:I,windowHeight:M,isCustomizedAdaptiveButtonUsed:l.isCustomizedAdaptiveButtonUsed,customizeIcon:l.customizeIcon,shouldFocusBar:Jw(e),isKeyboardFocus:$w(e)}}),(function(e){return{onMinimize:function(t){var n=fW[t];n&&wS(n+".minimize"),e(dx())},onMaximize:function(t){var n=fW[t];n&&wS(n+".restore"),setTimeout((function(){return e(ux())}),0)},onRefuse:function(){e(Ey())},onSend:function(t,n){e(rC(t,n))},onBlurMinimize:function(){e(px(!1))}}}))(lW),wW=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))},mW=Oe((function(){return import("./Button.304b2bd3.js")})),bW=Oe((function(){return import("./Invitation.e2c3af77.js")})),vW=g((function(e){var t,n=dh(e),i=function(e){return e.app.error}(e),o=uh(e);if(!n)return{isReady:n,error:i,isPoppedOut:o};var a=A_(e);return{isReady:n,enableGa:Kv(e),tab:ef(e),invitation:mv(e),guid:xf(e),ban:ph(e),isCampaignReady:$h(e),windowStatus:Aw(e),isPoppedOut:uh(e),customJs:g_(e),chatStatus:Kh(e),showAdaptiveMinimizeIcon:a,languageMaxmized:null==(t=$[v_(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(wW,{message:c}):null;if(u)return null;var w=n!==nu,m=n===tu,b=m;return m||(b=f),i("div",null,r&&i(ZB,{key:"js",textContent:r,name:"script",type:"text/javascript",nonce:"setupVisitorSideCustomJS"}),i(YB,{enableGa:a,windowTab:o,invitation:d,guid:l,chatStatus:s}),!h&&i(Te,{fallback:i("div",null)},i(je,{isShowError:!1},i(mW,null))),p&&w&&i(KV,{key:"chatwindow"},i(UV,null)),i(KV,{key:"invitation"},d&&d.type===mu&&i(wT,{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(bW,null))),b&&i(gW,null),!m&&!b&&w&&i(wT,{id:"restoreChatWindow",message:g,removeMessageWhenUnmount:!0})),p&&i($V,null))})),_W=function(e){var t=e.store;return i(eO,{getRender:fS},i(y,{store:t},i(vW,null)))},xW="$brandingName-container".replace("$brandingName",H.brandingNameLowerCase);hW=[function(e){var t=q.getElementById(xW),n=t||q.createElement("div");return t||(n.id=xW,q.body.appendChild(n)),l(i(_W,{store:e}),n),function(){n.innerHTML=""}},function(e){if(uh(e.getState()))return null;var t=null,n=null,i=function(){if(null===t){var n=e.getState(),i=Xv(n),o=te(Kk,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(ph(t)||fh(t))o();else if(!dh(a)&&dh(t)||fh(a)&&hh(t)){if(ph(t))return;if(null==Xv(t))return;i(),n=setTimeout(o,1e3*Mh(t))}else dh(t)&&Sh(t)!==Sh(a)&&(o(),i(),n=setTimeout(o,1e3*Mh(t)));a=t}));return function(){r(),o()}},function(e){hS={},gS={},D.get=bS(function(e){return{"livechat.siteId":$k(e),"livechat.campaignIds":Er,"livechat.isDynamicCampaign":eS(e),"livechat.isMobile":tS(e),"livechat.button.isVisible":nS(e),"livechat.button.status":iS(e),"livechat.prechat.isSkip":oS(e),"livechat.prechat.fields":rS(mp,e),"livechat.postChat.fields":rS(bp,e),"livechat.offlineMessage.fields":rS(vp,e),"livechat.sideWindow.isVisible":aS(e),"livechat.sideWindow.tabs":cS(e),"livechat.visitor.guid":dS(e),"livechat.chat.maxMessageLength":lS(e),"livechat.sso.artifact":sS(e)}}(e)),D.set=bS(function(e){var t=Jk(e),n=t(jx);return{"livechat.customVariables":function(t){void 0===t&&(t=[]),Kk(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=Cw(e.getState())),n(t,i)},"livechat.button.color":function(n,i){void 0===i&&(i=Cw(e.getState())),t(Tx)({id:i,entity:{color:n}})},"livechat.prechat.isSkip":t(hx),"livechat.prechat.fields":uS(e,mp),"livechat.postChat.fields":uS(e,bp),"livechat.offlineMessage.fields":uS(e,vp),"livechat.sideWindow.isVisible":t(Wy),"livechat.sideWindow.tabs":t(Ny),"livechat.chat.maxMessageLength":t(Mx),"livechat.sso.artifact":t(xx),"livechat.chatWindow.color":function(n,i){void 0===i&&(i=Cw(e.getState())),t(Ox)({id:i,entity:{mainColor:n}})},"livechat.sso.jwt":t(Cx)}}(e)),D.do=bS(function(e){var t=Jk(e),n=t(dx),i=t(ux),o=t(lx),a=t(tk),r=function(e){return t(te(Ok,e))},s=function(t){return function(n){var i=mv(e.getState());i&&n===i.id&&t(Cw(e.getState()))}},c=t(ex,ax);function d(t,n,i){return function(){return new Promise((function(o,a){var r=e.getState();if(Kh(r)!==gp||Qf(r))return a("not_chatting");if(!C||!1===ig(r))return a("webrtc_not_supported");var s=nf(r);return t(r,s)?ag(r)?a("audio_video_chatting"):wg(r)?a("frequency_limited"):(e.dispatch(i()),o()):a(n)}))}}var l,u=d(om,"audio_not_enabled",cC),p=d(am,"video_not_enabled",dC);return{"livechat.button.click":function(t){return void 0===t&&(t=Cw(e.getState())),c(t)},"livechat.invitation.accept":s(t($_,ax)),"livechat.invitation.refuse":s(t(tx)),"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(mp),"livechat.postChat.field.focus":r(bp),"livechat.offlineMessage.field.focus":r(vp),"livechat.prechat.submit":pS(mp,e),"livechat.postChat.submit":pS(bp,e),"livechat.offlineMessage.submit":pS(vp,e),"livechat.sideWindow.tabs.click":t(Vy),"livechat.chat.audio.request":u,"livechat.chat.video.request":p,"livechat.pageVisit":t(ck),"livechat.invitation.show":(l=t(Ik),function(t){var n=e.getState(),i=F_(n);Rf(n)||Aw(n)===$l||Aw(n)===eu||i===su||i===ru||i===pu||Ef(n)||l(t)}),"livechat.chat.visitor.sendText":function(t){Wf(e.getState())&&e.dispatch(UC(t))}}}(e)),D.render=function(e,t){hS[e]=t},D.on=mS;var t=Jk(e),n=function(){};Xk("ban",t(W_)),Xk("end_chat",t(tk)),Xk("setIfSkipPrechat",t(hx));var i=te(mS,"livechat.invitation.display");Xk("onBeforeImageInvitationDisplay",i),Xk("onAfterImageInvitationDisplay",i);var o=te(mS,"livechat.chat.display");Xk("onChatWindowLoadBegin",o),Xk("onChatWindowLoaded",o),Xk("setIfHideChatWindowLoadingAnimation",n),Xk("onChatWindowStatusChanged",n);var a=t(ex,ax);Xk("open_chat_window",(function(t,n){return void 0===n&&(n=Cw(e.getState())),a(n)})),Xk("set_custom_variables",(function(t){return void 0===t&&(t=[]),Kk(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(!dh(r)){var t=e.getState();dh(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=Yw(t),i=Kw(t),o=ee(),a=Cw(t),r=Tm(t,a);o.width===n&&o.height===i||e.dispatch(fx(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(mx()):e.dispatch(wx())},o=ce((function(){e.dispatch(dk())}),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 yW=10,CW=[];function kW(e){CW.length>=yW&&CW.shift(),CW.push(e)}window.getStoredErrors=function(){return CW},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