Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line, WeChat, Email, SMS, Call Button – Chaty - Version 2.9.2

Version Description

WhatsApp mobile bug fixed

Download this release

Release Info

Developer galdub
Plugin Icon wp plugin Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line, WeChat, Email, SMS, Call Button – Chaty
Version 2.9.2
Comparing to
See all releases

Code changes from version 2.9.1 to 2.9.2

cht-icons.php CHANGED
@@ -7,7 +7,7 @@
7
  Author URI: https://premio.io/downloads/chaty/
8
  Text Domain: chaty
9
  Domain Path: /languages
10
- Version: 2.9.1
11
  License: GPL2
12
  */
13
 
@@ -27,7 +27,7 @@ define('CHT_INC', CHT_DIR . '/includes');
27
  define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
28
  define('CHT_PLUGIN_URL', plugin_dir_url(__FILE__));
29
  define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
30
- define('CHT_VERSION', "2.9.1");
31
 
32
  if (!function_exists('wp_doing_ajax')) {
33
  function wp_doing_ajax()
7
  Author URI: https://premio.io/downloads/chaty/
8
  Text Domain: chaty
9
  Domain Path: /languages
10
+ Version: 2.9.2
11
  License: GPL2
12
  */
13
 
27
  define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
28
  define('CHT_PLUGIN_URL', plugin_dir_url(__FILE__));
29
  define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
30
+ define('CHT_VERSION', "2.9.2");
31
 
32
  if (!function_exists('wp_doing_ajax')) {
33
  function wp_doing_ajax()
css/chaty-front.css CHANGED
@@ -67,58 +67,58 @@ CSS for tooltip
67
  }
68
 
69
  /* FLOW: UP */
70
- .chaty-tooltip.top:before {
71
  border-bottom-width: 0;
72
  border-top-color: #ffffff;
73
  bottom: calc(100% + 5px);
74
  }
75
- .chaty-tooltip.top:after {
76
  bottom: calc(100% + 10px);
77
  }
78
- .chaty-tooltip.top:before,
79
- .chaty-tooltip.top:after {
80
  left: 50%;
81
  transform: translate(-50%, -0.5em);
82
  }
83
 
84
  /* FLOW: DOWN */
85
- .chaty-tooltip.down:before {
86
  top: 100%;
87
  border-top-width: 0;
88
  border-bottom-color: #fff;
89
  }
90
- .chaty-tooltip.down:after {
91
  top: calc(100% + 5px);
92
  }
93
- .chaty-tooltip.down:before,
94
- .chaty-tooltip.down:after {
95
  left: 50%;
96
  transform: translate(-50%, 0.5em);
97
  }
98
 
99
  /* FLOW: LEFT */
100
- .chaty-tooltip.left:before {
101
  top: 50%;
102
  border-right-width: 0;
103
  border-left-color: #fff;
104
  left: calc(0em - 10px);
105
  transform: translate(-0.5em, -50%);
106
  }
107
- .chaty-tooltip.left:after {
108
  top: 50%;
109
  right: calc(100% + 10px);
110
  transform: translate(-0.5em, -50%);
111
  }
112
 
113
  /* FLOW: RIGHT */
114
- .chaty-tooltip.right:before {
115
  top: 50%;
116
  border-left-width: 0;
117
  border-right-color: #fff;
118
  right: calc(0em - 10px);
119
  transform: translate(0.5em, -50%);
120
  }
121
- .chaty-tooltip.right:after {
122
  top: 50%;
123
  left: calc(100% + 10px);
124
  transform: translate(0.5em, -50%);
@@ -140,17 +140,17 @@ CSS for tooltip
140
  }
141
 
142
  /* FX All The Things */
143
- .chaty-tooltip.top:hover:before,
144
- .chaty-tooltip.top:hover:after,
145
- .chaty-tooltip.down:hover:before,
146
- .chaty-tooltip.down:hover:after {
147
  animation: tooltips-vert 0ms ease-out forwards;
148
  }
149
 
150
- .chaty-tooltip.left:hover:before,
151
- .chaty-tooltip.left:hover:after,
152
- .chaty-tooltip.right:hover:before,
153
- .chaty-tooltip.right:hover:after {
154
  animation: tooltips-horz 0ms ease-out forwards;
155
  }
156
 
@@ -608,10 +608,10 @@ Widget Default CSS
608
  .chaty-outer-forms * {
609
  box-sizing: border-box;
610
  }
611
- .chaty-outer-forms.left {
612
  left: 25px;
613
  }
614
- .chaty-outer-forms.right {
615
  right: 25px;
616
  left: auto;
617
  }
67
  }
68
 
69
  /* FLOW: UP */
70
+ .chaty-tooltip.pos-top:before {
71
  border-bottom-width: 0;
72
  border-top-color: #ffffff;
73
  bottom: calc(100% + 5px);
74
  }
75
+ .chaty-tooltip.pos-top:after {
76
  bottom: calc(100% + 10px);
77
  }
78
+ .chaty-tooltip.pos-top:before,
79
+ .chaty-tooltip.pos-top:after {
80
  left: 50%;
81
  transform: translate(-50%, -0.5em);
82
  }
83
 
84
  /* FLOW: DOWN */
85
+ .chaty-tooltip.pos-down:before {
86
  top: 100%;
87
  border-top-width: 0;
88
  border-bottom-color: #fff;
89
  }
90
+ .chaty-tooltip.pos-down:after {
91
  top: calc(100% + 5px);
92
  }
93
+ .chaty-tooltip.pos-down:before,
94
+ .chaty-tooltip.pos-down:after {
95
  left: 50%;
96
  transform: translate(-50%, 0.5em);
97
  }
98
 
99
  /* FLOW: LEFT */
100
+ .chaty-tooltip.pos-left:before {
101
  top: 50%;
102
  border-right-width: 0;
103
  border-left-color: #fff;
104
  left: calc(0em - 10px);
105
  transform: translate(-0.5em, -50%);
106
  }
107
+ .chaty-tooltip.pos-left:after {
108
  top: 50%;
109
  right: calc(100% + 10px);
110
  transform: translate(-0.5em, -50%);
111
  }
112
 
113
  /* FLOW: RIGHT */
114
+ .chaty-tooltip.pos-right:before {
115
  top: 50%;
116
  border-left-width: 0;
117
  border-right-color: #fff;
118
  right: calc(0em - 10px);
119
  transform: translate(0.5em, -50%);
120
  }
121
+ .chaty-tooltip.pos-right:after {
122
  top: 50%;
123
  left: calc(100% + 10px);
124
  transform: translate(0.5em, -50%);
140
  }
141
 
142
  /* FX All The Things */
143
+ .chaty-tooltip.pos-top:hover:before,
144
+ .chaty-tooltip.pos-top:hover:after,
145
+ .chaty-tooltip.pos-down:hover:before,
146
+ .chaty-tooltip.pos-down:hover:after {
147
  animation: tooltips-vert 0ms ease-out forwards;
148
  }
149
 
150
+ .chaty-tooltip.pos-left:hover:before,
151
+ .chaty-tooltip.pos-left:hover:after,
152
+ .chaty-tooltip.pos-right:hover:before,
153
+ .chaty-tooltip.pos-right:hover:after {
154
  animation: tooltips-horz 0ms ease-out forwards;
155
  }
156
 
608
  .chaty-outer-forms * {
609
  box-sizing: border-box;
610
  }
611
+ .chaty-outer-forms.pos-left {
612
  left: 25px;
613
  }
614
+ .chaty-outer-forms.pos-right {
615
  right: 25px;
616
  left: auto;
617
  }
css/chaty-front.min.css CHANGED
@@ -1 +1 @@
1
- .chaty-tooltip{position:relative}.chaty-tooltip:after,.chaty-tooltip:before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}.chaty-tooltip:before{content:"";border:5px solid transparent;z-index:1001}.chaty-tooltip:after{content:attr(data-hover);text-align:center;min-width:1em;max-width:21em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:5px 15px;border-radius:10px;background:#fff;color:#333;z-index:1000;box-shadow:0 1.93465px 7.73859px rgb(0 0 0 / 15%);font-size:17px;line-height:21px}.chaty-tooltip.active:after,.chaty-tooltip.active:before,.chaty-tooltip:hover:after,.chaty-tooltip:hover:before{display:block}.chaty-tooltip.active:after,.chaty-tooltip.active:before{animation:tooltips-horz 0s ease-out forwards}[data-hover=""]:after,[data-hover=""]:before{display:none!important}.chaty-tooltip.top:before{border-bottom-width:0;border-top-color:#fff;bottom:calc(100% + 5px)}.chaty-tooltip.top:after{bottom:calc(100% + 10px)}.chaty-tooltip.top:after,.chaty-tooltip.top:before{left:50%;transform:translate(-50%,-.5em)}.chaty-tooltip.down:before{top:100%;border-top-width:0;border-bottom-color:#fff}.chaty-tooltip.down:after{top:calc(100% + 5px)}.chaty-tooltip.down:after,.chaty-tooltip.down:before{left:50%;transform:translate(-50%,.5em)}.chaty-tooltip.left:before{top:50%;border-right-width:0;border-left-color:#fff;left:calc(0em - 10px);transform:translate(-.5em,-50%)}.chaty-tooltip.left:after{top:50%;right:calc(100% + 10px);transform:translate(-.5em,-50%)}.chaty-tooltip.right:before{top:50%;border-left-width:0;border-right-color:#fff;right:calc(0em - 10px);transform:translate(.5em,-50%)}.chaty-tooltip.right:after{top:50%;left:calc(100% + 10px);transform:translate(.5em,-50%)}@keyframes tooltips-vert{to{opacity:1;transform:translate(-50%,0)}}@keyframes tooltips-horz{to{opacity:1;transform:translate(0,-50%)}}.chaty-tooltip.down:hover:after,.chaty-tooltip.down:hover:before,.chaty-tooltip.top:hover:after,.chaty-tooltip.top:hover:before{animation:tooltips-vert 0s ease-out forwards}.chaty-tooltip.left:hover:after,.chaty-tooltip.left:hover:before,.chaty-tooltip.right:hover:after,.chaty-tooltip.right:hover:before{animation:tooltips-horz 0s ease-out forwards}@-webkit-keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}@keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}@-webkit-keyframes chaty-animation-blink{0%{opacity:1}20%{opacity:.5}100%{opacity:1}}@keyframes chaty-animation-blink{0%{opacity:1}20%{opacity:.5}100%{opacity:1}}@-webkit-keyframes chaty-animation-pulse{0%{transform:scale(1);box-shadow:0 2px 2px rgba(0,0,0,.2);border-radius:50%}100%{transform:scale(1.1);box-shadow:0 2px 2px rgba(0,0,0,.2);border-radius:45%}}@keyframes chaty-animation-pulse{0%{transform:scale(1);border-radius:50%}100%{transform:scale(1.1);border-radius:45%}}.chaty-animation-shockwave:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;-webkit-animation:chaty-animation-shockwave 2s 1.3s ease-out infinite;animation:chaty-animation-shockwave 2s 1.3s ease-out infinite}.chaty-animation-shockwave:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;-webkit-animation:chaty-animation-shockwave 2s .8s ease-out infinite;animation:chaty-animation-shockwave 2s .8s ease-out infinite}.chaty-animation-blink{-webkit-animation:chaty-animation-blink 1.33s ease-out infinite;animation:chaty-animation-blink 1.33s ease-out infinite}.chaty-animation-pulse,.chaty-animation-pulse-icon{-webkit-animation:chaty-animation-pulse .4s ease infinite alternate;animation:chaty-animation-pulse .4s ease infinite alternate}.chaty-animation-sheen{position:relative;overflow:hidden}.chaty-animation-sheen:after{animation:chaty-animation-sheen 5s infinite;content:'';position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(to bottom,transparent,rgba(255,255,255,.5) 50%,transparent);transform:rotateZ(60deg) translate(0,5em)}@keyframes chaty-animation-sheen{100%,20%{transform:rotateZ(60deg) translate(0,-80px)}}.chaty-animation-fade{animation:chaty-animation-fade 5s infinite}.chaty-animation-spin{animation:chaty-animation-spin 5s infinite cubic-bezier(.56,-.35,.22,1.5)}@keyframes chaty-animation-fade{5%{opacity:.25}10%{opacity:1}15%{opacity:.25}100%,20%{opacity:1}}@keyframes chaty-animation-spin{10%{transform:rotateZ(-20deg);animation-timing-function:ease}100%,20%{transform:rotateZ(360deg)}}.chaty-animation-bounce,.chaty-animation-jump{animation:chaty-animation-bounce 5s infinite cubic-bezier(.84,-.54,.31,1.19)}@keyframes chaty-animation-bounce{0%{transform:none}10%{transform:translateY(-1em)}100%,20%{transform:none}}@keyframes chaty-animation-waggle{0%{transform:none}10%{transform:rotateZ(-20deg) scale(1.2)}13%{transform:rotateZ(25deg) scale(1.2)}15%{transform:rotateZ(-15deg) scale(1.2)}17%{transform:rotateZ(15deg) scale(1.2)}20%{transform:rotateZ(-12deg) scale(1.2)}22%{transform:rotateZ(0) scale(1.2)}100%,24%{transform:rotateZ(0) scale(1)}}.chaty-animation-waggle{animation:chaty-animation-waggle 5s infinite}.chaty{display:none;z-index:99999}.chaty.active{display:block!important}.chaty *{margin:0;padding:0;box-sizing:border-box}.chaty .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;border:0!important}.chaty a,.chaty a:focus,.chaty a:hover,.chaty button{border:none;text-decoration:none;outline:0;box-shadow:none}.chaty-widget{position:fixed;bottom:25px;right:25px;z-index:10001}.chaty-widget.left-position{left:25px;right:auto}.chaty-channels{position:relative}.chaty-channel{position:relative}.chaty-channel-list{display:flex;width:62px;height:124px;position:absolute;bottom:-4px;right:0;flex-direction:column;align-items:flex-start;pointer-events:none}.chaty-widget.left-position .chaty-channel-list{left:0;right:auto}.chaty-widget.chaty-open .chaty-channel-list{pointer-events:auto}.chaty-channel-list .chaty-channel,.chaty-channel.single .chaty-svg{display:inline-block;width:54px;height:54px;border-radius:50%;margin:4px;cursor:pointer;box-shadow:0 3px 6px rgb(0 0 0 / 25%)}.chaty-channel-list .chaty-channel{position:absolute;bottom:0;opacity:0;transition:all .5s;-webkit-transition:all .5s}.chaty-channel.single .chaty-svg{margin:0}.chaty-widget.chaty-open .chaty-channel-list .chaty-channel{opacity:1}.chaty-channel a,.chaty-channel button,.chaty-svg{display:block;width:54px;height:54px;border-radius:50%;cursor:pointer;position:relative;outline:0}.chaty-channel button{background:0 0;border-radius:50%}.chaty-channel a .chaty-custom-icon,.chaty-channel button .chaty-custom-icon,.chaty-svg .chaty-custom-icon{width:54px;height:54px;border-radius:50%;text-align:center;font-size:27px;line-height:54px;color:#fff}.chaty-channel a:focus,.chaty-channel button:focus{outline:0}.chaty-channel svg{width:100%;height:100%}.chaty-channel img{width:54px;height:54px;object-fit:cover;border-radius:50%}.chaty-i-trigger .chaty-channel{position:absolute;bottom:0;right:4px;transition:all .5s;border-radius:50%;cursor:pointer}.chaty-cta-button{transition:all .5s;box-shadow:0 3px 6px rgb(0 0 0 / 25%);border-radius:50%}.chaty-widget.left-position .chaty-i-trigger .chaty-channel{left:4px;right:auto}.chaty-widget .chaty-cta-main .chaty-cta-button{z-index:1099;opacity:1;position:relative}.chaty-widget.chaty-open .chaty-cta-main .chaty-cta-button{z-index:999;opacity:0;transform:rotate(540deg);visibility:hidden}.chaty-widget .chaty-i-trigger .chaty-cta-close{pointer-events:none}.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-close{pointer-events:auto;z-index:101}.chaty-widget .chaty-i-trigger .chaty-cta-close .chaty-cta-button{z-index:999;opacity:0;visibility:hidden}.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-close .chaty-cta-button{z-index:1099;opacity:1;transform:rotate(180deg);visibility:visible}.chaty-widget .chaty-i-trigger .chaty-cta-close.chaty-tooltip.chaty-tooltip:hover:after,.chaty-widget .chaty-i-trigger .chaty-cta-close.chaty-tooltip:hover:before,.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-main.chaty-tooltip:after,.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-main.chaty-tooltip:before{display:none!important}.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-close.chaty-tooltip.chaty-tooltip:hover:after,.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-close.chaty-tooltip:hover:before{display:block!important}.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-main.chaty-tooltip{z-index:91}.chaty-widget .ch-pending-msg{position:absolute;right:-4px;top:-4px;width:16px;height:16px;text-align:center;background:red;color:#fff;font-size:10px;line-height:16px;border-radius:50%;z-index:1101}.chaty-widget.left-position.hor-mode .chaty-channel-list{width:136px;height:62px;left:0;bottom:0}.chaty-widget.right-position.hor-mode .chaty-channel-list{width:136px;height:62px;right:0;left:auto;bottom:0}.chaty-widget.hor-mode .chaty-channel-list .chaty-channel{margin-top:0;margin-bottom:0}.chaty-widget.hor-mode.left-position .chaty-channel-list .chaty-channel{left:0}.chaty-widget.hor-mode.right-position .chaty-channel-list .chaty-channel{right:0;left:auto}.chaty-outer-forms{vertical-align:bottom;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;position:fixed!important;bottom:-25px;left:25px;padding:0;width:320px;max-width:90%;-moz-transition:all .5s linear;box-shadow:rgba(0,0,0,.16) 0 5px 40px;-webkit-box-shadow:rgba(0,0,0,.16) 0 5px 40px;-moz-box-shadow:rgba(0,0,0,.16) 0 5px 40px;opacity:0;visibility:hidden;pointer-events:none;z-index:-1;transition:all .5s;-webkit-transition:all .5s;animation-delay:-2s;-webkit-animation-delay:-2s}.chaty-outer-forms *{box-sizing:border-box}.chaty-outer-forms.left{left:25px}.chaty-outer-forms.right{right:25px;left:auto}.chaty-outer-forms.active{-webkit-transform:translateY(-93px);transform:translateY(-93px);opacity:1;z-index:10001;visibility:visible;bottom:0;pointer-events:auto}.chaty-whatsapp-body{background:#e6ddd4;padding:20px 20px 20px 10px;position:relative;z-index:2;height:260px;-webkit-border-top-left-radius:6px;-webkit-border-top-right-radius:6px;-moz-border-radius-topleft:6px;-moz-border-radius-topright:6px;border-top-left-radius:6px;border-top-right-radius:6px}.chaty-form-body{background:#fff;position:relative;z-index:99999;min-height:75px;border-radius:10px}.chaty-form-body form{margin:0;padding:0}.qr-code-image{padding:10px;text-align:center}.qr-code-image img{max-width:100%;max-height:360px;margin:0 auto}.chaty-whatsapp-body:before{display:block;position:absolute;content:"";left:0;top:0;height:100%;width:100%;z-index:0;opacity:.08;background-image:url("../images/whatsapp.png")}.chaty-whatsapp-message{padding:7px 14px 6px;background-color:#fff;border-radius:0 8px 8px;position:relative;transform-origin:center top;z-index:2;box-shadow:rgba(0,0,0,.13) 0 1px .5px;margin-top:4px;margin-left:15px;max-width:calc(100% - 40px);font-size:14px;font-family:Segoe UI,Helvetica Neue,Helvetica,Lucida Grande,Arial,Ubuntu,Cantarell,Fira Sans,sans-serif}.chaty-whatsapp-message:before{position:absolute;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAmCAMAAADp2asXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACQUExURUxpccPDw9ra2m9vbwAAAAAAADExMf///wAAABoaGk9PT7q6uqurqwsLCycnJz4+PtDQ0JycnIyMjPf3915eXvz8/E9PT/39/RMTE4CAgAAAAJqamv////////r6+u/v7yUlJeXl5f///5ycnOXl5XNzc/Hx8f///xUVFf///+zs7P///+bm5gAAAM7Ozv///2fVensAAAAvdFJOUwCow1cBCCnqAhNAnY0WIDW2f2/hSeo99g1lBYT87vDXG8/6d8oL4sgM5szrkgl660OiZwAAAHRJREFUKM/ty7cSggAABNFVUQFzwizmjPz/39k4YuFWtm55bw7eHR6ny63+alnswT3/rIDzUSC7CrAziPYCJCsB+gbVkgDtVIDh+DsE9OTBpCtAbSBAZSEQNgWIygJ0RgJMDWYNAdYbAeKtAHODlkHIv997AkLqIVOXVU84AAAAAElFTkSuQmCC");background-position:50% 50%;background-repeat:no-repeat;background-size:contain;content:"";top:0;left:-12px;width:12px;height:19px}.chaty-whatsapp-message p{margin:0;padding:0}.chaty-whatsapp-footer{position:relative;padding:12px 15px;background:#f0f0f0;-webkit-border-bottom-right-radius:6px;-webkit-border-bottom-left-radius:6px;-moz-border-radius-bottomright:6px;-moz-border-radius-bottomleft:6px;border-bottom-right-radius:6px;border-bottom-left-radius:6px}.whatsapp-chaty-form{display:flex}.chaty-whatsapp-button button,.chaty-whatsapp-button button:focus,.chaty-whatsapp-button button:hover{line-height:48px;text-align:center;float:right;height:48px;width:48px;padding:8px 10px 8px 15px;background:#25d366!important;border-radius:24px;outline:0;box-shadow:none;border:none;cursor:pointer}.chaty-whatsapp-data{display:flex;flex:1}.chaty-whatsapp-field{padding-right:12px;flex:1}.chaty-whatsapp-button{flex:0 0 48px}.chaty-whatsapp-button svg{width:100%;height:100%}.chaty-whatsapp-field input[type=text]{height:48px!important;line-height:32px;padding:0 10px 0 15px;font-size:16px;resize:none;width:100%;border:none!important;border-radius:24px;outline:0;font-family:Segoe UI,Helvetica Neue,Helvetica,Lucida Grande,Arial,Ubuntu,Cantarell,Fira Sans,sans-serif;box-shadow:none!important;background:#fff!important}.chaty-whatsapp-field input[type=text]:focus{outline:0;border:none}.chaty-whatsapp-button button:focus,.chaty-whatsapp-button button:hover{background:#22bf5b!important}.close-chaty-form{position:absolute;right:5px;top:5px;background:#30534b;width:22px;height:22px;border-radius:15px;padding:3px;cursor:pointer;transition:all .4s;-webkit-transition:all .4s;-moz-transition:all .4s}.close-chaty-form:hover{transform:rotate(180deg);-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg)}.chaty-close-button{position:relative;width:16px;height:16px;transition:all .4s;cursor:pointer}.chaty-close-button:after,.chaty-close-button:before{content:"";position:absolute;width:12px;height:2px;background-color:#fff;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.chaty-close-button:after{transform:rotate(-45deg)}.chaty-channel button.open-chaty-channel{display:none}.chaty.form-open .chaty-channel button.open-chaty-channel{display:block}.chaty.form-open .chaty-channel button.open-chaty{display:none}.chaty.form-open .chaty-i-trigger .chaty-tooltip:after,.chaty.form-open .chaty-i-trigger .chaty-tooltip:before{display:none}.chaty-form-body{position:relative}.chaty-widget.cssas-no-close-button.default-open .chaty-i-trigger{display:none!important}.chaty.form-open .chaty-widget.cssas-no-close-button.default-open .chaty-i-trigger{display:block!important}.chaty-agent-data{font-size:16px;font-family:Segoe UI,Helvetica Neue,Helvetica,Lucida Grande,Arial,Ubuntu,Cantarell,Fira Sans,sans-serif}.chaty-agent-header{font-size:18px;padding:20px 15px;background:#22bf5b;color:#fff;-webkit-border-top-left-radius:10px;-webkit-border-top-right-radius:10px;-moz-border-radius-topleft:10px;-moz-border-radius-topright:10px;border-top-left-radius:10px;border-top-right-radius:10px}.chaty-agent-data .close-chaty-form{right:10px;top:12px}.chaty-agent-data .chaty-agent{display:flex;align-items:center;padding:15px 15px}.chaty-agent-data .chaty-agent a{color:#49687e;font-size:16px;text-decoration:none;display:flex;width:100%;align-items:center}.chaty-agent-data .chaty-agent+.chaty-agent{border-top:solid 2px #f6f8f9}.chaty-agent-img{width:36px;height:36px;object-fit:cover;border-radius:50%}.chaty-agent-icon{width:48px;height:48px;margin:0 15px 0 0}.chaty-agent-data .chaty-custom-icon{width:48px;height:48px;text-align:center;display:block;line-height:48px;background:silver;border-radius:50%;color:#fff;font-size:28px}.chaty-close-agent-list{position:absolute;right:15px;top:10px;width:16px;height:16px;cursor:pointer;z-index:10}.chaty-agent-icon svg{width:100%;height:100%}.chaty-agent-icon img{width:48px;height:48px;object-fit:cover}.chaty-close-agent-list svg{fill:#ffffff}.agent-sub-header{font-size:14px;line-height:20px}.agent-main-header{font-size:20px;line-height:32px;font-weight:700;position:relative}.chaty-agent-header{position:relative}.chaty-agent-header:before{content:"";background:url(../images/header-top.png) no-repeat 0 0;width:215px;height:41px;position:absolute;top:0;left:0;z-index:1}.chaty-agent-header:after{content:"";background:url(../images/header-bottom.png) no-repeat 0 0;width:44px;height:41px;position:absolute;bottom:0;right:0;z-index:1}.chaty-custom-channel-icon{display:block;border-radius:50%;color:#fff;text-align:center;line-height:54px}.chaty-contact-form-title{padding:10px 15px;text-align:left;background:#fff;font-size:18px;border-bottom:solid 1px #acacac}.chaty-contact-inputs{padding:15px 15px}.chaty-contact-input{display:flex}.chaty-contact-input+.chaty-contact-input{margin:12px 0 0 0}.chaty-contact-input input[type=email].chaty-input-field,.chaty-contact-input input[type=text].chaty-input-field{width:100%;height:36px;line-height:36px;font-size:16px;padding:0 10px 0 10px;border:solid 1px #ccc;border-radius:4px;margin:0;outline:0;color:#28303d;background:#fff}.chaty-contact-input input[type=email].chaty-input-field:focus,.chaty-contact-input input[type=text].chaty-input-field:focus{outline:0;box-shadow:none;border-color:#898989}.chaty-contact-input textarea.chaty-textarea-field{width:100%;height:100px;line-height:20px;font-size:16px;padding:10px;border:solid 1px #ccc;border-radius:4px;margin:0;outline:0;color:#28303d;background:#fff}.chaty-contact-input textarea.chaty-textarea-field:focus{outline:0;box-shadow:none;border-color:#898989}.chaty-contact-form-box .close-chaty-form{right:9px;top:9px}.chaty-contact-form-box button.chaty-submit-button[type=submit],button#chaty-submit-button-0{border:none;border-radius:4px;color:#fff;background:#a886cd;width:100%;height:36px;line-height:36px;font-size:18px;padding:0;margin:0;cursor:pointer}.chaty-contact-input input.chaty-input-field.has-chaty-error,.chaty-contact-input textarea.chaty-textarea-field.has-chaty-error{border:solid 1px #d20000}.chaty-contact-form-box button.chaty-submit-button{outline:0}.chaty-contact-form-button{padding:15px 0 0 0}.chaty-ajax-error-message,.chaty-ajax-success-message{color:#00a700;padding:10px 0 0;text-align:center;font-size:16px}.chaty-ajax-error-message{color:#da0000}.chaty-widget.has-single .chaty-i-trigger .Phone-channel:after,.chaty-widget.has-single .chaty-i-trigger .Phone-channel:before{pointer-events:auto}.chaty-exit-intent{position:fixed;z-index:-1}.chaty-exit-intent:before{display:block;position:fixed;top:0;left:0;content:'';width:100vw;height:100vh;background:rgba(0,0,0,.8);visibility:hidden;z-index:100;transition:all .5s ease-in-out;-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out}.chaty .chaty-widget.left-position .chaty-exit-intent:before{clip-path:circle(15px at 60px calc(100% - 60px))}.chaty .chaty-widget.right-position .chaty-exit-intent:before{clip-path:circle(15px at calc(100% - 60px) calc(100% - 60px))}.chaty .chaty-widget .chaty-exit-intent.animate:before{visibility:visible;clip-path:circle(100%)}.chaty-widget.chaty-no-close-button:not(.has-single) .chaty-i-trigger:not(.single-channel){display:none}.chaty.form-open .chaty-no-close-button.has-single .chaty-i-trigger{display:block}.chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel .chaty-tooltip:after,.chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel .chaty-tooltip:before{pointer-events:inherit}
1
+ .chaty-tooltip{position:relative}.chaty-tooltip:after,.chaty-tooltip:before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}.chaty-tooltip:before{content:"";border:5px solid transparent;z-index:1001}.chaty-tooltip:after{content:attr(data-hover);text-align:center;min-width:1em;max-width:21em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:5px 15px;border-radius:10px;background:#fff;color:#333;z-index:1000;box-shadow:0 1.93465px 7.73859px rgb(0 0 0 / 15%);font-size:17px;line-height:21px}.chaty-tooltip.active:after,.chaty-tooltip.active:before,.chaty-tooltip:hover:after,.chaty-tooltip:hover:before{display:block}.chaty-tooltip.active:after,.chaty-tooltip.active:before{animation:tooltips-horz 0s ease-out forwards}[data-hover=""]:after,[data-hover=""]:before{display:none!important}.chaty-tooltip.pos-top:before{border-bottom-width:0;border-top-color:#fff;bottom:calc(100% + 5px)}.chaty-tooltip.pos-top:after{bottom:calc(100% + 10px)}.chaty-tooltip.pos-top:after,.chaty-tooltip.pos-top:before{left:50%;transform:translate(-50%,-.5em)}.chaty-tooltip.pos-down:before{top:100%;border-top-width:0;border-bottom-color:#fff}.chaty-tooltip.pos-down:after{top:calc(100% + 5px)}.chaty-tooltip.pos-down:after,.chaty-tooltip.pos-down:before{left:50%;transform:translate(-50%,.5em)}.chaty-tooltip.pos-left:before{top:50%;border-right-width:0;border-left-color:#fff;left:calc(0em - 10px);transform:translate(-.5em,-50%)}.chaty-tooltip.pos-left:after{top:50%;right:calc(100% + 10px);transform:translate(-.5em,-50%)}.chaty-tooltip.pos-right:before{top:50%;border-left-width:0;border-right-color:#fff;right:calc(0em - 10px);transform:translate(.5em,-50%)}.chaty-tooltip.pos-right:after{top:50%;left:calc(100% + 10px);transform:translate(.5em,-50%)}@keyframes tooltips-vert{to{opacity:1;transform:translate(-50%,0)}}@keyframes tooltips-horz{to{opacity:1;transform:translate(0,-50%)}}.chaty-tooltip.pos-down:hover:after,.chaty-tooltip.pos-down:hover:before,.chaty-tooltip.pos-top:hover:after,.chaty-tooltip.pos-top:hover:before{animation:tooltips-vert 0s ease-out forwards}.chaty-tooltip.pos-left:hover:after,.chaty-tooltip.pos-left:hover:before,.chaty-tooltip.pos-right:hover:after,.chaty-tooltip.pos-right:hover:before{animation:tooltips-horz 0s ease-out forwards}@-webkit-keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}@keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}@-webkit-keyframes chaty-animation-blink{0%{opacity:1}20%{opacity:.5}100%{opacity:1}}@keyframes chaty-animation-blink{0%{opacity:1}20%{opacity:.5}100%{opacity:1}}@-webkit-keyframes chaty-animation-pulse{0%{transform:scale(1);box-shadow:0 2px 2px rgba(0,0,0,.2);border-radius:50%}100%{transform:scale(1.1);box-shadow:0 2px 2px rgba(0,0,0,.2);border-radius:45%}}@keyframes chaty-animation-pulse{0%{transform:scale(1);border-radius:50%}100%{transform:scale(1.1);border-radius:45%}}.chaty-animation-shockwave:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;-webkit-animation:chaty-animation-shockwave 2s 1.3s ease-out infinite;animation:chaty-animation-shockwave 2s 1.3s ease-out infinite}.chaty-animation-shockwave:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;-webkit-animation:chaty-animation-shockwave 2s .8s ease-out infinite;animation:chaty-animation-shockwave 2s .8s ease-out infinite}.chaty-animation-blink{-webkit-animation:chaty-animation-blink 1.33s ease-out infinite;animation:chaty-animation-blink 1.33s ease-out infinite}.chaty-animation-pulse,.chaty-animation-pulse-icon{-webkit-animation:chaty-animation-pulse .4s ease infinite alternate;animation:chaty-animation-pulse .4s ease infinite alternate}.chaty-animation-sheen{position:relative;overflow:hidden}.chaty-animation-sheen:after{animation:chaty-animation-sheen 5s infinite;content:'';position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(to bottom,transparent,rgba(255,255,255,.5) 50%,transparent);transform:rotateZ(60deg) translate(0,5em)}@keyframes chaty-animation-sheen{100%,20%{transform:rotateZ(60deg) translate(0,-80px)}}.chaty-animation-fade{animation:chaty-animation-fade 5s infinite}.chaty-animation-spin{animation:chaty-animation-spin 5s infinite cubic-bezier(.56,-.35,.22,1.5)}@keyframes chaty-animation-fade{5%{opacity:.25}10%{opacity:1}15%{opacity:.25}100%,20%{opacity:1}}@keyframes chaty-animation-spin{10%{transform:rotateZ(-20deg);animation-timing-function:ease}100%,20%{transform:rotateZ(360deg)}}.chaty-animation-bounce,.chaty-animation-jump{animation:chaty-animation-bounce 5s infinite cubic-bezier(.84,-.54,.31,1.19)}@keyframes chaty-animation-bounce{0%{transform:none}10%{transform:translateY(-1em)}100%,20%{transform:none}}@keyframes chaty-animation-waggle{0%{transform:none}10%{transform:rotateZ(-20deg) scale(1.2)}13%{transform:rotateZ(25deg) scale(1.2)}15%{transform:rotateZ(-15deg) scale(1.2)}17%{transform:rotateZ(15deg) scale(1.2)}20%{transform:rotateZ(-12deg) scale(1.2)}22%{transform:rotateZ(0) scale(1.2)}100%,24%{transform:rotateZ(0) scale(1)}}.chaty-animation-waggle{animation:chaty-animation-waggle 5s infinite}.chaty{display:none;z-index:99999}.chaty.active{display:block!important}.chaty *{margin:0;padding:0;box-sizing:border-box}.chaty .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;border:0!important}.chaty a,.chaty a:focus,.chaty a:hover,.chaty button{border:none;text-decoration:none;outline:0;box-shadow:none}.chaty-widget{position:fixed;bottom:25px;right:25px;z-index:10001}.chaty-widget.left-position{left:25px;right:auto}.chaty-channels{position:relative}.chaty-channel{position:relative}.chaty-channel-list{display:flex;width:62px;height:124px;position:absolute;bottom:-4px;right:0;flex-direction:column;align-items:flex-start;pointer-events:none}.chaty-widget.left-position .chaty-channel-list{left:0;right:auto}.chaty-widget.chaty-open .chaty-channel-list{pointer-events:auto}.chaty-channel-list .chaty-channel,.chaty-channel.single .chaty-svg{display:inline-block;width:54px;height:54px;border-radius:50%;margin:4px;cursor:pointer;box-shadow:0 3px 6px rgb(0 0 0 / 25%)}.chaty-channel-list .chaty-channel{position:absolute;bottom:0;opacity:0;transition:all .5s;-webkit-transition:all .5s}.chaty-channel.single .chaty-svg{margin:0}.chaty-widget.chaty-open .chaty-channel-list .chaty-channel{opacity:1}.chaty-channel a,.chaty-channel button,.chaty-svg{display:block;width:54px;height:54px;border-radius:50%;cursor:pointer;position:relative;outline:0}.chaty-channel button{background:0 0;border-radius:50%}.chaty-channel a .chaty-custom-icon,.chaty-channel button .chaty-custom-icon,.chaty-svg .chaty-custom-icon{width:54px;height:54px;border-radius:50%;text-align:center;font-size:27px;line-height:54px;color:#fff}.chaty-channel a:focus,.chaty-channel button:focus{outline:0}.chaty-channel svg{width:100%;height:100%}.chaty-channel img{width:54px;height:54px;object-fit:cover;border-radius:50%}.chaty-i-trigger .chaty-channel{position:absolute;bottom:0;right:4px;transition:all .5s;border-radius:50%;cursor:pointer}.chaty-cta-button{transition:all .5s;box-shadow:0 3px 6px rgb(0 0 0 / 25%);border-radius:50%}.chaty-widget.left-position .chaty-i-trigger .chaty-channel{left:4px;right:auto}.chaty-widget .chaty-cta-main .chaty-cta-button{z-index:1099;opacity:1;position:relative}.chaty-widget.chaty-open .chaty-cta-main .chaty-cta-button{z-index:999;opacity:0;transform:rotate(540deg);visibility:hidden}.chaty-widget .chaty-i-trigger .chaty-cta-close{pointer-events:none}.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-close{pointer-events:auto;z-index:101}.chaty-widget .chaty-i-trigger .chaty-cta-close .chaty-cta-button{z-index:999;opacity:0;visibility:hidden}.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-close .chaty-cta-button{z-index:1099;opacity:1;transform:rotate(180deg);visibility:visible}.chaty-widget .chaty-i-trigger .chaty-cta-close.chaty-tooltip.chaty-tooltip:hover:after,.chaty-widget .chaty-i-trigger .chaty-cta-close.chaty-tooltip:hover:before,.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-main.chaty-tooltip:after,.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-main.chaty-tooltip:before{display:none!important}.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-close.chaty-tooltip.chaty-tooltip:hover:after,.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-close.chaty-tooltip:hover:before{display:block!important}.chaty-widget.chaty-open .chaty-i-trigger .chaty-cta-main.chaty-tooltip{z-index:91}.chaty-widget .ch-pending-msg{position:absolute;right:-4px;top:-4px;width:16px;height:16px;text-align:center;background:red;color:#fff;font-size:10px;line-height:16px;border-radius:50%;z-index:1101}.chaty-widget.left-position.hor-mode .chaty-channel-list{width:136px;height:62px;left:0;bottom:0}.chaty-widget.right-position.hor-mode .chaty-channel-list{width:136px;height:62px;right:0;left:auto;bottom:0}.chaty-widget.hor-mode .chaty-channel-list .chaty-channel{margin-top:0;margin-bottom:0}.chaty-widget.hor-mode.left-position .chaty-channel-list .chaty-channel{left:0}.chaty-widget.hor-mode.right-position .chaty-channel-list .chaty-channel{right:0;left:auto}.chaty-outer-forms{vertical-align:bottom;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;position:fixed!important;bottom:-25px;left:25px;padding:0;width:320px;max-width:90%;-moz-transition:all .5s linear;box-shadow:rgba(0,0,0,.16) 0 5px 40px;-webkit-box-shadow:rgba(0,0,0,.16) 0 5px 40px;-moz-box-shadow:rgba(0,0,0,.16) 0 5px 40px;opacity:0;visibility:hidden;pointer-events:none;z-index:-1;transition:all .5s;-webkit-transition:all .5s;animation-delay:-2s;-webkit-animation-delay:-2s}.chaty-outer-forms *{box-sizing:border-box}.chaty-outer-forms.pos-left{left:25px}.chaty-outer-forms.pos-right{right:25px;left:auto}.chaty-outer-forms.active{-webkit-transform:translateY(-93px);transform:translateY(-93px);opacity:1;z-index:10001;visibility:visible;bottom:0;pointer-events:auto}.chaty-whatsapp-body{background:#e6ddd4;padding:20px 20px 20px 10px;position:relative;z-index:2;height:260px;-webkit-border-top-left-radius:6px;-webkit-border-top-right-radius:6px;-moz-border-radius-topleft:6px;-moz-border-radius-topright:6px;border-top-left-radius:6px;border-top-right-radius:6px}.chaty-form-body{background:#fff;position:relative;z-index:99999;min-height:75px;border-radius:10px}.chaty-form-body form{margin:0;padding:0}.qr-code-image{padding:10px;text-align:center}.qr-code-image img{max-width:100%;max-height:360px;margin:0 auto}.chaty-whatsapp-body:before{display:block;position:absolute;content:"";left:0;top:0;height:100%;width:100%;z-index:0;opacity:.08;background-image:url("../images/whatsapp.png")}.chaty-whatsapp-message{padding:7px 14px 6px;background-color:#fff;border-radius:0 8px 8px;position:relative;transform-origin:center top;z-index:2;box-shadow:rgba(0,0,0,.13) 0 1px .5px;margin-top:4px;margin-left:15px;max-width:calc(100% - 40px);font-size:14px;font-family:Segoe UI,Helvetica Neue,Helvetica,Lucida Grande,Arial,Ubuntu,Cantarell,Fira Sans,sans-serif}.chaty-whatsapp-message:before{position:absolute;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAmCAMAAADp2asXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACQUExURUxpccPDw9ra2m9vbwAAAAAAADExMf///wAAABoaGk9PT7q6uqurqwsLCycnJz4+PtDQ0JycnIyMjPf3915eXvz8/E9PT/39/RMTE4CAgAAAAJqamv////////r6+u/v7yUlJeXl5f///5ycnOXl5XNzc/Hx8f///xUVFf///+zs7P///+bm5gAAAM7Ozv///2fVensAAAAvdFJOUwCow1cBCCnqAhNAnY0WIDW2f2/hSeo99g1lBYT87vDXG8/6d8oL4sgM5szrkgl660OiZwAAAHRJREFUKM/ty7cSggAABNFVUQFzwizmjPz/39k4YuFWtm55bw7eHR6ny63+alnswT3/rIDzUSC7CrAziPYCJCsB+gbVkgDtVIDh+DsE9OTBpCtAbSBAZSEQNgWIygJ0RgJMDWYNAdYbAeKtAHODlkHIv997AkLqIVOXVU84AAAAAElFTkSuQmCC");background-position:50% 50%;background-repeat:no-repeat;background-size:contain;content:"";top:0;left:-12px;width:12px;height:19px}.chaty-whatsapp-message p{margin:0;padding:0}.chaty-whatsapp-footer{position:relative;padding:12px 15px;background:#f0f0f0;-webkit-border-bottom-right-radius:6px;-webkit-border-bottom-left-radius:6px;-moz-border-radius-bottomright:6px;-moz-border-radius-bottomleft:6px;border-bottom-right-radius:6px;border-bottom-left-radius:6px}.whatsapp-chaty-form{display:flex}.chaty-whatsapp-button button,.chaty-whatsapp-button button:focus,.chaty-whatsapp-button button:hover{line-height:48px;text-align:center;float:right;height:48px;width:48px;padding:8px 10px 8px 15px;background:#25d366!important;border-radius:24px;outline:0;box-shadow:none;border:none;cursor:pointer}.chaty-whatsapp-data{display:flex;flex:1}.chaty-whatsapp-field{padding-right:12px;flex:1}.chaty-whatsapp-button{flex:0 0 48px}.chaty-whatsapp-button svg{width:100%;height:100%}.chaty-whatsapp-field input[type=text]{height:48px!important;line-height:32px;padding:0 10px 0 15px;font-size:16px;resize:none;width:100%;border:none!important;border-radius:24px;outline:0;font-family:Segoe UI,Helvetica Neue,Helvetica,Lucida Grande,Arial,Ubuntu,Cantarell,Fira Sans,sans-serif;box-shadow:none!important;background:#fff!important}.chaty-whatsapp-field input[type=text]:focus{outline:0;border:none}.chaty-whatsapp-button button:focus,.chaty-whatsapp-button button:hover{background:#22bf5b!important}.close-chaty-form{position:absolute;right:5px;top:5px;background:#30534b;width:22px;height:22px;border-radius:15px;padding:3px;cursor:pointer;transition:all .4s;-webkit-transition:all .4s;-moz-transition:all .4s}.close-chaty-form:hover{transform:rotate(180deg);-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg)}.chaty-close-button{position:relative;width:16px;height:16px;transition:all .4s;cursor:pointer}.chaty-close-button:after,.chaty-close-button:before{content:"";position:absolute;width:12px;height:2px;background-color:#fff;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.chaty-close-button:after{transform:rotate(-45deg)}.chaty-channel button.open-chaty-channel{display:none}.chaty.form-open .chaty-channel button.open-chaty-channel{display:block}.chaty.form-open .chaty-channel button.open-chaty{display:none}.chaty.form-open .chaty-i-trigger .chaty-tooltip:after,.chaty.form-open .chaty-i-trigger .chaty-tooltip:before{display:none}.chaty-form-body{position:relative}.chaty-widget.cssas-no-close-button.default-open .chaty-i-trigger{display:none!important}.chaty.form-open .chaty-widget.cssas-no-close-button.default-open .chaty-i-trigger{display:block!important}.chaty-agent-data{font-size:16px;font-family:Segoe UI,Helvetica Neue,Helvetica,Lucida Grande,Arial,Ubuntu,Cantarell,Fira Sans,sans-serif}.chaty-agent-header{font-size:18px;padding:20px 15px;background:#22bf5b;color:#fff;-webkit-border-top-left-radius:10px;-webkit-border-top-right-radius:10px;-moz-border-radius-topleft:10px;-moz-border-radius-topright:10px;border-top-left-radius:10px;border-top-right-radius:10px}.chaty-agent-data .close-chaty-form{right:10px;top:12px}.chaty-agent-data .chaty-agent{display:flex;align-items:center;padding:15px 15px}.chaty-agent-data .chaty-agent a{color:#49687e;font-size:16px;text-decoration:none;display:flex;width:100%;align-items:center}.chaty-agent-data .chaty-agent+.chaty-agent{border-top:solid 2px #f6f8f9}.chaty-agent-img{width:36px;height:36px;object-fit:cover;border-radius:50%}.chaty-agent-icon{width:48px;height:48px;margin:0 15px 0 0}.chaty-agent-data .chaty-custom-icon{width:48px;height:48px;text-align:center;display:block;line-height:48px;background:silver;border-radius:50%;color:#fff;font-size:28px}.chaty-close-agent-list{position:absolute;right:15px;top:10px;width:16px;height:16px;cursor:pointer;z-index:10}.chaty-agent-icon svg{width:100%;height:100%}.chaty-agent-icon img{width:48px;height:48px;object-fit:cover}.chaty-close-agent-list svg{fill:#ffffff}.agent-sub-header{font-size:14px;line-height:20px}.agent-main-header{font-size:20px;line-height:32px;font-weight:700;position:relative}.chaty-agent-header{position:relative}.chaty-agent-header:before{content:"";background:url(../images/header-top.png) no-repeat 0 0;width:215px;height:41px;position:absolute;top:0;left:0;z-index:1}.chaty-agent-header:after{content:"";background:url(../images/header-bottom.png) no-repeat 0 0;width:44px;height:41px;position:absolute;bottom:0;right:0;z-index:1}.chaty-custom-channel-icon{display:block;border-radius:50%;color:#fff;text-align:center;line-height:54px}.chaty-contact-form-title{padding:10px 15px;text-align:left;background:#fff;font-size:18px;border-bottom:solid 1px #acacac}.chaty-contact-inputs{padding:15px 15px}.chaty-contact-input{display:flex}.chaty-contact-input+.chaty-contact-input{margin:12px 0 0 0}.chaty-contact-input input[type=email].chaty-input-field,.chaty-contact-input input[type=text].chaty-input-field{width:100%;height:36px;line-height:36px;font-size:16px;padding:0 10px 0 10px;border:solid 1px #ccc;border-radius:4px;margin:0;outline:0;color:#28303d;background:#fff}.chaty-contact-input input[type=email].chaty-input-field:focus,.chaty-contact-input input[type=text].chaty-input-field:focus{outline:0;box-shadow:none;border-color:#898989}.chaty-contact-input textarea.chaty-textarea-field{width:100%;height:100px;line-height:20px;font-size:16px;padding:10px;border:solid 1px #ccc;border-radius:4px;margin:0;outline:0;color:#28303d;background:#fff}.chaty-contact-input textarea.chaty-textarea-field:focus{outline:0;box-shadow:none;border-color:#898989}.chaty-contact-form-box .close-chaty-form{right:9px;top:9px}.chaty-contact-form-box button.chaty-submit-button[type=submit],button#chaty-submit-button-0{border:none;border-radius:4px;color:#fff;background:#a886cd;width:100%;height:36px;line-height:36px;font-size:18px;padding:0;margin:0;cursor:pointer}.chaty-contact-input input.chaty-input-field.has-chaty-error,.chaty-contact-input textarea.chaty-textarea-field.has-chaty-error{border:solid 1px #d20000}.chaty-contact-form-box button.chaty-submit-button{outline:0}.chaty-contact-form-button{padding:15px 0 0 0}.chaty-ajax-error-message,.chaty-ajax-success-message{color:#00a700;padding:10px 0 0;text-align:center;font-size:16px}.chaty-ajax-error-message{color:#da0000}.chaty-widget.has-single .chaty-i-trigger .Phone-channel:after,.chaty-widget.has-single .chaty-i-trigger .Phone-channel:before{pointer-events:auto}.chaty-exit-intent{position:fixed;z-index:-1}.chaty-exit-intent:before{display:block;position:fixed;top:0;left:0;content:'';width:100vw;height:100vh;background:rgba(0,0,0,.8);visibility:hidden;z-index:100;transition:all .5s ease-in-out;-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out}.chaty .chaty-widget.left-position .chaty-exit-intent:before{clip-path:circle(15px at 60px calc(100% - 60px))}.chaty .chaty-widget.right-position .chaty-exit-intent:before{clip-path:circle(15px at calc(100% - 60px) calc(100% - 60px))}.chaty .chaty-widget .chaty-exit-intent.animate:before{visibility:visible;clip-path:circle(100%)}.chaty-widget.chaty-no-close-button:not(.has-single) .chaty-i-trigger:not(.single-channel){display:none}.chaty.form-open .chaty-no-close-button.has-single .chaty-i-trigger{display:block}.chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel .chaty-tooltip:after,.chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel .chaty-tooltip:before{pointer-events:inherit}
js/cht-front-script.js CHANGED
@@ -654,7 +654,7 @@
654
  $("#chaty-widget-" + widgetRecord.id + " .chaty-tooltip").removeClass("chaty-tooltip");
655
  $("#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger .chaty-channel").attr("data-hover", ctaText);
656
  $("#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger .chaty-channel a").attr("data-hover", ctaText);
657
- $("#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger .chaty-channel").addClass("active").addClass("chaty-tooltip").addClass(toolTipPosition);
658
  } else {
659
  $("#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger .chaty-channel").removeClass("active");
660
  $("#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger .chaty-channel a").attr("data-hover", ctaText);
@@ -713,7 +713,7 @@
713
  }
714
  }
715
 
716
- var widgetButton = '<div class="chaty-channel chaty-cta-main chaty-tooltip ' + ctaToolTipPosition + ' active" data-widget="' + widgetRecord.id + '" data-hover="' + ctaText + '">' +
717
  '<div class="chaty-cta-button">' +
718
  '<button type="button" class="open-chaty">' +
719
  widgetIcon +
@@ -724,7 +724,7 @@
724
  $("#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger").html(widgetButton);
725
 
726
  /* close button */
727
- var closeHtml = '<div class="chaty-channel chaty-cta-close chaty-tooltip ' + toolTipPosition + '" data-hover="' + widgetRecord.settings.close_text + '">' +
728
  '<div class="chaty-cta-button"><button type="button">' +
729
  '<span class="chaty-svg">' +
730
  '<svg viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="26" cy="26" rx="26" ry="26" fill="' + widgetRecord.settings.widget_color + '"></ellipse><rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)" fill="white"></rect><rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)" fill="white"></rect></svg>' +
@@ -785,7 +785,6 @@
785
  customCSS += "#chaty-widget-" + widgetRecord.id + " .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: " + widgetSize + "px; height: " + widgetSize + "px; line-height: " + widgetSize + "px; display: block; font-size:" + (parseInt(widgetSize / 2)) + "px; }";
786
  customCSS += "#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger .chaty-cta-button {background: " + widgetRecord.settings.widget_color + "; }";
787
 
788
-
789
  if (widgetRecord.settings.icon_view == "vertical") {
790
  //customCSS += "#chaty-widget-"+widgetRecord.id+" .chaty-channel-list {bottom: "+(widgetSize+4)+"px; }";
791
  customCSS += "#chaty-widget-" + widgetRecord.id + " .chaty-channel-list {height: " + (activeChannels * (widgetSize + 8)) + "px; }";
@@ -815,12 +814,12 @@
815
 
816
  if (widgetPosition == "left") {
817
  customCSS += "#chaty-widget-" + widgetRecord.id + " .chaty-widget {left: " + sideSpacing + "px; right: auto;}";
818
- customCSS += ".chaty-outer-forms.left.chaty-form-" + widgetRecord.id + " {left: " + sideSpacing + "px}";
819
- $(".chaty-form-" + widgetRecord.id).addClass("left");
820
  } else {
821
  customCSS += "#chaty-widget-" + widgetRecord.id + " .chaty-widget {right: " + sideSpacing + "px; left:auto;}";
822
- $(".chaty-form-" + widgetRecord.id).addClass("right");
823
- customCSS += ".chaty-outer-forms.right.chaty-form-" + widgetRecord.id + " {right: " + sideSpacing + "px}";
824
  }
825
  $(".chaty-form-" + widgetRecord.id).show();
826
 
@@ -1290,7 +1289,7 @@
1290
  agentURL = "https://www.tiktok.com/@" + agentURL;
1291
  agentTarget = "";
1292
  }
1293
- return "<a href='" + agentURL + "' target='" + agentTarget + "' class='chaty-tooltip " + toolTipPosition + "' data-form='chaty-form-" + widgetId + "-" + channel.channel_type + "' data-hover='" + channel.hover_text + "'>" + channelIcon + "</a>";
1294
  }
1295
 
1296
  function getAgentURL(agent, channel, widgetId, key, agentIcon, agentTitle) {
@@ -1403,8 +1402,9 @@
1403
  extraClass += " has-chaty-box chaty-whatsapp-form";
1404
  startMakingWhatsAppPopup(channel, widgetId);
1405
  } else {
 
1406
  if (!isEmpty(channel.pre_set_message)) {
1407
- var preSetMessage = decodeURI(channel.pre_set_message);
1408
  var pageTitle = $("title").text();
1409
  if (!isEmpty(pageTitle)) {
1410
  preSetMessage = preSetMessage.replace(/{title}/g, pageTitle);
@@ -1413,14 +1413,16 @@
1413
  }
1414
  preSetMessage = preSetMessage.replace(/{url}/g, window.location);
1415
  preSetMessage = encodeURIComponent(preSetMessage);
1416
- if (isChatyInMobile) {
1417
- channel.url = "https://wa.me/" + channel.value + "?text=" + preSetMessage;
 
 
 
 
 
 
1418
  } else {
1419
- if (!isTrue(channel.is_use_web_version)) {
1420
- channel.url = "https://web.whatsapp.com/?phone=" + channel.value + "&text=" + preSetMessage;
1421
- } else {
1422
- channel.url = "https://wa.me/" + channel.value + "?text=" + preSetMessage;
1423
- }
1424
  }
1425
  }
1426
  }
@@ -1470,7 +1472,7 @@
1470
  channel.target = "";
1471
  channel.url = "javascript:;";
1472
  }
1473
- return "<a href='" + channel.url + "' " + onClickFn + " target='" + channel.target + "' class='chaty-tooltip " + toolTipPosition + extraClass + "' data-form='chaty-form-" + widgetId + "-" + channel.channel_type + "' data-hover='" + channel.hover_text + "'>" + channelIcon + "</a>";
1474
  }
1475
 
1476
  function startMakingContactForm(channel, widgetId) {
654
  $("#chaty-widget-" + widgetRecord.id + " .chaty-tooltip").removeClass("chaty-tooltip");
655
  $("#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger .chaty-channel").attr("data-hover", ctaText);
656
  $("#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger .chaty-channel a").attr("data-hover", ctaText);
657
+ $("#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger .chaty-channel").addClass("active").addClass("chaty-tooltip").addClass("pos-"+toolTipPosition);
658
  } else {
659
  $("#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger .chaty-channel").removeClass("active");
660
  $("#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger .chaty-channel a").attr("data-hover", ctaText);
713
  }
714
  }
715
 
716
+ var widgetButton = '<div class="chaty-channel chaty-cta-main chaty-tooltip pos-' + ctaToolTipPosition + ' active" data-widget="' + widgetRecord.id + '" data-hover="' + ctaText + '">' +
717
  '<div class="chaty-cta-button">' +
718
  '<button type="button" class="open-chaty">' +
719
  widgetIcon +
724
  $("#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger").html(widgetButton);
725
 
726
  /* close button */
727
+ var closeHtml = '<div class="chaty-channel chaty-cta-close chaty-tooltip pos-' + toolTipPosition + '" data-hover="' + widgetRecord.settings.close_text + '">' +
728
  '<div class="chaty-cta-button"><button type="button">' +
729
  '<span class="chaty-svg">' +
730
  '<svg viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="26" cy="26" rx="26" ry="26" fill="' + widgetRecord.settings.widget_color + '"></ellipse><rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)" fill="white"></rect><rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)" fill="white"></rect></svg>' +
785
  customCSS += "#chaty-widget-" + widgetRecord.id + " .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: " + widgetSize + "px; height: " + widgetSize + "px; line-height: " + widgetSize + "px; display: block; font-size:" + (parseInt(widgetSize / 2)) + "px; }";
786
  customCSS += "#chaty-widget-" + widgetRecord.id + " .chaty-i-trigger .chaty-cta-button {background: " + widgetRecord.settings.widget_color + "; }";
787
 
 
788
  if (widgetRecord.settings.icon_view == "vertical") {
789
  //customCSS += "#chaty-widget-"+widgetRecord.id+" .chaty-channel-list {bottom: "+(widgetSize+4)+"px; }";
790
  customCSS += "#chaty-widget-" + widgetRecord.id + " .chaty-channel-list {height: " + (activeChannels * (widgetSize + 8)) + "px; }";
814
 
815
  if (widgetPosition == "left") {
816
  customCSS += "#chaty-widget-" + widgetRecord.id + " .chaty-widget {left: " + sideSpacing + "px; right: auto;}";
817
+ customCSS += ".chaty-outer-forms.pos-left.chaty-form-" + widgetRecord.id + " {left: " + sideSpacing + "px}";
818
+ $(".chaty-form-" + widgetRecord.id).addClass("pos-left");
819
  } else {
820
  customCSS += "#chaty-widget-" + widgetRecord.id + " .chaty-widget {right: " + sideSpacing + "px; left:auto;}";
821
+ $(".chaty-form-" + widgetRecord.id).addClass("pos-right");
822
+ customCSS += ".chaty-outer-forms.pos-right.chaty-form-" + widgetRecord.id + " {right: " + sideSpacing + "px; left:auto;}";
823
  }
824
  $(".chaty-form-" + widgetRecord.id).show();
825
 
1289
  agentURL = "https://www.tiktok.com/@" + agentURL;
1290
  agentTarget = "";
1291
  }
1292
+ return "<a href='" + agentURL + "' target='" + agentTarget + "' class='chaty-tooltip pos-" + toolTipPosition + "' data-form='chaty-form-" + widgetId + "-" + channel.channel_type + "' data-hover='" + channel.hover_text + "'>" + channelIcon + "</a>";
1293
  }
1294
 
1295
  function getAgentURL(agent, channel, widgetId, key, agentIcon, agentTitle) {
1402
  extraClass += " has-chaty-box chaty-whatsapp-form";
1403
  startMakingWhatsAppPopup(channel, widgetId);
1404
  } else {
1405
+ var preSetMessage = "";
1406
  if (!isEmpty(channel.pre_set_message)) {
1407
+ preSetMessage = decodeURI(channel.pre_set_message);
1408
  var pageTitle = $("title").text();
1409
  if (!isEmpty(pageTitle)) {
1410
  preSetMessage = preSetMessage.replace(/{title}/g, pageTitle);
1413
  }
1414
  preSetMessage = preSetMessage.replace(/{url}/g, window.location);
1415
  preSetMessage = encodeURIComponent(preSetMessage);
1416
+ }
1417
+ if (isChatyInMobile) {
1418
+ channel.target = "";
1419
+ channel.url = "https://wa.me/" + channel.value + "?text=" + preSetMessage;
1420
+ } else {
1421
+ channel.target = "_blank";
1422
+ if (!isTrue(channel.is_use_web_version)) {
1423
+ channel.url = "https://web.whatsapp.com/?phone=" + channel.value + "&text=" + preSetMessage;
1424
  } else {
1425
+ channel.url = "https://wa.me/" + channel.value + "?text=" + preSetMessage;
 
 
 
 
1426
  }
1427
  }
1428
  }
1472
  channel.target = "";
1473
  channel.url = "javascript:;";
1474
  }
1475
+ return "<a href='" + channel.url + "' " + onClickFn + " target='" + channel.target + "' class='chaty-tooltip pos-" + toolTipPosition + extraClass + "' data-form='chaty-form-" + widgetId + "-" + channel.channel_type + "' data-hover='" + channel.hover_text + "'>" + channelIcon + "</a>";
1476
  }
1477
 
1478
  function startMakingContactForm(channel, widgetId) {
js/cht-front-script.min.js CHANGED
@@ -1 +1 @@
1
- function launch_chaty(t){jQuery("#chaty-widget-0").length&&jQuery("#chaty-widget-0 .chaty-cta-button .open-chaty").trigger("click")}function close_chaty(){jQuery(".chaty.active .chaty-open").length&&jQuery(".chaty.active .chaty-open").each(function(){jQuery(this).find(".chaty-cta-close").trigger("click")})}!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t,e){var a,n,i=[],c="",s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))?1:0,o=["System Stack","Arial","Tahoma","Verdana","Helvetica","Times New Roman","Trebuchet MS","Georgia"],h=!1,l=!1,r=0,d=!1,g=!1,y=[],p=0,u=0,f="",m=0;function w(){i.length&&(t.each(i,function(e,a){var n="",s="",h=0,y={},p=function(e){if(B(e.triggers.has_countries)&&!j(e.triggers.countries)&&e.triggers.countries.length&&"-"!=(c=U())&&-1==t.inArray(c,e.triggers.countries))return!1;return!0}(a);if(p=(p=p&&function(t){if(t.triggers.has_date_scheduling_rules){var e=t.triggers.date_scheduling_rules.start_date_time,a=t.triggers.date_scheduling_rules.end_date_time,n=new Date,i=(n=D(n,t.triggers.time_diff)).getFullYear()+"-"+A(n.getMonth()+1)+"-"+A(n.getDate())+" "+A(n.getHours())+":"+A(n.getMinutes())+":"+A(n.getSeconds());return""==a&&e<=i||(""==e&&a>=i||""!=e&&""!=a&&e<=i&&a>=i)}return!0}(a))&&function(t){var e=!0;if(B(t.triggers.has_day_hours_scheduling_rules)&&t.triggers.day_hours_scheduling_rules.length>0){var a=t.triggers.day_hours_scheduling_rules;if(a.length>0){e=!1;for(var n=new Date,i=(n=D(n,t.triggers.day_time_diff)).getHours(),c=n.getMinutes(),s=n.getDay(),o=0;o<a.length;o++){var h=0,l=0;-1==a[o].days?l=1:a[o].days>=0&&a[o].days<=6?a[o].days==s&&(l=1):7==a[o].days?s>=0&&s<=4&&(l=1):8==a[o].days?s>=1&&s<=5&&(l=1):9==a[o].days&&(5!=s&&6!=s||(l=1)),1==l&&(i>a[o].start_hours&&i<a[o].end_hours?h=1:i==a[o].start_hours&&i<a[o].end_hours?c>=a[o].start_min&&(h=1):i>a[o].start_hours&&i==a[o].end_hours?c<=a[o].end_min&&(h=1):i==a[o].start_hours&&i==a[o].end_hours&&c>=a[o].start_min&&c<=a[o].end_min&&(h=1),1==h&&c>=a[o].start_min&&c<=a[o].end_min&&1),1==h&&1==l&&(e=1),1==e&&(o=a.length+1)}}}return e}(a),t.each(a.channels,function(t,e){v(e)&&(h++,y=e)}),p&&h>0&&!t("#chaty-widget-"+a.id).length){var u=T(a.settings);u="right"==u?"right":"left";var f=function(t){if("vertical"!=t.settings.icon_view)return"top";if("right"==T(t.settings))return"left";return"right"}(a),m="<div style='display: none' class='chaty chaty-id-"+a.id+" chaty-widget-"+a.id+" chaty-key-"+e+"' id='chaty-widget-"+a.id+"' data-key='"+e+"' data-id='"+a.id+"' data-identifier='"+a.identifier+"' data-nonce='"+a.settings.widget_token+"' ><div class='chaty-widget "+u+"-position'><div class='chaty-channels'><div class='chaty-channel-list'></div><div class='chaty-i-trigger'></div></div></div></div>";t("body").append(m),B(a.triggers.auto_hide_widget)&&parseInt(a.triggers.hide_after)>0&&(t("#chaty-widget-"+a.id).addClass("auto-hide-chaty"),t("#chaty-widget-"+a.id).attr("data-time",a.triggers.hide_after));var w=E(a.id,"c-widget");if(t("#chaty-widget-"+a.id).addClass(a.settings.show_cta),1==h){"vertical"!=a.settings.icon_view&&(f="right"!=u?"right":"left");var x=b(y,a.id,f);t("#chaty-widget-"+a.id+" .chaty-i-trigger").html(x),t("#chaty-widget-"+a.id+" .chaty-i-trigger").addClass("single-channel"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").addClass("single"),t("#chaty-widget-"+a.id+" .chaty-widget").addClass("has-single");var C=a.settings.cta_text;"first_click"==a.settings.show_cta&&(w?(t("#chaty-widget-"+a.id+" .chaty-tooltip").removeClass("chaty-tooltip"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").attr("data-hover",C),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").attr("data-hover",C),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").addClass("active").addClass("chaty-tooltip").addClass(f)):(t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").removeClass("active"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").attr("data-hover",C))),"all_time"==a.settings.show_cta&&t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-tooltip").attr("data-hover",C).addClass("active");var k=y;("Instagram"!=k.channel_type||"#ffffff"!=k.icon_color&&"#fff"!=k.icon_color)&&(n+="#chaty-widget-"+a.id+" ."+k.channel_type+"-channel .color-element{ fill: "+k.icon_color+"; color: "+k.icon_color+";}",n+="#chaty-widget-"+a.id+" .channel-icon-"+k.channel_type+" .color-element{ fill: "+k.icon_color+"; color: "+k.icon_color+";}"),n+="#chaty-widget-"+a.id+" ."+k.channel_type+"-channel .chaty-custom-icon { background-color: "+k.icon_color+"; }",n+="#chaty-widget-"+a.id+" ."+k.channel_type+"-channel .chaty-svg { background-color: "+k.icon_color+";}",n+="#chaty-widget-"+a.id+" .channel-icon-"+k.channel_type+" .chaty-svg { background-color: "+k.icon_color+";}"}else{t.each(a.channels,function(e,i){if(v(i)){M(i.channel_type)&&(i.channel_type=i.channel);var c=b(i,a.id,f);t("#chaty-widget-"+a.id+" .chaty-channel-list").append(c),("Instagram"!=i.channel_type||"#ffffff"!=i.icon_color&&"#fff"!=i.icon_color)&&(n+="#chaty-widget-"+a.id+" ."+i.channel_type+"-channel .color-element{ fill: "+i.icon_color+"; color: "+i.icon_color+";}",n+="#chaty-widget-"+a.id+" .channel-icon-"+i.channel_type+" .color-element{ fill: "+i.icon_color+"; color: "+i.icon_color+";}"),n+="#chaty-widget-"+a.id+" ."+i.channel_type+"-channel .chaty-custom-icon { background-color: "+i.icon_color+"; }",n+="#chaty-widget-"+a.id+" ."+i.channel_type+"-channel .chaty-svg { background-color: "+i.icon_color+";}",n+="#chaty-widget-"+a.id+" .channel-icon-"+i.channel_type+" .chaty-svg { background-color: "+i.icon_color+";}"}});var I=function(t,e){""==t.widget_icon?t.widget_icon="chat-base":"chat-image"==t.widget_icon&&j(t.widget_icon_url)&&(t.widget_icon="chat-base");return"chat-image"==t.widget_icon?"<span class='chaty-svg' style='background: "+t.widget_color+"'><img src='"+t.widget_icon_url+"' alt='Chaty Widget' /></span>":'<span class="chaty-svg">'+function(t,e){switch(t){case"chat-smile":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496.8 507.1 54 54" style="enable-background:new -496.8 507.1 54 54;" xml:space="preserve"><style type="text/css">.chaty-sts1{fill:#FFFFFF;} .chaty-sts2{fill:none;stroke:#808080;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}</style><g><circle cx="-469.8" cy="534.1" r="27" fill="'+e+'"/></g><path class="chaty-sts1" d="M-459.5,523.5H-482c-2.1,0-3.7,1.7-3.7,3.7v13.1c0,2.1,1.7,3.7,3.7,3.7h19.3l5.4,5.4c0.2,0.2,0.4,0.2,0.7,0.2c0.2,0,0.2,0,0.4,0c0.4-0.2,0.6-0.6,0.6-0.9v-21.5C-455.8,525.2-457.5,523.5-459.5,523.5z"/><path class="chaty-sts2" d="M-476.5,537.3c2.5,1.1,8.5,2.1,13-2.7"/><path class="chaty-sts2" d="M-460.8,534.5c-0.1-1.2-0.8-3.4-3.3-2.8"/></svg>';case"chat-bubble":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496.9 507.1 54 54" style="enable-background:new -496.9 507.1 54 54;" xml:space="preserve"><style type="text/css">.chaty-sts1{fill:#FFFFFF;}</style><g><circle cx="-469.9" cy="534.1" r="27" fill="'+e+'"/></g><path class="chaty-sts1" d="M-472.6,522.1h5.3c3,0,6,1.2,8.1,3.4c2.1,2.1,3.4,5.1,3.4,8.1c0,6-4.6,11-10.6,11.5v4.4c0,0.4-0.2,0.7-0.5,0.9 c-0.2,0-0.2,0-0.4,0c-0.2,0-0.5-0.2-0.7-0.4l-4.6-5c-3,0-6-1.2-8.1-3.4s-3.4-5.1-3.4-8.1C-484.1,527.2-478.9,522.1-472.6,522.1z M-462.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-464.6,534.6-463.9,535.3-462.9,535.3z M-469.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-471.7,534.6-471,535.3-469.9,535.3z M-477,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-478.8,534.6-478.1,535.3-477,535.3z"/></svg>';case"chat-db":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.1 54 54" style="enable-background:new -496 507.1 54 54;" xml:space="preserve"><style type="text/css">.chaty-sts1{fill:#FFFFFF;}</style><g><circle cx="-469" cy="534.1" r="27" fill="'+e+'"/></g><path class="chaty-sts1" d="M-464.6,527.7h-15.6c-1.9,0-3.5,1.6-3.5,3.5v10.4c0,1.9,1.6,3.5,3.5,3.5h12.6l5,5c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18.2C-461.1,529.3-462.7,527.7-464.6,527.7z"/><path class="chaty-sts1" d="M-459.4,522.5H-475c-1.9,0-3.5,1.6-3.5,3.5h13.9c2.9,0,5.2,2.3,5.2,5.2v11.6l1.9,1.9c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18C-455.9,524.1-457.5,522.5-459.4,522.5z"/></svg>';default:return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.7 54 54" style="enable-background:new -496 507.7 54 54;" xml:space="preserve"><style type="text/css">.chaty-sts1{fill: #FFFFFF;}.chaty-st0{fill: #808080;}</style><g><circle cx="-469" cy="534.7" r="27" fill="'+e+'"/></g><path class="chaty-sts1" d="M-459.9,523.7h-20.3c-1.9,0-3.4,1.5-3.4,3.4v15.3c0,1.9,1.5,3.4,3.4,3.4h11.4l5.9,4.9c0.2,0.2,0.3,0.2,0.5,0.2 h0.3c0.3-0.2,0.5-0.5,0.5-0.8v-4.2h1.7c1.9,0,3.4-1.5,3.4-3.4v-15.3C-456.5,525.2-458,523.7-459.9,523.7z"/><path class="chaty-st0" d="M-477.7,530.5h11.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-11.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,530.8-478.2,530.5-477.7,530.5z"/><path class="chaty-st0" d="M-477.7,533.5h7.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-7.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,533.9-478.2,533.5-477.7,533.5z"/></svg>'}}(t.widget_icon,t.widget_color)+"</span>"}(a.settings,a.id);C=a.settings.cta_text;"first_click"==a.settings.show_cta&&(w||(C=""));var S=f;"horizontal"==a.settings.icon_view&&(S="left"==u?"right":"left");var z='<div class="chaty-channel chaty-cta-main chaty-tooltip '+S+' active" data-widget="'+a.id+'" data-hover="'+C+'"><div class="chaty-cta-button"><button type="button" class="open-chaty">'+I+'</button><button type="button" class="open-chaty-channel"></button></div></div>';t("#chaty-widget-"+a.id+" .chaty-i-trigger").html(z);var F='<div class="chaty-channel chaty-cta-close chaty-tooltip '+f+'" data-hover="'+a.settings.close_text+'"><div class="chaty-cta-button"><button type="button"><span class="chaty-svg"><svg viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="26" cy="26" rx="26" ry="26" fill="'+a.settings.widget_color+'"></ellipse><rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)" fill="white"></rect><rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)" fill="white"></rect></svg></span></button></div></div>';t("#chaty-widget-"+a.id+" .chaty-i-trigger").append(F)}!(w=E(a.id,"c-widget"))||"open"==a.settings.default_state&&1!=h||(function(e,a){E(a,"c-widget")&&B(e.is_pending_mesg_enabled)&&parseInt(e.pending_mesg_count)>0&&(t("#chaty-widget-"+a+" .chaty-widget").hasClass("has-single")?"sheen"==e.attention_effect||"spin"==e.attention_effect||"pulse"==e.attention_effect?t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-channel").append("<span class='ch-pending-msg'>"+e.pending_mesg_count+"</span>"):t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-channel .chaty-svg").append("<span class='ch-pending-msg'>"+e.pending_mesg_count+"</span>"):"jump"==e.attention_effect||"waggle"==e.attention_effect||"blink"==e.attention_effect||"pulse-icon"==e.attention_effect?t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-cta-main .chaty-cta-button").append("<span class='ch-pending-msg'>"+e.pending_mesg_count+"</span>"):t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-cta-main").append("<span class='ch-pending-msg'>"+e.pending_mesg_count+"</span>"))}(a.settings,a.id),function(e,a){E(a,"c-widget")&&"none"!=e.attention_effect&&""!=e.attention_effect&&(t("#chaty-widget-"+a).attr("data-animation",e.attention_effect),t("#chaty-widget-"+a+" .chaty-widget").hasClass("has-single")?t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-channel .chaty-svg").addClass("chaty-animation-"+e.attention_effect):t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-cta-main .chaty-cta-button").addClass("chaty-animation-"+e.attention_effect))}(a.settings,a.id));var P=0;"open"!=a.settings.default_state||B(a.settings.show_close_button)||(t("#chaty-widget-"+a.id+" .chaty-widget").addClass("chaty-no-close-button").addClass("chaty-open"),P=1),B(a.settings.is_google_analytics_enabled)&&(t("#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel").addClass("has-gae"),t("#chaty-widget-"+a.id+" .chaty-i-trigger.single-channel .chaty-channel").addClass("has-gae"),t(".chaty-outer-forms.chaty-whatsapp-form.chaty-form-"+a.id+" form.add-analytics").addClass("form-google-analytics")),B(a.settings.has_custom_css)&&!j(a.settings.custom_css)&&(s+=a.settings.custom_css),"hover"==a.settings.default_state?t("#chaty-widget-"+a.id).addClass("open-on-hover"):"open"==a.settings.default_state&&(t("#chaty-widget-"+a.id+" .chaty-widget").addClass("default-open"),!w&&B(a.settings.show_close_button)||t("#chaty-widget-"+a.id+" .chaty-widget").addClass("chaty-open"));var N=function(t,e){return t}(a.settings.widget_size,a.settings.custom_widget_size);if(N=parseInt(N),n+="#chaty-widget-"+a.id+" .chaty-channel {width: "+N+"px; height: "+N+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel > a {width: "+N+"px; height: "+N+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel > a .chaty-custom-icon {display:block; width: "+N+"px; height: "+N+"px; line-height: "+N+"px; font-size: "+parseInt(N/2)+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel button {width: "+N+"px; height: "+N+"px; margin: 0; padding:0; outline: none; border-radius: 50%;}",n+="#chaty-widget-"+a.id+" .chaty-channel .chaty-svg {width: "+N+"px; height: "+N+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel .chaty-svg img {width: "+N+"px; height: "+N+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel span.chaty-icon {width: "+N+"px; height: "+N+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel a {width: "+N+"px; height: "+N+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: "+N+"px; height: "+N+"px; line-height: "+N+"px; display: block; font-size:"+parseInt(N/2)+"px; }",n+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-cta-button {background: "+a.settings.widget_color+"; }","vertical"==a.settings.icon_view){n+="#chaty-widget-"+a.id+" .chaty-channel-list {height: "+h*(N+8)+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel-list {width: "+(N+8)+"px; }";for(var q=0;q<=h;q++)n+="#chaty-widget-"+a.id+" .chaty-open .chaty-channel-list .chaty-channel:nth-child("+(q+1)+") {-webkit-transform: translateY(-"+(N+8)*(h-q-P)+"px); transform: translateY(-"+(N+8)*(h-q-P)+"px);}"}else{t("#chaty-widget-"+a.id+" .chaty-widget").addClass("hor-mode"),n+="#chaty-widget-"+a.id+" .chaty-channel-list {width: "+h*(N+8)+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel-list {height: "+N+"px; }";for(q=0;q<=h;q++)n+="#chaty-widget-"+a.id+" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(q+1)+") {-webkit-transform: translateX("+(N+8)*(h-q-P)+"px); transform: translateX("+(N+8)*(h-q-P)+"px);}",n+="#chaty-widget-"+a.id+" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(q+1)+") {-webkit-transform: translateX(-"+(N+8)*(h-q-P)+"px); transform: translateX(-"+(N+8)*(h-q-P)+"px);}"}var W=a.settings.bottom_spacing,L=a.settings.side_spacing;if(n+="#chaty-widget-"+a.id+" .chaty-widget {bottom: "+W+"px}","left"==u?(n+="#chaty-widget-"+a.id+" .chaty-widget {left: "+L+"px; right: auto;}",n+=".chaty-outer-forms.left.chaty-form-"+a.id+" {left: "+L+"px}",t(".chaty-form-"+a.id).addClass("left")):(n+="#chaty-widget-"+a.id+" .chaty-widget {right: "+L+"px; left:auto;}",t(".chaty-form-"+a.id).addClass("right"),n+=".chaty-outer-forms.right.chaty-form-"+a.id+" {right: "+L+"px}"),t(".chaty-form-"+a.id).show(),n+="#chaty-widget-"+a.id+" .chaty-tooltip:after {background-color: "+a.settings.cta_bg_color+"; color: "+a.settings.cta_text_color+"}",n+="#chaty-widget-"+a.id+" .chaty-tooltip.top:before {border-top-color: "+a.settings.cta_bg_color+"; }",n+="#chaty-widget-"+a.id+" .chaty-tooltip.left:before {border-left-color: "+a.settings.cta_bg_color+"; }",n+="#chaty-widget-"+a.id+" .chaty-tooltip.right:before {border-right-color: "+a.settings.cta_bg_color+";}",E(a.id,"v-widget")&&(B(a.triggers.exit_intent)||B(a.triggers.has_time_delay)&&parseInt(a.triggers.time_delay)>0||B(a.triggers.has_display_after_page_scroll)&&parseInt(a.triggers.display_after_page_scroll)>0)?(B(a.triggers.has_time_delay)&&parseInt(a.triggers.time_delay)>0&&(l=!0,parseInt(a.triggers.time_delay)>r&&(r=a.triggers.time_delay),t("#chaty-widget-"+a.id).addClass("on-chaty-delay"),t("#chaty-widget-"+a.id).addClass("delay-time-"+parseInt(a.triggers.time_delay)),t("#chaty-widget-"+a.id).attr("data-time",parseInt(a.triggers.time_delay))),B(a.triggers.has_display_after_page_scroll)&&parseInt(a.triggers.display_after_page_scroll)>0&&(d=!0,t("#chaty-widget-"+a.id).addClass("on-chaty-scroll"),t("#chaty-widget-"+a.id).addClass("page-scroll-"+parseInt(a.triggers.display_after_page_scroll)),t("#chaty-widget-"+a.id).attr("data-scroll",parseInt(a.triggers.display_after_page_scroll))),B(a.triggers.exit_intent)&&(g=!0,t("#chaty-widget-"+a.id).addClass("on-chaty-exit-intent"))):(_(a.id),t("#chaty-widget-"+a.id).addClass("active")),!j(a.settings.font_family)&&"none"!=a.settings.font_family){var O=a.settings.font_family;-1!=t.inArray(O,o)?"System Stack"==O&&(O="-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"):(t("head").append('<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family='+O+'&display=swap">'),t("head").append('<link rel="stylesheet" href="https://fonts.googleapis.com/css?family='+O+'&display=swap">')),n+="#chaty-widget-"+a.id+", #chaty-widget-"+a.id+" .chaty-tooltip:after {font-family: "+O+"}"}}""!=n&&(t("#custom-chaty-css").length||t("head").append("<style id='custom-chaty-css'></style>"),t("#custom-chaty-css").append(n)),""!=s&&(t("#custom-advance-chaty-css").length||t("head").append("<style id='custom-advance-chaty-css'></style>"),t("#custom-advance-chaty-css").append(s)),i.length}),t("#custom-advance-chaty-css").length||t("head").append("<style id='custom-advance-chaty-css'></style>"),t("#custom-advance-chaty-css").append(f)),t(".chaty-tooltip").each(function(){""==t(this).data("hover")&&t(this).removeClass("left").removeClass("right").removeClass("top").removeClass("chaty-tooltip")}),function(){t(".chaty.auto-hide-chaty").length&&(n=setInterval(function(){var e=++m;if(t(".chaty.auto-hide-chaty.hide-after-"+m).length){var a=t(".chaty.auto-hide-chaty.hide-after-"+e).data("id");t(".chaty-form-"+a).removeClass("active"),t(".chaty.auto-hide-chaty.hide-after-"+e).removeClass("active"),t("#chaty-widget-0"+a).removeClass("auto-hide-chaty")}0==t(".chaty.auto-hide-chaty").length&&clearInterval(n)},1e3));l&&(a=setInterval(function(){if(t(".chaty.delay-time-"+ ++p).length){var e=t(".chaty.delay-time-"+p).data("id");F(e)}},1e3));if(d){t(window).on("scroll",function(){if(d){var e=t(document).height()-t(window).height(),a=t(window).scrollTop();if(0!=e){var n=parseInt(a/e*100);if(u<=n){var i=u;u=n;for(var c=i;c<=n;c++)-1==t.inArray(c,y)&&t(".chaty.on-chaty-scroll.page-scroll-"+c).length&&t(".chaty.on-chaty-scroll.page-scroll-"+c).each(function(){var e=t(this).data("id");t(this).removeClass("on-chaty-scroll"),F(e)});u=n}}}});window.innerWidth,document.documentElement.clientWidth}}()}function v(t){if(B(t.is_agent)){if(t.agent_data.length&&(!s&&B(t.is_agent_desktop)||s&&B(t.is_agent_mobile)))return!0}else if((!s&&B(t.is_desktop)||s&&B(t.is_mobile))&&(""!=t.value||"Contact_Us"==t.channel))return!0;return!1}function _(a){if(t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open").length){var n=t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open a.chaty-whatsapp-form").data("form");if(!j(n))if(E(a,"c-"+t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open").data("channel"))&&(t("#"+n).addClass("is-active"),t("#"+n).length)){var c=t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open a.chaty-whatsapp-form").html();if(t("#chaty-widget-"+a+" .chaty-widget").removeClass("chaty-open"),t("#chaty-widget-"+a).addClass("form-open"),t("#"+n).addClass("active"),t("#chaty-widget-"+a+" .open-chaty-channel").html(c),t("#chaty-widget-"+a).addClass("active"),t("#chaty-widget-"+a).addClass("active"),t("#chaty-widget-"+a).hasClass("auto-hide-chaty"))(o=parseInt(t("#chaty-widget-"+a).data("time")))>0&&(o+=m,t("#chaty-widget-"+a).addClass("hide-after-"+o));return}}var o;(t("#chaty-widget-"+a).addClass("active"),t("#chaty-widget-"+a).hasClass("auto-hide-chaty"))&&((o=parseInt(t("#chaty-widget-"+a).data("time")))>0&&(o+=m,t("#chaty-widget-"+a).addClass("hide-after-"+o)));var l=E(a,"v-widget");if(l){P(a,"v-widget");t("#chaty-widget-"+a).data("user");var r,d=[],g=0,y=0,p=t("#chaty-widget-"+a).data("key");if(typeof i[p]!=e){var u=q("activechatyWidgets");null!=u?(u=u.split(","),-1==t.inArray(a,u)&&(u.push(a),N("activechatyWidgets",u=u.join(","),1))):N("activechatyWidgets",u=a,1)}if(t("#chaty-widget-"+a+" .chaty-widget").hasClass("has-single"))g=1,r=t("#chaty-widget-"+a+" .chaty-channel").data("channel"),E(a,"v-"+r)&&void 0!==r&&(P(a,"v-"+r),d.push(r));else t("#chaty-widget-"+a+" .chaty-widget").hasClass("chaty-open")&&(y=1,t("#chaty-widget-"+a+" .chaty-channel-list .chaty-channel").each(function(){r=t(this).data("channel"),E(a,"v-"+r)&&void 0!==r&&(P(a,"v-"+r),d.push(r))}));if(l&&!h){var f=t("#chaty-widget-"+a).data("nonce");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:a,channels:d,userId:a,isMobile:s,isOpen:y,isSingle:g,widgetNonce:f,action:"update_chaty_widget_views"},type:"post",success:function(t){},error:function(t,e,a){monitorErrorLog(t,e,a)}})}}}function b(e,a,n){var i="";if(!B(e.is_agent)){M(e.channel_type)&&(e.channel_type=e.channel);o=k(e,S(e),n,a);if("Contact_Us"==e.channel_type)i+=" has-chaty-box chaty-contact-form";else if("Whatsapp"==e.channel_type){if(B(e.has_welcome_message)&&!j(e.chat_welcome_message))if(B(e.is_default_open))E(a,"c-"+e.channel_type)&&(i+=" chaty-default-open")}return"<div class='chaty-channel "+e.channel+"-channel"+i+"' id='"+e.channel+"-"+a+"-channel' data-id='"+e.channel_type+"-"+a+"' data-widget='"+a+"' data-channel='"+e.channel+"'>"+o+"</div>"}if(e.agent_data.length){var c=0;if(t.each(e.agent_data,function(t,e){""!=e.value&&(c++,e)}),c>0){var o,h=I(a);return null==h&&(h=-1),function(e,a){var n="",i=I(a);null==i&&(i=-1);n+="<div style='display:none;' class='chaty-outer-forms chaty-agent-data chaty-agent-data-"+a+" chaty-form-"+a+"' data-channel='"+e.channel_type+"' id='chaty-form-"+a+"-"+e.channel_type+"' data-widget='"+a+"' data-index='"+i+"'>",n+="<div class='chaty-form'>",n+="<div class='chaty-form-body'>",n+="<div role='button' class='chaty-close-agent-list'><svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 330 330' xmlns:v='https://vecta.io/nano'><path d='M325.607 79.393c-5.857-5.857-15.355-5.858-21.213.001l-139.39 139.393L25.607 79.393c-5.857-5.857-15.355-5.858-21.213.001s-5.858 15.355 0 21.213l150.004 150a15 15 0 0 0 21.212-.001l149.996-150c5.859-5.857 5.859-15.355.001-21.213z'/></svg></div>",n+="<div class='chaty-agent-header agent-info-"+a+"-"+e.channel+"'>",j(e.header_text)||(n+="<div class='agent-main-header'>"+e.header_text+"</div>");j(e.header_sub_text)||(n+="<div class='agent-sub-header'>"+e.header_sub_text+"</div>");n+="</div>",t.each(e.agent_data,function(i,c){if(""!=c.value){var o=c.svg_icon;j(c.agent_image)||(o="<img class='chaty-agent-img' src='"+c.agent_image+"' alt='"+c.agent_title+"' />");var h=function(e,a,n,i,c,o){var h=e.value,l="_blank";if("Whatsapp"==a.channel_type){var r=x(e.value);s?(l="",h="https://wa.me/"+r):(l="_blank",h="https://web.whatsapp.com/?phone="+r)}else"WeChat"==a.channel_type?(l="",h="javascript:;"):"Email"==a.channel_type?(l="",h="mailto:"+e.value):"Facebook_Messenger"==a.channel_type?l=s?"":"_blank":"SMS"==a.channel_type?(l="",h="sms:"+e.value):"Telegram"==a.channel_type?(h="https://telegram.me/"+(h=C(e.value,"@")),l="_blank"):"Twitter"==a.channel_type?h="https://twitter.com/"+t.trim(e.value):"Phone"==a.channel_type?(l="",h="tel:"+t.trim(e.value)):"Skype"==a.channel_type?(l="",h="skype:"+t.trim(e.value)+"?chat"):"Snapchat"==a.channel_type?h="https://www.snapchat.com/add/"+t.trim(e.value):"Vkontakte"==a.channel_type?h="https://vk.me/"+t.trim(e.value):"Linkedin"==a.channel_type?h="personal"==e.link_type?"https://www.linkedin.com/in/"+t.trim(e.value):"https://www.linkedin.com/company/"+t.trim(e.value):"Viber"==a.channel_type?(h=C(e.value,"+"),isNaN(h)||(h=h.replace("+",""),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(h="+"+h),h="viber://chat?number="+h),l=""):"TikTok"==a.channel_type&&(h="https://www.tiktok.com/@"+(h=C(t.trim(e.value),"@")),l="");return"<a href='"+h+"' target='"+l+"'><span class='chaty-agent-icon'>"+c+"</span><span class='chaty-agent-title'>"+o+"</span></a>"}(c,e,0,0,o,c.agent_title);n+="<div class='chaty-agent agent-info-"+a+"-"+e.channel+" agent-info-"+i+"'>"+h+"</div>"}f+=".agent-info-"+a+"-"+e.channel+".agent-info-"+i+" .chaty-agent-icon img { background: "+c.agent_bg_color+"; } ",("Instagram"!=e.channel||"#ffffff"!=c.agent_bg_color&&"#fff"!=c.agent_bg_color)&&(f+=".agent-info-"+a+"-"+e.channel+".agent-info-"+i+" .chaty-agent-icon .color-element { fill: "+c.agent_bg_color+"; } "),f+=".agent-info-"+a+"-"+e.channel+".agent-info-"+i+" .chaty-custom-icon { background: "+c.agent_bg_color+"; } "}),n+="</div>",n+="</div>",n+="</div>",f+=".chaty-agent-header.agent-info-"+a+"-"+e.channel+" { background: "+e.header_bg_color+"; color: "+e.header_text_color+" } ",f+=".agent-info-"+a+"-"+e.channel+" .chaty-close-agent-list svg { fill: "+e.header_text_color+" } ",t("body").append(n)}(e,a),o=k(e,S(e),n,a),("Instagram"!=e.channel||"#ffffff"!=e.icon_color&&"#fff"!=e.icon_color)&&(f+=".chaty-agent-"+a+"-"+e.channel+" .color-element {fill: "+e.icon_color+"; color: "+e.icon_color+";}"),f+=".chaty-agent-"+a+"-"+e.channel+" .chaty-custom-icon { background-color: "+e.icon_color+";}",f+=".chaty-agent-"+a+"-"+e.channel+" .chaty-svg-img { background-color: "+e.icon_color+";}","<div data-form='chaty-form-"+a+"-"+e.channel_type+"' class='chaty-channel chaty-agent-button chaty-agent-"+a+"-"+e.channel+" "+e.channel+"-channel"+i+"' id='"+e.channel+"-"+a+"-channel' data-id='"+e.channel_type+"-"+a+"' data-widget='"+a+"' data-channel='"+e.channel+"'>"+o+"</div>"}}}function x(t){return t=(t=(t=(t=C(t,"+")).replace(/ /g,"")).replace(/-/g,"")).replace(/_/g,"")}function C(e,a){for(e=t.trim(e);e.charAt(0)==a;)e=e.substring(1);for(;e.charAt(e.length-1)==a;)e=e.substring(0,e.length-1);return e}function k(e,a,n,i){var c="";if(B(e.is_agent))e.url="javascript:;",e.target="";else if("Whatsapp"==e.channel_type){if(B(e.has_welcome_message)&&!j(e.chat_welcome_message))e.url="javascript:;",e.target="",c+=" has-chaty-box chaty-whatsapp-form",function(e,a){var n="",i=I(a);null==i&&(i=-1);var c="https://web.whatsapp.com/send",o="";s?c="https://wa.me/"+e.value:(c=B(e.is_use_web_version)?"https://web.whatsapp.com/send":"https://wa.me/"+e.value,o="_blank");n+="<div style='display:none;' class='chaty-outer-forms chaty-form-"+a+"' data-channel='"+e.channel_type+"' id='chaty-form-"+a+"-"+e.channel_type+"' data-widget='"+a+"' data-index='"+i+"'>",n+="<div class='chaty-whatsapp-form'>",n+="<div class='chaty-whatsapp-body'>",n+="<div role='button' class='close-chaty-form is-whatsapp-btn'><div class='chaty-close-button'></div></div>",n+="<div class='chaty-whatsapp-message'></div>",n+="</div>",n+="<div class='chaty-whatsapp-footer'>",n+="<form action='"+c+"' target='"+o+"' class='whatsapp-chaty-form' data-widget='"+a+"' data-channel='"+e.channel_type+"'>",n+="<div class='chaty-whatsapp-data'>",n+="<div class='chaty-whatsapp-field'>",n+="<input name='text' type='text' class='csass-whatsapp-input' />",n+="</div>",n+="<div class='chaty-whatsapp-button'>",n+="<button type='submit' >",n+="<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'><path fill='#ffffff' d='M1.101 21.757L23.8 12.028 1.101 2.3l.011 7.912 13.623 1.816-13.623 1.817-.011 7.912z'></path></svg>",n+="</button>",n+="</div>",n+="</div>",!s&&B(e.is_use_web_version)&&(n+="<input type='hidden' name='phone' value='"+e.value+"' />");if(n+="</form>",n+="</div>",n+="</div>",n+="</div>",t("body").append(n),t("#chaty-form-"+a+"-"+e.channel_type+" .chaty-whatsapp-message").html(e.chat_welcome_message),!j(e.pre_set_message)){var h=e.pre_set_message,l=t("title").text();h=(h=j(l)?h.replace(/{title}/g,""):h.replace(/{title}/g,l)).replace(/{url}/g,window.location),t("#chaty-form-"+a+"-"+e.channel_type+" .csass-whatsapp-input").val(h)}t("#chaty-form-"+a+"-"+e.channel_type).show()}(e,i);else if(!j(e.pre_set_message)){var o=decodeURI(e.pre_set_message);o=(o=j(h=t("title").text())?o.replace(/{title}/g,""):o.replace(/{title}/g,h)).replace(/{url}/g,window.location),o=encodeURIComponent(o),s?e.url="https://wa.me/"+e.value+"?text="+o:B(e.is_use_web_version)?e.url="https://wa.me/"+e.value+"?text="+o:e.url="https://web.whatsapp.com/?phone="+e.value+"&text="+o}}else if("WeChat"==e.channel_type)j(e.qr_code_image_url)||(!function(e,a){var n="",i=I(a);null==i&&(i=-1);n+="<div style='display:none;' class='chaty-outer-forms chaty-form-"+a+"' data-channel='"+e.channel_type+"' id='chaty-form-"+a+"-"+e.channel_type+"' data-widget='"+a+"' data-index='"+i+"'>",n+="<div class='chaty-form'>",n+="<div class='chaty-form-body'>",n+="<div role='button' class='close-chaty-form is-whatsapp-btn'><div class='chaty-close-button'></div></div>",n+="<div class='qr-code-image'><img src='"+e.qr_code_image_url+"' alt='"+e.title+"' /></div>",n+="</div>",n+="</div>",n+="</div>",t("body").append(n)}(e,i),e.url="javascript:;",e.target="",c+=" has-chaty-box chaty-qr-code-form");else if("Contact_Us"==e.channel_type)!function(e,a){var n="",i=I(a);null==i&&(i=-1);n+="<div style='display:none;' class='chaty-outer-forms chaty-contact-form-box chaty-form-"+a+"' data-channel='"+e.channel_type+"' id='chaty-form-"+a+"-"+e.channel_type+"' data-widget='"+a+"' data-index='"+i+"'>",n+="<div class='chaty-form'>",n+="<div class='chaty-form-body'>",n+="<div role='button' class='close-chaty-form'><div class='chaty-close-button'></div></div>",n+="<form class='chaty-ajax-contact-form' id='chaty-ajax-contact-form-"+i+"' method='post' data-channel='"+e.channel_type+"' data-widget='"+a+"' data-token='"+e.widget_token+"' data-index='"+e.widget_index+"'>",n+="<div class='chaty-contact-form-body'>",n+="<div class='chaty-contact-form-title'>"+e.contact_form_settings.contact_form_title+"</div>",n+="<div class='chaty-contact-inputs'>",t.each(e.contact_fields,function(t,e){n+="<div class='chaty-contact-input'>";var i=B(e.is_required)?"is-required":"";"textarea"==e.type?n+="<textarea type='"+e.type+"' class='chaty-textarea-field "+i+" field-"+e.field+"' placeholder='"+e.placeholder+"' name='"+e.field+"' id='"+e.field+"-"+a+"' ></textarea>":n+="<input type='"+e.type+"' class='chaty-input-field "+i+" field-"+e.field+"' placeholder='"+e.placeholder+"' name='"+e.field+"' id='"+e.field+"-"+a+"' />",n+="</div>"}),n+="<div class='chaty-contact-form-button'><button type='submit' id='chaty-submit-button-"+a+"' class='chaty-submit-button'>"+e.contact_form_settings.button_text+"</button></div>",n+="</div>",n+="</div>",n+="</form>",n+="</div>",n+="</div>",n+="</div>",t("body").append(n)}(e,i),e.url="javascript:;",e.target="",c+=" has-chaty-box chaty-contact-us-form";else if("Email"==e.channel_type){if(!j(e.mail_subject)){var h,l=decodeURI(e.mail_subject);l=(l=j(h=t("title").text())?l.replace(/{title}/g,""):l.replace(/{title}/g,h)).replace(/{url}/g,window.location),l=encodeURIComponent(l),e.url+="?subject="+l}}else"Viber"==e.channel_type?(e.value=C(e.value,"+"),s&&!isNaN(e.value)&&navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(e.value="+"+e.value),e.url="viber://chat?number="+e.value,e.target=""):"Vkontakte"==e.channel_type&&(e.url="https://vk.me/"+t.trim(e.value));var r="";return j(e.click_event)||(r='onclick="'+e.click_event+'"',e.target="",e.url="javascript:;"),"<a href='"+e.url+"' "+r+" target='"+e.target+"' class='chaty-tooltip "+n+c+"' data-form='chaty-form-"+i+"-"+e.channel_type+"' data-hover='"+e.hover_text+"'>"+a+"</a>"}function I(e){var a=null;return i.length&&t.each(i,function(t,n){n.id==e&&(a=t)}),a}function j(e){return null==e||""==e||""==t.trim(e)}function S(t){return""!=t.custom_image_url&&"null"!=t.custom_image_url?"<span class='channel-icon-"+t.channel_type+"'><span class='chaty-svg chaty-svg-img'><img src='"+t.custom_image_url+"' alt='"+t.hover_text+"' /></span></span>":"<span class='channel-icon-"+t.channel_type+"'><span class='chaty-svg'>"+t.svg_icon+"</span></span>"}function M(e){return""==e||""==t.trim(e)||null==e||"null"==e}function T(t){return"custom"==t.position?t.custom_position:t.position}function z(){g&&t(".on-chaty-exit-intent").length&&t(".on-chaty-exit-intent").each(function(){var e=t(this).data("id");t(this).removeClass("on-chaty-exit-intent"),F(e),t("#chaty-widget-"+e+" .chaty-widget").append("<div class='chaty-exit-intent'></div>"),setTimeout(function(){t(".chaty-exit-intent").addClass("animate"),setTimeout(function(){t(".chaty-exit-intent").removeClass("animate")},2500)},500)})}function F(e){_(e),t(".chaty-widget-"+e).removeClass("on-chaty-delay"),t(".chaty-widget-"+e).removeClass("on-chaty-exit-intent"),t(".chaty-widget-"+e).removeClass("on-chaty-scroll"),t(".chaty.on-chaty-delay").length||(clearInterval(a),l=!1),t(".chaty.on-chaty-exit-intent").length||(g=!1),t(".chaty.on-chaty-scroll").length||(d=!1)}function A(t){for(t=t.toString();t.length<2;)t="0"+t;return t}function B(t){return"1"==t||1==t||1==t||"true"==t||"yes"==t||"on"==t}function D(t,e){if(isNaN(e)){var a=new Date(t.toLocaleString("en-US",{timeZone:e})),n=t.getTime()-a.getTime();return new Date(t.getTime()-n)}var i=new Date;if(i=i.toLocaleString("en-US",{timeZone:"UTC"}),i=new Date(i),-1!=e.indexOf("+")){var c=e.replace("+",""),s=parseInt(c),o=60*parseFloat(c%s);(o=i.getUTCMinutes()+o)>59&&(s+=parseInt(o/60),o%=60),i.setUTCHours(i.getUTCHours()+s,o)}else if(-1!=e.indexOf("-")){c=e.replace("-",""),s=parseInt(c),o=60*parseFloat(c%s);(o=i.getUTCMinutes()-o)<0&&(s-=parseInt(o/60),o%=60),i.setUTCHours(i.getUTCHours()-s,-o)}n=t.getTime()-i.getTime();return new Date(t.getTime()-n)}function U(){return c="","undefined"!=typeof Storage&&null!=window.sessionStorage.getItem("chaty_user_country_code")?c=window.sessionStorage.getItem("chaty_user_country_code"):W("chaty_user_country_code")&&(c=q("chaty_user_country_code")),c}function P(t,e){var a=q("chatyWidget_"+t),n=[];null!=a&&""!=a&&(n=JSON.parse(a));var i=!1;if(n.length>0)for(var c=0;c<n.length;c++)n[c].k==e&&(i=!0,n[c].v=new Date);i||n.push({k:e,v:new Date}),N("chatyWidget_"+t,a=JSON.stringify(n),"7")}function E(t,e){var a=function(t,e){var a=q("chatyWidget_"+t),n=[];if(null!=a&&""!=a&&(n=JSON.parse(a)),n.length>0)for(var i=0;i<n.length;i++)if(n[i].k==e)return n[i].v;return null}(t,e);if(null!=a&&""!=a){a=new Date(a);var n=Math.abs(new Date-a);return Math.floor(n/864e5)>=2}return!0}function N(t,e,a){var n=new Date;n.setTime(n.getTime()+24*a*60*60*1e3);var i="expires="+n.toUTCString();document.cookie=t+"="+e+"; "+i+"; path=/; SameSite=Lax"}function q(t){t+="=";for(var e=document.cookie.split(";"),a=0;a<e.length;a++){for(var n=e[a];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(t))return n.substring(t.length,n.length)}return null}function W(t){var e=q(t);return""!=e&&null!==e}t(document).ready(function(){var a=new RegExp("(googlebot/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)","i"),n=navigator.userAgent;if(a.test(n)&&(h=!0),"on"==chaty_settings.data_analytics_settings&&"off"!=chaty_settings.data_analytics_settings||(h=!0),"undefined"==typeof chaty_settings||0==chaty_settings.chaty_widgets.length?console.log("Chaty settings doesn't exists"):(i=chaty_settings.chaty_widgets,function(){var e=!1;i.length&&t.each(i,function(t,a){B(a.triggers.has_countries)&&!j(a.triggers.countries)&&a.triggers.countries.length&&(e=!0)});e?""!=(c=U())?w():t.get("https://www.cloudflare.com/cdn-cgi/trace",function(t){var e,a=t.match("loc=(.*)");a.length>1&&(a=a[1])&&(""==(a=a.toUpperCase())&&(a="-"),e=a,"undefined"!=typeof Storage?null==window.sessionStorage.getItem("chaty_user_country_code")&&window.sessionStorage.setItem("chaty_user_country_code",e):W("chaty_user_country_code")||N("chaty_user_country_code",e,365),w())}):w()}()),t(document).on("click","html, body",function(e){t(".form-open").removeClass("form-open"),t(".chaty-outer-forms").removeClass("active"),t(".chaty .chaty-widget.chaty-no-close-button").addClass("chaty-open")}),t(document).on("click",".chaty, .chaty-outer-forms",function(t){t.stopPropagation()}),t(document).on("submit",".whatsapp-chaty-form",function(){var e=t(this).data("widget"),a=t(this).data("channel"),n=t("#chaty-widget-"+e).data("user"),i=E(e,"c-"+a);!j(n)&&i&&P(e,"c-"+a),t("#chaty-widget-"+e).length&&(t("#chaty-widget-"+e).removeClass("form-open"),t(this).closest(".chaty-outer-forms").removeClass("active"),t("#chaty-widget-"+e).find(".chaty-widget").hasClass("cssas-no-close-button")&&t("#chaty-widget-"+e).find(".chaty-widget").addClass("chaty-open"))}),t(document).on("click",".chaty-close-button, .chaty-close-agent-list",function(e){e.preventDefault(),e.stopPropagation();var a=t(this).closest(".chaty-outer-forms").data("widget");if((!j(a)||0==a)&&(t("#chaty-widget-"+a).length&&(t("#chaty-widget-"+a).removeClass("form-open"),t(this).closest(".chaty-outer-forms").removeClass("active"),t("#chaty-widget-"+a).find(".chaty-widget").hasClass("chaty-no-close-button")&&t("#chaty-widget-"+a).find(".chaty-widget").addClass("chaty-open")),t(this).closest(".chaty-whatsapp-form").length)){var n=t(this).closest(".chaty-outer-forms").data("channel");if(!j(n))E(a,"c-"+n)&&P(a,"c-"+n);E(a,"v-widget")&&_(a)}}),t(document).on("click","a.chaty-qr-code-form",function(e){e.preventDefault();var a=t(this).data("form");if(!j(a)&&t("#"+a).length){var n=t(this).html();t(this).closest(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),t(this).closest(".chaty-widget").find(".open-chaty-channel").html(n)}}),t(document).on("click","a.chaty-contact-us-form",function(e){e.preventDefault();var a=t(this).data("form");if(!j(a)&&t("#"+a).length){var n=t(this).html();t(this).closest(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),t("#"+a).find(".chaty-ajax-success-message").remove(),t("#"+a).find(".chaty-ajax-error-message").remove(),t("#"+a).find(".has-chaty-error").removeClass("has-chaty-error"),t(this).closest(".chaty-widget").find(".open-chaty-channel").html(n)}}),t(document).on("click","a.chaty-whatsapp-form",function(e){e.preventDefault();var a=t(this).data("form");if(!j(a)&&t("#"+a).length){var n=t(this).html();t("#"+a).addClass("is-active"),t(this).closest(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),t(this).closest(".chaty-widget").find(".open-chaty-channel").html(n)}}),t(document).on("click",".chaty-channel.chaty-agent-button",function(e){e.preventDefault();var a=t(this).data("form");if(!j(a)&&t("#"+a).length)if(t(this).closest(".chaty-widget").hasClass("has-single"))if(t(this).closest(".chaty").hasClass("form-open"))t(this).closest(".chaty-widget").addClass("chaty-open"),t(this).closest(".chaty").removeClass("form-open"),t("#"+a).removeClass("active");else{n=t(this).html();t("#"+a).addClass("is-active"),t(this).closest(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),t(this).closest(".chaty-widget").find(".open-chaty-channel").html(n)}else{var n=t(this).html();t("#"+a).addClass("is-active"),t(this).closest(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),t(this).closest(".chaty-widget").find(".open-chaty-channel").html(n)}}),t(document).on("click",".chaty-channel.has-gae",function(a){a.stopPropagation();var n=t(this).data("channel");if(n!==e&&""!=n&&null!=n&&(window.hasOwnProperty("gtag")&&gtag("event","chaty_"+n,{eventCategory:"chaty_"+n,event_action:"chaty_"+n,method:"chaty_"+n}),window.hasOwnProperty("ga"))){var i=window.ga.getAll()[0];i&&i.send("event","click",{eventCategory:"chaty_"+n,eventAction:"chaty_"+n,method:"chaty_"+n})}}),t(document).on("click",".chaty-i-trigger:not(.single-channel)",function(){t(this).closest(".chaty").hasClass("form-open")?(t(this).closest(".chaty").removeClass("form-open"),t(this).closest(".chaty-widget").removeClass("chaty-open")):t(this).closest(".chaty-widget").toggleClass("chaty-open"),t(".chaty-outer-forms").removeClass("active"),t(this).closest(".chaty").find(".chaty-widget").hasClass("chaty-no-close-button")&&t(this).closest(".chaty").find(".chaty-widget").addClass("chaty-open")}),s||t(document).on("mouseover","body:not(.chaty-in-mobile) .chaty.open-on-hover .chaty-i-trigger:not(.single-channel)",function(){t(this).closest(".chaty-widget").hasClass("chaty-open")||t(this).closest(".chaty-widget").hasClass("on-chaty-widget")||(t(this).closest(".chaty-widget").addClass("on-chaty-widget"),t(this).find(".chaty-cta-main").trigger("click"))}).on("mouseleave","body:not(.chaty-in-mobile) .chaty.open-on-hover .chaty-i-trigger:not(.single-channel)",function(){t(this).closest(".chaty-widget").hasClass("chaty-open")||t(this).closest(".chaty-widget").removeClass("on-chaty-widget")}),t(document).on("click",".chaty-channel",function(a){var n,i,c=[],o=0,l=t(this).closest(".chaty").data("id");if(void 0!==l&&void 0!==t("#chaty-widget-"+l).data("identifier")){var r=t("#chaty-widget-"+l).data("user");if(function(a){if(t("#chaty-widget-"+a).data("animation")!=e&&"none"!=t("#chaty-widget-"+a).data("animation")){var n="chaty-animation-"+t("#chaty-widget-"+a).data("animation");t("#chaty-widget-"+a+" ."+n).removeClass(n)}}(l),t(this).hasClass("chaty-cta-main")||t(this).hasClass("chaty-cta-close")){if(n=E(l,"c-widget"),t("#chaty-widget-"+l).find(".ch-pending-msg").remove(),n&&(P(l,"c-widget"),t(this).hasClass("chaty-cta-main"))){c=[],t("#chaty-widget-"+l+" .chaty-channel-list").find(".chaty-channel").each(function(){i=t(this).data("channel"),(n=E(l,"v-"+i))&&void 0!==i&&(P(l,"v-"+i),c.push(i))});var d=t("#chaty-widget-"+l).data("nonce");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:l,userId:r,isMobile:s,channels:c,isSingle:0,nonce:d,action:"update_chaty_widget_click"},method:"post"})}t("#chaty-widget-"+l).hasClass("first_click")&&(t("#chaty-widget-"+l+" .chaty-cta-main").removeClass("active"),t("#chaty-widget-"+l+" .chaty-cta-main").removeClass("chaty-tooltip"))}else if(t(this).hasClass("single")){t("#chaty-widget-"+l).find(".ch-pending-msg").remove(),n=E(l,"c-widget");d=t("#chaty-widget-"+l).data("nonce");n&&(P(l,"c-widget"),o=0,c=[],i=t(this).data("channel"),(n=E(l,"c-"+i))&&(c.push(i),o=1),h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:l,userId:r,isMobile:s,channels:c,isSingle:o,nonce:d,action:"update_chaty_widget_click"},method:"post"})),t("#chaty-widget-"+l).hasClass("first_click")&&(t("#chaty-widget-"+l+" .chaty-tooltip").removeClass("chaty-tooltip"),t("#chaty-widget-"+l+" .single-channel a").addClass("chaty-tooltip"))}else if(t(this).hasClass("chaty-channel")&&(i=t(this).data("channel"),n=E(l,"c-"+i))){P(l,"c-"+i);d=t("#chaty-widget-"+l).data("nonce");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:l,userId:r,isMobile:s,channel:i,nonce:d,action:"update_chaty_channel_click"},method:"post"})}}}),t(document).on("submit",".chaty-ajax-contact-form",function(e){e.preventDefault();var a=0;if(t(this).find(".has-chaty-error").each(function(){t(this).removeClass("has-chaty-error")}),t(this).find(".chaty-error-msg").remove(),t(this).find(".chaty-ajax-error-message").remove(),t(this).find(".chaty-ajax-success-message").remove(),t(this).find(".is-required").each(function(){""==jQuery.trim(t(this).val())&&(a++,t(this).addClass("has-chaty-error"))}),0==a){var n=t(this);t(".chaty-contact-submit-btn").attr("disabled",!0),jQuery.ajax({url:chaty_settings.ajax_url,data:{action:"chaty_front_form_save_data",name:n.find(".field-name").length?n.find(".field-name").val():"",email:n.find(".field-email").length?n.find(".field-email").val():"",phone:n.find(".field-phone").length?n.find(".field-phone").val():"",message:n.find(".field-message").length?n.find(".field-message").val():"",nonce:n.data("token"),channel:n.data("channel"),widget:n.data("index"),ref_url:window.location.href},type:"post",async:!0,defer:!0,success:function(e){if(e=jQuery.parseJSON(e),t(".chaty-ajax-error-message").remove(),t(".chaty-ajax-success-message").remove(),t(".chaty-contact-submit-btn").attr("disabled",!1),1==e.status)t(".chaty-contact-inputs").append("<div class='chaty-ajax-success-message'>"+e.message+"</div>"),t(".field-name, .field-email, .field-message, .field-phone").val(""),"yes"==e.redirect_action&&("yes"==e.link_in_new_tab?window.open(e.redirect_link,"_blank"):window.location=e.redirect_link),"yes"==e.close_form_after&&setTimeout(function(){if(t(".chaty-outer-forms.active").length){var e=t(".chaty-outer-forms.active").data("widget");j(e)&&0!=e||t("#chaty-widget-"+e).length&&(t("#chaty-widget-"+e).removeClass("form-open"),t(".chaty-outer-forms.active").removeClass("active"),t("#chaty-widget-"+e).find(".chaty-widget").hasClass("chaty-no-close-button")&&t("#chaty-widget-"+e).find(".chaty-widget").addClass("chaty-open"))}},1e3*parseInt(e.close_form_after_seconds));else if(1==e.error){if(e.errors.length)for(var a=0;a<e.errors.length;a++)t("."+e.errors[a].field).addClass("has-chaty-error"),t("."+e.errors[a].field).after("<span class='chaty-error-msg'>"+e.errors[a].message+"</span>")}else t(".chaty-contact-inputs").append("<div class='chaty-ajax-error-message'>"+e.message+"</div>")}})}else t(".has-chaty-error:first").focus();return!1}),t(document).on("click",".chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel",function(){window.location=t(this).find("a").prop("href")}),t(document).on("click",".chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel a",function(t){t.stopPropagation(),t.stopImmediatePropagation()}),s){if(window.history&&window.history.pushState){function o(){""!==location.hash.split("#!/")[1]&&(""===window.location.hash&&z())}var l=100;window.history.state&&window.history.state.page&&(l=window.history.state.page),window.history.pushState({page:l+1},""),window.history.pushState({page:l+2},""),window.onpopstate=function(){o()},window.history.onpopstate=function(){o()},window.addEventListener("popstate",function(){o()}),document.addEventListener("backbutton",function(){o()}),window.addEventListener("backbutton",function(){o()}),t(window).on("popstate",function(){o()})}}else t(document).mouseleave(function(t){var e,a,n;e=document,a="mouseout",n=function(t){null==t.toElement&&null==t.relatedTarget&&z()},e.addEventListener?(e.addEventListener(a,n,!1),z()):e.attachEvent&&e.attachEvent("on"+a,n)})})});
1
+ function launch_chaty(t){jQuery("#chaty-widget-0").length&&jQuery("#chaty-widget-0 .chaty-cta-button .open-chaty").trigger("click")}function close_chaty(){jQuery(".chaty.active .chaty-open").length&&jQuery(".chaty.active .chaty-open").each(function(){jQuery(this).find(".chaty-cta-close").trigger("click")})}!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t,e){var a,n,i=[],c="",s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))?1:0,o=["System Stack","Arial","Tahoma","Verdana","Helvetica","Times New Roman","Trebuchet MS","Georgia"],h=!1,l=!1,r=0,d=!1,g=!1,y=[],p=0,u=0,f="",m=0;function w(){i.length&&(t.each(i,function(e,a){var n="",s="",h=0,y={},p=function(e){if(B(e.triggers.has_countries)&&!j(e.triggers.countries)&&e.triggers.countries.length&&"-"!=(c=U())&&-1==t.inArray(c,e.triggers.countries))return!1;return!0}(a);if(p=(p=p&&function(t){if(t.triggers.has_date_scheduling_rules){var e=t.triggers.date_scheduling_rules.start_date_time,a=t.triggers.date_scheduling_rules.end_date_time,n=new Date,i=(n=D(n,t.triggers.time_diff)).getFullYear()+"-"+A(n.getMonth()+1)+"-"+A(n.getDate())+" "+A(n.getHours())+":"+A(n.getMinutes())+":"+A(n.getSeconds());return""==a&&e<=i||(""==e&&a>=i||""!=e&&""!=a&&e<=i&&a>=i)}return!0}(a))&&function(t){var e=!0;if(B(t.triggers.has_day_hours_scheduling_rules)&&t.triggers.day_hours_scheduling_rules.length>0){var a=t.triggers.day_hours_scheduling_rules;if(a.length>0){e=!1;for(var n=new Date,i=(n=D(n,t.triggers.day_time_diff)).getHours(),c=n.getMinutes(),s=n.getDay(),o=0;o<a.length;o++){var h=0,l=0;-1==a[o].days?l=1:a[o].days>=0&&a[o].days<=6?a[o].days==s&&(l=1):7==a[o].days?s>=0&&s<=4&&(l=1):8==a[o].days?s>=1&&s<=5&&(l=1):9==a[o].days&&(5!=s&&6!=s||(l=1)),1==l&&(i>a[o].start_hours&&i<a[o].end_hours?h=1:i==a[o].start_hours&&i<a[o].end_hours?c>=a[o].start_min&&(h=1):i>a[o].start_hours&&i==a[o].end_hours?c<=a[o].end_min&&(h=1):i==a[o].start_hours&&i==a[o].end_hours&&c>=a[o].start_min&&c<=a[o].end_min&&(h=1),1==h&&c>=a[o].start_min&&c<=a[o].end_min&&1),1==h&&1==l&&(e=1),1==e&&(o=a.length+1)}}}return e}(a),t.each(a.channels,function(t,e){v(e)&&(h++,y=e)}),p&&h>0&&!t("#chaty-widget-"+a.id).length){var u=T(a.settings);u="right"==u?"right":"left";var f=function(t){if("vertical"!=t.settings.icon_view)return"top";if("right"==T(t.settings))return"left";return"right"}(a),m="<div style='display: none' class='chaty chaty-id-"+a.id+" chaty-widget-"+a.id+" chaty-key-"+e+"' id='chaty-widget-"+a.id+"' data-key='"+e+"' data-id='"+a.id+"' data-identifier='"+a.identifier+"' data-nonce='"+a.settings.widget_token+"' ><div class='chaty-widget "+u+"-position'><div class='chaty-channels'><div class='chaty-channel-list'></div><div class='chaty-i-trigger'></div></div></div></div>";t("body").append(m),B(a.triggers.auto_hide_widget)&&parseInt(a.triggers.hide_after)>0&&(t("#chaty-widget-"+a.id).addClass("auto-hide-chaty"),t("#chaty-widget-"+a.id).attr("data-time",a.triggers.hide_after));var w=E(a.id,"c-widget");if(t("#chaty-widget-"+a.id).addClass(a.settings.show_cta),1==h){"vertical"!=a.settings.icon_view&&(f="right"!=u?"right":"left");var x=b(y,a.id,f);t("#chaty-widget-"+a.id+" .chaty-i-trigger").html(x),t("#chaty-widget-"+a.id+" .chaty-i-trigger").addClass("single-channel"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").addClass("single"),t("#chaty-widget-"+a.id+" .chaty-widget").addClass("has-single");var C=a.settings.cta_text;"first_click"==a.settings.show_cta&&(w?(t("#chaty-widget-"+a.id+" .chaty-tooltip").removeClass("chaty-tooltip"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").attr("data-hover",C),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").attr("data-hover",C),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").addClass("active").addClass("chaty-tooltip").addClass("pos-"+f)):(t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").removeClass("active"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").attr("data-hover",C))),"all_time"==a.settings.show_cta&&t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-tooltip").attr("data-hover",C).addClass("active");var k=y;("Instagram"!=k.channel_type||"#ffffff"!=k.icon_color&&"#fff"!=k.icon_color)&&(n+="#chaty-widget-"+a.id+" ."+k.channel_type+"-channel .color-element{ fill: "+k.icon_color+"; color: "+k.icon_color+";}",n+="#chaty-widget-"+a.id+" .channel-icon-"+k.channel_type+" .color-element{ fill: "+k.icon_color+"; color: "+k.icon_color+";}"),n+="#chaty-widget-"+a.id+" ."+k.channel_type+"-channel .chaty-custom-icon { background-color: "+k.icon_color+"; }",n+="#chaty-widget-"+a.id+" ."+k.channel_type+"-channel .chaty-svg { background-color: "+k.icon_color+";}",n+="#chaty-widget-"+a.id+" .channel-icon-"+k.channel_type+" .chaty-svg { background-color: "+k.icon_color+";}"}else{t.each(a.channels,function(e,i){if(v(i)){M(i.channel_type)&&(i.channel_type=i.channel);var c=b(i,a.id,f);t("#chaty-widget-"+a.id+" .chaty-channel-list").append(c),("Instagram"!=i.channel_type||"#ffffff"!=i.icon_color&&"#fff"!=i.icon_color)&&(n+="#chaty-widget-"+a.id+" ."+i.channel_type+"-channel .color-element{ fill: "+i.icon_color+"; color: "+i.icon_color+";}",n+="#chaty-widget-"+a.id+" .channel-icon-"+i.channel_type+" .color-element{ fill: "+i.icon_color+"; color: "+i.icon_color+";}"),n+="#chaty-widget-"+a.id+" ."+i.channel_type+"-channel .chaty-custom-icon { background-color: "+i.icon_color+"; }",n+="#chaty-widget-"+a.id+" ."+i.channel_type+"-channel .chaty-svg { background-color: "+i.icon_color+";}",n+="#chaty-widget-"+a.id+" .channel-icon-"+i.channel_type+" .chaty-svg { background-color: "+i.icon_color+";}"}});var I=function(t,e){""==t.widget_icon?t.widget_icon="chat-base":"chat-image"==t.widget_icon&&j(t.widget_icon_url)&&(t.widget_icon="chat-base");return"chat-image"==t.widget_icon?"<span class='chaty-svg' style='background: "+t.widget_color+"'><img src='"+t.widget_icon_url+"' alt='Chaty Widget' /></span>":'<span class="chaty-svg">'+function(t,e){switch(t){case"chat-smile":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496.8 507.1 54 54" style="enable-background:new -496.8 507.1 54 54;" xml:space="preserve"><style type="text/css">.chaty-sts1{fill:#FFFFFF;} .chaty-sts2{fill:none;stroke:#808080;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}</style><g><circle cx="-469.8" cy="534.1" r="27" fill="'+e+'"/></g><path class="chaty-sts1" d="M-459.5,523.5H-482c-2.1,0-3.7,1.7-3.7,3.7v13.1c0,2.1,1.7,3.7,3.7,3.7h19.3l5.4,5.4c0.2,0.2,0.4,0.2,0.7,0.2c0.2,0,0.2,0,0.4,0c0.4-0.2,0.6-0.6,0.6-0.9v-21.5C-455.8,525.2-457.5,523.5-459.5,523.5z"/><path class="chaty-sts2" d="M-476.5,537.3c2.5,1.1,8.5,2.1,13-2.7"/><path class="chaty-sts2" d="M-460.8,534.5c-0.1-1.2-0.8-3.4-3.3-2.8"/></svg>';case"chat-bubble":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496.9 507.1 54 54" style="enable-background:new -496.9 507.1 54 54;" xml:space="preserve"><style type="text/css">.chaty-sts1{fill:#FFFFFF;}</style><g><circle cx="-469.9" cy="534.1" r="27" fill="'+e+'"/></g><path class="chaty-sts1" d="M-472.6,522.1h5.3c3,0,6,1.2,8.1,3.4c2.1,2.1,3.4,5.1,3.4,8.1c0,6-4.6,11-10.6,11.5v4.4c0,0.4-0.2,0.7-0.5,0.9 c-0.2,0-0.2,0-0.4,0c-0.2,0-0.5-0.2-0.7-0.4l-4.6-5c-3,0-6-1.2-8.1-3.4s-3.4-5.1-3.4-8.1C-484.1,527.2-478.9,522.1-472.6,522.1z M-462.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-464.6,534.6-463.9,535.3-462.9,535.3z M-469.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-471.7,534.6-471,535.3-469.9,535.3z M-477,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-478.8,534.6-478.1,535.3-477,535.3z"/></svg>';case"chat-db":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.1 54 54" style="enable-background:new -496 507.1 54 54;" xml:space="preserve"><style type="text/css">.chaty-sts1{fill:#FFFFFF;}</style><g><circle cx="-469" cy="534.1" r="27" fill="'+e+'"/></g><path class="chaty-sts1" d="M-464.6,527.7h-15.6c-1.9,0-3.5,1.6-3.5,3.5v10.4c0,1.9,1.6,3.5,3.5,3.5h12.6l5,5c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18.2C-461.1,529.3-462.7,527.7-464.6,527.7z"/><path class="chaty-sts1" d="M-459.4,522.5H-475c-1.9,0-3.5,1.6-3.5,3.5h13.9c2.9,0,5.2,2.3,5.2,5.2v11.6l1.9,1.9c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18C-455.9,524.1-457.5,522.5-459.4,522.5z"/></svg>';default:return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.7 54 54" style="enable-background:new -496 507.7 54 54;" xml:space="preserve"><style type="text/css">.chaty-sts1{fill: #FFFFFF;}.chaty-st0{fill: #808080;}</style><g><circle cx="-469" cy="534.7" r="27" fill="'+e+'"/></g><path class="chaty-sts1" d="M-459.9,523.7h-20.3c-1.9,0-3.4,1.5-3.4,3.4v15.3c0,1.9,1.5,3.4,3.4,3.4h11.4l5.9,4.9c0.2,0.2,0.3,0.2,0.5,0.2 h0.3c0.3-0.2,0.5-0.5,0.5-0.8v-4.2h1.7c1.9,0,3.4-1.5,3.4-3.4v-15.3C-456.5,525.2-458,523.7-459.9,523.7z"/><path class="chaty-st0" d="M-477.7,530.5h11.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-11.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,530.8-478.2,530.5-477.7,530.5z"/><path class="chaty-st0" d="M-477.7,533.5h7.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-7.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,533.9-478.2,533.5-477.7,533.5z"/></svg>'}}(t.widget_icon,t.widget_color)+"</span>"}(a.settings,a.id);C=a.settings.cta_text;"first_click"==a.settings.show_cta&&(w||(C=""));var S=f;"horizontal"==a.settings.icon_view&&(S="left"==u?"right":"left");var z='<div class="chaty-channel chaty-cta-main chaty-tooltip pos-'+S+' active" data-widget="'+a.id+'" data-hover="'+C+'"><div class="chaty-cta-button"><button type="button" class="open-chaty">'+I+'</button><button type="button" class="open-chaty-channel"></button></div></div>';t("#chaty-widget-"+a.id+" .chaty-i-trigger").html(z);var F='<div class="chaty-channel chaty-cta-close chaty-tooltip pos-'+f+'" data-hover="'+a.settings.close_text+'"><div class="chaty-cta-button"><button type="button"><span class="chaty-svg"><svg viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="26" cy="26" rx="26" ry="26" fill="'+a.settings.widget_color+'"></ellipse><rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)" fill="white"></rect><rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)" fill="white"></rect></svg></span></button></div></div>';t("#chaty-widget-"+a.id+" .chaty-i-trigger").append(F)}!(w=E(a.id,"c-widget"))||"open"==a.settings.default_state&&1!=h||(function(e,a){E(a,"c-widget")&&B(e.is_pending_mesg_enabled)&&parseInt(e.pending_mesg_count)>0&&(t("#chaty-widget-"+a+" .chaty-widget").hasClass("has-single")?"sheen"==e.attention_effect||"spin"==e.attention_effect||"pulse"==e.attention_effect?t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-channel").append("<span class='ch-pending-msg'>"+e.pending_mesg_count+"</span>"):t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-channel .chaty-svg").append("<span class='ch-pending-msg'>"+e.pending_mesg_count+"</span>"):"jump"==e.attention_effect||"waggle"==e.attention_effect||"blink"==e.attention_effect||"pulse-icon"==e.attention_effect?t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-cta-main .chaty-cta-button").append("<span class='ch-pending-msg'>"+e.pending_mesg_count+"</span>"):t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-cta-main").append("<span class='ch-pending-msg'>"+e.pending_mesg_count+"</span>"))}(a.settings,a.id),function(e,a){E(a,"c-widget")&&"none"!=e.attention_effect&&""!=e.attention_effect&&(t("#chaty-widget-"+a).attr("data-animation",e.attention_effect),t("#chaty-widget-"+a+" .chaty-widget").hasClass("has-single")?t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-channel .chaty-svg").addClass("chaty-animation-"+e.attention_effect):t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-cta-main .chaty-cta-button").addClass("chaty-animation-"+e.attention_effect))}(a.settings,a.id));var P=0;"open"!=a.settings.default_state||B(a.settings.show_close_button)||(t("#chaty-widget-"+a.id+" .chaty-widget").addClass("chaty-no-close-button").addClass("chaty-open"),P=1),B(a.settings.is_google_analytics_enabled)&&(t("#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel").addClass("has-gae"),t("#chaty-widget-"+a.id+" .chaty-i-trigger.single-channel .chaty-channel").addClass("has-gae"),t(".chaty-outer-forms.chaty-whatsapp-form.chaty-form-"+a.id+" form.add-analytics").addClass("form-google-analytics")),B(a.settings.has_custom_css)&&!j(a.settings.custom_css)&&(s+=a.settings.custom_css),"hover"==a.settings.default_state?t("#chaty-widget-"+a.id).addClass("open-on-hover"):"open"==a.settings.default_state&&(t("#chaty-widget-"+a.id+" .chaty-widget").addClass("default-open"),!w&&B(a.settings.show_close_button)||t("#chaty-widget-"+a.id+" .chaty-widget").addClass("chaty-open"));var N=function(t,e){return t}(a.settings.widget_size,a.settings.custom_widget_size);if(N=parseInt(N),n+="#chaty-widget-"+a.id+" .chaty-channel {width: "+N+"px; height: "+N+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel > a {width: "+N+"px; height: "+N+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel > a .chaty-custom-icon {display:block; width: "+N+"px; height: "+N+"px; line-height: "+N+"px; font-size: "+parseInt(N/2)+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel button {width: "+N+"px; height: "+N+"px; margin: 0; padding:0; outline: none; border-radius: 50%;}",n+="#chaty-widget-"+a.id+" .chaty-channel .chaty-svg {width: "+N+"px; height: "+N+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel .chaty-svg img {width: "+N+"px; height: "+N+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel span.chaty-icon {width: "+N+"px; height: "+N+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel a {width: "+N+"px; height: "+N+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: "+N+"px; height: "+N+"px; line-height: "+N+"px; display: block; font-size:"+parseInt(N/2)+"px; }",n+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-cta-button {background: "+a.settings.widget_color+"; }","vertical"==a.settings.icon_view){n+="#chaty-widget-"+a.id+" .chaty-channel-list {height: "+h*(N+8)+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel-list {width: "+(N+8)+"px; }";for(var q=0;q<=h;q++)n+="#chaty-widget-"+a.id+" .chaty-open .chaty-channel-list .chaty-channel:nth-child("+(q+1)+") {-webkit-transform: translateY(-"+(N+8)*(h-q-P)+"px); transform: translateY(-"+(N+8)*(h-q-P)+"px);}"}else{t("#chaty-widget-"+a.id+" .chaty-widget").addClass("hor-mode"),n+="#chaty-widget-"+a.id+" .chaty-channel-list {width: "+h*(N+8)+"px; }",n+="#chaty-widget-"+a.id+" .chaty-channel-list {height: "+N+"px; }";for(q=0;q<=h;q++)n+="#chaty-widget-"+a.id+" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(q+1)+") {-webkit-transform: translateX("+(N+8)*(h-q-P)+"px); transform: translateX("+(N+8)*(h-q-P)+"px);}",n+="#chaty-widget-"+a.id+" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(q+1)+") {-webkit-transform: translateX(-"+(N+8)*(h-q-P)+"px); transform: translateX(-"+(N+8)*(h-q-P)+"px);}"}var W=a.settings.bottom_spacing,L=a.settings.side_spacing;if(n+="#chaty-widget-"+a.id+" .chaty-widget {bottom: "+W+"px}","left"==u?(n+="#chaty-widget-"+a.id+" .chaty-widget {left: "+L+"px; right: auto;}",n+=".chaty-outer-forms.pos-left.chaty-form-"+a.id+" {left: "+L+"px}",t(".chaty-form-"+a.id).addClass("pos-left")):(n+="#chaty-widget-"+a.id+" .chaty-widget {right: "+L+"px; left:auto;}",t(".chaty-form-"+a.id).addClass("pos-right"),n+=".chaty-outer-forms.pos-right.chaty-form-"+a.id+" {right: "+L+"px; left:auto;}"),t(".chaty-form-"+a.id).show(),n+="#chaty-widget-"+a.id+" .chaty-tooltip:after {background-color: "+a.settings.cta_bg_color+"; color: "+a.settings.cta_text_color+"}",n+="#chaty-widget-"+a.id+" .chaty-tooltip.top:before {border-top-color: "+a.settings.cta_bg_color+"; }",n+="#chaty-widget-"+a.id+" .chaty-tooltip.left:before {border-left-color: "+a.settings.cta_bg_color+"; }",n+="#chaty-widget-"+a.id+" .chaty-tooltip.right:before {border-right-color: "+a.settings.cta_bg_color+";}",E(a.id,"v-widget")&&(B(a.triggers.exit_intent)||B(a.triggers.has_time_delay)&&parseInt(a.triggers.time_delay)>0||B(a.triggers.has_display_after_page_scroll)&&parseInt(a.triggers.display_after_page_scroll)>0)?(B(a.triggers.has_time_delay)&&parseInt(a.triggers.time_delay)>0&&(l=!0,parseInt(a.triggers.time_delay)>r&&(r=a.triggers.time_delay),t("#chaty-widget-"+a.id).addClass("on-chaty-delay"),t("#chaty-widget-"+a.id).addClass("delay-time-"+parseInt(a.triggers.time_delay)),t("#chaty-widget-"+a.id).attr("data-time",parseInt(a.triggers.time_delay))),B(a.triggers.has_display_after_page_scroll)&&parseInt(a.triggers.display_after_page_scroll)>0&&(d=!0,t("#chaty-widget-"+a.id).addClass("on-chaty-scroll"),t("#chaty-widget-"+a.id).addClass("page-scroll-"+parseInt(a.triggers.display_after_page_scroll)),t("#chaty-widget-"+a.id).attr("data-scroll",parseInt(a.triggers.display_after_page_scroll))),B(a.triggers.exit_intent)&&(g=!0,t("#chaty-widget-"+a.id).addClass("on-chaty-exit-intent"))):(_(a.id),t("#chaty-widget-"+a.id).addClass("active")),!j(a.settings.font_family)&&"none"!=a.settings.font_family){var O=a.settings.font_family;-1!=t.inArray(O,o)?"System Stack"==O&&(O="-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"):(t("head").append('<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family='+O+'&display=swap">'),t("head").append('<link rel="stylesheet" href="https://fonts.googleapis.com/css?family='+O+'&display=swap">')),n+="#chaty-widget-"+a.id+", #chaty-widget-"+a.id+" .chaty-tooltip:after {font-family: "+O+"}"}}""!=n&&(t("#custom-chaty-css").length||t("head").append("<style id='custom-chaty-css'></style>"),t("#custom-chaty-css").append(n)),""!=s&&(t("#custom-advance-chaty-css").length||t("head").append("<style id='custom-advance-chaty-css'></style>"),t("#custom-advance-chaty-css").append(s)),i.length}),t("#custom-advance-chaty-css").length||t("head").append("<style id='custom-advance-chaty-css'></style>"),t("#custom-advance-chaty-css").append(f)),t(".chaty-tooltip").each(function(){""==t(this).data("hover")&&t(this).removeClass("left").removeClass("right").removeClass("top").removeClass("chaty-tooltip")}),function(){t(".chaty.auto-hide-chaty").length&&(n=setInterval(function(){var e=++m;if(t(".chaty.auto-hide-chaty.hide-after-"+m).length){var a=t(".chaty.auto-hide-chaty.hide-after-"+e).data("id");t(".chaty-form-"+a).removeClass("active"),t(".chaty.auto-hide-chaty.hide-after-"+e).removeClass("active"),t("#chaty-widget-0"+a).removeClass("auto-hide-chaty")}0==t(".chaty.auto-hide-chaty").length&&clearInterval(n)},1e3));l&&(a=setInterval(function(){if(t(".chaty.delay-time-"+ ++p).length){var e=t(".chaty.delay-time-"+p).data("id");F(e)}},1e3));if(d){t(window).on("scroll",function(){if(d){var e=t(document).height()-t(window).height(),a=t(window).scrollTop();if(0!=e){var n=parseInt(a/e*100);if(u<=n){var i=u;u=n;for(var c=i;c<=n;c++)-1==t.inArray(c,y)&&t(".chaty.on-chaty-scroll.page-scroll-"+c).length&&t(".chaty.on-chaty-scroll.page-scroll-"+c).each(function(){var e=t(this).data("id");t(this).removeClass("on-chaty-scroll"),F(e)});u=n}}}});window.innerWidth,document.documentElement.clientWidth}}()}function v(t){if(B(t.is_agent)){if(t.agent_data.length&&(!s&&B(t.is_agent_desktop)||s&&B(t.is_agent_mobile)))return!0}else if((!s&&B(t.is_desktop)||s&&B(t.is_mobile))&&(""!=t.value||"Contact_Us"==t.channel))return!0;return!1}function _(a){if(t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open").length){var n=t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open a.chaty-whatsapp-form").data("form");if(!j(n))if(E(a,"c-"+t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open").data("channel"))&&(t("#"+n).addClass("is-active"),t("#"+n).length)){var c=t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open a.chaty-whatsapp-form").html();if(t("#chaty-widget-"+a+" .chaty-widget").removeClass("chaty-open"),t("#chaty-widget-"+a).addClass("form-open"),t("#"+n).addClass("active"),t("#chaty-widget-"+a+" .open-chaty-channel").html(c),t("#chaty-widget-"+a).addClass("active"),t("#chaty-widget-"+a).addClass("active"),t("#chaty-widget-"+a).hasClass("auto-hide-chaty"))(o=parseInt(t("#chaty-widget-"+a).data("time")))>0&&(o+=m,t("#chaty-widget-"+a).addClass("hide-after-"+o));return}}var o;(t("#chaty-widget-"+a).addClass("active"),t("#chaty-widget-"+a).hasClass("auto-hide-chaty"))&&((o=parseInt(t("#chaty-widget-"+a).data("time")))>0&&(o+=m,t("#chaty-widget-"+a).addClass("hide-after-"+o)));var l=E(a,"v-widget");if(l){P(a,"v-widget");t("#chaty-widget-"+a).data("user");var r,d=[],g=0,y=0,p=t("#chaty-widget-"+a).data("key");if(typeof i[p]!=e){var u=q("activechatyWidgets");null!=u?(u=u.split(","),-1==t.inArray(a,u)&&(u.push(a),N("activechatyWidgets",u=u.join(","),1))):N("activechatyWidgets",u=a,1)}if(t("#chaty-widget-"+a+" .chaty-widget").hasClass("has-single"))g=1,r=t("#chaty-widget-"+a+" .chaty-channel").data("channel"),E(a,"v-"+r)&&void 0!==r&&(P(a,"v-"+r),d.push(r));else t("#chaty-widget-"+a+" .chaty-widget").hasClass("chaty-open")&&(y=1,t("#chaty-widget-"+a+" .chaty-channel-list .chaty-channel").each(function(){r=t(this).data("channel"),E(a,"v-"+r)&&void 0!==r&&(P(a,"v-"+r),d.push(r))}));if(l&&!h){var f=t("#chaty-widget-"+a).data("nonce");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:a,channels:d,userId:a,isMobile:s,isOpen:y,isSingle:g,widgetNonce:f,action:"update_chaty_widget_views"},type:"post",success:function(t){},error:function(t,e,a){monitorErrorLog(t,e,a)}})}}}function b(e,a,n){var i="";if(!B(e.is_agent)){M(e.channel_type)&&(e.channel_type=e.channel);o=k(e,S(e),n,a);if("Contact_Us"==e.channel_type)i+=" has-chaty-box chaty-contact-form";else if("Whatsapp"==e.channel_type){if(B(e.has_welcome_message)&&!j(e.chat_welcome_message))if(B(e.is_default_open))E(a,"c-"+e.channel_type)&&(i+=" chaty-default-open")}return"<div class='chaty-channel "+e.channel+"-channel"+i+"' id='"+e.channel+"-"+a+"-channel' data-id='"+e.channel_type+"-"+a+"' data-widget='"+a+"' data-channel='"+e.channel+"'>"+o+"</div>"}if(e.agent_data.length){var c=0;if(t.each(e.agent_data,function(t,e){""!=e.value&&(c++,e)}),c>0){var o,h=I(a);return null==h&&(h=-1),function(e,a){var n="",i=I(a);null==i&&(i=-1);n+="<div style='display:none;' class='chaty-outer-forms chaty-agent-data chaty-agent-data-"+a+" chaty-form-"+a+"' data-channel='"+e.channel_type+"' id='chaty-form-"+a+"-"+e.channel_type+"' data-widget='"+a+"' data-index='"+i+"'>",n+="<div class='chaty-form'>",n+="<div class='chaty-form-body'>",n+="<div role='button' class='chaty-close-agent-list'><svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 330 330' xmlns:v='https://vecta.io/nano'><path d='M325.607 79.393c-5.857-5.857-15.355-5.858-21.213.001l-139.39 139.393L25.607 79.393c-5.857-5.857-15.355-5.858-21.213.001s-5.858 15.355 0 21.213l150.004 150a15 15 0 0 0 21.212-.001l149.996-150c5.859-5.857 5.859-15.355.001-21.213z'/></svg></div>",n+="<div class='chaty-agent-header agent-info-"+a+"-"+e.channel+"'>",j(e.header_text)||(n+="<div class='agent-main-header'>"+e.header_text+"</div>");j(e.header_sub_text)||(n+="<div class='agent-sub-header'>"+e.header_sub_text+"</div>");n+="</div>",t.each(e.agent_data,function(i,c){if(""!=c.value){var o=c.svg_icon;j(c.agent_image)||(o="<img class='chaty-agent-img' src='"+c.agent_image+"' alt='"+c.agent_title+"' />");var h=function(e,a,n,i,c,o){var h=e.value,l="_blank";if("Whatsapp"==a.channel_type){var r=x(e.value);s?(l="",h="https://wa.me/"+r):(l="_blank",h="https://web.whatsapp.com/?phone="+r)}else"WeChat"==a.channel_type?(l="",h="javascript:;"):"Email"==a.channel_type?(l="",h="mailto:"+e.value):"Facebook_Messenger"==a.channel_type?l=s?"":"_blank":"SMS"==a.channel_type?(l="",h="sms:"+e.value):"Telegram"==a.channel_type?(h="https://telegram.me/"+(h=C(e.value,"@")),l="_blank"):"Twitter"==a.channel_type?h="https://twitter.com/"+t.trim(e.value):"Phone"==a.channel_type?(l="",h="tel:"+t.trim(e.value)):"Skype"==a.channel_type?(l="",h="skype:"+t.trim(e.value)+"?chat"):"Snapchat"==a.channel_type?h="https://www.snapchat.com/add/"+t.trim(e.value):"Vkontakte"==a.channel_type?h="https://vk.me/"+t.trim(e.value):"Linkedin"==a.channel_type?h="personal"==e.link_type?"https://www.linkedin.com/in/"+t.trim(e.value):"https://www.linkedin.com/company/"+t.trim(e.value):"Viber"==a.channel_type?(h=C(e.value,"+"),isNaN(h)||(h=h.replace("+",""),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(h="+"+h),h="viber://chat?number="+h),l=""):"TikTok"==a.channel_type&&(h="https://www.tiktok.com/@"+(h=C(t.trim(e.value),"@")),l="");return"<a href='"+h+"' target='"+l+"'><span class='chaty-agent-icon'>"+c+"</span><span class='chaty-agent-title'>"+o+"</span></a>"}(c,e,0,0,o,c.agent_title);n+="<div class='chaty-agent agent-info-"+a+"-"+e.channel+" agent-info-"+i+"'>"+h+"</div>"}f+=".agent-info-"+a+"-"+e.channel+".agent-info-"+i+" .chaty-agent-icon img { background: "+c.agent_bg_color+"; } ",("Instagram"!=e.channel||"#ffffff"!=c.agent_bg_color&&"#fff"!=c.agent_bg_color)&&(f+=".agent-info-"+a+"-"+e.channel+".agent-info-"+i+" .chaty-agent-icon .color-element { fill: "+c.agent_bg_color+"; } "),f+=".agent-info-"+a+"-"+e.channel+".agent-info-"+i+" .chaty-custom-icon { background: "+c.agent_bg_color+"; } "}),n+="</div>",n+="</div>",n+="</div>",f+=".chaty-agent-header.agent-info-"+a+"-"+e.channel+" { background: "+e.header_bg_color+"; color: "+e.header_text_color+" } ",f+=".agent-info-"+a+"-"+e.channel+" .chaty-close-agent-list svg { fill: "+e.header_text_color+" } ",t("body").append(n)}(e,a),o=k(e,S(e),n,a),("Instagram"!=e.channel||"#ffffff"!=e.icon_color&&"#fff"!=e.icon_color)&&(f+=".chaty-agent-"+a+"-"+e.channel+" .color-element {fill: "+e.icon_color+"; color: "+e.icon_color+";}"),f+=".chaty-agent-"+a+"-"+e.channel+" .chaty-custom-icon { background-color: "+e.icon_color+";}",f+=".chaty-agent-"+a+"-"+e.channel+" .chaty-svg-img { background-color: "+e.icon_color+";}","<div data-form='chaty-form-"+a+"-"+e.channel_type+"' class='chaty-channel chaty-agent-button chaty-agent-"+a+"-"+e.channel+" "+e.channel+"-channel"+i+"' id='"+e.channel+"-"+a+"-channel' data-id='"+e.channel_type+"-"+a+"' data-widget='"+a+"' data-channel='"+e.channel+"'>"+o+"</div>"}}}function x(t){return t=(t=(t=(t=C(t,"+")).replace(/ /g,"")).replace(/-/g,"")).replace(/_/g,"")}function C(e,a){for(e=t.trim(e);e.charAt(0)==a;)e=e.substring(1);for(;e.charAt(e.length-1)==a;)e=e.substring(0,e.length-1);return e}function k(e,a,n,i){var c="";if(B(e.is_agent))e.url="javascript:;",e.target="";else if("Whatsapp"==e.channel_type)if(B(e.has_welcome_message)&&!j(e.chat_welcome_message))e.url="javascript:;",e.target="",c+=" has-chaty-box chaty-whatsapp-form",function(e,a){var n="",i=I(a);null==i&&(i=-1);var c="https://web.whatsapp.com/send",o="";s?c="https://wa.me/"+e.value:(c=B(e.is_use_web_version)?"https://web.whatsapp.com/send":"https://wa.me/"+e.value,o="_blank");n+="<div style='display:none;' class='chaty-outer-forms chaty-form-"+a+"' data-channel='"+e.channel_type+"' id='chaty-form-"+a+"-"+e.channel_type+"' data-widget='"+a+"' data-index='"+i+"'>",n+="<div class='chaty-whatsapp-form'>",n+="<div class='chaty-whatsapp-body'>",n+="<div role='button' class='close-chaty-form is-whatsapp-btn'><div class='chaty-close-button'></div></div>",n+="<div class='chaty-whatsapp-message'></div>",n+="</div>",n+="<div class='chaty-whatsapp-footer'>",n+="<form action='"+c+"' target='"+o+"' class='whatsapp-chaty-form' data-widget='"+a+"' data-channel='"+e.channel_type+"'>",n+="<div class='chaty-whatsapp-data'>",n+="<div class='chaty-whatsapp-field'>",n+="<input name='text' type='text' class='csass-whatsapp-input' />",n+="</div>",n+="<div class='chaty-whatsapp-button'>",n+="<button type='submit' >",n+="<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'><path fill='#ffffff' d='M1.101 21.757L23.8 12.028 1.101 2.3l.011 7.912 13.623 1.816-13.623 1.817-.011 7.912z'></path></svg>",n+="</button>",n+="</div>",n+="</div>",!s&&B(e.is_use_web_version)&&(n+="<input type='hidden' name='phone' value='"+e.value+"' />");if(n+="</form>",n+="</div>",n+="</div>",n+="</div>",t("body").append(n),t("#chaty-form-"+a+"-"+e.channel_type+" .chaty-whatsapp-message").html(e.chat_welcome_message),!j(e.pre_set_message)){var h=e.pre_set_message,l=t("title").text();h=(h=j(l)?h.replace(/{title}/g,""):h.replace(/{title}/g,l)).replace(/{url}/g,window.location),t("#chaty-form-"+a+"-"+e.channel_type+" .csass-whatsapp-input").val(h)}t("#chaty-form-"+a+"-"+e.channel_type).show()}(e,i);else{var o="";if(!j(e.pre_set_message))o=decodeURI(e.pre_set_message),o=(o=j(h=t("title").text())?o.replace(/{title}/g,""):o.replace(/{title}/g,h)).replace(/{url}/g,window.location),o=encodeURIComponent(o);s?(e.target="",e.url="https://wa.me/"+e.value+"?text="+o):(e.target="_blank",B(e.is_use_web_version)?e.url="https://wa.me/"+e.value+"?text="+o:e.url="https://web.whatsapp.com/?phone="+e.value+"&text="+o)}else if("WeChat"==e.channel_type)j(e.qr_code_image_url)||(!function(e,a){var n="",i=I(a);null==i&&(i=-1);n+="<div style='display:none;' class='chaty-outer-forms chaty-form-"+a+"' data-channel='"+e.channel_type+"' id='chaty-form-"+a+"-"+e.channel_type+"' data-widget='"+a+"' data-index='"+i+"'>",n+="<div class='chaty-form'>",n+="<div class='chaty-form-body'>",n+="<div role='button' class='close-chaty-form is-whatsapp-btn'><div class='chaty-close-button'></div></div>",n+="<div class='qr-code-image'><img src='"+e.qr_code_image_url+"' alt='"+e.title+"' /></div>",n+="</div>",n+="</div>",n+="</div>",t("body").append(n)}(e,i),e.url="javascript:;",e.target="",c+=" has-chaty-box chaty-qr-code-form");else if("Contact_Us"==e.channel_type)!function(e,a){var n="",i=I(a);null==i&&(i=-1);n+="<div style='display:none;' class='chaty-outer-forms chaty-contact-form-box chaty-form-"+a+"' data-channel='"+e.channel_type+"' id='chaty-form-"+a+"-"+e.channel_type+"' data-widget='"+a+"' data-index='"+i+"'>",n+="<div class='chaty-form'>",n+="<div class='chaty-form-body'>",n+="<div role='button' class='close-chaty-form'><div class='chaty-close-button'></div></div>",n+="<form class='chaty-ajax-contact-form' id='chaty-ajax-contact-form-"+i+"' method='post' data-channel='"+e.channel_type+"' data-widget='"+a+"' data-token='"+e.widget_token+"' data-index='"+e.widget_index+"'>",n+="<div class='chaty-contact-form-body'>",n+="<div class='chaty-contact-form-title'>"+e.contact_form_settings.contact_form_title+"</div>",n+="<div class='chaty-contact-inputs'>",t.each(e.contact_fields,function(t,e){n+="<div class='chaty-contact-input'>";var i=B(e.is_required)?"is-required":"";"textarea"==e.type?n+="<textarea type='"+e.type+"' class='chaty-textarea-field "+i+" field-"+e.field+"' placeholder='"+e.placeholder+"' name='"+e.field+"' id='"+e.field+"-"+a+"' ></textarea>":n+="<input type='"+e.type+"' class='chaty-input-field "+i+" field-"+e.field+"' placeholder='"+e.placeholder+"' name='"+e.field+"' id='"+e.field+"-"+a+"' />",n+="</div>"}),n+="<div class='chaty-contact-form-button'><button type='submit' id='chaty-submit-button-"+a+"' class='chaty-submit-button'>"+e.contact_form_settings.button_text+"</button></div>",n+="</div>",n+="</div>",n+="</form>",n+="</div>",n+="</div>",n+="</div>",t("body").append(n)}(e,i),e.url="javascript:;",e.target="",c+=" has-chaty-box chaty-contact-us-form";else if("Email"==e.channel_type){if(!j(e.mail_subject)){var h,l=decodeURI(e.mail_subject);l=(l=j(h=t("title").text())?l.replace(/{title}/g,""):l.replace(/{title}/g,h)).replace(/{url}/g,window.location),l=encodeURIComponent(l),e.url+="?subject="+l}}else"Viber"==e.channel_type?(e.value=C(e.value,"+"),s&&!isNaN(e.value)&&navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(e.value="+"+e.value),e.url="viber://chat?number="+e.value,e.target=""):"Vkontakte"==e.channel_type&&(e.url="https://vk.me/"+t.trim(e.value));var r="";return j(e.click_event)||(r='onclick="'+e.click_event+'"',e.target="",e.url="javascript:;"),"<a href='"+e.url+"' "+r+" target='"+e.target+"' class='chaty-tooltip pos-"+n+c+"' data-form='chaty-form-"+i+"-"+e.channel_type+"' data-hover='"+e.hover_text+"'>"+a+"</a>"}function I(e){var a=null;return i.length&&t.each(i,function(t,n){n.id==e&&(a=t)}),a}function j(e){return null==e||""==e||""==t.trim(e)}function S(t){return""!=t.custom_image_url&&"null"!=t.custom_image_url?"<span class='channel-icon-"+t.channel_type+"'><span class='chaty-svg chaty-svg-img'><img src='"+t.custom_image_url+"' alt='"+t.hover_text+"' /></span></span>":"<span class='channel-icon-"+t.channel_type+"'><span class='chaty-svg'>"+t.svg_icon+"</span></span>"}function M(e){return""==e||""==t.trim(e)||null==e||"null"==e}function T(t){return"custom"==t.position?t.custom_position:t.position}function z(){g&&t(".on-chaty-exit-intent").length&&t(".on-chaty-exit-intent").each(function(){var e=t(this).data("id");t(this).removeClass("on-chaty-exit-intent"),F(e),t("#chaty-widget-"+e+" .chaty-widget").append("<div class='chaty-exit-intent'></div>"),setTimeout(function(){t(".chaty-exit-intent").addClass("animate"),setTimeout(function(){t(".chaty-exit-intent").removeClass("animate")},2500)},500)})}function F(e){_(e),t(".chaty-widget-"+e).removeClass("on-chaty-delay"),t(".chaty-widget-"+e).removeClass("on-chaty-exit-intent"),t(".chaty-widget-"+e).removeClass("on-chaty-scroll"),t(".chaty.on-chaty-delay").length||(clearInterval(a),l=!1),t(".chaty.on-chaty-exit-intent").length||(g=!1),t(".chaty.on-chaty-scroll").length||(d=!1)}function A(t){for(t=t.toString();t.length<2;)t="0"+t;return t}function B(t){return"1"==t||1==t||1==t||"true"==t||"yes"==t||"on"==t}function D(t,e){if(isNaN(e)){var a=new Date(t.toLocaleString("en-US",{timeZone:e})),n=t.getTime()-a.getTime();return new Date(t.getTime()-n)}var i=new Date;if(i=i.toLocaleString("en-US",{timeZone:"UTC"}),i=new Date(i),-1!=e.indexOf("+")){var c=e.replace("+",""),s=parseInt(c),o=60*parseFloat(c%s);(o=i.getUTCMinutes()+o)>59&&(s+=parseInt(o/60),o%=60),i.setUTCHours(i.getUTCHours()+s,o)}else if(-1!=e.indexOf("-")){c=e.replace("-",""),s=parseInt(c),o=60*parseFloat(c%s);(o=i.getUTCMinutes()-o)<0&&(s-=parseInt(o/60),o%=60),i.setUTCHours(i.getUTCHours()-s,-o)}n=t.getTime()-i.getTime();return new Date(t.getTime()-n)}function U(){return c="","undefined"!=typeof Storage&&null!=window.sessionStorage.getItem("chaty_user_country_code")?c=window.sessionStorage.getItem("chaty_user_country_code"):W("chaty_user_country_code")&&(c=q("chaty_user_country_code")),c}function P(t,e){var a=q("chatyWidget_"+t),n=[];null!=a&&""!=a&&(n=JSON.parse(a));var i=!1;if(n.length>0)for(var c=0;c<n.length;c++)n[c].k==e&&(i=!0,n[c].v=new Date);i||n.push({k:e,v:new Date}),N("chatyWidget_"+t,a=JSON.stringify(n),"7")}function E(t,e){var a=function(t,e){var a=q("chatyWidget_"+t),n=[];if(null!=a&&""!=a&&(n=JSON.parse(a)),n.length>0)for(var i=0;i<n.length;i++)if(n[i].k==e)return n[i].v;return null}(t,e);if(null!=a&&""!=a){a=new Date(a);var n=Math.abs(new Date-a);return Math.floor(n/864e5)>=2}return!0}function N(t,e,a){var n=new Date;n.setTime(n.getTime()+24*a*60*60*1e3);var i="expires="+n.toUTCString();document.cookie=t+"="+e+"; "+i+"; path=/; SameSite=Lax"}function q(t){t+="=";for(var e=document.cookie.split(";"),a=0;a<e.length;a++){for(var n=e[a];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(t))return n.substring(t.length,n.length)}return null}function W(t){var e=q(t);return""!=e&&null!==e}t(document).ready(function(){var a=new RegExp("(googlebot/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)","i"),n=navigator.userAgent;if(a.test(n)&&(h=!0),"on"==chaty_settings.data_analytics_settings&&"off"!=chaty_settings.data_analytics_settings||(h=!0),"undefined"==typeof chaty_settings||0==chaty_settings.chaty_widgets.length?console.log("Chaty settings doesn't exists"):(i=chaty_settings.chaty_widgets,function(){var e=!1;i.length&&t.each(i,function(t,a){B(a.triggers.has_countries)&&!j(a.triggers.countries)&&a.triggers.countries.length&&(e=!0)});e?""!=(c=U())?w():t.get("https://www.cloudflare.com/cdn-cgi/trace",function(t){var e,a=t.match("loc=(.*)");a.length>1&&(a=a[1])&&(""==(a=a.toUpperCase())&&(a="-"),e=a,"undefined"!=typeof Storage?null==window.sessionStorage.getItem("chaty_user_country_code")&&window.sessionStorage.setItem("chaty_user_country_code",e):W("chaty_user_country_code")||N("chaty_user_country_code",e,365),w())}):w()}()),t(document).on("click","html, body",function(e){t(".form-open").removeClass("form-open"),t(".chaty-outer-forms").removeClass("active"),t(".chaty .chaty-widget.chaty-no-close-button").addClass("chaty-open")}),t(document).on("click",".chaty, .chaty-outer-forms",function(t){t.stopPropagation()}),t(document).on("submit",".whatsapp-chaty-form",function(){var e=t(this).data("widget"),a=t(this).data("channel"),n=t("#chaty-widget-"+e).data("user"),i=E(e,"c-"+a);!j(n)&&i&&P(e,"c-"+a),t("#chaty-widget-"+e).length&&(t("#chaty-widget-"+e).removeClass("form-open"),t(this).closest(".chaty-outer-forms").removeClass("active"),t("#chaty-widget-"+e).find(".chaty-widget").hasClass("cssas-no-close-button")&&t("#chaty-widget-"+e).find(".chaty-widget").addClass("chaty-open"))}),t(document).on("click",".chaty-close-button, .chaty-close-agent-list",function(e){e.preventDefault(),e.stopPropagation();var a=t(this).closest(".chaty-outer-forms").data("widget");if((!j(a)||0==a)&&(t("#chaty-widget-"+a).length&&(t("#chaty-widget-"+a).removeClass("form-open"),t(this).closest(".chaty-outer-forms").removeClass("active"),t("#chaty-widget-"+a).find(".chaty-widget").hasClass("chaty-no-close-button")&&t("#chaty-widget-"+a).find(".chaty-widget").addClass("chaty-open")),t(this).closest(".chaty-whatsapp-form").length)){var n=t(this).closest(".chaty-outer-forms").data("channel");if(!j(n))E(a,"c-"+n)&&P(a,"c-"+n);E(a,"v-widget")&&_(a)}}),t(document).on("click","a.chaty-qr-code-form",function(e){e.preventDefault();var a=t(this).data("form");if(!j(a)&&t("#"+a).length){var n=t(this).html();t(this).closest(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),t(this).closest(".chaty-widget").find(".open-chaty-channel").html(n)}}),t(document).on("click","a.chaty-contact-us-form",function(e){e.preventDefault();var a=t(this).data("form");if(!j(a)&&t("#"+a).length){var n=t(this).html();t(this).closest(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),t("#"+a).find(".chaty-ajax-success-message").remove(),t("#"+a).find(".chaty-ajax-error-message").remove(),t("#"+a).find(".has-chaty-error").removeClass("has-chaty-error"),t(this).closest(".chaty-widget").find(".open-chaty-channel").html(n)}}),t(document).on("click","a.chaty-whatsapp-form",function(e){e.preventDefault();var a=t(this).data("form");if(!j(a)&&t("#"+a).length){var n=t(this).html();t("#"+a).addClass("is-active"),t(this).closest(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),t(this).closest(".chaty-widget").find(".open-chaty-channel").html(n)}}),t(document).on("click",".chaty-channel.chaty-agent-button",function(e){e.preventDefault();var a=t(this).data("form");if(!j(a)&&t("#"+a).length)if(t(this).closest(".chaty-widget").hasClass("has-single"))if(t(this).closest(".chaty").hasClass("form-open"))t(this).closest(".chaty-widget").addClass("chaty-open"),t(this).closest(".chaty").removeClass("form-open"),t("#"+a).removeClass("active");else{n=t(this).html();t("#"+a).addClass("is-active"),t(this).closest(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),t(this).closest(".chaty-widget").find(".open-chaty-channel").html(n)}else{var n=t(this).html();t("#"+a).addClass("is-active"),t(this).closest(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),t(this).closest(".chaty-widget").find(".open-chaty-channel").html(n)}}),t(document).on("click",".chaty-channel.has-gae",function(a){a.stopPropagation();var n=t(this).data("channel");if(n!==e&&""!=n&&null!=n&&(window.hasOwnProperty("gtag")&&gtag("event","chaty_"+n,{eventCategory:"chaty_"+n,event_action:"chaty_"+n,method:"chaty_"+n}),window.hasOwnProperty("ga"))){var i=window.ga.getAll()[0];i&&i.send("event","click",{eventCategory:"chaty_"+n,eventAction:"chaty_"+n,method:"chaty_"+n})}}),t(document).on("click",".chaty-i-trigger:not(.single-channel)",function(){t(this).closest(".chaty").hasClass("form-open")?(t(this).closest(".chaty").removeClass("form-open"),t(this).closest(".chaty-widget").removeClass("chaty-open")):t(this).closest(".chaty-widget").toggleClass("chaty-open"),t(".chaty-outer-forms").removeClass("active"),t(this).closest(".chaty").find(".chaty-widget").hasClass("chaty-no-close-button")&&t(this).closest(".chaty").find(".chaty-widget").addClass("chaty-open")}),s||t(document).on("mouseover","body:not(.chaty-in-mobile) .chaty.open-on-hover .chaty-i-trigger:not(.single-channel)",function(){t(this).closest(".chaty-widget").hasClass("chaty-open")||t(this).closest(".chaty-widget").hasClass("on-chaty-widget")||(t(this).closest(".chaty-widget").addClass("on-chaty-widget"),t(this).find(".chaty-cta-main").trigger("click"))}).on("mouseleave","body:not(.chaty-in-mobile) .chaty.open-on-hover .chaty-i-trigger:not(.single-channel)",function(){t(this).closest(".chaty-widget").hasClass("chaty-open")||t(this).closest(".chaty-widget").removeClass("on-chaty-widget")}),t(document).on("click",".chaty-channel",function(a){var n,i,c=[],o=0,l=t(this).closest(".chaty").data("id");if(void 0!==l&&void 0!==t("#chaty-widget-"+l).data("identifier")){var r=t("#chaty-widget-"+l).data("user");if(function(a){if(t("#chaty-widget-"+a).data("animation")!=e&&"none"!=t("#chaty-widget-"+a).data("animation")){var n="chaty-animation-"+t("#chaty-widget-"+a).data("animation");t("#chaty-widget-"+a+" ."+n).removeClass(n)}}(l),t(this).hasClass("chaty-cta-main")||t(this).hasClass("chaty-cta-close")){if(n=E(l,"c-widget"),t("#chaty-widget-"+l).find(".ch-pending-msg").remove(),n&&(P(l,"c-widget"),t(this).hasClass("chaty-cta-main"))){c=[],t("#chaty-widget-"+l+" .chaty-channel-list").find(".chaty-channel").each(function(){i=t(this).data("channel"),(n=E(l,"v-"+i))&&void 0!==i&&(P(l,"v-"+i),c.push(i))});var d=t("#chaty-widget-"+l).data("nonce");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:l,userId:r,isMobile:s,channels:c,isSingle:0,nonce:d,action:"update_chaty_widget_click"},method:"post"})}t("#chaty-widget-"+l).hasClass("first_click")&&(t("#chaty-widget-"+l+" .chaty-cta-main").removeClass("active"),t("#chaty-widget-"+l+" .chaty-cta-main").removeClass("chaty-tooltip"))}else if(t(this).hasClass("single")){t("#chaty-widget-"+l).find(".ch-pending-msg").remove(),n=E(l,"c-widget");d=t("#chaty-widget-"+l).data("nonce");n&&(P(l,"c-widget"),o=0,c=[],i=t(this).data("channel"),(n=E(l,"c-"+i))&&(c.push(i),o=1),h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:l,userId:r,isMobile:s,channels:c,isSingle:o,nonce:d,action:"update_chaty_widget_click"},method:"post"})),t("#chaty-widget-"+l).hasClass("first_click")&&(t("#chaty-widget-"+l+" .chaty-tooltip").removeClass("chaty-tooltip"),t("#chaty-widget-"+l+" .single-channel a").addClass("chaty-tooltip"))}else if(t(this).hasClass("chaty-channel")&&(i=t(this).data("channel"),n=E(l,"c-"+i))){P(l,"c-"+i);d=t("#chaty-widget-"+l).data("nonce");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:l,userId:r,isMobile:s,channel:i,nonce:d,action:"update_chaty_channel_click"},method:"post"})}}}),t(document).on("submit",".chaty-ajax-contact-form",function(e){e.preventDefault();var a=0;if(t(this).find(".has-chaty-error").each(function(){t(this).removeClass("has-chaty-error")}),t(this).find(".chaty-error-msg").remove(),t(this).find(".chaty-ajax-error-message").remove(),t(this).find(".chaty-ajax-success-message").remove(),t(this).find(".is-required").each(function(){""==jQuery.trim(t(this).val())&&(a++,t(this).addClass("has-chaty-error"))}),0==a){var n=t(this);t(".chaty-contact-submit-btn").attr("disabled",!0),jQuery.ajax({url:chaty_settings.ajax_url,data:{action:"chaty_front_form_save_data",name:n.find(".field-name").length?n.find(".field-name").val():"",email:n.find(".field-email").length?n.find(".field-email").val():"",phone:n.find(".field-phone").length?n.find(".field-phone").val():"",message:n.find(".field-message").length?n.find(".field-message").val():"",nonce:n.data("token"),channel:n.data("channel"),widget:n.data("index"),ref_url:window.location.href},type:"post",async:!0,defer:!0,success:function(e){if(e=jQuery.parseJSON(e),t(".chaty-ajax-error-message").remove(),t(".chaty-ajax-success-message").remove(),t(".chaty-contact-submit-btn").attr("disabled",!1),1==e.status)t(".chaty-contact-inputs").append("<div class='chaty-ajax-success-message'>"+e.message+"</div>"),t(".field-name, .field-email, .field-message, .field-phone").val(""),"yes"==e.redirect_action&&("yes"==e.link_in_new_tab?window.open(e.redirect_link,"_blank"):window.location=e.redirect_link),"yes"==e.close_form_after&&setTimeout(function(){if(t(".chaty-outer-forms.active").length){var e=t(".chaty-outer-forms.active").data("widget");j(e)&&0!=e||t("#chaty-widget-"+e).length&&(t("#chaty-widget-"+e).removeClass("form-open"),t(".chaty-outer-forms.active").removeClass("active"),t("#chaty-widget-"+e).find(".chaty-widget").hasClass("chaty-no-close-button")&&t("#chaty-widget-"+e).find(".chaty-widget").addClass("chaty-open"))}},1e3*parseInt(e.close_form_after_seconds));else if(1==e.error){if(e.errors.length)for(var a=0;a<e.errors.length;a++)t("."+e.errors[a].field).addClass("has-chaty-error"),t("."+e.errors[a].field).after("<span class='chaty-error-msg'>"+e.errors[a].message+"</span>")}else t(".chaty-contact-inputs").append("<div class='chaty-ajax-error-message'>"+e.message+"</div>")}})}else t(".has-chaty-error:first").focus();return!1}),t(document).on("click",".chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel",function(){window.location=t(this).find("a").prop("href")}),t(document).on("click",".chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel a",function(t){t.stopPropagation(),t.stopImmediatePropagation()}),s){if(window.history&&window.history.pushState){function o(){""!==location.hash.split("#!/")[1]&&(""===window.location.hash&&z())}var l=100;window.history.state&&window.history.state.page&&(l=window.history.state.page),window.history.pushState({page:l+1},""),window.history.pushState({page:l+2},""),window.onpopstate=function(){o()},window.history.onpopstate=function(){o()},window.addEventListener("popstate",function(){o()}),document.addEventListener("backbutton",function(){o()}),window.addEventListener("backbutton",function(){o()}),t(window).on("popstate",function(){o()})}}else t(document).mouseleave(function(t){var e,a,n;e=document,a="mouseout",n=function(t){null==t.toElement&&null==t.relatedTarget&&z()},e.addEventListener?(e.addEventListener(a,n,!1),z()):e.attachEvent&&e.attachEvent("on"+a,n)})})});
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: galdub, tomeraharon, premio
3
  Tags: whatsapp, whatsapp chat, facebook messenger, click to chat, chat, chat button, call now button, messenger, whatsapp button, chat icon, contact button, click to call
4
  Requires at least: 3.1
5
  Tested up to: 6.0
6
- Stable tag: 2.9.1
7
  Plugin URI: https://premio.io/downloads/chaty/
8
 
9
  WhatsApp chat, Facebook Messenger, Telegram, TikTok, Viber, Email, Line, WeChat Phone call, SMS, and more with customizable WhatsApp chat widget & call buttons. Chat with your visitors on WhatsApp, Facebook Messenger, and other chat channels!
@@ -105,7 +105,7 @@ Unlock the <a href="https://premio.io/downloads/chaty/?utm_source=wordpressorg"
105
  You will get all the features of the free plan, plus:
106
 
107
  1. Show all the channels you want at the same time (25 different click to chat buttons and other icons)
108
- 2. New! <strong>Chat Agents</strong> - Add multiple variations (agents) in a single channel to easily delegate customer queries and make it easy for visitors to instantly reach out to the right person. For instance, you can add two agents under your WhatsApp chat widget (or any other channel of your choice), which leads visitors to your respective sales and support team. You can check out the agents feature for WhatsApp (but can be used for any other chat channel) on our demo page here
109
  3. Customize the chat button widget color with HEX code
110
  4. Change the location of the chat button on the screen by the pixel
111
  5. Upload your own custom chat button design
@@ -132,16 +132,20 @@ Works great for multi-language websites and WPML plugin, for different products,
132
  <br><a href="https://premio.io/downloads/chaty/?utm_source=wordpressorg" target="_blank" title="Chaty pro plans"><strong>Upgrade to pro</strong></a> to get all pro features :)
133
 
134
  = 🗬 WhatsApp Chat Pop Up =
135
- You can use WhatsApp as a regular chat button, but you can also add the WhatsApp pop up and let your visitors start the conversation while the visitors are on your website. You can also easily integrate with WhatsApp Business or your regular WhatsApp account. Once the visitors click on the send button, they'll be redirected to WhatsApp to continue the conversation there. Check out the WhatsApp pop up in action in the video below
 
136
  [youtube https://www.youtube.com/watch?v=tJub8v2_sTM]
137
 
138
- = 🧑‍💼 Chat Agents =
139
  If you’re using the Pro plan, you can add multiple agents in a single chat channel to easily delegate customer/sales/marketing/or any other queries and make it easy for visitors to instantly reach out to the right person. For instance, you can add two agents under your WhatsApp widget (or any other channel of your choice like Facebook Messenger, Viber, Line, and more), which leads visitors to your respective sales and support team.
140
  Check out the agents feature for WhatsApp (keep in mind it can be used for any other chat channel) on our <a href="https://demo.premio.io/agents/?utm_source=wordpressorg" target="_blank" title="Agents for WhatsApp demo"><strong>demo page 🚀<strong></a>
141
 
 
 
142
 
143
  = 🗣️ Contact Us Form =
144
  You can add a contact form as a channel, this way your visitors can contact you using your contact us form. You can customize the form, change colors, fields, and more
 
145
  [youtube https://www.youtube.com/watch?v=yf8io0PkKq8]
146
 
147
  = ℹ️ How does each channel work? =
@@ -273,6 +277,9 @@ Yes! You can even decide what chat buttons will show up on each device (desktop/
273
 
274
  == Changelog ==
275
 
 
 
 
276
  = 2.9.1 =
277
  Minor bugs fixed
278
 
3
  Tags: whatsapp, whatsapp chat, facebook messenger, click to chat, chat, chat button, call now button, messenger, whatsapp button, chat icon, contact button, click to call
4
  Requires at least: 3.1
5
  Tested up to: 6.0
6
+ Stable tag: 2.9.2
7
  Plugin URI: https://premio.io/downloads/chaty/
8
 
9
  WhatsApp chat, Facebook Messenger, Telegram, TikTok, Viber, Email, Line, WeChat Phone call, SMS, and more with customizable WhatsApp chat widget & call buttons. Chat with your visitors on WhatsApp, Facebook Messenger, and other chat channels!
105
  You will get all the features of the free plan, plus:
106
 
107
  1. Show all the channels you want at the same time (25 different click to chat buttons and other icons)
108
+ 2. New! <strong>Chat Agents</strong> - Add multiple variations (agents) in a single channel to easily delegate customer queries and make it easy for visitors to instantly reach out to the right person. For instance, you can add two agents under your WhatsApp chat widget (or any other channel of your choice), which leads visitors to your respective sales and support team. You can check out the agents feature for WhatsApp (but can be used for any other chat channel) on our <a href="https://demo.premio.io/agents/?utm_source=wordpressorg" target="_blank" title="Agents for WhatsApp demo"><strong>demo page 🚀<strong></a>
109
  3. Customize the chat button widget color with HEX code
110
  4. Change the location of the chat button on the screen by the pixel
111
  5. Upload your own custom chat button design
132
  <br><a href="https://premio.io/downloads/chaty/?utm_source=wordpressorg" target="_blank" title="Chaty pro plans"><strong>Upgrade to pro</strong></a> to get all pro features :)
133
 
134
  = 🗬 WhatsApp Chat Pop Up =
135
+ You can use WhatsApp as a regular chat button, but you can also add the WhatsApp pop up and let your visitors start the conversation while the visitors are on your website. You can also easily integrate with WhatsApp Business or your regular WhatsApp account. Once the visitors click on the send button, they'll be redirected to WhatsApp to continue the conversation there. Check out the WhatsApp pop up in action in the video below 🎥
136
+
137
  [youtube https://www.youtube.com/watch?v=tJub8v2_sTM]
138
 
139
+ = 🧑‍💼 Chat Agents for WhatsApp, Facebook Messenger, and 20+ other chat channels =
140
  If you’re using the Pro plan, you can add multiple agents in a single chat channel to easily delegate customer/sales/marketing/or any other queries and make it easy for visitors to instantly reach out to the right person. For instance, you can add two agents under your WhatsApp widget (or any other channel of your choice like Facebook Messenger, Viber, Line, and more), which leads visitors to your respective sales and support team.
141
  Check out the agents feature for WhatsApp (keep in mind it can be used for any other chat channel) on our <a href="https://demo.premio.io/agents/?utm_source=wordpressorg" target="_blank" title="Agents for WhatsApp demo"><strong>demo page 🚀<strong></a>
142
 
143
+ [youtube https://www.youtube.com/watch?v=GZ0VfLOQPNc]
144
+
145
 
146
  = 🗣️ Contact Us Form =
147
  You can add a contact form as a channel, this way your visitors can contact you using your contact us form. You can customize the form, change colors, fields, and more
148
+
149
  [youtube https://www.youtube.com/watch?v=yf8io0PkKq8]
150
 
151
  = ℹ️ How does each channel work? =
277
 
278
  == Changelog ==
279
 
280
+ = 2.9.2 =
281
+ WhatsApp mobile bug fixed
282
+
283
  = 2.9.1 =
284
  Minor bugs fixed
285