Version Description
Pending messages icon for the chat widget, call-to-action frequency, Swift cache support, and some minor
Download this release
Release Info
Developer | premiocommit |
Plugin | Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line, WeChat, Email, SMS, Call Button – Chaty |
Version | 2.6.3 |
Comparing to | |
See all releases |
Code changes from version 2.7.1 to 2.6.3
- admin/assets/css/admin-setting.css +0 -1
- admin/assets/css/cht-style.css +43 -594
- admin/assets/css/cht-style.min.css +1 -1
- admin/assets/images/agency-price.png +0 -0
- admin/assets/images/basic-price-bg.png +0 -0
- admin/assets/images/client-image.png +0 -0
- admin/assets/images/plus-price.png +0 -0
- admin/assets/images/whatsapp-popup.gif +0 -0
- admin/assets/js/cht-scripts.js +373 -455
- admin/assets/js/cht-scripts.min.js +1 -1
- admin/assets/js/select2.min.js +2 -2
- admin/assets/js/spectrum.min.js +2 -5
- admin/chaty-timezone.php +0 -242
- admin/class-admin-base.php +5 -155
- admin/class-social-icons.php +29 -81
- cht-icons.php +3 -25
- css/chaty-front.css +0 -305
- css/chaty-front.min.css +1 -1
- images/whatsapp.png +0 -0
- includes/class-frontend.php +70 -577
- js/cht-front-script.js +438 -618
- js/cht-front-script.min.js +1 -1
- readme.txt +50 -81
- views/admin/admin.php +0 -1
- views/admin/channels-section.php +38 -260
admin/assets/css/admin-setting.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
@import url(https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap);*,:after,:before{box-sizing:border-box}#wpwrap{background:#6572db;background:-moz-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-webkit-gradient(left top,right bottom,color-stop(0,#6572db),color-stop(67%,#ee86c6),color-stop(100%,#ee86c6));background:-webkit-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-o-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-ms-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:linear-gradient(135deg,#6572db 0,#ee86c6 67%,#ee86c6 100%)}.pricing-table{margin:0 0 45px;color:#28375a;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-title{font-weight:700;font-size:24px;line-height:30px;color:#28375a;text-align:center}.price-table{background:#fff;box-sizing:border-box;border-radius:10px}.price-table-top{padding:20px;position:relative;border-radius:10px}.price-table.basic-feature{box-shadow:0 12px 44px rgba(108,203,255,.2);border:2px solid #b9eafd}.price-table.basic-feature .price-table-top{background:url(../images/basic-price-bg.png) no-repeat left top}.price-table.plus-feature{border:2px solid #f9d9bd;box-shadow:0 12px 44px rgba(239,140,106,.2)}.price-table.plus-feature .price-table-top{background:url(../images/plus-price.png) no-repeat left top}.price-table.agency-feature{border:2px solid #cfd3fb;box-shadow:0 12px 44px rgba(96,93,236,.2)}.price-table.agency-feature .price-table-top{background:url(../images/agency-price.png) no-repeat left top}.price-tables{margin:30px 0 50px}.plan-name{font-size:30px;line-height:36px;font-weight:700;color:#28375a}.plan-price{position:absolute;right:18px;top:8px;font-weight:700;font-size:60px;line-height:72px;color:#42b9fa}.price-table.plus-feature .plan-price{color:#ef8c6a}.price-table.agency-feature .plan-price{color:#605dec}.price-table.agency-feature .plan-name{color:#fff}.price-head{line-height:72px;padding:5px 0 25px 0}.price-offer,.price-websites{line-height:18px;font-size:15px}.cus-tooltip{cursor:pointer;display:inline-block;position:relative}.cus-tooltip .tooltip__content{background-color:#1849ab;border-radius:4px;bottom:150%;color:#fff;left:0;margin-left:15px;opacity:0;padding:5px 10px;position:absolute;transition:opacity .25s;visibility:hidden;width:auto;z-index:1;text-align:left;margin-right:15px;font-size:14px;line-height:20px}.cus-tooltip .tooltip__content::after{border-width:5px;border-style:solid;border-color:#1849ab transparent transparent transparent;content:"";left:25px;margin-left:-5px;position:absolute;top:100%}.cus-tooltip:hover .tooltip__content{opacity:1;visibility:visible}.price-table-middle ul{list-style:none;margin:0;padding:0}.price-table-middle ul li{display:block;width:100%;border-bottom:solid 1px #e9e9e9;padding:15px 0;margin:0}.price-table-middle ul li a{padding:0 15px;color:#28375a;font-size:16px;line-height:19px;display:block;text-decoration:none}span.has-tooltip{color:#605dec}.price-table-bottom{padding:15px}.custom-dd-btn{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px}.custom-dd{margin-bottom:15px}.price-table-bottom a{background:#fff;border:1px solid #42b9fa;color:#42b9fa;border-radius:20px;height:40px;line-height:38px;padding:0 15px;display:block;text-align:center;transition:all .25s linear}.price-table-bottom a:hover{color:#fff;background:#42b9fa}.price-table.plus-feature .price-table-bottom a{background:#ef8c6a;border:1px solid #ef8c6a;color:#fff}.price-table.plus-feature .price-table-bottom a:hover{background:#fff;color:#ef8c6a}.price-table.agency-feature .price-table-bottom a{background:#fff;border:1px solid #605dec;color:#605dec}.price-table.agency-feature .price-table-bottom a:hover{background:#605dec;color:#fff}.container{max-width:1180px;width:100%;padding:30px;background:#fff;border-radius:15px;margin:50px auto}.row{margin-right:-15px;margin-left:-15px}.col-md-4{padding-right:15px;padding-left:15px;width:33.33333333%;float:left}.select2-container--default .select2-selection--single{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px;outline:0}span.select2.select2-container{width:100%!important}.website-package{padding:0 15px;line-height:18px}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.website-package .select2-container--default .select2-results>.select2-results__options{margin-top:5px}.custom-dd .select2-container--default .select2-selection--single .select2-selection__arrow{height:20px;top:10px;right:1px;width:20px}@media (min-width:768px){.col-sm-4{width:100%;float:none}}a,a:focus,a:hover{text-decoration:none}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:38px}.select2-results__option{user-select:none;-webkit-user-select:none;font-size:14px;padding:8px 25px;margin:0}.select2-dropdown{border:1px solid #e9e9e9}.price-after{padding:0;text-align:center;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-after p,.price-after span{font-size:16px;line-height:25px;margin:0;padding:0}.clearfix{clear:both}.price-after span{display:inline-block;vertical-align:text-top;font-size:20px;color:#42b9fa}.payments{padding:20px 0 10px}.folder-testimonial-list{width:100%;margin:30px auto 0;font-family:Lato,sans-serif}.folder-testimonial{position:relative}.folder-testimonial .testimonial-image{position:absolute;height:60px;width:60px;top:50%;margin-top:-30px;z-index:1;overflow:hidden;border-radius:30px}.folder-testimonial .testimonial-image img{width:100%;height:auto}.folder-testimonial .testimonial-data{position:relative;margin-left:30px;font-size:16px;line-height:22px;padding:10px 10px 10px 40px;background:#f5f5f5;border-radius:4px}.testimonial-title{font-weight:700;font-size:18px;padding:0 0 5px}.testimonial-author{font-size:16px;font-style:italic;font-weight:500;padding:5px 0 0}.plan-price span{font-size:16px;color:#28375a}.price-table-middle{margin-top:20px}.agency-feature .price-table-middle{margin-top:0}.website-package .select2-container--default .select2-selection--single{border:1px solid #6156f6;box-shadow:0 12px 44px rgba(96,93,236,.2)}.website-package .select2-container--default .select2-selection--single .select2-selection__rendered{color:#6156f6}.website-package .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#6156f6 transparent transparent transparent}.website-package .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #6156f6 transparent;border-width:0 4px 5px 4px}
|
|
admin/assets/css/cht-style.css
CHANGED
@@ -160,9 +160,9 @@ input::-webkit-inner-spin-button, input::-webkit-outer-spin-button {
|
|
160 |
line-height: 15px;
|
161 |
text-align: center;
|
162 |
background-color: #FFF;
|
163 |
-
-webkit-box-shadow:
|
164 |
-
-moz-box-shadow:
|
165 |
-
box-shadow:
|
166 |
border-radius: 3px;
|
167 |
background-position: center;
|
168 |
background-repeat: no-repeat;
|
@@ -191,7 +191,7 @@ input::-webkit-inner-spin-button, input::-webkit-outer-spin-button {
|
|
191 |
position: static
|
192 |
}
|
193 |
|
194 |
-
.custom-control.custom-radio .custom-control-label
|
195 |
content: '';
|
196 |
transition: all .2s;
|
197 |
position: absolute;
|
@@ -208,11 +208,11 @@ input::-webkit-inner-spin-button, input::-webkit-outer-spin-button {
|
|
208 |
border: 5px solid #fff
|
209 |
}
|
210 |
|
211 |
-
.custom-control.custom-radio .custom-control-label
|
212 |
display: none
|
213 |
}
|
214 |
|
215 |
-
.custom-control.custom-radio .custom-control-input:checked ~ .custom-control-label
|
216 |
background: #a886cd
|
217 |
}
|
218 |
|
@@ -304,7 +304,7 @@ input::-webkit-inner-spin-button, input::-webkit-outer-spin-button {
|
|
304 |
margin-left: 5px
|
305 |
}
|
306 |
|
307 |
-
.btn-red, .color-picker
|
308 |
margin-left: 12px
|
309 |
}
|
310 |
|
@@ -321,7 +321,7 @@ input::-webkit-inner-spin-button, input::-webkit-outer-spin-button {
|
|
321 |
margin-right: 3px
|
322 |
}
|
323 |
|
324 |
-
.color-picker
|
325 |
background: #FFF;
|
326 |
box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
|
327 |
-webkit-box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
|
@@ -332,13 +332,13 @@ input::-webkit-inner-spin-button, input::-webkit-outer-spin-button {
|
|
332 |
position: relative
|
333 |
}
|
334 |
|
335 |
-
.color-picker
|
336 |
display: flex;
|
337 |
padding: 6px 8px 10px;
|
338 |
border-bottom: 1px solid rgba(130, 130, 130, .1)
|
339 |
}
|
340 |
|
341 |
-
.color-picker
|
342 |
border-radius: 50%;
|
343 |
width: 28px;
|
344 |
height: 28px;
|
@@ -347,7 +347,7 @@ input::-webkit-inner-spin-button, input::-webkit-outer-spin-button {
|
|
347 |
font-size: 0
|
348 |
}
|
349 |
|
350 |
-
.color-picker
|
351 |
display: block;
|
352 |
width: 28px;
|
353 |
height: 28px;
|
@@ -359,34 +359,34 @@ input::-webkit-inner-spin-button, input::-webkit-outer-spin-button {
|
|
359 |
background-image: url(../images/icon-check-white.svg)
|
360 |
}
|
361 |
|
362 |
-
.color-picker
|
363 |
position: absolute;
|
364 |
z-index: -1;
|
365 |
opacity: 0
|
366 |
}
|
367 |
|
368 |
-
.color-picker
|
369 |
opacity: 1
|
370 |
}
|
371 |
|
372 |
-
.btn-help span, .color-picker
|
373 |
margin-left: 5px
|
374 |
}
|
375 |
|
376 |
-
.color-picker
|
377 |
padding: 10px 8px 16px
|
378 |
}
|
379 |
|
380 |
-
.color-picker
|
381 |
display: flex;
|
382 |
align-items: center
|
383 |
}
|
384 |
|
385 |
-
.color-picker
|
386 |
margin-top: 10px
|
387 |
}
|
388 |
|
389 |
-
.color-picker
|
390 |
color: #FF6376;
|
391 |
background: #FFF;
|
392 |
border: 1px solid #D0D0D0;
|
@@ -409,7 +409,7 @@ body, button {
|
|
409 |
font-family: Rubik, sans-serif
|
410 |
}
|
411 |
|
412 |
-
.color-picker
|
413 |
background: #FFF;
|
414 |
box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
|
415 |
border-radius: 5px;
|
@@ -598,19 +598,6 @@ a:focus {
|
|
598 |
max-width: 680px
|
599 |
}
|
600 |
|
601 |
-
.chaty-text-color {
|
602 |
-
position: relative;
|
603 |
-
}
|
604 |
-
|
605 |
-
.chaty-text-color .wp-picker-holder {
|
606 |
-
position: absolute;
|
607 |
-
z-index: 101;
|
608 |
-
}
|
609 |
-
|
610 |
-
.chaty-text-color span.wp-color-result-text {
|
611 |
-
display: none;
|
612 |
-
}
|
613 |
-
|
614 |
.section-title {
|
615 |
font-family: Oswald, sans-serif;
|
616 |
font-size: 30px;
|
@@ -637,9 +624,7 @@ a:focus {
|
|
637 |
.main .channels-icons {
|
638 |
display: flex;
|
639 |
flex-wrap: wrap;
|
640 |
-
|
641 |
-
margin: 0 auto;
|
642 |
-
max-width: 100%;
|
643 |
}
|
644 |
|
645 |
.main .channels-icons > .icon {
|
@@ -669,29 +654,6 @@ a:focus {
|
|
669 |
position: relative;
|
670 |
}
|
671 |
|
672 |
-
.chaty-default-settings {
|
673 |
-
display: flex;
|
674 |
-
align-items: center;
|
675 |
-
flex-wrap: wrap;
|
676 |
-
position: relative;
|
677 |
-
padding-bottom: 15px;
|
678 |
-
}
|
679 |
-
|
680 |
-
.channels-selected-list li {
|
681 |
-
display: block;
|
682 |
-
max-width: 640px;
|
683 |
-
padding: 15px;
|
684 |
-
background: #EFF6F6;
|
685 |
-
-webkit-border-radius: 10px;
|
686 |
-
-moz-border-radius: 10px;
|
687 |
-
border-radius: 10px;
|
688 |
-
margin-bottom: 15px;
|
689 |
-
}
|
690 |
-
li#chaty-social-Poptin {
|
691 |
-
padding: 15px 15px 25px 15px;
|
692 |
-
}
|
693 |
-
|
694 |
-
|
695 |
.main .channels-selected__item .icon {
|
696 |
margin-right: 5px;
|
697 |
cursor: pointer;
|
@@ -702,12 +664,7 @@ li#chaty-social-Poptin {
|
|
702 |
text-align: center;
|
703 |
vertical-align: middle
|
704 |
}
|
705 |
-
|
706 |
-
display: inline-block;
|
707 |
-
vertical-align: middle;
|
708 |
-
width: auto;
|
709 |
-
height: auto;
|
710 |
-
}
|
711 |
.main .channels-selected__item .icon > i {
|
712 |
font-size: 30px;
|
713 |
line-height: 50px
|
@@ -741,41 +698,6 @@ li#chaty-social-Poptin {
|
|
741 |
position: absolute;
|
742 |
left: calc(50px + 16px + 7px);
|
743 |
top: 50px;
|
744 |
-
max-width: 350px;
|
745 |
-
}
|
746 |
-
|
747 |
-
.chaty-settings a {
|
748 |
-
text-decoration: none;
|
749 |
-
display: inline-block;
|
750 |
-
color: #fff;
|
751 |
-
margin-left: 15px;
|
752 |
-
height: 26px;
|
753 |
-
background: #A785CB;
|
754 |
-
text-align: center;
|
755 |
-
vertical-align: middle;
|
756 |
-
-webkit-border-radius: 18px;
|
757 |
-
-moz-border-radius: 18px;
|
758 |
-
border-radius: 18px;
|
759 |
-
font-size: 10px;
|
760 |
-
line-height: 26px;
|
761 |
-
padding: 0 5px;
|
762 |
-
}
|
763 |
-
|
764 |
-
.move-icon img {
|
765 |
-
width: 10px;
|
766 |
-
margin-right: 5px;
|
767 |
-
margin-top: 8px;
|
768 |
-
cursor: move;
|
769 |
-
}
|
770 |
-
.chaty-settings a .dashicons {
|
771 |
-
|
772 |
-
}
|
773 |
-
.chaty-settings a .dashicons, .chaty-settings a .dashicons-before:before {
|
774 |
-
font-size: 16px;
|
775 |
-
line-height: 26px;
|
776 |
-
display: inline-block;
|
777 |
-
margin: 0;
|
778 |
-
text-align: center;
|
779 |
}
|
780 |
|
781 |
.main .channels-selected__item.disabled .icon {
|
@@ -837,7 +759,7 @@ li#chaty-social-Poptin {
|
|
837 |
}
|
838 |
|
839 |
.main .form-horizontal__item-label {
|
840 |
-
flex: 0 0
|
841 |
margin: 0 14px 0 0;
|
842 |
text-align: right;
|
843 |
font-weight: 700
|
@@ -1094,8 +1016,9 @@ input.channels__input.border-red {
|
|
1094 |
line-height: 33px;
|
1095 |
padding: 0 5px;
|
1096 |
position: relative;
|
|
|
1097 |
box-shadow: 0 1px 14px rgba(156, 117, 198, .4), 0 2px 4px rgba(0, 0, 0, .15);
|
1098 |
-
margin:
|
1099 |
text-align: center;
|
1100 |
max-width: 635px;
|
1101 |
}
|
@@ -1231,7 +1154,7 @@ input.channels__input.border-red {
|
|
1231 |
}
|
1232 |
|
1233 |
.upgrade-wrap {
|
1234 |
-
max-width:
|
1235 |
margin: 13px auto
|
1236 |
}
|
1237 |
|
@@ -1243,9 +1166,10 @@ input.channels__input.border-red {
|
|
1243 |
}
|
1244 |
|
1245 |
.upgrade-block .easy-modal-inner {
|
1246 |
-
|
1247 |
margin: 0 auto;
|
1248 |
direction: ltr !important;
|
|
|
1249 |
}
|
1250 |
|
1251 |
.upgrade-block h2 {
|
@@ -1398,7 +1322,7 @@ img.payment-img {
|
|
1398 |
z-index: 100;
|
1399 |
line-height: 27px;
|
1400 |
box-shadow: 0 4px 4px rgba(0, 0, 0, .11);
|
1401 |
-
vertical-align:
|
1402 |
position: relative;
|
1403 |
color: #fff
|
1404 |
}
|
@@ -1832,11 +1756,9 @@ a.new-demo-button {
|
|
1832 |
.chaty-switch {
|
1833 |
display: inline-block;
|
1834 |
height: 34px;
|
1835 |
-
line-height: 34px;
|
1836 |
position: relative;
|
1837 |
-
padding: 0 0 0 50px
|
1838 |
line-height: 24px;
|
1839 |
-
width: 100% !important;
|
1840 |
}
|
1841 |
|
1842 |
.chaty-switch input {
|
@@ -1880,9 +1802,6 @@ input:checked + .chaty-slider {
|
|
1880 |
input:checked + .chaty-slider:before {
|
1881 |
transform: translateX(16px);
|
1882 |
}
|
1883 |
-
input:disabled + .chaty-slider {
|
1884 |
-
background: #e2e2e2;
|
1885 |
-
}
|
1886 |
|
1887 |
.chaty-slider.round {
|
1888 |
border-radius: 34px;
|
@@ -2389,10 +2308,7 @@ a.upgrade-link strong {
|
|
2389 |
border-radius: 9px;
|
2390 |
width: 282px
|
2391 |
}
|
2392 |
-
|
2393 |
-
background: transparent;
|
2394 |
-
box-shadow: none;
|
2395 |
-
}
|
2396 |
.channels__input-box {
|
2397 |
position: relative;
|
2398 |
margin-right: 5px
|
@@ -2514,7 +2430,7 @@ label.widget-icon__wrap.has-free {
|
|
2514 |
min-height: 100%;
|
2515 |
text-align: right;
|
2516 |
opacity: 0;
|
2517 |
-
background:
|
2518 |
cursor: pointer;
|
2519 |
display: block;
|
2520 |
position: absolute
|
@@ -2747,13 +2663,9 @@ body.has-premio-box .preview {
|
|
2747 |
width: auto;
|
2748 |
height: auto;
|
2749 |
max-width: 100%;
|
2750 |
-
max-height: 100
|
2751 |
-
border-radius: 50%;
|
2752 |
-
}
|
2753 |
-
.preview .page .chaty-widget.has-single .icon i#iconWidget {
|
2754 |
-
position: relative;
|
2755 |
-
overflow: inherit;
|
2756 |
}
|
|
|
2757 |
.mobiel-view .preview .page .chaty-widget .icon i {
|
2758 |
width: 23px;
|
2759 |
height: 23px;
|
@@ -2829,7 +2741,7 @@ a.pro-plugin-url {
|
|
2829 |
-webkit-border-radius: 25px;
|
2830 |
font-size: 24px;
|
2831 |
border-radius: 25px;
|
2832 |
-
padding: 15px 45px
|
2833 |
}
|
2834 |
|
2835 |
.test_textarea {
|
@@ -2843,7 +2755,7 @@ a.pro-plugin-url {
|
|
2843 |
height: 70px;
|
2844 |
border: solid 1px #f6f6f6;
|
2845 |
width: 100%;
|
2846 |
-
max-width:
|
2847 |
}
|
2848 |
|
2849 |
.license-key {
|
@@ -2896,11 +2808,12 @@ a.pro-plugin-url {
|
|
2896 |
}
|
2897 |
|
2898 |
.testimonial-success-message {
|
2899 |
-
border-left: solid 3px #00a65a
|
2900 |
}
|
2901 |
|
2902 |
.save-testimonial-license-key {
|
2903 |
-
|
|
|
2904 |
}
|
2905 |
|
2906 |
.remove-testimonial-license-key {
|
@@ -4083,16 +3996,6 @@ a.create-rule {
|
|
4083 |
-moz-border-radius: 5px;
|
4084 |
border-radius: 5px;
|
4085 |
}
|
4086 |
-
a.create-rule.remove-rules {
|
4087 |
-
background: #7e8993;
|
4088 |
-
color: #fff;
|
4089 |
-
}
|
4090 |
-
.chaty-pro-block {
|
4091 |
-
position: relative;
|
4092 |
-
}
|
4093 |
-
.chaty-pro-block:hover .chaty-pro-feature {
|
4094 |
-
display: inline-block;
|
4095 |
-
}
|
4096 |
.chaty-settings.cls-btn span {
|
4097 |
padding-left: 2px;
|
4098 |
}
|
@@ -4137,9 +4040,6 @@ a.create-rule.remove-rules {
|
|
4137 |
width: 36px;
|
4138 |
display: inline-block;
|
4139 |
float: right;
|
4140 |
-
padding: 0;
|
4141 |
-
}
|
4142 |
-
.url-buttons {
|
4143 |
padding: 2px 0 0 0;
|
4144 |
}
|
4145 |
span.chaty-url {
|
@@ -4327,7 +4227,7 @@ select.multiple-options {
|
|
4327 |
}
|
4328 |
.sp-preview {
|
4329 |
padding: 0;
|
4330 |
-
margin: 0;
|
4331 |
height: 40px;
|
4332 |
width: 40px;
|
4333 |
border: none;
|
@@ -4436,23 +4336,16 @@ label.custom-control.custom-radio:before {
|
|
4436 |
margin: 30px 0;
|
4437 |
}
|
4438 |
.chaty-popup-footer {
|
4439 |
-
padding:
|
4440 |
border-top: solid 1px #e6e6e6;
|
4441 |
}
|
4442 |
.chaty-popup-footer button {
|
4443 |
-
border:
|
4444 |
-
padding:
|
4445 |
border-radius: 4px;
|
4446 |
background: #00c478;
|
4447 |
color: #fff;
|
4448 |
}
|
4449 |
-
button.btn.btn-default {
|
4450 |
-
background: #fff;
|
4451 |
-
color: #333;
|
4452 |
-
border: solid 1px #333;
|
4453 |
-
outline: none;
|
4454 |
-
box-shadow: none;
|
4455 |
-
}
|
4456 |
.close-chaty-popup {
|
4457 |
|
4458 |
}
|
@@ -4505,18 +4398,13 @@ button.btn.btn-default {
|
|
4505 |
}
|
4506 |
.chaty-channel .advanced-settings {
|
4507 |
display: none;
|
4508 |
-
width: 100%;
|
4509 |
}
|
4510 |
.chaty-channel[data-channel='Whatsapp'] .advanced-settings.Whatsapp-settings,
|
4511 |
.chaty-channel[data-channel='Email'] .advanced-settings.Email-settings,
|
4512 |
.chaty-channel[data-channel='WeChat'] .advanced-settings.WeChat-settings,
|
4513 |
.chaty-channel[data-channel='Link'] .advanced-settings.Link-settings,
|
4514 |
.chaty-channel[data-channel='Linkedin'] .advanced-settings.Linkedin-settings,
|
4515 |
-
.chaty-channel[data-channel='Custom_Link'] .advanced-settings.Custom_Link-settings
|
4516 |
-
.chaty-channel[data-channel='Custom_Link_3'] .advanced-settings.Custom_Link_3-settings,
|
4517 |
-
.chaty-channel[data-channel='Custom_Link_4'] .advanced-settings.Custom_Link_4-settings,
|
4518 |
-
.chaty-channel[data-channel='Custom_Link_5'] .advanced-settings.Custom_Link_5-settings,
|
4519 |
-
.chaty-channel[data-channel='Contact_Us'] .advanced-settings.Contact_Us-settings {
|
4520 |
display: block;
|
4521 |
}
|
4522 |
.preview .page .chaty-widget.horizontal.chaty-widget-icons-left #iconWidget,
|
@@ -4641,97 +4529,6 @@ span.pop-number {
|
|
4641 |
position: relative;
|
4642 |
overflow: inherit;
|
4643 |
}
|
4644 |
-
.disable-message.label-tooltip .sp-replacer.sp-light {
|
4645 |
-
pointer-events: none;
|
4646 |
-
}
|
4647 |
-
|
4648 |
-
.chaty-popup {
|
4649 |
-
display: none;
|
4650 |
-
}
|
4651 |
-
.chaty-popup-outer {
|
4652 |
-
position: fixed;
|
4653 |
-
width: 100%;
|
4654 |
-
height: 100%;
|
4655 |
-
background: rgba(0,0,0,0.4);
|
4656 |
-
left: 0;
|
4657 |
-
top: 0;
|
4658 |
-
z-index: 1010;
|
4659 |
-
}
|
4660 |
-
.chaty-popup-inner {
|
4661 |
-
position: fixed;
|
4662 |
-
height: auto;
|
4663 |
-
left: 0;
|
4664 |
-
top: 50%;
|
4665 |
-
right: 0;
|
4666 |
-
margin: 0 auto;
|
4667 |
-
width: 480px;
|
4668 |
-
max-width: 100%;
|
4669 |
-
z-index: 1012;
|
4670 |
-
-webkit-transform: translate(0px, -50%);
|
4671 |
-
-moz-transform: translate(0px, -50%);
|
4672 |
-
transform: translate(0px, -50%);
|
4673 |
-
}
|
4674 |
-
.chaty-popup-content {
|
4675 |
-
position: relative;
|
4676 |
-
padding: 0;
|
4677 |
-
}
|
4678 |
-
.chaty-popup-close {
|
4679 |
-
position: absolute;
|
4680 |
-
width: 20px;
|
4681 |
-
height: 20px;
|
4682 |
-
right: 4px;
|
4683 |
-
top: 4px;
|
4684 |
-
z-index: 110;
|
4685 |
-
}
|
4686 |
-
.chaty-popup-close a {
|
4687 |
-
display: block;
|
4688 |
-
width: 20px;
|
4689 |
-
height: 20px;
|
4690 |
-
padding: 4px;
|
4691 |
-
box-sizing: border-box;
|
4692 |
-
vertical-align: top;
|
4693 |
-
line-height: 12px;
|
4694 |
-
}
|
4695 |
-
.chaty-popup-close svg {
|
4696 |
-
width: 100%;
|
4697 |
-
height: 100%;
|
4698 |
-
}
|
4699 |
-
.chaty-popup-header {
|
4700 |
-
padding: 10px;
|
4701 |
-
border-bottom: solid 1px #e8e8e8;
|
4702 |
-
font-weight: bold;
|
4703 |
-
text-align: center;
|
4704 |
-
font-size: 20px;
|
4705 |
-
}
|
4706 |
-
.chaty-popup-body {
|
4707 |
-
padding: 40px 20px;
|
4708 |
-
text-align: center;
|
4709 |
-
}
|
4710 |
-
.chaty-popup-footer {
|
4711 |
-
padding: 10px;
|
4712 |
-
text-align: center;
|
4713 |
-
border-top: solid 1px #e8e8e8;
|
4714 |
-
}
|
4715 |
-
.gtm-select {
|
4716 |
-
width: 27%;
|
4717 |
-
}
|
4718 |
-
.color-setting {
|
4719 |
-
width: 100%;
|
4720 |
-
max-width: 500px;
|
4721 |
-
padding: 30px 0;
|
4722 |
-
}
|
4723 |
-
.color-box {
|
4724 |
-
display: flex;
|
4725 |
-
}
|
4726 |
-
.clr-setting {
|
4727 |
-
flex: 1;
|
4728 |
-
}
|
4729 |
-
.main .single-channel-setting {
|
4730 |
-
display: none;
|
4731 |
-
}
|
4732 |
-
.main .single-channel-setting.active {
|
4733 |
-
display: flex;
|
4734 |
-
}
|
4735 |
@media (min-width: 1281px) {
|
4736 |
.btn-help, .remove-chaty-widget-sticky {
|
4737 |
transform: rotate(90deg);
|
@@ -4782,355 +4579,7 @@ span.pop-number {
|
|
4782 |
}*/
|
4783 |
}
|
4784 |
|
4785 |
-
.trigger-block span.dashicons.dashicons-editor-help {
|
4786 |
-
width: 20px;
|
4787 |
-
height: 24px;
|
4788 |
-
line-height: 25px;
|
4789 |
-
color: #7e8993;
|
4790 |
-
}
|
4791 |
-
.traffic-active, .traffic-options-box.active .traffic-default {
|
4792 |
-
display: none;
|
4793 |
-
}
|
4794 |
-
.traffic-options-box.active .traffic-active {
|
4795 |
-
display: block;
|
4796 |
-
}
|
4797 |
-
.traffic-custom-rules {
|
4798 |
-
padding: 5px 10px;
|
4799 |
-
}
|
4800 |
-
.custom-rule-title {
|
4801 |
-
font-weight: bold;
|
4802 |
-
font-size: 14px;
|
4803 |
-
}
|
4804 |
-
.custom-traffic-rule > * {
|
4805 |
-
display: inline-block;
|
4806 |
-
vertical-align: middle;
|
4807 |
-
box-sizing: border-box;
|
4808 |
-
}
|
4809 |
-
.custom-traffic-rule > *.traffic-option {
|
4810 |
-
width: 120px;
|
4811 |
-
padding: 0 5px 0 0;
|
4812 |
-
}
|
4813 |
-
.traffic-action {
|
4814 |
-
width: 36px;
|
4815 |
-
}
|
4816 |
-
a.remove-traffic-option {
|
4817 |
-
background: #bd2a00;
|
4818 |
-
text-align: center;
|
4819 |
-
display: block;
|
4820 |
-
line-height: 36px;
|
4821 |
-
-webkit-border-radius: 4px;
|
4822 |
-
-moz-border-radius: 4px;
|
4823 |
-
border-radius: 4px;
|
4824 |
-
}
|
4825 |
-
.traffic-url {
|
4826 |
-
width: calc(100% - 165px);
|
4827 |
-
padding: 0 5px 0 0;
|
4828 |
-
}
|
4829 |
-
.traffic-url input {
|
4830 |
-
width: 100%;
|
4831 |
-
}
|
4832 |
-
.custom-traffic-rule > *.traffic-option select {
|
4833 |
-
height: 36px;
|
4834 |
-
width: 100%;
|
4835 |
-
}
|
4836 |
-
.custom-traffic-rule {
|
4837 |
-
padding: 5px 0;
|
4838 |
-
border-bottom: solid 1px #eee2ff;
|
4839 |
-
}
|
4840 |
-
.custom-traffic-rule:last-child {
|
4841 |
-
border: none;
|
4842 |
-
}
|
4843 |
-
.custom-traffic-rule:first-child .remove-traffic-option {
|
4844 |
-
display: none;
|
4845 |
-
}
|
4846 |
-
.traffic-rule-actions {
|
4847 |
-
padding: 5px 10px 8px;
|
4848 |
-
border-top: solid 1px #eee2ff;
|
4849 |
-
}
|
4850 |
-
.chaty-setting-col > div > *.chaty-setting-textarea {
|
4851 |
-
width: 310px;
|
4852 |
-
max-width: 100%;
|
4853 |
-
height: 100px;
|
4854 |
-
padding: 5px;
|
4855 |
-
}
|
4856 |
-
.whatsapp-welcome-message {
|
4857 |
-
display: none;
|
4858 |
-
background: rgba(168,134,205,.1);
|
4859 |
-
padding: 15px 15px 10px 15px;
|
4860 |
-
border-radius: 10px;
|
4861 |
-
border: solid 1px #e1c4ff;
|
4862 |
-
width: 100%;
|
4863 |
-
}
|
4864 |
-
.whatsapp-welcome-message.active {
|
4865 |
-
display: block;
|
4866 |
-
}
|
4867 |
-
.form-field-setting-col {
|
4868 |
-
padding: 10px;
|
4869 |
-
background: #eff6f6;
|
4870 |
-
border: solid 1px #d2d2d2;
|
4871 |
-
border-radius: 5px;
|
4872 |
-
margin: 0 0 10px 0;
|
4873 |
-
}
|
4874 |
-
.field-settings, .email-settings, .redirect_action-settings, .close_form_after-settings {
|
4875 |
-
display: none;
|
4876 |
-
}
|
4877 |
-
.field-settings.active, .redirect_action-settings.active, .close_form_after-settings.active {
|
4878 |
-
display: block;
|
4879 |
-
}
|
4880 |
-
.email-settings.active {
|
4881 |
-
padding: 15px 0 0 0;
|
4882 |
-
display: block;
|
4883 |
-
}
|
4884 |
-
.no-margin {
|
4885 |
-
margin: 0 !important;
|
4886 |
-
}
|
4887 |
-
.no-padding {
|
4888 |
-
padding: 0 !important;
|
4889 |
-
}
|
4890 |
-
.left-section {
|
4891 |
-
float: left;
|
4892 |
-
text-align: left;
|
4893 |
-
}
|
4894 |
-
.right-section {
|
4895 |
-
float: right;
|
4896 |
-
width: 50%;
|
4897 |
-
text-align: right;
|
4898 |
-
}
|
4899 |
-
.inline-block {
|
4900 |
-
display: inline-block;
|
4901 |
-
vertical-align: top;
|
4902 |
-
}
|
4903 |
-
.form-field-title {
|
4904 |
-
font-weight: bold;
|
4905 |
-
padding: 0 0 10px 0;
|
4906 |
-
font-size: 18px;
|
4907 |
-
}
|
4908 |
-
.chaty-separator {
|
4909 |
-
margin: 0 0 10px 0;
|
4910 |
-
height: 1px;
|
4911 |
-
width: 100%;
|
4912 |
-
background: #d2d2d2;
|
4913 |
-
}
|
4914 |
-
a#wpappp_export_to_csv {
|
4915 |
-
background: #FF6624;
|
4916 |
-
display: block;
|
4917 |
-
text-align: center;
|
4918 |
-
padding: 10px 15px;
|
4919 |
-
color: #fff;
|
4920 |
-
text-decoration: none;
|
4921 |
-
border-radius: 4px;
|
4922 |
-
}
|
4923 |
-
input#chaty_delete_all_leads {
|
4924 |
-
background: #3c3c3c;
|
4925 |
-
color: #fff;
|
4926 |
-
padding: 10px 15px;
|
4927 |
-
border: none;
|
4928 |
-
border-radius: 4px;
|
4929 |
-
cursor: pointer;
|
4930 |
-
}
|
4931 |
-
.responstable {
|
4932 |
-
border-collapse: collapse;
|
4933 |
-
width: 100%;
|
4934 |
-
border: 1px solid #ccd0d4;
|
4935 |
-
margin-top: 30px;
|
4936 |
-
font-size: 14px;
|
4937 |
-
}
|
4938 |
-
.responstable td {
|
4939 |
-
border: none;
|
4940 |
-
padding: 8px;
|
4941 |
-
font-size: 14px;
|
4942 |
-
}
|
4943 |
-
.responstable tr:last-child {
|
4944 |
-
border-bottom: 1px solid #ccd0d4;
|
4945 |
-
}
|
4946 |
-
.responstable th {
|
4947 |
-
text-align: left;
|
4948 |
-
background-color: #ffffff;
|
4949 |
-
border-bottom: 1px solid #ccd0d4;
|
4950 |
-
border-top: 1px solid #ccd0d4;
|
4951 |
-
color: #32373c;
|
4952 |
-
font-weight: 400;
|
4953 |
-
padding: 12px 8px;
|
4954 |
-
font-size: 14px;
|
4955 |
-
}
|
4956 |
-
.responstable th.text-center {
|
4957 |
-
text-align: center;
|
4958 |
-
width: 80px;
|
4959 |
-
}
|
4960 |
-
.responstable tr:nth-child(even){background-color: #f9f9f9;}
|
4961 |
-
.remove-record {
|
4962 |
-
color: #333;
|
4963 |
-
text-decoration: none;
|
4964 |
-
}
|
4965 |
-
a.url {
|
4966 |
-
color: #333;
|
4967 |
-
text-decoration: none;
|
4968 |
-
}
|
4969 |
-
.no-record-message {
|
4970 |
-
margin: 100px 0 0;
|
4971 |
-
text-align: center;
|
4972 |
-
padding: 50px;
|
4973 |
-
border: solid 1px #dd0000;
|
4974 |
-
background: #ffeaea;
|
4975 |
-
color: #dd0000;
|
4976 |
-
}
|
4977 |
-
.main .channels-icons > .icon.chat-channel-Contact_Us {
|
4978 |
-
width: 180px;
|
4979 |
-
line-height: 48px;
|
4980 |
-
text-align: center;
|
4981 |
-
}
|
4982 |
|
4983 |
-
.main .channels-icons > .icon.chat-channel-Contact_Us span.icon-box {
|
4984 |
-
display: inline-block;
|
4985 |
-
height: 48px;
|
4986 |
-
border-radius: 24px;
|
4987 |
-
background: #bdbdbd;
|
4988 |
-
padding: 0 20px 0 0;
|
4989 |
-
transition: all .2s;
|
4990 |
-
cursor: pointer;
|
4991 |
-
}
|
4992 |
-
.main .channels-icons > .icon.chat-channel-Contact_Us.active span.icon-box, .main .channels-icons > .icon.chat-channel-Contact_Us:hover span.icon-box {
|
4993 |
-
background: rgb(37, 57, 116);
|
4994 |
-
}
|
4995 |
-
.main .channels-icons > .icon.chat-channel-Contact_Us span.icon-box span {
|
4996 |
-
display: inline-block;
|
4997 |
-
vertical-align: top;
|
4998 |
-
font-size: 14px;
|
4999 |
-
padding: 0 0 0 5px;
|
5000 |
-
font-family: Rubik, sans-serif;
|
5001 |
-
color: #fff;
|
5002 |
-
}
|
5003 |
-
.chaty-new-widget-row.no-records {
|
5004 |
-
border: 1px solid #605dec;
|
5005 |
-
margin: 10px;
|
5006 |
-
padding: 10px;
|
5007 |
-
text-align: center;
|
5008 |
-
border-radius: 5px;
|
5009 |
-
color: #1e1e1e;
|
5010 |
-
font-weight: 400;
|
5011 |
-
}
|
5012 |
-
.no-records-title {
|
5013 |
-
font-style: normal;
|
5014 |
-
font-weight: 600;
|
5015 |
-
font-size: 20px;
|
5016 |
-
line-height: 30px;
|
5017 |
-
color: #1E1E1E;
|
5018 |
-
margin: 15px 0;
|
5019 |
-
text-align: center;
|
5020 |
-
}
|
5021 |
-
.extra-chaty-settings {
|
5022 |
-
padding: 10px 0 0 70px;
|
5023 |
-
}
|
5024 |
-
.html-tooltip {
|
5025 |
-
position: relative;
|
5026 |
-
display: inline-block;
|
5027 |
-
}
|
5028 |
-
.html-tooltip .tooltip-text {
|
5029 |
-
visibility: hidden;
|
5030 |
-
width: 300px;
|
5031 |
-
background-color: #333;
|
5032 |
-
color: #fff;
|
5033 |
-
text-align: center;
|
5034 |
-
border-radius: 6px;
|
5035 |
-
padding: 10px;
|
5036 |
-
position: absolute;
|
5037 |
-
z-index: 1201;
|
5038 |
-
bottom: 125%;
|
5039 |
-
left: 50%;
|
5040 |
-
margin-left: -150px;
|
5041 |
-
opacity: 0;
|
5042 |
-
transition: opacity 0.3s;
|
5043 |
-
font-size: 12px;
|
5044 |
-
line-height: 18px;
|
5045 |
-
top: 100%;
|
5046 |
-
height: 454px;
|
5047 |
-
}
|
5048 |
-
.html-tooltip.no-position .tooltip-text {
|
5049 |
-
height: auto;
|
5050 |
-
}
|
5051 |
-
.html-tooltip .tooltip-text:after {
|
5052 |
-
content: "";
|
5053 |
-
position: absolute;
|
5054 |
-
top: -10px;
|
5055 |
-
left: 50%;
|
5056 |
-
margin-left: -5px;
|
5057 |
-
border-width: 5px;
|
5058 |
-
border-style: solid;
|
5059 |
-
border-color: #333 transparent transparent transparent;
|
5060 |
-
transform: rotate(180deg);
|
5061 |
-
-webkit-transform: rotate(180deg);
|
5062 |
-
}
|
5063 |
-
.html-tooltip:hover .tooltip-text {
|
5064 |
-
visibility: visible;
|
5065 |
-
opacity: 1;
|
5066 |
-
}
|
5067 |
-
.html-tooltip .tooltip-text img {
|
5068 |
-
width: 100%;
|
5069 |
-
height: auto;
|
5070 |
-
display: block;
|
5071 |
-
margin: 10px 0 0 0;
|
5072 |
-
}
|
5073 |
-
.html-tooltip.top .tooltip-text {
|
5074 |
-
top: auto;
|
5075 |
-
bottom: 100%;
|
5076 |
-
}
|
5077 |
-
.html-tooltip.top .tooltip-text:after {
|
5078 |
-
top: 100%;
|
5079 |
-
transform: rotate(0deg);
|
5080 |
-
-webkit-transform: rotate(0deg);
|
5081 |
-
}
|
5082 |
-
.html-tooltip.side .tooltip-text {
|
5083 |
-
bottom: 125%;
|
5084 |
-
left: 100%;
|
5085 |
-
margin-left: 0;
|
5086 |
-
top: 5px;
|
5087 |
-
transform: translateY(-50%);
|
5088 |
-
-webkit-transform: translateY(-50%);
|
5089 |
-
}
|
5090 |
-
.html-tooltip.side .tooltip-text:after {
|
5091 |
-
top: 50%;
|
5092 |
-
left: -5px;
|
5093 |
-
transform: rotate(180deg);
|
5094 |
-
-webkit-transform: rotate(90deg);
|
5095 |
-
}
|
5096 |
-
.html-tooltip.side .tooltip-text.hide-arrow:after {
|
5097 |
-
display: none;
|
5098 |
-
}
|
5099 |
-
body *.full-width {
|
5100 |
-
width: 100%;
|
5101 |
-
display: block;
|
5102 |
-
padding: 0 0 5px 0;
|
5103 |
-
}
|
5104 |
-
.chaty-setting-textarea {
|
5105 |
-
width: 100%;
|
5106 |
-
height: 100px;
|
5107 |
-
border-radius: 0;
|
5108 |
-
border: solid 1px #dadce3;
|
5109 |
-
}
|
5110 |
-
.popover .upgrade-link.active {
|
5111 |
-
animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
|
5112 |
-
transform: translate3d(0, 0, 0);
|
5113 |
-
backface-visibility: hidden;
|
5114 |
-
perspective: 1000px;
|
5115 |
-
}
|
5116 |
-
|
5117 |
-
@keyframes shake {
|
5118 |
-
10%, 90% {
|
5119 |
-
transform: translate3d(-1px, 0, 0);
|
5120 |
-
}
|
5121 |
-
|
5122 |
-
20%, 80% {
|
5123 |
-
transform: translate3d(2px, 0, 0);
|
5124 |
-
}
|
5125 |
-
|
5126 |
-
30%, 50%, 70% {
|
5127 |
-
transform: translate3d(-4px, 0, 0);
|
5128 |
-
}
|
5129 |
-
|
5130 |
-
40%, 60% {
|
5131 |
-
transform: translate3d(4px, 0, 0);
|
5132 |
-
}
|
5133 |
-
}
|
5134 |
@media screen and (max-width: 1280px) {
|
5135 |
|
5136 |
}
|
160 |
line-height: 15px;
|
161 |
text-align: center;
|
162 |
background-color: #FFF;
|
163 |
+
-webkit-box-shadow: 0 0 15px 0 rgba(234, 234, 234, 1);
|
164 |
+
-moz-box-shadow: 0 0 15px 0 rgba(234, 234, 234, 1);
|
165 |
+
box-shadow: 0 0 15px 0 rgba(234, 234, 234, 1);
|
166 |
border-radius: 3px;
|
167 |
background-position: center;
|
168 |
background-repeat: no-repeat;
|
191 |
position: static
|
192 |
}
|
193 |
|
194 |
+
.custom-control.custom-radio .custom-control-label::before {
|
195 |
content: '';
|
196 |
transition: all .2s;
|
197 |
position: absolute;
|
208 |
border: 5px solid #fff
|
209 |
}
|
210 |
|
211 |
+
.custom-control.custom-radio .custom-control-label::after {
|
212 |
display: none
|
213 |
}
|
214 |
|
215 |
+
.custom-control.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
|
216 |
background: #a886cd
|
217 |
}
|
218 |
|
304 |
margin-left: 5px
|
305 |
}
|
306 |
|
307 |
+
.btn-red, .color-picker .color-picker-radio label + label {
|
308 |
margin-left: 12px
|
309 |
}
|
310 |
|
321 |
margin-right: 3px
|
322 |
}
|
323 |
|
324 |
+
.color-picker {
|
325 |
background: #FFF;
|
326 |
box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
|
327 |
-webkit-box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
|
332 |
position: relative
|
333 |
}
|
334 |
|
335 |
+
.color-picker .color-picker-radio {
|
336 |
display: flex;
|
337 |
padding: 6px 8px 10px;
|
338 |
border-bottom: 1px solid rgba(130, 130, 130, .1)
|
339 |
}
|
340 |
|
341 |
+
.color-picker .color-picker-radio label {
|
342 |
border-radius: 50%;
|
343 |
width: 28px;
|
344 |
height: 28px;
|
347 |
font-size: 0
|
348 |
}
|
349 |
|
350 |
+
.color-picker .color-picker-radio label span {
|
351 |
display: block;
|
352 |
width: 28px;
|
353 |
height: 28px;
|
359 |
background-image: url(../images/icon-check-white.svg)
|
360 |
}
|
361 |
|
362 |
+
.color-picker .color-picker-radio label input {
|
363 |
position: absolute;
|
364 |
z-index: -1;
|
365 |
opacity: 0
|
366 |
}
|
367 |
|
368 |
+
.color-picker .color-picker-radio label input:checked + span {
|
369 |
opacity: 1
|
370 |
}
|
371 |
|
372 |
+
.btn-help span, .color-picker .color-picker-custom a {
|
373 |
margin-left: 5px
|
374 |
}
|
375 |
|
376 |
+
.color-picker .color-picker-custom {
|
377 |
padding: 10px 8px 16px
|
378 |
}
|
379 |
|
380 |
+
.color-picker .color-picker-custom > div {
|
381 |
display: flex;
|
382 |
align-items: center
|
383 |
}
|
384 |
|
385 |
+
.color-picker .color-picker-custom > div + div {
|
386 |
margin-top: 10px
|
387 |
}
|
388 |
|
389 |
+
.color-picker .color-picker-custom .circle {
|
390 |
color: #FF6376;
|
391 |
background: #FFF;
|
392 |
border: 1px solid #D0D0D0;
|
409 |
font-family: Rubik, sans-serif
|
410 |
}
|
411 |
|
412 |
+
.color-picker .color-picker-custom input {
|
413 |
background: #FFF;
|
414 |
box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
|
415 |
border-radius: 5px;
|
598 |
max-width: 680px
|
599 |
}
|
600 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
601 |
.section-title {
|
602 |
font-family: Oswald, sans-serif;
|
603 |
font-size: 30px;
|
624 |
.main .channels-icons {
|
625 |
display: flex;
|
626 |
flex-wrap: wrap;
|
627 |
+
margin: 0 -8px 20px
|
|
|
|
|
628 |
}
|
629 |
|
630 |
.main .channels-icons > .icon {
|
654 |
position: relative;
|
655 |
}
|
656 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
657 |
.main .channels-selected__item .icon {
|
658 |
margin-right: 5px;
|
659 |
cursor: pointer;
|
664 |
text-align: center;
|
665 |
vertical-align: middle
|
666 |
}
|
667 |
+
|
|
|
|
|
|
|
|
|
|
|
668 |
.main .channels-selected__item .icon > i {
|
669 |
font-size: 30px;
|
670 |
line-height: 50px
|
698 |
position: absolute;
|
699 |
left: calc(50px + 16px + 7px);
|
700 |
top: 50px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
701 |
}
|
702 |
|
703 |
.main .channels-selected__item.disabled .icon {
|
759 |
}
|
760 |
|
761 |
.main .form-horizontal__item-label {
|
762 |
+
flex: 0 0 122px;
|
763 |
margin: 0 14px 0 0;
|
764 |
text-align: right;
|
765 |
font-weight: 700
|
1016 |
line-height: 33px;
|
1017 |
padding: 0 5px;
|
1018 |
position: relative;
|
1019 |
+
margin: 25px 25px 25px 0;
|
1020 |
box-shadow: 0 1px 14px rgba(156, 117, 198, .4), 0 2px 4px rgba(0, 0, 0, .15);
|
1021 |
+
margin: 0 0 20px 0;
|
1022 |
text-align: center;
|
1023 |
max-width: 635px;
|
1024 |
}
|
1154 |
}
|
1155 |
|
1156 |
.upgrade-wrap {
|
1157 |
+
max-width: 1080px;
|
1158 |
margin: 13px auto
|
1159 |
}
|
1160 |
|
1166 |
}
|
1167 |
|
1168 |
.upgrade-block .easy-modal-inner {
|
1169 |
+
padding: 0 20px;
|
1170 |
margin: 0 auto;
|
1171 |
direction: ltr !important;
|
1172 |
+
|
1173 |
}
|
1174 |
|
1175 |
.upgrade-block h2 {
|
1322 |
z-index: 100;
|
1323 |
line-height: 27px;
|
1324 |
box-shadow: 0 4px 4px rgba(0, 0, 0, .11);
|
1325 |
+
vertical-align: middle;
|
1326 |
position: relative;
|
1327 |
color: #fff
|
1328 |
}
|
1756 |
.chaty-switch {
|
1757 |
display: inline-block;
|
1758 |
height: 34px;
|
|
|
1759 |
position: relative;
|
1760 |
+
padding: 0 0 0 50px;
|
1761 |
line-height: 24px;
|
|
|
1762 |
}
|
1763 |
|
1764 |
.chaty-switch input {
|
1802 |
input:checked + .chaty-slider:before {
|
1803 |
transform: translateX(16px);
|
1804 |
}
|
|
|
|
|
|
|
1805 |
|
1806 |
.chaty-slider.round {
|
1807 |
border-radius: 34px;
|
2308 |
border-radius: 9px;
|
2309 |
width: 282px
|
2310 |
}
|
2311 |
+
|
|
|
|
|
|
|
2312 |
.channels__input-box {
|
2313 |
position: relative;
|
2314 |
margin-right: 5px
|
2430 |
min-height: 100%;
|
2431 |
text-align: right;
|
2432 |
opacity: 0;
|
2433 |
+
background: 0 0;
|
2434 |
cursor: pointer;
|
2435 |
display: block;
|
2436 |
position: absolute
|
2663 |
width: auto;
|
2664 |
height: auto;
|
2665 |
max-width: 100%;
|
2666 |
+
max-height: 100%
|
|
|
|
|
|
|
|
|
|
|
2667 |
}
|
2668 |
+
|
2669 |
.mobiel-view .preview .page .chaty-widget .icon i {
|
2670 |
width: 23px;
|
2671 |
height: 23px;
|
2741 |
-webkit-border-radius: 25px;
|
2742 |
font-size: 24px;
|
2743 |
border-radius: 25px;
|
2744 |
+
padding: 15px 45px
|
2745 |
}
|
2746 |
|
2747 |
.test_textarea {
|
2755 |
height: 70px;
|
2756 |
border: solid 1px #f6f6f6;
|
2757 |
width: 100%;
|
2758 |
+
max-width: 360px;
|
2759 |
}
|
2760 |
|
2761 |
.license-key {
|
2808 |
}
|
2809 |
|
2810 |
.testimonial-success-message {
|
2811 |
+
border-left: solid 3px #00a65a
|
2812 |
}
|
2813 |
|
2814 |
.save-testimonial-license-key {
|
2815 |
+
width: 102px;
|
2816 |
+
text-align: center
|
2817 |
}
|
2818 |
|
2819 |
.remove-testimonial-license-key {
|
3996 |
-moz-border-radius: 5px;
|
3997 |
border-radius: 5px;
|
3998 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3999 |
.chaty-settings.cls-btn span {
|
4000 |
padding-left: 2px;
|
4001 |
}
|
4040 |
width: 36px;
|
4041 |
display: inline-block;
|
4042 |
float: right;
|
|
|
|
|
|
|
4043 |
padding: 2px 0 0 0;
|
4044 |
}
|
4045 |
span.chaty-url {
|
4227 |
}
|
4228 |
.sp-preview {
|
4229 |
padding: 0;
|
4230 |
+
margin: 0 5px 0 0;
|
4231 |
height: 40px;
|
4232 |
width: 40px;
|
4233 |
border: none;
|
4336 |
margin: 30px 0;
|
4337 |
}
|
4338 |
.chaty-popup-footer {
|
4339 |
+
padding: 15px;
|
4340 |
border-top: solid 1px #e6e6e6;
|
4341 |
}
|
4342 |
.chaty-popup-footer button {
|
4343 |
+
border: none;
|
4344 |
+
padding: 10px 20px;
|
4345 |
border-radius: 4px;
|
4346 |
background: #00c478;
|
4347 |
color: #fff;
|
4348 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4349 |
.close-chaty-popup {
|
4350 |
|
4351 |
}
|
4398 |
}
|
4399 |
.chaty-channel .advanced-settings {
|
4400 |
display: none;
|
|
|
4401 |
}
|
4402 |
.chaty-channel[data-channel='Whatsapp'] .advanced-settings.Whatsapp-settings,
|
4403 |
.chaty-channel[data-channel='Email'] .advanced-settings.Email-settings,
|
4404 |
.chaty-channel[data-channel='WeChat'] .advanced-settings.WeChat-settings,
|
4405 |
.chaty-channel[data-channel='Link'] .advanced-settings.Link-settings,
|
4406 |
.chaty-channel[data-channel='Linkedin'] .advanced-settings.Linkedin-settings,
|
4407 |
+
.chaty-channel[data-channel='Custom_Link'] .advanced-settings.Custom_Link-settings {
|
|
|
|
|
|
|
|
|
4408 |
display: block;
|
4409 |
}
|
4410 |
.preview .page .chaty-widget.horizontal.chaty-widget-icons-left #iconWidget,
|
4529 |
position: relative;
|
4530 |
overflow: inherit;
|
4531 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4532 |
@media (min-width: 1281px) {
|
4533 |
.btn-help, .remove-chaty-widget-sticky {
|
4534 |
transform: rotate(90deg);
|
4579 |
}*/
|
4580 |
}
|
4581 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4582 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4583 |
@media screen and (max-width: 1280px) {
|
4584 |
|
4585 |
}
|
admin/assets/css/cht-style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
*,.rpt_plans .rpt_plan,::after,::before{box-sizing:border-box}.btn-help,.btn-help:active,.btn-help:hover,.btn-save,.btn-save-sticky a,.icon:after,i{color:#fff}body,i{-webkit-font-smoothing:antialiased}.main .channels-selected__item .btn-cancel:focus,.main .channels-selected__item.disabled .btn-cancel:focus,.main .channels-selected__item.disabled input:focus,button:focus,input:focus{outline:0}.easy-modal ul,.upgrade-block ul{list-style-image:url(../images/icon-check-purple.svg);columns:2}.btn-red,.link-back{text-decoration:none}.btn-file,.kv-file-content,.preview .page,.switch-preview{overflow:hidden}@font-face{font-family:icomoon;src:url(../fonts/icomoon.ttf?qh3c2u) format('truetype'),url(../fonts/icomoon.woff?qh3c2u) format('woff'),url(../fonts/icomoon.svg?qh3c2u#icomoon) format('svg');font-weight:400;font-style:normal}i{font-family:icomoon;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-moz-osx-font-smoothing:grayscale}.easy-modal__bottom,.plan_date,body,button,input{font-family:Rubik,sans-serif}.icon-chat-base:before{content:"\e901"}.icon-chat-db:before{content:"\e903"}.icon-chat-bubble:before{content:"\e900"}.icon-chat-smile:before{content:"\e904"}.icon-upload:before{content:"\e902"}.icon-phone:before{content:"\f095"}.icon-whatsapp:before{content:"\f232"}*,::after,::before{box-sizing:border-box}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{appearance:none;-webkit-appearance:none;margin:0}.container,.ml-auto{margin-left:auto}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto}.col-12{flex:0 0 100%;max-width:100%}.text-center{text-align:center}.text-primary{color:#a886cd}.align-top{align-self:flex-start}.custom-control{display:inline-block;color:#5d5c5c;margin-bottom:0;cursor:pointer;min-height:22px;line-height:22px;padding-left:20px;position:relative}.custom-control .custom-control-input{position:absolute;z-index:-1;opacity:0}.custom-control .custom-control-input.js-upload:disabled~.custom-control-label::before{background:rgba(0,0,0,.1)}.custom-control .custom-control-input:disabled~i{opacity:.5}.custom-control+.custom-control{margin-left:16px}.custom-control.custom-checkbox .custom-control-label{position:static}.custom-control.custom-checkbox .custom-control-label::before{content:'';transition:all .2s;position:absolute;top:3px;left:0;display:block;width:15px;height:15px;line-height:15px;text-align:center;background-color:#fff;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;border-radius:3px;background-position:center;background-repeat:no-repeat;background-size:15px}.color-picker-btn,.custom-control.custom-radio .custom-control-label::before{-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea}.custom-control.custom-checkbox .custom-control-label::after{display:none}.custom-control.custom-checkbox .custom-control-input:checked~.custom-control-label::before{background-image:url(../images/icon-check.svg);background-color:transparent}.custom-control.custom-radio{padding-left:27px}.custom-control.custom-radio .custom-control-label{position:static}.custom-control.custom-radio .custom-control-label:before{content:'';transition:all .2s;position:absolute;top:0;left:0;display:block;width:22px;height:22px;background-color:#fff;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;border-radius:50%;border:5px solid #fff}.custom-control.custom-radio .custom-control-label:after{display:none}.custom-control.custom-radio .custom-control-input:checked~.custom-control-label:before{background:#a886cd}.custom-control.custom-radio+label:before{display:none}.position-pro{background:rgba(168,134,205,.1);border-radius:4px;display:flex;padding:6px 0;transition:all .2s;margin-top:11px;flex-wrap:wrap}.position-pro>div{flex:0 0 auto;padding:6px 15px}.position-pro>div>label:first-child{display:block;margin-bottom:10px}.position-pro>div .custom-control-group{background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.15);border-radius:5px;display:flex;align-items:center;width:150px;height:34px}.position-pro>div .custom-control-group .custom-control{width:75px;padding:0;margin:0!important}.position-pro>div .custom-control-group .custom-control .custom-control-label{width:100%;color:#e0e0e0;height:34px;display:flex;align-items:center;padding:6px 7px}.position-pro>div .custom-control-group .custom-control .custom-control-label:before{content:none}.position-pro>div .custom-control-group .custom-control .custom-control-input:checked+.custom-control-label{color:#a886cd;box-shadow:inset 0 3px 7px rgba(0,0,0,.08)}.position-pro>div .custom-control-group .custom-control .custom-control-input:checked+.custom-control-label path{fill:#a886cd}.icon:not(.active):not(:hover) .color-element,.main .channels-icons>.icon:not(.active):not(:hover) .color-element{fill:#bdbdbd}.icon:not(.active):not(:hover) .slack-path,.main .channels-icons>.icon:not(.active):not(:hover) .slack-path{fill:#fff!important}.position-pro>div .custom-control-group .custom-control:first-child .custom-control-label{border-radius:5px 0 0 5px;text-align:left}.position-pro>div .custom-control-group .custom-control:first-child .custom-control-label svg{margin-right:5px}.position-pro>div .custom-control-group .custom-control:last-child .custom-control-label{border-radius:0 5px 5px 0;display:flex;justify-content:flex-end}.position-pro>div .custom-control-group .custom-control:last-child .custom-control-label svg{margin-left:5px}.btn-red,.color-picker-box .color-picker-radio label+label{margin-left:12px}.position-pro input{background:#fff;box-shadow:0 0 10px 2px rgba(0,0,0,.2);-webkit-box-shadow:0 0 10px 2px rgba(0,0,0,.2);-moz-box-shadow:0 0 10px 2px rgba(0,0,0,.2);border-radius:5px;border:0;line-height:24px;padding:5px 7px;width:60px;margin-right:3px}.color-picker-box{background:#fff;box-shadow:0 0 10px 2px rgba(0,0,0,.2);-webkit-box-shadow:0 0 10px 2px rgba(0,0,0,.2);-moz-box-shadow:0 0 10px 2px rgba(0,0,0,.2);border-radius:4px;width:330px;display:none;position:relative}.color-picker-box .color-picker-radio{display:flex;padding:6px 8px 10px;border-bottom:1px solid rgba(130,130,130,.1)}.color-picker-box .color-picker-radio label{border-radius:50%;width:28px;height:28px;position:relative;cursor:pointer;font-size:0}.color-picker-box .color-picker-radio label span{display:block;width:28px;height:28px;vertical-align:top;opacity:0;transition:all .2s;background-position:center;background-repeat:no-repeat;background-image:url(../images/icon-check-white.svg)}.color-picker-box .color-picker-radio label input{position:absolute;z-index:-1;opacity:0}.color-picker-box .color-picker-radio label input:checked+span{opacity:1}.btn-help span,.color-picker-box .color-picker-custom a{margin-left:5px}.color-picker-box .color-picker-custom{padding:10px 8px 16px}.color-picker-box .color-picker-custom>div{display:flex;align-items:center}.color-picker-box .color-picker-custom>div+div{margin-top:10px}.color-picker-box .color-picker-custom .circle{color:#ff6376;background:#fff;border:1px solid #d0d0d0;border-radius:50%;width:28px;height:28px;align-items:center;justify-content:center;display:flex;margin-right:3px;font-size:14px}a,a:focus{color:#a886cd}body,button{font-size:17px;font-family:Rubik,sans-serif}.color-picker-box .color-picker-custom input{background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.15);border-radius:5px;border:0;line-height:24px;padding:5px 7px;height:34px;width:180px}.color-picker-btn{background-color:#fff;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;border-radius:4px;border:0;padding:6px 8px;line-height:17px}.color-picker-btn .circle{display:inline-block;vertical-align:top;width:15px;height:15px;border-radius:50%;margin:1px 4px 1px 0}.color-picker-btn svg{transition:all .2s;margin-left:8px}.color-picker-btn-close{background-color:transparent;border:0;padding:5px;line-height:17px;position:absolute;right:0;top:0}.color-picker-btn-close svg{transform:rotate(180deg)}.switch{display:flex;align-items:center;margin-bottom:0;position:relative;flex:0 0 auto}.switch input[type=checkbox]{pointer-events:none;opacity:0;position:absolute;top:0;right:0;z-index:-1;width:0;height:0}.switch input[type=checkbox]:checked+.switch__styled{background:#a886cd;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea}.switch input[type=checkbox]:checked+.switch__styled:after{left:40px;background:#fff}.form-group .switch{height:42px}.switch__styled{background:linear-gradient(283.61deg,#f6f6f6 7.4%,#fff 91.67%),#fff;margin:0 8px;display:inline-block;height:34px;width:72px;border-radius:17px;position:relative;transition:all .2s;cursor:pointer;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;background:#cfbde4}.switch__styled:after{content:'';position:absolute;left:2px;top:2px;height:30px;width:30px;border-radius:50%;background-color:#fff;transition:all .2s;-webkit-box-shadow:0 0 15px 0 #eaeaea inset;-moz-box-shadow:0 0 15px 0 #eaeaea inset;box-shadow:0 0 15px 0 #eaeaea inset}.switch.custom-switch{margin-right:auto;margin-left:30px}.switch.custom-switch .switch__styled{background:linear-gradient(283.61deg,#f6f6f6 7.4%,#fff 91.67%),#fff;box-shadow:0 4px 14px rgba(0,0,0,.15)}body{height:auto;background-image:url(../images/bg.svg);background-position:155px 30px;background-repeat:no-repeat;background-size:calc(100% - 150px) auto;background-attachment:fixed;color:#4f4f4f;padding-bottom:50px;margin:0}button{cursor:pointer}button#collapse-button{font-size:13px}input{font-family:Rubik,sans-serif;font-size:17px}#cht-form input[type=submit]{opacity:0;position:absolute}a:focus{box-shadow:none}::-webkit-input-placeholder{color:#e0e0e0}::-moz-placeholder{color:#e0e0e0}:-ms-input-placeholder{color:#e0e0e0}:-moz-placeholder{color:#e0e0e0}.section{padding:30px 15px;position:relative}.section+.section{border-top:2px solid rgba(130,130,130,.1)}.section.one{max-width:680px}.chaty-text-color{position:relative}.chaty-text-color .wp-picker-holder{position:absolute;z-index:101}.chaty-text-color span.wp-color-result-text{display:none}.section-title{font-family:Oswald,sans-serif;font-size:30px;color:#000;line-height:44px;margin-bottom:30px;font-weight:400;margin-top:0;display:flex}.section-title strong{margin:0 14px 0 0;text-align:right;font-weight:700}.main{background-color:#fff;border-radius:9px;position:relative}.main .channels-icons{display:flex;flex-wrap:wrap;width:540px;margin:0 auto;max-width:100%}.main .channels-icons>.icon{padding:0 6px;margin:0 0;width:60px;height:55px}.main .channels-icons>.icon .color-element{transition:all .2s}.main .channels-icons>.icon:not(.active) svg{cursor:pointer}.main .channels-selected{padding-top:20px;position:relative;min-height:120px}.main .channels-selected__item{display:flex;align-items:center;flex-wrap:wrap;position:relative}.chaty-default-settings{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding-bottom:15px}.channels-selected-list li{display:block;max-width:640px;padding:15px;background:#eff6f6;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;margin-bottom:15px}li#chaty-social-Poptin{padding:15px 15px 25px 15px}.main .channels-selected__item .icon{margin-right:5px;cursor:pointer;width:50px;border-radius:100%;height:50px;text-align:center;vertical-align:middle}.main .channels-selected__item .icon.inline-message{display:inline-block;vertical-align:middle;width:auto;height:auto}.main .channels-selected__item .icon>i{font-size:30px;line-height:50px}.main .channels-selected__item .btn-cancel{position:absolute;right:-15px;top:-15px;transform:translate(50%,-50%);background:linear-gradient(0deg,#333,#333),linear-gradient(153.18deg,#6371db 7.07%,#ff89c4 90.47%);border-radius:50%;width:22px;height:22px;display:flex;align-items:center;justify-content:center;padding:0;border:0;z-index:1;box-shadow:0 4px 14px rgba(0,0,0,.15);cursor:pointer}.main .channels-selected__item .input-example{font-size:13px;padding-top:0;line-height:14px;color:#444;opacity:.8;position:absolute;left:calc(50px + 16px + 7px);top:50px;max-width:350px}.chaty-settings a{text-decoration:none;display:inline-block;color:#fff;margin-left:15px;height:26px;background:#a785cb;text-align:center;vertical-align:middle;-webkit-border-radius:18px;-moz-border-radius:18px;border-radius:18px;font-size:10px;line-height:26px;padding:0 5px}.move-icon img{width:10px;margin-right:5px;margin-top:8px;cursor:move}.chaty-settings a .dashicons,.chaty-settings a .dashicons-before:before{font-size:16px;line-height:26px;display:inline-block;margin:0;text-align:center}.main .channels-selected__item.disabled .icon{cursor:default}.main .channels-selected__item.disabled .icon .color-element{fill:#e9e9e9}.main .channels-selected__item.disabled input{box-shadow:0 4px 14px rgba(179,179,179,.15);color:#e9e9e9}.main .channels-selected__item.disabled input::-webkit-input-placeholder{color:#e9e9e9}.main .channels-selected__item.disabled input::-moz-placeholder{color:#e9e9e9}.main .channels-selected__item.disabled input:-ms-input-placeholder{color:#e9e9e9}.main .channels-selected__item.disabled input:-moz-placeholder{color:#e9e9e9}.main .channels-selected__item.disabled .btn-cancel{cursor:default;background:linear-gradient(0deg,#cfcfcf,#cfcfcf),linear-gradient(153.18deg,#6371db 7.07%,#ff89c4 90.47%)}.btn-help,.btn-save-sticky,.channels__view,.icon:not(.active) svg{cursor:pointer}.main .channels-selected__item.disabled .input-example{color:#e9e9e9}.main #positionPro{margin-left:-122px}.main .form-horizontal__item{display:flex;flex-wrap:wrap}.main .form-horizontal__item.active+.form-horizontal__item{padding-top:30px}.main .form-horizontal__item:not(.o-channel)+.form-horizontal__item{padding-top:30px}.main .form-horizontal__item-label{flex:0 0 135px;margin:0 14px 0 0;text-align:right;font-weight:700}.header,.main .form-horizontal__item.flex-center{align-items:center}.main .form-horizontal__item>div>input{background:#fff;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;border-radius:5px;border:0;line-height:24px;padding:5px 7px}.main .form-horizontal__item>div>input.widget-size__input{width:47px;height:34px;text-align:center}.icon{border-radius:50%;vertical-align:top;font-size:0;position:relative}.icon.label-tooltip{font-size:12px;font-weight:400;color:#72777c}.icon:after,.icon:before{position:absolute;opacity:0;pointer-events:none;left:50%}.icon:after{text-align:center;content:"" attr(data-label) "";font-size:11px;top:0;transform:translate(-50%,calc(-100% - 6px));padding:0 20px;line-height:23px;min-width:90px;white-space:nowrap;background-color:#333;box-shadow:0 2px 4px rgba(0,0,0,.15);border-radius:6px;z-index:1001}.btn-save:after,.icon:before,.popover:after{content:''}.icon:before{top:-8px;transform:translateX(-50%);height:10px;width:10px;border-width:10px 5px 0;border-style:solid;border-color:#333 transparent transparent}.icon.tooltip-show:after,.icon.tooltip-show:before,.icon:hover:not(.tooltip-show):after,.icon:hover:not(.tooltip-show):before{opacity:1;pointer-events:auto}.chaty-help-form,.disabled{pointer-events:none}.icon .color-element{transition:all .2s}.icon.no-tooltip:after,.icon.no-tooltip:before{content:none!important}.icon.icon-sm svg{width:48px;height:48px}.icon.icon-md svg{width:50px;height:50px;cursor:move}.icon.icon-xs svg{width:30px;height:30px}.preview.mobiel-view .icon.icon-xs svg{width:24px;height:24px}.preview.mobiel-view .social-item-box{margin:0}.preview.mobiel-view .tooltip .tooltiptext{min-height:24px;line-height:24px;height:24px;bottom:3px}.preview.mobiel-view .tooltip .tooltiptext span{height:24px;min-height:24px;line-height:24px}.preview.mobiel-view .chaty-widget .icon:before{top:calc(100% - 17px)}.preview.mobiel-view span.social-tooltip{padding:0 10px}.preview.mobiel-view span.social-tooltip:after{top:6px}.btn-save{border:0;text-transform:uppercase;line-height:24px;font-weight:700;position:relative;max-width:100%;margin-top:40px;height:50px;width:274px;border-radius:25px;padding:14px 15px 12px;background-image:url(../images/rocket.svg);background-color:#ff6624;background-position:left bottom;background-repeat:no-repeat;box-shadow:0 3px 10px 1px rgba(255,90,116,.5)}.btn-save:after{position:absolute;z-index:-1;top:30px;left:50%;transform:translateX(-50%);width:238.1px;height:30.81px;background:linear-gradient(97.71deg,#ff6624 9.04%,#ff6376 91.56%),linear-gradient(104.36deg,#6371db 20.37%,#ff89c4 72.52%);opacity:.77;filter:blur(19px);border-radius:9px}.btn-help,.preview-help-btn{text-align:center;padding-top:10px;position:absolute;background:#03e78b;border-radius:7px 7px 0 0;right:0;top:60px;transform:rotate(-90deg);transform-origin:bottom right;border:0;height:42px;width:102px;text-transform:uppercase;font-weight:700}.btn-help span{display:inline-block;width:27px;height:27px;border:2px solid #fff;border-radius:100%}.preview-help-btn{display:none;color:#fff;text-decoration:none}.btn-save-sticky{padding:10px 0 11px;top:20px;background:#ff6624;right:0;border-radius:7px 0 0 7px;position:absolute;border:0;height:69px;width:42px;text-transform:uppercase;color:#fff;font-weight:700;font-size:11px}.btn-save-sticky span{text-align:center;display:inline-block;margin-bottom:4px;height:15px;line-height:13px}input.channels__input.border-red{border-color:#d00}@media (min-width:1281px){.btn-save-sticky{left:calc(50vw - 480px + 1050px / 12 * 7 + 475px);top:161px;right:auto;border-radius:0 7px 7px 0;position:fixed}body.has-premio-box .btn-save-sticky{top:320px}body.has-premio-box .btn-help{top:455px}html[dir=rtl] .btn-save-sticky{left:calc(50vw - 480px + 1050px / 12 * 7 + 295px)}html[dir=rtl] .btn-help{left:calc(50vw - 480px + 1050px / 12 * 7 + 193px)}}.popover{flex:0 0 auto;background:#fff;border-radius:4px;line-height:33px;padding:0 5px;position:relative;box-shadow:0 1px 14px rgba(156,117,198,.4),0 2px 4px rgba(0,0,0,.15);margin:30px 0 20px 0;text-align:center;max-width:635px}.popover:after{position:absolute;top:-7px;left:40px;width:20px;height:7px;background-image:url(../images/arrow.png);background-position:center;background-size:contain;background-repeat:no-repeat;display:none}.easy-modal{display:none;width:515px;max-width:calc(100vw - 30px);box-shadow:0 4px 6px rgba(0,0,0,.15);border-radius:6px;background-color:#fff;top:50%!important;transform:translateY(-50%)}.easy-modal .money-guaranteed svg,.upgrade-block .money-guaranteed svg{width:15px;vertical-align:text-bottom}.easy-modal .money-guaranteed{color:#a886cd;font-size:17px;line-height:24px;margin-bottom:20px}.easy-modal .easy-modal-inner{position:relative;padding:20px 50px}.easy-modal .easy-modal-close{position:absolute;right:0;top:0;padding:7px;line-height:12px;background-color:transparent;border:0}.easy-modal h2{font-family:Rubik;font-weight:700;font-size:27px;margin-bottom:13px;text-align:center;margin-top:0}.easy-modal .udner-title{font-size:17px}.easy-modal .udner-title span{font-size:15px;display:block;color:#bdbdbd}.easy-modal p{text-align:center;margin:0 auto 10px}.easy-modal ul{margin-bottom:17px;line-height:27px;list-style-position:inside;text-align:left}.easy-modal .easy-modal-link{font-size:15px;text-decoration-line:underline;color:#828282;display:inline-block;margin-top:7px}.easy-modal .form-horizontal__item{margin-bottom:50px;justify-content:center;text-align:center}.easy-modal .user-name,.easy-modal .user-role{margin:0;font-size:13px}.easy-modal .form-horizontal__item>div{flex:0 0 auto}.easy-modal .user-name{font-weight:700;color:#828282;text-align:left}.link-back,.link-back:hover{color:#fff}.easy-modal .user-photo{float:left;margin-right:5px}.link-back{display:inline-block;border:1px solid #fff;border-radius:60px;font-size:17px;line-height:20px;text-align:center;padding:7px 46px}.upgrade-wrap{max-width:962px;margin:13px auto}.upgrade-block{background-color:#fff;border-radius:9px;padding:48px 0 67px;margin-top:21px}.upgrade-block .easy-modal-inner{max-width:600px;margin:0 auto;direction:ltr!important}.upgrade-block h2{font-family:Rubik;font-weight:700;font-size:27px;margin-bottom:5px;text-align:center;margin-top:0;line-height:33px}.upgrade-block .udner-title{font-size:17px}.upgrade-block .udner-title span{font-size:15px;display:block;color:#bdbdbd}.form-horizontal__item .chaty-widget .icon,.upgrade-block ul{display:inline-block}.upgrade-block p{text-align:center;margin:0 auto 10px}.upgrade-block ul{margin-bottom:17px;line-height:27px;list-style-position:inside;text-align:left}.upgrade-block .easy-modal-link{font-size:15px;text-decoration-line:underline;color:#828282;display:inline-block;margin-top:7px}.upgrade-block .form-horizontal__item{margin-bottom:50px;justify-content:center;text-align:center}img.payment-img{margin:10px 0}.upgrade-block .form-horizontal__item>div{flex:0 0 auto}.upgrade-block .user-name{font-weight:700;color:#828282;margin:0;text-align:left;font-size:13px}.upgrade-block .user-role{margin:0;font-size:13px}.upgrade-block .user-photo{float:left;margin-right:5px}.upgrade-block .money-guaranteed{color:#b97fcf;font-size:16px;line-height:18px;margin:10px 0}.upgrade-block .money-guaranteed span.dashicons.dashicons-yes{background:#00bd00;color:#fff;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%}.easy-modal.modal-upgrade{width:560px}.easy-modal.modal-upgrade .easy-modal-inner{padding:20px 0 0}.modal__wrap{padding:0 5px;text-align:center}.form-horizontal__item .chaty-widget{position:static;flex:0 0 250px!important}.form-horizontal__item .chaty-widget .icon svg{width:62px;height:62px}.form-horizontal__item .chaty-widget .icon:after{z-index:10;content:"" attr(data-label) "";font-size:17px;left:0;top:50%;transform:translate(calc(-100% - 6px),-50%);white-space:nowrap;padding:16px 25px;line-height:21px;width:auto;color:#333;background-color:#fff;box-shadow:0 1.93px 7.74px rgba(0,0,0,.15);border-radius:10px}#toplevel_page_chaty-app img,.btn-red:hover,.text_update{color:#fff}.form-horizontal__item .chaty-widget .icon:before{content:'';left:-8px;top:50%;transform:translateY(-50%);height:10px;width:10px;z-index:11;border-width:5px 0 5px 10px;border-style:solid;border-color:transparent transparent transparent #fff}.btn-red,.btn-white{z-index:100;line-height:27px;box-shadow:0 4px 4px rgba(0,0,0,.11);vertical-align:top;position:relative;color:#fff}.btn-red:focus,.btn-red:hover{color:#fff}.form-horizontal__item .chaty-widget.chaty-widget-icons-right .icon:before{right:-8px;left:auto;border-width:5px 10px 5px 0;border-color:transparent #fff transparent transparent}.form-horizontal__item .chaty-widget.chaty-widget-icons-right .icon:after{right:0;left:auto;transform:translate(calc(100% + 6px),-50%)}.header{display:flex;padding:3px 0;margin-bottom:9px}.btn-red,.tooltip{display:inline-block}.btn-white{background-color:transparent;border:1px solid #fff;border-radius:19px;display:inline-block;padding:3px 20px;text-transform:uppercase;font-weight:700;text-decoration:none}.btn-white,.btn-white:focus,.btn-white:hover{color:#fff}.btn-red{border:0;text-transform:uppercase;font-weight:700;background-color:#ff6624;padding:6px 20px 4px;border-radius:19px}.btn-red svg{vertical-align:text-top;margin-left:5px}.btn-red:hover{color:#fff}.text_update{color:#fff;top:2px;position:relative;margin:0;font-size:10px;left:15px}.sticky-wrapper{position:absolute;right:0;top:-370px;width:calc(320px);z-index:99}.tooltip{position:relative}.chaty-widget-icons-left .tooltip .tooltiptext,.chaty-widget-icons-right .tooltip .tooltiptext{white-space:pre-wrap;display:block;width:250px;min-height:24px;color:#000;text-align:center;padding:0;top:2.5px;position:absolute;z-index:35;font-size:12px;line-height:36px}.tooltip .tooltiptext span{background-color:#fff;padding:0 15px;display:inline-block;vertical-align:middle;line-height:24px;height:24px;float:right;margin:0;border-radius:6px}.chaty-widget-icons-left .tooltip .tooltiptext span{float:left}.tooltip:hover .tooltiptext{visibility:visible}.chaty-widget-icons-right .tooltip .tooltiptext{justify-content:center;align-items:center;right:41px}.mobiel-view .chaty-widget-icons-right .tooltip .tooltiptext{right:35px}.chaty-widget-icons-left .tooltip .tooltiptext{align-items:center;justify-content:center;left:43px;line-height:36px}.mobiel-view .chaty-widget-icons-left .tooltip .tooltiptext{left:37px}.update-nag{display:block!important}.notice,div.error,div.updated{display:none!important}div#setting-error-settings_updated{display:block!important}.domain__input,.domain__label{max-width:342px;display:block}.domain{background:rgba(168,134,205,.1);border-radius:4px;text-align:left;margin:0 0 10px;padding:10px 20px}.domain__label{font-size:17px;font-weight:700;margin:0 auto 6px}.domain__input{height:34px;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.15);border-radius:5px;border:none;width:100%;margin:0 auto}.upg{background:0 0;border:none;text-align:center;width:270px;padding:0}.upg img,.upg svg{width:100%}.valid_domain{transition-property:margin-top;transition-delay:.3s;color:red;display:none}.payments{margin-bottom:5px}.easy-modal__bottom{padding:10px 10px 0;text-align:left;font-family:Rubik,sans-serif;color:#828282;position:relative}.easy-modal__bottom .quote{position:absolute;left:65px;top:-4px}.easy-modal__bottom:before{content:'';display:block;position:absolute;left:0;top:0;width:100%;background:rgba(130,130,130,.1);height:2px}.easy-modal__bottom .easy-modal__bottom-p{text-align:left;font-weight:300;position:relative;margin-bottom:10px;font-size:14px;line-height:17px}.easy-modal__bottom .easy-modal__bottom-p p{text-align:left;margin:6px 0 0;line-height:15px}html[dir=rtl] body{background-position:0}html[dir=rtl] input[type=radio]:checked:before{text-indent:-1px}.chaty-new-widget-wrap{border-radius:10px;padding:10px;margin:40px auto 0 auto;background-size:auto 100%;width:100%;max-width:776px;background:#fff url(../images/bg.png) right bottom no-repeat;font-family:Poppins;line-height:20px}.chaty-new-widget-wrap h2{font-style:normal;font-weight:600;font-size:20px;line-height:30px;color:#1e1e1e;margin:15px 0}.chaty-features ul{margin:0;padding:0}.chaty-features ul li{margin:0;width:33.33%;float:left;padding:10px}.chaty-feature{margin:30px 0 0 0;background:#fff;border:1px solid #605dec;box-sizing:border-box;border-radius:4px;padding:30px 15px 10px 15px;min-height:186px;position:relative}.chaty-feature.second{min-height:155px}.feature-title{font-family:Poppins;font-style:normal;font-weight:700;font-size:13px;line-height:18px;color:#1e1e1e}.feature-description{font-family:Poppins;font-style:normal;font-weight:400;font-size:13px;line-height:18px;color:#1e1e1e}a.new-upgrade-button{height:40px;background:#605dec;border-radius:100px;border:solid 1px #605dec;display:inline-block;text-align:center;color:#fff;line-height:40px;margin:10px 0 10px 10px;padding:0 25px;text-decoration:none;text-transform:uppercase}a.new-demo-button{height:40px;color:#605dec;border:solid 1px #605dec;border-radius:100px;display:inline-block;text-align:center;background:#fff;line-height:40px;margin:10px 0 10px 10px;padding:0 25px;text-decoration:none;width:165px}.analytics-popup{display:none}.analytics-overlay{width:100%;height:100%;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);z-index:10001}.analytics-popup-content{position:fixed;top:50%;left:0;right:0;margin:0 auto;z-index:11011;width:auto;max-width:100%;max-height:100%;padding:15px;border-radius:5px;text-align:center;-webkit-transform:translate(0,-50%);transform:translate(0,-50%);height:80vh}.analytics-popup-content .popup-data{position:relative;display:inline-block;height:80vh}.analytics-popup-content .popup-data img{width:auto;max-width:100%;height:auto;max-height:100%}.analytics-popup-content .close-popup{position:absolute;right:-20px;top:-20px}.analytics-popup-content .close-popup a{text-decoration:none;width:20px;height:20px;border-radius:50%;background:#4e4e4e;color:#fff;text-align:center;display:block}.chaty-feature.analytics{min-height:115px}.chaty-feature-top{width:50px;height:50px;border:solid 1px #605dec;border-radius:50%;position:absolute;left:0;right:0;margin:0 auto;top:-25px;background:#fff;z-index:11;padding:10px}.chaty-feature-top img{width:100%;height:auto}.trigger-block{padding:0;background:#f6f3fa;margin-bottom:4px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;position:relative;flex:calc(100% - 152px);max-width:360px}.chaty-switch{display:inline-block;height:34px;line-height:34px;position:relative;padding:0 0 0 50px!important;line-height:24px;width:100%!important}.chaty-switch input{display:none}.chaty-slider{background-color:#cfbde4;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.4s;width:40px;height:24px}.chaty-slider:before{background-color:#fff;bottom:4px;content:"";height:16px;left:4px;position:absolute;transition:.4s;width:16px}.trigger-block-input{font-size:14px}.trigger-block-input input{width:50px}input:checked+.chaty-slider{background-color:#a886cd}input:checked+.chaty-slider:before{transform:translateX(16px)}input:disabled+.chaty-slider{background:#e2e2e2}.chaty-slider.round{border-radius:34px}.chaty-slider.round:before{border-radius:50%}.trigger-option-block{padding:10px;border-bottom:solid 1px #eee2ff}.trigger-option-block:last-child{border-bottom:none}.gmt-data{display:none}.chaty-date-time-option:first-child .gmt-data{display:block}.chaty-date-time-option{padding:5px;background:#f6f3fa;margin-bottom:4px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;position:relative}.chaty-date-time-option.last{margin-bottom:15px}.date-time-content>*{vertical-align:middle;display:inline-block}.day-select{width:25%;display:inline-block;padding-right:5px}.date-time-content input,.date-time-content select{width:100%;height:36px;line-height:36px;padding:0 10px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.day-label{width:50px;padding-right:5px;text-align:right}.day-time{width:10%;padding-right:5px}.day-buttons a{background:#bd2a00;text-align:center;display:inline-block;line-height:36px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;width:36px;height:36px}.main .form-horizontal__item.hide-show-button{display:none}.main .form-horizontal__item.hide-show-button.active{display:flex}.custom-chaty-image{display:none}.chaty-channels .social-item-box .custom-chaty-image{display:none}.chaty-channels .social-item-box .custom-chaty-image img{width:30px;height:30px;object-fit:cover;border-radius:50%}.chaty-channels .social-item-box.img-active .custom-chaty-image{display:block}.chaty-channels .social-item-box .custom-chaty-image,.chaty-channels .social-item-box .default-chaty-icon{width:30px;height:30px;cursor:pointer}.chaty-channels .social-item-box.img-active .default-chaty-icon{display:none}.social-item-box{display:block;height:30px;margin:0 0 5px 0;position:relative}#iconWidget{cursor:pointer}.chaty-channels{display:none}.chaty-widget.active .chaty-channels,.chaty-widget.hover:hover .chaty-channels{display:block}.preview .page .chaty-widget i.chaty-close-icon,.preview .page .chaty-widget.active.hide-arrow i.chaty-close-icon{display:none!important}.preview .page .chaty-widget.active:not(.has-single):not(.hide-arrow) i.chaty-close-icon,.preview .page .chaty-widget.hover:hover:not(.has-single):not(.hide-arrow) i.chaty-close-icon{display:block!important}.preview .page .chaty-widget.active:not(.has-single) i#iconWidget,.preview .page .chaty-widget.hover:hover:not(.has-single) i#iconWidget{display:none!important}.preview .page .chaty-widget.active:not(.has-single) .tooltiptext{display:none!important}.preview .page .chaty-widget.active:not(.has-single) .icon:before{display:none!important}span.social-tooltip{position:absolute;right:100%;background:#fff;padding:0 10px;color:#4f4f4f;top:0;z-index:1001;font-size:12px;margin:0 10px 0 0;border-radius:5px;display:none}.social-item-box:hover span.social-tooltip{display:block}span.social-tooltip:after{content:"";border-width:5px 0 5px 10px;border-style:solid;border-color:transparent transparent transparent #fff;position:absolute;top:6px;right:-9px}.chaty-widget-icons-left span.social-tooltip{margin:0 0 0 14px;left:100%;right:auto}.chaty-widget-icons-left span.social-tooltip:after{content:"";border-style:solid;border-width:5px 10px 5px 0;border-color:transparent #fff transparent transparent;position:absolute;top:12px;right:100%}.chaty-date-time-option input[readonly]{background:#fff}.upgrade-upload-btn .upgrade-link{display:none!important}.upgrade-upload-btn:hover .upgrade-link{display:block!important}.upgrade-upload-btn:hover .custom-control-label,.upgrade-upload-btn:hover .form-group{opacity:.5;filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px);-moz-filter:blur(2px);-webkit-filter:blur(2px)}.read-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}select.chaty-select:disabled,textarea.test_textarea:disabled{background:#eee;border:solid 1px #ddd;color:#32373c;font-size:14px}.widget-icon__block .custom-control.custom-radio.add-border{border-right:1px solid #fff}.upgrade-upload-btn:hover .custom-control-label,.upgrade-upload-btn:hover .form-group{opacity:.5;filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px);-moz-filter:blur(2px);-webkit-filter:blur(2px)}.widget-icon__wrap a.upgrade-link{display:block;font-size:16px;text-align:center;padding-left:0;position:absolute;bottom:35px;right:0;width:70px;text-decoration:none;text-align:center;left:0;margin:0 auto}.upgrade-upload-btn:hover .upgrade-link{display:block!important}.chaty-option-box{flex:calc(100% - 152px)}.chaty-data-and-time-rules{display:none}.hover.chaty-widget:hover .tooltiptext{display:none!important}.preview .page .hover.chaty-widget:hover .icon:before{display:none!important}span.header-tooltip{position:relative;display:inline-block}span.header-tooltip span.dashicons.dashicons-editor-help{display:inline-block;cursor:pointer}span.header-tooltip-text{display:none;position:absolute;bottom:140%;left:0;width:250px;left:-110px;font-size:12px;font-weight:400;line-height:16px;background:#000;padding:5px;border-radius:5px;color:#fff}span.header-tooltip-text:before{content:"";top:100%;transform:translateX(-50%);height:10px;width:10px;border-width:10px 5px 0;border-style:solid;border-color:#333 transparent transparent;position:absolute;left:0;right:0;margin:0 auto}span.header-tooltip:hover span.header-tooltip-text{display:block}.chaty-animation-pulse{animation:chaty-animation-pulse 1s forwards}.chaty-animation-jump{animation:chaty-animation-jump 1s forwards cubic-bezier(.84,-.54,.31,1.19)}.chaty-animation-waggle{animation:chaty-animation-waggle 1s forwards ease-out}.chaty-animation-sheen{position:relative;overflow:hidden}.chaty-animation-sheen:after{animation:chaty-animation-sheen 1.5s forwards;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(-1em,4em)}.chaty-animation-spin{animation:chaty-animation-spin 1s forwards cubic-bezier(.56,-.35,.22,1.5)}.chaty-animation-fade{animation:chaty-animation-fade 1s forwards}a.upgrade-link{line-height:24px;display:block;padding:10px 10px;text-decoration:none}a.upgrade-link strong{text-decoration:underline}@keyframes chaty-animation-pulse{0%{background-color:orange}25%{background-color:red}50%{background-color:orange}75%{background-color:red}}@keyframes chaty-animation-jump{0%{transform:none}50%{transform:translateY(-.8em)}}@keyframes chaty-animation-waggle{0%{transform:none}50%{transform:rotateZ(-20deg) scale(1.2)}60%{transform:rotateZ(25deg) scale(1.2)}67.5%{transform:rotateZ(-15deg) scale(1.2)}75%{transform:rotateZ(15deg) scale(1.2)}82.5%{transform:rotateZ(-12deg) scale(1.2)}85%{transform:rotateZ(0) scale(1.2)}100%{transform:rotateZ(0) scale(1)}}@keyframes chaty-animation-sheen{100%{transform:rotateZ(60deg) translate(0,-4em)}}@keyframes chaty-animation-spin{50%{transform:rotateZ(-20deg);animation-timing-function:ease}100%{transform:rotateZ(360deg)}}@keyframes chaty-animation-fade{25%{opacity:.25}50%{opacity:1}75%{opacity:.25}100%{opacity:1}}.start-now,.start-now:after{animation-delay:0s}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}.modal__wrap{padding:0}.domain{margin:0 0 10px;padding:20px 60px 26px}}.channels__view{display:inline-block;color:#444;margin-bottom:0;line-height:14px;padding-left:17px;position:relative;font-size:14px;margin-left:15px}.channels__view-check{position:absolute;z-index:-1;opacity:0}.channels__view-check:checked~.channels__view-txt::before{background:#a785cb;color:#fff}.channels__view-check:checked~.channels__view-txt::after{color:#fff;content:"\f147";font-family:dashicons;line-height:1;position:absolute;top:0;left:0}.channels__view-txt:before{content:'';transition:all .2s;position:absolute;top:0;left:0;display:block;width:14px;height:14px;line-height:14px;text-align:center;border:solid 2px #a785cb;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.file-input,.widget-icon__block .custom-control.custom-radio .custom-control-label{position:relative}.channels__input{padding:9px 7px;border:0;line-height:24px;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.15);border-radius:9px;width:282px}.channels__input.transparent{background:0 0;box-shadow:none}.channels__input-box{position:relative;margin-right:5px}.widget-icon__block [class^=icon-]{display:block;border-radius:100%;text-align:center;width:40px;height:40px;line-height:40px;font-size:20px;margin:0 auto 6px}.widget-icon__block [class^=icon-] svg{color:#fff}.widget-icon__block .icon-upload{background:0 0;color:#a886cd}.widget-icon__block .custom-control.custom-radio{text-align:center;margin:0;padding:22px 8px 22px;vertical-align:bottom;text-decoration:none;max-width:70px}label.widget-icon__wrap.has-pro .custom-control.custom-radio{padding:22px 8px 44px}.widget-icon__block .custom-control.custom-radio .custom-control-label:before{transform:translateX(-50%);left:50%}.widget-icon__block .custom-control.custom-radio.add-border{border-right:1px solid #fff}label.widget-icon__wrap.has-free{position:relative}.widget-icon__wrap.has-free .custom-control.custom-radio{text-align:center;margin:0;padding:22px 8px 42px;vertical-align:bottom;text-decoration:none}.widget-icon__wrap.has-pro .custom-control.custom-radio{border:none}.widget-icon__wrap{background:rgba(168,134,205,.1);padding:0;border-radius:4px;flex:none;font-size:0;margin-bottom:25px;position:relative}@media (min-width:768px){.widget-icon__block [class^=icon-]{width:54px;height:54px;font-size:28px;line-height:54px}.widget-icon__block [class^=icon-] svg{width:100%}.widget-icon__block .custom-control.custom-radio:first-child{padding-left:20px;max-width:90px}.widget-icon__block .custom-control.custom-radio:last-child{padding-right:20px}}@media (max-width:767px){.main .form-horizontal__item>.widget-icon__wrap{display:flex;justify-content:space-between}.main .form-horizontal__item>.widget-icon__wrap .custom-control{margin:0;flex:1;text-align:center}}.file-input{width:40px;height:44px;display:block}.file-input input[type=file]{top:0;left:0;min-width:100%;min-height:100%;text-align:right;opacity:0;background:0 0;cursor:pointer;display:block;position:absolute}.btn-file,.form-group,.kv-file-content{position:relative}.form-group:hover :not(.file-input-new) .file-browse{display:block;z-index:10}.file-actions,.file-browse,.file-browse span,.file-drop-zone-title,.file-footer-caption,.file-preview-status{display:none}.form-group:hover :not(.file-input-new) .file-browse .icon-upload{background:rgba(0,0,0,.5)}.kv-file-content{width:40px;height:40px;background:#fff;border-radius:100%;text-align:center;margin:0 auto}.kv-file-content img{width:auto;height:auto;max-width:100%;max-height:100%}.file-preview{position:absolute}.file-preview-thumbnails{width:54px;height:54px;border-radius:100%;position:absolute;left:0;top:0}.file-preview-frame{position:absolute;left:0;top:0;right:0;z-index:10}.file-preview-frame.file-preview-initial{z-index:0}.file-input-new .file-browse{display:block}.file-input-new .file-browse span{display:block;color:#a886cd;text-decoration:underline;position:absolute;bottom:0;left:0;right:0}.file-input-new .file-browse:hover span,a.pro-plugin-url,a.rpt_tooltip{text-decoration:none}@media (min-width:768px){.kv-file-content{width:54px;height:54px}.file-input{width:54px;height:60px}}.preview{width:337px;z-index:99;height:373px;margin-right:15px;float:right;z-index:1001}body.has-premio-box .preview{top:320px}.preview.mobiel-view .page{width:202px}.preview.mobiel-view .page .chaty-widget .icon i{width:24px;height:24px;font-size:12px;line-height:24px}.is-sticky .preview{left:calc(50vw - 480px + 960px / 12 * 7 + 140px)}.preview h2{text-align:center;font-weight:700;line-height:normal;font-size:17px;color:#4f4f4f;margin-bottom:5px}.preview .page{background-color:#f2f2f2;box-shadow:0 4px 35px rgba(0,0,0,.05);border-radius:5px;position:relative;height:234px;margin:0 auto}.preview .page .page-header{display:flex;align-items:center;background:#fff;border-radius:5px 5px 0 0;height:16px}.preview .page .page-header .circle{margin-left:9px;width:6px;height:6px;background:linear-gradient(153.19deg,#6371db 7.06%,#ff89c4 90.47%),#ffe663;box-shadow:0 4px 35px rgba(0,0,0,.05);border-radius:50%}.preview .page .page-header svg:last-child{margin-left:auto;margin-top:7px;margin-right:-7px}.preview .page .chaty-widget{position:absolute;left:auto}.preview .page .chaty-widget .icon:after{z-index:10;content:'';font-size:13px;top:13px;white-space:nowrap;padding:0;line-height:0;width:auto;color:#333;background-color:#fff;box-shadow:0 1.93px 7.74px rgba(0,0,0,.15);border-radius:0;right:0;left:auto;transform:translate(calc(100% + 6px),-50%)}.preview .page .chaty-widget .icon:before{content:'';right:-18px;left:auto;top:calc(100% - 20px);height:10px;width:10px;z-index:11;border-style:solid;border-width:5px 10px 5px 0;border-color:transparent #fff transparent transparent}.preview .page .chaty-widget.hide-arrow .icon:before,.preview .page .chaty-widget.hide_arrow .icon:before{display:none}.preview .page .chaty-widget .icon i{width:30px;height:30px;font-size:18px;display:block;border-radius:100%;line-height:30px;text-align:center;overflow:hidden}.preview .page .chaty-widget .icon i.icon-chat-image{background:0 0}.preview .page .chaty-widget .icon i.icon-chat-image img{display:block;background:#a886cd}.preview .page .chaty-widget .icon i svg{fill:#fff;width:100%;height:100%}.preview .page .chaty-widget .icon i img{width:auto;height:auto;max-width:100%;max-height:100%;border-radius:50%}.preview .page .chaty-widget.has-single .icon i#iconWidget{position:relative;overflow:inherit}.mobiel-view .preview .page .chaty-widget .icon i{width:23px;height:23px;font-size:13px;line-height:23px}.preview .page .chaty-widget[style*="left: auto;"] .icon:before{right:auto;left:-8px;border-width:5px 0 5px 10px;border-style:solid;border-color:transparent transparent transparent #fff}.preview .page .chaty-widget[style*="left: auto;"] .icon:after{left:0;right:auto;transform:translate(calc(-100% - 6px),-50%)}.switch-preview{display:flex;width:160px;border-radius:5px;margin:15px auto 0;-webkit-box-shadow:0 0 15px 0 #eaeaea inset;-moz-box-shadow:0 0 15px 0 #eaeaea inset;box-shadow:0 0 15px 0 #eaeaea inset;background:#fff}.easy-modal-open,.switch-preview__input[type=radio],.switch-preview__label input{display:none}.switch-preview__label{flex:1;text-align:center;line-height:30px}.switch-preview__input[type=radio],.switch-preview__label input{display:none}.switch-preview__input[type=radio]:checked+label{background:#a886cd;color:#fff}html[dir=rtl] .preview{right:auto}html[dir=rtl] .is-sticky .preview{left:calc(50vw - 480px + 960px / 12 * 7 + 84px - 175px)}.easy-modal-open{display:none}a.pro-plugin-url{color:#fff;background:#7474d9;display:inline-block;margin-bottom:25px;text-decoration:none;-moz-border-radius:25px;-webkit-border-radius:25px;font-size:24px;border-radius:25px;padding:15px 45px}.test_textarea{-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;padding:10px;height:70px;border:solid 1px #f6f6f6;width:100%;max-width:350px}.license-key{border:1px solid #ccc;background:#fff;width:100%;max-width:350px;margin:10px 0 20px}.license-key .license-key-header{border-bottom:1px solid #ccc;padding:15px 12px;font-weight:600;background:#f9f9f9;color:#23282d}.license-key .license-key-content{padding:15px 12px;background:#fff}.license-key .license-key-content input[type=text]{width:100%;font-size:14px;font-weight:400}.license-key .license-key-footer{border-top:1px solid #ccc;padding:15px 12px;background:#f9f9f9}.license-key .license-key-message{margin:10px 0 0 0;min-height:40px}.license-key .button-secondary{font-weight:400}.testimonial-error-message,.testimonial-success-message{background:#fff;margin:10px 0 0 0;padding:10px 10px 10px 10px;border-left:solid 3px #dd4b39}.testimonial-success-message{border-left:solid 3px #00a65a}.save-testimonial-license-key{text-align:center}.remove-testimonial-license-key{width:128px;text-align:center}.test-error-message{color:#dc3232}.hide-this-table,.lean-overlay{display:none!important}span.expired-message{color:#a00000;font-size:18px}.wrap.wrap-licenses{background:#fff;padding:10px 25px 25px}.chaty-help-btn{position:fixed;right:20px;bottom:20px;z-index:1001}.chaty-help-btn a{display:block;border:3px solid #fff;width:50px;height:50px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;position:relative}.chaty-help-btn a img{width:100%;height:auto;display:block;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.chaty-help-form{position:fixed;right:85px;border:1px solid #e9edf0;bottom:25px;background:#fff;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;width:320px;z-index:1001;direction:ltr;opacity:0;transition:.4s;-webkit-transition:.4s;-moz-transition:.4s}.chaty-help-form.active{opacity:1;pointer-events:inherit}.chaty-help-header{background:#f4f4f4;border-bottom:solid 1px #e9edf0;padding:5px 20px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px 10px 0 0;font-size:16px;text-align:right}.chaty-help-header b{float:left}.chaty-help-content{margin-bottom:10px;padding:20px 20px 10px}.chaty-help-form p{margin:0 0 1em}.chaty-form-field{margin-bottom:10px}.chaty-form-field input,.chaty-form-field textarea{-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:5px;width:100%;box-sizing:border-box;border:1px solid #c5c5c5}.chaty-form-field textarea{height:70px}.chaty-help-button{border:none;padding:8px 0;width:100%;background:#ff6624;color:#fff;border-radius:18px}.chaty-help-form .error-message{font-weight:400;font-size:14px}.chaty-help-form input.input-error,.chaty-help-form textarea.input-error{border-color:#dc3232}.chaty-help-btn span.tooltiptext{position:absolute;background:#000;font-size:12px;color:#fff;top:-35px;width:140%;text-align:center;left:-20%;border-radius:5px;direction:ltr}p.error-p,p.success-p{margin:0;font-size:14px;text-align:center}.chaty-help-btn span.tooltiptext:after{bottom:-9px;content:"";transform:translateX(-50%);height:10px;width:10px;border-width:10px 5px 0;border-style:solid;border-color:#000 transparent transparent;left:50%;position:absolute}p.success-p{color:green}p.error-p{color:#dc3232}html[dir=rtl] .chaty-help-btn{left:20px;right:auto}html[dir=rtl] .chaty-help-form{left:85px;right:auto}#rpt_container{margin-top:24px;width:100%}.rpt_plans .rpt_plan{-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.rpt_2_plans .rpt_plan{margin-right:2%;width:49%;float:left}.rpt_2_plans .rpt_plan:last-child{margin-right:0}.rpt_3_plans .rpt_plan{margin-right:2%;width:32%;float:left}.rpt_3_plans .rpt_plan:last-child{margin-right:0}.rpt_4_plans .rpt_plan{margin-right:1%;width:24.25%;float:left}.rpt_4_plans .rpt_plan:last-child{margin-right:0}.rpt_5_plans .rpt_plan{margin-right:.5%;width:19.6%;float:left}.rpt_5_plans .rpt_plan:last-child{margin-right:0}.rpt_style_bic .rpt_plan,.rpt_style_loc .rpt_plan{-webkit-box-shadow:1px 1px 3px 0 rgba(50,50,50,.19);-moz-box-shadow:1px 1px 3px 0 rgba(50,50,50,.19);box-shadow:1px 1px 3px 0 rgba(50,50,50,.19)}.rpt_plans .rpt_plan .rpt_title img{margin-right:10px;position:relative;vertical-align:middle}.rpt_plans .rpt_plan .rpt_title{background:#6371db;font-weight:300;padding:24px 18px;font-size:26px;color:#fff;line-height:35px;height:auto}.rpt_plans .rpt_plan .rpt_title span{display:inline-block;position:relative;top:-10px}.rpt_style_basic .rpt_plan .rpt_title{border-bottom:#ec86c6 solid 1px;border-top-left-radius:8px;border-top-right-radius:8px}.rpt_style_spec .rpt_plan .rpt_title{color:#fff}.rpt_style_bic .rpt_plan .rpt_title,.rpt_style_loc .rpt_plan .rpt_title,.rpt_style_swl .rpt_plan .rpt_title{background:#333}.rpt_plans .rpt_sm_title .rpt_plan .rpt_title{font-size:20px;line-height:18px}.rpt_plans .rpt_xsm_title .rpt_plan .rpt_title{font-size:15px;line-height:15px}.rpt_4_plans .rpt_plan .rpt_title{font-size:17px;line-height:15px}.rpt_4_plans .rpt_sm_title .rpt_plan .rpt_title{font-size:15px;line-height:13px}.rpt_4_plans .rpt_xsm_title .rpt_plan .rpt_title{font-size:13px;line-height:11px}.rpt_5_plans .rpt_plan .rpt_title{font-size:15px;line-height:13px}.rpt_5_plans .rpt_sm_title .rpt_plan .rpt_title{font-size:13px;line-height:11px}.rpt_5_plans .rpt_xsm_title .rpt_plan .rpt_title{font-size:12px;line-height:10px}.rpt_plans .rpt_recommended_plan .rpt_title{background:#6371db}.rpt_plans .rpt_plan .rpt_head .rpt_price .rpt_currency{position:relative;top:-44px;left:-10px;font-size:35px;line-height:0}.rpt_4_plans .rpt_plan .rpt_head .rpt_price .rpt_currency{top:-36px}.rpt_5_plans .rpt_plan .rpt_head .rpt_price .rpt_currency{top:-26px}.rpt_sm_price .rpt_plan .rpt_head .rpt_price .rpt_currency{font-size:30px;top:-44px;left:-4px}.rpt_xsm_price .rpt_plan .rpt_head .rpt_price .rpt_currency{font-size:25px;top:-30px;left:-4px}.rpt_xxsm_price .rpt_plan .rpt_head .rpt_price .rpt_currency{font-size:21px;top:-14px;left:-4px}.rpt_style_basic .rpt_plan .rpt_head{background:#ec86c6}.rpt_style_spec .rpt_plan .rpt_head{background:#222}.rpt_style_swl .rpt_plan .rpt_head{background:#fff}.rpt_plans .rpt_plan .rpt_head .rpt_price{padding:6px 10px;font-size:74px;line-height:100px;font-weight:300;text-align:center;color:#fff}.rpt_style_basic .rpt_plan .rpt_head .rpt_price,.rpt_style_spec .rpt_plan .rpt_head .rpt_price{text-shadow:1px 2px 7px rgba(0,0,0,.6)}.rpt_style_swl .rpt_plan .rpt_head .rpt_price{color:#000}.rpt_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price{font-size:62px}.rpt_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price{font-size:56px}.rpt_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price{font-size:38px}.rpt_4_plans .rpt_plan .rpt_head .rpt_price{font-size:69px;line-height:80px}.rpt_4_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price{font-size:53px;line-height:65px}.rpt_4_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price{font-size:47px;line-height:64px}.rpt_4_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price{font-size:31px;line-height:60px}.rpt_5_plans .rpt_plan .rpt_head .rpt_price{font-size:59px;line-height:80px}.rpt_5_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price{font-size:44px;line-height:60px}.rpt_5_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price{font-size:37px;line-height:53px}.rpt_5_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price{font-size:24px;line-height:50px}.rpt_plans .rpt_recommended_plan .rpt_head .rpt_price{font-size:98px}.rpt_4_plans .rpt_recommended_plan .rpt_head .rpt_price{font-size:74px}.rpt_5_plans .rpt_recommended_plan .rpt_head .rpt_price{font-size:67px}.rpt_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:83px}.rpt_4_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:60px}.rpt_5_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:54px}.rpt_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:55px}.rpt_4_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:49px}.rpt_5_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:41px}.rpt_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:42px}.rpt_4_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:34px}.rpt_5_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:26px}.rpt_plans .rpt_plan .rpt_head .rpt_recurrence{font-size:13px;font-weight:300;line-height:18px;padding:20px 40px 10px;color:#d3d3d3;text-align:center}.rpt_style_spec .rpt_plan .rpt_head .rpt_recurrence{color:#d3d3d3}.rpt_style_bic .rpt_plan .rpt_head .rpt_recurrence,.rpt_style_loc .rpt_plan .rpt_head .rpt_recurrence{color:#f5f5f5}.rpt_style_swl .rpt_plan .rpt_head .rpt_recurrence{color:grey}.rpt_plans .rpt_sm_recurrence .rpt_plan .rpt_head .rpt_recurrence{font-size:11px;padding:20px 40px 4px}.rpt_plans .rpt_plan .rpt_head .rpt_subtitle{font-size:16px;line-height:20px;font-weight:300;text-align:center;padding:10px 30px 20px}.rpt_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:14px}.rpt_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:12px}.rpt_4_plans .rpt_plan .rpt_head .rpt_subtitle{font-size:16px;line-height:18px;padding:10px 10px 20px}.rpt_4_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:14px;line-height:17px}.rpt_4_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:13px;line-height:16px}.rpt_5_plans .rpt_plan .rpt_head .rpt_subtitle{font-size:15px;line-height:18px;padding:10px 10px 20px}.rpt_5_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:13px;line-height:17px}.rpt_5_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:12px;line-height:16px}.rpt_plans .rpt_plan .rpt_head .rpt_description{font-size:14px;line-height:20px;padding:0 20px 30px;font-weight:300;text-align:center;color:#fff}.rpt_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description{font-size:12px}.rpt_style_bic .rpt_plan .rpt_head .rpt_description,.rpt_style_loc .rpt_plan .rpt_head .rpt_description{color:#f5f5f5}.rpt_4_plans .rpt_plan .rpt_head .rpt_description{font-size:13px;line-height:18px}.rpt_4_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description{font-size:12px;line-height:17px}.rpt_5_plans .rpt_plan .rpt_head .rpt_description{font-size:12px;line-height:18px}.rpt_5_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description{font-size:11px;line-height:17px}.rpt_plans .rpt_plan .rpt_features{padding:20px;background:#f5f5f5;text-align:center}.rpt_plans .rpt_plan .rpt_features .rpt_feature{font-size:16px;padding:6px 16px;border-bottom:1px dotted #d3d3d3}.rpt_plans .rpt_plan .rpt_features .rpt_feature:last-child{border-bottom:none}.rpt_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature{font-size:14px}.rpt_style_bic .rpt_plan .rpt_features,.rpt_style_loc .rpt_plan .rpt_features,.rpt_style_swl .rpt_plan .rpt_features{background:#fff}.rpt_style_swl .rpt_plan .rpt_features .rpt_feature{padding:5px 16px}.rpt_4_plans .rpt_plan .rpt_features .rpt_feature{padding:6px 10px;font-size:14px}.rpt_4_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature{font-size:12px}.rpt_5_plans .rpt_plan .rpt_features .rpt_feature{padding:6px 10px;font-size:13px}.rpt_5_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature{font-size:11px}.rpt_plans .rpt_plan .rpt_foot{display:block;padding:10px 30px;border-top:#f5f5f5 solid 2px;text-align:center;color:#fff;font-size:24px;text-decoration:none;font-weight:300;transition:All .5s ease;-webkit-transition:All .5s ease;-moz-transition:All .5s ease;-o-transition:All .5s ease}.rpt_plans .rpt_sm_button .rpt_plan .rpt_foot{font-size:19px}.rpt_style_basic .rpt_plan .rpt_foot{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.rpt_style_swl .rpt_plan .rpt_foot{border-top:none;padding:10px 30px 20px;color:#000;background:#333}.rpt_4_plans .rpt_plan .rpt_foot{padding:4px 20px;font-size:19px}.rpt_4_plans .rpt_sm_button .rpt_plan .rpt_foot,.rpt_5_plans .rpt_plan .rpt_foot{padding:4px 20px;font-size:17px}.rpt_5_plans .rpt_sm_button .rpt_plan .rpt_foot{font-size:16px}.rpt_plans .rpt_plan .rpt_foot:hover{opacity:.8}.rpt_style_swl .rpt_plan .rpt_foot:hover{opacity:1}.rpt_plans .rpt_recommended_plan .rpt_foot{font-size:30px;padding:16px 0}.rpt_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot{font-size:26px}.rpt_4_plans .rpt_recommended_plan .rpt_foot{font-size:22px;font-weight:300;padding:10px 0}.rpt_4_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot{font-size:19px;padding:10px 0}.rpt_5_plans .rpt_recommended_plan .rpt_foot{font-size:20px;font-weight:300;padding:10px 0}.rpt_5_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot{font-size:18px;padding:10px 0}.rpt_custom_btn{border-bottom-left-radius:5px;border-bottom-right-radius:5px;text-align:center;padding:16px 20px}.rpt_plans .rpt_recommended_plan{position:relative;top:-10px}.rpt_recommended_plan img.rpt_recommended{position:absolute!important;right:10px!important}.rpt_style_bic .rpt_recommended_plan,.rpt_style_loc .rpt_recommended_plan{-webkit-box-shadow:1px 1px 6px 0 rgba(50,50,50,.39);-moz-box-shadow:1px 1px 6px 0 rgba(50,50,50,.39);box-shadow:1px 1px 6px 0 rgba(50,50,50,.39)}a.rpt_tooltip{display:block;outline:0;position:relative}a.rpt_tooltip strong{line-height:30px}a.rpt_tooltip>span.intool{width:90%;padding:10px;margin-top:56px;opacity:0;visibility:hidden;z-index:10;position:absolute;top:-15px;display:block;color:#f5f5f5;font-size:13px;line-height:20px;background:#333;font-weight:300;text-align:center}a.rpt_tooltip:hover{cursor:zoom-in}a.rpt_tooltip .rpt_tooltip_plus{text-decoration:none!important;display:inline;font-size:12px;font-weight:700;position:relative;top:-6px}.rpt_feature:hover a.rpt_tooltip>span.intool{opacity:.98;text-decoration:none;visibility:visible;overflow:visible}a.rpt_tooltip span.intool b{width:10px;height:10px;margin-left:35%;margin-top:-15px;position:absolute;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);display:none \0/;background:#333}.rpt_3_plans a.rpt_tooltip>span.intool{margin-left:-1%}.rpt_4_plans a.rpt_tooltip>span.intool{margin-left:0}.rpt_5_plans a.rpt_tooltip>span.intool{margin-left:-2%}.entry-content .rpt_plan a,.rpt_plan a{border-bottom:none!important}.rpt_plans .rpt_plan .rpt_icon{max-width:30px;max-height:30px}.rpt_plans .rpt_plan img{display:inline;margin:0 10px 0 0;padding:0;-webkit-box-shadow:0 0 0 0 transparent;-moz-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;border:none}select.chaty-select,select.form-fonts{width:360px;max-width:100%;border:none;color:#32373c;outline:0;padding:5px 7px;line-height:26px;background-color:#fff;border-radius:5px;height:36px;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea}select.chaty-select:disabled,textarea.test_textarea:disabled{background:#eee;border:solid 1px #ddd;color:#32373c}.icon.label-tooltip{font-size:12px;font-weight:400;color:#72777c}.icon.label-tooltip:after{width:250px;white-space:normal;line-height:16px;padding:10px}@media only screen and (max-width:640px){.rpt_plans .rpt_plan{width:96%;margin:10px 2% 20px!important}.rpt_plans .rpt_plan .rpt_title{position:relative;font-size:26px!important;line-height:35px!important}.rpt_plans .rpt_plan .rpt_head .rpt_price{font-size:74px!important;line-height:100px!important}.rpt_plans .rpt_plan .rpt_head .rpt_subtitle{font-size:17px!important;line-height:28px!important;padding:10px 40px 20px}.rpt_plans .rpt_plan .rpt_head .rpt_description{font-size:15px!important;line-height:26px!important;padding:0 40px 30px}.rpt_plans .rpt_plan .rpt_features .rpt_feature{padding:6px 16px;font-size:14px!important}.rpt_plans .rpt_plan .rpt_foot{padding:10px 40px;text-align:center;color:#fff;font-size:20px}.rpt_plans .rpt_recommended_plan .rpt_foot{font-size:30px;font-weight:300;padding:20px 0}.rpt_plan .rpt_head .rpt_price .rpt_currency{top:-36px!important;left:-10px!important;font-size:35px!important}}#rpt_pricr .rpt_plan_ori .rpt_features .rpt_feature,#rpt_pricr .rpt_plan_ori .rpt_features .rpt_feature a,#rpt_pricr .rpt_plan_ori .rpt_foot,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_description,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_price,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_price .rpt_currency,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_recurrence,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_subtitle,#rpt_pricr .rpt_plan_ori .rpt_title{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif!important;font-weight:300!important}p.udner-title strong{font-size:40px;padding-bottom:30px;display:block;color:#b97fcf}.channels-selected-list li{display:block;max-width:640px;padding:15px;background:#eff6f6;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;margin-bottom:15px}.chaty-settings a{text-decoration:none;display:inline-block;color:#fff;margin-left:15px;height:26px;background:#a785cb;text-align:center;vertical-align:middle;-webkit-border-radius:18px;-moz-border-radius:18px;border-radius:18px;font-size:10px;line-height:26px;padding:0 5px}.chaty-settings a .dashicons,.chaty-settings a .dashicons-before:before{font-size:16px;line-height:26px;display:inline-block;margin:0;text-align:center}.move-icon{display:inline-block;vertical-align:middle}.move-icon img{width:10px;margin-right:5px;margin-top:8px;cursor:move}.chaty-default-settings>*{display:inline-block;vertical-align:middle}.chaty-default-settings{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding-bottom:15px}.chaty-advance-settings{width:100%;border:solid 1px #a785cb;margin:20px 0 0 0;padding:10px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;background:#f2f2f2;display:none;min-height:70px;position:relative}.chaty-setting-col>*{display:inline-block;padding:0 0 10px 0;vertical-align:middle}.chaty-setting-col>label{width:150px}.chaty-setting-col .channels__view{margin:0;padding:0}.chaty-setting-col input[type=text],select.channel-select-input{width:300px;height:36px;line-height:36px;padding:0 10px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;font-family:Rubik,sans-serif;font-size:17px}.sp-replacer.sp-light{padding:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:none}.chaty-setting-col a.upload-chaty-icon{background:#a886cd;color:#fff;text-decoration:none;line-height:36px;padding:0 10px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;display:inline-block}.chaty-setting-col a.upload-chaty-icon span{line-height:40px}.chaty-setting-col input[type=text].chaty-color-field{width:40px}.chaty-setting-col input[type=text]:read-only{background:#fff}.chaty-pro-feature{position:absolute;left:0;width:100%;text-align:center;top:0;height:100%;vertical-align:middle;background:rgba(255,255,255,.4);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;display:none}.chaty-advance-settings:hover .chaty-pro-feature,.chaty-date-time-option:hover .chaty-pro-feature{display:inline-block;width:170px;margin:0 auto;left:0;right:0}.chaty-pro-feature a{text-decoration:none;background:#ff6624;color:#fff;padding:0 10px;line-height:36px;display:inline-block;top:50%;position:absolute;left:0;right:0;width:180px;margin:-20px auto 0;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.chaty-pro-feature a:hover{background:#a886cd}a#upload_qr_code{background:#fff;display:inline-block;height:40px;width:40px;text-align:center;line-height:40px;text-decoration:none}a#upload_qr_code span{line-height:36px}.close-btn-set,.cls-btn-settings{opacity:0;visibility:hidden;pointer-events:none}.close-btn-set.active,.cls-btn-settings.active{opacity:1;visibility:visible;pointer-events:auto}.chaty-settings.cls-btn{margin-left:164px}.section2{padding:25px 15px 30px;border-top:2px solid rgba(130,130,130,.1)}#chaty-social-close{display:none}#chaty-social-Facebook_Messenger .chaty-default-settings{padding-bottom:25px}ul#channels-selected-list{margin:0;padding:0}.channels-selected-list li.ui-chaty-state-hl{border:dashed 1px #6972da;min-height:95px}.viber-help{position:absolute;right:43px;bottom:-4px;font-size:12px;color:#665cac;text-decoration:underline;cursor:pointer}.viber-help span.help-text{position:absolute;width:210px;left:-80%;text-align:center;background:#000;padding:5px;color:#fff;font-size:12px;bottom:20px;z-index:101;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;display:none}.viber-help:hover span{display:block}a.create-rule{background:#ff6624;text-decoration:none;padding:5px 20px;color:#fff;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}a.create-rule.remove-rules{background:#7e8993;color:#fff}.chaty-pro-block{position:relative}.chaty-pro-block:hover .chaty-pro-feature{display:inline-block}.chaty-settings.cls-btn span{padding-left:2px}.rpt_description.title-text{padding:25px 0 0!important;display:block!important}.chaty-page-option{padding:5px;background:#f6f3fa;margin-bottom:15px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;position:relative}.url-select{width:17%;display:inline-block;padding-right:5px}.url-content>*{vertical-align:middle}.url-option{width:20%;display:inline-block;padding-right:5px}.url-box{width:25%;display:inline-block;padding-right:0;text-align:right}.url-values{width:calc(37% - 46px);display:inline-block;padding-right:5px}.day-buttons,.url-buttons{width:36px;display:inline-block;float:right;padding:0}.url-buttons{padding:2px 0 0 0}span.chaty-url{font-size:12px;line-height:12px}.url-content .remove-chaty{background:#bd2a00;text-align:center;display:block;line-height:36px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.url-content input,.url-content select{width:100%;height:36px;line-height:36px;padding:0 10px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.page-options{position:relative;display:none}.chaty-option-box .page-options:hover .chaty-pro-feature{display:block;width:170px;margin:0 auto;left:0;right:0}.preview{position:fixed;top:190px;width:337px;height:290px;bottom:auto}.preview-section-chaty{position:static;width:352px;height:320px;display:block;vertical-align:baseline;float:right}select.multiple-options{max-width:100%}.rpt_plan.pro-active .rpt_head{padding-bottom:50px}.rpt_plan.pro-active .rpt_head .rpt_description{display:none}.updates-form-form{min-height:calc(100vh - 280px)}.popup-form-content{background:#fff;min-height:100px;width:450px;text-align:center;margin-top:50px;border:solid 1px #c1c1c1}.updates-content-buttons button{margin:10px 3px!important;float:left}.updates-content-buttons a span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear}.updates-content-buttons a:focus,.updates-content-buttons a:hover{color:#fff;background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.updates-content-buttons a:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.updates-content-buttons button.form-cancel-btn{float:right!important}.form-submit-btn{background-color:#3085d6}.updates-content-buttons a span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear}.add-update-folder-title{font-size:20px;line-height:30px;padding:20px 20px 0}.folder-form-input{padding:10px 20px}.folder-form-input input{width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;font-size:1.125em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box;height:2.625em;margin:1em auto}.updates-content-buttons{background:#c1c1c1;padding:0 20px}.notice.chaty-notice{display:block!important}.preview .h2{padding:40px 0 10px 0;text-align:center;font-weight:700}.pro-features{position:relative;display:inline-flex}.pro-item{position:relative}.pro-button{display:none;position:absolute;width:100%;top:0;left:0;height:100%;line-height:36px;text-align:center}.pro-button a{display:block;line-height:36px}.pro-features:hover .pro-item{opacity:.25;filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px);-moz-filter:blur(2px);-webkit-filter:blur(2px)}.pro-features:hover .pro-button{display:block}.sp-replacer.sp-light{padding:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:none}.sp-preview{padding:0;margin:0;height:40px;width:40px;border:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.sp-preview-inner{-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.sp-dd{display:none}span.facustom-icon{display:block;width:50px;height:50px;font-size:30px;line-height:50px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}span.default-chaty-icon .facustom-icon{display:none}span.default-chaty-icon.has-fa-icon .facustom-icon{display:block}span.default-chaty-icon.has-fa-icon svg{display:none}.preview .page .chaty-widget span.facustom-icon{width:30px;height:30px;line-height:30px;font-size:20px}.preview .page .chaty-widget span.facustom-icon i{line-height:30px;font-size:18px}.preview.mobiel-view .page .chaty-widget span.facustom-icon{width:24px;height:24px;line-height:24px;font-size:12px}.preview.mobiel-view .page .chaty-widget svg{width:24px;height:24px}.preview.mobiel-view .page .chaty-widget span.facustom-icon i{line-height:24px;font-size:14px}.preview.mobiel-view .page .chaty-widget .social-item-box{height:24px;margin:0 0 4px 0}label.custom-control.custom-radio:before{display:none}.channels-selected-list li#chaty-social-Poptin{padding-bottom:30px}.chaty-popup{position:fixed;width:100%;height:100%;top:0;left:0;z-index:100001;background:rgba(0,0,0,.75)}.chaty-popup-box{padding:0;width:600px;max-width:100%;margin:auto;top:50%;position:absolute;left:0;right:0;border-radius:5px;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);text-align:center;background:#fcfcfc}.chaty-popup-header{padding:15px;font-size:20px;border-bottom:solid 1px #e6e6e6}.chaty-popup-content{background:#fff;padding:15px}.chaty-popup-content iframe{margin:30px 0}.chaty-popup-footer{padding:10px 15px;border-top:solid 1px #e6e6e6}.chaty-popup-footer button{border:solid 1px #00c478;padding:5px 10px;border-radius:4px;background:#00c478;color:#fff}button.btn.btn-default{background:#fff;color:#333;border:solid 1px #333;outline:0;box-shadow:none}.country-option-box{position:relative}.country-option-box:hover .country-list-box{filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px);-moz-filter:blur(2px);-webkit-filter:blur(2px)}.country-option-box:hover .chaty-pro-feature{display:block}.custom-css{-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;padding:10px;height:70px;border:solid 1px #f6f6f6;width:360px;max-width:100%}.close-chaty-popup span{line-height:20px}.close-chaty-popup{margin:0;padding:0;background:0 0;border:none;float:right;background:#000;border-radius:50%;color:#fff;text-align:center;width:24px;height:24px}.css-option-box{width:350px;max-width:100%}.chaty-channel .advanced-settings{display:none;width:100%}.chaty-channel[data-channel=Contact_Us] .advanced-settings.Contact_Us-settings,.chaty-channel[data-channel=Custom_Link] .advanced-settings.Custom_Link-settings,.chaty-channel[data-channel=Custom_Link_3] .advanced-settings.Custom_Link_3-settings,.chaty-channel[data-channel=Custom_Link_4] .advanced-settings.Custom_Link_4-settings,.chaty-channel[data-channel=Custom_Link_5] .advanced-settings.Custom_Link_5-settings,.chaty-channel[data-channel=Email] .advanced-settings.Email-settings,.chaty-channel[data-channel=Link] .advanced-settings.Link-settings,.chaty-channel[data-channel=Linkedin] .advanced-settings.Linkedin-settings,.chaty-channel[data-channel=WeChat] .advanced-settings.WeChat-settings,.chaty-channel[data-channel=Whatsapp] .advanced-settings.Whatsapp-settings{display:block}.preview .page .chaty-widget.horizontal.chaty-widget-icons-left #iconWidget,.preview .page .chaty-widget.horizontal.chaty-widget-icons-left .chaty-close-icon{float:left}.preview .page .chaty-widget.horizontal.chaty-widget-icons-left .chaty-channels{float:right}.chaty-widget.horizontal.chaty-widget-icons-left .social-item-box{margin:0 0 0 5px;vertical-align:bottom}.chaty-widget.horizontal span.social-tooltip{right:auto;left:auto;transform:translate(calc(-50% + 15px),-150%);top:0;margin:0 auto}.chaty-widget.horizontal span.social-tooltip:after{top:100%;left:0;right:0;margin:0 auto;transform:rotate(-90deg);width:10px;height:10px}.chaty-widget.horizontal.chaty-widget-icons-left span.social-tooltip:after{transform:rotate(90deg)}.ui-sortable-handle{touch-action:inherit!important}.chaty-widget.horizontal .social-item-box{display:inline-block;margin:0 5px 0 0;vertical-align:bottom}.chaty-widget.active.horizontal .chaty-channels,.chaty-widget.hover.horizontal:hover .chaty-channels{display:inline-block}.preview .page .chaty-widget.active:not(.has-single) i#iconWidget,.preview .page .chaty-widget.hover:hover:not(.has-single) i#iconWidget{display:none!important}.preview .page .chaty-widget.horizontal.active:not(.has-single):not(.hide-arrow) i.chaty-close-icon,.preview .page .chaty-widget.horizontal.hover:hover:not(.has-single):not(.hide-arrow) i.chaty-close-icon{display:inline-block!important;vertical-align:bottom}.ui-sortable-handle{touch-action:inherit!important}.form-horizontal__item.o-channel{display:none}.form-horizontal__item.o-channel.active{display:flex}.font-section{margin-top:30px}.font-section.active{margin:0}.form-horizontal__item .cht-input{max-width:100%;width:350px}body .form-horizontal__item .cht-input:disabled{background:#eee;border:solid 1px #ddd;color:#32373c;font-size:14px}.form-horizontal__item .sp-replacer.sp-light.sp-disabled .sp-preview-inner{background:#eee!important;border:solid 1px #ddd}.form-horizontal__item .sp-replacer.sp-light{-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea}.switch input[type=checkbox]:disabled+.switch__styled{background:#e2e2e2!important}.form-horizontal__item .sp-replacer.sp-light .sp-preview{margin:0}.main .form-horizontal__item.pending-message-items{display:none}.main .form-horizontal__item.pending-message-items.active{display:flex}.disable-message.label-tooltip.icon{font-size:17px}.cta-action-radio .disable-message{display:inline-block;margin-left:10px}.custom-control.custom-radio .custom-control-input:checked:disabled~.custom-control-label:before{background:#e2e2e2!important}span.pop-number{position:absolute;top:-6px;right:-6px;font-size:10px;border-radius:50%;line-height:12px;padding:2px;min-width:16px;min-height:16px;text-align:center}.preview .page .chaty-widget .icon i#iconWidget{position:relative;overflow:inherit}.disable-message.label-tooltip .sp-replacer.sp-light{pointer-events:none}.chaty-popup{display:none}.chaty-popup-outer{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.4);left:0;top:0;z-index:1010}.chaty-popup-inner{position:fixed;height:auto;left:0;top:50%;right:0;margin:0 auto;width:480px;max-width:100%;z-index:1012;-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);transform:translate(0,-50%)}.chaty-popup-content{position:relative;padding:0}.chaty-popup-close{position:absolute;width:20px;height:20px;right:4px;top:4px;z-index:110}.chaty-popup-close a{display:block;width:20px;height:20px;padding:4px;box-sizing:border-box;vertical-align:top;line-height:12px}.chaty-popup-close svg{width:100%;height:100%}.chaty-popup-header{padding:10px;border-bottom:solid 1px #e8e8e8;font-weight:700;text-align:center;font-size:20px}.chaty-popup-body{padding:40px 20px;text-align:center}.chaty-popup-footer{padding:10px;text-align:center;border-top:solid 1px #e8e8e8}.gtm-select{width:27%}.color-setting{width:100%;max-width:500px;padding:30px 0}.color-box{display:flex}.clr-setting{flex:1}.main .single-channel-setting{display:none}.main .single-channel-setting.active{display:flex}@media (min-width:1281px){.btn-help,.remove-chaty-widget-sticky{transform:rotate(90deg);position:fixed;left:calc(50vw - 480px + 1050px / 12 * 7 + 372px);top:306px;right:auto}}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:1070px;width:100%}.modal__wrap{padding:0}.domain{margin:0 0 10px;padding:20px 60px 26px}}.trigger-block span.dashicons.dashicons-editor-help{width:20px;height:24px;line-height:25px;color:#7e8993}.traffic-active,.traffic-options-box.active .traffic-default{display:none}.traffic-options-box.active .traffic-active{display:block}.traffic-custom-rules{padding:5px 10px}.custom-rule-title{font-weight:700;font-size:14px}.custom-traffic-rule>*{display:inline-block;vertical-align:middle;box-sizing:border-box}.custom-traffic-rule>.traffic-option{width:120px;padding:0 5px 0 0}.traffic-action{width:36px}a.remove-traffic-option{background:#bd2a00;text-align:center;display:block;line-height:36px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.traffic-url{width:calc(100% - 165px);padding:0 5px 0 0}.traffic-url input{width:100%}.custom-traffic-rule>.traffic-option select{height:36px;width:100%}.custom-traffic-rule{padding:5px 0;border-bottom:solid 1px #eee2ff}.custom-traffic-rule:last-child{border:none}.custom-traffic-rule:first-child .remove-traffic-option{display:none}.traffic-rule-actions{padding:5px 10px 8px;border-top:solid 1px #eee2ff}.chaty-setting-col>div>.chaty-setting-textarea{width:310px;max-width:100%;height:100px;padding:5px}.whatsapp-welcome-message{display:none;background:rgba(168,134,205,.1);padding:15px 15px 10px 15px;border-radius:10px;border:solid 1px #e1c4ff;width:100%}.whatsapp-welcome-message.active{display:block}.form-field-setting-col{padding:10px;background:#eff6f6;border:solid 1px #d2d2d2;border-radius:5px;margin:0 0 10px 0}.close_form_after-settings,.email-settings,.field-settings,.redirect_action-settings{display:none}.close_form_after-settings.active,.field-settings.active,.redirect_action-settings.active{display:block}.email-settings.active{padding:15px 0 0 0;display:block}.no-margin{margin:0!important}.no-padding{padding:0!important}.left-section{float:left;text-align:left}.right-section{float:right;width:50%;text-align:right}.inline-block{display:inline-block;vertical-align:top}.form-field-title{font-weight:700;padding:0 0 10px 0;font-size:18px}.chaty-separator{margin:0 0 10px 0;height:1px;width:100%;background:#d2d2d2}a#wpappp_export_to_csv{background:#ff6624;display:block;text-align:center;padding:10px 15px;color:#fff;text-decoration:none;border-radius:4px}input#chaty_delete_all_leads{background:#3c3c3c;color:#fff;padding:10px 15px;border:none;border-radius:4px;cursor:pointer}.responstable{border-collapse:collapse;width:100%;border:1px solid #ccd0d4;margin-top:30px;font-size:14px}.responstable td{border:none;padding:8px;font-size:14px}.responstable tr:last-child{border-bottom:1px solid #ccd0d4}.responstable th{text-align:left;background-color:#fff;border-bottom:1px solid #ccd0d4;border-top:1px solid #ccd0d4;color:#32373c;font-weight:400;padding:12px 8px;font-size:14px}.responstable th.text-center{text-align:center;width:80px}.responstable tr:nth-child(even){background-color:#f9f9f9}.remove-record{color:#333;text-decoration:none}a.url{color:#333;text-decoration:none}.no-record-message{margin:100px 0 0;text-align:center;padding:50px;border:solid 1px #d00;background:#ffeaea;color:#d00}.main .channels-icons>.icon.chat-channel-Contact_Us{width:180px;line-height:48px;text-align:center}.main .channels-icons>.icon.chat-channel-Contact_Us span.icon-box{display:inline-block;height:48px;border-radius:24px;background:#bdbdbd;padding:0 20px 0 0;transition:all .2s;cursor:pointer}.main .channels-icons>.icon.chat-channel-Contact_Us.active span.icon-box,.main .channels-icons>.icon.chat-channel-Contact_Us:hover span.icon-box{background:#253974}.main .channels-icons>.icon.chat-channel-Contact_Us span.icon-box span{display:inline-block;vertical-align:top;font-size:14px;padding:0 0 0 5px;font-family:Rubik,sans-serif;color:#fff}.chaty-new-widget-row.no-records{border:1px solid #605dec;margin:10px;padding:10px;text-align:center;border-radius:5px;color:#1e1e1e;font-weight:400}.no-records-title{font-style:normal;font-weight:600;font-size:20px;line-height:30px;color:#1e1e1e;margin:15px 0;text-align:center}.extra-chaty-settings{padding:10px 0 0 70px}.html-tooltip{position:relative;display:inline-block}.html-tooltip .tooltip-text{visibility:hidden;width:300px;background-color:#333;color:#fff;text-align:center;border-radius:6px;padding:10px;position:absolute;z-index:1201;bottom:125%;left:50%;margin-left:-150px;opacity:0;transition:opacity .3s;font-size:12px;line-height:18px;top:100%;height:454px}.html-tooltip.no-position .tooltip-text{height:auto}.html-tooltip .tooltip-text:after{content:"";position:absolute;top:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#333 transparent transparent transparent;transform:rotate(180deg);-webkit-transform:rotate(180deg)}.html-tooltip:hover .tooltip-text{visibility:visible;opacity:1}.html-tooltip .tooltip-text img{width:100%;height:auto;display:block;margin:10px 0 0 0}.html-tooltip.top .tooltip-text{top:auto;bottom:100%}.html-tooltip.top .tooltip-text:after{top:100%;transform:rotate(0);-webkit-transform:rotate(0)}.html-tooltip.side .tooltip-text{bottom:125%;left:100%;margin-left:0;top:5px;transform:translateY(-50%);-webkit-transform:translateY(-50%)}.html-tooltip.side .tooltip-text:after{top:50%;left:-5px;transform:rotate(180deg);-webkit-transform:rotate(90deg)}.html-tooltip.side .tooltip-text.hide-arrow:after{display:none}body .full-width{width:100%;display:block;padding:0 0 5px 0}.chaty-setting-textarea{width:100%;height:100px;border-radius:0;border:solid 1px #dadce3}.popover .upgrade-link.active{animation:shake .82s cubic-bezier(.36,.07,.19,.97) both;transform:translate3d(0,0,0);backface-visibility:hidden;perspective:1000px}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@media (min-width:768px){.widget-icon__block [class^=icon-]{width:54px;height:54px;font-size:28px;line-height:54px}.widget-icon__block [class^=icon-] svg{width:100%}.widget-icon__block .custom-control.custom-radio:first-child{padding-left:20px;max-width:90px}.widget-icon__block .custom-control.custom-radio:last-child{padding-right:20px}}@media (max-width:767px){.main .form-horizontal__item>.widget-icon__wrap{display:flex;justify-content:space-between}.main .form-horizontal__item>.widget-icon__wrap .custom-control{margin:0;flex:1;text-align:center}}@media (min-width:768px){.kv-file-content{width:54px;height:54px}.file-input{width:54px;height:60px}}@media screen and (max-width:1280px){.preview{top:180px}.chaty-sticky-buttons{position:fixed;right:0;top:239px;z-index:601}.preview-section-chaty{display:none;z-index:1001;position:fixed;left:0;right:0;margin:0 auto}.preview-section-chaty.active,.preview-section-overlay.active{display:block}.preview-section-overlay{position:fixed;background:rgba(0,0,0,.6);top:0;left:0;width:100%;height:100vh;z-index:999;display:none;float:none;width:100%}.preview-help-btn{display:block;top:177px;background:#a785cb;padding:0;line-height:42px;height:42px;width:110px}a.remove-chaty-widget-sticky{top:302px!important}.preview-help-btn:focus,.preview-help-btn:hover{color:#fff}.preview{position:relative;top:0!important;margin:0 auto!important;left:0;right:0;float:none}.preview.mobiel-view .page{width:202px;height:300px}.btn-save-sticky{top:20px!important}.btn-help{top:60px!important}}@media screen and (max-width:1180px){.section.one{max-width:inherit}.main .channels-icons{max-width:600px;text-align:center;margin:0}.main .channels-icons>.icon{display:inline-block;vertical-align:middle;text-align:center;float:none;margin:0;padding:2px 4px 0;width:58px;height:58px}.container{max-width:1180px;padding:0 20px 0 10px}.chaty-settings.cls-btn{margin-left:137px}.chaty-settings.cls-btn span{padding-left:0}}@media screen and (max-width:960px){.chaty-default-settings>*{display:inline-block;vertical-align:middle}.chaty-default-settings .move-icon{width:15px}.channels-selected__item .icon span.custom-chaty-image,.channels-selected__item .icon span.custom-chaty-image img{width:40px;height:40px}.chaty-default-settings .icon{width:40px}.chaty-default-settings .channels__device-box{width:135px}.chaty-default-settings .channels__device-box .channels__view{margin:0}.chaty-settings{width:92px;text-align:center}.chaty-default-settings .icon.icon-md svg,.main .channels-selected__item .icon{width:40px;height:40px;cursor:move}.chaty-default-settings{display:block;width:100%;padding-bottom:0}.chaty-default-settings .channels__input-box input{width:100%}.chaty-default-settings .channels__input-box{width:calc(100% - 310px)}.viber-help{top:50px;bottom:auto}.day-buttons{width:calc(100% - 71% - 102px)}.url-values{width:calc(37% - 52px)}body{background:#af7dd0 url(../images/bg.svg) no-repeat}.modal-dialog.modal-lg{display:none}}@media screen and (max-width:830px){.chaty-features ul li{width:100%;text-align:center}.demo-buttons{text-align:center}.chaty-feature,.chaty-feature.analytics,.chaty-feature.second{min-height:inherit}}@media screen and (max-width:680px){.chaty-default-settings>*{display:inline-block;vertical-align:top}.section-title{font-size:20px;margin:0 0 15px 0}.chaty-default-settings .channels__input-box{width:calc(100% - 80px)}.viber-help{position:relative;top:auto;left:auto;right:auto;padding:5px 0 0 0;width:100%}.chaty-default-settings .channels__device-box{width:calc(100% - 105px);text-align:left;padding:10px 0 0 0}.chaty-settings{padding:10px 0 0 0}.help-section{display:block;width:100%;text-align:left}.chaty-setting-col input[type=text],select.channel-select-input{width:100%}.chaty-default-settings .channels__device-box .channels__view{margin:0 15px 0 0}.chaty-setting-col>*{display:block}.main .form-horizontal__item-label{display:block;width:100%;flex:auto;text-align:left;padding:0 0 5px 0}button.chaty-input-button,select.chaty-select,select.form-fonts{width:100%}.country-option-box{width:100%}.form-horizontal__item>div{display:block;width:100%}.day-select{width:100%;padding-bottom:10px}.chaty-date-time-option .day-time{width:calc(50% - 78px);padding-bottom:0}.chaty-date-time-option .day-buttons{width:36px;padding-bottom:0}.chaty-date-time-option .time-data{display:none}.chaty-date-time-option.first .time-data{display:inline-block}.chaty-date-time-option.first .day-time{width:calc(50% - 58px);padding-bottom:10px}.chaty-date-time-option.first .day-buttons{width:calc(50% - 7px);vertical-align:top}.url-content>*{float:left}.url-box,.url-option,.url-select{width:50%;word-break:break-all;padding:0 2px}.url-values{width:calc(50% - 36px)}.url-box,.url-buttons,.url-values{padding-top:5px}.url-values{padding-left:2px}.url-buttons{padding-right:2px}.chaty-cls-setting .chaty-default-settings .channels__input-box{width:calc(100% - 114px)}.chaty-cls-setting .chaty-settings.cls-btn{margin-left:0;padding:0}.chaty-cls-setting .input-example{display:none}.chaty-cls-setting .input-example.active{display:block;position:relative;top:4px}.css-option-box,.custom-css{width:100%}.main .channels-selected__item .input-example{left:0;top:40px;position:static;width:100%;text-align:left;margin-top:10px}.viber-help span.help-text{left:-40px}.form-horizontal__item span.header-tooltip-text{width:210px;left:-10px}.form-horizontal__item span.header-tooltip-text:before{left:20px;right:auto}.main #positionPro{margin-left:0}}@media screen and (max-width:600px){.url-content>*{width:100%;padding:0 0 5px 0;text-align:left}.url-content>.url-buttons{padding:0}a.remove-chaty-widget-sticky{top:290px}.pro-features{position:relative;display:block}.chaty-setting-col .pro-features.upload-image{display:inline-block}.btn-red,.btn-white{font-size:14px;margin:2px 0;float:right}.update-nag{display:none!important}.chaty-new-widget-row{display:block}.chaty-new-widget-left{width:100%;float:none}.chaty-new-widget-right{width:100%;float:none;padding:20px 0 0 0}.chaty-new-widget-left img{max-width:100%}.chaty-new-widget-wrap{margin:40px 10px 0 0}.btn-save-sticky{top:70px}.btn-help{top:113px;height:32px;line-height:34px;padding:0;display:inline-block;vertical-align:middle;width:100px}.btn-help span{width:18px;height:18px;line-height:18px;font-size:11px}.preview-help-btn{top:172px!important;line-height:32px;height:32px;width:110px}a.remove-chaty-widget-sticky{padding:0;height:32px;line-height:32px;top:292px!important}.ml-auto{display:none}.mobile-message{display:block}.mobile-button{display:block;margin:10px 0 0 0;float:right}.icon:not(.active):hover:after,.icon:not(.active):hover:before{opacity:0;pointer-events:auto}.icon:not(.active):hover .color-element,.main .channels-icons>.icon:not(.active):hover .color-element{fill:#bdbdbd}.icon:not(.active) .color-element,.main .channels-icons>.icon:not(.active) .color-element{fill:#bdbdbd}.container{padding-left:6px}.btn-save-sticky{font-size:10px;width:32px;height:65px;padding:10px 0 7px;text-align:center}.btn-save-sticky svg{width:25px;margin:0 auto}.btn-save-sticky span{font-size:10px;line-height:10px;height:10px}}@media screen and (max-width:480px){.btn-red,.btn-white{font-size:12px;width:180px;text-align:center}.btn-red svg{width:12px;vertical-align:middle}span.expired-message{color:#a00000;font-size:13px;display:block;padding:0 0 10px 0}a.renew-button{float:right}p.plan_date{font-size:14px}}@media screen and (max-width:400px){.btn-red,.btn-white{font-size:10px;width:160px;text-align:center;padding:5px 0}.chaty-help-btn{right:20px;bottom:5px}}
|
1 |
+
*,.rpt_plans .rpt_plan,::after,::before{box-sizing:border-box}.btn-help,.btn-help:active,.btn-help:hover,.btn-save,.btn-save-sticky a,.icon:after,i{color:#fff}body,i{-webkit-font-smoothing:antialiased}.main .channels-selected__item .btn-cancel:focus,.main .channels-selected__item.disabled .btn-cancel:focus,.main .channels-selected__item.disabled input:focus,button:focus,input:focus{outline:0}.easy-modal ul,.upgrade-block ul{list-style-image:url(../images/icon-check-purple.svg);columns:2}.btn-red,.link-back{text-decoration:none}.btn-file,.kv-file-content,.preview .page,.switch-preview{overflow:hidden}@font-face{font-family:icomoon;src:url(../fonts/icomoon.ttf?qh3c2u) format('truetype'),url(../fonts/icomoon.woff?qh3c2u) format('woff'),url(../fonts/icomoon.svg?qh3c2u#icomoon) format('svg');font-weight:400;font-style:normal}i{font-family:icomoon;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-moz-osx-font-smoothing:grayscale}.easy-modal__bottom,.plan_date,body,button,input{font-family:Rubik,sans-serif}.icon-chat-base:before{content:"\e901"}.icon-chat-db:before{content:"\e903"}.icon-chat-bubble:before{content:"\e900"}.icon-chat-smile:before{content:"\e904"}.icon-upload:before{content:"\e902"}.icon-phone:before{content:"\f095"}.icon-whatsapp:before{content:"\f232"}*,::after,::before{box-sizing:border-box}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{appearance:none;-webkit-appearance:none;margin:0}.container,.ml-auto{margin-left:auto}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto}.col-12{flex:0 0 100%;max-width:100%}.text-center{text-align:center}.text-primary{color:#a886cd}.align-top{align-self:flex-start}.custom-control{display:inline-block;color:#5d5c5c;margin-bottom:0;cursor:pointer;min-height:22px;line-height:22px;padding-left:20px;position:relative}.custom-control .custom-control-input{position:absolute;z-index:-1;opacity:0}.custom-control .custom-control-input.js-upload:disabled~.custom-control-label::before{background:rgba(0,0,0,.1)}.custom-control .custom-control-input:disabled~i{opacity:.5}.custom-control+.custom-control{margin-left:16px}.custom-control.custom-checkbox .custom-control-label{position:static}.custom-control.custom-checkbox .custom-control-label::before{content:'';transition:all .2s;position:absolute;top:3px;left:0;display:block;width:15px;height:15px;line-height:15px;text-align:center;background-color:#fff;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;border-radius:3px;background-position:center;background-repeat:no-repeat;background-size:15px}.color-picker-btn,.custom-control.custom-radio .custom-control-label::before{-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea}.custom-control.custom-checkbox .custom-control-label::after{display:none}.custom-control.custom-checkbox .custom-control-input:checked~.custom-control-label::before{background-image:url(../images/icon-check.svg);background-color:transparent}.custom-control.custom-radio{padding-left:27px}.custom-control.custom-radio .custom-control-label{position:static}.custom-control.custom-radio .custom-control-label::before{content:'';transition:all .2s;position:absolute;top:0;left:0;display:block;width:22px;height:22px;background-color:#fff;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;border-radius:50%;border:5px solid #fff}.custom-control.custom-radio .custom-control-label::after{display:none}.custom-control.custom-radio .custom-control-input:checked~.custom-control-label::before{background:#a886cd}.custom-control.custom-radio+label:before{display:none}.position-pro{background:rgba(168,134,205,.1);border-radius:4px;display:flex;padding:6px 0;transition:all .2s;margin-top:11px;flex-wrap:wrap}.position-pro>div{flex:0 0 auto;padding:6px 15px}.position-pro>div>label:first-child{display:block;margin-bottom:10px}.position-pro>div .custom-control-group{background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.15);border-radius:5px;display:flex;align-items:center;width:150px;height:34px}.position-pro>div .custom-control-group .custom-control{width:75px;padding:0;margin:0!important}.position-pro>div .custom-control-group .custom-control .custom-control-label{width:100%;color:#e0e0e0;height:34px;display:flex;align-items:center;padding:6px 7px}.position-pro>div .custom-control-group .custom-control .custom-control-label:before{content:none}.position-pro>div .custom-control-group .custom-control .custom-control-input:checked+.custom-control-label{color:#a886cd;box-shadow:inset 0 3px 7px rgba(0,0,0,.08)}.position-pro>div .custom-control-group .custom-control .custom-control-input:checked+.custom-control-label path{fill:#a886cd}.icon:not(.active):not(:hover) .color-element,.main .channels-icons>.icon:not(.active):not(:hover) .color-element{fill:#bdbdbd}.icon:not(.active):not(:hover) .slack-path,.main .channels-icons>.icon:not(.active):not(:hover) .slack-path{fill:#fff!important}.position-pro>div .custom-control-group .custom-control:first-child .custom-control-label{border-radius:5px 0 0 5px;text-align:left}.position-pro>div .custom-control-group .custom-control:first-child .custom-control-label svg{margin-right:5px}.position-pro>div .custom-control-group .custom-control:last-child .custom-control-label{border-radius:0 5px 5px 0;display:flex;justify-content:flex-end}.position-pro>div .custom-control-group .custom-control:last-child .custom-control-label svg{margin-left:5px}.btn-red,.color-picker .color-picker-radio label+label{margin-left:12px}.position-pro input{background:#fff;box-shadow:0 0 10px 2px rgba(0,0,0,.2);-webkit-box-shadow:0 0 10px 2px rgba(0,0,0,.2);-moz-box-shadow:0 0 10px 2px rgba(0,0,0,.2);border-radius:5px;border:0;line-height:24px;padding:5px 7px;width:60px;margin-right:3px}.color-picker{background:#fff;box-shadow:0 0 10px 2px rgba(0,0,0,.2);-webkit-box-shadow:0 0 10px 2px rgba(0,0,0,.2);-moz-box-shadow:0 0 10px 2px rgba(0,0,0,.2);border-radius:4px;width:330px;display:none;position:relative}.color-picker .color-picker-radio{display:flex;padding:6px 8px 10px;border-bottom:1px solid rgba(130,130,130,.1)}.color-picker .color-picker-radio label{border-radius:50%;width:28px;height:28px;position:relative;cursor:pointer;font-size:0}.color-picker .color-picker-radio label span{display:block;width:28px;height:28px;vertical-align:top;opacity:0;transition:all .2s;background-position:center;background-repeat:no-repeat;background-image:url(../images/icon-check-white.svg)}.color-picker .color-picker-radio label input{position:absolute;z-index:-1;opacity:0}.color-picker .color-picker-radio label input:checked+span{opacity:1}.btn-help span,.color-picker .color-picker-custom a{margin-left:5px}.color-picker .color-picker-custom{padding:10px 8px 16px}.color-picker .color-picker-custom>div{display:flex;align-items:center}.color-picker .color-picker-custom>div+div{margin-top:10px}.color-picker .color-picker-custom .circle{color:#ff6376;background:#fff;border:1px solid #d0d0d0;border-radius:50%;width:28px;height:28px;align-items:center;justify-content:center;display:flex;margin-right:3px;font-size:14px}a,a:focus{color:#a886cd}body,button{font-size:17px;font-family:Rubik,sans-serif}.color-picker .color-picker-custom input{background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.15);border-radius:5px;border:0;line-height:24px;padding:5px 7px;height:34px;width:180px}.color-picker-btn{background-color:#fff;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;border-radius:4px;border:0;padding:6px 8px;line-height:17px}.color-picker-btn .circle{display:inline-block;vertical-align:top;width:15px;height:15px;border-radius:50%;margin:1px 4px 1px 0}.color-picker-btn svg{transition:all .2s;margin-left:8px}.color-picker-btn-close{background-color:transparent;border:0;padding:5px;line-height:17px;position:absolute;right:0;top:0}.color-picker-btn-close svg{transform:rotate(180deg)}.switch{display:flex;align-items:center;margin-bottom:0;position:relative;flex:0 0 auto}.switch input[type=checkbox]{pointer-events:none;opacity:0;position:absolute;top:0;right:0;z-index:-1;width:0;height:0}.switch input[type=checkbox]:checked+.switch__styled{background:#a886cd;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea}.switch input[type=checkbox]:checked+.switch__styled:after{left:40px;background:#fff}.form-group .switch{height:42px}.switch__styled{background:linear-gradient(283.61deg,#f6f6f6 7.4%,#fff 91.67%),#fff;margin:0 8px;display:inline-block;height:34px;width:72px;border-radius:17px;position:relative;transition:all .2s;cursor:pointer;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;background:#cfbde4}.switch__styled:after{content:'';position:absolute;left:2px;top:2px;height:30px;width:30px;border-radius:50%;background-color:#fff;transition:all .2s;-webkit-box-shadow:0 0 15px 0 #eaeaea inset;-moz-box-shadow:0 0 15px 0 #eaeaea inset;box-shadow:0 0 15px 0 #eaeaea inset}.switch.custom-switch{margin-right:auto;margin-left:30px}.switch.custom-switch .switch__styled{background:linear-gradient(283.61deg,#f6f6f6 7.4%,#fff 91.67%),#fff;box-shadow:0 4px 14px rgba(0,0,0,.15)}body{height:auto;background-image:url(../images/bg.svg);background-position:155px 30px;background-repeat:no-repeat;background-size:calc(100% - 150px) auto;background-attachment:fixed;color:#4f4f4f;padding-bottom:50px;margin:0}button{cursor:pointer}button#collapse-button{font-size:13px}input{font-family:Rubik,sans-serif;font-size:17px}#cht-form input[type=submit]{opacity:0;position:absolute}a:focus{box-shadow:none}::-webkit-input-placeholder{color:#e0e0e0}::-moz-placeholder{color:#e0e0e0}:-ms-input-placeholder{color:#e0e0e0}:-moz-placeholder{color:#e0e0e0}.section{padding:30px 15px;position:relative}.section+.section{border-top:2px solid rgba(130,130,130,.1)}.section.one{max-width:680px}.section-title{font-family:Oswald,sans-serif;font-size:30px;color:#000;line-height:44px;margin-bottom:30px;font-weight:400;margin-top:0;display:flex}.section-title strong{margin:0 14px 0 0;text-align:right;font-weight:700}.main{background-color:#fff;border-radius:9px;position:relative}.main .channels-icons{display:flex;flex-wrap:wrap;margin:0 -8px 20px}.main .channels-icons>.icon{padding:0 6px;margin:0 0;width:60px;height:55px}.main .channels-icons>.icon .color-element{transition:all .2s}.main .channels-icons>.icon:not(.active) svg{cursor:pointer}.main .channels-selected{padding-top:20px;position:relative;min-height:120px}.main .channels-selected__item{display:flex;align-items:center;flex-wrap:wrap;position:relative}.main .channels-selected__item .icon{margin-right:5px;cursor:pointer;width:50px;border-radius:100%;height:50px;text-align:center;vertical-align:middle}.main .channels-selected__item .icon>i{font-size:30px;line-height:50px}.main .channels-selected__item .btn-cancel{position:absolute;right:-15px;top:-15px;transform:translate(50%,-50%);background:linear-gradient(0deg,#333,#333),linear-gradient(153.18deg,#6371db 7.07%,#ff89c4 90.47%);border-radius:50%;width:22px;height:22px;display:flex;align-items:center;justify-content:center;padding:0;border:0;z-index:1;box-shadow:0 4px 14px rgba(0,0,0,.15);cursor:pointer}.main .channels-selected__item .input-example{font-size:13px;padding-top:0;line-height:14px;color:#444;opacity:.8;position:absolute;left:calc(50px + 16px + 7px);top:50px}.main .channels-selected__item.disabled .icon{cursor:default}.main .channels-selected__item.disabled .icon .color-element{fill:#e9e9e9}.main .channels-selected__item.disabled input{box-shadow:0 4px 14px rgba(179,179,179,.15);color:#e9e9e9}.main .channels-selected__item.disabled input::-webkit-input-placeholder{color:#e9e9e9}.main .channels-selected__item.disabled input::-moz-placeholder{color:#e9e9e9}.main .channels-selected__item.disabled input:-ms-input-placeholder{color:#e9e9e9}.main .channels-selected__item.disabled input:-moz-placeholder{color:#e9e9e9}.main .channels-selected__item.disabled .btn-cancel{cursor:default;background:linear-gradient(0deg,#cfcfcf,#cfcfcf),linear-gradient(153.18deg,#6371db 7.07%,#ff89c4 90.47%)}.btn-help,.btn-save-sticky,.channels__view,.icon:not(.active) svg{cursor:pointer}.main .channels-selected__item.disabled .input-example{color:#e9e9e9}.main #positionPro{margin-left:-122px}.main .form-horizontal__item{display:flex;flex-wrap:wrap}.main .form-horizontal__item.active+.form-horizontal__item{padding-top:30px}.main .form-horizontal__item:not(.o-channel)+.form-horizontal__item{padding-top:30px}.main .form-horizontal__item-label{flex:0 0 122px;margin:0 14px 0 0;text-align:right;font-weight:700}.header,.main .form-horizontal__item.flex-center{align-items:center}.main .form-horizontal__item>div>input{background:#fff;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;border-radius:5px;border:0;line-height:24px;padding:5px 7px}.main .form-horizontal__item>div>input.widget-size__input{width:47px;height:34px;text-align:center}.icon{border-radius:50%;vertical-align:top;font-size:0;position:relative}.icon.label-tooltip{font-size:12px;font-weight:400;color:#72777c}.icon:after,.icon:before{position:absolute;opacity:0;pointer-events:none;left:50%}.icon:after{text-align:center;content:"" attr(data-label) "";font-size:11px;top:0;transform:translate(-50%,calc(-100% - 6px));padding:0 20px;line-height:23px;min-width:90px;white-space:nowrap;background-color:#333;box-shadow:0 2px 4px rgba(0,0,0,.15);border-radius:6px;z-index:1001}.btn-save:after,.icon:before,.popover:after{content:''}.icon:before{top:-8px;transform:translateX(-50%);height:10px;width:10px;border-width:10px 5px 0;border-style:solid;border-color:#333 transparent transparent}.icon.tooltip-show:after,.icon.tooltip-show:before,.icon:hover:not(.tooltip-show):after,.icon:hover:not(.tooltip-show):before{opacity:1;pointer-events:auto}.chaty-help-form,.disabled{pointer-events:none}.icon .color-element{transition:all .2s}.icon.no-tooltip:after,.icon.no-tooltip:before{content:none!important}.icon.icon-sm svg{width:48px;height:48px}.icon.icon-md svg{width:50px;height:50px;cursor:move}.icon.icon-xs svg{width:30px;height:30px}.preview.mobiel-view .icon.icon-xs svg{width:24px;height:24px}.preview.mobiel-view .social-item-box{margin:0}.preview.mobiel-view .tooltip .tooltiptext{min-height:24px;line-height:24px;height:24px;bottom:3px}.preview.mobiel-view .tooltip .tooltiptext span{height:24px;min-height:24px;line-height:24px}.preview.mobiel-view .chaty-widget .icon:before{top:calc(100% - 17px)}.preview.mobiel-view span.social-tooltip{padding:0 10px}.preview.mobiel-view span.social-tooltip:after{top:6px}.btn-save{border:0;text-transform:uppercase;line-height:24px;font-weight:700;position:relative;max-width:100%;margin-top:40px;height:50px;width:274px;border-radius:25px;padding:14px 15px 12px;background-image:url(../images/rocket.svg);background-color:#ff6624;background-position:left bottom;background-repeat:no-repeat;box-shadow:0 3px 10px 1px rgba(255,90,116,.5)}.btn-save:after{position:absolute;z-index:-1;top:30px;left:50%;transform:translateX(-50%);width:238.1px;height:30.81px;background:linear-gradient(97.71deg,#ff6624 9.04%,#ff6376 91.56%),linear-gradient(104.36deg,#6371db 20.37%,#ff89c4 72.52%);opacity:.77;filter:blur(19px);border-radius:9px}.btn-help,.preview-help-btn{text-align:center;padding-top:10px;position:absolute;background:#03e78b;border-radius:7px 7px 0 0;right:0;top:60px;transform:rotate(-90deg);transform-origin:bottom right;border:0;height:42px;width:102px;text-transform:uppercase;font-weight:700}.btn-help span{display:inline-block;width:27px;height:27px;border:2px solid #fff;border-radius:100%}.preview-help-btn{display:none;color:#fff;text-decoration:none}.btn-save-sticky{padding:10px 0 11px;top:20px;background:#ff6624;right:0;border-radius:7px 0 0 7px;position:absolute;border:0;height:69px;width:42px;text-transform:uppercase;color:#fff;font-weight:700;font-size:11px}.btn-save-sticky span{text-align:center;display:inline-block;margin-bottom:4px;height:15px;line-height:13px}input.channels__input.border-red{border-color:#d00}@media (min-width:1281px){.btn-save-sticky{left:calc(50vw - 480px + 1050px / 12 * 7 + 475px);top:161px;right:auto;border-radius:0 7px 7px 0;position:fixed}body.has-premio-box .btn-save-sticky{top:320px}body.has-premio-box .btn-help{top:455px}html[dir=rtl] .btn-save-sticky{left:calc(50vw - 480px + 1050px / 12 * 7 + 295px)}html[dir=rtl] .btn-help{left:calc(50vw - 480px + 1050px / 12 * 7 + 193px)}}.popover{flex:0 0 auto;background:#fff;border-radius:4px;line-height:33px;padding:0 5px;position:relative;margin:25px 25px 25px 0;box-shadow:0 1px 14px rgba(156,117,198,.4),0 2px 4px rgba(0,0,0,.15);margin:0 0 20px 0;text-align:center;max-width:635px}.popover:after{position:absolute;top:-7px;left:40px;width:20px;height:7px;background-image:url(../images/arrow.png);background-position:center;background-size:contain;background-repeat:no-repeat;display:none}.easy-modal{display:none;width:515px;max-width:calc(100vw - 30px);box-shadow:0 4px 6px rgba(0,0,0,.15);border-radius:6px;background-color:#fff;top:50%!important;transform:translateY(-50%)}.easy-modal .money-guaranteed svg,.upgrade-block .money-guaranteed svg{width:15px;vertical-align:text-bottom}.easy-modal .money-guaranteed{color:#a886cd;font-size:17px;line-height:24px;margin-bottom:20px}.easy-modal .easy-modal-inner{position:relative;padding:20px 50px}.easy-modal .easy-modal-close{position:absolute;right:0;top:0;padding:7px;line-height:12px;background-color:transparent;border:0}.easy-modal h2{font-family:Rubik;font-weight:700;font-size:27px;margin-bottom:13px;text-align:center;margin-top:0}.easy-modal .udner-title{font-size:17px}.easy-modal .udner-title span{font-size:15px;display:block;color:#bdbdbd}.easy-modal p{text-align:center;margin:0 auto 10px}.easy-modal ul{margin-bottom:17px;line-height:27px;list-style-position:inside;text-align:left}.easy-modal .easy-modal-link{font-size:15px;text-decoration-line:underline;color:#828282;display:inline-block;margin-top:7px}.easy-modal .form-horizontal__item{margin-bottom:50px;justify-content:center;text-align:center}.easy-modal .user-name,.easy-modal .user-role{margin:0;font-size:13px}.easy-modal .form-horizontal__item>div{flex:0 0 auto}.easy-modal .user-name{font-weight:700;color:#828282;text-align:left}.link-back,.link-back:hover{color:#fff}.easy-modal .user-photo{float:left;margin-right:5px}.link-back{display:inline-block;border:1px solid #fff;border-radius:60px;font-size:17px;line-height:20px;text-align:center;padding:7px 46px}.upgrade-wrap{max-width:1080px;margin:13px auto}.upgrade-block{background-color:#fff;border-radius:9px;padding:48px 0 67px;margin-top:21px}.upgrade-block .easy-modal-inner{padding:0 20px;margin:0 auto;direction:ltr!important}.upgrade-block h2{font-family:Rubik;font-weight:700;font-size:27px;margin-bottom:5px;text-align:center;margin-top:0;line-height:33px}.upgrade-block .udner-title{font-size:17px}.upgrade-block .udner-title span{font-size:15px;display:block;color:#bdbdbd}.form-horizontal__item .chaty-widget .icon,.upgrade-block ul{display:inline-block}.upgrade-block p{text-align:center;margin:0 auto 10px}.upgrade-block ul{margin-bottom:17px;line-height:27px;list-style-position:inside;text-align:left}.upgrade-block .easy-modal-link{font-size:15px;text-decoration-line:underline;color:#828282;display:inline-block;margin-top:7px}.upgrade-block .form-horizontal__item{margin-bottom:50px;justify-content:center;text-align:center}img.payment-img{margin:10px 0}.upgrade-block .form-horizontal__item>div{flex:0 0 auto}.upgrade-block .user-name{font-weight:700;color:#828282;margin:0;text-align:left;font-size:13px}.upgrade-block .user-role{margin:0;font-size:13px}.upgrade-block .user-photo{float:left;margin-right:5px}.upgrade-block .money-guaranteed{color:#b97fcf;font-size:16px;line-height:18px;margin:10px 0}.upgrade-block .money-guaranteed span.dashicons.dashicons-yes{background:#00bd00;color:#fff;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%}.easy-modal.modal-upgrade{width:560px}.easy-modal.modal-upgrade .easy-modal-inner{padding:20px 0 0}.modal__wrap{padding:0 5px;text-align:center}.form-horizontal__item .chaty-widget{position:static;flex:0 0 250px!important}.form-horizontal__item .chaty-widget .icon svg{width:62px;height:62px}.form-horizontal__item .chaty-widget .icon:after{z-index:10;content:"" attr(data-label) "";font-size:17px;left:0;top:50%;transform:translate(calc(-100% - 6px),-50%);white-space:nowrap;padding:16px 25px;line-height:21px;width:auto;color:#333;background-color:#fff;box-shadow:0 1.93px 7.74px rgba(0,0,0,.15);border-radius:10px}#toplevel_page_chaty-app img,.btn-red:hover,.text_update{color:#fff}.form-horizontal__item .chaty-widget .icon:before{content:'';left:-8px;top:50%;transform:translateY(-50%);height:10px;width:10px;z-index:11;border-width:5px 0 5px 10px;border-style:solid;border-color:transparent transparent transparent #fff}.btn-red,.btn-white{z-index:100;line-height:27px;box-shadow:0 4px 4px rgba(0,0,0,.11);vertical-align:middle;position:relative;color:#fff}.btn-red:focus,.btn-red:hover{color:#fff}.form-horizontal__item .chaty-widget.chaty-widget-icons-right .icon:before{right:-8px;left:auto;border-width:5px 10px 5px 0;border-color:transparent #fff transparent transparent}.form-horizontal__item .chaty-widget.chaty-widget-icons-right .icon:after{right:0;left:auto;transform:translate(calc(100% + 6px),-50%)}.header{display:flex;padding:3px 0;margin-bottom:9px}.btn-red,.tooltip{display:inline-block}.btn-white{background-color:transparent;border:1px solid #fff;border-radius:19px;display:inline-block;padding:3px 20px;text-transform:uppercase;font-weight:700;text-decoration:none}.btn-white,.btn-white:focus,.btn-white:hover{color:#fff}.btn-red{border:0;text-transform:uppercase;font-weight:700;background-color:#ff6624;padding:6px 20px 4px;border-radius:19px}.btn-red svg{vertical-align:text-top;margin-left:5px}.btn-red:hover{color:#fff}.text_update{color:#fff;top:2px;position:relative;margin:0;font-size:10px;left:15px}.sticky-wrapper{position:absolute;right:0;top:-370px;width:calc(320px);z-index:99}.tooltip{position:relative}.chaty-widget-icons-left .tooltip .tooltiptext,.chaty-widget-icons-right .tooltip .tooltiptext{white-space:pre-wrap;display:block;width:250px;min-height:24px;color:#000;text-align:center;padding:0;top:2.5px;position:absolute;z-index:35;font-size:12px;line-height:36px}.tooltip .tooltiptext span{background-color:#fff;padding:0 15px;display:inline-block;vertical-align:middle;line-height:24px;height:24px;float:right;margin:0;border-radius:6px}.chaty-widget-icons-left .tooltip .tooltiptext span{float:left}.tooltip:hover .tooltiptext{visibility:visible}.chaty-widget-icons-right .tooltip .tooltiptext{justify-content:center;align-items:center;right:41px}.mobiel-view .chaty-widget-icons-right .tooltip .tooltiptext{right:35px}.chaty-widget-icons-left .tooltip .tooltiptext{align-items:center;justify-content:center;left:43px;line-height:36px}.mobiel-view .chaty-widget-icons-left .tooltip .tooltiptext{left:37px}.update-nag{display:block!important}.notice,div.error,div.updated{display:none!important}div#setting-error-settings_updated{display:block!important}.domain__input,.domain__label{max-width:342px;display:block}.domain{background:rgba(168,134,205,.1);border-radius:4px;text-align:left;margin:0 0 10px;padding:10px 20px}.domain__label{font-size:17px;font-weight:700;margin:0 auto 6px}.domain__input{height:34px;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.15);border-radius:5px;border:none;width:100%;margin:0 auto}.upg{background:0 0;border:none;text-align:center;width:270px;padding:0}.upg img,.upg svg{width:100%}.valid_domain{transition-property:margin-top;transition-delay:.3s;color:red;display:none}.payments{margin-bottom:5px}.easy-modal__bottom{padding:10px 10px 0;text-align:left;font-family:Rubik,sans-serif;color:#828282;position:relative}.easy-modal__bottom .quote{position:absolute;left:65px;top:-4px}.easy-modal__bottom:before{content:'';display:block;position:absolute;left:0;top:0;width:100%;background:rgba(130,130,130,.1);height:2px}.easy-modal__bottom .easy-modal__bottom-p{text-align:left;font-weight:300;position:relative;margin-bottom:10px;font-size:14px;line-height:17px}.easy-modal__bottom .easy-modal__bottom-p p{text-align:left;margin:6px 0 0;line-height:15px}html[dir=rtl] body{background-position:0}html[dir=rtl] input[type=radio]:checked:before{text-indent:-1px}.chaty-new-widget-wrap{border-radius:10px;padding:10px;margin:40px auto 0 auto;background-size:auto 100%;width:100%;max-width:776px;background:#fff url(../images/bg.png) right bottom no-repeat;font-family:Poppins;line-height:20px}.chaty-new-widget-wrap h2{font-style:normal;font-weight:600;font-size:20px;line-height:30px;color:#1e1e1e;margin:15px 0}.chaty-features ul{margin:0;padding:0}.chaty-features ul li{margin:0;width:33.33%;float:left;padding:10px}.chaty-feature{margin:30px 0 0 0;background:#fff;border:1px solid #605dec;box-sizing:border-box;border-radius:4px;padding:30px 15px 10px 15px;min-height:186px;position:relative}.chaty-feature.second{min-height:155px}.feature-title{font-family:Poppins;font-style:normal;font-weight:700;font-size:13px;line-height:18px;color:#1e1e1e}.feature-description{font-family:Poppins;font-style:normal;font-weight:400;font-size:13px;line-height:18px;color:#1e1e1e}a.new-upgrade-button{height:40px;background:#605dec;border-radius:100px;border:solid 1px #605dec;display:inline-block;text-align:center;color:#fff;line-height:40px;margin:10px 0 10px 10px;padding:0 25px;text-decoration:none;text-transform:uppercase}a.new-demo-button{height:40px;color:#605dec;border:solid 1px #605dec;border-radius:100px;display:inline-block;text-align:center;background:#fff;line-height:40px;margin:10px 0 10px 10px;padding:0 25px;text-decoration:none;width:165px}.analytics-popup{display:none}.analytics-overlay{width:100%;height:100%;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);z-index:10001}.analytics-popup-content{position:fixed;top:50%;left:0;right:0;margin:0 auto;z-index:11011;width:auto;max-width:100%;max-height:100%;padding:15px;border-radius:5px;text-align:center;-webkit-transform:translate(0,-50%);transform:translate(0,-50%);height:80vh}.analytics-popup-content .popup-data{position:relative;display:inline-block;height:80vh}.analytics-popup-content .popup-data img{width:auto;max-width:100%;height:auto;max-height:100%}.analytics-popup-content .close-popup{position:absolute;right:-20px;top:-20px}.analytics-popup-content .close-popup a{text-decoration:none;width:20px;height:20px;border-radius:50%;background:#4e4e4e;color:#fff;text-align:center;display:block}.chaty-feature.analytics{min-height:115px}.chaty-feature-top{width:50px;height:50px;border:solid 1px #605dec;border-radius:50%;position:absolute;left:0;right:0;margin:0 auto;top:-25px;background:#fff;z-index:11;padding:10px}.chaty-feature-top img{width:100%;height:auto}.trigger-block{padding:0;background:#f6f3fa;margin-bottom:4px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;position:relative;flex:calc(100% - 152px);max-width:360px}.chaty-switch{display:inline-block;height:34px;position:relative;padding:0 0 0 50px;line-height:24px}.chaty-switch input{display:none}.chaty-slider{background-color:#cfbde4;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.4s;width:40px;height:24px}.chaty-slider:before{background-color:#fff;bottom:4px;content:"";height:16px;left:4px;position:absolute;transition:.4s;width:16px}.trigger-block-input{font-size:14px}.trigger-block-input input{width:50px}input:checked+.chaty-slider{background-color:#a886cd}input:checked+.chaty-slider:before{transform:translateX(16px)}.chaty-slider.round{border-radius:34px}.chaty-slider.round:before{border-radius:50%}.trigger-option-block{padding:10px;border-bottom:solid 1px #eee2ff}.trigger-option-block:last-child{border-bottom:none}.gmt-data{display:none}.chaty-date-time-option:first-child .gmt-data{display:block}.chaty-date-time-option{padding:5px;background:#f6f3fa;margin-bottom:4px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;position:relative}.chaty-date-time-option.last{margin-bottom:15px}.date-time-content>*{vertical-align:middle;display:inline-block}.day-select{width:25%;display:inline-block;padding-right:5px}.date-time-content input,.date-time-content select{width:100%;height:36px;line-height:36px;padding:0 10px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.day-label{width:50px;padding-right:5px;text-align:right}.day-time{width:10%;padding-right:5px}.day-buttons a{background:#bd2a00;text-align:center;display:inline-block;line-height:36px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;width:36px;height:36px}.main .form-horizontal__item.hide-show-button{display:none}.main .form-horizontal__item.hide-show-button.active{display:flex}.custom-chaty-image{display:none}.chaty-channels .social-item-box .custom-chaty-image{display:none}.chaty-channels .social-item-box .custom-chaty-image img{width:30px;height:30px;object-fit:cover;border-radius:50%}.chaty-channels .social-item-box.img-active .custom-chaty-image{display:block}.chaty-channels .social-item-box .custom-chaty-image,.chaty-channels .social-item-box .default-chaty-icon{width:30px;height:30px;cursor:pointer}.chaty-channels .social-item-box.img-active .default-chaty-icon{display:none}.social-item-box{display:block;height:30px;margin:0 0 5px 0;position:relative}#iconWidget{cursor:pointer}.chaty-channels{display:none}.chaty-widget.active .chaty-channels,.chaty-widget.hover:hover .chaty-channels{display:block}.preview .page .chaty-widget i.chaty-close-icon,.preview .page .chaty-widget.active.hide-arrow i.chaty-close-icon{display:none!important}.preview .page .chaty-widget.active:not(.has-single):not(.hide-arrow) i.chaty-close-icon,.preview .page .chaty-widget.hover:hover:not(.has-single):not(.hide-arrow) i.chaty-close-icon{display:block!important}.preview .page .chaty-widget.active:not(.has-single) i#iconWidget,.preview .page .chaty-widget.hover:hover:not(.has-single) i#iconWidget{display:none!important}.preview .page .chaty-widget.active:not(.has-single) .tooltiptext{display:none!important}.preview .page .chaty-widget.active:not(.has-single) .icon:before{display:none!important}span.social-tooltip{position:absolute;right:100%;background:#fff;padding:0 10px;color:#4f4f4f;top:0;z-index:1001;font-size:12px;margin:0 10px 0 0;border-radius:5px;display:none}.social-item-box:hover span.social-tooltip{display:block}span.social-tooltip:after{content:"";border-width:5px 0 5px 10px;border-style:solid;border-color:transparent transparent transparent #fff;position:absolute;top:6px;right:-9px}.chaty-widget-icons-left span.social-tooltip{margin:0 0 0 14px;left:100%;right:auto}.chaty-widget-icons-left span.social-tooltip:after{content:"";border-style:solid;border-width:5px 10px 5px 0;border-color:transparent #fff transparent transparent;position:absolute;top:12px;right:100%}.chaty-date-time-option input[readonly]{background:#fff}.upgrade-upload-btn .upgrade-link{display:none!important}.upgrade-upload-btn:hover .upgrade-link{display:block!important}.upgrade-upload-btn:hover .custom-control-label,.upgrade-upload-btn:hover .form-group{opacity:.5;filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px);-moz-filter:blur(2px);-webkit-filter:blur(2px)}.read-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}select.chaty-select:disabled,textarea.test_textarea:disabled{background:#eee;border:solid 1px #ddd;color:#32373c;font-size:14px}.widget-icon__block .custom-control.custom-radio.add-border{border-right:1px solid #fff}.upgrade-upload-btn:hover .custom-control-label,.upgrade-upload-btn:hover .form-group{opacity:.5;filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px);-moz-filter:blur(2px);-webkit-filter:blur(2px)}.widget-icon__wrap a.upgrade-link{display:block;font-size:16px;text-align:center;padding-left:0;position:absolute;bottom:35px;right:0;width:70px;text-decoration:none;text-align:center;left:0;margin:0 auto}.upgrade-upload-btn:hover .upgrade-link{display:block!important}.chaty-option-box{flex:calc(100% - 152px)}.chaty-data-and-time-rules{display:none}.hover.chaty-widget:hover .tooltiptext{display:none!important}.preview .page .hover.chaty-widget:hover .icon:before{display:none!important}span.header-tooltip{position:relative;display:inline-block}span.header-tooltip span.dashicons.dashicons-editor-help{display:inline-block;cursor:pointer}span.header-tooltip-text{display:none;position:absolute;bottom:140%;left:0;width:250px;left:-110px;font-size:12px;font-weight:400;line-height:16px;background:#000;padding:5px;border-radius:5px;color:#fff}span.header-tooltip-text:before{content:"";top:100%;transform:translateX(-50%);height:10px;width:10px;border-width:10px 5px 0;border-style:solid;border-color:#333 transparent transparent;position:absolute;left:0;right:0;margin:0 auto}span.header-tooltip:hover span.header-tooltip-text{display:block}.chaty-animation-pulse{animation:chaty-animation-pulse 1s forwards}.chaty-animation-jump{animation:chaty-animation-jump 1s forwards cubic-bezier(.84,-.54,.31,1.19)}.chaty-animation-waggle{animation:chaty-animation-waggle 1s forwards ease-out}.chaty-animation-sheen{position:relative;overflow:hidden}.chaty-animation-sheen:after{animation:chaty-animation-sheen 1.5s forwards;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(-1em,4em)}.chaty-animation-spin{animation:chaty-animation-spin 1s forwards cubic-bezier(.56,-.35,.22,1.5)}.chaty-animation-fade{animation:chaty-animation-fade 1s forwards}a.upgrade-link{line-height:24px;display:block;padding:10px 10px;text-decoration:none}a.upgrade-link strong{text-decoration:underline}@keyframes chaty-animation-pulse{0%{background-color:orange}25%{background-color:red}50%{background-color:orange}75%{background-color:red}}@keyframes chaty-animation-jump{0%{transform:none}50%{transform:translateY(-.8em)}}@keyframes chaty-animation-waggle{0%{transform:none}50%{transform:rotateZ(-20deg) scale(1.2)}60%{transform:rotateZ(25deg) scale(1.2)}67.5%{transform:rotateZ(-15deg) scale(1.2)}75%{transform:rotateZ(15deg) scale(1.2)}82.5%{transform:rotateZ(-12deg) scale(1.2)}85%{transform:rotateZ(0) scale(1.2)}100%{transform:rotateZ(0) scale(1)}}@keyframes chaty-animation-sheen{100%{transform:rotateZ(60deg) translate(0,-4em)}}@keyframes chaty-animation-spin{50%{transform:rotateZ(-20deg);animation-timing-function:ease}100%{transform:rotateZ(360deg)}}@keyframes chaty-animation-fade{25%{opacity:.25}50%{opacity:1}75%{opacity:.25}100%{opacity:1}}.start-now,.start-now:after{animation-delay:0s}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}.modal__wrap{padding:0}.domain{margin:0 0 10px;padding:20px 60px 26px}}.channels__view{display:inline-block;color:#444;margin-bottom:0;line-height:14px;padding-left:17px;position:relative;font-size:14px;margin-left:15px}.channels__view-check{position:absolute;z-index:-1;opacity:0}.channels__view-check:checked~.channels__view-txt::before{background:#a785cb;color:#fff}.channels__view-check:checked~.channels__view-txt::after{color:#fff;content:"\f147";font-family:dashicons;line-height:1;position:absolute;top:0;left:0}.channels__view-txt:before{content:'';transition:all .2s;position:absolute;top:0;left:0;display:block;width:14px;height:14px;line-height:14px;text-align:center;border:solid 2px #a785cb;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.file-input,.widget-icon__block .custom-control.custom-radio .custom-control-label{position:relative}.channels__input{padding:9px 7px;border:0;line-height:24px;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.15);border-radius:9px;width:282px}.channels__input-box{position:relative;margin-right:5px}.widget-icon__block [class^=icon-]{display:block;border-radius:100%;text-align:center;width:40px;height:40px;line-height:40px;font-size:20px;margin:0 auto 6px}.widget-icon__block [class^=icon-] svg{color:#fff}.widget-icon__block .icon-upload{background:0 0;color:#a886cd}.widget-icon__block .custom-control.custom-radio{text-align:center;margin:0;padding:22px 8px 22px;vertical-align:bottom;text-decoration:none;max-width:70px}label.widget-icon__wrap.has-pro .custom-control.custom-radio{padding:22px 8px 44px}.widget-icon__block .custom-control.custom-radio .custom-control-label:before{transform:translateX(-50%);left:50%}.widget-icon__block .custom-control.custom-radio.add-border{border-right:1px solid #fff}label.widget-icon__wrap.has-free{position:relative}.widget-icon__wrap.has-free .custom-control.custom-radio{text-align:center;margin:0;padding:22px 8px 42px;vertical-align:bottom;text-decoration:none}.widget-icon__wrap.has-pro .custom-control.custom-radio{border:none}.widget-icon__wrap{background:rgba(168,134,205,.1);padding:0;border-radius:4px;flex:none;font-size:0;margin-bottom:25px;position:relative}@media (min-width:768px){.widget-icon__block [class^=icon-]{width:54px;height:54px;font-size:28px;line-height:54px}.widget-icon__block [class^=icon-] svg{width:100%}.widget-icon__block .custom-control.custom-radio:first-child{padding-left:20px;max-width:90px}.widget-icon__block .custom-control.custom-radio:last-child{padding-right:20px}}@media (max-width:767px){.main .form-horizontal__item>.widget-icon__wrap{display:flex;justify-content:space-between}.main .form-horizontal__item>.widget-icon__wrap .custom-control{margin:0;flex:1;text-align:center}}.file-input{width:40px;height:44px;display:block}.file-input input[type=file]{top:0;left:0;min-width:100%;min-height:100%;text-align:right;opacity:0;background:0 0;cursor:pointer;display:block;position:absolute}.btn-file,.form-group,.kv-file-content{position:relative}.form-group:hover :not(.file-input-new) .file-browse{display:block;z-index:10}.file-actions,.file-browse,.file-browse span,.file-drop-zone-title,.file-footer-caption,.file-preview-status{display:none}.form-group:hover :not(.file-input-new) .file-browse .icon-upload{background:rgba(0,0,0,.5)}.kv-file-content{width:40px;height:40px;background:#fff;border-radius:100%;text-align:center;margin:0 auto}.kv-file-content img{width:auto;height:auto;max-width:100%;max-height:100%}.file-preview{position:absolute}.file-preview-thumbnails{width:54px;height:54px;border-radius:100%;position:absolute;left:0;top:0}.file-preview-frame{position:absolute;left:0;top:0;right:0;z-index:10}.file-preview-frame.file-preview-initial{z-index:0}.file-input-new .file-browse{display:block}.file-input-new .file-browse span{display:block;color:#a886cd;text-decoration:underline;position:absolute;bottom:0;left:0;right:0}.file-input-new .file-browse:hover span,a.pro-plugin-url,a.rpt_tooltip{text-decoration:none}@media (min-width:768px){.kv-file-content{width:54px;height:54px}.file-input{width:54px;height:60px}}.preview{width:337px;z-index:99;height:373px;margin-right:15px;float:right;z-index:1001}body.has-premio-box .preview{top:320px}.preview.mobiel-view .page{width:202px}.preview.mobiel-view .page .chaty-widget .icon i{width:24px;height:24px;font-size:12px;line-height:24px}.is-sticky .preview{left:calc(50vw - 480px + 960px / 12 * 7 + 140px)}.preview h2{text-align:center;font-weight:700;line-height:normal;font-size:17px;color:#4f4f4f;margin-bottom:5px}.preview .page{background-color:#f2f2f2;box-shadow:0 4px 35px rgba(0,0,0,.05);border-radius:5px;position:relative;height:234px;margin:0 auto}.preview .page .page-header{display:flex;align-items:center;background:#fff;border-radius:5px 5px 0 0;height:16px}.preview .page .page-header .circle{margin-left:9px;width:6px;height:6px;background:linear-gradient(153.19deg,#6371db 7.06%,#ff89c4 90.47%),#ffe663;box-shadow:0 4px 35px rgba(0,0,0,.05);border-radius:50%}.preview .page .page-header svg:last-child{margin-left:auto;margin-top:7px;margin-right:-7px}.preview .page .chaty-widget{position:absolute;left:auto}.preview .page .chaty-widget .icon:after{z-index:10;content:'';font-size:13px;top:13px;white-space:nowrap;padding:0;line-height:0;width:auto;color:#333;background-color:#fff;box-shadow:0 1.93px 7.74px rgba(0,0,0,.15);border-radius:0;right:0;left:auto;transform:translate(calc(100% + 6px),-50%)}.preview .page .chaty-widget .icon:before{content:'';right:-18px;left:auto;top:calc(100% - 20px);height:10px;width:10px;z-index:11;border-style:solid;border-width:5px 10px 5px 0;border-color:transparent #fff transparent transparent}.preview .page .chaty-widget.hide-arrow .icon:before,.preview .page .chaty-widget.hide_arrow .icon:before{display:none}.preview .page .chaty-widget .icon i{width:30px;height:30px;font-size:18px;display:block;border-radius:100%;line-height:30px;text-align:center;overflow:hidden}.preview .page .chaty-widget .icon i.icon-chat-image{background:0 0}.preview .page .chaty-widget .icon i.icon-chat-image img{display:block;background:#a886cd}.preview .page .chaty-widget .icon i svg{fill:#fff;width:100%;height:100%}.preview .page .chaty-widget .icon i img{width:auto;height:auto;max-width:100%;max-height:100%}.mobiel-view .preview .page .chaty-widget .icon i{width:23px;height:23px;font-size:13px;line-height:23px}.preview .page .chaty-widget[style*="left: auto;"] .icon:before{right:auto;left:-8px;border-width:5px 0 5px 10px;border-style:solid;border-color:transparent transparent transparent #fff}.preview .page .chaty-widget[style*="left: auto;"] .icon:after{left:0;right:auto;transform:translate(calc(-100% - 6px),-50%)}.switch-preview{display:flex;width:160px;border-radius:5px;margin:15px auto 0;-webkit-box-shadow:0 0 15px 0 #eaeaea inset;-moz-box-shadow:0 0 15px 0 #eaeaea inset;box-shadow:0 0 15px 0 #eaeaea inset;background:#fff}.easy-modal-open,.switch-preview__input[type=radio],.switch-preview__label input{display:none}.switch-preview__label{flex:1;text-align:center;line-height:30px}.switch-preview__input[type=radio],.switch-preview__label input{display:none}.switch-preview__input[type=radio]:checked+label{background:#a886cd;color:#fff}html[dir=rtl] .preview{right:auto}html[dir=rtl] .is-sticky .preview{left:calc(50vw - 480px + 960px / 12 * 7 + 84px - 175px)}.easy-modal-open{display:none}a.pro-plugin-url{color:#fff;background:#7474d9;display:inline-block;margin-bottom:25px;text-decoration:none;-moz-border-radius:25px;-webkit-border-radius:25px;font-size:24px;border-radius:25px;padding:15px 45px}.test_textarea{-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;padding:10px;height:70px;border:solid 1px #f6f6f6;width:100%;max-width:360px}.license-key{border:1px solid #ccc;background:#fff;width:100%;max-width:350px;margin:10px 0 20px}.license-key .license-key-header{border-bottom:1px solid #ccc;padding:15px 12px;font-weight:600;background:#f9f9f9;color:#23282d}.license-key .license-key-content{padding:15px 12px;background:#fff}.license-key .license-key-content input[type=text]{width:100%;font-size:14px;font-weight:400}.license-key .license-key-footer{border-top:1px solid #ccc;padding:15px 12px;background:#f9f9f9}.license-key .license-key-message{margin:10px 0 0 0;min-height:40px}.license-key .button-secondary{font-weight:400}.testimonial-error-message,.testimonial-success-message{background:#fff;margin:10px 0 0 0;padding:10px 10px 10px 10px;border-left:solid 3px #dd4b39}.testimonial-success-message{border-left:solid 3px #00a65a}.save-testimonial-license-key{width:102px;text-align:center}.remove-testimonial-license-key{width:128px;text-align:center}.test-error-message{color:#dc3232}.hide-this-table,.lean-overlay{display:none!important}span.expired-message{color:#a00000;font-size:18px}.wrap.wrap-licenses{background:#fff;padding:10px 25px 25px}.chaty-help-btn{position:fixed;right:20px;bottom:20px;z-index:1001}.chaty-help-btn a{display:block;border:3px solid #fff;width:50px;height:50px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;position:relative}.chaty-help-btn a img{width:100%;height:auto;display:block;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.chaty-help-form{position:fixed;right:85px;border:1px solid #e9edf0;bottom:25px;background:#fff;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;width:320px;z-index:1001;direction:ltr;opacity:0;transition:.4s;-webkit-transition:.4s;-moz-transition:.4s}.chaty-help-form.active{opacity:1;pointer-events:inherit}.chaty-help-header{background:#f4f4f4;border-bottom:solid 1px #e9edf0;padding:5px 20px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px 10px 0 0;font-size:16px;text-align:right}.chaty-help-header b{float:left}.chaty-help-content{margin-bottom:10px;padding:20px 20px 10px}.chaty-help-form p{margin:0 0 1em}.chaty-form-field{margin-bottom:10px}.chaty-form-field input,.chaty-form-field textarea{-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:5px;width:100%;box-sizing:border-box;border:1px solid #c5c5c5}.chaty-form-field textarea{height:70px}.chaty-help-button{border:none;padding:8px 0;width:100%;background:#ff6624;color:#fff;border-radius:18px}.chaty-help-form .error-message{font-weight:400;font-size:14px}.chaty-help-form input.input-error,.chaty-help-form textarea.input-error{border-color:#dc3232}.chaty-help-btn span.tooltiptext{position:absolute;background:#000;font-size:12px;color:#fff;top:-35px;width:140%;text-align:center;left:-20%;border-radius:5px;direction:ltr}p.error-p,p.success-p{margin:0;font-size:14px;text-align:center}.chaty-help-btn span.tooltiptext:after{bottom:-9px;content:"";transform:translateX(-50%);height:10px;width:10px;border-width:10px 5px 0;border-style:solid;border-color:#000 transparent transparent;left:50%;position:absolute}p.success-p{color:green}p.error-p{color:#dc3232}html[dir=rtl] .chaty-help-btn{left:20px;right:auto}html[dir=rtl] .chaty-help-form{left:85px;right:auto}#rpt_container{margin-top:24px;width:100%}.rpt_plans .rpt_plan{-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.rpt_2_plans .rpt_plan{margin-right:2%;width:49%;float:left}.rpt_2_plans .rpt_plan:last-child{margin-right:0}.rpt_3_plans .rpt_plan{margin-right:2%;width:32%;float:left}.rpt_3_plans .rpt_plan:last-child{margin-right:0}.rpt_4_plans .rpt_plan{margin-right:1%;width:24.25%;float:left}.rpt_4_plans .rpt_plan:last-child{margin-right:0}.rpt_5_plans .rpt_plan{margin-right:.5%;width:19.6%;float:left}.rpt_5_plans .rpt_plan:last-child{margin-right:0}.rpt_style_bic .rpt_plan,.rpt_style_loc .rpt_plan{-webkit-box-shadow:1px 1px 3px 0 rgba(50,50,50,.19);-moz-box-shadow:1px 1px 3px 0 rgba(50,50,50,.19);box-shadow:1px 1px 3px 0 rgba(50,50,50,.19)}.rpt_plans .rpt_plan .rpt_title img{margin-right:10px;position:relative;vertical-align:middle}.rpt_plans .rpt_plan .rpt_title{background:#6371db;font-weight:300;padding:24px 18px;font-size:26px;color:#fff;line-height:35px;height:auto}.rpt_plans .rpt_plan .rpt_title span{display:inline-block;position:relative;top:-10px}.rpt_style_basic .rpt_plan .rpt_title{border-bottom:#ec86c6 solid 1px;border-top-left-radius:8px;border-top-right-radius:8px}.rpt_style_spec .rpt_plan .rpt_title{color:#fff}.rpt_style_bic .rpt_plan .rpt_title,.rpt_style_loc .rpt_plan .rpt_title,.rpt_style_swl .rpt_plan .rpt_title{background:#333}.rpt_plans .rpt_sm_title .rpt_plan .rpt_title{font-size:20px;line-height:18px}.rpt_plans .rpt_xsm_title .rpt_plan .rpt_title{font-size:15px;line-height:15px}.rpt_4_plans .rpt_plan .rpt_title{font-size:17px;line-height:15px}.rpt_4_plans .rpt_sm_title .rpt_plan .rpt_title{font-size:15px;line-height:13px}.rpt_4_plans .rpt_xsm_title .rpt_plan .rpt_title{font-size:13px;line-height:11px}.rpt_5_plans .rpt_plan .rpt_title{font-size:15px;line-height:13px}.rpt_5_plans .rpt_sm_title .rpt_plan .rpt_title{font-size:13px;line-height:11px}.rpt_5_plans .rpt_xsm_title .rpt_plan .rpt_title{font-size:12px;line-height:10px}.rpt_plans .rpt_recommended_plan .rpt_title{background:#6371db}.rpt_plans .rpt_plan .rpt_head .rpt_price .rpt_currency{position:relative;top:-44px;left:-10px;font-size:35px;line-height:0}.rpt_4_plans .rpt_plan .rpt_head .rpt_price .rpt_currency{top:-36px}.rpt_5_plans .rpt_plan .rpt_head .rpt_price .rpt_currency{top:-26px}.rpt_sm_price .rpt_plan .rpt_head .rpt_price .rpt_currency{font-size:30px;top:-44px;left:-4px}.rpt_xsm_price .rpt_plan .rpt_head .rpt_price .rpt_currency{font-size:25px;top:-30px;left:-4px}.rpt_xxsm_price .rpt_plan .rpt_head .rpt_price .rpt_currency{font-size:21px;top:-14px;left:-4px}.rpt_style_basic .rpt_plan .rpt_head{background:#ec86c6}.rpt_style_spec .rpt_plan .rpt_head{background:#222}.rpt_style_swl .rpt_plan .rpt_head{background:#fff}.rpt_plans .rpt_plan .rpt_head .rpt_price{padding:6px 10px;font-size:74px;line-height:100px;font-weight:300;text-align:center;color:#fff}.rpt_style_basic .rpt_plan .rpt_head .rpt_price,.rpt_style_spec .rpt_plan .rpt_head .rpt_price{text-shadow:1px 2px 7px rgba(0,0,0,.6)}.rpt_style_swl .rpt_plan .rpt_head .rpt_price{color:#000}.rpt_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price{font-size:62px}.rpt_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price{font-size:56px}.rpt_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price{font-size:38px}.rpt_4_plans .rpt_plan .rpt_head .rpt_price{font-size:69px;line-height:80px}.rpt_4_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price{font-size:53px;line-height:65px}.rpt_4_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price{font-size:47px;line-height:64px}.rpt_4_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price{font-size:31px;line-height:60px}.rpt_5_plans .rpt_plan .rpt_head .rpt_price{font-size:59px;line-height:80px}.rpt_5_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price{font-size:44px;line-height:60px}.rpt_5_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price{font-size:37px;line-height:53px}.rpt_5_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price{font-size:24px;line-height:50px}.rpt_plans .rpt_recommended_plan .rpt_head .rpt_price{font-size:98px}.rpt_4_plans .rpt_recommended_plan .rpt_head .rpt_price{font-size:74px}.rpt_5_plans .rpt_recommended_plan .rpt_head .rpt_price{font-size:67px}.rpt_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:83px}.rpt_4_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:60px}.rpt_5_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:54px}.rpt_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:55px}.rpt_4_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:49px}.rpt_5_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:41px}.rpt_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:42px}.rpt_4_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:34px}.rpt_5_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:26px}.rpt_plans .rpt_plan .rpt_head .rpt_recurrence{font-size:13px;font-weight:300;line-height:18px;padding:20px 40px 10px;color:#d3d3d3;text-align:center}.rpt_style_spec .rpt_plan .rpt_head .rpt_recurrence{color:#d3d3d3}.rpt_style_bic .rpt_plan .rpt_head .rpt_recurrence,.rpt_style_loc .rpt_plan .rpt_head .rpt_recurrence{color:#f5f5f5}.rpt_style_swl .rpt_plan .rpt_head .rpt_recurrence{color:grey}.rpt_plans .rpt_sm_recurrence .rpt_plan .rpt_head .rpt_recurrence{font-size:11px;padding:20px 40px 4px}.rpt_plans .rpt_plan .rpt_head .rpt_subtitle{font-size:16px;line-height:20px;font-weight:300;text-align:center;padding:10px 30px 20px}.rpt_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:14px}.rpt_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:12px}.rpt_4_plans .rpt_plan .rpt_head .rpt_subtitle{font-size:16px;line-height:18px;padding:10px 10px 20px}.rpt_4_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:14px;line-height:17px}.rpt_4_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:13px;line-height:16px}.rpt_5_plans .rpt_plan .rpt_head .rpt_subtitle{font-size:15px;line-height:18px;padding:10px 10px 20px}.rpt_5_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:13px;line-height:17px}.rpt_5_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:12px;line-height:16px}.rpt_plans .rpt_plan .rpt_head .rpt_description{font-size:14px;line-height:20px;padding:0 20px 30px;font-weight:300;text-align:center;color:#fff}.rpt_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description{font-size:12px}.rpt_style_bic .rpt_plan .rpt_head .rpt_description,.rpt_style_loc .rpt_plan .rpt_head .rpt_description{color:#f5f5f5}.rpt_4_plans .rpt_plan .rpt_head .rpt_description{font-size:13px;line-height:18px}.rpt_4_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description{font-size:12px;line-height:17px}.rpt_5_plans .rpt_plan .rpt_head .rpt_description{font-size:12px;line-height:18px}.rpt_5_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description{font-size:11px;line-height:17px}.rpt_plans .rpt_plan .rpt_features{padding:20px;background:#f5f5f5;text-align:center}.rpt_plans .rpt_plan .rpt_features .rpt_feature{font-size:16px;padding:6px 16px;border-bottom:1px dotted #d3d3d3}.rpt_plans .rpt_plan .rpt_features .rpt_feature:last-child{border-bottom:none}.rpt_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature{font-size:14px}.rpt_style_bic .rpt_plan .rpt_features,.rpt_style_loc .rpt_plan .rpt_features,.rpt_style_swl .rpt_plan .rpt_features{background:#fff}.rpt_style_swl .rpt_plan .rpt_features .rpt_feature{padding:5px 16px}.rpt_4_plans .rpt_plan .rpt_features .rpt_feature{padding:6px 10px;font-size:14px}.rpt_4_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature{font-size:12px}.rpt_5_plans .rpt_plan .rpt_features .rpt_feature{padding:6px 10px;font-size:13px}.rpt_5_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature{font-size:11px}.rpt_plans .rpt_plan .rpt_foot{display:block;padding:10px 30px;border-top:#f5f5f5 solid 2px;text-align:center;color:#fff;font-size:24px;text-decoration:none;font-weight:300;transition:All .5s ease;-webkit-transition:All .5s ease;-moz-transition:All .5s ease;-o-transition:All .5s ease}.rpt_plans .rpt_sm_button .rpt_plan .rpt_foot{font-size:19px}.rpt_style_basic .rpt_plan .rpt_foot{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.rpt_style_swl .rpt_plan .rpt_foot{border-top:none;padding:10px 30px 20px;color:#000;background:#333}.rpt_4_plans .rpt_plan .rpt_foot{padding:4px 20px;font-size:19px}.rpt_4_plans .rpt_sm_button .rpt_plan .rpt_foot,.rpt_5_plans .rpt_plan .rpt_foot{padding:4px 20px;font-size:17px}.rpt_5_plans .rpt_sm_button .rpt_plan .rpt_foot{font-size:16px}.rpt_plans .rpt_plan .rpt_foot:hover{opacity:.8}.rpt_style_swl .rpt_plan .rpt_foot:hover{opacity:1}.rpt_plans .rpt_recommended_plan .rpt_foot{font-size:30px;padding:16px 0}.rpt_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot{font-size:26px}.rpt_4_plans .rpt_recommended_plan .rpt_foot{font-size:22px;font-weight:300;padding:10px 0}.rpt_4_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot{font-size:19px;padding:10px 0}.rpt_5_plans .rpt_recommended_plan .rpt_foot{font-size:20px;font-weight:300;padding:10px 0}.rpt_5_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot{font-size:18px;padding:10px 0}.rpt_custom_btn{border-bottom-left-radius:5px;border-bottom-right-radius:5px;text-align:center;padding:16px 20px}.rpt_plans .rpt_recommended_plan{position:relative;top:-10px}.rpt_recommended_plan img.rpt_recommended{position:absolute!important;right:10px!important}.rpt_style_bic .rpt_recommended_plan,.rpt_style_loc .rpt_recommended_plan{-webkit-box-shadow:1px 1px 6px 0 rgba(50,50,50,.39);-moz-box-shadow:1px 1px 6px 0 rgba(50,50,50,.39);box-shadow:1px 1px 6px 0 rgba(50,50,50,.39)}a.rpt_tooltip{display:block;outline:0;position:relative}a.rpt_tooltip strong{line-height:30px}a.rpt_tooltip>span.intool{width:90%;padding:10px;margin-top:56px;opacity:0;visibility:hidden;z-index:10;position:absolute;top:-15px;display:block;color:#f5f5f5;font-size:13px;line-height:20px;background:#333;font-weight:300;text-align:center}a.rpt_tooltip:hover{cursor:zoom-in}a.rpt_tooltip .rpt_tooltip_plus{text-decoration:none!important;display:inline;font-size:12px;font-weight:700;position:relative;top:-6px}.rpt_feature:hover a.rpt_tooltip>span.intool{opacity:.98;text-decoration:none;visibility:visible;overflow:visible}a.rpt_tooltip span.intool b{width:10px;height:10px;margin-left:35%;margin-top:-15px;position:absolute;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);display:none \0/;background:#333}.rpt_3_plans a.rpt_tooltip>span.intool{margin-left:-1%}.rpt_4_plans a.rpt_tooltip>span.intool{margin-left:0}.rpt_5_plans a.rpt_tooltip>span.intool{margin-left:-2%}.entry-content .rpt_plan a,.rpt_plan a{border-bottom:none!important}.rpt_plans .rpt_plan .rpt_icon{max-width:30px;max-height:30px}.rpt_plans .rpt_plan img{display:inline;margin:0 10px 0 0;padding:0;-webkit-box-shadow:0 0 0 0 transparent;-moz-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;border:none}select.chaty-select,select.form-fonts{width:360px;max-width:100%;border:none;color:#32373c;outline:0;padding:5px 7px;line-height:26px;background-color:#fff;border-radius:5px;height:36px;-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea}select.chaty-select:disabled,textarea.test_textarea:disabled{background:#eee;border:solid 1px #ddd;color:#32373c}.icon.label-tooltip{font-size:12px;font-weight:400;color:#72777c}.icon.label-tooltip:after{width:250px;white-space:normal;line-height:16px;padding:10px}@media only screen and (max-width:640px){.rpt_plans .rpt_plan{width:96%;margin:10px 2% 20px!important}.rpt_plans .rpt_plan .rpt_title{position:relative;font-size:26px!important;line-height:35px!important}.rpt_plans .rpt_plan .rpt_head .rpt_price{font-size:74px!important;line-height:100px!important}.rpt_plans .rpt_plan .rpt_head .rpt_subtitle{font-size:17px!important;line-height:28px!important;padding:10px 40px 20px}.rpt_plans .rpt_plan .rpt_head .rpt_description{font-size:15px!important;line-height:26px!important;padding:0 40px 30px}.rpt_plans .rpt_plan .rpt_features .rpt_feature{padding:6px 16px;font-size:14px!important}.rpt_plans .rpt_plan .rpt_foot{padding:10px 40px;text-align:center;color:#fff;font-size:20px}.rpt_plans .rpt_recommended_plan .rpt_foot{font-size:30px;font-weight:300;padding:20px 0}.rpt_plan .rpt_head .rpt_price .rpt_currency{top:-36px!important;left:-10px!important;font-size:35px!important}}#rpt_pricr .rpt_plan_ori .rpt_features .rpt_feature,#rpt_pricr .rpt_plan_ori .rpt_features .rpt_feature a,#rpt_pricr .rpt_plan_ori .rpt_foot,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_description,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_price,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_price .rpt_currency,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_recurrence,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_subtitle,#rpt_pricr .rpt_plan_ori .rpt_title{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif!important;font-weight:300!important}p.udner-title strong{font-size:40px;padding-bottom:30px;display:block;color:#b97fcf}.channels-selected-list li{display:block;max-width:640px;padding:15px;background:#eff6f6;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;margin-bottom:15px}.chaty-settings a{text-decoration:none;display:inline-block;color:#fff;margin-left:15px;height:26px;background:#a785cb;text-align:center;vertical-align:middle;-webkit-border-radius:18px;-moz-border-radius:18px;border-radius:18px;font-size:10px;line-height:26px;padding:0 5px}.chaty-settings a .dashicons,.chaty-settings a .dashicons-before:before{font-size:16px;line-height:26px;display:inline-block;margin:0;text-align:center}.move-icon{display:inline-block;vertical-align:middle}.move-icon img{width:10px;margin-right:5px;margin-top:8px;cursor:move}.chaty-default-settings>*{display:inline-block;vertical-align:middle}.chaty-default-settings{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding-bottom:15px}.chaty-advance-settings{width:100%;border:solid 1px #a785cb;margin:20px 0 0 0;padding:10px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;background:#f2f2f2;display:none;min-height:70px;position:relative}.chaty-setting-col>*{display:inline-block;padding:0 0 10px 0;vertical-align:middle}.chaty-setting-col>label{width:150px}.chaty-setting-col .channels__view{margin:0;padding:0}.chaty-setting-col input[type=text],select.channel-select-input{width:300px;height:36px;line-height:36px;padding:0 10px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;font-family:Rubik,sans-serif;font-size:17px}.sp-replacer.sp-light{padding:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:none}.chaty-setting-col a.upload-chaty-icon{background:#a886cd;color:#fff;text-decoration:none;line-height:36px;padding:0 10px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;display:inline-block}.chaty-setting-col a.upload-chaty-icon span{line-height:40px}.chaty-setting-col input[type=text].chaty-color-field{width:40px}.chaty-setting-col input[type=text]:read-only{background:#fff}.chaty-pro-feature{position:absolute;left:0;width:100%;text-align:center;top:0;height:100%;vertical-align:middle;background:rgba(255,255,255,.4);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;display:none}.chaty-advance-settings:hover .chaty-pro-feature,.chaty-date-time-option:hover .chaty-pro-feature{display:inline-block;width:170px;margin:0 auto;left:0;right:0}.chaty-pro-feature a{text-decoration:none;background:#ff6624;color:#fff;padding:0 10px;line-height:36px;display:inline-block;top:50%;position:absolute;left:0;right:0;width:180px;margin:-20px auto 0;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.chaty-pro-feature a:hover{background:#a886cd}a#upload_qr_code{background:#fff;display:inline-block;height:40px;width:40px;text-align:center;line-height:40px;text-decoration:none}a#upload_qr_code span{line-height:36px}.close-btn-set,.cls-btn-settings{opacity:0;visibility:hidden;pointer-events:none}.close-btn-set.active,.cls-btn-settings.active{opacity:1;visibility:visible;pointer-events:auto}.chaty-settings.cls-btn{margin-left:164px}.section2{padding:25px 15px 30px;border-top:2px solid rgba(130,130,130,.1)}#chaty-social-close{display:none}#chaty-social-Facebook_Messenger .chaty-default-settings{padding-bottom:25px}ul#channels-selected-list{margin:0;padding:0}.channels-selected-list li.ui-chaty-state-hl{border:dashed 1px #6972da;min-height:95px}.viber-help{position:absolute;right:43px;bottom:-4px;font-size:12px;color:#665cac;text-decoration:underline;cursor:pointer}.viber-help span.help-text{position:absolute;width:210px;left:-80%;text-align:center;background:#000;padding:5px;color:#fff;font-size:12px;bottom:20px;z-index:101;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;display:none}.viber-help:hover span{display:block}a.create-rule{background:#ff6624;text-decoration:none;padding:5px 20px;color:#fff;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.chaty-settings.cls-btn span{padding-left:2px}.rpt_description.title-text{padding:25px 0 0!important;display:block!important}.chaty-page-option{padding:5px;background:#f6f3fa;margin-bottom:15px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;position:relative}.url-select{width:17%;display:inline-block;padding-right:5px}.url-content>*{vertical-align:middle}.url-option{width:20%;display:inline-block;padding-right:5px}.url-box{width:25%;display:inline-block;padding-right:0;text-align:right}.url-values{width:calc(37% - 46px);display:inline-block;padding-right:5px}.day-buttons,.url-buttons{width:36px;display:inline-block;float:right;padding:2px 0 0 0}span.chaty-url{font-size:12px;line-height:12px}.url-content .remove-chaty{background:#bd2a00;text-align:center;display:block;line-height:36px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.url-content input,.url-content select{width:100%;height:36px;line-height:36px;padding:0 10px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.page-options{position:relative;display:none}.chaty-option-box .page-options:hover .chaty-pro-feature{display:block;width:170px;margin:0 auto;left:0;right:0}.preview{position:fixed;top:190px;width:337px;height:290px;bottom:auto}.preview-section-chaty{position:static;width:352px;height:320px;display:block;vertical-align:baseline;float:right}select.multiple-options{max-width:100%}.rpt_plan.pro-active .rpt_head{padding-bottom:50px}.rpt_plan.pro-active .rpt_head .rpt_description{display:none}.updates-form-form{min-height:calc(100vh - 280px)}.popup-form-content{background:#fff;min-height:100px;width:450px;text-align:center;margin-top:50px;border:solid 1px #c1c1c1}.updates-content-buttons button{margin:10px 3px!important;float:left}.updates-content-buttons a span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear}.updates-content-buttons a:focus,.updates-content-buttons a:hover{color:#fff;background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.updates-content-buttons a:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.updates-content-buttons button.form-cancel-btn{float:right!important}.form-submit-btn{background-color:#3085d6}.updates-content-buttons a span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear}.add-update-folder-title{font-size:20px;line-height:30px;padding:20px 20px 0}.folder-form-input{padding:10px 20px}.folder-form-input input{width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;font-size:1.125em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box;height:2.625em;margin:1em auto}.updates-content-buttons{background:#c1c1c1;padding:0 20px}.notice.chaty-notice{display:block!important}.preview .h2{padding:40px 0 10px 0;text-align:center;font-weight:700}.pro-features{position:relative;display:inline-flex}.pro-item{position:relative}.pro-button{display:none;position:absolute;width:100%;top:0;left:0;height:100%;line-height:36px;text-align:center}.pro-button a{display:block;line-height:36px}.pro-features:hover .pro-item{opacity:.25;filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px);-moz-filter:blur(2px);-webkit-filter:blur(2px)}.pro-features:hover .pro-button{display:block}.sp-replacer.sp-light{padding:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:none}.sp-preview{padding:0;margin:0 5px 0 0;height:40px;width:40px;border:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.sp-preview-inner{-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.sp-dd{display:none}span.facustom-icon{display:block;width:50px;height:50px;font-size:30px;line-height:50px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}span.default-chaty-icon .facustom-icon{display:none}span.default-chaty-icon.has-fa-icon .facustom-icon{display:block}span.default-chaty-icon.has-fa-icon svg{display:none}.preview .page .chaty-widget span.facustom-icon{width:30px;height:30px;line-height:30px;font-size:20px}.preview .page .chaty-widget span.facustom-icon i{line-height:30px;font-size:18px}.preview.mobiel-view .page .chaty-widget span.facustom-icon{width:24px;height:24px;line-height:24px;font-size:12px}.preview.mobiel-view .page .chaty-widget svg{width:24px;height:24px}.preview.mobiel-view .page .chaty-widget span.facustom-icon i{line-height:24px;font-size:14px}.preview.mobiel-view .page .chaty-widget .social-item-box{height:24px;margin:0 0 4px 0}label.custom-control.custom-radio:before{display:none}.channels-selected-list li#chaty-social-Poptin{padding-bottom:30px}.chaty-popup{position:fixed;width:100%;height:100%;top:0;left:0;z-index:100001;background:rgba(0,0,0,.75)}.chaty-popup-box{padding:0;width:600px;max-width:100%;margin:auto;top:50%;position:absolute;left:0;right:0;border-radius:5px;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);text-align:center;background:#fcfcfc}.chaty-popup-header{padding:15px;font-size:20px;border-bottom:solid 1px #e6e6e6}.chaty-popup-content{background:#fff;padding:15px}.chaty-popup-content iframe{margin:30px 0}.chaty-popup-footer{padding:15px;border-top:solid 1px #e6e6e6}.chaty-popup-footer button{border:none;padding:10px 20px;border-radius:4px;background:#00c478;color:#fff}.country-option-box{position:relative}.country-option-box:hover .country-list-box{filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px);-moz-filter:blur(2px);-webkit-filter:blur(2px)}.country-option-box:hover .chaty-pro-feature{display:block}.custom-css{-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;padding:10px;height:70px;border:solid 1px #f6f6f6;width:360px;max-width:100%}.close-chaty-popup span{line-height:20px}.close-chaty-popup{margin:0;padding:0;background:0 0;border:none;float:right;background:#000;border-radius:50%;color:#fff;text-align:center;width:24px;height:24px}.css-option-box{width:350px;max-width:100%}.chaty-channel .advanced-settings{display:none}.chaty-channel[data-channel=Custom_Link] .advanced-settings.Custom_Link-settings,.chaty-channel[data-channel=Email] .advanced-settings.Email-settings,.chaty-channel[data-channel=Link] .advanced-settings.Link-settings,.chaty-channel[data-channel=Linkedin] .advanced-settings.Linkedin-settings,.chaty-channel[data-channel=WeChat] .advanced-settings.WeChat-settings,.chaty-channel[data-channel=Whatsapp] .advanced-settings.Whatsapp-settings{display:block}.preview .page .chaty-widget.horizontal.chaty-widget-icons-left #iconWidget,.preview .page .chaty-widget.horizontal.chaty-widget-icons-left .chaty-close-icon{float:left}.preview .page .chaty-widget.horizontal.chaty-widget-icons-left .chaty-channels{float:right}.chaty-widget.horizontal.chaty-widget-icons-left .social-item-box{margin:0 0 0 5px;vertical-align:bottom}.chaty-widget.horizontal span.social-tooltip{right:auto;left:auto;transform:translate(calc(-50% + 15px),-150%);top:0;margin:0 auto}.chaty-widget.horizontal span.social-tooltip:after{top:100%;left:0;right:0;margin:0 auto;transform:rotate(-90deg);width:10px;height:10px}.chaty-widget.horizontal.chaty-widget-icons-left span.social-tooltip:after{transform:rotate(90deg)}.ui-sortable-handle{touch-action:inherit!important}.chaty-widget.horizontal .social-item-box{display:inline-block;margin:0 5px 0 0;vertical-align:bottom}.chaty-widget.active.horizontal .chaty-channels,.chaty-widget.hover.horizontal:hover .chaty-channels{display:inline-block}.preview .page .chaty-widget.active:not(.has-single) i#iconWidget,.preview .page .chaty-widget.hover:hover:not(.has-single) i#iconWidget{display:none!important}.preview .page .chaty-widget.horizontal.active:not(.has-single):not(.hide-arrow) i.chaty-close-icon,.preview .page .chaty-widget.horizontal.hover:hover:not(.has-single):not(.hide-arrow) i.chaty-close-icon{display:inline-block!important;vertical-align:bottom}.ui-sortable-handle{touch-action:inherit!important}.form-horizontal__item.o-channel{display:none}.form-horizontal__item.o-channel.active{display:flex}.font-section{margin-top:30px}.font-section.active{margin:0}.form-horizontal__item .cht-input{max-width:100%;width:350px}body .form-horizontal__item .cht-input:disabled{background:#eee;border:solid 1px #ddd;color:#32373c;font-size:14px}.form-horizontal__item .sp-replacer.sp-light.sp-disabled .sp-preview-inner{background:#eee!important;border:solid 1px #ddd}.form-horizontal__item .sp-replacer.sp-light{-webkit-box-shadow:0 0 15px 0 #eaeaea;-moz-box-shadow:0 0 15px 0 #eaeaea;box-shadow:0 0 15px 0 #eaeaea}.switch input[type=checkbox]:disabled+.switch__styled{background:#e2e2e2!important}.form-horizontal__item .sp-replacer.sp-light .sp-preview{margin:0}.main .form-horizontal__item.pending-message-items{display:none}.main .form-horizontal__item.pending-message-items.active{display:flex}.disable-message.label-tooltip.icon{font-size:17px}.cta-action-radio .disable-message{display:inline-block;margin-left:10px}.custom-control.custom-radio .custom-control-input:checked:disabled~.custom-control-label:before{background:#e2e2e2!important}span.pop-number{position:absolute;top:-6px;right:-6px;font-size:10px;border-radius:50%;line-height:12px;padding:2px;min-width:16px;min-height:16px;text-align:center}.preview .page .chaty-widget .icon i#iconWidget{position:relative;overflow:inherit}@media (min-width:1281px){.btn-help,.remove-chaty-widget-sticky{transform:rotate(90deg);position:fixed;left:calc(50vw - 480px + 1050px / 12 * 7 + 372px);top:306px;right:auto}}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:1070px;width:100%}.modal__wrap{padding:0}.domain{margin:0 0 10px;padding:20px 60px 26px}}@media (min-width:768px){.widget-icon__block [class^=icon-]{width:54px;height:54px;font-size:28px;line-height:54px}.widget-icon__block [class^=icon-] svg{width:100%}.widget-icon__block .custom-control.custom-radio:first-child{padding-left:20px;max-width:90px}.widget-icon__block .custom-control.custom-radio:last-child{padding-right:20px}}@media (max-width:767px){.main .form-horizontal__item>.widget-icon__wrap{display:flex;justify-content:space-between}.main .form-horizontal__item>.widget-icon__wrap .custom-control{margin:0;flex:1;text-align:center}}@media (min-width:768px){.kv-file-content{width:54px;height:54px}.file-input{width:54px;height:60px}}@media screen and (max-width:1280px){.preview{top:180px}.chaty-sticky-buttons{position:fixed;right:0;top:239px;z-index:601}.preview-section-chaty{display:none;z-index:1001;position:fixed;left:0;right:0;margin:0 auto}.preview-section-chaty.active,.preview-section-overlay.active{display:block}.preview-section-overlay{position:fixed;background:rgba(0,0,0,.6);top:0;left:0;width:100%;height:100vh;z-index:999;display:none;float:none;width:100%}.preview-help-btn{display:block;top:177px;background:#a785cb;padding:0;line-height:42px;height:42px;width:110px}a.remove-chaty-widget-sticky{top:302px!important}.preview-help-btn:focus,.preview-help-btn:hover{color:#fff}.preview{position:relative;top:0!important;margin:0 auto!important;left:0;right:0;float:none}.preview.mobiel-view .page{width:202px;height:300px}.btn-save-sticky{top:20px!important}.btn-help{top:60px!important}}@media screen and (max-width:1180px){.section.one{max-width:inherit}.main .channels-icons{max-width:600px;text-align:center;margin:0}.main .channels-icons>.icon{display:inline-block;vertical-align:middle;text-align:center;float:none;margin:0;padding:2px 4px 0;width:58px;height:58px}.container{max-width:1180px;padding:0 20px 0 10px}.chaty-settings.cls-btn{margin-left:137px}.chaty-settings.cls-btn span{padding-left:0}}@media screen and (max-width:960px){.chaty-default-settings>*{display:inline-block;vertical-align:middle}.chaty-default-settings .move-icon{width:15px}.channels-selected__item .icon span.custom-chaty-image,.channels-selected__item .icon span.custom-chaty-image img{width:40px;height:40px}.chaty-default-settings .icon{width:40px}.chaty-default-settings .channels__device-box{width:135px}.chaty-default-settings .channels__device-box .channels__view{margin:0}.chaty-settings{width:92px;text-align:center}.chaty-default-settings .icon.icon-md svg,.main .channels-selected__item .icon{width:40px;height:40px;cursor:move}.chaty-default-settings{display:block;width:100%;padding-bottom:0}.chaty-default-settings .channels__input-box input{width:100%}.chaty-default-settings .channels__input-box{width:calc(100% - 310px)}.viber-help{top:50px;bottom:auto}.day-buttons{width:calc(100% - 71% - 102px)}.url-values{width:calc(37% - 52px)}body{background:#af7dd0 url(../images/bg.svg) no-repeat}.modal-dialog.modal-lg{display:none}}@media screen and (max-width:830px){.chaty-features ul li{width:100%;text-align:center}.demo-buttons{text-align:center}.chaty-feature,.chaty-feature.analytics,.chaty-feature.second{min-height:inherit}}@media screen and (max-width:680px){.chaty-default-settings>*{display:inline-block;vertical-align:top}.section-title{font-size:20px;margin:0 0 15px 0}.chaty-default-settings .channels__input-box{width:calc(100% - 80px)}.viber-help{position:relative;top:auto;left:auto;right:auto;padding:5px 0 0 0;width:100%}.chaty-default-settings .channels__device-box{width:calc(100% - 105px);text-align:left;padding:10px 0 0 0}.chaty-settings{padding:10px 0 0 0}.help-section{display:block;width:100%;text-align:left}.chaty-setting-col input[type=text],select.channel-select-input{width:100%}.chaty-default-settings .channels__device-box .channels__view{margin:0 15px 0 0}.chaty-setting-col>*{display:block}.main .form-horizontal__item-label{display:block;width:100%;flex:auto;text-align:left;padding:0 0 5px 0}button.chaty-input-button,select.chaty-select,select.form-fonts{width:100%}.country-option-box{width:100%}.form-horizontal__item>div{display:block;width:100%}.day-select{width:100%;padding-bottom:10px}.chaty-date-time-option .day-time{width:calc(50% - 78px);padding-bottom:0}.chaty-date-time-option .day-buttons{width:36px;padding-bottom:0}.chaty-date-time-option .time-data{display:none}.chaty-date-time-option.first .time-data{display:inline-block}.chaty-date-time-option.first .day-time{width:calc(50% - 58px);padding-bottom:10px}.chaty-date-time-option.first .day-buttons{width:calc(50% - 7px);vertical-align:top}.url-content>*{float:left}.url-box,.url-option,.url-select{width:50%;word-break:break-all;padding:0 2px}.url-values{width:calc(50% - 36px)}.url-box,.url-buttons,.url-values{padding-top:5px}.url-values{padding-left:2px}.url-buttons{padding-right:2px}.chaty-cls-setting .chaty-default-settings .channels__input-box{width:calc(100% - 114px)}.chaty-cls-setting .chaty-settings.cls-btn{margin-left:0;padding:0}.chaty-cls-setting .input-example{display:none}.chaty-cls-setting .input-example.active{display:block;position:relative;top:4px}.css-option-box,.custom-css{width:100%}.main .channels-selected__item .input-example{left:0;top:40px;position:static;width:100%;text-align:left;margin-top:10px}.viber-help span.help-text{left:-40px}.form-horizontal__item span.header-tooltip-text{width:210px;left:-10px}.form-horizontal__item span.header-tooltip-text:before{left:20px;right:auto}.main #positionPro{margin-left:0}}@media screen and (max-width:600px){.url-content>*{width:100%;padding:0 0 5px 0;text-align:left}.url-content>.url-buttons{padding:0}a.remove-chaty-widget-sticky{top:290px}.pro-features{position:relative;display:block}.chaty-setting-col .pro-features.upload-image{display:inline-block}.btn-red,.btn-white{font-size:14px;margin:2px 0;float:right}.update-nag{display:none!important}.chaty-new-widget-row{display:block}.chaty-new-widget-left{width:100%;float:none}.chaty-new-widget-right{width:100%;float:none;padding:20px 0 0 0}.chaty-new-widget-left img{max-width:100%}.chaty-new-widget-wrap{margin:40px 10px 0 0}.btn-save-sticky{top:70px}.btn-help{top:113px;height:32px;line-height:34px;padding:0;display:inline-block;vertical-align:middle;width:100px}.btn-help span{width:18px;height:18px;line-height:18px;font-size:11px}.preview-help-btn{top:172px!important;line-height:32px;height:32px;width:110px}a.remove-chaty-widget-sticky{padding:0;height:32px;line-height:32px;top:292px!important}.ml-auto{display:none}.mobile-message{display:block}.mobile-button{display:block;margin:10px 0 0 0;float:right}.icon:not(.active):hover:after,.icon:not(.active):hover:before{opacity:0;pointer-events:auto}.icon:not(.active):hover .color-element,.main .channels-icons>.icon:not(.active):hover .color-element{fill:#bdbdbd}.icon:not(.active) .color-element,.main .channels-icons>.icon:not(.active) .color-element{fill:#bdbdbd}.container{padding-left:6px}.btn-save-sticky{font-size:10px;width:32px;height:65px;padding:10px 0 7px;text-align:center}.btn-save-sticky svg{width:25px;margin:0 auto}.btn-save-sticky span{font-size:10px;line-height:10px;height:10px}}@media screen and (max-width:480px){.btn-red,.btn-white{font-size:12px;width:180px;text-align:center}.btn-red svg{width:12px;vertical-align:middle}span.expired-message{color:#a00000;font-size:13px;display:block;padding:0 0 10px 0}a.renew-button{float:right}p.plan_date{font-size:14px}}@media screen and (max-width:400px){.btn-red,.btn-white{font-size:10px;width:160px;text-align:center;padding:5px 0}.chaty-help-btn{right:20px;bottom:5px}}
|
admin/assets/images/agency-price.png
DELETED
Binary file
|
admin/assets/images/basic-price-bg.png
DELETED
Binary file
|
admin/assets/images/client-image.png
DELETED
Binary file
|
admin/assets/images/plus-price.png
DELETED
Binary file
|
admin/assets/images/whatsapp-popup.gif
DELETED
Binary file
|
admin/assets/js/cht-scripts.js
CHANGED
@@ -12,320 +12,140 @@
|
|
12 |
/* jslint browser: true */
|
13 |
/* global jQuery */
|
14 |
|
15 |
-
jQuery(
|
16 |
-
'use strict';
|
17 |
var chatyError;
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
if($("#cht-form .js-chanel-desktop").length == 0 || $("#cht-form .js-chanel-mobile").length == 0) {
|
28 |
-
$("#no-device-popup").show();
|
29 |
-
return false;
|
30 |
-
} else if($("#cht-form .js-chanel-desktop:checked").length == 0 && $("#cht-form .js-chanel-mobile:checked").length == 0) {
|
31 |
-
$("#device-popup").show();
|
32 |
-
return false;
|
33 |
-
} else {
|
34 |
-
var inputError = 0;
|
35 |
-
$("#channels-selected-list > li:not(#chaty-social-close)").find(".channels__input").each(function(){
|
36 |
-
if(jQuery.trim($(this).val()) == "") {
|
37 |
-
inputError++;
|
38 |
-
}
|
39 |
-
});
|
40 |
-
if(inputError == $("#channels-selected-list > li:not(#chaty-social-close)").find(".channels__input").length) {
|
41 |
-
if(!$("#chaty-social-Contact_Us").length) {
|
42 |
-
$("#no-device-value").show();
|
43 |
return false;
|
44 |
}
|
45 |
}
|
46 |
}
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
$("#trigger-popup").show();
|
54 |
-
return false;
|
55 |
-
}
|
56 |
-
return checkForStatus();
|
57 |
-
}
|
58 |
-
|
59 |
-
function checkForStatus() {
|
60 |
-
$(".chaty-popup").hide();
|
61 |
-
if(!$(".cht_active").is(":checked")) {
|
62 |
-
$("#status-popup").show();
|
63 |
-
return false;
|
64 |
-
}
|
65 |
-
forceSubmit = true;
|
66 |
-
$("#cht-form").trigger("submit");
|
67 |
-
return true;
|
68 |
-
}
|
69 |
-
function checkPreSettings() {
|
70 |
-
if(!whatsappStatus) {
|
71 |
-
whatsappStatus = true;
|
72 |
-
var phoneNumberReg = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/;
|
73 |
-
if ($("#cht-form #Whatsapp").length && $("#cht-form #Whatsapp").val() != "") {
|
74 |
-
var InputVal = jQuery.trim($("#cht-form #Whatsapp").val());
|
75 |
-
chatyError = check_for_number_chaty(InputVal, "Whatsapp");
|
76 |
-
if(chatyError) {
|
77 |
-
$("#custom-message-popup .chaty-popup-header").text("Whatsapp number is not valid");
|
78 |
-
$("#custom-message-popup .chaty-popup-body").text("Seems like the WhatsApp number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?");
|
79 |
-
$("#custom-message-popup").show();
|
80 |
return false;
|
81 |
}
|
82 |
}
|
83 |
-
}
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
}
|
94 |
}
|
95 |
-
}
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
if (!faceBookReg.test(InputVal) && !faceBookMeReg.test(InputVal)) {
|
103 |
-
$("#custom-message-popup .chaty-popup-header").text("Facebook page's URL is not valid");
|
104 |
-
$("#custom-message-popup .chaty-popup-body").text("Please make sure your Facebook page's URL looks like, <br/>https://m.me/YOURPAGE");
|
105 |
-
$("#custom-message-popup").show();
|
106 |
return false;
|
107 |
}
|
108 |
}
|
109 |
-
}
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
if(
|
115 |
-
|
116 |
-
$("#custom-message-popup .chaty-popup-body").text("Seems like the SMS number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?");
|
117 |
-
$("#custom-message-popup").show();
|
118 |
return false;
|
119 |
}
|
120 |
}
|
121 |
-
}
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
$("#custom-message-popup .chaty-popup-body").text("Seems like the Viber number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?");
|
129 |
-
$("#custom-message-popup").show();
|
130 |
-
return false;
|
131 |
}
|
132 |
-
}
|
133 |
-
}
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
return false;
|
144 |
}
|
145 |
}
|
146 |
-
}
|
147 |
-
}
|
148 |
}
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
jQuery(document).on("click", "#remove-traffic-rules", function(e){
|
158 |
-
jQuery(".traffic-options-box").removeClass("active");
|
159 |
-
jQuery("#chaty_traffic_source").val("no");
|
160 |
-
});
|
161 |
-
jQuery(document).on("click", ".remove-traffic-option", function(e){
|
162 |
-
jQuery(this).closest(".custom-traffic-rule").remove();
|
163 |
-
});
|
164 |
-
|
165 |
-
$(document).on("click", ".chaty-switch-toggle", function(){
|
166 |
-
setTimeout(function(){
|
167 |
-
$(".chaty-field-setting").each(function(){
|
168 |
-
if($(this).is(":checked")) {
|
169 |
-
$(this).closest(".field-setting-col").find(".field-settings").addClass("active");
|
170 |
-
} else {
|
171 |
-
$(this).closest(".field-setting-col").find(".field-settings").removeClass("active");
|
172 |
-
}
|
173 |
-
});
|
174 |
-
},100);
|
175 |
-
});
|
176 |
-
|
177 |
-
$(document).on("change", ".chaty-close_form_after-setting", function(){
|
178 |
-
setTimeout(function(){
|
179 |
-
$(".chaty-close_form_after-setting").each(function(){
|
180 |
-
if($(this).is(":checked")) {
|
181 |
-
$(this).closest(".form-field-setting-col").find(".close_form_after-settings").addClass("active");
|
182 |
-
} else {
|
183 |
-
$(this).closest(".form-field-setting-col").find(".close_form_after-settings").removeClass("active");
|
184 |
-
}
|
185 |
-
});
|
186 |
-
},100);
|
187 |
-
});
|
188 |
-
|
189 |
-
$(document).on("change", ".chaty-redirect-setting", function(){
|
190 |
-
setTimeout(function(){
|
191 |
-
$(".chaty-redirect-setting").each(function(){
|
192 |
-
if($(this).is(":checked")) {
|
193 |
-
$(this).closest(".form-field-setting-col").find(".redirect_action-settings").addClass("active");
|
194 |
-
} else {
|
195 |
-
$(this).closest(".form-field-setting-col").find(".redirect_action-settings").removeClass("active");
|
196 |
-
}
|
197 |
-
});
|
198 |
-
},100);
|
199 |
-
});
|
200 |
-
|
201 |
-
$(document).on("click", ".email-setting", function(){
|
202 |
-
setTimeout(function(){
|
203 |
-
$(".email-setting-field").each(function(){
|
204 |
-
if($(this).is(":checked")) {
|
205 |
-
$(this).closest(".form-field-setting-col").find(".email-settings").addClass("active");
|
206 |
-
} else {
|
207 |
-
$(this).closest(".form-field-setting-col").find(".email-settings").removeClass("active");
|
208 |
}
|
209 |
});
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
setTimeout(function(){
|
214 |
-
$(".embedded_window-checkbox").each(function(){
|
215 |
-
if($(this).is(":checked")) {
|
216 |
-
$(this).closest("li.chaty-channel").find(".whatsapp-welcome-message").addClass("active");
|
217 |
} else {
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
phoneStatus = false;
|
227 |
-
fbStatus = false;
|
228 |
-
smsStatus = false;
|
229 |
-
viberStatus = false;
|
230 |
-
phoneNumberStatus = false;
|
231 |
-
});
|
232 |
-
$("#cht-form").on("submit", function () {
|
233 |
-
if(forceSubmit) {
|
234 |
-
return true;
|
235 |
-
}
|
236 |
-
set_social_channel_order();
|
237 |
-
var errorCount = 0;
|
238 |
-
if ($("#chaty-page-options .cht-required").length) {
|
239 |
-
$("#chaty-page-options .cht-required").each(function () {
|
240 |
-
if (jQuery.trim($(this).val()) == "") {
|
241 |
-
$(this).addClass("cht-input-error");
|
242 |
-
errorCount++;
|
243 |
-
}
|
244 |
-
});
|
245 |
-
}
|
246 |
-
if ($(".chaty-data-and-time-rules .cht-required").length) {
|
247 |
-
$(".chaty-data-and-time-rules .cht-required").each(function () {
|
248 |
-
if (jQuery.trim($(this).val()) == "") {
|
249 |
-
$(this).addClass("cht-input-error");
|
250 |
-
errorCount++;
|
251 |
}
|
252 |
-
}
|
253 |
-
}
|
254 |
-
if(errorCount == 0) {
|
255 |
-
return checkPreSettings();
|
256 |
-
} else {
|
257 |
-
$(".cht-input-error:first").focus();
|
258 |
-
return false;
|
259 |
-
}
|
260 |
-
});
|
261 |
-
$(".close-chaty-popup-btn").on("click", function(e){
|
262 |
-
e.stopPropagation();
|
263 |
-
$(".chaty-popup").hide();
|
264 |
-
if($(this).hasClass("channel-setting-btn")) {
|
265 |
-
$("body, html").animate({
|
266 |
-
scrollTop: $("#channel-list").offset().top - 125
|
267 |
-
}, 250);
|
268 |
-
} else if($(this).hasClass("select-trigger-btn")) {
|
269 |
-
$("body, html").animate({
|
270 |
-
scrollTop: $("#trigger-setting").offset().top - 50
|
271 |
-
}, 250);
|
272 |
-
} else if($(this).hasClass("change-status-btn")) {
|
273 |
-
$("body, html").animate({
|
274 |
-
scrollTop: $("#launch-section").offset().top - 100
|
275 |
-
}, 250);
|
276 |
-
}
|
277 |
-
});
|
278 |
-
$(".chaty-popup-inner").on("click", function(e){
|
279 |
-
e.stopPropagation();
|
280 |
-
});
|
281 |
-
$(".chaty-popup-outer").on("click", function(e){
|
282 |
-
$(".chaty-popup").hide();
|
283 |
-
});
|
284 |
-
$(".check-for-numbers").on("click", function(){
|
285 |
-
checkPreSettings();
|
286 |
-
});
|
287 |
-
$(".check-for-device").on("click", function(){
|
288 |
-
checkForDevices();
|
289 |
-
});
|
290 |
-
$(".check-for-triggers").on("click", function(){
|
291 |
-
checkForTriggers();
|
292 |
-
});
|
293 |
-
$(".check-for-status").on("click", function(){
|
294 |
-
checkForStatus();
|
295 |
-
});
|
296 |
-
$(".change-status-and-save").on("click", function(){
|
297 |
-
$(".cht_active").prop("checked", true);
|
298 |
-
forceSubmit = true;
|
299 |
-
$(".chaty-popup").hide();
|
300 |
-
$("#cht-form").trigger("submit");
|
301 |
-
});
|
302 |
-
$(".status-and-save").on("click", function(){
|
303 |
-
$(".cht_active").prop("checked", false);
|
304 |
-
forceSubmit = true;
|
305 |
-
$(".chaty-popup").hide();
|
306 |
-
$("#cht-form").trigger("submit");
|
307 |
-
});
|
308 |
-
$(document).on("click", ".preview-section-chaty", function(e){
|
309 |
-
e.stopPropagation();
|
310 |
-
});
|
311 |
-
$(document).on("click", ".preview-section-overlay", function(){
|
312 |
-
$(".preview-help-btn").removeClass("active");
|
313 |
-
$(".preview-section-chaty").removeClass("active");
|
314 |
-
$(".preview-section-overlay").removeClass("active");
|
315 |
-
});
|
316 |
-
$(document).on("click", ".preview-help-btn", function(e){
|
317 |
-
e.preventDefault();
|
318 |
-
if($(this).hasClass("active")) {
|
319 |
-
$(this).removeClass("active");
|
320 |
-
$(".preview-section-chaty").removeClass("active");
|
321 |
-
$(".preview-section-overlay").removeClass("active");
|
322 |
-
} else {
|
323 |
-
$(this).addClass("active");
|
324 |
-
$(".preview-section-chaty").addClass("active");
|
325 |
-
$(".preview-section-overlay").addClass("active");
|
326 |
}
|
327 |
-
|
328 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
});
|
330 |
});
|
331 |
|
@@ -346,18 +166,196 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
346 |
return false;
|
347 |
}
|
348 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
(function ($) {
|
350 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
351 |
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
356 |
}
|
357 |
-
});
|
358 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
jQuery(document).ready(function () {
|
360 |
-
jQuery('body input, body .icon, body textarea, body .btn-cancel:not(.close-btn-set) ').
|
361 |
window.onbeforeunload = function (e) {
|
362 |
e = e || window.event;
|
363 |
e.preventDefault = true;
|
@@ -403,12 +401,16 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
403 |
})
|
404 |
});
|
405 |
|
|
|
|
|
|
|
|
|
406 |
jQuery(document).on("click", "#chaty_icons_view", function(e){
|
407 |
jQuery(".page-body .chaty-widget").removeClass("vertical").removeClass("horizontal");
|
408 |
jQuery(".page-body .chaty-widget").addClass(jQuery(this).val());
|
409 |
});
|
410 |
|
411 |
-
jQuery('.upg').
|
412 |
jQuery('.valid_domain_input').val(jQuery('.valid_domain_input').val().replace(' ', ''));
|
413 |
if (!/^(http(s)?:\/\/)?(www\.)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(jQuery('.valid_domain_input').val())) {
|
414 |
event.preventDefault();
|
@@ -417,7 +419,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
417 |
});
|
418 |
}
|
419 |
});
|
420 |
-
jQuery('.del_token').
|
421 |
$.ajax({
|
422 |
type: 'POST',
|
423 |
url: ajaxurl,
|
@@ -440,8 +442,23 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
440 |
}
|
441 |
});
|
442 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
var count_click = 1000000003;
|
444 |
-
jQuery('.show_up').
|
445 |
count_click += 10;
|
446 |
jQuery('#upgrade-modal').css({
|
447 |
'z-index': count_click,
|
@@ -454,11 +471,11 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
454 |
jQuery('.color-picker-btn, .color-picker-btn-close, .color-picker-custom button').on('click', function (e) {
|
455 |
e.preventDefault();
|
456 |
|
457 |
-
jQuery('.color-picker
|
458 |
jQuery('.color-picker-btn').toggle();
|
459 |
});
|
460 |
|
461 |
-
jQuery('.color-picker-radio input').
|
462 |
var $this = jQuery(this);
|
463 |
jQuery('.color-picker-custom input[name="cht_custom_color"]').val('');
|
464 |
jQuery('.color-picker-custom .circle').html('?').css({
|
@@ -485,7 +502,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
485 |
jQuery('#chaty-social-close ellipse').attr("fill", color);
|
486 |
});
|
487 |
|
488 |
-
jQuery('.color-picker-custom input').
|
489 |
jQuery('.color-picker-radio input').prop('checked', false);
|
490 |
|
491 |
var $this = jQuery(this);
|
@@ -505,7 +522,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
505 |
}());
|
506 |
|
507 |
(function customSelect() {
|
508 |
-
jQuery('[name="cht_position"]').
|
509 |
if (jQuery('#positionCustom').prop('checked')) {
|
510 |
jQuery('#positionPro').show();
|
511 |
} else {
|
@@ -549,7 +566,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
549 |
}
|
550 |
});
|
551 |
});
|
552 |
-
jQuery('textarea[name=cht_cta]').
|
553 |
jQuery('.tooltiptext span').html(jQuery(this).val());
|
554 |
if (jQuery(this).val().length == 0) {
|
555 |
jQuery('.cta').hide(200);
|
@@ -566,7 +583,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
566 |
jQuery(document).ready(function () {
|
567 |
(function preview() {
|
568 |
(function previewColor() {
|
569 |
-
jQuery('.color-picker-radio input').
|
570 |
var $this = jQuery(this);
|
571 |
|
572 |
if ($this.prop('checked')) {
|
@@ -577,7 +594,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
577 |
detectIcon();
|
578 |
});
|
579 |
|
580 |
-
jQuery('.color-picker-custom input').
|
581 |
var $this = jQuery(this);
|
582 |
|
583 |
var color = $this.val();
|
@@ -590,7 +607,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
590 |
detectIcon();
|
591 |
});
|
592 |
|
593 |
-
jQuery('#cht_close_button, #trigger_on_time, #chaty_trigger_on_scroll').
|
594 |
detectIcon();
|
595 |
});
|
596 |
}());
|
@@ -609,7 +626,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
609 |
|
610 |
tooltipToggle();
|
611 |
|
612 |
-
$widgetTooltip.
|
613 |
tooltipToggle();
|
614 |
});
|
615 |
}());
|
@@ -639,13 +656,13 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
639 |
positionSide = customSpace;
|
640 |
}
|
641 |
|
642 |
-
$inputPosBot.
|
643 |
positionBottom = jQuery('#positionBottom').val() + 'px';
|
644 |
|
645 |
$chatyWidget.css({bottom: positionBottom});
|
646 |
});
|
647 |
|
648 |
-
$inputPosSide.
|
649 |
var valueCustom = jQuery('[name="positionSide"]:checked').val();
|
650 |
positionSide = jQuery(this).val() + 'px';
|
651 |
|
@@ -660,7 +677,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
660 |
}
|
661 |
});
|
662 |
|
663 |
-
jQuery('[name="positionSide"]').
|
664 |
var valueCustom = jQuery('[name="positionSide"]:checked').val();
|
665 |
|
666 |
if (valueCustom === 'right') {
|
@@ -679,7 +696,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
679 |
previewPosition();
|
680 |
|
681 |
|
682 |
-
jQuery('input[name="cht_position"]').
|
683 |
var valueCustom = jQuery('[name="cht_position"]:checked').val();
|
684 |
|
685 |
if (valueCustom === 'right') {
|
@@ -702,7 +719,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
702 |
var socialInputsContainer = jQuery('.social-inputs');
|
703 |
|
704 |
var click = 0;
|
705 |
-
jQuery('input[name=cht_custom_color]').
|
706 |
var color = jQuery(this).val();
|
707 |
jQuery('.circle').html('');
|
708 |
if(color != "") {
|
@@ -776,12 +793,8 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
776 |
} */
|
777 |
|
778 |
if (!jQuery('section').is('#pro') && jQuery('.channels-icons > .icon.active').length >= 2) {
|
|
|
779 |
socialIcon.removeClass('disabled');
|
780 |
-
jQuery('.popover').show();
|
781 |
-
jQuery('.popover .upgrade-link').addClass("active");
|
782 |
-
setTimeout(function(){
|
783 |
-
jQuery('.popover .upgrade-link').removeClass("active");
|
784 |
-
}, 1000);
|
785 |
return;
|
786 |
}
|
787 |
|
@@ -812,22 +825,14 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
812 |
success: function (data) {
|
813 |
var item = jQuery(data);
|
814 |
var itemName = item.find('.icon').data('title');
|
815 |
-
var itemChannel = item.data('channel');
|
816 |
|
817 |
if (!jQuery('.channels-selected div[data-social="' + itemName + '"]').length) {
|
818 |
jQuery('#chaty-social-close').before(item);
|
819 |
-
if(jQuery("#chaty-social-"+social+" .chaty-whatsapp-setting-textarea").length) {
|
820 |
-
editorId = jQuery("#chaty-social-"+social+" .chaty-whatsapp-setting-textarea").attr("id");
|
821 |
-
tinymce.execCommand( 'mceAddEditor', true, editorId);
|
822 |
-
}
|
823 |
}
|
824 |
|
825 |
socialIcon.removeClass('disabled');
|
826 |
-
$("#iconWidget").show();
|
827 |
detectIcon();
|
828 |
two_soc();
|
829 |
-
set_social_channel_order();
|
830 |
-
check_for_chaty_close_button();
|
831 |
|
832 |
jQuery('.chaty-color-field').spectrum({
|
833 |
chooseText: "Submit",
|
@@ -840,7 +845,6 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
840 |
}
|
841 |
});
|
842 |
check_for_chaty_close_button();
|
843 |
-
|
844 |
},
|
845 |
error: function (xhr, status, error) {
|
846 |
|
@@ -937,7 +941,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
937 |
}
|
938 |
}
|
939 |
|
940 |
-
jQuery('.btn-help').
|
941 |
window.open(
|
942 |
'https://premio.io/help/chaty/',
|
943 |
'_blank' // <- This is what makes it open in a new window.
|
@@ -953,7 +957,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
953 |
var chatyCta = jQuery('[name=cht_cta]');
|
954 |
var toolTip = jQuery('.preview .tooltip-show');
|
955 |
|
956 |
-
chatyCta.
|
957 |
var $icon = jQuery('.preview .page .icon');
|
958 |
if (chatyCta.val().length >= 1) {
|
959 |
$icon.removeClass('no-tooltip');
|
@@ -1032,7 +1036,6 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
1032 |
var desktop,
|
1033 |
mobile,
|
1034 |
colorSelf = false;
|
1035 |
-
jQuery(".single-channel-setting").addClass("active");
|
1036 |
jQuery("#iconWidget").removeClass("img-p-active");
|
1037 |
|
1038 |
if (getPreviewDesktop()) {
|
@@ -1089,28 +1092,6 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
1089 |
$("#iconWidget .pop-number").css("background", jQuery("#cht_number_bg_color").val());
|
1090 |
}
|
1091 |
}
|
1092 |
-
|
1093 |
-
var eClass = ".js-chanel-mobile";
|
1094 |
-
if (getPreviewDesktop()) {
|
1095 |
-
var eClass = ".js-chanel-desktop";
|
1096 |
-
}
|
1097 |
-
|
1098 |
-
if(jQuery("#chaty_default_state").val() == "open" && jQuery(eClass+':checked').length > 1) {
|
1099 |
-
$("#iconWidget .pop-number").remove();
|
1100 |
-
}
|
1101 |
-
|
1102 |
-
$("#cta-box span").css("color", $("#cht_cta_text_color").val());
|
1103 |
-
$("#cta-box span").css("background", $("#cht_cta_bg_color").val());
|
1104 |
-
$("#custom-css").html("<style>.preview .page .chaty-widget .icon:before {border-color: transparent "+$('#cht_cta_bg_color').val()+" transparent transparent } .preview .page .chaty-widget[style*='left: auto;'] .icon:before {border-color: transparent transparent transparent "+$('#cht_cta_bg_color').val()+"}</style>");
|
1105 |
-
|
1106 |
-
jQuery(".single-channel-setting").addClass("active");
|
1107 |
-
if (jQuery("#channel-list .icon.active").length === 1) {
|
1108 |
-
jQuery(".single-channel-setting").removeClass("active");
|
1109 |
-
|
1110 |
-
if(jQuery("#chaty_default_state").val() == "open") {
|
1111 |
-
jQuery(".hide-show-button").removeClass("active");
|
1112 |
-
}
|
1113 |
-
}
|
1114 |
}
|
1115 |
|
1116 |
function stickyelement_iconformat(icon) {
|
@@ -1147,10 +1128,7 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
1147 |
|
1148 |
jQuery(".chaty-widget").removeClass("active").removeClass("hover").removeClass("click").removeClass("hide_arrow");
|
1149 |
if(thisVal == "open") {
|
1150 |
-
jQuery(".chaty-widget").addClass("active").addClass("click");
|
1151 |
-
if(thisVal == "open" && jQuery(eClass+':checked').length > 1) {
|
1152 |
-
jQuery(".chaty-widget").addClass("hide_arrow");
|
1153 |
-
}
|
1154 |
} else if(thisVal == "hover") {
|
1155 |
jQuery(".chaty-widget").addClass("hover");
|
1156 |
} else {
|
@@ -1189,7 +1167,6 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
1189 |
jQuery(".disable-message").removeClass("label-tooltip").removeClass("icon");
|
1190 |
jQuery(".cta-action-radio input").attr("disabled", false);
|
1191 |
}
|
1192 |
-
jQuery(".page-body .chaty-widget").removeClass("vertical").removeClass("horizontal");
|
1193 |
|
1194 |
if (jQuery(eClass+':checked').length > 1) {
|
1195 |
jQuery(eClass+':checked').each(function(){
|
@@ -1217,8 +1194,6 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
1217 |
jQuery(".chaty-widget").addClass("hide-arrow");
|
1218 |
}
|
1219 |
jQuery(".chaty-widget").removeClass("has-single");
|
1220 |
-
jQuery(".page-body .chaty-widget").addClass(jQuery("#chaty_icons_view").val());
|
1221 |
-
|
1222 |
} else if (jQuery(eClass+':checked').length == 1) {
|
1223 |
if(jQuery("#chaty_default_state").val() == "open" && !jQuery("#cht_close_button").is(":checked")) {
|
1224 |
jQuery("#iconWidget").css("display","block");
|
@@ -1230,7 +1205,6 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
1230 |
jQuery(".chaty-widget").removeClass("hide-arrow");
|
1231 |
}
|
1232 |
jQuery(".chaty-widget").addClass("has-single");
|
1233 |
-
jQuery(".chaty-widget").removeClass("hide-arrow");
|
1234 |
} else if (jQuery(eClass+':checked').length == 0) {
|
1235 |
jQuery("#iconWidget").hide();
|
1236 |
jQuery(".chaty-widget .tooltiptext").hide();
|
@@ -1261,6 +1235,9 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
1261 |
jQuery(".chaty-widget .tooltiptext").css("display", "block");
|
1262 |
}
|
1263 |
}
|
|
|
|
|
|
|
1264 |
}
|
1265 |
|
1266 |
function getPreviewDesktop() {
|
@@ -1273,11 +1250,25 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
1273 |
detectIcon();
|
1274 |
});
|
1275 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1276 |
jQuery(document).on('change', '.js-widget-i', function (ev) {
|
1277 |
if (ev.target.classList.contains('js-upload')) {
|
1278 |
defaultIcon = jQuery('.file-preview-image').last().parent().html();
|
1279 |
} else {
|
1280 |
-
defaultIcon = jQuery('i[data-type=' +
|
1281 |
}
|
1282 |
detectIcon();
|
1283 |
});
|
@@ -1361,10 +1352,10 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
1361 |
});
|
1362 |
}(jQuery));
|
1363 |
|
1364 |
-
jQuery(window).
|
1365 |
check_for_preview_pos();
|
1366 |
});
|
1367 |
-
jQuery(window).
|
1368 |
check_for_preview_pos();
|
1369 |
});
|
1370 |
jQuery(document).ready(function () {
|
@@ -1409,37 +1400,6 @@ function check_for_preview_pos() {
|
|
1409 |
}
|
1410 |
jQuery(".chaty-sticky-buttons").css("top", ((jQuery(window).height()/2)-(totalHeight/2))+"px");
|
1411 |
}
|
1412 |
-
|
1413 |
-
if(jQuery(".html-tooltip:not(.no-position)").length) {
|
1414 |
-
jQuery(".html-tooltip:not(.no-position)").each(function(){
|
1415 |
-
if(jQuery(this).offset().top - jQuery(window).scrollTop() > 540) {
|
1416 |
-
jQuery(this).addClass("top").removeClass("side").removeClass("bottom");
|
1417 |
-
jQuery(this).find(".tooltip-text").attr("style","");
|
1418 |
-
jQuery(this).find(".tooltip-text").removeClass("hide-arrow");
|
1419 |
-
} else if(jQuery(window).height() - (jQuery(this).offset().top - jQuery(window).scrollTop()) > 460) {
|
1420 |
-
jQuery(this).addClass("bottom").removeClass("top").removeClass("side");
|
1421 |
-
jQuery(this).find(".tooltip-text").attr("style","");
|
1422 |
-
jQuery(this).find(".tooltip-text").removeClass("hide-arrow");
|
1423 |
-
} else {
|
1424 |
-
jQuery(this).addClass("side").removeClass("top").removeClass("bottom");
|
1425 |
-
if(jQuery(this).find(".tooltip-text").length) {
|
1426 |
-
jQuery(this).find(".tooltip-text").attr("style","");
|
1427 |
-
jQuery(this).find(".tooltip-text").removeClass("hide-arrow");
|
1428 |
-
|
1429 |
-
if(jQuery(this).find(".tooltip-text").offset().top - jQuery(window).scrollTop() - 50 < 0) {
|
1430 |
-
jQuery(this).find(".tooltip-text").css("margin-top", Math.abs(jQuery(this).find(".tooltip-text").offset().top - jQuery(window).scrollTop() - 50)+"px");
|
1431 |
-
jQuery(this).find(".tooltip-text").addClass("hide-arrow");
|
1432 |
-
} else {
|
1433 |
-
jQuery(this).find(".tooltip-text").attr("style","");
|
1434 |
-
if((jQuery(this).find(".tooltip-text").offset().top + parseInt(jQuery(this).find(".tooltip-text").outerHeight()) - jQuery(window).scrollTop() - jQuery(window).height()) > 0) {
|
1435 |
-
jQuery(this).find(".tooltip-text").css("margin-top", ((-1)*Math.abs(jQuery(this).find(".tooltip-text").offset().top + parseInt(jQuery(this).find(".tooltip-text").outerHeight()) - jQuery(window).scrollTop() - jQuery(window).height()) - 10)+"px");
|
1436 |
-
jQuery(this).find(".tooltip-text").addClass("hide-arrow");
|
1437 |
-
}
|
1438 |
-
}
|
1439 |
-
}
|
1440 |
-
}
|
1441 |
-
});
|
1442 |
-
}
|
1443 |
}
|
1444 |
|
1445 |
var totalPageOptions = 0;
|
@@ -1454,7 +1414,7 @@ jQuery(document).ready(function () {
|
|
1454 |
dateAndTimeOptionContent = jQuery(".chaty-date-and-time-options-html").html();
|
1455 |
jQuery(".chaty-date-and-time-options-html").remove();
|
1456 |
|
1457 |
-
jQuery("#create-rule").
|
1458 |
// appendHtml = pageOptionContent.replace(/__count__/g, totalPageOptions, pageOptionContent);
|
1459 |
// totalPageOptions++;
|
1460 |
// jQuery(".chaty-page-options").append(appendHtml);
|
@@ -1471,7 +1431,7 @@ jQuery(document).ready(function () {
|
|
1471 |
jQuery(".page-options").toggle();
|
1472 |
});
|
1473 |
|
1474 |
-
jQuery("#create-data-and-time-rule").
|
1475 |
jQuery(".chaty-data-and-time-rules").toggle();
|
1476 |
});
|
1477 |
|
@@ -1506,7 +1466,7 @@ jQuery(document).ready(function () {
|
|
1506 |
jQuery(".chaty-data-and-time-rules ").toggle();
|
1507 |
});
|
1508 |
|
1509 |
-
jQuery("#image-upload-content .custom-control-label").
|
1510 |
e.stopPropagation();
|
1511 |
jQuery(this).closest(".custom-control").find("input[type=radio]").attr("checked", true);
|
1512 |
jQuery('.js-widget-i').trigger("change");
|
@@ -1524,7 +1484,7 @@ jQuery(document).ready(function () {
|
|
1524 |
change_custom_preview();
|
1525 |
}
|
1526 |
});
|
1527 |
-
jQuery(".chaty-color-field").
|
1528 |
chaty_set_bg_color();
|
1529 |
change_custom_preview();
|
1530 |
});
|
@@ -1536,32 +1496,13 @@ jQuery(document).ready(function () {
|
|
1536 |
jQuery("#channels-selected-list").sortable({
|
1537 |
placeholder: "ui-chaty-state-hl",
|
1538 |
items: "li:not(#chaty-social-close)",
|
1539 |
-
stop: function() {
|
1540 |
-
set_wp_editor();
|
1541 |
-
},
|
1542 |
update: function (event, ui) {
|
1543 |
set_social_channel_order();
|
1544 |
change_custom_preview();
|
1545 |
-
set_wp_editor();
|
1546 |
}
|
1547 |
});
|
1548 |
|
1549 |
-
jQuery(
|
1550 |
-
set_wp_editor();
|
1551 |
-
});
|
1552 |
-
|
1553 |
-
function set_wp_editor() {
|
1554 |
-
if(jQuery(".chaty-whatsapp-setting-textarea").length) {
|
1555 |
-
jQuery(".chaty-whatsapp-setting-textarea").each(function(){
|
1556 |
-
if(jQuery("#cht_social_embedded_message_"+jQuery(this).data("id")+"_ifr").length) {
|
1557 |
-
tinymce.get(jQuery(this).attr("id")).remove();
|
1558 |
-
}
|
1559 |
-
tinymce.execCommand( 'mceAddEditor', true, jQuery(this).attr("id"));
|
1560 |
-
});
|
1561 |
-
}
|
1562 |
-
}
|
1563 |
-
|
1564 |
-
jQuery(".close-button-img img, .close-button-img .image-upload").on("click", function () {
|
1565 |
var image = wp.media({
|
1566 |
title: 'Upload Image',
|
1567 |
// mutiple: true if you want to upload multiple files at once
|
@@ -1570,17 +1511,17 @@ jQuery(document).ready(function () {
|
|
1570 |
type: 'image',
|
1571 |
}
|
1572 |
}).open()
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
});
|
1582 |
|
1583 |
-
jQuery(".remove-close-img").
|
1584 |
default_image = jQuery("#default_image").val();
|
1585 |
jQuery('.close-button-img').removeClass("active");
|
1586 |
jQuery('.close-button-img input').val("");
|
@@ -1614,7 +1555,7 @@ jQuery(document).ready(function () {
|
|
1614 |
chaty_set_bg_color();
|
1615 |
change_custom_preview();
|
1616 |
|
1617 |
-
jQuery(".chaty-settings.cls-btn a, .close-btn-set").
|
1618 |
e.preventDefault();
|
1619 |
jQuery(".cls-btn-settings, .close-btn-set").toggleClass("active");
|
1620 |
});
|
@@ -1634,9 +1575,7 @@ jQuery(document).ready(function () {
|
|
1634 |
var font_val = jQuery(this).val();
|
1635 |
jQuery('.chaty-google-font').remove();
|
1636 |
if (font_val != "") {
|
1637 |
-
|
1638 |
-
jQuery('head').append('<link href="https://fonts.googleapis.com/css?family=' + font_val + ':400,600,700" rel="stylesheet" type="text/css" class="chaty-google-font">');
|
1639 |
-
}
|
1640 |
jQuery('.preview-section-chaty #admin-preview .page-body').css('font-family', font_val);
|
1641 |
} else {
|
1642 |
jQuery('.preview-section-chaty #admin-preview .page-body').attr("style","");
|
@@ -1644,7 +1583,7 @@ jQuery(document).ready(function () {
|
|
1644 |
});
|
1645 |
});
|
1646 |
|
1647 |
-
jQuery(window).
|
1648 |
check_for_chaty_close_button();
|
1649 |
chaty_set_bg_color();
|
1650 |
jQuery(".chaty-page-options .chaty-page-option").removeClass("last");
|
@@ -1656,9 +1595,7 @@ jQuery(window).on("load", function() {
|
|
1656 |
var font_val = jQuery('.form-fonts').val();
|
1657 |
jQuery('.chaty-google-font').remove();
|
1658 |
if (font_val != "") {
|
1659 |
-
|
1660 |
-
jQuery('head').append('<link href="https://fonts.googleapis.com/css?family=' + font_val + ':400,600,700" rel="stylesheet" type="text/css" class="chaty-google-font">');
|
1661 |
-
}
|
1662 |
jQuery('.preview-section-chaty #admin-preview .page-body').css('font-family', font_val);
|
1663 |
}
|
1664 |
// jQuery("#chaty_default_state").trigger("change");
|
@@ -1688,30 +1625,11 @@ function upload_chaty_image(socialSlug) {
|
|
1688 |
|
1689 |
function toggle_chaty_setting(socId) {
|
1690 |
jQuery("#chaty-social-" + socId).find(".chaty-advance-settings").toggle();
|
1691 |
-
if(socId == "Contact_Us") {
|
1692 |
-
if(jQuery("#Contact_Us-close-btn").length) {
|
1693 |
-
var nonce = jQuery("#Contact_Us-close-btn").data("nonce");
|
1694 |
-
if (!jQuery("#Contact_Us-close-btn").hasClass("active")) {
|
1695 |
-
jQuery("#Contact_Us-close-btn").addClass("active")
|
1696 |
-
jQuery.ajax({
|
1697 |
-
type: 'POST',
|
1698 |
-
url: ajaxurl,
|
1699 |
-
data: {
|
1700 |
-
"nonce": nonce,
|
1701 |
-
"action": 'update_channel_setting'
|
1702 |
-
},
|
1703 |
-
success: function (response) {
|
1704 |
-
|
1705 |
-
}
|
1706 |
-
});
|
1707 |
-
}
|
1708 |
-
}
|
1709 |
-
}
|
1710 |
change_custom_preview();
|
1711 |
}
|
1712 |
|
1713 |
function chaty_set_bg_color() {
|
1714 |
-
jQuery(".chaty-color-field
|
1715 |
if (jQuery(this).val() != "" && jQuery(this).val() != "#ffffff") {
|
1716 |
if (jQuery(this).closest("li").data("id") != "Linkedin" || (jQuery(this).closest("li").data("id") == "Linkedin" && jQuery(this).val() != "#ffffff")) {
|
1717 |
defaultColor = jQuery(this).val();
|
12 |
/* jslint browser: true */
|
13 |
/* global jQuery */
|
14 |
|
15 |
+
jQuery(document).ready(function () {
|
|
|
16 |
var chatyError;
|
17 |
+
jQuery("#cht-form").submit(function () {
|
18 |
+
set_social_channel_order();
|
19 |
+
phoneNumberReg = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/;
|
20 |
+
if (jQuery("#cht-form #Whatsapp").length && jQuery("#cht-form #Whatsapp").val() != "") {
|
21 |
+
InputVal = jQuery.trim(jQuery("#cht-form #Whatsapp").val());
|
22 |
+
chatyError = check_for_number_chaty(InputVal, "Whatsapp");
|
23 |
+
if(chatyError) {
|
24 |
+
if(!confirm("Seems like the WhatsApp number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?")) {
|
25 |
+
jQuery("#cht-form #Whatsapp").focus();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
return false;
|
27 |
}
|
28 |
}
|
29 |
}
|
30 |
+
if (jQuery("#cht-form #Phone").length && jQuery("#cht-form #Phone").val() != "") {
|
31 |
+
InputVal = jQuery.trim(jQuery("#cht-form #Phone").val());
|
32 |
+
chatyError = check_for_number_chaty(InputVal, "Phone");
|
33 |
+
if(chatyError) {
|
34 |
+
if(!confirm("Seems like the phone number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?")) {
|
35 |
+
jQuery("#cht-form #Phone").focus();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
return false;
|
37 |
}
|
38 |
}
|
39 |
+
}
|
40 |
+
if (jQuery("#cht-form #Facebook_Messenger").length && jQuery("#cht-form #Facebook_Messenger").val() != "") {
|
41 |
+
faceBookMeReg = /(?:http:\/\/)?m\.me\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*([\w\-]*)/;
|
42 |
+
faceBookReg = /(?:http:\/\/)?facebook\.com\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*([\w\-]*)/;
|
43 |
+
InputVal = jQuery.trim(jQuery("#Facebook_Messenger").val());
|
44 |
+
jQuery("#cht-form #Facebook_Messenger").val(InputVal);
|
45 |
+
if (!faceBookReg.test(InputVal) && !faceBookMeReg.test(InputVal)) {
|
46 |
+
alert("Please make sure your Facebook page's URL looks like, \nhttps://m.me/YOURPAGE");
|
47 |
+
jQuery("#cht-form #Facebook_Messenger").focus();
|
48 |
+
return false;
|
|
|
49 |
}
|
50 |
+
}
|
51 |
+
if (jQuery("#cht-form #SMS").length && jQuery("#cht-form #SMS").val() != "") {
|
52 |
+
InputVal = jQuery.trim(jQuery("#cht-form #SMS").val());
|
53 |
+
chatyError = check_for_number_chaty(InputVal, "SMS");
|
54 |
+
if(chatyError) {
|
55 |
+
if(!confirm("Seems like the SMS number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?")) {
|
56 |
+
jQuery("#cht-form #SMS").focus();
|
|
|
|
|
|
|
|
|
57 |
return false;
|
58 |
}
|
59 |
}
|
60 |
+
}
|
61 |
+
if (jQuery("#cht-form #Viber").length && jQuery("#cht-form #Viber").val() != "") {
|
62 |
+
InputVal = jQuery.trim(jQuery("#cht-form #Viber").val());
|
63 |
+
chatyError = check_for_number_chaty(InputVal, "Viber");
|
64 |
+
if(chatyError) {
|
65 |
+
if(!confirm("Seems like the Viber number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?")) {
|
66 |
+
jQuery("#cht-form #Viber").focus();
|
|
|
|
|
67 |
return false;
|
68 |
}
|
69 |
}
|
70 |
+
}
|
71 |
+
errorCount = 0;
|
72 |
+
if (jQuery("#chaty-page-options .cht-required").length) {
|
73 |
+
jQuery("#chaty-page-options .cht-required").each(function () {
|
74 |
+
if (jQuery.trim(jQuery(this).val()) == "") {
|
75 |
+
jQuery(this).addClass("cht-input-error");
|
76 |
+
errorCount++;
|
|
|
|
|
|
|
77 |
}
|
78 |
+
});
|
79 |
+
}
|
80 |
+
if (jQuery(".chaty-data-and-time-rules .cht-required").length) {
|
81 |
+
jQuery(".chaty-data-and-time-rules .cht-required").each(function () {
|
82 |
+
if (jQuery.trim(jQuery(this).val()) == "") {
|
83 |
+
jQuery(this).addClass("cht-input-error");
|
84 |
+
errorCount++;
|
85 |
+
}
|
86 |
+
});
|
87 |
+
}
|
88 |
+
if(jQuery("#channels-selected-list .phone-number").length) {
|
89 |
+
jQuery("#channels-selected-list .phone-number").each(function(){
|
90 |
+
if(jQuery.trim(jQuery(this).val()) != '') {
|
91 |
+
var inputLen = (jQuery.trim(jQuery(this).val())).length;
|
92 |
+
if(inputLen > 13) {
|
93 |
+
if(!confirm("Seems like the "+jQuery(this).data("label")+" number you're trying to enter isn't valid. Would you like to publish it anyway?")) {
|
94 |
+
jQuery(this).focus();
|
95 |
return false;
|
96 |
}
|
97 |
}
|
98 |
+
}
|
99 |
+
});
|
100 |
}
|
101 |
+
if (errorCount != 0) {
|
102 |
+
return false;
|
103 |
+
} else {
|
104 |
+
var inputError = 0;
|
105 |
+
if(jQuery("#channels-selected-list > li:not(#chaty-social-close").find(".channels__input").length) {
|
106 |
+
jQuery("#channels-selected-list > li:not(#chaty-social-close").find(".channels__input").each(function(){
|
107 |
+
if(jQuery.trim(jQuery(this).val()) == "") {
|
108 |
+
inputError++;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
}
|
110 |
});
|
111 |
+
if(inputError == jQuery("#channels-selected-list > li:not(#chaty-social-close").find(".channels__input").length) {
|
112 |
+
if(confirm("You need to fill out at least one channel details for Chaty to show up on your website. Click cancel to keep editing.")) {
|
113 |
+
return true;
|
|
|
|
|
|
|
|
|
114 |
} else {
|
115 |
+
jQuery("#channels-selected-list > li:not(#chaty-social-close").find(".channels__input").each(function(){
|
116 |
+
if(jQuery.trim(jQuery(this).val()) == "") {
|
117 |
+
inputError = 1;
|
118 |
+
}
|
119 |
+
});
|
120 |
+
jQuery("#channels-selected-list > li:not(#chaty-social-close").find(".channels__input").addClass("border-red");
|
121 |
+
jQuery("#channels-selected-list > li:not(#chaty-social-close) .channels__input:first").focus();
|
122 |
+
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
}
|
124 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
}
|
126 |
+
}
|
127 |
+
return true;
|
128 |
+
});
|
129 |
+
jQuery(document).on("click", ".preview-section-chaty", function(e){
|
130 |
+
e.stopPropagation();
|
131 |
+
});
|
132 |
+
jQuery(document).on("click", ".preview-section-overlay", function(){
|
133 |
+
jQuery(".preview-help-btn").removeClass("active");
|
134 |
+
jQuery(".preview-section-chaty").removeClass("active");
|
135 |
+
jQuery(".preview-section-overlay").removeClass("active");
|
136 |
+
});
|
137 |
+
jQuery(document).on("click", ".preview-help-btn", function(e){
|
138 |
+
e.preventDefault();
|
139 |
+
if(jQuery(this).hasClass("active")) {
|
140 |
+
jQuery(this).removeClass("active");
|
141 |
+
jQuery(".preview-section-chaty").removeClass("active");
|
142 |
+
jQuery(".preview-section-overlay").removeClass("active");
|
143 |
+
} else {
|
144 |
+
jQuery(this).addClass("active");
|
145 |
+
jQuery(".preview-section-chaty").addClass("active");
|
146 |
+
jQuery(".preview-section-overlay").addClass("active");
|
147 |
+
}
|
148 |
+
return false;
|
149 |
});
|
150 |
});
|
151 |
|
166 |
return false;
|
167 |
}
|
168 |
|
169 |
+
(function ($, sr) {
|
170 |
+
var debounce = function (func, threshold, execAsap) {
|
171 |
+
var timeout;
|
172 |
+
|
173 |
+
return function debounced() {
|
174 |
+
var obj = this;
|
175 |
+
var
|
176 |
+
args = arguments;
|
177 |
+
|
178 |
+
function delayed() {
|
179 |
+
if (!execAsap) func.apply(obj, args);
|
180 |
+
timeout = null;
|
181 |
+
}
|
182 |
+
|
183 |
+
if (timeout) clearTimeout(timeout);
|
184 |
+
else if (execAsap) func.apply(obj, args);
|
185 |
+
|
186 |
+
timeout = setTimeout(delayed, threshold || 100);
|
187 |
+
};
|
188 |
+
};
|
189 |
+
// smartModalResize
|
190 |
+
jQuery.fn[sr] = function (fn) {
|
191 |
+
return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr);
|
192 |
+
};
|
193 |
+
}(jQuery, 'smartModalResize'));
|
194 |
+
|
195 |
(function ($) {
|
196 |
+
'use strict';
|
197 |
+
|
198 |
+
var methods = {
|
199 |
+
init: function (options) {
|
200 |
+
var defaults = {
|
201 |
+
top: 'auto',
|
202 |
+
left: 'auto',
|
203 |
+
autoOpen: false,
|
204 |
+
overlayOpacity: 0.5,
|
205 |
+
overlayColor: '#000',
|
206 |
+
overlayClose: true,
|
207 |
+
overlayParent: 'body',
|
208 |
+
closeOnEscape: true,
|
209 |
+
closeButtonClass: '.close',
|
210 |
+
transitionIn: '',
|
211 |
+
transitionOut: '',
|
212 |
+
onOpen: false,
|
213 |
+
onClose: false,
|
214 |
+
zIndex: function () {
|
215 |
+
return (function (value) {
|
216 |
+
return value === -Infinity ? 0 : value + 1;
|
217 |
+
}(Math.max.apply(Math, $.makeArray(jQuery('*').map(function () {
|
218 |
+
return jQuery(this).css('z-index');
|
219 |
+
}).filter(function () {
|
220 |
+
return $.isNumeric(this);
|
221 |
+
}).map(function () {
|
222 |
+
return parseInt(this, 10);
|
223 |
+
})))));
|
224 |
+
},
|
225 |
+
updateZIndexOnOpen: true,
|
226 |
+
hasVariableWidth: false
|
227 |
+
};
|
228 |
+
|
229 |
+
options = $.extend(defaults, options);
|
230 |
+
|
231 |
+
return this.each(function () {
|
232 |
+
var o = options;
|
233 |
+
|
234 |
+
|
235 |
+
var $overlay = jQuery('<div class="lean-overlay"></div>');
|
236 |
+
|
237 |
+
|
238 |
+
var $modal = jQuery(this);
|
239 |
+
|
240 |
+
$overlay.css({
|
241 |
+
display: 'none',
|
242 |
+
position: 'fixed',
|
243 |
+
// When updateZIndexOnOpen is set to true, we avoid computing the z-index on initialization,
|
244 |
+
// because the value would be replaced when opening the modal.
|
245 |
+
'z-index': (o.updateZIndexOnOpen ? 0 : o.zIndex()),
|
246 |
+
top: 0,
|
247 |
+
left: 0,
|
248 |
+
height: '100%',
|
249 |
+
width: '100%',
|
250 |
+
background: o.overlayColor,
|
251 |
+
opacity: o.overlayOpacity,
|
252 |
+
overflow: 'auto'
|
253 |
+
}).appendTo(o.overlayParent);
|
254 |
+
|
255 |
+
$modal.css({
|
256 |
+
display: 'none',
|
257 |
+
position: 'fixed',
|
258 |
+
// When updateZIndexOnOpen is set to true, we avoid computing the z-index on initialization,
|
259 |
+
// because the value would be replaced when opening the modal.
|
260 |
+
'z-index': (o.updateZIndexOnOpen ? 0 : o.zIndex() + 1),
|
261 |
+
left: parseInt(o.left, 10) > -1 ? o.left + 'px' : 50 + '%',
|
262 |
+
top: parseInt(o.top, 10) > -1 ? o.top + 'px' : 50 + '%'
|
263 |
+
});
|
264 |
+
|
265 |
+
$modal.bind('openModal', function () {
|
266 |
+
var overlayZ = o.updateZIndexOnOpen ? o.zIndex() : parseInt($overlay.css('z-index'), 10);
|
267 |
|
268 |
+
|
269 |
+
var modalZ = overlayZ + 1;
|
270 |
+
|
271 |
+
if (o.transitionIn !== '' && o.transitionOut !== '') {
|
272 |
+
$modal.removeClass(o.transitionOut).addClass(o.transitionIn);
|
273 |
+
}
|
274 |
+
$modal.css({
|
275 |
+
display: 'block',
|
276 |
+
'margin-left': (parseInt(o.left, 10) > -1 ? 0 : -($modal.outerWidth() / 2)) + 'px',
|
277 |
+
'margin-top': (parseInt(o.top, 10) > -1 ? 0 : -($modal.outerHeight() / 2)) + 'px',
|
278 |
+
'z-index': modalZ
|
279 |
+
});
|
280 |
+
|
281 |
+
$overlay.css({'z-index': overlayZ, display: 'block'});
|
282 |
+
|
283 |
+
if (o.onOpen && typeof o.onOpen === 'function') {
|
284 |
+
// onOpen callback receives as argument the modal window
|
285 |
+
o.onOpen($modal[0]);
|
286 |
+
}
|
287 |
+
});
|
288 |
+
|
289 |
+
$modal.bind('closeModal', function () {
|
290 |
+
if (o.transitionIn !== '' && o.transitionOut !== '') {
|
291 |
+
$modal.removeClass(o.transitionIn).addClass(o.transitionOut);
|
292 |
+
$modal.one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function () {
|
293 |
+
$modal.css('display', 'none');
|
294 |
+
$overlay.css('display', 'none');
|
295 |
+
});
|
296 |
+
} else {
|
297 |
+
$modal.css('display', 'none');
|
298 |
+
$overlay.css('display', 'none');
|
299 |
+
}
|
300 |
+
if (o.onClose && typeof o.onClose === 'function') {
|
301 |
+
// onClose callback receives as argument the modal window
|
302 |
+
o.onClose($modal[0]);
|
303 |
+
}
|
304 |
+
});
|
305 |
+
|
306 |
+
// Close on overlay click
|
307 |
+
$overlay.click(function () {
|
308 |
+
if (o.overlayClose) {
|
309 |
+
$modal.trigger('closeModal');
|
310 |
+
}
|
311 |
+
});
|
312 |
+
|
313 |
+
jQuery(document).keydown(function (e) {
|
314 |
+
// ESCAPE key pressed
|
315 |
+
if (o.closeOnEscape && e.keyCode === 27) {
|
316 |
+
$modal.trigger('closeModal');
|
317 |
+
}
|
318 |
+
});
|
319 |
+
|
320 |
+
jQuery(window).smartModalResize(function () {
|
321 |
+
if (o.hasVariableWidth) {
|
322 |
+
$modal.css({
|
323 |
+
'margin-left': (parseInt(o.left, 10) > -1 ? 0 : -($modal.outerWidth() / 2)) + 'px',
|
324 |
+
'margin-top': (parseInt(o.top, 10) > -1 ? 0 : -($modal.outerHeight() / 2)) + 'px'
|
325 |
+
});
|
326 |
+
}
|
327 |
+
});
|
328 |
+
|
329 |
+
// Close when button pressed
|
330 |
+
$modal.on('click', o.closeButtonClass, function (e) {
|
331 |
+
$modal.trigger('closeModal');
|
332 |
+
e.preventDefault();
|
333 |
+
});
|
334 |
+
|
335 |
+
// Automatically open modal if option set
|
336 |
+
if (o.autoOpen) {
|
337 |
+
$modal.trigger('openModal');
|
338 |
+
}
|
339 |
+
});
|
340 |
+
}
|
341 |
+
};
|
342 |
+
|
343 |
+
$.fn.easyModal = function (method) {
|
344 |
+
// Method calling logic
|
345 |
+
if (methods[method]) {
|
346 |
+
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
347 |
}
|
|
|
348 |
|
349 |
+
if (typeof method === 'object' || !method) {
|
350 |
+
return methods.init.apply(this, arguments);
|
351 |
+
}
|
352 |
+
|
353 |
+
$.error('Method ' + method + ' does not exist on jQuery.easyModal');
|
354 |
+
};
|
355 |
+
}(jQuery));
|
356 |
+
(function ($) {
|
357 |
jQuery(document).ready(function () {
|
358 |
+
jQuery('body input, body .icon, body textarea, body .btn-cancel:not(.close-btn-set) ').click(function (event) {
|
359 |
window.onbeforeunload = function (e) {
|
360 |
e = e || window.event;
|
361 |
e.preventDefault = true;
|
401 |
})
|
402 |
});
|
403 |
|
404 |
+
//jQuery('.preview').stick_in_parent({
|
405 |
+
// offset_top: 200
|
406 |
+
//});
|
407 |
+
|
408 |
jQuery(document).on("click", "#chaty_icons_view", function(e){
|
409 |
jQuery(".page-body .chaty-widget").removeClass("vertical").removeClass("horizontal");
|
410 |
jQuery(".page-body .chaty-widget").addClass(jQuery(this).val());
|
411 |
});
|
412 |
|
413 |
+
jQuery('.upg').click(function (event) {
|
414 |
jQuery('.valid_domain_input').val(jQuery('.valid_domain_input').val().replace(' ', ''));
|
415 |
if (!/^(http(s)?:\/\/)?(www\.)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(jQuery('.valid_domain_input').val())) {
|
416 |
event.preventDefault();
|
419 |
});
|
420 |
}
|
421 |
});
|
422 |
+
jQuery('.del_token').click(function (event) {
|
423 |
$.ajax({
|
424 |
type: 'POST',
|
425 |
url: ajaxurl,
|
442 |
}
|
443 |
});
|
444 |
|
445 |
+
(function easyModal() {
|
446 |
+
jQuery('.easy-modal').easyModal({
|
447 |
+
top: 150,
|
448 |
+
overlay: 0.2
|
449 |
+
});
|
450 |
+
jQuery('.easy-modal-open').click(function (e) {
|
451 |
+
var target = jQuery(this).attr('href');
|
452 |
+
jQuery(target).trigger('openModal');
|
453 |
+
e.preventDefault();
|
454 |
+
});
|
455 |
+
jQuery('.easy-modal-close').click(function (e) {
|
456 |
+
e.preventDefault();
|
457 |
+
jQuery('.easy-modal').trigger('closeModal');
|
458 |
+
});
|
459 |
+
}());
|
460 |
var count_click = 1000000003;
|
461 |
+
jQuery('.show_up').click(function () {
|
462 |
count_click += 10;
|
463 |
jQuery('#upgrade-modal').css({
|
464 |
'z-index': count_click,
|
471 |
jQuery('.color-picker-btn, .color-picker-btn-close, .color-picker-custom button').on('click', function (e) {
|
472 |
e.preventDefault();
|
473 |
|
474 |
+
jQuery('.color-picker').toggle();
|
475 |
jQuery('.color-picker-btn').toggle();
|
476 |
});
|
477 |
|
478 |
+
jQuery('.color-picker-radio input').change(function () {
|
479 |
var $this = jQuery(this);
|
480 |
jQuery('.color-picker-custom input[name="cht_custom_color"]').val('');
|
481 |
jQuery('.color-picker-custom .circle').html('?').css({
|
502 |
jQuery('#chaty-social-close ellipse').attr("fill", color);
|
503 |
});
|
504 |
|
505 |
+
jQuery('.color-picker-custom input').change(function () {
|
506 |
jQuery('.color-picker-radio input').prop('checked', false);
|
507 |
|
508 |
var $this = jQuery(this);
|
522 |
}());
|
523 |
|
524 |
(function customSelect() {
|
525 |
+
jQuery('[name="cht_position"]').change(function () {
|
526 |
if (jQuery('#positionCustom').prop('checked')) {
|
527 |
jQuery('#positionPro').show();
|
528 |
} else {
|
566 |
}
|
567 |
});
|
568 |
});
|
569 |
+
jQuery('textarea[name=cht_cta]').keyup(function (event) {
|
570 |
jQuery('.tooltiptext span').html(jQuery(this).val());
|
571 |
if (jQuery(this).val().length == 0) {
|
572 |
jQuery('.cta').hide(200);
|
583 |
jQuery(document).ready(function () {
|
584 |
(function preview() {
|
585 |
(function previewColor() {
|
586 |
+
jQuery('.color-picker-radio input').change(function () {
|
587 |
var $this = jQuery(this);
|
588 |
|
589 |
if ($this.prop('checked')) {
|
594 |
detectIcon();
|
595 |
});
|
596 |
|
597 |
+
jQuery('.color-picker-custom input').change(function () {
|
598 |
var $this = jQuery(this);
|
599 |
|
600 |
var color = $this.val();
|
607 |
detectIcon();
|
608 |
});
|
609 |
|
610 |
+
jQuery('#cht_close_button, #trigger_on_time, #chaty_trigger_on_scroll').click(function () {
|
611 |
detectIcon();
|
612 |
});
|
613 |
}());
|
626 |
|
627 |
tooltipToggle();
|
628 |
|
629 |
+
$widgetTooltip.change(function () {
|
630 |
tooltipToggle();
|
631 |
});
|
632 |
}());
|
656 |
positionSide = customSpace;
|
657 |
}
|
658 |
|
659 |
+
$inputPosBot.change(function () {
|
660 |
positionBottom = jQuery('#positionBottom').val() + 'px';
|
661 |
|
662 |
$chatyWidget.css({bottom: positionBottom});
|
663 |
});
|
664 |
|
665 |
+
$inputPosSide.change(function () {
|
666 |
var valueCustom = jQuery('[name="positionSide"]:checked').val();
|
667 |
positionSide = jQuery(this).val() + 'px';
|
668 |
|
677 |
}
|
678 |
});
|
679 |
|
680 |
+
jQuery('[name="positionSide"]').change(function () {
|
681 |
var valueCustom = jQuery('[name="positionSide"]:checked').val();
|
682 |
|
683 |
if (valueCustom === 'right') {
|
696 |
previewPosition();
|
697 |
|
698 |
|
699 |
+
jQuery('input[name="cht_position"]').change(function () {
|
700 |
var valueCustom = jQuery('[name="cht_position"]:checked').val();
|
701 |
|
702 |
if (valueCustom === 'right') {
|
719 |
var socialInputsContainer = jQuery('.social-inputs');
|
720 |
|
721 |
var click = 0;
|
722 |
+
jQuery('input[name=cht_custom_color]').keyup(function (event) {
|
723 |
var color = jQuery(this).val();
|
724 |
jQuery('.circle').html('');
|
725 |
if(color != "") {
|
793 |
} */
|
794 |
|
795 |
if (!jQuery('section').is('#pro') && jQuery('.channels-icons > .icon.active').length >= 2) {
|
796 |
+
jQuery('.popover').show().effect('shake', {times: 3}, 600);
|
797 |
socialIcon.removeClass('disabled');
|
|
|
|
|
|
|
|
|
|
|
798 |
return;
|
799 |
}
|
800 |
|
825 |
success: function (data) {
|
826 |
var item = jQuery(data);
|
827 |
var itemName = item.find('.icon').data('title');
|
|
|
828 |
|
829 |
if (!jQuery('.channels-selected div[data-social="' + itemName + '"]').length) {
|
830 |
jQuery('#chaty-social-close').before(item);
|
|
|
|
|
|
|
|
|
831 |
}
|
832 |
|
833 |
socialIcon.removeClass('disabled');
|
|
|
834 |
detectIcon();
|
835 |
two_soc();
|
|
|
|
|
836 |
|
837 |
jQuery('.chaty-color-field').spectrum({
|
838 |
chooseText: "Submit",
|
845 |
}
|
846 |
});
|
847 |
check_for_chaty_close_button();
|
|
|
848 |
},
|
849 |
error: function (xhr, status, error) {
|
850 |
|
941 |
}
|
942 |
}
|
943 |
|
944 |
+
jQuery('.btn-help').click(function (event) {
|
945 |
window.open(
|
946 |
'https://premio.io/help/chaty/',
|
947 |
'_blank' // <- This is what makes it open in a new window.
|
957 |
var chatyCta = jQuery('[name=cht_cta]');
|
958 |
var toolTip = jQuery('.preview .tooltip-show');
|
959 |
|
960 |
+
chatyCta.keyup(function () {
|
961 |
var $icon = jQuery('.preview .page .icon');
|
962 |
if (chatyCta.val().length >= 1) {
|
963 |
$icon.removeClass('no-tooltip');
|
1036 |
var desktop,
|
1037 |
mobile,
|
1038 |
colorSelf = false;
|
|
|
1039 |
jQuery("#iconWidget").removeClass("img-p-active");
|
1040 |
|
1041 |
if (getPreviewDesktop()) {
|
1092 |
$("#iconWidget .pop-number").css("background", jQuery("#cht_number_bg_color").val());
|
1093 |
}
|
1094 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1095 |
}
|
1096 |
|
1097 |
function stickyelement_iconformat(icon) {
|
1128 |
|
1129 |
jQuery(".chaty-widget").removeClass("active").removeClass("hover").removeClass("click").removeClass("hide_arrow");
|
1130 |
if(thisVal == "open") {
|
1131 |
+
jQuery(".chaty-widget").addClass("active").addClass("click").addClass("hide_arrow");
|
|
|
|
|
|
|
1132 |
} else if(thisVal == "hover") {
|
1133 |
jQuery(".chaty-widget").addClass("hover");
|
1134 |
} else {
|
1167 |
jQuery(".disable-message").removeClass("label-tooltip").removeClass("icon");
|
1168 |
jQuery(".cta-action-radio input").attr("disabled", false);
|
1169 |
}
|
|
|
1170 |
|
1171 |
if (jQuery(eClass+':checked').length > 1) {
|
1172 |
jQuery(eClass+':checked').each(function(){
|
1194 |
jQuery(".chaty-widget").addClass("hide-arrow");
|
1195 |
}
|
1196 |
jQuery(".chaty-widget").removeClass("has-single");
|
|
|
|
|
1197 |
} else if (jQuery(eClass+':checked').length == 1) {
|
1198 |
if(jQuery("#chaty_default_state").val() == "open" && !jQuery("#cht_close_button").is(":checked")) {
|
1199 |
jQuery("#iconWidget").css("display","block");
|
1205 |
jQuery(".chaty-widget").removeClass("hide-arrow");
|
1206 |
}
|
1207 |
jQuery(".chaty-widget").addClass("has-single");
|
|
|
1208 |
} else if (jQuery(eClass+':checked').length == 0) {
|
1209 |
jQuery("#iconWidget").hide();
|
1210 |
jQuery(".chaty-widget .tooltiptext").hide();
|
1235 |
jQuery(".chaty-widget .tooltiptext").css("display", "block");
|
1236 |
}
|
1237 |
}
|
1238 |
+
|
1239 |
+
jQuery(".page-body .chaty-widget").removeClass("vertical").removeClass("horizontal");
|
1240 |
+
jQuery(".page-body .chaty-widget").addClass(jQuery("#chaty_icons_view").val());
|
1241 |
}
|
1242 |
|
1243 |
function getPreviewDesktop() {
|
1250 |
detectIcon();
|
1251 |
});
|
1252 |
|
1253 |
+
function calc(a) {
|
1254 |
+
var count = {}, res = 0, q;
|
1255 |
+
for (q = 0; q < a.length; ++q) {
|
1256 |
+
count[a[q].dataset.type] = ~~count[a[q].dataset.type] + 1;
|
1257 |
+
}
|
1258 |
+
for (q in count) {
|
1259 |
+
if (count.hasOwnProperty(q) && count[q] > 1) {
|
1260 |
+
res += count[q];
|
1261 |
+
}
|
1262 |
+
}
|
1263 |
+
return res;
|
1264 |
+
}
|
1265 |
+
|
1266 |
+
|
1267 |
jQuery(document).on('change', '.js-widget-i', function (ev) {
|
1268 |
if (ev.target.classList.contains('js-upload')) {
|
1269 |
defaultIcon = jQuery('.file-preview-image').last().parent().html();
|
1270 |
} else {
|
1271 |
+
defaultIcon = jQuery('i[data-type=' + ev.target.dataset.type + ']').html()
|
1272 |
}
|
1273 |
detectIcon();
|
1274 |
});
|
1352 |
});
|
1353 |
}(jQuery));
|
1354 |
|
1355 |
+
jQuery(window).resize(function () {
|
1356 |
check_for_preview_pos();
|
1357 |
});
|
1358 |
+
jQuery(window).scroll(function () {
|
1359 |
check_for_preview_pos();
|
1360 |
});
|
1361 |
jQuery(document).ready(function () {
|
1400 |
}
|
1401 |
jQuery(".chaty-sticky-buttons").css("top", ((jQuery(window).height()/2)-(totalHeight/2))+"px");
|
1402 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1403 |
}
|
1404 |
|
1405 |
var totalPageOptions = 0;
|
1414 |
dateAndTimeOptionContent = jQuery(".chaty-date-and-time-options-html").html();
|
1415 |
jQuery(".chaty-date-and-time-options-html").remove();
|
1416 |
|
1417 |
+
jQuery("#create-rule").click(function () {
|
1418 |
// appendHtml = pageOptionContent.replace(/__count__/g, totalPageOptions, pageOptionContent);
|
1419 |
// totalPageOptions++;
|
1420 |
// jQuery(".chaty-page-options").append(appendHtml);
|
1431 |
jQuery(".page-options").toggle();
|
1432 |
});
|
1433 |
|
1434 |
+
jQuery("#create-data-and-time-rule").click(function () {
|
1435 |
jQuery(".chaty-data-and-time-rules").toggle();
|
1436 |
});
|
1437 |
|
1466 |
jQuery(".chaty-data-and-time-rules ").toggle();
|
1467 |
});
|
1468 |
|
1469 |
+
jQuery("#image-upload-content .custom-control-label").click(function (e) {
|
1470 |
e.stopPropagation();
|
1471 |
jQuery(this).closest(".custom-control").find("input[type=radio]").attr("checked", true);
|
1472 |
jQuery('.js-widget-i').trigger("change");
|
1484 |
change_custom_preview();
|
1485 |
}
|
1486 |
});
|
1487 |
+
jQuery(".chaty-color-field").change(function () {
|
1488 |
chaty_set_bg_color();
|
1489 |
change_custom_preview();
|
1490 |
});
|
1496 |
jQuery("#channels-selected-list").sortable({
|
1497 |
placeholder: "ui-chaty-state-hl",
|
1498 |
items: "li:not(#chaty-social-close)",
|
|
|
|
|
|
|
1499 |
update: function (event, ui) {
|
1500 |
set_social_channel_order();
|
1501 |
change_custom_preview();
|
|
|
1502 |
}
|
1503 |
});
|
1504 |
|
1505 |
+
jQuery(".close-button-img img, .close-button-img .image-upload").click(function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1506 |
var image = wp.media({
|
1507 |
title: 'Upload Image',
|
1508 |
// mutiple: true if you want to upload multiple files at once
|
1511 |
type: 'image',
|
1512 |
}
|
1513 |
}).open()
|
1514 |
+
.on('select', function (e) {
|
1515 |
+
var uploaded_image = image.state().get('selection').first();
|
1516 |
+
imageData = uploaded_image.toJSON();
|
1517 |
+
jQuery('.close-button-img').addClass("active");
|
1518 |
+
jQuery('.close-button-img input').val(imageData.id);
|
1519 |
+
jQuery('.close-button-img img').attr("src", imageData.url);
|
1520 |
+
change_custom_preview();
|
1521 |
+
});
|
1522 |
});
|
1523 |
|
1524 |
+
jQuery(".remove-close-img").click(function () {
|
1525 |
default_image = jQuery("#default_image").val();
|
1526 |
jQuery('.close-button-img').removeClass("active");
|
1527 |
jQuery('.close-button-img input').val("");
|
1555 |
chaty_set_bg_color();
|
1556 |
change_custom_preview();
|
1557 |
|
1558 |
+
jQuery(".chaty-settings.cls-btn a, .close-btn-set").click(function (e) {
|
1559 |
e.preventDefault();
|
1560 |
jQuery(".cls-btn-settings, .close-btn-set").toggleClass("active");
|
1561 |
});
|
1575 |
var font_val = jQuery(this).val();
|
1576 |
jQuery('.chaty-google-font').remove();
|
1577 |
if (font_val != "") {
|
1578 |
+
jQuery('head').append('<link href="https://fonts.googleapis.com/css?family=' + font_val + ':400,600,700" rel="stylesheet" type="text/css" class="chaty-google-font">');
|
|
|
|
|
1579 |
jQuery('.preview-section-chaty #admin-preview .page-body').css('font-family', font_val);
|
1580 |
} else {
|
1581 |
jQuery('.preview-section-chaty #admin-preview .page-body').attr("style","");
|
1583 |
});
|
1584 |
});
|
1585 |
|
1586 |
+
jQuery(window).load(function () {
|
1587 |
check_for_chaty_close_button();
|
1588 |
chaty_set_bg_color();
|
1589 |
jQuery(".chaty-page-options .chaty-page-option").removeClass("last");
|
1595 |
var font_val = jQuery('.form-fonts').val();
|
1596 |
jQuery('.chaty-google-font').remove();
|
1597 |
if (font_val != "") {
|
1598 |
+
jQuery('head').append('<link href="https://fonts.googleapis.com/css?family=' + font_val + ':400,600,700" rel="stylesheet" type="text/css" class="chaty-google-font">');
|
|
|
|
|
1599 |
jQuery('.preview-section-chaty #admin-preview .page-body').css('font-family', font_val);
|
1600 |
}
|
1601 |
// jQuery("#chaty_default_state").trigger("change");
|
1625 |
|
1626 |
function toggle_chaty_setting(socId) {
|
1627 |
jQuery("#chaty-social-" + socId).find(".chaty-advance-settings").toggle();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1628 |
change_custom_preview();
|
1629 |
}
|
1630 |
|
1631 |
function chaty_set_bg_color() {
|
1632 |
+
jQuery(".chaty-color-field").each(function () {
|
1633 |
if (jQuery(this).val() != "" && jQuery(this).val() != "#ffffff") {
|
1634 |
if (jQuery(this).closest("li").data("id") != "Linkedin" || (jQuery(this).closest("li").data("id") == "Linkedin" && jQuery(this).val() != "#ffffff")) {
|
1635 |
defaultColor = jQuery(this).val();
|
admin/assets/js/cht-scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function check_for_number_chaty(e,t){return!(""==e||("+"==e[0]&&(e=e.substr(1,e.length)),"Phone"==t&&"*"==e[0]&&(e=e.substr(1,e.length)),!isNaN(e)))}function check_for_preview_pos(){if(jQuery(".chaty-setting-form").length)if(jQuery(window).width()>1179){var e=parseInt(jQuery(".chaty-setting-form").offset().top);jQuery(".btn-save-sticky, .chaty-sticky-buttons").css("top",e+58),jQuery(".preview").css("top",e+18),jQuery(".btn-help").css("top",e+58+145),jQuery("a.remove-chaty-widget-sticky").css("top",e+58+145+119)}else jQuery(".btn-save-sticky, .chaty-sticky-buttons").attr("style",""),jQuery(".preview").attr("style",""),jQuery(".btn-help").attr("style",""),jQuery("a.remove-chaty-widget-sticky").attr("style","");if(jQuery("#scroll-to-item").length&&jQuery("#admin-preview").length&&((e=jQuery("body").hasClass("has-premio-box")?jQuery("#scroll-to-item").offset().top-jQuery(window).scrollTop()-625:jQuery("#scroll-to-item").offset().top-jQuery(window).scrollTop()-485)<0?(e=Math.abs(e),jQuery("#admin-preview").css("margin-top",-1*e+"px")):jQuery("#admin-preview").css("margin-top","0")),jQuery(window).height()<=1180){var t=285;jQuery(window).width()<=600&&(t=310),jQuery(".chaty-sticky-buttons").css("top",jQuery(window).height()/2-t/2+"px")}jQuery(".html-tooltip:not(.no-position)").length&&jQuery(".html-tooltip:not(.no-position)").each(function(){jQuery(this).offset().top-jQuery(window).scrollTop()>540?(jQuery(this).addClass("top").removeClass("side").removeClass("bottom"),jQuery(this).find(".tooltip-text").attr("style",""),jQuery(this).find(".tooltip-text").removeClass("hide-arrow")):jQuery(window).height()-(jQuery(this).offset().top-jQuery(window).scrollTop())>460?(jQuery(this).addClass("bottom").removeClass("top").removeClass("side"),jQuery(this).find(".tooltip-text").attr("style",""),jQuery(this).find(".tooltip-text").removeClass("hide-arrow")):(jQuery(this).addClass("side").removeClass("top").removeClass("bottom"),jQuery(this).find(".tooltip-text").length&&(jQuery(this).find(".tooltip-text").attr("style",""),jQuery(this).find(".tooltip-text").removeClass("hide-arrow"),jQuery(this).find(".tooltip-text").offset().top-jQuery(window).scrollTop()-50<0?(jQuery(this).find(".tooltip-text").css("margin-top",Math.abs(jQuery(this).find(".tooltip-text").offset().top-jQuery(window).scrollTop()-50)+"px"),jQuery(this).find(".tooltip-text").addClass("hide-arrow")):(jQuery(this).find(".tooltip-text").attr("style",""),jQuery(this).find(".tooltip-text").offset().top+parseInt(jQuery(this).find(".tooltip-text").outerHeight())-jQuery(window).scrollTop()-jQuery(window).height()>0&&(jQuery(this).find(".tooltip-text").css("margin-top",-1*Math.abs(jQuery(this).find(".tooltip-text").offset().top+parseInt(jQuery(this).find(".tooltip-text").outerHeight())-jQuery(window).scrollTop()-jQuery(window).height())-10+"px"),jQuery(this).find(".tooltip-text").addClass("hide-arrow")))))})}jQuery(function(e){"use strict";var t=!1,a=!1,o=!1,c=!1,i=!1,s=!1,n=!1;function r(){if(e(".chaty-popup").hide(),0==e("#cht-form .js-chanel-desktop").length||0==e("#cht-form .js-chanel-mobile").length)return e("#no-device-popup").show(),!1;if(0==e("#cht-form .js-chanel-desktop:checked").length&&0==e("#cht-form .js-chanel-mobile:checked").length)return e("#device-popup").show(),!1;var t=0;return e("#channels-selected-list > li:not(#chaty-social-close)").find(".channels__input").each(function(){""==jQuery.trim(e(this).val())&&t++}),t!=e("#channels-selected-list > li:not(#chaty-social-close)").find(".channels__input").length||e("#chaty-social-Contact_Us").length?l():(e("#no-device-value").show(),!1)}function l(){return e(".chaty-popup").hide(),e("#trigger_on_time").is(":checked")||e("#chaty_trigger_on_exit").is(":checked")||e("#chaty_trigger_on_scroll").is(":checked")?u():(e("#trigger-popup").show(),!1)}function u(){return e(".chaty-popup").hide(),e(".cht_active").is(":checked")?(t=!0,e("#cht-form").trigger("submit"),!0):(e("#status-popup").show(),!1)}function h(){if(a){if(o){if(c){if(i){if(s)n||(n=!0,e("#channels-selected-list .phone-number").length&&e("#channels-selected-list .phone-number").each(function(){if(""!=jQuery.trim(e(this).val())&&jQuery.trim(e(this).val()).length>13)return e("#custom-message-popup .chaty-popup-header").text(e(this).data("label")+" number is not valid"),e("#custom-message-popup .chaty-popup-body").text("Seems like the "+e(this).data("label")+" number you're trying to enter isn't valid. Would you like to publish it anyway?"),e("#custom-message-popup").show(),!1}));else if(s=!0,e("#cht-form #Viber").length&&""!=e("#cht-form #Viber").val()){t=jQuery.trim(e("#cht-form #Viber").val());if(check_for_number_chaty(t,"Viber"))return e("#custom-message-popup .chaty-popup-header").text("Viber number is not valid"),e("#custom-message-popup .chaty-popup-body").text("Seems like the Viber number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?"),e("#custom-message-popup").show(),!1}}else if(i=!0,e("#cht-form #SMS").length&&""!=e("#cht-form #SMS").val()){t=jQuery.trim(e("#cht-form #SMS").val());if(check_for_number_chaty(t,"SMS"))return e("#custom-message-popup .chaty-popup-header").text("SMS number is not valid"),e("#custom-message-popup .chaty-popup-body").text("Seems like the SMS number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?"),e("#custom-message-popup").show(),!1}}else if(c=!0,e("#cht-form #Facebook_Messenger").length&&""!=e("#cht-form #Facebook_Messenger").val()){var t=jQuery.trim(e("#Facebook_Messenger").val());if(e("#cht-form #Facebook_Messenger").val(t),!/(?:http:\/\/)?facebook\.com\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*([\w\-]*)/.test(t)&&!/(?:http:\/\/)?m\.me\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*([\w\-]*)/.test(t))return e("#custom-message-popup .chaty-popup-header").text("Facebook page's URL is not valid"),e("#custom-message-popup .chaty-popup-body").text("Please make sure your Facebook page's URL looks like, <br/>https://m.me/YOURPAGE"),e("#custom-message-popup").show(),!1}}else if(o=!0,e("#cht-form #Phone").length&&""!=e("#cht-form #Phone").val()){var t=jQuery.trim(e("#cht-form #Phone").val());if(check_for_number_chaty(t,"Phone"))return e("#custom-message-popup .chaty-popup-header").text("Phone number is not valid"),e("#custom-message-popup .chaty-popup-body").text("Seems like the phone number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?"),e("#custom-message-popup").show(),!1}}else{a=!0;if(e("#cht-form #Whatsapp").length&&""!=e("#cht-form #Whatsapp").val()){var t=jQuery.trim(e("#cht-form #Whatsapp").val());if(check_for_number_chaty(t,"Whatsapp"))return e("#custom-message-popup .chaty-popup-header").text("Whatsapp number is not valid"),e("#custom-message-popup .chaty-popup-body").text("Seems like the WhatsApp number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?"),e("#custom-message-popup").show(),!1}}return r()}e(document).ready(function(){jQuery(document).on("click","#update-chaty-traffic-source-rule",function(e){jQuery(".traffic-options-box").addClass("active"),jQuery("#chaty_traffic_source").val("yes")}),jQuery(document).on("click","#remove-traffic-rules",function(e){jQuery(".traffic-options-box").removeClass("active"),jQuery("#chaty_traffic_source").val("no")}),jQuery(document).on("click",".remove-traffic-option",function(e){jQuery(this).closest(".custom-traffic-rule").remove()}),e(document).on("click",".chaty-switch-toggle",function(){setTimeout(function(){e(".chaty-field-setting").each(function(){e(this).is(":checked")?e(this).closest(".field-setting-col").find(".field-settings").addClass("active"):e(this).closest(".field-setting-col").find(".field-settings").removeClass("active")})},100)}),e(document).on("change",".chaty-close_form_after-setting",function(){setTimeout(function(){e(".chaty-close_form_after-setting").each(function(){e(this).is(":checked")?e(this).closest(".form-field-setting-col").find(".close_form_after-settings").addClass("active"):e(this).closest(".form-field-setting-col").find(".close_form_after-settings").removeClass("active")})},100)}),e(document).on("change",".chaty-redirect-setting",function(){setTimeout(function(){e(".chaty-redirect-setting").each(function(){e(this).is(":checked")?e(this).closest(".form-field-setting-col").find(".redirect_action-settings").addClass("active"):e(this).closest(".form-field-setting-col").find(".redirect_action-settings").removeClass("active")})},100)}),e(document).on("click",".email-setting",function(){setTimeout(function(){e(".email-setting-field").each(function(){e(this).is(":checked")?e(this).closest(".form-field-setting-col").find(".email-settings").addClass("active"):e(this).closest(".form-field-setting-col").find(".email-settings").removeClass("active")})},100)}),e(document).on("click",".chaty-embedded-window",function(){setTimeout(function(){e(".embedded_window-checkbox").each(function(){e(this).is(":checked")?e(this).closest("li.chaty-channel").find(".whatsapp-welcome-message").addClass("active"):e(this).closest("li.chaty-channel").find(".whatsapp-welcome-message").removeClass("active")})},300)}),e(document).on("change","#cht-form input",function(){a=!1,o=!1,c=!1,i=!1,s=!1,n=!1}),e("#cht-form").on("submit",function(){if(t)return!0;set_social_channel_order();var a=0;return e("#chaty-page-options .cht-required").length&&e("#chaty-page-options .cht-required").each(function(){""==jQuery.trim(e(this).val())&&(e(this).addClass("cht-input-error"),a++)}),e(".chaty-data-and-time-rules .cht-required").length&&e(".chaty-data-and-time-rules .cht-required").each(function(){""==jQuery.trim(e(this).val())&&(e(this).addClass("cht-input-error"),a++)}),0==a?h():(e(".cht-input-error:first").focus(),!1)}),e(".close-chaty-popup-btn").on("click",function(t){t.stopPropagation(),e(".chaty-popup").hide(),e(this).hasClass("channel-setting-btn")?e("body, html").animate({scrollTop:e("#channel-list").offset().top-125},250):e(this).hasClass("select-trigger-btn")?e("body, html").animate({scrollTop:e("#trigger-setting").offset().top-50},250):e(this).hasClass("change-status-btn")&&e("body, html").animate({scrollTop:e("#launch-section").offset().top-100},250)}),e(".chaty-popup-inner").on("click",function(e){e.stopPropagation()}),e(".chaty-popup-outer").on("click",function(t){e(".chaty-popup").hide()}),e(".check-for-numbers").on("click",function(){h()}),e(".check-for-device").on("click",function(){r()}),e(".check-for-triggers").on("click",function(){l()}),e(".check-for-status").on("click",function(){u()}),e(".change-status-and-save").on("click",function(){e(".cht_active").prop("checked",!0),t=!0,e(".chaty-popup").hide(),e("#cht-form").trigger("submit")}),e(".status-and-save").on("click",function(){e(".cht_active").prop("checked",!1),t=!0,e(".chaty-popup").hide(),e("#cht-form").trigger("submit")}),e(document).on("click",".preview-section-chaty",function(e){e.stopPropagation()}),e(document).on("click",".preview-section-overlay",function(){e(".preview-help-btn").removeClass("active"),e(".preview-section-chaty").removeClass("active"),e(".preview-section-overlay").removeClass("active")}),e(document).on("click",".preview-help-btn",function(t){return t.preventDefault(),e(this).hasClass("active")?(e(this).removeClass("active"),e(".preview-section-chaty").removeClass("active"),e(".preview-section-overlay").removeClass("active")):(e(this).addClass("active"),e(".preview-section-chaty").addClass("active"),e(".preview-section-overlay").addClass("active")),!1})})}),function(e){jQuery(window).on("popstate",function(e){window.onbeforeunload=null,window.history&&window.history.pushState&&window.history.back()}),jQuery(document).ready(function(){jQuery("body input, body .icon, body textarea, body .btn-cancel:not(.close-btn-set) ").on("click",function(e){window.onbeforeunload=function(e){(e=e||window.event).preventDefault=!0,e.cancelBubble=!0,e.returnValue="Your beautiful goodbye message"}}),jQuery(document).on("submit","form",function(e){window.onbeforeunload=null}),jQuery(document).on("change",".channel-select-input",function(t){var a=e(this).closest("li").attr("data-id");jQuery.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{social:jQuery(this).val(),channel:a,action:"get_chaty_settings"},success:function(e){1==e.status&&(jQuery(".custom-icon-"+e.channel+" svg").html(e.data.svg),jQuery("#chaty-social-"+e.channel).attr("data-channel",e.data.slug),jQuery("#chaty-social-"+e.channel).find(".sp-preview-inner").css("background-color",e.data.color),jQuery("#chaty-social-"+e.channel).find(".chaty-color-field").val(e.data.color),jQuery("#chaty-social-"+e.channel).find(".channels__input").attr("placeholder",e.data.placeholder),jQuery("#chaty-social-"+e.channel).find(".channel-example").text(e.data.example),jQuery("#chaty-social-"+e.channel).find(".chaty-title").val(e.data.title),jQuery("#chaty-social-"+e.channel).find(".icon").attr("data-title",e.data.title),jQuery("#chaty-social-"+e.channel).find(".chaty-color-field").trigger("change"),jQuery(".help-section").html(""),""!=e.data.help_link?jQuery(".help-section").html('<div class="viber-help"><a target="_blank" href="'+e.data.help_link+'">'+e.data.help_title+"</a></div>"):""!=e.data.help_text&&jQuery(".help-section").html('<div class="viber-help"><span class="help-text">'+e.data.help_text+'</span><span class="help-title">'+e.data.help_title+"</span></div>"))}})}),jQuery(document).on("click","#chaty_icons_view",function(e){jQuery(".page-body .chaty-widget").removeClass("vertical").removeClass("horizontal"),jQuery(".page-body .chaty-widget").addClass(jQuery(this).val())}),jQuery(".upg").on("click",function(e){jQuery(".valid_domain_input").val(jQuery(".valid_domain_input").val().replace(" ","")),/^(http(s)?:\/\/)?(www\.)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(jQuery(".valid_domain_input").val())||(e.preventDefault(),jQuery(".valid_domain").fadeIn().css({display:"block"}))}),jQuery(".del_token").on("click",function(t){e.ajax({type:"POST",url:ajaxurl,data:{action:"del_token",nonce_code:cht_nonce_ajax.cht_nonce},success:function(e){location.reload()},error:function(e,t,a){}})}),jQuery(document).on("blur","#channels-selected-list > li:not(#chaty-social-close) .channels__input",function(){jQuery(this).hasClass("border-red")&&""!=jQuery(this).val()&&jQuery(this).removeClass("border-red")});var t=1000000003;jQuery(".show_up").on("click",function(){t+=10,jQuery("#upgrade-modal").css({"z-index":t,display:"block","margin-left":"-258px"})}),jQuery(".color-picker-btn, .color-picker-btn-close, .color-picker-custom button").on("click",function(e){e.preventDefault(),jQuery(".color-picker-box").toggle(),jQuery(".color-picker-btn").toggle()}),jQuery(".color-picker-radio input").on("change",function(){var e=jQuery(this);if(jQuery('.color-picker-custom input[name="cht_custom_color"]').val(""),jQuery(".color-picker-custom .circle").html("?").css({"background-color":"#fff"}),e.prop("checked")){jQuery(".color-picker-radio input").prop("checked",!1),e.prop("checked",!0);var t=e.val(),a=e.prop("title")}else t=jQuery(".color-picker-custom input").val(),a="Custom";""!=t&&-1==t.indexOf("#")&&(t="#"+t),jQuery(".color-picker-btn .circle").css({backgroundColor:t}),jQuery(".color-picker-btn .text").text(a),jQuery("#chaty-social-close ellipse").attr("fill",t)}),jQuery(".color-picker-custom input").on("change",function(){jQuery(".color-picker-radio input").prop("checked",!1);var e=jQuery(this).val();""!=e&&-1==e.indexOf("#")&&(e="#"+e),jQuery(".color-picker-btn .circle").css({backgroundColor:e}),jQuery(".color-picker-btn .text").text("Custom"),jQuery("#chaty-social-close ellipse").attr("fill",e)}),jQuery('[name="cht_position"]').on("change",function(){jQuery("#positionCustom").prop("checked")?jQuery("#positionPro").show():jQuery("#positionPro").hide()}),jQuery(".update_token").on("click",function(t){t.preventDefault();var a=jQuery('input[name="cht_token"]').val();e.ajax({type:"POST",url:ajaxurl,data:{action:"add_token",nonce_code:cht_nonce_ajax.cht_nonce,token:a},beforeSend:function(e){},success:function(e){e?(alert("Your pro plan is activated"),location.reload()):alert("You`ve entered a wrong token")},error:function(e,t,a){}})}),jQuery("textarea[name=cht_cta]").on("keyup",function(e){jQuery(".tooltiptext span").html(jQuery(this).val()),0==jQuery(this).val().length?(jQuery(".cta").hide(200),jQuery(".tooltiptext span").hide(200)):(jQuery(".cta").show(300),jQuery(".tooltiptext span").show(200))})})}(jQuery),function(e){jQuery(document).ready(function(){!function(){function e(){var e=jQuery("#positionBottom"),t=jQuery("#positionSide"),a=jQuery(".preview .page .chaty-widget"),o=jQuery('[name="cht_position"]:checked').val();if("right"===o)a.css({right:"7px",left:"auto",bottom:"7px"});else if("left"===o)a.css({left:"7px",right:"auto",bottom:"7px"});else if("custom"===o){if(e.val())var c=e.val()+"px";else c="7px";if(t.val())var i=t.val()+"px";else i="7px";e.on("change",function(){c=jQuery("#positionBottom").val()+"px",a.css({bottom:c})}),t.on("change",function(){var e=jQuery('[name="positionSide"]:checked').val();i=jQuery(this).val()+"px","right"===e?(jQuery(".page-body .chaty-widget ").removeClass("chaty-widget-icons-left"),jQuery(".page-body .chaty-widget ").addClass("chaty-widget-icons-right"),a.css({right:i,left:"auto"})):"left"===e&&(jQuery(".page-body .chaty-widget ").removeClass("chaty-widget-icons-right"),jQuery(".page-body .chaty-widget ").addClass("chaty-widget-icons-left"),a.css({left:i,right:"auto"}))}),jQuery('[name="positionSide"]').on("change",function(){var e=jQuery('[name="positionSide"]:checked').val();"right"===e?(jQuery(".page-body .chaty-widget ").removeClass("chaty-widget-icons-left"),jQuery(".page-body .chaty-widget ").addClass("chaty-widget-icons-right"),a.css({right:i,left:"auto"})):"left"===e&&(jQuery(".page-body .chaty-widget ").removeClass("chaty-widget-icons-right"),jQuery(".page-body .chaty-widget ").addClass("chaty-widget-icons-left"),a.css({left:i,right:"auto"}))})}}jQuery(".color-picker-radio input").on("change",function(){var e=jQuery(this);e.prop("checked")?e.val():jQuery(".color-picker-custom input").val(),u()}),jQuery(".color-picker-custom input").on("change",function(){jQuery(this).val(),u()}),jQuery(document).on("change","#chaty_default_state",function(){u()}),jQuery("#cht_close_button, #trigger_on_time, #chaty_trigger_on_scroll").on("click",function(){u()}),function(){var e=jQuery("#widgetTooltip"),t=jQuery(".preview .page .icon");function a(){jQuery("[name=cht_cta]").val().length>=1?t.removeClass("no-tooltip"):t.addClass("no-tooltip")}a(),e.on("change",function(){a()})}(),e(),jQuery('input[name="cht_position"]').on("change",function(){var t=jQuery('[name="cht_position"]:checked').val();"right"===t?(jQuery(".page-body .chaty-widget ").removeClass("chaty-widget-icons-left"),jQuery(".page-body .chaty-widget ").addClass("chaty-widget-icons-right")):"left"===t&&(jQuery(".page-body .chaty-widget ").removeClass("chaty-widget-icons-right"),jQuery(".page-body .chaty-widget ").addClass("chaty-widget-icons-left")),e()})}(),jQuery(".popover").hide(),o();var t=jQuery(".channels-icons > .icon-sm"),a=jQuery(".social-inputs");function o(){jQuery("section").is("#pro")||(jQuery(".channels-selected__item").length<=1?(jQuery(".channels-selected__item").hide(),jQuery(".popover").hide()):jQuery(".channels-selected__item").length>=2&&jQuery(".channels-selected__item").show())}jQuery("input[name=cht_custom_color]").on("keyup",function(e){var t=jQuery(this).val();(jQuery(".circle").html(""),""!=t)&&(-1==t.indexOf("#")&&(t="#"+t),jQuery(".color-picker-custom .circle").css({"background-color":t}));jQuery(this).val().length<1&&jQuery(".color-picker-custom .circle").html("?")}),t.on("click",function(){0,o();var c=jQuery(this),i=c.data("social");a.find(".social-form-group");if(c.hasClass("active")){var s=","+jQuery(this).attr("data-social");return n=(n=jQuery(".add_slug").val()).replace(s,""),jQuery(".add_slug").val(n),n=n.replace(s,""),jQuery(".add_slug").val(n),n=n.replace(s,""),jQuery(".add_slug").val(n),n=n.replace(s,""),jQuery(".add_slug").val(n),void c.toggleClass("active")}if(t.addClass("disabled"),icon=jQuery(this).data("social"),"1"==jQuery(".add_slug").val().indexOf(icon)&&""!=jQuery(".add_slug").val()){var n;s=","+icon;n=(n=jQuery(".add_slug").val()).replace(s,""),jQuery(".add_slug").val(n),n=n.replace(s,""),jQuery(".add_slug").val(n),n=n.replace(s,""),jQuery(".add_slug").val(n)}else jQuery(".add_slug").val(jQuery(".add_slug").val()+","+jQuery(this).attr("data-social"));if(!jQuery("section").is("#pro")&&jQuery(".channels-icons > .icon.active").length>=2)return t.removeClass("disabled"),jQuery(".popover").show(),jQuery(".popover .upgrade-link").addClass("active"),void setTimeout(function(){jQuery(".popover .upgrade-link").removeClass("active")},1e3);if(c.toggleClass("active"),jQuery("section").is("#pro"))var r="pro";else r="free";e.ajax({type:"POST",dataType:"json",url:ajaxurl,data:{action:"choose_social",social:i,nonce_code:cht_nonce_ajax.cht_nonce,version:r,widget_index:jQuery("#widget_index").val()},beforeSend:function(e){},success:function(a){var c=jQuery(a),s=c.find(".icon").data("title");c.data("channel");jQuery('.channels-selected div[data-social="'+s+'"]').length||(jQuery("#chaty-social-close").before(c),jQuery("#chaty-social-"+i+" .chaty-whatsapp-setting-textarea").length&&(editorId=jQuery("#chaty-social-"+i+" .chaty-whatsapp-setting-textarea").attr("id"),tinymce.execCommand("mceAddEditor",!0,editorId))),t.removeClass("disabled"),e("#iconWidget").show(),u(),o(),set_social_channel_order(),check_for_chaty_close_button(),jQuery(".chaty-color-field").spectrum({chooseText:"Submit",preferredFormat:"hex",showInput:!0,cancelText:"Cancel",move:function(e){jQuery(this).val(e.toHexString()),chaty_set_bg_color()}}),check_for_chaty_close_button()},error:function(e,t,a){}}),o()}),jQuery("body").on("click",".icon, .btn-cancel:not(.close-btn-set)",function(e){if(!jQuery(this).hasClass("close-btn-set")&&(e.preventDefault(),!jQuery(this).hasClass("icon")||!jQuery(this).hasClass("active"))){if(icon=jQuery(this).data("social"),jQuery(this).hasClass("btn-cancel")){jQuery('.icon.active[data-social^="'+icon+'"]').removeClass("active");var t=","+icon,a=jQuery(".add_slug").val();a=a.replace(t,""),jQuery(".add_slug").val(a)}jQuery("#chaty-social-"+icon).remove();jQuery(this).parent(".channels-selected__item"),jQuery(this).data("social");u(),o(),set_social_channel_order(),check_for_chaty_close_button()}}),jQuery(".btn-help").on("click",function(e){window.open("https://premio.io/help/chaty/","_blank")}),jQuery(".free-custom-radio, .free-custom-checkbox").on("click",function(e){e.preventDefault()});var c=jQuery("[name=cht_cta]"),i=jQuery(".preview .tooltip-show");c.on("keyup",function(){var e=jQuery(".preview .page .icon");c.val().length>=1?e.removeClass("no-tooltip"):e.addClass("no-tooltip"),i.attr("data-title",c.val())});var s,n,r='<svg version="1.1" id="ch" 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">\n <style type="text/css">.st0 {fill: #A886CD;} .st1 {fill: #FFFFFF;}\n </style><g><circle class="st0" cx="-469" cy="534.7" r="27"/></g><path class="st1" 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"/>\n <path class="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,0\n C-478.6,530.8-478.2,530.5-477.7,530.5z"/>\n <path class="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,0\n C-478.6,533.9-478.2,533.5-477.7,533.5z"/>\n </svg>',l=document.getElementById("iconWidget");jQuery(".color-picker-radio input:checked").val();function u(){var t,a,o=!1;if(jQuery(".single-channel-setting").addClass("active"),jQuery("#iconWidget").removeClass("img-p-active"),d()?(0===jQuery(".js-chanel-desktop:checked").length?(t=!1,jQuery(".page-body .chaty-widget").hide()):jQuery(".page-body .chaty-widget").show(),1===jQuery(".js-chanel-desktop:checked").length&&(t=jQuery(".js-chanel-desktop:checked").closest("li").find(".icon.icon-md").html(),jQuery(".js-chanel-desktop:checked").closest(".channels-selected__item").hasClass("img-active")&&jQuery("#iconWidget").addClass("img-p-active")),jQuery(".js-chanel-desktop:checked").length>1&&(t=r,o=!0)):(0===jQuery(".js-chanel-mobile:checked").length?(a=!1,jQuery(".page-body .chaty-widget").hide()):jQuery(".page-body .chaty-widget").show(),1===jQuery(".js-chanel-mobile:checked").length&&(a=jQuery(".js-chanel-mobile:checked").closest("li").find(".icon.icon-md").html(),jQuery(".js-chanel-mobile:checked").closest(".channels-selected__item").hasClass("img-active")&&jQuery("#iconWidget").addClass("img-p-active")),jQuery(".js-chanel-mobile:checked").length>1&&(a=r,o=!0)),s=t,n=a,d()?h(s,o):h(n,o),e("#iconWidget .pop-number").remove(),jQuery("#cht_pending_messages").is(":checked")){var c=jQuery("#cht_number_of_messages").val();""!=c&&c>0&&(e("#iconWidget").append("<span class='pop-number'>"+c+"</span>"),e("#iconWidget .pop-number").css("color",jQuery("#cht_number_color").val()),e("#iconWidget .pop-number").css("background",jQuery("#cht_number_bg_color").val()))}var i=".js-chanel-mobile";if(d())i=".js-chanel-desktop";"open"==jQuery("#chaty_default_state").val()&&jQuery(i+":checked").length>1&&e("#iconWidget .pop-number").remove(),e("#cta-box span").css("color",e("#cht_cta_text_color").val()),e("#cta-box span").css("background",e("#cht_cta_bg_color").val()),e("#custom-css").html("<style>.preview .page .chaty-widget .icon:before {border-color: transparent "+e("#cht_cta_bg_color").val()+" transparent transparent } .preview .page .chaty-widget[style*='left: auto;'] .icon:before {border-color: transparent transparent transparent "+e("#cht_cta_bg_color").val()+"}</style>"),jQuery(".single-channel-setting").addClass("active"),1===jQuery("#channel-list .icon.active").length&&(jQuery(".single-channel-setting").removeClass("active"),"open"==jQuery("#chaty_default_state").val()&&jQuery(".hide-show-button").removeClass("active"))}function h(e,t){if(l.innerHTML=e||"",t){var a=jQuery(".color-picker-custom input").val()?jQuery(".color-picker-custom input").val():jQuery(".color-picker-radio input:checked").val();if(""!=a)-1==a.indexOf("#")&&(a="#"+a);jQuery(".preview .page svg circle").css({fill:a}),jQuery("#chaty-social-close ellipse").attr("fill",a)}thisVal=jQuery("#chaty_default_state").val(),"open"==thisVal?jQuery(".hide-show-button").addClass("active"):jQuery(".hide-show-button").removeClass("active"),jQuery(".chaty-widget").removeClass("active").removeClass("hover").removeClass("click").removeClass("hide_arrow"),"open"==thisVal?(jQuery(".chaty-widget").addClass("active").addClass("click"),"open"==thisVal&&jQuery(o+":checked").length>1&&jQuery(".chaty-widget").addClass("hide_arrow")):"hover"==thisVal?jQuery(".chaty-widget").addClass("hover"):jQuery(".chaty-widget").addClass("click"),jQuery(".chaty-channels").html("");var o=".js-chanel-mobile";if(d())o=".js-chanel-desktop";"open"==thisVal&&jQuery(o+":checked").length>1?(jQuery("#chaty_attention_effect").val(""),jQuery("#chaty_attention_effect, .test_textarea").attr("disabled",!0),jQuery("#chaty_attention_effect option:first-child").text("Doesn't apply for the open state"),"Doesn't apply for the open state"!=jQuery(".test_textarea").val()&&jQuery(".test_textarea").attr("data-value",jQuery(".test_textarea").val()),jQuery(".test_textarea").val("Doesn't apply for the open state"),jQuery("#cht_number_of_messages").attr("disabled",!0),jQuery("#cht_pending_messages").attr("disabled",!0),jQuery(".disable-message").addClass("label-tooltip").addClass("icon"),jQuery("#cht_pending_messages").attr("checked",!1),jQuery(".pending-message-items").removeClass("active"),jQuery(".cta-action-radio input").attr("disabled",!0)):(jQuery("#chaty_attention_effect, .test_textarea").attr("disabled",!1),jQuery("#chaty_attention_effect option:first-child").text("None"),jQuery(".test_textarea").attr("placeholder",""),"Doesn't apply for the open state"==jQuery(".test_textarea").val()&&jQuery(".test_textarea").val(jQuery(".test_textarea").attr("data-value")),jQuery("#cht_number_of_messages").attr("disabled",!1),jQuery("#cht_pending_messages").attr("disabled",!1),jQuery(".disable-message").removeClass("label-tooltip").removeClass("icon"),jQuery(".cta-action-radio input").attr("disabled",!1)),jQuery(".page-body .chaty-widget").removeClass("vertical").removeClass("horizontal"),jQuery(o+":checked").length>1?(jQuery(o+":checked").each(function(){var e=jQuery(this).closest("li").find(".icon").html(),t=(e=jQuery(this).closest("li").find(".icon").html(),jQuery(this).closest("li").find(".chaty-title").val()),a=jQuery(this).closest(".channels-selected__item").hasClass("img-active")?"img-active":"";""!=t&&(t="<span class='social-tooltip'>"+t+"</span>"),jQuery(".chaty-channels").append("<div class='social-item-box "+a+"'><span class='tooltip-icon'>"+e+"</span>"+t+"</div>")}),"open"==jQuery("#chaty_default_state").val()&&jQuery("#cht_close_button").is(":checked")?(jQuery("#iconWidget").css("display","block"),jQuery(".chaty-widget .tooltiptext").css("display","block"),jQuery(".chaty-widget").removeClass("hide-arrow")):"open"!=jQuery("#chaty_default_state").val()?(jQuery("#iconWidget").css("display","block"),jQuery(".chaty-widget .tooltiptext").css("display","block"),jQuery(".chaty-widget").removeClass("hide-arrow")):"open"==jQuery("#chaty_default_state").val()&&(jQuery("#iconWidget").hide(),jQuery(".chaty-widget .tooltiptext").hide(),jQuery(".chaty-widget").addClass("hide-arrow")),jQuery(".chaty-widget").removeClass("has-single"),jQuery(".page-body .chaty-widget").addClass(jQuery("#chaty_icons_view").val())):1==jQuery(o+":checked").length?("open"!=jQuery("#chaty_default_state").val()||jQuery("#cht_close_button").is(":checked")?"open"!=jQuery("#chaty_default_state").val()&&(jQuery("#iconWidget").css("display","block"),jQuery(".chaty-widget .tooltiptext").css("display","block"),jQuery(".chaty-widget").removeClass("hide-arrow")):(jQuery("#iconWidget").css("display","block"),jQuery(".chaty-widget .tooltiptext").css("display","block"),jQuery(".chaty-widget").removeClass("hide-arrow")),jQuery(".chaty-widget").addClass("has-single"),jQuery(".chaty-widget").removeClass("hide-arrow")):0==jQuery(o+":checked").length&&(jQuery("#iconWidget").hide(),jQuery(".chaty-widget .tooltiptext").hide(),jQuery(".chaty-widget").addClass("hide-arrow"),jQuery(".chaty-widget").removeClass("has-single")),jQuery(".chaty-channels .remove-icon-img").remove(),jQuery("#trigger_on_time").is(":checked")?jQuery("#chaty_trigger_time").attr("readonly",!1):jQuery("#chaty_trigger_time").attr("readonly",!0),jQuery("#chaty_trigger_on_scroll").is(":checked")?jQuery("#chaty_trigger_on_page_scroll").attr("readonly",!1):jQuery("#chaty_trigger_on_page_scroll").attr("readonly",!0),""==jQuery(".chaty-widget .tooltiptext").text()?jQuery(".chaty-widget .tooltiptext").hide():"open"==jQuery("#chaty_default_state").val()&&jQuery(o+":checked").length>1?jQuery(".chaty-widget .tooltiptext").hide():jQuery(".chaty-widget .tooltiptext").css("display","block")}function d(){return"checked"===jQuery("#previewDesktop").attr("checked")}jQuery("#testUpload").on("change",function(){this.value.length>0?document.querySelector(".js-upload").disabled=!1:(document.querySelector(".js-upload").disabled=!0,document.getElementById("uploadInput").checked=!1)}),jQuery(document).on("keyup","textarea.test_textarea",function(){u()}),jQuery(".js-switch-preview").on("change",function(){d()?jQuery(this).closest(".preview").removeClass("mobiel-view"):jQuery(this).closest(".preview").addClass("mobiel-view"),u()}),jQuery(document).on("change","input[name='cht_pending_messages']",function(){jQuery("#cht_pending_messages").is(":checked")?jQuery(".pending-message-items").addClass("active"):jQuery(".pending-message-items").removeClass("active"),u()}),jQuery(document).on("change","#cht_number_of_messages",function(){u()}),jQuery(document).on("keyup","#cht_number_of_messages",function(){u()}),jQuery(document).on("blur","#cht_number_of_messages",function(){u()}),jQuery(document).on("change",".js-chanel-icon",function(){u()}),jQuery(document).on("change",".js-widget-i",function(e){r=e.target.classList.contains("js-upload")?jQuery(".file-preview-image").last().parent().html():jQuery("i[data-type="+jQuery(".js-widget-i:checked").val()+"]").html(),u()}),"chat-image"!==jQuery(".js-widget-i:checked").attr("data-type")&&(r=jQuery("i[data-type="+jQuery(".js-widget-i:checked").attr("data-type")+"]").html(),u())}),jQuery(document).ready(function(){jQuery(document).on("click",".chaty-popup-box button, #chaty-intro-popup",function(t){t.stopPropagation();var a=jQuery("#chaty_update_popup_status").val();e("#chaty-intro-popup").remove(),e.ajax({type:"POST",url:ajaxurl,data:{action:"update_popup_status",nonce:a},beforeSend:function(e){},success:function(e){},error:function(e,t,a){}})}),jQuery(document).on("click",".chaty-popup-box",function(e){e.stopPropagation()}),jQuery(document).on("click",".remove-chaty-options",function(t){t.preventDefault(),t.stopPropagation(),confirm("Are you sure you want to delete this widget?")&&e.ajax({type:"POST",url:ajaxurl,data:{action:"remove_chaty_widget",nonce_code:cht_nonce_ajax.cht_nonce,widget_index:jQuery("#widget_index").val()},beforeSend:function(e){},success:function(e){window.location=e},error:function(e,t,a){}})});window.location.href;window.location.href.indexOf("page=chaty-app&widget=")>-1&&jQuery("#toplevel_page_chaty-app .wp-submenu.wp-submenu-wrap li").each(function(){var e=jQuery(this).find("a").attr("href");void 0!==e&&(jQuery(this).removeClass("current"),window.location.href.indexOf(e)>-1&&e.indexOf("&widget=")>-1&&jQuery(this).addClass("current"))})})}(jQuery),jQuery(window).on("resize",function(){check_for_preview_pos()}),jQuery(window).on("scroll",function(){check_for_preview_pos()}),jQuery(document).ready(function(){check_for_preview_pos()});var totalPageOptions=0,pageOptionContent="",totalDateAndTimeOptions=0,dateAndTimeOptionContent="";jQuery(document).ready(function(){function e(){jQuery(".chaty-whatsapp-setting-textarea").length&&jQuery(".chaty-whatsapp-setting-textarea").each(function(){jQuery("#cht_social_embedded_message_"+jQuery(this).data("id")+"_ifr").length&&tinymce.get(jQuery(this).attr("id")).remove(),tinymce.execCommand("mceAddEditor",!0,jQuery(this).attr("id"))})}totalPageOptions=parseInt(jQuery(".chaty-page-option").length),pageOptionContent=jQuery(".chaty-page-options-html").html(),jQuery(".chaty-page-options-html").remove(),totalDateAndTimeOptions=parseInt(jQuery(".chaty-date-time-option").length),dateAndTimeOptionContent=jQuery(".chaty-date-and-time-options-html").html(),jQuery(".chaty-date-and-time-options-html").remove(),jQuery("#create-rule").on("click",function(){jQuery(".page-options").toggle()}),jQuery("#create-data-and-time-rule").on("click",function(){jQuery(".chaty-data-and-time-rules").toggle()}),jQuery(document).on("change","#chaty_attention_effect",function(){var e=jQuery(this).attr("data-effect");""!=e&&jQuery("#iconWidget").removeClass("chaty-animation-"+e),jQuery("#iconWidget").removeClass("start-now"),jQuery("#iconWidget").addClass("chaty-animation-"+jQuery(this).val()).addClass("start-now"),jQuery(this).attr("data-effect",jQuery(this).val())}),setInterval(function(){var e=jQuery("#chaty_attention_effect").attr("data-effect");""!=e?(jQuery("#iconWidget").removeClass("chaty-animation-"+e),jQuery("#iconWidget").removeClass("start-now"),setTimeout(function(){jQuery("#iconWidget").addClass("chaty-animation-"+jQuery("#chaty_attention_effect").val()).addClass("start-now")},1e3)):jQuery("#chaty_attention_effect").attr("data-effect",jQuery("#chaty_attention_effect").val())},5e3),jQuery(document).on("click",".remove-chaty",function(){jQuery(".page-options").toggle()}),jQuery(document).on("click",".remove-page-option",function(){jQuery(".chaty-data-and-time-rules ").toggle()}),jQuery("#image-upload-content .custom-control-label").on("click",function(e){return e.stopPropagation(),jQuery(this).closest(".custom-control").find("input[type=radio]").attr("checked",!0),jQuery(".js-widget-i").trigger("change"),!1}),jQuery(".chaty-color-field").spectrum({chooseText:"Submit",preferredFormat:"hex",cancelText:"Cancel",showInput:!0,move:function(e){jQuery(this).val(e.toHexString()),chaty_set_bg_color(),change_custom_preview()}}),jQuery(".chaty-color-field").on("change",function(){chaty_set_bg_color(),change_custom_preview()}),jQuery(".remove-chaty-img").on("click",function(e){e.stopPropagation()}),jQuery("#channels-selected-list").sortable({placeholder:"ui-chaty-state-hl",items:"li:not(#chaty-social-close)",stop:function(){e()},update:function(t,a){set_social_channel_order(),change_custom_preview(),e()}}),jQuery(document).ready(function(){e()}),jQuery(".close-button-img img, .close-button-img .image-upload").on("click",function(){var e=wp.media({title:"Upload Image",multiple:!1,library:{type:"image"}}).open().on("select",function(t){var a=e.state().get("selection").first();imageData=a.toJSON(),jQuery(".close-button-img").addClass("active"),jQuery(".close-button-img input").val(imageData.id),jQuery(".close-button-img img").attr("src",imageData.url),change_custom_preview()})}),jQuery(".remove-close-img").on("click",function(){default_image=jQuery("#default_image").val(),jQuery(".close-button-img").removeClass("active"),jQuery(".close-button-img input").val(""),jQuery(".close-button-img img").attr("src",default_image),change_custom_preview()}),jQuery(document).on("click",".chaty-widget.click",function(e){e.preventDefault(),jQuery(".chaty-widget").toggleClass("active")}),jQuery(document).on("change",".url-options.cht-required",function(e){thisVal=jQuery(this).val(),siteURL=jQuery("#chaty_site_url").val(),newURL=siteURL,"page_has_url"==thisVal?newURL=siteURL:"page_contains"==thisVal?newURL=siteURL+"%s%":"page_start_with"==thisVal?newURL=siteURL+"s%":"page_end_with"==thisVal&&(newURL=siteURL+"%s"),jQuery(this).closest(".url-content").find(".chaty-url").text(newURL)}),check_for_chaty_close_button(),chaty_set_bg_color(),change_custom_preview(),jQuery(".chaty-settings.cls-btn a, .close-btn-set").on("click",function(e){e.preventDefault(),jQuery(".cls-btn-settings, .close-btn-set").toggleClass("active")}),0==jQuery("input[name='cht_position']:checked").length&&(jQuery("#right-position").attr("checked",!0),jQuery("input[name='cht_position']:checked").trigger("change")),0==jQuery("input[name='widget_icon']:checked").length&&(jQuery("input[name='widget_icon']:first").attr("checked",!0),jQuery("input[name='widget_icon']:checked").trigger("change")),jQuery(".form-fonts").on("change",function(){var e=jQuery(this).val();jQuery(".chaty-google-font").remove(),""!=e?("Default"!=jQuery(".form-fonts option:selected").data("group")&&jQuery("head").append('<link href="https://fonts.googleapis.com/css?family='+e+':400,600,700" rel="stylesheet" type="text/css" class="chaty-google-font">'),jQuery(".preview-section-chaty #admin-preview .page-body").css("font-family",e)):jQuery(".preview-section-chaty #admin-preview .page-body").attr("style","")})}),jQuery(window).on("load",function(){check_for_chaty_close_button(),chaty_set_bg_color(),jQuery(".chaty-page-options .chaty-page-option").removeClass("last"),jQuery(".chaty-page-options .chaty-page-option:last").addClass("last"),jQuery(".url-options.cht-required").each(function(){jQuery(this).trigger("change")});var e=jQuery(".form-fonts").val();jQuery(".chaty-google-font").remove(),""!=e&&("Default"!=jQuery(".form-fonts option:selected").data("group")&&jQuery("head").append('<link href="https://fonts.googleapis.com/css?family='+e+':400,600,700" rel="stylesheet" type="text/css" class="chaty-google-font">'),jQuery(".preview-section-chaty #admin-preview .page-body").css("font-family",e))});var selectedsocialSlug="";function upload_chaty_image(e){selectedsocialSlug=e;var t=wp.media({title:"Upload Image",multiple:!1,library:{type:"image"}}).open().on("select",function(e){var a=t.state().get("selection").first();imageData=a.toJSON(),jQuery("#cht_social_image_"+selectedsocialSlug).val(imageData.id),jQuery(".custom-image-"+selectedsocialSlug+" img").attr("src",imageData.url),jQuery("#chaty-social-"+selectedsocialSlug+" .channels-selected__item").addClass("img-active"),change_custom_preview()})}function toggle_chaty_setting(e){if(jQuery("#chaty-social-"+e).find(".chaty-advance-settings").toggle(),"Contact_Us"==e&&jQuery("#Contact_Us-close-btn").length){var t=jQuery("#Contact_Us-close-btn").data("nonce");jQuery("#Contact_Us-close-btn").hasClass("active")||(jQuery("#Contact_Us-close-btn").addClass("active"),jQuery.ajax({type:"POST",url:ajaxurl,data:{nonce:t,action:"update_channel_setting"},success:function(e){}}))}change_custom_preview()}function chaty_set_bg_color(){jQuery(".chaty-color-field:not(.button-color)").each(function(){""!=jQuery(this).val()&&"#ffffff"!=jQuery(this).val()&&("Linkedin"!=jQuery(this).closest("li").data("id")||"Linkedin"==jQuery(this).closest("li").data("id")&&"#ffffff"!=jQuery(this).val())&&(defaultColor=jQuery(this).val(),jQuery(this).closest(".channels-selected__item").find(".color-element").css("fill",defaultColor),jQuery(this).closest(".channels-selected__item").find(".custom-chaty-image").css("background",defaultColor),jQuery(this).closest(".channels-selected__item").find(".facustom-icon").css("background",defaultColor))}),change_custom_preview()}function upload_qr_code(){var e=wp.media({title:"Upload QR Image",multiple:!1,library:{type:"image"}}).open().on("select",function(t){var a=e.state().get("selection").first();imageData=a.toJSON(),jQuery("#upload_qr_code_val").val(imageData.id),jQuery("#upload_qr_code img").attr("src",imageData.url),jQuery(".remove-qr-code").addClass("active"),change_custom_preview()})}function remove_qr_code(){jQuery(".remove-qr-code").removeClass("active"),jQuery("#upload_qr_code_val").val(""),default_image=jQuery("#default_image").val(),jQuery("#upload_qr_code img").attr("src",default_image),change_custom_preview()}function remove_chaty_image(e){default_image=jQuery("#default_image").val(),jQuery("#chaty-social-"+e+" .channels-selected__item").removeClass("img-active"),jQuery("#cht_social_image_"+e).val(""),jQuery("#cht_social_image_src_"+e).attr("src",default_image),change_custom_preview()}var baseIcon='<svg version="1.1" id="ch" 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">\n <style type="text/css">.st0 {fill: #A886CD;} .st1 {fill: #FFFFFF;}\n </style><g><circle class="st0" cx="-469" cy="534.7" r="27"/></g><path class="st1" 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"/>\n <path class="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,0\n C-478.6,530.8-478.2,530.5-477.7,530.5z"/>\n <path class="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,0\n C-478.6,533.9-478.2,533.5-477.7,533.5z"/>\n </svg>',defaultIcon='<svg version="1.1" id="ch" 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">\n <style type="text/css">.st0 {fill: #A886CD;} .st1 {fill: #FFFFFF;}\n </style><g><circle class="st0" cx="-469" cy="534.7" r="27"/></g><path class="st1" 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"/>\n <path class="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,0\n C-478.6,530.8-478.2,530.5-477.7,530.5z"/>\n <path class="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,0\n C-478.6,533.9-478.2,533.5-477.7,533.5z"/>\n </svg>',iconBlock=document.getElementById("iconWidget");function set_social_channel_order(){socialString=[],jQuery("#channels-selected-list li").each(function(){socialString.push(jQuery(this).attr("data-id"))}),socialString=socialString.join(","),jQuery("#cht_numb_slug").val(socialString),check_for_chaty_close_button()}function check_for_chaty_close_button(){jQuery("#channels-selected-list > li:not(.chaty-cls-setting)").length>=2?jQuery("#chaty-social-close").show():jQuery("#chaty-social-close").hide(),change_custom_preview();var e="";jQuery("#channels-selected-list > li").each(function(){"undefined"!=jQuery(this).attr("data-id")&&""!=jQuery(this).attr("data-id")&&(e+=jQuery(this).attr("data-id")+","),e=e.trimRight(",")}),jQuery(".add_slug").val(e)}function change_custom_preview(){var e,t,a=!1;jQuery("#iconWidget").removeClass("img-p-active"),getChtPreviewDesktop()?(0===jQuery(".js-chanel-desktop:checked").length&&(e=!1),1===jQuery(".js-chanel-desktop:checked").length&&(e=jQuery(".js-chanel-desktop:checked").closest("li").find(".icon.icon-md").html(),jQuery(".js-chanel-desktop:checked").closest(".channels-selected__item").hasClass("img-active")&&jQuery("#iconWidget").addClass("img-p-active")),jQuery(".js-chanel-desktop:checked").length>1&&(e=defaultIcon,a=!0)):(0===jQuery(".js-chanel-mobile:checked").length&&(t=!1),1===jQuery(".js-chanel-mobile:checked").length&&(t=jQuery(".js-chanel-mobile:checked").closest("li").find(".icon.icon-md").html(),jQuery(".js-chanel-mobile:checked").closest(".channels-selected__item").hasClass("img-active")&&jQuery("#iconWidget").addClass("img-p-active")),jQuery(".js-chanel-mobile:checked").length>1&&(t=defaultIcon,a=!0)),desktopIcon=e,mobileIcon=t,getChtPreviewDesktop()?setChtIcon(desktopIcon,a):setChtIcon(mobileIcon,a),jQuery("#channels-selected-list > li.chaty-channel").length<=1?jQuery(".o-channel, .font-section").removeClass("active"):jQuery(".o-channel, .font-section").addClass("active")}function getChtPreviewDesktop(){return"checked"===jQuery("#previewDesktop").attr("checked")}function setChtIcon(e,t){if((iconBlock=document.getElementById("iconWidget")).innerHTML=e||"",t){var a=jQuery(".color-picker-custom input").val()?jQuery(".color-picker-custom input").val():jQuery(".color-picker-radio input:checked").val();jQuery(".preview .page svg circle").css({fill:a}),jQuery("#chaty-social-close ellipse").attr("fill",a)}jQuery(".js-widget-i:checked").trigger("change")}
|
1 |
+
function check_for_number_chaty(e,t){return!(""==e||("+"==e[0]&&(e=e.substr(1,e.length)),"Phone"==t&&"*"==e[0]&&(e=e.substr(1,e.length)),!isNaN(e)))}function check_for_preview_pos(){if(jQuery(".chaty-setting-form").length)if(jQuery(window).width()>1179){var e=parseInt(jQuery(".chaty-setting-form").offset().top);jQuery(".btn-save-sticky, .chaty-sticky-buttons").css("top",e+58),jQuery(".preview").css("top",e+18),jQuery(".btn-help").css("top",e+58+145),jQuery("a.remove-chaty-widget-sticky").css("top",e+58+145+119)}else jQuery(".btn-save-sticky, .chaty-sticky-buttons").attr("style",""),jQuery(".preview").attr("style",""),jQuery(".btn-help").attr("style",""),jQuery("a.remove-chaty-widget-sticky").attr("style","");if(jQuery("#scroll-to-item").length&&jQuery("#admin-preview").length&&((e=jQuery("body").hasClass("has-premio-box")?jQuery("#scroll-to-item").offset().top-jQuery(window).scrollTop()-625:jQuery("#scroll-to-item").offset().top-jQuery(window).scrollTop()-485)<0?(e=Math.abs(e),jQuery("#admin-preview").css("margin-top",-1*e+"px")):jQuery("#admin-preview").css("margin-top","0")),jQuery(window).height()<=1180){var t=285;jQuery(window).width()<=600&&(t=310),jQuery(".chaty-sticky-buttons").css("top",jQuery(window).height()/2-t/2+"px")}}jQuery(document).ready(function(){jQuery("#cht-form").submit(function(){if(set_social_channel_order(),phoneNumberReg=/^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/,jQuery("#cht-form #Whatsapp").length&&""!=jQuery("#cht-form #Whatsapp").val()&&(InputVal=jQuery.trim(jQuery("#cht-form #Whatsapp").val()),check_for_number_chaty(InputVal,"Whatsapp")&&!confirm("Seems like the WhatsApp number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?")))return jQuery("#cht-form #Whatsapp").focus(),!1;if(jQuery("#cht-form #Phone").length&&""!=jQuery("#cht-form #Phone").val()&&(InputVal=jQuery.trim(jQuery("#cht-form #Phone").val()),check_for_number_chaty(InputVal,"Phone")&&!confirm("Seems like the phone number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?")))return jQuery("#cht-form #Phone").focus(),!1;if(jQuery("#cht-form #Facebook_Messenger").length&&""!=jQuery("#cht-form #Facebook_Messenger").val()&&(faceBookMeReg=/(?:http:\/\/)?m\.me\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*([\w\-]*)/,faceBookReg=/(?:http:\/\/)?facebook\.com\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*([\w\-]*)/,InputVal=jQuery.trim(jQuery("#Facebook_Messenger").val()),jQuery("#cht-form #Facebook_Messenger").val(InputVal),!faceBookReg.test(InputVal)&&!faceBookMeReg.test(InputVal)))return alert("Please make sure your Facebook page's URL looks like, \nhttps://m.me/YOURPAGE"),jQuery("#cht-form #Facebook_Messenger").focus(),!1;if(jQuery("#cht-form #SMS").length&&""!=jQuery("#cht-form #SMS").val()&&(InputVal=jQuery.trim(jQuery("#cht-form #SMS").val()),check_for_number_chaty(InputVal,"SMS")&&!confirm("Seems like the SMS number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?")))return jQuery("#cht-form #SMS").focus(),!1;if(jQuery("#cht-form #Viber").length&&""!=jQuery("#cht-form #Viber").val()&&(InputVal=jQuery.trim(jQuery("#cht-form #Viber").val()),check_for_number_chaty(InputVal,"Viber")&&!confirm("Seems like the Viber number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?")))return jQuery("#cht-form #Viber").focus(),!1;if(errorCount=0,jQuery("#chaty-page-options .cht-required").length&&jQuery("#chaty-page-options .cht-required").each(function(){""==jQuery.trim(jQuery(this).val())&&(jQuery(this).addClass("cht-input-error"),errorCount++)}),jQuery(".chaty-data-and-time-rules .cht-required").length&&jQuery(".chaty-data-and-time-rules .cht-required").each(function(){""==jQuery.trim(jQuery(this).val())&&(jQuery(this).addClass("cht-input-error"),errorCount++)}),jQuery("#channels-selected-list .phone-number").length&&jQuery("#channels-selected-list .phone-number").each(function(){if(""!=jQuery.trim(jQuery(this).val())&&(jQuery.trim(jQuery(this).val()).length>13&&!confirm("Seems like the "+jQuery(this).data("label")+" number you're trying to enter isn't valid. Would you like to publish it anyway?")))return jQuery(this).focus(),!1}),0!=errorCount)return!1;var e=0;return!jQuery("#channels-selected-list > li:not(#chaty-social-close").find(".channels__input").length||(jQuery("#channels-selected-list > li:not(#chaty-social-close").find(".channels__input").each(function(){""==jQuery.trim(jQuery(this).val())&&e++}),e!=jQuery("#channels-selected-list > li:not(#chaty-social-close").find(".channels__input").length)||(!!confirm("You need to fill out at least one channel details for Chaty to show up on your website. Click cancel to keep editing.")||(jQuery("#channels-selected-list > li:not(#chaty-social-close").find(".channels__input").each(function(){""==jQuery.trim(jQuery(this).val())&&(e=1)}),jQuery("#channels-selected-list > li:not(#chaty-social-close").find(".channels__input").addClass("border-red"),jQuery("#channels-selected-list > li:not(#chaty-social-close) .channels__input:first").focus(),!1))}),jQuery(document).on("click",".preview-section-chaty",function(e){e.stopPropagation()}),jQuery(document).on("click",".preview-section-overlay",function(){jQuery(".preview-help-btn").removeClass("active"),jQuery(".preview-section-chaty").removeClass("active"),jQuery(".preview-section-overlay").removeClass("active")}),jQuery(document).on("click",".preview-help-btn",function(e){return e.preventDefault(),jQuery(this).hasClass("active")?(jQuery(this).removeClass("active"),jQuery(".preview-section-chaty").removeClass("active"),jQuery(".preview-section-overlay").removeClass("active")):(jQuery(this).addClass("active"),jQuery(".preview-section-chaty").addClass("active"),jQuery(".preview-section-overlay").addClass("active")),!1})}),function(e,t){jQuery.fn[t]=function(e){return e?this.bind("resize",(a=e,function(){var e=this,t=arguments;i?clearTimeout(i):c&&a.apply(e,t),i=setTimeout(function(){c||a.apply(e,t),i=null},o||100)})):this.trigger(t);var a,o,c,i}}(jQuery,"smartModalResize"),function(e){"use strict";var t={init:function(t){var a={top:"auto",left:"auto",autoOpen:!1,overlayOpacity:.5,overlayColor:"#000",overlayClose:!0,overlayParent:"body",closeOnEscape:!0,closeButtonClass:".close",transitionIn:"",transitionOut:"",onOpen:!1,onClose:!1,zIndex:function(){return(t=Math.max.apply(Math,e.makeArray(jQuery("*").map(function(){return jQuery(this).css("z-index")}).filter(function(){return e.isNumeric(this)}).map(function(){return parseInt(this,10)}))))===-1/0?0:t+1;var t},updateZIndexOnOpen:!0,hasVariableWidth:!1};return t=e.extend(a,t),this.each(function(){var e=t,a=jQuery('<div class="lean-overlay"></div>'),o=jQuery(this);a.css({display:"none",position:"fixed","z-index":e.updateZIndexOnOpen?0:e.zIndex(),top:0,left:0,height:"100%",width:"100%",background:e.overlayColor,opacity:e.overlayOpacity,overflow:"auto"}).appendTo(e.overlayParent),o.css({display:"none",position:"fixed","z-index":e.updateZIndexOnOpen?0:e.zIndex()+1,left:parseInt(e.left,10)>-1?e.left+"px":"50%",top:parseInt(e.top,10)>-1?e.top+"px":"50%"}),o.bind("openModal",function(){var t=e.updateZIndexOnOpen?e.zIndex():parseInt(a.css("z-index"),10),c=t+1;""!==e.transitionIn&&""!==e.transitionOut&&o.removeClass(e.transitionOut).addClass(e.transitionIn),o.css({display:"block","margin-left":(parseInt(e.left,10)>-1?0:-o.outerWidth()/2)+"px","margin-top":(parseInt(e.top,10)>-1?0:-o.outerHeight()/2)+"px","z-index":c}),a.css({"z-index":t,display:"block"}),e.onOpen&&"function"==typeof e.onOpen&&e.onOpen(o[0])}),o.bind("closeModal",function(){""!==e.transitionIn&&""!==e.transitionOut?(o.removeClass(e.transitionIn).addClass(e.transitionOut),o.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){o.css("display","none"),a.css("display","none")})):(o.css("display","none"),a.css("display","none")),e.onClose&&"function"==typeof e.onClose&&e.onClose(o[0])}),a.click(function(){e.overlayClose&&o.trigger("closeModal")}),jQuery(document).keydown(function(t){e.closeOnEscape&&27===t.keyCode&&o.trigger("closeModal")}),jQuery(window).smartModalResize(function(){e.hasVariableWidth&&o.css({"margin-left":(parseInt(e.left,10)>-1?0:-o.outerWidth()/2)+"px","margin-top":(parseInt(e.top,10)>-1?0:-o.outerHeight()/2)+"px"})}),o.on("click",e.closeButtonClass,function(e){o.trigger("closeModal"),e.preventDefault()}),e.autoOpen&&o.trigger("openModal")})}};e.fn.easyModal=function(a){return t[a]?t[a].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof a&&a?void e.error("Method "+a+" does not exist on jQuery.easyModal"):t.init.apply(this,arguments)}}(jQuery),function(e){jQuery(document).ready(function(){jQuery("body input, body .icon, body textarea, body .btn-cancel:not(.close-btn-set) ").click(function(e){window.onbeforeunload=function(e){(e=e||window.event).preventDefault=!0,e.cancelBubble=!0,e.returnValue="Your beautiful goodbye message"}}),jQuery(document).on("submit","form",function(e){window.onbeforeunload=null}),jQuery(document).on("change",".channel-select-input",function(t){var a=e(this).closest("li").attr("data-id");jQuery.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{social:jQuery(this).val(),channel:a,action:"get_chaty_settings"},success:function(e){1==e.status&&(jQuery(".custom-icon-"+e.channel+" svg").html(e.data.svg),jQuery("#chaty-social-"+e.channel).attr("data-channel",e.data.slug),jQuery("#chaty-social-"+e.channel).find(".sp-preview-inner").css("background-color",e.data.color),jQuery("#chaty-social-"+e.channel).find(".chaty-color-field").val(e.data.color),jQuery("#chaty-social-"+e.channel).find(".channels__input").attr("placeholder",e.data.placeholder),jQuery("#chaty-social-"+e.channel).find(".channel-example").text(e.data.example),jQuery("#chaty-social-"+e.channel).find(".chaty-title").val(e.data.title),jQuery("#chaty-social-"+e.channel).find(".icon").attr("data-title",e.data.title),jQuery("#chaty-social-"+e.channel).find(".chaty-color-field").trigger("change"),jQuery(".help-section").html(""),""!=e.data.help_link?jQuery(".help-section").html('<div class="viber-help"><a target="_blank" href="'+e.data.help_link+'">'+e.data.help_title+"</a></div>"):""!=e.data.help_text&&jQuery(".help-section").html('<div class="viber-help"><span class="help-text">'+e.data.help_text+'</span><span class="help-title">'+e.data.help_title+"</span></div>"))}})}),jQuery(document).on("click","#chaty_icons_view",function(e){jQuery(".page-body .chaty-widget").removeClass("vertical").removeClass("horizontal"),jQuery(".page-body .chaty-widget").addClass(jQuery(this).val())}),jQuery(".upg").click(function(e){jQuery(".valid_domain_input").val(jQuery(".valid_domain_input").val().replace(" ","")),/^(http(s)?:\/\/)?(www\.)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(jQuery(".valid_domain_input").val())||(e.preventDefault(),jQuery(".valid_domain").fadeIn().css({display:"block"}))}),jQuery(".del_token").click(function(t){e.ajax({type:"POST",url:ajaxurl,data:{action:"del_token",nonce_code:cht_nonce_ajax.cht_nonce},success:function(e){location.reload()},error:function(e,t,a){}})}),jQuery(document).on("blur","#channels-selected-list > li:not(#chaty-social-close) .channels__input",function(){jQuery(this).hasClass("border-red")&&""!=jQuery(this).val()&&jQuery(this).removeClass("border-red")}),jQuery(".easy-modal").easyModal({top:150,overlay:.2}),jQuery(".easy-modal-open").click(function(e){var t=jQuery(this).attr("href");jQuery(t).trigger("openModal"),e.preventDefault()}),jQuery(".easy-modal-close").click(function(e){e.preventDefault(),jQuery(".easy-modal").trigger("closeModal")});var t=1000000003;jQuery(".show_up").click(function(){t+=10,jQuery("#upgrade-modal").css({"z-index":t,display:"block","margin-left":"-258px"})}),jQuery(".color-picker-btn, .color-picker-btn-close, .color-picker-custom button").on("click",function(e){e.preventDefault(),jQuery(".color-picker").toggle(),jQuery(".color-picker-btn").toggle()}),jQuery(".color-picker-radio input").change(function(){var e=jQuery(this);if(jQuery('.color-picker-custom input[name="cht_custom_color"]').val(""),jQuery(".color-picker-custom .circle").html("?").css({"background-color":"#fff"}),e.prop("checked")){jQuery(".color-picker-radio input").prop("checked",!1),e.prop("checked",!0);var t=e.val(),a=e.prop("title")}else t=jQuery(".color-picker-custom input").val(),a="Custom";""!=t&&-1==t.indexOf("#")&&(t="#"+t),jQuery(".color-picker-btn .circle").css({backgroundColor:t}),jQuery(".color-picker-btn .text").text(a),jQuery("#chaty-social-close ellipse").attr("fill",t)}),jQuery(".color-picker-custom input").change(function(){jQuery(".color-picker-radio input").prop("checked",!1);var e=jQuery(this).val();""!=e&&-1==e.indexOf("#")&&(e="#"+e),jQuery(".color-picker-btn .circle").css({backgroundColor:e}),jQuery(".color-picker-btn .text").text("Custom"),jQuery("#chaty-social-close ellipse").attr("fill",e)}),jQuery('[name="cht_position"]').change(function(){jQuery("#positionCustom").prop("checked")?jQuery("#positionPro").show():jQuery("#positionPro").hide()}),jQuery(".update_token").on("click",function(t){t.preventDefault();var a=jQuery('input[name="cht_token"]').val();e.ajax({type:"POST",url:ajaxurl,data:{action:"add_token",nonce_code:cht_nonce_ajax.cht_nonce,token:a},beforeSend:function(e){},success:function(e){e?(alert("Your pro plan is activated"),location.reload()):alert("You`ve entered a wrong token")},error:function(e,t,a){}})}),jQuery("textarea[name=cht_cta]").keyup(function(e){jQuery(".tooltiptext span").html(jQuery(this).val()),0==jQuery(this).val().length?(jQuery(".cta").hide(200),jQuery(".tooltiptext span").hide(200)):(jQuery(".cta").show(300),jQuery(".tooltiptext span").show(200))})})}(jQuery),function(e){jQuery(document).ready(function(){!function(){function e(){var e=jQuery("#positionBottom"),t=jQuery("#positionSide"),a=jQuery(".preview .page .chaty-widget"),o=jQuery('[name="cht_position"]:checked').val();if("right"===o)a.css({right:"7px",left:"auto",bottom:"7px"});else if("left"===o)a.css({left:"7px",right:"auto",bottom:"7px"});else if("custom"===o){if(e.val())var c=e.val()+"px";else c="7px";if(t.val())var i=t.val()+"px";else i="7px";e.change(function(){c=jQuery("#positionBottom").val()+"px",a.css({bottom:c})}),t.change(function(){var e=jQuery('[name="positionSide"]:checked').val();i=jQuery(this).val()+"px","right"===e?(jQuery(".page-body .chaty-widget ").removeClass("chaty-widget-icons-left"),jQuery(".page-body .chaty-widget ").addClass("chaty-widget-icons-right"),a.css({right:i,left:"auto"})):"left"===e&&(jQuery(".page-body .chaty-widget ").removeClass("chaty-widget-icons-right"),jQuery(".page-body .chaty-widget ").addClass("chaty-widget-icons-left"),a.css({left:i,right:"auto"}))}),jQuery('[name="positionSide"]').change(function(){var e=jQuery('[name="positionSide"]:checked').val();"right"===e?(jQuery(".page-body .chaty-widget ").removeClass("chaty-widget-icons-left"),jQuery(".page-body .chaty-widget ").addClass("chaty-widget-icons-right"),a.css({right:i,left:"auto"})):"left"===e&&(jQuery(".page-body .chaty-widget ").removeClass("chaty-widget-icons-right"),jQuery(".page-body .chaty-widget ").addClass("chaty-widget-icons-left"),a.css({left:i,right:"auto"}))})}}jQuery(".color-picker-radio input").change(function(){var e=jQuery(this);e.prop("checked")?e.val():jQuery(".color-picker-custom input").val(),u()}),jQuery(".color-picker-custom input").change(function(){jQuery(this).val(),u()}),jQuery(document).on("change","#chaty_default_state",function(){u()}),jQuery("#cht_close_button, #trigger_on_time, #chaty_trigger_on_scroll").click(function(){u()}),function(){var e=jQuery("#widgetTooltip"),t=jQuery(".preview .page .icon");function a(){jQuery("[name=cht_cta]").val().length>=1?t.removeClass("no-tooltip"):t.addClass("no-tooltip")}a(),e.change(function(){a()})}(),e(),jQuery('input[name="cht_position"]').change(function(){var t=jQuery('[name="cht_position"]:checked').val();"right"===t?(jQuery(".page-body .chaty-widget ").removeClass("chaty-widget-icons-left"),jQuery(".page-body .chaty-widget ").addClass("chaty-widget-icons-right")):"left"===t&&(jQuery(".page-body .chaty-widget ").removeClass("chaty-widget-icons-right"),jQuery(".page-body .chaty-widget ").addClass("chaty-widget-icons-left")),e()})}(),jQuery(".popover").hide(),o();var t=jQuery(".channels-icons > .icon-sm"),a=jQuery(".social-inputs");function o(){jQuery("section").is("#pro")||(jQuery(".channels-selected__item").length<=1?(jQuery(".channels-selected__item").hide(),jQuery(".popover").hide()):jQuery(".channels-selected__item").length>=2&&jQuery(".channels-selected__item").show())}jQuery("input[name=cht_custom_color]").keyup(function(e){var t=jQuery(this).val();(jQuery(".circle").html(""),""!=t)&&(-1==t.indexOf("#")&&(t="#"+t),jQuery(".color-picker-custom .circle").css({"background-color":t}));jQuery(this).val().length<1&&jQuery(".color-picker-custom .circle").html("?")}),t.on("click",function(){0,o();var c=jQuery(this),i=c.data("social");a.find(".social-form-group");if(c.hasClass("active")){var n=","+jQuery(this).attr("data-social");return r=(r=jQuery(".add_slug").val()).replace(n,""),jQuery(".add_slug").val(r),r=r.replace(n,""),jQuery(".add_slug").val(r),r=r.replace(n,""),jQuery(".add_slug").val(r),r=r.replace(n,""),jQuery(".add_slug").val(r),void c.toggleClass("active")}if(t.addClass("disabled"),icon=jQuery(this).data("social"),"1"==jQuery(".add_slug").val().indexOf(icon)&&""!=jQuery(".add_slug").val()){var r;n=","+icon;r=(r=jQuery(".add_slug").val()).replace(n,""),jQuery(".add_slug").val(r),r=r.replace(n,""),jQuery(".add_slug").val(r),r=r.replace(n,""),jQuery(".add_slug").val(r)}else jQuery(".add_slug").val(jQuery(".add_slug").val()+","+jQuery(this).attr("data-social"));if(!jQuery("section").is("#pro")&&jQuery(".channels-icons > .icon.active").length>=2)return jQuery(".popover").show().effect("shake",{times:3},600),void t.removeClass("disabled");if(c.toggleClass("active"),jQuery("section").is("#pro"))var s="pro";else s="free";e.ajax({type:"POST",dataType:"json",url:ajaxurl,data:{action:"choose_social",social:i,nonce_code:cht_nonce_ajax.cht_nonce,version:s,widget_index:jQuery("#widget_index").val()},beforeSend:function(e){},success:function(e){var a=jQuery(e),c=a.find(".icon").data("title");jQuery('.channels-selected div[data-social="'+c+'"]').length||jQuery("#chaty-social-close").before(a),t.removeClass("disabled"),u(),o(),jQuery(".chaty-color-field").spectrum({chooseText:"Submit",preferredFormat:"hex",showInput:!0,cancelText:"Cancel",move:function(e){jQuery(this).val(e.toHexString()),chaty_set_bg_color()}}),check_for_chaty_close_button()},error:function(e,t,a){}}),o()}),jQuery("body").on("click",".icon, .btn-cancel:not(.close-btn-set)",function(e){if(!jQuery(this).hasClass("close-btn-set")&&(e.preventDefault(),!jQuery(this).hasClass("icon")||!jQuery(this).hasClass("active"))){if(icon=jQuery(this).data("social"),jQuery(this).hasClass("btn-cancel")){jQuery('.icon.active[data-social^="'+icon+'"]').removeClass("active");var t=","+icon,a=jQuery(".add_slug").val();a=a.replace(t,""),jQuery(".add_slug").val(a)}jQuery("#chaty-social-"+icon).remove();jQuery(this).parent(".channels-selected__item"),jQuery(this).data("social");u(),o(),set_social_channel_order(),check_for_chaty_close_button()}}),jQuery(".btn-help").click(function(e){window.open("https://premio.io/help/chaty/","_blank")}),jQuery(".free-custom-radio, .free-custom-checkbox").on("click",function(e){e.preventDefault()});var c=jQuery("[name=cht_cta]"),i=jQuery(".preview .tooltip-show");c.keyup(function(){var e=jQuery(".preview .page .icon");c.val().length>=1?e.removeClass("no-tooltip"):e.addClass("no-tooltip"),i.attr("data-title",c.val())});var n,r,s='<svg version="1.1" id="ch" 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">\n <style type="text/css">.st0 {fill: #A886CD;} .st1 {fill: #FFFFFF;}\n </style><g><circle class="st0" cx="-469" cy="534.7" r="27"/></g><path class="st1" 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"/>\n <path class="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,0\n C-478.6,530.8-478.2,530.5-477.7,530.5z"/>\n <path class="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,0\n C-478.6,533.9-478.2,533.5-477.7,533.5z"/>\n </svg>',l=document.getElementById("iconWidget");jQuery(".color-picker-radio input:checked").val();function u(){var t,a,o=!1;if(jQuery("#iconWidget").removeClass("img-p-active"),h()?(0===jQuery(".js-chanel-desktop:checked").length?(t=!1,jQuery(".page-body .chaty-widget").hide()):jQuery(".page-body .chaty-widget").show(),1===jQuery(".js-chanel-desktop:checked").length&&(t=jQuery(".js-chanel-desktop:checked").closest("li").find(".icon.icon-md").html(),jQuery(".js-chanel-desktop:checked").closest(".channels-selected__item").hasClass("img-active")&&jQuery("#iconWidget").addClass("img-p-active")),jQuery(".js-chanel-desktop:checked").length>1&&(t=s,o=!0)):(0===jQuery(".js-chanel-mobile:checked").length?(a=!1,jQuery(".page-body .chaty-widget").hide()):jQuery(".page-body .chaty-widget").show(),1===jQuery(".js-chanel-mobile:checked").length&&(a=jQuery(".js-chanel-mobile:checked").closest("li").find(".icon.icon-md").html(),jQuery(".js-chanel-mobile:checked").closest(".channels-selected__item").hasClass("img-active")&&jQuery("#iconWidget").addClass("img-p-active")),jQuery(".js-chanel-mobile:checked").length>1&&(a=s,o=!0)),n=t,r=a,h()?y(n,o):y(r,o),e("#iconWidget .pop-number").remove(),jQuery("#cht_pending_messages").is(":checked")){var c=jQuery("#cht_number_of_messages").val();""!=c&&c>0&&(e("#iconWidget").append("<span class='pop-number'>"+c+"</span>"),e("#iconWidget .pop-number").css("color",jQuery("#cht_number_color").val()),e("#iconWidget .pop-number").css("background",jQuery("#cht_number_bg_color").val()))}}function y(e,t){if(l.innerHTML=e||"",t){var a=jQuery(".color-picker-custom input").val()?jQuery(".color-picker-custom input").val():jQuery(".color-picker-radio input:checked").val();if(""!=a)-1==a.indexOf("#")&&(a="#"+a);jQuery(".preview .page svg circle").css({fill:a}),jQuery("#chaty-social-close ellipse").attr("fill",a)}thisVal=jQuery("#chaty_default_state").val(),"open"==thisVal?jQuery(".hide-show-button").addClass("active"):jQuery(".hide-show-button").removeClass("active"),jQuery(".chaty-widget").removeClass("active").removeClass("hover").removeClass("click").removeClass("hide_arrow"),"open"==thisVal?jQuery(".chaty-widget").addClass("active").addClass("click").addClass("hide_arrow"):"hover"==thisVal?jQuery(".chaty-widget").addClass("hover"):jQuery(".chaty-widget").addClass("click"),jQuery(".chaty-channels").html("");var o=".js-chanel-mobile";if(h())o=".js-chanel-desktop";"open"==thisVal&&jQuery(o+":checked").length>1?(jQuery("#chaty_attention_effect").val(""),jQuery("#chaty_attention_effect, .test_textarea").attr("disabled",!0),jQuery("#chaty_attention_effect option:first-child").text("Doesn't apply for the open state"),"Doesn't apply for the open state"!=jQuery(".test_textarea").val()&&jQuery(".test_textarea").attr("data-value",jQuery(".test_textarea").val()),jQuery(".test_textarea").val("Doesn't apply for the open state"),jQuery("#cht_number_of_messages").attr("disabled",!0),jQuery("#cht_pending_messages").attr("disabled",!0),jQuery(".disable-message").addClass("label-tooltip").addClass("icon"),jQuery("#cht_pending_messages").attr("checked",!1),jQuery(".pending-message-items").removeClass("active"),jQuery(".cta-action-radio input").attr("disabled",!0)):(jQuery("#chaty_attention_effect, .test_textarea").attr("disabled",!1),jQuery("#chaty_attention_effect option:first-child").text("None"),jQuery(".test_textarea").attr("placeholder",""),"Doesn't apply for the open state"==jQuery(".test_textarea").val()&&jQuery(".test_textarea").val(jQuery(".test_textarea").attr("data-value")),jQuery("#cht_number_of_messages").attr("disabled",!1),jQuery("#cht_pending_messages").attr("disabled",!1),jQuery(".disable-message").removeClass("label-tooltip").removeClass("icon"),jQuery(".cta-action-radio input").attr("disabled",!1)),jQuery(o+":checked").length>1?(jQuery(o+":checked").each(function(){var e=jQuery(this).closest("li").find(".icon").html(),t=(e=jQuery(this).closest("li").find(".icon").html(),jQuery(this).closest("li").find(".chaty-title").val()),a=jQuery(this).closest(".channels-selected__item").hasClass("img-active")?"img-active":"";""!=t&&(t="<span class='social-tooltip'>"+t+"</span>"),jQuery(".chaty-channels").append("<div class='social-item-box "+a+"'><span class='tooltip-icon'>"+e+"</span>"+t+"</div>")}),"open"==jQuery("#chaty_default_state").val()&&jQuery("#cht_close_button").is(":checked")?(jQuery("#iconWidget").css("display","block"),jQuery(".chaty-widget .tooltiptext").css("display","block"),jQuery(".chaty-widget").removeClass("hide-arrow")):"open"!=jQuery("#chaty_default_state").val()?(jQuery("#iconWidget").css("display","block"),jQuery(".chaty-widget .tooltiptext").css("display","block"),jQuery(".chaty-widget").removeClass("hide-arrow")):"open"==jQuery("#chaty_default_state").val()&&(jQuery("#iconWidget").hide(),jQuery(".chaty-widget .tooltiptext").hide(),jQuery(".chaty-widget").addClass("hide-arrow")),jQuery(".chaty-widget").removeClass("has-single")):1==jQuery(o+":checked").length?("open"!=jQuery("#chaty_default_state").val()||jQuery("#cht_close_button").is(":checked")?"open"!=jQuery("#chaty_default_state").val()&&(jQuery("#iconWidget").css("display","block"),jQuery(".chaty-widget .tooltiptext").css("display","block"),jQuery(".chaty-widget").removeClass("hide-arrow")):(jQuery("#iconWidget").css("display","block"),jQuery(".chaty-widget .tooltiptext").css("display","block"),jQuery(".chaty-widget").removeClass("hide-arrow")),jQuery(".chaty-widget").addClass("has-single")):0==jQuery(o+":checked").length&&(jQuery("#iconWidget").hide(),jQuery(".chaty-widget .tooltiptext").hide(),jQuery(".chaty-widget").addClass("hide-arrow"),jQuery(".chaty-widget").removeClass("has-single")),jQuery(".chaty-channels .remove-icon-img").remove(),jQuery("#trigger_on_time").is(":checked")?jQuery("#chaty_trigger_time").attr("readonly",!1):jQuery("#chaty_trigger_time").attr("readonly",!0),jQuery("#chaty_trigger_on_scroll").is(":checked")?jQuery("#chaty_trigger_on_page_scroll").attr("readonly",!1):jQuery("#chaty_trigger_on_page_scroll").attr("readonly",!0),""==jQuery(".chaty-widget .tooltiptext").text()?jQuery(".chaty-widget .tooltiptext").hide():"open"==jQuery("#chaty_default_state").val()&&jQuery(o+":checked").length>1?jQuery(".chaty-widget .tooltiptext").hide():jQuery(".chaty-widget .tooltiptext").css("display","block"),jQuery(".page-body .chaty-widget").removeClass("vertical").removeClass("horizontal"),jQuery(".page-body .chaty-widget").addClass(jQuery("#chaty_icons_view").val())}function h(){return"checked"===jQuery("#previewDesktop").attr("checked")}jQuery("#testUpload").on("change",function(){this.value.length>0?document.querySelector(".js-upload").disabled=!1:(document.querySelector(".js-upload").disabled=!0,document.getElementById("uploadInput").checked=!1)}),jQuery(document).on("keyup","textarea.test_textarea",function(){u()}),jQuery(".js-switch-preview").on("change",function(){h()?jQuery(this).closest(".preview").removeClass("mobiel-view"):jQuery(this).closest(".preview").addClass("mobiel-view"),u()}),jQuery(document).on("change","input[name='cht_pending_messages']",function(){jQuery("#cht_pending_messages").is(":checked")?jQuery(".pending-message-items").addClass("active"):jQuery(".pending-message-items").removeClass("active"),u()}),jQuery(document).on("change","#cht_number_of_messages",function(){u()}),jQuery(document).on("keyup","#cht_number_of_messages",function(){u()}),jQuery(document).on("blur","#cht_number_of_messages",function(){u()}),jQuery(document).on("change",".js-chanel-icon",function(){u()}),jQuery(document).on("change",".js-widget-i",function(e){s=e.target.classList.contains("js-upload")?jQuery(".file-preview-image").last().parent().html():jQuery("i[data-type="+e.target.dataset.type+"]").html(),u()}),"chat-image"!==jQuery(".js-widget-i:checked").attr("data-type")&&(s=jQuery("i[data-type="+jQuery(".js-widget-i:checked").attr("data-type")+"]").html(),u())}),jQuery(document).ready(function(){jQuery(document).on("click",".chaty-popup-box button, #chaty-intro-popup",function(t){t.stopPropagation();var a=jQuery("#chaty_update_popup_status").val();e("#chaty-intro-popup").remove(),e.ajax({type:"POST",url:ajaxurl,data:{action:"update_popup_status",nonce:a},beforeSend:function(e){},success:function(e){},error:function(e,t,a){}})}),jQuery(document).on("click",".chaty-popup-box",function(e){e.stopPropagation()}),jQuery(document).on("click",".remove-chaty-options",function(t){t.preventDefault(),t.stopPropagation(),confirm("Are you sure you want to delete this widget?")&&e.ajax({type:"POST",url:ajaxurl,data:{action:"remove_chaty_widget",nonce_code:cht_nonce_ajax.cht_nonce,widget_index:jQuery("#widget_index").val()},beforeSend:function(e){},success:function(e){window.location=e},error:function(e,t,a){}})});window.location.href;window.location.href.indexOf("page=chaty-app&widget=")>-1&&jQuery("#toplevel_page_chaty-app .wp-submenu.wp-submenu-wrap li").each(function(){var e=jQuery(this).find("a").attr("href");void 0!==e&&(jQuery(this).removeClass("current"),window.location.href.indexOf(e)>-1&&e.indexOf("&widget=")>-1&&jQuery(this).addClass("current"))})})}(jQuery),jQuery(window).resize(function(){check_for_preview_pos()}),jQuery(window).scroll(function(){check_for_preview_pos()}),jQuery(document).ready(function(){check_for_preview_pos()});var totalPageOptions=0,pageOptionContent="",totalDateAndTimeOptions=0,dateAndTimeOptionContent="";jQuery(document).ready(function(){totalPageOptions=parseInt(jQuery(".chaty-page-option").length),pageOptionContent=jQuery(".chaty-page-options-html").html(),jQuery(".chaty-page-options-html").remove(),totalDateAndTimeOptions=parseInt(jQuery(".chaty-date-time-option").length),dateAndTimeOptionContent=jQuery(".chaty-date-and-time-options-html").html(),jQuery(".chaty-date-and-time-options-html").remove(),jQuery("#create-rule").click(function(){jQuery(".page-options").toggle()}),jQuery("#create-data-and-time-rule").click(function(){jQuery(".chaty-data-and-time-rules").toggle()}),jQuery(document).on("change","#chaty_attention_effect",function(){var e=jQuery(this).attr("data-effect");""!=e&&jQuery("#iconWidget").removeClass("chaty-animation-"+e),jQuery("#iconWidget").removeClass("start-now"),jQuery("#iconWidget").addClass("chaty-animation-"+jQuery(this).val()).addClass("start-now"),jQuery(this).attr("data-effect",jQuery(this).val())}),setInterval(function(){var e=jQuery("#chaty_attention_effect").attr("data-effect");""!=e?(jQuery("#iconWidget").removeClass("chaty-animation-"+e),jQuery("#iconWidget").removeClass("start-now"),setTimeout(function(){jQuery("#iconWidget").addClass("chaty-animation-"+jQuery("#chaty_attention_effect").val()).addClass("start-now")},1e3)):jQuery("#chaty_attention_effect").attr("data-effect",jQuery("#chaty_attention_effect").val())},5e3),jQuery(document).on("click",".remove-chaty",function(){jQuery(".page-options").toggle()}),jQuery(document).on("click",".remove-page-option",function(){jQuery(".chaty-data-and-time-rules ").toggle()}),jQuery("#image-upload-content .custom-control-label").click(function(e){return e.stopPropagation(),jQuery(this).closest(".custom-control").find("input[type=radio]").attr("checked",!0),jQuery(".js-widget-i").trigger("change"),!1}),jQuery(".chaty-color-field").spectrum({chooseText:"Submit",preferredFormat:"hex",cancelText:"Cancel",showInput:!0,move:function(e){jQuery(this).val(e.toHexString()),chaty_set_bg_color(),change_custom_preview()}}),jQuery(".chaty-color-field").change(function(){chaty_set_bg_color(),change_custom_preview()}),jQuery(".remove-chaty-img").on("click",function(e){e.stopPropagation()}),jQuery("#channels-selected-list").sortable({placeholder:"ui-chaty-state-hl",items:"li:not(#chaty-social-close)",update:function(e,t){set_social_channel_order(),change_custom_preview()}}),jQuery(".close-button-img img, .close-button-img .image-upload").click(function(){var e=wp.media({title:"Upload Image",multiple:!1,library:{type:"image"}}).open().on("select",function(t){var a=e.state().get("selection").first();imageData=a.toJSON(),jQuery(".close-button-img").addClass("active"),jQuery(".close-button-img input").val(imageData.id),jQuery(".close-button-img img").attr("src",imageData.url),change_custom_preview()})}),jQuery(".remove-close-img").click(function(){default_image=jQuery("#default_image").val(),jQuery(".close-button-img").removeClass("active"),jQuery(".close-button-img input").val(""),jQuery(".close-button-img img").attr("src",default_image),change_custom_preview()}),jQuery(document).on("click",".chaty-widget.click",function(e){e.preventDefault(),jQuery(".chaty-widget").toggleClass("active")}),jQuery(document).on("change",".url-options.cht-required",function(e){thisVal=jQuery(this).val(),siteURL=jQuery("#chaty_site_url").val(),newURL=siteURL,"page_has_url"==thisVal?newURL=siteURL:"page_contains"==thisVal?newURL=siteURL+"%s%":"page_start_with"==thisVal?newURL=siteURL+"s%":"page_end_with"==thisVal&&(newURL=siteURL+"%s"),jQuery(this).closest(".url-content").find(".chaty-url").text(newURL)}),check_for_chaty_close_button(),chaty_set_bg_color(),change_custom_preview(),jQuery(".chaty-settings.cls-btn a, .close-btn-set").click(function(e){e.preventDefault(),jQuery(".cls-btn-settings, .close-btn-set").toggleClass("active")}),0==jQuery("input[name='cht_position']:checked").length&&(jQuery("#right-position").attr("checked",!0),jQuery("input[name='cht_position']:checked").trigger("change")),0==jQuery("input[name='widget_icon']:checked").length&&(jQuery("input[name='widget_icon']:first").attr("checked",!0),jQuery("input[name='widget_icon']:checked").trigger("change")),jQuery(".form-fonts").on("change",function(){var e=jQuery(this).val();jQuery(".chaty-google-font").remove(),""!=e?(jQuery("head").append('<link href="https://fonts.googleapis.com/css?family='+e+':400,600,700" rel="stylesheet" type="text/css" class="chaty-google-font">'),jQuery(".preview-section-chaty #admin-preview .page-body").css("font-family",e)):jQuery(".preview-section-chaty #admin-preview .page-body").attr("style","")})}),jQuery(window).load(function(){check_for_chaty_close_button(),chaty_set_bg_color(),jQuery(".chaty-page-options .chaty-page-option").removeClass("last"),jQuery(".chaty-page-options .chaty-page-option:last").addClass("last"),jQuery(".url-options.cht-required").each(function(){jQuery(this).trigger("change")});var e=jQuery(".form-fonts").val();jQuery(".chaty-google-font").remove(),""!=e&&(jQuery("head").append('<link href="https://fonts.googleapis.com/css?family='+e+':400,600,700" rel="stylesheet" type="text/css" class="chaty-google-font">'),jQuery(".preview-section-chaty #admin-preview .page-body").css("font-family",e))});var selectedsocialSlug="";function upload_chaty_image(e){selectedsocialSlug=e;var t=wp.media({title:"Upload Image",multiple:!1,library:{type:"image"}}).open().on("select",function(e){var a=t.state().get("selection").first();imageData=a.toJSON(),jQuery("#cht_social_image_"+selectedsocialSlug).val(imageData.id),jQuery(".custom-image-"+selectedsocialSlug+" img").attr("src",imageData.url),jQuery("#chaty-social-"+selectedsocialSlug+" .channels-selected__item").addClass("img-active"),change_custom_preview()})}function toggle_chaty_setting(e){jQuery("#chaty-social-"+e).find(".chaty-advance-settings").toggle(),change_custom_preview()}function chaty_set_bg_color(){jQuery(".chaty-color-field").each(function(){""!=jQuery(this).val()&&"#ffffff"!=jQuery(this).val()&&("Linkedin"!=jQuery(this).closest("li").data("id")||"Linkedin"==jQuery(this).closest("li").data("id")&&"#ffffff"!=jQuery(this).val())&&(defaultColor=jQuery(this).val(),jQuery(this).closest(".channels-selected__item").find(".color-element").css("fill",defaultColor),jQuery(this).closest(".channels-selected__item").find(".custom-chaty-image").css("background",defaultColor),jQuery(this).closest(".channels-selected__item").find(".facustom-icon").css("background",defaultColor))}),change_custom_preview()}function upload_qr_code(){var e=wp.media({title:"Upload QR Image",multiple:!1,library:{type:"image"}}).open().on("select",function(t){var a=e.state().get("selection").first();imageData=a.toJSON(),jQuery("#upload_qr_code_val").val(imageData.id),jQuery("#upload_qr_code img").attr("src",imageData.url),jQuery(".remove-qr-code").addClass("active"),change_custom_preview()})}function remove_qr_code(){jQuery(".remove-qr-code").removeClass("active"),jQuery("#upload_qr_code_val").val(""),default_image=jQuery("#default_image").val(),jQuery("#upload_qr_code img").attr("src",default_image),change_custom_preview()}function remove_chaty_image(e){default_image=jQuery("#default_image").val(),jQuery("#chaty-social-"+e+" .channels-selected__item").removeClass("img-active"),jQuery("#cht_social_image_"+e).val(""),jQuery("#cht_social_image_src_"+e).attr("src",default_image),change_custom_preview()}var baseIcon='<svg version="1.1" id="ch" 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">\n <style type="text/css">.st0 {fill: #A886CD;} .st1 {fill: #FFFFFF;}\n </style><g><circle class="st0" cx="-469" cy="534.7" r="27"/></g><path class="st1" 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"/>\n <path class="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,0\n C-478.6,530.8-478.2,530.5-477.7,530.5z"/>\n <path class="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,0\n C-478.6,533.9-478.2,533.5-477.7,533.5z"/>\n </svg>',defaultIcon='<svg version="1.1" id="ch" 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">\n <style type="text/css">.st0 {fill: #A886CD;} .st1 {fill: #FFFFFF;}\n </style><g><circle class="st0" cx="-469" cy="534.7" r="27"/></g><path class="st1" 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"/>\n <path class="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,0\n C-478.6,530.8-478.2,530.5-477.7,530.5z"/>\n <path class="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,0\n C-478.6,533.9-478.2,533.5-477.7,533.5z"/>\n </svg>',iconBlock=document.getElementById("iconWidget");function set_social_channel_order(){socialString=[],jQuery("#channels-selected-list li").each(function(){socialString.push(jQuery(this).attr("data-id"))}),socialString=socialString.join(","),jQuery("#cht_numb_slug").val(socialString),check_for_chaty_close_button()}function check_for_chaty_close_button(){jQuery("#channels-selected-list > li:not(.chaty-cls-setting)").length>=2?jQuery("#chaty-social-close").show():jQuery("#chaty-social-close").hide(),change_custom_preview();var e="";jQuery("#channels-selected-list > li").each(function(){"undefined"!=jQuery(this).attr("data-id")&&""!=jQuery(this).attr("data-id")&&(e+=jQuery(this).attr("data-id")+","),e=e.trimRight(",")}),jQuery(".add_slug").val(e)}function change_custom_preview(){var e,t,a=!1;jQuery("#iconWidget").removeClass("img-p-active"),getChtPreviewDesktop()?(0===jQuery(".js-chanel-desktop:checked").length&&(e=!1),1===jQuery(".js-chanel-desktop:checked").length&&(e=jQuery(".js-chanel-desktop:checked").closest("li").find(".icon.icon-md").html(),jQuery(".js-chanel-desktop:checked").closest(".channels-selected__item").hasClass("img-active")&&jQuery("#iconWidget").addClass("img-p-active")),jQuery(".js-chanel-desktop:checked").length>1&&(e=defaultIcon,a=!0)):(0===jQuery(".js-chanel-mobile:checked").length&&(t=!1),1===jQuery(".js-chanel-mobile:checked").length&&(t=jQuery(".js-chanel-mobile:checked").closest("li").find(".icon.icon-md").html(),jQuery(".js-chanel-mobile:checked").closest(".channels-selected__item").hasClass("img-active")&&jQuery("#iconWidget").addClass("img-p-active")),jQuery(".js-chanel-mobile:checked").length>1&&(t=defaultIcon,a=!0)),desktopIcon=e,mobileIcon=t,getChtPreviewDesktop()?setChtIcon(desktopIcon,a):setChtIcon(mobileIcon,a),jQuery("#channels-selected-list > li.chaty-channel").length<=1?jQuery(".o-channel, .font-section").removeClass("active"):jQuery(".o-channel, .font-section").addClass("active")}function getChtPreviewDesktop(){return"checked"===jQuery("#previewDesktop").attr("checked")}function setChtIcon(e,t){if((iconBlock=document.getElementById("iconWidget")).innerHTML=e||"",t){var a=jQuery(".color-picker-custom input").val()?jQuery(".color-picker-custom input").val():jQuery(".color-picker-radio input:checked").val();jQuery(".preview .page svg circle").css({fill:a}),jQuery("#chaty-social-close ellipse").attr("fill",a)}jQuery(".js-widget-i:checked").trigger("change")}
|
admin/assets/js/select2.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
/*! Select2 4.
|
2 |
-
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,i,h,s,o,f,g,m,v,y,_,r,a,b;function w(e,t){return r.call(e,t)}function l(e,t){var n,i,r,s,o,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(o=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[o])&&(e[o]=e[o].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(i=n.slice(0,u).join("/"),h)for(d=h.length;0<d;d-=1)if(r=(r=f[h.slice(0,d).join("/")])&&r[i]){s=r,a=u;break}if(s)break;!l&&g&&g[i]&&(l=g[i],c=u)}!s&&l&&(s=l,a=c),s&&(n.splice(0,a,s),e=n.join("/"))}return e}function x(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),o.apply(h,e.concat([t,n]))}}function A(t){return function(e){m[t]=e}}function D(e){if(w(v,e)){var t=v[e];delete v[e],_[e]=!0,s.apply(h,t)}if(!w(m,e)&&!w(_,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?c(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},r=Object.prototype.hasOwnProperty,a=[].slice,b=/\.js$/,f=function(e,t){var n,i=c(e),r=i[0],s=t[1];return e=i[1],r&&(n=D(r=l(r,s))),r?e=n&&n.normalize?n.normalize(e,function(t){return function(e){return l(e,t)}}(s)):l(e,s):(r=(i=c(e=l(e,s)))[0],e=i[1],r&&(n=D(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},g={require:function(e){return x(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:function(e){return function(){return y&&y.config&&y.config[e]||{}}}(e)}}},s=function(e,t,n,i){var r,s,o,a,l,c,u,d=[],p=typeof n;if(c=S(i=i||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(s=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===s)d[l]=g.exports(e),u=!0;else if("module"===s)r=d[l]=g.module(e);else if(w(m,s)||w(v,s)||w(_,s))d[l]=D(s);else{if(!a.p)throw new Error(e+" missing "+s);a.p.load(a.n,x(i,!0),A(s),{}),d[l]=m[s]}o=n?n.apply(m[e],d):void 0,e&&(r&&r.exports!==h&&r.exports!==m[e]?m[e]=r.exports:o===h&&u||(m[e]=o))}else e&&(m[e]=n)},t=n=o=function(e,t,n,i,r){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&o(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=i,i=r),i?s(h,e,t,n):setTimeout(function(){s(h,e,t,n)},4),o},o.config=function(e){return o(e)},t._defined=m,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),w(m,e)||w(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=i),e.define("almond",function(){}),e.define("jquery",[],function(){var e=u||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(s){var r={};function u(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&"constructor"!==i&&n.push(i)}return n}r.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r.Decorate=function(i,r){var e=u(r),t=u(i);function s(){var e=Array.prototype.unshift,t=r.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=r.prototype.constructor),n.apply(this,arguments)}r.displayName=i.displayName,s.prototype=new function(){this.constructor=s};for(var n=0;n<t.length;n++){var o=t[n];s.prototype[o]=i.prototype[o]}function a(e){var t=function(){};e in s.prototype&&(t=s.prototype[e]);var n=r.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];s.prototype[c]=a(c)}return s};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},r.Observable=e,r.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},r.bind=function(e,t){return function(){e.apply(t,arguments)}},r._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var s=n[r];(s=s.substring(0,1).toLowerCase()+s.substring(1))in i||(i[s]={}),r==n.length-1&&(i[s]=e[t]),i=i[s]}delete e[t]}}return e},r.hasScroll=function(e,t){var n=s(t),i=t.style.overflowX,r=t.style.overflowY;return(i!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===i||"scroll"===r||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},r.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},r.__cache={};var n=0;return r.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null!=t||(t=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+r.generateChars(4),e.setAttribute("data-select2-id",t)),t},r.StoreData=function(e,t,n){var i=r.GetUniqueElementId(e);r.__cache[i]||(r.__cache[i]={}),r.__cache[i][t]=n},r.GetData=function(e,t){var n=r.GetUniqueElementId(e);return t?r.__cache[n]&&null!=r.__cache[n][t]?r.__cache[n][t]:s(e).data(t):r.__cache[n]},r.RemoveData=function(e){var t=r.GetUniqueElementId(e);null!=r.__cache[t]&&delete r.__cache[t],e.removeAttribute("data-select2-id")},r.copyNonInternalCssClasses=function(e,t){var n=e.getAttribute("class").trim().split(/\s+/);n=n.filter(function(e){return 0===e.indexOf("select2-")});var i=t.getAttribute("class").trim().split(/\s+/);i=i.filter(function(e){return 0!==e.indexOf("select2-")});var r=n.concat(i);e.setAttribute("class",r.join(" "))},r}),e.define("select2/results",["jquery","./utils"],function(h,f){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return f.Extend(i,f.Observable),i.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=e.map(function(e){return e.id.toString()});t.$results.find(".select2-results__option--selectable").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<i.indexOf(n)?(this.classList.add("select2-results__option--selected"),e.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e.attr("aria-selected","false"))})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.classList.add("select2-results__option"),t.classList.add("select2-results__option--selectable");var n={role:"option"},i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var r in(null!=e.element&&i.call(e.element,":disabled")||null==e.element&&e.disabled)&&(n["aria-disabled"]="true",t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--disabled")),null==e.id&&t.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--group")),n){var s=n[r];t.setAttribute(r,s)}if(e.children){var o=h(t),a=document.createElement("strong");a.className="select2-results__group",this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),o.append(a),o.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find(".select2-results__option--selectable"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var s=l.$results.offset().top,o=r.offset().top,a=l.$results.scrollTop()+(o-s);0===i?l.$results.scrollTop(0):o-s<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find(".select2-results__option--selectable"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=l.$results.offset().top+l.$results.outerHeight(!1),s=i.offset().top+i.outerHeight(!1),o=l.$results.scrollTop()+s-r;0===n?l.$results.scrollTop(0):r<s&&l.$results.scrollTop(o)}}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=0<e.deltaY&&t-e.deltaY<=0,r=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=h(this),n=f.GetData(this,"data");t.hasClass("select2-results__option--selected")?l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{}):l.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),l.trigger("results:focus",{data:t,element:h(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),s=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):h(t).append(r)},i}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,r){function s(e,t){this.$element=e,this.options=t,s.__super__.constructor.call(this)}return i.Extend(s,i.Observable),s.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},s.prototype.bind=function(e,t){var n=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},s.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},s.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&i.GetData(this,"element").select2("close")})})},s.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},s.prototype.position=function(e,t){t.find(".selection").append(e)},s.prototype.destroy=function(){this._detachCloseHandler(this.container)},s.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},s.prototype.isEnabled=function(){return!this.isDisabled()},s.prototype.isDisabled=function(){return this.options.get("disabled")},s}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(r,e,d){function s(e,t){s.__super__.constructor.apply(this,arguments)}return d.Extend(s,e),s.prototype.render=function(){var e=s.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},s.prototype.bind=function(e,t){var i=this;s.__super__.bind.apply(this,arguments);var n=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!i.isDisabled()){var t=r(this).parent(),n=d.GetData(t[0],"data");i.trigger("unselect",{originalEvent:e,data:n})}}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){i.isDisabled()||e.stopPropagation()})},s.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},s.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},s.prototype.selectionContainer=function(){return r('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">×</span></button><span class="select2-selection__choice__display"></span></li>')},s.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",i=0;i<e.length;i++){var r=e[i],s=this.selectionContainer(),o=this.display(r,s),a=n+d.generateChars(4)+"-";r.id?a+=r.id:a+=d.generateChars(4),s.find(".select2-selection__choice__display").append(o).attr("id",a);var l=r.title||r.text;l&&s.attr("title",l);var c=this.options.get("translations").get("removeItem"),u=s.find(".select2-selection__choice__remove");u.attr("title",c()),u.attr("aria-label",c()),u.attr("aria-describedby",a),d.StoreData(s[0],"data",r),t.push(s)}this.$selection.find(".select2-selection__rendered").append(t)}},s}),e.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice"),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(s,i,a){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var i=a.GetData(n[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var s={data:i};if(this.trigger("clear",s),s.prevented)this.$element.val(r);else{for(var o=0;o<i.length;o++)if(s={data:i[o]},this.trigger("unselect",s),s.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=i.DELETE&&t.which!=i.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.$selection.find(".select2-selection__rendered").attr("id"),i=this.options.get("translations").get("removeAllItems"),r=s('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>');r.attr("title",i()),r.attr("aria-label",i()),r.attr("aria-describedby",n),a.StoreData(r[0],"data",t),this.$selection.prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,l,c){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=i('<span class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');this.$searchContainer=t,this.$search=t.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete"));var n=e.call(this);return this._transferTabIndex(),n.append(this.$searchContainer),n},e.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results",s=t.id+"-container";e.call(this,t,n),i.$search.attr("aria-describedby",s),t.on("open",function(){i.$search.attr("aria-controls",r),i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.resizeSearch(),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===c.BACKSPACE&&""===i.$search.val()){var t=i.$selection.find(".select2-selection__choice").last();if(0<t.length){var n=l.GetData(t[0],"data");i.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){i.$search.val()&&e.stopPropagation()});var o=document.documentMode,a=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){a?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(a&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=c.SHIFT&&t!=c.CTRL&&t!=c.ALT&&t!=c.TAB&&i.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em");this.$search.css("width",e)},e}),e.define("select2/selection/selectionCss",["../utils"],function(i){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("selectionCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),i.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(n),t},e}),e.define("select2/selection/eventRelay",["jquery"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==r.indexOf(e)){t=t||{};var n=o.Event("select2:"+e,{params:t});i.$element.trigger(n),-1!==s.indexOf(e)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])},i}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=i.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+i.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,l,c){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return l.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(c(e))}))},n.prototype.select=function(r){var s=this;if(r.selected=!0,null!=r.element&&"option"===r.element.tagName.toLowerCase())return r.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(r=[r]).push.apply(r,e);for(var n=0;n<r.length;n++){var i=r[n].id;-1===t.indexOf(i)&&t.push(i)}s.$element.val(t),s.$element.trigger("input").trigger("change")});else{var e=r.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(r){var s=this;if(this.$element.prop("multiple")){if(r.selected=!1,null!=r.element&&"option"===r.element.tagName.toLowerCase())return r.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==r.id&&-1===t.indexOf(i)&&t.push(i)}s.$element.val(t),s.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){l.RemoveData(this)})},n.prototype.query=function(i,e){var r=[],s=this;this.$element.children().each(function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var e=c(this),t=s.item(e),n=s.matches(i,t);null!==n&&r.push(n)}}),e({results:r})},n.prototype.addOptions=function(e){this.$element.append(e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=this._normalizeItem(e);return n.element=t,l.StoreData(t,"data",n),c(t)},n.prototype.item=function(e){var t={};if(null!=(t=l.GetData(e[0],"data")))return t;var n=e[0];if("option"===n.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===n.tagName.toLowerCase()){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),r=[],s=0;s<i.length;s++){var o=c(i[s]),a=this.item(o);r.push(a)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],l.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=c.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),c.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,t,f){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),i=n.map(function(){return t.item(f(this)).id}).get(),r=[];function s(e){return function(){return f(this).val()==e.id}}for(var o=0;o<e.length;o++){var a=this._normalizeItem(e[o]);if(0<=i.indexOf(a.id)){var l=n.filter(s(a)),c=this.item(l),u=f.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);p.append(h)}r.push(p)}}return r},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,s){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return s.extend({},e,{q:e.term})},transport:function(e,t,n){var i=s.ajax(e);return i.then(t),i.fail(n),i}};return s.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){var r=this;null!=this._request&&(s.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=s.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=r.processResults(e,n);r.options.get("debug")&&window.console&&console.error&&(t&&t.results&&Array.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||r.trigger("results:message",{message:"errorLoading"})});r._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(t){function e(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var s=n.get("insertTag");if(void 0!==s&&(this.insertTag=s),e.call(this,t,n),Array.isArray(i))for(var o=0;o<i.length;o++){var a=i[o],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var i=t.results,r=0;r<i.length;r++){var s=i[r],o=null!=s.children&&!e({results:s.children},!0);if((s.text||"").toUpperCase()===(c.term||"").toUpperCase()||o)return!n&&(t.data=i,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(i,a)}t.results=i,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){if(null==t.term)return null;var n=t.term.trim();return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var r=this.tokenizer(t,this.options,function(e){var t=i._normalizeItem(e);if(!i.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=i.option(t);n.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([n])}!function(e){i.trigger("select",{data:e})}(t)});r.term!==t.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),t.term=r.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var r=n.get("tokenSeparators")||[],s=t.term,o=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};o<s.length;){var l=s[o];if(-1!==r.indexOf(l)){var c=s.substr(0,o),u=a(d.extend({},t,{term:c}));null!=u?(i(u),s=s.substr(o+1)||"",o=0):o++}else o++}return{term:s}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var i=this;this.current(function(e){var t=null!=e?e.length:0;0<i.maximumSelectionLength&&t>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery"],function(s){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=s('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),t.prepend(n),t},e.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){s(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",r),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer[0].classList.remove("select2-search--hide"):i.$searchContainer[0].classList.add("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")})},e.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},e.prototype.showSearch=function(e,t){return!0},e}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,r="resize.select2."+t.id,s="orientationchange.select2."+t.id,o=this.$container.parents().filter(a.hasScroll);o.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),o.on(i,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(i+" "+r+" "+s,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,r="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+i+" "+r)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var o=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<r.top-o,u=l>r.bottom+o,d={left:r.left,top:s.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(i="below"),u||!c||t?!c&&u&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(d.top=s.top-h.top-o),null!=i&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+i),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+i)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=s.GetData(i[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/dropdown/dropdownCss",["../utils"],function(i){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),i.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(n),t},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"}}}),e.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./i18n/en"],function(l,s,o,a,c,u,d,p,h,f,g,t,m,v,y,_,b,$,w,x,A,D,S,E,O,C,L,T,q,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=l.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=y:null!=e.data?e.dataAdapter=v:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,$)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,w)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,x)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,_)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,b))),null==e.resultsAdapter&&(e.resultsAdapter=s,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,E)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,L))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=A;else{var t=f.Decorate(A,D);e.dropdownAdapter=t}0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,C)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,q)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,O)}null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=a:e.selectionAdapter=o,null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var n=[],i=0;i<e.language.length;i++){var r=e.language[i];-1===n.indexOf(r)&&n.push(r)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(null==t.term||""===t.term.trim())return n;if(n.children&&0<n.children.length){for(var i=l.extend(!0,{},n),r=n.children.length-1;0<=r;r--)null==e(t,n.children[r])&&i.children.splice(r,1);return 0<i.children.length?i:e(t,i)}var s=a(n.text).toUpperCase(),o=a(t.term).toUpperCase();return-1<s.indexOf(o)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,r=t.prop("lang"),s=t.closest("[lang]").prop("lang"),o=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(s));return e.language=o,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(l.isEmptyObject(e))return[];if(l.isPlainObject(e))return[e];var t;t=Array.isArray(e)?e:[e];for(var n=[],i=0;i<t.length;i++)if(n.push(t[i]),"string"==typeof t[i]&&0<t[i].indexOf("-")){var r=t[i].split("-")[0];n.push(r)}return n},n.prototype._processTranslations=function(e,t){for(var n=new g,i=0;i<e.length;i++){var r=new g,s=e[i];if("string"==typeof s)try{r=g.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,r=g.loadPath(s)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+s+'" could not be automatically loaded. A fallback will be used instead.')}}else r=l.isPlainObject(s)?new g(s):s;n.extend(r)}return n},n.prototype.set=function(e,t){var n={};n[l.camelCase(e)]=t;var i=f._convertData(n);l.extend(!0,this.defaults,i)},new n}),e.define("select2/options",["jquery","./defaults","./utils"],function(d,n,p){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=n.applyFromElement(this.options,t)),this.options=n.apply(this.options)}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function i(e,t){return t.toUpperCase()}for(var r=0;r<e[0].attributes.length;r++){var s=e[0].attributes[r].name,o="data-";if(s.substr(0,o.length)==o){var a=s.substring(o.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,i)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<t.indexOf(u)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,c,u,i){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var r=this.render();this._placeContainer(r);var s=this.options.get("selectionAdapter");this.selection=new s(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var o=this.options.get("dropdownAdapter");this.dropdown=new o(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var s=e.attr("style");if("string"!=typeof s)return null;for(var o=s.split(";"),a=0,l=o.length;a<l;a+=1){var c=o[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===i.indexOf(e)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container[0].classList.add("select2-container--open")}),this.on("close",function(){n.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){n.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){n.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){n.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(e),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length)for(var n=0;n<e.addedNodes.length;n++){if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},d.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),n=this;t&&this.dataAdapter.current(function(e){n.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var r=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,r,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},d.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map(function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(r,e,s,t,o){if(null==r.fn.select2){var a=["open","close","destroy"];r.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=r.extend(!0,{},t);new s(r(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,i)}),-1<a.indexOf(t)?this:n}}return null==r.fn.select2.defaults&&(r.fn.select2.defaults=t),s}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return u.fn.select2.amd=e,t});
|
1 |
+
/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
+
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(d){var e=function(){if(d&&d.fn&&d.fn.select2&&d.fn.select2.amd)var e=d.fn.select2.amd;var t,n,i,h,o,s,f,g,m,v,y,_,r,a,w,l;function b(e,t){return r.call(e,t)}function c(e,t){var n,i,r,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&w.test(e[s])&&(e[s]=e[s].replace(w,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(i=n.slice(0,u).join("/"),h)for(d=h.length;0<d;d-=1)if(r=(r=f[h.slice(0,d).join("/")])&&r[i]){o=r,a=u;break}if(o)break;!l&&g&&g[i]&&(l=g[i],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function A(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),s.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function D(e){if(b(v,e)){var t=v[e];delete v[e],_[e]=!0,o.apply(h,t)}if(!b(m,e)&&!b(_,e))throw new Error("No "+e);return m[e]}function u(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?u(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},r=Object.prototype.hasOwnProperty,a=[].slice,w=/\.js$/,f=function(e,t){var n,i=u(e),r=i[0],o=t[1];return e=i[1],r&&(n=D(r=c(r,o))),r?e=n&&n.normalize?n.normalize(e,function(t){return function(e){return c(e,t)}}(o)):c(e,o):(r=(i=u(e=c(e,o)))[0],e=i[1],r&&(n=D(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},g={require:function(e){return A(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:function(e){return function(){return y&&y.config&&y.config[e]||{}}}(e)}}},o=function(e,t,n,i){var r,o,s,a,l,c,u,d=[],p=typeof n;if(c=S(i=i||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===o)d[l]=g.exports(e),u=!0;else if("module"===o)r=d[l]=g.module(e);else if(b(m,o)||b(v,o)||b(_,o))d[l]=D(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,A(i,!0),x(o),{}),d[l]=m[o]}s=n?n.apply(m[e],d):void 0,e&&(r&&r.exports!==h&&r.exports!==m[e]?m[e]=r.exports:s===h&&u||(m[e]=s))}else e&&(m[e]=n)},t=n=s=function(e,t,n,i,r){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&s(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=i,i=r),i?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),s},s.config=function(e){return s(e)},t._defined=m,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),b(m,e)||b(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=i),e.define("almond",function(){}),e.define("jquery",[],function(){var e=d||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){var r={};function u(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&"constructor"!==i&&n.push(i)}return n}r.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r.Decorate=function(i,r){var e=u(r),t=u(i);function o(){var e=Array.prototype.unshift,t=r.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=r.prototype.constructor),n.apply(this,arguments)}r.displayName=i.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=i.prototype[s]}function a(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=r.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},r.Observable=e,r.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},r.bind=function(e,t){return function(){e.apply(t,arguments)}},r._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},r.hasScroll=function(e,t){var n=o(t),i=t.style.overflowX,r=t.style.overflowY;return(i!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===i||"scroll"===r||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},r.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},r.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},r.__cache={};var n=0;return r.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},r.StoreData=function(e,t,n){var i=r.GetUniqueElementId(e);r.__cache[i]||(r.__cache[i]={}),r.__cache[i][t]=n},r.GetData=function(e,t){var n=r.GetUniqueElementId(e);return t?r.__cache[n]&&null!=r.__cache[n][t]?r.__cache[n][t]:o(e).data(t):r.__cache[n]},r.RemoveData=function(e){var t=r.GetUniqueElementId(e);null!=r.__cache[t]&&delete r.__cache[t],e.removeAttribute("data-select2-id")},r}),e.define("select2/results",["jquery","./utils"],function(h,f){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return f.Extend(i,f.Observable),i.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,i)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"},i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var r in(null!=e.element&&i.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[r];t.setAttribute(r,o)}if(e.children){var s=h(t),a=document.createElement("strong");a.className="select2-results__group";h(a);this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var o=l.$results.offset().top,s=r.offset().top,a=l.$results.scrollTop()+(s-o);0===i?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=l.$results.offset().top+l.$results.outerHeight(!1),o=i.offset().top+i.outerHeight(!1),s=l.$results.scrollTop()+o-r;0===n?l.$results.scrollTop(0):r<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=0<e.deltaY&&t-e.deltaY<=0,r=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:h(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):h(t).append(r)},i}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,r){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return i.Extend(o,i.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&i.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(r,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var i=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!i.isDisabled()){var t=r(this).parent(),n=l.GetData(t[0],"data");i.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return r('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n],r=this.selectionContainer(),o=this.display(i,r);r.append(o);var s=i.title||i.text;s&&r.attr("title",s),l.StoreData(r[0],"data",i),t.push(r)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(r,i,a){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var i=a.GetData(n[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var o={data:i};if(this.trigger("clear",o),o.prevented)this.$element.val(r);else{for(var s=0;s<i.length;s++)if(o={data:i[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=i.DELETE&&t.which!=i.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),i=r('<span class="select2-selection__clear" title="'+n()+'">×</span>');a.StoreData(i[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(i)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=i('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results";e.call(this,t,n),t.on("open",function(){i.$search.attr("aria-controls",r),i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===i.$search.val()){var t=i.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");i.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){i.$search.val()&&e.stopPropagation()});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&i.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,r)){t=t||{};var n=s.Event("select2:"+e,{params:t});i.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])},i}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=i.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+i.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],i=this;this.$element.find(":selected").each(function(){var e=l(this),t=i.item(e);n.push(t)}),e(n)},n.prototype.select=function(r){var o=this;if(r.selected=!0,l(r.element).is("option"))return r.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(r=[r]).push.apply(r,e);for(var n=0;n<r.length;n++){var i=r[n].id;-1===l.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("input").trigger("change")});else{var e=r.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(r){var o=this;if(this.$element.prop("multiple")){if(r.selected=!1,l(r.element).is("option"))return r.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==r.id&&-1===l.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(i,e){var r=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(i,t);null!==n&&r.push(n)}}),e({results:r})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),i=this._normalizeItem(e);return i.element=t,a.StoreData(t,"data",i),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),i=[],r=0;r<n.length;r++){var o=l(n[r]),s=this.item(o);i.push(s)}t.children=i}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return f.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),i=n.map(function(){return t.item(g(this)).id}).get(),r=[];function o(e){return function(){return g(this).val()==e.id}}for(var s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=g.inArray(a.id,i)){var l=n.filter(o(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}r.push(p)}}return r},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var i=o.ajax(e);return i.then(t),i.fail(n),i}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){var r=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=r.processResults(e,n);r.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||r.trigger("results:message",{message:"errorLoading"})});r._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(i))for(var s=0;s<i.length;s++){var a=i[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var i=t.results,r=0;r<i.length;r++){var o=i[r],s=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||s)return!n&&(t.data=i,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(i,a)}t.results=i,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var r=this.tokenizer(t,this.options,function(e){var t=i._normalizeItem(e);if(!i.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=i.option(t);n.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([n])}!function(e){i.trigger("select",{data:e})}(t)});r.term!==t.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),t.term=r.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var r=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,r)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(i(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var i=this;this.current(function(e){var t=null!=e?e.length:0;0<i.maximumSelectionLength&&t>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",r),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,r="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(i,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(i+" "+r+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,r="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+i+" "+r)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=r.top,o.bottom=r.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<r.top-s,u=l>r.bottom+s,d={left:r.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(i="below"),u||!c||t?!c&&u&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(d.top=o.top-h.top-s),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=o.GetData(i[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(c,u,d,p,h,f,g,m,v,y,s,t,_,w,$,b,A,x,D,S,C,E,O,T,q,j,L,I,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=c.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=$:null!=e.data?e.dataAdapter=w:e.dataAdapter=_,0<e.minimumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,D)),0<e.maximumSelectionLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,S)),e.tags&&(e.dataAdapter=y.Decorate(e.dataAdapter,b)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=y.Decorate(e.dataAdapter,A)),null!=e.query){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=d,null!=e.ajax&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,T)),null!=e.placeholder&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,O)),e.selectOnClose&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,L))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=C;else{var i=y.Decorate(C,E);e.dropdownAdapter=i}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)),e.closeOnSelect&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,I)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var r=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,r)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=h:e.selectionAdapter=p,null!=e.placeholder&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,f)),e.allowClear&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,g)),e.multiple&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,m)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptContainerCssClass){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language),e.language.push("en");for(var s=[],a=0;a<e.language.length;a++){var l=e.language[a];-1===s.indexOf(l)&&s.push(l)}return e.language=s,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:y.escapeMarkup,language:{},matcher:function e(t,n){if(""===c.trim(t.term))return n;if(n.children&&0<n.children.length){for(var i=c.extend(!0,{},n),r=n.children.length-1;0<=r;r--)null==e(t,n.children[r])&&i.children.splice(r,1);return 0<i.children.length?i:e(t,i)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,r=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(c.isEmptyObject(e))return[];if(c.isPlainObject(e))return[e];var t;t=c.isArray(e)?e:[e];for(var n=[],i=0;i<t.length;i++)if(n.push(t[i]),"string"==typeof t[i]&&0<t[i].indexOf("-")){var r=t[i].split("-")[0];n.push(r)}return n},n.prototype._processTranslations=function(e,t){for(var n=new s,i=0;i<e.length;i++){var r=new s,o=e[i];if("string"==typeof o)try{r=s.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,r=s.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else r=c.isPlainObject(o)?new s(o):o;n.extend(r)}return n},n.prototype.set=function(e,t){var n={};n[c.camelCase(e)]=t;var i=y._convertData(n);c.extend(!0,this.defaults,i)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(i,d,r,p){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=r.applyFromElement(this.options,t)),this.options=r.apply(this.options),t&&t.is("input")){var n=i(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=p.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function i(e,t){return t.toUpperCase()}for(var r=0;r<e[0].attributes.length;r++){var o=e[0].attributes[r].name,s="data-";if(o.substr(0,s.length)==s){var a=o.substring(s.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,i)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<d.inArray(u,t)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,c,u,i){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var r=this.render();this._placeContainer(r);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){t._syncA(),t._syncS(null,e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===o.inArray(e,i)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(e),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var r=0;r<t.addedNodes.length;r++){t.addedNodes[r].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length?n=!0:o.isArray(t)&&o.each(t,function(e,t){if(i._isChangeMutation(e,t))return!(n=!0)});else n=!0;return n}},d.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),i=this;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var r=i[e],o={prevented:!1,name:e,args:t};if(n.call(this,r,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];o.isArray(t)&&(t=o.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=o('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("select2/compat/utils",["jquery"],function(s){return{syncCssClasses:function(e,t,n){var i,r,o=[];(i=s.trim(e.attr("class")))&&s((i=""+i).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&o.push(this)}),(i=s.trim(t.attr("class")))&&s((i=""+i).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(r=n(this))&&o.push(r)}),e.attr("class",o.join(" "))}}}),e.define("select2/compat/containerCss",["jquery","./utils"],function(s,a){function l(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("containerCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptContainerCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);return null!=t?t+" "+e:e}}var o=this.options.get("containerCss")||{};return s.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/dropdownCss",["jquery","./utils"],function(s,a){function l(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptDropdownCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);return null!=t?t+" "+e:e}}var o=this.options.get("dropdownCss")||{};return s.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/initSelection",["jquery"],function(i){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return e.prototype.current=function(e,t){var n=this;this._isInitialized?e.call(this,t):this.initSelection.call(null,this.$element,function(e){n._isInitialized=!0,i.isArray(e)||(e=[e]),t(e)})},e}),e.define("select2/compat/inputData",["jquery","../utils"],function(s,i){function e(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,n)}return e.prototype.current=function(e,t){function i(e,t){var n=[];return e.selected||-1!==s.inArray(e.id,t)?(e.selected=!0,n.push(e)):e.selected=!1,e.children&&n.push.apply(n,i(e.children,t)),n}for(var n=[],r=0;r<this._currentData.length;r++){var o=this._currentData[r];n.push.apply(n,i(o,this.$element.val().split(this._valueSeparator)))}t(n)},e.prototype.select=function(e,t){if(this.options.get("multiple")){var n=this.$element.val();n+=this._valueSeparator+t.id,this.$element.val(n),this.$element.trigger("input").trigger("change")}else this.current(function(e){s.map(e,function(e){e.selected=!1})}),this.$element.val(t.id),this.$element.trigger("input").trigger("change")},e.prototype.unselect=function(e,r){var o=this;r.selected=!1,this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];r.id!=i.id&&t.push(i.id)}o.$element.val(t.join(o._valueSeparator)),o.$element.trigger("input").trigger("change")})},e.prototype.query=function(e,t,n){for(var i=[],r=0;r<this._currentData.length;r++){var o=this._currentData[r],s=this.matches(t,o);null!==s&&i.push(s)}n({results:i})},e.prototype.addOptions=function(e,t){var n=s.map(t,function(e){return i.GetData(e[0],"data")});this._currentData.push.apply(this._currentData,n)},e}),e.define("select2/compat/matcher",["jquery"],function(s){return function(o){return function(e,t){var n=s.extend(!0,{},t);if(null==e.term||""===s.trim(e.term))return n;if(t.children){for(var i=t.children.length-1;0<=i;i--){var r=t.children[i];o(e.term,r.text,r)||n.children.splice(i,1)}if(0<n.children.length)return n}return o(e.term,t.text,t)?n:null}}}),e.define("select2/compat/query",[],function(){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get("query").call(null,t)},e}),e.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e}),e.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),e.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),l=function(p){var h,f,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],g=Array.prototype.slice;if(p.event.fixHooks)for(var n=e.length;n;)p.event.fixHooks[e[--n]]=p.event.mouseHooks;var m=p.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],i,!1);else this.onmousewheel=i;p.data(this,"mousewheel-line-height",m.getLineHeight(this)),p.data(this,"mousewheel-page-height",m.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],i,!1);else this.onmousewheel=null;p.removeData(this,"mousewheel-line-height"),p.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=p(e),n=t["offsetParent"in p.fn?"offsetParent":"parent"]();return n.length||(n=p("body")),parseInt(n.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return p(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function i(e){var t,n=e||window.event,i=g.call(arguments,1),r=0,o=0,s=0,a=0,l=0;if((e=p.event.fix(n)).type="mousewheel","detail"in n&&(s=-1*n.detail),"wheelDelta"in n&&(s=n.wheelDelta),"wheelDeltaY"in n&&(s=n.wheelDeltaY),"wheelDeltaX"in n&&(o=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(o=-1*s,s=0),r=0===s?o:s,"deltaY"in n&&(r=s=-1*n.deltaY),"deltaX"in n&&(o=n.deltaX,0===s&&(r=-1*o)),0!==s||0!==o){if(1===n.deltaMode){var c=p.data(this,"mousewheel-line-height");r*=c,s*=c,o*=c}else if(2===n.deltaMode){var u=p.data(this,"mousewheel-page-height");r*=u,s*=u,o*=u}if(t=Math.max(Math.abs(s),Math.abs(o)),(!f||t<f)&&y(n,f=t)&&(f/=40),y(n,t)&&(r/=40,o/=40,s/=40),r=Math[1<=r?"floor":"ceil"](r/f),o=Math[1<=o?"floor":"ceil"](o/f),s=Math[1<=s?"floor":"ceil"](s/f),m.settings.normalizeOffset&&this.getBoundingClientRect){var d=this.getBoundingClientRect();a=e.clientX-d.left,l=e.clientY-d.top}return e.deltaX=o,e.deltaY=s,e.deltaFactor=f,e.offsetX=a,e.offsetY=l,e.deltaMode=0,i.unshift(e,r,o,s),h&&clearTimeout(h),h=setTimeout(v,200),(p.event.dispatch||p.event.handle).apply(this,i)}}function v(){f=null}function y(e,t){return m.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}p.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof e.define&&e.define.amd?e.define("jquery-mousewheel",["jquery"],l):"object"==typeof exports?module.exports=l:l(d),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(r,e,o,t,s){if(null==r.fn.select2){var a=["open","close","destroy"];r.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=r.extend(!0,{},t);new o(r(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,i)}),-1<r.inArray(t,a)?this:n}}return null==r.fn.select2.defaults&&(r.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return d.fn.select2.amd=e,t});
|
admin/assets/js/spectrum.min.js
CHANGED
@@ -1,5 +1,2 @@
|
|
1 |
-
// Spectrum Colorpicker v1.8.1
|
2 |
-
|
3 |
-
// Author: Brian Grinstead
|
4 |
-
// License: MIT
|
5 |
-
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):t(jQuery)}(function(t,e){"use strict";var r={beforeShow:f,move:f,change:f,show:f,hide:f,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},a=[],n=!!/msie/i.exec(window.navigator.userAgent),i=function(){function t(t,e){return!!~(""+t).indexOf(e)}var e=document.createElement("div").style;return e.cssText="background-color:rgba(0,0,0,.5)",t(e.backgroundColor,"rgba")||t(e.backgroundColor,"hsla")}(),o=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>▼</div>","</div>"].join(""),s=function(){var t="";if(n)for(var e=1;e<=6;e++)t+="<div class='sp-"+e+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",t,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}();function l(e,r,a,n){for(var o=[],s=0;s<e.length;s++){var l=e[s];if(l){var c=tinycolor(l),f=c.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";f+=tinycolor.equals(r,l)?" sp-thumb-active":"";var h=c.toString(n.preferredFormat||"rgb"),u=i?"background-color:"+c.toRgbString():"filter:"+c.toFilter();o.push('<span title="'+h+'" data-color="'+c.toRgbString()+'" class="'+f+'"><span class="sp-thumb-inner" style="'+u+';"></span></span>')}else{o.push(t("<div />").append(t('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",n.noColorSelectedText)).html())}}return"<div class='sp-cf "+a+"'>"+o.join("")+"</div>"}function c(c,f){var g,b,v,m,y=function(e,a){var n=t.extend({},r,e);return n.callbacks={move:u(n.move,a),change:u(n.change,a),show:u(n.show,a),hide:u(n.hide,a),beforeShow:u(n.beforeShow,a)},n}(f,c),w=y.flat,_=y.showSelectionPalette,x=y.localStorageKey,k=y.theme,S=y.callbacks,C=(g=Kt,b=10,function(){var t=this,e=arguments;v&&clearTimeout(m),!v&&m||(m=setTimeout(function(){m=null,g.apply(t,e)},b))}),P=!1,A=!1,M=0,R=0,H=0,F=0,T=0,O=0,q=0,N=0,j=0,E=0,D=1,I=[],z=[],B={},L=y.selectionPalette.slice(0),K=y.maxSelectionSize,V="sp-dragging",$=null,W=c.ownerDocument,X=(W.body,t(c)),Y=!1,G=t(s,W).addClass(k),Q=G.find(".sp-picker-container"),J=G.find(".sp-color"),U=G.find(".sp-dragger"),Z=G.find(".sp-hue"),tt=G.find(".sp-slider"),et=G.find(".sp-alpha-inner"),rt=G.find(".sp-alpha"),at=G.find(".sp-alpha-handle"),nt=G.find(".sp-input"),it=G.find(".sp-palette"),ot=G.find(".sp-initial"),st=G.find(".sp-cancel"),lt=G.find(".sp-clear"),ct=G.find(".sp-choose"),ft=G.find(".sp-palette-toggle"),ht=X.is("input"),ut=ht&&"color"===X.attr("type")&&p(),dt=ht&&!w,pt=dt?t(o).addClass(k).addClass(y.className).addClass(y.replacerClassName):t([]),gt=dt?pt:X,bt=pt.find(".sp-preview-inner"),vt=y.color||ht&&X.val(),mt=!1,yt=y.preferredFormat,wt=!y.showButtons||y.clickoutFiresChange,_t=!vt,xt=y.allowEmpty&&!ut;function kt(){if(y.showPaletteOnly&&(y.showPalette=!0),ft.text(y.showPaletteOnly?y.togglePaletteMoreText:y.togglePaletteLessText),y.palette){I=y.palette.slice(0),z=Array.isArray(I[0])?I:[I],B={};for(var t=0;t<z.length;t++)for(var e=0;e<z[t].length;e++){var r=tinycolor(z[t][e]).toRgbString();B[r]=!0}}G.toggleClass("sp-flat",w),G.toggleClass("sp-input-disabled",!y.showInput),G.toggleClass("sp-alpha-enabled",y.showAlpha),G.toggleClass("sp-clear-enabled",xt),G.toggleClass("sp-buttons-disabled",!y.showButtons),G.toggleClass("sp-palette-buttons-disabled",!y.togglePaletteOnly),G.toggleClass("sp-palette-disabled",!y.showPalette),G.toggleClass("sp-palette-only",y.showPaletteOnly),G.toggleClass("sp-initial-disabled",!y.showInitial),G.addClass(y.className).addClass(y.containerClassName),Kt()}function St(){if(x&&window.localStorage){try{var e=window.localStorage[x].split(",#");e.length>1&&(delete window.localStorage[x],t.each(e,function(t,e){Ct(e)}))}catch(t){}try{L=window.localStorage[x].split(";")}catch(t){}}}function Ct(e){if(_){var r=tinycolor(e).toRgbString();if(!B[r]&&-1===t.inArray(r,L))for(L.push(r);L.length>K;)L.shift();if(x&&window.localStorage)try{window.localStorage[x]=L.join(";")}catch(t){}}}function Pt(){var e=Dt(),r=t.map(z,function(t,r){return l(t,e,"sp-palette-row sp-palette-row-"+r,y)});St(),L&&r.push(l(function(){var t=[];if(y.showPalette)for(var e=0;e<L.length;e++){var r=tinycolor(L[e]).toRgbString();B[r]||t.push(L[e])}return t.reverse().slice(0,y.maxSelectionSize)}(),e,"sp-palette-row sp-palette-row-selection",y)),it.html(r.join(""))}function At(){if(y.showInitial){var t=mt,e=Dt();ot.html(l([t,e],e,"sp-palette-row-initial",y))}}function Mt(){(R<=0||M<=0||F<=0)&&Kt(),A=!0,G.addClass(V),$=null,X.trigger("dragstart.spectrum",[Dt()])}function Rt(){A=!1,G.removeClass(V),X.trigger("dragstop.spectrum",[Dt()])}function Ht(){var t=nt.val();if(null!==t&&""!==t||!xt){var e=tinycolor(t);e.isValid()?(Et(e),It(),Lt()):nt.addClass("sp-validation-error")}else Et(null),It(),Lt()}function Ft(){P?Nt():Tt()}function Tt(){var e=t.Event("beforeShow.spectrum");P?Kt():(X.trigger(e,[Dt()]),!1===S.beforeShow(Dt())||e.isDefaultPrevented()||(!function(){for(var t=0;t<a.length;t++)a[t]&&a[t].hide()}(),P=!0,t(W).on("keydown.spectrum",Ot),t(W).on("click.spectrum",qt),t(window).on("resize.spectrum",C),pt.addClass("sp-active"),G.removeClass("sp-hidden"),Kt(),zt(),mt=Dt(),At(),S.show(mt),X.trigger("show.spectrum",[mt])))}function Ot(t){27===t.keyCode&&Nt()}function qt(t){2!=t.button&&(A||(wt?Lt(!0):jt(),Nt()))}function Nt(){P&&!w&&(P=!1,t(W).off("keydown.spectrum",Ot),t(W).off("click.spectrum",qt),t(window).off("resize.spectrum",C),pt.removeClass("sp-active"),G.addClass("sp-hidden"),S.hide(Dt()),X.trigger("hide.spectrum",[Dt()]))}function jt(){Et(mt,!0),Lt(!0)}function Et(t,e){var r,a;tinycolor.equals(t,Dt())?zt():(!t&&xt?_t=!0:(_t=!1,a=(r=tinycolor(t)).toHsv(),N=a.h%360/360,j=a.s,E=a.v,D=a.a),zt(),r&&r.isValid()&&!e&&(yt=y.preferredFormat||r.getFormat()))}function Dt(t){return t=t||{},xt&&_t?null:tinycolor.fromRatio({h:N,s:j,v:E,a:Math.round(1e3*D)/1e3},{format:t.format||yt})}function It(){zt(),S.move(Dt()),X.trigger("move.spectrum",[Dt()])}function zt(){nt.removeClass("sp-validation-error"),Bt();var t=tinycolor.fromRatio({h:N,s:1,v:1});J.css("background-color",t.toHexString());var e=yt;D<1&&(0!==D||"name"!==e)&&("hex"!==e&&"hex3"!==e&&"hex6"!==e&&"name"!==e||(e="rgb"));var r=Dt({format:e}),a="";if(bt.removeClass("sp-clear-display"),bt.css("background-color","transparent"),!r&&xt)bt.addClass("sp-clear-display");else{var o=r.toHexString(),s=r.toRgbString();if(i||1===r.alpha?bt.css("background-color",s):(bt.css("background-color","transparent"),bt.css("filter",r.toFilter())),y.showAlpha){var l=r.toRgb();l.a=0;var c=tinycolor(l).toRgbString(),f="linear-gradient(left, "+c+", "+o+")";n?et.css("filter",tinycolor(c).toFilter({gradientType:1},o)):(et.css("background","-webkit-"+f),et.css("background","-moz-"+f),et.css("background","-ms-"+f),et.css("background","linear-gradient(to right, "+c+", "+o+")"))}a=r.toString(e)}y.showInput&&nt.val(a),y.showPalette&&Pt(),At()}function Bt(){var t=j,e=E;if(xt&&_t)at.hide(),tt.hide(),U.hide();else{at.show(),tt.show(),U.show();var r=t*M,a=R-e*R;r=Math.max(-H,Math.min(M-H,r-H)),a=Math.max(-H,Math.min(R-H,a-H)),U.css({top:a+"px",left:r+"px"});var n=D*T;at.css({left:n-O/2+"px"});var i=N*F;tt.css({top:i-q+"px"})}}function Lt(t){var e=Dt(),r="",a=!tinycolor.equals(e,mt);e&&(r=e.toString(yt),Ct(e)),ht&&X.val(r),t&&a&&(S.change(e),X.trigger("change",[e]))}function Kt(){var e,r,a,n,i,o,s,l,c,f,h,u;P&&(M=J.width(),R=J.height(),H=U.height(),Z.width(),F=Z.height(),q=tt.height(),T=rt.width(),O=at.width(),w||(G.css("position","absolute"),y.offset?G.offset(y.offset):G.offset((r=gt,a=(e=G).outerWidth(),n=e.outerHeight(),i=r.outerHeight(),o=e[0].ownerDocument,s=o.documentElement,l=s.clientWidth+t(o).scrollLeft(),c=s.clientHeight+t(o).scrollTop(),f=r.offset(),h=f.left,u=f.top,u+=i,h-=Math.min(h,h+a>l&&l>a?Math.abs(h+a-l):0),{top:u-=Math.min(u,u+n>c&&c>n?Math.abs(n+i-0):0),bottom:f.bottom,left:h,right:f.right,width:f.width,height:f.height}))),Bt(),y.showPalette&&Pt(),X.trigger("reflow.spectrum"))}function Vt(){Nt(),Y=!0,X.attr("disabled",!0),gt.addClass("sp-disabled")}!function(){if(n&&G.find("*:not(input)").attr("unselectable","on"),kt(),dt&&X.after(pt).hide(),xt||lt.hide(),w)X.after(G).hide();else{var e="parent"===y.appendTo?X.parent():t(y.appendTo);1!==e.length&&(e=t("body")),e.append(G)}function r(e){return e.data&&e.data.ignore?(Et(t(e.target).closest(".sp-thumb-el").data("color")),It()):(Et(t(e.target).closest(".sp-thumb-el").data("color")),It(),y.hideAfterPaletteSelect?(Lt(!0),Nt()):Lt()),!1}St(),gt.on("click.spectrum touchstart.spectrum",function(e){Y||Ft(),e.stopPropagation(),t(e.target).is("input")||e.preventDefault()}),(X.is(":disabled")||!0===y.disabled)&&Vt(),G.on("click",h),nt.on("change",Ht),nt.on("paste",function(){setTimeout(Ht,1)}),nt.on("keydown",function(t){13==t.keyCode&&Ht()}),st.text(y.cancelText),st.on("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),jt(),Nt()}),lt.attr("title",y.clearText),lt.on("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),_t=!0,It(),w&&Lt(!0)}),ct.text(y.chooseText),ct.on("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),n&&nt.is(":focus")&&nt.trigger("change"),nt.hasClass("sp-validation-error")||(Lt(!0),Nt())}),ft.text(y.showPaletteOnly?y.togglePaletteMoreText:y.togglePaletteLessText),ft.on("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),y.showPaletteOnly=!y.showPaletteOnly,y.showPaletteOnly||w||G.css("left","-="+(Q.outerWidth(!0)+5)),kt()}),d(rt,function(t,e,r){D=t/T,_t=!1,r.shiftKey&&(D=Math.round(10*D)/10),It()},Mt,Rt),d(Z,function(t,e){N=parseFloat(e/F),_t=!1,y.showAlpha||(D=1),It()},Mt,Rt),d(J,function(t,e,r){if(r.shiftKey){if(!$){var a=j*M,n=R-E*R,i=Math.abs(t-a)>Math.abs(e-n);$=i?"x":"y"}}else $=null;var o=!$||"y"===$;(!$||"x"===$)&&(j=parseFloat(t/M)),o&&(E=parseFloat((R-e)/R)),_t=!1,y.showAlpha||(D=1),It()},Mt,Rt),vt?(Et(vt),zt(),yt=y.preferredFormat||tinycolor(vt).format,Ct(vt)):zt(),w&&Tt();var a=n?"mousedown.spectrum":"click.spectrum touchstart.spectrum";it.on(a,".sp-thumb-el",r),ot.on(a,".sp-thumb-el:nth-child(1)",{ignore:!0},r)}();var $t={show:Tt,hide:Nt,toggle:Ft,reflow:Kt,option:function(r,a){return r===e?t.extend({},y):a===e?y[r]:(y[r]=a,"preferredFormat"===r&&(yt=y.preferredFormat),void kt())},enable:function(){Y=!1,X.attr("disabled",!1),gt.removeClass("sp-disabled")},disable:Vt,offset:function(t){y.offset=t,Kt()},set:function(t){Et(t),Lt()},get:Dt,destroy:function(){X.show(),gt.off("click.spectrum touchstart.spectrum"),G.remove(),pt.remove(),a[$t.id]=null},container:G};return $t.id=a.push($t)-1,$t}function f(){}function h(t){t.stopPropagation()}function u(t,e){var r=Array.prototype.slice,a=r.call(arguments,2);return function(){return t.apply(e,a.concat(r.call(arguments)))}}function d(e,r,a,i){r=r||function(){},a=a||function(){},i=i||function(){};var o=document,s=!1,l={},c=0,f=0,h="ontouchstart"in window,u={};function d(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function p(t){if(s){if(n&&o.documentMode<9&&!t.button)return g();var a=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0],i=a&&a.pageX||t.pageX,u=a&&a.pageY||t.pageY,p=Math.max(0,Math.min(i-l.left,f)),b=Math.max(0,Math.min(u-l.top,c));h&&d(t),r.apply(e,[p,b,t])}}function g(){s&&(t(o).off(u),t(o.body).removeClass("sp-dragging"),setTimeout(function(){i.apply(e,arguments)},0)),s=!1}u.selectstart=d,u.dragstart=d,u["touchmove mousemove"]=p,u["touchend mouseup"]=g,t(e).on("touchstart mousedown",function(r){(r.which?3==r.which:2==r.button)||s||!1!==a.apply(e,arguments)&&(s=!0,c=t(e).height(),f=t(e).width(),l=t(e).offset(),t(o).on(u),t(o.body).addClass("sp-dragging"),p(r),d(r))})}function p(){return t.fn.spectrum.inputTypeColorSupport()}t.fn.spectrum=function(e,r){if("string"==typeof e){var n=this,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var r=a[t(this).data("spectrum.id")];if(r){var o=r[e];if(!o)throw new Error("Spectrum: no such method: '"+e+"'");"get"==e?n=r.get():"container"==e?n=r.container:"option"==e?n=r.option.apply(r,i):"destroy"==e?(r.destroy(),t(this).removeData("spectrum.id")):o.apply(r,i)}}),n}return this.spectrum("destroy").each(function(){var r=c(this,t.extend({},t(this).data(),e));t(this).data("spectrum.id",r.id)})},t.fn.spectrum.load=!0,t.fn.spectrum.loadOpts={},t.fn.spectrum.draggable=d,t.fn.spectrum.defaults=r,t.fn.spectrum.inputTypeColorSupport=function e(){if(void 0===e._cachedResult){var r=t("<input type='color'/>")[0];e._cachedResult="color"===r.type&&""!==r.value}return e._cachedResult},t.spectrum={},t.spectrum.localization={},t.spectrum.palettes={},t.fn.spectrum.processNativeColorInputs=function(){var e=t("input[type=color]");e.length&&!p()&&e.spectrum({preferredFormat:"hex6"})},function(){var t=/^[\s,#]+/,e=/\s+$/,r=0,a=Math,n=a.round,i=a.min,o=a.max,s=a.random,l=function(s,c){if(c=c||{},(s=s||"")instanceof l)return s;if(!(this instanceof l))return new l(s,c);var f=function(r){var n={r:0,g:0,b:0},s=1,l=!1,c=!1;"string"==typeof r&&(r=function(r){r=r.replace(t,"").replace(e,"").toLowerCase();var a,n=!1;if(P[r])r=P[r],n=!0;else if("transparent"==r)return{r:0,g:0,b:0,a:0,format:"name"};if(a=E.rgb.exec(r))return{r:a[1],g:a[2],b:a[3]};if(a=E.rgba.exec(r))return{r:a[1],g:a[2],b:a[3],a:a[4]};if(a=E.hsl.exec(r))return{h:a[1],s:a[2],l:a[3]};if(a=E.hsla.exec(r))return{h:a[1],s:a[2],l:a[3],a:a[4]};if(a=E.hsv.exec(r))return{h:a[1],s:a[2],v:a[3]};if(a=E.hsva.exec(r))return{h:a[1],s:a[2],v:a[3],a:a[4]};if(a=E.hex8.exec(r))return{a:(i=a[1],F(i)/255),r:F(a[2]),g:F(a[3]),b:F(a[4]),format:n?"name":"hex8"};var i;if(a=E.hex6.exec(r))return{r:F(a[1]),g:F(a[2]),b:F(a[3]),format:n?"name":"hex"};if(a=E.hex3.exec(r))return{r:F(a[1]+""+a[1]),g:F(a[2]+""+a[2]),b:F(a[3]+""+a[3]),format:n?"name":"hex"};return!1}(r));"object"==typeof r&&(r.hasOwnProperty("r")&&r.hasOwnProperty("g")&&r.hasOwnProperty("b")?(f=r.r,h=r.g,u=r.b,n={r:255*R(f,255),g:255*R(h,255),b:255*R(u,255)},l=!0,c="%"===String(r.r).substr(-1)?"prgb":"rgb"):r.hasOwnProperty("h")&&r.hasOwnProperty("s")&&r.hasOwnProperty("v")?(r.s=O(r.s),r.v=O(r.v),n=function(t,e,r){t=6*R(t,360),e=R(e,100),r=R(r,100);var n=a.floor(t),i=t-n,o=r*(1-e),s=r*(1-i*e),l=r*(1-(1-i)*e),c=n%6;return{r:255*[r,s,o,o,l,r][c],g:255*[l,r,r,s,o,o][c],b:255*[o,o,l,r,r,s][c]}}(r.h,r.s,r.v),l=!0,c="hsv"):r.hasOwnProperty("h")&&r.hasOwnProperty("s")&&r.hasOwnProperty("l")&&(r.s=O(r.s),r.l=O(r.l),n=function(t,e,r){var a,n,i;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=R(t,360),e=R(e,100),r=R(r,100),0===e)a=n=i=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;a=o(l,s,t+1/3),n=o(l,s,t),i=o(l,s,t-1/3)}return{r:255*a,g:255*n,b:255*i}}(r.h,r.s,r.l),l=!0,c="hsl"),r.hasOwnProperty("a")&&(s=r.a));var f,h,u;return s=M(s),{ok:l,format:r.format||c,r:i(255,o(n.r,0)),g:i(255,o(n.g,0)),b:i(255,o(n.b,0)),a:s}}(s);this._originalInput=s,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=n(1e3*this._a)/1e3,this._format=c.format||f.format,this._gradientType=c.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=f.ok,this._tc_id=r++};function c(t,e,r){t=R(t,255),e=R(e,255),r=R(r,255);var a,n,s=o(t,e,r),l=i(t,e,r),c=(s+l)/2;if(s==l)a=n=0;else{var f=s-l;switch(n=c>.5?f/(2-s-l):f/(s+l),s){case t:a=(e-r)/f+(e<r?6:0);break;case e:a=(r-t)/f+2;break;case r:a=(t-e)/f+4}a/=6}return{h:a,s:n,l:c}}function f(t,e,r){t=R(t,255),e=R(e,255),r=R(r,255);var a,n,s=o(t,e,r),l=i(t,e,r),c=s,f=s-l;if(n=0===s?0:f/s,s==l)a=0;else{switch(s){case t:a=(e-r)/f+(e<r?6:0);break;case e:a=(r-t)/f+2;break;case r:a=(t-e)/f+4}a/=6}return{h:a,s:n,v:c}}function h(t,e,r,a){var i=[T(n(t).toString(16)),T(n(e).toString(16)),T(n(r).toString(16))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function u(t,e,r,a){var i;return[T((i=a,Math.round(255*parseFloat(i)).toString(16))),T(n(t).toString(16)),T(n(e).toString(16)),T(n(r).toString(16))].join("")}function d(t,e){e=0===e?0:e||10;var r=l(t).toHsl();return r.s-=e/100,r.s=H(r.s),l(r)}function p(t,e){e=0===e?0:e||10;var r=l(t).toHsl();return r.s+=e/100,r.s=H(r.s),l(r)}function g(t){return l(t).desaturate(100)}function b(t,e){e=0===e?0:e||10;var r=l(t).toHsl();return r.l+=e/100,r.l=H(r.l),l(r)}function v(t,e){e=0===e?0:e||10;var r=l(t).toRgb();return r.r=o(0,i(255,r.r-n(-e/100*255))),r.g=o(0,i(255,r.g-n(-e/100*255))),r.b=o(0,i(255,r.b-n(-e/100*255))),l(r)}function m(t,e){e=0===e?0:e||10;var r=l(t).toHsl();return r.l-=e/100,r.l=H(r.l),l(r)}function y(t,e){var r=l(t).toHsl(),a=(n(r.h)+e)%360;return r.h=a<0?360+a:a,l(r)}function w(t){var e=l(t).toHsl();return e.h=(e.h+180)%360,l(e)}function _(t){var e=l(t).toHsl(),r=e.h;return[l(t),l({h:(r+120)%360,s:e.s,l:e.l}),l({h:(r+240)%360,s:e.s,l:e.l})]}function x(t){var e=l(t).toHsl(),r=e.h;return[l(t),l({h:(r+90)%360,s:e.s,l:e.l}),l({h:(r+180)%360,s:e.s,l:e.l}),l({h:(r+270)%360,s:e.s,l:e.l})]}function k(t){var e=l(t).toHsl(),r=e.h;return[l(t),l({h:(r+72)%360,s:e.s,l:e.l}),l({h:(r+216)%360,s:e.s,l:e.l})]}function S(t,e,r){e=e||6,r=r||30;var a=l(t).toHsl(),n=360/r,i=[l(t)];for(a.h=(a.h-(n*e>>1)+720)%360;--e;)a.h=(a.h+n)%360,i.push(l(a));return i}function C(t,e){e=e||6;for(var r=l(t).toHsv(),a=r.h,n=r.s,i=r.v,o=[],s=1/e;e--;)o.push(l({h:a,s:n,v:i})),i=(i+s)%1;return o}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},setAlpha:function(t){return this._a=M(t),this._roundA=n(1e3*this._a)/1e3,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=n(360*t.h),r=n(100*t.s),a=n(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+a+"%)":"hsva("+e+", "+r+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=c(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=c(this._r,this._g,this._b),e=n(360*t.h),r=n(100*t.s),a=n(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+a+"%)":"hsla("+e+", "+r+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return u(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(100*R(this._r,255))+"%",g:n(100*R(this._g,255))+"%",b:n(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+n(100*R(this._r,255))+"%, "+n(100*R(this._g,255))+"%, "+n(100*R(this._b,255))+"%)":"rgba("+n(100*R(this._r,255))+"%, "+n(100*R(this._g,255))+"%, "+n(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(A[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+u(this._r,this._g,this._b,this._a),r=e,a=this._gradientType?"GradientType = 1, ":"";t&&(r=l(t).toHex8String());return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,a=this._a<1&&this._a>=0;return e||!a||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(m,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},l.fromRatio=function(t,e){if("object"==typeof t){var r={};for(var a in t)t.hasOwnProperty(a)&&(r[a]="a"===a?t[a]:O(t[a]));t=r}return l(t,e)},l.equals=function(t,e){return!(!t||!e)&&l(t).toRgbString()==l(e).toRgbString()},l.random=function(){return l.fromRatio({r:s(),g:s(),b:s()})},l.mix=function(t,e,r){r=0===r?0:r||50;var a,n=l(t).toRgb(),i=l(e).toRgb(),o=r/100,s=2*o-1,c=i.a-n.a,f=1-(a=((a=s*c==-1?s:(s+c)/(1+s*c))+1)/2),h={r:i.r*a+n.r*f,g:i.g*a+n.g*f,b:i.b*a+n.b*f,a:i.a*o+n.a*(1-o)};return l(h)},l.readability=function(t,e){var r=l(t),a=l(e),n=r.toRgb(),i=a.toRgb(),o=r.getBrightness(),s=a.getBrightness(),c=Math.max(n.r,i.r)-Math.min(n.r,i.r)+Math.max(n.g,i.g)-Math.min(n.g,i.g)+Math.max(n.b,i.b)-Math.min(n.b,i.b);return{brightness:Math.abs(o-s),color:c}},l.isReadable=function(t,e){var r=l.readability(t,e);return r.brightness>125&&r.color>500},l.mostReadable=function(t,e){for(var r=null,a=0,n=!1,i=0;i<e.length;i++){var o=l.readability(t,e[i]),s=o.brightness>125&&o.color>500,c=o.brightness/125*3+o.color/500;(s&&!n||s&&n&&c>a||!s&&!n&&c>a)&&(n=s,a=c,r=l(e[i]))}return r};var P=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},A=l.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(P);function M(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function R(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=i(e,o(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),a.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function H(t){return i(1,o(0,t))}function F(t){return parseInt(t,16)}function T(t){return 1==t.length?"0"+t:""+t}function O(t){return t<=1&&(t=100*t+"%"),t}var q,N,j,E=(N="[\\s|\\(]+("+(q="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+q+")[,|\\s]+("+q+")\\s*\\)?",j="[\\s|\\(]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")\\s*\\)?",{rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+j),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+j),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+j),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});window.tinycolor=l}(),t(function(){t.fn.spectrum.load&&t.fn.spectrum.processNativeColorInputs()})});
|
1 |
+
(function(factory){"use strict";if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else if(typeof exports=="object"&&typeof module=="object"){module.exports=factory(require("jquery"))}else{factory(jQuery)}})(function($,undefined){"use strict";var defaultOpts={beforeShow:noop,move:noop,change:noop,show:noop,hide:noop,color:false,flat:false,showInput:false,allowEmpty:false,showButtons:true,clickoutFiresChange:true,showInitial:false,showPalette:false,showPaletteOnly:false,hideAfterPaletteSelect:false,togglePaletteOnly:false,showSelectionPalette:true,localStorageKey:false,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:false,className:"",containerClassName:"",replacerClassName:"",showAlpha:false,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:false,offset:null},spectrums=[],IE=!!/msie/i.exec(window.navigator.userAgent),rgbaSupport=function(){function contains(str,substr){return!!~(""+str).indexOf(substr)}var elem=document.createElement("div");var style=elem.style;style.cssText="background-color:rgba(0,0,0,.5)";return contains(style.backgroundColor,"rgba")||contains(style.backgroundColor,"hsla")}(),replaceInput=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>▼</div>","</div>"].join(""),markup=function(){var gradientFix="";if(IE){for(var i=1;i<=6;i++){gradientFix+="<div class='sp-"+i+"'></div>"}}return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",gradientFix,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}();function paletteTemplate(p,color,className,opts){var html=[];for(var i=0;i<p.length;i++){var current=p[i];if(current){var tiny=tinycolor(current);var c=tiny.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";c+=tinycolor.equals(color,current)?" sp-thumb-active":"";var formattedString=tiny.toString(opts.preferredFormat||"rgb");var swatchStyle=rgbaSupport?"background-color:"+tiny.toRgbString():"filter:"+tiny.toFilter();html.push('<span title="'+formattedString+'" data-color="'+tiny.toRgbString()+'" class="'+c+'"><span class="sp-thumb-inner" style="'+swatchStyle+';" /></span>')}else{var cls="sp-clear-display";html.push($("<div />").append($('<span data-color="" style="background-color:transparent;" class="'+cls+'"></span>').attr("title",opts.noColorSelectedText)).html())}}return"<div class='sp-cf "+className+"'>"+html.join("")+"</div>"}function hideAll(){for(var i=0;i<spectrums.length;i++){if(spectrums[i]){spectrums[i].hide()}}}function instanceOptions(o,callbackContext){var opts=$.extend({},defaultOpts,o);opts.callbacks={move:bind(opts.move,callbackContext),change:bind(opts.change,callbackContext),show:bind(opts.show,callbackContext),hide:bind(opts.hide,callbackContext),beforeShow:bind(opts.beforeShow,callbackContext)};return opts}function spectrum(element,o){var opts=instanceOptions(o,element),flat=opts.flat,showSelectionPalette=opts.showSelectionPalette,localStorageKey=opts.localStorageKey,theme=opts.theme,callbacks=opts.callbacks,resize=throttle(reflow,10),visible=false,isDragging=false,dragWidth=0,dragHeight=0,dragHelperHeight=0,slideHeight=0,slideWidth=0,alphaWidth=0,alphaSlideHelperWidth=0,slideHelperHeight=0,currentHue=0,currentSaturation=0,currentValue=0,currentAlpha=1,palette=[],paletteArray=[],paletteLookup={},selectionPalette=opts.selectionPalette.slice(0),maxSelectionSize=opts.maxSelectionSize,draggingClass="sp-dragging",shiftMovementDirection=null;var doc=element.ownerDocument,body=doc.body,boundElement=$(element),disabled=false,container=$(markup,doc).addClass(theme),pickerContainer=container.find(".sp-picker-container"),dragger=container.find(".sp-color"),dragHelper=container.find(".sp-dragger"),slider=container.find(".sp-hue"),slideHelper=container.find(".sp-slider"),alphaSliderInner=container.find(".sp-alpha-inner"),alphaSlider=container.find(".sp-alpha"),alphaSlideHelper=container.find(".sp-alpha-handle"),textInput=container.find(".sp-input"),paletteContainer=container.find(".sp-palette"),initialColorContainer=container.find(".sp-initial"),cancelButton=container.find(".sp-cancel"),clearButton=container.find(".sp-clear"),chooseButton=container.find(".sp-choose"),toggleButton=container.find(".sp-palette-toggle"),isInput=boundElement.is("input"),isInputTypeColor=isInput&&boundElement.attr("type")==="color"&&inputTypeColorSupport(),shouldReplace=isInput&&!flat,replacer=shouldReplace?$(replaceInput).addClass(theme).addClass(opts.className).addClass(opts.replacerClassName):$([]),offsetElement=shouldReplace?replacer:boundElement,previewElement=replacer.find(".sp-preview-inner"),initialColor=opts.color||isInput&&boundElement.val(),colorOnShow=false,currentPreferredFormat=opts.preferredFormat,clickoutFiresChange=!opts.showButtons||opts.clickoutFiresChange,isEmpty=!initialColor,allowEmpty=opts.allowEmpty&&!isInputTypeColor;function applyOptions(){if(opts.showPaletteOnly){opts.showPalette=true}toggleButton.text(opts.showPaletteOnly?opts.togglePaletteMoreText:opts.togglePaletteLessText);if(opts.palette){palette=opts.palette.slice(0);paletteArray=$.isArray(palette[0])?palette:[palette];paletteLookup={};for(var i=0;i<paletteArray.length;i++){for(var j=0;j<paletteArray[i].length;j++){var rgb=tinycolor(paletteArray[i][j]).toRgbString();paletteLookup[rgb]=true}}}container.toggleClass("sp-flat",flat);container.toggleClass("sp-input-disabled",!opts.showInput);container.toggleClass("sp-alpha-enabled",opts.showAlpha);container.toggleClass("sp-clear-enabled",allowEmpty);container.toggleClass("sp-buttons-disabled",!opts.showButtons);container.toggleClass("sp-palette-buttons-disabled",!opts.togglePaletteOnly);container.toggleClass("sp-palette-disabled",!opts.showPalette);container.toggleClass("sp-palette-only",opts.showPaletteOnly);container.toggleClass("sp-initial-disabled",!opts.showInitial);container.addClass(opts.className).addClass(opts.containerClassName);reflow()}function initialize(){if(IE){container.find("*:not(input)").attr("unselectable","on")}applyOptions();if(shouldReplace){boundElement.after(replacer).hide()}if(!allowEmpty){clearButton.hide()}if(flat){boundElement.after(container).hide()}else{var appendTo=opts.appendTo==="parent"?boundElement.parent():$(opts.appendTo);if(appendTo.length!==1){appendTo=$("body")}appendTo.append(container)}updateSelectionPaletteFromStorage();offsetElement.bind("click.spectrum touchstart.spectrum",function(e){if(!disabled){toggle()}e.stopPropagation();if(!$(e.target).is("input")){e.preventDefault()}});if(boundElement.is(":disabled")||opts.disabled===true){disable()}container.click(stopPropagation);textInput.change(setFromTextInput);textInput.bind("paste",function(){setTimeout(setFromTextInput,1)});textInput.keydown(function(e){if(e.keyCode==13){setFromTextInput()}});cancelButton.text(opts.cancelText);cancelButton.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();revert();hide()});clearButton.attr("title",opts.clearText);clearButton.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();isEmpty=true;move();if(flat){updateOriginalInput(true)}});chooseButton.text(opts.chooseText);chooseButton.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();if(IE&&textInput.is(":focus")){textInput.trigger("change")}if(isValid()){updateOriginalInput(true);hide()}});toggleButton.text(opts.showPaletteOnly?opts.togglePaletteMoreText:opts.togglePaletteLessText);toggleButton.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();opts.showPaletteOnly=!opts.showPaletteOnly;if(!opts.showPaletteOnly&&!flat){container.css("left","-="+(pickerContainer.outerWidth(true)+5))}applyOptions()});draggable(alphaSlider,function(dragX,dragY,e){currentAlpha=dragX/alphaWidth;isEmpty=false;if(e.shiftKey){currentAlpha=Math.round(currentAlpha*10)/10}move()},dragStart,dragStop);draggable(slider,function(dragX,dragY){currentHue=parseFloat(dragY/slideHeight);isEmpty=false;if(!opts.showAlpha){currentAlpha=1}move()},dragStart,dragStop);draggable(dragger,function(dragX,dragY,e){if(!e.shiftKey){shiftMovementDirection=null}else if(!shiftMovementDirection){var oldDragX=currentSaturation*dragWidth;var oldDragY=dragHeight-currentValue*dragHeight;var furtherFromX=Math.abs(dragX-oldDragX)>Math.abs(dragY-oldDragY);shiftMovementDirection=furtherFromX?"x":"y"}var setSaturation=!shiftMovementDirection||shiftMovementDirection==="x";var setValue=!shiftMovementDirection||shiftMovementDirection==="y";if(setSaturation){currentSaturation=parseFloat(dragX/dragWidth)}if(setValue){currentValue=parseFloat((dragHeight-dragY)/dragHeight)}isEmpty=false;if(!opts.showAlpha){currentAlpha=1}move()},dragStart,dragStop);if(!!initialColor){set(initialColor);updateUI();currentPreferredFormat=opts.preferredFormat||tinycolor(initialColor).format;addColorToSelectionPalette(initialColor)}else{updateUI()}if(flat){show()}function paletteElementClick(e){if(e.data&&e.data.ignore){set($(e.target).closest(".sp-thumb-el").data("color"));move()}else{set($(e.target).closest(".sp-thumb-el").data("color"));move();updateOriginalInput(true);if(opts.hideAfterPaletteSelect){hide()}}return false}var paletteEvent=IE?"mousedown.spectrum":"click.spectrum touchstart.spectrum";paletteContainer.delegate(".sp-thumb-el",paletteEvent,paletteElementClick);initialColorContainer.delegate(".sp-thumb-el:nth-child(1)",paletteEvent,{ignore:true},paletteElementClick)}function updateSelectionPaletteFromStorage(){if(localStorageKey&&window.localStorage){try{var oldPalette=window.localStorage[localStorageKey].split(",#");if(oldPalette.length>1){delete window.localStorage[localStorageKey];$.each(oldPalette,function(i,c){addColorToSelectionPalette(c)})}}catch(e){}try{selectionPalette=window.localStorage[localStorageKey].split(";")}catch(e){}}}function addColorToSelectionPalette(color){if(showSelectionPalette){var rgb=tinycolor(color).toRgbString();if(!paletteLookup[rgb]&&$.inArray(rgb,selectionPalette)===-1){selectionPalette.push(rgb);while(selectionPalette.length>maxSelectionSize){selectionPalette.shift()}}if(localStorageKey&&window.localStorage){try{window.localStorage[localStorageKey]=selectionPalette.join(";")}catch(e){}}}}function getUniqueSelectionPalette(){var unique=[];if(opts.showPalette){for(var i=0;i<selectionPalette.length;i++){var rgb=tinycolor(selectionPalette[i]).toRgbString();if(!paletteLookup[rgb]){unique.push(selectionPalette[i])}}}return unique.reverse().slice(0,opts.maxSelectionSize)}function drawPalette(){var currentColor=get();var html=$.map(paletteArray,function(palette,i){return paletteTemplate(palette,currentColor,"sp-palette-row sp-palette-row-"+i,opts)});updateSelectionPaletteFromStorage();if(selectionPalette){html.push(paletteTemplate(getUniqueSelectionPalette(),currentColor,"sp-palette-row sp-palette-row-selection",opts))}paletteContainer.html(html.join(""))}function drawInitial(){if(opts.showInitial){var initial=colorOnShow;var current=get();initialColorContainer.html(paletteTemplate([initial,current],current,"sp-palette-row-initial",opts))}}function dragStart(){if(dragHeight<=0||dragWidth<=0||slideHeight<=0){reflow()}isDragging=true;container.addClass(draggingClass);shiftMovementDirection=null;boundElement.trigger("dragstart.spectrum",[get()])}function dragStop(){isDragging=false;container.removeClass(draggingClass);boundElement.trigger("dragstop.spectrum",[get()])}function setFromTextInput(){var value=textInput.val();if((value===null||value==="")&&allowEmpty){set(null);updateOriginalInput(true)}else{var tiny=tinycolor(value);if(tiny.isValid()){set(tiny);updateOriginalInput(true)}else{textInput.addClass("sp-validation-error")}}}function toggle(){if(visible){hide()}else{show()}}function show(){var event=$.Event("beforeShow.spectrum");if(visible){reflow();return}boundElement.trigger(event,[get()]);if(callbacks.beforeShow(get())===false||event.isDefaultPrevented()){return}hideAll();visible=true;$(doc).bind("keydown.spectrum",onkeydown);$(doc).bind("click.spectrum",clickout);$(window).bind("resize.spectrum",resize);replacer.addClass("sp-active");container.removeClass("sp-hidden");reflow();updateUI();colorOnShow=get();drawInitial();callbacks.show(colorOnShow);boundElement.trigger("show.spectrum",[colorOnShow])}function onkeydown(e){if(e.keyCode===27){hide()}}function clickout(e){if(e.button==2){return}if(isDragging){return}if(clickoutFiresChange){updateOriginalInput(true)}else{revert()}hide()}function hide(){if(!visible||flat){return}visible=false;$(doc).unbind("keydown.spectrum",onkeydown);$(doc).unbind("click.spectrum",clickout);$(window).unbind("resize.spectrum",resize);replacer.removeClass("sp-active");container.addClass("sp-hidden");callbacks.hide(get());boundElement.trigger("hide.spectrum",[get()])}function revert(){set(colorOnShow,true)}function set(color,ignoreFormatChange){if(tinycolor.equals(color,get())){updateUI();return}var newColor,newHsv;if(!color&&allowEmpty){isEmpty=true}else{isEmpty=false;newColor=tinycolor(color);newHsv=newColor.toHsv();currentHue=newHsv.h%360/360;currentSaturation=newHsv.s;currentValue=newHsv.v;currentAlpha=newHsv.a}updateUI();if(newColor&&newColor.isValid()&&!ignoreFormatChange){currentPreferredFormat=opts.preferredFormat||newColor.getFormat()}}function get(opts){opts=opts||{};if(allowEmpty&&isEmpty){return null}return tinycolor.fromRatio({h:currentHue,s:currentSaturation,v:currentValue,a:Math.round(currentAlpha*100)/100},{format:opts.format||currentPreferredFormat})}function isValid(){return!textInput.hasClass("sp-validation-error")}function move(){updateUI();callbacks.move(get());boundElement.trigger("move.spectrum",[get()])}function updateUI(){textInput.removeClass("sp-validation-error");updateHelperLocations();var flatColor=tinycolor.fromRatio({h:currentHue,s:1,v:1});dragger.css("background-color",flatColor.toHexString());var format=currentPreferredFormat;if(currentAlpha<1&&!(currentAlpha===0&&format==="name")){if(format==="hex"||format==="hex3"||format==="hex6"||format==="name"){format="rgb"}}var realColor=get({format:format}),displayColor="";previewElement.removeClass("sp-clear-display");previewElement.css("background-color","transparent");if(!realColor&&allowEmpty){previewElement.addClass("sp-clear-display")}else{var realHex=realColor.toHexString(),realRgb=realColor.toRgbString();if(rgbaSupport||realColor.alpha===1){previewElement.css("background-color",realRgb)}else{previewElement.css("background-color","transparent");previewElement.css("filter",realColor.toFilter())}if(opts.showAlpha){var rgb=realColor.toRgb();rgb.a=0;var realAlpha=tinycolor(rgb).toRgbString();var gradient="linear-gradient(left, "+realAlpha+", "+realHex+")";if(IE){alphaSliderInner.css("filter",tinycolor(realAlpha).toFilter({gradientType:1},realHex))}else{alphaSliderInner.css("background","-webkit-"+gradient);alphaSliderInner.css("background","-moz-"+gradient);alphaSliderInner.css("background","-ms-"+gradient);alphaSliderInner.css("background","linear-gradient(to right, "+realAlpha+", "+realHex+")")}}displayColor=realColor.toString(format)}if(opts.showInput){textInput.val(displayColor)}if(opts.showPalette){drawPalette()}drawInitial()}function updateHelperLocations(){var s=currentSaturation;var v=currentValue;if(allowEmpty&&isEmpty){alphaSlideHelper.hide();slideHelper.hide();dragHelper.hide()}else{alphaSlideHelper.show();slideHelper.show();dragHelper.show();var dragX=s*dragWidth;var dragY=dragHeight-v*dragHeight;dragX=Math.max(-dragHelperHeight,Math.min(dragWidth-dragHelperHeight,dragX-dragHelperHeight));dragY=Math.max(-dragHelperHeight,Math.min(dragHeight-dragHelperHeight,dragY-dragHelperHeight));dragHelper.css({top:dragY+"px",left:dragX+"px"});var alphaX=currentAlpha*alphaWidth;alphaSlideHelper.css({left:alphaX-alphaSlideHelperWidth/2+"px"});var slideY=currentHue*slideHeight;slideHelper.css({top:slideY-slideHelperHeight+"px"})}}function updateOriginalInput(fireCallback){var color=get(),displayColor="",hasChanged=!tinycolor.equals(color,colorOnShow);if(color){displayColor=color.toString(currentPreferredFormat);addColorToSelectionPalette(color)}if(isInput){boundElement.val(displayColor)}if(fireCallback&&hasChanged){callbacks.change(color);boundElement.trigger("change",[color])}}function reflow(){if(!visible){return}dragWidth=dragger.width();dragHeight=dragger.height();dragHelperHeight=dragHelper.height();slideWidth=slider.width();slideHeight=slider.height();slideHelperHeight=slideHelper.height();alphaWidth=alphaSlider.width();alphaSlideHelperWidth=alphaSlideHelper.width();if(!flat){container.css("position","absolute");if(opts.offset){container.offset(opts.offset)}else{container.offset(getOffset(container,offsetElement))}}updateHelperLocations();if(opts.showPalette){drawPalette()}boundElement.trigger("reflow.spectrum")}function destroy(){boundElement.show();offsetElement.unbind("click.spectrum touchstart.spectrum");container.remove();replacer.remove();spectrums[spect.id]=null}function option(optionName,optionValue){if(optionName===undefined){return $.extend({},opts)}if(optionValue===undefined){return opts[optionName]}opts[optionName]=optionValue;if(optionName==="preferredFormat"){currentPreferredFormat=opts.preferredFormat}applyOptions()}function enable(){disabled=false;boundElement.attr("disabled",false);offsetElement.removeClass("sp-disabled")}function disable(){hide();disabled=true;boundElement.attr("disabled",true);offsetElement.addClass("sp-disabled")}function setOffset(coord){opts.offset=coord;reflow()}initialize();var spect={show:show,hide:hide,toggle:toggle,reflow:reflow,option:option,enable:enable,disable:disable,offset:setOffset,set:function(c){set(c);updateOriginalInput()},get:get,destroy:destroy,container:container};spect.id=spectrums.push(spect)-1;return spect}function getOffset(picker,input){var extraY=0;var dpWidth=picker.outerWidth();var dpHeight=picker.outerHeight();var inputHeight=input.outerHeight();var doc=picker[0].ownerDocument;var docElem=doc.documentElement;var viewWidth=docElem.clientWidth+$(doc).scrollLeft();var viewHeight=docElem.clientHeight+$(doc).scrollTop();var offset=input.offset();offset.top+=inputHeight;offset.left-=Math.min(offset.left,offset.left+dpWidth>viewWidth&&viewWidth>dpWidth?Math.abs(offset.left+dpWidth-viewWidth):0);offset.top-=Math.min(offset.top,offset.top+dpHeight>viewHeight&&viewHeight>dpHeight?Math.abs(dpHeight+inputHeight-extraY):extraY);return offset}function noop(){}function stopPropagation(e){e.stopPropagation()}function bind(func,obj){var slice=Array.prototype.slice;var args=slice.call(arguments,2);return function(){return func.apply(obj,args.concat(slice.call(arguments)))}}function draggable(element,onmove,onstart,onstop){onmove=onmove||function(){};onstart=onstart||function(){};onstop=onstop||function(){};var doc=document;var dragging=false;var offset={};var maxHeight=0;var maxWidth=0;var hasTouch="ontouchstart"in window;var duringDragEvents={};duringDragEvents["selectstart"]=prevent;duringDragEvents["dragstart"]=prevent;duringDragEvents["touchmove mousemove"]=move;duringDragEvents["touchend mouseup"]=stop;function prevent(e){if(e.stopPropagation){e.stopPropagation()}if(e.preventDefault){e.preventDefault()}e.returnValue=false}function move(e){if(dragging){if(IE&&doc.documentMode<9&&!e.button){return stop()}var t0=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0];var pageX=t0&&t0.pageX||e.pageX;var pageY=t0&&t0.pageY||e.pageY;var dragX=Math.max(0,Math.min(pageX-offset.left,maxWidth));var dragY=Math.max(0,Math.min(pageY-offset.top,maxHeight));if(hasTouch){prevent(e)}onmove.apply(element,[dragX,dragY,e])}}function start(e){var rightclick=e.which?e.which==3:e.button==2;if(!rightclick&&!dragging){if(onstart.apply(element,arguments)!==false){dragging=true;maxHeight=$(element).height();maxWidth=$(element).width();offset=$(element).offset();$(doc).bind(duringDragEvents);$(doc.body).addClass("sp-dragging");move(e);prevent(e)}}}function stop(){if(dragging){$(doc).unbind(duringDragEvents);$(doc.body).removeClass("sp-dragging");setTimeout(function(){onstop.apply(element,arguments)},0)}dragging=false}$(element).bind("touchstart mousedown",start)}function throttle(func,wait,debounce){var timeout;return function(){var context=this,args=arguments;var throttler=function(){timeout=null;func.apply(context,args)};if(debounce)clearTimeout(timeout);if(debounce||!timeout)timeout=setTimeout(throttler,wait)}}function inputTypeColorSupport(){return $.fn.spectrum.inputTypeColorSupport()}var dataID="spectrum.id";$.fn.spectrum=function(opts,extra){if(typeof opts=="string"){var returnValue=this;var args=Array.prototype.slice.call(arguments,1);this.each(function(){var spect=spectrums[$(this).data(dataID)];if(spect){var method=spect[opts];if(!method){throw new Error("Spectrum: no such method: '"+opts+"'")}if(opts=="get"){returnValue=spect.get()}else if(opts=="container"){returnValue=spect.container}else if(opts=="option"){returnValue=spect.option.apply(spect,args)}else if(opts=="destroy"){spect.destroy();$(this).removeData(dataID)}else{method.apply(spect,args)}}});return returnValue}return this.spectrum("destroy").each(function(){var options=$.extend({},opts,$(this).data());var spect=spectrum(this,options);$(this).data(dataID,spect.id)})};$.fn.spectrum.load=true;$.fn.spectrum.loadOpts={};$.fn.spectrum.draggable=draggable;$.fn.spectrum.defaults=defaultOpts;$.fn.spectrum.inputTypeColorSupport=function inputTypeColorSupport(){if(typeof inputTypeColorSupport._cachedResult==="undefined"){var colorInput=$("<input type='color'/>")[0];inputTypeColorSupport._cachedResult=colorInput.type==="color"&&colorInput.value!==""}return inputTypeColorSupport._cachedResult};$.spectrum={};$.spectrum.localization={};$.spectrum.palettes={};$.fn.spectrum.processNativeColorInputs=function(){var colorInputs=$("input[type=color]");if(colorInputs.length&&!inputTypeColorSupport()){colorInputs.spectrum({preferredFormat:"hex6"})}};(function(){var trimLeft=/^[\s,#]+/,trimRight=/\s+$/,tinyCounter=0,math=Math,mathRound=math.round,mathMin=math.min,mathMax=math.max,mathRandom=math.random;var tinycolor=function(color,opts){color=color?color:"";opts=opts||{};if(color instanceof tinycolor){return color}if(!(this instanceof tinycolor)){return new tinycolor(color,opts)}var rgb=inputToRGB(color);this._originalInput=color,this._r=rgb.r,this._g=rgb.g,this._b=rgb.b,this._a=rgb.a,this._roundA=mathRound(100*this._a)/100,this._format=opts.format||rgb.format;this._gradientType=opts.gradientType;if(this._r<1){this._r=mathRound(this._r)}if(this._g<1){this._g=mathRound(this._g)}if(this._b<1){this._b=mathRound(this._b)}this._ok=rgb.ok;this._tc_id=tinyCounter++};tinycolor.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var rgb=this.toRgb();return(rgb.r*299+rgb.g*587+rgb.b*114)/1e3},setAlpha:function(value){this._a=boundAlpha(value);this._roundA=mathRound(100*this._a)/100;return this},toHsv:function(){var hsv=rgbToHsv(this._r,this._g,this._b);return{h:hsv.h*360,s:hsv.s,v:hsv.v,a:this._a}},toHsvString:function(){var hsv=rgbToHsv(this._r,this._g,this._b);var h=mathRound(hsv.h*360),s=mathRound(hsv.s*100),v=mathRound(hsv.v*100);return this._a==1?"hsv("+h+", "+s+"%, "+v+"%)":"hsva("+h+", "+s+"%, "+v+"%, "+this._roundA+")"},toHsl:function(){var hsl=rgbToHsl(this._r,this._g,this._b);return{h:hsl.h*360,s:hsl.s,l:hsl.l,a:this._a}},toHslString:function(){var hsl=rgbToHsl(this._r,this._g,this._b);var h=mathRound(hsl.h*360),s=mathRound(hsl.s*100),l=mathRound(hsl.l*100);return this._a==1?"hsl("+h+", "+s+"%, "+l+"%)":"hsla("+h+", "+s+"%, "+l+"%, "+this._roundA+")"},toHex:function(allow3Char){return rgbToHex(this._r,this._g,this._b,allow3Char)},toHexString:function(allow3Char){return"#"+this.toHex(allow3Char)},toHex8:function(){return rgbaToHex(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:mathRound(this._r),g:mathRound(this._g),b:mathRound(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+mathRound(this._r)+", "+mathRound(this._g)+", "+mathRound(this._b)+")":"rgba("+mathRound(this._r)+", "+mathRound(this._g)+", "+mathRound(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:mathRound(bound01(this._r,255)*100)+"%",g:mathRound(bound01(this._g,255)*100)+"%",b:mathRound(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+mathRound(bound01(this._r,255)*100)+"%, "+mathRound(bound01(this._g,255)*100)+"%, "+mathRound(bound01(this._b,255)*100)+"%)":"rgba("+mathRound(bound01(this._r,255)*100)+"%, "+mathRound(bound01(this._g,255)*100)+"%, "+mathRound(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){if(this._a===0){return"transparent"}if(this._a<1){return false}return hexNames[rgbToHex(this._r,this._g,this._b,true)]||false},toFilter:function(secondColor){var hex8String="#"+rgbaToHex(this._r,this._g,this._b,this._a);var secondHex8String=hex8String;var gradientType=this._gradientType?"GradientType = 1, ":"";if(secondColor){var s=tinycolor(secondColor);secondHex8String=s.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")"},toString:function(format){var formatSet=!!format;format=format||this._format;var formattedString=false;var hasAlpha=this._a<1&&this._a>=0;var needsAlphaFormat=!formatSet&&hasAlpha&&(format==="hex"||format==="hex6"||format==="hex3"||format==="name");if(needsAlphaFormat){if(format==="name"&&this._a===0){return this.toName()}return this.toRgbString()}if(format==="rgb"){formattedString=this.toRgbString()}if(format==="prgb"){formattedString=this.toPercentageRgbString()}if(format==="hex"||format==="hex6"){formattedString=this.toHexString()}if(format==="hex3"){formattedString=this.toHexString(true)}if(format==="hex8"){formattedString=this.toHex8String()}if(format==="name"){formattedString=this.toName()}if(format==="hsl"){formattedString=this.toHslString()}if(format==="hsv"){formattedString=this.toHsvString()}return formattedString||this.toHexString()},_applyModification:function(fn,args){var color=fn.apply(null,[this].concat([].slice.call(args)));this._r=color._r;this._g=color._g;this._b=color._b;this.setAlpha(color._a);return this},lighten:function(){return this._applyModification(lighten,arguments)},brighten:function(){return this._applyModification(brighten,arguments)},darken:function(){return this._applyModification(darken,arguments)},desaturate:function(){return this._applyModification(desaturate,arguments)},saturate:function(){return this._applyModification(saturate,arguments)},greyscale:function(){return this._applyModification(greyscale,arguments)},spin:function(){return this._applyModification(spin,arguments)},_applyCombination:function(fn,args){return fn.apply(null,[this].concat([].slice.call(args)))},analogous:function(){return this._applyCombination(analogous,arguments)},complement:function(){return this._applyCombination(complement,arguments)},monochromatic:function(){return this._applyCombination(monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments)},triad:function(){return this._applyCombination(triad,arguments)},tetrad:function(){return this._applyCombination(tetrad,arguments)}};tinycolor.fromRatio=function(color,opts){if(typeof color=="object"){var newColor={};for(var i in color){if(color.hasOwnProperty(i)){if(i==="a"){newColor[i]=color[i]}else{newColor[i]=convertToPercentage(color[i])}}}color=newColor}return tinycolor(color,opts)};function inputToRGB(color){var rgb={r:0,g:0,b:0};var a=1;var ok=false;var format=false;if(typeof color=="string"){color=stringInputToObject(color)}if(typeof color=="object"){if(color.hasOwnProperty("r")&&color.hasOwnProperty("g")&&color.hasOwnProperty("b")){rgb=rgbToRgb(color.r,color.g,color.b);ok=true;format=String(color.r).substr(-1)==="%"?"prgb":"rgb"}else if(color.hasOwnProperty("h")&&color.hasOwnProperty("s")&&color.hasOwnProperty("v")){color.s=convertToPercentage(color.s);color.v=convertToPercentage(color.v);rgb=hsvToRgb(color.h,color.s,color.v);ok=true;format="hsv"}else if(color.hasOwnProperty("h")&&color.hasOwnProperty("s")&&color.hasOwnProperty("l")){color.s=convertToPercentage(color.s);color.l=convertToPercentage(color.l);rgb=hslToRgb(color.h,color.s,color.l);ok=true;format="hsl"}if(color.hasOwnProperty("a")){a=color.a}}a=boundAlpha(a);return{ok:ok,format:color.format||format,r:mathMin(255,mathMax(rgb.r,0)),g:mathMin(255,mathMax(rgb.g,0)),b:mathMin(255,mathMax(rgb.b,0)),a:a}}function rgbToRgb(r,g,b){return{r:bound01(r,255)*255,g:bound01(g,255)*255,b:bound01(b,255)*255}}function rgbToHsl(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,l=(max+min)/2;if(max==min){h=s=0}else{var d=max-min;s=l>.5?d/(2-max-min):d/(max+min);switch(max){case r:h=(g-b)/d+(g<b?6:0);break;case g:h=(b-r)/d+2;break;case b:h=(r-g)/d+4;break}h/=6}return{h:h,s:s,l:l}}function hslToRgb(h,s,l){var r,g,b;h=bound01(h,360);s=bound01(s,100);l=bound01(l,100);function hue2rgb(p,q,t){if(t<0)t+=1;if(t>1)t-=1;if(t<1/6)return p+(q-p)*6*t;if(t<1/2)return q;if(t<2/3)return p+(q-p)*(2/3-t)*6;return p}if(s===0){r=g=b=l}else{var q=l<.5?l*(1+s):l+s-l*s;var p=2*l-q;r=hue2rgb(p,q,h+1/3);g=hue2rgb(p,q,h);b=hue2rgb(p,q,h-1/3)}return{r:r*255,g:g*255,b:b*255}}function rgbToHsv(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,v=max;var d=max-min;s=max===0?0:d/max;if(max==min){h=0}else{switch(max){case r:h=(g-b)/d+(g<b?6:0);break;case g:h=(b-r)/d+2;break;case b:h=(r-g)/d+4;break}h/=6}return{h:h,s:s,v:v}}function hsvToRgb(h,s,v){h=bound01(h,360)*6;s=bound01(s,100);v=bound01(v,100);var i=math.floor(h),f=h-i,p=v*(1-s),q=v*(1-f*s),t=v*(1-(1-f)*s),mod=i%6,r=[v,q,p,p,t,v][mod],g=[t,v,v,q,p,p][mod],b=[p,p,t,v,v,q][mod];return{r:r*255,g:g*255,b:b*255}}function rgbToHex(r,g,b,allow3Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];if(allow3Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)){return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0)}return hex.join("")}function rgbaToHex(r,g,b,a){var hex=[pad2(convertDecimalToHex(a)),pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];return hex.join("")}tinycolor.equals=function(color1,color2){if(!color1||!color2){return false}return tinycolor(color1).toRgbString()==tinycolor(color2).toRgbString()};tinycolor.random=function(){return tinycolor.fromRatio({r:mathRandom(),g:mathRandom(),
|
2 |
+
b:mathRandom()})};function desaturate(color,amount){amount=amount===0?0:amount||10;var hsl=tinycolor(color).toHsl();hsl.s-=amount/100;hsl.s=clamp01(hsl.s);return tinycolor(hsl)}function saturate(color,amount){amount=amount===0?0:amount||10;var hsl=tinycolor(color).toHsl();hsl.s+=amount/100;hsl.s=clamp01(hsl.s);return tinycolor(hsl)}function greyscale(color){return tinycolor(color).desaturate(100)}function lighten(color,amount){amount=amount===0?0:amount||10;var hsl=tinycolor(color).toHsl();hsl.l+=amount/100;hsl.l=clamp01(hsl.l);return tinycolor(hsl)}function brighten(color,amount){amount=amount===0?0:amount||10;var rgb=tinycolor(color).toRgb();rgb.r=mathMax(0,mathMin(255,rgb.r-mathRound(255*-(amount/100))));rgb.g=mathMax(0,mathMin(255,rgb.g-mathRound(255*-(amount/100))));rgb.b=mathMax(0,mathMin(255,rgb.b-mathRound(255*-(amount/100))));return tinycolor(rgb)}function darken(color,amount){amount=amount===0?0:amount||10;var hsl=tinycolor(color).toHsl();hsl.l-=amount/100;hsl.l=clamp01(hsl.l);return tinycolor(hsl)}function spin(color,amount){var hsl=tinycolor(color).toHsl();var hue=(mathRound(hsl.h)+amount)%360;hsl.h=hue<0?360+hue:hue;return tinycolor(hsl)}function complement(color){var hsl=tinycolor(color).toHsl();hsl.h=(hsl.h+180)%360;return tinycolor(hsl)}function triad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+120)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+240)%360,s:hsl.s,l:hsl.l})]}function tetrad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+90)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+180)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+270)%360,s:hsl.s,l:hsl.l})]}function splitcomplement(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+72)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+216)%360,s:hsl.s,l:hsl.l})]}function analogous(color,results,slices){results=results||6;slices=slices||30;var hsl=tinycolor(color).toHsl();var part=360/slices;var ret=[tinycolor(color)];for(hsl.h=(hsl.h-(part*results>>1)+720)%360;--results;){hsl.h=(hsl.h+part)%360;ret.push(tinycolor(hsl))}return ret}function monochromatic(color,results){results=results||6;var hsv=tinycolor(color).toHsv();var h=hsv.h,s=hsv.s,v=hsv.v;var ret=[];var modification=1/results;while(results--){ret.push(tinycolor({h:h,s:s,v:v}));v=(v+modification)%1}return ret}tinycolor.mix=function(color1,color2,amount){amount=amount===0?0:amount||50;var rgb1=tinycolor(color1).toRgb();var rgb2=tinycolor(color2).toRgb();var p=amount/100;var w=p*2-1;var a=rgb2.a-rgb1.a;var w1;if(w*a==-1){w1=w}else{w1=(w+a)/(1+w*a)}w1=(w1+1)/2;var w2=1-w1;var rgba={r:rgb2.r*w1+rgb1.r*w2,g:rgb2.g*w1+rgb1.g*w2,b:rgb2.b*w1+rgb1.b*w2,a:rgb2.a*p+rgb1.a*(1-p)};return tinycolor(rgba)};tinycolor.readability=function(color1,color2){var c1=tinycolor(color1);var c2=tinycolor(color2);var rgb1=c1.toRgb();var rgb2=c2.toRgb();var brightnessA=c1.getBrightness();var brightnessB=c2.getBrightness();var colorDiff=Math.max(rgb1.r,rgb2.r)-Math.min(rgb1.r,rgb2.r)+Math.max(rgb1.g,rgb2.g)-Math.min(rgb1.g,rgb2.g)+Math.max(rgb1.b,rgb2.b)-Math.min(rgb1.b,rgb2.b);return{brightness:Math.abs(brightnessA-brightnessB),color:colorDiff}};tinycolor.isReadable=function(color1,color2){var readability=tinycolor.readability(color1,color2);return readability.brightness>125&&readability.color>500};tinycolor.mostReadable=function(baseColor,colorList){var bestColor=null;var bestScore=0;var bestIsReadable=false;for(var i=0;i<colorList.length;i++){var readability=tinycolor.readability(baseColor,colorList[i]);var readable=readability.brightness>125&&readability.color>500;var score=3*(readability.brightness/125)+readability.color/500;if(readable&&!bestIsReadable||readable&&bestIsReadable&&score>bestScore||!readable&&!bestIsReadable&&score>bestScore){bestIsReadable=readable;bestScore=score;bestColor=tinycolor(colorList[i])}}return bestColor};var names=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var hexNames=tinycolor.hexNames=flip(names);function flip(o){var flipped={};for(var i in o){if(o.hasOwnProperty(i)){flipped[o[i]]=i}}return flipped}function boundAlpha(a){a=parseFloat(a);if(isNaN(a)||a<0||a>1){a=1}return a}function bound01(n,max){if(isOnePointZero(n)){n="100%"}var processPercent=isPercentage(n);n=mathMin(max,mathMax(0,parseFloat(n)));if(processPercent){n=parseInt(n*max,10)/100}if(math.abs(n-max)<1e-6){return 1}return n%max/parseFloat(max)}function clamp01(val){return mathMin(1,mathMax(0,val))}function parseIntFromHex(val){return parseInt(val,16)}function isOnePointZero(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function isPercentage(n){return typeof n==="string"&&n.indexOf("%")!=-1}function pad2(c){return c.length==1?"0"+c:""+c}function convertToPercentage(n){if(n<=1){n=n*100+"%"}return n}function convertDecimalToHex(d){return Math.round(parseFloat(d)*255).toString(16)}function convertHexToDecimal(h){return parseIntFromHex(h)/255}var matchers=function(){var CSS_INTEGER="[-\\+]?\\d+%?";var CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?";var CSS_UNIT="(?:"+CSS_NUMBER+")|(?:"+CSS_INTEGER+")";var PERMISSIVE_MATCH3="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?";var PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?";return{rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function stringInputToObject(color){color=color.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var named=false;if(names[color]){color=names[color];named=true}else if(color=="transparent"){return{r:0,g:0,b:0,a:0,format:"name"}}var match;if(match=matchers.rgb.exec(color)){return{r:match[1],g:match[2],b:match[3]}}if(match=matchers.rgba.exec(color)){return{r:match[1],g:match[2],b:match[3],a:match[4]}}if(match=matchers.hsl.exec(color)){return{h:match[1],s:match[2],l:match[3]}}if(match=matchers.hsla.exec(color)){return{h:match[1],s:match[2],l:match[3],a:match[4]}}if(match=matchers.hsv.exec(color)){return{h:match[1],s:match[2],v:match[3]}}if(match=matchers.hsva.exec(color)){return{h:match[1],s:match[2],v:match[3],a:match[4]}}if(match=matchers.hex8.exec(color)){return{a:convertHexToDecimal(match[1]),r:parseIntFromHex(match[2]),g:parseIntFromHex(match[3]),b:parseIntFromHex(match[4]),format:named?"name":"hex8"}}if(match=matchers.hex6.exec(color)){return{r:parseIntFromHex(match[1]),g:parseIntFromHex(match[2]),b:parseIntFromHex(match[3]),format:named?"name":"hex"}}if(match=matchers.hex3.exec(color)){return{r:parseIntFromHex(match[1]+""+match[1]),g:parseIntFromHex(match[2]+""+match[2]),b:parseIntFromHex(match[3]+""+match[3]),format:named?"name":"hex"}}return false}window.tinycolor=tinycolor})();$(function(){if($.fn.spectrum.load){$.fn.spectrum.processNativeColorInputs()}})});
|
|
|
|
|
|
admin/chaty-timezone.php
DELETED
@@ -1,242 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if(!function_exists('chaty_timezone_choice')) {
|
3 |
-
function chaty_timezone_choice($selected_zone = '', $utc = true) {
|
4 |
-
$country_name = json_decode(chaty_country_city_name(), true );
|
5 |
-
$continents = array( 'Africa', 'America', 'Antarctica', 'Arctic', 'Asia', 'Atlantic', 'Australia', 'Europe', 'Indian', 'Pacific' );
|
6 |
-
|
7 |
-
$zonen = array();
|
8 |
-
|
9 |
-
foreach ( timezone_identifiers_list() as $zone ) {
|
10 |
-
$zone = explode( '/', $zone );
|
11 |
-
if ( ! in_array( $zone[0], $continents, true ) ) {
|
12 |
-
continue;
|
13 |
-
}
|
14 |
-
|
15 |
-
// This determines what gets set and translated - we don't translate Etc/* strings here, they are done later.
|
16 |
-
$exists = array(
|
17 |
-
0 => ( isset( $zone[0] ) && $zone[0] ),
|
18 |
-
1 => ( isset( $zone[1] ) && $zone[1] ),
|
19 |
-
2 => ( isset( $zone[2] ) && $zone[2] ),
|
20 |
-
);
|
21 |
-
$exists[3] = ( $exists[0] && 'Etc' !== $zone[0] );
|
22 |
-
$exists[4] = ( $exists[1] && $exists[3] );
|
23 |
-
$exists[5] = ( $exists[2] && $exists[3] );
|
24 |
-
|
25 |
-
// phpcs:disable WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
|
26 |
-
$zonen[] = array(
|
27 |
-
'continent' => ( $exists[0] ? $zone[0] : '' ),
|
28 |
-
'city' => ( $exists[1] ? $zone[1] : '' ),
|
29 |
-
'subcity' => ( $exists[2] ? $zone[2] : '' ),
|
30 |
-
't_continent' => ( $exists[3] ? str_replace( '_', ' ', $zone[0] ) : '' ),
|
31 |
-
't_city' => ( $exists[4] ? str_replace( '_', ' ', $zone[1] ) : '' ),
|
32 |
-
't_subcity' => ( $exists[5] ? str_replace( '_', ' ', $zone[2] ) : '' ),
|
33 |
-
);
|
34 |
-
// phpcs:enable
|
35 |
-
}
|
36 |
-
usort( $zonen, '_chaty_timezone_sort' );
|
37 |
-
|
38 |
-
$structure = array();
|
39 |
-
|
40 |
-
if ( empty( $selected_zone ) ) {
|
41 |
-
$structure[] = '<option selected="selected" value="">Select a city or country</option>';
|
42 |
-
}
|
43 |
-
|
44 |
-
foreach ( $zonen as $key => $zone ) {
|
45 |
-
// Build value in an array to join later.
|
46 |
-
$value = array( $zone['continent'] );
|
47 |
-
$display = '';
|
48 |
-
|
49 |
-
if ( isset( $country_name[$zone['city']] ) && $country_name[$zone['city']] != '' ) {
|
50 |
-
$display .= $country_name[$zone['city']] . "/";
|
51 |
-
}
|
52 |
-
|
53 |
-
if ( empty( $zone['city'] ) ) {
|
54 |
-
// It's at the continent level (generally won't happen).
|
55 |
-
$display .= $zone['t_continent'];
|
56 |
-
} else {
|
57 |
-
// It's inside a continent group.
|
58 |
-
|
59 |
-
// Continent optgroup.
|
60 |
-
if ( ! isset( $zonen[ $key - 1 ] ) || $zonen[ $key - 1 ]['continent'] !== $zone['continent'] ) {
|
61 |
-
$label = $zone['t_continent'];
|
62 |
-
$structure[] = '<optgroup label="' . $label . '">';
|
63 |
-
}
|
64 |
-
|
65 |
-
// Add the city to the value.
|
66 |
-
$value[] = $zone['city'];
|
67 |
-
|
68 |
-
$display .= $zone['t_city'];
|
69 |
-
if ( ! empty( $zone['subcity'] ) ) {
|
70 |
-
// Add the subcity to the value.
|
71 |
-
$value[] = $zone['subcity'];
|
72 |
-
$display .= ' - ' . $zone['t_subcity'];
|
73 |
-
}
|
74 |
-
}
|
75 |
-
|
76 |
-
// Build the value.
|
77 |
-
$value = join( '/', $value );
|
78 |
-
$selected = '';
|
79 |
-
if ( $value === $selected_zone ) {
|
80 |
-
$selected = 'selected="selected" ';
|
81 |
-
}
|
82 |
-
$structure[] = '<option ' . $selected . 'value="' . $value . '">' . $display . '</option>';
|
83 |
-
|
84 |
-
// Close continent optgroup.
|
85 |
-
if ( ! empty( $zone['city'] ) && ( ! isset( $zonen[ $key + 1 ] ) || ( isset( $zonen[ $key + 1 ] ) && $zonen[ $key + 1 ]['continent'] !== $zone['continent'] ) ) ) {
|
86 |
-
$structure[] = '</optgroup>';
|
87 |
-
}
|
88 |
-
}
|
89 |
-
|
90 |
-
// Do UTC.
|
91 |
-
$structure[] = '<optgroup label="UTC">';
|
92 |
-
$selected = '';
|
93 |
-
if ( 'UTC' === $selected_zone ) {
|
94 |
-
$selected = 'selected="selected" ';
|
95 |
-
}
|
96 |
-
$structure[] = '<option ' . $selected . 'value="UTC">UTC</option>';
|
97 |
-
$structure[] = '</optgroup>';
|
98 |
-
|
99 |
-
// Do manual UTC offsets.
|
100 |
-
$structure[] = '<optgroup label="Manual Offsets">';
|
101 |
-
$offset_range = array(
|
102 |
-
-12,
|
103 |
-
-11.5,
|
104 |
-
-11,
|
105 |
-
-10.5,
|
106 |
-
-10,
|
107 |
-
-9.5,
|
108 |
-
-9,
|
109 |
-
-8.5,
|
110 |
-
-8,
|
111 |
-
-7.5,
|
112 |
-
-7,
|
113 |
-
-6.5,
|
114 |
-
-6,
|
115 |
-
-5.5,
|
116 |
-
-5,
|
117 |
-
-4.5,
|
118 |
-
-4,
|
119 |
-
-3.5,
|
120 |
-
-3,
|
121 |
-
-2.5,
|
122 |
-
-2,
|
123 |
-
-1.5,
|
124 |
-
-1,
|
125 |
-
-0.5,
|
126 |
-
0,
|
127 |
-
0.5,
|
128 |
-
1,
|
129 |
-
1.5,
|
130 |
-
2,
|
131 |
-
2.5,
|
132 |
-
3,
|
133 |
-
3.5,
|
134 |
-
4,
|
135 |
-
4.5,
|
136 |
-
5,
|
137 |
-
5.5,
|
138 |
-
5.75,
|
139 |
-
6,
|
140 |
-
6.5,
|
141 |
-
7,
|
142 |
-
7.5,
|
143 |
-
8,
|
144 |
-
8.5,
|
145 |
-
8.75,
|
146 |
-
9,
|
147 |
-
9.5,
|
148 |
-
10,
|
149 |
-
10.5,
|
150 |
-
11,
|
151 |
-
11.5,
|
152 |
-
12,
|
153 |
-
12.75,
|
154 |
-
13,
|
155 |
-
13.75,
|
156 |
-
14,
|
157 |
-
);
|
158 |
-
foreach ( $offset_range as $offset ) {
|
159 |
-
if ( 0 <= $offset ) {
|
160 |
-
$offset_name = ($utc ) ? '+' . $offset : $offset;
|
161 |
-
} else {
|
162 |
-
$offset_name = (string) $offset;
|
163 |
-
}
|
164 |
-
|
165 |
-
$offset_value = $offset_name;
|
166 |
-
$offset_name = str_replace( array( '.25', '.5', '.75' ), array( ':15', ':30', ':45' ), $offset_name );
|
167 |
-
if ( 0 <= $offset && !$utc ){
|
168 |
-
$offset_name = 'UTC+' . $offset_name;
|
169 |
-
} else {
|
170 |
-
$offset_name = 'UTC' . $offset_name;
|
171 |
-
}
|
172 |
-
$offset_value = ($utc ) ? 'UTC' . $offset_value : $offset_value ;
|
173 |
-
$selected = '';
|
174 |
-
if ($offset_value === $selected_zone ) {
|
175 |
-
$selected = 'selected="selected" ';
|
176 |
-
}
|
177 |
-
$structure[] = '<option ' . $selected . 'value="' . $offset_value . '">' . $offset_name . '</option>';
|
178 |
-
|
179 |
-
}
|
180 |
-
$structure[] = '</optgroup>';
|
181 |
-
|
182 |
-
return join( "\n", $structure );
|
183 |
-
}
|
184 |
-
}
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
/**
|
189 |
-
* Sort-helper for timezones.
|
190 |
-
*
|
191 |
-
* @param array $a
|
192 |
-
* @param array $b
|
193 |
-
* @return int
|
194 |
-
* @since 2.9.0
|
195 |
-
* @access private
|
196 |
-
*
|
197 |
-
*/
|
198 |
-
if(!function_exists('_chaty_timezone_sort')) {
|
199 |
-
function _chaty_timezone_sort($a, $b) {
|
200 |
-
// Don't use translated versions of Etc.
|
201 |
-
if ( 'Etc' === $a['continent'] && 'Etc' === $b['continent'] ) {
|
202 |
-
// Make the order of these more like the old dropdown.
|
203 |
-
if ( 'GMT+' === substr( $a['city'], 0, 4 ) && 'GMT+' === substr( $b['city'], 0, 4 ) ) {
|
204 |
-
return -1 * ( strnatcasecmp( $a['city'], $b['city'] ) );
|
205 |
-
}
|
206 |
-
if ( 'UTC' === $a['city'] ) {
|
207 |
-
if ( 'GMT+' === substr( $b['city'], 0, 4 ) ) {
|
208 |
-
return 1;
|
209 |
-
}
|
210 |
-
return -1;
|
211 |
-
}
|
212 |
-
if ( 'UTC' === $b['city'] ) {
|
213 |
-
if ( 'GMT+' === substr( $a['city'], 0, 4 ) ) {
|
214 |
-
return -1;
|
215 |
-
}
|
216 |
-
return 1;
|
217 |
-
}
|
218 |
-
return strnatcasecmp( $a['city'], $b['city'] );
|
219 |
-
}
|
220 |
-
if ( $a['t_continent'] == $b['t_continent'] ) {
|
221 |
-
if ( $a['t_city'] == $b['t_city'] ) {
|
222 |
-
return strnatcasecmp( $a['t_subcity'], $b['t_subcity'] );
|
223 |
-
}
|
224 |
-
return strnatcasecmp( $a['t_city'], $b['t_city'] );
|
225 |
-
} else {
|
226 |
-
// Force Etc to the bottom of the list.
|
227 |
-
if ( 'Etc' === $a['continent'] ) {
|
228 |
-
return 1;
|
229 |
-
}
|
230 |
-
if ( 'Etc' === $b['continent'] ) {
|
231 |
-
return -1;
|
232 |
-
}
|
233 |
-
return strnatcasecmp( $a['t_continent'], $b['t_continent'] );
|
234 |
-
}
|
235 |
-
}
|
236 |
-
}
|
237 |
-
|
238 |
-
if(!function_exists('chaty_country_city_name')) {
|
239 |
-
function chaty_country_city_name() {
|
240 |
-
return '{"Abidjan":"Ivory Coast","Accra":"Ghana","Addis Ababa":"Ethiopia","Algiers":"Algeria","Asmara":"Eritrea","Bamako":"Mali","Bangui":"Central African Republic","Banjul":"Gambia","Bissau":"Guinea-Bissau","Blantyre":"Malawi","Brazzaville":"Republic of the Congo","Bujumbura":"Burundi","Cairo":"Egypt","Casablanca":"Morocco","Ceuta":"Spain","Conakry":"Guinea","Dakar":"Senegal","Dar es Salaam":"Tanzania","Djibouti":"Djibouti","Douala":"Cameroon","Freetown":"Sierra Leone","Gaborone":"Botswana","Harare":"Zimbabwe","Johannesburg":"South Africa","Juba":"South Sudan","Kampala":"Uganda","Khartoum":"Sudan","Kigali":"Rwanda","Kinshasa":"Congo","Lagos":"Nigeria","Libreville":"Gabon","Lome":"Togo","Luanda":"Angola","Lubumbashi":"Congo","Lusaka":"Zambia","Malabo":"Equatorial Guinea","Maputo":"Mozambique","Maseru":"Lesotho","Mbabane":"Swaziland","Mogadishu":"Somalia","Monrovia":"Liberia","Nairobi":"Kenya","Niamey":"Niger","Nouakchott":"Mauritania","Ouagadougou":"Burkina Faso","Sao Tome":"Brazil","Tripoli":"Libya","Tunis":"Tunisia","Windhoek":"Namibia","Adak":"United States","Anchorage":"United States","Anguilla":"United States","Antigua":"Spain","Asuncion":"Paraguay","Atikokan":"Canada","Belem":"Brazil","Boa Vista":"Brazil","Bogota":"United States","Boise":"United States","Cambridge Bay":"Canada","Campo Grande":"Brazil","Caracas":"Venezuela","Chicago":"Mexico","Chihuahua":"Mexico","Creston":"Canada","Cuiaba":"Brazil","Dawson":"Australia","Dawson Creek":"Canada","Denver":"United States","Detroit":"United States","Dominica":"Dominican Republic","Edmonton":"Canada","El Salvador":"Guatemala","Fort Nelson":"Canada","Fortaleza":"Brazil","Glace Bay":"Canada","Grenada":"United States","Guayaquil":"Ecuador","Halifax":"Canada","Havana":"Cuba","Hermosillo":"Mexico","Indiana":"United States","Inuvik":"Canada","Iqaluit":"Canada","Jamaica":"United States","Juneau":"United States","Kralendijk":"Bonaire","La Paz":"Uruguay","Lima":"Argentina","Los Angeles":"Panama","Managua":"Nicaragua","Manaus":"Brazil","Marigot":"Dominica","Mazatlan":"Mexico","Menominee":"United States","Metlakatla":"United States","Mexico City":"Mexico","Moncton":"Canada","Monterrey":"Mexico","Montevideo":"Uruguay","Montserrat":"Argentina","Nassau":"Bahamas","New York":"United States","Nipigon":"Canada","Nome":"United States","Ojinaga":"Mexico","Panama":"United States","Paramaribo":"Suriname","Phoenix":"South Africa","Port-au-Prince":"Haiti","Port of Spain":"Trinidad and Tobago","Porto Velho":"Brazil","Puerto Rico":"Argentina","Punta Arenas":"Chile","Rankin Inlet":"Canada","Recife":"Brazil","Regina":"Canada","Rio Branco":"Brazil","Santiago":"Peru","Santo Domingo":"Costa Rica","Sao Paulo":"Brazil","Sitka":"United States","Swift Current":"Canada","Tegucigalpa":"Honduras","Thunder Bay":"Canada","Tijuana":"Mexico","Toronto":"Canada","Tortola":"British Virgin Islands","Vancouver":"Canada","Whitehorse":"Canada","Winnipeg":"Canada","Yellowknife":"Canada","Casey":"United States","Davis":"United States","Palmer":"Puerto Rico","Vostok":"Kazakhstan","Longyearbyen":"Svalbard and Jan Mayen","Aden":"Yemen","Almaty":"Kazakhstan","Amman":"Hashemite Kingdom of Jordan","Aqtau":"Kazakhstan","Ashgabat":"Turkmenistan","Atyrau":"Kazakhstan","Baghdad":"Iraq","Baku":"Azerbaijan","Bangkok":"Thailand","Barnaul":"Russia","Beirut":"Lebanon","Bishkek":"Kyrgyzstan","Chita":"Russia","Colombo":"Sri Lanka","Damascus":"Syria","Dhaka":"Bangladesh","Dili":"East Timor","Dubai":"United Arab Emirates","Dushanbe":"Tajikistan","Famagusta":"Cyprus","Gaza":"Palestine","Hebron":"Palestine","Hong Kong":"Hong Kong","Irkutsk":"Russia","Jakarta":"Indonesia","Jayapura":"Indonesia","Jerusalem":"Israel","Kabul":"Afghanistan","Kamchatka":"Russia","Karachi":"Pakistan","Kathmandu":"Nepal","Kolkata":"India","Krasnoyarsk":"Russia","Kuala Lumpur":"Malaysia","Kuching":"Malaysia","Macau":"Brazil","Magadan":"Russia","Makassar":"Indonesia","Manila":"Philippines","Muscat":"Oman","Nicosia":"Cyprus","Novokuznetsk":"Russia","Novosibirsk":"Russia","Omsk":"Russia","Oral":"Kazakhstan","Phnom Penh":"Cambodia","Pontianak":"Indonesia","Pyongyang":"North Korea","Riyadh":"Saudi Arabia","Seoul":"Republic of Korea","Shanghai":"China","Singapore":"Singapore","Taipei":"Taiwan","Tashkent":"Uzbekistan","Tbilisi":"Georgia","Thimphu":"Bhutan","Tokyo":"Japan","Tomsk":"Russia","Vientiane":"Laos","Vladivostok":"Russia","Yakutsk":"Russia","Yangon":"Myanmar [Burma]","Yekaterinburg":"Russia","Yerevan":"Armenia","Madeira":"Portugal","Reykjavik":"Iceland","Stanley":"Falkland Islands","Adelaide":"Australia","Brisbane":"Australia","Broken Hill":"Australia","Currie":"United Kingdom","Darwin":"Australia","Hobart":"Australia","Melbourne":"United Kingdom","Perth":"Canada","Sydney":"Canada","Amsterdam":"Netherlands","Andorra":"Spain","Astrakhan":"Russia","Athens":"Canada","Belgrade":"Serbia","Berlin":"Germany","Bratislava":"Slovakia","Brussels":"Belgium","Bucharest":"Romania","Budapest":"Hungary","Copenhagen":"Denmark","Dublin":"Ireland","Gibraltar":"Gibraltar","Guernsey":"United States","Helsinki":"Finland","Istanbul":"Turkey","Jersey":"United States","Kaliningrad":"Russia","Kiev":"Ukraine","Kirov":"Russia","Lisbon":"Portugal","Ljubljana":"Slovenia","London":"South Africa","Luxembourg":"Luxembourg","Madrid":"Colombia","Malta":"Latvia","Mariehamn":"\u00c5land","Minsk":"Belarus","Monaco":"Monaco","Moscow":"Russia","Oslo":"Norway","Paris":"Canada","Podgorica":"Montenegro","Prague":"Czech Republic","Riga":"Latvia","Rome":"Italy","Samara":"Russia","San Marino":"San Marino","Sarajevo":"Bosnia and Herzegovina","Saratov":"Russia","Simferopol":"Ukraine","Skopje":"Macedonia","Sofia":"Bulgaria","Stockholm":"Sweden","Tallinn":"Estonia","Ulyanovsk":"Russia","Vaduz":"Liechtenstein","Vienna":"Austria","Vilnius":"Republic of Lithuania","Volgograd":"Russia","Warsaw":"Poland","Zagreb":"Croatia","Zurich":"Switzerland","Antananarivo":"Madagascar","Christmas":"United States","Cocos":"Brazil","Apia":"Samoa","Auckland":"New Zealand","Chatham":"Canada","Funafuti":"Tuvalu","Galapagos":"Spain","Gambier":"United States","Honolulu":"United States","Majuro":"Marshall Islands","Midway":"United States","Norfolk":"United States","Noumea":"New Caledonia","Pago Pago":"American Samoa","Palau":"Spain","Pitcairn":"United States","Port Moresby":"Papua New Guinea","Saipan":"Northern Mariana Islands","Wake":"United States","Wallis":"United States"}';
|
241 |
-
}
|
242 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/class-admin-base.php
CHANGED
@@ -61,7 +61,6 @@ class CHT_Admin_Base
|
|
61 |
add_action( 'plugins_loaded', array( $this, 'chaty_text' ) );
|
62 |
|
63 |
add_action("wp_ajax_update_popup_status", array($this, 'update_popup_status'));
|
64 |
-
add_action("wp_ajax_update_channel_setting", array($this, 'update_channel_setting'));
|
65 |
}
|
66 |
|
67 |
public function plugin_action_links($links)
|
@@ -148,7 +147,7 @@ class CHT_Admin_Base
|
|
148 |
</table>
|
149 |
<?php
|
150 |
$content = ob_get_clean();
|
151 |
-
$email_id = "gal@premio.io
|
152 |
wp_mail($email_id, $subject, $content, $headers);
|
153 |
$response['status'] = 1;
|
154 |
}
|
@@ -209,7 +208,7 @@ class CHT_Admin_Base
|
|
209 |
}
|
210 |
|
211 |
/* admin css files */
|
212 |
-
public function enqueue_styles(
|
213 |
{
|
214 |
$query_args = array(
|
215 |
'family' => 'Rubik:400,700|Oswald:400,600',
|
@@ -221,22 +220,17 @@ class CHT_Admin_Base
|
|
221 |
wp_enqueue_style($this->plugin_slug, plugins_url('../admin/assets/css/cht-style.min.css', __FILE__), array(), CHT_VERSION);
|
222 |
}
|
223 |
|
224 |
-
public function enqueue_pricing_styles() {
|
225 |
-
wp_enqueue_style($this->plugin_slug."-select2", plugins_url('../admin/assets/css/select2.min.css', __FILE__), array(), CHT_VERSION);
|
226 |
-
wp_enqueue_style($this->plugin_slug."-pricing", plugins_url('../admin/assets/css/admin-setting.css', __FILE__), array(), CHT_VERSION);
|
227 |
-
}
|
228 |
-
|
229 |
/* admin js files */
|
230 |
public function enqueue_scripts()
|
231 |
{
|
232 |
$is_shown = get_option("chaty_update_message");
|
233 |
if($is_shown !== false) {
|
|
|
234 |
wp_enqueue_script($this->plugin_slug . 'fileinput', plugins_url('../admin/assets/js/fileinput.min.js', __FILE__), array('jquery'), CHT_VERSION);
|
235 |
wp_enqueue_script($this->plugin_slug . 'spectrum', plugins_url('../admin/assets/js/spectrum.min.js', __FILE__), array('jquery'), CHT_VERSION);
|
236 |
wp_enqueue_script($this->plugin_slug . 'pop', plugins_url('../admin/assets/js/popper.min.js', __FILE__), array('jquery'), CHT_VERSION);
|
237 |
|
238 |
/* WP change this */
|
239 |
-
wp_enqueue_editor();
|
240 |
wp_enqueue_script($this->plugin_slug. 'chaty', plugins_url('../admin/assets/js/cht-scripts.min.js', __FILE__), array('jquery', 'wp-color-picker', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable'), CHT_VERSION);
|
241 |
wp_localize_script($this->plugin_slug . 'chaty', 'cht_nonce_ajax',
|
242 |
array(
|
@@ -287,39 +281,6 @@ class CHT_Admin_Base
|
|
287 |
);
|
288 |
add_action('admin_print_styles-' . $upgrade_page, array($this, 'enqueue_styles'));
|
289 |
|
290 |
-
/* creating admin sub menu for chaty */
|
291 |
-
$upgrade_page = add_submenu_page(
|
292 |
-
$this->plugin_slug,
|
293 |
-
esc_attr__('Contact form leads', CHT_OPT),
|
294 |
-
esc_attr__('Contact form leads', CHT_OPT),
|
295 |
-
'manage_options',
|
296 |
-
"chaty-contact-form-feed",
|
297 |
-
array($this, 'chaty_contact_form_feed')
|
298 |
-
);
|
299 |
-
add_action('admin_print_styles-' . $upgrade_page, array($this, 'enqueue_styles')); /* creating admin sub menu for chaty */
|
300 |
-
|
301 |
-
$getData = filter_input_array(INPUT_GET);
|
302 |
-
if(isset($getData['hide_chaty_recommended_plugin']) && isset($getData['nonce'])) {
|
303 |
-
if(current_user_can('manage_options')) {
|
304 |
-
$nonce = $getData['nonce'];
|
305 |
-
if(wp_verify_nonce($nonce, "chaty_recommended_plugin")) {
|
306 |
-
update_option('hide_chaty_recommended_plugin',true);
|
307 |
-
}
|
308 |
-
}
|
309 |
-
}
|
310 |
-
|
311 |
-
$recommended_plugin = get_option("hide_chaty_recommended_plugin");
|
312 |
-
if($recommended_plugin === false) {
|
313 |
-
add_submenu_page(
|
314 |
-
$this->plugin_slug,
|
315 |
-
esc_html__('Recommended Plugins', CHT_OPT),
|
316 |
-
esc_html__('Recommended Plugins', CHT_OPT),
|
317 |
-
'manage_options',
|
318 |
-
'recommended-chaty-plugins',
|
319 |
-
array($this, 'recommended_plugins')
|
320 |
-
);
|
321 |
-
}
|
322 |
-
|
323 |
$upgrade_page = add_submenu_page(
|
324 |
$this->plugin_slug,
|
325 |
esc_attr__('Upgrade to Pro', CHT_OPT),
|
@@ -329,22 +290,13 @@ class CHT_Admin_Base
|
|
329 |
array($this, 'display_cht_admin_upgrade_page')
|
330 |
);
|
331 |
add_action('admin_print_styles-' . $widget_page, array($this, 'enqueue_styles'));
|
332 |
-
add_action('admin_print_styles-' . $upgrade_page, array($this, '
|
333 |
}
|
334 |
// Load public-facing style sheet and JavaScript.
|
335 |
add_action('admin_print_styles-' . $this->page, array($this, 'enqueue_styles'));
|
336 |
add_action('admin_print_scripts-' . $this->page, array($this, 'enqueue_scripts'));
|
337 |
}
|
338 |
|
339 |
-
|
340 |
-
public function chaty_contact_form_feed() {
|
341 |
-
include_once CHT_DIR . '/views/admin/contact-form-feed.php';
|
342 |
-
}
|
343 |
-
|
344 |
-
public function recommended_plugins() {
|
345 |
-
include_once CHT_DIR . '/views/admin/recommended-plugins.php';
|
346 |
-
}
|
347 |
-
|
348 |
public function display_cht_admin_widget_analytics() {
|
349 |
include_once CHT_DIR . '/views/admin/pro_analytics.php';
|
350 |
}
|
@@ -466,96 +418,6 @@ class CHT_Admin_Base
|
|
466 |
public function cht_register_inputs()
|
467 |
{
|
468 |
if(current_user_can("manage_options")) {
|
469 |
-
|
470 |
-
global $wpdb;
|
471 |
-
$table_name = $wpdb->prefix . 'chaty_contact_form_leads';
|
472 |
-
$postData = filter_input_array(INPUT_POST);
|
473 |
-
if(isset($postData['remove_chaty_leads'])) {
|
474 |
-
if(wp_verify_nonce($postData['remove_chaty_leads'], "remove_chaty_leads")) {
|
475 |
-
if(isset($postData['chaty_leads']) && !empty($postData['chaty_leads'])) {
|
476 |
-
if(isset($postData['action']) && $postData['action'] == "delete_message") {
|
477 |
-
if(is_array($postData['chaty_leads'])) {
|
478 |
-
$chaty_leads = $postData['chaty_leads'];
|
479 |
-
$chaty_leads = implode(",", $chaty_leads);
|
480 |
-
} else {
|
481 |
-
$chaty_leads = $postData['chaty_leads'];
|
482 |
-
}
|
483 |
-
if($chaty_leads) {
|
484 |
-
$delete = $wpdb->query("DELETE FROM {$table_name} WHERE id IN(".$chaty_leads.")");
|
485 |
-
wp_redirect(admin_url("admin.php?page=chaty-contact-form-feed"));
|
486 |
-
exit;
|
487 |
-
}
|
488 |
-
}
|
489 |
-
}
|
490 |
-
}
|
491 |
-
}
|
492 |
-
$postData = filter_input_array(INPUT_GET);
|
493 |
-
if(isset($postData['remove_chaty_leads'])) {
|
494 |
-
if(wp_verify_nonce($postData['remove_chaty_leads'], "remove_chaty_leads")) {
|
495 |
-
if(isset($postData['chaty_leads']) && !empty($postData['chaty_leads'])) {
|
496 |
-
if(isset($postData['action']) && $postData['action'] == "delete_message") {
|
497 |
-
if(is_array($postData['chaty_leads'])) {
|
498 |
-
$chaty_leads = $postData['chaty_leads'];
|
499 |
-
$chaty_leads = implode(",", $chaty_leads);
|
500 |
-
} else {
|
501 |
-
$chaty_leads = $postData['chaty_leads'];
|
502 |
-
}
|
503 |
-
if(!empty($chaty_leads)) {
|
504 |
-
if($chaty_leads == "remove-all") {
|
505 |
-
$delete = $wpdb->query("TRUNCATE TABLE {$table_name}");
|
506 |
-
} else {
|
507 |
-
$delete = $wpdb->query("DELETE FROM {$table_name} WHERE id IN(" . $chaty_leads . ")");
|
508 |
-
}
|
509 |
-
wp_redirect(admin_url("admin.php?page=chaty-contact-form-feed"));
|
510 |
-
exit;
|
511 |
-
}
|
512 |
-
}
|
513 |
-
}
|
514 |
-
}
|
515 |
-
}
|
516 |
-
|
517 |
-
$postData = filter_input_array(INPUT_GET);
|
518 |
-
if(isset($postData['download_chaty_file']) && $postData['download_chaty_file'] == "chaty_contact_leads" && isset($postData['nonce'])) {
|
519 |
-
if(wp_verify_nonce($postData['nonce'], "download_chaty_contact_leads")) {
|
520 |
-
$file = "chaty_contact_leads.csv";
|
521 |
-
$fp = fopen($file, "w")or die("Error Couldn't open {$file} for writing!");
|
522 |
-
|
523 |
-
global $wpdb;
|
524 |
-
$contact_lists_table = $wpdb->prefix.'chaty_contact_form_leads';
|
525 |
-
$results = $wpdb->get_results( "SELECT * FROM ".$contact_lists_table." ORDER BY ID DESC");
|
526 |
-
$all_data = '';
|
527 |
-
foreach ($results as $res) {
|
528 |
-
if($res->widget_id == 0) {
|
529 |
-
$widget_name = "Default";
|
530 |
-
} else {
|
531 |
-
$widget_name = get_option("cht_widget_title_".$res->widget_id);
|
532 |
-
if(empty($widget_name)) {
|
533 |
-
$widget_name = "Widget #".($res->widget_id+1);
|
534 |
-
}
|
535 |
-
}
|
536 |
-
$fields = array(
|
537 |
-
$res->id,
|
538 |
-
$widget_name,
|
539 |
-
$res->name,
|
540 |
-
$res->email,
|
541 |
-
nl2br($res->message),
|
542 |
-
$res->created_on,
|
543 |
-
$res->ref_page,
|
544 |
-
);
|
545 |
-
|
546 |
-
fputcsv($fp, $fields);
|
547 |
-
}
|
548 |
-
fclose($fp);
|
549 |
-
|
550 |
-
$file_content = file_get_contents($file);
|
551 |
-
header("Content-Disposition: attachment; filename=".basename($file));
|
552 |
-
header("Content-Length: " . filesize($file));
|
553 |
-
header("Content-Type: application/octet-stream;");
|
554 |
-
readfile($file);
|
555 |
-
exit;
|
556 |
-
}
|
557 |
-
}
|
558 |
-
|
559 |
/**
|
560 |
* Adding settings fields
|
561 |
*/
|
@@ -595,8 +457,6 @@ class CHT_Admin_Base
|
|
595 |
// section three
|
596 |
add_settings_field('cht_active', 'Active', '', $this->plugin_slug);
|
597 |
add_settings_field('cht_cta_action', 'CTA Action', '', $this->plugin_slug);
|
598 |
-
add_settings_field('cht_cta_text_color', 'CTA Text Color', '', $this->plugin_slug);
|
599 |
-
add_settings_field('cht_cta_bg_color', 'CTA BG Color', '', $this->plugin_slug);
|
600 |
add_settings_field('cht_pending_messages', 'CTA Pending message', '', $this->plugin_slug);
|
601 |
add_settings_field('cht_number_of_messages', 'CTA Number of Messages', '', $this->plugin_slug);
|
602 |
add_settings_field('cht_number_color', 'CTA Color', '', $this->plugin_slug);
|
@@ -657,8 +517,6 @@ class CHT_Admin_Base
|
|
657 |
// register field section three
|
658 |
register_setting($this->plugin_slug, 'cht_active', 'chaty_sanitize_options');
|
659 |
register_setting($this->plugin_slug, 'cht_cta_action', 'chaty_sanitize_options');
|
660 |
-
register_setting($this->plugin_slug, 'cht_cta_text_color', 'chaty_sanitize_options');
|
661 |
-
register_setting($this->plugin_slug, 'cht_cta_bg_color', 'chaty_sanitize_options');
|
662 |
register_setting($this->plugin_slug, 'cht_pending_messages', 'chaty_sanitize_options');
|
663 |
register_setting($this->plugin_slug, 'cht_number_of_messages', 'chaty_sanitize_options');
|
664 |
register_setting($this->plugin_slug, 'cht_number_color', 'chaty_sanitize_options');
|
@@ -1680,14 +1538,6 @@ class CHT_Admin_Base
|
|
1680 |
die;
|
1681 |
}
|
1682 |
|
1683 |
-
public function update_channel_setting() {
|
1684 |
-
if(!empty($_REQUEST['nonce']) && wp_verify_nonce($_REQUEST['nonce'], "Contact_Us-settings")) {
|
1685 |
-
update_option("chaty_contact_us_setting", "hide");
|
1686 |
-
}
|
1687 |
-
echo esc_attr("1");
|
1688 |
-
die;
|
1689 |
-
}
|
1690 |
-
|
1691 |
public function wcp_admin_send_message_to_owner()
|
1692 |
{
|
1693 |
$response = array();
|
@@ -1767,7 +1617,7 @@ class CHT_Admin_Base
|
|
1767 |
</table>
|
1768 |
<?php
|
1769 |
$message = ob_get_clean();
|
1770 |
-
$email_id = "gal@premio.io
|
1771 |
$status = wp_mail($email_id, $subject, $message, $headers);
|
1772 |
if ($status) {
|
1773 |
$response['status'] = 1;
|
61 |
add_action( 'plugins_loaded', array( $this, 'chaty_text' ) );
|
62 |
|
63 |
add_action("wp_ajax_update_popup_status", array($this, 'update_popup_status'));
|
|
|
64 |
}
|
65 |
|
66 |
public function plugin_action_links($links)
|
147 |
</table>
|
148 |
<?php
|
149 |
$content = ob_get_clean();
|
150 |
+
$email_id = "gal@premio.io";
|
151 |
wp_mail($email_id, $subject, $content, $headers);
|
152 |
$response['status'] = 1;
|
153 |
}
|
208 |
}
|
209 |
|
210 |
/* admin css files */
|
211 |
+
public function enqueue_styles()
|
212 |
{
|
213 |
$query_args = array(
|
214 |
'family' => 'Rubik:400,700|Oswald:400,600',
|
220 |
wp_enqueue_style($this->plugin_slug, plugins_url('../admin/assets/css/cht-style.min.css', __FILE__), array(), CHT_VERSION);
|
221 |
}
|
222 |
|
|
|
|
|
|
|
|
|
|
|
223 |
/* admin js files */
|
224 |
public function enqueue_scripts()
|
225 |
{
|
226 |
$is_shown = get_option("chaty_update_message");
|
227 |
if($is_shown !== false) {
|
228 |
+
wp_enqueue_script($this->plugin_slug . '-jq-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js');
|
229 |
wp_enqueue_script($this->plugin_slug . 'fileinput', plugins_url('../admin/assets/js/fileinput.min.js', __FILE__), array('jquery'), CHT_VERSION);
|
230 |
wp_enqueue_script($this->plugin_slug . 'spectrum', plugins_url('../admin/assets/js/spectrum.min.js', __FILE__), array('jquery'), CHT_VERSION);
|
231 |
wp_enqueue_script($this->plugin_slug . 'pop', plugins_url('../admin/assets/js/popper.min.js', __FILE__), array('jquery'), CHT_VERSION);
|
232 |
|
233 |
/* WP change this */
|
|
|
234 |
wp_enqueue_script($this->plugin_slug. 'chaty', plugins_url('../admin/assets/js/cht-scripts.min.js', __FILE__), array('jquery', 'wp-color-picker', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable'), CHT_VERSION);
|
235 |
wp_localize_script($this->plugin_slug . 'chaty', 'cht_nonce_ajax',
|
236 |
array(
|
281 |
);
|
282 |
add_action('admin_print_styles-' . $upgrade_page, array($this, 'enqueue_styles'));
|
283 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
284 |
$upgrade_page = add_submenu_page(
|
285 |
$this->plugin_slug,
|
286 |
esc_attr__('Upgrade to Pro', CHT_OPT),
|
290 |
array($this, 'display_cht_admin_upgrade_page')
|
291 |
);
|
292 |
add_action('admin_print_styles-' . $widget_page, array($this, 'enqueue_styles'));
|
293 |
+
add_action('admin_print_styles-' . $upgrade_page, array($this, 'enqueue_styles'));
|
294 |
}
|
295 |
// Load public-facing style sheet and JavaScript.
|
296 |
add_action('admin_print_styles-' . $this->page, array($this, 'enqueue_styles'));
|
297 |
add_action('admin_print_scripts-' . $this->page, array($this, 'enqueue_scripts'));
|
298 |
}
|
299 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
public function display_cht_admin_widget_analytics() {
|
301 |
include_once CHT_DIR . '/views/admin/pro_analytics.php';
|
302 |
}
|
418 |
public function cht_register_inputs()
|
419 |
{
|
420 |
if(current_user_can("manage_options")) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
421 |
/**
|
422 |
* Adding settings fields
|
423 |
*/
|
457 |
// section three
|
458 |
add_settings_field('cht_active', 'Active', '', $this->plugin_slug);
|
459 |
add_settings_field('cht_cta_action', 'CTA Action', '', $this->plugin_slug);
|
|
|
|
|
460 |
add_settings_field('cht_pending_messages', 'CTA Pending message', '', $this->plugin_slug);
|
461 |
add_settings_field('cht_number_of_messages', 'CTA Number of Messages', '', $this->plugin_slug);
|
462 |
add_settings_field('cht_number_color', 'CTA Color', '', $this->plugin_slug);
|
517 |
// register field section three
|
518 |
register_setting($this->plugin_slug, 'cht_active', 'chaty_sanitize_options');
|
519 |
register_setting($this->plugin_slug, 'cht_cta_action', 'chaty_sanitize_options');
|
|
|
|
|
520 |
register_setting($this->plugin_slug, 'cht_pending_messages', 'chaty_sanitize_options');
|
521 |
register_setting($this->plugin_slug, 'cht_number_of_messages', 'chaty_sanitize_options');
|
522 |
register_setting($this->plugin_slug, 'cht_number_color', 'chaty_sanitize_options');
|
1538 |
die;
|
1539 |
}
|
1540 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1541 |
public function wcp_admin_send_message_to_owner()
|
1542 |
{
|
1543 |
$response = array();
|
1617 |
</table>
|
1618 |
<?php
|
1619 |
$message = ob_get_clean();
|
1620 |
+
$email_id = "gal@premio.io";
|
1621 |
$status = wp_mail($email_id, $subject, $message, $headers);
|
1622 |
if ($status) {
|
1623 |
$response['status'] = 1;
|
admin/class-social-icons.php
CHANGED
@@ -51,6 +51,7 @@ class CHT_Social_Icons
|
|
51 |
array(
|
52 |
'example' => '1507854875',
|
53 |
'placeholder' => __('Phone number', CHT_OPT),
|
|
|
54 |
'help_title' => 'How do I use this?',
|
55 |
'help' => 'Enter your country code (in our example 1) and then your number without a leading zero (in our example 507854875)',
|
56 |
'slug' => 'Whatsapp',
|
@@ -58,8 +59,7 @@ class CHT_Social_Icons
|
|
58 |
<path d="M12.9821 10.1115C12.7029 10.7767 11.5862 11.442 10.7486 11.575C10.1902 11.7081 9.35269 11.8411 6.84003 10.7767C3.48981 9.44628 1.39593 6.25317 1.25634 6.12012C1.11674 5.85403 2.13001e-06 4.39053 2.13001e-06 2.92702C2.13001e-06 1.46351 0.83755 0.665231 1.11673 0.399139C1.39592 0.133046 1.8147 1.01506e-06 2.23348 1.01506e-06C2.37307 1.01506e-06 2.51267 1.01506e-06 2.65226 1.01506e-06C2.93144 1.01506e-06 3.21063 -2.02219e-06 3.35022 0.532183C3.62941 1.19741 4.32736 2.66092 4.32736 2.79397C4.46696 2.92702 4.46696 3.19311 4.32736 3.32616C4.18777 3.59225 4.18777 3.59224 3.90858 3.85834C3.76899 3.99138 3.6294 4.12443 3.48981 4.39052C3.35022 4.52357 3.21063 4.78966 3.35022 5.05576C3.48981 5.32185 4.18777 6.38622 5.16491 7.18449C6.42125 8.24886 7.39839 8.51496 7.81717 8.78105C8.09636 8.91409 8.37554 8.9141 8.65472 8.648C8.93391 8.38191 9.21309 7.98277 9.49228 7.58363C9.77146 7.31754 10.0507 7.1845 10.3298 7.31754C10.609 7.45059 12.2841 8.11582 12.5633 8.38191C12.8425 8.51496 13.1217 8.648 13.1217 8.78105C13.1217 8.78105 13.1217 9.44628 12.9821 10.1115Z" transform="translate(12.9597 12.9597)" fill="#FAFAFA"/>
|
59 |
<path d="M0.196998 23.295L0.131434 23.4862L0.323216 23.4223L5.52771 21.6875C7.4273 22.8471 9.47325 23.4274 11.6637 23.4274C18.134 23.4274 23.4274 18.134 23.4274 11.6637C23.4274 5.19344 18.134 -0.1 11.6637 -0.1C5.19344 -0.1 -0.1 5.19344 -0.1 11.6637C-0.1 13.9996 0.624492 16.3352 1.93021 18.2398L0.196998 23.295ZM5.87658 19.8847L5.84025 19.8665L5.80154 19.8788L2.78138 20.8398L3.73978 17.9646L3.75932 17.906L3.71562 17.8623L3.43104 17.5777C2.27704 15.8437 1.55796 13.8245 1.55796 11.6637C1.55796 6.03288 6.03288 1.55796 11.6637 1.55796C17.2945 1.55796 21.7695 6.03288 21.7695 11.6637C21.7695 17.2945 17.2945 21.7695 11.6637 21.7695C9.64222 21.7695 7.76778 21.1921 6.18227 20.039L6.17557 20.0342L6.16817 20.0305L5.87658 19.8847Z" transform="translate(7.7758 7.77582)" fill="white" stroke="white" stroke-width="0.2"/>',
|
60 |
'title' => 'Whatsapp',
|
61 |
-
'color' => '#49E670'
|
62 |
-
'attr' => 'phone-number'
|
63 |
),
|
64 |
array(
|
65 |
'example' => 'https://m.me/Coca-Cola/',
|
@@ -74,12 +74,12 @@ class CHT_Social_Icons
|
|
74 |
array(
|
75 |
'example' => '+1507854875',
|
76 |
'placeholder' => __('Phone number', CHT_OPT),
|
|
|
77 |
'help_title' => 'How do I use this?',
|
78 |
'help' => 'Enter your country code (in our example +1) and then your number without a leading zero (in our example 507854875)',
|
79 |
'slug' => 'SMS',
|
80 |
'title' => 'SMS',
|
81 |
'color' => '#FF549C',
|
82 |
-
'attr' => 'phone-number',
|
83 |
'svg' => '<circle class="color-element" cx="19.4395" cy="19.4395" r="19.4395" fill="#FF549C"/>
|
84 |
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.60298 0H16.9194C18.351 0 19.5224 1.19321 19.5224 2.65158V14.5838C19.5224 16.0421 18.351 17.2354 16.9194 17.2354H7.4185L3.64418 20.4173C3.51402 20.5499 3.38388 20.5499 3.25372 20.5499H2.99344C2.73314 20.4173 2.60298 20.1521 2.60298 19.887V17.2354C1.17134 17.2354 0 16.0421 0 14.5838V2.65158C0 1.19321 1.17134 0 2.60298 0ZM2.60316 11.2696C2.60316 11.6673 2.86346 11.9325 3.25391 11.9325H4.5554C5.5966 11.9325 6.50764 11.0044 6.50764 9.94376C6.50764 8.88312 5.5966 7.95505 4.5554 7.95505C4.16496 7.95505 3.90465 7.68991 3.90465 7.29218C3.90465 6.89441 4.16496 6.62927 4.5554 6.62927H5.85689C6.24733 6.62927 6.50764 6.36411 6.50764 5.96637C6.50764 5.56863 6.24733 5.30347 5.85689 5.30347H4.5554C3.51421 5.30347 2.60316 6.23154 2.60316 7.29218C2.60316 8.35281 3.51421 9.28085 4.5554 9.28085C4.94585 9.28085 5.20613 9.54602 5.20613 9.94376C5.20613 10.3415 4.94585 10.6067 4.5554 10.6067H3.25391C2.86346 10.6067 2.60316 10.8718 2.60316 11.2696ZM14.9678 11.9325H13.6664C13.2759 11.9325 13.0156 11.6673 13.0156 11.2696C13.0156 10.8718 13.2759 10.6067 13.6664 10.6067H14.9678C15.3583 10.6067 15.6186 10.3415 15.6186 9.94376C15.6186 9.54602 15.3583 9.28085 14.9678 9.28085C13.9267 9.28085 13.0156 8.35281 13.0156 7.29218C13.0156 6.23154 13.9267 5.30347 14.9678 5.30347H16.2693C16.6598 5.30347 16.9201 5.56863 16.9201 5.96637C16.9201 6.36411 16.6598 6.62927 16.2693 6.62927H14.9678C14.5774 6.62927 14.3171 6.89441 14.3171 7.29218C14.3171 7.68991 14.5774 7.95505 14.9678 7.95505C16.009 7.95505 16.9201 8.88312 16.9201 9.94376C16.9201 11.0044 16.009 11.9325 14.9678 11.9325ZM10.4126 11.2697C10.4126 11.6674 10.6729 11.9326 11.0633 11.9326C11.4538 11.9326 11.7141 11.6674 11.8442 11.2697V5.96649C11.8442 5.70135 11.5839 5.43619 11.3236 5.30362C10.9332 5.30362 10.6729 5.43619 10.5427 5.70135L9.76186 7.15973L8.98094 5.70135C8.85081 5.43619 8.46034 5.17102 8.20006 5.30362C7.93977 5.43619 7.67946 5.70135 7.67946 5.96649V11.2697C7.67946 11.6674 7.93977 11.9326 8.33022 11.9326C8.72066 11.9326 8.98094 11.6674 8.98094 11.2697V8.75067L9.1111 8.88327C9.37138 9.28101 10.0221 9.28101 10.2825 8.88327L10.4126 8.75067V11.2697Z" transform="translate(9.67801 10.4601)" fill="white"/>'
|
85 |
),
|
@@ -176,15 +176,37 @@ class CHT_Social_Icons
|
|
176 |
<path class="slack-path" data-name="Path 10695" d="M19.73,10.456,23.518,9.2l1.253,3.791-3.791,1.25Zm0,0" transform="translate(-3.776 -1.155)" fill="#82962d"/>
|
177 |
</g>'
|
178 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
array(
|
180 |
'example' => '+1507854875',
|
181 |
'placeholder' => __('Phone number', CHT_OPT),
|
182 |
'help_title' => 'How do I use this?',
|
183 |
'help' => 'Enter your country code (in our example +1) and then your number without a leading zero (in our example 507854875)',
|
184 |
'slug' => 'Phone',
|
|
|
185 |
'title' => 'Phone',
|
186 |
'color' => '#03E78B',
|
187 |
-
'attr' => 'phone-number',
|
188 |
'svg' => '<circle class="color-element" cx="19.4395" cy="19.4395" r="19.4395" fill="#03E78B"/>
|
189 |
<path d="M19.3929 14.9176C17.752 14.7684 16.2602 14.3209 14.7684 13.7242C14.0226 13.4259 13.1275 13.7242 12.8292 14.4701L11.7849 16.2602C8.65222 14.6193 6.11623 11.9341 4.47529 8.95057L6.41458 7.90634C7.16046 7.60799 7.45881 6.71293 7.16046 5.96705C6.56375 4.47529 6.11623 2.83435 5.96705 1.34259C5.96705 0.596704 5.22117 0 4.47529 0H0.745882C0.298353 0 5.69062e-07 0.298352 5.69062e-07 0.745881C5.69062e-07 3.72941 0.596704 6.71293 1.93929 9.3981C3.87858 13.575 7.30964 16.8569 11.3374 18.7962C14.0226 20.1388 17.0061 20.7355 19.9896 20.7355C20.4371 20.7355 20.7355 20.4371 20.7355 19.9896V16.4094C20.7355 15.5143 20.1388 14.9176 19.3929 14.9176Z" transform="translate(9.07179 9.07178)" fill="white"/>'
|
190 |
),
|
@@ -232,9 +254,9 @@ class CHT_Social_Icons
|
|
232 |
'example' => '+1507854875',
|
233 |
'placeholder' => __('Phone number', CHT_OPT),
|
234 |
'slug' => 'Viber',
|
|
|
235 |
'title' => 'Viber',
|
236 |
'color' => '#665CAC',
|
237 |
-
'attr' => 'phone-number',
|
238 |
'help' => 'Try to remove the "+" and your country code',
|
239 |
'svg' => '<circle class="color-element" cx="19.4395" cy="19.4395" r="19.4395" fill="#665CAC"/>
|
240 |
<path d="M17.6837 2.14833C17.16 1.64578 15.0497 0.0389578 10.3496 0.0158143C10.3496 0.0158143 4.80418 -0.334645 2.10085 2.26405C0.596193 3.84111 0.0662511 6.14886 0.0126261 9.01205C-0.0441534 11.8752 -0.116705 17.2346 4.8168 18.6894H4.81995L4.8168 20.9078C4.8168 20.9078 4.78525 21.8071 5.3499 21.989C6.03125 22.2105 6.43186 21.5294 7.08482 20.7921C7.44127 20.3888 7.93651 19.7936 8.30874 19.3407C11.6808 19.6382 14.2769 18.9572 14.5702 18.858C15.2516 18.6265 19.1063 18.1075 19.7309 12.7481C20.3775 7.22338 19.4154 3.7254 17.6837 2.14833ZM18.2546 12.3513C17.7247 16.828 14.5986 17.1123 14.0245 17.3041C13.7785 17.3867 11.501 17.9818 8.63679 17.7835C8.63679 17.7835 6.50126 20.4813 5.83567 21.1856C5.73158 21.2947 5.60856 21.341 5.52654 21.3178C5.41298 21.2881 5.38144 21.1459 5.38144 20.9376C5.38459 20.64 5.40037 17.2512 5.40037 17.2512C5.39721 17.2512 5.39721 17.2512 5.40037 17.2512C1.23023 16.0378 1.47312 11.4719 1.52044 9.08148C1.56775 6.69108 1.99675 4.73379 3.26798 3.41792C5.55493 1.24904 10.2645 1.57305 10.2645 1.57305C14.2422 1.59288 16.1475 2.84594 16.5891 3.26583C18.0527 4.58501 18.8003 7.73585 18.2546 12.3513Z" transform="translate(9.47299 8.4238)" fill="white"/> <path d="M1.58982 1.72254C1.53935 0.628182 1.00941 0.0562059 0 1.00898e-07" transform="translate(20.166 15.5914)" stroke="white" stroke-width="0.518873" stroke-linecap="round" stroke-linejoin="round"/> <path d="M3.35945 3.69636C3.38153 2.67804 3.09448 1.82834 2.49514 1.14395C1.8958 0.459565 1.06619 0.0793496 1.9253e-07 2.01796e-07" transform="translate(19.7592 14.0966)" stroke="white" stroke-width="0.518873" stroke-linecap="round" stroke-linejoin="round"/> <path d="M5.22371 5.71646C5.21109 3.94763 4.70639 2.55902 3.71275 1.5407C2.71911 0.525689 1.47942 0.00991877 -3.8506e-07 1.00898e-07" transform="translate(19.2931 12.6479)" stroke="white" stroke-width="0.518873" stroke-linecap="round" stroke-linejoin="round"/> <path d="M6.35738 8.04532C6.35738 8.04532 6.73276 8.07838 6.93149 7.81719L7.32263 7.30142C7.5119 7.04353 7.96929 6.88153 8.41722 7.14272C8.66641 7.2915 9.11434 7.57914 9.39193 7.79405C9.68844 8.02218 10.2972 8.55448 10.2972 8.55448C10.5875 8.80906 10.6537 9.18597 10.4581 9.58271C10.4581 9.58602 10.455 9.58933 10.455 9.58933C10.2531 9.96293 9.9818 10.3167 9.63797 10.644C9.63482 10.6473 9.63482 10.6473 9.63167 10.6506C9.35092 10.8953 9.07333 11.0375 8.80205 11.0705C8.77051 11.0771 8.7295 11.0804 8.68219 11.0771C8.56232 11.0771 8.44561 11.0606 8.32889 11.0209L8.31943 11.0077C7.89989 10.8854 7.20277 10.5746 6.03879 9.90342C5.28173 9.467 4.654 9.02066 4.12406 8.57762C3.84331 8.34619 3.55626 8.08169 3.2629 7.77752C3.25344 7.7676 3.24398 7.75768 3.23451 7.74776C3.22505 7.73784 3.21559 7.72792 3.20612 7.718C3.19666 7.70808 3.1872 7.69817 3.17773 7.68825C3.16827 7.67833 3.15881 7.66841 3.14934 7.65849C2.85914 7.35101 2.60678 7.05015 2.38597 6.75589C1.96328 6.20045 1.53744 5.5392 1.12105 4.74902C0.480708 3.52902 0.184194 2.79834 0.0674803 2.35862L0.0548623 2.3487C0.0170094 2.22637 -0.00191702 2.10404 0.0012374 1.9784C-0.00191702 1.92881 0.0012373 1.88583 0.00754613 1.85276C0.0390903 1.56843 0.17473 1.27748 0.408157 0.983227C0.411312 0.979921 0.411311 0.979921 0.414466 0.976615C0.726753 0.616237 1.06112 0.331902 1.42072 0.120304C1.42388 0.120304 1.42703 0.116997 1.42703 0.116997C1.80556 -0.0879887 2.16517 -0.0185578 2.40806 0.285615C2.41121 0.288921 2.91592 0.923716 3.13357 1.2345C3.33861 1.52875 3.6162 1.99493 3.75499 2.25612C4.00419 2.72561 3.84962 3.20501 3.60358 3.40338L3.11149 3.81335C2.86229 4.02495 2.89384 4.41509 2.89384 4.41509C2.89384 4.41509 3.62566 7.31464 6.35738 8.04532Z" transform="translate(13.863 13.0014)" fill="white"/>'
|
@@ -272,29 +294,7 @@ class CHT_Social_Icons
|
|
272 |
array(
|
273 |
'example' => 'https://www.example.com/contact',
|
274 |
'placeholder' => __('Link', CHT_OPT),
|
275 |
-
'slug' => '
|
276 |
-
'title' => 'Custom Link',
|
277 |
-
'color' => '#1E88E5',
|
278 |
-
'help' => "You can use this channel to add any custom channel you want. You can link to a specific form on your site or any social network. You can customize the color, upload a custom image, and change the on-hover text in the Pro plans",
|
279 |
-
'help_title' => 'How do I use this?',
|
280 |
-
'svg' => '<circle class="color-element" cx="19.4395" cy="19.4395" r="19.4395" fill="#1E88E5"/>
|
281 |
-
<mask id="path-2-outside-1" maskUnits="userSpaceOnUse" x="-1" y="-1" width="13" height="14" fill="black">
|
282 |
-
<rect fill="white" x="-1" y="-1" width="13" height="14"/>
|
283 |
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z"/>
|
284 |
-
</mask>
|
285 |
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z" transform="translate(9.95154 16.0478)" fill="white"/>
|
286 |
-
<path d="M5.44484 1.73538L5.23053 1.52545L5.44484 1.73538ZM5.44484 1.73537L5.23053 1.52544L5.44484 1.73537ZM1.6999 5.55844L1.48559 5.3485L1.6999 5.55844ZM1.69991 5.55843L1.91422 5.76836L1.69991 5.55843ZM1.69991 9.29657L1.91422 9.08664L1.69991 9.29657ZM1.6999 9.29655L1.91421 9.08662L1.6999 9.29655ZM2.53215 10.1461L2.31784 10.3561L2.53215 10.1461ZM2.53209 10.1461L2.31778 10.356L2.53209 10.1461ZM6.19386 10.1461L5.97955 9.93618L6.19386 10.1461ZM6.19386 10.1461L6.40817 10.356L6.19386 10.1461ZM8.60942 7.68018L8.82373 7.89011L8.60942 7.68018ZM9.28893 8.34581L9.07462 8.13588L9.28893 8.34581ZM6.85962 10.8258L6.64532 10.6158L6.85962 10.8258ZM6.85964 10.8258L7.07395 11.0357L6.85964 10.8258ZM1.86633 10.8258L2.08064 10.6158L1.86633 10.8258ZM1.86636 10.8258L2.08067 10.6159L1.86636 10.8258ZM1.03412 9.9762L1.24843 9.76628L1.03412 9.9762ZM1.03415 9.97623L0.819841 10.1862L1.03415 9.97623ZM1.03414 4.87877L0.819827 4.66884L1.03414 4.87877ZM1.03413 4.87878L1.24844 5.08871L1.03413 4.87878ZM4.77907 1.05571L4.99338 1.26564L4.77907 1.05571ZM4.77906 1.05572L4.99338 1.26565L4.77906 1.05572ZM9.77236 1.05572L9.55805 1.26565L9.77236 1.05572ZM9.77235 1.05572L9.98666 0.845785L9.77235 1.05572ZM10.6046 1.90532L10.8189 1.6954L10.6046 1.90532ZM10.6045 1.90528L10.8189 1.69535L10.6045 1.90528ZM10.9533 2.31904L10.7101 2.49464L10.9533 2.31904ZM10.1019 2.76754L9.86916 2.95685L10.1019 2.76754ZM9.10659 1.73538L9.3209 1.52545L9.10659 1.73538ZM9.10658 1.73537L8.89227 1.9453L9.10658 1.73537ZM9.93879 2.58495L10.1531 2.37502L9.93879 2.58495ZM9.9388 2.58496L10.1531 2.37503L9.9388 2.58496ZM10.1531 2.37502L9.3209 1.52545L8.89228 1.94531L9.72448 2.79488L10.1531 2.37502ZM10.3346 2.57823C10.2777 2.50832 10.2172 2.4405 10.1531 2.37503L9.72449 2.79488C9.77566 2.84713 9.82388 2.90119 9.86916 2.95685L10.3346 2.57823ZM11.1966 2.14344C11.0835 1.98684 10.9576 1.83698 10.8189 1.6954L10.3903 2.11524C10.5079 2.2353 10.6145 2.3622 10.7101 2.49464L11.1966 2.14344ZM10.8189 1.69535L9.98667 0.845789L9.55805 1.26565L10.3902 2.11521L10.8189 1.69535ZM9.98666 0.845785C8.49018 -0.681928 6.06124 -0.681928 4.56476 0.845784L4.99338 1.26564C6.25459 -0.0218819 8.29683 -0.0218814 9.55804 1.26565L9.98666 0.845785ZM4.56475 0.84579L0.819827 4.66884L1.24845 5.0887L4.99338 1.26565L4.56475 0.84579ZM0.819819 4.66885C-0.673269 6.1931 -0.673273 8.66187 0.819807 10.1861L1.24843 9.76628C-0.0161474 8.47529 -0.016144 6.37969 1.24844 5.08871L0.819819 4.66885ZM0.819841 10.1862L1.65203 11.0357L2.08064 10.6158L1.24846 9.7663L0.819841 10.1862ZM1.65205 11.0357C3.14854 12.5634 5.57739 12.5634 7.07393 11.0357L6.64532 10.6158C5.38405 11.9034 3.34188 11.9034 2.08067 10.6159L1.65205 11.0357ZM7.07395 11.0357L9.50324 8.55574L9.07462 8.13588L6.64533 10.6158L7.07395 11.0357ZM6.40817 10.356L8.82373 7.89011L8.39511 7.47025L5.97955 9.93618L6.40817 10.356ZM2.31784 10.3561C3.44659 11.5084 5.27938 11.5084 6.40817 10.356L5.97955 9.93618C5.08603 10.8483 3.63993 10.8483 2.74646 9.93621L2.31784 10.3561ZM1.48561 9.50651L2.31778 10.356L2.7464 9.93615L1.91422 9.08664L1.48561 9.50651ZM1.48559 5.3485C0.360176 6.49739 0.360173 8.35759 1.48559 9.50648L1.91421 9.08662C1.0173 8.171 1.0173 6.68399 1.91421 5.76837L1.48559 5.3485ZM5.23053 1.52545L1.4856 5.3485L1.91422 5.76836L5.65915 1.94531L5.23053 1.52545ZM9.32089 1.52544C8.19208 0.373095 6.35934 0.373096 5.23053 1.52544L5.65915 1.9453C6.55268 1.03314 7.99874 1.03314 8.89227 1.9453L9.32089 1.52544ZM5.65915 1.94531C5.65915 1.94531 5.65915 1.94531 5.65915 1.9453L5.23053 1.52544C5.23053 1.52544 5.23053 1.52544 5.23053 1.52545L5.65915 1.94531ZM1.91421 5.76837C1.91421 5.76837 1.91422 5.76836 1.91422 5.76836L1.4856 5.3485C1.4856 5.3485 1.48559 5.3485 1.48559 5.3485L1.91421 5.76837ZM1.91422 9.08664C1.91422 9.08663 1.91421 9.08663 1.91421 9.08662L1.48559 9.50648C1.48559 9.50649 1.4856 9.5065 1.48561 9.50651L1.91422 9.08664ZM2.74646 9.93621C2.74644 9.93619 2.74642 9.93617 2.7464 9.93615L2.31778 10.356C2.3178 10.356 2.31782 10.356 2.31784 10.3561L2.74646 9.93621ZM5.97955 9.93618C5.97955 9.93618 5.97955 9.93618 5.97955 9.93618L6.40817 10.356C6.40817 10.356 6.40817 10.356 6.40817 10.356L5.97955 9.93618ZM9.50324 7.47025C9.1991 7.15977 8.69924 7.15977 8.39511 7.47025L8.82373 7.89011C8.89259 7.81981 9.00576 7.81981 9.07462 7.89011L9.50324 7.47025ZM9.50324 8.55574C9.79862 8.25419 9.79862 7.77179 9.50324 7.47025L9.07462 7.89011C9.1415 7.95838 9.1415 8.0676 9.07462 8.13588L9.50324 8.55574ZM7.07393 11.0357C7.07394 11.0357 7.07395 11.0357 7.07395 11.0357L6.64533 10.6158C6.64533 10.6158 6.64532 10.6158 6.64532 10.6158L7.07393 11.0357ZM1.65203 11.0357C1.65203 11.0357 1.65204 11.0357 1.65205 11.0357L2.08067 10.6159C2.08066 10.6158 2.08065 10.6158 2.08064 10.6158L1.65203 11.0357ZM0.819807 10.1861C0.819819 10.1861 0.81983 10.1862 0.819841 10.1862L1.24846 9.7663C1.24845 9.76629 1.24844 9.76628 1.24843 9.76628L0.819807 10.1861ZM0.819827 4.66884C0.819824 4.66884 0.819822 4.66885 0.819819 4.66885L1.24844 5.08871C1.24844 5.08871 1.24845 5.08871 1.24845 5.0887L0.819827 4.66884ZM4.56476 0.845784C4.56476 0.845786 4.56476 0.845788 4.56475 0.84579L4.99338 1.26565C4.99338 1.26565 4.99338 1.26565 4.99338 1.26564L4.56476 0.845784ZM9.98667 0.845789C9.98667 0.845788 9.98666 0.845787 9.98666 0.845785L9.55804 1.26565C9.55804 1.26565 9.55804 1.26565 9.55805 1.26565L9.98667 0.845789ZM10.8189 1.6954C10.8189 1.69538 10.8189 1.69536 10.8189 1.69535L10.3902 2.11521C10.3902 2.11522 10.3903 2.11523 10.3903 2.11524L10.8189 1.6954ZM11.1146 3.06246C11.3462 2.82606 11.411 2.44051 11.1966 2.14344L10.7101 2.49464C10.7332 2.52669 10.7385 2.58902 10.686 2.64258L11.1146 3.06246ZM9.86916 2.95685C10.1487 3.30046 10.7367 3.44829 11.1146 3.06246L10.686 2.64258C10.652 2.67732 10.6006 2.69693 10.531 2.68804C10.4586 2.67877 10.3842 2.63918 10.3346 2.57823L9.86916 2.95685ZM9.3209 1.52545C9.32089 1.52544 9.32089 1.52544 9.32089 1.52544L8.89227 1.9453C8.89227 1.9453 8.89227 1.94531 8.89228 1.94531L9.3209 1.52545ZM9.72448 2.79488C9.72448 2.79488 9.72448 2.79488 9.72449 2.79488L10.1531 2.37503C10.1531 2.37503 10.1531 2.37502 10.1531 2.37502L9.72448 2.79488Z" transform="translate(9.95154 16.0478)" fill="white" mask="url(#path-2-outside-1)"/>
|
287 |
-
<mask id="path-4-outside-2" maskUnits="userSpaceOnUse" x="-1" y="-1" width="13" height="14" fill="black">
|
288 |
-
<rect fill="white" x="-1" y="-1" width="13" height="14"/>
|
289 |
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z"/>
|
290 |
-
</mask>
|
291 |
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z" transform="translate(28.9286 22.8312) rotate(-180)" fill="white"/>
|
292 |
-
<path d="M5.44484 1.73538L5.23053 1.52545L5.44484 1.73538ZM5.44484 1.73537L5.23053 1.52544L5.44484 1.73537ZM1.6999 5.55844L1.48559 5.3485L1.6999 5.55844ZM1.69991 5.55843L1.91422 5.76836L1.69991 5.55843ZM1.69991 9.29657L1.91422 9.08664L1.69991 9.29657ZM1.6999 9.29655L1.91421 9.08662L1.6999 9.29655ZM2.53215 10.1461L2.31784 10.3561L2.53215 10.1461ZM2.53209 10.1461L2.31778 10.356L2.53209 10.1461ZM6.19386 10.1461L5.97955 9.93618L6.19386 10.1461ZM6.19386 10.1461L6.40817 10.356L6.19386 10.1461ZM8.60942 7.68018L8.82373 7.89011L8.60942 7.68018ZM9.28893 8.34581L9.07462 8.13588L9.28893 8.34581ZM6.85962 10.8258L6.64532 10.6158L6.85962 10.8258ZM6.85964 10.8258L7.07395 11.0357L6.85964 10.8258ZM1.86633 10.8258L2.08064 10.6158L1.86633 10.8258ZM1.86636 10.8258L2.08067 10.6159L1.86636 10.8258ZM1.03412 9.9762L1.24843 9.76628L1.03412 9.9762ZM1.03415 9.97623L0.819841 10.1862L1.03415 9.97623ZM1.03414 4.87877L0.819827 4.66884L1.03414 4.87877ZM1.03413 4.87878L1.24844 5.08871L1.03413 4.87878ZM4.77907 1.05571L4.99338 1.26564L4.77907 1.05571ZM4.77906 1.05572L4.99338 1.26565L4.77906 1.05572ZM9.77236 1.05572L9.55805 1.26565L9.77236 1.05572ZM9.77235 1.05572L9.98666 0.845785L9.77235 1.05572ZM10.6046 1.90532L10.8189 1.6954L10.6046 1.90532ZM10.6045 1.90528L10.8189 1.69535L10.6045 1.90528ZM10.9533 2.31904L10.7101 2.49464L10.9533 2.31904ZM10.1019 2.76754L9.86916 2.95685L10.1019 2.76754ZM9.10659 1.73538L9.3209 1.52545L9.10659 1.73538ZM9.10658 1.73537L8.89227 1.9453L9.10658 1.73537ZM9.93879 2.58495L10.1531 2.37502L9.93879 2.58495ZM9.9388 2.58496L10.1531 2.37503L9.9388 2.58496ZM10.1531 2.37502L9.3209 1.52545L8.89228 1.94531L9.72448 2.79488L10.1531 2.37502ZM10.3346 2.57823C10.2777 2.50832 10.2172 2.4405 10.1531 2.37503L9.72449 2.79488C9.77566 2.84713 9.82388 2.90119 9.86916 2.95685L10.3346 2.57823ZM11.1966 2.14344C11.0835 1.98684 10.9576 1.83698 10.8189 1.6954L10.3903 2.11524C10.5079 2.2353 10.6145 2.3622 10.7101 2.49464L11.1966 2.14344ZM10.8189 1.69535L9.98667 0.845789L9.55805 1.26565L10.3902 2.11521L10.8189 1.69535ZM9.98666 0.845785C8.49018 -0.681928 6.06124 -0.681928 4.56476 0.845784L4.99338 1.26564C6.25459 -0.0218819 8.29683 -0.0218814 9.55804 1.26565L9.98666 0.845785ZM4.56475 0.84579L0.819827 4.66884L1.24845 5.0887L4.99338 1.26565L4.56475 0.84579ZM0.819819 4.66885C-0.673269 6.1931 -0.673273 8.66187 0.819807 10.1861L1.24843 9.76628C-0.0161474 8.47529 -0.016144 6.37969 1.24844 5.08871L0.819819 4.66885ZM0.819841 10.1862L1.65203 11.0357L2.08064 10.6158L1.24846 9.7663L0.819841 10.1862ZM1.65205 11.0357C3.14854 12.5634 5.57739 12.5634 7.07393 11.0357L6.64532 10.6158C5.38405 11.9034 3.34188 11.9034 2.08067 10.6159L1.65205 11.0357ZM7.07395 11.0357L9.50324 8.55574L9.07462 8.13588L6.64533 10.6158L7.07395 11.0357ZM6.40817 10.356L8.82373 7.89011L8.39511 7.47025L5.97955 9.93618L6.40817 10.356ZM2.31784 10.3561C3.44659 11.5084 5.27938 11.5084 6.40817 10.356L5.97955 9.93618C5.08603 10.8483 3.63993 10.8483 2.74646 9.93621L2.31784 10.3561ZM1.48561 9.50651L2.31778 10.356L2.7464 9.93615L1.91422 9.08664L1.48561 9.50651ZM1.48559 5.3485C0.360176 6.49739 0.360173 8.35759 1.48559 9.50648L1.91421 9.08662C1.0173 8.171 1.0173 6.68399 1.91421 5.76837L1.48559 5.3485ZM5.23053 1.52545L1.4856 5.3485L1.91422 5.76836L5.65915 1.94531L5.23053 1.52545ZM9.32089 1.52544C8.19208 0.373095 6.35934 0.373096 5.23053 1.52544L5.65915 1.9453C6.55268 1.03314 7.99874 1.03314 8.89227 1.9453L9.32089 1.52544ZM5.65915 1.94531C5.65915 1.94531 5.65915 1.94531 5.65915 1.9453L5.23053 1.52544C5.23053 1.52544 5.23053 1.52544 5.23053 1.52545L5.65915 1.94531ZM1.91421 5.76837C1.91421 5.76837 1.91422 5.76836 1.91422 5.76836L1.4856 5.3485C1.4856 5.3485 1.48559 5.3485 1.48559 5.3485L1.91421 5.76837ZM1.91422 9.08664C1.91422 9.08663 1.91421 9.08663 1.91421 9.08662L1.48559 9.50648C1.48559 9.50649 1.4856 9.5065 1.48561 9.50651L1.91422 9.08664ZM2.74646 9.93621C2.74644 9.93619 2.74642 9.93617 2.7464 9.93615L2.31778 10.356C2.3178 10.356 2.31782 10.356 2.31784 10.3561L2.74646 9.93621ZM5.97955 9.93618C5.97955 9.93618 5.97955 9.93618 5.97955 9.93618L6.40817 10.356C6.40817 10.356 6.40817 10.356 6.40817 10.356L5.97955 9.93618ZM9.50324 7.47025C9.1991 7.15977 8.69924 7.15977 8.39511 7.47025L8.82373 7.89011C8.89259 7.81981 9.00576 7.81981 9.07462 7.89011L9.50324 7.47025ZM9.50324 8.55574C9.79862 8.25419 9.79862 7.77179 9.50324 7.47025L9.07462 7.89011C9.1415 7.95838 9.1415 8.0676 9.07462 8.13588L9.50324 8.55574ZM7.07393 11.0357C7.07394 11.0357 7.07395 11.0357 7.07395 11.0357L6.64533 10.6158C6.64533 10.6158 6.64532 10.6158 6.64532 10.6158L7.07393 11.0357ZM1.65203 11.0357C1.65203 11.0357 1.65204 11.0357 1.65205 11.0357L2.08067 10.6159C2.08066 10.6158 2.08065 10.6158 2.08064 10.6158L1.65203 11.0357ZM0.819807 10.1861C0.819819 10.1861 0.81983 10.1862 0.819841 10.1862L1.24846 9.7663C1.24845 9.76629 1.24844 9.76628 1.24843 9.76628L0.819807 10.1861ZM0.819827 4.66884C0.819824 4.66884 0.819822 4.66885 0.819819 4.66885L1.24844 5.08871C1.24844 5.08871 1.24845 5.08871 1.24845 5.0887L0.819827 4.66884ZM4.56476 0.845784C4.56476 0.845786 4.56476 0.845788 4.56475 0.84579L4.99338 1.26565C4.99338 1.26565 4.99338 1.26565 4.99338 1.26564L4.56476 0.845784ZM9.98667 0.845789C9.98667 0.845788 9.98666 0.845787 9.98666 0.845785L9.55804 1.26565C9.55804 1.26565 9.55804 1.26565 9.55805 1.26565L9.98667 0.845789ZM10.8189 1.6954C10.8189 1.69538 10.8189 1.69536 10.8189 1.69535L10.3902 2.11521C10.3902 2.11522 10.3903 2.11523 10.3903 2.11524L10.8189 1.6954ZM11.1146 3.06246C11.3462 2.82606 11.411 2.44051 11.1966 2.14344L10.7101 2.49464C10.7332 2.52669 10.7385 2.58902 10.686 2.64258L11.1146 3.06246ZM9.86916 2.95685C10.1487 3.30046 10.7367 3.44829 11.1146 3.06246L10.686 2.64258C10.652 2.67732 10.6006 2.69693 10.531 2.68804C10.4586 2.67877 10.3842 2.63918 10.3346 2.57823L9.86916 2.95685ZM9.3209 1.52545C9.32089 1.52544 9.32089 1.52544 9.32089 1.52544L8.89227 1.9453C8.89227 1.9453 8.89227 1.94531 8.89228 1.94531L9.3209 1.52545ZM9.72448 2.79488C9.72448 2.79488 9.72448 2.79488 9.72449 2.79488L10.1531 2.37503C10.1531 2.37503 10.1531 2.37502 10.1531 2.37502L9.72448 2.79488Z" transform="translate(28.9286 22.8312) rotate(-180)" fill="white" mask="url(#path-4-outside-2)"/>'
|
293 |
-
),
|
294 |
-
array(
|
295 |
-
'example' => 'https://www.example.com/contact',
|
296 |
-
'placeholder' => __('Link', CHT_OPT),
|
297 |
-
'slug' => 'Custom_Link',
|
298 |
'title' => 'Custom Link',
|
299 |
'color' => '#8141FC',
|
300 |
'help' => "You can use this channel to add any custom channel you want. You can link to a specific form on your site or any social network. You can customize the color, upload a custom image, and change the on-hover text in the Pro plans",
|
@@ -316,7 +316,7 @@ class CHT_Social_Icons
|
|
316 |
array(
|
317 |
'example' => 'https://www.example.com/contact',
|
318 |
'placeholder' => __('Link', CHT_OPT),
|
319 |
-
'slug' => '
|
320 |
'title' => 'Custom Link',
|
321 |
'color' => '#FF7539',
|
322 |
'help' => "You can use this channel to add any custom channel you want. You can link to a specific form on your site or any social network. You can customize the color, upload a custom image, and change the on-hover text in the Pro plans",
|
@@ -334,58 +334,6 @@ class CHT_Social_Icons
|
|
334 |
</mask>
|
335 |
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z" transform="translate(28.9286 22.8312) rotate(-180)" fill="white"/>
|
336 |
<path d="M5.44484 1.73538L5.23053 1.52545L5.44484 1.73538ZM5.44484 1.73537L5.23053 1.52544L5.44484 1.73537ZM1.6999 5.55844L1.48559 5.3485L1.6999 5.55844ZM1.69991 5.55843L1.91422 5.76836L1.69991 5.55843ZM1.69991 9.29657L1.91422 9.08664L1.69991 9.29657ZM1.6999 9.29655L1.91421 9.08662L1.6999 9.29655ZM2.53215 10.1461L2.31784 10.3561L2.53215 10.1461ZM2.53209 10.1461L2.31778 10.356L2.53209 10.1461ZM6.19386 10.1461L5.97955 9.93618L6.19386 10.1461ZM6.19386 10.1461L6.40817 10.356L6.19386 10.1461ZM8.60942 7.68018L8.82373 7.89011L8.60942 7.68018ZM9.28893 8.34581L9.07462 8.13588L9.28893 8.34581ZM6.85962 10.8258L6.64532 10.6158L6.85962 10.8258ZM6.85964 10.8258L7.07395 11.0357L6.85964 10.8258ZM1.86633 10.8258L2.08064 10.6158L1.86633 10.8258ZM1.86636 10.8258L2.08067 10.6159L1.86636 10.8258ZM1.03412 9.9762L1.24843 9.76628L1.03412 9.9762ZM1.03415 9.97623L0.819841 10.1862L1.03415 9.97623ZM1.03414 4.87877L0.819827 4.66884L1.03414 4.87877ZM1.03413 4.87878L1.24844 5.08871L1.03413 4.87878ZM4.77907 1.05571L4.99338 1.26564L4.77907 1.05571ZM4.77906 1.05572L4.99338 1.26565L4.77906 1.05572ZM9.77236 1.05572L9.55805 1.26565L9.77236 1.05572ZM9.77235 1.05572L9.98666 0.845785L9.77235 1.05572ZM10.6046 1.90532L10.8189 1.6954L10.6046 1.90532ZM10.6045 1.90528L10.8189 1.69535L10.6045 1.90528ZM10.9533 2.31904L10.7101 2.49464L10.9533 2.31904ZM10.1019 2.76754L9.86916 2.95685L10.1019 2.76754ZM9.10659 1.73538L9.3209 1.52545L9.10659 1.73538ZM9.10658 1.73537L8.89227 1.9453L9.10658 1.73537ZM9.93879 2.58495L10.1531 2.37502L9.93879 2.58495ZM9.9388 2.58496L10.1531 2.37503L9.9388 2.58496ZM10.1531 2.37502L9.3209 1.52545L8.89228 1.94531L9.72448 2.79488L10.1531 2.37502ZM10.3346 2.57823C10.2777 2.50832 10.2172 2.4405 10.1531 2.37503L9.72449 2.79488C9.77566 2.84713 9.82388 2.90119 9.86916 2.95685L10.3346 2.57823ZM11.1966 2.14344C11.0835 1.98684 10.9576 1.83698 10.8189 1.6954L10.3903 2.11524C10.5079 2.2353 10.6145 2.3622 10.7101 2.49464L11.1966 2.14344ZM10.8189 1.69535L9.98667 0.845789L9.55805 1.26565L10.3902 2.11521L10.8189 1.69535ZM9.98666 0.845785C8.49018 -0.681928 6.06124 -0.681928 4.56476 0.845784L4.99338 1.26564C6.25459 -0.0218819 8.29683 -0.0218814 9.55804 1.26565L9.98666 0.845785ZM4.56475 0.84579L0.819827 4.66884L1.24845 5.0887L4.99338 1.26565L4.56475 0.84579ZM0.819819 4.66885C-0.673269 6.1931 -0.673273 8.66187 0.819807 10.1861L1.24843 9.76628C-0.0161474 8.47529 -0.016144 6.37969 1.24844 5.08871L0.819819 4.66885ZM0.819841 10.1862L1.65203 11.0357L2.08064 10.6158L1.24846 9.7663L0.819841 10.1862ZM1.65205 11.0357C3.14854 12.5634 5.57739 12.5634 7.07393 11.0357L6.64532 10.6158C5.38405 11.9034 3.34188 11.9034 2.08067 10.6159L1.65205 11.0357ZM7.07395 11.0357L9.50324 8.55574L9.07462 8.13588L6.64533 10.6158L7.07395 11.0357ZM6.40817 10.356L8.82373 7.89011L8.39511 7.47025L5.97955 9.93618L6.40817 10.356ZM2.31784 10.3561C3.44659 11.5084 5.27938 11.5084 6.40817 10.356L5.97955 9.93618C5.08603 10.8483 3.63993 10.8483 2.74646 9.93621L2.31784 10.3561ZM1.48561 9.50651L2.31778 10.356L2.7464 9.93615L1.91422 9.08664L1.48561 9.50651ZM1.48559 5.3485C0.360176 6.49739 0.360173 8.35759 1.48559 9.50648L1.91421 9.08662C1.0173 8.171 1.0173 6.68399 1.91421 5.76837L1.48559 5.3485ZM5.23053 1.52545L1.4856 5.3485L1.91422 5.76836L5.65915 1.94531L5.23053 1.52545ZM9.32089 1.52544C8.19208 0.373095 6.35934 0.373096 5.23053 1.52544L5.65915 1.9453C6.55268 1.03314 7.99874 1.03314 8.89227 1.9453L9.32089 1.52544ZM5.65915 1.94531C5.65915 1.94531 5.65915 1.94531 5.65915 1.9453L5.23053 1.52544C5.23053 1.52544 5.23053 1.52544 5.23053 1.52545L5.65915 1.94531ZM1.91421 5.76837C1.91421 5.76837 1.91422 5.76836 1.91422 5.76836L1.4856 5.3485C1.4856 5.3485 1.48559 5.3485 1.48559 5.3485L1.91421 5.76837ZM1.91422 9.08664C1.91422 9.08663 1.91421 9.08663 1.91421 9.08662L1.48559 9.50648C1.48559 9.50649 1.4856 9.5065 1.48561 9.50651L1.91422 9.08664ZM2.74646 9.93621C2.74644 9.93619 2.74642 9.93617 2.7464 9.93615L2.31778 10.356C2.3178 10.356 2.31782 10.356 2.31784 10.3561L2.74646 9.93621ZM5.97955 9.93618C5.97955 9.93618 5.97955 9.93618 5.97955 9.93618L6.40817 10.356C6.40817 10.356 6.40817 10.356 6.40817 10.356L5.97955 9.93618ZM9.50324 7.47025C9.1991 7.15977 8.69924 7.15977 8.39511 7.47025L8.82373 7.89011C8.89259 7.81981 9.00576 7.81981 9.07462 7.89011L9.50324 7.47025ZM9.50324 8.55574C9.79862 8.25419 9.79862 7.77179 9.50324 7.47025L9.07462 7.89011C9.1415 7.95838 9.1415 8.0676 9.07462 8.13588L9.50324 8.55574ZM7.07393 11.0357C7.07394 11.0357 7.07395 11.0357 7.07395 11.0357L6.64533 10.6158C6.64533 10.6158 6.64532 10.6158 6.64532 10.6158L7.07393 11.0357ZM1.65203 11.0357C1.65203 11.0357 1.65204 11.0357 1.65205 11.0357L2.08067 10.6159C2.08066 10.6158 2.08065 10.6158 2.08064 10.6158L1.65203 11.0357ZM0.819807 10.1861C0.819819 10.1861 0.81983 10.1862 0.819841 10.1862L1.24846 9.7663C1.24845 9.76629 1.24844 9.76628 1.24843 9.76628L0.819807 10.1861ZM0.819827 4.66884C0.819824 4.66884 0.819822 4.66885 0.819819 4.66885L1.24844 5.08871C1.24844 5.08871 1.24845 5.08871 1.24845 5.0887L0.819827 4.66884ZM4.56476 0.845784C4.56476 0.845786 4.56476 0.845788 4.56475 0.84579L4.99338 1.26565C4.99338 1.26565 4.99338 1.26565 4.99338 1.26564L4.56476 0.845784ZM9.98667 0.845789C9.98667 0.845788 9.98666 0.845787 9.98666 0.845785L9.55804 1.26565C9.55804 1.26565 9.55804 1.26565 9.55805 1.26565L9.98667 0.845789ZM10.8189 1.6954C10.8189 1.69538 10.8189 1.69536 10.8189 1.69535L10.3902 2.11521C10.3902 2.11522 10.3903 2.11523 10.3903 2.11524L10.8189 1.6954ZM11.1146 3.06246C11.3462 2.82606 11.411 2.44051 11.1966 2.14344L10.7101 2.49464C10.7332 2.52669 10.7385 2.58902 10.686 2.64258L11.1146 3.06246ZM9.86916 2.95685C10.1487 3.30046 10.7367 3.44829 11.1146 3.06246L10.686 2.64258C10.652 2.67732 10.6006 2.69693 10.531 2.68804C10.4586 2.67877 10.3842 2.63918 10.3346 2.57823L9.86916 2.95685ZM9.3209 1.52545C9.32089 1.52544 9.32089 1.52544 9.32089 1.52544L8.89227 1.9453C8.89227 1.9453 8.89227 1.94531 8.89228 1.94531L9.3209 1.52545ZM9.72448 2.79488C9.72448 2.79488 9.72448 2.79488 9.72449 2.79488L10.1531 2.37503C10.1531 2.37503 10.1531 2.37502 10.1531 2.37502L9.72448 2.79488Z" transform="translate(28.9286 22.8312) rotate(-180)" fill="white" mask="url(#path-4-outside-2)"/>'
|
337 |
-
),
|
338 |
-
array(
|
339 |
-
'example' => 'https://www.example.com/contact',
|
340 |
-
'placeholder' => __('Link', CHT_OPT),
|
341 |
-
'slug' => 'Custom_Link_4',
|
342 |
-
'title' => 'Custom Link',
|
343 |
-
'color' => '#2A9D8F',
|
344 |
-
'help' => "You can use this channel to add any custom channel you want. You can link to a specific form on your site or any social network. You can customize the color, upload a custom image, and change the on-hover text in the Pro plans",
|
345 |
-
'help_title' => 'How do I use this?',
|
346 |
-
'svg' => '<circle class="color-element" cx="19.4395" cy="19.4395" r="19.4395" fill="#2A9D8F"/>
|
347 |
-
<mask id="path-2-outside-1" maskUnits="userSpaceOnUse" x="-1" y="-1" width="13" height="14" fill="black">
|
348 |
-
<rect fill="white" x="-1" y="-1" width="13" height="14"/>
|
349 |
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z"/>
|
350 |
-
</mask>
|
351 |
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z" transform="translate(9.95154 16.0478)" fill="white"/>
|
352 |
-
<path d="M5.44484 1.73538L5.23053 1.52545L5.44484 1.73538ZM5.44484 1.73537L5.23053 1.52544L5.44484 1.73537ZM1.6999 5.55844L1.48559 5.3485L1.6999 5.55844ZM1.69991 5.55843L1.91422 5.76836L1.69991 5.55843ZM1.69991 9.29657L1.91422 9.08664L1.69991 9.29657ZM1.6999 9.29655L1.91421 9.08662L1.6999 9.29655ZM2.53215 10.1461L2.31784 10.3561L2.53215 10.1461ZM2.53209 10.1461L2.31778 10.356L2.53209 10.1461ZM6.19386 10.1461L5.97955 9.93618L6.19386 10.1461ZM6.19386 10.1461L6.40817 10.356L6.19386 10.1461ZM8.60942 7.68018L8.82373 7.89011L8.60942 7.68018ZM9.28893 8.34581L9.07462 8.13588L9.28893 8.34581ZM6.85962 10.8258L6.64532 10.6158L6.85962 10.8258ZM6.85964 10.8258L7.07395 11.0357L6.85964 10.8258ZM1.86633 10.8258L2.08064 10.6158L1.86633 10.8258ZM1.86636 10.8258L2.08067 10.6159L1.86636 10.8258ZM1.03412 9.9762L1.24843 9.76628L1.03412 9.9762ZM1.03415 9.97623L0.819841 10.1862L1.03415 9.97623ZM1.03414 4.87877L0.819827 4.66884L1.03414 4.87877ZM1.03413 4.87878L1.24844 5.08871L1.03413 4.87878ZM4.77907 1.05571L4.99338 1.26564L4.77907 1.05571ZM4.77906 1.05572L4.99338 1.26565L4.77906 1.05572ZM9.77236 1.05572L9.55805 1.26565L9.77236 1.05572ZM9.77235 1.05572L9.98666 0.845785L9.77235 1.05572ZM10.6046 1.90532L10.8189 1.6954L10.6046 1.90532ZM10.6045 1.90528L10.8189 1.69535L10.6045 1.90528ZM10.9533 2.31904L10.7101 2.49464L10.9533 2.31904ZM10.1019 2.76754L9.86916 2.95685L10.1019 2.76754ZM9.10659 1.73538L9.3209 1.52545L9.10659 1.73538ZM9.10658 1.73537L8.89227 1.9453L9.10658 1.73537ZM9.93879 2.58495L10.1531 2.37502L9.93879 2.58495ZM9.9388 2.58496L10.1531 2.37503L9.9388 2.58496ZM10.1531 2.37502L9.3209 1.52545L8.89228 1.94531L9.72448 2.79488L10.1531 2.37502ZM10.3346 2.57823C10.2777 2.50832 10.2172 2.4405 10.1531 2.37503L9.72449 2.79488C9.77566 2.84713 9.82388 2.90119 9.86916 2.95685L10.3346 2.57823ZM11.1966 2.14344C11.0835 1.98684 10.9576 1.83698 10.8189 1.6954L10.3903 2.11524C10.5079 2.2353 10.6145 2.3622 10.7101 2.49464L11.1966 2.14344ZM10.8189 1.69535L9.98667 0.845789L9.55805 1.26565L10.3902 2.11521L10.8189 1.69535ZM9.98666 0.845785C8.49018 -0.681928 6.06124 -0.681928 4.56476 0.845784L4.99338 1.26564C6.25459 -0.0218819 8.29683 -0.0218814 9.55804 1.26565L9.98666 0.845785ZM4.56475 0.84579L0.819827 4.66884L1.24845 5.0887L4.99338 1.26565L4.56475 0.84579ZM0.819819 4.66885C-0.673269 6.1931 -0.673273 8.66187 0.819807 10.1861L1.24843 9.76628C-0.0161474 8.47529 -0.016144 6.37969 1.24844 5.08871L0.819819 4.66885ZM0.819841 10.1862L1.65203 11.0357L2.08064 10.6158L1.24846 9.7663L0.819841 10.1862ZM1.65205 11.0357C3.14854 12.5634 5.57739 12.5634 7.07393 11.0357L6.64532 10.6158C5.38405 11.9034 3.34188 11.9034 2.08067 10.6159L1.65205 11.0357ZM7.07395 11.0357L9.50324 8.55574L9.07462 8.13588L6.64533 10.6158L7.07395 11.0357ZM6.40817 10.356L8.82373 7.89011L8.39511 7.47025L5.97955 9.93618L6.40817 10.356ZM2.31784 10.3561C3.44659 11.5084 5.27938 11.5084 6.40817 10.356L5.97955 9.93618C5.08603 10.8483 3.63993 10.8483 2.74646 9.93621L2.31784 10.3561ZM1.48561 9.50651L2.31778 10.356L2.7464 9.93615L1.91422 9.08664L1.48561 9.50651ZM1.48559 5.3485C0.360176 6.49739 0.360173 8.35759 1.48559 9.50648L1.91421 9.08662C1.0173 8.171 1.0173 6.68399 1.91421 5.76837L1.48559 5.3485ZM5.23053 1.52545L1.4856 5.3485L1.91422 5.76836L5.65915 1.94531L5.23053 1.52545ZM9.32089 1.52544C8.19208 0.373095 6.35934 0.373096 5.23053 1.52544L5.65915 1.9453C6.55268 1.03314 7.99874 1.03314 8.89227 1.9453L9.32089 1.52544ZM5.65915 1.94531C5.65915 1.94531 5.65915 1.94531 5.65915 1.9453L5.23053 1.52544C5.23053 1.52544 5.23053 1.52544 5.23053 1.52545L5.65915 1.94531ZM1.91421 5.76837C1.91421 5.76837 1.91422 5.76836 1.91422 5.76836L1.4856 5.3485C1.4856 5.3485 1.48559 5.3485 1.48559 5.3485L1.91421 5.76837ZM1.91422 9.08664C1.91422 9.08663 1.91421 9.08663 1.91421 9.08662L1.48559 9.50648C1.48559 9.50649 1.4856 9.5065 1.48561 9.50651L1.91422 9.08664ZM2.74646 9.93621C2.74644 9.93619 2.74642 9.93617 2.7464 9.93615L2.31778 10.356C2.3178 10.356 2.31782 10.356 2.31784 10.3561L2.74646 9.93621ZM5.97955 9.93618C5.97955 9.93618 5.97955 9.93618 5.97955 9.93618L6.40817 10.356C6.40817 10.356 6.40817 10.356 6.40817 10.356L5.97955 9.93618ZM9.50324 7.47025C9.1991 7.15977 8.69924 7.15977 8.39511 7.47025L8.82373 7.89011C8.89259 7.81981 9.00576 7.81981 9.07462 7.89011L9.50324 7.47025ZM9.50324 8.55574C9.79862 8.25419 9.79862 7.77179 9.50324 7.47025L9.07462 7.89011C9.1415 7.95838 9.1415 8.0676 9.07462 8.13588L9.50324 8.55574ZM7.07393 11.0357C7.07394 11.0357 7.07395 11.0357 7.07395 11.0357L6.64533 10.6158C6.64533 10.6158 6.64532 10.6158 6.64532 10.6158L7.07393 11.0357ZM1.65203 11.0357C1.65203 11.0357 1.65204 11.0357 1.65205 11.0357L2.08067 10.6159C2.08066 10.6158 2.08065 10.6158 2.08064 10.6158L1.65203 11.0357ZM0.819807 10.1861C0.819819 10.1861 0.81983 10.1862 0.819841 10.1862L1.24846 9.7663C1.24845 9.76629 1.24844 9.76628 1.24843 9.76628L0.819807 10.1861ZM0.819827 4.66884C0.819824 4.66884 0.819822 4.66885 0.819819 4.66885L1.24844 5.08871C1.24844 5.08871 1.24845 5.08871 1.24845 5.0887L0.819827 4.66884ZM4.56476 0.845784C4.56476 0.845786 4.56476 0.845788 4.56475 0.84579L4.99338 1.26565C4.99338 1.26565 4.99338 1.26565 4.99338 1.26564L4.56476 0.845784ZM9.98667 0.845789C9.98667 0.845788 9.98666 0.845787 9.98666 0.845785L9.55804 1.26565C9.55804 1.26565 9.55804 1.26565 9.55805 1.26565L9.98667 0.845789ZM10.8189 1.6954C10.8189 1.69538 10.8189 1.69536 10.8189 1.69535L10.3902 2.11521C10.3902 2.11522 10.3903 2.11523 10.3903 2.11524L10.8189 1.6954ZM11.1146 3.06246C11.3462 2.82606 11.411 2.44051 11.1966 2.14344L10.7101 2.49464C10.7332 2.52669 10.7385 2.58902 10.686 2.64258L11.1146 3.06246ZM9.86916 2.95685C10.1487 3.30046 10.7367 3.44829 11.1146 3.06246L10.686 2.64258C10.652 2.67732 10.6006 2.69693 10.531 2.68804C10.4586 2.67877 10.3842 2.63918 10.3346 2.57823L9.86916 2.95685ZM9.3209 1.52545C9.32089 1.52544 9.32089 1.52544 9.32089 1.52544L8.89227 1.9453C8.89227 1.9453 8.89227 1.94531 8.89228 1.94531L9.3209 1.52545ZM9.72448 2.79488C9.72448 2.79488 9.72448 2.79488 9.72449 2.79488L10.1531 2.37503C10.1531 2.37503 10.1531 2.37502 10.1531 2.37502L9.72448 2.79488Z" transform="translate(9.95154 16.0478)" fill="white" mask="url(#path-2-outside-1)"/>
|
353 |
-
<mask id="path-4-outside-2" maskUnits="userSpaceOnUse" x="-1" y="-1" width="13" height="14" fill="black">
|
354 |
-
<rect fill="white" x="-1" y="-1" width="13" height="14"/>
|
355 |
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z"/>
|
356 |
-
</mask>
|
357 |
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z" transform="translate(28.9286 22.8312) rotate(-180)" fill="white"/>
|
358 |
-
<path d="M5.44484 1.73538L5.23053 1.52545L5.44484 1.73538ZM5.44484 1.73537L5.23053 1.52544L5.44484 1.73537ZM1.6999 5.55844L1.48559 5.3485L1.6999 5.55844ZM1.69991 5.55843L1.91422 5.76836L1.69991 5.55843ZM1.69991 9.29657L1.91422 9.08664L1.69991 9.29657ZM1.6999 9.29655L1.91421 9.08662L1.6999 9.29655ZM2.53215 10.1461L2.31784 10.3561L2.53215 10.1461ZM2.53209 10.1461L2.31778 10.356L2.53209 10.1461ZM6.19386 10.1461L5.97955 9.93618L6.19386 10.1461ZM6.19386 10.1461L6.40817 10.356L6.19386 10.1461ZM8.60942 7.68018L8.82373 7.89011L8.60942 7.68018ZM9.28893 8.34581L9.07462 8.13588L9.28893 8.34581ZM6.85962 10.8258L6.64532 10.6158L6.85962 10.8258ZM6.85964 10.8258L7.07395 11.0357L6.85964 10.8258ZM1.86633 10.8258L2.08064 10.6158L1.86633 10.8258ZM1.86636 10.8258L2.08067 10.6159L1.86636 10.8258ZM1.03412 9.9762L1.24843 9.76628L1.03412 9.9762ZM1.03415 9.97623L0.819841 10.1862L1.03415 9.97623ZM1.03414 4.87877L0.819827 4.66884L1.03414 4.87877ZM1.03413 4.87878L1.24844 5.08871L1.03413 4.87878ZM4.77907 1.05571L4.99338 1.26564L4.77907 1.05571ZM4.77906 1.05572L4.99338 1.26565L4.77906 1.05572ZM9.77236 1.05572L9.55805 1.26565L9.77236 1.05572ZM9.77235 1.05572L9.98666 0.845785L9.77235 1.05572ZM10.6046 1.90532L10.8189 1.6954L10.6046 1.90532ZM10.6045 1.90528L10.8189 1.69535L10.6045 1.90528ZM10.9533 2.31904L10.7101 2.49464L10.9533 2.31904ZM10.1019 2.76754L9.86916 2.95685L10.1019 2.76754ZM9.10659 1.73538L9.3209 1.52545L9.10659 1.73538ZM9.10658 1.73537L8.89227 1.9453L9.10658 1.73537ZM9.93879 2.58495L10.1531 2.37502L9.93879 2.58495ZM9.9388 2.58496L10.1531 2.37503L9.9388 2.58496ZM10.1531 2.37502L9.3209 1.52545L8.89228 1.94531L9.72448 2.79488L10.1531 2.37502ZM10.3346 2.57823C10.2777 2.50832 10.2172 2.4405 10.1531 2.37503L9.72449 2.79488C9.77566 2.84713 9.82388 2.90119 9.86916 2.95685L10.3346 2.57823ZM11.1966 2.14344C11.0835 1.98684 10.9576 1.83698 10.8189 1.6954L10.3903 2.11524C10.5079 2.2353 10.6145 2.3622 10.7101 2.49464L11.1966 2.14344ZM10.8189 1.69535L9.98667 0.845789L9.55805 1.26565L10.3902 2.11521L10.8189 1.69535ZM9.98666 0.845785C8.49018 -0.681928 6.06124 -0.681928 4.56476 0.845784L4.99338 1.26564C6.25459 -0.0218819 8.29683 -0.0218814 9.55804 1.26565L9.98666 0.845785ZM4.56475 0.84579L0.819827 4.66884L1.24845 5.0887L4.99338 1.26565L4.56475 0.84579ZM0.819819 4.66885C-0.673269 6.1931 -0.673273 8.66187 0.819807 10.1861L1.24843 9.76628C-0.0161474 8.47529 -0.016144 6.37969 1.24844 5.08871L0.819819 4.66885ZM0.819841 10.1862L1.65203 11.0357L2.08064 10.6158L1.24846 9.7663L0.819841 10.1862ZM1.65205 11.0357C3.14854 12.5634 5.57739 12.5634 7.07393 11.0357L6.64532 10.6158C5.38405 11.9034 3.34188 11.9034 2.08067 10.6159L1.65205 11.0357ZM7.07395 11.0357L9.50324 8.55574L9.07462 8.13588L6.64533 10.6158L7.07395 11.0357ZM6.40817 10.356L8.82373 7.89011L8.39511 7.47025L5.97955 9.93618L6.40817 10.356ZM2.31784 10.3561C3.44659 11.5084 5.27938 11.5084 6.40817 10.356L5.97955 9.93618C5.08603 10.8483 3.63993 10.8483 2.74646 9.93621L2.31784 10.3561ZM1.48561 9.50651L2.31778 10.356L2.7464 9.93615L1.91422 9.08664L1.48561 9.50651ZM1.48559 5.3485C0.360176 6.49739 0.360173 8.35759 1.48559 9.50648L1.91421 9.08662C1.0173 8.171 1.0173 6.68399 1.91421 5.76837L1.48559 5.3485ZM5.23053 1.52545L1.4856 5.3485L1.91422 5.76836L5.65915 1.94531L5.23053 1.52545ZM9.32089 1.52544C8.19208 0.373095 6.35934 0.373096 5.23053 1.52544L5.65915 1.9453C6.55268 1.03314 7.99874 1.03314 8.89227 1.9453L9.32089 1.52544ZM5.65915 1.94531C5.65915 1.94531 5.65915 1.94531 5.65915 1.9453L5.23053 1.52544C5.23053 1.52544 5.23053 1.52544 5.23053 1.52545L5.65915 1.94531ZM1.91421 5.76837C1.91421 5.76837 1.91422 5.76836 1.91422 5.76836L1.4856 5.3485C1.4856 5.3485 1.48559 5.3485 1.48559 5.3485L1.91421 5.76837ZM1.91422 9.08664C1.91422 9.08663 1.91421 9.08663 1.91421 9.08662L1.48559 9.50648C1.48559 9.50649 1.4856 9.5065 1.48561 9.50651L1.91422 9.08664ZM2.74646 9.93621C2.74644 9.93619 2.74642 9.93617 2.7464 9.93615L2.31778 10.356C2.3178 10.356 2.31782 10.356 2.31784 10.3561L2.74646 9.93621ZM5.97955 9.93618C5.97955 9.93618 5.97955 9.93618 5.97955 9.93618L6.40817 10.356C6.40817 10.356 6.40817 10.356 6.40817 10.356L5.97955 9.93618ZM9.50324 7.47025C9.1991 7.15977 8.69924 7.15977 8.39511 7.47025L8.82373 7.89011C8.89259 7.81981 9.00576 7.81981 9.07462 7.89011L9.50324 7.47025ZM9.50324 8.55574C9.79862 8.25419 9.79862 7.77179 9.50324 7.47025L9.07462 7.89011C9.1415 7.95838 9.1415 8.0676 9.07462 8.13588L9.50324 8.55574ZM7.07393 11.0357C7.07394 11.0357 7.07395 11.0357 7.07395 11.0357L6.64533 10.6158C6.64533 10.6158 6.64532 10.6158 6.64532 10.6158L7.07393 11.0357ZM1.65203 11.0357C1.65203 11.0357 1.65204 11.0357 1.65205 11.0357L2.08067 10.6159C2.08066 10.6158 2.08065 10.6158 2.08064 10.6158L1.65203 11.0357ZM0.819807 10.1861C0.819819 10.1861 0.81983 10.1862 0.819841 10.1862L1.24846 9.7663C1.24845 9.76629 1.24844 9.76628 1.24843 9.76628L0.819807 10.1861ZM0.819827 4.66884C0.819824 4.66884 0.819822 4.66885 0.819819 4.66885L1.24844 5.08871C1.24844 5.08871 1.24845 5.08871 1.24845 5.0887L0.819827 4.66884ZM4.56476 0.845784C4.56476 0.845786 4.56476 0.845788 4.56475 0.84579L4.99338 1.26565C4.99338 1.26565 4.99338 1.26565 4.99338 1.26564L4.56476 0.845784ZM9.98667 0.845789C9.98667 0.845788 9.98666 0.845787 9.98666 0.845785L9.55804 1.26565C9.55804 1.26565 9.55804 1.26565 9.55805 1.26565L9.98667 0.845789ZM10.8189 1.6954C10.8189 1.69538 10.8189 1.69536 10.8189 1.69535L10.3902 2.11521C10.3902 2.11522 10.3903 2.11523 10.3903 2.11524L10.8189 1.6954ZM11.1146 3.06246C11.3462 2.82606 11.411 2.44051 11.1966 2.14344L10.7101 2.49464C10.7332 2.52669 10.7385 2.58902 10.686 2.64258L11.1146 3.06246ZM9.86916 2.95685C10.1487 3.30046 10.7367 3.44829 11.1146 3.06246L10.686 2.64258C10.652 2.67732 10.6006 2.69693 10.531 2.68804C10.4586 2.67877 10.3842 2.63918 10.3346 2.57823L9.86916 2.95685ZM9.3209 1.52545C9.32089 1.52544 9.32089 1.52544 9.32089 1.52544L8.89227 1.9453C8.89227 1.9453 8.89227 1.94531 8.89228 1.94531L9.3209 1.52545ZM9.72448 2.79488C9.72448 2.79488 9.72448 2.79488 9.72449 2.79488L10.1531 2.37503C10.1531 2.37503 10.1531 2.37502 10.1531 2.37502L9.72448 2.79488Z" transform="translate(28.9286 22.8312) rotate(-180)" fill="white" mask="url(#path-4-outside-2)"/>'
|
359 |
-
),
|
360 |
-
array(
|
361 |
-
'example' => 'https://www.example.com/contact',
|
362 |
-
'placeholder' => __('Link', CHT_OPT),
|
363 |
-
'slug' => 'Custom_Link_5',
|
364 |
-
'title' => 'Custom Link',
|
365 |
-
'color' => '#E9C46A',
|
366 |
-
'help' => "You can use this channel to add any custom channel you want. You can link to a specific form on your site or any social network. You can customize the color, upload a custom image, and change the on-hover text in the Pro plans",
|
367 |
-
'help_title' => 'How do I use this?',
|
368 |
-
'svg' => '<circle class="color-element" cx="19.4395" cy="19.4395" r="19.4395" fill="#E9C46A"/>
|
369 |
-
<mask id="path-2-outside-1" maskUnits="userSpaceOnUse" x="-1" y="-1" width="13" height="14" fill="black">
|
370 |
-
<rect fill="white" x="-1" y="-1" width="13" height="14"/>
|
371 |
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z"/>
|
372 |
-
</mask>
|
373 |
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z" transform="translate(9.95154 16.0478)" fill="white"/>
|
374 |
-
<path d="M5.44484 1.73538L5.23053 1.52545L5.44484 1.73538ZM5.44484 1.73537L5.23053 1.52544L5.44484 1.73537ZM1.6999 5.55844L1.48559 5.3485L1.6999 5.55844ZM1.69991 5.55843L1.91422 5.76836L1.69991 5.55843ZM1.69991 9.29657L1.91422 9.08664L1.69991 9.29657ZM1.6999 9.29655L1.91421 9.08662L1.6999 9.29655ZM2.53215 10.1461L2.31784 10.3561L2.53215 10.1461ZM2.53209 10.1461L2.31778 10.356L2.53209 10.1461ZM6.19386 10.1461L5.97955 9.93618L6.19386 10.1461ZM6.19386 10.1461L6.40817 10.356L6.19386 10.1461ZM8.60942 7.68018L8.82373 7.89011L8.60942 7.68018ZM9.28893 8.34581L9.07462 8.13588L9.28893 8.34581ZM6.85962 10.8258L6.64532 10.6158L6.85962 10.8258ZM6.85964 10.8258L7.07395 11.0357L6.85964 10.8258ZM1.86633 10.8258L2.08064 10.6158L1.86633 10.8258ZM1.86636 10.8258L2.08067 10.6159L1.86636 10.8258ZM1.03412 9.9762L1.24843 9.76628L1.03412 9.9762ZM1.03415 9.97623L0.819841 10.1862L1.03415 9.97623ZM1.03414 4.87877L0.819827 4.66884L1.03414 4.87877ZM1.03413 4.87878L1.24844 5.08871L1.03413 4.87878ZM4.77907 1.05571L4.99338 1.26564L4.77907 1.05571ZM4.77906 1.05572L4.99338 1.26565L4.77906 1.05572ZM9.77236 1.05572L9.55805 1.26565L9.77236 1.05572ZM9.77235 1.05572L9.98666 0.845785L9.77235 1.05572ZM10.6046 1.90532L10.8189 1.6954L10.6046 1.90532ZM10.6045 1.90528L10.8189 1.69535L10.6045 1.90528ZM10.9533 2.31904L10.7101 2.49464L10.9533 2.31904ZM10.1019 2.76754L9.86916 2.95685L10.1019 2.76754ZM9.10659 1.73538L9.3209 1.52545L9.10659 1.73538ZM9.10658 1.73537L8.89227 1.9453L9.10658 1.73537ZM9.93879 2.58495L10.1531 2.37502L9.93879 2.58495ZM9.9388 2.58496L10.1531 2.37503L9.9388 2.58496ZM10.1531 2.37502L9.3209 1.52545L8.89228 1.94531L9.72448 2.79488L10.1531 2.37502ZM10.3346 2.57823C10.2777 2.50832 10.2172 2.4405 10.1531 2.37503L9.72449 2.79488C9.77566 2.84713 9.82388 2.90119 9.86916 2.95685L10.3346 2.57823ZM11.1966 2.14344C11.0835 1.98684 10.9576 1.83698 10.8189 1.6954L10.3903 2.11524C10.5079 2.2353 10.6145 2.3622 10.7101 2.49464L11.1966 2.14344ZM10.8189 1.69535L9.98667 0.845789L9.55805 1.26565L10.3902 2.11521L10.8189 1.69535ZM9.98666 0.845785C8.49018 -0.681928 6.06124 -0.681928 4.56476 0.845784L4.99338 1.26564C6.25459 -0.0218819 8.29683 -0.0218814 9.55804 1.26565L9.98666 0.845785ZM4.56475 0.84579L0.819827 4.66884L1.24845 5.0887L4.99338 1.26565L4.56475 0.84579ZM0.819819 4.66885C-0.673269 6.1931 -0.673273 8.66187 0.819807 10.1861L1.24843 9.76628C-0.0161474 8.47529 -0.016144 6.37969 1.24844 5.08871L0.819819 4.66885ZM0.819841 10.1862L1.65203 11.0357L2.08064 10.6158L1.24846 9.7663L0.819841 10.1862ZM1.65205 11.0357C3.14854 12.5634 5.57739 12.5634 7.07393 11.0357L6.64532 10.6158C5.38405 11.9034 3.34188 11.9034 2.08067 10.6159L1.65205 11.0357ZM7.07395 11.0357L9.50324 8.55574L9.07462 8.13588L6.64533 10.6158L7.07395 11.0357ZM6.40817 10.356L8.82373 7.89011L8.39511 7.47025L5.97955 9.93618L6.40817 10.356ZM2.31784 10.3561C3.44659 11.5084 5.27938 11.5084 6.40817 10.356L5.97955 9.93618C5.08603 10.8483 3.63993 10.8483 2.74646 9.93621L2.31784 10.3561ZM1.48561 9.50651L2.31778 10.356L2.7464 9.93615L1.91422 9.08664L1.48561 9.50651ZM1.48559 5.3485C0.360176 6.49739 0.360173 8.35759 1.48559 9.50648L1.91421 9.08662C1.0173 8.171 1.0173 6.68399 1.91421 5.76837L1.48559 5.3485ZM5.23053 1.52545L1.4856 5.3485L1.91422 5.76836L5.65915 1.94531L5.23053 1.52545ZM9.32089 1.52544C8.19208 0.373095 6.35934 0.373096 5.23053 1.52544L5.65915 1.9453C6.55268 1.03314 7.99874 1.03314 8.89227 1.9453L9.32089 1.52544ZM5.65915 1.94531C5.65915 1.94531 5.65915 1.94531 5.65915 1.9453L5.23053 1.52544C5.23053 1.52544 5.23053 1.52544 5.23053 1.52545L5.65915 1.94531ZM1.91421 5.76837C1.91421 5.76837 1.91422 5.76836 1.91422 5.76836L1.4856 5.3485C1.4856 5.3485 1.48559 5.3485 1.48559 5.3485L1.91421 5.76837ZM1.91422 9.08664C1.91422 9.08663 1.91421 9.08663 1.91421 9.08662L1.48559 9.50648C1.48559 9.50649 1.4856 9.5065 1.48561 9.50651L1.91422 9.08664ZM2.74646 9.93621C2.74644 9.93619 2.74642 9.93617 2.7464 9.93615L2.31778 10.356C2.3178 10.356 2.31782 10.356 2.31784 10.3561L2.74646 9.93621ZM5.97955 9.93618C5.97955 9.93618 5.97955 9.93618 5.97955 9.93618L6.40817 10.356C6.40817 10.356 6.40817 10.356 6.40817 10.356L5.97955 9.93618ZM9.50324 7.47025C9.1991 7.15977 8.69924 7.15977 8.39511 7.47025L8.82373 7.89011C8.89259 7.81981 9.00576 7.81981 9.07462 7.89011L9.50324 7.47025ZM9.50324 8.55574C9.79862 8.25419 9.79862 7.77179 9.50324 7.47025L9.07462 7.89011C9.1415 7.95838 9.1415 8.0676 9.07462 8.13588L9.50324 8.55574ZM7.07393 11.0357C7.07394 11.0357 7.07395 11.0357 7.07395 11.0357L6.64533 10.6158C6.64533 10.6158 6.64532 10.6158 6.64532 10.6158L7.07393 11.0357ZM1.65203 11.0357C1.65203 11.0357 1.65204 11.0357 1.65205 11.0357L2.08067 10.6159C2.08066 10.6158 2.08065 10.6158 2.08064 10.6158L1.65203 11.0357ZM0.819807 10.1861C0.819819 10.1861 0.81983 10.1862 0.819841 10.1862L1.24846 9.7663C1.24845 9.76629 1.24844 9.76628 1.24843 9.76628L0.819807 10.1861ZM0.819827 4.66884C0.819824 4.66884 0.819822 4.66885 0.819819 4.66885L1.24844 5.08871C1.24844 5.08871 1.24845 5.08871 1.24845 5.0887L0.819827 4.66884ZM4.56476 0.845784C4.56476 0.845786 4.56476 0.845788 4.56475 0.84579L4.99338 1.26565C4.99338 1.26565 4.99338 1.26565 4.99338 1.26564L4.56476 0.845784ZM9.98667 0.845789C9.98667 0.845788 9.98666 0.845787 9.98666 0.845785L9.55804 1.26565C9.55804 1.26565 9.55804 1.26565 9.55805 1.26565L9.98667 0.845789ZM10.8189 1.6954C10.8189 1.69538 10.8189 1.69536 10.8189 1.69535L10.3902 2.11521C10.3902 2.11522 10.3903 2.11523 10.3903 2.11524L10.8189 1.6954ZM11.1146 3.06246C11.3462 2.82606 11.411 2.44051 11.1966 2.14344L10.7101 2.49464C10.7332 2.52669 10.7385 2.58902 10.686 2.64258L11.1146 3.06246ZM9.86916 2.95685C10.1487 3.30046 10.7367 3.44829 11.1146 3.06246L10.686 2.64258C10.652 2.67732 10.6006 2.69693 10.531 2.68804C10.4586 2.67877 10.3842 2.63918 10.3346 2.57823L9.86916 2.95685ZM9.3209 1.52545C9.32089 1.52544 9.32089 1.52544 9.32089 1.52544L8.89227 1.9453C8.89227 1.9453 8.89227 1.94531 8.89228 1.94531L9.3209 1.52545ZM9.72448 2.79488C9.72448 2.79488 9.72448 2.79488 9.72449 2.79488L10.1531 2.37503C10.1531 2.37503 10.1531 2.37502 10.1531 2.37502L9.72448 2.79488Z" transform="translate(9.95154 16.0478)" fill="white" mask="url(#path-2-outside-1)"/>
|
375 |
-
<mask id="path-4-outside-2" maskUnits="userSpaceOnUse" x="-1" y="-1" width="13" height="14" fill="black">
|
376 |
-
<rect fill="white" x="-1" y="-1" width="13" height="14"/>
|
377 |
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z"/>
|
378 |
-
</mask>
|
379 |
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z" transform="translate(28.9286 22.8312) rotate(-180)" fill="white"/>
|
380 |
-
<path d="M5.44484 1.73538L5.23053 1.52545L5.44484 1.73538ZM5.44484 1.73537L5.23053 1.52544L5.44484 1.73537ZM1.6999 5.55844L1.48559 5.3485L1.6999 5.55844ZM1.69991 5.55843L1.91422 5.76836L1.69991 5.55843ZM1.69991 9.29657L1.91422 9.08664L1.69991 9.29657ZM1.6999 9.29655L1.91421 9.08662L1.6999 9.29655ZM2.53215 10.1461L2.31784 10.3561L2.53215 10.1461ZM2.53209 10.1461L2.31778 10.356L2.53209 10.1461ZM6.19386 10.1461L5.97955 9.93618L6.19386 10.1461ZM6.19386 10.1461L6.40817 10.356L6.19386 10.1461ZM8.60942 7.68018L8.82373 7.89011L8.60942 7.68018ZM9.28893 8.34581L9.07462 8.13588L9.28893 8.34581ZM6.85962 10.8258L6.64532 10.6158L6.85962 10.8258ZM6.85964 10.8258L7.07395 11.0357L6.85964 10.8258ZM1.86633 10.8258L2.08064 10.6158L1.86633 10.8258ZM1.86636 10.8258L2.08067 10.6159L1.86636 10.8258ZM1.03412 9.9762L1.24843 9.76628L1.03412 9.9762ZM1.03415 9.97623L0.819841 10.1862L1.03415 9.97623ZM1.03414 4.87877L0.819827 4.66884L1.03414 4.87877ZM1.03413 4.87878L1.24844 5.08871L1.03413 4.87878ZM4.77907 1.05571L4.99338 1.26564L4.77907 1.05571ZM4.77906 1.05572L4.99338 1.26565L4.77906 1.05572ZM9.77236 1.05572L9.55805 1.26565L9.77236 1.05572ZM9.77235 1.05572L9.98666 0.845785L9.77235 1.05572ZM10.6046 1.90532L10.8189 1.6954L10.6046 1.90532ZM10.6045 1.90528L10.8189 1.69535L10.6045 1.90528ZM10.9533 2.31904L10.7101 2.49464L10.9533 2.31904ZM10.1019 2.76754L9.86916 2.95685L10.1019 2.76754ZM9.10659 1.73538L9.3209 1.52545L9.10659 1.73538ZM9.10658 1.73537L8.89227 1.9453L9.10658 1.73537ZM9.93879 2.58495L10.1531 2.37502L9.93879 2.58495ZM9.9388 2.58496L10.1531 2.37503L9.9388 2.58496ZM10.1531 2.37502L9.3209 1.52545L8.89228 1.94531L9.72448 2.79488L10.1531 2.37502ZM10.3346 2.57823C10.2777 2.50832 10.2172 2.4405 10.1531 2.37503L9.72449 2.79488C9.77566 2.84713 9.82388 2.90119 9.86916 2.95685L10.3346 2.57823ZM11.1966 2.14344C11.0835 1.98684 10.9576 1.83698 10.8189 1.6954L10.3903 2.11524C10.5079 2.2353 10.6145 2.3622 10.7101 2.49464L11.1966 2.14344ZM10.8189 1.69535L9.98667 0.845789L9.55805 1.26565L10.3902 2.11521L10.8189 1.69535ZM9.98666 0.845785C8.49018 -0.681928 6.06124 -0.681928 4.56476 0.845784L4.99338 1.26564C6.25459 -0.0218819 8.29683 -0.0218814 9.55804 1.26565L9.98666 0.845785ZM4.56475 0.84579L0.819827 4.66884L1.24845 5.0887L4.99338 1.26565L4.56475 0.84579ZM0.819819 4.66885C-0.673269 6.1931 -0.673273 8.66187 0.819807 10.1861L1.24843 9.76628C-0.0161474 8.47529 -0.016144 6.37969 1.24844 5.08871L0.819819 4.66885ZM0.819841 10.1862L1.65203 11.0357L2.08064 10.6158L1.24846 9.7663L0.819841 10.1862ZM1.65205 11.0357C3.14854 12.5634 5.57739 12.5634 7.07393 11.0357L6.64532 10.6158C5.38405 11.9034 3.34188 11.9034 2.08067 10.6159L1.65205 11.0357ZM7.07395 11.0357L9.50324 8.55574L9.07462 8.13588L6.64533 10.6158L7.07395 11.0357ZM6.40817 10.356L8.82373 7.89011L8.39511 7.47025L5.97955 9.93618L6.40817 10.356ZM2.31784 10.3561C3.44659 11.5084 5.27938 11.5084 6.40817 10.356L5.97955 9.93618C5.08603 10.8483 3.63993 10.8483 2.74646 9.93621L2.31784 10.3561ZM1.48561 9.50651L2.31778 10.356L2.7464 9.93615L1.91422 9.08664L1.48561 9.50651ZM1.48559 5.3485C0.360176 6.49739 0.360173 8.35759 1.48559 9.50648L1.91421 9.08662C1.0173 8.171 1.0173 6.68399 1.91421 5.76837L1.48559 5.3485ZM5.23053 1.52545L1.4856 5.3485L1.91422 5.76836L5.65915 1.94531L5.23053 1.52545ZM9.32089 1.52544C8.19208 0.373095 6.35934 0.373096 5.23053 1.52544L5.65915 1.9453C6.55268 1.03314 7.99874 1.03314 8.89227 1.9453L9.32089 1.52544ZM5.65915 1.94531C5.65915 1.94531 5.65915 1.94531 5.65915 1.9453L5.23053 1.52544C5.23053 1.52544 5.23053 1.52544 5.23053 1.52545L5.65915 1.94531ZM1.91421 5.76837C1.91421 5.76837 1.91422 5.76836 1.91422 5.76836L1.4856 5.3485C1.4856 5.3485 1.48559 5.3485 1.48559 5.3485L1.91421 5.76837ZM1.91422 9.08664C1.91422 9.08663 1.91421 9.08663 1.91421 9.08662L1.48559 9.50648C1.48559 9.50649 1.4856 9.5065 1.48561 9.50651L1.91422 9.08664ZM2.74646 9.93621C2.74644 9.93619 2.74642 9.93617 2.7464 9.93615L2.31778 10.356C2.3178 10.356 2.31782 10.356 2.31784 10.3561L2.74646 9.93621ZM5.97955 9.93618C5.97955 9.93618 5.97955 9.93618 5.97955 9.93618L6.40817 10.356C6.40817 10.356 6.40817 10.356 6.40817 10.356L5.97955 9.93618ZM9.50324 7.47025C9.1991 7.15977 8.69924 7.15977 8.39511 7.47025L8.82373 7.89011C8.89259 7.81981 9.00576 7.81981 9.07462 7.89011L9.50324 7.47025ZM9.50324 8.55574C9.79862 8.25419 9.79862 7.77179 9.50324 7.47025L9.07462 7.89011C9.1415 7.95838 9.1415 8.0676 9.07462 8.13588L9.50324 8.55574ZM7.07393 11.0357C7.07394 11.0357 7.07395 11.0357 7.07395 11.0357L6.64533 10.6158C6.64533 10.6158 6.64532 10.6158 6.64532 10.6158L7.07393 11.0357ZM1.65203 11.0357C1.65203 11.0357 1.65204 11.0357 1.65205 11.0357L2.08067 10.6159C2.08066 10.6158 2.08065 10.6158 2.08064 10.6158L1.65203 11.0357ZM0.819807 10.1861C0.819819 10.1861 0.81983 10.1862 0.819841 10.1862L1.24846 9.7663C1.24845 9.76629 1.24844 9.76628 1.24843 9.76628L0.819807 10.1861ZM0.819827 4.66884C0.819824 4.66884 0.819822 4.66885 0.819819 4.66885L1.24844 5.08871C1.24844 5.08871 1.24845 5.08871 1.24845 5.0887L0.819827 4.66884ZM4.56476 0.845784C4.56476 0.845786 4.56476 0.845788 4.56475 0.84579L4.99338 1.26565C4.99338 1.26565 4.99338 1.26565 4.99338 1.26564L4.56476 0.845784ZM9.98667 0.845789C9.98667 0.845788 9.98666 0.845787 9.98666 0.845785L9.55804 1.26565C9.55804 1.26565 9.55804 1.26565 9.55805 1.26565L9.98667 0.845789ZM10.8189 1.6954C10.8189 1.69538 10.8189 1.69536 10.8189 1.69535L10.3902 2.11521C10.3902 2.11522 10.3903 2.11523 10.3903 2.11524L10.8189 1.6954ZM11.1146 3.06246C11.3462 2.82606 11.411 2.44051 11.1966 2.14344L10.7101 2.49464C10.7332 2.52669 10.7385 2.58902 10.686 2.64258L11.1146 3.06246ZM9.86916 2.95685C10.1487 3.30046 10.7367 3.44829 11.1146 3.06246L10.686 2.64258C10.652 2.67732 10.6006 2.69693 10.531 2.68804C10.4586 2.67877 10.3842 2.63918 10.3346 2.57823L9.86916 2.95685ZM9.3209 1.52545C9.32089 1.52544 9.32089 1.52544 9.32089 1.52544L8.89227 1.9453C8.89227 1.9453 8.89227 1.94531 8.89228 1.94531L9.3209 1.52545ZM9.72448 2.79488C9.72448 2.79488 9.72448 2.79488 9.72449 2.79488L10.1531 2.37503C10.1531 2.37503 10.1531 2.37502 10.1531 2.37502L9.72448 2.79488Z" transform="translate(28.9286 22.8312) rotate(-180)" fill="white" mask="url(#path-4-outside-2)"/>'
|
381 |
-
),
|
382 |
-
array(
|
383 |
-
'example' => '',
|
384 |
-
'placeholder' => '',
|
385 |
-
'slug' => 'Contact_Us',
|
386 |
-
'title' => 'Contact Us',
|
387 |
-
'color' => '#253974',
|
388 |
-
'svg' => '<path class="color-element" d="M36.992 19.87c0 9.8-7.947 17.746-17.746 17.746S1.5 29.67 1.5 19.87 9.447 2.125 19.246 2.125s17.746 7.947 17.746 17.746zm0 0" fill="#253974"/><g fill="rgb(100%,100%,100%)"><path d="M20.316 19.89l-.915 3.817-.9-3.817c-3.817.47-6.69 3.7-6.7 7.556h15.224c-.01-3.846-2.88-7.085-6.7-7.556zm0 0"/><path d="M24.133 14.742c.005-2.518-1.95-4.61-4.464-4.77a4.77 4.77 0 0 0-5.033 4.165c-.315 2.502 1.373 4.815 3.85 5.278h1.8a4.77 4.77 0 0 0 3.853-4.672h-.005zm0 0"/></g>'
|
389 |
)
|
390 |
);
|
391 |
}
|
51 |
array(
|
52 |
'example' => '1507854875',
|
53 |
'placeholder' => __('Phone number', CHT_OPT),
|
54 |
+
'attr' => 'phone-number',
|
55 |
'help_title' => 'How do I use this?',
|
56 |
'help' => 'Enter your country code (in our example 1) and then your number without a leading zero (in our example 507854875)',
|
57 |
'slug' => 'Whatsapp',
|
59 |
<path d="M12.9821 10.1115C12.7029 10.7767 11.5862 11.442 10.7486 11.575C10.1902 11.7081 9.35269 11.8411 6.84003 10.7767C3.48981 9.44628 1.39593 6.25317 1.25634 6.12012C1.11674 5.85403 2.13001e-06 4.39053 2.13001e-06 2.92702C2.13001e-06 1.46351 0.83755 0.665231 1.11673 0.399139C1.39592 0.133046 1.8147 1.01506e-06 2.23348 1.01506e-06C2.37307 1.01506e-06 2.51267 1.01506e-06 2.65226 1.01506e-06C2.93144 1.01506e-06 3.21063 -2.02219e-06 3.35022 0.532183C3.62941 1.19741 4.32736 2.66092 4.32736 2.79397C4.46696 2.92702 4.46696 3.19311 4.32736 3.32616C4.18777 3.59225 4.18777 3.59224 3.90858 3.85834C3.76899 3.99138 3.6294 4.12443 3.48981 4.39052C3.35022 4.52357 3.21063 4.78966 3.35022 5.05576C3.48981 5.32185 4.18777 6.38622 5.16491 7.18449C6.42125 8.24886 7.39839 8.51496 7.81717 8.78105C8.09636 8.91409 8.37554 8.9141 8.65472 8.648C8.93391 8.38191 9.21309 7.98277 9.49228 7.58363C9.77146 7.31754 10.0507 7.1845 10.3298 7.31754C10.609 7.45059 12.2841 8.11582 12.5633 8.38191C12.8425 8.51496 13.1217 8.648 13.1217 8.78105C13.1217 8.78105 13.1217 9.44628 12.9821 10.1115Z" transform="translate(12.9597 12.9597)" fill="#FAFAFA"/>
|
60 |
<path d="M0.196998 23.295L0.131434 23.4862L0.323216 23.4223L5.52771 21.6875C7.4273 22.8471 9.47325 23.4274 11.6637 23.4274C18.134 23.4274 23.4274 18.134 23.4274 11.6637C23.4274 5.19344 18.134 -0.1 11.6637 -0.1C5.19344 -0.1 -0.1 5.19344 -0.1 11.6637C-0.1 13.9996 0.624492 16.3352 1.93021 18.2398L0.196998 23.295ZM5.87658 19.8847L5.84025 19.8665L5.80154 19.8788L2.78138 20.8398L3.73978 17.9646L3.75932 17.906L3.71562 17.8623L3.43104 17.5777C2.27704 15.8437 1.55796 13.8245 1.55796 11.6637C1.55796 6.03288 6.03288 1.55796 11.6637 1.55796C17.2945 1.55796 21.7695 6.03288 21.7695 11.6637C21.7695 17.2945 17.2945 21.7695 11.6637 21.7695C9.64222 21.7695 7.76778 21.1921 6.18227 20.039L6.17557 20.0342L6.16817 20.0305L5.87658 19.8847Z" transform="translate(7.7758 7.77582)" fill="white" stroke="white" stroke-width="0.2"/>',
|
61 |
'title' => 'Whatsapp',
|
62 |
+
'color' => '#49E670'
|
|
|
63 |
),
|
64 |
array(
|
65 |
'example' => 'https://m.me/Coca-Cola/',
|
74 |
array(
|
75 |
'example' => '+1507854875',
|
76 |
'placeholder' => __('Phone number', CHT_OPT),
|
77 |
+
'attr' => 'phone-number',
|
78 |
'help_title' => 'How do I use this?',
|
79 |
'help' => 'Enter your country code (in our example +1) and then your number without a leading zero (in our example 507854875)',
|
80 |
'slug' => 'SMS',
|
81 |
'title' => 'SMS',
|
82 |
'color' => '#FF549C',
|
|
|
83 |
'svg' => '<circle class="color-element" cx="19.4395" cy="19.4395" r="19.4395" fill="#FF549C"/>
|
84 |
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.60298 0H16.9194C18.351 0 19.5224 1.19321 19.5224 2.65158V14.5838C19.5224 16.0421 18.351 17.2354 16.9194 17.2354H7.4185L3.64418 20.4173C3.51402 20.5499 3.38388 20.5499 3.25372 20.5499H2.99344C2.73314 20.4173 2.60298 20.1521 2.60298 19.887V17.2354C1.17134 17.2354 0 16.0421 0 14.5838V2.65158C0 1.19321 1.17134 0 2.60298 0ZM2.60316 11.2696C2.60316 11.6673 2.86346 11.9325 3.25391 11.9325H4.5554C5.5966 11.9325 6.50764 11.0044 6.50764 9.94376C6.50764 8.88312 5.5966 7.95505 4.5554 7.95505C4.16496 7.95505 3.90465 7.68991 3.90465 7.29218C3.90465 6.89441 4.16496 6.62927 4.5554 6.62927H5.85689C6.24733 6.62927 6.50764 6.36411 6.50764 5.96637C6.50764 5.56863 6.24733 5.30347 5.85689 5.30347H4.5554C3.51421 5.30347 2.60316 6.23154 2.60316 7.29218C2.60316 8.35281 3.51421 9.28085 4.5554 9.28085C4.94585 9.28085 5.20613 9.54602 5.20613 9.94376C5.20613 10.3415 4.94585 10.6067 4.5554 10.6067H3.25391C2.86346 10.6067 2.60316 10.8718 2.60316 11.2696ZM14.9678 11.9325H13.6664C13.2759 11.9325 13.0156 11.6673 13.0156 11.2696C13.0156 10.8718 13.2759 10.6067 13.6664 10.6067H14.9678C15.3583 10.6067 15.6186 10.3415 15.6186 9.94376C15.6186 9.54602 15.3583 9.28085 14.9678 9.28085C13.9267 9.28085 13.0156 8.35281 13.0156 7.29218C13.0156 6.23154 13.9267 5.30347 14.9678 5.30347H16.2693C16.6598 5.30347 16.9201 5.56863 16.9201 5.96637C16.9201 6.36411 16.6598 6.62927 16.2693 6.62927H14.9678C14.5774 6.62927 14.3171 6.89441 14.3171 7.29218C14.3171 7.68991 14.5774 7.95505 14.9678 7.95505C16.009 7.95505 16.9201 8.88312 16.9201 9.94376C16.9201 11.0044 16.009 11.9325 14.9678 11.9325ZM10.4126 11.2697C10.4126 11.6674 10.6729 11.9326 11.0633 11.9326C11.4538 11.9326 11.7141 11.6674 11.8442 11.2697V5.96649C11.8442 5.70135 11.5839 5.43619 11.3236 5.30362C10.9332 5.30362 10.6729 5.43619 10.5427 5.70135L9.76186 7.15973L8.98094 5.70135C8.85081 5.43619 8.46034 5.17102 8.20006 5.30362C7.93977 5.43619 7.67946 5.70135 7.67946 5.96649V11.2697C7.67946 11.6674 7.93977 11.9326 8.33022 11.9326C8.72066 11.9326 8.98094 11.6674 8.98094 11.2697V8.75067L9.1111 8.88327C9.37138 9.28101 10.0221 9.28101 10.2825 8.88327L10.4126 8.75067V11.2697Z" transform="translate(9.67801 10.4601)" fill="white"/>'
|
85 |
),
|
176 |
<path class="slack-path" data-name="Path 10695" d="M19.73,10.456,23.518,9.2l1.253,3.791-3.791,1.25Zm0,0" transform="translate(-3.776 -1.155)" fill="#82962d"/>
|
177 |
</g>'
|
178 |
),
|
179 |
+
array(
|
180 |
+
'example' => 'https://www.example.com/contact',
|
181 |
+
'placeholder' => __('Link', CHT_OPT),
|
182 |
+
'slug' => 'Custom_Link',
|
183 |
+
'title' => 'Custom Link',
|
184 |
+
'color' => '#1E88E5',
|
185 |
+
'help' => "You can use this channel to add any custom channel you want. You can link to a specific form on your site or any social network. You can customize the color, upload a custom image, and change the on-hover text in the Pro plans",
|
186 |
+
'help_title' => 'How do I use this?',
|
187 |
+
'svg' => '<circle class="color-element" cx="19.4395" cy="19.4395" r="19.4395" fill="#1E88E5"/>
|
188 |
+
<mask id="path-2-outside-1" maskUnits="userSpaceOnUse" x="-1" y="-1" width="13" height="14" fill="black">
|
189 |
+
<rect fill="white" x="-1" y="-1" width="13" height="14"/>
|
190 |
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z"/>
|
191 |
+
</mask>
|
192 |
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z" transform="translate(9.95154 16.0478)" fill="white"/>
|
193 |
+
<path d="M5.44484 1.73538L5.23053 1.52545L5.44484 1.73538ZM5.44484 1.73537L5.23053 1.52544L5.44484 1.73537ZM1.6999 5.55844L1.48559 5.3485L1.6999 5.55844ZM1.69991 5.55843L1.91422 5.76836L1.69991 5.55843ZM1.69991 9.29657L1.91422 9.08664L1.69991 9.29657ZM1.6999 9.29655L1.91421 9.08662L1.6999 9.29655ZM2.53215 10.1461L2.31784 10.3561L2.53215 10.1461ZM2.53209 10.1461L2.31778 10.356L2.53209 10.1461ZM6.19386 10.1461L5.97955 9.93618L6.19386 10.1461ZM6.19386 10.1461L6.40817 10.356L6.19386 10.1461ZM8.60942 7.68018L8.82373 7.89011L8.60942 7.68018ZM9.28893 8.34581L9.07462 8.13588L9.28893 8.34581ZM6.85962 10.8258L6.64532 10.6158L6.85962 10.8258ZM6.85964 10.8258L7.07395 11.0357L6.85964 10.8258ZM1.86633 10.8258L2.08064 10.6158L1.86633 10.8258ZM1.86636 10.8258L2.08067 10.6159L1.86636 10.8258ZM1.03412 9.9762L1.24843 9.76628L1.03412 9.9762ZM1.03415 9.97623L0.819841 10.1862L1.03415 9.97623ZM1.03414 4.87877L0.819827 4.66884L1.03414 4.87877ZM1.03413 4.87878L1.24844 5.08871L1.03413 4.87878ZM4.77907 1.05571L4.99338 1.26564L4.77907 1.05571ZM4.77906 1.05572L4.99338 1.26565L4.77906 1.05572ZM9.77236 1.05572L9.55805 1.26565L9.77236 1.05572ZM9.77235 1.05572L9.98666 0.845785L9.77235 1.05572ZM10.6046 1.90532L10.8189 1.6954L10.6046 1.90532ZM10.6045 1.90528L10.8189 1.69535L10.6045 1.90528ZM10.9533 2.31904L10.7101 2.49464L10.9533 2.31904ZM10.1019 2.76754L9.86916 2.95685L10.1019 2.76754ZM9.10659 1.73538L9.3209 1.52545L9.10659 1.73538ZM9.10658 1.73537L8.89227 1.9453L9.10658 1.73537ZM9.93879 2.58495L10.1531 2.37502L9.93879 2.58495ZM9.9388 2.58496L10.1531 2.37503L9.9388 2.58496ZM10.1531 2.37502L9.3209 1.52545L8.89228 1.94531L9.72448 2.79488L10.1531 2.37502ZM10.3346 2.57823C10.2777 2.50832 10.2172 2.4405 10.1531 2.37503L9.72449 2.79488C9.77566 2.84713 9.82388 2.90119 9.86916 2.95685L10.3346 2.57823ZM11.1966 2.14344C11.0835 1.98684 10.9576 1.83698 10.8189 1.6954L10.3903 2.11524C10.5079 2.2353 10.6145 2.3622 10.7101 2.49464L11.1966 2.14344ZM10.8189 1.69535L9.98667 0.845789L9.55805 1.26565L10.3902 2.11521L10.8189 1.69535ZM9.98666 0.845785C8.49018 -0.681928 6.06124 -0.681928 4.56476 0.845784L4.99338 1.26564C6.25459 -0.0218819 8.29683 -0.0218814 9.55804 1.26565L9.98666 0.845785ZM4.56475 0.84579L0.819827 4.66884L1.24845 5.0887L4.99338 1.26565L4.56475 0.84579ZM0.819819 4.66885C-0.673269 6.1931 -0.673273 8.66187 0.819807 10.1861L1.24843 9.76628C-0.0161474 8.47529 -0.016144 6.37969 1.24844 5.08871L0.819819 4.66885ZM0.819841 10.1862L1.65203 11.0357L2.08064 10.6158L1.24846 9.7663L0.819841 10.1862ZM1.65205 11.0357C3.14854 12.5634 5.57739 12.5634 7.07393 11.0357L6.64532 10.6158C5.38405 11.9034 3.34188 11.9034 2.08067 10.6159L1.65205 11.0357ZM7.07395 11.0357L9.50324 8.55574L9.07462 8.13588L6.64533 10.6158L7.07395 11.0357ZM6.40817 10.356L8.82373 7.89011L8.39511 7.47025L5.97955 9.93618L6.40817 10.356ZM2.31784 10.3561C3.44659 11.5084 5.27938 11.5084 6.40817 10.356L5.97955 9.93618C5.08603 10.8483 3.63993 10.8483 2.74646 9.93621L2.31784 10.3561ZM1.48561 9.50651L2.31778 10.356L2.7464 9.93615L1.91422 9.08664L1.48561 9.50651ZM1.48559 5.3485C0.360176 6.49739 0.360173 8.35759 1.48559 9.50648L1.91421 9.08662C1.0173 8.171 1.0173 6.68399 1.91421 5.76837L1.48559 5.3485ZM5.23053 1.52545L1.4856 5.3485L1.91422 5.76836L5.65915 1.94531L5.23053 1.52545ZM9.32089 1.52544C8.19208 0.373095 6.35934 0.373096 5.23053 1.52544L5.65915 1.9453C6.55268 1.03314 7.99874 1.03314 8.89227 1.9453L9.32089 1.52544ZM5.65915 1.94531C5.65915 1.94531 5.65915 1.94531 5.65915 1.9453L5.23053 1.52544C5.23053 1.52544 5.23053 1.52544 5.23053 1.52545L5.65915 1.94531ZM1.91421 5.76837C1.91421 5.76837 1.91422 5.76836 1.91422 5.76836L1.4856 5.3485C1.4856 5.3485 1.48559 5.3485 1.48559 5.3485L1.91421 5.76837ZM1.91422 9.08664C1.91422 9.08663 1.91421 9.08663 1.91421 9.08662L1.48559 9.50648C1.48559 9.50649 1.4856 9.5065 1.48561 9.50651L1.91422 9.08664ZM2.74646 9.93621C2.74644 9.93619 2.74642 9.93617 2.7464 9.93615L2.31778 10.356C2.3178 10.356 2.31782 10.356 2.31784 10.3561L2.74646 9.93621ZM5.97955 9.93618C5.97955 9.93618 5.97955 9.93618 5.97955 9.93618L6.40817 10.356C6.40817 10.356 6.40817 10.356 6.40817 10.356L5.97955 9.93618ZM9.50324 7.47025C9.1991 7.15977 8.69924 7.15977 8.39511 7.47025L8.82373 7.89011C8.89259 7.81981 9.00576 7.81981 9.07462 7.89011L9.50324 7.47025ZM9.50324 8.55574C9.79862 8.25419 9.79862 7.77179 9.50324 7.47025L9.07462 7.89011C9.1415 7.95838 9.1415 8.0676 9.07462 8.13588L9.50324 8.55574ZM7.07393 11.0357C7.07394 11.0357 7.07395 11.0357 7.07395 11.0357L6.64533 10.6158C6.64533 10.6158 6.64532 10.6158 6.64532 10.6158L7.07393 11.0357ZM1.65203 11.0357C1.65203 11.0357 1.65204 11.0357 1.65205 11.0357L2.08067 10.6159C2.08066 10.6158 2.08065 10.6158 2.08064 10.6158L1.65203 11.0357ZM0.819807 10.1861C0.819819 10.1861 0.81983 10.1862 0.819841 10.1862L1.24846 9.7663C1.24845 9.76629 1.24844 9.76628 1.24843 9.76628L0.819807 10.1861ZM0.819827 4.66884C0.819824 4.66884 0.819822 4.66885 0.819819 4.66885L1.24844 5.08871C1.24844 5.08871 1.24845 5.08871 1.24845 5.0887L0.819827 4.66884ZM4.56476 0.845784C4.56476 0.845786 4.56476 0.845788 4.56475 0.84579L4.99338 1.26565C4.99338 1.26565 4.99338 1.26565 4.99338 1.26564L4.56476 0.845784ZM9.98667 0.845789C9.98667 0.845788 9.98666 0.845787 9.98666 0.845785L9.55804 1.26565C9.55804 1.26565 9.55804 1.26565 9.55805 1.26565L9.98667 0.845789ZM10.8189 1.6954C10.8189 1.69538 10.8189 1.69536 10.8189 1.69535L10.3902 2.11521C10.3902 2.11522 10.3903 2.11523 10.3903 2.11524L10.8189 1.6954ZM11.1146 3.06246C11.3462 2.82606 11.411 2.44051 11.1966 2.14344L10.7101 2.49464C10.7332 2.52669 10.7385 2.58902 10.686 2.64258L11.1146 3.06246ZM9.86916 2.95685C10.1487 3.30046 10.7367 3.44829 11.1146 3.06246L10.686 2.64258C10.652 2.67732 10.6006 2.69693 10.531 2.68804C10.4586 2.67877 10.3842 2.63918 10.3346 2.57823L9.86916 2.95685ZM9.3209 1.52545C9.32089 1.52544 9.32089 1.52544 9.32089 1.52544L8.89227 1.9453C8.89227 1.9453 8.89227 1.94531 8.89228 1.94531L9.3209 1.52545ZM9.72448 2.79488C9.72448 2.79488 9.72448 2.79488 9.72449 2.79488L10.1531 2.37503C10.1531 2.37503 10.1531 2.37502 10.1531 2.37502L9.72448 2.79488Z" transform="translate(9.95154 16.0478)" fill="white" mask="url(#path-2-outside-1)"/>
|
194 |
+
<mask id="path-4-outside-2" maskUnits="userSpaceOnUse" x="-1" y="-1" width="13" height="14" fill="black">
|
195 |
+
<rect fill="white" x="-1" y="-1" width="13" height="14"/>
|
196 |
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z"/>
|
197 |
+
</mask>
|
198 |
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z" transform="translate(28.9286 22.8312) rotate(-180)" fill="white"/>
|
199 |
+
<path d="M5.44484 1.73538L5.23053 1.52545L5.44484 1.73538ZM5.44484 1.73537L5.23053 1.52544L5.44484 1.73537ZM1.6999 5.55844L1.48559 5.3485L1.6999 5.55844ZM1.69991 5.55843L1.91422 5.76836L1.69991 5.55843ZM1.69991 9.29657L1.91422 9.08664L1.69991 9.29657ZM1.6999 9.29655L1.91421 9.08662L1.6999 9.29655ZM2.53215 10.1461L2.31784 10.3561L2.53215 10.1461ZM2.53209 10.1461L2.31778 10.356L2.53209 10.1461ZM6.19386 10.1461L5.97955 9.93618L6.19386 10.1461ZM6.19386 10.1461L6.40817 10.356L6.19386 10.1461ZM8.60942 7.68018L8.82373 7.89011L8.60942 7.68018ZM9.28893 8.34581L9.07462 8.13588L9.28893 8.34581ZM6.85962 10.8258L6.64532 10.6158L6.85962 10.8258ZM6.85964 10.8258L7.07395 11.0357L6.85964 10.8258ZM1.86633 10.8258L2.08064 10.6158L1.86633 10.8258ZM1.86636 10.8258L2.08067 10.6159L1.86636 10.8258ZM1.03412 9.9762L1.24843 9.76628L1.03412 9.9762ZM1.03415 9.97623L0.819841 10.1862L1.03415 9.97623ZM1.03414 4.87877L0.819827 4.66884L1.03414 4.87877ZM1.03413 4.87878L1.24844 5.08871L1.03413 4.87878ZM4.77907 1.05571L4.99338 1.26564L4.77907 1.05571ZM4.77906 1.05572L4.99338 1.26565L4.77906 1.05572ZM9.77236 1.05572L9.55805 1.26565L9.77236 1.05572ZM9.77235 1.05572L9.98666 0.845785L9.77235 1.05572ZM10.6046 1.90532L10.8189 1.6954L10.6046 1.90532ZM10.6045 1.90528L10.8189 1.69535L10.6045 1.90528ZM10.9533 2.31904L10.7101 2.49464L10.9533 2.31904ZM10.1019 2.76754L9.86916 2.95685L10.1019 2.76754ZM9.10659 1.73538L9.3209 1.52545L9.10659 1.73538ZM9.10658 1.73537L8.89227 1.9453L9.10658 1.73537ZM9.93879 2.58495L10.1531 2.37502L9.93879 2.58495ZM9.9388 2.58496L10.1531 2.37503L9.9388 2.58496ZM10.1531 2.37502L9.3209 1.52545L8.89228 1.94531L9.72448 2.79488L10.1531 2.37502ZM10.3346 2.57823C10.2777 2.50832 10.2172 2.4405 10.1531 2.37503L9.72449 2.79488C9.77566 2.84713 9.82388 2.90119 9.86916 2.95685L10.3346 2.57823ZM11.1966 2.14344C11.0835 1.98684 10.9576 1.83698 10.8189 1.6954L10.3903 2.11524C10.5079 2.2353 10.6145 2.3622 10.7101 2.49464L11.1966 2.14344ZM10.8189 1.69535L9.98667 0.845789L9.55805 1.26565L10.3902 2.11521L10.8189 1.69535ZM9.98666 0.845785C8.49018 -0.681928 6.06124 -0.681928 4.56476 0.845784L4.99338 1.26564C6.25459 -0.0218819 8.29683 -0.0218814 9.55804 1.26565L9.98666 0.845785ZM4.56475 0.84579L0.819827 4.66884L1.24845 5.0887L4.99338 1.26565L4.56475 0.84579ZM0.819819 4.66885C-0.673269 6.1931 -0.673273 8.66187 0.819807 10.1861L1.24843 9.76628C-0.0161474 8.47529 -0.016144 6.37969 1.24844 5.08871L0.819819 4.66885ZM0.819841 10.1862L1.65203 11.0357L2.08064 10.6158L1.24846 9.7663L0.819841 10.1862ZM1.65205 11.0357C3.14854 12.5634 5.57739 12.5634 7.07393 11.0357L6.64532 10.6158C5.38405 11.9034 3.34188 11.9034 2.08067 10.6159L1.65205 11.0357ZM7.07395 11.0357L9.50324 8.55574L9.07462 8.13588L6.64533 10.6158L7.07395 11.0357ZM6.40817 10.356L8.82373 7.89011L8.39511 7.47025L5.97955 9.93618L6.40817 10.356ZM2.31784 10.3561C3.44659 11.5084 5.27938 11.5084 6.40817 10.356L5.97955 9.93618C5.08603 10.8483 3.63993 10.8483 2.74646 9.93621L2.31784 10.3561ZM1.48561 9.50651L2.31778 10.356L2.7464 9.93615L1.91422 9.08664L1.48561 9.50651ZM1.48559 5.3485C0.360176 6.49739 0.360173 8.35759 1.48559 9.50648L1.91421 9.08662C1.0173 8.171 1.0173 6.68399 1.91421 5.76837L1.48559 5.3485ZM5.23053 1.52545L1.4856 5.3485L1.91422 5.76836L5.65915 1.94531L5.23053 1.52545ZM9.32089 1.52544C8.19208 0.373095 6.35934 0.373096 5.23053 1.52544L5.65915 1.9453C6.55268 1.03314 7.99874 1.03314 8.89227 1.9453L9.32089 1.52544ZM5.65915 1.94531C5.65915 1.94531 5.65915 1.94531 5.65915 1.9453L5.23053 1.52544C5.23053 1.52544 5.23053 1.52544 5.23053 1.52545L5.65915 1.94531ZM1.91421 5.76837C1.91421 5.76837 1.91422 5.76836 1.91422 5.76836L1.4856 5.3485C1.4856 5.3485 1.48559 5.3485 1.48559 5.3485L1.91421 5.76837ZM1.91422 9.08664C1.91422 9.08663 1.91421 9.08663 1.91421 9.08662L1.48559 9.50648C1.48559 9.50649 1.4856 9.5065 1.48561 9.50651L1.91422 9.08664ZM2.74646 9.93621C2.74644 9.93619 2.74642 9.93617 2.7464 9.93615L2.31778 10.356C2.3178 10.356 2.31782 10.356 2.31784 10.3561L2.74646 9.93621ZM5.97955 9.93618C5.97955 9.93618 5.97955 9.93618 5.97955 9.93618L6.40817 10.356C6.40817 10.356 6.40817 10.356 6.40817 10.356L5.97955 9.93618ZM9.50324 7.47025C9.1991 7.15977 8.69924 7.15977 8.39511 7.47025L8.82373 7.89011C8.89259 7.81981 9.00576 7.81981 9.07462 7.89011L9.50324 7.47025ZM9.50324 8.55574C9.79862 8.25419 9.79862 7.77179 9.50324 7.47025L9.07462 7.89011C9.1415 7.95838 9.1415 8.0676 9.07462 8.13588L9.50324 8.55574ZM7.07393 11.0357C7.07394 11.0357 7.07395 11.0357 7.07395 11.0357L6.64533 10.6158C6.64533 10.6158 6.64532 10.6158 6.64532 10.6158L7.07393 11.0357ZM1.65203 11.0357C1.65203 11.0357 1.65204 11.0357 1.65205 11.0357L2.08067 10.6159C2.08066 10.6158 2.08065 10.6158 2.08064 10.6158L1.65203 11.0357ZM0.819807 10.1861C0.819819 10.1861 0.81983 10.1862 0.819841 10.1862L1.24846 9.7663C1.24845 9.76629 1.24844 9.76628 1.24843 9.76628L0.819807 10.1861ZM0.819827 4.66884C0.819824 4.66884 0.819822 4.66885 0.819819 4.66885L1.24844 5.08871C1.24844 5.08871 1.24845 5.08871 1.24845 5.0887L0.819827 4.66884ZM4.56476 0.845784C4.56476 0.845786 4.56476 0.845788 4.56475 0.84579L4.99338 1.26565C4.99338 1.26565 4.99338 1.26565 4.99338 1.26564L4.56476 0.845784ZM9.98667 0.845789C9.98667 0.845788 9.98666 0.845787 9.98666 0.845785L9.55804 1.26565C9.55804 1.26565 9.55804 1.26565 9.55805 1.26565L9.98667 0.845789ZM10.8189 1.6954C10.8189 1.69538 10.8189 1.69536 10.8189 1.69535L10.3902 2.11521C10.3902 2.11522 10.3903 2.11523 10.3903 2.11524L10.8189 1.6954ZM11.1146 3.06246C11.3462 2.82606 11.411 2.44051 11.1966 2.14344L10.7101 2.49464C10.7332 2.52669 10.7385 2.58902 10.686 2.64258L11.1146 3.06246ZM9.86916 2.95685C10.1487 3.30046 10.7367 3.44829 11.1146 3.06246L10.686 2.64258C10.652 2.67732 10.6006 2.69693 10.531 2.68804C10.4586 2.67877 10.3842 2.63918 10.3346 2.57823L9.86916 2.95685ZM9.3209 1.52545C9.32089 1.52544 9.32089 1.52544 9.32089 1.52544L8.89227 1.9453C8.89227 1.9453 8.89227 1.94531 8.89228 1.94531L9.3209 1.52545ZM9.72448 2.79488C9.72448 2.79488 9.72448 2.79488 9.72449 2.79488L10.1531 2.37503C10.1531 2.37503 10.1531 2.37502 10.1531 2.37502L9.72448 2.79488Z" transform="translate(28.9286 22.8312) rotate(-180)" fill="white" mask="url(#path-4-outside-2)"/>'
|
200 |
+
),
|
201 |
array(
|
202 |
'example' => '+1507854875',
|
203 |
'placeholder' => __('Phone number', CHT_OPT),
|
204 |
'help_title' => 'How do I use this?',
|
205 |
'help' => 'Enter your country code (in our example +1) and then your number without a leading zero (in our example 507854875)',
|
206 |
'slug' => 'Phone',
|
207 |
+
'attr' => 'phone-number',
|
208 |
'title' => 'Phone',
|
209 |
'color' => '#03E78B',
|
|
|
210 |
'svg' => '<circle class="color-element" cx="19.4395" cy="19.4395" r="19.4395" fill="#03E78B"/>
|
211 |
<path d="M19.3929 14.9176C17.752 14.7684 16.2602 14.3209 14.7684 13.7242C14.0226 13.4259 13.1275 13.7242 12.8292 14.4701L11.7849 16.2602C8.65222 14.6193 6.11623 11.9341 4.47529 8.95057L6.41458 7.90634C7.16046 7.60799 7.45881 6.71293 7.16046 5.96705C6.56375 4.47529 6.11623 2.83435 5.96705 1.34259C5.96705 0.596704 5.22117 0 4.47529 0H0.745882C0.298353 0 5.69062e-07 0.298352 5.69062e-07 0.745881C5.69062e-07 3.72941 0.596704 6.71293 1.93929 9.3981C3.87858 13.575 7.30964 16.8569 11.3374 18.7962C14.0226 20.1388 17.0061 20.7355 19.9896 20.7355C20.4371 20.7355 20.7355 20.4371 20.7355 19.9896V16.4094C20.7355 15.5143 20.1388 14.9176 19.3929 14.9176Z" transform="translate(9.07179 9.07178)" fill="white"/>'
|
212 |
),
|
254 |
'example' => '+1507854875',
|
255 |
'placeholder' => __('Phone number', CHT_OPT),
|
256 |
'slug' => 'Viber',
|
257 |
+
'attr' => 'phone-number',
|
258 |
'title' => 'Viber',
|
259 |
'color' => '#665CAC',
|
|
|
260 |
'help' => 'Try to remove the "+" and your country code',
|
261 |
'svg' => '<circle class="color-element" cx="19.4395" cy="19.4395" r="19.4395" fill="#665CAC"/>
|
262 |
<path d="M17.6837 2.14833C17.16 1.64578 15.0497 0.0389578 10.3496 0.0158143C10.3496 0.0158143 4.80418 -0.334645 2.10085 2.26405C0.596193 3.84111 0.0662511 6.14886 0.0126261 9.01205C-0.0441534 11.8752 -0.116705 17.2346 4.8168 18.6894H4.81995L4.8168 20.9078C4.8168 20.9078 4.78525 21.8071 5.3499 21.989C6.03125 22.2105 6.43186 21.5294 7.08482 20.7921C7.44127 20.3888 7.93651 19.7936 8.30874 19.3407C11.6808 19.6382 14.2769 18.9572 14.5702 18.858C15.2516 18.6265 19.1063 18.1075 19.7309 12.7481C20.3775 7.22338 19.4154 3.7254 17.6837 2.14833ZM18.2546 12.3513C17.7247 16.828 14.5986 17.1123 14.0245 17.3041C13.7785 17.3867 11.501 17.9818 8.63679 17.7835C8.63679 17.7835 6.50126 20.4813 5.83567 21.1856C5.73158 21.2947 5.60856 21.341 5.52654 21.3178C5.41298 21.2881 5.38144 21.1459 5.38144 20.9376C5.38459 20.64 5.40037 17.2512 5.40037 17.2512C5.39721 17.2512 5.39721 17.2512 5.40037 17.2512C1.23023 16.0378 1.47312 11.4719 1.52044 9.08148C1.56775 6.69108 1.99675 4.73379 3.26798 3.41792C5.55493 1.24904 10.2645 1.57305 10.2645 1.57305C14.2422 1.59288 16.1475 2.84594 16.5891 3.26583C18.0527 4.58501 18.8003 7.73585 18.2546 12.3513Z" transform="translate(9.47299 8.4238)" fill="white"/> <path d="M1.58982 1.72254C1.53935 0.628182 1.00941 0.0562059 0 1.00898e-07" transform="translate(20.166 15.5914)" stroke="white" stroke-width="0.518873" stroke-linecap="round" stroke-linejoin="round"/> <path d="M3.35945 3.69636C3.38153 2.67804 3.09448 1.82834 2.49514 1.14395C1.8958 0.459565 1.06619 0.0793496 1.9253e-07 2.01796e-07" transform="translate(19.7592 14.0966)" stroke="white" stroke-width="0.518873" stroke-linecap="round" stroke-linejoin="round"/> <path d="M5.22371 5.71646C5.21109 3.94763 4.70639 2.55902 3.71275 1.5407C2.71911 0.525689 1.47942 0.00991877 -3.8506e-07 1.00898e-07" transform="translate(19.2931 12.6479)" stroke="white" stroke-width="0.518873" stroke-linecap="round" stroke-linejoin="round"/> <path d="M6.35738 8.04532C6.35738 8.04532 6.73276 8.07838 6.93149 7.81719L7.32263 7.30142C7.5119 7.04353 7.96929 6.88153 8.41722 7.14272C8.66641 7.2915 9.11434 7.57914 9.39193 7.79405C9.68844 8.02218 10.2972 8.55448 10.2972 8.55448C10.5875 8.80906 10.6537 9.18597 10.4581 9.58271C10.4581 9.58602 10.455 9.58933 10.455 9.58933C10.2531 9.96293 9.9818 10.3167 9.63797 10.644C9.63482 10.6473 9.63482 10.6473 9.63167 10.6506C9.35092 10.8953 9.07333 11.0375 8.80205 11.0705C8.77051 11.0771 8.7295 11.0804 8.68219 11.0771C8.56232 11.0771 8.44561 11.0606 8.32889 11.0209L8.31943 11.0077C7.89989 10.8854 7.20277 10.5746 6.03879 9.90342C5.28173 9.467 4.654 9.02066 4.12406 8.57762C3.84331 8.34619 3.55626 8.08169 3.2629 7.77752C3.25344 7.7676 3.24398 7.75768 3.23451 7.74776C3.22505 7.73784 3.21559 7.72792 3.20612 7.718C3.19666 7.70808 3.1872 7.69817 3.17773 7.68825C3.16827 7.67833 3.15881 7.66841 3.14934 7.65849C2.85914 7.35101 2.60678 7.05015 2.38597 6.75589C1.96328 6.20045 1.53744 5.5392 1.12105 4.74902C0.480708 3.52902 0.184194 2.79834 0.0674803 2.35862L0.0548623 2.3487C0.0170094 2.22637 -0.00191702 2.10404 0.0012374 1.9784C-0.00191702 1.92881 0.0012373 1.88583 0.00754613 1.85276C0.0390903 1.56843 0.17473 1.27748 0.408157 0.983227C0.411312 0.979921 0.411311 0.979921 0.414466 0.976615C0.726753 0.616237 1.06112 0.331902 1.42072 0.120304C1.42388 0.120304 1.42703 0.116997 1.42703 0.116997C1.80556 -0.0879887 2.16517 -0.0185578 2.40806 0.285615C2.41121 0.288921 2.91592 0.923716 3.13357 1.2345C3.33861 1.52875 3.6162 1.99493 3.75499 2.25612C4.00419 2.72561 3.84962 3.20501 3.60358 3.40338L3.11149 3.81335C2.86229 4.02495 2.89384 4.41509 2.89384 4.41509C2.89384 4.41509 3.62566 7.31464 6.35738 8.04532Z" transform="translate(13.863 13.0014)" fill="white"/>'
|
294 |
array(
|
295 |
'example' => 'https://www.example.com/contact',
|
296 |
'placeholder' => __('Link', CHT_OPT),
|
297 |
+
'slug' => 'Custom_Link_3',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
'title' => 'Custom Link',
|
299 |
'color' => '#8141FC',
|
300 |
'help' => "You can use this channel to add any custom channel you want. You can link to a specific form on your site or any social network. You can customize the color, upload a custom image, and change the on-hover text in the Pro plans",
|
316 |
array(
|
317 |
'example' => 'https://www.example.com/contact',
|
318 |
'placeholder' => __('Link', CHT_OPT),
|
319 |
+
'slug' => 'Link',
|
320 |
'title' => 'Custom Link',
|
321 |
'color' => '#FF7539',
|
322 |
'help' => "You can use this channel to add any custom channel you want. You can link to a specific form on your site or any social network. You can customize the color, upload a custom image, and change the on-hover text in the Pro plans",
|
334 |
</mask>
|
335 |
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.10658 1.73537C9.10658 1.73537 9.10658 1.73538 9.10659 1.73538L9.93879 2.58495C9.9388 2.58495 9.9388 2.58495 9.9388 2.58496C9.99645 2.64381 10.0508 2.70475 10.1019 2.76754C10.3002 3.0113 10.6804 3.07698 10.9003 2.85252C11.0424 2.70754 11.0721 2.4836 10.9533 2.31904C10.849 2.17452 10.7327 2.03614 10.6046 1.90532C10.6046 1.9053 10.6046 1.90529 10.6045 1.90528L9.77236 1.05572C9.77236 1.05572 9.77235 1.05572 9.77235 1.05572C8.39351 -0.351905 6.15792 -0.351905 4.77907 1.05571C4.77907 1.05572 4.77907 1.05572 4.77906 1.05572L1.03414 4.87877C1.03413 4.87878 1.03413 4.87878 1.03413 4.87878C-0.344706 6.2864 -0.34471 8.56858 1.03412 9.9762C1.03413 9.97621 1.03414 9.97622 1.03415 9.97623L1.86633 10.8258C1.86634 10.8258 1.86635 10.8258 1.86636 10.8258C3.24521 12.2334 5.48072 12.2334 6.85962 10.8258C6.85963 10.8258 6.85964 10.8258 6.85964 10.8258L9.28893 8.34581C9.47006 8.1609 9.47006 7.86509 9.28893 7.68018C9.10243 7.48979 8.79591 7.48979 8.60942 7.68018L6.19386 10.1461C6.19386 10.1461 6.19386 10.1461 6.19386 10.1461C5.1827 11.1784 3.54326 11.1784 2.53215 10.1461C2.53213 10.1461 2.53211 10.1461 2.53209 10.1461L1.69991 9.29657C1.69991 9.29657 1.6999 9.29656 1.6999 9.29655C0.688737 8.2643 0.688739 6.59069 1.6999 5.55844C1.6999 5.55843 1.69991 5.55843 1.69991 5.55843L5.44484 1.73538C5.44484 1.73538 5.44484 1.73537 5.44484 1.73537C6.45601 0.703119 8.09541 0.703118 9.10658 1.73537Z" transform="translate(28.9286 22.8312) rotate(-180)" fill="white"/>
|
336 |
<path d="M5.44484 1.73538L5.23053 1.52545L5.44484 1.73538ZM5.44484 1.73537L5.23053 1.52544L5.44484 1.73537ZM1.6999 5.55844L1.48559 5.3485L1.6999 5.55844ZM1.69991 5.55843L1.91422 5.76836L1.69991 5.55843ZM1.69991 9.29657L1.91422 9.08664L1.69991 9.29657ZM1.6999 9.29655L1.91421 9.08662L1.6999 9.29655ZM2.53215 10.1461L2.31784 10.3561L2.53215 10.1461ZM2.53209 10.1461L2.31778 10.356L2.53209 10.1461ZM6.19386 10.1461L5.97955 9.93618L6.19386 10.1461ZM6.19386 10.1461L6.40817 10.356L6.19386 10.1461ZM8.60942 7.68018L8.82373 7.89011L8.60942 7.68018ZM9.28893 8.34581L9.07462 8.13588L9.28893 8.34581ZM6.85962 10.8258L6.64532 10.6158L6.85962 10.8258ZM6.85964 10.8258L7.07395 11.0357L6.85964 10.8258ZM1.86633 10.8258L2.08064 10.6158L1.86633 10.8258ZM1.86636 10.8258L2.08067 10.6159L1.86636 10.8258ZM1.03412 9.9762L1.24843 9.76628L1.03412 9.9762ZM1.03415 9.97623L0.819841 10.1862L1.03415 9.97623ZM1.03414 4.87877L0.819827 4.66884L1.03414 4.87877ZM1.03413 4.87878L1.24844 5.08871L1.03413 4.87878ZM4.77907 1.05571L4.99338 1.26564L4.77907 1.05571ZM4.77906 1.05572L4.99338 1.26565L4.77906 1.05572ZM9.77236 1.05572L9.55805 1.26565L9.77236 1.05572ZM9.77235 1.05572L9.98666 0.845785L9.77235 1.05572ZM10.6046 1.90532L10.8189 1.6954L10.6046 1.90532ZM10.6045 1.90528L10.8189 1.69535L10.6045 1.90528ZM10.9533 2.31904L10.7101 2.49464L10.9533 2.31904ZM10.1019 2.76754L9.86916 2.95685L10.1019 2.76754ZM9.10659 1.73538L9.3209 1.52545L9.10659 1.73538ZM9.10658 1.73537L8.89227 1.9453L9.10658 1.73537ZM9.93879 2.58495L10.1531 2.37502L9.93879 2.58495ZM9.9388 2.58496L10.1531 2.37503L9.9388 2.58496ZM10.1531 2.37502L9.3209 1.52545L8.89228 1.94531L9.72448 2.79488L10.1531 2.37502ZM10.3346 2.57823C10.2777 2.50832 10.2172 2.4405 10.1531 2.37503L9.72449 2.79488C9.77566 2.84713 9.82388 2.90119 9.86916 2.95685L10.3346 2.57823ZM11.1966 2.14344C11.0835 1.98684 10.9576 1.83698 10.8189 1.6954L10.3903 2.11524C10.5079 2.2353 10.6145 2.3622 10.7101 2.49464L11.1966 2.14344ZM10.8189 1.69535L9.98667 0.845789L9.55805 1.26565L10.3902 2.11521L10.8189 1.69535ZM9.98666 0.845785C8.49018 -0.681928 6.06124 -0.681928 4.56476 0.845784L4.99338 1.26564C6.25459 -0.0218819 8.29683 -0.0218814 9.55804 1.26565L9.98666 0.845785ZM4.56475 0.84579L0.819827 4.66884L1.24845 5.0887L4.99338 1.26565L4.56475 0.84579ZM0.819819 4.66885C-0.673269 6.1931 -0.673273 8.66187 0.819807 10.1861L1.24843 9.76628C-0.0161474 8.47529 -0.016144 6.37969 1.24844 5.08871L0.819819 4.66885ZM0.819841 10.1862L1.65203 11.0357L2.08064 10.6158L1.24846 9.7663L0.819841 10.1862ZM1.65205 11.0357C3.14854 12.5634 5.57739 12.5634 7.07393 11.0357L6.64532 10.6158C5.38405 11.9034 3.34188 11.9034 2.08067 10.6159L1.65205 11.0357ZM7.07395 11.0357L9.50324 8.55574L9.07462 8.13588L6.64533 10.6158L7.07395 11.0357ZM6.40817 10.356L8.82373 7.89011L8.39511 7.47025L5.97955 9.93618L6.40817 10.356ZM2.31784 10.3561C3.44659 11.5084 5.27938 11.5084 6.40817 10.356L5.97955 9.93618C5.08603 10.8483 3.63993 10.8483 2.74646 9.93621L2.31784 10.3561ZM1.48561 9.50651L2.31778 10.356L2.7464 9.93615L1.91422 9.08664L1.48561 9.50651ZM1.48559 5.3485C0.360176 6.49739 0.360173 8.35759 1.48559 9.50648L1.91421 9.08662C1.0173 8.171 1.0173 6.68399 1.91421 5.76837L1.48559 5.3485ZM5.23053 1.52545L1.4856 5.3485L1.91422 5.76836L5.65915 1.94531L5.23053 1.52545ZM9.32089 1.52544C8.19208 0.373095 6.35934 0.373096 5.23053 1.52544L5.65915 1.9453C6.55268 1.03314 7.99874 1.03314 8.89227 1.9453L9.32089 1.52544ZM5.65915 1.94531C5.65915 1.94531 5.65915 1.94531 5.65915 1.9453L5.23053 1.52544C5.23053 1.52544 5.23053 1.52544 5.23053 1.52545L5.65915 1.94531ZM1.91421 5.76837C1.91421 5.76837 1.91422 5.76836 1.91422 5.76836L1.4856 5.3485C1.4856 5.3485 1.48559 5.3485 1.48559 5.3485L1.91421 5.76837ZM1.91422 9.08664C1.91422 9.08663 1.91421 9.08663 1.91421 9.08662L1.48559 9.50648C1.48559 9.50649 1.4856 9.5065 1.48561 9.50651L1.91422 9.08664ZM2.74646 9.93621C2.74644 9.93619 2.74642 9.93617 2.7464 9.93615L2.31778 10.356C2.3178 10.356 2.31782 10.356 2.31784 10.3561L2.74646 9.93621ZM5.97955 9.93618C5.97955 9.93618 5.97955 9.93618 5.97955 9.93618L6.40817 10.356C6.40817 10.356 6.40817 10.356 6.40817 10.356L5.97955 9.93618ZM9.50324 7.47025C9.1991 7.15977 8.69924 7.15977 8.39511 7.47025L8.82373 7.89011C8.89259 7.81981 9.00576 7.81981 9.07462 7.89011L9.50324 7.47025ZM9.50324 8.55574C9.79862 8.25419 9.79862 7.77179 9.50324 7.47025L9.07462 7.89011C9.1415 7.95838 9.1415 8.0676 9.07462 8.13588L9.50324 8.55574ZM7.07393 11.0357C7.07394 11.0357 7.07395 11.0357 7.07395 11.0357L6.64533 10.6158C6.64533 10.6158 6.64532 10.6158 6.64532 10.6158L7.07393 11.0357ZM1.65203 11.0357C1.65203 11.0357 1.65204 11.0357 1.65205 11.0357L2.08067 10.6159C2.08066 10.6158 2.08065 10.6158 2.08064 10.6158L1.65203 11.0357ZM0.819807 10.1861C0.819819 10.1861 0.81983 10.1862 0.819841 10.1862L1.24846 9.7663C1.24845 9.76629 1.24844 9.76628 1.24843 9.76628L0.819807 10.1861ZM0.819827 4.66884C0.819824 4.66884 0.819822 4.66885 0.819819 4.66885L1.24844 5.08871C1.24844 5.08871 1.24845 5.08871 1.24845 5.0887L0.819827 4.66884ZM4.56476 0.845784C4.56476 0.845786 4.56476 0.845788 4.56475 0.84579L4.99338 1.26565C4.99338 1.26565 4.99338 1.26565 4.99338 1.26564L4.56476 0.845784ZM9.98667 0.845789C9.98667 0.845788 9.98666 0.845787 9.98666 0.845785L9.55804 1.26565C9.55804 1.26565 9.55804 1.26565 9.55805 1.26565L9.98667 0.845789ZM10.8189 1.6954C10.8189 1.69538 10.8189 1.69536 10.8189 1.69535L10.3902 2.11521C10.3902 2.11522 10.3903 2.11523 10.3903 2.11524L10.8189 1.6954ZM11.1146 3.06246C11.3462 2.82606 11.411 2.44051 11.1966 2.14344L10.7101 2.49464C10.7332 2.52669 10.7385 2.58902 10.686 2.64258L11.1146 3.06246ZM9.86916 2.95685C10.1487 3.30046 10.7367 3.44829 11.1146 3.06246L10.686 2.64258C10.652 2.67732 10.6006 2.69693 10.531 2.68804C10.4586 2.67877 10.3842 2.63918 10.3346 2.57823L9.86916 2.95685ZM9.3209 1.52545C9.32089 1.52544 9.32089 1.52544 9.32089 1.52544L8.89227 1.9453C8.89227 1.9453 8.89227 1.94531 8.89228 1.94531L9.3209 1.52545ZM9.72448 2.79488C9.72448 2.79488 9.72448 2.79488 9.72449 2.79488L10.1531 2.37503C10.1531 2.37503 10.1531 2.37502 10.1531 2.37502L9.72448 2.79488Z" transform="translate(28.9286 22.8312) rotate(-180)" fill="white" mask="url(#path-4-outside-2)"/>'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
)
|
338 |
);
|
339 |
}
|
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.
|
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.
|
31 |
|
32 |
if (!function_exists('wp_doing_ajax')) {
|
33 |
function wp_doing_ajax()
|
@@ -117,7 +117,6 @@ if(!function_exists("cht_clear_all_caches")) {
|
|
117 |
}
|
118 |
|
119 |
if(is_admin()) {
|
120 |
-
require_once CHT_ADMIN_INC . '/chaty-timezone.php';
|
121 |
require_once CHT_INC . '/class-review-box.php';
|
122 |
}
|
123 |
|
@@ -174,25 +173,4 @@ function cht_activation_redirect($plugin)
|
|
174 |
exit;
|
175 |
}
|
176 |
}
|
177 |
-
|
178 |
-
function chaty_plugin_check_db_table() {
|
179 |
-
global $wpdb;
|
180 |
-
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
|
181 |
-
$charset_collate = $wpdb->get_charset_collate();
|
182 |
-
$chaty_table = $wpdb->prefix . 'chaty_contact_form_leads';
|
183 |
-
if ($wpdb->get_var("show tables like '{$chaty_table}'") != $chaty_table) {
|
184 |
-
$chaty_table_settings = "CREATE TABLE {$chaty_table} (
|
185 |
-
id bigint(11) NOT NULL AUTO_INCREMENT,
|
186 |
-
widget_id int(11) NULL,
|
187 |
-
name varchar(100) NULL,
|
188 |
-
email varchar(100) NOT NULL,
|
189 |
-
message text NOT NULL,
|
190 |
-
ref_page text NOT NULL,
|
191 |
-
ip_address varchar(30) NOT NULL DEFAULT '0',
|
192 |
-
created_on datetime,
|
193 |
-
PRIMARY KEY (id)
|
194 |
-
) $charset_collate;";
|
195 |
-
dbDelta($chaty_table_settings);
|
196 |
-
}
|
197 |
-
}
|
198 |
-
add_action('plugins_loaded', 'chaty_plugin_check_db_table');
|
7 |
Author URI: https://premio.io/downloads/chaty/
|
8 |
Text Domain: chaty
|
9 |
Domain Path: /languages
|
10 |
+
Version: 2.6.3
|
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.6.3");
|
31 |
|
32 |
if (!function_exists('wp_doing_ajax')) {
|
33 |
function wp_doing_ajax()
|
117 |
}
|
118 |
|
119 |
if(is_admin()) {
|
|
|
120 |
require_once CHT_INC . '/class-review-box.php';
|
121 |
}
|
122 |
|
173 |
exit;
|
174 |
}
|
175 |
}
|
176 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/chaty-front.css
CHANGED
@@ -803,309 +803,4 @@ span.cht-pending-message {
|
|
803 |
min-height: 20px;
|
804 |
text-align: center;
|
805 |
line-height: 20px;
|
806 |
-
}
|
807 |
-
.chaty-widget .sr-only {
|
808 |
-
border: 0 !important;
|
809 |
-
clip: rect(0,0,0,0);
|
810 |
-
height: 1px !important;
|
811 |
-
margin: -1px !important;
|
812 |
-
overflow: hidden;
|
813 |
-
padding: 0 !important;
|
814 |
-
position: absolute;
|
815 |
-
width: 1px !important;
|
816 |
-
}
|
817 |
-
.chaty-whatsapp-header {
|
818 |
-
padding: 5px 0px 1px 10px;
|
819 |
-
text-align: left;
|
820 |
-
background: #4fce5d;
|
821 |
-
}
|
822 |
-
.chaty-contact-header {
|
823 |
-
padding: 5px 5px 5px 10px;
|
824 |
-
text-align: left;
|
825 |
-
background: #ffffff;
|
826 |
-
font-size: 18px;
|
827 |
-
border-bottom: solid 1px #acacac;
|
828 |
-
}
|
829 |
-
.chaty-whatsapp-header svg, .chaty-contact-header svg {
|
830 |
-
width: 24px;
|
831 |
-
height: 24px;
|
832 |
-
color: #000;
|
833 |
-
margin: 0 !important;
|
834 |
-
padding: 0;
|
835 |
-
text-align: center;
|
836 |
-
line-height: 24px;
|
837 |
-
font-weight: bold;
|
838 |
-
cursor: pointer;
|
839 |
-
}
|
840 |
-
.close-chaty-box {
|
841 |
-
float: right;
|
842 |
-
}
|
843 |
-
.chaty-contact-header svg {
|
844 |
-
fill: #000 !important;
|
845 |
-
}
|
846 |
-
.chaty-whatsapp-body {
|
847 |
-
background: #e6ddd4;
|
848 |
-
padding: 20px 20px 20px 10px;
|
849 |
-
position: relative;
|
850 |
-
z-index: 2;
|
851 |
-
min-height: 260px;
|
852 |
-
}
|
853 |
-
.chaty-whatsapp-body:before {
|
854 |
-
display: block;
|
855 |
-
position: absolute;
|
856 |
-
content: "";
|
857 |
-
left: 0px;
|
858 |
-
top: 0px;
|
859 |
-
height: 100%;
|
860 |
-
width: 100%;
|
861 |
-
z-index: 0;
|
862 |
-
opacity: 0.08;
|
863 |
-
background-image: url("../images/whatsapp.png");
|
864 |
-
}
|
865 |
-
.chaty-whatsapp-message {
|
866 |
-
padding: 7px 14px 6px;
|
867 |
-
background-color: rgb(255, 255, 255);
|
868 |
-
border-radius: 0px 8px 8px;
|
869 |
-
position: relative;
|
870 |
-
transform-origin: center top;
|
871 |
-
z-index: 2;
|
872 |
-
box-shadow: rgba(0, 0, 0, 0.13) 0px 1px 0.5px;
|
873 |
-
margin-top: 4px;
|
874 |
-
margin-left: 15px;
|
875 |
-
max-width: calc(100% - 40px);
|
876 |
-
font-size: 14px;
|
877 |
-
font-family: Segoe UI,Helvetica Neue,Helvetica,Lucida Grande,Arial,Ubuntu,Cantarell,Fira Sans,sans-serif;
|
878 |
-
}
|
879 |
-
.chaty-whatsapp-message:before {
|
880 |
-
position: absolute;
|
881 |
-
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");
|
882 |
-
background-position: 50% 50%;
|
883 |
-
background-repeat: no-repeat;
|
884 |
-
background-size: contain;
|
885 |
-
content: "";
|
886 |
-
top: 0px;
|
887 |
-
left: -12px;
|
888 |
-
width: 12px;
|
889 |
-
height: 19px;
|
890 |
-
}
|
891 |
-
.chaty-whatsapp-footer {
|
892 |
-
position: relative;
|
893 |
-
padding: 12px 15px;
|
894 |
-
background: #F0F0F0;
|
895 |
-
}
|
896 |
-
.chaty-whatsapp-footer input.chaty-whatsapp-msg {
|
897 |
-
height: 48px !important;
|
898 |
-
line-height: 32px;
|
899 |
-
padding: 0 10px 0 15px;
|
900 |
-
font-size: 14px;
|
901 |
-
resize: none;
|
902 |
-
width: 100%;
|
903 |
-
border: none;
|
904 |
-
border-radius: 24px;
|
905 |
-
outline: none;
|
906 |
-
font-family: Segoe UI,Helvetica Neue,Helvetica,Lucida Grande,Arial,Ubuntu,Cantarell,Fira Sans,sans-serif;
|
907 |
-
}
|
908 |
-
.chaty-whatsapp-footer input.chaty-whatsapp-msg:focus {
|
909 |
-
outline: none;
|
910 |
-
box-shadow: none;
|
911 |
-
}
|
912 |
-
.chaty-whatsapp-footer .chaty-whatsapp-field {
|
913 |
-
width: calc(100% - 60px);
|
914 |
-
float: left;
|
915 |
-
}
|
916 |
-
.chaty-whatsapp-footer button.chaty-whatsapp-submit-btn {
|
917 |
-
line-height: 48px;
|
918 |
-
text-align: center;
|
919 |
-
float: right;
|
920 |
-
height: 48px;
|
921 |
-
width: 48px;
|
922 |
-
padding: 8px 10px 8px 15px;
|
923 |
-
background: #25D366;
|
924 |
-
border-radius: 24px;
|
925 |
-
outline: none;
|
926 |
-
box-shadow: none;
|
927 |
-
border: none;
|
928 |
-
}
|
929 |
-
.chaty-whatsapp-footer button.chaty-whatsapp-submit-btn:hover, .chaty-whatsapp-footer button.chaty-whatsapp-submit-btn:focus {
|
930 |
-
background: #22bf5b;
|
931 |
-
}
|
932 |
-
.chaty-whatsapp-footer button.chaty-whatsapp-submit-btn svg {
|
933 |
-
width: 100%;
|
934 |
-
height: 100%;
|
935 |
-
display: block;
|
936 |
-
}
|
937 |
-
.chaty-contact-body {
|
938 |
-
padding: 10px 10px 0;
|
939 |
-
}
|
940 |
-
.chaty-inline-popup {
|
941 |
-
vertical-align: bottom;
|
942 |
-
background: #fff;
|
943 |
-
-webkit-box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 1);
|
944 |
-
-moz-box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 1);
|
945 |
-
box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 1);
|
946 |
-
-webkit-border-radius: 6px;
|
947 |
-
-moz-border-radius: 6px;
|
948 |
-
border-radius: 6px;
|
949 |
-
max-width: 250px;
|
950 |
-
height: auto;
|
951 |
-
overflow: hidden;
|
952 |
-
position: fixed;
|
953 |
-
bottom: 30px;
|
954 |
-
left: 100px;
|
955 |
-
padding: 0px;
|
956 |
-
z-index: 100001;
|
957 |
-
max-width: inherit;
|
958 |
-
width: 280px;
|
959 |
-
transition: all 0.5s linear;
|
960 |
-
-webkit-transition: all 0.5s linear;
|
961 |
-
-moz-transition: all 0.5s linear;
|
962 |
-
}
|
963 |
-
.chaty-inline-popup {
|
964 |
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
965 |
-
-webkit-box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
966 |
-
-moz-box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
967 |
-
}
|
968 |
-
.chaty-inline-popup:not(.active) {
|
969 |
-
bottom: -100% !important;
|
970 |
-
}
|
971 |
-
.chaty-input-area {
|
972 |
-
width: 100%;
|
973 |
-
margin-bottom: 10px;
|
974 |
-
line-height: 36px;
|
975 |
-
}
|
976 |
-
.chaty-input-area input[type='text'], .chaty-input-area input[type='email'], .chaty-input-area textarea {
|
977 |
-
width: 100%;
|
978 |
-
height: 30px;
|
979 |
-
line-height: 36px;
|
980 |
-
font-size: 14px;
|
981 |
-
padding: 0 0 0 10px;
|
982 |
-
border: solid 1px #ccc;
|
983 |
-
border-radius: 4px;
|
984 |
-
}
|
985 |
-
.chaty-whatsapp-popup, .chaty-whatsapp-popup input {
|
986 |
-
position: relative;
|
987 |
-
}
|
988 |
-
.chaty-input-area input[type='text'].has-chaty-error, .chaty-input-area input[type='email'].has-chaty-error, .chaty-input-area textarea.has-chaty-error {
|
989 |
-
border: solid 1px #d20000;
|
990 |
-
}
|
991 |
-
.chaty-input-area textarea {
|
992 |
-
height: 100px;
|
993 |
-
}
|
994 |
-
.chaty-contact-body form .chaty-input-area:last-child {
|
995 |
-
padding: 0;
|
996 |
-
margin: 0;
|
997 |
-
}
|
998 |
-
.chaty-contact-footer {
|
999 |
-
padding: 0 10px 10px;
|
1000 |
-
}
|
1001 |
-
.chaty-contact-footer button.chaty-contact-submit-btn {
|
1002 |
-
width: 100%;
|
1003 |
-
padding: 5px;
|
1004 |
-
font-weight: normal;
|
1005 |
-
border-radius: 5px;
|
1006 |
-
border: none;
|
1007 |
-
cursor: pointer;
|
1008 |
-
outline: none;
|
1009 |
-
text-decoration: none;
|
1010 |
-
}
|
1011 |
-
.close-chaty-popup {
|
1012 |
-
position: absolute;
|
1013 |
-
right: 5px;
|
1014 |
-
top: 5px;
|
1015 |
-
background: #30534b;
|
1016 |
-
width: 22px;
|
1017 |
-
height: 22px;
|
1018 |
-
border-radius: 15px;
|
1019 |
-
padding: 3px;
|
1020 |
-
cursor: pointer;
|
1021 |
-
transition: all 0.4s;
|
1022 |
-
-webkit-transition: all 0.4s;
|
1023 |
-
-moz-transition: all 0.4s;
|
1024 |
-
}
|
1025 |
-
.close-chaty-popup:hover {
|
1026 |
-
transform: rotate(180deg);
|
1027 |
-
-webkit-transform: rotate(180deg);
|
1028 |
-
-moz-transform: rotate(180deg);
|
1029 |
-
}
|
1030 |
-
.chaty-close-button {
|
1031 |
-
position: relative;
|
1032 |
-
width: 16px;
|
1033 |
-
height: 16px;
|
1034 |
-
transition: all 0.4s;
|
1035 |
-
cursor: pointer;
|
1036 |
-
}
|
1037 |
-
.chaty-close-button:before, .chaty-close-button:after {
|
1038 |
-
content: "";
|
1039 |
-
position: absolute;
|
1040 |
-
width: 12px;
|
1041 |
-
height: 2px;
|
1042 |
-
background-color: #ffffff;
|
1043 |
-
display: block;
|
1044 |
-
border-radius: 2px;
|
1045 |
-
transform: rotate(45deg);
|
1046 |
-
top: 7px;
|
1047 |
-
left: 2px;
|
1048 |
-
}
|
1049 |
-
.close-chaty-box .chaty-close-button:before, .close-chaty-box .chaty-close-button:after {
|
1050 |
-
background-color: #333333;
|
1051 |
-
}
|
1052 |
-
.chaty-close-button:after {
|
1053 |
-
transform: rotate(-45deg);
|
1054 |
-
}
|
1055 |
-
.close-chaty-box .chaty-close-button:hover {
|
1056 |
-
transform: rotate(180deg);
|
1057 |
-
}
|
1058 |
-
.chaty-ajax-success-message {
|
1059 |
-
color: #00a700;
|
1060 |
-
padding: 5px 0;
|
1061 |
-
text-align: center;
|
1062 |
-
font-size: 16px;
|
1063 |
-
}
|
1064 |
-
.chaty-ajax-error-message {
|
1065 |
-
color: #da0000;
|
1066 |
-
padding: 5px 0;
|
1067 |
-
text-align: center;
|
1068 |
-
font-size: 16px;
|
1069 |
-
}
|
1070 |
-
span.chaty-error-msg {
|
1071 |
-
color: #da0000;
|
1072 |
-
font-size: 14px;
|
1073 |
-
line-height: 1;
|
1074 |
-
display: block;
|
1075 |
-
}
|
1076 |
-
.chaty-widget.chaty-popup-open .chaty-widget-i:not(.no-tooltip):before {
|
1077 |
-
opacity: 0 !important;
|
1078 |
-
display: none !important;
|
1079 |
-
}
|
1080 |
-
.chaty-widget.chaty-popup-open .chaty-widget-i .chaty-widget-i-title {
|
1081 |
-
opacity: 0 !important;
|
1082 |
-
display: none !important;
|
1083 |
-
}
|
1084 |
-
.chaty-widget.hide-block {
|
1085 |
-
transition: all 0.25s linear;
|
1086 |
-
}
|
1087 |
-
.chaty-widget.hide-block.active {
|
1088 |
-
transform: scale(0);
|
1089 |
-
-webkit-transform: scale(0);
|
1090 |
-
-moz-transform: scale(0);
|
1091 |
-
}
|
1092 |
-
body.right-cht-position .chaty-inline-popup {
|
1093 |
-
left: auto;
|
1094 |
-
right: 25px;
|
1095 |
-
bottom: 25px;
|
1096 |
-
position: fixed;
|
1097 |
-
}
|
1098 |
-
body.left-cht-position .chaty-inline-popup {
|
1099 |
-
left: 25px;
|
1100 |
-
right: auto;
|
1101 |
-
bottom: 25px;
|
1102 |
-
position: fixed;
|
1103 |
-
}
|
1104 |
-
.chaty-widget.hide-block {
|
1105 |
-
transition: all .25s linear;
|
1106 |
-
}
|
1107 |
-
.chaty-widget.hide-block.active {
|
1108 |
-
transform: scale(0);
|
1109 |
-
-webkit-transform: scale(0);
|
1110 |
-
-moz-transform: scale(0);
|
1111 |
}
|
803 |
min-height: 20px;
|
804 |
text-align: center;
|
805 |
line-height: 20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
806 |
}
|
css/chaty-front.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
body.hide-cht-widget .chaty-widget.one_widget .chaty-widget-i:not(.no-tooltip):before{display:none}.facebook .chaty-widget-i-title{padding:0!important}.widget-img img{max-height:100%;max-width:100%;height:auto;margin:0 auto}.widget-img{text-align:center}.widget-img img{object-fit:cover}.chaty-widget .chaty-widget-i.facebook.active.before .chaty-widget-i-title.fb-title{display:none!important}.wechat-box img{object-fit:cover;max-width:220px;height:auto;width:100%}.wechat-box-head svg{cursor:pointer;width:30px;height:30px}.wechat-box-head SVG{cursor:pointer;width:30PX;height:30px;fill:#fff;font-weight:700}.wechat-box-head{width:100%;display:inline-block;vertical-align:bottom;color:#fff;padding:0 0 0 10px;line-height:34px;background:#34a700;height:34px}.wechat-box{display:inline-block;vertical-align:bottom;position:relative;padding:10px}.wechat-qr-code{display:inline-block;vertical-align:bottom;background:#fff;border-radius:5px;-webkit-box-shadow:0 0 5px 0 #ccc;-moz-box-shadow:0 0 5px 0 #ccc;box-shadow:0 0 5px 0 #ccc;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;max-width:250px;height:auto;overflow:hidden;position:fixed;bottom:30px;left:100px;padding:0;z-index:100001}.chaty-social-img{display:block;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.chaty-social-img img{object-fit:cover;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.widget-img{display:flex;align-items:center;height:100%;overflow:hidden;border-radius:100%}.get{opacity:1}.chaty-widget-show .get{opacity:1}.get a{color:#222!important;text-decoration:none!important}body .one_widget .bofore_del:before{opacity:0!important;display:none}.one_widget.chaty-widget:not(.chaty-widget-is-right) .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{font-size:17px;left:-3px;top:50%;white-space:nowrap;padding:5px 15px;line-height:21px;color:#333;background-color:#fff;box-shadow:0 1.93465px 7.73859px rgba(0,0,0,.15);border-radius:10px}.chaty-widget.one_widget .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title,.chaty-widget.one_widget .chaty-widget-i:not(.no-tooltip):before{opacity:1!important}.snap-wee-title{z-index:20;opacity:0;padding:10px 10px 9px 12px!important;font-size:17px;transform:translate(calc(-100% - 14px),-50%);left:-3px;top:50%;white-space:nowrap;line-height:21px;color:#333;background-color:#fff;box-shadow:0 1.93465px 7.73859px rgba(0,0,0,.15);border-radius:10px;position:absolute}@media (min-width:1024px){.chaty-widget-i:hover .snap-wee-title{opacity:1}}.chaty-widget-i.hover .snap-wee-title{opacity:1}.snap-wee-title:before{content:"";right:-9px;position:absolute;top:50%;transform:translateY(-50%);height:0;width:0;z-index:11;border-width:5px 0 5px 10px;border-style:solid;border-color:transparent transparent transparent #fff}.snap-wee-title p{color:#222;text-decoration:none;margin:0;padding:0}.chaty-widget-i .chaty-widget-i-title p{color:#222!important;text-decoration:none!important;margin:0!important;padding:0!important}.chaty-widget-i .i-trigger a{color:#222!important;text-decoration:none!important}*{-webkit-tap-highlight-color:transparent!important}.i-trigger-close svg,.i-trigger-open svg{transition:all .5s}.chaty-widget-show .i-trigger-close svg,.chaty-widget-show .i-trigger-open svg{transform:rotate(180deg)}.none-widget-show .i-trigger-ope{-webkit-animation:fadein 1.5s;-moz-animation:fadein 1.5s;-ms-animation:fadein 1.5s;-o-animation:fadein 1.5s}.chaty-widget-show .i-trigger-cloe{-webkit-animation:fadein 1.5s;-moz-animation:fadein 1.5s;-ms-animation:fadein 1.5s;-o-animation:fadein 1.5s}.chaty-widget .i-trigger-open.chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{transform:translate(calc(-100% - 12px),-50%)}.chaty-widget-is-right.chaty-widget .i-trigger-open.chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{right:0;left:auto;transform:translate(calc(100% + 12px),-50%)}.chaty-widget-is-right.chaty-widget .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{right:0;left:auto;transform:translate(calc(100% + 13px),-50%)}.chaty-widget-is-right.chaty-widget.one_widget .chaty-widget-i:not(.no-tooltip):before{left:auto;right:-18px}.chaty-widget.one_widget .chaty-widget-i:not(.no-tooltip):before{left:-18px}.one_widget .i-trigger-open .chaty-widget-i-title{padding:10px 10px 9px 12px!important}.one_widget .i-trigger-open.hidetooltip .chaty-widget-i-title{display:none}.one_widget .i-trigger-open.hidetooltip .chaty-widget-i:before{display:none}.chaty-widget .chaty-widget-i.before.facebook:not(.no-tooltip):hover:before,.chaty-widget .chaty-widget-i.facebook.before:not(.no-tooltip):hover .chaty-widget-i-title{opacity:1;pointer-events:auto}.chaty-widget .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title,.chaty-widget .chaty-widget-i:not(.no-tooltip).before:before{opacity:1}.one_widget .chaty-widget-i svg{position:relative}body .chaty-widget-i-title.true{opacity:1!important}.chaty-widget .i-trigger-open:not(.no-tooltip):before{opacity:1!important}.chaty-widget .chaty-widget-i.facebook.active:not(.no-tooltip) .chaty-widget-i-title,.chaty-widget .chaty-widget-i.facebook:not(.no-tooltip):hover:before{pointer-events:initial}.chaty-widget .facebook_header{background-color:#1e88e5;height:34px;border-top-left-radius:5px;border-top-right-radius:5px;padding-left:9px;display:flex;align-items:center;justify-content:space-between}body .chaty-widget-i .facebook_header p{font-family:Lato,Helvetica,Arial,sans-serif;font-size:13px;color:#fff!important;position:relative}.facebook_header p,.facebook_header svg{display:inline-block;vertical-align:bottom;margin:0}.chaty-widget .chaty-widget-i .facebook_header svg{height:30px!important;width:30px!important}.chaty-widget{display:none!important}@media screen and (max-width:800px){.i-trigger-close .chaty-widget-i-title{display:none}}@media screen and (max-width:480px){.mobile_none{display:none}.chaty-widget.mobile_active{display:block!important}}@media screen and (min-width:480px){.chaty-widget.desktop_active{display:block!important}}.chaty-widget{position:fixed;z-index:9999}.chaty-widget .chaty-widget-is{display:flex;z-index:1111;flex-wrap:wrap;overflow:hidden;height:0;position:absolute;pointer-events:none;left:0;right:auto;bottom:65px;opacity:0}#transition_disabled{-webkit-animation:none!important;-moz-animation:none!important;-ms-animation:none!important;-o-animation:none!important;-webkit-animation:none!important}@keyframes fadeout{from{opacity:1}to{opacity:0}}@-moz-keyframes fadeout{from{opacity:1}to{opacity:0}}@-webkit-keyframes fadeout{from{opacity:1}to{opacity:0}}@-o-keyframes fadeout{from{opacity:1}to{opacity:0}}.chaty-widget .i-trigger{cursor:pointer;position:relative}.chaty-widget .i-trigger .i-trigger-close,.chaty-widget .i-trigger .i-trigger-open{transition:all .2s}.chaty-widget .i-trigger .i-trigger-close{position:absolute;bottom:-4px;left:0;right:0;z-index:2}.chaty-widget .i-trigger .i-trigger-open{opacity:1;pointer-events:auto}.chaty-widget .i-trigger .i-trigger-close{opacity:0;pointer-events:none}.chaty-widget.chaty-widget-show .i-trigger .i-trigger-open{opacity:0;pointer-events:none}.chaty-widget.chaty-widget-show .i-trigger .i-trigger-close{box-shadow:none;opacity:1;pointer-events:auto}.chaty-widget.chaty-widget-show .chaty-widget-is{pointer-events:auto;overflow:visible;opacity:1;visibility:visible}@keyframes fadein{from{opacity:0}to{opacity:1}}@-moz-keyframes fadein{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}@-ms-keyframes fadein{from{opacity:0}to{opacity:1}}@-o-keyframes fadein{from{opacity:0}to{opacity:1}}.chaty-widget.chaty-widget-show .chaty-widget-is .chaty-widget-i{opacity:1;overflow:visible}.chaty-widget .chaty-widget-i .chaty-widget-i{margin:0}.chaty-widget .chaty-widget-i{border-radius:50%;vertical-align:top;width:54px;height:54px;position:relative;margin:4px}.chaty-widget .chaty-widget-i .wrap-svg,.chaty-widget .chaty-widget-i svg{cursor:pointer;width:100%;height:100%;display:block;position:relative;box-shadow:0 3px 6px rgba(0,0,0,.25);box-shadow:0 3px 6px rgba(0,0,0,.25);border-radius:50%;-wekit-border-radius:50%;-moz-border-radius:50%}body .i-trigger-open .chaty-widget-i-title{padding:5px 16px 5px 17px!important}.chaty-widget:not(.chaty-widget-is-right) .i-trigger-open:before{left:-18px!important}.one_widget.chaty-widget.chaty-widget-is-right .i-trigger-open:before{right:-18px!important}body .one_widget .i-trigger-open .chaty-widget-i-title.face_title{padding:0!important}.one_widget.chaty-widget .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{transform:translate(calc(-100% - 14px),-50%)}.chaty-widget .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title,.chaty-widget .chaty-widget-i:not(.no-tooltip):before{content:none;position:absolute;opacity:0;pointer-events:none;z-index:10}.chaty-widget .chaty-widget-i:not(.no-tooltip):before{content:"";left:-14px;top:50%;transform:translateY(-50%);height:0;width:0;z-index:11;border-width:5px 0 5px 10px;border-style:solid;border-color:transparent transparent transparent #fff}.chaty-widget .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{text-align:center;font-size:17px;left:0;top:50%;transform:translate(calc(-100% - 13px),-50%);white-space:nowrap;padding:5px 15px;line-height:21px;color:#333;background-color:#fff;box-shadow:0 1.93465px 7.73859px rgba(0,0,0,.15);border-radius:10px}.chaty-widget .chaty-widget-i:not(.no-tooltip):hover .chaty-widget-i-title,.chaty-widget .chaty-widget-i:not(.no-tooltip):hover:before{opacity:1;pointer-events:auto}.chaty-widget .chaty-widget-i.facebook:not(.no-tooltip):hover .chaty-widget-i-title,.chaty-widget .chaty-widget-i.facebook:not(.no-tooltip):hover:before{opacity:0;pointer-events:auto}.chaty-widget .chaty-widget-i .color-element{transition:all .2s}.chaty-widget:not(.chaty-widget-is-right) .chaty-widget-is{position:absolute;right:0;left:auto;bottom:65px;justify-content:flex-end}.chaty-widget.chaty-widget-is-right .i-trigger-open.chaty-widget-i:before{right:-13px;left:auto;border-width:5px 10px 5px 0;border-color:transparent #fff transparent transparent}.chaty-widget.chaty-widget-is-right .chaty-widget-i:before{right:-14px;left:auto;border-width:5px 10px 5px 0;border-color:transparent #fff transparent transparent}.chaty-widget.chaty-widget-is-right .chaty-widget-i.facebook.active .chaty-widget-i-title.face_title{position:fixed;transform:initial!important;right:auto;top:calc(100% - 484px)}.chaty-widget .chaty-widget-i.facebook.active .chaty-widget-i-title{min-width:250px;padding:0;position:fixed;transform:initial;right:29px;left:auto;top:calc(100% - 484px)}.one_widget.chaty-widget.chaty-widget-is-right .chaty-widget-i .chaty-widget-i-title{right:0;left:auto;transform:translate(calc(100% + 17px),-50%)!important}.chaty-animation-pulse{animation:chaty-animation-pulse 1s forwards}.chaty-animation-jump{animation:chaty-animation-jump 1s forwards cubic-bezier(.84,-.54,.31,1.19)}.chaty-animation-waggle{animation:chaty-animation-waggle 1s forwards ease-out}.chaty-animation-sheen{position:relative;overflow:hidden}.chaty-animation-sheen:after{animation:chaty-animation-sheen 1.5s forwards;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)}.chaty-animation-spin{animation:chaty-animation-spin 1s forwards cubic-bezier(.56,-.35,.22,1.5)}.chaty-animation-fade{animation:chaty-animation-fade 1s forwards}@keyframes chaty-animation-pulse{0%{background-color:orange}25%{background-color:red}50%{background-color:orange}75%{background-color:red}}@keyframes chaty-animation-jump{0%{transform:none}50%{transform:translateY(-1em)}}@keyframes chaty-animation-waggle{0%{transform:none}50%{transform:rotateZ(-20deg) scale(1.2)}60%{transform:rotateZ(25deg) scale(1.2)}67.5%{transform:rotateZ(-15deg) scale(1.2)}75%{transform:rotateZ(15deg) scale(1.2)}82.5%{transform:rotateZ(-12deg) scale(1.2)}85%{transform:rotateZ(0) scale(1.2)}100%{transform:rotateZ(0) scale(1)}}@keyframes chaty-animation-sheen{100%{transform:rotateZ(60deg) translate(0,-80px)}}@keyframes chaty-animation-spin{50%{transform:rotateZ(-20deg);animation-timing-function:ease}100%{transform:rotateZ(360deg)}}@keyframes chaty-animation-fade{25%{opacity:.25}50%{opacity:1}75%{opacity:.25}100%{opacity:1}}.start-now,.start-now:after{animation-delay:0}.chaty-widget .i-trigger{z-index:1000}.chaty-widget:not(.chaty-widget-is-right) .chaty-widget-is{z-index:1000}.chaty-nav: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-animation-widget.left-position .chaty-nav:before{clip-path:circle(15px at 60px calc(100% - 60px))}.chaty-animation-widget.right-position .chaty-nav:before{clip-path:circle(15px at calc(100% - 60px) calc(100% - 60px))}.chaty-animation-widget.active .chaty-nav:before{visibility:visible;clip-path:circle(100%)}.chaty-widget-is.has-no-close-btn{position:absolute!important;bottom:0!important;top:auto!important}.chaty-widget.hide-tooltip-arrow .chaty-widget-i:before{display:none!important}body .no-tooltip .chaty-widget-i-title.true{display:none}.chaty-widget-i.hide-chaty-arrow:before{display:none}.chaty-widget-show .i-trigger-open.single-button svg{transform:rotate(0)!important;-webkit-transform:rotate(0)!important}.facustom-icon{display:block;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;text-align:center;color:#fff}body.horizontal-cht-menu .chaty-widget-is{display:inline-block;top:0;right:100%!important}body.horizontal-cht-menu .chaty-widget.chaty-widget-is-right .chaty-widget-is{right:auto!important;left:100%!important}body.horizontal-cht-menu .chaty-widget.one_widget .chaty-widget-is{right:0!important;left:0!important}body.horizontal-cht-menu.chaty-in-desktop .chaty-main-widget.is-in-desktop,body.horizontal-cht-menu.chaty-in-mobile .chaty-main-widget.is-in-desktop{display:inline-block!important}.wechat-qr-code.right{right:25px;left:auto}.wechat-qr-code.left{right:auto;left:25px}body.horizontal-cht-menu .chaty-widget .chaty-widget-is .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{right:auto;left:auto;transform:translate(calc(-50% + 26px),-140%);top:0}body.horizontal-cht-menu .chaty-widget .chaty-widget-is .chaty-widget-i:not(.no-tooltip):before{top:-30%;left:0;right:0;margin:0 auto;transform:rotate(-90deg)}body.horizontal-cht-menu.right-cht-position .chaty-widget .chaty-widget-is .chaty-widget-i:not(.no-tooltip):before{transform:rotate(90deg)}body.horizontal-cht-menu .chaty-widget.chaty-widget-show .chaty-widget-i.chaty-close-settings .chaty-widget-i-title{right:auto;left:auto;transform:translate(calc(-50% + 26px),-140%);top:0}body.horizontal-cht-menu .chaty-widget-i.chaty-close-settings.i-trigger-close:before{top:-30%;left:0;right:0;margin:0 auto;transform:rotate(-90deg)}body.horizontal-cht-menu.right-cht-position .chaty-widget-i.chaty-close-settings.i-trigger-close:before{transform:rotate(90deg)}span.cht-pending-message{position:absolute;top:-4px;right:-4px;font-size:11px;font-size:11.5px;border-radius:50%;background:#d00;color:#fff;min-width:20px;min-height:20px;text-align:center;line-height:20px}.chaty-widget .sr-only{border:0!important;clip:rect(0,0,0,0);height:1px!important;margin:-1px!important;overflow:hidden;padding:0!important;position:absolute;width:1px!important}.chaty-whatsapp-header{padding:5px 0 1px 10px;text-align:left;background:#4fce5d}.chaty-contact-header{padding:5px 5px 5px 10px;text-align:left;background:#fff;font-size:18px;border-bottom:solid 1px #acacac}.chaty-contact-header svg,.chaty-whatsapp-header svg{width:24px;height:24px;color:#000;margin:0!important;padding:0;text-align:center;line-height:24px;font-weight:700;cursor:pointer}.close-chaty-box{float:right}.chaty-contact-header svg{fill:#000!important}.chaty-whatsapp-body{background:#e6ddd4;padding:20px 20px 20px 10px;position:relative;z-index:2;min-height:260px}.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-footer{position:relative;padding:12px 15px;background:#f0f0f0}.chaty-whatsapp-footer input.chaty-whatsapp-msg{height:48px!important;line-height:32px;padding:0 10px 0 15px;font-size:14px;resize:none;width:100%;border:none;border-radius:24px;outline:0;font-family:Segoe UI,Helvetica Neue,Helvetica,Lucida Grande,Arial,Ubuntu,Cantarell,Fira Sans,sans-serif}.chaty-whatsapp-footer input.chaty-whatsapp-msg:focus{outline:0;box-shadow:none}.chaty-whatsapp-footer .chaty-whatsapp-field{width:calc(100% - 60px);float:left}.chaty-whatsapp-footer button.chaty-whatsapp-submit-btn{line-height:48px;text-align:center;float:right;height:48px;width:48px;padding:8px 10px 8px 15px;background:#25d366;border-radius:24px;outline:0;box-shadow:none;border:none}.chaty-whatsapp-footer button.chaty-whatsapp-submit-btn:focus,.chaty-whatsapp-footer button.chaty-whatsapp-submit-btn:hover{background:#22bf5b}.chaty-whatsapp-footer button.chaty-whatsapp-submit-btn svg{width:100%;height:100%;display:block}.chaty-contact-body{padding:10px 10px 0}.chaty-inline-popup{vertical-align:bottom;background:#fff;-webkit-box-shadow:0 0 5px 0 #ccc;-moz-box-shadow:0 0 5px 0 #ccc;box-shadow:0 0 5px 0 #ccc;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;max-width:250px;height:auto;overflow:hidden;position:fixed;bottom:30px;left:100px;padding:0;z-index:100001;max-width:inherit;width:280px;transition:all .5s linear;-webkit-transition:all .5s linear;-moz-transition:all .5s linear}.chaty-inline-popup{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}.chaty-inline-popup:not(.active){bottom:-100%!important}.chaty-input-area{width:100%;margin-bottom:10px;line-height:36px}.chaty-input-area input[type=email],.chaty-input-area input[type=text],.chaty-input-area textarea{width:100%;height:30px;line-height:36px;font-size:14px;padding:0 0 0 10px;border:solid 1px #ccc;border-radius:4px}.chaty-whatsapp-popup,.chaty-whatsapp-popup input{position:relative}.chaty-input-area input[type=email].has-chaty-error,.chaty-input-area input[type=text].has-chaty-error,.chaty-input-area textarea.has-chaty-error{border:solid 1px #d20000}.chaty-input-area textarea{height:100px}.chaty-contact-body form .chaty-input-area:last-child{padding:0;margin:0}.chaty-contact-footer{padding:0 10px 10px}.chaty-contact-footer button.chaty-contact-submit-btn{width:100%;padding:5px;font-weight:400;border-radius:5px;border:none;cursor:pointer;outline:0;text-decoration:none}.close-chaty-popup{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-popup: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}.close-chaty-box .chaty-close-button:after,.close-chaty-box .chaty-close-button:before{background-color:#333}.chaty-close-button:after{transform:rotate(-45deg)}.close-chaty-box .chaty-close-button:hover{transform:rotate(180deg)}.chaty-ajax-success-message{color:#00a700;padding:5px 0;text-align:center;font-size:16px}.chaty-ajax-error-message{color:#da0000;padding:5px 0;text-align:center;font-size:16px}span.chaty-error-msg{color:#da0000;font-size:14px;line-height:1;display:block}.chaty-widget.chaty-popup-open .chaty-widget-i:not(.no-tooltip):before{opacity:0!important;display:none!important}.chaty-widget.chaty-popup-open .chaty-widget-i .chaty-widget-i-title{opacity:0!important;display:none!important}.chaty-widget.hide-block{transition:all .25s linear}.chaty-widget.hide-block.active{transform:scale(0);-webkit-transform:scale(0);-moz-transform:scale(0)}body.right-cht-position .chaty-inline-popup{left:auto;right:25px;bottom:25px;position:fixed}body.left-cht-position .chaty-inline-popup{left:25px;right:auto;bottom:25px;position:fixed}.chaty-widget.hide-block{transition:all .25s linear}.chaty-widget.hide-block.active{transform:scale(0);-webkit-transform:scale(0);-moz-transform:scale(0)}
|
1 |
+
body.hide-cht-widget .chaty-widget.one_widget .chaty-widget-i:not(.no-tooltip):before{display:none}.facebook .chaty-widget-i-title{padding:0!important}.widget-img img{max-height:100%;max-width:100%;height:auto;margin:0 auto}.widget-img{text-align:center}.widget-img img{object-fit:cover}.chaty-widget .chaty-widget-i.facebook.active.before .chaty-widget-i-title.fb-title{display:none!important}.wechat-box img{object-fit:cover;max-width:220px;height:auto;width:100%}.wechat-box-head svg{cursor:pointer;width:30px;height:30px}.wechat-box-head SVG{cursor:pointer;width:30PX;height:30px;fill:#fff;font-weight:700}.wechat-box-head{width:100%;display:inline-block;vertical-align:bottom;color:#fff;padding:0 0 0 10px;line-height:34px;background:#34a700;height:34px}.wechat-box{display:inline-block;vertical-align:bottom;position:relative;padding:10px}.wechat-qr-code{display:inline-block;vertical-align:bottom;background:#fff;border-radius:5px;-webkit-box-shadow:0 0 5px 0 #ccc;-moz-box-shadow:0 0 5px 0 #ccc;box-shadow:0 0 5px 0 #ccc;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;max-width:250px;height:auto;overflow:hidden;position:fixed;bottom:30px;left:100px;padding:0;z-index:100001}.chaty-social-img{display:block;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.chaty-social-img img{object-fit:cover;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.widget-img{display:flex;align-items:center;height:100%;overflow:hidden;border-radius:100%}.get{opacity:1}.chaty-widget-show .get{opacity:1}.get a{color:#222!important;text-decoration:none!important}body .one_widget .bofore_del:before{opacity:0!important;display:none}.one_widget.chaty-widget:not(.chaty-widget-is-right) .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{font-size:17px;left:-3px;top:50%;white-space:nowrap;padding:5px 15px;line-height:21px;color:#333;background-color:#fff;box-shadow:0 1.93465px 7.73859px rgba(0,0,0,.15);border-radius:10px}.chaty-widget.one_widget .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title,.chaty-widget.one_widget .chaty-widget-i:not(.no-tooltip):before{opacity:1!important}.snap-wee-title{z-index:20;opacity:0;padding:10px 10px 9px 12px!important;font-size:17px;transform:translate(calc(-100% - 14px),-50%);left:-3px;top:50%;white-space:nowrap;line-height:21px;color:#333;background-color:#fff;box-shadow:0 1.93465px 7.73859px rgba(0,0,0,.15);border-radius:10px;position:absolute}@media (min-width:1024px){.chaty-widget-i:hover .snap-wee-title{opacity:1}}.chaty-widget-i.hover .snap-wee-title{opacity:1}.snap-wee-title:before{content:"";right:-9px;position:absolute;top:50%;transform:translateY(-50%);height:0;width:0;z-index:11;border-width:5px 0 5px 10px;border-style:solid;border-color:transparent transparent transparent #fff}.snap-wee-title p{color:#222;text-decoration:none;margin:0;padding:0}.chaty-widget-i .chaty-widget-i-title p{color:#222!important;text-decoration:none!important;margin:0!important;padding:0!important}.chaty-widget-i .i-trigger a{color:#222!important;text-decoration:none!important}*{-webkit-tap-highlight-color:transparent!important}.i-trigger-close svg,.i-trigger-open svg{transition:all .5s}.chaty-widget-show .i-trigger-close svg,.chaty-widget-show .i-trigger-open svg{transform:rotate(180deg)}.none-widget-show .i-trigger-ope{-webkit-animation:fadein 1.5s;-moz-animation:fadein 1.5s;-ms-animation:fadein 1.5s;-o-animation:fadein 1.5s}.chaty-widget-show .i-trigger-cloe{-webkit-animation:fadein 1.5s;-moz-animation:fadein 1.5s;-ms-animation:fadein 1.5s;-o-animation:fadein 1.5s}.chaty-widget .i-trigger-open.chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{transform:translate(calc(-100% - 12px),-50%)}.chaty-widget-is-right.chaty-widget .i-trigger-open.chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{right:0;left:auto;transform:translate(calc(100% + 12px),-50%)}.chaty-widget-is-right.chaty-widget .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{right:0;left:auto;transform:translate(calc(100% + 13px),-50%)}.chaty-widget-is-right.chaty-widget.one_widget .chaty-widget-i:not(.no-tooltip):before{left:auto;right:-18px}.chaty-widget.one_widget .chaty-widget-i:not(.no-tooltip):before{left:-18px}.one_widget .i-trigger-open .chaty-widget-i-title{padding:10px 10px 9px 12px!important}.one_widget .i-trigger-open.hidetooltip .chaty-widget-i-title{display:none}.one_widget .i-trigger-open.hidetooltip .chaty-widget-i:before{display:none}.chaty-widget .chaty-widget-i.before.facebook:not(.no-tooltip):hover:before,.chaty-widget .chaty-widget-i.facebook.before:not(.no-tooltip):hover .chaty-widget-i-title{opacity:1;pointer-events:auto}.chaty-widget .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title,.chaty-widget .chaty-widget-i:not(.no-tooltip).before:before{opacity:1}.one_widget .chaty-widget-i svg{position:relative}body .chaty-widget-i-title.true{opacity:1!important}.chaty-widget .i-trigger-open:not(.no-tooltip):before{opacity:1!important}.chaty-widget .chaty-widget-i.facebook.active:not(.no-tooltip) .chaty-widget-i-title,.chaty-widget .chaty-widget-i.facebook:not(.no-tooltip):hover:before{pointer-events:initial}.chaty-widget .facebook_header{background-color:#1e88e5;height:34px;border-top-left-radius:5px;border-top-right-radius:5px;padding-left:9px;display:flex;align-items:center;justify-content:space-between}body .chaty-widget-i .facebook_header p{font-family:Lato,Helvetica,Arial,sans-serif;font-size:13px;color:#fff!important;position:relative}.facebook_header p,.facebook_header svg{display:inline-block;vertical-align:bottom;margin:0}.chaty-widget .chaty-widget-i .facebook_header svg{height:30px!important;width:30px!important}.chaty-widget{display:none!important}@media screen and (max-width:800px){.i-trigger-close .chaty-widget-i-title{display:none}}@media screen and (max-width:480px){.mobile_none{display:none}.chaty-widget.mobile_active{display:block!important}}@media screen and (min-width:480px){.chaty-widget.desktop_active{display:block!important}}.chaty-widget{position:fixed;z-index:9999}.chaty-widget .chaty-widget-is{display:flex;z-index:1111;flex-wrap:wrap;overflow:hidden;height:0;position:absolute;pointer-events:none;left:0;right:auto;bottom:65px;opacity:0}#transition_disabled{-webkit-animation:none!important;-moz-animation:none!important;-ms-animation:none!important;-o-animation:none!important;-webkit-animation:none!important}@keyframes fadeout{from{opacity:1}to{opacity:0}}@-moz-keyframes fadeout{from{opacity:1}to{opacity:0}}@-webkit-keyframes fadeout{from{opacity:1}to{opacity:0}}@-o-keyframes fadeout{from{opacity:1}to{opacity:0}}.chaty-widget .i-trigger{cursor:pointer;position:relative}.chaty-widget .i-trigger .i-trigger-close,.chaty-widget .i-trigger .i-trigger-open{transition:all .2s}.chaty-widget .i-trigger .i-trigger-close{position:absolute;bottom:-4px;left:0;right:0;z-index:2}.chaty-widget .i-trigger .i-trigger-open{opacity:1;pointer-events:auto}.chaty-widget .i-trigger .i-trigger-close{opacity:0;pointer-events:none}.chaty-widget.chaty-widget-show .i-trigger .i-trigger-open{opacity:0;pointer-events:none}.chaty-widget.chaty-widget-show .i-trigger .i-trigger-close{box-shadow:none;opacity:1;pointer-events:auto}.chaty-widget.chaty-widget-show .chaty-widget-is{pointer-events:auto;overflow:visible;opacity:1;visibility:visible}@keyframes fadein{from{opacity:0}to{opacity:1}}@-moz-keyframes fadein{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}@-ms-keyframes fadein{from{opacity:0}to{opacity:1}}@-o-keyframes fadein{from{opacity:0}to{opacity:1}}.chaty-widget.chaty-widget-show .chaty-widget-is .chaty-widget-i{opacity:1;overflow:visible}.chaty-widget .chaty-widget-i .chaty-widget-i{margin:0}.chaty-widget .chaty-widget-i{border-radius:50%;vertical-align:top;width:54px;height:54px;position:relative;margin:4px}.chaty-widget .chaty-widget-i .wrap-svg,.chaty-widget .chaty-widget-i svg{cursor:pointer;width:100%;height:100%;display:block;position:relative;box-shadow:0 3px 6px rgba(0,0,0,.25);box-shadow:0 3px 6px rgba(0,0,0,.25);border-radius:50%;-wekit-border-radius:50%;-moz-border-radius:50%}body .i-trigger-open .chaty-widget-i-title{padding:5px 16px 5px 17px!important}.chaty-widget:not(.chaty-widget-is-right) .i-trigger-open:before{left:-18px!important}.one_widget.chaty-widget.chaty-widget-is-right .i-trigger-open:before{right:-18px!important}body .one_widget .i-trigger-open .chaty-widget-i-title.face_title{padding:0!important}.one_widget.chaty-widget .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{transform:translate(calc(-100% - 14px),-50%)}.chaty-widget .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title,.chaty-widget .chaty-widget-i:not(.no-tooltip):before{content:none;position:absolute;opacity:0;pointer-events:none;z-index:10}.chaty-widget .chaty-widget-i:not(.no-tooltip):before{content:"";left:-14px;top:50%;transform:translateY(-50%);height:0;width:0;z-index:11;border-width:5px 0 5px 10px;border-style:solid;border-color:transparent transparent transparent #fff}.chaty-widget .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{text-align:center;font-size:17px;left:0;top:50%;transform:translate(calc(-100% - 13px),-50%);white-space:nowrap;padding:5px 15px;line-height:21px;color:#333;background-color:#fff;box-shadow:0 1.93465px 7.73859px rgba(0,0,0,.15);border-radius:10px}.chaty-widget .chaty-widget-i:not(.no-tooltip):hover .chaty-widget-i-title,.chaty-widget .chaty-widget-i:not(.no-tooltip):hover:before{opacity:1;pointer-events:auto}.chaty-widget .chaty-widget-i.facebook:not(.no-tooltip):hover .chaty-widget-i-title,.chaty-widget .chaty-widget-i.facebook:not(.no-tooltip):hover:before{opacity:0;pointer-events:auto}.chaty-widget .chaty-widget-i .color-element{transition:all .2s}.chaty-widget:not(.chaty-widget-is-right) .chaty-widget-is{position:absolute;right:0;left:auto;bottom:65px;justify-content:flex-end}.chaty-widget.chaty-widget-is-right .i-trigger-open.chaty-widget-i:before{right:-13px;left:auto;border-width:5px 10px 5px 0;border-color:transparent #fff transparent transparent}.chaty-widget.chaty-widget-is-right .chaty-widget-i:before{right:-14px;left:auto;border-width:5px 10px 5px 0;border-color:transparent #fff transparent transparent}.chaty-widget.chaty-widget-is-right .chaty-widget-i.facebook.active .chaty-widget-i-title.face_title{position:fixed;transform:initial!important;right:auto;top:calc(100% - 484px)}.chaty-widget .chaty-widget-i.facebook.active .chaty-widget-i-title{min-width:250px;padding:0;position:fixed;transform:initial;right:29px;left:auto;top:calc(100% - 484px)}.one_widget.chaty-widget.chaty-widget-is-right .chaty-widget-i .chaty-widget-i-title{right:0;left:auto;transform:translate(calc(100% + 17px),-50%)!important}.chaty-animation-pulse{animation:chaty-animation-pulse 1s forwards}.chaty-animation-jump{animation:chaty-animation-jump 1s forwards cubic-bezier(.84,-.54,.31,1.19)}.chaty-animation-waggle{animation:chaty-animation-waggle 1s forwards ease-out}.chaty-animation-sheen{position:relative;overflow:hidden}.chaty-animation-sheen:after{animation:chaty-animation-sheen 1.5s forwards;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)}.chaty-animation-spin{animation:chaty-animation-spin 1s forwards cubic-bezier(.56,-.35,.22,1.5)}.chaty-animation-fade{animation:chaty-animation-fade 1s forwards}@keyframes chaty-animation-pulse{0%{background-color:orange}25%{background-color:red}50%{background-color:orange}75%{background-color:red}}@keyframes chaty-animation-jump{0%{transform:none}50%{transform:translateY(-1em)}}@keyframes chaty-animation-waggle{0%{transform:none}50%{transform:rotateZ(-20deg) scale(1.2)}60%{transform:rotateZ(25deg) scale(1.2)}67.5%{transform:rotateZ(-15deg) scale(1.2)}75%{transform:rotateZ(15deg) scale(1.2)}82.5%{transform:rotateZ(-12deg) scale(1.2)}85%{transform:rotateZ(0) scale(1.2)}100%{transform:rotateZ(0) scale(1)}}@keyframes chaty-animation-sheen{100%{transform:rotateZ(60deg) translate(0,-80px)}}@keyframes chaty-animation-spin{50%{transform:rotateZ(-20deg);animation-timing-function:ease}100%{transform:rotateZ(360deg)}}@keyframes chaty-animation-fade{25%{opacity:.25}50%{opacity:1}75%{opacity:.25}100%{opacity:1}}.start-now,.start-now:after{animation-delay:0}.chaty-widget .i-trigger{z-index:1000}.chaty-widget:not(.chaty-widget-is-right) .chaty-widget-is{z-index:1000}.chaty-nav: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-animation-widget.left-position .chaty-nav:before{clip-path:circle(15px at 60px calc(100% - 60px))}.chaty-animation-widget.right-position .chaty-nav:before{clip-path:circle(15px at calc(100% - 60px) calc(100% - 60px))}.chaty-animation-widget.active .chaty-nav:before{visibility:visible;clip-path:circle(100%)}.chaty-widget-is.has-no-close-btn{position:absolute!important;bottom:0!important;top:auto!important}.chaty-widget.hide-tooltip-arrow .chaty-widget-i:before{display:none!important}body .no-tooltip .chaty-widget-i-title.true{display:none}.chaty-widget-i.hide-chaty-arrow:before{display:none}.chaty-widget-show .i-trigger-open.single-button svg{transform:rotate(0)!important;-webkit-transform:rotate(0)!important}.facustom-icon{display:block;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;text-align:center;color:#fff}body.horizontal-cht-menu .chaty-widget-is{display:inline-block;top:0;right:100%!important}body.horizontal-cht-menu .chaty-widget.chaty-widget-is-right .chaty-widget-is{right:auto!important;left:100%!important}body.horizontal-cht-menu .chaty-widget.one_widget .chaty-widget-is{right:0!important;left:0!important}body.horizontal-cht-menu.chaty-in-desktop .chaty-main-widget.is-in-desktop,body.horizontal-cht-menu.chaty-in-mobile .chaty-main-widget.is-in-desktop{display:inline-block!important}.wechat-qr-code.right{right:25px;left:auto}.wechat-qr-code.left{right:auto;left:25px}body.horizontal-cht-menu .chaty-widget .chaty-widget-is .chaty-widget-i:not(.no-tooltip) .chaty-widget-i-title{right:auto;left:auto;transform:translate(calc(-50% + 26px),-140%);top:0}body.horizontal-cht-menu .chaty-widget .chaty-widget-is .chaty-widget-i:not(.no-tooltip):before{top:-30%;left:0;right:0;margin:0 auto;transform:rotate(-90deg)}body.horizontal-cht-menu.right-cht-position .chaty-widget .chaty-widget-is .chaty-widget-i:not(.no-tooltip):before{transform:rotate(90deg)}body.horizontal-cht-menu .chaty-widget.chaty-widget-show .chaty-widget-i.chaty-close-settings .chaty-widget-i-title{right:auto;left:auto;transform:translate(calc(-50% + 26px),-140%);top:0}body.horizontal-cht-menu .chaty-widget-i.chaty-close-settings.i-trigger-close:before{top:-30%;left:0;right:0;margin:0 auto;transform:rotate(-90deg)}body.horizontal-cht-menu.right-cht-position .chaty-widget-i.chaty-close-settings.i-trigger-close:before{transform:rotate(90deg)}span.cht-pending-message{position:absolute;top:-4px;right:-4px;font-size:11px;font-size:11.5px;border-radius:50%;background:#d00;color:#fff;min-width:20px;min-height:20px;text-align:center;line-height:20px}
|
images/whatsapp.png
DELETED
Binary file
|
includes/class-frontend.php
CHANGED
@@ -27,112 +27,9 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
27 |
if (wp_doing_ajax()) {
|
28 |
add_action('wp_ajax_choose_social', array($this, 'choose_social_handler'));
|
29 |
add_action('wp_ajax_get_chaty_settings', array($this, 'get_chaty_settings')); // return setting for a social media in html
|
30 |
-
|
31 |
-
add_action('wp_ajax_chaty_front_form_save_data', array($this, 'chaty_front_form_save_data'));
|
32 |
-
add_action('wp_ajax_nopriv_chaty_front_form_save_data', array($this, 'chaty_front_form_save_data'));
|
33 |
}
|
34 |
|
35 |
-
add_action('wp_enqueue_scripts', array($this, 'cht_front_end_css_and_js')
|
36 |
-
}
|
37 |
-
|
38 |
-
function chaty_front_form_save_data() {
|
39 |
-
$response = array(
|
40 |
-
'status' => 0,
|
41 |
-
'error' => 0,
|
42 |
-
'errors' => array(),
|
43 |
-
'message' => ''
|
44 |
-
);
|
45 |
-
$postData = filter_input_array(INPUT_POST);
|
46 |
-
if(isset($postData['nonce']) && isset($postData['widget']) && wp_verify_nonce($postData['nonce'], "chaty-front-form".$postData['widget'])) {
|
47 |
-
$name = isset($postData['name'])?$postData['name']:"";
|
48 |
-
$email = isset($postData['email'])?$postData['email']:"";
|
49 |
-
$message = isset($postData['message'])?$postData['message']:"";
|
50 |
-
$ref_url = isset($postData['ref_url'])?$postData['ref_url']:"";
|
51 |
-
$widget = $postData['widget'];
|
52 |
-
$channel = $postData['channel'];
|
53 |
-
|
54 |
-
$value = get_option('cht_social_' . $channel); // get saved settings for button
|
55 |
-
|
56 |
-
$errors = array();
|
57 |
-
if(!empty($value)) {
|
58 |
-
$field_setting = isset($value['name'])?$value['name']:array();
|
59 |
-
if(isset($field_setting['is_active']) && $field_setting['is_active'] == "yes" && isset($field_setting['is_required']) && $field_setting['is_required'] == "yes" && empty($name)) {
|
60 |
-
$error = array(
|
61 |
-
'field' => 'chaty-field-name',
|
62 |
-
'message' => esc_attr("this field is required", 'chaty')
|
63 |
-
);
|
64 |
-
$errors[] = $error;
|
65 |
-
}
|
66 |
-
$field_setting = isset($value['email'])?$value['email']:array();
|
67 |
-
if(isset($field_setting['is_active']) && $field_setting['is_active'] == "yes" && isset($field_setting['is_required']) && $field_setting['is_required'] == "yes") {
|
68 |
-
if(empty($email)) {
|
69 |
-
$error = array(
|
70 |
-
'field' => 'chaty-field-name',
|
71 |
-
'message' => esc_attr("this field is required", 'chaty')
|
72 |
-
);
|
73 |
-
$errors[] = $error;
|
74 |
-
} else if(!filter_var($email, FILTER_VALIDATE_EMAIL)) {
|
75 |
-
$error = array(
|
76 |
-
'field' => 'chaty-field-email',
|
77 |
-
'message' => esc_attr("email address is not valid", 'chaty')
|
78 |
-
);
|
79 |
-
$errors[] = $error;
|
80 |
-
}
|
81 |
-
}
|
82 |
-
$field_setting = isset($value['message'])?$value['message']:array();
|
83 |
-
if(isset($field_setting['is_active']) && $field_setting['is_active'] == "yes" && isset($field_setting['is_required']) && $field_setting['is_required'] == "yes" && empty($message)) {
|
84 |
-
$error = array(
|
85 |
-
'field' => 'chaty-field-message',
|
86 |
-
'message' => esc_attr("this field is required", 'chaty')
|
87 |
-
);
|
88 |
-
$errors[] = $error;
|
89 |
-
}
|
90 |
-
if(empty($errors)) {
|
91 |
-
$widget = trim($widget, "_");
|
92 |
-
$response['message'] = $value['thanks_message'];
|
93 |
-
$response['redirect_action'] = $value['redirect_action'];
|
94 |
-
$response['redirect_link'] = esc_url($value['redirect_link']);
|
95 |
-
$response['link_in_new_tab'] = $value['link_in_new_tab'];
|
96 |
-
$response['close_form_after'] = $value['close_form_after'];
|
97 |
-
$response['close_form_after_seconds'] = $value['close_form_after_seconds'];
|
98 |
-
$send_leads_in_email = $value['send_leads_in_email'];
|
99 |
-
$save_leads_locally = $value['save_leads_locally'];
|
100 |
-
|
101 |
-
global $wpdb;
|
102 |
-
$chaty_table = $wpdb->prefix . 'chaty_contact_form_leads';
|
103 |
-
$insert = array();
|
104 |
-
$field_setting = isset($value['name'])?$value['name']:array();
|
105 |
-
if(isset($field_setting['is_active']) && $field_setting['is_active'] == "yes") {
|
106 |
-
$insert['name'] = esc_sql(sanitize_text_field($name));
|
107 |
-
}
|
108 |
-
$field_setting = isset($value['email'])?$value['email']:array();
|
109 |
-
if(isset($field_setting['is_active']) && $field_setting['is_active'] == "yes") {
|
110 |
-
$insert['email'] = esc_sql(sanitize_text_field($email));
|
111 |
-
}
|
112 |
-
$field_setting = isset($value['message'])?$value['message']:array();
|
113 |
-
if(isset($field_setting['is_active']) && $field_setting['is_active'] == "yes") {
|
114 |
-
$insert['message'] = esc_sql(sanitize_text_field($message));
|
115 |
-
}
|
116 |
-
$insert['ref_page'] = $ref_url;
|
117 |
-
$insert['ip_address'] = $this->get_user_ipaddress();
|
118 |
-
$insert['widget_id'] = esc_sql(sanitize_text_field($widget));
|
119 |
-
$insert['created_on'] = date("Y-m-d H:i:s");
|
120 |
-
$wpdb->insert($chaty_table, $insert);
|
121 |
-
|
122 |
-
|
123 |
-
$response['status'] = 1;
|
124 |
-
} else {
|
125 |
-
$response['errors'] = $errors;
|
126 |
-
$response['error'] = 1;
|
127 |
-
}
|
128 |
-
} else {
|
129 |
-
$response['message'] = "Invalid request, Please try again";
|
130 |
-
}
|
131 |
-
} else {
|
132 |
-
$response['message'] = "Invalid request, Please try again";
|
133 |
-
}
|
134 |
-
echo json_encode($response);
|
135 |
-
exit;
|
136 |
}
|
137 |
|
138 |
function cht_front_end_css_and_js() {
|
@@ -258,12 +155,6 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
258 |
$number_bg_color = get_option("cht_number_bg_color");
|
259 |
$number_bg_color = ($number_bg_color === false)?"#dd0000":$number_bg_color;
|
260 |
|
261 |
-
$cht_cta_text_color = get_option("cht_cta_text_color");
|
262 |
-
$cht_cta_text_color = ($cht_cta_text_color === false)?"#dd0000":$cht_cta_text_color;
|
263 |
-
|
264 |
-
$cht_cta_bg_color = get_option("cht_cta_bg_color");
|
265 |
-
$cht_cta_bg_color = ($cht_cta_bg_color === false)?"#ffffff":$cht_cta_bg_color;
|
266 |
-
|
267 |
if(empty($cht_number_of_messages)) {
|
268 |
$pending_messages = "off";
|
269 |
}
|
@@ -272,8 +163,6 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
272 |
$settings = array();
|
273 |
$settings['isPRO'] = 0;
|
274 |
$settings['pending_messages'] = $pending_messages;
|
275 |
-
$settings['cht_cta_bg_color'] = $cht_cta_bg_color;
|
276 |
-
$settings['cht_cta_text_color'] = $cht_cta_text_color;
|
277 |
$settings['click_setting'] = $click_setting;
|
278 |
$settings['number_of_messages'] = $cht_number_of_messages;
|
279 |
$settings['number_color'] = $number_color;
|
@@ -308,11 +197,9 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
308 |
$settings['display_state'] = $state;
|
309 |
$settings['has_close_button'] = $has_close_button;
|
310 |
$settings['mode'] = $mode;
|
311 |
-
$settings['ajax_url'] = admin_url("admin-ajax.php");
|
312 |
|
313 |
$data = array();
|
314 |
$data['object_settings'] = $settings;
|
315 |
-
$data['ajax_url'] = admin_url("admin-ajax.php");
|
316 |
ob_start();
|
317 |
?>
|
318 |
<?php if($position == "left") { ?>
|
@@ -326,7 +213,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
326 |
#wechat-qr-code{right: {<?php esc_attr_e($total) ?>}px; left:auto;}
|
327 |
<?php } ?>
|
328 |
<?php } ?>
|
329 |
-
.chaty-widget-is a{display: block; margin:0; padding:0;
|
330 |
.chaty-widget-is svg{margin:0; padding:0;}
|
331 |
.chaty-main-widget { display: none; }
|
332 |
.chaty-in-desktop .chaty-main-widget.is-in-desktop { display: block; }
|
@@ -334,7 +221,6 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
334 |
.chaty-widget.hide-widget { display: none !important; }
|
335 |
.chaty-widget, .chaty-widget .get, .chaty-widget .get a { width: <?php echo esc_attr($cht_widget_size+8); ?>px }
|
336 |
.facustom-icon { width: <?php echo esc_attr($cht_widget_size); ?>px; line-height: <?php echo esc_attr($cht_widget_size); ?>px; height: <?php echo esc_attr($cht_widget_size); ?>px; font-size: <?php echo esc_attr(intval($cht_widget_size/2)); ?>px; }
|
337 |
-
.chaty-widget-is a { width: <?php echo esc_attr($cht_widget_size); ?>px; height: <?php echo esc_attr($cht_widget_size); ?>px; }
|
338 |
<?php if(!empty($font_family)) { ?>
|
339 |
.chaty-widget { font-family: <?php echo esc_attr($font_family) ?>; }
|
340 |
<?php } ?>
|
@@ -342,17 +228,12 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
342 |
if(!empty($social['bg_color']) && $social['bg_color'] != "#ffffff") {
|
343 |
?>
|
344 |
.facustom-icon.chaty-btn-<?php echo esc_attr($social['social_channel']) ?> {background-color: <?php echo esc_attr($social['bg_color']) ?>}
|
345 |
-
.chaty-<?php echo esc_attr($social['social_channel']) ?> .color-element {fill: <?php echo esc_attr($social['bg_color'])
|
346 |
<?php }
|
347 |
} ?>
|
348 |
/*.chaty-widget-i-title.hide-it { display: none !important; }*/
|
349 |
body div.chaty-widget.hide-widget { display: none !important; }
|
350 |
<?php
|
351 |
-
echo ".i-trigger .chaty-widget-i-title {color:".esc_attr($cht_cta_text_color)." !important; background:".esc_attr($cht_cta_bg_color)." !important;}";
|
352 |
-
echo ".i-trigger .chaty-widget-i-title p {color:".esc_attr($cht_cta_text_color)." !important; background:".esc_attr($cht_cta_bg_color)." !important;}";
|
353 |
-
echo ".i-trigger .chaty-widget-i:not(.no-tooltip):before { border-color: transparent transparent transparent ".esc_attr($cht_cta_bg_color)." !important;}";
|
354 |
-
echo ".chaty-widget.chaty-widget-is-right .i-trigger .i-trigger-open.chaty-widget-i:before { border-color: transparent ".esc_attr($cht_cta_bg_color)." transparent transparent !important;}";
|
355 |
-
echo ".chaty-widget.chaty-widget-is-right .i-trigger .chaty-widget-i:before {border-color: transparent ".esc_attr($cht_cta_bg_color)." transparent transparent !important; }";
|
356 |
$chaty_css = ob_get_clean();
|
357 |
|
358 |
if($len >= 1 && !empty($settings['social'])) {
|
@@ -364,14 +245,12 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
364 |
|
365 |
/* add js for front end widget */
|
366 |
if(!empty($font_family)) {
|
367 |
-
|
368 |
-
wp_enqueue_style('custom-google-fonts', '//fonts.googleapis.com/css?family=' . urlencode($font_family), false, false);
|
369 |
-
}
|
370 |
}
|
371 |
/* WP change this */
|
372 |
wp_enqueue_style( 'chaty-front-css', CHT_PLUGIN_URL."css/chaty-front.min.css", array(), $chaty_updated_on);
|
373 |
wp_add_inline_style('chaty-front-css', $chaty_css);
|
374 |
-
wp_enqueue_script( "chaty-front-end", CHT_PLUGIN_URL."js/cht-front-script.min.js", array( 'jquery' ), $chaty_updated_on
|
375 |
wp_localize_script('chaty-front-end', 'chaty_settings', $data);
|
376 |
}
|
377 |
endif;
|
@@ -456,9 +335,6 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
456 |
if(!isset($value['fa_icon'])) {
|
457 |
$value['fa_icon'] = ""; // Initialize title if not exists. 2.1.0 change
|
458 |
}
|
459 |
-
if(!isset($value['value'])) {
|
460 |
-
$value['value'] = ""; // Initialize title if not exists. 2.1.0 change
|
461 |
-
}
|
462 |
$imageId = $value['image_id'];
|
463 |
$imageUrl = "";
|
464 |
$status = 0;
|
@@ -511,13 +387,13 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
511 |
$help_title = isset($social['help_title'])?$social['help_title']:"Doesn't work?";
|
512 |
$help_text = isset($social['help'])?$social['help']:"";
|
513 |
if(isset($social['help_link']) && !empty($social['help_link'])) {
|
514 |
-
$help_link = $
|
515 |
}
|
516 |
}
|
517 |
|
518 |
$channel_type = "";
|
519 |
$placeholder = $social['example'];
|
520 |
-
if($social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3"
|
521 |
if (isset($value['channel_type'])) {
|
522 |
$channel_type = esc_attr__(wp_unslash($value['channel_type']));
|
523 |
}
|
@@ -533,7 +409,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
533 |
$help_title = isset($icon['help_title'])?$icon['help_title']:"Doesn't work?";
|
534 |
$help_text = isset($icon['help'])?$icon['help']:"";
|
535 |
if(isset($icon['help_link']) && !empty($icon['help_link'])) {
|
536 |
-
$help_link = $
|
537 |
}
|
538 |
}
|
539 |
}
|
@@ -552,12 +428,12 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
552 |
<div class="move-icon">
|
553 |
<img src="<?php echo esc_url(plugin_dir_url("")."/chaty/admin/assets/images/move-icon.png") ?>">
|
554 |
</div>
|
555 |
-
<div class="icon icon-md active" data-
|
556 |
<span style="" class="custom-chaty-image custom-image-<?php echo esc_attr($social['slug']) ?>" id="image_data_<?php echo esc_attr($social['slug']) ?>">
|
557 |
<img src="<?php echo esc_url($imageUrl) ?>" />
|
558 |
<span onclick="remove_chaty_image('<?php echo esc_attr($social['slug']) ?>')" class="remove-icon-img"></span>
|
559 |
</span>
|
560 |
-
|
561 |
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
562 |
<?php echo $svg_icon; ?>
|
563 |
</svg>
|
@@ -565,12 +441,10 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
565 |
</span>
|
566 |
</div>
|
567 |
|
568 |
-
|
569 |
-
|
570 |
-
<
|
571 |
-
|
572 |
-
</div>
|
573 |
-
<?php } ?>
|
574 |
<div class="channels__device-box">
|
575 |
<?php
|
576 |
$slug = esc_attr__($this->del_space($social['slug']));
|
@@ -591,99 +465,39 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
591 |
</label>
|
592 |
</div>
|
593 |
|
594 |
-
<?php if($social['slug'] == 'Contact_Us') { ?>
|
595 |
-
<div class="channels__input transparent"></div>
|
596 |
-
<?php } ?>
|
597 |
-
|
598 |
-
<?php
|
599 |
-
$close_class = "active";
|
600 |
-
if($social['slug'] == 'Contact_Us') {
|
601 |
-
$setting_status = get_option("chaty_contact_us_setting");
|
602 |
-
if($setting_status === false) {
|
603 |
-
$close_class = "";
|
604 |
-
}
|
605 |
-
}
|
606 |
-
?>
|
607 |
-
|
608 |
<!-- button for advance setting -->
|
609 |
-
<div class="chaty-settings
|
610 |
<a href="javascript:;"><span class="dashicons dashicons-admin-generic"></span> Settings</a>
|
611 |
</div>
|
612 |
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
<?php esc_attr_e($placeholder); ?>
|
623 |
-
</span>
|
624 |
-
</div>
|
625 |
-
|
626 |
-
<!-- checking for extra help message for social media -->
|
627 |
-
<div class="help-section">
|
628 |
-
<?php if((isset($social['help']) && !empty($social['help'])) || isset($social['help_link'])) { ?>
|
629 |
-
<div class="viber-help">
|
630 |
-
<?php if(isset($help_link) && !empty($help_link)) { ?>
|
631 |
-
<a class="help-link" href="<?php echo esc_url($help_link) ?>" target="_blank"><?php esc_attr_e($help_title); ?></a>
|
632 |
-
<?php } else if(isset($help_text) && !empty($help_text)) { ?>
|
633 |
-
<span class="help-text"><?php echo $help_text; ?></span>
|
634 |
-
<span class="help-title"><?php esc_attr_e($help_title); ?></span>
|
635 |
-
<?php } ?>
|
636 |
-
</div>
|
637 |
-
<?php } ?>
|
638 |
-
</div>
|
639 |
-
<?php } ?>
|
640 |
-
</div>
|
641 |
-
|
642 |
-
<div class="Whatsapp-settings advanced-settings extra-chaty-settings">
|
643 |
-
<?php $embedded_window = isset($value['embedded_window'])?$value['embedded_window']:"no"; ?>
|
644 |
-
<div class="chaty-setting-col">
|
645 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[embedded_window]" value="no" >
|
646 |
-
<label class="chaty-switch chaty-embedded-window" for="whatsapp_embedded_window_<?php echo esc_attr($social['slug']); ?>">
|
647 |
-
<input type="checkbox" class="embedded_window-checkbox" name="cht_social_<?php echo esc_attr($social['slug']); ?>[embedded_window]" id="whatsapp_embedded_window_<?php echo esc_attr($social['slug']); ?>" value="yes" <?php checked($embedded_window, "yes") ?> >
|
648 |
-
<div class="chaty-slider round"></div>
|
649 |
-
WhatsApp Chat Popup 💬
|
650 |
-
<div class="html-tooltip top">
|
651 |
-
<span class="dashicons dashicons-editor-help"></span>
|
652 |
-
<span class="tooltip-text top">
|
653 |
-
Show an embedded WhatsApp window to your visitors with a welcome message. Your users can start typing their own message and start a conversation with you right away once they are forwarded to the WhatsApp app.
|
654 |
-
<img src="<?php echo esc_url(CHT_PLUGIN_URL) ?>/admin/assets/images/whatsapp-popup.gif" />
|
655 |
-
</span>
|
656 |
-
</div>
|
657 |
-
</label>
|
658 |
</div>
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
<div class="
|
664 |
-
|
665 |
-
<?php $
|
666 |
-
|
667 |
-
<
|
668 |
-
|
|
|
669 |
</div>
|
670 |
-
|
671 |
-
<div class="chaty-setting-col">
|
672 |
-
<?php $is_default_open = isset($value['is_default_open'])?$value['is_default_open']:""; ?>
|
673 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[is_default_open]" value="no" >
|
674 |
-
<label class="chaty-switch" for="whatsapp_default_open_embedded_window_<?php echo esc_attr($social['slug']); ?>">
|
675 |
-
<input type="checkbox" name="cht_social_<?php echo esc_attr($social['slug']); ?>[is_default_open]" id="whatsapp_default_open_embedded_window_<?php echo esc_attr($social['slug']); ?>" value="yes" <?php checked($is_default_open, "yes") ?> >
|
676 |
-
<div class="chaty-slider round"></div>
|
677 |
-
Open the window by default
|
678 |
-
<span class="icon label-tooltip" data-label="Open the WhatsApp chat popup by default, after the user sends a message or closes the window, the window will stay closed to avoid disruption"><span class="dashicons dashicons-editor-help"></span></span>
|
679 |
-
</label>
|
680 |
-
</div>
|
681 |
</div>
|
682 |
</div>
|
683 |
-
|
684 |
<!-- advance setting fields: start -->
|
685 |
<?php $class_name = !$this->is_pro()?"not-is-pro":""; ?>
|
686 |
-
<div class="chaty-advance-settings <?php esc_attr_e($class_name); ?>"
|
687 |
<!-- Settings for custom icon and color -->
|
688 |
<div class="chaty-setting-col">
|
689 |
<label>Icon Appearance</label>
|
@@ -711,7 +525,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
711 |
</div>
|
712 |
<div class="clear clearfix"></div>
|
713 |
|
714 |
-
<?php if($social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3"
|
715 |
$channel_type = "";
|
716 |
if(isset($value['channel_type'])) {
|
717 |
$channel_type = esc_attr__(wp_unslash($value['channel_type']));
|
@@ -726,7 +540,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
726 |
<option value="<?php echo esc_attr($social['slug']) ?>">Custom channel</option>
|
727 |
<?php foreach ($socials as $social_icon) {
|
728 |
$selected = ($social_icon['slug'] == $channel_type)?"selected":"";
|
729 |
-
if ($social_icon['slug'] != 'Custom_Link' && $social_icon['slug'] != '
|
730 |
<option <?php echo esc_attr($selected) ?> value="<?php echo esc_attr($social_icon['slug']) ?>"><?php echo esc_attr($social_icon['title']) ?></option>
|
731 |
<?php }
|
732 |
}?>
|
@@ -736,233 +550,15 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
736 |
<div class="clear clearfix"></div>
|
737 |
<?php } ?>
|
738 |
|
739 |
-
|
740 |
-
|
741 |
-
<div>
|
742 |
-
<input type="text" class="chaty-title" name="cht_social_<?php echo esc_attr($social['slug']); ?>[title]" value="<?php esc_attr_e($value['title']) ?>">
|
743 |
-
</div>
|
744 |
-
</div>
|
745 |
-
<div class="clear clearfix"></div>
|
746 |
-
|
747 |
-
<div class="Contact_Us-settings advanced-settings">
|
748 |
-
<div class="clear clearfix"></div>
|
749 |
<div class="chaty-setting-col">
|
750 |
-
<label>
|
751 |
<div>
|
752 |
-
|
753 |
-
<input
|
754 |
-
</div>
|
755 |
-
</div>
|
756 |
-
<?php
|
757 |
-
$fields = array(
|
758 |
-
'name' => array(
|
759 |
-
'title' => "Name",
|
760 |
-
'placeholder' => "Enter your name",
|
761 |
-
'is_required' => 1,
|
762 |
-
'type' => 'input',
|
763 |
-
'is_enabled' => 1
|
764 |
-
),
|
765 |
-
'email' => array(
|
766 |
-
'title' => "Email",
|
767 |
-
'placeholder' => "Enter your email address",
|
768 |
-
'is_required' => 1,
|
769 |
-
'type' => 'email',
|
770 |
-
'is_enabled' => 1
|
771 |
-
),
|
772 |
-
'message' => array(
|
773 |
-
'title' => "Message",
|
774 |
-
'placeholder' => "Enter your message",
|
775 |
-
'is_required' => 1,
|
776 |
-
'type' => 'textarea',
|
777 |
-
'is_enabled' => 1
|
778 |
-
)
|
779 |
-
);
|
780 |
-
echo '<div class="form-field-setting-col">';
|
781 |
-
foreach ($fields as $label => $field) {
|
782 |
-
$saved_value = isset($value[$label])?$value[$label]:array();
|
783 |
-
$field_value = array(
|
784 |
-
'is_active' => (isset($saved_value['is_active']))?$saved_value['is_active']:'yes',
|
785 |
-
'is_required' => (isset($saved_value['is_required']))?$saved_value['is_required']:'yes',
|
786 |
-
'placeholder' => (isset($saved_value['placeholder']))?$saved_value['placeholder']:$field['placeholder'],
|
787 |
-
);
|
788 |
-
?>
|
789 |
-
<div class="field-setting-col">
|
790 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_active]" value="no">
|
791 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_required]" value="no">
|
792 |
-
|
793 |
-
<div class="left-section">
|
794 |
-
<label class="chaty-switch chaty-switch-toggle" for="field_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">
|
795 |
-
<input type="checkbox" class="chaty-field-setting" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_active]" id="field_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>" value="yes" <?php checked($field_value['is_active'], "yes") ?>>
|
796 |
-
<div class="chaty-slider round"></div>
|
797 |
-
|
798 |
-
<?php echo $field['title'] ?>
|
799 |
-
</label>
|
800 |
-
</div>
|
801 |
-
<div class="right-section">
|
802 |
-
<div class="field-settings <?php echo ($field_value['is_active']=="yes")?"active":"" ?>">
|
803 |
-
<div class="inline-block">
|
804 |
-
<label class="inline-block" for="field_required_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">Required?</label>
|
805 |
-
<div class="inline-block">
|
806 |
-
<label class="chaty-switch" for="field_required_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">
|
807 |
-
<input type="checkbox" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_required]" id="field_required_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>" value="yes" <?php checked($field_value['is_required'], "yes") ?>>
|
808 |
-
<div class="chaty-slider round"></div>
|
809 |
-
</label>
|
810 |
-
</div>
|
811 |
-
</div>
|
812 |
-
</div>
|
813 |
-
</div>
|
814 |
-
<div class="clear clearfix"></div>
|
815 |
-
<div class="field-settings <?php echo ($field_value['is_active']=="yes")?"active":"" ?>">
|
816 |
-
<div class="chaty-setting-col">
|
817 |
-
<label for="placeholder_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">Placeholder text</label>
|
818 |
-
<div>
|
819 |
-
<input id="placeholder_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][placeholder]" value="<?php esc_attr_e($field_value['placeholder']) ?>" >
|
820 |
-
</div>
|
821 |
-
</div>
|
822 |
-
</div>
|
823 |
-
</div>
|
824 |
-
<?php if($label != 'message') { ?>
|
825 |
-
<div class="chaty-separator"></div>
|
826 |
-
<?php } ?>
|
827 |
-
<?php }
|
828 |
-
echo '</div>'; ?>
|
829 |
-
<div class="form-field-setting-col">
|
830 |
-
<div class="form-field-title">Submit Button</div>
|
831 |
-
<div class="color-box">
|
832 |
-
<div class="clr-setting">
|
833 |
-
<?php $field_value = isset($value['button_text_color'])?$value['button_text_color']:"#ffffff" ?>
|
834 |
-
<div class="chaty-setting-col">
|
835 |
-
<label for="button_text_color_for_<?php echo esc_attr($social['slug']); ?>">Text color</label>
|
836 |
-
<div>
|
837 |
-
<input id="button_text_color_for_<?php echo esc_attr($social['slug']); ?>" class="chaty-color-field button-color" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[button_text_color]" value="<?php esc_attr_e($field_value); ?>" >
|
838 |
-
</div>
|
839 |
-
</div>
|
840 |
-
</div>
|
841 |
-
<?php $field_value = isset($value['button_bg_color'])?$value['button_bg_color']:"#A886CD" ?>
|
842 |
-
<div class="clr-setting">
|
843 |
-
<div class="chaty-setting-col">
|
844 |
-
<label for="button_bg_color_for_<?php echo esc_attr($social['slug']); ?>">Background color</label>
|
845 |
-
<div>
|
846 |
-
<input id="button_bg_color_for_<?php echo esc_attr($social['slug']); ?>" class="chaty-color-field button-color" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[button_bg_color]" value="<?php esc_attr_e($field_value); ?>" >
|
847 |
-
</div>
|
848 |
-
</div>
|
849 |
-
</div>
|
850 |
-
</div>
|
851 |
-
<?php $field_value = isset($value['button_text'])?$value['button_text']:"Chat" ?>
|
852 |
-
<div class="chaty-setting-col">
|
853 |
-
<label for="button_text_for_<?php echo esc_attr($social['slug']); ?>">Button text</label>
|
854 |
-
<div>
|
855 |
-
<input id="button_text_for_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[button_text]" value="<?php esc_attr_e($field_value); ?>" >
|
856 |
-
</div>
|
857 |
-
</div>
|
858 |
-
<?php $field_value = isset($value['thanks_message'])?$value['thanks_message']:"Your message was sent successfully" ?>
|
859 |
-
<div class="chaty-setting-col">
|
860 |
-
<label for="thanks_message_for_<?php echo esc_attr($social['slug']); ?>">Thank you message</label>
|
861 |
-
<div>
|
862 |
-
<input id="thanks_message_for_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[thanks_message]" value="<?php esc_attr_e($field_value); ?>" >
|
863 |
-
</div>
|
864 |
-
</div>
|
865 |
-
<div class="chaty-separator"></div>
|
866 |
-
<?php $field_value = isset($value['redirect_action'])?$value['redirect_action']:"no" ?>
|
867 |
-
<div class="chaty-setting-col">
|
868 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[redirect_action]" value="no" >
|
869 |
-
<label class="chaty-switch" for="redirect_action_<?php echo esc_attr($social['slug']); ?>">
|
870 |
-
<input type="checkbox" class="chaty-redirect-setting" name="cht_social_<?php echo esc_attr($social['slug']); ?>[redirect_action]" id="redirect_action_<?php echo esc_attr($social['slug']); ?>" value="yes" <?php checked($field_value, "yes") ?> >
|
871 |
-
<div class="chaty-slider round"></div>
|
872 |
-
Redirect visitors after submission
|
873 |
-
</label>
|
874 |
-
</div>
|
875 |
-
<div class="redirect_action-settings <?php echo ($field_value == "yes")?"active":"" ?>">
|
876 |
-
<?php $field_value = isset($value['redirect_link'])?$value['redirect_link']:"" ?>
|
877 |
-
<div class="chaty-setting-col">
|
878 |
-
<label for="redirect_link_for_<?php echo esc_attr($social['slug']); ?>">Redirect link</label>
|
879 |
-
<div>
|
880 |
-
<input id="redirect_link_for_<?php echo esc_attr($social['slug']); ?>" placeholder="<?php echo site_url("/") ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[redirect_link]" value="<?php esc_attr_e($field_value); ?>" >
|
881 |
-
</div>
|
882 |
-
</div>
|
883 |
-
<?php $field_value = isset($value['link_in_new_tab'])?$value['link_in_new_tab']:"no" ?>
|
884 |
-
<div class="chaty-setting-col">
|
885 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_in_new_tab]" value="no" >
|
886 |
-
<label class="chaty-switch" for="link_in_new_tab_<?php echo esc_attr($social['slug']); ?>">
|
887 |
-
<input type="checkbox" class="chaty-field-setting" name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_in_new_tab]" id="link_in_new_tab_<?php echo esc_attr($social['slug']); ?>" value="yes" <?php checked($field_value, "yes") ?> >
|
888 |
-
<div class="chaty-slider round"></div>
|
889 |
-
Open in a new tab
|
890 |
-
</label>
|
891 |
-
</div>
|
892 |
-
</div>
|
893 |
-
<div class="chaty-separator"></div>
|
894 |
-
<?php $field_value = isset($value['close_form_after'])?$value['close_form_after']:"no" ?>
|
895 |
-
<div class="chaty-setting-col">
|
896 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[close_form_after]" value="no" >
|
897 |
-
<label class="chaty-switch" for="close_form_after_<?php echo esc_attr($social['slug']); ?>">
|
898 |
-
<input type="checkbox" class="chaty-close_form_after-setting" name="cht_social_<?php echo esc_attr($social['slug']); ?>[close_form_after]" id="close_form_after_<?php echo esc_attr($social['slug']); ?>" value="yes" <?php checked($field_value, "yes") ?> >
|
899 |
-
<div class="chaty-slider round"></div>
|
900 |
-
Close form automatically after submission
|
901 |
-
<span class="icon label-tooltip inline-message" data-label="Close the form automatically after a few seconds based on your choice"><span class="dashicons dashicons-editor-help"></span></span>
|
902 |
-
</label>
|
903 |
-
</div>
|
904 |
-
<div class="close_form_after-settings <?php echo ($field_value == "yes")?"active":"" ?>">
|
905 |
-
<?php $field_value = isset($value['close_form_after_seconds'])?$value['close_form_after_seconds']:"3" ?>
|
906 |
-
<div class="chaty-setting-col">
|
907 |
-
<label for="close_form_after_seconds_<?php echo esc_attr($social['slug']); ?>">Close after (Seconds)</label>
|
908 |
-
<div>
|
909 |
-
<input id="close_form_after_seconds_<?php echo esc_attr($social['slug']); ?>" type="number" name="cht_social_<?php echo esc_attr($social['slug']); ?>[close_form_after_seconds]" value="<?php esc_attr_e($field_value); ?>" >
|
910 |
-
</div>
|
911 |
-
</div>
|
912 |
-
</div>
|
913 |
-
</div>
|
914 |
-
<div class="form-field-setting-col no-margin">
|
915 |
-
<input type="hidden" value="no" name="cht_social_<?php echo esc_attr($social['slug']); ?>[send_leads_in_email]" >
|
916 |
-
<input type="hidden" value="yes" name="cht_social_<?php echo esc_attr($social['slug']); ?>[save_leads_locally]" >
|
917 |
-
<?php $field_value = isset($val['save_leads_locally'])?$val['save_leads_locally']:"yes" ?>
|
918 |
-
<div class="chaty-setting-col">
|
919 |
-
<label for="save_leads_locally_<?php echo esc_attr($social['slug']); ?>" class="full-width chaty-switch">
|
920 |
-
<input type="checkbox" disabled id="save_leads_locally_<?php echo esc_attr($social['slug']); ?>" value="yes" name="cht_social_<?php echo esc_attr($social['slug']); ?>[save_leads_locally]" <?php checked($field_value, "yes") ?> >
|
921 |
-
<div class="chaty-slider round"></div>
|
922 |
-
Save leads to the local database
|
923 |
-
<div class="html-tooltip top no-position">
|
924 |
-
<span class="dashicons dashicons-editor-help"></span>
|
925 |
-
<span class="tooltip-text top">Your leads will be saved in your local database, you'll be able to find them <a target="_blank" href="<?php echo admin_url("admin.php?page=chaty-contact-form-feed") ?>">here</a></span>
|
926 |
-
</div>
|
927 |
-
</label>
|
928 |
-
</div>
|
929 |
-
<?php $field_value = isset($value['send_leads_in_email'])?$value['send_leads_in_email']:"no" ?>
|
930 |
-
<div class="chaty-setting-col">
|
931 |
-
<label for="save_leads_to_email_<?php echo esc_attr($social['slug']); ?>" class="email-setting full-width chaty-switch">
|
932 |
-
<input class="email-setting-field" disabled type="checkbox" id="save_leads_to_email_<?php echo esc_attr($social['slug']); ?>" value="yes" name="cht_social_<?php echo esc_attr($social['slug']); ?>[send_leads_in_email]" >
|
933 |
-
<div class="chaty-slider round"></div>
|
934 |
-
Send leads to your email
|
935 |
-
<span class="icon label-tooltip" data-label="Get your leads by email, whenever you get a new email you'll get an email notification"><span class="dashicons dashicons-editor-help"></span></span>
|
936 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>">(<?php esc_attr_e('Upgrade to Pro', CHT_OPT);?>)</a>
|
937 |
-
</label>
|
938 |
-
</div>
|
939 |
-
<div class="email-settings <?php echo ($field_value == "yes")?"active":"" ?>">
|
940 |
-
<div class="chaty-setting-col">
|
941 |
-
<label for="email_for_<?php echo esc_attr($social['slug']); ?>">Email address</label>
|
942 |
-
<div>
|
943 |
-
<?php $field_value = isset($value['email_address'])?$value['email_address']:"" ?>
|
944 |
-
<input id="email_for_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[email_address]" value="<?php esc_attr_e($field_value); ?>" >
|
945 |
-
</div>
|
946 |
-
</div>
|
947 |
-
<div class="chaty-setting-col">
|
948 |
-
<label for="sender_name_for_<?php echo esc_attr($social['slug']); ?>">Sender's name</label>
|
949 |
-
<div>
|
950 |
-
<?php $field_value = isset($value['sender_name'])?$value['sender_name']:"" ?>
|
951 |
-
<input id="sender_name_for_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[sender_name]" value="<?php esc_attr_e($field_value); ?>" >
|
952 |
-
</div>
|
953 |
-
</div>
|
954 |
-
<div class="chaty-setting-col">
|
955 |
-
<label for="email_subject_for_<?php echo esc_attr($social['slug']); ?>">Email subject</label>
|
956 |
-
<div>
|
957 |
-
<?php $field_value = isset($value['email_subject'])?$value['email_subject']:"" ?>
|
958 |
-
<input id="email_subject_for_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[email_subject]" value="<?php esc_attr_e($field_value); ?>" >
|
959 |
-
</div>
|
960 |
-
</div>
|
961 |
</div>
|
962 |
</div>
|
963 |
-
</div>
|
964 |
-
|
965 |
-
<?php if($this->is_pro()) { ?>
|
966 |
<div class="clear clearfix"></div>
|
967 |
<div class="Whatsapp-settings advanced-settings">
|
968 |
<!-- advance setting for Whatsapp -->
|
@@ -1019,7 +615,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1019 |
</div>
|
1020 |
</div>
|
1021 |
</div>
|
1022 |
-
<div class="Link-settings Custom_Link-settings
|
1023 |
<?php $is_checked = (!isset($value['new_window']) || $value['new_window'] == 1)?1:0; ?>
|
1024 |
<!-- Advance setting for Custom Link -->
|
1025 |
<div class="clear clearfix"></div>
|
@@ -1053,6 +649,13 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1053 |
</div>
|
1054 |
</div>
|
1055 |
<?php } else { ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1056 |
<div class="clear clearfix"></div>
|
1057 |
<div class="Whatsapp-settings advanced-settings">
|
1058 |
<?php $pre_set_message = isset($value['pre_set_message'])?$value['pre_set_message']:""; ?>
|
@@ -1099,7 +702,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1099 |
</div>
|
1100 |
</div>
|
1101 |
</div>
|
1102 |
-
<div class="Link-settings Custom_Link-settings
|
1103 |
<?php $is_checked = 1; ?>
|
1104 |
<div class="clear clearfix"></div>
|
1105 |
<div class="chaty-setting-col">
|
@@ -1169,10 +772,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1169 |
}
|
1170 |
$value = get_option('cht_social'.$this->widget_number.'_' . $social['slug']); // get saved settings for button
|
1171 |
if ($value) {
|
1172 |
-
|
1173 |
-
$channel_id = "cht-channel-0";
|
1174 |
-
$channel_id = trim($channel_id, "_");
|
1175 |
-
if (!empty($value['value']) || $slug == "contact_us") {
|
1176 |
$slug = strtolower($social['slug']);
|
1177 |
$url = "";
|
1178 |
$mobile_url = "";
|
@@ -1182,12 +782,8 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1182 |
|
1183 |
$channel_type = $slug;
|
1184 |
|
1185 |
-
if(!isset($value['value'])) {
|
1186 |
-
$value['value'] = "";
|
1187 |
-
}
|
1188 |
-
|
1189 |
$svg_icon = $social['svg'];
|
1190 |
-
if($slug == "link" || $slug == "custom_link" || $slug == "custom_link_3"
|
1191 |
if(isset($value['channel_type']) && !empty($value['channel_type'])) {
|
1192 |
$channel_type = $value['channel_type'];
|
1193 |
|
@@ -1204,16 +800,14 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1204 |
if($channel_type == "viber") {
|
1205 |
/* Viber change to exclude + from number for desktop */
|
1206 |
$val = $value['value'];
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
$val = "+".$val;
|
1216 |
-
}
|
1217 |
}
|
1218 |
} else if($channel_type == "whatsapp") {
|
1219 |
/* Whatspp change to exclude + from phone number */
|
@@ -1258,9 +852,6 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1258 |
}
|
1259 |
|
1260 |
$on_click_fn = "";
|
1261 |
-
$popup_html = "";
|
1262 |
-
$has_custom_popup = 0;
|
1263 |
-
$is_default_open = 0;
|
1264 |
/* get custom icon background color if exists. version 2.1.0 change */
|
1265 |
if(!isset($value['bg_color']) || empty($value['bg_color'])) {
|
1266 |
$value['bg_color'] = '';
|
@@ -1280,34 +871,9 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1280 |
} else {
|
1281 |
$desktop_target = "_blank";
|
1282 |
}
|
1283 |
-
if(isset($value['embedded_window']) && $value['embedded_window'] == "yes") {
|
1284 |
-
$embedded_message = isset($value['embedded_message'])?$value['embedded_message']:"";
|
1285 |
-
$pre_set_message = isset($value['pre_set_message'])?$value['pre_set_message']:"";
|
1286 |
-
$is_default_open = (isset($value['is_default_open'])&&$value['is_default_open']=="yes")?1:0;
|
1287 |
-
$has_custom_popup = 1;
|
1288 |
-
$mobile_url = "javascript:;";
|
1289 |
-
$url = "javascript:;";
|
1290 |
-
$url = "javascript:;";
|
1291 |
-
$close_button = "<div role='button' class='close-chaty-popup is-whatsapp-btn'><div class='chaty-close-button'></div></div>";
|
1292 |
-
$popup_html = "<div class='chaty-whatsapp-popup'>";
|
1293 |
-
$popup_html .= "<span class='default-value' style='display:none'>".esc_attr($pre_set_message)."</span>";
|
1294 |
-
$popup_html .= "<span class='default-msg-value' style='display:none'>".esc_attr($embedded_message)."</span>";
|
1295 |
-
$popup_html .= "<span class='default-msg-phone' style='display:none'>".esc_attr($val)."</span>";
|
1296 |
-
$popup_html .= "<div class='chaty-whatsapp-body'>".$close_button."<div class='chaty-whatsapp-message'></div></div>";
|
1297 |
-
$popup_html .= "<div class='chaty-whatsapp-footer'>";
|
1298 |
-
$popup_html .= "<form class='whatsapp-chaty-form' autocomplete='off' target='_blank' action='https://web.whatsapp.com/send' method='get'>";
|
1299 |
-
$popup_html .= "<div class='chaty-whatsapp-field'><input autocomplete='off' class='chaty-whatsapp-msg' name='text' value='' /></div>";
|
1300 |
-
$popup_html .= "<input type='hidden' name='phone' class='chaty-whatsapp-phone' value='' />";
|
1301 |
-
$popup_html .= "<input type='hidden' class='is-default-open' value='".esc_attr($is_default_open)."' />";
|
1302 |
-
$popup_html .= "<input type='hidden' class='channel-id' value='".esc_attr($channel_id)."' />";
|
1303 |
-
$popup_html .= "<button type='submit' class='chaty-whatsapp-submit-btn'><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></button><div style='clear:both'></div>";
|
1304 |
-
$popup_html .= "</form>";
|
1305 |
-
$popup_html .= "</div>";
|
1306 |
-
$popup_html .= "</div>";
|
1307 |
-
}
|
1308 |
} else if($channel_type == "phone") {
|
1309 |
/* setting for Phone */
|
1310 |
-
$url = "tel:".$val;
|
1311 |
} else if($channel_type == "sms") {
|
1312 |
/* setting for SMS */
|
1313 |
$url = "sms:".$val;
|
@@ -1321,14 +887,11 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1321 |
$url = esc_url($val);
|
1322 |
$desktop_target = "_blank";
|
1323 |
$mobile_target = "_blank";
|
1324 |
-
} else if($channel_type == "link" || $channel_type == "custom_link" || $channel_type == "custom_link_3"
|
1325 |
$is_exist = strpos($val, "javascript");
|
1326 |
-
$
|
1327 |
-
if($is_viber !== false) {
|
1328 |
-
$url = $val;
|
1329 |
-
} else if($is_exist === false) {
|
1330 |
$url = esc_url($val);
|
1331 |
-
if($channel_type == "custom_link"
|
1332 |
$desktop_target = (isset($value['new_window']) && $value['new_window'] == 0)?"":"_blank";
|
1333 |
$mobile_target = (isset($value['new_window']) && $value['new_window'] == 0)?"":"_blank";
|
1334 |
}
|
@@ -1408,59 +971,6 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1408 |
$url = esc_url($val);
|
1409 |
$desktop_target = "_blank";
|
1410 |
$mobile_target = "_blank";
|
1411 |
-
} else if($channel_type == "contact_us") {
|
1412 |
-
$url = "javascript:;";
|
1413 |
-
$desktop_target = "";
|
1414 |
-
$mobile_target = "";
|
1415 |
-
$input_fields = "";
|
1416 |
-
if(isset($value['name']) || isset($value['email']) || isset($value['message'])) {
|
1417 |
-
$field_setting = $value['name'];
|
1418 |
-
if(isset($field_setting['is_active']) && $field_setting['is_active'] == "yes") {
|
1419 |
-
$is_required = (isset($field_setting['is_required']) && $field_setting['is_required'] == "yes")?"is-required":"";
|
1420 |
-
$placeholder = isset($field_setting['placeholder'])?$field_setting['placeholder']:"Enter your name";
|
1421 |
-
$input_fields .= "<div class='chaty-input-area'>";
|
1422 |
-
$input_fields .= "<input autocomplete='off' class='chaty-input-field chaty-field-name {$is_required}' name='name' type='text' id='chaty-name' placeholder='{$placeholder}' />";
|
1423 |
-
$input_fields .= "</div>";
|
1424 |
-
}
|
1425 |
-
$field_setting = $value['email'];
|
1426 |
-
if(isset($field_setting['is_active']) && $field_setting['is_active'] == "yes") {
|
1427 |
-
$is_required = (isset($field_setting['is_required']) && $field_setting['is_required'] == "yes")?"is-required":"";
|
1428 |
-
$placeholder = isset($field_setting['placeholder'])?$field_setting['placeholder']:"Enter your email address";
|
1429 |
-
$input_fields .= "<div class='chaty-input-area'>";
|
1430 |
-
$input_fields .= "<input autocomplete='off' class='chaty-input-field chaty-field-email {$is_required}' name='email' type='email' id='chaty-name' placeholder='{$placeholder}' />";
|
1431 |
-
$input_fields .= "</div>";
|
1432 |
-
}
|
1433 |
-
$field_setting = $value['message'];
|
1434 |
-
if(isset($field_setting['is_active']) && $field_setting['is_active'] == "yes") {
|
1435 |
-
$is_required = (isset($field_setting['is_required']) && $field_setting['is_required'] == "yes")?"is-required":"";
|
1436 |
-
$placeholder = isset($field_setting['placeholder'])?$field_setting['placeholder']:"Enter your message";
|
1437 |
-
$input_fields .= "<div class='chaty-input-area'>";
|
1438 |
-
$input_fields .= "<textarea autocomplete='off' class='chaty-input-field chaty-field-message {$is_required}' name='name' id='chaty-name' placeholder='{$placeholder}' ></textarea>";
|
1439 |
-
$input_fields .= "</div>";
|
1440 |
-
}
|
1441 |
-
}
|
1442 |
-
if(!empty($input_fields)) {
|
1443 |
-
$has_custom_popup = 1;
|
1444 |
-
$button_text = isset($value['button_text']) && !empty($value['button_text'])?$value['button_text']:"Submit";
|
1445 |
-
$button_bg_color = isset($value['button_bg_color']) && !empty($value['button_bg_color'])?$value['button_bg_color']:"#A886CD";
|
1446 |
-
$button_text_color = isset($value['button_text_color']) && !empty($value['button_text_color'])?$value['button_text_color']:"#ffffff";
|
1447 |
-
$contact_form_title = isset($value['contact_form_title'])?$value['contact_form_title']:"";
|
1448 |
-
$popup_html = "<div class='chaty-contact-form'>";
|
1449 |
-
$popup_html .= "<form action='#' method='post' class='chaty-contact-form-data' autocomplete='off'>";
|
1450 |
-
$popup_html .= "<div class='chaty-contact-header'>".esc_attr($contact_form_title)." <div role='button' class='close-chaty-popup'><div class='chaty-close-button'></div></div><div style='clear:both'></div></div>";
|
1451 |
-
$popup_html .= "<div class='chaty-contact-body'>";
|
1452 |
-
$popup_html .= $input_fields;
|
1453 |
-
$popup_html .= "<input type='hidden' class='chaty-field-widget' name='widget_id' value='' />";
|
1454 |
-
$popup_html .= "<input type='hidden' class='chaty-field-channel' name='channel' value='{$social['slug']}' />";
|
1455 |
-
$nonce = wp_create_nonce("chaty-front-form");
|
1456 |
-
$popup_html .= "<input type='hidden' class='chaty-field-nonce' name='nonce' value='{$nonce}' />";
|
1457 |
-
$popup_html .= "</div>";
|
1458 |
-
$popup_html .= "<div class='chaty-contact-footer'>";
|
1459 |
-
$popup_html .= "<button style='color: {$button_text_color}; background: {$button_bg_color}' type='submit' class='chaty-contact-submit-btn' data-text='{$button_text}'>{$button_text}</div>";
|
1460 |
-
$popup_html .= "</div>";
|
1461 |
-
$popup_html .= "</form>";
|
1462 |
-
$popup_html .= "</div>";
|
1463 |
-
}
|
1464 |
}
|
1465 |
|
1466 |
/* Instagram checking for custom color */
|
@@ -1477,9 +987,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1477 |
$mobile_url = $url;
|
1478 |
}
|
1479 |
|
1480 |
-
$
|
1481 |
-
|
1482 |
-
$svg = '<svg class="ico_d '.$svg_class.'" width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg" style="transform: rotate(0deg);">'.$svg.'</svg>';
|
1483 |
|
1484 |
$data = array(
|
1485 |
'val' => esc_attr__(wp_unslash($val)),
|
@@ -1498,10 +1006,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1498 |
'is_desktop' => $is_desktop,
|
1499 |
'mobile_url' => $mobile_url,
|
1500 |
'on_click' => $on_click_fn,
|
1501 |
-
"has_font" => 0
|
1502 |
-
"popup_html" => $popup_html,
|
1503 |
-
"has_custom_popup" => $has_custom_popup,
|
1504 |
-
"is_default_open" => $is_default_open
|
1505 |
);
|
1506 |
$arr[] = $data;
|
1507 |
}
|
@@ -1527,22 +1032,10 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1527 |
$res = false;
|
1528 |
foreach ($social as $name) {
|
1529 |
$value = get_option('cht_social_' . strtolower($name));
|
1530 |
-
$res = $res || !empty($value['value'])
|
1531 |
}
|
1532 |
return $res;
|
1533 |
}
|
1534 |
-
|
1535 |
-
function get_user_ipaddress() {
|
1536 |
-
if(!empty($_SERVER['HTTP_CLIENT_IP'])){
|
1537 |
-
$ip = sanitize_text_field( wp_unslash($_SERVER['HTTP_CLIENT_IP']));
|
1538 |
-
}elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){
|
1539 |
-
//ip pass from proxy
|
1540 |
-
$ip = sanitize_text_field( wp_unslash($_SERVER['HTTP_X_FORWARDED_FOR']));
|
1541 |
-
}else{
|
1542 |
-
$ip = sanitize_text_field( wp_unslash($_SERVER['REMOTE_ADDR']));
|
1543 |
-
}
|
1544 |
-
return $ip;
|
1545 |
-
}
|
1546 |
}
|
1547 |
|
1548 |
return new CHT_Frontend();
|
27 |
if (wp_doing_ajax()) {
|
28 |
add_action('wp_ajax_choose_social', array($this, 'choose_social_handler'));
|
29 |
add_action('wp_ajax_get_chaty_settings', array($this, 'get_chaty_settings')); // return setting for a social media in html
|
|
|
|
|
|
|
30 |
}
|
31 |
|
32 |
+
add_action('wp_enqueue_scripts', array($this, 'cht_front_end_css_and_js'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
|
35 |
function cht_front_end_css_and_js() {
|
155 |
$number_bg_color = get_option("cht_number_bg_color");
|
156 |
$number_bg_color = ($number_bg_color === false)?"#dd0000":$number_bg_color;
|
157 |
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
if(empty($cht_number_of_messages)) {
|
159 |
$pending_messages = "off";
|
160 |
}
|
163 |
$settings = array();
|
164 |
$settings['isPRO'] = 0;
|
165 |
$settings['pending_messages'] = $pending_messages;
|
|
|
|
|
166 |
$settings['click_setting'] = $click_setting;
|
167 |
$settings['number_of_messages'] = $cht_number_of_messages;
|
168 |
$settings['number_color'] = $number_color;
|
197 |
$settings['display_state'] = $state;
|
198 |
$settings['has_close_button'] = $has_close_button;
|
199 |
$settings['mode'] = $mode;
|
|
|
200 |
|
201 |
$data = array();
|
202 |
$data['object_settings'] = $settings;
|
|
|
203 |
ob_start();
|
204 |
?>
|
205 |
<?php if($position == "left") { ?>
|
213 |
#wechat-qr-code{right: {<?php esc_attr_e($total) ?>}px; left:auto;}
|
214 |
<?php } ?>
|
215 |
<?php } ?>
|
216 |
+
.chaty-widget-is a{display: block; margin:0; padding:0; }
|
217 |
.chaty-widget-is svg{margin:0; padding:0;}
|
218 |
.chaty-main-widget { display: none; }
|
219 |
.chaty-in-desktop .chaty-main-widget.is-in-desktop { display: block; }
|
221 |
.chaty-widget.hide-widget { display: none !important; }
|
222 |
.chaty-widget, .chaty-widget .get, .chaty-widget .get a { width: <?php echo esc_attr($cht_widget_size+8); ?>px }
|
223 |
.facustom-icon { width: <?php echo esc_attr($cht_widget_size); ?>px; line-height: <?php echo esc_attr($cht_widget_size); ?>px; height: <?php echo esc_attr($cht_widget_size); ?>px; font-size: <?php echo esc_attr(intval($cht_widget_size/2)); ?>px; }
|
|
|
224 |
<?php if(!empty($font_family)) { ?>
|
225 |
.chaty-widget { font-family: <?php echo esc_attr($font_family) ?>; }
|
226 |
<?php } ?>
|
228 |
if(!empty($social['bg_color']) && $social['bg_color'] != "#ffffff") {
|
229 |
?>
|
230 |
.facustom-icon.chaty-btn-<?php echo esc_attr($social['social_channel']) ?> {background-color: <?php echo esc_attr($social['bg_color']) ?>}
|
231 |
+
.chaty-<?php echo esc_attr($social['social_channel']) ?> .color-element {fill: <?php echo esc_attr($social['bg_color']) ?>}
|
232 |
<?php }
|
233 |
} ?>
|
234 |
/*.chaty-widget-i-title.hide-it { display: none !important; }*/
|
235 |
body div.chaty-widget.hide-widget { display: none !important; }
|
236 |
<?php
|
|
|
|
|
|
|
|
|
|
|
237 |
$chaty_css = ob_get_clean();
|
238 |
|
239 |
if($len >= 1 && !empty($settings['social'])) {
|
245 |
|
246 |
/* add js for front end widget */
|
247 |
if(!empty($font_family)) {
|
248 |
+
wp_enqueue_style( 'custom-google-fonts', 'https://fonts.googleapis.com/css?family='.urlencode($font_family), false, false );
|
|
|
|
|
249 |
}
|
250 |
/* WP change this */
|
251 |
wp_enqueue_style( 'chaty-front-css', CHT_PLUGIN_URL."css/chaty-front.min.css", array(), $chaty_updated_on);
|
252 |
wp_add_inline_style('chaty-front-css', $chaty_css);
|
253 |
+
wp_enqueue_script( "chaty-front-end", CHT_PLUGIN_URL."js/cht-front-script.min.js", array( 'jquery' ), $chaty_updated_on);
|
254 |
wp_localize_script('chaty-front-end', 'chaty_settings', $data);
|
255 |
}
|
256 |
endif;
|
335 |
if(!isset($value['fa_icon'])) {
|
336 |
$value['fa_icon'] = ""; // Initialize title if not exists. 2.1.0 change
|
337 |
}
|
|
|
|
|
|
|
338 |
$imageId = $value['image_id'];
|
339 |
$imageUrl = "";
|
340 |
$status = 0;
|
387 |
$help_title = isset($social['help_title'])?$social['help_title']:"Doesn't work?";
|
388 |
$help_text = isset($social['help'])?$social['help']:"";
|
389 |
if(isset($social['help_link']) && !empty($social['help_link'])) {
|
390 |
+
$help_link = $data['help_link'];
|
391 |
}
|
392 |
}
|
393 |
|
394 |
$channel_type = "";
|
395 |
$placeholder = $social['example'];
|
396 |
+
if($social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3") {
|
397 |
if (isset($value['channel_type'])) {
|
398 |
$channel_type = esc_attr__(wp_unslash($value['channel_type']));
|
399 |
}
|
409 |
$help_title = isset($icon['help_title'])?$icon['help_title']:"Doesn't work?";
|
410 |
$help_text = isset($icon['help'])?$icon['help']:"";
|
411 |
if(isset($icon['help_link']) && !empty($icon['help_link'])) {
|
412 |
+
$help_link = $data['help_link'];
|
413 |
}
|
414 |
}
|
415 |
}
|
428 |
<div class="move-icon">
|
429 |
<img src="<?php echo esc_url(plugin_dir_url("")."/chaty/admin/assets/images/move-icon.png") ?>">
|
430 |
</div>
|
431 |
+
<div class="icon icon-md active" data-title="<?php esc_attr_e($value['title']); ?>">
|
432 |
<span style="" class="custom-chaty-image custom-image-<?php echo esc_attr($social['slug']) ?>" id="image_data_<?php echo esc_attr($social['slug']) ?>">
|
433 |
<img src="<?php echo esc_url($imageUrl) ?>" />
|
434 |
<span onclick="remove_chaty_image('<?php echo esc_attr($social['slug']) ?>')" class="remove-icon-img"></span>
|
435 |
</span>
|
436 |
+
<span class="default-chaty-icon <?php echo (isset($value['fa_icon'])&&!empty($value['fa_icon']))?"has-fa-icon":"" ?> custom-icon-<?php echo esc_attr($social['slug']) ?> default_image_<?php echo esc_attr($social['slug']) ?>" >
|
437 |
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
438 |
<?php echo $svg_icon; ?>
|
439 |
</svg>
|
441 |
</span>
|
442 |
</div>
|
443 |
|
444 |
+
<!-- Social Media input -->
|
445 |
+
<div class="channels__input-box">
|
446 |
+
<input data-label="<?php echo esc_attr($social['title']) ?>" placeholder="<?php esc_attr_e($placeholder); ?>" type="text" class="channels__input <?php echo isset($social['attr'])?$social['attr']:"" ?>" name="cht_social_<?php echo esc_attr($social['slug']); ?>[value]" value="<?php esc_attr_e(wp_unslash($value['value'])); ?>" data-gramm_editor="false" id="<?php echo esc_attr($social['slug']); ?>" />
|
447 |
+
</div>
|
|
|
|
|
448 |
<div class="channels__device-box">
|
449 |
<?php
|
450 |
$slug = esc_attr__($this->del_space($social['slug']));
|
465 |
</label>
|
466 |
</div>
|
467 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
468 |
<!-- button for advance setting -->
|
469 |
+
<div class="chaty-settings" onclick="toggle_chaty_setting('<?php echo esc_attr($social['slug']); ?>')">
|
470 |
<a href="javascript:;"><span class="dashicons dashicons-admin-generic"></span> Settings</a>
|
471 |
</div>
|
472 |
|
473 |
+
<!-- example for social media -->
|
474 |
+
<div class="input-example">
|
475 |
+
<?php esc_attr_e('For example', CHT_OPT); ?>:
|
476 |
+
<span class="inline-box channel-example">
|
477 |
+
<?php if($social['slug'] == "Poptin") { ?>
|
478 |
+
<br/>
|
479 |
+
<?php } ?>
|
480 |
+
<?php esc_attr_e($placeholder); ?>
|
481 |
+
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
482 |
</div>
|
483 |
+
|
484 |
+
<!-- checking for extra help message for social media -->
|
485 |
+
<div class="help-section">
|
486 |
+
<?php if((isset($social['help']) && !empty($social['help'])) || isset($social['help_link'])) { ?>
|
487 |
+
<div class="viber-help">
|
488 |
+
<?php if(isset($help_link) && !empty($help_link)) { ?>
|
489 |
+
<a class="help-link" href="<?php echo esc_url($help_link) ?>" target="_blank"><?php esc_attr_e($help_title); ?></a>
|
490 |
+
<?php } else if(isset($help_text) && !empty($help_text)) { ?>
|
491 |
+
<span class="help-text"><?php echo $help_text; ?></span>
|
492 |
+
<span class="help-title"><?php esc_attr_e($help_title); ?></span>
|
493 |
+
<?php } ?>
|
494 |
</div>
|
495 |
+
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
496 |
</div>
|
497 |
</div>
|
|
|
498 |
<!-- advance setting fields: start -->
|
499 |
<?php $class_name = !$this->is_pro()?"not-is-pro":""; ?>
|
500 |
+
<div class="chaty-advance-settings <?php esc_attr_e($class_name); ?>">
|
501 |
<!-- Settings for custom icon and color -->
|
502 |
<div class="chaty-setting-col">
|
503 |
<label>Icon Appearance</label>
|
525 |
</div>
|
526 |
<div class="clear clearfix"></div>
|
527 |
|
528 |
+
<?php if($social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3") {
|
529 |
$channel_type = "";
|
530 |
if(isset($value['channel_type'])) {
|
531 |
$channel_type = esc_attr__(wp_unslash($value['channel_type']));
|
540 |
<option value="<?php echo esc_attr($social['slug']) ?>">Custom channel</option>
|
541 |
<?php foreach ($socials as $social_icon) {
|
542 |
$selected = ($social_icon['slug'] == $channel_type)?"selected":"";
|
543 |
+
if ($social_icon['slug'] != 'Custom_Link' && $social_icon['slug'] != 'Link' && $social_icon['slug'] != 'Custom_Link_3') { ?>
|
544 |
<option <?php echo esc_attr($selected) ?> value="<?php echo esc_attr($social_icon['slug']) ?>"><?php echo esc_attr($social_icon['title']) ?></option>
|
545 |
<?php }
|
546 |
}?>
|
550 |
<div class="clear clearfix"></div>
|
551 |
<?php } ?>
|
552 |
|
553 |
+
<?php if($this->is_pro()) { ?>
|
554 |
+
<!-- Settings for custom title -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
555 |
<div class="chaty-setting-col">
|
556 |
+
<label>On Hover Text</label>
|
557 |
<div>
|
558 |
+
<!-- input for custom title -->
|
559 |
+
<input type="text" class="chaty-title" name="cht_social_<?php echo esc_attr($social['slug']); ?>[title]" value="<?php esc_attr_e($value['title']) ?>">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
560 |
</div>
|
561 |
</div>
|
|
|
|
|
|
|
562 |
<div class="clear clearfix"></div>
|
563 |
<div class="Whatsapp-settings advanced-settings">
|
564 |
<!-- advance setting for Whatsapp -->
|
615 |
</div>
|
616 |
</div>
|
617 |
</div>
|
618 |
+
<div class="Link-settings Custom_Link-settings advanced-settings">
|
619 |
<?php $is_checked = (!isset($value['new_window']) || $value['new_window'] == 1)?1:0; ?>
|
620 |
<!-- Advance setting for Custom Link -->
|
621 |
<div class="clear clearfix"></div>
|
649 |
</div>
|
650 |
</div>
|
651 |
<?php } else { ?>
|
652 |
+
<div class="clear clearfix"></div>
|
653 |
+
<div class="chaty-setting-col">
|
654 |
+
<label>On Hover Text</label>
|
655 |
+
<div>
|
656 |
+
<input type="text" class="chaty-title" name="cht_social_<?php echo esc_attr($social['slug']); ?>[title]" value="<?php esc_attr_e($value['title']) ?>">
|
657 |
+
</div>
|
658 |
+
</div>
|
659 |
<div class="clear clearfix"></div>
|
660 |
<div class="Whatsapp-settings advanced-settings">
|
661 |
<?php $pre_set_message = isset($value['pre_set_message'])?$value['pre_set_message']:""; ?>
|
702 |
</div>
|
703 |
</div>
|
704 |
</div>
|
705 |
+
<div class="Link-settings Custom_Link-settings advanced-settings">
|
706 |
<?php $is_checked = 1; ?>
|
707 |
<div class="clear clearfix"></div>
|
708 |
<div class="chaty-setting-col">
|
772 |
}
|
773 |
$value = get_option('cht_social'.$this->widget_number.'_' . $social['slug']); // get saved settings for button
|
774 |
if ($value) {
|
775 |
+
if (!empty($value['value'])) {
|
|
|
|
|
|
|
776 |
$slug = strtolower($social['slug']);
|
777 |
$url = "";
|
778 |
$mobile_url = "";
|
782 |
|
783 |
$channel_type = $slug;
|
784 |
|
|
|
|
|
|
|
|
|
785 |
$svg_icon = $social['svg'];
|
786 |
+
if($slug == "link" || $slug == "custom_link" || $slug == "custom_link_3") {
|
787 |
if(isset($value['channel_type']) && !empty($value['channel_type'])) {
|
788 |
$channel_type = $value['channel_type'];
|
789 |
|
800 |
if($channel_type == "viber") {
|
801 |
/* Viber change to exclude + from number for desktop */
|
802 |
$val = $value['value'];
|
803 |
+
$fc = substr($val, 0, 1);
|
804 |
+
if($fc == "+") {
|
805 |
+
$length = -1*(strlen($val)-1);
|
806 |
+
$val = substr($val, $length);
|
807 |
+
}
|
808 |
+
if(!wp_is_mobile()) {
|
809 |
+
/* Viber change to include + from number for mobile */
|
810 |
+
$val = "+".$val;
|
|
|
|
|
811 |
}
|
812 |
} else if($channel_type == "whatsapp") {
|
813 |
/* Whatspp change to exclude + from phone number */
|
852 |
}
|
853 |
|
854 |
$on_click_fn = "";
|
|
|
|
|
|
|
855 |
/* get custom icon background color if exists. version 2.1.0 change */
|
856 |
if(!isset($value['bg_color']) || empty($value['bg_color'])) {
|
857 |
$value['bg_color'] = '';
|
871 |
} else {
|
872 |
$desktop_target = "_blank";
|
873 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
874 |
} else if($channel_type == "phone") {
|
875 |
/* setting for Phone */
|
876 |
+
$url = "tel: ".$val;
|
877 |
} else if($channel_type == "sms") {
|
878 |
/* setting for SMS */
|
879 |
$url = "sms:".$val;
|
887 |
$url = esc_url($val);
|
888 |
$desktop_target = "_blank";
|
889 |
$mobile_target = "_blank";
|
890 |
+
} else if($channel_type == "link" || $channel_type == "custom_link" || $channel_type == "custom_link_3") {
|
891 |
$is_exist = strpos($val, "javascript");
|
892 |
+
if($is_exist === false) {
|
|
|
|
|
|
|
893 |
$url = esc_url($val);
|
894 |
+
if($channel_type == "custom_link" ||$channel_type == "custom_link_3" || $channel_type == "link") {
|
895 |
$desktop_target = (isset($value['new_window']) && $value['new_window'] == 0)?"":"_blank";
|
896 |
$mobile_target = (isset($value['new_window']) && $value['new_window'] == 0)?"":"_blank";
|
897 |
}
|
971 |
$url = esc_url($val);
|
972 |
$desktop_target = "_blank";
|
973 |
$mobile_target = "_blank";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
974 |
}
|
975 |
|
976 |
/* Instagram checking for custom color */
|
987 |
$mobile_url = $url;
|
988 |
}
|
989 |
|
990 |
+
$svg = '<svg class="ico_d" width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg" style="transform: rotate(0deg);">'.$svg.'</svg>';
|
|
|
|
|
991 |
|
992 |
$data = array(
|
993 |
'val' => esc_attr__(wp_unslash($val)),
|
1006 |
'is_desktop' => $is_desktop,
|
1007 |
'mobile_url' => $mobile_url,
|
1008 |
'on_click' => $on_click_fn,
|
1009 |
+
"has_font" => 0
|
|
|
|
|
|
|
1010 |
);
|
1011 |
$arr[] = $data;
|
1012 |
}
|
1032 |
$res = false;
|
1033 |
foreach ($social as $name) {
|
1034 |
$value = get_option('cht_social_' . strtolower($name));
|
1035 |
+
$res = $res || !empty($value['value']);
|
1036 |
}
|
1037 |
return $res;
|
1038 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1039 |
}
|
1040 |
|
1041 |
return new CHT_Frontend();
|
js/cht-front-script.js
CHANGED
@@ -26,7 +26,7 @@
|
|
26 |
!function (t) {
|
27 |
var animationTimer;
|
28 |
var isWidgetEnabled = 0;
|
29 |
-
var e;
|
30 |
var animationClass = ".i-trigger .chaty-widget-i .svg, .i-trigger .chaty-widget-i .widget-img, .i-trigger .chaty-widget-i .facustom-icon";
|
31 |
|
32 |
function i(t) {
|
@@ -37,572 +37,521 @@
|
|
37 |
}
|
38 |
}
|
39 |
|
|
|
40 |
var n = new Date;
|
41 |
|
42 |
function o() {
|
43 |
-
|
44 |
-
jQuery(".chaty-widget").removeClass("chaty-widget-show");
|
45 |
-
}
|
46 |
}
|
47 |
|
48 |
-
jQuery(document).ready(function(){
|
49 |
-
""
|
50 |
-
e =
|
51 |
-
"
|
52 |
-
var
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
e.object_settings.social[t].href_url = e.object_settings.social[t].mobile_url;
|
78 |
-
}
|
79 |
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
viberVal = "+" + viberVal;
|
87 |
-
}
|
88 |
-
}
|
89 |
-
e.object_settings.social[t].href_url = viberVal;
|
90 |
-
}
|
91 |
-
e.object_settings.social[t].href_url = "viber://chat?number=" + e.object_settings.social[t].href_url;
|
92 |
-
}
|
93 |
-
if(parseInt(e.object_settings.social[t].has_custom_popup) == 1) {
|
94 |
-
if(e.object_settings.social[t].channel_type == "whatsapp") {
|
95 |
-
if(e.object_settings.social[t].is_default_open) {
|
96 |
-
if(is_chaty_settings_expired("cht_whatsapp_window")) {
|
97 |
-
extra_class += " open-it-by-default";
|
98 |
-
}
|
99 |
-
}
|
100 |
-
targetAction = "";
|
101 |
-
e.object_settings.social[t].mobile_target = "";
|
102 |
-
e.object_settings.social[t].desktop_target = "";
|
103 |
-
extra_class += " has-custom-chaty-popup whatsapp-button";
|
104 |
-
} else if(e.object_settings.social[t].channel_type == "contact_us") {
|
105 |
-
extra_class += " has-custom-chaty-popup whatsapp-button";
|
106 |
}
|
|
|
107 |
}
|
108 |
-
|
109 |
-
if (e.object_settings.social[t].on_click != "") {
|
110 |
-
onclick_settings = ' onclick="' + e.object_settings.social[t].on_click + '"';
|
111 |
-
}
|
112 |
-
socialString = '<div data-popup="'+e.object_settings.social[t].popup_html+'" class="chaty-widget-i chaty-main-widget ' + desktopClass + " " + mobileClass + " " + extra_class + " channel-" + e.object_settings.social[t].social_channel + '" data-title="' + e.object_settings.social[t].val + '" id="chaty-channel-' + e.object_settings.social[t].social_channel + '" data-channel="' + e.object_settings.social[t].social_channel + '" data-code="' + e.object_settings.social[t].qr_code_image + '">',
|
113 |
-
bgColor = "",
|
114 |
-
"" != e.object_settings.social[t].bg_color && (socialString += "<style>#chaty-channel-" + e.object_settings.social[t].social_channel + " .color-element {fill: " + e.object_settings.social[t].bg_color + "; background: " + e.object_settings.social[t].bg_color + "}</style>", bgColor = "style='background-color: " + e.object_settings.social[t].bg_color + ";'"), socialString += "<a class='set-url-target' " + onclick_settings + " rel='noopener' data-mobile-target='" + e.object_settings.social[t].mobile_target + "' data-desktop-target='" + e.object_settings.social[t].desktop_target + "' target='" + targetAction + "' href='" + e.object_settings.social[t].href_url + "' >", socialString += "<span class='sr-only'>"+e.object_settings.social[t].title+"</span>", "" != e.object_settings.social[t].img_url ? socialString += "<span " + bgColor + " class='chaty-social-img'><img src='" + e.object_settings.social[t].img_url + "' alt='" + e.object_settings.social[t].title + "' /></span>" : socialString += e.object_settings.social[t].default_icon, socialString += "</a>", socialString += "<div class='chaty-widget-i-title'><p>" + e.object_settings.social[t].title + "</p></div>", socialString += "</div>";
|
115 |
-
i += socialString;
|
116 |
-
}), i
|
117 |
-
}(e), l = e.object_settings.social, Object.keys(l).length >= 1) {
|
118 |
-
d += "</div>", d += '<div class="i-trigger">';
|
119 |
-
var h = i("display_cta");
|
120 |
-
var CU = current_url = window.location.origin;
|
121 |
-
CU = CU.replace("https://", "");
|
122 |
-
CU = CU.replace("http://", "");
|
123 |
-
if ("" != g && "none" != h) var p = "true"; else p = "no-tooltip";
|
124 |
-
if (chaty_settings.object_settings.click_setting != 'click') {
|
125 |
-
p = true;
|
126 |
}
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
|
|
|
|
154 |
}
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
|
|
|
|
|
|
165 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
|
167 |
-
|
168 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
}
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
n.find(".chaty-widget-is").height(e * (parseInt(a) + 8));
|
189 |
n.find(".chaty-widget-is").width(parseInt(a) + 8);
|
190 |
-
|
191 |
-
if (chaty_settings.object_settings.mode == "horizontal") {
|
192 |
-
n.find(".chaty-widget-is").css({top: "0"});
|
193 |
-
n.find(".chaty-widget-is").width(e * (parseInt(a) + 8));
|
194 |
-
n.find(".chaty-widget-is").height(parseInt(a) + 8);
|
195 |
-
} else {
|
196 |
-
n.find(".chaty-widget-is").height(e * (parseInt(a) + 8));
|
197 |
-
n.find(".chaty-widget-is").width(parseInt(a) + 8);
|
198 |
-
}
|
199 |
-
}
|
200 |
-
|
201 |
-
if(jQuery(".open-it-by-default").length) {
|
202 |
-
jQuery(".open-it-by-default").trigger("click");
|
203 |
}
|
|
|
204 |
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
|
|
|
|
237 |
eventCategory: "chaty_" + channelName,
|
238 |
-
|
239 |
-
})
|
240 |
-
var e = window.ga.getAll()[0];
|
241 |
-
e && e.send("event", "click", {
|
242 |
-
eventCategory: "chaty_" + channelName,
|
243 |
-
eventAction: "chaty_" + channelName
|
244 |
-
})
|
245 |
-
}
|
246 |
-
}), t("body").on("click", ".wechat", function () {
|
247 |
-
var t = jQuery(".chaty-widget .chaty-widget-i.wechat").attr("data-code");
|
248 |
-
null != t && "" != t && (jQuery("#wechat-qr-code").length || (htmlString = "<div id='wechat-qr-code' class='wechat-qr-code'>", htmlString += '<div class="wechat-box-head">WeChat<svg xmlns="http://www.w3.org/2000/svg" class="close_facebook" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="612px" height="612px" viewBox="0 0 612 612" style="fill: #fff; float: right; margin-top: 4px;" xml:space="preserve"><path xmlns="http://www.w3.org/2000/svg" d="M268.064,256.75l138.593-138.593c3.124-3.124,3.124-8.189,0-11.313c-3.125-3.124-8.189-3.124-11.314,0L256.75,245.436 L118.157,106.843c-3.124-3.124-8.189-3.124-11.313,0c-3.125,3.124-3.125,8.189,0,11.313L245.436,256.75L106.843,395.343 c-3.125,3.125-3.125,8.189,0,11.314c1.562,1.562,3.609,2.343,5.657,2.343s4.095-0.781,5.657-2.343L256.75,268.064l138.593,138.593 c1.563,1.562,3.609,2.343,5.657,2.343s4.095-0.781,5.657-2.343c3.124-3.125,3.124-8.189,0-11.314L268.064,256.75z"></path></svg></div>', htmlString += "<div class='wechat-box'><img src='" + t + "' alt='QR Code' /><a href='javascript:;'>", htmlString += "</a></div></div>", jQuery("body").append(htmlString)), jQuery("#wechat-qr-code").show())
|
249 |
-
});
|
250 |
-
var d = i("display_cta");
|
251 |
-
if (chaty_settings.object_settings.display_state == "hover") {
|
252 |
-
n.find(".i-trigger-open").mouseenter(function (e) {
|
253 |
-
e.stopPropagation();
|
254 |
-
removeAnimation();
|
255 |
-
//t(this).removeClass("active_clos");
|
256 |
-
o(), t(".chaty-widget-is").removeAttr("id"), t(this).hasClass("active_clos") || t(".chaty-widget-i.facebook").hasClass("active") || n.hasClass("one_widget") || (r(), t(n).hasClass("chaty-widget-show") || (n.addClass("chaty-widget-show"), n.removeClass("none-widget-show")));
|
257 |
-
if(jQuery(".chaty-widget").hasClass("one_widget")) {
|
258 |
-
jQuery(".chaty-widget").removeClass("chaty-widget-show");
|
259 |
-
}
|
260 |
-
//o();
|
261 |
-
if (chaty_settings.object_settings.click_setting == 'click') {
|
262 |
-
jQuery("body .chaty-widget-i-title.true").remove();
|
263 |
-
}
|
264 |
-
});
|
265 |
-
} else {
|
266 |
-
n.find(".i-trigger-open").click(function (e) {
|
267 |
-
e.stopPropagation();
|
268 |
-
removeAnimation();
|
269 |
-
o(), t(".chaty-widget-is").removeAttr("id"), t(this).hasClass("active_clos") || t(".chaty-widget-i.facebook").hasClass("active") || n.hasClass("one_widget") || (r(), t(n).hasClass("chaty-widget-show") || (n.addClass("chaty-widget-show"), n.removeClass("none-widget-show")));
|
270 |
-
o();
|
271 |
-
if (chaty_settings.object_settings.click_setting == 'click') {
|
272 |
-
jQuery("body .chaty-widget-i-title.true").remove();
|
273 |
-
}
|
274 |
-
jQuery(".cht-pending-message").remove();
|
275 |
-
});
|
276 |
}
|
277 |
-
|
278 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
removeAnimation();
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
t(".i-trigger-open").addClass("no-tooltip")
|
286 |
}
|
287 |
-
|
288 |
-
|
|
|
|
|
289 |
removeAnimation();
|
290 |
-
|
291 |
-
|
292 |
-
|
|
|
293 |
}
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
if (jQuery("body").hasClass("chaty-in-desktop")) {
|
311 |
-
activeWidget = jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop").length;
|
312 |
-
} else {
|
313 |
-
activeWidget = jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile").length;
|
314 |
}
|
315 |
-
|
316 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
} else {
|
318 |
-
|
319 |
-
|
|
|
|
|
|
|
|
|
|
|
320 |
} else {
|
321 |
-
jQuery(".chaty-widget
|
|
|
322 |
}
|
323 |
-
|
324 |
-
|
325 |
-
if (jQuery("body").hasClass("chaty-in-desktop")) {
|
326 |
-
htmlToAdd = jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop:first").clone();
|
327 |
-
jQuery(".i-trigger").html(htmlToAdd);
|
328 |
-
} else {
|
329 |
-
htmlToAdd = jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile:first").clone();
|
330 |
-
jQuery(".i-trigger").html(htmlToAdd);
|
331 |
-
}
|
332 |
-
jQuery(".i-trigger .chaty-widget-i-title p").html(chaty_settings.object_settings.cta);
|
333 |
-
jQuery(".chaty-widget").addClass("one_widget");
|
334 |
-
|
335 |
-
jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function () {
|
336 |
-
o();
|
337 |
-
if (chaty_settings.object_settings.click_setting == 'click') {
|
338 |
-
jQuery(".chaty-widget-i-title").remove();
|
339 |
-
jQuery(".chaty-widget").addClass("hide-tooltip-arrow");
|
340 |
-
jQuery(".chaty-widget").removeClass("chaty-widget-show");
|
341 |
-
}
|
342 |
-
set_cta_status();
|
343 |
-
removeAnimation();
|
344 |
-
});
|
345 |
-
jQuery(".chaty-widget").removeClass("chaty-widget-show");
|
346 |
-
} else {
|
347 |
-
jQuery(".chaty-widget").removeClass("one_widget");
|
348 |
-
if (chaty_settings.object_settings.click_setting == 'click') {
|
349 |
-
jQuery(".i-trigger .chaty-main-widget").remove();
|
350 |
-
}
|
351 |
-
jQuery(".chaty-close-settings").show();
|
352 |
-
jQuery(".chaty-widget-i-title").removeClass("hide-it");
|
353 |
-
jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function () {
|
354 |
-
o();
|
355 |
-
set_cta_status();
|
356 |
-
jQuery(".i-trigger .chaty-widget-i-title").addClass("hide-it");
|
357 |
-
// jQuery(".chaty-widget").addClass("hide-tooltip-arrow");
|
358 |
-
removeAnimation();
|
359 |
-
});
|
360 |
|
361 |
-
|
362 |
-
|
|
|
|
|
363 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
364 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
}
|
|
|
366 |
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
|
|
|
|
|
|
383 |
checkForTime = 1;
|
384 |
-
}
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
}
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
}
|
393 |
-
|
394 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
395 |
}
|
396 |
-
} else if
|
397 |
-
if
|
398 |
-
|
399 |
}
|
400 |
-
}
|
401 |
-
|
402 |
-
if (utcHours > displayRules[rule].start_hours && utcHours < displayRules[rule].end_hours) {
|
403 |
hourStatus = 1;
|
404 |
-
} else if (utcHours == displayRules[rule].start_hours && utcHours < displayRules[rule].end_hours) {
|
405 |
-
if (utcMin >= displayRules[rule].start_min) {
|
406 |
-
hourStatus = 1;
|
407 |
-
}
|
408 |
-
} else if (utcHours > displayRules[rule].start_hours && utcHours == displayRules[rule].end_hours) {
|
409 |
-
if (utcMin <= displayRules[rule].end_min) {
|
410 |
-
hourStatus = 1;
|
411 |
-
}
|
412 |
-
} else if (utcHours == displayRules[rule].start_hours && utcHours == displayRules[rule].end_hours) {
|
413 |
-
if (utcMin >= displayRules[rule].start_min && utcMin <= displayRules[rule].end_min) {
|
414 |
-
hourStatus = 1;
|
415 |
-
}
|
416 |
}
|
|
|
417 |
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
}
|
422 |
}
|
423 |
}
|
|
|
424 |
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
}
|
431 |
}
|
432 |
-
} else {
|
433 |
-
displayStatus = 1;
|
434 |
}
|
435 |
} else {
|
436 |
displayStatus = 1;
|
437 |
}
|
|
|
|
|
|
|
438 |
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
jQuery(".chaty-widget").addClass("hide-tooltip-arrow");
|
444 |
-
}
|
445 |
-
setInterval(function () {
|
446 |
-
//set_cta_status();
|
447 |
-
}, 10000);
|
448 |
}
|
|
|
|
|
|
|
|
|
|
|
449 |
|
450 |
-
|
451 |
-
|
452 |
-
jQuery(".chaty-widget-show .i-trigger-open svg").css("transform", "rotate(0deg)");
|
453 |
|
454 |
-
|
455 |
-
|
456 |
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
|
|
|
|
|
|
|
|
|
|
461 |
});
|
462 |
-
} else {
|
463 |
-
if (!jQuery(".i-trigger .chaty-widget-i .wrap-svg").length) {
|
464 |
-
jQuery(".i-trigger .chaty-widget-i svg").wrap(function () {
|
465 |
-
return "<div class='wrap-svg'></div>";
|
466 |
-
});
|
467 |
-
}
|
468 |
}
|
469 |
}
|
|
|
470 |
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
jQuery(".i-trigger .i-trigger-open.single-button svg").after("<span class='cht-pending-message'>" + chaty_settings.object_settings.number_of_messages + "</span>");
|
478 |
-
} else {
|
479 |
-
jQuery(".i-trigger .i-trigger-open, .i-trigger .i-trigger-open.single-button svg").after("<span class='cht-pending-message'>" + chaty_settings.object_settings.number_of_messages + "</span>");
|
480 |
-
}
|
481 |
-
} else {
|
482 |
-
jQuery(".i-trigger .i-trigger-open, .i-trigger .i-trigger-open.single-button").after("<span class='cht-pending-message'>" + chaty_settings.object_settings.number_of_messages + "</span>");
|
483 |
-
}
|
484 |
-
jQuery(".cht-pending-message").css("color", chaty_settings.object_settings.number_color);
|
485 |
-
jQuery(".cht-pending-message").css("background", chaty_settings.object_settings.number_bg_color);
|
486 |
}
|
487 |
-
|
488 |
-
jQuery(
|
489 |
-
jQuery(".cht-pending-message").remove();
|
490 |
-
});
|
491 |
}
|
492 |
|
493 |
-
jQuery("
|
494 |
-
|
495 |
});
|
|
|
|
|
|
|
|
|
|
|
496 |
|
497 |
-
|
498 |
-
|
499 |
-
|
|
|
|
|
|
|
|
|
|
|
500 |
jQuery(".chaty-widget").removeClass("hide-widget");
|
|
|
|
|
|
|
|
|
|
|
|
|
501 |
show_chaty_widget();
|
502 |
} else {
|
503 |
-
|
504 |
-
if (chaty_settings.object_settings.time_trigger == "
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
511 |
}
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
|
|
518 |
jQuery(".chaty-widget").removeClass("hide-widget");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
519 |
show_chaty_widget();
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
obj.addEventListener(evt, fn, false);
|
527 |
-
} else if (obj.attachEvent) {
|
528 |
-
obj.attachEvent("on" + evt, fn);
|
529 |
-
}
|
530 |
-
}
|
531 |
-
|
532 |
-
addEvent(document, 'mouseout', function (evt) {
|
533 |
-
if (evt.toElement == null && evt.relatedTarget == null) {
|
534 |
-
var widget_status = get_chaty_cookie("cta_exit_intent_shown");
|
535 |
-
if (widget_status == null) {
|
536 |
-
set_chaty_cookie("cta_exit_intent_shown", "yes", 1);
|
537 |
-
isWidgetEnabled = true;
|
538 |
-
jQuery(".chaty-widget").removeClass("hide-widget");
|
539 |
-
jQuery(".chaty-widget").addClass("chaty-animation-widget");
|
540 |
-
jQuery(".chaty-animation-widget").append("<div class='chaty-nav'></div>");
|
541 |
-
if (chaty_settings.object_settings.display_state == "open" && chaty_settings.object_settings.has_close_button == "no") {
|
542 |
-
chaty_settings.object_settings.has_close_button = "no";
|
543 |
-
} else {
|
544 |
-
chaty_settings.object_settings.display_state = "open";
|
545 |
-
chaty_settings.object_settings.has_close_button = "yes";
|
546 |
-
}
|
547 |
-
show_chaty_widget();
|
548 |
-
if (chaty_settings.object_settings.position == "left") {
|
549 |
jQuery(".chaty-widget").addClass("left-position");
|
550 |
-
} else
|
551 |
jQuery(".chaty-widget").addClass("right-position");
|
552 |
-
} else if (chaty_settings.object_settings.position == "custom") {
|
553 |
-
if (e.object_settings.pos_side == "left") {
|
554 |
-
jQuery(".chaty-widget").addClass("left-position");
|
555 |
-
} else {
|
556 |
-
jQuery(".chaty-widget").addClass("right-position");
|
557 |
-
}
|
558 |
}
|
559 |
-
removeAnimation();
|
560 |
-
setTimeout(function () {
|
561 |
-
jQuery(".chaty-animation-widget").addClass("active");
|
562 |
-
}, 100);
|
563 |
-
setTimeout(function () {
|
564 |
-
jQuery(".chaty-nav").remove();
|
565 |
-
}, 2500);
|
566 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
567 |
}
|
568 |
-
}
|
569 |
-
}
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
}
|
582 |
}
|
583 |
-
}
|
584 |
-
}
|
585 |
}
|
586 |
}
|
587 |
}
|
588 |
-
} else {
|
589 |
-
jQuery(".chaty-widget").addClass("hide-widget");
|
590 |
-
}
|
591 |
-
});
|
592 |
-
jQuery(".chaty-widget-i-title").each(function () {
|
593 |
-
if (jQuery(this).text() == "") {
|
594 |
-
jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow");
|
595 |
-
jQuery(this).remove();
|
596 |
}
|
597 |
-
}
|
598 |
-
|
599 |
-
|
600 |
-
|
|
|
|
|
|
|
|
|
601 |
}
|
602 |
-
|
603 |
-
jQuery("body").addClass(chaty_settings.object_settings.mode + "-cht-menu");
|
604 |
-
jQuery("body").addClass(chaty_settings.object_settings.position + "-cht-position");
|
605 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
606 |
});
|
607 |
|
608 |
jQuery(document).on("click", ".trigger-chaty-button", function(){
|
@@ -614,135 +563,6 @@
|
|
614 |
}
|
615 |
});
|
616 |
|
617 |
-
jQuery(document).on("click", ".has-custom-chaty-popup.whatsapp-button", function(e){
|
618 |
-
var timeInterval = 0;
|
619 |
-
if(jQuery("#chaty-inline-popup").length) {
|
620 |
-
var thisIndex = jQuery(this).data("data-index");
|
621 |
-
jQuery("#chaty-widget-"+thisIndex).removeClass("chaty-popup-open");
|
622 |
-
jQuery(".chaty-popup-open").removeClass("chaty-popup-open");
|
623 |
-
jQuery(".chaty-widget.hide-block").removeClass("active");
|
624 |
-
}
|
625 |
-
if(jQuery(this).hasClass("open-it-by-default")) {
|
626 |
-
e.preventDefault();
|
627 |
-
}
|
628 |
-
jQuery("#chaty-inline-popup").remove();
|
629 |
-
if(jQuery(this).attr("data-popup") != undefined && jQuery(this).attr("data-popup") != "") {
|
630 |
-
var thisIndex = "";
|
631 |
-
var widgetIndex = "";
|
632 |
-
jQuery(".chaty-widget").addClass("hide-block");
|
633 |
-
jQuery(".chaty-widget").addClass("chaty-popup-open");
|
634 |
-
var htmlString = "<div data-index='"+thisIndex+"' id='chaty-inline-popup' class='chaty-inline-popup chaty-popup-form "+jQuery(this).data("channel")+"-channel'>";
|
635 |
-
htmlString += jQuery(this).attr("data-popup");
|
636 |
-
htmlString + "</div>";
|
637 |
-
jQuery("body").append(htmlString);
|
638 |
-
|
639 |
-
if(jQuery(".chaty-inline-popup .default-value").length) {
|
640 |
-
jQuery(".chaty-whatsapp-msg").val(jQuery(".chaty-inline-popup .default-value").text());
|
641 |
-
jQuery(".chaty-whatsapp-phone").val(jQuery(".chaty-inline-popup .default-msg-phone").text());
|
642 |
-
jQuery(".chaty-whatsapp-message").html(jQuery(".chaty-inline-popup .default-msg-value").html());
|
643 |
-
}
|
644 |
-
jQuery(".chaty-widget").addClass("active");
|
645 |
-
setTimeout(function(){
|
646 |
-
jQuery("#chaty-inline-popup").addClass("active");
|
647 |
-
}, 150);
|
648 |
-
jQuery(".chaty-whatsapp-msg").focus();
|
649 |
-
}
|
650 |
-
});
|
651 |
-
|
652 |
-
jQuery(document).on("click", ".close-chaty-popup, .close-chaty-box", function(){
|
653 |
-
if(jQuery(this).hasClass("is-whatsapp-btn")) {
|
654 |
-
save_chaty_settings("cht_whatsapp_window");
|
655 |
-
}
|
656 |
-
jQuery("#chaty-inline-popup").removeClass("active");
|
657 |
-
|
658 |
-
jQuery(".chaty-widget").removeClass("chaty-popup-open");
|
659 |
-
setTimeout(function(){
|
660 |
-
jQuery(".chaty-widget.hide-block").removeClass("active");
|
661 |
-
}, 250);
|
662 |
-
});
|
663 |
-
|
664 |
-
jQuery(document).on("submit", ".whatsapp-chaty-form", function(e){
|
665 |
-
save_chaty_settings("cht_whatsapp_window");
|
666 |
-
jQuery("#chaty-inline-popup").removeClass("active");
|
667 |
-
jQuery(".chaty-widget").removeClass("chaty-popup-open");
|
668 |
-
setTimeout(function(){
|
669 |
-
jQuery(".chaty-widget.hide-block").removeClass("active");
|
670 |
-
}, 250);
|
671 |
-
});
|
672 |
-
|
673 |
-
|
674 |
-
jQuery(document).on("submit", ".chaty-contact-form-data", function(e){
|
675 |
-
var inputErrorCounter = 0;
|
676 |
-
jQuery(".has-chaty-error").removeClass("has-chaty-error");
|
677 |
-
jQuery(".chaty-error-msg").remove();
|
678 |
-
jQuery(".chaty-ajax-error-message").remove();
|
679 |
-
jQuery(".chaty-ajax-success-message").remove();
|
680 |
-
jQuery(this).find(".is-required").each(function(){
|
681 |
-
if(jQuery.trim(jQuery(this).val()) == "") {
|
682 |
-
inputErrorCounter++;
|
683 |
-
jQuery(this).addClass("has-chaty-error");
|
684 |
-
}
|
685 |
-
});
|
686 |
-
if(inputErrorCounter == 0) {
|
687 |
-
var $form = jQuery(this);
|
688 |
-
jQuery(".chaty-contact-submit-btn").attr("disabled", true);
|
689 |
-
jQuery.ajax({
|
690 |
-
url: chaty_settings.ajax_url,
|
691 |
-
data: {
|
692 |
-
action: "chaty_front_form_save_data",
|
693 |
-
name: $form.find(".chaty-field-name").length?$form.find(".chaty-field-name").val():"",
|
694 |
-
email: $form.find(".chaty-field-email").length?$form.find(".chaty-field-email").val():"",
|
695 |
-
message: $form.find(".chaty-field-message").length?$form.find(".chaty-field-message").val():"",
|
696 |
-
nonce: $form.find(".chaty-field-nonce").length?$form.find(".chaty-field-nonce").val():"",
|
697 |
-
channel: $form.find(".chaty-field-channel").length?$form.find(".chaty-field-channel").val():"",
|
698 |
-
widget: $form.find(".chaty-field-widget").length?$form.find(".chaty-field-widget").val():"",
|
699 |
-
ref_url: window.location.href
|
700 |
-
},
|
701 |
-
type: 'post',
|
702 |
-
async: true,
|
703 |
-
defer: true,
|
704 |
-
success: function (response) {
|
705 |
-
response = jQuery.parseJSON(response);
|
706 |
-
jQuery(".chaty-ajax-error-message").remove();
|
707 |
-
jQuery(".chaty-ajax-success-message").remove();
|
708 |
-
jQuery(".chaty-contact-submit-btn").attr("disabled", false);
|
709 |
-
if(response.status == 1) {
|
710 |
-
jQuery(".chaty-contact-footer").append("<div class='chaty-ajax-success-message'>"+response.message+"</div>");
|
711 |
-
jQuery(".chaty-field-name, .chaty-field-email, .chaty-field-message").val("");
|
712 |
-
if(response.redirect_action == "yes") {
|
713 |
-
if( response.link_in_new_tab == "yes" ) {
|
714 |
-
window.open( response.redirect_link, '_blank' );
|
715 |
-
} else {
|
716 |
-
window.location = response.redirect_link;
|
717 |
-
}
|
718 |
-
}
|
719 |
-
if(response.close_form_after == "yes") {
|
720 |
-
setTimeout(function(){
|
721 |
-
jQuery("#chaty-inline-popup").removeClass("active");
|
722 |
-
jQuery(".chaty-widget").removeClass("chaty-popup-open");
|
723 |
-
setTimeout(function(){
|
724 |
-
jQuery(".chaty-widget.hide-block").removeClass("active");
|
725 |
-
}, 250);
|
726 |
-
}, parseInt(response.close_form_after_seconds)*1000);
|
727 |
-
}
|
728 |
-
} else if(response.error == 1) {
|
729 |
-
if(response.errors.length) {
|
730 |
-
for(var i=0; i<response.errors.length; i++) {
|
731 |
-
jQuery("."+response.errors[i].field).addClass("has-chaty-error");
|
732 |
-
jQuery("."+response.errors[i].field).after("<span class='chaty-error-msg'>"+response.errors[i].message+"</span>");
|
733 |
-
}
|
734 |
-
}
|
735 |
-
} else {
|
736 |
-
jQuery(".chaty-contact-footer").append("<div class='chaty-ajax-error-message'>"+response.message+"</div>");
|
737 |
-
}
|
738 |
-
}
|
739 |
-
});
|
740 |
-
} else {
|
741 |
-
jQuery(".has-chaty-error:first").focus();
|
742 |
-
}
|
743 |
-
return false;
|
744 |
-
});
|
745 |
-
|
746 |
function get_cta_status() {
|
747 |
var cookieStr = "cta";
|
748 |
var cookieValue = check_for_chaty_settinigs(cookieStr);
|
@@ -886,7 +706,7 @@
|
|
886 |
}, 1000);
|
887 |
}, 5000);
|
888 |
} else if (activeWidget == 1) {
|
889 |
-
animationClass = ".chaty-main-widget
|
890 |
jQuery(animationClass).removeClass("chaty-animation-" + chaty_settings.object_settings.animation_class).removeClass("start-now");
|
891 |
setTimeout(function () {
|
892 |
jQuery(animationClass).addClass("chaty-animation-" + chaty_settings.object_settings.animation_class).addClass("start-now");
|
26 |
!function (t) {
|
27 |
var animationTimer;
|
28 |
var isWidgetEnabled = 0;
|
29 |
+
var e = chaty_settings;
|
30 |
var animationClass = ".i-trigger .chaty-widget-i .svg, .i-trigger .chaty-widget-i .widget-img, .i-trigger .chaty-widget-i .facustom-icon";
|
31 |
|
32 |
function i(t) {
|
37 |
}
|
38 |
}
|
39 |
|
40 |
+
|
41 |
var n = new Date;
|
42 |
|
43 |
function o() {
|
44 |
+
|
|
|
|
|
45 |
}
|
46 |
|
47 |
+
"" != i("display_cta"), token = "", jQuery(document).ready(function () {
|
48 |
+
"true" == e.object_settings.active && (function (e, n) {
|
49 |
+
var o = e.object_settings.device, a = "";
|
50 |
+
if ("right" == e.object_settings.position) a = "left: auto;bottom: 25px; right: 25px;"; else if ("left" == e.object_settings.position) a = "right: auto; bottom: 25px; left: 25px;"; else if ("custom" == e.object_settings.position) {
|
51 |
+
var c = e.object_settings.pos_side, s = e.object_settings.bot, r = e.object_settings.side;
|
52 |
+
a = "right" === c ? "left: auto; bottom: " + s + "px; right: " + r + "px" : "left: " + r + "px; bottom: " + s + "px; right: auto"
|
53 |
+
}
|
54 |
+
var g = e.object_settings.cta, d = "", l = e.object_settings.social;
|
55 |
+
var isChatyInMobile = false; //initiate as false
|
56 |
+
if(/(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)
|
57 |
+
|| /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))) {
|
58 |
+
isChatyInMobile = true;
|
59 |
+
}
|
60 |
+
if(isChatyInMobile) {
|
61 |
+
jQuery("body").addClass("chaty-in-mobile");
|
62 |
+
} else {
|
63 |
+
jQuery("body").addClass("chaty-in-desktop");
|
64 |
+
}
|
65 |
+
if (Object.keys(l).length >= 1 && (d = '<div class="chaty-widget hide-widget ' + n + " " + o + ' " style="display:block; ' + a + '" dir="ltr">', d += '<div class="chaty-widget-is" id="transition_disabled">'), d += function (e) {
|
66 |
+
var i = "", n = 0;
|
67 |
+
return t.each(e.object_settings.social, function (t, o) {
|
68 |
+
if (e.object_settings.isPRO && jQuery("body").addClass("has-pro-version"), !e.object_settings.isPRO && "3" == ++n) return !1;
|
69 |
+
extra_class = "", "1" != e.object_settings.analytics && 1 != e.object_settings.analytics || (extra_class += " update-analytics ");
|
70 |
+
var desktopClass = (e.object_settings.social[t].is_desktop == 1)?"is-in-desktop":"";
|
71 |
+
var mobileClass = (e.object_settings.social[t].is_mobile == 1)?"is-in-mobile":"";
|
72 |
+
var targetAction = (e.object_settings.is_mobile == 1)?e.object_settings.social[t].mobile_target:e.object_settings.social[t].desktop_target;
|
73 |
+
if(jQuery("body").hasClass("chaty-in-mobile")) {
|
74 |
+
e.object_settings.social[t].href_url = e.object_settings.social[t].mobile_url;
|
75 |
+
}
|
|
|
|
|
76 |
|
77 |
+
if(e.object_settings.social[t].social_channel == "viber") {
|
78 |
+
if(jQuery("body").hasClass("chaty-in-mobile")) {
|
79 |
+
var viberVal = e.object_settings.social[t].href_url;
|
80 |
+
viberVal = viberVal.replace("+","");
|
81 |
+
if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {
|
82 |
+
viberVal = "+"+viberVal;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
}
|
84 |
+
e.object_settings.social[t].href_url = viberVal;
|
85 |
}
|
86 |
+
e.object_settings.social[t].href_url = "viber://chat?number="+e.object_settings.social[t].href_url;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
}
|
88 |
+
var onclick_settings = "";
|
89 |
+
if(e.object_settings.social[t].on_click != "") {
|
90 |
+
onclick_settings = ' onclick="'+e.object_settings.social[t].on_click+'"';
|
91 |
+
}
|
92 |
+
socialString = '<div class="chaty-widget-i chaty-main-widget ' + desktopClass + " " + mobileClass + " " + extra_class + " channel-" + e.object_settings.social[t].social_channel + '" data-title="' + e.object_settings.social[t].val + '" id="chaty-channel-' + e.object_settings.social[t].social_channel + '" data-channel="' + e.object_settings.social[t].social_channel + '" data-code="' + e.object_settings.social[t].qr_code_image + '">',
|
93 |
+
bgColor = "",
|
94 |
+
"" != e.object_settings.social[t].bg_color && (socialString += "<style>#chaty-channel-" + e.object_settings.social[t].social_channel + " .color-element {fill: " + e.object_settings.social[t].bg_color + "; background: " + e.object_settings.social[t].bg_color + "}</style>", bgColor = "style='background-color: " + e.object_settings.social[t].bg_color + ";'"), socialString += "<a class='set-url-target' "+onclick_settings+" rel='noopener' data-mobile-target='"+e.object_settings.social[t].mobile_target+"' data-desktop-target='"+e.object_settings.social[t].desktop_target+"' target='" + targetAction + "' href='" + e.object_settings.social[t].href_url + "' >", "" != e.object_settings.social[t].img_url ? socialString += "<span " + bgColor + " class='chaty-social-img'><img src='" + e.object_settings.social[t].img_url + "' alt='" + e.object_settings.social[t].title + "' /></span>" : socialString += e.object_settings.social[t].default_icon, socialString += "</a>", socialString += "<div class='chaty-widget-i-title'><p>" + e.object_settings.social[t].title + "</p></div>", socialString += "</div>";
|
95 |
+
i += socialString;
|
96 |
+
}), i
|
97 |
+
}(e), l = e.object_settings.social, Object.keys(l).length >= 1) {
|
98 |
+
d += "</div>", d += '<div class="i-trigger">';
|
99 |
+
var h = i("display_cta");
|
100 |
+
var CU = current_url = window.location.origin;
|
101 |
+
CU = CU.replace("https://","");
|
102 |
+
CU = CU.replace("http://","");
|
103 |
+
if ("" != g && "none" != h) var p = "true"; else p = "no-tooltip";
|
104 |
+
if(chaty_settings.object_settings.click_setting != 'click') { p = true; }
|
105 |
+
d += '<div class="chaty-widget-i chaty-close-settings i-trigger-open ' + p + ' ">', d += function (t) {
|
106 |
+
switch (t.object_settings.widget_type) {
|
107 |
+
case"chat-image":
|
108 |
+
if (t.object_settings.widget_img.length > 1) return '<div class="widget-img" style="background-color:' + t.object_settings.color + '"><img src="' + t.object_settings.widget_img + '"/></div>';
|
109 |
+
case"chat-smile":
|
110 |
+
return '<svg version="1.1" id="smile" 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">.st1{fill:#FFFFFF;} .st2{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="' + t.object_settings.color + '"/></g><path class="st1" 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="st2" d="M-476.5,537.3c2.5,1.1,8.5,2.1,13-2.7"/><path class="st2" d="M-460.8,534.5c-0.1-1.2-0.8-3.4-3.3-2.8"/></svg>';
|
111 |
+
case"chat-bubble":
|
112 |
+
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">.st1{fill:#FFFFFF;}</style><g><circle cx="-469.9" cy="534.1" r="27" fill="' + t.object_settings.color + '"/></g><path class="st1" 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>';
|
113 |
+
case"chat-db":
|
114 |
+
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">.st1{fill:#FFFFFF;}</style><g><circle cx="-469" cy="534.1" r="27" fill="' + t.object_settings.color + '"/></g><path class="st1" 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="st1" 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>';
|
115 |
+
default:
|
116 |
+
return '<svg version="1.1" id="ch" 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">.st1 {fill: #FFFFFF;}.st0{fill: #808080;}</style><g><circle cx="-469" cy="534.7" r="27" fill="' + t.object_settings.color + '"/></g><path class="st1" 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="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="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>'
|
117 |
}
|
118 |
+
}(e), h = i("display_cta"), "" != g && "none" != h && (d += ' <div class="chaty-widget-i-title true"> ', d += g, d += "</div>"), d += "</div>", d += '<div class="chaty-widget-i chaty-close-settings i-trigger-close" data-title="' + e.object_settings.close_text + '" style="background-color:' + e.object_settings.color + '">', "" == e.object_settings.close_img ? (d += '<svg viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">', d += '<ellipse cx="26" cy="26" rx="26" ry="26" fill="' + e.object_settings.color + '"/>', d += '<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"/>', d += '<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"/>', d += "</svg>") : d += "<span class='chaty-social-img'><img alt='" + e.object_settings.close_text + "' src='" + e.object_settings.close_img + "' /></span>", d += '<div class="chaty-widget-i-title">', d += e.object_settings.close_text, d += "</div>", d += "</div>", d += " </div>", 0 === n.length && !e.object_settings.isPRO && (d += ''), d += "</div>"
|
119 |
+
} else ;
|
120 |
+
t("body").append(d);
|
121 |
+
}(e, token)), function () {
|
122 |
+
var n = t(".chaty-widget"), a = e.object_settings.widget_size ? e.object_settings.widget_size : 54,
|
123 |
+
c = +e.object_settings.widget_size + 8;
|
124 |
+
|
125 |
+
function s() {
|
126 |
+
var t = n.position().top, e = n.find(".chaty-widget-is .chaty-widget-i").length;
|
127 |
+
if(jQuery("body").hasClass("chaty-in-desktop")) {
|
128 |
+
e = n.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length;
|
129 |
+
} else {
|
130 |
+
e = n.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length;
|
131 |
}
|
132 |
+
if (e * c > (jQuery(window).height() - (chaty_settings.object_settings.widget_size+8))) {
|
133 |
+
var i = Math.round(Math.sqrt(e)), o = Math.ceil(Math.sqrt(e));
|
134 |
+
n.find(".chaty-widget-is").css({
|
135 |
+
height: o * c,
|
136 |
+
width: i * c
|
137 |
+
}), g(o), n.find("span:not(.cht-pending-message)").css({
|
138 |
+
height: o * c,
|
139 |
+
width: i * c
|
140 |
+
}), g(o), n.find("img").css({height: o * c, width: i * c}), g(o)
|
141 |
+
} else g()
|
142 |
+
}
|
143 |
|
144 |
+
function r() {
|
145 |
+
"left" === e.object_settings.position && n.addClass("chaty-widget-is-right"), "custom" === e.object_settings.position && "left" === e.object_settings.pos_side && n.addClass("chaty-widget-is-right")
|
146 |
+
}
|
147 |
+
function g(t) {
|
148 |
+
var e;
|
149 |
+
if(jQuery("body").hasClass("chaty-in-desktop")) {
|
150 |
+
e = n.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length;
|
151 |
+
} else {
|
152 |
+
e = n.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length;
|
153 |
}
|
154 |
+
n.find(".chaty-widget-i").css({
|
155 |
+
height: a + "px",
|
156 |
+
width: a + "px"
|
157 |
+
}), n.find("img").css({
|
158 |
+
height: a + "px",
|
159 |
+
width: a + "px"
|
160 |
+
}), n.find("span:not(.cht-pending-message)").css({
|
161 |
+
height: a + "px",
|
162 |
+
width: a + "px"
|
163 |
+
}), n.find(".chaty-widget-is").css({top: "-" + 100 * e + "%"});
|
164 |
+
n.find(".chaty-widget-is").height(e*(parseInt(a)+8));
|
165 |
+
n.find(".chaty-widget-is").width(parseInt(a)+8);
|
166 |
+
|
167 |
+
if(chaty_settings.object_settings.mode == "horizontal") {
|
168 |
+
n.find(".chaty-widget-is").css({top: "0"});
|
169 |
+
n.find(".chaty-widget-is").width(e * (parseInt(a) + 8));
|
170 |
+
n.find(".chaty-widget-is").height(parseInt(a) + 8);
|
171 |
+
} else {
|
172 |
n.find(".chaty-widget-is").height(e * (parseInt(a) + 8));
|
173 |
n.find(".chaty-widget-is").width(parseInt(a) + 8);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
}
|
175 |
+
}
|
176 |
|
177 |
+
r(), s(), jQuery(window).resize(function () {
|
178 |
+
s(), 1 == Object.keys(e.object_settings.social).length && (jQuery(".chaty-widget").addClass("chaty-widget-show"), jQuery(".chaty-widget-is").css("top", "auto"))
|
179 |
+
}), t(".chaty-widget-i.facebook").mouseenter(function () {
|
180 |
+
t(".facebook_two_mess").css({opacity: "1", "z-index": "1"}), t(this).addClass("before")
|
181 |
+
}), t(".chaty-widget-i.facebook").mouseleave(function () {
|
182 |
+
t(".facebook_two_mess").css({opacity: "0", "z-index": "1"}), t(this).removeClass("before")
|
183 |
+
}), t(".chaty-widget-i.facebook").on("click", function () {
|
184 |
+
t(this).addClass("active"), t(".facebook_two_mess").hide(), jQuery(".chaty-widget .get a").hide(), t(this).children(".face_title").css({
|
185 |
+
opacity: "1",
|
186 |
+
"z-index": "2"
|
187 |
+
}).show(), t(".chaty-widget").hasClass("one_widget") ? t(".chaty-widget").hasClass("chaty-widget-is-right") ? t(".face_title").css({
|
188 |
+
top: "calc(100% - 447px)",
|
189 |
+
left: "20px"
|
190 |
+
}) : t(".face_title").css({
|
191 |
+
top: "calc(100% - 447px)",
|
192 |
+
left: "auto",
|
193 |
+
right: "20px"
|
194 |
+
}) : (t(".facebook_two_mess").css({
|
195 |
+
opacity: "0",
|
196 |
+
"z-index": "10001"
|
197 |
+
}), t(".ico_d").hide(), t(".chaty-widget .chaty-widget-i").css({"box-shadow": "0px 3px 6px rgba(0,0,0,0)"}), t(".chaty-widget").hasClass("one_widget") || t(".i-trigger").hide())
|
198 |
+
}), t(".i-trigger-close").on("click", function (e) {
|
199 |
+
e.preventDefault(), t(".chaty-widget-i.facebook").hasClass("active") || (n.removeClass("chaty-widget-show"), n.addClass("none-widget-show"))
|
200 |
+
}), t("body").on("click", ".close_facebook", function () {
|
201 |
+
t(".facebook_two_mess").show(), jQuery(".chaty-widget .get a").show(), t(".chaty-widget-i.facebook").removeClass("active"), t(this).parent().parent().css({opacity: "1"}).hide(), t(".i-trigger").show(), t(".chaty-widget-is .chaty-widget-i svg").show()
|
202 |
+
}), t(".i-trigger-close").on("click", function (e) {
|
203 |
+
t(".i-trigger-open").addClass("active_clos"), e.preventDefault(), t(".chaty-widget-i.facebook").hasClass("active") || (n.removeClass("chaty-widget-show"), n.addClass("none-widget-show"))
|
204 |
+
}), t("body").on("click", ".update-analytics", function (t) {
|
205 |
+
if (channelName = jQuery(this).attr("data-channel"), null != channelName && "" != channelName) if (window.hasOwnProperty("gtag")) gtag("event", "chaty_" + channelName, {
|
206 |
+
eventCategory: "chaty_" + channelName,
|
207 |
+
event_action: "chaty_" + channelName
|
208 |
+
}); else if (window.hasOwnProperty("ga")) {
|
209 |
+
var e = window.ga.getAll()[0];
|
210 |
+
e && e.send("event", "click", {
|
211 |
eventCategory: "chaty_" + channelName,
|
212 |
+
eventAction: "chaty_" + channelName
|
213 |
+
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
}
|
215 |
+
}), t("body").on("click", ".wechat", function () {
|
216 |
+
var t = jQuery(".chaty-widget .chaty-widget-i.wechat").attr("data-code");
|
217 |
+
null != t && "" != t && (jQuery("#wechat-qr-code").length || (htmlString = "<div id='wechat-qr-code' class='wechat-qr-code'>", htmlString += '<div class="wechat-box-head">WeChat<svg xmlns="http://www.w3.org/2000/svg" class="close_facebook" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="612px" height="612px" viewBox="0 0 612 612" style="fill: #fff; float: right; margin-top: 4px;" xml:space="preserve"><path xmlns="http://www.w3.org/2000/svg" d="M268.064,256.75l138.593-138.593c3.124-3.124,3.124-8.189,0-11.313c-3.125-3.124-8.189-3.124-11.314,0L256.75,245.436 L118.157,106.843c-3.124-3.124-8.189-3.124-11.313,0c-3.125,3.124-3.125,8.189,0,11.313L245.436,256.75L106.843,395.343 c-3.125,3.125-3.125,8.189,0,11.314c1.562,1.562,3.609,2.343,5.657,2.343s4.095-0.781,5.657-2.343L256.75,268.064l138.593,138.593 c1.563,1.562,3.609,2.343,5.657,2.343s4.095-0.781,5.657-2.343c3.124-3.125,3.124-8.189,0-11.314L268.064,256.75z"></path></svg></div>', htmlString += "<div class='wechat-box'><img src='" + t + "' alt='QR Code' /><a href='javascript:;'>", htmlString += "</a></div></div>", jQuery("body").append(htmlString)), jQuery("#wechat-qr-code").show())
|
218 |
+
});
|
219 |
+
var d = i("display_cta");
|
220 |
+
if(chaty_settings.object_settings.display_state == "hover") {
|
221 |
+
n.find(".i-trigger-open").mouseenter(function (e) {
|
222 |
+
e.stopPropagation();
|
223 |
removeAnimation();
|
224 |
+
//t(this).removeClass("active_clos");
|
225 |
+
o(), t(".chaty-widget-is").removeAttr("id"), t(this).hasClass("active_clos") || t(".chaty-widget-i.facebook").hasClass("active") || n.hasClass("one_widget") || (r(), t(n).hasClass("chaty-widget-show") || (n.addClass("chaty-widget-show"), n.removeClass("none-widget-show")));
|
226 |
+
//o();
|
227 |
+
if(chaty_settings.object_settings.click_setting == 'click') {
|
228 |
+
jQuery("body .chaty-widget-i-title.true").remove();
|
|
|
229 |
}
|
230 |
+
});
|
231 |
+
} else {
|
232 |
+
n.find(".i-trigger-open").click(function (e) {
|
233 |
+
e.stopPropagation();
|
234 |
removeAnimation();
|
235 |
+
o(), t(".chaty-widget-is").removeAttr("id"), t(this).hasClass("active_clos") || t(".chaty-widget-i.facebook").hasClass("active") || n.hasClass("one_widget") || (r(), t(n).hasClass("chaty-widget-show") || (n.addClass("chaty-widget-show"), n.removeClass("none-widget-show")));
|
236 |
+
o();
|
237 |
+
if(chaty_settings.object_settings.click_setting == 'click') {
|
238 |
+
jQuery("body .chaty-widget-i-title.true").remove();
|
239 |
}
|
240 |
+
jQuery(".cht-pending-message").remove();
|
241 |
+
});
|
242 |
+
}
|
243 |
+
t(".one_widget").on("click", function () {
|
244 |
+
t(".chaty-widget-i-title").hasClass("face_title") ? (t(".facebook_two_mess").detach(), t(".chaty-widget-i").addClass("bofore_del")) : (t(".chaty-widget-i-title").detach(), t(".chaty-widget-i").addClass("bofore_del"));
|
245 |
+
removeAnimation();
|
246 |
+
jQuery(".cht-pending-message").remove();
|
247 |
+
}), n.find(".i-trigger-open").on("click", function () {
|
248 |
+
jQuery(".cht-pending-message").remove();
|
249 |
+
"none" != d && (t(".chaty-widget").hasClass(".one_widget") || t(".i-trigger-open .chaty-widget-i-title1").detach());
|
250 |
+
if(chaty_settings.object_settings.click_setting == "click") { t(".i-trigger-open").addClass("no-tooltip") };
|
251 |
+
t(this).hasClass("active_clos") || t(".chaty-widget-i.facebook").hasClass("active") || n.hasClass("one_widget") || (r(), t(n).hasClass("chaty-widget-show") || (n.addClass("chaty-widget-show"), n.removeClass("none-widget-show")));
|
252 |
+
removeAnimation();
|
253 |
+
}), n.find(".i-trigger-open").mouseenter(function () {
|
254 |
+
if(chaty_settings.object_settings.click_setting == "click") {
|
255 |
+
t(this).addClass("no-tooltip");
|
|
|
|
|
|
|
|
|
256 |
}
|
257 |
+
t(".i-trigger-open").removeClass("active_clos");
|
258 |
+
s();
|
259 |
+
}), n.find(".chaty-widget-is").mouseleave(function () {
|
260 |
+
t(".i-trigger-open").removeClass("active_clos"), t(".chaty-widget-i.facebook").hasClass("active")
|
261 |
+
}), 1 === Object.keys(e.object_settings.social).length && n.find(".i-trigger-open").on("touchstart", function (e) {
|
262 |
+
"use strict";
|
263 |
+
t(this).find(".chaty-widget-i").toggleClass("hover")
|
264 |
+
}), 1 == Object.keys(e.object_settings.social).length && (jQuery(".chaty-widget").addClass("chaty-widget-show"), jQuery(".chaty-widget-is").css("top", "auto"), jQuery(".chaty-widget-is").css("z-index", "10001"), jQuery(".chaty-widget-i.i-trigger-close, .i-trigger.chaty-widget-i").remove(), jQuery(".chaty-widget .get a").css("top", "-10px"), jQuery(".chaty-widget").addClass("one_widget"), jQuery(".chaty-widget-i:first .chaty-widget-i-title:last p").text(e.object_settings.cta), jQuery(document).on("click", ".chaty-widget-i", function () {
|
265 |
+
jQuery(".chaty-widget-i:first .chaty-widget-i-title:last").hide(), jQuery("body").addClass("hide-cht-widget")
|
266 |
+
}), jQuery("body").append("<style>.chaty-widget-is{top:0!important;}</style>"))
|
267 |
+
}(), t(document).ready(function () {
|
268 |
+
1 !== Object.keys(e.object_settings.social).length || !e.object_settings.social.snapchat && !e.object_settings.social.wechat || e.object_settings.cta || (t(".chaty-widget-i-1title").detach(), t(".chaty-widget-i").addClass("bofore_del")), t(".chaty-widget-i-title").hasClass("one_go") && (t(".chaty-widget-i-title p").text(t(".chaty-widget-i-title.one_go").html()), "none" == i("display_cta") && (t(".chaty-widget-i-title").hasClass("face_title") ? (t(".facebook_two_mess").detach(), t(".chaty-widget-i").addClass("bofore_del")) : (t(".chaty-widget-i-title").detach(), t(".chaty-widget-i").addClass("bofore_del")))), window.matchMedia("only screen and (max-width: 760px)").matches && t(".i-trigger-open").addClass("active_clos"), jQuery(".chaty-widget-i-title").each(function () {
|
269 |
+
"" == jQuery(this).text() && jQuery(this).remove()
|
270 |
+
})
|
271 |
+
}), t(document).ready(function () {
|
272 |
+
var activeWidget = 0;
|
273 |
+
if(jQuery("body").hasClass("chaty-in-desktop")) {
|
274 |
+
activeWidget = jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop").length;
|
275 |
+
} else {
|
276 |
+
activeWidget = jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile").length;
|
277 |
+
}
|
278 |
+
if(activeWidget == 0) {
|
279 |
+
jQuery(".chaty-widget").addClass("hide-widget").removeClass("desktop_active").removeClass("mobile_active");
|
280 |
+
} else {
|
281 |
+
if(jQuery("body").hasClass("chaty-in-desktop")) {
|
282 |
+
jQuery(".chaty-widget").removeClass("hide-widget").addClass("desktop_active");
|
283 |
} else {
|
284 |
+
jQuery(".chaty-widget").removeClass("hide-widget").addClass("mobile_active");
|
285 |
+
}
|
286 |
+
if(activeWidget == 1) {
|
287 |
+
jQuery(".chaty-close-settings").hide();
|
288 |
+
if(jQuery("body").hasClass("chaty-in-desktop")) {
|
289 |
+
htmlToAdd = jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop:first").clone();
|
290 |
+
jQuery(".i-trigger").html(htmlToAdd);
|
291 |
} else {
|
292 |
+
htmlToAdd = jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile:first").clone();
|
293 |
+
jQuery(".i-trigger").html(htmlToAdd);
|
294 |
}
|
295 |
+
jQuery(".i-trigger .chaty-widget-i-title p").text(chaty_settings.object_settings.cta);
|
296 |
+
jQuery(".chaty-widget").addClass("one_widget");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
|
298 |
+
jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function () {
|
299 |
+
o();
|
300 |
+
if(chaty_settings.object_settings.click_setting == 'click') {
|
301 |
+
jQuery(".chaty-widget-i-title").remove();
|
302 |
}
|
303 |
+
jQuery(".chaty-widget").addClass("hide-tooltip-arrow");
|
304 |
+
set_cta_status();
|
305 |
+
removeAnimation();
|
306 |
+
});
|
307 |
+
} else {
|
308 |
+
jQuery(".chaty-widget").removeClass("one_widget");
|
309 |
+
if(chaty_settings.object_settings.click_setting == 'click') {
|
310 |
+
jQuery(".i-trigger .chaty-main-widget").remove();
|
311 |
}
|
312 |
+
jQuery(".chaty-close-settings").show();
|
313 |
+
jQuery(".chaty-widget-i-title").removeClass("hide-it");
|
314 |
+
jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function () {
|
315 |
+
o();
|
316 |
+
set_cta_status();
|
317 |
+
jQuery(".i-trigger .chaty-widget-i-title").addClass("hide-it");
|
318 |
+
// jQuery(".chaty-widget").addClass("hide-tooltip-arrow");
|
319 |
+
removeAnimation();
|
320 |
+
});
|
321 |
}
|
322 |
+
}
|
323 |
|
324 |
+
/* check for display rules */
|
325 |
+
var displayStatus = 0;
|
326 |
+
if(parseInt(chaty_settings.object_settings.display_conditions) == 1) {
|
327 |
+
var displayRules = chaty_settings.object_settings.display_rules;
|
328 |
+
|
329 |
+
if(displayRules.length > 0) {
|
330 |
+
var localDate = new Date();
|
331 |
+
localDate.setHours(localDate.getHours() + (chaty_settings.object_settings.gmt));
|
332 |
+
var utcHours = localDate.getUTCHours();
|
333 |
+
var utcMin = localDate.getUTCMinutes();
|
334 |
+
var utcDay = localDate.getUTCDay();
|
335 |
+
for(var rule = 0; rule < displayRules.length; rule++) {
|
336 |
+
var hourStatus = 0;
|
337 |
+
var minStatus = 0;
|
338 |
+
var checkForTime = 0;
|
339 |
+
if(displayRules[rule].days == -1) {
|
340 |
+
checkForTime = 1;
|
341 |
+
} else if(displayRules[rule].days >= 0 && displayRules[rule].days <= 6) {
|
342 |
+
if(displayRules[rule].days == utcDay) {
|
343 |
checkForTime = 1;
|
344 |
+
}
|
345 |
+
} else if(displayRules[rule].days == 7) {
|
346 |
+
if(utcDay >= 0 && utcDay <= 4) {
|
347 |
+
checkForTime = 1;
|
348 |
+
}
|
349 |
+
} else if(displayRules[rule].days == 8) {
|
350 |
+
if(utcDay >= 1 && utcDay <= 5) {
|
351 |
+
checkForTime = 1;
|
352 |
+
}
|
353 |
+
} else if(displayRules[rule].days == 9) {
|
354 |
+
if(utcDay == 5 || utcDay == 6) {
|
355 |
+
checkForTime = 1;
|
356 |
+
}
|
357 |
+
}
|
358 |
+
if(checkForTime == 1) {
|
359 |
+
if(utcHours > displayRules[rule].start_hours && utcHours < displayRules[rule].end_hours) {
|
360 |
+
hourStatus = 1;
|
361 |
+
} else if(utcHours == displayRules[rule].start_hours && utcHours < displayRules[rule].end_hours) {
|
362 |
+
if(utcMin >= displayRules[rule].start_min) {
|
363 |
+
hourStatus = 1;
|
364 |
}
|
365 |
+
} else if(utcHours > displayRules[rule].start_hours && utcHours == displayRules[rule].end_hours) {
|
366 |
+
if(utcMin <= displayRules[rule].end_min) {
|
367 |
+
hourStatus = 1;
|
368 |
}
|
369 |
+
} else if(utcHours == displayRules[rule].start_hours && utcHours == displayRules[rule].end_hours) {
|
370 |
+
if(utcMin >= displayRules[rule].start_min && utcMin <= displayRules[rule].end_min) {
|
|
|
371 |
hourStatus = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
372 |
}
|
373 |
+
}
|
374 |
|
375 |
+
if(hourStatus == 1) {
|
376 |
+
if(utcMin >= displayRules[rule].start_min && utcMin <= displayRules[rule].end_min) {
|
377 |
+
minStatus = 1;
|
|
|
378 |
}
|
379 |
}
|
380 |
+
}
|
381 |
|
382 |
+
if(hourStatus == 1 && checkForTime == 1) {
|
383 |
+
displayStatus = 1;
|
384 |
+
}
|
385 |
+
if(displayStatus == 1) {
|
386 |
+
rule = displayRules.length+1;
|
|
|
387 |
}
|
|
|
|
|
388 |
}
|
389 |
} else {
|
390 |
displayStatus = 1;
|
391 |
}
|
392 |
+
} else {
|
393 |
+
displayStatus = 1;
|
394 |
+
}
|
395 |
|
396 |
+
if(activeWidget == 1) {
|
397 |
+
if(i("display_cta") != "") {
|
398 |
+
if(chaty_settings.object_settings.click_setting == 'click') {
|
399 |
+
jQuery(".chaty-widget-i-title").remove();
|
|
|
|
|
|
|
|
|
|
|
400 |
}
|
401 |
+
jQuery(".chaty-widget").addClass("hide-tooltip-arrow");
|
402 |
+
setInterval(function(){
|
403 |
+
//set_cta_status();
|
404 |
+
}, 10000);
|
405 |
+
}
|
406 |
|
407 |
+
jQuery(".chaty-main-widget").addClass("i-trigger-open").addClass("single-button");
|
|
|
|
|
408 |
|
409 |
+
jQuery(".chaty-widget-show .i-trigger-open svg").css("transform","rotate(0deg)");
|
410 |
+
}
|
411 |
|
412 |
+
if(chaty_settings.object_settings.animation_class != "") {
|
413 |
+
if(chaty_settings.object_settings.animation_class != "sheen") {
|
414 |
+
jQuery(".i-trigger .chaty-widget-i svg").wrap(function () {
|
415 |
+
return "<div class='svg'></div>";
|
416 |
+
});
|
417 |
+
} else {
|
418 |
+
if(!jQuery(".i-trigger .chaty-widget-i .wrap-svg").length) {
|
419 |
+
jQuery(".i-trigger .chaty-widget-i svg").wrap(function() {
|
420 |
+
return "<div class='wrap-svg'></div>";
|
421 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
422 |
}
|
423 |
}
|
424 |
+
}
|
425 |
|
426 |
+
if(!get_cta_status()) {
|
427 |
+
if(chaty_settings.object_settings.pending_messages == "on") {
|
428 |
+
if(chaty_settings.object_settings.animation_class != "sheen") {
|
429 |
+
jQuery(".i-trigger .i-trigger-open .svg, .i-trigger .i-trigger-open.single-button .svg").append("<span class='cht-pending-message'>" + chaty_settings.object_settings.number_of_messages + "</span>");
|
430 |
+
} else {
|
431 |
+
jQuery(".i-trigger .i-trigger-open, .i-trigger .i-trigger-open.single-button").after("<span class='cht-pending-message'>" + chaty_settings.object_settings.number_of_messages + "</span>");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
}
|
433 |
+
jQuery(".cht-pending-message").css("color", chaty_settings.object_settings.number_color);
|
434 |
+
jQuery(".cht-pending-message").css("background", chaty_settings.object_settings.number_bg_color);
|
|
|
|
|
435 |
}
|
436 |
|
437 |
+
jQuery(document).on("click", ".i-trigger .i-trigger-open, .i-trigger.one-widget", function(){
|
438 |
+
jQuery(".cht-pending-message").remove();
|
439 |
});
|
440 |
+
}
|
441 |
+
|
442 |
+
jQuery("chaty-main-widget").mouseenter(function(){
|
443 |
+
set_cta_status();
|
444 |
+
});
|
445 |
|
446 |
+
if(displayStatus == 1) {
|
447 |
+
var widget_status = is_chaty_settings_expired("cta_widget_status");
|
448 |
+
if(!widget_status) {
|
449 |
+
jQuery(".chaty-widget").removeClass("hide-widget");
|
450 |
+
show_chaty_widget();
|
451 |
+
} else {
|
452 |
+
/* set animation */
|
453 |
+
if (chaty_settings.object_settings.time_trigger == "no" && chaty_settings.object_settings.exit_intent == "no" && chaty_settings.object_settings.on_page_scroll == "no") {
|
454 |
jQuery(".chaty-widget").removeClass("hide-widget");
|
455 |
+
if(chaty_settings.object_settings.display_state == "open" && chaty_settings.object_settings.has_close_button == "no") {
|
456 |
+
chaty_settings.object_settings.has_close_button = "no";
|
457 |
+
} else {
|
458 |
+
chaty_settings.object_settings.display_state = "hover";
|
459 |
+
chaty_settings.object_settings.has_close_button = "yes";
|
460 |
+
}
|
461 |
show_chaty_widget();
|
462 |
} else {
|
463 |
+
jQuery(".chaty-widget").addClass("hide-widget");
|
464 |
+
if (chaty_settings.object_settings.time_trigger == "yes") {
|
465 |
+
setTimeout(function () {
|
466 |
+
if (!isWidgetEnabled) {
|
467 |
+
jQuery(".chaty-widget").removeClass("hide-widget");
|
468 |
+
show_chaty_widget();
|
469 |
+
}
|
470 |
+
}, parseInt(chaty_settings.object_settings.trigger_time) * 1000);
|
471 |
+
}
|
472 |
+
if (chaty_settings.object_settings.exit_intent == "yes") {
|
473 |
+
function addEvent(obj, evt, fn) {
|
474 |
+
if (obj.addEventListener) {
|
475 |
+
obj.addEventListener(evt, fn, false);
|
476 |
+
}
|
477 |
+
else if (obj.attachEvent) {
|
478 |
+
obj.attachEvent("on" + evt, fn);
|
479 |
+
}
|
480 |
}
|
481 |
+
|
482 |
+
addEvent(document, 'mouseout', function(evt) {
|
483 |
+
if (evt.toElement == null && evt.relatedTarget == null ) {
|
484 |
+
var widget_status = get_chaty_cookie("cta_exit_intent_shown");
|
485 |
+
if (widget_status == null) {
|
486 |
+
set_chaty_cookie("cta_exit_intent_shown","yes",1);
|
487 |
+
isWidgetEnabled = true;
|
488 |
jQuery(".chaty-widget").removeClass("hide-widget");
|
489 |
+
jQuery(".chaty-widget").addClass("chaty-animation-widget");
|
490 |
+
jQuery(".chaty-animation-widget").append("<div class='chaty-nav'></div>");
|
491 |
+
if(chaty_settings.object_settings.display_state == "open" && chaty_settings.object_settings.has_close_button == "no") {
|
492 |
+
chaty_settings.object_settings.has_close_button = "no";
|
493 |
+
} else {
|
494 |
+
chaty_settings.object_settings.display_state = "open";
|
495 |
+
chaty_settings.object_settings.has_close_button = "yes";
|
496 |
+
}
|
497 |
show_chaty_widget();
|
498 |
+
if (chaty_settings.object_settings.position == "left") {
|
499 |
+
jQuery(".chaty-widget").addClass("left-position");
|
500 |
+
} else if (chaty_settings.object_settings.position == "right") {
|
501 |
+
jQuery(".chaty-widget").addClass("right-position");
|
502 |
+
} else if (chaty_settings.object_settings.position == "custom") {
|
503 |
+
if (e.object_settings.pos_side == "left") {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
504 |
jQuery(".chaty-widget").addClass("left-position");
|
505 |
+
} else {
|
506 |
jQuery(".chaty-widget").addClass("right-position");
|
|
|
|
|
|
|
|
|
|
|
|
|
507 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
}
|
509 |
+
removeAnimation();
|
510 |
+
setTimeout(function () {
|
511 |
+
jQuery(".chaty-animation-widget").addClass("active");
|
512 |
+
}, 100);
|
513 |
+
setTimeout(function () {
|
514 |
+
jQuery(".chaty-nav").remove();
|
515 |
+
}, 2500);
|
516 |
}
|
517 |
+
}
|
518 |
+
});
|
519 |
+
}
|
520 |
+
if (chaty_settings.object_settings.on_page_scroll == "yes") {
|
521 |
+
if (parseInt(chaty_settings.object_settings.page_scroll) > 0) {
|
522 |
+
jQuery(window).scroll(function () {
|
523 |
+
if (!isWidgetEnabled) {
|
524 |
+
var scrollHeight = jQuery(document).height() - jQuery(window).height();
|
525 |
+
var scrollPos = jQuery(window).scrollTop();
|
526 |
+
if (scrollPos != 0) {
|
527 |
+
if (((scrollPos / scrollHeight) * 100) >= parseInt(chaty_settings.object_settings.page_scroll)) {
|
528 |
+
jQuery(".chaty-widget").removeClass("hide-widget");
|
529 |
+
show_chaty_widget();
|
530 |
}
|
531 |
}
|
532 |
+
}
|
533 |
+
});
|
534 |
}
|
535 |
}
|
536 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
537 |
}
|
538 |
+
} else {
|
539 |
+
jQuery(".chaty-widget").addClass("hide-widget");
|
540 |
+
}
|
541 |
+
});
|
542 |
+
jQuery(".chaty-widget-i-title").each(function(){
|
543 |
+
if(jQuery(this).text() == "") {
|
544 |
+
jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow");
|
545 |
+
jQuery(this).remove();
|
546 |
}
|
|
|
|
|
|
|
547 |
});
|
548 |
+
|
549 |
+
if(!jQuery(".chaty-widget").hasClass("one_widget")) {
|
550 |
+
jQuery("body").append("<div class='trigger-chaty-button'></div>");
|
551 |
+
}
|
552 |
+
|
553 |
+
jQuery("body").addClass(chaty_settings.object_settings.mode+"-cht-menu");
|
554 |
+
jQuery("body").addClass(chaty_settings.object_settings.position+"-cht-position");
|
555 |
});
|
556 |
|
557 |
jQuery(document).on("click", ".trigger-chaty-button", function(){
|
563 |
}
|
564 |
});
|
565 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
566 |
function get_cta_status() {
|
567 |
var cookieStr = "cta";
|
568 |
var cookieValue = check_for_chaty_settinigs(cookieStr);
|
706 |
}, 1000);
|
707 |
}, 5000);
|
708 |
} else if (activeWidget == 1) {
|
709 |
+
animationClass = ".chaty-main-widget svg, .chaty-main-widget img, .chaty-main-widget .facustom-icon";
|
710 |
jQuery(animationClass).removeClass("chaty-animation-" + chaty_settings.object_settings.animation_class).removeClass("start-now");
|
711 |
setTimeout(function () {
|
712 |
jQuery(animationClass).addClass("chaty-animation-" + chaty_settings.object_settings.animation_class).addClass("start-now");
|
js/cht-front-script.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function launch_chaty(){jQuery(".chaty-widget").hasClass("one_widget")||jQuery(".trigger-chaty-button").trigger("click")}!function(t){var e={};function s(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,s),a.l=!0,a.exports}s.m=t,s.c=e,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/",s(s.s=10)}({10:function(t,e,s){s(11),t.exports=s(12)},11:function(t,e){!function(t){var e,s,i=0,a=".i-trigger .chaty-widget-i .svg, .i-trigger .chaty-widget-i .widget-img, .i-trigger .chaty-widget-i .facustom-icon";function c(t){return o()&&"click"==chaty_settings.object_settings.click_setting?"none":""}new Date;function n(){jQuery(".chaty-widget").hasClass("one_widget")&&jQuery(".chaty-widget").removeClass("chaty-widget-show")}function o(){var t=r("cta");if(null!=t&&""!=t){t=new Date(t);var e=Math.abs(new Date-t);return Math.floor(e/6e4)<=10}return!1}function r(t){var e=y("chaty_settings"),s=[];if(null!=e&&""!=e&&(s=JSON.parse(e)),s.length>0)for(var i=0;i<s.length;i++)if(s[i].k==t)return s[i].v;return null}function g(t){var e=y("chaty_settings"),s=[];null!=e&&""!=e&&(s=JSON.parse(e));var i=!1;if(s.length>0)for(var a=0;a<s.length;a++)s[a].k==t&&(i=!0,s[a].v=new Date);i||s.push({k:t,v:new Date}),d("chaty_settings",e=JSON.stringify(s),"7")}function l(t){var e=r(t);if(null!=e&&""!=e){e=new Date(e);var s=Math.abs(new Date-e);return Math.floor(s/864e5)>=1}return!0}function h(){var t=y("chaty_settings"),e=[];null!=t&&""!=t&&(e=JSON.parse(t));var s=!1;if(e.length>0)for(var i=0;i<e.length;i++)"cta"==e[i].k&&(s=!0,e[i].v=new Date);s||e.push({k:"cta",v:new Date}),d("chaty_settings",t=JSON.stringify(e),"7")}function d(t,e,s){var i="";if(s){var a=new Date;a.setTime(a.getTime()+24*s*60*60*1e3),i="; expires="+a.toUTCString()}document.cookie=t+"="+(e||"")+i+"; path=/"}function y(t){for(var e=t+"=",s=document.cookie.split(";"),i=0;i<s.length;i++){for(var a=s[i];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(e))return a.substring(e.length,a.length)}return null}function u(){g("cta_widget_status"),i=1;var t=0;t=jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile").length,l("chaty-animation")||(chaty_settings.object_settings.animation_class=""),""!=chaty_settings.object_settings.animation_class&&("sheen"!=chaty_settings.object_settings.animation_class?t>1?(jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3),e=setInterval(function(){jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3)},5e3)):1==t&&(a=".chaty-main-widget .svg, .chaty-main-widget img, .chaty-main-widget .facustom-icon",jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3),e=setInterval(function(){jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3)},5e3)):(a=".i-trigger .chaty-widget-i .wrap-svg",jQuery(".i-trigger .chaty-widget-i .wrap-svg").length,jQuery(a).removeClass("chaty-animation-sheen").removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-sheen").addClass("start-now")},10),e=setInterval(function(){jQuery(a).removeClass("chaty-animation-sheen").removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-sheen").addClass("start-now")},10)},5e3))),"open"==chaty_settings.object_settings.display_state&&("no"==chaty_settings.object_settings.has_close_button?t>1&&(w(),jQuery(".chaty-widget").find(".i-trigger-open").removeClass("active_clos"),jQuery(".chaty-widget").find(".i-trigger-open").trigger("click"),jQuery(".chaty-widget-is").addClass("has-no-close-btn"),jQuery(".i-trigger").remove()):t>1&&(w(),jQuery(".chaty-widget").find(".i-trigger-open").removeClass("active_clos"),jQuery(".chaty-widget").find(".i-trigger-open").trigger("click"))),jQuery(".chaty-widget").hasClass("one_widget")&&jQuery(".chaty-widget").removeClass("chaty-widget-show")}function w(){e&&(clearInterval(e),e=0),g("chaty-animation"),jQuery(".chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),jQuery(".start-now").removeClass("start-now"),chaty_settings.object_settings.animation_class=""}jQuery(document).ready(function(){c(),token="",jQuery(document).ready(function(){"true"==(s=chaty_settings).object_settings.active&&function(e,s){var i=e.object_settings.device,a="";if("right"==e.object_settings.position)a="left: auto;bottom: 25px; right: 25px;";else if("left"==e.object_settings.position)a="right: auto; bottom: 25px; left: 25px;";else if("custom"==e.object_settings.position){var n=e.object_settings.pos_side,o=e.object_settings.bot,r=e.object_settings.side;a="right"===n?"left: auto; bottom: "+o+"px; right: "+r+"px":"left: "+r+"px; bottom: "+o+"px; right: auto"}var g=e.object_settings.cta,h="",d=e.object_settings.social,y=!1;if((/(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)))&&(y=!0),y?jQuery("body").addClass("chaty-in-mobile"):jQuery("body").addClass("chaty-in-desktop"),Object.keys(d).length>=1&&(h='<div class="chaty-widget hide-widget '+s+" "+i+' " style="display:block; '+a+'" dir="ltr">',h+='<div class="chaty-widget-is" id="transition_disabled">'),h+=function(e){var s="",i=0;return t.each(e.object_settings.social,function(t,a){if(e.object_settings.isPRO&&jQuery("body").addClass("has-pro-version"),!e.object_settings.isPRO&&"3"==++i)return!1;extra_class="","1"!=e.object_settings.analytics&&1!=e.object_settings.analytics||(extra_class+=" update-analytics ");var c=1==e.object_settings.social[t].is_desktop?"is-in-desktop":"",n=1==e.object_settings.social[t].is_mobile?"is-in-mobile":"",o=1==e.object_settings.is_mobile?e.object_settings.social[t].mobile_target:e.object_settings.social[t].desktop_target;if(jQuery("body").hasClass("chaty-in-mobile")&&(e.object_settings.social[t].href_url=e.object_settings.social[t].mobile_url),"viber"==e.object_settings.social[t].social_channel){if(jQuery("body").hasClass("chaty-in-mobile")){var r=e.object_settings.social[t].href_url;isNaN(r)||(r=r.replace("+",""),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(r="+"+r)),e.object_settings.social[t].href_url=r}e.object_settings.social[t].href_url="viber://chat?number="+e.object_settings.social[t].href_url}1==parseInt(e.object_settings.social[t].has_custom_popup)&&("whatsapp"==e.object_settings.social[t].channel_type?(e.object_settings.social[t].is_default_open&&l("cht_whatsapp_window")&&(extra_class+=" open-it-by-default"),o="",e.object_settings.social[t].mobile_target="",e.object_settings.social[t].desktop_target="",extra_class+=" has-custom-chaty-popup whatsapp-button"):"contact_us"==e.object_settings.social[t].channel_type&&(extra_class+=" has-custom-chaty-popup whatsapp-button"));var g="";""!=e.object_settings.social[t].on_click&&(g=' onclick="'+e.object_settings.social[t].on_click+'"'),socialString='<div data-popup="'+e.object_settings.social[t].popup_html+'" class="chaty-widget-i chaty-main-widget '+c+" "+n+" "+extra_class+" channel-"+e.object_settings.social[t].social_channel+'" data-title="'+e.object_settings.social[t].val+'" id="chaty-channel-'+e.object_settings.social[t].social_channel+'" data-channel="'+e.object_settings.social[t].social_channel+'" data-code="'+e.object_settings.social[t].qr_code_image+'">',bgColor="",""!=e.object_settings.social[t].bg_color&&(socialString+="<style>#chaty-channel-"+e.object_settings.social[t].social_channel+" .color-element {fill: "+e.object_settings.social[t].bg_color+"; background: "+e.object_settings.social[t].bg_color+"}</style>",bgColor="style='background-color: "+e.object_settings.social[t].bg_color+";'"),socialString+="<a class='set-url-target' "+g+" rel='noopener' data-mobile-target='"+e.object_settings.social[t].mobile_target+"' data-desktop-target='"+e.object_settings.social[t].desktop_target+"' target='"+o+"' href='"+e.object_settings.social[t].href_url+"' >",socialString+="<span class='sr-only'>"+e.object_settings.social[t].title+"</span>",""!=e.object_settings.social[t].img_url?socialString+="<span "+bgColor+" class='chaty-social-img'><img src='"+e.object_settings.social[t].img_url+"' alt='"+e.object_settings.social[t].title+"' /></span>":socialString+=e.object_settings.social[t].default_icon,socialString+="</a>",socialString+="<div class='chaty-widget-i-title'><p>"+e.object_settings.social[t].title+"</p></div>",socialString+="</div>",s+=socialString}),s}(e),d=e.object_settings.social,Object.keys(d).length>=1){h+="</div>",h+='<div class="i-trigger">';var u=c(),w=current_url=window.location.origin;if(w=(w=w.replace("https://","")).replace("http://",""),""!=g&&"none"!=u)var p="true";else p="no-tooltip";"click"!=chaty_settings.object_settings.click_setting&&(p=!0),h+='<div class="chaty-widget-i chaty-close-settings i-trigger-open '+p+' ">',h+=function(t){switch(t.object_settings.widget_type){case"chat-image":if(t.object_settings.widget_img.length>1)return'<div class="widget-img" style="background-color:'+t.object_settings.color+'"><img src="'+t.object_settings.widget_img+'"/></div>';case"chat-smile":return'<svg version="1.1" id="smile" 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">.st1{fill:#FFFFFF;} .st2{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="'+t.object_settings.color+'"/></g><path class="st1" 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="st2" d="M-476.5,537.3c2.5,1.1,8.5,2.1,13-2.7"/><path class="st2" 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">.st1{fill:#FFFFFF;}</style><g><circle cx="-469.9" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" 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">.st1{fill:#FFFFFF;}</style><g><circle cx="-469" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" 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="st1" 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" id="ch" 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">.st1 {fill: #FFFFFF;}.st0{fill: #808080;}</style><g><circle cx="-469" cy="534.7" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" 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="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="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>'}}(e),u=c(),""!=g&&"none"!=u&&(h+=' <div class="chaty-widget-i-title true"> ',h+=g,h+="</div>"),h+="</div>",h+='<div class="chaty-widget-i chaty-close-settings i-trigger-close" data-title="'+e.object_settings.close_text+'" style="background-color:'+e.object_settings.color+'">',""==e.object_settings.close_img?(h+='<svg viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">',h+='<ellipse cx="26" cy="26" rx="26" ry="26" fill="'+e.object_settings.color+'"/>',h+='<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"/>',h+='<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"/>',h+="</svg>"):h+="<span class='chaty-social-img'><img alt='"+e.object_settings.close_text+"' src='"+e.object_settings.close_img+"' /></span>",h+='<div class="chaty-widget-i-title">',h+=e.object_settings.close_text,h+="</div>",h+="</div>",h+=" </div>",0===s.length&&!e.object_settings.isPRO&&(h+=""),h+="</div>"}t("body").append(h)}(s,token),function(){var e=t(".chaty-widget"),i=s.object_settings.widget_size?s.object_settings.widget_size:54,a=+s.object_settings.widget_size+8;function o(){e.position().top;var t=e.find(".chaty-widget-is .chaty-widget-i").length;if((t=jQuery("body").hasClass("chaty-in-desktop")?e.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:e.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length)*a>jQuery(window).height()-(chaty_settings.object_settings.widget_size+8)){var s=Math.round(Math.sqrt(t)),i=Math.ceil(Math.sqrt(t));e.find(".chaty-widget-is").css({height:i*a,width:s*a}),g(i),e.find("span:not(.cht-pending-message)").css({height:i*a,width:s*a}),g(i),e.find("img").css({height:i*a,width:s*a}),g(i)}else g()}function r(){"left"===s.object_settings.position&&e.addClass("chaty-widget-is-right"),"custom"===s.object_settings.position&&"left"===s.object_settings.pos_side&&e.addClass("chaty-widget-is-right")}function g(t){var s;s=jQuery("body").hasClass("chaty-in-desktop")?e.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:e.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length,e.find(".chaty-widget-i").css({height:i+"px",width:i+"px"}),e.find("img").css({height:i+"px",width:i+"px"}),e.find("span:not(.cht-pending-message)").css({height:i+"px",width:i+"px"}),e.find(".chaty-widget-is").css({top:"-"+100*s+"%"}),e.find(".chaty-widget-is").height(s*(parseInt(i)+8)),e.find(".chaty-widget-is").width(parseInt(i)+8),"horizontal"==chaty_settings.object_settings.mode?(e.find(".chaty-widget-is").css({top:"0"}),e.find(".chaty-widget-is").width(s*(parseInt(i)+8)),e.find(".chaty-widget-is").height(parseInt(i)+8)):(e.find(".chaty-widget-is").height(s*(parseInt(i)+8)),e.find(".chaty-widget-is").width(parseInt(i)+8))}jQuery(".open-it-by-default").length&&jQuery(".open-it-by-default").trigger("click"),r(),o(),jQuery(window).resize(function(){o(),1==Object.keys(s.object_settings.social).length&&(jQuery(".chaty-widget").addClass("chaty-widget-show"),jQuery(".chaty-widget-is").css("top","auto")),jQuery(".chaty-widget").hasClass("one_widget")&&jQuery(".chaty-widget").removeClass("chaty-widget-show")}),t(".chaty-widget-i.facebook").mouseenter(function(){t(".facebook_two_mess").css({opacity:"1","z-index":"1"}),t(this).addClass("before")}),t(".chaty-widget-i.facebook").mouseleave(function(){t(".facebook_two_mess").css({opacity:"0","z-index":"1"}),t(this).removeClass("before")}),t(".chaty-widget-i.facebook").on("click",function(){t(this).addClass("active"),t(".facebook_two_mess").hide(),jQuery(".chaty-widget .get a").hide(),t(this).children(".face_title").css({opacity:"1","z-index":"2"}).show(),t(".chaty-widget").hasClass("one_widget")?t(".chaty-widget").hasClass("chaty-widget-is-right")?t(".face_title").css({top:"calc(100% - 447px)",left:"20px"}):t(".face_title").css({top:"calc(100% - 447px)",left:"auto",right:"20px"}):(t(".facebook_two_mess").css({opacity:"0","z-index":"10001"}),t(".ico_d").hide(),t(".chaty-widget .chaty-widget-i").css({"box-shadow":"0px 3px 6px rgba(0,0,0,0)"}),t(".chaty-widget").hasClass("one_widget")||t(".i-trigger").hide())}),t(".i-trigger-close").on("click",function(s){s.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(e.removeClass("chaty-widget-show"),e.addClass("none-widget-show"))}),t("body").on("click",".close_facebook",function(){t(".facebook_two_mess").show(),jQuery(".chaty-widget .get a").show(),t(".chaty-widget-i.facebook").removeClass("active"),t(this).parent().parent().css({opacity:"1"}).hide(),t(".i-trigger").show(),t(".chaty-widget-is .chaty-widget-i svg").show()}),t(".i-trigger-close").on("click",function(s){t(".i-trigger-open").addClass("active_clos"),s.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(e.removeClass("chaty-widget-show"),e.addClass("none-widget-show"))}),t("body").on("click",".update-analytics",function(t){if(channelName=jQuery(this).attr("data-channel"),null!=channelName&&""!=channelName)if(window.hasOwnProperty("gtag"))gtag("event","chaty_"+channelName,{eventCategory:"chaty_"+channelName,event_action:"chaty_"+channelName});else if(window.hasOwnProperty("ga")){var e=window.ga.getAll()[0];e&&e.send("event","click",{eventCategory:"chaty_"+channelName,eventAction:"chaty_"+channelName})}}),t("body").on("click",".wechat",function(){var t=jQuery(".chaty-widget .chaty-widget-i.wechat").attr("data-code");null!=t&&""!=t&&(jQuery("#wechat-qr-code").length||(htmlString="<div id='wechat-qr-code' class='wechat-qr-code'>",htmlString+='<div class="wechat-box-head">WeChat<svg xmlns="http://www.w3.org/2000/svg" class="close_facebook" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="612px" height="612px" viewBox="0 0 612 612" style="fill: #fff; float: right; margin-top: 4px;" xml:space="preserve"><path xmlns="http://www.w3.org/2000/svg" d="M268.064,256.75l138.593-138.593c3.124-3.124,3.124-8.189,0-11.313c-3.125-3.124-8.189-3.124-11.314,0L256.75,245.436 L118.157,106.843c-3.124-3.124-8.189-3.124-11.313,0c-3.125,3.124-3.125,8.189,0,11.313L245.436,256.75L106.843,395.343 c-3.125,3.125-3.125,8.189,0,11.314c1.562,1.562,3.609,2.343,5.657,2.343s4.095-0.781,5.657-2.343L256.75,268.064l138.593,138.593 c1.563,1.562,3.609,2.343,5.657,2.343s4.095-0.781,5.657-2.343c3.124-3.125,3.124-8.189,0-11.314L268.064,256.75z"></path></svg></div>',htmlString+="<div class='wechat-box'><img src='"+t+"' alt='QR Code' /><a href='javascript:;'>",htmlString+="</a></div></div>",jQuery("body").append(htmlString)),jQuery("#wechat-qr-code").show())});var l=c();"hover"==chaty_settings.object_settings.display_state?e.find(".i-trigger-open").mouseenter(function(s){s.stopPropagation(),w(),n(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||e.hasClass("one_widget")||(r(),t(e).hasClass("chaty-widget-show")||(e.addClass("chaty-widget-show"),e.removeClass("none-widget-show"))),jQuery(".chaty-widget").hasClass("one_widget")&&jQuery(".chaty-widget").removeClass("chaty-widget-show"),"click"==chaty_settings.object_settings.click_setting&&jQuery("body .chaty-widget-i-title.true").remove()}):e.find(".i-trigger-open").click(function(s){s.stopPropagation(),w(),n(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||e.hasClass("one_widget")||(r(),t(e).hasClass("chaty-widget-show")||(e.addClass("chaty-widget-show"),e.removeClass("none-widget-show"))),n(),"click"==chaty_settings.object_settings.click_setting&&jQuery("body .chaty-widget-i-title.true").remove(),jQuery(".cht-pending-message").remove()}),t(".one_widget").on("click",function(){t(".chaty-widget-i-title").hasClass("face_title")?(t(".facebook_two_mess").detach(),t(".chaty-widget-i").addClass("bofore_del")):(t(".chaty-widget-i-title").detach(),t(".chaty-widget-i").addClass("bofore_del")),w(),jQuery(".cht-pending-message").remove()}),e.find(".i-trigger-open").on("click",function(){jQuery(".cht-pending-message").remove(),"none"!=l&&(t(".chaty-widget").hasClass(".one_widget")||t(".i-trigger-open .chaty-widget-i-title1").detach()),"click"==chaty_settings.object_settings.click_setting&&t(".i-trigger-open").addClass("no-tooltip"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||e.hasClass("one_widget")||(r(),t(e).hasClass("chaty-widget-show")||(e.addClass("chaty-widget-show"),e.removeClass("none-widget-show"))),w()}),e.find(".i-trigger-open").mouseenter(function(){"click"==chaty_settings.object_settings.click_setting&&t(this).addClass("no-tooltip"),t(".i-trigger-open").removeClass("active_clos"),o()}),e.find(".chaty-widget-is").mouseleave(function(){t(".i-trigger-open").removeClass("active_clos"),t(".chaty-widget-i.facebook").hasClass("active")}),1===Object.keys(s.object_settings.social).length&&e.find(".i-trigger-open").on("touchstart",function(e){"use strict";t(this).find(".chaty-widget-i").toggleClass("hover")}),1==Object.keys(s.object_settings.social).length&&(jQuery(".chaty-widget").addClass("chaty-widget-show"),jQuery(".chaty-widget-is").css("top","auto"),jQuery(".chaty-widget-is").css("z-index","10001"),jQuery(".chaty-widget-i.i-trigger-close, .i-trigger.chaty-widget-i").remove(),jQuery(".chaty-widget .get a").css("top","-10px"),jQuery(".chaty-widget").addClass("one_widget"),jQuery(".chaty-widget-i:first .chaty-widget-i-title:last p").html(s.object_settings.cta),jQuery(document).on("click",".chaty-widget-i",function(){jQuery(".chaty-widget-i:first .chaty-widget-i-title:last").hide(),jQuery("body").addClass("hide-cht-widget")}),jQuery("body").append("<style>.chaty-widget-is{top:0!important;}</style>"))}(),t(document).ready(function(){1!==Object.keys(s.object_settings.social).length||!s.object_settings.social.snapchat&&!s.object_settings.social.wechat||s.object_settings.cta||(t(".chaty-widget-i-1title").detach(),t(".chaty-widget-i").addClass("bofore_del")),t(".chaty-widget-i-title").hasClass("one_go")&&(t(".chaty-widget-i-title p").html(t(".chaty-widget-i-title.one_go").html()),"none"==c()&&(t(".chaty-widget-i-title").hasClass("face_title")?(t(".facebook_two_mess").detach(),t(".chaty-widget-i").addClass("bofore_del")):(t(".chaty-widget-i-title").detach(),t(".chaty-widget-i").addClass("bofore_del")))),window.matchMedia("only screen and (max-width: 760px)").matches&&t(".i-trigger-open").addClass("active_clos"),jQuery(".chaty-widget-i-title").each(function(){""==jQuery(this).text()&&jQuery(this).remove()})}),t(document).ready(function(){var e=0;0==(e=jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile").length)?jQuery(".chaty-widget").addClass("hide-widget").removeClass("desktop_active").removeClass("mobile_active"):(jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget").removeClass("hide-widget").addClass("desktop_active"):jQuery(".chaty-widget").removeClass("hide-widget").addClass("mobile_active"),1==e?(jQuery(".chaty-close-settings").hide(),jQuery("body").hasClass("chaty-in-desktop")?(htmlToAdd=jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop:first").clone(),jQuery(".i-trigger").html(htmlToAdd)):(htmlToAdd=jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile:first").clone(),jQuery(".i-trigger").html(htmlToAdd)),jQuery(".i-trigger .chaty-widget-i-title p").html(chaty_settings.object_settings.cta),jQuery(".chaty-widget").addClass("one_widget"),jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function(){n(),"click"==chaty_settings.object_settings.click_setting&&(jQuery(".chaty-widget-i-title").remove(),jQuery(".chaty-widget").addClass("hide-tooltip-arrow"),jQuery(".chaty-widget").removeClass("chaty-widget-show")),h(),w()}),jQuery(".chaty-widget").removeClass("chaty-widget-show")):(jQuery(".chaty-widget").removeClass("one_widget"),"click"==chaty_settings.object_settings.click_setting&&jQuery(".i-trigger .chaty-main-widget").remove(),jQuery(".chaty-close-settings").show(),jQuery(".chaty-widget-i-title").removeClass("hide-it"),jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function(){n(),h(),jQuery(".i-trigger .chaty-widget-i-title").addClass("hide-it"),w()}),"open"==chaty_settings.object_settings.display_state&&t(".i-trigger-open").addClass("no-tooltip")));var a,r,g,p=0;if(1==parseInt(chaty_settings.object_settings.display_conditions)){var _=chaty_settings.object_settings.display_rules;if(_.length>0){var m=new Date;m.setHours(m.getHours()+chaty_settings.object_settings.gmt);for(var j=m.getUTCHours(),b=m.getUTCMinutes(),v=m.getUTCDay(),f=0;f<_.length;f++){var Q=0,C=0;-1==_[f].days?C=1:_[f].days>=0&&_[f].days<=6?_[f].days==v&&(C=1):7==_[f].days?v>=0&&v<=4&&(C=1):8==_[f].days?v>=1&&v<=5&&(C=1):9==_[f].days&&(5!=v&&6!=v||(C=1)),1==C&&(j>_[f].start_hours&&j<_[f].end_hours?Q=1:j==_[f].start_hours&&j<_[f].end_hours?b>=_[f].start_min&&(Q=1):j>_[f].start_hours&&j==_[f].end_hours?b<=_[f].end_min&&(Q=1):j==_[f].start_hours&&j==_[f].end_hours&&b>=_[f].start_min&&b<=_[f].end_min&&(Q=1),1==Q&&b>=_[f].start_min&&b<=_[f].end_min&&1),1==Q&&1==C&&(p=1),1==p&&(f=_.length+1)}}else p=1}else p=1;if(1==e&&(""!=c()&&("click"==chaty_settings.object_settings.click_setting&&(jQuery(".chaty-widget-i-title").remove(),jQuery(".chaty-widget").addClass("hide-tooltip-arrow")),setInterval(function(){},1e4)),jQuery(".chaty-main-widget").addClass("i-trigger-open").addClass("single-button"),jQuery(".chaty-widget-show .i-trigger-open svg").css("transform","rotate(0deg)"),jQuery(".chaty-widget").removeClass("chaty-widget-show")),""!=chaty_settings.object_settings.animation_class&&("sheen"!=chaty_settings.object_settings.animation_class?jQuery(".i-trigger .chaty-widget-i svg").wrap(function(){return"<div class='svg'></div>"}):jQuery(".i-trigger .chaty-widget-i .wrap-svg").length||jQuery(".i-trigger .chaty-widget-i svg").wrap(function(){return"<div class='wrap-svg'></div>"})),o()||("on"==chaty_settings.object_settings.pending_messages&&("sheen"!=chaty_settings.object_settings.animation_class?jQuery(".i-trigger .i-trigger-open .svg, .i-trigger .i-trigger-open.single-button .svg").length?jQuery(".i-trigger .i-trigger-open .svg, .i-trigger .i-trigger-open.single-button .svg").append("<span class='cht-pending-message'>"+chaty_settings.object_settings.number_of_messages+"</span>"):jQuery(".i-trigger .i-trigger-open.single-button svg").length?jQuery(".i-trigger .i-trigger-open.single-button svg").after("<span class='cht-pending-message'>"+chaty_settings.object_settings.number_of_messages+"</span>"):jQuery(".i-trigger .i-trigger-open, .i-trigger .i-trigger-open.single-button svg").after("<span class='cht-pending-message'>"+chaty_settings.object_settings.number_of_messages+"</span>"):jQuery(".i-trigger .i-trigger-open, .i-trigger .i-trigger-open.single-button").after("<span class='cht-pending-message'>"+chaty_settings.object_settings.number_of_messages+"</span>"),jQuery(".cht-pending-message").css("color",chaty_settings.object_settings.number_color),jQuery(".cht-pending-message").css("background",chaty_settings.object_settings.number_bg_color)),jQuery(document).on("click",".i-trigger .i-trigger-open, .i-trigger.one-widget",function(){jQuery(".cht-pending-message").remove()})),jQuery("chaty-main-widget").mouseenter(function(){h()}),1==p)if(l("cta_widget_status"))if("no"==chaty_settings.object_settings.time_trigger&&"no"==chaty_settings.object_settings.exit_intent&&"no"==chaty_settings.object_settings.on_page_scroll)jQuery(".chaty-widget").removeClass("hide-widget"),"open"==chaty_settings.object_settings.display_state&&"no"==chaty_settings.object_settings.has_close_button?chaty_settings.object_settings.has_close_button="no":(chaty_settings.object_settings.display_state="hover",chaty_settings.object_settings.has_close_button="yes"),u();else{if(jQuery(".chaty-widget").addClass("hide-widget"),"yes"==chaty_settings.object_settings.time_trigger&&setTimeout(function(){i||(jQuery(".chaty-widget").removeClass("hide-widget"),u())},1e3*parseInt(chaty_settings.object_settings.trigger_time)),"yes"==chaty_settings.object_settings.exit_intent){a=document,r="mouseout",g=function(t){null==t.toElement&&null==t.relatedTarget&&null==y("cta_exit_intent_shown")&&(d("cta_exit_intent_shown","yes",1),i=!0,jQuery(".chaty-widget").removeClass("hide-widget"),jQuery(".chaty-widget").addClass("chaty-animation-widget"),jQuery(".chaty-animation-widget").append("<div class='chaty-nav'></div>"),"open"==chaty_settings.object_settings.display_state&&"no"==chaty_settings.object_settings.has_close_button?chaty_settings.object_settings.has_close_button="no":(chaty_settings.object_settings.display_state="open",chaty_settings.object_settings.has_close_button="yes"),u(),"left"==chaty_settings.object_settings.position?jQuery(".chaty-widget").addClass("left-position"):"right"==chaty_settings.object_settings.position?jQuery(".chaty-widget").addClass("right-position"):"custom"==chaty_settings.object_settings.position&&("left"==s.object_settings.pos_side?jQuery(".chaty-widget").addClass("left-position"):jQuery(".chaty-widget").addClass("right-position")),w(),setTimeout(function(){jQuery(".chaty-animation-widget").addClass("active")},100),setTimeout(function(){jQuery(".chaty-nav").remove()},2500))},a.addEventListener?a.addEventListener(r,g,!1):a.attachEvent&&a.attachEvent("on"+r,g)}"yes"==chaty_settings.object_settings.on_page_scroll&&parseInt(chaty_settings.object_settings.page_scroll)>0&&jQuery(window).scroll(function(){if(!i){var t=jQuery(document).height()-jQuery(window).height(),e=jQuery(window).scrollTop();0!=e&&e/t*100>=parseInt(chaty_settings.object_settings.page_scroll)&&(jQuery(".chaty-widget").removeClass("hide-widget"),u())}})}else jQuery(".chaty-widget").removeClass("hide-widget"),u();else jQuery(".chaty-widget").addClass("hide-widget")}),jQuery(".chaty-widget-i-title").each(function(){""==jQuery(this).text()&&(jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery(this).remove())}),jQuery(".chaty-widget").hasClass("one_widget")||jQuery("body").append("<div class='trigger-chaty-button'></div>"),jQuery("body").addClass(chaty_settings.object_settings.mode+"-cht-menu"),jQuery("body").addClass(chaty_settings.object_settings.position+"-cht-position")})}),jQuery(document).on("click",".trigger-chaty-button",function(){jQuery(".chaty-widget").removeClass("hide-widget"),u(),!jQuery(".chaty-widget").hasClass("none-widget-show")&&jQuery(".chaty-widget").hasClass("chaty-widget-show")||jQuery(".i-trigger-open").trigger("click")}),jQuery(document).on("click",".has-custom-chaty-popup.whatsapp-button",function(t){if(jQuery("#chaty-inline-popup").length){var e=jQuery(this).data("data-index");jQuery("#chaty-widget-"+e).removeClass("chaty-popup-open"),jQuery(".chaty-popup-open").removeClass("chaty-popup-open"),jQuery(".chaty-widget.hide-block").removeClass("active")}if(jQuery(this).hasClass("open-it-by-default")&&t.preventDefault(),jQuery("#chaty-inline-popup").remove(),null!=jQuery(this).attr("data-popup")&&""!=jQuery(this).attr("data-popup")){e="";jQuery(".chaty-widget").addClass("hide-block"),jQuery(".chaty-widget").addClass("chaty-popup-open");var s="<div data-index='"+e+"' id='chaty-inline-popup' class='chaty-inline-popup chaty-popup-form "+jQuery(this).data("channel")+"-channel'>";s+=jQuery(this).attr("data-popup"),jQuery("body").append(s),jQuery(".chaty-inline-popup .default-value").length&&(jQuery(".chaty-whatsapp-msg").val(jQuery(".chaty-inline-popup .default-value").text()),jQuery(".chaty-whatsapp-phone").val(jQuery(".chaty-inline-popup .default-msg-phone").text()),jQuery(".chaty-whatsapp-message").html(jQuery(".chaty-inline-popup .default-msg-value").html())),jQuery(".chaty-widget").addClass("active"),setTimeout(function(){jQuery("#chaty-inline-popup").addClass("active")},150),jQuery(".chaty-whatsapp-msg").focus()}}),jQuery(document).on("click",".close-chaty-popup, .close-chaty-box",function(){jQuery(this).hasClass("is-whatsapp-btn")&&g("cht_whatsapp_window"),jQuery("#chaty-inline-popup").removeClass("active"),jQuery(".chaty-widget").removeClass("chaty-popup-open"),setTimeout(function(){jQuery(".chaty-widget.hide-block").removeClass("active")},250)}),jQuery(document).on("submit",".whatsapp-chaty-form",function(t){g("cht_whatsapp_window"),jQuery("#chaty-inline-popup").removeClass("active"),jQuery(".chaty-widget").removeClass("chaty-popup-open"),setTimeout(function(){jQuery(".chaty-widget.hide-block").removeClass("active")},250)}),jQuery(document).on("submit",".chaty-contact-form-data",function(t){var e=0;if(jQuery(".has-chaty-error").removeClass("has-chaty-error"),jQuery(".chaty-error-msg").remove(),jQuery(".chaty-ajax-error-message").remove(),jQuery(".chaty-ajax-success-message").remove(),jQuery(this).find(".is-required").each(function(){""==jQuery.trim(jQuery(this).val())&&(e++,jQuery(this).addClass("has-chaty-error"))}),0==e){var s=jQuery(this);jQuery(".chaty-contact-submit-btn").attr("disabled",!0),jQuery.ajax({url:chaty_settings.ajax_url,data:{action:"chaty_front_form_save_data",name:s.find(".chaty-field-name").length?s.find(".chaty-field-name").val():"",email:s.find(".chaty-field-email").length?s.find(".chaty-field-email").val():"",message:s.find(".chaty-field-message").length?s.find(".chaty-field-message").val():"",nonce:s.find(".chaty-field-nonce").length?s.find(".chaty-field-nonce").val():"",channel:s.find(".chaty-field-channel").length?s.find(".chaty-field-channel").val():"",widget:s.find(".chaty-field-widget").length?s.find(".chaty-field-widget").val():"",ref_url:window.location.href},type:"post",async:!0,defer:!0,success:function(t){if(t=jQuery.parseJSON(t),jQuery(".chaty-ajax-error-message").remove(),jQuery(".chaty-ajax-success-message").remove(),jQuery(".chaty-contact-submit-btn").attr("disabled",!1),1==t.status)jQuery(".chaty-contact-footer").append("<div class='chaty-ajax-success-message'>"+t.message+"</div>"),jQuery(".chaty-field-name, .chaty-field-email, .chaty-field-message").val(""),"yes"==t.redirect_action&&("yes"==t.link_in_new_tab?window.open(t.redirect_link,"_blank"):window.location=t.redirect_link),"yes"==t.close_form_after&&setTimeout(function(){jQuery("#chaty-inline-popup").removeClass("active"),jQuery(".chaty-widget").removeClass("chaty-popup-open"),setTimeout(function(){jQuery(".chaty-widget.hide-block").removeClass("active")},250)},1e3*parseInt(t.close_form_after_seconds));else if(1==t.error){if(t.errors.length)for(var e=0;e<t.errors.length;e++)jQuery("."+t.errors[e].field).addClass("has-chaty-error"),jQuery("."+t.errors[e].field).after("<span class='chaty-error-msg'>"+t.errors[e].message+"</span>")}else jQuery(".chaty-contact-footer").append("<div class='chaty-ajax-error-message'>"+t.message+"</div>")}})}else jQuery(".has-chaty-error:first").focus();return!1})}(jQuery)},12:function(t,e){}});
|
1 |
+
function launch_chaty(){jQuery(".chaty-widget").hasClass("one_widget")||jQuery(".trigger-chaty-button").trigger("click")}!function(t){var e={};function s(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,s),a.l=!0,a.exports}s.m=t,s.c=e,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/",s(s.s=10)}({10:function(t,e,s){s(11),t.exports=s(12)},11:function(t,e){!function(t){var e,s=0,i=chaty_settings,a=".i-trigger .chaty-widget-i .svg, .i-trigger .chaty-widget-i .widget-img, .i-trigger .chaty-widget-i .facustom-icon";function c(t){return n()&&"click"==chaty_settings.object_settings.click_setting?"none":""}new Date;function n(){var t=o("cta");if(null!=t&&""!=t){t=new Date(t);var e=Math.abs(new Date-t);return Math.floor(e/6e4)<=10}return!1}function o(t){var e=h("chaty_settings"),s=[];if(null!=e&&""!=e&&(s=JSON.parse(e)),s.length>0)for(var i=0;i<s.length;i++)if(s[i].k==t)return s[i].v;return null}function g(t){var e=h("chaty_settings"),s=[];null!=e&&""!=e&&(s=JSON.parse(e));var i=!1;if(s.length>0)for(var a=0;a<s.length;a++)s[a].k==t&&(i=!0,s[a].v=new Date);i||s.push({k:t,v:new Date}),d("chaty_settings",e=JSON.stringify(s),"7")}function r(t){var e=o(t);if(null!=e&&""!=e){e=new Date(e);var s=Math.abs(new Date-e);return Math.floor(s/864e5)>=1}return!0}function l(){var t=h("chaty_settings"),e=[];null!=t&&""!=t&&(e=JSON.parse(t));var s=!1;if(e.length>0)for(var i=0;i<e.length;i++)"cta"==e[i].k&&(s=!0,e[i].v=new Date);s||e.push({k:"cta",v:new Date}),d("chaty_settings",t=JSON.stringify(e),"7")}function d(t,e,s){var i="";if(s){var a=new Date;a.setTime(a.getTime()+24*s*60*60*1e3),i="; expires="+a.toUTCString()}document.cookie=t+"="+(e||"")+i+"; path=/"}function h(t){for(var e=t+"=",s=document.cookie.split(";"),i=0;i<s.length;i++){for(var a=s[i];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(e))return a.substring(e.length,a.length)}return null}function y(){g("cta_widget_status"),s=1;var t=0;t=jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile").length,r("chaty-animation")||(chaty_settings.object_settings.animation_class=""),""!=chaty_settings.object_settings.animation_class&&("sheen"!=chaty_settings.object_settings.animation_class?t>1?(jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3),e=setInterval(function(){jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3)},5e3)):1==t&&(a=".chaty-main-widget svg, .chaty-main-widget img, .chaty-main-widget .facustom-icon",jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3),e=setInterval(function(){jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3)},5e3)):(a=".i-trigger .chaty-widget-i .wrap-svg",jQuery(".i-trigger .chaty-widget-i .wrap-svg").length,jQuery(a).removeClass("chaty-animation-sheen").removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-sheen").addClass("start-now")},10),e=setInterval(function(){jQuery(a).removeClass("chaty-animation-sheen").removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-sheen").addClass("start-now")},10)},5e3))),"open"==chaty_settings.object_settings.display_state&&("no"==chaty_settings.object_settings.has_close_button?t>1&&(w(),jQuery(".chaty-widget").find(".i-trigger-open").removeClass("active_clos"),jQuery(".chaty-widget").find(".i-trigger-open").trigger("click"),jQuery(".chaty-widget-is").addClass("has-no-close-btn"),jQuery(".i-trigger").remove()):t>1&&(w(),jQuery(".chaty-widget").find(".i-trigger-open").removeClass("active_clos"),jQuery(".chaty-widget").find(".i-trigger-open").trigger("click"))),jQuery(".chaty-widget").hasClass("one_widget")&&jQuery(".chaty-widget").removeClass("chaty-widget-show")}function w(){e&&(clearInterval(e),e=0),g("chaty-animation"),jQuery(".chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),jQuery(".start-now").removeClass("start-now"),chaty_settings.object_settings.animation_class=""}c(),token="",jQuery(document).ready(function(){"true"==i.object_settings.active&&function(e,s){var i=e.object_settings.device,a="";if("right"==e.object_settings.position)a="left: auto;bottom: 25px; right: 25px;";else if("left"==e.object_settings.position)a="right: auto; bottom: 25px; left: 25px;";else if("custom"==e.object_settings.position){var n=e.object_settings.pos_side,o=e.object_settings.bot,g=e.object_settings.side;a="right"===n?"left: auto; bottom: "+o+"px; right: "+g+"px":"left: "+g+"px; bottom: "+o+"px; right: auto"}var r=e.object_settings.cta,l="",d=e.object_settings.social,h=!1;if((/(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)))&&(h=!0),h?jQuery("body").addClass("chaty-in-mobile"):jQuery("body").addClass("chaty-in-desktop"),Object.keys(d).length>=1&&(l='<div class="chaty-widget hide-widget '+s+" "+i+' " style="display:block; '+a+'" dir="ltr">',l+='<div class="chaty-widget-is" id="transition_disabled">'),l+=function(e){var s="",i=0;return t.each(e.object_settings.social,function(t,a){if(e.object_settings.isPRO&&jQuery("body").addClass("has-pro-version"),!e.object_settings.isPRO&&"3"==++i)return!1;extra_class="","1"!=e.object_settings.analytics&&1!=e.object_settings.analytics||(extra_class+=" update-analytics ");var c=1==e.object_settings.social[t].is_desktop?"is-in-desktop":"",n=1==e.object_settings.social[t].is_mobile?"is-in-mobile":"",o=1==e.object_settings.is_mobile?e.object_settings.social[t].mobile_target:e.object_settings.social[t].desktop_target;if(jQuery("body").hasClass("chaty-in-mobile")&&(e.object_settings.social[t].href_url=e.object_settings.social[t].mobile_url),"viber"==e.object_settings.social[t].social_channel){if(jQuery("body").hasClass("chaty-in-mobile")){var g=e.object_settings.social[t].href_url;g=g.replace("+",""),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(g="+"+g),e.object_settings.social[t].href_url=g}e.object_settings.social[t].href_url="viber://chat?number="+e.object_settings.social[t].href_url}var r="";""!=e.object_settings.social[t].on_click&&(r=' onclick="'+e.object_settings.social[t].on_click+'"'),socialString='<div class="chaty-widget-i chaty-main-widget '+c+" "+n+" "+extra_class+" channel-"+e.object_settings.social[t].social_channel+'" data-title="'+e.object_settings.social[t].val+'" id="chaty-channel-'+e.object_settings.social[t].social_channel+'" data-channel="'+e.object_settings.social[t].social_channel+'" data-code="'+e.object_settings.social[t].qr_code_image+'">',bgColor="",""!=e.object_settings.social[t].bg_color&&(socialString+="<style>#chaty-channel-"+e.object_settings.social[t].social_channel+" .color-element {fill: "+e.object_settings.social[t].bg_color+"}</style>",bgColor="style='background-color: "+e.object_settings.social[t].bg_color+";'"),socialString+="<a class='set-url-target' "+r+" rel='noopener' data-mobile-target='"+e.object_settings.social[t].mobile_target+"' data-desktop-target='"+e.object_settings.social[t].desktop_target+"' target='"+o+"' href='"+e.object_settings.social[t].href_url+"' >",""!=e.object_settings.social[t].img_url?socialString+="<span "+bgColor+" class='chaty-social-img'><img src='"+e.object_settings.social[t].img_url+"' alt='"+e.object_settings.social[t].title+"' /></span>":socialString+=e.object_settings.social[t].default_icon,socialString+="</a>",socialString+="<div class='chaty-widget-i-title'><p>"+e.object_settings.social[t].title+"</p></div>",socialString+="</div>",s+=socialString}),s}(e),d=e.object_settings.social,Object.keys(d).length>=1){l+="</div>",l+='<div class="i-trigger">';var y=c(),w=current_url=window.location.origin;if(w=(w=w.replace("https://","")).replace("http://",""),""!=r&&"none"!=y)var _="true";else _="no-tooltip";"click"!=chaty_settings.object_settings.click_setting&&(_=!0),l+='<div class="chaty-widget-i chaty-close-settings i-trigger-open '+_+' ">',l+=function(t){switch(t.object_settings.widget_type){case"chat-image":if(t.object_settings.widget_img.length>1)return'<div class="widget-img" style="background-color:'+t.object_settings.color+'"><img src="'+t.object_settings.widget_img+'"/></div>';case"chat-smile":return'<svg version="1.1" id="smile" 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">.st1{fill:#FFFFFF;} .st2{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="'+t.object_settings.color+'"/></g><path class="st1" 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="st2" d="M-476.5,537.3c2.5,1.1,8.5,2.1,13-2.7"/><path class="st2" 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">.st1{fill:#FFFFFF;}</style><g><circle cx="-469.9" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" 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">.st1{fill:#FFFFFF;}</style><g><circle cx="-469" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" 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="st1" 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" id="ch" 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">.st1 {fill: #FFFFFF;}.st0{fill: #808080;}</style><g><circle cx="-469" cy="534.7" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" 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="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="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>'}}(e),y=c(),""!=r&&"none"!=y&&(l+=' <div class="chaty-widget-i-title true"> ',l+=r,l+="</div>"),l+="</div>",l+='<div class="chaty-widget-i chaty-close-settings i-trigger-close" data-title="'+e.object_settings.close_text+'" style="background-color:'+e.object_settings.color+'">',""==e.object_settings.close_img?(l+='<svg viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">',l+='<ellipse cx="26" cy="26" rx="26" ry="26" fill="'+e.object_settings.color+'"/>',l+='<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"/>',l+='<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"/>',l+="</svg>"):l+="<span class='chaty-social-img'><img alt='"+e.object_settings.close_text+"' src='"+e.object_settings.close_img+"' /></span>",l+='<div class="chaty-widget-i-title">',l+=e.object_settings.close_text,l+="</div>",l+="</div>",l+=" </div>",0===s.length&&!e.object_settings.isPRO&&(l+=""),l+="</div>"}t("body").append(l)}(i,token),function(){var e=t(".chaty-widget"),s=i.object_settings.widget_size?i.object_settings.widget_size:54,a=+i.object_settings.widget_size+8;function n(){e.position().top;var t=e.find(".chaty-widget-is .chaty-widget-i").length;if((t=jQuery("body").hasClass("chaty-in-desktop")?e.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:e.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length)*a>jQuery(window).height()-(chaty_settings.object_settings.widget_size+8)){var s=Math.round(Math.sqrt(t)),i=Math.ceil(Math.sqrt(t));e.find(".chaty-widget-is").css({height:i*a,width:s*a}),g(i),e.find("span:not(.cht-pending-message)").css({height:i*a,width:s*a}),g(i),e.find("img").css({height:i*a,width:s*a}),g(i)}else g()}function o(){"left"===i.object_settings.position&&e.addClass("chaty-widget-is-right"),"custom"===i.object_settings.position&&"left"===i.object_settings.pos_side&&e.addClass("chaty-widget-is-right")}function g(t){var i;i=jQuery("body").hasClass("chaty-in-desktop")?e.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:e.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length,e.find(".chaty-widget-i").css({height:s+"px",width:s+"px"}),e.find("img").css({height:s+"px",width:s+"px"}),e.find("span:not(.cht-pending-message)").css({height:s+"px",width:s+"px"}),e.find(".chaty-widget-is").css({top:"-"+100*i+"%"}),e.find(".chaty-widget-is").height(i*(parseInt(s)+8)),e.find(".chaty-widget-is").width(parseInt(s)+8),"horizontal"==chaty_settings.object_settings.mode?(e.find(".chaty-widget-is").css({top:"0"}),e.find(".chaty-widget-is").width(i*(parseInt(s)+8)),e.find(".chaty-widget-is").height(parseInt(s)+8)):(e.find(".chaty-widget-is").height(i*(parseInt(s)+8)),e.find(".chaty-widget-is").width(parseInt(s)+8))}o(),n(),jQuery(window).resize(function(){n(),1==Object.keys(i.object_settings.social).length&&(jQuery(".chaty-widget").addClass("chaty-widget-show"),jQuery(".chaty-widget-is").css("top","auto"))}),t(".chaty-widget-i.facebook").mouseenter(function(){t(".facebook_two_mess").css({opacity:"1","z-index":"1"}),t(this).addClass("before")}),t(".chaty-widget-i.facebook").mouseleave(function(){t(".facebook_two_mess").css({opacity:"0","z-index":"1"}),t(this).removeClass("before")}),t(".chaty-widget-i.facebook").on("click",function(){t(this).addClass("active"),t(".facebook_two_mess").hide(),jQuery(".chaty-widget .get a").hide(),t(this).children(".face_title").css({opacity:"1","z-index":"2"}).show(),t(".chaty-widget").hasClass("one_widget")?t(".chaty-widget").hasClass("chaty-widget-is-right")?t(".face_title").css({top:"calc(100% - 447px)",left:"20px"}):t(".face_title").css({top:"calc(100% - 447px)",left:"auto",right:"20px"}):(t(".facebook_two_mess").css({opacity:"0","z-index":"10001"}),t(".ico_d").hide(),t(".chaty-widget .chaty-widget-i").css({"box-shadow":"0px 3px 6px rgba(0,0,0,0)"}),t(".chaty-widget").hasClass("one_widget")||t(".i-trigger").hide())}),t(".i-trigger-close").on("click",function(s){s.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(e.removeClass("chaty-widget-show"),e.addClass("none-widget-show"))}),t("body").on("click",".close_facebook",function(){t(".facebook_two_mess").show(),jQuery(".chaty-widget .get a").show(),t(".chaty-widget-i.facebook").removeClass("active"),t(this).parent().parent().css({opacity:"1"}).hide(),t(".i-trigger").show(),t(".chaty-widget-is .chaty-widget-i svg").show()}),t(".i-trigger-close").on("click",function(s){t(".i-trigger-open").addClass("active_clos"),s.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(e.removeClass("chaty-widget-show"),e.addClass("none-widget-show"))}),t("body").on("click",".update-analytics",function(t){if(channelName=jQuery(this).attr("data-channel"),null!=channelName&&""!=channelName)if(window.hasOwnProperty("gtag"))gtag("event","chaty_"+channelName,{eventCategory:"chaty_"+channelName,event_action:"chaty_"+channelName});else if(window.hasOwnProperty("ga")){var e=window.ga.getAll()[0];e&&e.send("event","click",{eventCategory:"chaty_"+channelName,eventAction:"chaty_"+channelName})}}),t("body").on("click",".wechat",function(){var t=jQuery(".chaty-widget .chaty-widget-i.wechat").attr("data-code");null!=t&&""!=t&&(jQuery("#wechat-qr-code").length||(htmlString="<div id='wechat-qr-code' class='wechat-qr-code'>",htmlString+='<div class="wechat-box-head">WeChat<svg xmlns="http://www.w3.org/2000/svg" class="close_facebook" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="612px" height="612px" viewBox="0 0 612 612" style="fill: #fff; float: right; margin-top: 4px;" xml:space="preserve"><path xmlns="http://www.w3.org/2000/svg" d="M268.064,256.75l138.593-138.593c3.124-3.124,3.124-8.189,0-11.313c-3.125-3.124-8.189-3.124-11.314,0L256.75,245.436 L118.157,106.843c-3.124-3.124-8.189-3.124-11.313,0c-3.125,3.124-3.125,8.189,0,11.313L245.436,256.75L106.843,395.343 c-3.125,3.125-3.125,8.189,0,11.314c1.562,1.562,3.609,2.343,5.657,2.343s4.095-0.781,5.657-2.343L256.75,268.064l138.593,138.593 c1.563,1.562,3.609,2.343,5.657,2.343s4.095-0.781,5.657-2.343c3.124-3.125,3.124-8.189,0-11.314L268.064,256.75z"></path></svg></div>',htmlString+="<div class='wechat-box'><img src='"+t+"' alt='QR Code' /><a href='javascript:;'>",htmlString+="</a></div></div>",jQuery("body").append(htmlString)),jQuery("#wechat-qr-code").show())});var r=c();"hover"==chaty_settings.object_settings.display_state?e.find(".i-trigger-open").mouseenter(function(s){s.stopPropagation(),w(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||e.hasClass("one_widget")||(o(),t(e).hasClass("chaty-widget-show")||(e.addClass("chaty-widget-show"),e.removeClass("none-widget-show"))),"click"==chaty_settings.object_settings.click_setting&&jQuery("body .chaty-widget-i-title.true").remove()}):e.find(".i-trigger-open").click(function(s){s.stopPropagation(),w(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||e.hasClass("one_widget")||(o(),t(e).hasClass("chaty-widget-show")||(e.addClass("chaty-widget-show"),e.removeClass("none-widget-show"))),"click"==chaty_settings.object_settings.click_setting&&jQuery("body .chaty-widget-i-title.true").remove(),jQuery(".cht-pending-message").remove()}),t(".one_widget").on("click",function(){t(".chaty-widget-i-title").hasClass("face_title")?(t(".facebook_two_mess").detach(),t(".chaty-widget-i").addClass("bofore_del")):(t(".chaty-widget-i-title").detach(),t(".chaty-widget-i").addClass("bofore_del")),w(),jQuery(".cht-pending-message").remove()}),e.find(".i-trigger-open").on("click",function(){jQuery(".cht-pending-message").remove(),"none"!=r&&(t(".chaty-widget").hasClass(".one_widget")||t(".i-trigger-open .chaty-widget-i-title1").detach()),"click"==chaty_settings.object_settings.click_setting&&t(".i-trigger-open").addClass("no-tooltip"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||e.hasClass("one_widget")||(o(),t(e).hasClass("chaty-widget-show")||(e.addClass("chaty-widget-show"),e.removeClass("none-widget-show"))),w()}),e.find(".i-trigger-open").mouseenter(function(){"click"==chaty_settings.object_settings.click_setting&&t(this).addClass("no-tooltip"),t(".i-trigger-open").removeClass("active_clos"),n()}),e.find(".chaty-widget-is").mouseleave(function(){t(".i-trigger-open").removeClass("active_clos"),t(".chaty-widget-i.facebook").hasClass("active")}),1===Object.keys(i.object_settings.social).length&&e.find(".i-trigger-open").on("touchstart",function(e){"use strict";t(this).find(".chaty-widget-i").toggleClass("hover")}),1==Object.keys(i.object_settings.social).length&&(jQuery(".chaty-widget").addClass("chaty-widget-show"),jQuery(".chaty-widget-is").css("top","auto"),jQuery(".chaty-widget-is").css("z-index","10001"),jQuery(".chaty-widget-i.i-trigger-close, .i-trigger.chaty-widget-i").remove(),jQuery(".chaty-widget .get a").css("top","-10px"),jQuery(".chaty-widget").addClass("one_widget"),jQuery(".chaty-widget-i:first .chaty-widget-i-title:last p").text(i.object_settings.cta),jQuery(document).on("click",".chaty-widget-i",function(){jQuery(".chaty-widget-i:first .chaty-widget-i-title:last").hide(),jQuery("body").addClass("hide-cht-widget")}),jQuery("body").append("<style>.chaty-widget-is{top:0!important;}</style>"))}(),t(document).ready(function(){1!==Object.keys(i.object_settings.social).length||!i.object_settings.social.snapchat&&!i.object_settings.social.wechat||i.object_settings.cta||(t(".chaty-widget-i-1title").detach(),t(".chaty-widget-i").addClass("bofore_del")),t(".chaty-widget-i-title").hasClass("one_go")&&(t(".chaty-widget-i-title p").text(t(".chaty-widget-i-title.one_go").html()),"none"==c()&&(t(".chaty-widget-i-title").hasClass("face_title")?(t(".facebook_two_mess").detach(),t(".chaty-widget-i").addClass("bofore_del")):(t(".chaty-widget-i-title").detach(),t(".chaty-widget-i").addClass("bofore_del")))),window.matchMedia("only screen and (max-width: 760px)").matches&&t(".i-trigger-open").addClass("active_clos"),jQuery(".chaty-widget-i-title").each(function(){""==jQuery(this).text()&&jQuery(this).remove()})}),t(document).ready(function(){var t=0;0==(t=jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile").length)?jQuery(".chaty-widget").addClass("hide-widget").removeClass("desktop_active").removeClass("mobile_active"):(jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget").removeClass("hide-widget").addClass("desktop_active"):jQuery(".chaty-widget").removeClass("hide-widget").addClass("mobile_active"),1==t?(jQuery(".chaty-close-settings").hide(),jQuery("body").hasClass("chaty-in-desktop")?(htmlToAdd=jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop:first").clone(),jQuery(".i-trigger").html(htmlToAdd)):(htmlToAdd=jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile:first").clone(),jQuery(".i-trigger").html(htmlToAdd)),jQuery(".i-trigger .chaty-widget-i-title p").text(chaty_settings.object_settings.cta),jQuery(".chaty-widget").addClass("one_widget"),jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function(){"click"==chaty_settings.object_settings.click_setting&&jQuery(".chaty-widget-i-title").remove(),jQuery(".chaty-widget").addClass("hide-tooltip-arrow"),l(),w()})):(jQuery(".chaty-widget").removeClass("one_widget"),"click"==chaty_settings.object_settings.click_setting&&jQuery(".i-trigger .chaty-main-widget").remove(),jQuery(".chaty-close-settings").show(),jQuery(".chaty-widget-i-title").removeClass("hide-it"),jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function(){l(),jQuery(".i-trigger .chaty-widget-i-title").addClass("hide-it"),w()})));var e,a,o,g=0;if(1==parseInt(chaty_settings.object_settings.display_conditions)){var _=chaty_settings.object_settings.display_rules;if(_.length>0){var u=new Date;u.setHours(u.getHours()+chaty_settings.object_settings.gmt);for(var m=u.getUTCHours(),p=u.getUTCMinutes(),b=u.getUTCDay(),j=0;j<_.length;j++){var v=0,f=0;-1==_[j].days?f=1:_[j].days>=0&&_[j].days<=6?_[j].days==b&&(f=1):7==_[j].days?b>=0&&b<=4&&(f=1):8==_[j].days?b>=1&&b<=5&&(f=1):9==_[j].days&&(5!=b&&6!=b||(f=1)),1==f&&(m>_[j].start_hours&&m<_[j].end_hours?v=1:m==_[j].start_hours&&m<_[j].end_hours?p>=_[j].start_min&&(v=1):m>_[j].start_hours&&m==_[j].end_hours?p<=_[j].end_min&&(v=1):m==_[j].start_hours&&m==_[j].end_hours&&p>=_[j].start_min&&p<=_[j].end_min&&(v=1),1==v&&p>=_[j].start_min&&p<=_[j].end_min&&1),1==v&&1==f&&(g=1),1==g&&(j=_.length+1)}}else g=1}else g=1;if(1==t&&(""!=c()&&("click"==chaty_settings.object_settings.click_setting&&jQuery(".chaty-widget-i-title").remove(),jQuery(".chaty-widget").addClass("hide-tooltip-arrow"),setInterval(function(){},1e4)),jQuery(".chaty-main-widget").addClass("i-trigger-open").addClass("single-button"),jQuery(".chaty-widget-show .i-trigger-open svg").css("transform","rotate(0deg)")),""!=chaty_settings.object_settings.animation_class&&("sheen"!=chaty_settings.object_settings.animation_class?jQuery(".i-trigger .chaty-widget-i svg").wrap(function(){return"<div class='svg'></div>"}):jQuery(".i-trigger .chaty-widget-i .wrap-svg").length||jQuery(".i-trigger .chaty-widget-i svg").wrap(function(){return"<div class='wrap-svg'></div>"})),n()||("on"==chaty_settings.object_settings.pending_messages&&("sheen"!=chaty_settings.object_settings.animation_class?jQuery(".i-trigger .i-trigger-open .svg, .i-trigger .i-trigger-open.single-button .svg").append("<span class='cht-pending-message'>"+chaty_settings.object_settings.number_of_messages+"</span>"):jQuery(".i-trigger .i-trigger-open, .i-trigger .i-trigger-open.single-button").after("<span class='cht-pending-message'>"+chaty_settings.object_settings.number_of_messages+"</span>"),jQuery(".cht-pending-message").css("color",chaty_settings.object_settings.number_color),jQuery(".cht-pending-message").css("background",chaty_settings.object_settings.number_bg_color)),jQuery(document).on("click",".i-trigger .i-trigger-open, .i-trigger.one-widget",function(){jQuery(".cht-pending-message").remove()})),jQuery("chaty-main-widget").mouseenter(function(){l()}),1==g)if(r("cta_widget_status"))if("no"==chaty_settings.object_settings.time_trigger&&"no"==chaty_settings.object_settings.exit_intent&&"no"==chaty_settings.object_settings.on_page_scroll)jQuery(".chaty-widget").removeClass("hide-widget"),"open"==chaty_settings.object_settings.display_state&&"no"==chaty_settings.object_settings.has_close_button?chaty_settings.object_settings.has_close_button="no":(chaty_settings.object_settings.display_state="hover",chaty_settings.object_settings.has_close_button="yes"),y();else{if(jQuery(".chaty-widget").addClass("hide-widget"),"yes"==chaty_settings.object_settings.time_trigger&&setTimeout(function(){s||(jQuery(".chaty-widget").removeClass("hide-widget"),y())},1e3*parseInt(chaty_settings.object_settings.trigger_time)),"yes"==chaty_settings.object_settings.exit_intent){e=document,a="mouseout",o=function(t){null==t.toElement&&null==t.relatedTarget&&null==h("cta_exit_intent_shown")&&(d("cta_exit_intent_shown","yes",1),s=!0,jQuery(".chaty-widget").removeClass("hide-widget"),jQuery(".chaty-widget").addClass("chaty-animation-widget"),jQuery(".chaty-animation-widget").append("<div class='chaty-nav'></div>"),"open"==chaty_settings.object_settings.display_state&&"no"==chaty_settings.object_settings.has_close_button?chaty_settings.object_settings.has_close_button="no":(chaty_settings.object_settings.display_state="open",chaty_settings.object_settings.has_close_button="yes"),y(),"left"==chaty_settings.object_settings.position?jQuery(".chaty-widget").addClass("left-position"):"right"==chaty_settings.object_settings.position?jQuery(".chaty-widget").addClass("right-position"):"custom"==chaty_settings.object_settings.position&&("left"==i.object_settings.pos_side?jQuery(".chaty-widget").addClass("left-position"):jQuery(".chaty-widget").addClass("right-position")),w(),setTimeout(function(){jQuery(".chaty-animation-widget").addClass("active")},100),setTimeout(function(){jQuery(".chaty-nav").remove()},2500))},e.addEventListener?e.addEventListener(a,o,!1):e.attachEvent&&e.attachEvent("on"+a,o)}"yes"==chaty_settings.object_settings.on_page_scroll&&parseInt(chaty_settings.object_settings.page_scroll)>0&&jQuery(window).scroll(function(){if(!s){var t=jQuery(document).height()-jQuery(window).height(),e=jQuery(window).scrollTop();0!=e&&e/t*100>=parseInt(chaty_settings.object_settings.page_scroll)&&(jQuery(".chaty-widget").removeClass("hide-widget"),y())}})}else jQuery(".chaty-widget").removeClass("hide-widget"),y();else jQuery(".chaty-widget").addClass("hide-widget")}),jQuery(".chaty-widget-i-title").each(function(){""==jQuery(this).text()&&(jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery(this).remove())}),jQuery(".chaty-widget").hasClass("one_widget")||jQuery("body").append("<div class='trigger-chaty-button'></div>"),jQuery("body").addClass(chaty_settings.object_settings.mode+"-cht-menu"),jQuery("body").addClass(chaty_settings.object_settings.position+"-cht-position")}),jQuery(document).on("click",".trigger-chaty-button",function(){jQuery(".chaty-widget").removeClass("hide-widget"),y(),!jQuery(".chaty-widget").hasClass("none-widget-show")&&jQuery(".chaty-widget").hasClass("chaty-widget-show")||jQuery(".i-trigger-open").trigger("click")})}(jQuery)},12:function(t,e){}});
|
readme.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
=== Floating Chat Widget: Contact Icons, Messages, Telegram, Email, SMS, Call Button – Chaty ===
|
2 |
Contributors: galdub, tomeraharon, premio
|
3 |
-
Tags: whatsapp,
|
4 |
Requires at least: 3.1
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 2.
|
7 |
Plugin URI: https://premio.io/downloads/chaty/
|
8 |
|
9 |
-
|
10 |
|
11 |
== Description ==
|
12 |
|
@@ -14,21 +14,21 @@ Whatsapp, Facebook Messenger, Telegram, Viber, Email, Phone call, SMS and more w
|
|
14 |
Show a chat button on the bottom of your site and communicate with your customers.</strong>
|
15 |
|
16 |
* Get more leads and calls
|
17 |
-
* Let your customers chat with you via their favorite channels like Facebook Messenger, WhatsApp, Viber, Slack, Telegram
|
18 |
* Improve your customer support
|
19 |
* Direct customers to your store's location
|
20 |
|
21 |
[youtube https://www.youtube.com/watch?v=uaqjRp3HAqU]
|
22 |
|
23 |
= The ultimate click to chat and call now button =
|
24 |
-
Are you looking for a chat button or a click to call button? Want to make it easier for your potential customers to contact you via
|
25 |
|
26 |
-
Chaty is the perfect chat plugin for you! With Chaty you can display
|
27 |
|
28 |
= What can you do with Chaty =
|
29 |
Here are some classic use cases for Chaty
|
30 |
|
31 |
-
* Chaty VS live chat alternatives - there's a big benefit in giving your visitors the option to use the chat channels they already use. When you use "regular" live chat alternatives, your visitors must stay on your website and wait for your response. When you let your visitors chat with you using chat apps like Facebook Messenger, WhatsApp, Viber, Telegram, etc, you give them
|
32 |
* A direct click to chat method - show your visitors the chat channels you're available at, and let them choose the method that suits them. Your website visitors are one click away from chatting with you.
|
33 |
* Help your website visitors navigate to your address - if you have a physical business and want your visitors to be able to navigate to you with ease, you can use our Google Maps and Waze channels.
|
34 |
* Click to call - show a phone icon and let your visitors click to call you. If you want to show different local phone numbers based on page URL you can use the multi widget pro feature.
|
@@ -42,15 +42,13 @@ A live demo of the Chaty plugin is available at <a href="https://demo.premio.io/
|
|
42 |
= Join the Premio community =
|
43 |
Have any questions or feature suggestions? We'd love to hear from you. <strong><a href="https://www.facebook.com/groups/premioplugins/" target="_blank" title="Premio Facebook group">Join our Facebook group</a></strong> to share ideas and get updates about new features.
|
44 |
|
45 |
-
= Choose from
|
46 |
WhatsApp chat
|
47 |
Facebook Messenger
|
48 |
-
Contact Us Form
|
49 |
Email
|
50 |
SMS
|
51 |
Instagram
|
52 |
Snapchat
|
53 |
-
Launch a <a href="https://www.poptin.com/?utm_source=chatylisting" target="_blank">Poptin pop up</a>
|
54 |
Twitter
|
55 |
LinkedIn
|
56 |
Skype
|
@@ -64,6 +62,7 @@ Viber
|
|
64 |
Waze
|
65 |
Google maps
|
66 |
Link to an external channel/contact page (New feature: add 2 custom buttons and link to any URL you desire)
|
|
|
67 |
|
68 |
= What do you get in the Free plan? =
|
69 |
1. Show up to 2 different click to chat channels.
|
@@ -71,31 +70,29 @@ Link to an external channel/contact page (New feature: add 2 custom buttons and
|
|
71 |
3. Add a custom Call-To-Action message besides your chat widget and set its display frequency
|
72 |
4. Set a display trigger - decide when the widget will appear for the first time. You can show it after a few seconds, on page scroll, or use our powerful exit intent trigger. When you choose more than one trigger, the widget will appear when the first trigger takes place. The exit intent trigger will help you get your website's visitors' attention when they plan to leave your website.
|
73 |
5. Attention effect - choose from 5 stunning attention effects including bounce, waggle, sheen, spin, and fade. Your attention effect will help you capture the attention of your website visitors. Once the see your chat widget, your conversation rate will increase significantly.
|
74 |
-
6. Pending messages icon - increase your chat button click-rate by displaying a pending messages icon with the number of pending messages
|
75 |
6. Fully customize all chat icons including colors and text on hover. You can also translate the "Hide" text to your language now :)
|
76 |
7. Choose between 7 different colors.
|
77 |
-
8. New!
|
78 |
-
9.
|
79 |
-
10.
|
80 |
-
11.
|
81 |
-
12.
|
82 |
-
13.
|
83 |
-
14.
|
84 |
-
15.
|
85 |
-
16. Change the
|
86 |
-
17.
|
87 |
-
18.
|
88 |
-
19.
|
89 |
-
20.New!
|
90 |
-
21. New!
|
91 |
-
22. New! You can now add a Slack chat button.
|
92 |
-
23. New! We've added a third custom chat button, you can link to any page or fire a JavaScript code.
|
93 |
|
94 |
= What do you get in the Pro plan? =
|
95 |
Unlock the Pro features for only $25/year
|
96 |
You will get all the features of the free plan, plus:
|
97 |
|
98 |
-
1. Show all the channels you want at the same time (
|
99 |
2. Customize the chat button widget color with HEX code
|
100 |
3. Change the location of the chat button on the screen by the pixel
|
101 |
4. Upload your own custom chat button design
|
@@ -106,33 +103,21 @@ Separate widget design for mobile and desktop
|
|
106 |
Change widget language for WPML and multi-language websites
|
107 |
Different chat widgets for different products and categories
|
108 |
Different chats buttons based on purpose (support, sales, etc)
|
109 |
-
7. New!
|
110 |
-
8.
|
111 |
-
9.
|
112 |
-
10.
|
113 |
-
11.
|
114 |
-
12. New!
|
115 |
-
13. New!
|
116 |
-
14. New! Duplicate your Chaty widget to save time and use the same settings and chat channels from another widget
|
117 |
-
15. New! Get your contact form leads to email
|
118 |
Works great for multi-language websites and WPML plugin, for different products, landing pages, and any other URL targeting rule.
|
119 |
<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 :)
|
120 |
|
121 |
-
= WhatsApp Chat Pop Up =
|
122 |
-
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. 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
|
123 |
-
[youtube https://www.youtube.com/watch?v=tJub8v2_sTM]
|
124 |
-
|
125 |
-
= Contact Us Form =
|
126 |
-
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
|
127 |
-
[youtube https://www.youtube.com/watch?v=yf8io0PkKq8]
|
128 |
-
|
129 |
= How does each channel work? =
|
130 |
-
* WhatsApp chat - add your phone number and once the visitors click on the WhatsApp chat button, WhatsApp chat interface will be launched. On desktop it will launch
|
131 |
|
132 |
* Facebook Messenger - add the link to your Facebook business page (fan page), and once the visitors click on the Facebook Messenger button, a chat window will appear and they will be able to send you a message. You will get the message into your Facebook page inbox.
|
133 |
|
134 |
-
* Contact Us Form - let your visitors contact your using a native contact us form
|
135 |
-
|
136 |
* Email - add your business email, and once the visitors click on the email button, their email client will be launched. For example Gmail or Outlook.
|
137 |
|
138 |
* SMS - add your phone number, and let your visitors send you a direct SMS via their mobile devices.
|
@@ -145,21 +130,21 @@ You can add a contact form as a channel, this way your visitors can contact you
|
|
145 |
|
146 |
* Skype - Skype is a telecommunications app that provides free online voice calls, video chat calls, messaging, affordable international calling to mobiles or landlines. Add your Skype username and let your visitors call and message you easily via Skype.
|
147 |
|
148 |
-
* Vkontakte - is a
|
149 |
|
150 |
-
* LinkedIn icon - link to your LinkedIn profile so your
|
151 |
|
152 |
-
* Phone (click to call) - one of the most useful cases. Add your phone number and let your visitors call you in a click of a button.
|
153 |
|
154 |
-
* Telegram - is a instant messaging and voice over IP app developed by Telegram Messenger LLP. Add your Telegram username and let your visitors contact
|
155 |
|
156 |
-
* Line.me - Line is a free app for instant communications on desktop and mobile devices. With Line you can send texts, images, video
|
157 |
|
158 |
-
* WeChat - is a Chinese multi-purpose messaging, social media
|
159 |
|
160 |
* Slack - Slack is a business chat and communication platform that enables organizations to communicate better. Add your Slack workspace and give your visitors the option to find your Slack workspace and chat with you.
|
161 |
|
162 |
-
* Viber - is a cross-platform instant messaging and voice over IP app. Add your phone number and let
|
163 |
|
164 |
* Waze - is a GPS navigation app that works on smartphones and tablets with GPS support, owned by Google. Add your Waze location link and direct your visitors to your store’s location via Waze app.
|
165 |
|
@@ -172,7 +157,7 @@ You can add a contact form as a channel, this way your visitors can contact you
|
|
172 |
Chaty works great with all themes and page builders including Elementor, Divi, Visual Composer, WPBakery, Beaver, SiteOrigin, Gutenberg, WooCommerce and more
|
173 |
|
174 |
= Chaty is GDPR complaint =
|
175 |
-
We don't store any local data about your visitors
|
176 |
|
177 |
= Testimonials =
|
178 |
|
@@ -199,7 +184,7 @@ We don't store any local data about your visitors (unless you select the contact
|
|
199 |
You can choose up to two channels (unlimited in the pro plan), display the widget on mobile and desktop, choose from 6 available colors (unlimited in the pro plan), position the widget on the left or right (custom positioning in the pro plan), custom call-to-action.
|
200 |
|
201 |
= Is there a time limit for the free plan? =
|
202 |
-
No.
|
203 |
|
204 |
= Will Chaty work with any theme and page builder? =
|
205 |
Yes! Chaty works great with all themes and page builders including Elementor, Divi, Visual Composer, WPBakery, Beaver, SiteOrigin, Gutenberg, WooCommerce and more
|
@@ -237,32 +222,16 @@ Yes! You can even decide what chat buttons will show up on each device (desktop/
|
|
237 |
== Screenshots ==
|
238 |
|
239 |
1. All the popular click to chat channels included in the free plan
|
240 |
-
2. You can
|
241 |
-
3.
|
242 |
-
4.
|
243 |
-
5. Chaty
|
244 |
-
6.
|
245 |
-
7.
|
246 |
-
8.
|
247 |
-
9. Add a custom call-to-action message to your widget
|
248 |
-
10. Add attention effect to increase your chat button CTR
|
249 |
|
250 |
|
251 |
== Changelog ==
|
252 |
-
= 2.7.1 =
|
253 |
-
Emoji related bug fixed
|
254 |
-
|
255 |
-
= 2.7 =
|
256 |
-
WhatsApp chat pop up (you should definitely give it a try!), contact us form as a channel, and some bugs were fixed :)
|
257 |
-
|
258 |
-
= 2.6.6 =
|
259 |
-
Triggers and devices selection bug fixed for the mobile chat buttons
|
260 |
-
|
261 |
-
= 2.6.5 =
|
262 |
-
You can change the background color of the call-to-action message + bug fixes
|
263 |
-
|
264 |
-
= 2.6.4 =
|
265 |
-
WP 5.5
|
266 |
|
267 |
= 2.6.3 =
|
268 |
Pending messages icon for the chat widget, call-to-action frequency, Swift cache support, and some minor
|
1 |
=== Floating Chat Widget: Contact Icons, Messages, Telegram, Email, SMS, Call Button – Chaty ===
|
2 |
Contributors: galdub, tomeraharon, premio
|
3 |
+
Tags: whatsapp, facebook messenger, click to chat, chat, chat button, call now button, messenger, whatsapp button, chat icon, messenger chat icon, contact button, click to call
|
4 |
Requires at least: 3.1
|
5 |
+
Tested up to: 5.4
|
6 |
+
Stable tag: 2.6.3
|
7 |
Plugin URI: https://premio.io/downloads/chaty/
|
8 |
|
9 |
+
Let your visitors contact you via Facebook Messenger, Whatsapp, Telegram, Viber, Email, Phone call, SMS and more with customizable chat & call buttons
|
10 |
|
11 |
== Description ==
|
12 |
|
14 |
Show a chat button on the bottom of your site and communicate with your customers.</strong>
|
15 |
|
16 |
* Get more leads and calls
|
17 |
+
* Let your customers chat with you via their favorite channels like Facebook Messenger, WhatsApp, Viber, Slack, Telegram and many other chat channels
|
18 |
* Improve your customer support
|
19 |
* Direct customers to your store's location
|
20 |
|
21 |
[youtube https://www.youtube.com/watch?v=uaqjRp3HAqU]
|
22 |
|
23 |
= The ultimate click to chat and call now button =
|
24 |
+
Are you looking for a chat button or a click to call button? Want to make it easier for your potential customers to contact you via Facebook Messenger or Telegram?
|
25 |
|
26 |
+
Chaty is the perfect chat plugin for you! With Chaty you can display call widget, Whatsapp button, email button, SMS button, Google Maps button, Vkontakte button, Line.me button, Viber button and other chat widgets. Your visitors are already using their favorite chat apps, and most of them prefer to contact you using those chat apps. By using Chaty, you give your website visitors the option to chat with you even after they leave your website. Want to use our robust pro version? Check out <a href="https://premio.io/downloads/chaty/?utm_source=wordpressorg" target="_blank" title="Chaty pro plans"><strong>Chaty Pro Plans</strong></a>.
|
27 |
|
28 |
= What can you do with Chaty =
|
29 |
Here are some classic use cases for Chaty
|
30 |
|
31 |
+
* Chaty VS live chat alternatives - there's a big benefit in giving your visitors the option to use the chat channels they already use. When you use "regular" live chat alternatives, your visitors must stay on your website and wait for your response. When you let your visitors chat with you using chat apps like Facebook Messenger, WhatsApp, Viber, Telegram, etc, you give them to freedom of chatting with you whenever they go.
|
32 |
* A direct click to chat method - show your visitors the chat channels you're available at, and let them choose the method that suits them. Your website visitors are one click away from chatting with you.
|
33 |
* Help your website visitors navigate to your address - if you have a physical business and want your visitors to be able to navigate to you with ease, you can use our Google Maps and Waze channels.
|
34 |
* Click to call - show a phone icon and let your visitors click to call you. If you want to show different local phone numbers based on page URL you can use the multi widget pro feature.
|
42 |
= Join the Premio community =
|
43 |
Have any questions or feature suggestions? We'd love to hear from you. <strong><a href="https://www.facebook.com/groups/premioplugins/" target="_blank" title="Premio Facebook group">Join our Facebook group</a></strong> to share ideas and get updates about new features.
|
44 |
|
45 |
+
= Choose from 20 different channels =
|
46 |
WhatsApp chat
|
47 |
Facebook Messenger
|
|
|
48 |
Email
|
49 |
SMS
|
50 |
Instagram
|
51 |
Snapchat
|
|
|
52 |
Twitter
|
53 |
LinkedIn
|
54 |
Skype
|
62 |
Waze
|
63 |
Google maps
|
64 |
Link to an external channel/contact page (New feature: add 2 custom buttons and link to any URL you desire)
|
65 |
+
Launch a Poptin popup
|
66 |
|
67 |
= What do you get in the Free plan? =
|
68 |
1. Show up to 2 different click to chat channels.
|
70 |
3. Add a custom Call-To-Action message besides your chat widget and set its display frequency
|
71 |
4. Set a display trigger - decide when the widget will appear for the first time. You can show it after a few seconds, on page scroll, or use our powerful exit intent trigger. When you choose more than one trigger, the widget will appear when the first trigger takes place. The exit intent trigger will help you get your website's visitors' attention when they plan to leave your website.
|
72 |
5. Attention effect - choose from 5 stunning attention effects including bounce, waggle, sheen, spin, and fade. Your attention effect will help you capture the attention of your website visitors. Once the see your chat widget, your conversation rate will increase significantly.
|
73 |
+
6. Pending messages icon - increase your chat button click-rate by displaying a pending messages icon with the number of pending messages near your Chaty widget to let your visitors know that you're waiting for them to contact you.
|
74 |
6. Fully customize all chat icons including colors and text on hover. You can also translate the "Hide" text to your language now :)
|
75 |
7. Choose between 7 different colors.
|
76 |
+
8. New! Show your chat buttons vertical mode or horizontal mode.
|
77 |
+
9. Change the size of the widget.
|
78 |
+
10. Choose between 4 beautiful chat button designs.
|
79 |
+
11. You decide if you want to show the widget on mobile & desktop or both!
|
80 |
+
12. Select your default state - you can show all your chat channels in an "open-state", or show the widget and let the visitors click on it or hover over it (you decide) to open the chat widget up and see all your chat icons.
|
81 |
+
13. Show different channels for mobile and desktop. E.g. On mobile you can display a call now button, Viber button, and a Telegram button, and on desktop, you can display a WhatsApp button and a Facebook Messenger chat button.
|
82 |
+
14. Change the channel icons order using drag and drop interface.
|
83 |
+
15. New feature: we've added 3 brand new buttons - Instagram, Twitter, LinkedIn, and an option to add 2 custom buttons.
|
84 |
+
16. Change the font of your chat widget's call-to-action message and the chat channels tooltips.
|
85 |
+
17. Decide if you want the custom chat button open in a new tab or in the current tab.
|
86 |
+
18.New! Launch the Chaty chat button using a JavaScript function launch_chaty(); - you can use it to open the chat button in any custom event.
|
87 |
+
19. New! Make your custom channels act as an existing channel. For example, you can create two WhatsApp buttons or two Facebook Messenger buttons.
|
88 |
+
20. New! You can now add a Slack chat button.
|
89 |
+
21. New! We've added a third custom chat button, you can link to any page or fire a JavaScript code.
|
|
|
|
|
90 |
|
91 |
= What do you get in the Pro plan? =
|
92 |
Unlock the Pro features for only $25/year
|
93 |
You will get all the features of the free plan, plus:
|
94 |
|
95 |
+
1. Show all the channels you want at the same time (20 different click to chat buttons and other icons)
|
96 |
2. Customize the chat button widget color with HEX code
|
97 |
3. Change the location of the chat button on the screen by the pixel
|
98 |
4. Upload your own custom chat button design
|
103 |
Change widget language for WPML and multi-language websites
|
104 |
Different chat widgets for different products and categories
|
105 |
Different chats buttons based on purpose (support, sales, etc)
|
106 |
+
7. New! Widget Analytics - get data about your most used chat channels. Find out which of your chat widgets converts better.
|
107 |
+
8. Create a pre-set WhatsApp chat message and pre-set email subject line. When people click on your WhatsApp button or email icon, you pre-set message will be automatically loaded
|
108 |
+
9. Fire a Google Analytics event every time one of your channels buttons is clicked. That's great news for you, because now you can fully track any click to call, chat, navigate, and more
|
109 |
+
10. Available days and hours - display the widget on specific days and hours based on your opening days and hours. E.g. You can show live chat channels like Facebook Messenger and WhatsApp on certain days & hours, and when you're not available for live chat you can display email and Instagram.
|
110 |
+
11. New! Country targeting - show different chat button for different countries. For example, you can show Line, Viber, WeChat, and Whatsapp chat for Chinese users, and Facebook Messenger, email button, and SMS text icon for visitors from the US.
|
111 |
+
12. New! Add your own custom CSS.
|
112 |
+
13. New! Duplicate your Chaty widget to save time and use the same settings and chat channels from another widget
|
|
|
|
|
113 |
Works great for multi-language websites and WPML plugin, for different products, landing pages, and any other URL targeting rule.
|
114 |
<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 :)
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
= How does each channel work? =
|
117 |
+
* WhatsApp chat - add your phone number and once the visitors click on the WhatsApp chat button, WhatsApp chat interface will be launched. On desktop it will launch desktop WhatsApp web interface, and on mobile it will launch the WhatsApp app conversation window.
|
118 |
|
119 |
* Facebook Messenger - add the link to your Facebook business page (fan page), and once the visitors click on the Facebook Messenger button, a chat window will appear and they will be able to send you a message. You will get the message into your Facebook page inbox.
|
120 |
|
|
|
|
|
121 |
* Email - add your business email, and once the visitors click on the email button, their email client will be launched. For example Gmail or Outlook.
|
122 |
|
123 |
* SMS - add your phone number, and let your visitors send you a direct SMS via their mobile devices.
|
130 |
|
131 |
* Skype - Skype is a telecommunications app that provides free online voice calls, video chat calls, messaging, affordable international calling to mobiles or landlines. Add your Skype username and let your visitors call and message you easily via Skype.
|
132 |
|
133 |
+
* Vkontakte - is a russian online social network. Vkontakte is available in a few languages and it is very popular among Russian-speaking users. Add you Vkontakte username and let your visitors contact you directly through the app.
|
134 |
|
135 |
+
* LinkedIn icon - link to your LinkedIn profile so your vistors can connect with you and send you direct messages.
|
136 |
|
137 |
+
* Phone (click to call) - one of the most useful cases. Add your phone number and let your visitors call you in a click of a button. Call now button is very popular for mobile visitors and can help you get more calls easily.
|
138 |
|
139 |
+
* Telegram - is a instant messaging and voice over IP app developed by Telegram Messenger LLP. Add your Telegram username and let your visitors contact your directly via Telegram app.
|
140 |
|
141 |
+
* Line.me - Line is a free app for instant communications on desktop and mobile devices. With Line you can send texts, images, video and audio, and conduct free VoIP conversations and video conferences. Add your Line URL and let your visitors contact you easily via Line app.
|
142 |
|
143 |
+
* WeChat - is a Chinese multi-purpose messaging, social media and mobile payment app. Add your WeChat User ID and let your visitors search for you easily WeChat app. In the pro plan, you can upload a QR code.
|
144 |
|
145 |
* Slack - Slack is a business chat and communication platform that enables organizations to communicate better. Add your Slack workspace and give your visitors the option to find your Slack workspace and chat with you.
|
146 |
|
147 |
+
* Viber - is a cross-platform instant messaging and voice over IP app. Add your phone number and let you visitors call you and message your via the Viber chat button.
|
148 |
|
149 |
* Waze - is a GPS navigation app that works on smartphones and tablets with GPS support, owned by Google. Add your Waze location link and direct your visitors to your store’s location via Waze app.
|
150 |
|
157 |
Chaty works great with all themes and page builders including Elementor, Divi, Visual Composer, WPBakery, Beaver, SiteOrigin, Gutenberg, WooCommerce and more
|
158 |
|
159 |
= Chaty is GDPR complaint =
|
160 |
+
We don't store any local data about your visitors. Any time your visitors click on any your the channels buttons, Chaty will forward the visitor to the relevant platform without saving any local data about it.
|
161 |
|
162 |
= Testimonials =
|
163 |
|
184 |
You can choose up to two channels (unlimited in the pro plan), display the widget on mobile and desktop, choose from 6 available colors (unlimited in the pro plan), position the widget on the left or right (custom positioning in the pro plan), custom call-to-action.
|
185 |
|
186 |
= Is there a time limit for the free plan? =
|
187 |
+
No. you can use the free plan as long as you want.
|
188 |
|
189 |
= Will Chaty work with any theme and page builder? =
|
190 |
Yes! Chaty works great with all themes and page builders including Elementor, Divi, Visual Composer, WPBakery, Beaver, SiteOrigin, Gutenberg, WooCommerce and more
|
222 |
== Screenshots ==
|
223 |
|
224 |
1. All the popular click to chat channels included in the free plan
|
225 |
+
2. You can also create a single channel widget for click to chat, call and more
|
226 |
+
3. Chaty works great on mobile!
|
227 |
+
4. Add Facebook Messenger, WhatsApp, Skype, Instagram, and many other channels
|
228 |
+
5. Manage Chaty from mobile with ease
|
229 |
+
6. Choose from a variety of click to chat channels
|
230 |
+
7. Add a custom call-to-action message to your widget
|
231 |
+
8. Add attention effect to increase your chat button CTR
|
|
|
|
|
232 |
|
233 |
|
234 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
|
236 |
= 2.6.3 =
|
237 |
Pending messages icon for the chat widget, call-to-action frequency, Swift cache support, and some minor
|
views/admin/admin.php
CHANGED
@@ -63,4 +63,3 @@ $pro_class = (!$is_pro && $cht_license_key !== "")?"none_pro":"";
|
|
63 |
|
64 |
<?php require_once 'help.php'; ?>
|
65 |
</div>
|
66 |
-
<?php require_once 'popup.php'; ?>
|
63 |
|
64 |
<?php require_once 'help.php'; ?>
|
65 |
</div>
|
|
views/admin/channels-section.php
CHANGED
@@ -3,25 +3,6 @@ if (!defined('ABSPATH')) {
|
|
3 |
exit;
|
4 |
}
|
5 |
?>
|
6 |
-
<div style="display: none">
|
7 |
-
<?php
|
8 |
-
$embedded_message = "";
|
9 |
-
$settings = array(
|
10 |
-
'media_buttons' => false,
|
11 |
-
'wpautop' => false,
|
12 |
-
'drag_drop_upload' => false,
|
13 |
-
'textarea_name' => 'chat_editor_channel',
|
14 |
-
'textarea_rows' => 4,
|
15 |
-
'quicktags' => false,
|
16 |
-
'tinymce' => array(
|
17 |
-
'toolbar1' => 'bold, italic, underline',
|
18 |
-
'toolbar2' => '',
|
19 |
-
'toolbar3' => ''
|
20 |
-
)
|
21 |
-
);
|
22 |
-
wp_editor($embedded_message, "chat_editor_channel", $settings );
|
23 |
-
?>
|
24 |
-
</div>
|
25 |
<svg class="read-only" aria-hidden="true" width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
26 |
<defs>
|
27 |
<linearGradient id="linear-gradient" x1="0.892" y1="0.192" x2="0.128" y2="0.85" gradientUnits="objectBoundingBox">
|
@@ -189,7 +170,7 @@ if (!defined('ABSPATH')) {
|
|
189 |
$cta = nl2br(get_option('cht_cta'));
|
190 |
$cta = str_replace(array("\r", "\n"), "", $cta);
|
191 |
?>
|
192 |
-
<span
|
193 |
</div>
|
194 |
</div>
|
195 |
</div>
|
@@ -219,7 +200,7 @@ if (!defined('ABSPATH')) {
|
|
219 |
$imageUrl = plugin_dir_url("")."chaty/admin/assets/images/chaty-default.png";
|
220 |
?>
|
221 |
<input type="hidden" id="default_image" value="<?php echo esc_url($imageUrl) ?>" />
|
222 |
-
<div class="channels-icons"
|
223 |
<?php if ($this->socials) :
|
224 |
foreach ($this->socials as $key => $social) :
|
225 |
$value = get_option('cht_social'.'_' . $social['slug']);
|
@@ -229,15 +210,10 @@ if (!defined('ABSPATH')) {
|
|
229 |
$active_class = 'active';
|
230 |
}
|
231 |
endforeach; ?>
|
232 |
-
<div class="icon icon-sm
|
233 |
-
<
|
234 |
-
|
235 |
-
|
236 |
-
</svg>
|
237 |
-
<?php if($social['slug'] == "Contact_Us") {
|
238 |
-
echo "<span>".esc_attr("Contact Form")."</span>";
|
239 |
-
} ?>
|
240 |
-
</span>
|
241 |
</div>
|
242 |
<?php endforeach; ?>
|
243 |
<?php endif; ?>
|
@@ -287,9 +263,6 @@ if (!defined('ABSPATH')) {
|
|
287 |
if(!isset($value['fa_icon'])) {
|
288 |
$value['fa_icon'] = ""; // Initialize title if not exists. 2.1.0 change
|
289 |
}
|
290 |
-
if(!isset($value['value'])) {
|
291 |
-
$value['value'] = ""; // Initialize title if not exists. 2.1.0 change
|
292 |
-
}
|
293 |
$imageId = $value['image_id'];
|
294 |
$status = 0;
|
295 |
if(!empty($imageId)) {
|
@@ -347,7 +320,7 @@ if (!defined('ABSPATH')) {
|
|
347 |
|
348 |
$channel_type = "";
|
349 |
$placeholder = $social['example'];
|
350 |
-
if($social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3"
|
351 |
if (isset($value['channel_type'])) {
|
352 |
$channel_type = esc_attr__(wp_unslash($value['channel_type']));
|
353 |
}
|
@@ -394,12 +367,10 @@ if (!defined('ABSPATH')) {
|
|
394 |
</span>
|
395 |
</div>
|
396 |
|
397 |
-
|
398 |
-
|
399 |
-
<
|
400 |
-
|
401 |
-
</div>
|
402 |
-
<?php } ?>
|
403 |
<div class="channels__device-box">
|
404 |
<?php
|
405 |
$slug = esc_attr__($this->del_space($social['slug']));
|
@@ -420,99 +391,39 @@ if (!defined('ABSPATH')) {
|
|
420 |
</label>
|
421 |
</div>
|
422 |
|
423 |
-
<?php if($social['slug'] == 'Contact_Us') { ?>
|
424 |
-
<div class="channels__input transparent"></div>
|
425 |
-
<?php } ?>
|
426 |
-
|
427 |
-
<?php
|
428 |
-
$close_class = "active";
|
429 |
-
if($social['slug'] == 'Contact_Us') {
|
430 |
-
$setting_status = get_option("chaty_contact_us_setting");
|
431 |
-
if($setting_status === false) {
|
432 |
-
$close_class = "";
|
433 |
-
}
|
434 |
-
}
|
435 |
-
?>
|
436 |
-
|
437 |
-
|
438 |
<!-- button for advance setting -->
|
439 |
-
<div class="chaty-settings
|
440 |
<a href="javascript:;"><span class="dashicons dashicons-admin-generic"></span> Settings</a>
|
441 |
</div>
|
442 |
-
<?php if($social['slug'] != 'Contact_Us') { ?>
|
443 |
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
<?php } ?>
|
451 |
-
<?php esc_attr_e($placeholder); ?>
|
452 |
-
</span>
|
453 |
-
</div>
|
454 |
-
|
455 |
-
<!-- checking for extra help message for social media -->
|
456 |
-
<div class="help-section">
|
457 |
-
<?php if((isset($social['help']) && !empty($social['help'])) || isset($social['help_link'])) { ?>
|
458 |
-
<div class="viber-help">
|
459 |
-
<?php if(isset($help_link) && !empty($help_link)) { ?>
|
460 |
-
<a class="help-link" href="<?php echo esc_url($help_link) ?>" target="_blank"><?php esc_attr_e($help_title); ?></a>
|
461 |
-
<?php } else if(isset($help_text) && !empty($help_text)) { ?>
|
462 |
-
<span class="help-text"><?php echo $help_text; ?></span>
|
463 |
-
<span class="help-title"><?php esc_attr_e($help_title); ?></span>
|
464 |
-
<?php } ?>
|
465 |
-
</div>
|
466 |
<?php } ?>
|
467 |
-
|
468 |
-
|
469 |
-
</div>
|
470 |
-
|
471 |
-
<div class="Whatsapp-settings advanced-settings extra-chaty-settings">
|
472 |
-
<?php $embedded_window = isset($value['embedded_window'])?$value['embedded_window']:"no"; ?>
|
473 |
-
<div class="chaty-setting-col">
|
474 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[embedded_window]" value="no" >
|
475 |
-
<label class="chaty-switch chaty-embedded-window" for="whatsapp_embedded_window_<?php echo esc_attr($social['slug']); ?>">
|
476 |
-
<input type="checkbox" class="embedded_window-checkbox" name="cht_social_<?php echo esc_attr($social['slug']); ?>[embedded_window]" id="whatsapp_embedded_window_<?php echo esc_attr($social['slug']); ?>" value="yes" <?php checked($embedded_window, "yes") ?> >
|
477 |
-
<div class="chaty-slider round"></div>
|
478 |
-
WhatsApp Chat Popup 💬
|
479 |
-
<div class="html-tooltip top">
|
480 |
-
<span class="dashicons dashicons-editor-help"></span>
|
481 |
-
<span class="tooltip-text top">
|
482 |
-
Show an embedded WhatsApp window to your visitors with a welcome message. Your users can start typing their own message and start a conversation with you right away once they are forwarded to the WhatsApp app.
|
483 |
-
<img src="<?php echo esc_url(CHT_PLUGIN_URL) ?>/admin/assets/images/whatsapp-popup.gif" />
|
484 |
-
</span>
|
485 |
-
</div>
|
486 |
-
</label>
|
487 |
</div>
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
<div class="
|
493 |
-
|
494 |
-
<?php $
|
495 |
-
|
496 |
-
<
|
497 |
-
|
|
|
498 |
</div>
|
499 |
-
|
500 |
-
<div class="chaty-setting-col">
|
501 |
-
<?php $is_default_open = isset($value['is_default_open'])?$value['is_default_open']:""; ?>
|
502 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[is_default_open]" value="no" >
|
503 |
-
<label class="chaty-switch" for="whatsapp_default_open_embedded_window_<?php echo esc_attr($social['slug']); ?>">
|
504 |
-
<input type="checkbox" name="cht_social_<?php echo esc_attr($social['slug']); ?>[is_default_open]" id="whatsapp_default_open_embedded_window_<?php echo esc_attr($social['slug']); ?>" value="yes" <?php checked($is_default_open, "yes") ?> >
|
505 |
-
<div class="chaty-slider round"></div>
|
506 |
-
Open the window by default
|
507 |
-
<span class="icon label-tooltip" data-label="Open the WhatsApp chat popup by default, after the user sends a message or closes the window, the window will stay closed to avoid disruption"><span class="dashicons dashicons-editor-help"></span></span>
|
508 |
-
</label>
|
509 |
-
</div>
|
510 |
</div>
|
511 |
</div>
|
512 |
-
|
513 |
<!-- advance setting fields: start -->
|
514 |
<?php $class_name = !$this->is_pro()?"not-is-pro":""; ?>
|
515 |
-
<div class="chaty-advance-settings <?php esc_attr_e($class_name); ?>"
|
516 |
<!-- Settings for custom icon and color -->
|
517 |
<div class="chaty-setting-col">
|
518 |
<label>Icon Appearance</label>
|
@@ -540,7 +451,7 @@ if (!defined('ABSPATH')) {
|
|
540 |
</div>
|
541 |
<div class="clear clearfix"></div>
|
542 |
|
543 |
-
<?php if($social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3"
|
544 |
$channel_type = "";
|
545 |
if(isset($value['channel_type'])) {
|
546 |
$channel_type = esc_attr__(wp_unslash($value['channel_type']));
|
@@ -555,7 +466,7 @@ if (!defined('ABSPATH')) {
|
|
555 |
<option value="<?php echo esc_attr($social['slug']) ?>">Custom channel</option>
|
556 |
<?php foreach ($socials as $social_icon) {
|
557 |
$selected = ($social_icon['slug'] == $channel_type)?"selected":"";
|
558 |
-
if ($social_icon['slug'] != 'Custom_Link' && $social_icon['slug'] != 'Custom_Link_3' && $social_icon['slug'] != '
|
559 |
<option <?php echo esc_attr($selected) ?> value="<?php echo esc_attr($social_icon['slug']) ?>"><?php echo esc_attr($social_icon['title']) ?></option>
|
560 |
<?php }
|
561 |
}?>
|
@@ -565,233 +476,15 @@ if (!defined('ABSPATH')) {
|
|
565 |
<div class="clear clearfix"></div>
|
566 |
<?php } ?>
|
567 |
|
568 |
-
|
569 |
-
|
570 |
-
<div>
|
571 |
-
<input type="text" class="chaty-title" name="cht_social_<?php echo esc_attr($social['slug']); ?>[title]" value="<?php esc_attr_e($value['title']) ?>">
|
572 |
-
</div>
|
573 |
-
</div>
|
574 |
-
<div class="clear clearfix"></div>
|
575 |
-
|
576 |
-
<div class="Contact_Us-settings advanced-settings">
|
577 |
-
<div class="clear clearfix"></div>
|
578 |
<div class="chaty-setting-col">
|
579 |
-
<label>
|
580 |
<div>
|
581 |
-
<?php $contact_form_title = isset($value['contact_form_title'])?$value['contact_form_title']:esc_html__("Contact Us", "chaty"); ?>
|
582 |
-
<input id="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[contact_form_title]" value="<?php esc_attr_e($contact_form_title) ?>" >
|
583 |
-
</div>
|
584 |
-
</div>
|
585 |
-
<?php
|
586 |
-
$fields = array(
|
587 |
-
'name' => array(
|
588 |
-
'title' => "Name",
|
589 |
-
'placeholder' => "Enter your name",
|
590 |
-
'is_required' => 1,
|
591 |
-
'type' => 'input',
|
592 |
-
'is_enabled' => 1
|
593 |
-
),
|
594 |
-
'email' => array(
|
595 |
-
'title' => "Email",
|
596 |
-
'placeholder' => "Enter your email address",
|
597 |
-
'is_required' => 1,
|
598 |
-
'type' => 'email',
|
599 |
-
'is_enabled' => 1
|
600 |
-
),
|
601 |
-
'message' => array(
|
602 |
-
'title' => "Message",
|
603 |
-
'placeholder' => "Enter your message",
|
604 |
-
'is_required' => 1,
|
605 |
-
'type' => 'textarea',
|
606 |
-
'is_enabled' => 1
|
607 |
-
)
|
608 |
-
);
|
609 |
-
echo '<div class="form-field-setting-col">';
|
610 |
-
foreach ($fields as $label => $field) {
|
611 |
-
$saved_value = isset($value[$label])?$value[$label]:array();
|
612 |
-
$field_value = array(
|
613 |
-
'is_active' => (isset($saved_value['is_active']))?$saved_value['is_active']:'yes',
|
614 |
-
'is_required' => (isset($saved_value['is_required']))?$saved_value['is_required']:'yes',
|
615 |
-
'placeholder' => (isset($saved_value['placeholder']))?$saved_value['placeholder']:$field['placeholder'],
|
616 |
-
);
|
617 |
-
?>
|
618 |
-
<div class="field-setting-col">
|
619 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_active]" value="no">
|
620 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_required]" value="no">
|
621 |
-
|
622 |
-
<div class="left-section">
|
623 |
-
<label class="chaty-switch chaty-switch-toggle" for="field_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">
|
624 |
-
<input type="checkbox" class="chaty-field-setting" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_active]" id="field_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>" value="yes" <?php checked($field_value['is_active'], "yes") ?>>
|
625 |
-
<div class="chaty-slider round"></div>
|
626 |
-
|
627 |
-
<?php echo $field['title'] ?>
|
628 |
-
</label>
|
629 |
-
</div>
|
630 |
-
<div class="right-section">
|
631 |
-
<div class="field-settings <?php echo ($field_value['is_active']=="yes")?"active":"" ?>">
|
632 |
-
<div class="inline-block">
|
633 |
-
<label class="inline-block" for="field_required_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">Required?</label>
|
634 |
-
<div class="inline-block">
|
635 |
-
<label class="chaty-switch" for="field_required_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">
|
636 |
-
<input type="checkbox" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_required]" id="field_required_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>" value="yes" <?php checked($field_value['is_required'], "yes") ?>>
|
637 |
-
<div class="chaty-slider round"></div>
|
638 |
-
</label>
|
639 |
-
</div>
|
640 |
-
</div>
|
641 |
-
</div>
|
642 |
-
</div>
|
643 |
-
<div class="clear clearfix"></div>
|
644 |
-
<div class="field-settings <?php echo ($field_value['is_active']=="yes")?"active":"" ?>">
|
645 |
-
<div class="chaty-setting-col">
|
646 |
-
<label for="placeholder_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">Placeholder text</label>
|
647 |
-
<div>
|
648 |
-
<input id="placeholder_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][placeholder]" value="<?php esc_attr_e($field_value['placeholder']) ?>" >
|
649 |
-
</div>
|
650 |
-
</div>
|
651 |
-
</div>
|
652 |
-
</div>
|
653 |
-
<?php if($label != 'message') { ?>
|
654 |
-
<div class="chaty-separator"></div>
|
655 |
-
<?php } ?>
|
656 |
-
<?php }
|
657 |
-
echo '</div>'; ?>
|
658 |
-
<div class="form-field-setting-col">
|
659 |
-
<div class="form-field-title">Submit Button</div>
|
660 |
-
<div class="color-box">
|
661 |
-
<div class="clr-setting">
|
662 |
-
<?php $field_value = isset($value['button_text_color'])?$value['button_text_color']:"#ffffff" ?>
|
663 |
-
<div class="chaty-setting-col">
|
664 |
-
<label for="button_text_color_for_<?php echo esc_attr($social['slug']); ?>">Text color</label>
|
665 |
-
<div>
|
666 |
-
<input id="button_text_color_for_<?php echo esc_attr($social['slug']); ?>" class="chaty-color-field button-color" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[button_text_color]" value="<?php esc_attr_e($field_value); ?>" >
|
667 |
-
</div>
|
668 |
-
</div>
|
669 |
-
</div>
|
670 |
-
<?php $field_value = isset($value['button_bg_color'])?$value['button_bg_color']:"#A886CD" ?>
|
671 |
-
<div class="clr-setting">
|
672 |
-
<div class="chaty-setting-col">
|
673 |
-
<label for="button_bg_color_for_<?php echo esc_attr($social['slug']); ?>">Background color</label>
|
674 |
-
<div>
|
675 |
-
<input id="button_bg_color_for_<?php echo esc_attr($social['slug']); ?>" class="chaty-color-field button-color" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[button_bg_color]" value="<?php esc_attr_e($field_value); ?>" >
|
676 |
-
</div>
|
677 |
-
</div>
|
678 |
-
</div>
|
679 |
-
</div>
|
680 |
-
<?php $field_value = isset($value['button_text'])?$value['button_text']:"Chat" ?>
|
681 |
-
<div class="chaty-setting-col">
|
682 |
-
<label for="button_text_for_<?php echo esc_attr($social['slug']); ?>">Button text</label>
|
683 |
-
<div>
|
684 |
-
<input id="button_text_for_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[button_text]" value="<?php esc_attr_e($field_value); ?>" >
|
685 |
-
</div>
|
686 |
-
</div>
|
687 |
-
<?php $field_value = isset($value['thanks_message'])?$value['thanks_message']:"Your message was sent successfully" ?>
|
688 |
-
<div class="chaty-setting-col">
|
689 |
-
<label for="thanks_message_for_<?php echo esc_attr($social['slug']); ?>">Thank you message</label>
|
690 |
-
<div>
|
691 |
-
<input id="thanks_message_for_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[thanks_message]" value="<?php esc_attr_e($field_value); ?>" >
|
692 |
-
</div>
|
693 |
-
</div>
|
694 |
-
<div class="chaty-separator"></div>
|
695 |
-
<?php $field_value = isset($value['redirect_action'])?$value['redirect_action']:"no" ?>
|
696 |
-
<div class="chaty-setting-col">
|
697 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[redirect_action]" value="no" >
|
698 |
-
<label class="chaty-switch" for="redirect_action_<?php echo esc_attr($social['slug']); ?>">
|
699 |
-
<input type="checkbox" class="chaty-redirect-setting" name="cht_social_<?php echo esc_attr($social['slug']); ?>[redirect_action]" id="redirect_action_<?php echo esc_attr($social['slug']); ?>" value="yes" <?php checked($field_value, "yes") ?> >
|
700 |
-
<div class="chaty-slider round"></div>
|
701 |
-
Redirect visitors after submission
|
702 |
-
</label>
|
703 |
-
</div>
|
704 |
-
<div class="redirect_action-settings <?php echo ($field_value == "yes")?"active":"" ?>">
|
705 |
-
|
3 |
exit;
|
4 |
}
|
5 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
<svg class="read-only" aria-hidden="true" width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
7 |
<defs>
|
8 |
<linearGradient id="linear-gradient" x1="0.892" y1="0.192" x2="0.128" y2="0.85" gradientUnits="objectBoundingBox">
|
170 |
$cta = nl2br(get_option('cht_cta'));
|
171 |
$cta = str_replace(array("\r", "\n"), "", $cta);
|
172 |
?>
|
173 |
+
<span class="tooltiptext" style='display:<?php esc_attr_e($display_status) ?>'><span><?php esc_attr_e($cta); ?></span></span>
|
174 |
</div>
|
175 |
</div>
|
176 |
</div>
|
200 |
$imageUrl = plugin_dir_url("")."chaty/admin/assets/images/chaty-default.png";
|
201 |
?>
|
202 |
<input type="hidden" id="default_image" value="<?php echo esc_url($imageUrl) ?>" />
|
203 |
+
<div class="channels-icons">
|
204 |
<?php if ($this->socials) :
|
205 |
foreach ($this->socials as $key => $social) :
|
206 |
$value = get_option('cht_social'.'_' . $social['slug']);
|
210 |
$active_class = 'active';
|
211 |
}
|
212 |
endforeach; ?>
|
213 |
+
<div class="icon icon-sm <?php echo esc_attr($active_class) ?>" data-social="<?php echo esc_attr($social['slug']); ?>" data-label="<?php esc_attr_e($social['title']); ?>" data-label="<?php esc_attr_e($social['title']); ?>">
|
214 |
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
215 |
+
<?php echo $social['svg']; ?>
|
216 |
+
</svg>
|
|
|
|
|
|
|
|
|
|
|
217 |
</div>
|
218 |
<?php endforeach; ?>
|
219 |
<?php endif; ?>
|
263 |
if(!isset($value['fa_icon'])) {
|
264 |
$value['fa_icon'] = ""; // Initialize title if not exists. 2.1.0 change
|
265 |
}
|
|
|
|
|
|
|
266 |
$imageId = $value['image_id'];
|
267 |
$status = 0;
|
268 |
if(!empty($imageId)) {
|
320 |
|
321 |
$channel_type = "";
|
322 |
$placeholder = $social['example'];
|
323 |
+
if($social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3") {
|
324 |
if (isset($value['channel_type'])) {
|
325 |
$channel_type = esc_attr__(wp_unslash($value['channel_type']));
|
326 |
}
|
367 |
</span>
|
368 |
</div>
|
369 |
|
370 |
+
<!-- Social Media input -->
|
371 |
+
<div class="channels__input-box">
|
372 |
+
<input data-label="<?php echo esc_attr($social['title']) ?>" placeholder="<?php esc_attr_e($placeholder); ?>" type="text" class="channels__input <?php echo isset($social['attr'])?$social['attr']:"" ?>" name="cht_social_<?php echo esc_attr($social['slug']); ?>[value]" value="<?php esc_attr_e(wp_unslash($value['value'])); ?>" data-gramm_editor="false" id="<?php echo esc_attr($social['slug']); ?>" />
|
373 |
+
</div>
|
|
|
|
|
374 |
<div class="channels__device-box">
|
375 |
<?php
|
376 |
$slug = esc_attr__($this->del_space($social['slug']));
|
391 |
</label>
|
392 |
</div>
|
393 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
394 |
<!-- button for advance setting -->
|
395 |
+
<div class="chaty-settings" onclick="toggle_chaty_setting('<?php echo esc_attr($social['slug']); ?>')">
|
396 |
<a href="javascript:;"><span class="dashicons dashicons-admin-generic"></span> Settings</a>
|
397 |
</div>
|
|
|
398 |
|
399 |
+
<!-- example for social media -->
|
400 |
+
<div class="input-example">
|
401 |
+
<?php esc_attr_e('For example', CHT_OPT); ?>:
|
402 |
+
<span class="inline-box channel-example">
|
403 |
+
<?php if($social['slug'] == "Poptin") { ?>
|
404 |
+
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
<?php } ?>
|
406 |
+
<?php esc_attr_e($placeholder); ?>
|
407 |
+
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
</div>
|
409 |
+
|
410 |
+
<!-- checking for extra help message for social media -->
|
411 |
+
<div class="help-section">
|
412 |
+
<?php if((isset($social['help']) && !empty($social['help'])) || isset($social['help_link'])) { ?>
|
413 |
+
<div class="viber-help">
|
414 |
+
<?php if(isset($help_link) && !empty($help_link)) { ?>
|
415 |
+
<a class="help-link" href="<?php echo esc_url($help_link) ?>" target="_blank"><?php esc_attr_e($help_title); ?></a>
|
416 |
+
<?php } else if(isset($help_text) && !empty($help_text)) { ?>
|
417 |
+
<span class="help-text"><?php echo $help_text; ?></span>
|
418 |
+
<span class="help-title"><?php esc_attr_e($help_title); ?></span>
|
419 |
+
<?php } ?>
|
420 |
</div>
|
421 |
+
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
422 |
</div>
|
423 |
</div>
|
|
|
424 |
<!-- advance setting fields: start -->
|
425 |
<?php $class_name = !$this->is_pro()?"not-is-pro":""; ?>
|
426 |
+
<div class="chaty-advance-settings <?php esc_attr_e($class_name); ?>">
|
427 |
<!-- Settings for custom icon and color -->
|
428 |
<div class="chaty-setting-col">
|
429 |
<label>Icon Appearance</label>
|
451 |
</div>
|
452 |
<div class="clear clearfix"></div>
|
453 |
|
454 |
+
<?php if($social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3") {
|
455 |
$channel_type = "";
|
456 |
if(isset($value['channel_type'])) {
|
457 |
$channel_type = esc_attr__(wp_unslash($value['channel_type']));
|
466 |
<option value="<?php echo esc_attr($social['slug']) ?>">Custom channel</option>
|
467 |
<?php foreach ($socials as $social_icon) {
|
468 |
$selected = ($social_icon['slug'] == $channel_type)?"selected":"";
|
469 |
+
if ($social_icon['slug'] != 'Custom_Link' && $social_icon['slug'] != 'Custom_Link_3' && $social_icon['slug'] != 'Link') { ?>
|
470 |
<option <?php echo esc_attr($selected) ?> value="<?php echo esc_attr($social_icon['slug']) ?>"><?php echo esc_attr($social_icon['title']) ?></option>
|
471 |
<?php }
|
472 |
}?>
|
476 |
<div class="clear clearfix"></div>
|
477 |
<?php } ?>
|
478 |
|
479 |
+
<?php if($this->is_pro()) { ?>
|
480 |
+
<!-- Settings for custom title -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
481 |
<div class="chaty-setting-col">
|
482 |
+
<label>On Hover Text</label>
|
483 |
<div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|