Version Description
Chaty settings security enhancement
Download this release
Release Info
Developer | galdub |
Plugin | Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line, WeChat, Email, SMS, Call Button – Chaty |
Version | 2.8.4 |
Comparing to | |
See all releases |
Code changes from version 2.8.3 to 2.8.4
- admin/assets/css/cht-style.min.css +1 -1
- admin/assets/js/cht-scripts.js +8 -1
- admin/assets/js/cht-scripts.min.js +1 -1
- cht-icons.php +2 -2
- css/chaty-front.css +4 -0
- css/chaty-front.min.css +1 -1
- includes/class-frontend.php +39 -666
- js/cht-front-script.js +18 -6
- js/cht-front-script.min.js +1 -1
- readme.txt +4 -1
- views/admin/channel.php +646 -0
- views/admin/channels-section.php +26 -667
admin/assets/css/cht-style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.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{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}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;line-height:1}.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;font-style:normal}.icon.label-tooltip:after{width:250px;white-space:normal;line-height:16px;padding:10px}.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,.remove-chaty-widget-sticky{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}.chaty-setting-col>div>.mail-merge-tags{display:block}.mail-merge-tags span{display:inline-block;background:#a886cd;color:#fff;font-size:14px;padding:0 5px;margin:4px 4px 0 0;border-radius:5px}.pre-message-whatsapp{position:relative}.pre-message-whatsapp button{position:absolute;border:none;top:5px;right:5px;background:0 0;display:none}.pre-message-whatsapp button svg{fill:#a5a5a5}.disable-message.label-tooltip.icon{height:auto!important}@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: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: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:#a886cd;font-size:12px;line-height:18px;margin-bottom:30px;position:relative;z-index:10;top:-10px}.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:flex;width:250px;min-height:30px;color:#000;text-align:center;padding:0;bottom:0;position:absolute;z-index:35;font-size:12px;line-height:30px}.tooltip .tooltiptext span{background-color:#fff;padding:0 15px;display:inline-block;vertical-align:middle;line-height:30px;height:30px;float:right;margin:0;border-radius:5px}.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}.chaty-widget-icons-right .tooltip .tooltiptext.has-multiline.line-1{height:auto;top:-3px}.chaty-widget-icons-right .tooltip .tooltiptext.has-multiline.line-1 span{height:auto;line-height:16px;padding-top:2px;padding-bottom:2px}.chaty-widget-icons-right .tooltip .tooltiptext.has-multiline.line-2{height:auto;top:-3px}.chaty-widget-icons-right .tooltip .tooltiptext.has-multiline.line-2 span{height:auto;line-height:16px;padding-top:2px;padding-bottom:2px}.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}.notice.premio-notice{display:block!important}div#setting-error-settings_updated{display:none!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 60px!important;line-height:24px!important;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:50px;height:24px}.chaty-slider:before{background-color:#fff;bottom:4px;content:"";height:16px;left:4px;position:absolute;transition:.2s;width:16px}.chaty-slider:after{content:"off";color:#fff;display:inline-block;padding:0 0 0 25px;font-size:14px;line-height:24px;position:absolute;left:0;top:0}.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(26px)}input:checked+.chaty-slider:after{padding:0 0 0 8px;content:"on"}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}}.chaty-animation-shockwave:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;-webkit-animation:chaty-animation-shockwave 1s .65s ease-out infinite;animation:chaty-animation-shockwave 1s .65s ease-out infinite}.chaty-animation-shockwave:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;-webkit-animation:chaty-animation-shockwave 1s .5s ease-out infinite;animation:chaty-animation-shockwave 1s .5s ease-out infinite}@-webkit-keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}@keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}@keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}.chaty-animation-blink{-webkit-animation:chaty-animation-blink 1.33s ease-out infinite;animation:chaty-animation-blink 1.33s ease-out infinite}@-webkit-keyframes chaty-animation-blink{0%{opacity:1}20%{opacity:.5}100%{opacity:1}}@keyframes chaty-animation-blink{0%{opacity:1}20%{opacity:.5}100%{opacity:1}}.chaty-animation-pulse-icon{-webkit-animation:chaty-animation-pulse-icon .4s ease infinite alternate;animation:chaty-animation-pulse-icon .4s ease infinite alternate}@-webkit-keyframes chaty-animation-pulse-icon{0%{transform:scale(1);box-shadow:0 2px 2px rgba(0,0,0,.2);border-radius:50%}100%{transform:scale(1.1);box-shadow:0 2px 2px rgba(0,0,0,.2);border-radius:45%}}@keyframes chaty-animation-pulse-icon{0%{transform:scale(1);border-radius:50%}100%{transform:scale(1.1);border-radius:45%}}@keyframes chaty-animation-pulse{0%{background-color:orange}25%{background-color:red}50%{background-color:orange}75%{background-color:red}}.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:10px}.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:291px}.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{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%}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;display:inline-block;height:24px!important;width:auto!important}.icon.label-tooltip:after{width:250px;white-space:normal;line-height:16px;padding:10px}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:top;line-height:36px}.chaty-setting-col>label{width:170px}.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;display:inline-block}a.create-rule.remove-rules{background:#7e8993;color:#fff;display:inline-block}.chaty-pro-block{position:relative}.chaty-pro-block:hover .chaty-pro-feature{display:inline-block}.chaty-settings.cls-btn span{padding-left:2px}.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%}.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:36px;width:36px;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}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}.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}.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%);font-weight:400}.chaty-popup .chaty-popup-content{position:relative;padding:0;margin:0;top:0;width:100%}.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:15px 10px;text-align:center;border-top:solid 1px #e8e8e8}.chaty-popup-footer button{border:solid 1px #00c478;padding:5px 10px;border-radius:4px;background:#00c478;color:#fff}.chaty-popup-footer button.btn.btn-default{background:#fff;color:#333;border:solid 1px #333;outline:0;box-shadow:none}.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}.chaty-table{width:100%;margin:10px auto 3px;background:#fff;padding:15px 20px 20px;border-radius:9px;position:relative}.chaty-table table{width:100%;border-collapse:collapse;border-top:1px solid #aeaeae;border-left:1px solid #aeaeae}.chaty-table table thead th{background-color:#44467f;color:#fff;text-align:left;padding:15px 12px;border-right:1px solid #aeaeae;border-bottom:1px solid #605dec}.chaty-table table tbody td{text-align:left;border-right:1px solid #aeaeae;border-bottom:1px solid #aeaeae;padding:15px 12px}.fix-width{width:100px;text-align:center!important}.chaty-actions a{color:#44467f;text-decoration:none;font-weight:400;display:inline-block}.chaty-actions .icon.label-tooltip:after{width:auto}td.chaty-actions{text-align:center!important}.cht-tooltip{display:inline-block;position:relative}.cht-tooltip:after,.cht-tooltip:before{position:absolute;opacity:0;pointer-events:none;left:50%;content:"";color:#fff}.cht-tooltip:before{top:-8px;transform:translateX(-50%);height:10px;width:10px;border-width:10px 5px 0;border-style:solid;border-color:#333 transparent transparent}.cht-tooltip:after{text-align:center;content:"" attr(data-title) "";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}.cht-tooltip:hover:not(.tooltip-show):after,.cht-tooltip:hover:not(.tooltip-show):before{opacity:1;pointer-events:auto}.chaty-table .chaty-switch{display:block;height:24px;position:relative;padding:0 0 0 40px!important;line-height:24px;width:40px!important;margin:0 auto}a.cht-add-new-widget{background-color:#fff;line-height:initial;color:#44467f;font-weight:500;padding:8px 14px;border-radius:25px;border:1px solid #44467f;text-decoration:none;margin:0;display:inline-block}.pull-right{float:right}.chaty-table-header span{display:inline-block;font-size:24px;line-height:38px}.chaty-table-header{padding:0 0 15px 0}@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>*{display:inline-block;padding:0 10px 0 0;vertical-align:middle}.chaty-setting-col>div>.chaty-setting-textarea{width:310px;max-width:100%;height:100px;padding:5px}.chaty-setting-col>div>.channels__view{padding:0;margin:0}span.icon.label-tooltip.support-tooltip{display:inline-block;margin:0;padding:0 3px;width:auto;font-style:italic;height:auto}.chaty-setting-col>label{width:170px}.chaty-setting-col>label.full-width{width:100%}.chaty-setting-col .wp-color-result-text{display:none}.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}input[type=search].search-input,select.search-input{height:30px;float:left;width:170px;font-weight:400}.date-range{display:none;padding:5px 0 0 0}.date-range.active{display:block}.lead-search-box{float:right}.leads-buttons{padding:20px 0}a#wpappp_export_to_csv{background:#ff6624;display:inline-block;text-align:center;padding:8px 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}.custom-pagination{float:right;margin:25px 0 0 0}.custom-pagination ul{margin:0;padding:0;display:block}.custom-pagination ul li{display:block;float:left;margin:0 0 0 4px}.custom-pagination ul li a,.custom-pagination ul li>span{display:block;padding:2px 10px;text-decoration:none;color:#333;font-size:14px;border-radius:3px;background:#fff;border:solid 1px #e3e3e3}.custom-pagination ul li a .dashicons{font-size:14px;height:14px;width:14px;text-align:center;line-height:22px}.custom-pagination ul li a.next,.custom-pagination ul li a.prev{padding:2px 8px}.custom-pagination ul li>span{background:#f3f5f6}.main .channels-icons>.icon.chat-channel-Contact_Us{width:120px;line-height:48px;text-align:center}.main .channels-icons>.icon.chat-channel-Contact_Us span.icon-box{display:block;height:48px;border-radius:24px;background:#bdbdbd;padding:0;transition:all .2s;cursor:pointer;margin:0;padding:0}.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;margin:0;color:#fff}.main .channels-icons>.icon.chat-channel-Contact_Us span.icon-box svg{display:none}.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;line-height:24px}.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}.date-schedule{padding:10px;background:#f6f3fa;margin-bottom:4px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;position:relative;flex:calc(100% - 152px);max-width:350px}.date-time-box input[type=text]{width:100%}.date-schedule label{display:block;font-size:16px;padding:0 0 2px 0}.date-time-box{padding-top:8px}.date-select-option{width:49%;float:left}.time-select-option{width:49%;float:right}#date-schedule.active .date-schedule-button,.date-schedule-box{display:none}#date-schedule.active .date-schedule-box{display:block}a#remove-date-rule{margin-top:5px}.chaty-popup-input input{width:100%;margin:10px 0 0 0;width:calc(100% - 36px)}button#delete-widget-btn{background:red;border-color:red}.chaty-setting-col>div span.supported-tags{display:flex;font-size:12px;line-height:1.4}.select2-box{width:100%;height:36px}.date-schedule{position:relative}.date-schedule:hover .chaty-pro-feature{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.chaty-updates-form{width:768px;padding:70px 40px;box-shadow:0 20px 25px rgb(0 0 0 / 10%),0 10px 10px rgb(0 0 0 / 4%);display:flex;margin:100px auto 0;font-family:Rubik,sans-serif}.update-title{font-style:normal;font-weight:500;font-size:26px;line-height:150%;align-items:center;color:#334155}.updates-form-form-left{padding:50px 20px 50px 0}.updates-form-form-right p{font-style:normal;font-weight:400;font-size:14px;line-height:150%;position:relative;padding:0 0 20px 0;color:#475569;margin:40px 0}.updates-form-form-right p:after{content:"";border:1px solid #3c85f7;position:absolute;bottom:5px;left:0;width:90px}.updates-form{display:flex}.update-form-input{position:relative}.update-form-input input{width:320px;background:#f4f4f5;border:1px solid #f4f4f5;box-sizing:border-box;border-radius:4px;height:40px;line-height:40px;padding:0 50px 0 40px;font-size:13px;box-sizing:border-box;color:#334155}.update-form-input .form-submit-btn{background:#3c85f7;border-radius:4px;border:none;color:#fff;font-style:normal;font-weight:500;font-size:13px;line-height:150%;height:34px;padding:0 10px;position:absolute;right:3px;top:3px}.updates-form .form-cancel-btn.no{margin:0 0 0 3px;background:0 0;border:none;color:#64748b;font-size:13px;line-height:40px;padding:0 0 0 5px}.updates-form .form-cancel-btn.no:hover{color:#334155}.mail-icon{position:absolute;top:8px;left:10px}.update-notice{margin:50px 0 0 0;font-size:12px;padding:0 110px 0 0;line-height:150%;color:#64748b}@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}}.chaty-checkbox{position:relative;line-height:36px}.chaty-checkbox>span{position:relative;border:solid 2px #a785cb;display:inline-block;width:16px;height:16px;border-radius:2px;vertical-align:middle}.chaty-checkbox input:checked+span{background:#a785cb}.chaty-checkbox input:checked+span:before{color:#fff;content:"\f147";font-family:dashicons;line-height:1;position:absolute;top:-2px;left:-3px;display:block}.icon.label-tooltip.inline-tooltip{display:inline-block;width:24px;padding:0;margin:0;height:24px;vertical-align:middle;line-height:34px}html[dir=rtl] .iti--container{margin-left:503px}.toast-message{position:fixed;right:-110%;top:50px;-webkit-box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);background:#fff;padding:10px 20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;border-left:solid 4px #0c3;transition:all .5s linear;z-index:10001}.toast-message.active{right:20px}html[dir=rtl] .toast-message{left:-110%;right:auto}html[dir=rtl] .toast-message.active{left:20px}.toast-message-title{margin-bottom:8px;color:rgba(0,0,0,.85);font-size:16px;line-height:24px}.toast-close-btn{position:absolute;right:10px;top:14px;width:16px;height:16px}.toast-close-btn a{display:block;position:relative}.toast-close-btn a:after,.toast-close-btn a:before{content:"";position:absolute;width:12px;height:2px;background-color:#000;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.toast-close-btn a:after{transform:rotate(-45deg)}.toast-message-body{font-size:14px;color:rgba(0,0,0,.8)}@media screen and (max-width:1280px){.preview{top:180px}.chaty-sticky-buttons{position:fixed;right:0;top:179px;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!important;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;position:absolute}.btn-help{top:60px!important;position:absolute}}@media screen and (max-width:1180px){.section.one{max-width:inherit}.main .channels-icons{max-width:600px;text-align:center;margin:0;width:100%}.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:94px;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}.chaty-updates-form{display:block;width:92%;margin:100px 4% 0}.updates-form-form-left{width:100%;text-align:center;padding:0 0 20px 0}.updates-form{display:block}.update-form-input,.update-form-input input{width:100%}.update-form-skip-button{text-align:center}.updates-form .form-cancel-btn.no{padding:0;margin:0}.update-notice{padding:0}}@media screen and (max-width:680px){#wpbody-content{padding-right:10px}.date-option{width:100%;margin:0;padding:0 0 10px 0}.custom-search-box{max-width:100%}.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% - 75px)}.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% - 102px);text-align:left;padding:10px 0 0 0}.chaty-settings{padding:10px 0 0 0}.help-section{display:block;width:100%;text-align:left}.extra-chaty-settings{padding:10px 0 0}.chaty-setting-col input[type=number],.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% - 108px)}.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}header.header{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 |
+
.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:#ffffff!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{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}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;line-height:1}.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;font-style:normal}.icon.label-tooltip:after{width:250px;white-space:normal;line-height:16px;padding:10px}.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,.remove-chaty-widget-sticky{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}.chaty-setting-col>div>.mail-merge-tags{display:block}.mail-merge-tags span{display:inline-block;background:#a886cd;color:#fff;font-size:14px;padding:0 5px;margin:4px 4px 0 0;border-radius:5px}.pre-message-whatsapp{position:relative}.pre-message-whatsapp button{position:absolute;border:none;top:5px;right:5px;background:0 0;display:none}.pre-message-whatsapp button svg{fill:#a5a5a5}.disable-message.label-tooltip.icon{height:auto!important}@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: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: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:#a886cd;font-size:12px;line-height:18px;margin-bottom:30px;position:relative;z-index:10;top:-10px}.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:flex;width:250px;min-height:30px;color:#000;text-align:center;padding:0;bottom:0;position:absolute;z-index:35;font-size:12px;line-height:30px}.tooltip .tooltiptext span{background-color:#fff;padding:0 15px;display:inline-block;vertical-align:middle;line-height:30px;height:30px;float:right;margin:0;border-radius:5px}.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}.chaty-widget-icons-right .tooltip .tooltiptext.has-multiline.line-1{height:auto;top:-3px}.chaty-widget-icons-right .tooltip .tooltiptext.has-multiline.line-1 span{height:auto;line-height:16px;padding-top:2px;padding-bottom:2px}.chaty-widget-icons-right .tooltip .tooltiptext.has-multiline.line-2{height:auto;top:-3px}.chaty-widget-icons-right .tooltip .tooltiptext.has-multiline.line-2 span{height:auto;line-height:16px;padding-top:2px;padding-bottom:2px}.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}.notice.premio-notice{display:block!important}div#setting-error-settings_updated{display:none!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 60px!important;line-height:24px!important;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:50px;height:24px}.chaty-slider:before{background-color:#fff;bottom:4px;content:"";height:16px;left:4px;position:absolute;transition:.2s;width:16px}.chaty-slider:after{content:"off";color:#fff;display:inline-block;padding:0 0 0 25px;font-size:14px;line-height:24px;position:absolute;left:0;top:0}.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(26px)}input:checked+.chaty-slider:after{padding:0 0 0 8px;content:"on"}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}}.chaty-animation-shockwave:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;-webkit-animation:chaty-animation-shockwave 1s .65s ease-out infinite;animation:chaty-animation-shockwave 1s .65s ease-out infinite}.chaty-animation-shockwave:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;-webkit-animation:chaty-animation-shockwave 1s .5s ease-out infinite;animation:chaty-animation-shockwave 1s .5s ease-out infinite}@-webkit-keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}@keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}@keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}.chaty-animation-blink{-webkit-animation:chaty-animation-blink 1.33s ease-out infinite;animation:chaty-animation-blink 1.33s ease-out infinite}@-webkit-keyframes chaty-animation-blink{0%{opacity:1}20%{opacity:.5}100%{opacity:1}}@keyframes chaty-animation-blink{0%{opacity:1}20%{opacity:.5}100%{opacity:1}}.chaty-animation-pulse-icon{-webkit-animation:chaty-animation-pulse-icon .4s ease infinite alternate;animation:chaty-animation-pulse-icon .4s ease infinite alternate}@-webkit-keyframes chaty-animation-pulse-icon{0%{transform:scale(1);box-shadow:0 2px 2px rgba(0,0,0,.2);border-radius:50%}100%{transform:scale(1.1);box-shadow:0 2px 2px rgba(0,0,0,.2);border-radius:45%}}@keyframes chaty-animation-pulse-icon{0%{transform:scale(1);border-radius:50%}100%{transform:scale(1.1);border-radius:45%}}@keyframes chaty-animation-pulse{0%{background-color:orange}25%{background-color:red}50%{background-color:orange}75%{background-color:red}}.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:10px}.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:291px}.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{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%}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;display:inline-block;height:24px!important;width:auto!important}.icon.label-tooltip:after{width:250px;white-space:normal;line-height:16px;padding:10px}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:top;line-height:36px}.chaty-setting-col>label{width:170px}.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;display:inline-block}a.create-rule.remove-rules{background:#7e8993;color:#fff;display:inline-block}.chaty-pro-block{position:relative}.chaty-pro-block:hover .chaty-pro-feature{display:inline-block}.chaty-settings.cls-btn span{padding-left:2px}.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%}.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:36px;width:36px;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}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}.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}.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%);font-weight:400}.chaty-popup .chaty-popup-content{position:relative;padding:0;margin:0;top:0;width:100%}.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:15px 10px;text-align:center;border-top:solid 1px #e8e8e8}.chaty-popup-footer button{border:solid 1px #00c478;padding:5px 10px;border-radius:4px;background:#00c478;color:#fff}.chaty-popup-footer button.btn.btn-default{background:#fff;color:#333;border:solid 1px #333;outline:0;box-shadow:none}.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}.chaty-table{width:100%;margin:10px auto 3px;background:#fff;padding:15px 20px 20px;border-radius:9px;position:relative}.chaty-table table{width:100%;border-collapse:collapse;border-top:1px solid #aeaeae;border-left:1px solid #aeaeae}.chaty-table table thead th{background-color:#44467f;color:#fff;text-align:left;padding:15px 12px;border-right:1px solid #aeaeae;border-bottom:1px solid #605dec}.chaty-table table tbody td{text-align:left;border-right:1px solid #aeaeae;border-bottom:1px solid #aeaeae;padding:15px 12px}.fix-width{width:100px;text-align:center!important}.chaty-actions a{color:#44467f;text-decoration:none;font-weight:400;display:inline-block}.chaty-actions .icon.label-tooltip:after{width:auto}td.chaty-actions{text-align:center!important}.cht-tooltip{display:inline-block;position:relative}.cht-tooltip:after,.cht-tooltip:before{position:absolute;opacity:0;pointer-events:none;left:50%;content:"";color:#fff}.cht-tooltip:before{top:-8px;transform:translateX(-50%);height:10px;width:10px;border-width:10px 5px 0;border-style:solid;border-color:#333 transparent transparent}.cht-tooltip:after{text-align:center;content:"" attr(data-title) "";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}.cht-tooltip:hover:not(.tooltip-show):after,.cht-tooltip:hover:not(.tooltip-show):before{opacity:1;pointer-events:auto}.chaty-table .chaty-switch{display:block;height:24px;position:relative;padding:0 0 0 40px!important;line-height:24px;width:40px!important;margin:0 auto}a.cht-add-new-widget{background-color:#fff;line-height:initial;color:#44467f;font-weight:500;padding:8px 14px;border-radius:25px;border:1px solid #44467f;text-decoration:none;margin:0;display:inline-block}.pull-right{float:right}.chaty-table-header span{display:inline-block;font-size:24px;line-height:38px}.chaty-table-header{padding:0 0 15px 0}@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>*{display:inline-block;padding:0 10px 0 0;vertical-align:middle}.chaty-setting-col>div>.chaty-setting-textarea{width:310px;max-width:100%;height:100px;padding:5px}.chaty-setting-col>div>.channels__view{padding:0;margin:0}span.icon.label-tooltip.support-tooltip{display:inline-block;margin:0;padding:0 3px;width:auto;font-style:italic;height:auto}.chaty-setting-col>label{width:170px}.chaty-setting-col>label.full-width{width:100%}.chaty-setting-col .wp-color-result-text{display:none}.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}input[type=search].search-input,select.search-input{height:30px;float:left;width:170px;font-weight:400}.date-range{display:none;padding:5px 0 0 0}.date-range.active{display:block}.lead-search-box{float:right}.leads-buttons{padding:20px 0}a#wpappp_export_to_csv{background:#ff6624;display:inline-block;text-align:center;padding:8px 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}.custom-pagination{float:right;margin:25px 0 0 0}.custom-pagination ul{margin:0;padding:0;display:block}.custom-pagination ul li{display:block;float:left;margin:0 0 0 4px}.custom-pagination ul li a,.custom-pagination ul li>span{display:block;padding:2px 10px;text-decoration:none;color:#333;font-size:14px;border-radius:3px;background:#fff;border:solid 1px #e3e3e3}.custom-pagination ul li a .dashicons{font-size:14px;height:14px;width:14px;text-align:center;line-height:22px}.custom-pagination ul li a.next,.custom-pagination ul li a.prev{padding:2px 8px}.custom-pagination ul li>span{background:#f3f5f6}.main .channels-icons>.icon.chat-channel-Contact_Us{width:120px;line-height:48px;text-align:center}.main .channels-icons>.icon.chat-channel-Contact_Us span.icon-box{display:block;height:48px;border-radius:24px;background:#bdbdbd;padding:0;transition:all .2s;cursor:pointer;margin:0;padding:0}.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;margin:0;color:#fff}.main .channels-icons>.icon.chat-channel-Contact_Us span.icon-box svg{display:none}.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;line-height:24px}.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}.date-schedule{padding:10px;background:#f6f3fa;margin-bottom:4px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;position:relative;flex:calc(100% - 152px);max-width:350px}.date-time-box input[type=text]{width:100%}.date-schedule label{display:block;font-size:16px;padding:0 0 2px 0}.date-time-box{padding-top:8px}.date-select-option{width:49%;float:left}.time-select-option{width:49%;float:right}#date-schedule.active .date-schedule-button,.date-schedule-box{display:none}#date-schedule.active .date-schedule-box{display:block}a#remove-date-rule{margin-top:5px}.chaty-popup-input input{width:100%;margin:10px 0 0 0;width:calc(100% - 36px)}button#delete-widget-btn{background:red;border-color:red}.chaty-setting-col>div span.supported-tags{display:flex;font-size:12px;line-height:1.4}.select2-box{width:100%;height:36px}.date-schedule{position:relative}.date-schedule:hover .chaty-pro-feature{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.chaty-updates-form{width:768px;padding:70px 40px;box-shadow:0 20px 25px rgb(0 0 0 / 10%),0 10px 10px rgb(0 0 0 / 4%);display:flex;margin:100px auto 0;font-family:Rubik,sans-serif}.update-title{font-style:normal;font-weight:500;font-size:26px;line-height:150%;align-items:center;color:#334155}.updates-form-form-left{padding:50px 20px 50px 0}.updates-form-form-right p{font-style:normal;font-weight:400;font-size:14px;line-height:150%;position:relative;padding:0 0 20px 0;color:#475569;margin:40px 0}.updates-form-form-right p:after{content:"";border:1px solid #3c85f7;position:absolute;bottom:5px;left:0;width:90px}.updates-form{display:flex}.update-form-input{position:relative}.update-form-input input{width:320px;background:#f4f4f5;border:1px solid #f4f4f5;box-sizing:border-box;border-radius:4px;height:40px;line-height:40px;padding:0 50px 0 40px;font-size:13px;box-sizing:border-box;color:#334155}.update-form-input .form-submit-btn{background:#3c85f7;border-radius:4px;border:none;color:#fff;font-style:normal;font-weight:500;font-size:13px;line-height:150%;height:34px;padding:0 10px;position:absolute;right:3px;top:3px}.updates-form .form-cancel-btn.no{margin:0 0 0 3px;background:0 0;border:none;color:#64748b;font-size:13px;line-height:40px;padding:0 0 0 5px}.updates-form .form-cancel-btn.no:hover{color:#334155}.mail-icon{position:absolute;top:8px;left:10px}.update-notice{margin:50px 0 0 0;font-size:12px;padding:0 110px 0 0;line-height:150%;color:#64748b}@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}}.chaty-checkbox{position:relative;line-height:36px}.chaty-checkbox>span{position:relative;border:solid 2px #a785cb;display:inline-block;width:16px;height:16px;border-radius:2px;vertical-align:middle}.chaty-checkbox input:checked+span{background:#a785cb}.chaty-checkbox input:checked+span:before{color:#fff;content:"\f147";font-family:dashicons;line-height:1;position:absolute;top:-2px;left:-3px;display:block}.icon.label-tooltip.inline-tooltip{display:inline-block;width:24px;padding:0;margin:0;height:24px;vertical-align:middle;line-height:34px}html[dir=rtl] .iti--container{margin-left:503px}.toast-message{position:fixed;right:-110%;top:50px;-webkit-box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);background:#fff;padding:10px 20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;border-left:solid 4px #0c3;transition:all .5s linear;z-index:10001}.toast-message.active{right:20px}html[dir=rtl] .toast-message{left:-110%;right:auto}html[dir=rtl] .toast-message.active{left:20px}.toast-message-title{margin-bottom:8px;color:rgba(0,0,0,.85);font-size:16px;line-height:24px}.toast-close-btn{position:absolute;right:10px;top:14px;width:16px;height:16px}.toast-close-btn a{display:block;position:relative}.toast-close-btn a:after,.toast-close-btn a:before{content:"";position:absolute;width:12px;height:2px;background-color:#000;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.toast-close-btn a:after{transform:rotate(-45deg)}.toast-message-body{font-size:14px;color:rgba(0,0,0,.8)}@media screen and (max-width:1280px){.preview{top:180px}.chaty-sticky-buttons{position:fixed;right:0;top:179px;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!important;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;position:absolute}.btn-help{top:60px!important;position:absolute}}@media screen and (max-width:1180px){.section.one{max-width:inherit}.main .channels-icons{max-width:600px;text-align:center;margin:0;width:100%}.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:94px;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}.chaty-updates-form{display:block;width:92%;margin:100px 4% 0}.updates-form-form-left{width:100%;text-align:center;padding:0 0 20px 0}.updates-form{display:block}.update-form-input,.update-form-input input{width:100%}.update-form-skip-button{text-align:center}.updates-form .form-cancel-btn.no{padding:0;margin:0}.update-notice{padding:0}}@media screen and (max-width:680px){#wpbody-content{padding-right:10px}.date-option{width:100%;margin:0;padding:0 0 10px 0}.custom-search-box{max-width:100%}.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% - 75px)}.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% - 102px);text-align:left;padding:10px 0 0 0}.chaty-settings{padding:10px 0 0 0}.help-section{display:block;width:100%;text-align:left}.extra-chaty-settings{padding:10px 0 0}.chaty-setting-col input[type=number],.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% - 108px)}.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}header.header{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/js/cht-scripts.js
CHANGED
@@ -608,7 +608,11 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
608 |
});
|
609 |
});
|
610 |
jQuery('textarea[name=cht_cta]').on("keyup", function (event) {
|
611 |
-
|
|
|
|
|
|
|
|
|
612 |
if (jQuery(this).val().length == 0) {
|
613 |
jQuery('.cta').hide(200);
|
614 |
jQuery('.tooltiptext span').hide(200);
|
@@ -1311,6 +1315,9 @@ function check_for_number_chaty(phoneNumber, validationFor) {
|
|
1311 |
var socialIconText = jQuery(this).closest("li").find(".chaty-title").val();
|
1312 |
var eClass = jQuery(this).closest(".channels-selected__item").hasClass("img-active")?"img-active":"";
|
1313 |
if(socialIconText != "") {
|
|
|
|
|
|
|
1314 |
socialIconText = "<span class='social-tooltip'>"+socialIconText+"</span>";
|
1315 |
}
|
1316 |
jQuery(".chaty-channels").append("<div class='social-item-box "+eClass+"'><span class='tooltip-icon'>"+socialIcon+"</span>"+socialIconText+"</div>");
|
608 |
});
|
609 |
});
|
610 |
jQuery('textarea[name=cht_cta]').on("keyup", function (event) {
|
611 |
+
var socialIconText = jQuery(this).val();
|
612 |
+
var div = document.createElement("div");
|
613 |
+
div.innerHTML = socialIconText;
|
614 |
+
socialIconText = div.innerText;
|
615 |
+
jQuery('.tooltiptext span').html(socialIconText);
|
616 |
if (jQuery(this).val().length == 0) {
|
617 |
jQuery('.cta').hide(200);
|
618 |
jQuery('.tooltiptext span').hide(200);
|
1315 |
var socialIconText = jQuery(this).closest("li").find(".chaty-title").val();
|
1316 |
var eClass = jQuery(this).closest(".channels-selected__item").hasClass("img-active")?"img-active":"";
|
1317 |
if(socialIconText != "") {
|
1318 |
+
var div = document.createElement("div");
|
1319 |
+
div.innerHTML = socialIconText;
|
1320 |
+
socialIconText = div.innerText;
|
1321 |
socialIconText = "<span class='social-tooltip'>"+socialIconText+"</span>";
|
1322 |
}
|
1323 |
jQuery(".chaty-channels").append("<div class='social-item-box "+eClass+"'><span class='tooltip-icon'>"+socialIcon+"</span>"+socialIconText+"</div>");
|
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,n=!1,s=!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(n)s||(s=!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(n=!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("#channel_input_Whatsapp").length&&(cht_settings.channel_settings.Whatsapp=document.querySelector("#channel_input_Whatsapp"),window.intlTelInput(cht_settings.channel_settings.Whatsapp,{dropdownContainer:document.body,formatOnDisplay:!0,hiddenInput:"full_number",initialCountry:"auto",nationalMode:!1,utilsScript:cht_settings.plugin_url+"admin/assets/js/utils.js"})),e(".custom-channel-Whatsapp:not(#channel_input_Whatsapp)").length&&e(".custom-channel-Whatsapp:not(#channel_input_Whatsapp)").each(function(){var t=e(this).closest("li.chaty-channel").data("id");null!=t&&e("#channel_input_"+t).length&&(cht_settings.channel_settings[t]=document.querySelector("#channel_input_"+t),window.intlTelInput(cht_settings.channel_settings[t],{dropdownContainer:document.body,formatOnDisplay:!0,hiddenInput:"full_number",initialCountry:"auto",nationalMode:!1,utilsScript:cht_settings.plugin_url+"admin/assets/js/utils.js"}))}),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)}),jQuery("input[name='switchPreview']:checked").trigger("change"),e(document).on("change","#cht-form input",function(){a=!1,o=!1,c=!1,i=!1,n=!1,s=!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}),jQuery(document).on("click","#create-date-rule",function(e){jQuery("#date-schedule").addClass("active"),jQuery("#cht_date_rules").val("yes")}),jQuery(document).on("click","#remove-date-rule",function(e){jQuery("#date-schedule").removeClass("active"),jQuery("#cht_date_rules").val("no")})})}),function(e){jQuery(window).on("popstate",function(e){window.onbeforeunload=null,window.history&&window.history.pushState&&window.history.back()}),jQuery(document).ready(function(){jQuery(".chaty-table").length||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(t){1==t.status&&("Whatsapp"==t.data.slug?e("#channel_input_"+t.channel).length&&(cht_settings.channel_settings[t.channel]=document.querySelector("#channel_input_"+t.channel),window.intlTelInput(cht_settings.channel_settings[t.channel],{dropdownContainer:document.body,formatOnDisplay:!0,hiddenInput:"full_number",initialCountry:"auto",nationalMode:!1,utilsScript:cht_settings.plugin_url+"admin/assets/js/utils.js"})):e("#chaty-social-"+t.channel+" .channels__input-box").html("<input type='text' class='channels__input' name='cht_social_"+t.channel+"[value]' id='channel_input_"+t.channel+"' />"),jQuery(".custom-icon-"+t.channel+" svg").html(t.data.svg),jQuery("#chaty-social-"+t.channel).attr("data-channel",t.data.slug),jQuery("#chaty-social-"+t.channel).find(".sp-preview-inner").css("background-color",t.data.color),jQuery("#chaty-social-"+t.channel).find(".chaty-color-field").val(t.data.color),jQuery("#chaty-social-"+t.channel).find(".channels__input").attr("placeholder",t.data.placeholder),jQuery("#chaty-social-"+t.channel).find(".channel-example").text(t.data.example),jQuery("#chaty-social-"+t.channel).find(".chaty-title").val(t.data.title),jQuery("#chaty-social-"+t.channel).find(".icon").attr("data-title",t.data.title),jQuery("#chaty-social-"+t.channel).find(".chaty-color-field").trigger("change"),jQuery(".help-section").html(""),""!=t.data.help_link?jQuery(".help-section").html('<div class="viber-help"><a target="_blank" href="'+t.data.help_link+'">'+t.data.help_title+"</a></div>"):""!=t.data.help_text&&jQuery(".help-section").html('<div class="viber-help"><span class="help-text">'+t.data.help_text+'</span><span class="help-title">'+t.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){if(jQuery(".tooltiptext span").html(jQuery(this).val()),0==jQuery(this).val().length)jQuery(".cta").hide(200),jQuery(".tooltiptext span").hide(200);else{jQuery(".cta").show(300),jQuery(".tooltiptext span").show(200);var t=jQuery(".tooltiptext span").html();count=(t.match(/\n/g)||[]).length,count>0?jQuery(".tooltiptext").addClass("has-multiline").removeClass("line-1").removeClass("line-2").removeClass("line-3").addClass("line-"+count):jQuery(".tooltiptext").removeClass("has-multiline")}}),jQuery("textarea[name=cht_cta]").trigger("keyup")})}(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]").length&&(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 n=","+jQuery(this).attr("data-social");return s=(s=jQuery(".add_slug").val()).replace(n,""),jQuery(".add_slug").val(s),s=s.replace(n,""),jQuery(".add_slug").val(s),s=s.replace(n,""),jQuery(".add_slug").val(s),s=s.replace(n,""),jQuery(".add_slug").val(s),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 s;n=","+icon;s=(s=jQuery(".add_slug").val()).replace(n,""),jQuery(".add_slug").val(s),s=s.replace(n,""),jQuery(".add_slug").val(s),s=s.replace(n,""),jQuery(".add_slug").val(s)}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),n=c.find(".icon").data("title");c.data("channel");jQuery('.channels-selected div[data-social="'+n+'"]').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",showAlpha:!0,move:function(e){jQuery(this).val(e.toRgbString()),chaty_set_bg_color(),jQuery("input[name='switchPreview']:checked").trigger("change")},change:function(e){jQuery(this).val(e.toRgbString()),chaty_set_bg_color(),jQuery("input[name='switchPreview']:checked").trigger("change")}}),check_for_chaty_close_button(),"Whatsapp"==i&&e("#channel_input_Whatsapp").length&&(cht_settings.channel_settings.Whatsapp=document.querySelector("#channel_input_Whatsapp"),window.intlTelInput(cht_settings.channel_settings.Whatsapp,{dropdownContainer:document.body,formatOnDisplay:!0,hiddenInput:"full_number",initialCountry:"auto",nationalMode:!1,utilsScript:cht_settings.plugin_url+"admin/assets/js/utils.js"})),jQuery(".custom-channel-Whatsapp").length&&jQuery(".custom-channel-Whatsapp").each(function(){if(!jQuery(this).closest(".iti__flag-container").length){var e=jQuery(this).closest("li.chaty-channel").data("id");jQuery("#channel_input_"+e).length&&(cht_settings.channel_settings[e]=document.querySelector("#channel_input_"+e),window.intlTelInput(cht_settings.channel_settings[e],{dropdownContainer:document.body,formatOnDisplay:!0,hiddenInput:"full_number",initialCountry:"auto",nationalMode:!1,utilsScript:cht_settings.plugin_url+"admin/assets/js/utils.js"}))}})},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 n,s,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)),n=t,s=a,d()?h(n,o):h(s,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(jQuery("#iconWidget").length){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 #iconWidget svg circle").css({fill:a}),jQuery(".preview .page .chaty-close-icon ellipse").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!!jQuery("#previewDesktop").is(":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(".toast-message").length&&(jQuery(".toast-message").show(),jQuery(".toast-message").addClass("active"),setTimeout(function(){jQuery(".toast-message").removeClass("active")},5e3)),jQuery(document).on("click",".toast-close-btn a",function(e){e.preventDefault(),jQuery(".toast-message").removeClass("active")}),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(){var e=!1;function t(){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"))})}(/(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)))&&(e=!0),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,showAlpha:!0,move:function(e){jQuery(this).val(e.toRgbString()),jQuery("#cta-box span").css("color",jQuery("#cht_cta_text_color").val()),jQuery("#cta-box span").css("background",jQuery("#cht_cta_bg_color").val()),jQuery("#custom-css").html("<style>.preview .page .chaty-widget .icon:before {border-color: transparent "+jQuery("#cht_cta_bg_color").val()+" transparent transparent } .preview .page .chaty-widget[style*='left: auto;'] .icon:before {border-color: transparent transparent transparent "+jQuery("#cht_cta_bg_color").val()+"}</style>"),chaty_set_bg_color(),jQuery("input[name='switchPreview']:checked").trigger("change")},change:function(e){jQuery(this).val(e.toRgbString()),chaty_set_bg_color(),jQuery("#cta-box span").css("color",jQuery("#cht_cta_text_color").val()),jQuery("#cta-box span").css("background",jQuery("#cht_cta_bg_color").val()),jQuery("#custom-css").html("<style>.preview .page .chaty-widget .icon:before {border-color: transparent "+jQuery("#cht_cta_bg_color").val()+" transparent transparent } .preview .page .chaty-widget[style*='left: auto;'] .icon:before {border-color: transparent transparent transparent "+jQuery("#cht_cta_bg_color").val()+"}</style>"),jQuery("input[name='switchPreview']:checked").trigger("change")}}),jQuery(".chaty-color-field").on("change",function(){chaty_set_bg_color(),change_custom_preview()}),jQuery(".remove-chaty-img").on("click",function(e){e.stopPropagation()}),e||jQuery("#channels-selected-list").sortable({placeholder:"ui-chaty-state-hl",items:"li:not(#chaty-social-close)",stop:function(){t()},update:function(e,a){set_social_channel_order(),change_custom_preview(),t()}}),jQuery(document).ready(function(){t()}),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?(jQuery(".form-fonts option:selected").data("group"),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&&(jQuery(".form-fonts option:selected").data("group"),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(),jQuery("#chaty-social-"+e).find(".chaty-advance-settings").toggleClass("active"),"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){}}))}jQuery("#chaty-social-"+e+" .chaty-advance-settings.active").length&&jQuery("body,html").animate({scrollTop:jQuery("#chaty-social-"+e+" .chaty-advance-settings.active").offset().top-50},500),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!!jQuery("#previewDesktop").is(":checked")}function setChtIcon(e,t){if(jQuery("iconWidget").length){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 #iconWidget svg circle").css({fill:a}),jQuery(".preview .page .chaty-close-icon ellipse").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(".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,n=!1,s=!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(n)s||(s=!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(n=!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("#channel_input_Whatsapp").length&&(cht_settings.channel_settings.Whatsapp=document.querySelector("#channel_input_Whatsapp"),window.intlTelInput(cht_settings.channel_settings.Whatsapp,{dropdownContainer:document.body,formatOnDisplay:!0,hiddenInput:"full_number",initialCountry:"auto",nationalMode:!1,utilsScript:cht_settings.plugin_url+"admin/assets/js/utils.js"})),e(".custom-channel-Whatsapp:not(#channel_input_Whatsapp)").length&&e(".custom-channel-Whatsapp:not(#channel_input_Whatsapp)").each(function(){var t=e(this).closest("li.chaty-channel").data("id");null!=t&&e("#channel_input_"+t).length&&(cht_settings.channel_settings[t]=document.querySelector("#channel_input_"+t),window.intlTelInput(cht_settings.channel_settings[t],{dropdownContainer:document.body,formatOnDisplay:!0,hiddenInput:"full_number",initialCountry:"auto",nationalMode:!1,utilsScript:cht_settings.plugin_url+"admin/assets/js/utils.js"}))}),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)}),jQuery("input[name='switchPreview']:checked").trigger("change"),e(document).on("change","#cht-form input",function(){a=!1,o=!1,c=!1,i=!1,n=!1,s=!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}),jQuery(document).on("click","#create-date-rule",function(e){jQuery("#date-schedule").addClass("active"),jQuery("#cht_date_rules").val("yes")}),jQuery(document).on("click","#remove-date-rule",function(e){jQuery("#date-schedule").removeClass("active"),jQuery("#cht_date_rules").val("no")})})}),function(e){jQuery(window).on("popstate",function(e){window.onbeforeunload=null,window.history&&window.history.pushState&&window.history.back()}),jQuery(document).ready(function(){jQuery(".chaty-table").length||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(t){1==t.status&&("Whatsapp"==t.data.slug?e("#channel_input_"+t.channel).length&&(cht_settings.channel_settings[t.channel]=document.querySelector("#channel_input_"+t.channel),window.intlTelInput(cht_settings.channel_settings[t.channel],{dropdownContainer:document.body,formatOnDisplay:!0,hiddenInput:"full_number",initialCountry:"auto",nationalMode:!1,utilsScript:cht_settings.plugin_url+"admin/assets/js/utils.js"})):e("#chaty-social-"+t.channel+" .channels__input-box").html("<input type='text' class='channels__input' name='cht_social_"+t.channel+"[value]' id='channel_input_"+t.channel+"' />"),jQuery(".custom-icon-"+t.channel+" svg").html(t.data.svg),jQuery("#chaty-social-"+t.channel).attr("data-channel",t.data.slug),jQuery("#chaty-social-"+t.channel).find(".sp-preview-inner").css("background-color",t.data.color),jQuery("#chaty-social-"+t.channel).find(".chaty-color-field").val(t.data.color),jQuery("#chaty-social-"+t.channel).find(".channels__input").attr("placeholder",t.data.placeholder),jQuery("#chaty-social-"+t.channel).find(".channel-example").text(t.data.example),jQuery("#chaty-social-"+t.channel).find(".chaty-title").val(t.data.title),jQuery("#chaty-social-"+t.channel).find(".icon").attr("data-title",t.data.title),jQuery("#chaty-social-"+t.channel).find(".chaty-color-field").trigger("change"),jQuery(".help-section").html(""),""!=t.data.help_link?jQuery(".help-section").html('<div class="viber-help"><a target="_blank" href="'+t.data.help_link+'">'+t.data.help_title+"</a></div>"):""!=t.data.help_text&&jQuery(".help-section").html('<div class="viber-help"><span class="help-text">'+t.data.help_text+'</span><span class="help-title">'+t.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){var t=jQuery(this).val(),a=document.createElement("div");if(a.innerHTML=t,t=a.innerText,jQuery(".tooltiptext span").html(t),0==jQuery(this).val().length)jQuery(".cta").hide(200),jQuery(".tooltiptext span").hide(200);else{jQuery(".cta").show(300),jQuery(".tooltiptext span").show(200);var o=jQuery(".tooltiptext span").html();count=(o.match(/\n/g)||[]).length,count>0?jQuery(".tooltiptext").addClass("has-multiline").removeClass("line-1").removeClass("line-2").removeClass("line-3").addClass("line-"+count):jQuery(".tooltiptext").removeClass("has-multiline")}}),jQuery("textarea[name=cht_cta]").trigger("keyup")})}(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]").length&&(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 n=","+jQuery(this).attr("data-social");return s=(s=jQuery(".add_slug").val()).replace(n,""),jQuery(".add_slug").val(s),s=s.replace(n,""),jQuery(".add_slug").val(s),s=s.replace(n,""),jQuery(".add_slug").val(s),s=s.replace(n,""),jQuery(".add_slug").val(s),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 s;n=","+icon;s=(s=jQuery(".add_slug").val()).replace(n,""),jQuery(".add_slug").val(s),s=s.replace(n,""),jQuery(".add_slug").val(s),s=s.replace(n,""),jQuery(".add_slug").val(s)}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),n=c.find(".icon").data("title");c.data("channel");jQuery('.channels-selected div[data-social="'+n+'"]').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",showAlpha:!0,move:function(e){jQuery(this).val(e.toRgbString()),chaty_set_bg_color(),jQuery("input[name='switchPreview']:checked").trigger("change")},change:function(e){jQuery(this).val(e.toRgbString()),chaty_set_bg_color(),jQuery("input[name='switchPreview']:checked").trigger("change")}}),check_for_chaty_close_button(),"Whatsapp"==i&&e("#channel_input_Whatsapp").length&&(cht_settings.channel_settings.Whatsapp=document.querySelector("#channel_input_Whatsapp"),window.intlTelInput(cht_settings.channel_settings.Whatsapp,{dropdownContainer:document.body,formatOnDisplay:!0,hiddenInput:"full_number",initialCountry:"auto",nationalMode:!1,utilsScript:cht_settings.plugin_url+"admin/assets/js/utils.js"})),jQuery(".custom-channel-Whatsapp").length&&jQuery(".custom-channel-Whatsapp").each(function(){if(!jQuery(this).closest(".iti__flag-container").length){var e=jQuery(this).closest("li.chaty-channel").data("id");jQuery("#channel_input_"+e).length&&(cht_settings.channel_settings[e]=document.querySelector("#channel_input_"+e),window.intlTelInput(cht_settings.channel_settings[e],{dropdownContainer:document.body,formatOnDisplay:!0,hiddenInput:"full_number",initialCountry:"auto",nationalMode:!1,utilsScript:cht_settings.plugin_url+"admin/assets/js/utils.js"}))}})},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 n,s,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)),n=t,s=a,d()?h(n,o):h(s,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(jQuery("#iconWidget").length){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 #iconWidget svg circle").css({fill:a}),jQuery(".preview .page .chaty-close-icon ellipse").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":"";if(""!=t){var o=document.createElement("div");o.innerHTML=t,t="<span class='social-tooltip'>"+(t=o.innerText)+"</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!!jQuery("#previewDesktop").is(":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(".toast-message").length&&(jQuery(".toast-message").show(),jQuery(".toast-message").addClass("active"),setTimeout(function(){jQuery(".toast-message").removeClass("active")},5e3)),jQuery(document).on("click",".toast-close-btn a",function(e){e.preventDefault(),jQuery(".toast-message").removeClass("active")}),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(){var e=!1;function t(){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"))})}(/(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)))&&(e=!0),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,showAlpha:!0,move:function(e){jQuery(this).val(e.toRgbString()),jQuery("#cta-box span").css("color",jQuery("#cht_cta_text_color").val()),jQuery("#cta-box span").css("background",jQuery("#cht_cta_bg_color").val()),jQuery("#custom-css").html("<style>.preview .page .chaty-widget .icon:before {border-color: transparent "+jQuery("#cht_cta_bg_color").val()+" transparent transparent } .preview .page .chaty-widget[style*='left: auto;'] .icon:before {border-color: transparent transparent transparent "+jQuery("#cht_cta_bg_color").val()+"}</style>"),chaty_set_bg_color(),jQuery("input[name='switchPreview']:checked").trigger("change")},change:function(e){jQuery(this).val(e.toRgbString()),chaty_set_bg_color(),jQuery("#cta-box span").css("color",jQuery("#cht_cta_text_color").val()),jQuery("#cta-box span").css("background",jQuery("#cht_cta_bg_color").val()),jQuery("#custom-css").html("<style>.preview .page .chaty-widget .icon:before {border-color: transparent "+jQuery("#cht_cta_bg_color").val()+" transparent transparent } .preview .page .chaty-widget[style*='left: auto;'] .icon:before {border-color: transparent transparent transparent "+jQuery("#cht_cta_bg_color").val()+"}</style>"),jQuery("input[name='switchPreview']:checked").trigger("change")}}),jQuery(".chaty-color-field").on("change",function(){chaty_set_bg_color(),change_custom_preview()}),jQuery(".remove-chaty-img").on("click",function(e){e.stopPropagation()}),e||jQuery("#channels-selected-list").sortable({placeholder:"ui-chaty-state-hl",items:"li:not(#chaty-social-close)",stop:function(){t()},update:function(e,a){set_social_channel_order(),change_custom_preview(),t()}}),jQuery(document).ready(function(){t()}),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?(jQuery(".form-fonts option:selected").data("group"),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&&(jQuery(".form-fonts option:selected").data("group"),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(),jQuery("#chaty-social-"+e).find(".chaty-advance-settings").toggleClass("active"),"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){}}))}jQuery("#chaty-social-"+e+" .chaty-advance-settings.active").length&&jQuery("body,html").animate({scrollTop:jQuery("#chaty-social-"+e+" .chaty-advance-settings.active").offset().top-50},500),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!!jQuery("#previewDesktop").is(":checked")}function setChtIcon(e,t){if(jQuery("iconWidget").length){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 #iconWidget svg circle").css({fill:a}),jQuery(".preview .page .chaty-close-icon ellipse").css({fill:a}),jQuery("#chaty-social-close ellipse").attr("fill",a)}jQuery(".js-widget-i:checked").trigger("change")}}
|
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.8.
|
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.8.
|
31 |
|
32 |
if (!function_exists('wp_doing_ajax')) {
|
33 |
function wp_doing_ajax()
|
7 |
Author URI: https://premio.io/downloads/chaty/
|
8 |
Text Domain: chaty
|
9 |
Domain Path: /languages
|
10 |
+
Version: 2.8.4
|
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.8.4");
|
31 |
|
32 |
if (!function_exists('wp_doing_ajax')) {
|
33 |
function wp_doing_ajax()
|
css/chaty-front.css
CHANGED
@@ -1029,6 +1029,10 @@ span.cht-pending-message {
|
|
1029 |
-webkit-box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
1030 |
-moz-box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
1031 |
}
|
|
|
|
|
|
|
|
|
1032 |
.chaty-inline-popup:not(.active) {
|
1033 |
bottom: -100% !important;
|
1034 |
}
|
1029 |
-webkit-box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
1030 |
-moz-box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
1031 |
}
|
1032 |
+
.chaty-inline-popup, .chaty-inline-popup * {
|
1033 |
+
box-sizing: border-box;
|
1034 |
+
-webkit-box-sizing: border-box;
|
1035 |
+
}
|
1036 |
.chaty-inline-popup:not(.active) {
|
1037 |
bottom: -100% !important;
|
1038 |
}
|
css/chaty-front.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.chaty-widget.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;background:0 0!important}.widget-img img{object-fit:cover;border-radius:50%}.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:230px;height:auto;width:100%;display:block}.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;width:100%}.wechat-qr-code{display:inline-block;vertical-align:bottom;background:#fff;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;position:fixed;bottom:30px;left:100px;padding:0;z-index:100001;width:280px;transition:all .5s linear;-webkit-transition:all .5s linear;-moz-transition:all .5s linear;box-shadow:rgba(0,0,0,.16) 0 5px 40px;-webkit-box-shadow:rgba(0,0,0,.16) 0 5px 40px;-moz-box-shadow:rgba(0,0,0,.16) 0 5px 40px}.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%;box-shadow:0 3px 6px rgba(0,0,0,.25);line-height:0;margin:0;padding:0}.widget-img{display:flex;align-items:center;height:100%;overflow:inherit;border-radius:100%}.set-url-target{line-height:0}.get{opacity:1}.chaty-widget-show .get{opacity:1}.none-widget-show .get{opacity:0}.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}.chaty-whatsapp-message p{margin:0;padding:0;color:#303030}.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}.i-trigger-close:before{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);border-radius:50%;-wekit-border-radius:50%;-moz-border-radius:50%}.chaty-widget .chaty-animation-sheen .wrap-svg,.chaty-widget .chaty-animation-sheen svg{box-shadow:none}.chaty-widget .chaty-animation-sheen{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 5s infinite}.chaty-animation-jump{animation:chaty-animation-jump 5s infinite cubic-bezier(.84,-.54,.31,1.19)}.chaty-animation-waggle{animation:chaty-animation-waggle 5s infinite}.chaty-animation-sheen{position:relative;overflow:hidden}.chaty-animation-sheen:after{animation:chaty-animation-sheen 5s infinite;content:'';position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(to bottom,transparent,rgba(255,255,255,.5) 50%,transparent);transform:rotateZ(60deg) translate(0,5em)}.chaty-animation-spin{animation:chaty-animation-spin 5s infinite cubic-bezier(.56,-.35,.22,1.5)}.chaty-animation-fade{animation:chaty-animation-fade 5s infinite}@keyframes chaty-animation-pulse{0%{background-color:orange}5%{background-color:red}10%{background-color:orange}15%{background-color:red}100%,20%{background-color:transparent}}@keyframes chaty-animation-jump{0%{transform:none}10%{transform:translateY(-1em)}100%,20%{transform:none}}@keyframes chaty-animation-waggle{0%{transform:none}10%{transform:rotateZ(-20deg) scale(1.2)}13%{transform:rotateZ(25deg) scale(1.2)}15%{transform:rotateZ(-15deg) scale(1.2)}17%{transform:rotateZ(15deg) scale(1.2)}20%{transform:rotateZ(-12deg) scale(1.2)}22%{transform:rotateZ(0) scale(1.2)}100%,24%{transform:rotateZ(0) scale(1)}}@keyframes chaty-animation-sheen{100%,20%{transform:rotateZ(60deg) translate(0,-80px)}}@keyframes chaty-animation-spin{10%{transform:rotateZ(-20deg);animation-timing-function:ease}100%,20%{transform:rotateZ(360deg)}}@keyframes chaty-animation-fade{5%{opacity:.25}10%{opacity:1}15%{opacity:.25}100%,20%{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;left:auto!important}body.horizontal-cht-menu.chaty-in-desktop .chaty-main-widget.is-in-desktop{display:inline-block}body.horizontal-cht-menu.chaty-in-mobile .chaty-main-widget.is-in-mobile{display:inline-block}body.horizontal-cht-menu.chaty-widget-is-right .chaty-widget-is{left:100%!important;right:auto!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.chaty-in-desktop.horizontal-cht-menu .chaty-main-widget.is-in-desktop,body.chaty-in-mobile.horizontal-cht-menu .chaty-main-widget.is-in-mobile{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-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-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-is .chaty-widget-i:not(.no-tooltip):before{transform:rotate(90deg)}.i-trigger.one-widget.no-tooltip .chaty-widget-i-title{display:none}.i-trigger.one-widget.no-tooltip .chaty-widget-i:before{display:none}body .chaty-widget.one_widget .i-trigger.one-widget.show-channel .chaty-widget-i-title,body .chaty-widget.one_widget .i-trigger.one-widget.show-channel .chaty-widget-i:before{opacity:0!important}body .chaty-widget.one_widget .i-trigger.one-widget.show-channel:hover .chaty-widget-i-title,body .chaty-widget.one_widget .i-trigger.one-widget.show-channel:hover .chaty-widget-i:before{opacity:1!important}.chaty-widget.has-not-close-button .chaty-widget-is{top:auto!important;bottom:0!important}body.horizontal-cht-menu .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;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;line-height:1.25;padding:5px 10px}.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)}.chaty-animation-shockwave:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;-webkit-animation:chaty-animation-shockwave 2s 1.3s ease-out infinite;animation:chaty-animation-shockwave 2s 1.3s ease-out infinite}.chaty-animation-shockwave:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;-webkit-animation:chaty-animation-shockwave 2s .8s ease-out infinite;animation:chaty-animation-shockwave 2s .8s ease-out infinite}.one_widget.chaty-widget .chaty-widget-i.no-tooltip .chaty-widget-i-title{display:none}.chaty-widget.one_widget .chaty-widget-i.no-tooltip:before{display:none}.i-trigger.one-widget a{position:relative;display:block}.i-trigger.one-widget a .svg:after{content:"";position:absolute;height:100%;width:100%;top:0;left:0;background:#000;z-index:111;display:block;border-radius:50%;opacity:0;transition:all .1s linear;-webkit-transition:all .1s linear}.i-trigger.one-widget a:hover .svg:after{opacity:.12}@-webkit-keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}@keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}.chaty-animation-blink{-webkit-animation:chaty-animation-blink 1.33s ease-out infinite;animation:chaty-animation-blink 1.33s ease-out infinite}@-webkit-keyframes chaty-animation-blink{0%{opacity:1}20%{opacity:.5}100%{opacity:1}}@keyframes chaty-animation-blink{0%{opacity:1}20%{opacity:.5}100%{opacity:1}}.chaty-animation-pulse-icon{-webkit-animation:chaty-animation-pulse-icon .4s ease infinite alternate;animation:chaty-animation-pulse-icon .4s ease infinite alternate}@-webkit-keyframes chaty-animation-pulse-icon{0%{transform:scale(1);box-shadow:0 2px 2px rgba(0,0,0,.2);border-radius:50%}100%{transform:scale(1.1);box-shadow:0 2px 2px rgba(0,0,0,.2);border-radius:45%}}@keyframes chaty-animation-pulse-icon{0%{transform:scale(1);border-radius:50%}100%{transform:scale(1.1);border-radius:45%}}@keyframes chaty-animation-pulse{0%{background-color:orange}25%{background-color:red}50%{background-color:orange}75%{background-color:red}}body.chaty-in-mobile .chaty-widget-i.chaty-close-settings.i-trigger-close:before{display:none}.i-trigger.one-widget.no-tooltip:not(.show-channel) .chaty-widget-i-title{display:none}.i-trigger.one-widget.no-tooltip:not(.show-channel) .chaty-widget-i:before{display:none}body .chaty-widget.one_widget .i-trigger.one-widget.show-channel .chaty-widget-i-title,body .chaty-widget.one_widget .i-trigger.one-widget.show-channel .chaty-widget-i:before{opacity:0!important}body .chaty-widget.one_widget .i-trigger.one-widget.show-channel:hover .chaty-widget-i-title,body .chaty-widget.one_widget .i-trigger.one-widget.show-channel:hover .chaty-widget-i:before{opacity:1!important}
|
1 |
+
.chaty-widget.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;background:0 0!important}.widget-img img{object-fit:cover;border-radius:50%}.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:230px;height:auto;width:100%;display:block}.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;width:100%}.wechat-qr-code{display:inline-block;vertical-align:bottom;background:#fff;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;position:fixed;bottom:30px;left:100px;padding:0;z-index:100001;width:280px;transition:all .5s linear;-webkit-transition:all .5s linear;-moz-transition:all .5s linear;box-shadow:rgba(0,0,0,.16) 0 5px 40px;-webkit-box-shadow:rgba(0,0,0,.16) 0 5px 40px;-moz-box-shadow:rgba(0,0,0,.16) 0 5px 40px}.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%;box-shadow:0 3px 6px rgba(0,0,0,.25);line-height:0;margin:0;padding:0}.widget-img{display:flex;align-items:center;height:100%;overflow:inherit;border-radius:100%}.set-url-target{line-height:0}.get{opacity:1}.chaty-widget-show .get{opacity:1}.none-widget-show .get{opacity:0}.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}.chaty-whatsapp-message p{margin:0;padding:0;color:#303030}.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}.i-trigger-close:before{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);border-radius:50%;-wekit-border-radius:50%;-moz-border-radius:50%}.chaty-widget .chaty-animation-sheen .wrap-svg,.chaty-widget .chaty-animation-sheen svg{box-shadow:none}.chaty-widget .chaty-animation-sheen{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 5s infinite}.chaty-animation-jump{animation:chaty-animation-jump 5s infinite cubic-bezier(.84,-.54,.31,1.19)}.chaty-animation-waggle{animation:chaty-animation-waggle 5s infinite}.chaty-animation-sheen{position:relative;overflow:hidden}.chaty-animation-sheen:after{animation:chaty-animation-sheen 5s infinite;content:'';position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(to bottom,transparent,rgba(255,255,255,.5) 50%,transparent);transform:rotateZ(60deg) translate(0,5em)}.chaty-animation-spin{animation:chaty-animation-spin 5s infinite cubic-bezier(.56,-.35,.22,1.5)}.chaty-animation-fade{animation:chaty-animation-fade 5s infinite}@keyframes chaty-animation-pulse{0%{background-color:orange}5%{background-color:red}10%{background-color:orange}15%{background-color:red}100%,20%{background-color:transparent}}@keyframes chaty-animation-jump{0%{transform:none}10%{transform:translateY(-1em)}100%,20%{transform:none}}@keyframes chaty-animation-waggle{0%{transform:none}10%{transform:rotateZ(-20deg) scale(1.2)}13%{transform:rotateZ(25deg) scale(1.2)}15%{transform:rotateZ(-15deg) scale(1.2)}17%{transform:rotateZ(15deg) scale(1.2)}20%{transform:rotateZ(-12deg) scale(1.2)}22%{transform:rotateZ(0) scale(1.2)}100%,24%{transform:rotateZ(0) scale(1)}}@keyframes chaty-animation-sheen{100%,20%{transform:rotateZ(60deg) translate(0,-80px)}}@keyframes chaty-animation-spin{10%{transform:rotateZ(-20deg);animation-timing-function:ease}100%,20%{transform:rotateZ(360deg)}}@keyframes chaty-animation-fade{5%{opacity:.25}10%{opacity:1}15%{opacity:.25}100%,20%{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;left:auto!important}body.horizontal-cht-menu.chaty-in-desktop .chaty-main-widget.is-in-desktop{display:inline-block}body.horizontal-cht-menu.chaty-in-mobile .chaty-main-widget.is-in-mobile{display:inline-block}body.horizontal-cht-menu.chaty-widget-is-right .chaty-widget-is{left:100%!important;right:auto!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.chaty-in-desktop.horizontal-cht-menu .chaty-main-widget.is-in-desktop,body.chaty-in-mobile.horizontal-cht-menu .chaty-main-widget.is-in-mobile{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-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-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-is .chaty-widget-i:not(.no-tooltip):before{transform:rotate(90deg)}.i-trigger.one-widget.no-tooltip .chaty-widget-i-title{display:none}.i-trigger.one-widget.no-tooltip .chaty-widget-i:before{display:none}body .chaty-widget.one_widget .i-trigger.one-widget.show-channel .chaty-widget-i-title,body .chaty-widget.one_widget .i-trigger.one-widget.show-channel .chaty-widget-i:before{opacity:0!important}body .chaty-widget.one_widget .i-trigger.one-widget.show-channel:hover .chaty-widget-i-title,body .chaty-widget.one_widget .i-trigger.one-widget.show-channel:hover .chaty-widget-i:before{opacity:1!important}.chaty-widget.has-not-close-button .chaty-widget-is{top:auto!important;bottom:0!important}body.horizontal-cht-menu .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;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,.chaty-inline-popup *{box-sizing:border-box;-webkit-box-sizing:border-box}.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;line-height:1.25;padding:5px 10px}.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)}.chaty-animation-shockwave:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;-webkit-animation:chaty-animation-shockwave 2s 1.3s ease-out infinite;animation:chaty-animation-shockwave 2s 1.3s ease-out infinite}.chaty-animation-shockwave:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;-webkit-animation:chaty-animation-shockwave 2s .8s ease-out infinite;animation:chaty-animation-shockwave 2s .8s ease-out infinite}.one_widget.chaty-widget .chaty-widget-i.no-tooltip .chaty-widget-i-title{display:none}.chaty-widget.one_widget .chaty-widget-i.no-tooltip:before{display:none}.i-trigger.one-widget a{position:relative;display:block}.i-trigger.one-widget a .svg:after{content:"";position:absolute;height:100%;width:100%;top:0;left:0;background:#000;z-index:111;display:block;border-radius:50%;opacity:0;transition:all .1s linear;-webkit-transition:all .1s linear}.i-trigger.one-widget a:hover .svg:after{opacity:.12}@-webkit-keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}@keyframes chaty-animation-shockwave{0%{transform:scale(1);box-shadow:0 0 2px rgba(0,0,0,.3),inset 0 0 1px rgba(0,0,0,.3)}95%{box-shadow:0 0 50px transparent,inset 0 0 30px transparent}100%{transform:scale(2.25)}}.chaty-animation-blink{-webkit-animation:chaty-animation-blink 1.33s ease-out infinite;animation:chaty-animation-blink 1.33s ease-out infinite}@-webkit-keyframes chaty-animation-blink{0%{opacity:1}20%{opacity:.5}100%{opacity:1}}@keyframes chaty-animation-blink{0%{opacity:1}20%{opacity:.5}100%{opacity:1}}.chaty-animation-pulse-icon{-webkit-animation:chaty-animation-pulse-icon .4s ease infinite alternate;animation:chaty-animation-pulse-icon .4s ease infinite alternate}@-webkit-keyframes chaty-animation-pulse-icon{0%{transform:scale(1);box-shadow:0 2px 2px rgba(0,0,0,.2);border-radius:50%}100%{transform:scale(1.1);box-shadow:0 2px 2px rgba(0,0,0,.2);border-radius:45%}}@keyframes chaty-animation-pulse-icon{0%{transform:scale(1);border-radius:50%}100%{transform:scale(1.1);border-radius:45%}}@keyframes chaty-animation-pulse{0%{background-color:orange}25%{background-color:red}50%{background-color:orange}75%{background-color:red}}body.chaty-in-mobile .chaty-widget-i.chaty-close-settings.i-trigger-close:before{display:none}.i-trigger.one-widget.no-tooltip:not(.show-channel) .chaty-widget-i-title{display:none}.i-trigger.one-widget.no-tooltip:not(.show-channel) .chaty-widget-i:before{display:none}body .chaty-widget.one_widget .i-trigger.one-widget.show-channel .chaty-widget-i-title,body .chaty-widget.one_widget .i-trigger.one-widget.show-channel .chaty-widget-i:before{opacity:0!important}body .chaty-widget.one_widget .i-trigger.one-widget.show-channel:hover .chaty-widget-i-title,body .chaty-widget.one_widget .i-trigger.one-widget.show-channel:hover .chaty-widget-i:before{opacity:1!important}
|
includes/class-frontend.php
CHANGED
@@ -176,12 +176,12 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
176 |
}
|
177 |
if(empty($errors)) {
|
178 |
$widget = trim($widget, "_");
|
179 |
-
$response['message'] = $value['thanks_message'];
|
180 |
-
$response['redirect_action'] = $value['redirect_action'];
|
181 |
$response['redirect_link'] = esc_url($value['redirect_link']);
|
182 |
-
$response['link_in_new_tab'] = $value['link_in_new_tab'];
|
183 |
-
$response['close_form_after'] = $value['close_form_after'];
|
184 |
-
$response['close_form_after_seconds'] = $value['close_form_after_seconds'];
|
185 |
$send_leads_in_email = $value['send_leads_in_email'];
|
186 |
$save_leads_locally = $value['save_leads_locally'];
|
187 |
|
@@ -266,6 +266,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
266 |
$positionSide = empty($positionSide) ? 'right' : $positionSide; // Initialize widget position if not exists
|
267 |
$cht_side_spacing = ($cht_side_spacing) ? $cht_side_spacing : '25'; // Initialize widget from left/Right if not exists
|
268 |
$cht_widget_size = ($cht_widget_size) ? $cht_widget_size : '54'; // Initialize widget size if not exists
|
|
|
269 |
$position = get_option('cht_position');
|
270 |
$position = ($position) ? $position : 'right'; // Initialize widget position if not exists
|
271 |
$total = $cht_side_spacing+$cht_widget_size+$cht_side_spacing;
|
@@ -275,7 +276,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
275 |
$imageUrl = plugin_dir_url("")."chaty-pro/admin/assets/images/chaty-default.png"; // Initialize default image
|
276 |
$analytics = get_option("cht_google_analytics"); // check for google analytics enable or not
|
277 |
$analytics = empty($analytics)?0:$analytics; // Initialize google analytics flag to 0 if not data not exists
|
278 |
-
$text = get_option("cht_close_button_text"); // close button settings
|
279 |
$close_text = ($text === false)?"Hide":$text;
|
280 |
|
281 |
$imageUrl = "";
|
@@ -393,7 +394,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
393 |
$settings['widget_size'] = $cht_widget_size;
|
394 |
$settings['widget_type'] = get_option('widget_icon');
|
395 |
$settings['widget_img'] = $this->getCustomWidgetImg();
|
396 |
-
$settings['cta'] = $cta;
|
397 |
$settings['active'] = ($cht_active && $len >= 1) ? 'true' : 'false';
|
398 |
$settings['close_text'] = $close_text;
|
399 |
$settings['analytics'] = $analytics;
|
@@ -421,14 +422,14 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
421 |
ob_start();
|
422 |
?>
|
423 |
<?php if($position == "left") { ?>
|
424 |
-
#wechat-qr-code{left: <?php
|
425 |
<?php } else if($position == "right") { ?>
|
426 |
-
#wechat-qr-code{right: <?php
|
427 |
<?php } else if($position == "custom") { ?>
|
428 |
<?php if($positionSide == "left") { ?>
|
429 |
-
#wechat-qr-code{left: <?php
|
430 |
<?php } else { ?>
|
431 |
-
#wechat-qr-code{right: <?php
|
432 |
<?php } ?>
|
433 |
<?php } ?>
|
434 |
.chaty-widget-is a{display: block; margin:0; padding:0;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%; }
|
@@ -477,7 +478,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
477 |
/* WP change this */
|
478 |
wp_enqueue_style( 'chaty-front-css', CHT_PLUGIN_URL."css/chaty-front.min.css", array(), $chaty_updated_on);
|
479 |
wp_add_inline_style('chaty-front-css', $chaty_css);
|
480 |
-
wp_enqueue_script( "chaty-front-end", CHT_PLUGIN_URL."js/cht-front-script.js", array( 'jquery' ), $chaty_updated_on, false);
|
481 |
wp_localize_script('chaty-front-end', 'chaty_settings', $data);
|
482 |
}
|
483 |
endif;
|
@@ -652,648 +653,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
652 |
$value['value'] = trim($value['value'], "@");
|
653 |
}
|
654 |
ob_start();
|
655 |
-
|
656 |
-
<!-- Social media setting box: start -->
|
657 |
-
<li data-id="<?php echo esc_attr($social['slug']) ?>" class="chaty-channel" data-channel="<?php echo esc_attr($channel_type) ?>" id="chaty-social-<?php echo esc_attr($social['slug']) ?>">
|
658 |
-
<div class="channels-selected__item <?php esc_attr_e(($status)?"img-active":"") ?> <?php esc_attr_e(($this->is_pro()) ? 'pro' : 'free'); ?> 1 available">
|
659 |
-
<div class="chaty-default-settings">
|
660 |
-
<div class="move-icon">
|
661 |
-
<img src="<?php echo esc_url(plugin_dir_url("")."/chaty/admin/assets/images/move-icon.png") ?>">
|
662 |
-
</div>
|
663 |
-
<div class="icon icon-md active" data-label="<?php esc_attr_e($social['title']); ?>">
|
664 |
-
<span style="" class="custom-chaty-image custom-image-<?php echo esc_attr($social['slug']) ?>" id="image_data_<?php echo esc_attr($social['slug']) ?>">
|
665 |
-
<img src="<?php echo esc_url($imageUrl) ?>" />
|
666 |
-
<span onclick="remove_chaty_image('<?php echo esc_attr($social['slug']) ?>')" class="remove-icon-img"></span>
|
667 |
-
</span>
|
668 |
-
<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']) ?>" >
|
669 |
-
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
670 |
-
<?php echo $svg_icon; ?>
|
671 |
-
</svg>
|
672 |
-
<span class="facustom-icon" style="background-color: <?php echo esc_attr($value['bg_color']) ?>"><i class="<?php echo esc_attr($value['fa_icon']) ?>"></i></span>
|
673 |
-
</span>
|
674 |
-
</div>
|
675 |
-
|
676 |
-
<?php if($social['slug'] != 'Contact_Us') { ?>
|
677 |
-
<!-- Social Media input -->
|
678 |
-
<?php if(($social['slug'] == "Whatsapp" || $channel_type == "Whatsapp") && !empty($value['value'])) {
|
679 |
-
$value['value'] = trim($value['value'], "+");
|
680 |
-
$value['value'] = "+".$value['value'];
|
681 |
-
} ?>
|
682 |
-
<div class="channels__input-box">
|
683 |
-
<input data-label="<?php echo esc_attr($social['title']) ?>" placeholder="<?php esc_attr_e($placeholder); ?>" type="text" class="channels__input custom-channel-<?php echo esc_attr__($channel_type) ?> <?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="channel_input_<?php echo esc_attr($social['slug']); ?>" />
|
684 |
-
</div>
|
685 |
-
<?php } ?>
|
686 |
-
<div class="channels__device-box">
|
687 |
-
<?php
|
688 |
-
$slug = esc_attr__($this->del_space($social['slug']));
|
689 |
-
$slug = str_replace(' ', '_', $slug);
|
690 |
-
$is_desktop = isset($value['is_desktop']) && $value['is_desktop'] == "checked" ? "checked" : '';
|
691 |
-
$is_mobile = isset($value['is_mobile']) && $value['is_mobile'] == "checked" ? "checked" : '';
|
692 |
-
?>
|
693 |
-
<!-- setting for desktop -->
|
694 |
-
<label class="channels__view" for="<?php echo esc_attr($slug); ?>Desktop">
|
695 |
-
<input type="checkbox" id="<?php echo esc_attr($slug); ?>Desktop" class="channels__view-check js-chanel-icon js-chanel-desktop" data-type="<?php echo str_replace(' ', '_', strtolower(esc_attr__($this->del_space($social['slug'])))); ?>" name="cht_social_<?php echo esc_attr($social['slug']); ?>[is_desktop]" value="checked" data-gramm_editor="false" <?php esc_attr_e($is_desktop) ?> />
|
696 |
-
<span class="channels__view-txt">Desktop</label>
|
697 |
-
</label>
|
698 |
-
|
699 |
-
<!-- setting for mobile -->
|
700 |
-
<label class="channels__view" for="<?php echo esc_attr($slug); ?>Mobile">
|
701 |
-
<input type="checkbox" id="<?php echo esc_attr($slug); ?>Mobile" class="channels__view-check js-chanel-icon js-chanel-mobile" data-type="<?php echo str_replace(' ', '_', strtolower(esc_attr__($this->del_space($social['slug'])))); ?>" name="cht_social_<?php echo esc_attr($social['slug']); ?>[is_mobile]" value="checked" data-gramm_editor="false" <?php esc_attr_e($is_mobile) ?> >
|
702 |
-
<span class="channels__view-txt">Mobile</span>
|
703 |
-
</label>
|
704 |
-
</div>
|
705 |
-
|
706 |
-
<?php if($social['slug'] == 'Contact_Us') { ?>
|
707 |
-
<div class="channels__input transparent"></div>
|
708 |
-
<?php } ?>
|
709 |
-
|
710 |
-
<?php
|
711 |
-
$close_class = "active";
|
712 |
-
if($social['slug'] == 'Contact_Us') {
|
713 |
-
$setting_status = get_option("chaty_contact_us_setting");
|
714 |
-
if($setting_status === false) {
|
715 |
-
$close_class = "";
|
716 |
-
}
|
717 |
-
}
|
718 |
-
?>
|
719 |
-
|
720 |
-
<!-- button for advance setting -->
|
721 |
-
<div class="chaty-settings <?php echo esc_attr($close_class) ?>" data-nonce="<?php echo wp_create_nonce($social['slug']."-settings") ?>" id="<?php echo esc_attr($social['slug']); ?>-close-btn" onclick="toggle_chaty_setting('<?php echo esc_attr($social['slug']); ?>')">
|
722 |
-
<a href="javascript:;"><span class="dashicons dashicons-admin-generic"></span> Settings</a>
|
723 |
-
</div>
|
724 |
-
|
725 |
-
<?php if($social['slug'] != 'Contact_Us') { ?>
|
726 |
-
|
727 |
-
<!-- example for social media -->
|
728 |
-
<div class="input-example">
|
729 |
-
<?php esc_attr_e('For example', CHT_OPT); ?>:
|
730 |
-
<span class="inline-box channel-example">
|
731 |
-
<?php if($social['slug'] == "Poptin") { ?>
|
732 |
-
<br/>
|
733 |
-
<?php } ?>
|
734 |
-
<?php esc_attr_e($placeholder); ?>
|
735 |
-
</span>
|
736 |
-
</div>
|
737 |
-
|
738 |
-
<!-- checking for extra help message for social media -->
|
739 |
-
<div class="help-section">
|
740 |
-
<?php if((isset($social['help']) && !empty($social['help'])) || isset($social['help_link'])) { ?>
|
741 |
-
<div class="viber-help">
|
742 |
-
<?php if(isset($help_link) && !empty($help_link)) { ?>
|
743 |
-
<a class="help-link" href="<?php echo esc_url($help_link) ?>" target="_blank"><?php esc_attr_e($help_title); ?></a>
|
744 |
-
<?php } else if(isset($help_text) && !empty($help_text)) { ?>
|
745 |
-
<span class="help-text"><?php echo $help_text; ?></span>
|
746 |
-
<span class="help-title"><?php esc_attr_e($help_title); ?></span>
|
747 |
-
<?php } ?>
|
748 |
-
</div>
|
749 |
-
<?php } ?>
|
750 |
-
</div>
|
751 |
-
<?php } ?>
|
752 |
-
</div>
|
753 |
-
|
754 |
-
<?php if($social['slug'] == "Whatsapp" || $social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3" || $social['slug'] == "Custom_Link_4" || $social['slug'] == "Custom_Link_5") { ?>
|
755 |
-
<div class="Whatsapp-settings advanced-settings extra-chaty-settings">
|
756 |
-
<?php $embedded_window = isset($value['embedded_window'])?$value['embedded_window']:"no"; ?>
|
757 |
-
<div class="chaty-setting-col">
|
758 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[embedded_window]" value="no" >
|
759 |
-
<label class="chaty-switch chaty-embedded-window" for="whatsapp_embedded_window_<?php echo esc_attr($social['slug']); ?>">
|
760 |
-
<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") ?> >
|
761 |
-
<div class="chaty-slider round"></div>
|
762 |
-
WhatsApp Chat Popup 💬
|
763 |
-
<div class="html-tooltip top">
|
764 |
-
<span class="dashicons dashicons-editor-help"></span>
|
765 |
-
<span class="tooltip-text top">
|
766 |
-
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.
|
767 |
-
<img src="<?php echo esc_url(CHT_PLUGIN_URL) ?>/admin/assets/images/whatsapp-popup.gif" />
|
768 |
-
</span>
|
769 |
-
</div>
|
770 |
-
</label>
|
771 |
-
</div>
|
772 |
-
<!-- advance setting for Whatsapp -->
|
773 |
-
<div class="whatsapp-welcome-message <?php echo ($embedded_window=="yes")?"active":"" ?>">
|
774 |
-
<div class="chaty-setting-col">
|
775 |
-
<label style="display: block; width: 100%" for="cht_social_embedded_message_<?php echo esc_attr($social['slug']); ?>">Welcome message</label>
|
776 |
-
<div class="full-width">
|
777 |
-
<div class="full-width">
|
778 |
-
<?php $unique_id = uniqid(); ?>
|
779 |
-
<?php $embedded_message = isset($value['embedded_message'])?$value['embedded_message']:esc_html__("How can I help you? :)", "chaty"); ?>
|
780 |
-
<textarea class="chaty-setting-textarea chaty-whatsapp-setting-textarea" data-id="<?php echo esc_attr($unique_id) ?>" id="cht_social_embedded_message_<?php echo esc_attr($unique_id) ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[embedded_message]" ><?php echo $embedded_message ?></textarea>
|
781 |
-
</div>
|
782 |
-
</div>
|
783 |
-
</div>
|
784 |
-
<div class="chaty-setting-col">
|
785 |
-
<?php $is_default_open = isset($value['is_default_open'])?$value['is_default_open']:""; ?>
|
786 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[is_default_open]" value="no" >
|
787 |
-
<label class="chaty-switch" for="whatsapp_default_open_embedded_window_<?php echo esc_attr($social['slug']); ?>">
|
788 |
-
<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") ?> >
|
789 |
-
<div class="chaty-slider round"></div>
|
790 |
-
Open the window on load
|
791 |
-
<span class="icon label-tooltip" data-label="Open the WhatsApp chat popup on page load, 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>
|
792 |
-
</label>
|
793 |
-
</div>
|
794 |
-
</div>
|
795 |
-
</div>
|
796 |
-
<?php } ?>
|
797 |
-
|
798 |
-
<!-- advance setting fields: start -->
|
799 |
-
<?php $class_name = !$this->is_pro()?"not-is-pro":""; ?>
|
800 |
-
<div class="chaty-advance-settings <?php esc_attr_e($class_name); ?>" style="<?php echo (empty($close_class) && $social['slug'] == 'Contact_Us')?"display:block":""; ?>">
|
801 |
-
<!-- Settings for custom icon and color -->
|
802 |
-
<div class="chaty-setting-col">
|
803 |
-
<label>Icon Appearance</label>
|
804 |
-
<div>
|
805 |
-
<!-- input for custom color -->
|
806 |
-
<input type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[bg_color]" class="chaty-color-field" value="<?php esc_attr_e($value['bg_color']) ?>" />
|
807 |
-
|
808 |
-
<!-- button to upload custom image -->
|
809 |
-
<?php if($this->is_pro()) { ?>
|
810 |
-
<a onclick="upload_chaty_image('<?php echo esc_attr($social['slug']); ?>')" href="javascript:;" class="upload-chaty-icon"><span class="dashicons dashicons-upload"></span> Custom Image</a>
|
811 |
-
|
812 |
-
<!-- hidden input value for image -->
|
813 |
-
<input id="cht_social_image_<?php echo esc_attr($social['slug']); ?>" type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[image_id]" value="<?php esc_attr_e($imageId) ?>" />
|
814 |
-
<?php } else { ?>
|
815 |
-
<div class="pro-features upload-image">
|
816 |
-
<div class="pro-item">
|
817 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>" class="upload-chaty-icon"><span class="dashicons dashicons-upload"></span> Custom Image</a>
|
818 |
-
</div>
|
819 |
-
<div class="pro-button">
|
820 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>"><?php esc_attr_e('Upgrade to Pro', CHT_OPT);?></a>
|
821 |
-
</div>
|
822 |
-
</div>
|
823 |
-
<?php } ?>
|
824 |
-
</div>
|
825 |
-
</div>
|
826 |
-
<div class="clear clearfix"></div>
|
827 |
-
|
828 |
-
<?php if($social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3" || $social['slug'] == "Custom_Link_4" || $social['slug'] == "Custom_Link_5") {
|
829 |
-
$channel_type = "";
|
830 |
-
if(isset($value['channel_type'])) {
|
831 |
-
$channel_type = esc_attr__(wp_unslash($value['channel_type']));
|
832 |
-
}
|
833 |
-
$socials = $this->socials;
|
834 |
-
?>
|
835 |
-
<div class="chaty-setting-col">
|
836 |
-
<label>Channel type</label>
|
837 |
-
<div>
|
838 |
-
<!-- input for custom title -->
|
839 |
-
<select class="channel-select-input" name="cht_social_<?php echo esc_attr($social['slug']); ?>[channel_type]" value="<?php esc_attr_e($value['channel_type']) ?>">
|
840 |
-
<option value="<?php echo esc_attr($social['slug']) ?>">Custom channel</option>
|
841 |
-
<?php foreach ($socials as $social_icon) {
|
842 |
-
$selected = ($social_icon['slug'] == $channel_type)?"selected":"";
|
843 |
-
if ($social_icon['slug'] != 'Custom_Link' && $social_icon['slug'] != 'Custom_Link_3' && $social_icon['slug'] != 'Custom_Link_4' && $social_icon['slug'] != 'Custom_Link_5' && $social_icon['slug'] != 'Contact_Us' && $social_icon['slug'] != 'Link') { ?>
|
844 |
-
<option <?php echo esc_attr($selected) ?> value="<?php echo esc_attr($social_icon['slug']) ?>"><?php echo esc_attr($social_icon['title']) ?></option>
|
845 |
-
<?php }
|
846 |
-
}?>
|
847 |
-
</select>
|
848 |
-
</div>
|
849 |
-
</div>
|
850 |
-
<div class="clear clearfix"></div>
|
851 |
-
<?php } ?>
|
852 |
-
|
853 |
-
<div class="chaty-setting-col">
|
854 |
-
<label>On Hover Text</label>
|
855 |
-
<div>
|
856 |
-
<input type="text" class="chaty-title" name="cht_social_<?php echo esc_attr($social['slug']); ?>[title]" value="<?php esc_attr_e($value['title']) ?>">
|
857 |
-
</div>
|
858 |
-
</div>
|
859 |
-
<div class="clear clearfix"></div>
|
860 |
-
|
861 |
-
<div class="Contact_Us-settings advanced-settings">
|
862 |
-
<div class="clear clearfix"></div>
|
863 |
-
<div class="chaty-setting-col">
|
864 |
-
<label>Contact Form Title</label>
|
865 |
-
<div>
|
866 |
-
<?php $contact_form_title = isset($value['contact_form_title'])?$value['contact_form_title']:esc_html__("Contact Us", "chaty"); ?>
|
867 |
-
<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) ?>" >
|
868 |
-
</div>
|
869 |
-
</div>
|
870 |
-
<?php
|
871 |
-
$fields = array(
|
872 |
-
'name' => array(
|
873 |
-
'title' => "Name",
|
874 |
-
'placeholder' => "Enter your name",
|
875 |
-
'is_required' => 1,
|
876 |
-
'type' => 'input',
|
877 |
-
'is_enabled' => 1
|
878 |
-
),
|
879 |
-
'email' => array(
|
880 |
-
'title' => "Email",
|
881 |
-
'placeholder' => "Enter your email address",
|
882 |
-
'is_required' => 1,
|
883 |
-
'type' => 'email',
|
884 |
-
'is_enabled' => 1
|
885 |
-
),
|
886 |
-
'phone' => array(
|
887 |
-
'title' => "Phone",
|
888 |
-
'placeholder' => "Enter your phone number",
|
889 |
-
'is_required' => 1,
|
890 |
-
'type' => 'input',
|
891 |
-
'is_enabled' => 1
|
892 |
-
),
|
893 |
-
'message' => array(
|
894 |
-
'title' => "Message",
|
895 |
-
'placeholder' => "Enter your message",
|
896 |
-
'is_required' => 1,
|
897 |
-
'type' => 'textarea',
|
898 |
-
'is_enabled' => 1
|
899 |
-
)
|
900 |
-
);
|
901 |
-
echo '<div class="form-field-setting-col">';
|
902 |
-
foreach ($fields as $label => $field) {
|
903 |
-
$saved_value = isset($value[$label])?$value[$label]:array();
|
904 |
-
$field_value = array(
|
905 |
-
'is_active' => (isset($saved_value['is_active']))?$saved_value['is_active']:'yes',
|
906 |
-
'is_required' => (isset($saved_value['is_required']))?$saved_value['is_required']:'yes',
|
907 |
-
'placeholder' => (isset($saved_value['placeholder']))?$saved_value['placeholder']:$field['placeholder'],
|
908 |
-
);
|
909 |
-
?>
|
910 |
-
<div class="field-setting-col">
|
911 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_active]" value="no">
|
912 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_required]" value="no">
|
913 |
-
|
914 |
-
<div class="left-section">
|
915 |
-
<label class="chaty-switch chaty-switch-toggle" for="field_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">
|
916 |
-
<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") ?>>
|
917 |
-
<div class="chaty-slider round"></div>
|
918 |
-
|
919 |
-
<?php echo $field['title'] ?>
|
920 |
-
</label>
|
921 |
-
</div>
|
922 |
-
<div class="right-section">
|
923 |
-
<div class="field-settings <?php echo ($field_value['is_active']=="yes")?"active":"" ?>">
|
924 |
-
<div class="inline-block">
|
925 |
-
<label class="inline-block" for="field_required_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">Required?</label>
|
926 |
-
<div class="inline-block">
|
927 |
-
<label class="chaty-switch" for="field_required_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">
|
928 |
-
<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") ?>>
|
929 |
-
<div class="chaty-slider round"></div>
|
930 |
-
</label>
|
931 |
-
</div>
|
932 |
-
</div>
|
933 |
-
</div>
|
934 |
-
</div>
|
935 |
-
<div class="clear clearfix"></div>
|
936 |
-
<div class="field-settings <?php echo ($field_value['is_active']=="yes")?"active":"" ?>">
|
937 |
-
<div class="chaty-setting-col">
|
938 |
-
<label for="placeholder_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">Placeholder text</label>
|
939 |
-
<div>
|
940 |
-
<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']) ?>" >
|
941 |
-
</div>
|
942 |
-
</div>
|
943 |
-
</div>
|
944 |
-
</div>
|
945 |
-
<?php if($label != 'message') { ?>
|
946 |
-
<div class="chaty-separator"></div>
|
947 |
-
<?php } ?>
|
948 |
-
<?php }
|
949 |
-
echo '</div>'; ?>
|
950 |
-
<div class="form-field-setting-col">
|
951 |
-
<div class="form-field-title">Submit Button</div>
|
952 |
-
<div class="color-box">
|
953 |
-
<div class="clr-setting">
|
954 |
-
<?php $field_value = isset($value['button_text_color'])?$value['button_text_color']:"#ffffff" ?>
|
955 |
-
<div class="chaty-setting-col">
|
956 |
-
<label for="button_text_color_for_<?php echo esc_attr($social['slug']); ?>">Text color</label>
|
957 |
-
<div>
|
958 |
-
<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); ?>" >
|
959 |
-
</div>
|
960 |
-
</div>
|
961 |
-
</div>
|
962 |
-
<?php $field_value = isset($value['button_bg_color'])?$value['button_bg_color']:"#A886CD" ?>
|
963 |
-
<div class="clr-setting">
|
964 |
-
<div class="chaty-setting-col">
|
965 |
-
<label for="button_bg_color_for_<?php echo esc_attr($social['slug']); ?>">Background color</label>
|
966 |
-
<div>
|
967 |
-
<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); ?>" >
|
968 |
-
</div>
|
969 |
-
</div>
|
970 |
-
</div>
|
971 |
-
</div>
|
972 |
-
<?php $field_value = isset($value['button_text'])?$value['button_text']:"Chat" ?>
|
973 |
-
<div class="chaty-setting-col">
|
974 |
-
<label for="button_text_for_<?php echo esc_attr($social['slug']); ?>">Button text</label>
|
975 |
-
<div>
|
976 |
-
<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); ?>" >
|
977 |
-
</div>
|
978 |
-
</div>
|
979 |
-
<?php $field_value = isset($value['thanks_message'])?$value['thanks_message']:"Your message was sent successfully" ?>
|
980 |
-
<div class="chaty-setting-col">
|
981 |
-
<label for="thanks_message_for_<?php echo esc_attr($social['slug']); ?>">Thank you message</label>
|
982 |
-
<div>
|
983 |
-
<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); ?>" >
|
984 |
-
</div>
|
985 |
-
</div>
|
986 |
-
<div class="chaty-separator"></div>
|
987 |
-
<?php $field_value = isset($value['redirect_action'])?$value['redirect_action']:"no" ?>
|
988 |
-
<div class="chaty-setting-col">
|
989 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[redirect_action]" value="no" >
|
990 |
-
<label class="chaty-switch" for="redirect_action_<?php echo esc_attr($social['slug']); ?>">
|
991 |
-
<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") ?> >
|
992 |
-
<div class="chaty-slider round"></div>
|
993 |
-
Redirect visitors after submission
|
994 |
-
</label>
|
995 |
-
</div>
|
996 |
-
<div class="redirect_action-settings <?php echo ($field_value == "yes")?"active":"" ?>">
|
997 |
-
<?php $field_value = isset($value['redirect_link'])?$value['redirect_link']:"" ?>
|
998 |
-
<div class="chaty-setting-col">
|
999 |
-
<label for="redirect_link_for_<?php echo esc_attr($social['slug']); ?>">Redirect link</label>
|
1000 |
-
<div>
|
1001 |
-
<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); ?>" >
|
1002 |
-
</div>
|
1003 |
-
</div>
|
1004 |
-
<?php $field_value = isset($value['link_in_new_tab'])?$value['link_in_new_tab']:"no" ?>
|
1005 |
-
<div class="chaty-setting-col">
|
1006 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_in_new_tab]" value="no" >
|
1007 |
-
<label class="chaty-switch" for="link_in_new_tab_<?php echo esc_attr($social['slug']); ?>">
|
1008 |
-
<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") ?> >
|
1009 |
-
<div class="chaty-slider round"></div>
|
1010 |
-
Open in a new tab
|
1011 |
-
</label>
|
1012 |
-
</div>
|
1013 |
-
</div>
|
1014 |
-
<div class="chaty-separator"></div>
|
1015 |
-
<?php $field_value = isset($value['close_form_after'])?$value['close_form_after']:"no" ?>
|
1016 |
-
<div class="chaty-setting-col">
|
1017 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[close_form_after]" value="no" >
|
1018 |
-
<label class="chaty-switch" for="close_form_after_<?php echo esc_attr($social['slug']); ?>">
|
1019 |
-
<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") ?> >
|
1020 |
-
<div class="chaty-slider round"></div>
|
1021 |
-
Close form automatically after submission
|
1022 |
-
<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>
|
1023 |
-
</label>
|
1024 |
-
</div>
|
1025 |
-
<div class="close_form_after-settings <?php echo ($field_value == "yes")?"active":"" ?>">
|
1026 |
-
<?php $field_value = isset($value['close_form_after_seconds'])?$value['close_form_after_seconds']:"3" ?>
|
1027 |
-
<div class="chaty-setting-col">
|
1028 |
-
<label for="close_form_after_seconds_<?php echo esc_attr($social['slug']); ?>">Close after (Seconds)</label>
|
1029 |
-
<div>
|
1030 |
-
<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); ?>" >
|
1031 |
-
</div>
|
1032 |
-
</div>
|
1033 |
-
</div>
|
1034 |
-
</div>
|
1035 |
-
<div class="form-field-setting-col no-margin">
|
1036 |
-
<input type="hidden" value="no" name="cht_social_<?php echo esc_attr($social['slug']); ?>[send_leads_in_email]" >
|
1037 |
-
<input type="hidden" value="yes" name="cht_social_<?php echo esc_attr($social['slug']); ?>[save_leads_locally]" >
|
1038 |
-
<?php $field_value = isset($val['save_leads_locally'])?$val['save_leads_locally']:"yes" ?>
|
1039 |
-
<div class="chaty-setting-col">
|
1040 |
-
<label for="save_leads_locally_<?php echo esc_attr($social['slug']); ?>" class="full-width chaty-switch">
|
1041 |
-
<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") ?> >
|
1042 |
-
<div class="chaty-slider round"></div>
|
1043 |
-
Save leads to the local database
|
1044 |
-
<div class="html-tooltip top no-position">
|
1045 |
-
<span class="dashicons dashicons-editor-help"></span>
|
1046 |
-
<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>
|
1047 |
-
</div>
|
1048 |
-
</label>
|
1049 |
-
</div>
|
1050 |
-
<?php $field_value = isset($value['send_leads_in_email'])?$value['send_leads_in_email']:"no" ?>
|
1051 |
-
<div class="chaty-setting-col">
|
1052 |
-
<label for="save_leads_to_email_<?php echo esc_attr($social['slug']); ?>" class="email-setting full-width chaty-switch">
|
1053 |
-
<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]" >
|
1054 |
-
<div class="chaty-slider round"></div>
|
1055 |
-
Send leads to your email
|
1056 |
-
<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>
|
1057 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>">(<?php esc_attr_e('Upgrade to Pro', CHT_OPT);?>)</a>
|
1058 |
-
</label>
|
1059 |
-
</div>
|
1060 |
-
<div class="email-settings <?php echo ($field_value == "yes")?"active":"" ?>">
|
1061 |
-
<div class="chaty-setting-col">
|
1062 |
-
<label for="email_for_<?php echo esc_attr($social['slug']); ?>">Email address</label>
|
1063 |
-
<div>
|
1064 |
-
<?php $field_value = isset($value['email_address'])?$value['email_address']:"" ?>
|
1065 |
-
<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); ?>" >
|
1066 |
-
</div>
|
1067 |
-
</div>
|
1068 |
-
<div class="chaty-setting-col">
|
1069 |
-
<label for="sender_name_for_<?php echo esc_attr($social['slug']); ?>">Sender's name</label>
|
1070 |
-
<div>
|
1071 |
-
<?php $field_value = isset($value['sender_name'])?$value['sender_name']:"" ?>
|
1072 |
-
<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); ?>" >
|
1073 |
-
</div>
|
1074 |
-
</div>
|
1075 |
-
<div class="chaty-setting-col">
|
1076 |
-
<label for="email_subject_for_<?php echo esc_attr($social['slug']); ?>">Email subject</label>
|
1077 |
-
<div>
|
1078 |
-
<?php $field_value = isset($value['email_subject'])?$value['email_subject']:"New lead from Chaty - {name} - {date} {hour}" ?>
|
1079 |
-
<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); ?>" >
|
1080 |
-
<div class="mail-merge-tags"><span>{name}</span><span>{phone}</span><span>{email}</span><span>{date}</span><span>{hour}</span></div>
|
1081 |
-
</div>
|
1082 |
-
</div>
|
1083 |
-
</div>
|
1084 |
-
</div>
|
1085 |
-
</div>
|
1086 |
-
|
1087 |
-
<?php if($this->is_pro()) { ?>
|
1088 |
-
<div class="clear clearfix"></div>
|
1089 |
-
<div class="Whatsapp-settings advanced-settings">
|
1090 |
-
<!-- advance setting for Whatsapp -->
|
1091 |
-
<div class="clear clearfix"></div>
|
1092 |
-
<div class="chaty-setting-col">
|
1093 |
-
<label>Pre Set Message</label>
|
1094 |
-
<div>
|
1095 |
-
<?php $pre_set_message = isset($value['pre_set_message'])?$value['pre_set_message']:""; ?>
|
1096 |
-
<input id="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[pre_set_message]" value="<?php esc_attr_e($pre_set_message) ?>" >
|
1097 |
-
</div>
|
1098 |
-
</div>
|
1099 |
-
</div>
|
1100 |
-
<div class="Email-settings advanced-settings">
|
1101 |
-
<!-- advance setting for Email -->
|
1102 |
-
<div class="clear clearfix"></div>
|
1103 |
-
<div class="chaty-setting-col">
|
1104 |
-
<label>Mail Subject <span class="icon label-tooltip inline-tooltip" data-label="Add your own pre-set message that's automatically added to the user's message. You can also use merge tags and add the URL or the title of the current visitor's page. E.g. you can add the current URL of a product to the message so you know which product the visitor is talking about when the visitor messages you"><span class="dashicons dashicons-editor-help"></span></span></label>
|
1105 |
-
<div>
|
1106 |
-
<?php $mail_subject = isset($value['mail_subject'])?$value['mail_subject']:""; ?>
|
1107 |
-
<input id="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[mail_subject]" value="<?php esc_attr_e($mail_subject) ?>" >
|
1108 |
-
<span class="supported-tags"><span class="icon label-tooltip support-tooltip" data-label="{title} tag grabs the page title of the webpage">{title}</span> and <span class="icon label-tooltip support-tooltip" data-label="{url} tag grabs the URL of the page">{url}</span> tags are supported</span>
|
1109 |
-
</div>
|
1110 |
-
</div>
|
1111 |
-
</div>
|
1112 |
-
<div class="WeChat-settings advanced-settings">
|
1113 |
-
<!-- advance setting for WeChat -->
|
1114 |
-
<?php
|
1115 |
-
$qr_code = isset($value['qr_code'])?$value['qr_code']:""; // Initialize QR code value if not exists. 2.1.0 change
|
1116 |
-
$imageUrl = "";
|
1117 |
-
$status = 0;
|
1118 |
-
if($qr_code != "") {
|
1119 |
-
$imageUrl = wp_get_attachment_image_src($qr_code, "full")[0]; // get custom Image URL if exists
|
1120 |
-
}
|
1121 |
-
if($imageUrl == "") {
|
1122 |
-
$imageUrl = plugin_dir_url("")."chaty/admin/assets/images/chaty-default.png"; // Initialize with default image URL if URL is not exists
|
1123 |
-
} else {
|
1124 |
-
$status = 1;
|
1125 |
-
}
|
1126 |
-
?>
|
1127 |
-
<div class="clear clearfix"></div>
|
1128 |
-
<div class="chaty-setting-col">
|
1129 |
-
<label>Upload QR Code</label>
|
1130 |
-
<div>
|
1131 |
-
<!-- Button to upload QR Code image -->
|
1132 |
-
<a class="cht-upload-image <?php esc_attr_e(($status)?"active":"") ?>" id="upload_qr_code" href="javascript:;" onclick="upload_qr_code('<?php echo esc_attr($social['slug']); ?>')">
|
1133 |
-
<img id="cht_social_image_src_<?php echo esc_attr($social['slug']); ?>" src="<?php echo esc_url($imageUrl) ?>" alt="<?php esc_attr_e($value['title']) ?>">
|
1134 |
-
<span class="dashicons dashicons-upload"></span>
|
1135 |
-
</a>
|
1136 |
-
|
1137 |
-
<!-- Button to remove QR Code image -->
|
1138 |
-
<a href="javascript:;" class="remove-qr-code remove-qr-code-<?php echo esc_attr($social['slug']); ?> <?php esc_attr_e(($status)?"active":"") ?>" onclick="remove_qr_code('<?php echo esc_attr($social['slug']); ?>')"><span class="dashicons dashicons-no-alt"></span></a>
|
1139 |
-
|
1140 |
-
<!-- input hidden field for QR Code -->
|
1141 |
-
<input id="upload_qr_code_val-<?php echo esc_attr($social['slug']); ?>" type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[qr_code]" value="<?php esc_attr_e($qr_code) ?>" >
|
1142 |
-
</div>
|
1143 |
-
</div>
|
1144 |
-
</div>
|
1145 |
-
<div class="Link-settings Custom_Link-settings Custom_Link_3-settings Custom_Link_4-settings Custom_Link_5-settings advanced-settings">
|
1146 |
-
<?php $is_checked = (!isset($value['new_window']) || $value['new_window'] == 1)?1:0; ?>
|
1147 |
-
<!-- Advance setting for Custom Link -->
|
1148 |
-
<div class="clear clearfix"></div>
|
1149 |
-
<div class="chaty-setting-col">
|
1150 |
-
<label >Open In a New Tab</label>
|
1151 |
-
<div>
|
1152 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[new_window]" value="0" >
|
1153 |
-
<label class="channels__view" for="cht_social_window_<?php echo esc_attr($social['slug']); ?>">
|
1154 |
-
<input id="cht_social_window_<?php echo esc_attr($social['slug']); ?>" type="checkbox" class="channels__view-check" name="cht_social_<?php echo esc_attr($social['slug']); ?>[new_window]" value="1" <?php checked($is_checked, 1) ?> >
|
1155 |
-
<span class="channels__view-txt"> </span>
|
1156 |
-
</label>
|
1157 |
-
</div>
|
1158 |
-
</div>
|
1159 |
-
</div>
|
1160 |
-
<div class="Linkedin-settings advanced-settings">
|
1161 |
-
<?php $is_checked = isset($value['link_type'])?$value['link_type']:"personal"; ?>
|
1162 |
-
<!-- Advance setting for Custom Link -->
|
1163 |
-
<div class="clear clearfix"></div>
|
1164 |
-
<div class="chaty-setting-col">
|
1165 |
-
<label >LinkedIn</label>
|
1166 |
-
<div>
|
1167 |
-
<label>
|
1168 |
-
<input type="radio" <?php checked($is_checked, "personal") ?> name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_type]" value="personal">
|
1169 |
-
Personal
|
1170 |
-
</label>
|
1171 |
-
<label>
|
1172 |
-
<input type="radio" <?php checked($is_checked, "company") ?> name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_type]" value="company">
|
1173 |
-
Company
|
1174 |
-
</label>
|
1175 |
-
</div>
|
1176 |
-
</div>
|
1177 |
-
</div>
|
1178 |
-
<?php } else { ?>
|
1179 |
-
<div class="clear clearfix"></div>
|
1180 |
-
<div class="Whatsapp-settings advanced-settings">
|
1181 |
-
<?php $pre_set_message = isset($value['pre_set_message'])?$value['pre_set_message']:""; ?>
|
1182 |
-
<div class="clear clearfix"></div>
|
1183 |
-
<div class="chaty-setting-col">
|
1184 |
-
<label>Pre Set Message</label>
|
1185 |
-
<div>
|
1186 |
-
<div class="pro-features">
|
1187 |
-
<div class="pro-item">
|
1188 |
-
<div class="pre-message-whatsapp">
|
1189 |
-
<input disabled id="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="text" name="" value="<?php esc_attr_e($pre_set_message) ?>" >
|
1190 |
-
<span class="supported-tags"><span class="icon label-tooltip support-tooltip" data-label="{title} tag grabs the page title of the webpage">{title}</span> and <span class="icon label-tooltip support-tooltip" data-label="{url} tag grabs the URL of the page">{url}</span> tags are supported</span>
|
1191 |
-
<button data-button="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"></path><path d="M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"></path></svg></button>
|
1192 |
-
</div>
|
1193 |
-
</div>
|
1194 |
-
<div class="pro-button">
|
1195 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>"><?php esc_attr_e('Upgrade to Pro', CHT_OPT);?></a>
|
1196 |
-
</div>
|
1197 |
-
</div>
|
1198 |
-
</div>
|
1199 |
-
</div>
|
1200 |
-
</div>
|
1201 |
-
<div class="Email-settings advanced-settings">
|
1202 |
-
<div class="clear clearfix"></div>
|
1203 |
-
<div class="chaty-setting-col">
|
1204 |
-
<label>Mail Subject <span class="icon label-tooltip inline-tooltip" data-label="Add your own pre-set message that's automatically added to the user's message. You can also use merge tags and add the URL or the title of the current visitor's page. E.g. you can add the current URL of a product to the message so you know which product the visitor is talking about when the visitor messages you"><span class="dashicons dashicons-editor-help"></span></span></label>
|
1205 |
-
<div>
|
1206 |
-
<div class="pro-features">
|
1207 |
-
<div class="pro-item">
|
1208 |
-
<input disabled id="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="text" name="" value="" >
|
1209 |
-
<span class="supported-tags"><span class="icon label-tooltip support-tooltip" data-label="{title} tag grabs the page title of the webpage">{title}</span> and <span class="icon label-tooltip support-tooltip" data-label="{url} tag grabs the URL of the page">{url}</span> tags are supported</span>
|
1210 |
-
</div>
|
1211 |
-
<div class="pro-button">
|
1212 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>"><?php esc_attr_e('Upgrade to Pro', CHT_OPT);?></a>
|
1213 |
-
</div>
|
1214 |
-
</div>
|
1215 |
-
</div>
|
1216 |
-
</div>
|
1217 |
-
</div>
|
1218 |
-
<div class="WeChat-settings advanced-settings">
|
1219 |
-
<div class="clear clearfix"></div>
|
1220 |
-
<div class="chaty-setting-col">
|
1221 |
-
<label>Upload QR Code</label>
|
1222 |
-
<div>
|
1223 |
-
<a target="_blank" class="cht-upload-image-pro" id="upload_qr_code" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>" >
|
1224 |
-
<span class="dashicons dashicons-upload"></span>
|
1225 |
-
</a>
|
1226 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>"><?php esc_attr_e('Upgrade to Pro', CHT_OPT);?></a>
|
1227 |
-
</div>
|
1228 |
-
</div>
|
1229 |
-
</div>
|
1230 |
-
<div class="Link-settings Custom_Link-settings Custom_Link_3-settings Custom_Link_4-settings Custom_Link_5-settings advanced-settings">
|
1231 |
-
<?php $is_checked = 1; ?>
|
1232 |
-
<div class="clear clearfix"></div>
|
1233 |
-
<div class="chaty-setting-col">
|
1234 |
-
<label >Open In a New Tab</label>
|
1235 |
-
<div>
|
1236 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[new_window]" value="0" >
|
1237 |
-
<label class="channels__view" for="cht_social_window_<?php echo esc_attr($social['slug']); ?>">
|
1238 |
-
<input id="cht_social_window_<?php echo esc_attr($social['slug']); ?>" type="checkbox" class="channels__view-check" name="cht_social_<?php echo esc_attr($social['slug']); ?>[new_window]" value="1" checked >
|
1239 |
-
<span class="channels__view-txt"> </span>
|
1240 |
-
</label>
|
1241 |
-
</div>
|
1242 |
-
</div>
|
1243 |
-
</div>
|
1244 |
-
<div class="Linkedin-settings advanced-settings">
|
1245 |
-
<?php $is_checked = "personal"; ?>
|
1246 |
-
<!-- Advance setting for Custom Link -->
|
1247 |
-
<div class="clear clearfix"></div>
|
1248 |
-
<div class="chaty-setting-col">
|
1249 |
-
<label >LinkedIn</label>
|
1250 |
-
<div>
|
1251 |
-
<label>
|
1252 |
-
<input type="radio" <?php checked($is_checked, "personal") ?> name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_type]" value="personal">
|
1253 |
-
Personal
|
1254 |
-
</label>
|
1255 |
-
<label>
|
1256 |
-
<input type="radio" <?php checked($is_checked, "company") ?> name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_type]" value="company">
|
1257 |
-
Company
|
1258 |
-
</label>
|
1259 |
-
</div>
|
1260 |
-
</div>
|
1261 |
-
</div>
|
1262 |
-
<?php } ?>
|
1263 |
-
|
1264 |
-
<?php $use_whatsapp_web = isset($value['use_whatsapp_web'])?$value['use_whatsapp_web']:"yes"; ?>
|
1265 |
-
<div class="Whatsapp-settings advanced-settings">
|
1266 |
-
<div class="clear clearfix"></div>
|
1267 |
-
<div class="chaty-setting-col">
|
1268 |
-
<label>Whatsapp Web</label>
|
1269 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[use_whatsapp_web]" value="no" />
|
1270 |
-
<div>
|
1271 |
-
<div class="checkbox">
|
1272 |
-
<label for="cht_social_<?php echo esc_attr($social['slug']); ?>_use_whatsapp_web" class="chaty-checkbox">
|
1273 |
-
<input class="sr-only" type="checkbox" id="cht_social_<?php echo esc_attr($social['slug']); ?>_use_whatsapp_web" name="cht_social_<?php echo esc_attr($social['slug']); ?>[use_whatsapp_web]" value="yes" <?php echo checked($use_whatsapp_web, "yes") ?> />
|
1274 |
-
<span></span>
|
1275 |
-
Use Whatsapp Web directly on desktop
|
1276 |
-
</label>
|
1277 |
-
</div>
|
1278 |
-
</div>
|
1279 |
-
</div>
|
1280 |
-
</div>
|
1281 |
-
</div>
|
1282 |
-
<!-- advance setting fields: end -->
|
1283 |
-
|
1284 |
-
|
1285 |
-
<!-- remove social media setting button: start -->
|
1286 |
-
<button type="button" class="btn-cancel" data-social="<?php echo esc_attr($social['slug']); ?>">
|
1287 |
-
<svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
|
1288 |
-
<rect width="15.6301" height="2.24494" rx="1.12247" transform="translate(2.26764 0.0615997) rotate(45)" fill="white"/>
|
1289 |
-
<rect width="15.6301" height="2.24494" rx="1.12247" transform="translate(13.3198 1.649) rotate(135)" fill="white"/>
|
1290 |
-
</svg>
|
1291 |
-
</button>
|
1292 |
-
<!-- remove social media setting button: end -->
|
1293 |
-
</div>
|
1294 |
-
</li>
|
1295 |
-
<!-- Social media setting box: end -->
|
1296 |
-
<?php
|
1297 |
$html = ob_get_clean();
|
1298 |
echo json_encode($html);
|
1299 |
}
|
@@ -1347,6 +707,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1347 |
|
1348 |
$channel_type = strtolower($channel_type);
|
1349 |
|
|
|
1350 |
if($channel_type == "viber") {
|
1351 |
/* Viber change to exclude + from number for desktop */
|
1352 |
$val = $value['value'];
|
@@ -1393,6 +754,8 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1393 |
$value['title'] = $social['title']; // Initialize title with default title if not exists. version 2.1.0 change
|
1394 |
}
|
1395 |
$image_url = "";
|
|
|
|
|
1396 |
|
1397 |
/* get custom image URL if uploaded. version 2.1.0 change */
|
1398 |
if(isset($value['image_id']) && !empty($value['image_id'])) {
|
@@ -1431,6 +794,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1431 |
}
|
1432 |
$mobile_url .= "?text=".rawurlencode($value['pre_set_message']);
|
1433 |
}
|
|
|
1434 |
if(wp_is_mobile()) {
|
1435 |
$mobile_target = "";
|
1436 |
} else {
|
@@ -1440,19 +804,20 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1440 |
$embedded_message = isset($value['embedded_message'])?$value['embedded_message']:"";
|
1441 |
$pre_set_message = isset($value['pre_set_message'])?$value['pre_set_message']:"";
|
1442 |
$is_default_open = (isset($value['is_default_open'])&&$value['is_default_open']=="yes")?1:0;
|
|
|
1443 |
$has_custom_popup = 1;
|
1444 |
$mobile_url = "javascript:;";
|
1445 |
$url = "javascript:;";
|
1446 |
$url = "javascript:;";
|
1447 |
$close_button = "<div role='button' class='close-chaty-popup is-whatsapp-btn'><div class='chaty-close-button'></div></div>";
|
1448 |
$popup_html = "<div class='chaty-whatsapp-popup'>";
|
1449 |
-
$popup_html .= "<
|
1450 |
-
$popup_html .= "<
|
1451 |
-
$popup_html .= "<
|
1452 |
$popup_html .= "<div class='chaty-whatsapp-body'>".$close_button."<div class='chaty-whatsapp-message'></div></div>";
|
1453 |
$popup_html .= "<div class='chaty-whatsapp-footer'>";
|
1454 |
if(isset($value['use_whatsapp_web']) && $value['use_whatsapp_web'] == "no") {
|
1455 |
-
$popup_html .= "<form class='whatsapp-chaty-form' autocomplete='off' target='_blank' action='https://wa.me/"
|
1456 |
} else {
|
1457 |
$popup_html .= "<form class='whatsapp-chaty-form' autocomplete='off' target='_blank' action='https://web.whatsapp.com/send' method='get'>";
|
1458 |
}
|
@@ -1539,6 +904,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1539 |
if($mail_subject != "") {
|
1540 |
$url .= "?subject=".urlencode($mail_subject);
|
1541 |
}
|
|
|
1542 |
} else if($channel_type == "facebook_messenger") {
|
1543 |
/* setting for facebook URL */
|
1544 |
$url = esc_url($val);
|
@@ -1548,16 +914,19 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1548 |
} else {
|
1549 |
$desktop_target = "_blank";
|
1550 |
}
|
|
|
1551 |
} else if($channel_type == "twitter") {
|
1552 |
/* setting for Twitter */
|
1553 |
$url = "https://twitter.com/".$val;
|
1554 |
$desktop_target = "_blank";
|
1555 |
$mobile_target = "_blank";
|
|
|
1556 |
} else if($channel_type == "instagram") {
|
1557 |
/* setting for Instagram */
|
1558 |
$url = "https://www.instagram.com/".$val;
|
1559 |
$desktop_target = "_blank";
|
1560 |
$mobile_target = "_blank";
|
|
|
1561 |
} else if($channel_type == "linkedin") {
|
1562 |
/* setting for Linkedin */
|
1563 |
$link_type = !isset($value['link_type']) || $value['link_type'] == "company"?"company":"personal";
|
@@ -1568,6 +937,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1568 |
}
|
1569 |
$desktop_target = "_blank";
|
1570 |
$mobile_target = "_blank";
|
|
|
1571 |
} else if($channel_type == "slack") {
|
1572 |
/* setting for slack */
|
1573 |
$url = esc_url($val);
|
@@ -1584,7 +954,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1584 |
$is_required = (isset($field_setting['is_required']) && $field_setting['is_required'] == "yes")?"is-required":"";
|
1585 |
$placeholder = isset($field_setting['placeholder'])?$field_setting['placeholder']:"Enter your name";
|
1586 |
$input_fields .= "<div class='chaty-input-area'>";
|
1587 |
-
$input_fields .= "<input autocomplete='off' class='chaty-input-field chaty-field-name {$is_required}' name='name' type='text' id='chaty-name' placeholder='
|
1588 |
$input_fields .= "</div>";
|
1589 |
}
|
1590 |
$field_setting = $value['email'];
|
@@ -1592,7 +962,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1592 |
$is_required = (isset($field_setting['is_required']) && $field_setting['is_required'] == "yes")?"is-required":"";
|
1593 |
$placeholder = isset($field_setting['placeholder'])?$field_setting['placeholder']:"Enter your email address";
|
1594 |
$input_fields .= "<div class='chaty-input-area'>";
|
1595 |
-
$input_fields .= "<input autocomplete='off' class='chaty-input-field chaty-field-email {$is_required}' name='email' type='email' id='chaty-name' placeholder='
|
1596 |
$input_fields .= "</div>";
|
1597 |
}
|
1598 |
$field_setting = $value['phone'];
|
@@ -1600,7 +970,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1600 |
$is_required = (isset($field_setting['is_required']) && $field_setting['is_required'] == "yes")?"is-required":"";
|
1601 |
$placeholder = isset($field_setting['placeholder'])?$field_setting['placeholder']:"Enter your phone number";
|
1602 |
$input_fields .= "<div class='chaty-input-area'>";
|
1603 |
-
$input_fields .= "<input autocomplete='off' class='chaty-input-field chaty-field-phone {$is_required}' name='name' type='text' id='chaty-phone' placeholder='
|
1604 |
$input_fields .= "</div>";
|
1605 |
}
|
1606 |
$field_setting = $value['message'];
|
@@ -1608,15 +978,15 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1608 |
$is_required = (isset($field_setting['is_required']) && $field_setting['is_required'] == "yes")?"is-required":"";
|
1609 |
$placeholder = isset($field_setting['placeholder'])?$field_setting['placeholder']:"Enter your message";
|
1610 |
$input_fields .= "<div class='chaty-input-area'>";
|
1611 |
-
$input_fields .= "<textarea autocomplete='off' class='chaty-input-field chaty-field-message {$is_required}' name='name' id='chaty-name' placeholder='
|
1612 |
$input_fields .= "</div>";
|
1613 |
}
|
1614 |
}
|
1615 |
if(!empty($input_fields)) {
|
1616 |
$has_custom_popup = 1;
|
1617 |
-
$button_text = isset($value['button_text']) && !empty($value['button_text'])
|
1618 |
-
$button_bg_color = isset($value['button_bg_color']) && !empty($value['button_bg_color'])
|
1619 |
-
$button_text_color = isset($value['button_text_color']) && !empty($value['button_text_color'])
|
1620 |
$contact_form_title = isset($value['contact_form_title'])?$value['contact_form_title']:"";
|
1621 |
$popup_html = "<div class='chaty-contact-form'>";
|
1622 |
$popup_html .= "<form action='#' method='post' class='chaty-contact-form-data' autocomplete='off'>";
|
@@ -1629,7 +999,7 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1629 |
$popup_html .= "<input type='hidden' class='chaty-field-nonce' name='nonce' value='{$nonce}' />";
|
1630 |
$popup_html .= "</div>";
|
1631 |
$popup_html .= "<div class='chaty-contact-footer'>";
|
1632 |
-
$popup_html .= "<button style='color:
|
1633 |
$popup_html .= "</div>";
|
1634 |
$popup_html .= "</form>";
|
1635 |
$popup_html .= "</div>";
|
@@ -1663,6 +1033,9 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
1663 |
$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>';
|
1664 |
|
1665 |
$rgb_color = $this->getRGBColor($value['bg_color']);
|
|
|
|
|
|
|
1666 |
$data = array(
|
1667 |
'val' => esc_attr__(wp_unslash($val)),
|
1668 |
'default_icon' => $svg,
|
176 |
}
|
177 |
if(empty($errors)) {
|
178 |
$widget = trim($widget, "_");
|
179 |
+
$response['message'] = esc_attr($value['thanks_message']);
|
180 |
+
$response['redirect_action'] = esc_attr($value['redirect_action']);
|
181 |
$response['redirect_link'] = esc_url($value['redirect_link']);
|
182 |
+
$response['link_in_new_tab'] = esc_attr($value['link_in_new_tab']);
|
183 |
+
$response['close_form_after'] = esc_attr($value['close_form_after']);
|
184 |
+
$response['close_form_after_seconds'] =esc_attr( $value['close_form_after_seconds']);
|
185 |
$send_leads_in_email = $value['send_leads_in_email'];
|
186 |
$save_leads_locally = $value['save_leads_locally'];
|
187 |
|
266 |
$positionSide = empty($positionSide) ? 'right' : $positionSide; // Initialize widget position if not exists
|
267 |
$cht_side_spacing = ($cht_side_spacing) ? $cht_side_spacing : '25'; // Initialize widget from left/Right if not exists
|
268 |
$cht_widget_size = ($cht_widget_size) ? $cht_widget_size : '54'; // Initialize widget size if not exists
|
269 |
+
$cht_widget_size = !is_numeric($cht_widget_size)?54:$cht_widget_size;
|
270 |
$position = get_option('cht_position');
|
271 |
$position = ($position) ? $position : 'right'; // Initialize widget position if not exists
|
272 |
$total = $cht_side_spacing+$cht_widget_size+$cht_side_spacing;
|
276 |
$imageUrl = plugin_dir_url("")."chaty-pro/admin/assets/images/chaty-default.png"; // Initialize default image
|
277 |
$analytics = get_option("cht_google_analytics"); // check for google analytics enable or not
|
278 |
$analytics = empty($analytics)?0:$analytics; // Initialize google analytics flag to 0 if not data not exists
|
279 |
+
$text = esc_html(get_option("cht_close_button_text")); // close button settings
|
280 |
$close_text = ($text === false)?"Hide":$text;
|
281 |
|
282 |
$imageUrl = "";
|
394 |
$settings['widget_size'] = $cht_widget_size;
|
395 |
$settings['widget_type'] = get_option('widget_icon');
|
396 |
$settings['widget_img'] = $this->getCustomWidgetImg();
|
397 |
+
$settings['cta'] = esc_attr($cta);
|
398 |
$settings['active'] = ($cht_active && $len >= 1) ? 'true' : 'false';
|
399 |
$settings['close_text'] = $close_text;
|
400 |
$settings['analytics'] = $analytics;
|
422 |
ob_start();
|
423 |
?>
|
424 |
<?php if($position == "left") { ?>
|
425 |
+
#wechat-qr-code{left: <?php echo esc_attr($total) ?>px; right:auto;}
|
426 |
<?php } else if($position == "right") { ?>
|
427 |
+
#wechat-qr-code{right: <?php echo esc_attr($total) ?>px; left:auto;}
|
428 |
<?php } else if($position == "custom") { ?>
|
429 |
<?php if($positionSide == "left") { ?>
|
430 |
+
#wechat-qr-code{left: <?php echo esc_attr($total) ?>px; right:auto;}
|
431 |
<?php } else { ?>
|
432 |
+
#wechat-qr-code{right: <?php echo esc_attr($total) ?>px; left:auto;}
|
433 |
<?php } ?>
|
434 |
<?php } ?>
|
435 |
.chaty-widget-is a{display: block; margin:0; padding:0;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%; }
|
478 |
/* WP change this */
|
479 |
wp_enqueue_style( 'chaty-front-css', CHT_PLUGIN_URL."css/chaty-front.min.css", array(), $chaty_updated_on);
|
480 |
wp_add_inline_style('chaty-front-css', $chaty_css);
|
481 |
+
wp_enqueue_script( "chaty-front-end", CHT_PLUGIN_URL."js/cht-front-script.min.js", array( 'jquery' ), $chaty_updated_on, false);
|
482 |
wp_localize_script('chaty-front-end', 'chaty_settings', $data);
|
483 |
}
|
484 |
endif;
|
653 |
$value['value'] = trim($value['value'], "@");
|
654 |
}
|
655 |
ob_start();
|
656 |
+
include CHT_DIR."/views/admin/channel.php";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
657 |
$html = ob_get_clean();
|
658 |
echo json_encode($html);
|
659 |
}
|
707 |
|
708 |
$channel_type = strtolower($channel_type);
|
709 |
|
710 |
+
$val = "";
|
711 |
if($channel_type == "viber") {
|
712 |
/* Viber change to exclude + from number for desktop */
|
713 |
$val = $value['value'];
|
754 |
$value['title'] = $social['title']; // Initialize title with default title if not exists. version 2.1.0 change
|
755 |
}
|
756 |
$image_url = "";
|
757 |
+
$val = esc_attr($val);
|
758 |
+
$value['title'] = esc_attr($value['title']);
|
759 |
|
760 |
/* get custom image URL if uploaded. version 2.1.0 change */
|
761 |
if(isset($value['image_id']) && !empty($value['image_id'])) {
|
794 |
}
|
795 |
$mobile_url .= "?text=".rawurlencode($value['pre_set_message']);
|
796 |
}
|
797 |
+
$url = esc_url($url);
|
798 |
if(wp_is_mobile()) {
|
799 |
$mobile_target = "";
|
800 |
} else {
|
804 |
$embedded_message = isset($value['embedded_message'])?$value['embedded_message']:"";
|
805 |
$pre_set_message = isset($value['pre_set_message'])?$value['pre_set_message']:"";
|
806 |
$is_default_open = (isset($value['is_default_open'])&&$value['is_default_open']=="yes")?1:0;
|
807 |
+
|
808 |
$has_custom_popup = 1;
|
809 |
$mobile_url = "javascript:;";
|
810 |
$url = "javascript:;";
|
811 |
$url = "javascript:;";
|
812 |
$close_button = "<div role='button' class='close-chaty-popup is-whatsapp-btn'><div class='chaty-close-button'></div></div>";
|
813 |
$popup_html = "<div class='chaty-whatsapp-popup'>";
|
814 |
+
$popup_html .= "<textarea class='default-value' style='display:none'>".esc_html($pre_set_message)."</textarea>";
|
815 |
+
$popup_html .= "<textarea class='default-msg-value' style='display:none'>".esc_html($embedded_message)."</textarea>";
|
816 |
+
$popup_html .= "<textarea class='default-msg-phone' style='display:none'>".esc_html($val)."</textarea>";
|
817 |
$popup_html .= "<div class='chaty-whatsapp-body'>".$close_button."<div class='chaty-whatsapp-message'></div></div>";
|
818 |
$popup_html .= "<div class='chaty-whatsapp-footer'>";
|
819 |
if(isset($value['use_whatsapp_web']) && $value['use_whatsapp_web'] == "no") {
|
820 |
+
$popup_html .= "<form class='whatsapp-chaty-form' autocomplete='off' target='_blank' action='https://wa.me/".esc_attr($val)."' method='get'>";
|
821 |
} else {
|
822 |
$popup_html .= "<form class='whatsapp-chaty-form' autocomplete='off' target='_blank' action='https://web.whatsapp.com/send' method='get'>";
|
823 |
}
|
904 |
if($mail_subject != "") {
|
905 |
$url .= "?subject=".urlencode($mail_subject);
|
906 |
}
|
907 |
+
$url = esc_url($url);
|
908 |
} else if($channel_type == "facebook_messenger") {
|
909 |
/* setting for facebook URL */
|
910 |
$url = esc_url($val);
|
914 |
} else {
|
915 |
$desktop_target = "_blank";
|
916 |
}
|
917 |
+
$url = esc_url($url);
|
918 |
} else if($channel_type == "twitter") {
|
919 |
/* setting for Twitter */
|
920 |
$url = "https://twitter.com/".$val;
|
921 |
$desktop_target = "_blank";
|
922 |
$mobile_target = "_blank";
|
923 |
+
$url = esc_url($url);
|
924 |
} else if($channel_type == "instagram") {
|
925 |
/* setting for Instagram */
|
926 |
$url = "https://www.instagram.com/".$val;
|
927 |
$desktop_target = "_blank";
|
928 |
$mobile_target = "_blank";
|
929 |
+
$url = esc_url($url);
|
930 |
} else if($channel_type == "linkedin") {
|
931 |
/* setting for Linkedin */
|
932 |
$link_type = !isset($value['link_type']) || $value['link_type'] == "company"?"company":"personal";
|
937 |
}
|
938 |
$desktop_target = "_blank";
|
939 |
$mobile_target = "_blank";
|
940 |
+
$url = esc_url($url);
|
941 |
} else if($channel_type == "slack") {
|
942 |
/* setting for slack */
|
943 |
$url = esc_url($val);
|
954 |
$is_required = (isset($field_setting['is_required']) && $field_setting['is_required'] == "yes")?"is-required":"";
|
955 |
$placeholder = isset($field_setting['placeholder'])?$field_setting['placeholder']:"Enter your name";
|
956 |
$input_fields .= "<div class='chaty-input-area'>";
|
957 |
+
$input_fields .= "<input autocomplete='off' class='chaty-input-field chaty-field-name {$is_required}' name='name' type='text' id='chaty-name' placeholder='".esc_attr($placeholder)."' />";
|
958 |
$input_fields .= "</div>";
|
959 |
}
|
960 |
$field_setting = $value['email'];
|
962 |
$is_required = (isset($field_setting['is_required']) && $field_setting['is_required'] == "yes")?"is-required":"";
|
963 |
$placeholder = isset($field_setting['placeholder'])?$field_setting['placeholder']:"Enter your email address";
|
964 |
$input_fields .= "<div class='chaty-input-area'>";
|
965 |
+
$input_fields .= "<input autocomplete='off' class='chaty-input-field chaty-field-email {$is_required}' name='email' type='email' id='chaty-name' placeholder='".esc_attr($placeholder)."' />";
|
966 |
$input_fields .= "</div>";
|
967 |
}
|
968 |
$field_setting = $value['phone'];
|
970 |
$is_required = (isset($field_setting['is_required']) && $field_setting['is_required'] == "yes")?"is-required":"";
|
971 |
$placeholder = isset($field_setting['placeholder'])?$field_setting['placeholder']:"Enter your phone number";
|
972 |
$input_fields .= "<div class='chaty-input-area'>";
|
973 |
+
$input_fields .= "<input autocomplete='off' class='chaty-input-field chaty-field-phone {$is_required}' name='name' type='text' id='chaty-phone' placeholder='".esc_attr($placeholder)."' />";
|
974 |
$input_fields .= "</div>";
|
975 |
}
|
976 |
$field_setting = $value['message'];
|
978 |
$is_required = (isset($field_setting['is_required']) && $field_setting['is_required'] == "yes")?"is-required":"";
|
979 |
$placeholder = isset($field_setting['placeholder'])?$field_setting['placeholder']:"Enter your message";
|
980 |
$input_fields .= "<div class='chaty-input-area'>";
|
981 |
+
$input_fields .= "<textarea autocomplete='off' class='chaty-input-field chaty-field-message {$is_required}' name='name' id='chaty-name' placeholder='".esc_attr($placeholder)."' ></textarea>";
|
982 |
$input_fields .= "</div>";
|
983 |
}
|
984 |
}
|
985 |
if(!empty($input_fields)) {
|
986 |
$has_custom_popup = 1;
|
987 |
+
$button_text = isset($value['button_text']) && !empty($value['button_text'])?esc_attr($value['button_text']):"Submit";
|
988 |
+
$button_bg_color = isset($value['button_bg_color']) && !empty($value['button_bg_color'])?esc_attr($value['button_bg_color']):"#A886CD";
|
989 |
+
$button_text_color = isset($value['button_text_color']) && !empty($value['button_text_color'])?esc_attr($value['button_text_color']):"#ffffff";
|
990 |
$contact_form_title = isset($value['contact_form_title'])?$value['contact_form_title']:"";
|
991 |
$popup_html = "<div class='chaty-contact-form'>";
|
992 |
$popup_html .= "<form action='#' method='post' class='chaty-contact-form-data' autocomplete='off'>";
|
999 |
$popup_html .= "<input type='hidden' class='chaty-field-nonce' name='nonce' value='{$nonce}' />";
|
1000 |
$popup_html .= "</div>";
|
1001 |
$popup_html .= "<div class='chaty-contact-footer'>";
|
1002 |
+
$popup_html .= "<button style='color: ".esc_attr($button_text_color)."; background: ".esc_attr($button_bg_color)."' type='submit' class='chaty-contact-submit-btn' data-text='".esc_attr($button_text)."'>".esc_attr($button_text)."</div>";
|
1003 |
$popup_html .= "</div>";
|
1004 |
$popup_html .= "</form>";
|
1005 |
$popup_html .= "</div>";
|
1033 |
$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>';
|
1034 |
|
1035 |
$rgb_color = $this->getRGBColor($value['bg_color']);
|
1036 |
+
|
1037 |
+
/* $url = esc_url($url);
|
1038 |
+
$mobile_url = esc_url($mobile_url);*/
|
1039 |
$data = array(
|
1040 |
'val' => esc_attr__(wp_unslash($val)),
|
1041 |
'default_icon' => $svg,
|
js/cht-front-script.js
CHANGED
@@ -724,6 +724,12 @@
|
|
724 |
var htmlString = "<div data-index='"+thisIndex+"' id='chaty-inline-popup' class='chaty-inline-popup chaty-popup-form "+jQuery(this).data("channel")+"-channel'>";
|
725 |
htmlString += jQuery(this).attr("data-popup");
|
726 |
htmlString + "</div>";
|
|
|
|
|
|
|
|
|
|
|
|
|
727 |
jQuery("body").append(htmlString);
|
728 |
|
729 |
if(jQuery(".chaty-inline-popup .default-value").length) {
|
@@ -733,16 +739,22 @@
|
|
733 |
thisHref = thisHref.replace(/{title}/g, jQuery("title").text());
|
734 |
thisHref = thisHref.replace(/{url}/g, window.location.href);
|
735 |
|
736 |
-
jQuery(".chaty-whatsapp-msg").val(jQuery(".chaty-inline-popup .default-value").
|
737 |
-
jQuery(".chaty-whatsapp-phone").val(jQuery(".chaty-inline-popup .default-msg-phone").
|
738 |
|
739 |
-
chatyHtml = jQuery(".chaty-inline-popup .default-msg-value").
|
740 |
chatyHtml = chatyHtml.replace(/{title}/g, jQuery("title").text());
|
741 |
chatyHtml = chatyHtml.replace(/{url}/g, window.location.href);
|
742 |
|
|
|
|
|
|
|
|
|
|
|
743 |
jQuery(".chaty-whatsapp-message").html(chatyHtml);
|
744 |
}
|
745 |
jQuery(".chaty-widget").addClass("active");
|
|
|
746 |
setTimeout(function(){
|
747 |
jQuery("#chaty-inline-popup").addClass("active");
|
748 |
}, 150);
|
@@ -751,7 +763,7 @@
|
|
751 |
}
|
752 |
}
|
753 |
if(isChatyInMobile) {
|
754 |
-
jQuery(".whatsapp-chaty-form").
|
755 |
}
|
756 |
});
|
757 |
|
@@ -774,11 +786,11 @@
|
|
774 |
setTimeout(function(){
|
775 |
jQuery(".chaty-widget.hide-block").removeClass("active");
|
776 |
}, 250);
|
777 |
-
if(jQuery("body").hasClass("chaty-in-mobile")) {
|
778 |
e.preventDefault();
|
779 |
window.location = "https://wa.me/"+jQuery(this).find(".chaty-whatsapp-phone").val()+"?text="+jQuery(this).find(".chaty-whatsapp-msg").val();
|
780 |
return false;
|
781 |
-
}
|
782 |
});
|
783 |
|
784 |
|
724 |
var htmlString = "<div data-index='"+thisIndex+"' id='chaty-inline-popup' class='chaty-inline-popup chaty-popup-form "+jQuery(this).data("channel")+"-channel'>";
|
725 |
htmlString += jQuery(this).attr("data-popup");
|
726 |
htmlString + "</div>";
|
727 |
+
|
728 |
+
if(htmlString != "") {
|
729 |
+
var htmlString = jQuery(htmlString);
|
730 |
+
htmlString.find('script').remove();
|
731 |
+
}
|
732 |
+
|
733 |
jQuery("body").append(htmlString);
|
734 |
|
735 |
if(jQuery(".chaty-inline-popup .default-value").length) {
|
739 |
thisHref = thisHref.replace(/{title}/g, jQuery("title").text());
|
740 |
thisHref = thisHref.replace(/{url}/g, window.location.href);
|
741 |
|
742 |
+
jQuery(".chaty-whatsapp-msg").val(jQuery(".chaty-inline-popup .default-value").val());
|
743 |
+
jQuery(".chaty-whatsapp-phone").val(jQuery(".chaty-inline-popup .default-msg-phone").val());
|
744 |
|
745 |
+
chatyHtml = jQuery(".chaty-inline-popup .default-msg-value").val();
|
746 |
chatyHtml = chatyHtml.replace(/{title}/g, jQuery("title").text());
|
747 |
chatyHtml = chatyHtml.replace(/{url}/g, window.location.href);
|
748 |
|
749 |
+
if(chatyHtml != "") {
|
750 |
+
var chatyHtml = jQuery(chatyHtml);
|
751 |
+
chatyHtml.find('script').remove();
|
752 |
+
}
|
753 |
+
|
754 |
jQuery(".chaty-whatsapp-message").html(chatyHtml);
|
755 |
}
|
756 |
jQuery(".chaty-widget").addClass("active");
|
757 |
+
jQuery(".whatsapp-chaty-form").attr("action", "https://wa.me/"+jQuery(".chaty-inline-popup .default-msg-phone").val());
|
758 |
setTimeout(function(){
|
759 |
jQuery("#chaty-inline-popup").addClass("active");
|
760 |
}, 150);
|
763 |
}
|
764 |
}
|
765 |
if(isChatyInMobile) {
|
766 |
+
jQuery(".whatsapp-chaty-form").attr("target", "");
|
767 |
}
|
768 |
});
|
769 |
|
786 |
setTimeout(function(){
|
787 |
jQuery(".chaty-widget.hide-block").removeClass("active");
|
788 |
}, 250);
|
789 |
+
/*if(jQuery("body").hasClass("chaty-in-mobile")) {
|
790 |
e.preventDefault();
|
791 |
window.location = "https://wa.me/"+jQuery(this).find(".chaty-whatsapp-phone").val()+"?text="+jQuery(this).find(".chaty-whatsapp-msg").val();
|
792 |
return false;
|
793 |
+
}*/
|
794 |
});
|
795 |
|
796 |
|
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 close_chaty(){jQuery("#chaty-inline-popup").hasClass("active")&&jQuery("#chaty-inline-popup .close-chaty-popup").trigger("click"),jQuery(".chaty-widget.chaty-widget-show").length&&jQuery(".chaty-widget.chaty-widget-show").each(function(){jQuery(this).find(".chaty-close-settings").length&&jQuery(this).find(".chaty-close-settings").trigger("click")})}!function(t){var e={};function i(s){if(e[s])return e[s].exports;var a=e[s]={i:s,l:!1,exports:{}};return t[s].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=t,i.c=e,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:s})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=10)}({10:function(t,e,i){i(11),t.exports=i(12)},11:function(t,e){!function(t){var e,i=0,s=".i-trigger .chaty-widget-i .svg, .i-trigger .chaty-widget-i .widget-img, .i-trigger .chaty-widget-i .facustom-icon",a=!1;function c(t){return r()&&"click"==chaty_settings.object_settings.click_setting?"none":""}(/(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)))&&(a=!0);new Date;function n(){jQuery(".chaty-widget").hasClass("one_widget")&&jQuery(".chaty-widget").removeClass("chaty-widget-show")}function o(t){var e="@-webkit-keyframes chaty-animation-shockwave { 0% { transform: scale(1); box-shadow: 0 0 2px rgba("+t+", 0.30), inset 0 0 1px rgba("+t+", 0.30); } 95% { box-shadow: 0 0 50px rgba("+t+", 0), inset 0 0 30px rgba("+t+", 0); } 100% { transform: scale(2.25); } } @keyframes chaty-animation-shockwave { 0% { transform: scale(1); box-shadow: 0 0 2px rgba("+t+", 0.30), inset 0 0 1px rgba("+t+", 0.30); } 95% { box-shadow: 0 0 50px rgba("+t+", 0), inset 0 0 30px rgba("+t+", 0); } 100% { transform: scale(2.25); } }";jQuery("#chaty-advance-css").length||jQuery("body").append("<div id='chaty-advance-css'></div>"),jQuery("#chaty-advance-css").append("<style>"+e+"</style>")}function r(){var t=g("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 g(t){var e=u("chaty_settings"),i=[];if(null!=e&&""!=e&&(i=JSON.parse(e)),i.length>0)for(var s=0;s<i.length;s++)if(i[s].k==t)return i[s].v;return null}function l(t){var e=u("chaty_settings"),i=[];null!=e&&""!=e&&(i=JSON.parse(e));var s=!1;if(i.length>0)for(var a=0;a<i.length;a++)i[a].k==t&&(s=!0,i[a].v=new Date);s||i.push({k:t,v:new Date}),y("chaty_settings",e=JSON.stringify(i),"7")}function h(t){var e=g(t);if(null!=e&&""!=e){e=new Date(e);var i=Math.abs(new Date-e);return Math.floor(i/864e5)>=1}return!0}function d(){var t=u("chaty_settings"),e=[];null!=t&&""!=t&&(e=JSON.parse(t));var i=!1;if(e.length>0)for(var s=0;s<e.length;s++)"cta"==e[s].k&&(i=!0,e[s].v=new Date);i||e.push({k:"cta",v:new Date}),y("chaty_settings",t=JSON.stringify(e),"7")}function y(t,e,i){var s="";if(i){var a=new Date;a.setTime(a.getTime()+24*i*60*60*1e3),s="; expires="+a.toUTCString()}document.cookie=t+"="+(e||"")+s+"; path=/"}function u(t){for(var e=t+"=",i=document.cookie.split(";"),s=0;s<i.length;s++){for(var a=i[s];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(e))return a.substring(e.length,a.length)}return null}function w(){l("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,h("chaty-animation")||(chaty_settings.object_settings.animation_class=""),""!=chaty_settings.object_settings.animation_class&&("sheen"!=chaty_settings.object_settings.animation_class?t>1?jQuery(s).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now"):1==t&&(s=".chaty-main-widget .svg, .chaty-main-widget img, .chaty-main-widget .facustom-icon",jQuery(s).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),jQuery(s).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")):(s=".i-trigger .chaty-widget-i .wrap-svg",jQuery(".i-trigger .chaty-widget-i .wrap-svg").length,jQuery(s).removeClass("chaty-animation-sheen").removeClass("start-now"),jQuery(s).addClass("chaty-animation-sheen").addClass("start-now"))),"open"==chaty_settings.object_settings.display_state&&("no"==chaty_settings.object_settings.has_close_button?t>1&&(p(),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&&(p(),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 p(){l("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(){a?jQuery("body").addClass("chaty-in-mobile"):jQuery("body").addClass("chaty-in-desktop"),c(),token="",jQuery(document).ready(function(){"true"==(e=chaty_settings).object_settings.active&&function(e,i){var s=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,l="",d=e.object_settings.social;if(Object.keys(d).length>=1&&(l='<div class="chaty-widget hide-widget '+i+" "+s+' " style="display:block; '+a+'" dir="ltr">',l+='<div class="chaty-widget-is" id="transition_disabled">'),l+=function(e){var i="",s=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"==++s)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&&h("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+'" data-rgb="'+e.object_settings.social[t].rbg_color+'" 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>",i+=socialString}),i}(e),d=e.object_settings.social,Object.keys(d).length>=1){l+="</div>",l+='<div class="i-trigger">';var y=c(),u=current_url=window.location.origin;if(u=(u=u.replace("https://","")).replace("http://",""),""!=g&&"none"!=y);else"no-tooltip";"click"!=chaty_settings.object_settings.click_setting&&!0,l+='<div class="chaty-widget-i chaty-close-settings i-trigger-open '+!0+' ">',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">.sts1{fill:#FFFFFF;} .sts2{fill:none;stroke:#808080;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}</style><g><circle cx="-469.8" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="sts1" d="M-459.5,523.5H-482c-2.1,0-3.7,1.7-3.7,3.7v13.1c0,2.1,1.7,3.7,3.7,3.7h19.3l5.4,5.4c0.2,0.2,0.4,0.2,0.7,0.2c0.2,0,0.2,0,0.4,0c0.4-0.2,0.6-0.6,0.6-0.9v-21.5C-455.8,525.2-457.5,523.5-459.5,523.5z"/><path class="sts2" d="M-476.5,537.3c2.5,1.1,8.5,2.1,13-2.7"/><path class="sts2" d="M-460.8,534.5c-0.1-1.2-0.8-3.4-3.3-2.8"/></svg>';case"chat-bubble":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496.9 507.1 54 54" style="enable-background:new -496.9 507.1 54 54;" xml:space="preserve"><style type="text/css">.sts1{fill:#FFFFFF;}</style><g><circle cx="-469.9" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="sts1" d="M-472.6,522.1h5.3c3,0,6,1.2,8.1,3.4c2.1,2.1,3.4,5.1,3.4,8.1c0,6-4.6,11-10.6,11.5v4.4c0,0.4-0.2,0.7-0.5,0.9 c-0.2,0-0.2,0-0.4,0c-0.2,0-0.5-0.2-0.7-0.4l-4.6-5c-3,0-6-1.2-8.1-3.4s-3.4-5.1-3.4-8.1C-484.1,527.2-478.9,522.1-472.6,522.1z M-462.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-464.6,534.6-463.9,535.3-462.9,535.3z M-469.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-471.7,534.6-471,535.3-469.9,535.3z M-477,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-478.8,534.6-478.1,535.3-477,535.3z"/></svg>';case"chat-db":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.1 54 54" style="enable-background:new -496 507.1 54 54;" xml:space="preserve"><style type="text/css">.sts1{fill:#FFFFFF;}</style><g><circle cx="-469" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="sts1" d="M-464.6,527.7h-15.6c-1.9,0-3.5,1.6-3.5,3.5v10.4c0,1.9,1.6,3.5,3.5,3.5h12.6l5,5c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18.2C-461.1,529.3-462.7,527.7-464.6,527.7z"/><path class="sts1" d="M-459.4,522.5H-475c-1.9,0-3.5,1.6-3.5,3.5h13.9c2.9,0,5.2,2.3,5.2,5.2v11.6l1.9,1.9c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18C-455.9,524.1-457.5,522.5-459.4,522.5z"/></svg>';default:return'<svg version="1.1" 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">.sts1 {fill: #FFFFFF;}.st0{fill: #808080;}</style><g><circle cx="-469" cy="534.7" r="27" fill="'+t.object_settings.color+'"/></g><path class="sts1" d="M-459.9,523.7h-20.3c-1.9,0-3.4,1.5-3.4,3.4v15.3c0,1.9,1.5,3.4,3.4,3.4h11.4l5.9,4.9c0.2,0.2,0.3,0.2,0.5,0.2 h0.3c0.3-0.2,0.5-0.5,0.5-0.8v-4.2h1.7c1.9,0,3.4-1.5,3.4-3.4v-15.3C-456.5,525.2-458,523.7-459.9,523.7z"/><path class="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(),""!=g&&"none"!=y&&(l+=' <div class="chaty-widget-i-title true"> ',l+=g,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===i.length&&!e.object_settings.isPRO&&(l+=""),l+="</div>"}t("body").append(l)}(e,token),function(){var i=t(".chaty-widget"),s=e.object_settings.widget_size?e.object_settings.widget_size:54,a=+e.object_settings.widget_size+8;function o(){i.position().top;var t=i.find(".chaty-widget-is .chaty-widget-i").length;if((t=jQuery("body").hasClass("chaty-in-desktop")?i.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:i.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length)*a>jQuery(window).height()-(chaty_settings.object_settings.widget_size+8)){var e=Math.round(Math.sqrt(t)),s=Math.ceil(Math.sqrt(t));i.find(".chaty-widget-is").css({height:s*a,width:e*a}),g(s),i.find("span:not(.cht-pending-message)").css({height:s*a,width:e*a}),g(s),i.find("img").css({height:s*a,width:e*a}),g(s)}else g()}function r(){"left"===e.object_settings.position&&i.addClass("chaty-widget-is-right"),"custom"===e.object_settings.position&&"left"===e.object_settings.pos_side&&i.addClass("chaty-widget-is-right")}function g(t){var e;e=jQuery("body").hasClass("chaty-in-desktop")?i.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:i.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length,i.find(".chaty-widget-i").css({height:s+"px",width:s+"px"}),i.find("img").css({height:s+"px",width:s+"px"}),i.find("span:not(.cht-pending-message)").css({height:s+"px",width:s+"px"}),i.find(".chaty-widget-is").css({top:"-"+100*e+"%"}),i.find(".chaty-widget-is").height(e*(parseInt(s)+8)),i.find(".chaty-widget-is").width(parseInt(s)+8),"horizontal"==chaty_settings.object_settings.mode?(i.find(".chaty-widget-is").css({top:"0"}),i.find(".chaty-widget-is").width(e*(parseInt(s)+8)),i.find(".chaty-widget-is").height(parseInt(s)+8)):(i.find(".chaty-widget-is").height(e*(parseInt(s)+8)),i.find(".chaty-widget-is").width(parseInt(s)+8))}jQuery(".open-it-by-default").length&&jQuery(".open-it-by-default").trigger("click"),r(),o(),jQuery(window).resize(function(){o(),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").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(e){e.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(i.removeClass("chaty-widget-show"),i.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(e){t(".i-trigger-open").addClass("active_clos"),e.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(i.removeClass("chaty-widget-show"),i.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?i.find(".i-trigger-open").mouseenter(function(e){e.stopPropagation(),n(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||i.hasClass("one_widget")||(r(),t(i).hasClass("chaty-widget-show")||(i.addClass("chaty-widget-show"),i.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(".i-trigger").hasClass("one-widget")||(jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery("body .chaty-widget-i-title.true").remove()))}):i.find(".i-trigger-open").click(function(e){e.stopPropagation(),p(),n(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||i.hasClass("one_widget")||(r(),t(i).hasClass("chaty-widget-show")||(i.addClass("chaty-widget-show"),i.removeClass("none-widget-show"))),n(),"click"==chaty_settings.object_settings.click_setting&&(jQuery(".i-trigger").hasClass("one-widget")||(jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery("body .chaty-widget-i-title.true").remove())),jQuery(".cht-pending-message").remove()}),t(".one_widget").on("click",function(){p(),jQuery(".cht-pending-message").remove()}),i.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")||i.hasClass("one_widget")||(r(),t(i).hasClass("chaty-widget-show")||(i.addClass("chaty-widget-show"),i.removeClass("none-widget-show"))),p()}),i.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()}),i.find(".chaty-widget-is").mouseleave(function(){t(".i-trigger-open").removeClass("active_clos"),t(".chaty-widget-i.facebook").hasClass("active")}),1===Object.keys(e.object_settings.social).length&&i.find(".i-trigger-open").on("touchstart",function(e){"use strict";t(this).find(".chaty-widget-i").toggleClass("hover")}),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(document).on("click",".chaty-widget-i",function(){jQuery(".i-trigger").hasClass("one-widget")||(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(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").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-title11").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 s=0;0==(s=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==s?(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)),r()?"all_time"!=chaty_settings.object_settings.click_setting?(jQuery(".i-trigger").addClass("show-channel"),jQuery(".i-trigger").attr("data-title",jQuery(".chaty-widget-is .chaty-widget-i-title p").html())):jQuery(".i-trigger .chaty-widget-i-title p").html(chaty_settings.object_settings.cta):"all_time"!=chaty_settings.object_settings.click_setting&&(jQuery(".i-trigger").attr("data-title",jQuery(".chaty-widget-is .chaty-widget-i-title p").html()),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(".i-trigger").hasClass("one-widget")||(jQuery(".chaty-widget-i-title").remove(),jQuery(".chaty-widget").addClass("hide-tooltip-arrow")),jQuery(".chaty-widget").removeClass("chaty-widget-show")),jQuery(".i-trigger").hasClass("one-widget")||d()}),jQuery(".chaty-widget").removeClass("chaty-widget-show"),jQuery(".i-trigger").addClass("one-widget"),r(),o(jQuery(".i-trigger .chaty-widget-i:first").data("rgb"))):(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(),jQuery(".i-trigger").hasClass("one-widget")||(d(),jQuery(".i-trigger").hasClass("one-widget")||jQuery(".i-trigger .chaty-widget-i-title").addClass("hide-it")),p()}),"open"==chaty_settings.object_settings.display_state&&t(".i-trigger-open").addClass("no-tooltip"),o(chaty_settings.object_settings.rgb_color))),jQuery(document).on("click",".i-trigger.one-widget",function(){d()});var a,g,l,_=0;if(1==parseInt(chaty_settings.object_settings.display_conditions)){var j=chaty_settings.object_settings.display_rules;if(j.length>0){var m=new Date;m.setHours(m.getHours()+chaty_settings.object_settings.gmt);for(var b=m.getUTCHours(),f=m.getUTCMinutes(),v=m.getUTCDay(),Q=0;Q<j.length;Q++){var C=0,k=0;-1==j[Q].days?k=1:j[Q].days>=0&&j[Q].days<=6?j[Q].days==v&&(k=1):7==j[Q].days?v>=0&&v<=4&&(k=1):8==j[Q].days?v>=1&&v<=5&&(k=1):9==j[Q].days&&(5!=v&&6!=v||(k=1)),1==k&&(b>j[Q].start_hours&&b<j[Q].end_hours?C=1:b==j[Q].start_hours&&b<j[Q].end_hours?f>=j[Q].start_min&&(C=1):b>j[Q].start_hours&&b==j[Q].end_hours?f<=j[Q].end_min&&(C=1):b==j[Q].start_hours&&b==j[Q].end_hours&&f>=j[Q].start_min&&f<=j[Q].end_min&&(C=1),1==C&&f>=j[Q].start_min&&f<=j[Q].end_min&&1),1==C&&1==k&&(_=1),1==_&&(Q=j.length+1)}}else _=1}else _=1;if(1==s&&(""!=c()&&("click"==chaty_settings.object_settings.click_setting&&(jQuery(".i-trigger").hasClass("one-widget")||(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>"})),r()||("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(){if(jQuery(".cht-pending-message").remove(),"all_time"!=chaty_settings.object_settings.click_setting&&jQuery(this).hasClass("one-widget")){jQuery(this).addClass("show-channel");var t=jQuery(this).data("title");jQuery(this).find(".chaty-widget-i-title").find("p").html(t)}})),jQuery(document).on("click",".i-trigger.one-widget",function(){if("all_time"!=chaty_settings.object_settings.click_setting&&jQuery(this).hasClass("one-widget")){jQuery(this).addClass("show-channel");var t=jQuery(this).data("title");jQuery(this).find(".chaty-widget-i-title").find("p").html(t)}}),jQuery("chaty-main-widget").mouseenter(function(){jQuery(".i-trigger").hasClass("one-widget")||d()}),1==_)if(h("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"),w();else{if(jQuery(".chaty-widget").addClass("hide-widget"),"yes"==chaty_settings.object_settings.time_trigger&&(parseInt(chaty_settings.object_settings.trigger_time)>0?setTimeout(function(){i||(jQuery(".chaty-widget").removeClass("hide-widget"),w())},1e3*parseInt(chaty_settings.object_settings.trigger_time)):(jQuery(".chaty-widget").removeClass("hide-widget"),w())),"yes"==chaty_settings.object_settings.exit_intent){a=document,g="mouseout",l=function(t){null==t.toElement&&null==t.relatedTarget&&null==u("cta_exit_intent_shown")&&(y("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"),w(),"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"==e.object_settings.pos_side?jQuery(".chaty-widget").addClass("left-position"):jQuery(".chaty-widget").addClass("right-position")),p(),setTimeout(function(){jQuery(".chaty-animation-widget").addClass("active")},100),setTimeout(function(){jQuery(".chaty-nav").remove()},2500))},a.addEventListener?a.addEventListener(g,l,!1):a.attachEvent&&a.attachEvent("on"+g,l)}"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"),w())}}):(jQuery(".chaty-widget").removeClass("hide-widget"),w()))}else jQuery(".chaty-widget").removeClass("hide-widget"),w();else jQuery(".chaty-widget").addClass("hide-widget");jQuery(".chaty-widget-i-title").length&&jQuery(".chaty-widget-i-title").each(function(){""==jQuery.trim(jQuery(this).text())&&(jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery(this).remove())}),jQuery(".chaty-widget-i.true.chaty-widget-i-title").length||""==jQuery(".chaty-widget-i-title").text()&&jQuery(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery(".i-trigger-open .chaty-widget-i-title").length?""==jQuery(".i-trigger-open .chaty-widget-i-title").text()&&jQuery(".i-trigger-open").addClass("hide-chaty-arrow"):jQuery(".i-trigger .i-trigger-open").addClass("hide-chaty-arrow")}),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"),w(),!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 i="<div data-index='"+e+"' id='chaty-inline-popup' class='chaty-inline-popup chaty-popup-form "+jQuery(this).data("channel")+"-channel'>";i+=jQuery(this).attr("data-popup"),jQuery("body").append(i),jQuery(".chaty-inline-popup .default-value").length&&(thisHref=jQuery(".chaty-inline-popup .default-value").text(),thisHref=decodeURI(thisHref),thisHref=thisHref.replace(/{title}/g,jQuery("title").text()),thisHref=thisHref.replace(/{url}/g,window.location.href),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()),chatyHtml=jQuery(".chaty-inline-popup .default-msg-value").html(),chatyHtml=chatyHtml.replace(/{title}/g,jQuery("title").text()),chatyHtml=chatyHtml.replace(/{url}/g,window.location.href),jQuery(".chaty-whatsapp-message").html(chatyHtml)),jQuery(".chaty-widget").addClass("active"),setTimeout(function(){jQuery("#chaty-inline-popup").addClass("active")},150),jQuery("body").hasClass("chaty-in-mobile")||jQuery(".chaty-whatsapp-msg").focus()}a&&jQuery(".whatsapp-chaty-form").prop("target","")}),jQuery(document).on("click",".close-chaty-popup, .close-chaty-box",function(){jQuery(this).hasClass("is-whatsapp-btn")&&l("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){if(l("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("body").hasClass("chaty-in-mobile"))return t.preventDefault(),window.location="https://wa.me/"+jQuery(this).find(".chaty-whatsapp-phone").val()+"?text="+jQuery(this).find(".chaty-whatsapp-msg").val(),!1}),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 i=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:i.find(".chaty-field-name").length?i.find(".chaty-field-name").val():"",email:i.find(".chaty-field-email").length?i.find(".chaty-field-email").val():"",phone:i.find(".chaty-field-phone").length?i.find(".chaty-field-phone").val():"",message:i.find(".chaty-field-message").length?i.find(".chaty-field-message").val():"",nonce:i.find(".chaty-field-nonce").length?i.find(".chaty-field-nonce").val():"",channel:i.find(".chaty-field-channel").length?i.find(".chaty-field-channel").val():"",widget:i.find(".chaty-field-widget").length?i.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 close_chaty(){jQuery("#chaty-inline-popup").hasClass("active")&&jQuery("#chaty-inline-popup .close-chaty-popup").trigger("click"),jQuery(".chaty-widget.chaty-widget-show").length&&jQuery(".chaty-widget.chaty-widget-show").each(function(){jQuery(this).find(".chaty-close-settings").length&&jQuery(this).find(".chaty-close-settings").trigger("click")})}!function(t){var e={};function i(s){if(e[s])return e[s].exports;var a=e[s]={i:s,l:!1,exports:{}};return t[s].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=t,i.c=e,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:s})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=10)}({10:function(t,e,i){i(11),t.exports=i(12)},11:function(t,e){!function(t){var e,i=0,s=".i-trigger .chaty-widget-i .svg, .i-trigger .chaty-widget-i .widget-img, .i-trigger .chaty-widget-i .facustom-icon",a=!1;function c(t){return r()&&"click"==chaty_settings.object_settings.click_setting?"none":""}(/(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)))&&(a=!0);new Date;function n(){jQuery(".chaty-widget").hasClass("one_widget")&&jQuery(".chaty-widget").removeClass("chaty-widget-show")}function o(t){var e="@-webkit-keyframes chaty-animation-shockwave { 0% { transform: scale(1); box-shadow: 0 0 2px rgba("+t+", 0.30), inset 0 0 1px rgba("+t+", 0.30); } 95% { box-shadow: 0 0 50px rgba("+t+", 0), inset 0 0 30px rgba("+t+", 0); } 100% { transform: scale(2.25); } } @keyframes chaty-animation-shockwave { 0% { transform: scale(1); box-shadow: 0 0 2px rgba("+t+", 0.30), inset 0 0 1px rgba("+t+", 0.30); } 95% { box-shadow: 0 0 50px rgba("+t+", 0), inset 0 0 30px rgba("+t+", 0); } 100% { transform: scale(2.25); } }";jQuery("#chaty-advance-css").length||jQuery("body").append("<div id='chaty-advance-css'></div>"),jQuery("#chaty-advance-css").append("<style>"+e+"</style>")}function r(){var t=g("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 g(t){var e=u("chaty_settings"),i=[];if(null!=e&&""!=e&&(i=JSON.parse(e)),i.length>0)for(var s=0;s<i.length;s++)if(i[s].k==t)return i[s].v;return null}function l(t){var e=u("chaty_settings"),i=[];null!=e&&""!=e&&(i=JSON.parse(e));var s=!1;if(i.length>0)for(var a=0;a<i.length;a++)i[a].k==t&&(s=!0,i[a].v=new Date);s||i.push({k:t,v:new Date}),y("chaty_settings",e=JSON.stringify(i),"7")}function h(t){var e=g(t);if(null!=e&&""!=e){e=new Date(e);var i=Math.abs(new Date-e);return Math.floor(i/864e5)>=1}return!0}function d(){var t=u("chaty_settings"),e=[];null!=t&&""!=t&&(e=JSON.parse(t));var i=!1;if(e.length>0)for(var s=0;s<e.length;s++)"cta"==e[s].k&&(i=!0,e[s].v=new Date);i||e.push({k:"cta",v:new Date}),y("chaty_settings",t=JSON.stringify(e),"7")}function y(t,e,i){var s="";if(i){var a=new Date;a.setTime(a.getTime()+24*i*60*60*1e3),s="; expires="+a.toUTCString()}document.cookie=t+"="+(e||"")+s+"; path=/"}function u(t){for(var e=t+"=",i=document.cookie.split(";"),s=0;s<i.length;s++){for(var a=i[s];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(e))return a.substring(e.length,a.length)}return null}function w(){l("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,h("chaty-animation")||(chaty_settings.object_settings.animation_class=""),""!=chaty_settings.object_settings.animation_class&&("sheen"!=chaty_settings.object_settings.animation_class?t>1?jQuery(s).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now"):1==t&&(s=".chaty-main-widget .svg, .chaty-main-widget img, .chaty-main-widget .facustom-icon",jQuery(s).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),jQuery(s).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")):(s=".i-trigger .chaty-widget-i .wrap-svg",jQuery(".i-trigger .chaty-widget-i .wrap-svg").length,jQuery(s).removeClass("chaty-animation-sheen").removeClass("start-now"),jQuery(s).addClass("chaty-animation-sheen").addClass("start-now"))),"open"==chaty_settings.object_settings.display_state&&("no"==chaty_settings.object_settings.has_close_button?t>1&&(p(),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&&(p(),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 p(){l("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(){a?jQuery("body").addClass("chaty-in-mobile"):jQuery("body").addClass("chaty-in-desktop"),c(),token="",jQuery(document).ready(function(){"true"==(e=chaty_settings).object_settings.active&&function(e,i){var s=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,l="",d=e.object_settings.social;if(Object.keys(d).length>=1&&(l='<div class="chaty-widget hide-widget '+i+" "+s+' " style="display:block; '+a+'" dir="ltr">',l+='<div class="chaty-widget-is" id="transition_disabled">'),l+=function(e){var i="",s=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"==++s)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&&h("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+'" data-rgb="'+e.object_settings.social[t].rbg_color+'" 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>",i+=socialString}),i}(e),d=e.object_settings.social,Object.keys(d).length>=1){l+="</div>",l+='<div class="i-trigger">';var y=c(),u=current_url=window.location.origin;if(u=(u=u.replace("https://","")).replace("http://",""),""!=g&&"none"!=y);else"no-tooltip";"click"!=chaty_settings.object_settings.click_setting&&!0,l+='<div class="chaty-widget-i chaty-close-settings i-trigger-open '+!0+' ">',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">.sts1{fill:#FFFFFF;} .sts2{fill:none;stroke:#808080;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}</style><g><circle cx="-469.8" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="sts1" d="M-459.5,523.5H-482c-2.1,0-3.7,1.7-3.7,3.7v13.1c0,2.1,1.7,3.7,3.7,3.7h19.3l5.4,5.4c0.2,0.2,0.4,0.2,0.7,0.2c0.2,0,0.2,0,0.4,0c0.4-0.2,0.6-0.6,0.6-0.9v-21.5C-455.8,525.2-457.5,523.5-459.5,523.5z"/><path class="sts2" d="M-476.5,537.3c2.5,1.1,8.5,2.1,13-2.7"/><path class="sts2" d="M-460.8,534.5c-0.1-1.2-0.8-3.4-3.3-2.8"/></svg>';case"chat-bubble":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496.9 507.1 54 54" style="enable-background:new -496.9 507.1 54 54;" xml:space="preserve"><style type="text/css">.sts1{fill:#FFFFFF;}</style><g><circle cx="-469.9" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="sts1" d="M-472.6,522.1h5.3c3,0,6,1.2,8.1,3.4c2.1,2.1,3.4,5.1,3.4,8.1c0,6-4.6,11-10.6,11.5v4.4c0,0.4-0.2,0.7-0.5,0.9 c-0.2,0-0.2,0-0.4,0c-0.2,0-0.5-0.2-0.7-0.4l-4.6-5c-3,0-6-1.2-8.1-3.4s-3.4-5.1-3.4-8.1C-484.1,527.2-478.9,522.1-472.6,522.1z M-462.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-464.6,534.6-463.9,535.3-462.9,535.3z M-469.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-471.7,534.6-471,535.3-469.9,535.3z M-477,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-478.8,534.6-478.1,535.3-477,535.3z"/></svg>';case"chat-db":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.1 54 54" style="enable-background:new -496 507.1 54 54;" xml:space="preserve"><style type="text/css">.sts1{fill:#FFFFFF;}</style><g><circle cx="-469" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="sts1" d="M-464.6,527.7h-15.6c-1.9,0-3.5,1.6-3.5,3.5v10.4c0,1.9,1.6,3.5,3.5,3.5h12.6l5,5c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18.2C-461.1,529.3-462.7,527.7-464.6,527.7z"/><path class="sts1" d="M-459.4,522.5H-475c-1.9,0-3.5,1.6-3.5,3.5h13.9c2.9,0,5.2,2.3,5.2,5.2v11.6l1.9,1.9c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18C-455.9,524.1-457.5,522.5-459.4,522.5z"/></svg>';default:return'<svg version="1.1" 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">.sts1 {fill: #FFFFFF;}.st0{fill: #808080;}</style><g><circle cx="-469" cy="534.7" r="27" fill="'+t.object_settings.color+'"/></g><path class="sts1" d="M-459.9,523.7h-20.3c-1.9,0-3.4,1.5-3.4,3.4v15.3c0,1.9,1.5,3.4,3.4,3.4h11.4l5.9,4.9c0.2,0.2,0.3,0.2,0.5,0.2 h0.3c0.3-0.2,0.5-0.5,0.5-0.8v-4.2h1.7c1.9,0,3.4-1.5,3.4-3.4v-15.3C-456.5,525.2-458,523.7-459.9,523.7z"/><path class="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(),""!=g&&"none"!=y&&(l+=' <div class="chaty-widget-i-title true"> ',l+=g,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===i.length&&!e.object_settings.isPRO&&(l+=""),l+="</div>"}t("body").append(l)}(e,token),function(){var i=t(".chaty-widget"),s=e.object_settings.widget_size?e.object_settings.widget_size:54,a=+e.object_settings.widget_size+8;function o(){i.position().top;var t=i.find(".chaty-widget-is .chaty-widget-i").length;if((t=jQuery("body").hasClass("chaty-in-desktop")?i.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:i.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length)*a>jQuery(window).height()-(chaty_settings.object_settings.widget_size+8)){var e=Math.round(Math.sqrt(t)),s=Math.ceil(Math.sqrt(t));i.find(".chaty-widget-is").css({height:s*a,width:e*a}),g(s),i.find("span:not(.cht-pending-message)").css({height:s*a,width:e*a}),g(s),i.find("img").css({height:s*a,width:e*a}),g(s)}else g()}function r(){"left"===e.object_settings.position&&i.addClass("chaty-widget-is-right"),"custom"===e.object_settings.position&&"left"===e.object_settings.pos_side&&i.addClass("chaty-widget-is-right")}function g(t){var e;e=jQuery("body").hasClass("chaty-in-desktop")?i.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:i.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length,i.find(".chaty-widget-i").css({height:s+"px",width:s+"px"}),i.find("img").css({height:s+"px",width:s+"px"}),i.find("span:not(.cht-pending-message)").css({height:s+"px",width:s+"px"}),i.find(".chaty-widget-is").css({top:"-"+100*e+"%"}),i.find(".chaty-widget-is").height(e*(parseInt(s)+8)),i.find(".chaty-widget-is").width(parseInt(s)+8),"horizontal"==chaty_settings.object_settings.mode?(i.find(".chaty-widget-is").css({top:"0"}),i.find(".chaty-widget-is").width(e*(parseInt(s)+8)),i.find(".chaty-widget-is").height(parseInt(s)+8)):(i.find(".chaty-widget-is").height(e*(parseInt(s)+8)),i.find(".chaty-widget-is").width(parseInt(s)+8))}jQuery(".open-it-by-default").length&&jQuery(".open-it-by-default").trigger("click"),r(),o(),jQuery(window).resize(function(){o(),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").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(e){e.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(i.removeClass("chaty-widget-show"),i.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(e){t(".i-trigger-open").addClass("active_clos"),e.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(i.removeClass("chaty-widget-show"),i.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?i.find(".i-trigger-open").mouseenter(function(e){e.stopPropagation(),n(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||i.hasClass("one_widget")||(r(),t(i).hasClass("chaty-widget-show")||(i.addClass("chaty-widget-show"),i.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(".i-trigger").hasClass("one-widget")||(jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery("body .chaty-widget-i-title.true").remove()))}):i.find(".i-trigger-open").click(function(e){e.stopPropagation(),p(),n(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||i.hasClass("one_widget")||(r(),t(i).hasClass("chaty-widget-show")||(i.addClass("chaty-widget-show"),i.removeClass("none-widget-show"))),n(),"click"==chaty_settings.object_settings.click_setting&&(jQuery(".i-trigger").hasClass("one-widget")||(jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery("body .chaty-widget-i-title.true").remove())),jQuery(".cht-pending-message").remove()}),t(".one_widget").on("click",function(){p(),jQuery(".cht-pending-message").remove()}),i.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")||i.hasClass("one_widget")||(r(),t(i).hasClass("chaty-widget-show")||(i.addClass("chaty-widget-show"),i.removeClass("none-widget-show"))),p()}),i.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()}),i.find(".chaty-widget-is").mouseleave(function(){t(".i-trigger-open").removeClass("active_clos"),t(".chaty-widget-i.facebook").hasClass("active")}),1===Object.keys(e.object_settings.social).length&&i.find(".i-trigger-open").on("touchstart",function(e){"use strict";t(this).find(".chaty-widget-i").toggleClass("hover")}),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(document).on("click",".chaty-widget-i",function(){jQuery(".i-trigger").hasClass("one-widget")||(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(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").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-title11").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 s=0;0==(s=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==s?(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)),r()?"all_time"!=chaty_settings.object_settings.click_setting?(jQuery(".i-trigger").addClass("show-channel"),jQuery(".i-trigger").attr("data-title",jQuery(".chaty-widget-is .chaty-widget-i-title p").html())):jQuery(".i-trigger .chaty-widget-i-title p").html(chaty_settings.object_settings.cta):"all_time"!=chaty_settings.object_settings.click_setting&&(jQuery(".i-trigger").attr("data-title",jQuery(".chaty-widget-is .chaty-widget-i-title p").html()),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(".i-trigger").hasClass("one-widget")||(jQuery(".chaty-widget-i-title").remove(),jQuery(".chaty-widget").addClass("hide-tooltip-arrow")),jQuery(".chaty-widget").removeClass("chaty-widget-show")),jQuery(".i-trigger").hasClass("one-widget")||d()}),jQuery(".chaty-widget").removeClass("chaty-widget-show"),jQuery(".i-trigger").addClass("one-widget"),r(),o(jQuery(".i-trigger .chaty-widget-i:first").data("rgb"))):(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(),jQuery(".i-trigger").hasClass("one-widget")||(d(),jQuery(".i-trigger").hasClass("one-widget")||jQuery(".i-trigger .chaty-widget-i-title").addClass("hide-it")),p()}),"open"==chaty_settings.object_settings.display_state&&t(".i-trigger-open").addClass("no-tooltip"),o(chaty_settings.object_settings.rgb_color))),jQuery(document).on("click",".i-trigger.one-widget",function(){d()});var a,g,l,_=0;if(1==parseInt(chaty_settings.object_settings.display_conditions)){var j=chaty_settings.object_settings.display_rules;if(j.length>0){var m=new Date;m.setHours(m.getHours()+chaty_settings.object_settings.gmt);for(var b=m.getUTCHours(),f=m.getUTCMinutes(),v=m.getUTCDay(),Q=0;Q<j.length;Q++){var C=0,k=0;-1==j[Q].days?k=1:j[Q].days>=0&&j[Q].days<=6?j[Q].days==v&&(k=1):7==j[Q].days?v>=0&&v<=4&&(k=1):8==j[Q].days?v>=1&&v<=5&&(k=1):9==j[Q].days&&(5!=v&&6!=v||(k=1)),1==k&&(b>j[Q].start_hours&&b<j[Q].end_hours?C=1:b==j[Q].start_hours&&b<j[Q].end_hours?f>=j[Q].start_min&&(C=1):b>j[Q].start_hours&&b==j[Q].end_hours?f<=j[Q].end_min&&(C=1):b==j[Q].start_hours&&b==j[Q].end_hours&&f>=j[Q].start_min&&f<=j[Q].end_min&&(C=1),1==C&&f>=j[Q].start_min&&f<=j[Q].end_min&&1),1==C&&1==k&&(_=1),1==_&&(Q=j.length+1)}}else _=1}else _=1;if(1==s&&(""!=c()&&("click"==chaty_settings.object_settings.click_setting&&(jQuery(".i-trigger").hasClass("one-widget")||(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>"})),r()||("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(){if(jQuery(".cht-pending-message").remove(),"all_time"!=chaty_settings.object_settings.click_setting&&jQuery(this).hasClass("one-widget")){jQuery(this).addClass("show-channel");var t=jQuery(this).data("title");jQuery(this).find(".chaty-widget-i-title").find("p").html(t)}})),jQuery(document).on("click",".i-trigger.one-widget",function(){if("all_time"!=chaty_settings.object_settings.click_setting&&jQuery(this).hasClass("one-widget")){jQuery(this).addClass("show-channel");var t=jQuery(this).data("title");jQuery(this).find(".chaty-widget-i-title").find("p").html(t)}}),jQuery("chaty-main-widget").mouseenter(function(){jQuery(".i-trigger").hasClass("one-widget")||d()}),1==_)if(h("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"),w();else{if(jQuery(".chaty-widget").addClass("hide-widget"),"yes"==chaty_settings.object_settings.time_trigger&&(parseInt(chaty_settings.object_settings.trigger_time)>0?setTimeout(function(){i||(jQuery(".chaty-widget").removeClass("hide-widget"),w())},1e3*parseInt(chaty_settings.object_settings.trigger_time)):(jQuery(".chaty-widget").removeClass("hide-widget"),w())),"yes"==chaty_settings.object_settings.exit_intent){a=document,g="mouseout",l=function(t){null==t.toElement&&null==t.relatedTarget&&null==u("cta_exit_intent_shown")&&(y("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"),w(),"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"==e.object_settings.pos_side?jQuery(".chaty-widget").addClass("left-position"):jQuery(".chaty-widget").addClass("right-position")),p(),setTimeout(function(){jQuery(".chaty-animation-widget").addClass("active")},100),setTimeout(function(){jQuery(".chaty-nav").remove()},2500))},a.addEventListener?a.addEventListener(g,l,!1):a.attachEvent&&a.attachEvent("on"+g,l)}"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"),w())}}):(jQuery(".chaty-widget").removeClass("hide-widget"),w()))}else jQuery(".chaty-widget").removeClass("hide-widget"),w();else jQuery(".chaty-widget").addClass("hide-widget");jQuery(".chaty-widget-i-title").length&&jQuery(".chaty-widget-i-title").each(function(){""==jQuery.trim(jQuery(this).text())&&(jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery(this).remove())}),jQuery(".chaty-widget-i.true.chaty-widget-i-title").length||""==jQuery(".chaty-widget-i-title").text()&&jQuery(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery(".i-trigger-open .chaty-widget-i-title").length?""==jQuery(".i-trigger-open .chaty-widget-i-title").text()&&jQuery(".i-trigger-open").addClass("hide-chaty-arrow"):jQuery(".i-trigger .i-trigger-open").addClass("hide-chaty-arrow")}),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"),w(),!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 i="<div data-index='"+e+"' id='chaty-inline-popup' class='chaty-inline-popup chaty-popup-form "+jQuery(this).data("channel")+"-channel'>";if(""!=(i+=jQuery(this).attr("data-popup")))(i=jQuery(i)).find("script").remove();if(jQuery("body").append(i),jQuery(".chaty-inline-popup .default-value").length){if(thisHref=jQuery(".chaty-inline-popup .default-value").text(),thisHref=decodeURI(thisHref),thisHref=thisHref.replace(/{title}/g,jQuery("title").text()),thisHref=thisHref.replace(/{url}/g,window.location.href),jQuery(".chaty-whatsapp-msg").val(jQuery(".chaty-inline-popup .default-value").val()),jQuery(".chaty-whatsapp-phone").val(jQuery(".chaty-inline-popup .default-msg-phone").val()),""!=(s=(s=(s=jQuery(".chaty-inline-popup .default-msg-value").val()).replace(/{title}/g,jQuery("title").text())).replace(/{url}/g,window.location.href))){var s=jQuery(s);s.find("script").remove()}jQuery(".chaty-whatsapp-message").html(s)}jQuery(".chaty-widget").addClass("active"),jQuery(".whatsapp-chaty-form").attr("action","https://wa.me/"+jQuery(".chaty-inline-popup .default-msg-phone").val()),setTimeout(function(){jQuery("#chaty-inline-popup").addClass("active")},150),jQuery("body").hasClass("chaty-in-mobile")||jQuery(".chaty-whatsapp-msg").focus()}a&&jQuery(".whatsapp-chaty-form").attr("target","")}),jQuery(document).on("click",".close-chaty-popup, .close-chaty-box",function(){jQuery(this).hasClass("is-whatsapp-btn")&&l("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){l("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 i=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:i.find(".chaty-field-name").length?i.find(".chaty-field-name").val():"",email:i.find(".chaty-field-email").length?i.find(".chaty-field-email").val():"",phone:i.find(".chaty-field-phone").length?i.find(".chaty-field-phone").val():"",message:i.find(".chaty-field-message").length?i.find(".chaty-field-message").val():"",nonce:i.find(".chaty-field-nonce").length?i.find(".chaty-field-nonce").val():"",channel:i.find(".chaty-field-channel").length?i.find(".chaty-field-channel").val():"",widget:i.find(".chaty-field-widget").length?i.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){}});
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: galdub, tomeraharon, premio
|
|
3 |
Tags: whatsapp, whatsapp chat, facebook messenger, click to chat, chat, chat button, call now button, messenger, whatsapp button, chat icon, contact button, click to call
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 5.9
|
6 |
-
Stable tag: 2.8.
|
7 |
Plugin URI: https://premio.io/downloads/chaty/
|
8 |
|
9 |
WhatsApp chat, Facebook Messenger, Telegram, TikTok Viber, Email, Phone call, SMS, and more with customizable chat & call buttons. Chat with your visitors on WhatsApp, Facebook Messenger, and other chat channels!
|
@@ -258,6 +258,9 @@ Yes! You can even decide what chat buttons will show up on each device (desktop/
|
|
258 |
|
259 |
== Changelog ==
|
260 |
|
|
|
|
|
|
|
261 |
= 2.8.3 =
|
262 |
Bugs fixed
|
263 |
|
3 |
Tags: whatsapp, whatsapp chat, facebook messenger, click to chat, chat, chat button, call now button, messenger, whatsapp button, chat icon, contact button, click to call
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 5.9
|
6 |
+
Stable tag: 2.8.4
|
7 |
Plugin URI: https://premio.io/downloads/chaty/
|
8 |
|
9 |
WhatsApp chat, Facebook Messenger, Telegram, TikTok Viber, Email, Phone call, SMS, and more with customizable chat & call buttons. Chat with your visitors on WhatsApp, Facebook Messenger, and other chat channels!
|
258 |
|
259 |
== Changelog ==
|
260 |
|
261 |
+
= 2.8.4 =
|
262 |
+
Chaty settings security enhancement
|
263 |
+
|
264 |
= 2.8.3 =
|
265 |
Bugs fixed
|
266 |
|
views/admin/channel.php
ADDED
@@ -0,0 +1,646 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if (!defined('ABSPATH')) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
<!-- Social media setting box: start -->
|
7 |
+
<li data-id="<?php echo esc_attr($social['slug']) ?>" class="chaty-channel" data-channel="<?php echo esc_attr($channel_type) ?>" id="chaty-social-<?php echo esc_attr($social['slug']) ?>">
|
8 |
+
<div class="channels-selected__item <?php echo esc_attr(($status)?"img-active":"") ?> <?php echo esc_attr(($this->is_pro()) ? 'pro' : 'free'); ?> 1 available">
|
9 |
+
<div class="chaty-default-settings">
|
10 |
+
<div class="move-icon">
|
11 |
+
<img src="<?php echo esc_url(plugin_dir_url("")."/chaty/admin/assets/images/move-icon.png") ?>">
|
12 |
+
</div>
|
13 |
+
<div class="icon icon-md active" data-label="<?php echo esc_attr($social['title']); ?>">
|
14 |
+
<span style="" class="custom-chaty-image custom-image-<?php echo esc_attr($social['slug']) ?>" id="image_data_<?php echo esc_attr($social['slug']) ?>">
|
15 |
+
<img src="<?php echo esc_url($imageUrl) ?>" />
|
16 |
+
<span onclick="remove_chaty_image('<?php echo esc_attr($social['slug']) ?>')" class="remove-icon-img"></span>
|
17 |
+
</span>
|
18 |
+
<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']) ?>" >
|
19 |
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
20 |
+
<?php echo $svg_icon; ?>
|
21 |
+
</svg>
|
22 |
+
<span class="facustom-icon" style="background-color: <?php echo esc_attr($value['bg_color']) ?>"><i class="<?php echo esc_attr($value['fa_icon']) ?>"></i></span>
|
23 |
+
</span>
|
24 |
+
</div>
|
25 |
+
|
26 |
+
<?php if($social['slug'] != 'Contact_Us') { ?>
|
27 |
+
<!-- Social Media input -->
|
28 |
+
<?php if(($social['slug'] == "Whatsapp" || $channel_type == "Whatsapp") && !empty($value['value'])) {
|
29 |
+
$value['value'] = trim($value['value'], "+");
|
30 |
+
$value['value'] = "+".$value['value'];
|
31 |
+
} ?>
|
32 |
+
<div class="channels__input-box">
|
33 |
+
<input data-label="<?php echo esc_attr($social['title']) ?>" placeholder="<?php echo esc_attr($placeholder); ?>" type="text" class="channels__input custom-channel-<?php echo esc_attr__($channel_type) ?> <?php echo isset($social['attr'])?$social['attr']:"" ?>" name="cht_social_<?php echo esc_attr($social['slug']); ?>[value]" value="<?php echo esc_attr(wp_unslash($value['value'])); ?>" data-gramm_editor="false" id="channel_input_<?php echo esc_attr($social['slug']); ?>" />
|
34 |
+
</div>
|
35 |
+
<?php } ?>
|
36 |
+
<div class="channels__device-box">
|
37 |
+
<?php
|
38 |
+
$slug = esc_attr__($this->del_space($social['slug']));
|
39 |
+
$slug = str_replace(' ', '_', $slug);
|
40 |
+
$is_desktop = isset($value['is_desktop']) && $value['is_desktop'] == "checked" ? "checked" : '';
|
41 |
+
$is_mobile = isset($value['is_mobile']) && $value['is_mobile'] == "checked" ? "checked" : '';
|
42 |
+
?>
|
43 |
+
<!-- setting for desktop -->
|
44 |
+
<label class="channels__view" for="<?php echo esc_attr($slug); ?>Desktop">
|
45 |
+
<input type="checkbox" id="<?php echo esc_attr($slug); ?>Desktop" class="channels__view-check js-chanel-icon js-chanel-desktop" data-type="<?php echo str_replace(' ', '_', strtolower(esc_attr__($this->del_space($social['slug'])))); ?>" name="cht_social_<?php echo esc_attr($social['slug']); ?>[is_desktop]" value="checked" data-gramm_editor="false" <?php echo esc_attr($is_desktop) ?> />
|
46 |
+
<span class="channels__view-txt">Desktop</label>
|
47 |
+
</label>
|
48 |
+
|
49 |
+
<!-- setting for mobile -->
|
50 |
+
<label class="channels__view" for="<?php echo esc_attr($slug); ?>Mobile">
|
51 |
+
<input type="checkbox" id="<?php echo esc_attr($slug); ?>Mobile" class="channels__view-check js-chanel-icon js-chanel-mobile" data-type="<?php echo str_replace(' ', '_', strtolower(esc_attr__($this->del_space($social['slug'])))); ?>" name="cht_social_<?php echo esc_attr($social['slug']); ?>[is_mobile]" value="checked" data-gramm_editor="false" <?php echo esc_attr($is_mobile) ?> >
|
52 |
+
<span class="channels__view-txt">Mobile</span>
|
53 |
+
</label>
|
54 |
+
</div>
|
55 |
+
|
56 |
+
<?php if($social['slug'] == 'Contact_Us') { ?>
|
57 |
+
<div class="channels__input transparent"></div>
|
58 |
+
<?php } ?>
|
59 |
+
|
60 |
+
<?php
|
61 |
+
$close_class = "active";
|
62 |
+
if($social['slug'] == 'Contact_Us') {
|
63 |
+
$setting_status = get_option("chaty_contact_us_setting");
|
64 |
+
if($setting_status === false) {
|
65 |
+
$close_class = "";
|
66 |
+
}
|
67 |
+
}
|
68 |
+
?>
|
69 |
+
|
70 |
+
|
71 |
+
<!-- button for advance setting -->
|
72 |
+
<div class="chaty-settings <?php echo esc_attr($close_class) ?>" data-nonce="<?php echo wp_create_nonce($social['slug']."-settings") ?>" id="<?php echo esc_attr($social['slug']); ?>-close-btn" onclick="toggle_chaty_setting('<?php echo esc_attr($social['slug']); ?>')">
|
73 |
+
<a href="javascript:;"><span class="dashicons dashicons-admin-generic"></span> Settings</a>
|
74 |
+
</div>
|
75 |
+
<?php if($social['slug'] != 'Contact_Us') { ?>
|
76 |
+
|
77 |
+
<!-- example for social media -->
|
78 |
+
<div class="input-example">
|
79 |
+
<?php echo esc_attr('For example', CHT_OPT); ?>:
|
80 |
+
<span class="inline-box channel-example">
|
81 |
+
<?php if($social['slug'] == "Poptin") { ?>
|
82 |
+
<br/>
|
83 |
+
<?php } ?>
|
84 |
+
<?php echo esc_attr($placeholder); ?>
|
85 |
+
</span>
|
86 |
+
</div>
|
87 |
+
|
88 |
+
<!-- checking for extra help message for social media -->
|
89 |
+
<div class="help-section">
|
90 |
+
<?php if((isset($social['help']) && !empty($social['help'])) || isset($social['help_link'])) { ?>
|
91 |
+
<div class="viber-help">
|
92 |
+
<?php if(isset($help_link) && !empty($help_link)) { ?>
|
93 |
+
<a class="help-link" href="<?php echo esc_url($help_link) ?>" target="_blank"><?php echo esc_attr($help_title); ?></a>
|
94 |
+
<?php } else if(isset($help_text) && !empty($help_text)) { ?>
|
95 |
+
<span class="help-text"><?php echo $help_text; ?></span>
|
96 |
+
<span class="help-title"><?php echo esc_attr($help_title); ?></span>
|
97 |
+
<?php } ?>
|
98 |
+
</div>
|
99 |
+
<?php } ?>
|
100 |
+
</div>
|
101 |
+
<?php } ?>
|
102 |
+
</div>
|
103 |
+
|
104 |
+
<?php if($social['slug'] == "Whatsapp" || $social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3" || $social['slug'] == "Custom_Link_4" || $social['slug'] == "Custom_Link_5") { ?>
|
105 |
+
<div class="Whatsapp-settings advanced-settings extra-chaty-settings">
|
106 |
+
<?php $embedded_window = isset($value['embedded_window'])?$value['embedded_window']:"no"; ?>
|
107 |
+
<div class="chaty-setting-col">
|
108 |
+
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[embedded_window]" value="no" >
|
109 |
+
<label class="chaty-switch full-width chaty-embedded-window" for="whatsapp_embedded_window_<?php echo esc_attr($social['slug']); ?>">
|
110 |
+
<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") ?> >
|
111 |
+
<div class="chaty-slider round"></div>
|
112 |
+
WhatsApp Chat Popup 💬
|
113 |
+
<div class="html-tooltip top">
|
114 |
+
<span class="dashicons dashicons-editor-help"></span>
|
115 |
+
<span class="tooltip-text top">
|
116 |
+
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.
|
117 |
+
<img src="<?php echo esc_url(CHT_PLUGIN_URL) ?>/admin/assets/images/whatsapp-popup.gif" />
|
118 |
+
</span>
|
119 |
+
</div>
|
120 |
+
</label>
|
121 |
+
</div>
|
122 |
+
<!-- advance setting for Whatsapp -->
|
123 |
+
<div class="whatsapp-welcome-message <?php echo ($embedded_window=="yes")?"active":"" ?>">
|
124 |
+
<div class="chaty-setting-col">
|
125 |
+
<label style="display: block; width: 100%" for="cht_social_embedded_message_<?php echo esc_attr($social['slug']); ?>">Welcome message</label>
|
126 |
+
<div class="full-width">
|
127 |
+
<div class="full-width">
|
128 |
+
<?php $unique_id = uniqid(); ?>
|
129 |
+
<?php $embedded_message = isset($value['embedded_message'])?$value['embedded_message']:esc_html__("How can I help you? :)", "chaty"); ?>
|
130 |
+
<textarea class="chaty-setting-textarea chaty-whatsapp-setting-textarea" data-id="<?php echo esc_attr($unique_id) ?>" id="cht_social_embedded_message_<?php echo esc_attr($unique_id) ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[embedded_message]" ><?php echo $embedded_message ?></textarea>
|
131 |
+
</div>
|
132 |
+
</div>
|
133 |
+
</div>
|
134 |
+
<div class="chaty-setting-col">
|
135 |
+
<?php $is_default_open = isset($value['is_default_open'])?$value['is_default_open']:""; ?>
|
136 |
+
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[is_default_open]" value="no" >
|
137 |
+
<label class="chaty-switch" for="whatsapp_default_open_embedded_window_<?php echo esc_attr($social['slug']); ?>">
|
138 |
+
<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") ?> >
|
139 |
+
<div class="chaty-slider round"></div>
|
140 |
+
Open the window on load
|
141 |
+
<span class="icon label-tooltip" data-label="Open the WhatsApp chat popup on page load, 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>
|
142 |
+
</label>
|
143 |
+
</div>
|
144 |
+
</div>
|
145 |
+
</div>
|
146 |
+
<?php } ?>
|
147 |
+
|
148 |
+
<!-- advance setting fields: start -->
|
149 |
+
<?php $class_name = !$this->is_pro()?"not-is-pro":""; ?>
|
150 |
+
<div class="chaty-advance-settings <?php echo esc_attr($class_name); ?>" style="<?php echo (empty($close_class) && $social['slug'] == 'Contact_Us')?"display:block":""; ?>">
|
151 |
+
<!-- Settings for custom icon and color -->
|
152 |
+
<div class="chaty-setting-col">
|
153 |
+
<label>Icon Appearance</label>
|
154 |
+
<div>
|
155 |
+
<!-- input for custom color -->
|
156 |
+
<input type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[bg_color]" class="chaty-color-field" value="<?php echo esc_attr($value['bg_color']) ?>" />
|
157 |
+
|
158 |
+
<!-- button to upload custom image -->
|
159 |
+
<?php if($this->is_pro()) { ?>
|
160 |
+
<a onclick="upload_chaty_image('<?php echo esc_attr($social['slug']); ?>')" href="javascript:;" class="upload-chaty-icon"><span class="dashicons dashicons-upload"></span> Custom Image</a>
|
161 |
+
|
162 |
+
<!-- hidden input value for image -->
|
163 |
+
<input id="cht_social_image_<?php echo esc_attr($social['slug']); ?>" type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[image_id]" value="<?php echo esc_attr($imageId) ?>" />
|
164 |
+
<?php } else { ?>
|
165 |
+
<div class="pro-features upload-image">
|
166 |
+
<div class="pro-item">
|
167 |
+
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>" class="upload-chaty-icon"><span class="dashicons dashicons-upload"></span> Custom Image</a>
|
168 |
+
</div>
|
169 |
+
<div class="pro-button">
|
170 |
+
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>"><?php echo esc_attr('Upgrade to Pro', CHT_OPT);?></a>
|
171 |
+
</div>
|
172 |
+
</div>
|
173 |
+
<?php } ?>
|
174 |
+
</div>
|
175 |
+
</div>
|
176 |
+
<div class="clear clearfix"></div>
|
177 |
+
|
178 |
+
<?php if($social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3" || $social['slug'] == "4" || $social['slug'] == "Custom_Link_5") {
|
179 |
+
$channel_type = "";
|
180 |
+
if(isset($value['channel_type'])) {
|
181 |
+
$channel_type = esc_attr__(wp_unslash($value['channel_type']));
|
182 |
+
}
|
183 |
+
$socials = $this->socials;
|
184 |
+
?>
|
185 |
+
<div class="chaty-setting-col">
|
186 |
+
<label>Channel type</label>
|
187 |
+
<div>
|
188 |
+
<!-- input for custom title -->
|
189 |
+
<select class="channel-select-input" name="cht_social_<?php echo esc_attr($social['slug']); ?>[channel_type]" value="<?php echo esc_attr($value['channel_type']) ?>">
|
190 |
+
<option value="<?php echo esc_attr($social['slug']) ?>">Custom channel</option>
|
191 |
+
<?php foreach ($socials as $social_icon) {
|
192 |
+
$selected = ($social_icon['slug'] == $channel_type)?"selected":"";
|
193 |
+
if ($social_icon['slug'] != 'Custom_Link' && $social_icon['slug'] != 'Custom_Link_3' && $social_icon['slug'] != 'Custom_Link_4' && $social_icon['slug'] != 'Custom_Link_5' && $social_icon['slug'] != 'Contact_Us' && $social_icon['slug'] != 'Link') { ?>
|
194 |
+
<option <?php echo esc_attr($selected) ?> value="<?php echo esc_attr($social_icon['slug']) ?>"><?php echo esc_attr($social_icon['title']) ?></option>
|
195 |
+
<?php }
|
196 |
+
}?>
|
197 |
+
</select>
|
198 |
+
</div>
|
199 |
+
</div>
|
200 |
+
<div class="clear clearfix"></div>
|
201 |
+
<?php } ?>
|
202 |
+
|
203 |
+
<div class="chaty-setting-col">
|
204 |
+
<label>On Hover Text</label>
|
205 |
+
<div>
|
206 |
+
<input type="text" class="chaty-title" name="cht_social_<?php echo esc_attr($social['slug']); ?>[title]" value="<?php echo esc_attr($value['title']) ?>">
|
207 |
+
</div>
|
208 |
+
</div>
|
209 |
+
<div class="clear clearfix"></div>
|
210 |
+
|
211 |
+
<div class="Contact_Us-settings advanced-settings">
|
212 |
+
<div class="clear clearfix"></div>
|
213 |
+
<div class="chaty-setting-col">
|
214 |
+
<label>Contact Form Title</label>
|
215 |
+
<div>
|
216 |
+
<?php $contact_form_title = isset($value['contact_form_title'])?$value['contact_form_title']:esc_html__("Contact Us", "chaty"); ?>
|
217 |
+
<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 echo esc_attr($contact_form_title) ?>" >
|
218 |
+
</div>
|
219 |
+
</div>
|
220 |
+
<?php
|
221 |
+
$fields = array(
|
222 |
+
'name' => array(
|
223 |
+
'title' => "Name",
|
224 |
+
'placeholder' => "Enter your name",
|
225 |
+
'is_required' => 1,
|
226 |
+
'type' => 'input',
|
227 |
+
'is_enabled' => 1
|
228 |
+
),
|
229 |
+
'email' => array(
|
230 |
+
'title' => "Email",
|
231 |
+
'placeholder' => "Enter your email address",
|
232 |
+
'is_required' => 1,
|
233 |
+
'type' => 'email',
|
234 |
+
'is_enabled' => 1
|
235 |
+
),
|
236 |
+
'phone' => array(
|
237 |
+
'title' => "Phone",
|
238 |
+
'placeholder' => "Enter your phone number",
|
239 |
+
'is_required' => 1,
|
240 |
+
'type' => 'input',
|
241 |
+
'is_enabled' => 1
|
242 |
+
),
|
243 |
+
'message' => array(
|
244 |
+
'title' => "Message",
|
245 |
+
'placeholder' => "Enter your message",
|
246 |
+
'is_required' => 1,
|
247 |
+
'type' => 'textarea',
|
248 |
+
'is_enabled' => 1
|
249 |
+
)
|
250 |
+
);
|
251 |
+
echo '<div class="form-field-setting-col">';
|
252 |
+
foreach ($fields as $label => $field) {
|
253 |
+
$saved_value = isset($value[$label])?$value[$label]:array();
|
254 |
+
$field_value = array(
|
255 |
+
'is_active' => (isset($saved_value['is_active']))?$saved_value['is_active']:'yes',
|
256 |
+
'is_required' => (isset($saved_value['is_required']))?$saved_value['is_required']:'yes',
|
257 |
+
'placeholder' => (isset($saved_value['placeholder']))?$saved_value['placeholder']:$field['placeholder'],
|
258 |
+
);
|
259 |
+
?>
|
260 |
+
<div class="field-setting-col">
|
261 |
+
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_active]" value="no">
|
262 |
+
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_required]" value="no">
|
263 |
+
|
264 |
+
<div class="left-section">
|
265 |
+
<label class="chaty-switch chaty-switch-toggle" for="field_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">
|
266 |
+
<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") ?>>
|
267 |
+
<div class="chaty-slider round"></div>
|
268 |
+
|
269 |
+
<?php echo $field['title'] ?>
|
270 |
+
</label>
|
271 |
+
</div>
|
272 |
+
<div class="right-section">
|
273 |
+
<div class="field-settings <?php echo ($field_value['is_active']=="yes")?"active":"" ?>">
|
274 |
+
<div class="inline-block">
|
275 |
+
<label class="inline-block" for="field_required_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">Required?</label>
|
276 |
+
<div class="inline-block">
|
277 |
+
<label class="chaty-switch" for="field_required_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">
|
278 |
+
<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") ?>>
|
279 |
+
<div class="chaty-slider round"></div>
|
280 |
+
</label>
|
281 |
+
</div>
|
282 |
+
</div>
|
283 |
+
</div>
|
284 |
+
</div>
|
285 |
+
<div class="clear clearfix"></div>
|
286 |
+
<div class="field-settings <?php echo ($field_value['is_active']=="yes")?"active":"" ?>">
|
287 |
+
<div class="chaty-setting-col">
|
288 |
+
<label for="placeholder_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">Placeholder text</label>
|
289 |
+
<div>
|
290 |
+
<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 echo esc_attr($field_value['placeholder']) ?>" >
|
291 |
+
</div>
|
292 |
+
</div>
|
293 |
+
</div>
|
294 |
+
</div>
|
295 |
+
<?php if($label != 'message') { ?>
|
296 |
+
<div class="chaty-separator"></div>
|
297 |
+
<?php } ?>
|
298 |
+
<?php }
|
299 |
+
echo '</div>'; ?>
|
300 |
+
<div class="form-field-setting-col">
|
301 |
+
<div class="form-field-title">Submit Button</div>
|
302 |
+
<div class="color-box">
|
303 |
+
<div class="clr-setting">
|
304 |
+
<?php $field_value = isset($value['button_text_color'])?$value['button_text_color']:"#ffffff" ?>
|
305 |
+
<div class="chaty-setting-col">
|
306 |
+
<label for="button_text_color_for_<?php echo esc_attr($social['slug']); ?>">Text color</label>
|
307 |
+
<div>
|
308 |
+
<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 echo esc_attr($field_value); ?>" >
|
309 |
+
</div>
|
310 |
+
</div>
|
311 |
+
</div>
|
312 |
+
<?php $field_value = isset($value['button_bg_color'])?$value['button_bg_color']:"#A886CD" ?>
|
313 |
+
<div class="clr-setting">
|
314 |
+
<div class="chaty-setting-col">
|
315 |
+
<label for="button_bg_color_for_<?php echo esc_attr($social['slug']); ?>">Background color</label>
|
316 |
+
<div>
|
317 |
+
<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 echo esc_attr($field_value); ?>" >
|
318 |
+
</div>
|
319 |
+
</div>
|
320 |
+
</div>
|
321 |
+
</div>
|
322 |
+
<?php $field_value = isset($value['button_text'])?$value['button_text']:"Chat" ?>
|
323 |
+
<div class="chaty-setting-col">
|
324 |
+
<label for="button_text_for_<?php echo esc_attr($social['slug']); ?>">Button text</label>
|
325 |
+
<div>
|
326 |
+
<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 echo esc_attr($field_value); ?>" >
|
327 |
+
</div>
|
328 |
+
</div>
|
329 |
+
<?php $field_value = isset($value['thanks_message'])?$value['thanks_message']:"Your message was sent successfully" ?>
|
330 |
+
<div class="chaty-setting-col">
|
331 |
+
<label for="thanks_message_for_<?php echo esc_attr($social['slug']); ?>">Thank you message</label>
|
332 |
+
<div>
|
333 |
+
<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 echo esc_attr($field_value); ?>" >
|
334 |
+
</div>
|
335 |
+
</div>
|
336 |
+
<div class="chaty-separator"></div>
|
337 |
+
<?php $field_value = isset($value['redirect_action'])?$value['redirect_action']:"no" ?>
|
338 |
+
<div class="chaty-setting-col">
|
339 |
+
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[redirect_action]" value="no" >
|
340 |
+
<label class="chaty-switch full-width" for="redirect_action_<?php echo esc_attr($social['slug']); ?>">
|
341 |
+
<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") ?> >
|
342 |
+
<div class="chaty-slider round"></div>
|
343 |
+
Redirect visitors after submission
|
344 |
+
</label>
|
345 |
+
</div>
|
346 |
+
<div class="redirect_action-settings <?php echo ($field_value == "yes")?"active":"" ?>">
|
347 |
+
<?php $field_value = isset($value['redirect_link'])?$value['redirect_link']:"" ?>
|
348 |
+
<div class="chaty-setting-col">
|
349 |
+
<label for="redirect_link_for_<?php echo esc_attr($social['slug']); ?>">Redirect link</label>
|
350 |
+
<div>
|
351 |
+
<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 echo esc_attr($field_value); ?>" >
|
352 |
+
</div>
|
353 |
+
</div>
|
354 |
+
<?php $field_value = isset($value['link_in_new_tab'])?$value['link_in_new_tab']:"no" ?>
|
355 |
+
<div class="chaty-setting-col">
|
356 |
+
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_in_new_tab]" value="no" >
|
357 |
+
<label class="chaty-switch full-width" for="link_in_new_tab_<?php echo esc_attr($social['slug']); ?>">
|
358 |
+
<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") ?> >
|
359 |
+
<div class="chaty-slider round"></div>
|
360 |
+
Open in a new tab
|
361 |
+
</label>
|
362 |
+
</div>
|
363 |
+
</div>
|
364 |
+
<div class="chaty-separator"></div>
|
365 |
+
<?php $field_value = isset($value['close_form_after'])?$value['close_form_after']:"no" ?>
|
366 |
+
<div class="chaty-setting-col">
|
367 |
+
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[close_form_after]" value="no" >
|
368 |
+
<label class="chaty-switch full-width" for="close_form_after_<?php echo esc_attr($social['slug']); ?>">
|
369 |
+
<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") ?> >
|
370 |
+
<div class="chaty-slider round"></div>
|
371 |
+
Close form automatically after submission
|
372 |
+
<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>
|
373 |
+
</label>
|
374 |
+
</div>
|
375 |
+
<div class="close_form_after-settings <?php echo ($field_value == "yes")?"active":"" ?>">
|
376 |
+
<?php $field_value = isset($value['close_form_after_seconds'])?$value['close_form_after_seconds']:"3" ?>
|
377 |
+
<div class="chaty-setting-col">
|
378 |
+
<label for="close_form_after_seconds_<?php echo esc_attr($social['slug']); ?>">Close after (Seconds)</label>
|
379 |
+
<div>
|
380 |
+
<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 echo esc_attr($field_value); ?>" >
|
381 |
+
</div>
|
382 |
+
</div>
|
383 |
+
</div>
|
384 |
+
</div>
|
385 |
+
<div class="form-field-setting-col no-margin">
|
386 |
+
<input type="hidden" value="no" name="cht_social_<?php echo esc_attr($social['slug']); ?>[send_leads_in_email]" >
|
387 |
+
<input type="hidden" value="yes" name="cht_social_<?php echo esc_attr($social['slug']); ?>[save_leads_locally]" >
|
388 |
+
<?php $field_value = isset($val['save_leads_locally'])?$val['save_leads_locally']:"yes" ?>
|
389 |
+
<div class="chaty-setting-col">
|
390 |
+
<label for="save_leads_locally_<?php echo esc_attr($social['slug']); ?>" class="full-width chaty-switch">
|
391 |
+
<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") ?> >
|
392 |
+
<div class="chaty-slider round"></div>
|
393 |
+
Save leads to the local database
|
394 |
+
<div class="html-tooltip top no-position">
|
395 |
+
<span class="dashicons dashicons-editor-help"></span>
|
396 |
+
<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>
|
397 |
+
</div>
|
398 |
+
</label>
|
399 |
+
</div>
|
400 |
+
<?php $field_value = isset($value['send_leads_in_email'])?$value['send_leads_in_email']:"no" ?>
|
401 |
+
<div class="chaty-setting-col">
|
402 |
+
<label for="save_leads_to_email_<?php echo esc_attr($social['slug']); ?>" class="email-setting full-width chaty-switch">
|
403 |
+
<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]" >
|
404 |
+
<div class="chaty-slider round"></div>
|
405 |
+
Send leads to your email
|
406 |
+
<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>
|
407 |
+
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>">(<?php echo esc_attr('Upgrade to Pro', CHT_OPT);?>)</a>
|
408 |
+
</label>
|
409 |
+
</div>
|
410 |
+
<div class="email-settings <?php echo ($field_value == "yes")?"active":"" ?>">
|
411 |
+
<div class="chaty-setting-col">
|
412 |
+
<label for="email_for_<?php echo esc_attr($social['slug']); ?>">Email address</label>
|
413 |
+
<div>
|
414 |
+
<?php $field_value = isset($value['email_address'])?$value['email_address']:"" ?>
|
415 |
+
<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 echo esc_attr($field_value); ?>" >
|
416 |
+
</div>
|
417 |
+
</div>
|
418 |
+
<div class="chaty-setting-col">
|
419 |
+
<label for="sender_name_for_<?php echo esc_attr($social['slug']); ?>">Sender's name</label>
|
420 |
+
<div>
|
421 |
+
<?php $field_value = isset($value['sender_name'])?$value['sender_name']:"" ?>
|
422 |
+
<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 echo esc_attr($field_value); ?>" >
|
423 |
+
</div>
|
424 |
+
</div>
|
425 |
+
<div class="chaty-setting-col">
|
426 |
+
<label for="email_subject_for_<?php echo esc_attr($social['slug']); ?>">Email subject</label>
|
427 |
+
<div>
|
428 |
+
<?php $field_value = isset($value['email_subject'])?$value['email_subject']:"New lead from Chaty - {name} - {date} {hour}" ?>
|
429 |
+
<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 echo esc_attr($field_value); ?>" >
|
430 |
+
<div class="mail-merge-tags"><span>{name}</span><span>{phone}</span><span>{email}</span><span>{date}</span><span>{hour}</span></div>
|
431 |
+
</div>
|
432 |
+
</div>
|
433 |
+
</div>
|
434 |
+
</div>
|
435 |
+
</div>
|
436 |
+
|
437 |
+
<?php if($this->is_pro()) { ?>
|
438 |
+
<div class="clear clearfix"></div>
|
439 |
+
<div class="Whatsapp-settings advanced-settings">
|
440 |
+
<!-- advance setting for Whatsapp -->
|
441 |
+
<div class="clear clearfix"></div>
|
442 |
+
<div class="chaty-setting-col">
|
443 |
+
<label>Pre Set Message <span class="icon label-tooltip inline-tooltip" data-label="Add your own pre-set message that's automatically added to the user's message. You can also use merge tags and add the URL or the title of the current visitor's page. E.g. you can add the current URL of a product to the message so you know which product the visitor is talking about when the visitor messages you"><span class="dashicons dashicons-editor-help"></span></span></label>
|
444 |
+
<div>
|
445 |
+
<?php $pre_set_message = isset($value['pre_set_message'])?$value['pre_set_message']:""; ?>
|
446 |
+
<input id="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[pre_set_message]" value="<?php echo esc_attr($pre_set_message) ?>" >
|
447 |
+
<span class="supported-tags"><span class="icon label-tooltip support-tooltip" data-label="{title} tag grabs the page title of the webpage">{title}</span> and <span class="icon label-tooltip support-tooltip" data-label="{url} tag grabs the URL of the page">{url}</span> tags are supported</span>
|
448 |
+
</div>
|
449 |
+
</div>
|
450 |
+
</div>
|
451 |
+
<div class="Email-settings advanced-settings">
|
452 |
+
<!-- advance setting for Email -->
|
453 |
+
<div class="clear clearfix"></div>
|
454 |
+
<div class="chaty-setting-col">
|
455 |
+
<label>Mail Subject <span class="icon label-tooltip inline-tooltip" data-label="Add your own pre-set message that's automatically added to the user's message. You can also use merge tags and add the URL or the title of the current visitor's page. E.g. you can add the current URL of a product to the message so you know which product the visitor is talking about when the visitor messages you"><span class="dashicons dashicons-editor-help"></span></span></label>
|
456 |
+
<div>
|
457 |
+
<?php $mail_subject = isset($value['mail_subject'])?$value['mail_subject']:""; ?>
|
458 |
+
<input id="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[mail_subject]" value="<?php echo esc_attr($mail_subject) ?>" >
|
459 |
+
<span class="supported-tags"><span class="icon label-tooltip support-tooltip" data-label="{title} tag grabs the page title of the webpage">{title}</span> and <span class="icon label-tooltip support-tooltip" data-label="{url} tag grabs the URL of the page">{url}</span> tags are supported</span>
|
460 |
+
</div>
|
461 |
+
</div>
|
462 |
+
</div>
|
463 |
+
<div class="WeChat-settings advanced-settings">
|
464 |
+
<!-- advance setting for WeChat -->
|
465 |
+
<?php
|
466 |
+
$qr_code = isset($value['qr_code'])?$value['qr_code']:""; // Initialize QR code value if not exists. 2.1.0 change
|
467 |
+
$imageUrl = "";
|
468 |
+
$status = 0;
|
469 |
+
if($qr_code != "") {
|
470 |
+
$imageUrl = wp_get_attachment_image_src($qr_code, "full")[0]; // get custom Image URL if exists
|
471 |
+
}
|
472 |
+
if($imageUrl == "") {
|
473 |
+
$imageUrl = plugin_dir_url("")."chaty/admin/assets/images/chaty-default.png"; // Initialize with default image URL if URL is not exists
|
474 |
+
} else {
|
475 |
+
$status = 1;
|
476 |
+
}
|
477 |
+
?>
|
478 |
+
<div class="clear clearfix"></div>
|
479 |
+
<div class="chaty-setting-col">
|
480 |
+
<label>Upload QR Code</label>
|
481 |
+
<div>
|
482 |
+
<!-- Button to upload QR Code image -->
|
483 |
+
<a class="cht-upload-image <?php echo esc_attr(($status)?"active":"") ?>" id="upload_qr_code" href="javascript:;" onclick="upload_qr_code('<?php echo esc_attr($social['slug']); ?>')">
|
484 |
+
<img id="cht_social_image_src_<?php echo esc_attr($social['slug']); ?>" src="<?php echo esc_url($imageUrl) ?>" alt="<?php echo esc_attr($value['title']) ?>">
|
485 |
+
<span class="dashicons dashicons-upload"></span>
|
486 |
+
</a>
|
487 |
+
|
488 |
+
<!-- Button to remove QR Code image -->
|
489 |
+
<a href="javascript:;" class="remove-qr-code remove-qr-code-<?php echo esc_attr($social['slug']); ?> <?php echo esc_attr(($status)?"active":"") ?>" onclick="remove_qr_code('<?php echo esc_attr($social['slug']); ?>')"><span class="dashicons dashicons-no-alt"></span></a>
|
490 |
+
|
491 |
+
<!-- input hidden field for QR Code -->
|
492 |
+
<input id="upload_qr_code_val-<?php echo esc_attr($social['slug']); ?>" type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[qr_code]" value="<?php echo esc_attr($qr_code) ?>" >
|
493 |
+
</div>
|
494 |
+
</div>
|
495 |
+
</div>
|
496 |
+
<div class="Link-settings Custom_Link-settings Custom_Link_3-settings Custom_Link_4-settings Custom_Link_5-settings advanced-settings">
|
497 |
+
<?php $is_checked = (!isset($value['new_window']) || $value['new_window'] == 1)?1:0; ?>
|
498 |
+
<!-- Advance setting for Custom Link -->
|
499 |
+
<div class="clear clearfix"></div>
|
500 |
+
<div class="chaty-setting-col">
|
501 |
+
<label >Open In a New Tab</label>
|
502 |
+
<div>
|
503 |
+
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[new_window]" value="0" >
|
504 |
+
<label class="channels__view" for="cht_social_window_<?php echo esc_attr($social['slug']); ?>">
|
505 |
+
<input id="cht_social_window_<?php echo esc_attr($social['slug']); ?>" type="checkbox" class="channels__view-check" name="cht_social_<?php echo esc_attr($social['slug']); ?>[new_window]" value="1" <?php checked($is_checked, 1) ?> >
|
506 |
+
<span class="channels__view-txt"> </span>
|
507 |
+
</label>
|
508 |
+
</div>
|
509 |
+
</div>
|
510 |
+
</div>
|
511 |
+
<div class="Linkedin-settings advanced-settings">
|
512 |
+
<?php $is_checked = isset($value['link_type'])?$value['link_type']:"personal"; ?>
|
513 |
+
<!-- Advance setting for Custom Link -->
|
514 |
+
<div class="clear clearfix"></div>
|
515 |
+
<div class="chaty-setting-col">
|
516 |
+
<label >LinkedIn</label>
|
517 |
+
<div>
|
518 |
+
<label>
|
519 |
+
<input type="radio" <?php checked($is_checked, "personal") ?> name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_type]" value="personal">
|
520 |
+
Personal
|
521 |
+
</label>
|
522 |
+
<label>
|
523 |
+
<input type="radio" <?php checked($is_checked, "company") ?> name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_type]" value="company">
|
524 |
+
Company
|
525 |
+
</label>
|
526 |
+
</div>
|
527 |
+
</div>
|
528 |
+
</div>
|
529 |
+
<?php } else { ?>
|
530 |
+
<div class="clear clearfix"></div>
|
531 |
+
<div class="Whatsapp-settings advanced-settings">
|
532 |
+
<?php $pre_set_message = isset($value['pre_set_message'])?$value['pre_set_message']:""; ?>
|
533 |
+
<div class="clear clearfix"></div>
|
534 |
+
<div class="chaty-setting-col">
|
535 |
+
<label>Pre Set Message <span class="icon label-tooltip inline-tooltip" data-label="Add your own pre-set message that's automatically added to the user's message. You can also use merge tags and add the URL or the title of the current visitor's page. E.g. you can add the current URL of a product to the message so you know which product the visitor is talking about when the visitor messages you"><span class="dashicons dashicons-editor-help"></span></span></label>
|
536 |
+
<div>
|
537 |
+
<div class="pro-features">
|
538 |
+
<div class="pro-item">
|
539 |
+
<div class="pre-message-whatsapp">
|
540 |
+
<input disabled id="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="text" name="" value="<?php echo esc_attr($pre_set_message) ?>" >
|
541 |
+
<span class="supported-tags"><span class="icon label-tooltip support-tooltip" data-label="{title} tag grabs the page title of the webpage">{title}</span> and <span class="icon label-tooltip support-tooltip" data-label="{url} tag grabs the URL of the page">{url}</span> tags are supported</span>
|
542 |
+
<button data-button="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"></path><path d="M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"></path></svg></button>
|
543 |
+
</div>
|
544 |
+
</div>
|
545 |
+
<div class="pro-button">
|
546 |
+
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>"><?php echo esc_attr('Upgrade to Pro', CHT_OPT);?></a>
|
547 |
+
</div>
|
548 |
+
</div>
|
549 |
+
</div>
|
550 |
+
</div>
|
551 |
+
</div>
|
552 |
+
<div class="Email-settings advanced-settings">
|
553 |
+
<div class="clear clearfix"></div>
|
554 |
+
<div class="chaty-setting-col">
|
555 |
+
<label>Mail Subject <span class="icon label-tooltip inline-tooltip" data-label="Add your own pre-set message that's automatically added to the user's message. You can also use merge tags and add the URL or the title of the current visitor's page. E.g. you can add the current URL of a product to the message so you know which product the visitor is talking about when the visitor messages you"><span class="dashicons dashicons-editor-help"></span></span></label>
|
556 |
+
<div>
|
557 |
+
<div class="pro-features">
|
558 |
+
<div class="pro-item">
|
559 |
+
<input disabled id="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="text" name="" value="" >
|
560 |
+
<span class="supported-tags"><span class="icon label-tooltip support-tooltip" data-label="{title} tag grabs the page title of the webpage">{title}</span> and <span class="icon label-tooltip support-tooltip" data-label="{url} tag grabs the URL of the page">{url}</span> tags are supported</span>
|
561 |
+
</div>
|
562 |
+
<div class="pro-button">
|
563 |
+
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>"><?php echo esc_attr('Upgrade to Pro', CHT_OPT);?></a>
|
564 |
+
</div>
|
565 |
+
</div>
|
566 |
+
</div>
|
567 |
+
</div>
|
568 |
+
</div>
|
569 |
+
<div class="WeChat-settings advanced-settings">
|
570 |
+
<div class="clear clearfix"></div>
|
571 |
+
<div class="chaty-setting-col">
|
572 |
+
<label>Upload QR Code</label>
|
573 |
+
<div>
|
574 |
+
<a target="_blank" class="cht-upload-image-pro" id="upload_qr_code" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>" >
|
575 |
+
<span class="dashicons dashicons-upload"></span>
|
576 |
+
</a>
|
577 |
+
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>"><?php echo esc_attr('Upgrade to Pro', CHT_OPT);?></a>
|
578 |
+
</div>
|
579 |
+
</div>
|
580 |
+
</div>
|
581 |
+
<div class="Link-settings Custom_Link-settings Custom_Link_3-settings Custom_Link_4-settings Custom_Link_5-settings advanced-settings">
|
582 |
+
<?php $is_checked = 1; ?>
|
583 |
+
<div class="clear clearfix"></div>
|
584 |
+
<div class="chaty-setting-col">
|
585 |
+
<label >Open In a New Tab</label>
|
586 |
+
<div>
|
587 |
+
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[new_window]" value="0" >
|
588 |
+
<label class="channels__view" for="cht_social_window_<?php echo esc_attr($social['slug']); ?>">
|
589 |
+
<input id="cht_social_window_<?php echo esc_attr($social['slug']); ?>" type="checkbox" class="channels__view-check" name="cht_social_<?php echo esc_attr($social['slug']); ?>[new_window]" value="1" checked >
|
590 |
+
<span class="channels__view-txt"> </span>
|
591 |
+
</label>
|
592 |
+
</div>
|
593 |
+
</div>
|
594 |
+
</div>
|
595 |
+
<div class="Linkedin-settings advanced-settings">
|
596 |
+
<?php $is_checked = "personal"; ?>
|
597 |
+
<!-- Advance setting for Custom Link -->
|
598 |
+
<div class="clear clearfix"></div>
|
599 |
+
<div class="chaty-setting-col">
|
600 |
+
<label >LinkedIn</label>
|
601 |
+
<div>
|
602 |
+
<label>
|
603 |
+
<input type="radio" <?php checked($is_checked, "personal") ?> name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_type]" value="personal">
|
604 |
+
Personal
|
605 |
+
</label>
|
606 |
+
<label>
|
607 |
+
<input type="radio" <?php checked($is_checked, "company") ?> name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_type]" value="company">
|
608 |
+
Company
|
609 |
+
</label>
|
610 |
+
</div>
|
611 |
+
</div>
|
612 |
+
</div>
|
613 |
+
<?php } ?>
|
614 |
+
|
615 |
+
<?php $use_whatsapp_web = isset($value['use_whatsapp_web'])?$value['use_whatsapp_web']:"yes"; ?>
|
616 |
+
<div class="Whatsapp-settings advanced-settings">
|
617 |
+
<div class="clear clearfix"></div>
|
618 |
+
<div class="chaty-setting-col">
|
619 |
+
<label>Whatsapp Web</label>
|
620 |
+
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[use_whatsapp_web]" value="no" />
|
621 |
+
<div>
|
622 |
+
<div class="checkbox">
|
623 |
+
<label for="cht_social_<?php echo esc_attr($social['slug']); ?>_use_whatsapp_web" class="chaty-checkbox">
|
624 |
+
<input class="sr-only" type="checkbox" id="cht_social_<?php echo esc_attr($social['slug']); ?>_use_whatsapp_web" name="cht_social_<?php echo esc_attr($social['slug']); ?>[use_whatsapp_web]" value="yes" <?php echo checked($use_whatsapp_web, "yes") ?> />
|
625 |
+
<span></span>
|
626 |
+
Use Whatsapp Web directly on desktop
|
627 |
+
</label>
|
628 |
+
</div>
|
629 |
+
</div>
|
630 |
+
</div>
|
631 |
+
</div>
|
632 |
+
</div>
|
633 |
+
<!-- advance setting fields: end -->
|
634 |
+
|
635 |
+
|
636 |
+
<!-- remove social media setting button: start -->
|
637 |
+
<button type="button" class="btn-cancel" data-social="<?php echo esc_attr($social['slug']); ?>">
|
638 |
+
<svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
|
639 |
+
<rect width="15.6301" height="2.24494" rx="1.12247" transform="translate(2.26764 0.0615997) rotate(45)" fill="white"/>
|
640 |
+
<rect width="15.6301" height="2.24494" rx="1.12247" transform="translate(13.3198 1.649) rotate(135)" fill="white"/>
|
641 |
+
</svg>
|
642 |
+
</button>
|
643 |
+
<!-- remove social media setting button: end -->
|
644 |
+
</div>
|
645 |
+
</li>
|
646 |
+
<!-- Social media setting box: end -->
|
views/admin/channels-section.php
CHANGED
@@ -53,7 +53,7 @@ if (!defined('ABSPATH')) {
|
|
53 |
<path id="Path_1925" data-name="Path 1925" d="M120.105,28.251a1.183,1.183,0,1,0,.838.347A1.189,1.189,0,0,0,120.105,28.251Z" transform="translate(-96.119 -14.809)" fill="#fff"></path>
|
54 |
</svg>
|
55 |
<div class="preview" id="admin-preview">
|
56 |
-
<div class="h2"><span class="header-tooltip"><span class="header-tooltip-text">Please make all your live tests in <a href="https://www.computerworld.com/article/3356840/how-to-go-incognito-in-chrome-firefox-safari-and-edge.html" target="_blank">incognito mode</a>. Some of the features like call to action, attention effect, and trigger will appear for your website visitors just once until they engage with the chat widget, so to emulate it you'll need to use incognito mode</span> <span class="dashicons dashicons-editor-help"></span></span><?php
|
57 |
|
58 |
<div class="page">
|
59 |
<div class="page-header">
|
@@ -113,7 +113,7 @@ if (!defined('ABSPATH')) {
|
|
113 |
$cht_cta = ($cht_cta)?$cht_cta:"Contact Us";
|
114 |
$widget_icon = get_option('widget_icon');
|
115 |
?>
|
116 |
-
<div class="chaty-widget chaty-widget-icons-<?php
|
117 |
<div class="icon icon-xs active tooltip-show tooltip" data-label="<?php echo esc_attr($cht_cta) ?>" data-label="<?php echo esc_attr($cht_cta) ?>">
|
118 |
<div class="chaty-channels"></div>
|
119 |
<i id="iconWidget">
|
@@ -125,7 +125,7 @@ if (!defined('ABSPATH')) {
|
|
125 |
.st1 { fill: #FFFFFF; }
|
126 |
.st0 { fill: #808080; }
|
127 |
</style>
|
128 |
-
<g><circle cx="-469" cy="534.7" r="27" fill="<?php
|
129 |
<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"/>
|
130 |
<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"/>
|
131 |
<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"/>
|
@@ -138,7 +138,7 @@ if (!defined('ABSPATH')) {
|
|
138 |
.st2 { fill: none; stroke: #808080; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
|
139 |
</style>
|
140 |
<g>
|
141 |
-
<circle cx="-469.8" cy="534.1" r="27" fill="<?php
|
142 |
</g>
|
143 |
<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.2 c0.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"/>
|
144 |
<path class="st2" d="M-476.5,537.3c2.5,1.1,8.5,2.1,13-2.7"/>
|
@@ -152,7 +152,7 @@ if (!defined('ABSPATH')) {
|
|
152 |
fill: #FFFFFF;
|
153 |
}</style>
|
154 |
<g>
|
155 |
-
<circle cx="-469.9" cy="534.1" r="27" fill="<?php
|
156 |
</g>
|
157 |
<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"/>
|
158 |
</svg>
|
@@ -163,7 +163,7 @@ if (!defined('ABSPATH')) {
|
|
163 |
fill: #FFFFFF;
|
164 |
}</style>
|
165 |
<g>
|
166 |
-
<circle cx="-469" cy="534.1" r="27" fill="<?php
|
167 |
</g>
|
168 |
<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.2 c0.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"/>
|
169 |
<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.2 c0.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"/>
|
@@ -173,7 +173,7 @@ if (!defined('ABSPATH')) {
|
|
173 |
<img src="<?php echo esc_url($this->getCustomWidgetImg()); ?>"/>
|
174 |
<?php else: ?>
|
175 |
<style type="text/css">.st1 {fill: #FFFFFF;}.st0{fill: #a886cd;}</style>
|
176 |
-
<g><circle cx="-469" cy="534.7" r="27" fill="<?php
|
177 |
<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"/>
|
178 |
<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"/>
|
179 |
<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"/>
|
@@ -190,7 +190,7 @@ if (!defined('ABSPATH')) {
|
|
190 |
//$cta = str_replace(array("\r", "\n"), "", $cta);
|
191 |
$cta = html_entity_decode($cta);
|
192 |
?>
|
193 |
-
<span id="cta-box" class="tooltiptext" style='display:<?php
|
194 |
</div>
|
195 |
</div>
|
196 |
</div>
|
@@ -198,17 +198,17 @@ if (!defined('ABSPATH')) {
|
|
198 |
<div class="switch-preview">
|
199 |
<input data-gramm_editor="false" type="radio" id="previewDesktop" name="switchPreview" class="js-switch-preview switch-preview__input" checked="checked">
|
200 |
<label for="previewDesktop" class="switch-preview__label switch-preview__desktop">
|
201 |
-
<?php
|
202 |
</label>
|
203 |
<input data-gramm_editor="false" type="radio" id="previewMobile" name="switchPreview" class="js-switch-preview switch-preview__input">
|
204 |
<label for="previewMobile" class="switch-preview__label switch-preview__mobile">
|
205 |
-
<?php
|
206 |
</label>
|
207 |
</div>
|
208 |
</div>
|
209 |
</div>
|
210 |
<?php $pro_id = $this->is_pro()?"pro":""; ?>
|
211 |
-
<section class="section one chaty-setting-form" id="<?php
|
212 |
<?php //if($this->widget_index != "" || $this->get_total_widgets() > 0) {
|
213 |
$cht_widget_title = get_option("cht_widget_title");
|
214 |
if(isset($_GET['widget_title']) && empty(!$_GET['widget_title'])) {
|
@@ -216,12 +216,12 @@ if (!defined('ABSPATH')) {
|
|
216 |
}
|
217 |
?>
|
218 |
<div class="chaty-input">
|
219 |
-
<label for="cht_widget_title"><?php
|
220 |
-
<input id="cht_widget_title" type="text" name="cht_widget_title" value="<?php
|
221 |
</div>
|
222 |
<?php // } ?>
|
223 |
<h1 class="section-title">
|
224 |
-
<strong><?php
|
225 |
</h1>
|
226 |
<?php
|
227 |
$social_app = get_option('cht_numb_slug');
|
@@ -241,7 +241,7 @@ if (!defined('ABSPATH')) {
|
|
241 |
$active_class = 'active';
|
242 |
}
|
243 |
endforeach; ?>
|
244 |
-
<div class="icon icon-sm chat-channel-<?php echo esc_attr($social['slug']); ?> <?php echo esc_attr($active_class) ?>" data-social="<?php echo esc_attr($social['slug']); ?>" data-label="<?php
|
245 |
<span class="icon-box">
|
246 |
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
247 |
<?php echo $social['svg']; ?>
|
@@ -258,11 +258,11 @@ if (!defined('ABSPATH')) {
|
|
258 |
<div class="popover" style="">
|
259 |
<a class="upgrade-link" target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl()); ?>">
|
260 |
You can use any two channels in the free version.<br/>Get unlimited channels in the Pro plan
|
261 |
-
<strong><?php
|
262 |
</a>
|
263 |
</div>
|
264 |
<?php endif; ?>
|
265 |
-
<input type="hidden" class="add_slug" name="cht_numb_slug" placeholder="test" value="<?php
|
266 |
|
267 |
<div class="channels-selected" id="channels-selected-list">
|
268 |
<ul id="channels-selected-list" class="channels-selected-list channels-selected">
|
@@ -388,649 +388,8 @@ if (!defined('ABSPATH')) {
|
|
388 |
if($channel_type == "Telegram") {
|
389 |
$value['value'] = trim($value['value'], "@");
|
390 |
}
|
391 |
-
|
392 |
-
|
393 |
-
<li data-id="<?php echo esc_attr($social['slug']) ?>" class="chaty-channel" data-channel="<?php echo esc_attr($channel_type) ?>" id="chaty-social-<?php echo esc_attr($social['slug']) ?>">
|
394 |
-
<div class="channels-selected__item <?php esc_attr_e(($status)?"img-active":"") ?> <?php esc_attr_e(($this->is_pro()) ? 'pro' : 'free'); ?> 1 available">
|
395 |
-
<div class="chaty-default-settings">
|
396 |
-
<div class="move-icon">
|
397 |
-
<img src="<?php echo esc_url(plugin_dir_url("")."/chaty/admin/assets/images/move-icon.png") ?>">
|
398 |
-
</div>
|
399 |
-
<div class="icon icon-md active" data-label="<?php esc_attr_e($social['title']); ?>">
|
400 |
-
<span style="" class="custom-chaty-image custom-image-<?php echo esc_attr($social['slug']) ?>" id="image_data_<?php echo esc_attr($social['slug']) ?>">
|
401 |
-
<img src="<?php echo esc_url($imageUrl) ?>" />
|
402 |
-
<span onclick="remove_chaty_image('<?php echo esc_attr($social['slug']) ?>')" class="remove-icon-img"></span>
|
403 |
-
</span>
|
404 |
-
<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']) ?>" >
|
405 |
-
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
406 |
-
<?php echo $svg_icon; ?>
|
407 |
-
</svg>
|
408 |
-
<span class="facustom-icon" style="background-color: <?php echo esc_attr($value['bg_color']) ?>"><i class="<?php echo esc_attr($value['fa_icon']) ?>"></i></span>
|
409 |
-
</span>
|
410 |
-
</div>
|
411 |
-
|
412 |
-
<?php if($social['slug'] != 'Contact_Us') { ?>
|
413 |
-
<!-- Social Media input -->
|
414 |
-
<?php if(($social['slug'] == "Whatsapp" || $channel_type == "Whatsapp") && !empty($value['value'])) {
|
415 |
-
$value['value'] = trim($value['value'], "+");
|
416 |
-
$value['value'] = "+".$value['value'];
|
417 |
-
} ?>
|
418 |
-
<div class="channels__input-box">
|
419 |
-
<input data-label="<?php echo esc_attr($social['title']) ?>" placeholder="<?php esc_attr_e($placeholder); ?>" type="text" class="channels__input custom-channel-<?php echo esc_attr__($channel_type) ?> <?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="channel_input_<?php echo esc_attr($social['slug']); ?>" />
|
420 |
-
</div>
|
421 |
-
<?php } ?>
|
422 |
-
<div class="channels__device-box">
|
423 |
-
<?php
|
424 |
-
$slug = esc_attr__($this->del_space($social['slug']));
|
425 |
-
$slug = str_replace(' ', '_', $slug);
|
426 |
-
$is_desktop = isset($value['is_desktop']) && $value['is_desktop'] == "checked" ? "checked" : '';
|
427 |
-
$is_mobile = isset($value['is_mobile']) && $value['is_mobile'] == "checked" ? "checked" : '';
|
428 |
-
?>
|
429 |
-
<!-- setting for desktop -->
|
430 |
-
<label class="channels__view" for="<?php echo esc_attr($slug); ?>Desktop">
|
431 |
-
<input type="checkbox" id="<?php echo esc_attr($slug); ?>Desktop" class="channels__view-check js-chanel-icon js-chanel-desktop" data-type="<?php echo str_replace(' ', '_', strtolower(esc_attr__($this->del_space($social['slug'])))); ?>" name="cht_social_<?php echo esc_attr($social['slug']); ?>[is_desktop]" value="checked" data-gramm_editor="false" <?php esc_attr_e($is_desktop) ?> />
|
432 |
-
<span class="channels__view-txt">Desktop</label>
|
433 |
-
</label>
|
434 |
-
|
435 |
-
<!-- setting for mobile -->
|
436 |
-
<label class="channels__view" for="<?php echo esc_attr($slug); ?>Mobile">
|
437 |
-
<input type="checkbox" id="<?php echo esc_attr($slug); ?>Mobile" class="channels__view-check js-chanel-icon js-chanel-mobile" data-type="<?php echo str_replace(' ', '_', strtolower(esc_attr__($this->del_space($social['slug'])))); ?>" name="cht_social_<?php echo esc_attr($social['slug']); ?>[is_mobile]" value="checked" data-gramm_editor="false" <?php esc_attr_e($is_mobile) ?> >
|
438 |
-
<span class="channels__view-txt">Mobile</span>
|
439 |
-
</label>
|
440 |
-
</div>
|
441 |
-
|
442 |
-
<?php if($social['slug'] == 'Contact_Us') { ?>
|
443 |
-
<div class="channels__input transparent"></div>
|
444 |
-
<?php } ?>
|
445 |
-
|
446 |
-
<?php
|
447 |
-
$close_class = "active";
|
448 |
-
if($social['slug'] == 'Contact_Us') {
|
449 |
-
$setting_status = get_option("chaty_contact_us_setting");
|
450 |
-
if($setting_status === false) {
|
451 |
-
$close_class = "";
|
452 |
-
}
|
453 |
-
}
|
454 |
-
?>
|
455 |
-
|
456 |
-
|
457 |
-
<!-- button for advance setting -->
|
458 |
-
<div class="chaty-settings <?php echo esc_attr($close_class) ?>" data-nonce="<?php echo wp_create_nonce($social['slug']."-settings") ?>" id="<?php echo esc_attr($social['slug']); ?>-close-btn" onclick="toggle_chaty_setting('<?php echo esc_attr($social['slug']); ?>')">
|
459 |
-
<a href="javascript:;"><span class="dashicons dashicons-admin-generic"></span> Settings</a>
|
460 |
-
</div>
|
461 |
-
<?php if($social['slug'] != 'Contact_Us') { ?>
|
462 |
-
|
463 |
-
<!-- example for social media -->
|
464 |
-
<div class="input-example">
|
465 |
-
<?php esc_attr_e('For example', CHT_OPT); ?>:
|
466 |
-
<span class="inline-box channel-example">
|
467 |
-
<?php if($social['slug'] == "Poptin") { ?>
|
468 |
-
<br/>
|
469 |
-
<?php } ?>
|
470 |
-
<?php esc_attr_e($placeholder); ?>
|
471 |
-
</span>
|
472 |
-
</div>
|
473 |
-
|
474 |
-
<!-- checking for extra help message for social media -->
|
475 |
-
<div class="help-section">
|
476 |
-
<?php if((isset($social['help']) && !empty($social['help'])) || isset($social['help_link'])) { ?>
|
477 |
-
<div class="viber-help">
|
478 |
-
<?php if(isset($help_link) && !empty($help_link)) { ?>
|
479 |
-
<a class="help-link" href="<?php echo esc_url($help_link) ?>" target="_blank"><?php esc_attr_e($help_title); ?></a>
|
480 |
-
<?php } else if(isset($help_text) && !empty($help_text)) { ?>
|
481 |
-
<span class="help-text"><?php echo $help_text; ?></span>
|
482 |
-
<span class="help-title"><?php esc_attr_e($help_title); ?></span>
|
483 |
-
<?php } ?>
|
484 |
-
</div>
|
485 |
-
<?php } ?>
|
486 |
-
</div>
|
487 |
-
<?php } ?>
|
488 |
-
</div>
|
489 |
-
|
490 |
-
<?php if($social['slug'] == "Whatsapp" || $social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3" || $social['slug'] == "Custom_Link_4" || $social['slug'] == "Custom_Link_5") { ?>
|
491 |
-
<div class="Whatsapp-settings advanced-settings extra-chaty-settings">
|
492 |
-
<?php $embedded_window = isset($value['embedded_window'])?$value['embedded_window']:"no"; ?>
|
493 |
-
<div class="chaty-setting-col">
|
494 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[embedded_window]" value="no" >
|
495 |
-
<label class="chaty-switch full-width chaty-embedded-window" for="whatsapp_embedded_window_<?php echo esc_attr($social['slug']); ?>">
|
496 |
-
<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") ?> >
|
497 |
-
<div class="chaty-slider round"></div>
|
498 |
-
WhatsApp Chat Popup 💬
|
499 |
-
<div class="html-tooltip top">
|
500 |
-
<span class="dashicons dashicons-editor-help"></span>
|
501 |
-
<span class="tooltip-text top">
|
502 |
-
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.
|
503 |
-
<img src="<?php echo esc_url(CHT_PLUGIN_URL) ?>/admin/assets/images/whatsapp-popup.gif" />
|
504 |
-
</span>
|
505 |
-
</div>
|
506 |
-
</label>
|
507 |
-
</div>
|
508 |
-
<!-- advance setting for Whatsapp -->
|
509 |
-
<div class="whatsapp-welcome-message <?php echo ($embedded_window=="yes")?"active":"" ?>">
|
510 |
-
<div class="chaty-setting-col">
|
511 |
-
<label style="display: block; width: 100%" for="cht_social_embedded_message_<?php echo esc_attr($social['slug']); ?>">Welcome message</label>
|
512 |
-
<div class="full-width">
|
513 |
-
<div class="full-width">
|
514 |
-
<?php $unique_id = uniqid(); ?>
|
515 |
-
<?php $embedded_message = isset($value['embedded_message'])?$value['embedded_message']:esc_html__("How can I help you? :)", "chaty"); ?>
|
516 |
-
<textarea class="chaty-setting-textarea chaty-whatsapp-setting-textarea" data-id="<?php echo esc_attr($unique_id) ?>" id="cht_social_embedded_message_<?php echo esc_attr($unique_id) ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[embedded_message]" ><?php echo $embedded_message ?></textarea>
|
517 |
-
</div>
|
518 |
-
</div>
|
519 |
-
</div>
|
520 |
-
<div class="chaty-setting-col">
|
521 |
-
<?php $is_default_open = isset($value['is_default_open'])?$value['is_default_open']:""; ?>
|
522 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[is_default_open]" value="no" >
|
523 |
-
<label class="chaty-switch" for="whatsapp_default_open_embedded_window_<?php echo esc_attr($social['slug']); ?>">
|
524 |
-
<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") ?> >
|
525 |
-
<div class="chaty-slider round"></div>
|
526 |
-
Open the window on load
|
527 |
-
<span class="icon label-tooltip" data-label="Open the WhatsApp chat popup on page load, 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>
|
528 |
-
</label>
|
529 |
-
</div>
|
530 |
-
</div>
|
531 |
-
</div>
|
532 |
-
<?php } ?>
|
533 |
-
|
534 |
-
<!-- advance setting fields: start -->
|
535 |
-
<?php $class_name = !$this->is_pro()?"not-is-pro":""; ?>
|
536 |
-
<div class="chaty-advance-settings <?php esc_attr_e($class_name); ?>" style="<?php echo (empty($close_class) && $social['slug'] == 'Contact_Us')?"display:block":""; ?>">
|
537 |
-
<!-- Settings for custom icon and color -->
|
538 |
-
<div class="chaty-setting-col">
|
539 |
-
<label>Icon Appearance</label>
|
540 |
-
<div>
|
541 |
-
<!-- input for custom color -->
|
542 |
-
<input type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[bg_color]" class="chaty-color-field" value="<?php esc_attr_e($value['bg_color']) ?>" />
|
543 |
-
|
544 |
-
<!-- button to upload custom image -->
|
545 |
-
<?php if($this->is_pro()) { ?>
|
546 |
-
<a onclick="upload_chaty_image('<?php echo esc_attr($social['slug']); ?>')" href="javascript:;" class="upload-chaty-icon"><span class="dashicons dashicons-upload"></span> Custom Image</a>
|
547 |
-
|
548 |
-
<!-- hidden input value for image -->
|
549 |
-
<input id="cht_social_image_<?php echo esc_attr($social['slug']); ?>" type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[image_id]" value="<?php esc_attr_e($imageId) ?>" />
|
550 |
-
<?php } else { ?>
|
551 |
-
<div class="pro-features upload-image">
|
552 |
-
<div class="pro-item">
|
553 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>" class="upload-chaty-icon"><span class="dashicons dashicons-upload"></span> Custom Image</a>
|
554 |
-
</div>
|
555 |
-
<div class="pro-button">
|
556 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>"><?php esc_attr_e('Upgrade to Pro', CHT_OPT);?></a>
|
557 |
-
</div>
|
558 |
-
</div>
|
559 |
-
<?php } ?>
|
560 |
-
</div>
|
561 |
-
</div>
|
562 |
-
<div class="clear clearfix"></div>
|
563 |
-
|
564 |
-
<?php if($social['slug'] == "Link" || $social['slug'] == "Custom_Link" || $social['slug'] == "Custom_Link_3" || $social['slug'] == "4" || $social['slug'] == "Custom_Link_5") {
|
565 |
-
$channel_type = "";
|
566 |
-
if(isset($value['channel_type'])) {
|
567 |
-
$channel_type = esc_attr__(wp_unslash($value['channel_type']));
|
568 |
-
}
|
569 |
-
$socials = $this->socials;
|
570 |
-
?>
|
571 |
-
<div class="chaty-setting-col">
|
572 |
-
<label>Channel type</label>
|
573 |
-
<div>
|
574 |
-
<!-- input for custom title -->
|
575 |
-
<select class="channel-select-input" name="cht_social_<?php echo esc_attr($social['slug']); ?>[channel_type]" value="<?php esc_attr_e($value['channel_type']) ?>">
|
576 |
-
<option value="<?php echo esc_attr($social['slug']) ?>">Custom channel</option>
|
577 |
-
<?php foreach ($socials as $social_icon) {
|
578 |
-
$selected = ($social_icon['slug'] == $channel_type)?"selected":"";
|
579 |
-
if ($social_icon['slug'] != 'Custom_Link' && $social_icon['slug'] != 'Custom_Link_3' && $social_icon['slug'] != 'Custom_Link_4' && $social_icon['slug'] != 'Custom_Link_5' && $social_icon['slug'] != 'Contact_Us' && $social_icon['slug'] != 'Link') { ?>
|
580 |
-
<option <?php echo esc_attr($selected) ?> value="<?php echo esc_attr($social_icon['slug']) ?>"><?php echo esc_attr($social_icon['title']) ?></option>
|
581 |
-
<?php }
|
582 |
-
}?>
|
583 |
-
</select>
|
584 |
-
</div>
|
585 |
-
</div>
|
586 |
-
<div class="clear clearfix"></div>
|
587 |
-
<?php } ?>
|
588 |
-
|
589 |
-
<div class="chaty-setting-col">
|
590 |
-
<label>On Hover Text</label>
|
591 |
-
<div>
|
592 |
-
<input type="text" class="chaty-title" name="cht_social_<?php echo esc_attr($social['slug']); ?>[title]" value="<?php esc_attr_e($value['title']) ?>">
|
593 |
-
</div>
|
594 |
-
</div>
|
595 |
-
<div class="clear clearfix"></div>
|
596 |
-
|
597 |
-
<div class="Contact_Us-settings advanced-settings">
|
598 |
-
<div class="clear clearfix"></div>
|
599 |
-
<div class="chaty-setting-col">
|
600 |
-
<label>Contact Form Title</label>
|
601 |
-
<div>
|
602 |
-
<?php $contact_form_title = isset($value['contact_form_title'])?$value['contact_form_title']:esc_html__("Contact Us", "chaty"); ?>
|
603 |
-
<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) ?>" >
|
604 |
-
</div>
|
605 |
-
</div>
|
606 |
-
<?php
|
607 |
-
$fields = array(
|
608 |
-
'name' => array(
|
609 |
-
'title' => "Name",
|
610 |
-
'placeholder' => "Enter your name",
|
611 |
-
'is_required' => 1,
|
612 |
-
'type' => 'input',
|
613 |
-
'is_enabled' => 1
|
614 |
-
),
|
615 |
-
'email' => array(
|
616 |
-
'title' => "Email",
|
617 |
-
'placeholder' => "Enter your email address",
|
618 |
-
'is_required' => 1,
|
619 |
-
'type' => 'email',
|
620 |
-
'is_enabled' => 1
|
621 |
-
),
|
622 |
-
'phone' => array(
|
623 |
-
'title' => "Phone",
|
624 |
-
'placeholder' => "Enter your phone number",
|
625 |
-
'is_required' => 1,
|
626 |
-
'type' => 'input',
|
627 |
-
'is_enabled' => 1
|
628 |
-
),
|
629 |
-
'message' => array(
|
630 |
-
'title' => "Message",
|
631 |
-
'placeholder' => "Enter your message",
|
632 |
-
'is_required' => 1,
|
633 |
-
'type' => 'textarea',
|
634 |
-
'is_enabled' => 1
|
635 |
-
)
|
636 |
-
);
|
637 |
-
echo '<div class="form-field-setting-col">';
|
638 |
-
foreach ($fields as $label => $field) {
|
639 |
-
$saved_value = isset($value[$label])?$value[$label]:array();
|
640 |
-
$field_value = array(
|
641 |
-
'is_active' => (isset($saved_value['is_active']))?$saved_value['is_active']:'yes',
|
642 |
-
'is_required' => (isset($saved_value['is_required']))?$saved_value['is_required']:'yes',
|
643 |
-
'placeholder' => (isset($saved_value['placeholder']))?$saved_value['placeholder']:$field['placeholder'],
|
644 |
-
);
|
645 |
-
?>
|
646 |
-
<div class="field-setting-col">
|
647 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_active]" value="no">
|
648 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[<?php echo $label ?>][is_required]" value="no">
|
649 |
-
|
650 |
-
<div class="left-section">
|
651 |
-
<label class="chaty-switch chaty-switch-toggle" for="field_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">
|
652 |
-
<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") ?>>
|
653 |
-
<div class="chaty-slider round"></div>
|
654 |
-
|
655 |
-
<?php echo $field['title'] ?>
|
656 |
-
</label>
|
657 |
-
</div>
|
658 |
-
<div class="right-section">
|
659 |
-
<div class="field-settings <?php echo ($field_value['is_active']=="yes")?"active":"" ?>">
|
660 |
-
<div class="inline-block">
|
661 |
-
<label class="inline-block" for="field_required_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">Required?</label>
|
662 |
-
<div class="inline-block">
|
663 |
-
<label class="chaty-switch" for="field_required_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">
|
664 |
-
<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") ?>>
|
665 |
-
<div class="chaty-slider round"></div>
|
666 |
-
</label>
|
667 |
-
</div>
|
668 |
-
</div>
|
669 |
-
</div>
|
670 |
-
</div>
|
671 |
-
<div class="clear clearfix"></div>
|
672 |
-
<div class="field-settings <?php echo ($field_value['is_active']=="yes")?"active":"" ?>">
|
673 |
-
<div class="chaty-setting-col">
|
674 |
-
<label for="placeholder_for_<?php echo esc_attr($social['slug']); ?>_<?php echo $label ?>">Placeholder text</label>
|
675 |
-
<div>
|
676 |
-
<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']) ?>" >
|
677 |
-
</div>
|
678 |
-
</div>
|
679 |
-
</div>
|
680 |
-
</div>
|
681 |
-
<?php if($label != 'message') { ?>
|
682 |
-
<div class="chaty-separator"></div>
|
683 |
-
<?php } ?>
|
684 |
-
<?php }
|
685 |
-
echo '</div>'; ?>
|
686 |
-
<div class="form-field-setting-col">
|
687 |
-
<div class="form-field-title">Submit Button</div>
|
688 |
-
<div class="color-box">
|
689 |
-
<div class="clr-setting">
|
690 |
-
<?php $field_value = isset($value['button_text_color'])?$value['button_text_color']:"#ffffff" ?>
|
691 |
-
<div class="chaty-setting-col">
|
692 |
-
<label for="button_text_color_for_<?php echo esc_attr($social['slug']); ?>">Text color</label>
|
693 |
-
<div>
|
694 |
-
<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); ?>" >
|
695 |
-
</div>
|
696 |
-
</div>
|
697 |
-
</div>
|
698 |
-
<?php $field_value = isset($value['button_bg_color'])?$value['button_bg_color']:"#A886CD" ?>
|
699 |
-
<div class="clr-setting">
|
700 |
-
<div class="chaty-setting-col">
|
701 |
-
<label for="button_bg_color_for_<?php echo esc_attr($social['slug']); ?>">Background color</label>
|
702 |
-
<div>
|
703 |
-
<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); ?>" >
|
704 |
-
</div>
|
705 |
-
</div>
|
706 |
-
</div>
|
707 |
-
</div>
|
708 |
-
<?php $field_value = isset($value['button_text'])?$value['button_text']:"Chat" ?>
|
709 |
-
<div class="chaty-setting-col">
|
710 |
-
<label for="button_text_for_<?php echo esc_attr($social['slug']); ?>">Button text</label>
|
711 |
-
<div>
|
712 |
-
<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); ?>" >
|
713 |
-
</div>
|
714 |
-
</div>
|
715 |
-
<?php $field_value = isset($value['thanks_message'])?$value['thanks_message']:"Your message was sent successfully" ?>
|
716 |
-
<div class="chaty-setting-col">
|
717 |
-
<label for="thanks_message_for_<?php echo esc_attr($social['slug']); ?>">Thank you message</label>
|
718 |
-
<div>
|
719 |
-
<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); ?>" >
|
720 |
-
</div>
|
721 |
-
</div>
|
722 |
-
<div class="chaty-separator"></div>
|
723 |
-
<?php $field_value = isset($value['redirect_action'])?$value['redirect_action']:"no" ?>
|
724 |
-
<div class="chaty-setting-col">
|
725 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[redirect_action]" value="no" >
|
726 |
-
<label class="chaty-switch full-width" for="redirect_action_<?php echo esc_attr($social['slug']); ?>">
|
727 |
-
<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") ?> >
|
728 |
-
<div class="chaty-slider round"></div>
|
729 |
-
Redirect visitors after submission
|
730 |
-
</label>
|
731 |
-
</div>
|
732 |
-
<div class="redirect_action-settings <?php echo ($field_value == "yes")?"active":"" ?>">
|
733 |
-
<?php $field_value = isset($value['redirect_link'])?$value['redirect_link']:"" ?>
|
734 |
-
<div class="chaty-setting-col">
|
735 |
-
<label for="redirect_link_for_<?php echo esc_attr($social['slug']); ?>">Redirect link</label>
|
736 |
-
<div>
|
737 |
-
<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); ?>" >
|
738 |
-
</div>
|
739 |
-
</div>
|
740 |
-
<?php $field_value = isset($value['link_in_new_tab'])?$value['link_in_new_tab']:"no" ?>
|
741 |
-
<div class="chaty-setting-col">
|
742 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_in_new_tab]" value="no" >
|
743 |
-
<label class="chaty-switch full-width" for="link_in_new_tab_<?php echo esc_attr($social['slug']); ?>">
|
744 |
-
<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") ?> >
|
745 |
-
<div class="chaty-slider round"></div>
|
746 |
-
Open in a new tab
|
747 |
-
</label>
|
748 |
-
</div>
|
749 |
-
</div>
|
750 |
-
<div class="chaty-separator"></div>
|
751 |
-
<?php $field_value = isset($value['close_form_after'])?$value['close_form_after']:"no" ?>
|
752 |
-
<div class="chaty-setting-col">
|
753 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[close_form_after]" value="no" >
|
754 |
-
<label class="chaty-switch full-width" for="close_form_after_<?php echo esc_attr($social['slug']); ?>">
|
755 |
-
<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") ?> >
|
756 |
-
<div class="chaty-slider round"></div>
|
757 |
-
Close form automatically after submission
|
758 |
-
<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>
|
759 |
-
</label>
|
760 |
-
</div>
|
761 |
-
<div class="close_form_after-settings <?php echo ($field_value == "yes")?"active":"" ?>">
|
762 |
-
<?php $field_value = isset($value['close_form_after_seconds'])?$value['close_form_after_seconds']:"3" ?>
|
763 |
-
<div class="chaty-setting-col">
|
764 |
-
<label for="close_form_after_seconds_<?php echo esc_attr($social['slug']); ?>">Close after (Seconds)</label>
|
765 |
-
<div>
|
766 |
-
<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); ?>" >
|
767 |
-
</div>
|
768 |
-
</div>
|
769 |
-
</div>
|
770 |
-
</div>
|
771 |
-
<div class="form-field-setting-col no-margin">
|
772 |
-
<input type="hidden" value="no" name="cht_social_<?php echo esc_attr($social['slug']); ?>[send_leads_in_email]" >
|
773 |
-
<input type="hidden" value="yes" name="cht_social_<?php echo esc_attr($social['slug']); ?>[save_leads_locally]" >
|
774 |
-
<?php $field_value = isset($val['save_leads_locally'])?$val['save_leads_locally']:"yes" ?>
|
775 |
-
<div class="chaty-setting-col">
|
776 |
-
<label for="save_leads_locally_<?php echo esc_attr($social['slug']); ?>" class="full-width chaty-switch">
|
777 |
-
<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") ?> >
|
778 |
-
<div class="chaty-slider round"></div>
|
779 |
-
Save leads to the local database
|
780 |
-
<div class="html-tooltip top no-position">
|
781 |
-
<span class="dashicons dashicons-editor-help"></span>
|
782 |
-
<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>
|
783 |
-
</div>
|
784 |
-
</label>
|
785 |
-
</div>
|
786 |
-
<?php $field_value = isset($value['send_leads_in_email'])?$value['send_leads_in_email']:"no" ?>
|
787 |
-
<div class="chaty-setting-col">
|
788 |
-
<label for="save_leads_to_email_<?php echo esc_attr($social['slug']); ?>" class="email-setting full-width chaty-switch">
|
789 |
-
<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]" >
|
790 |
-
<div class="chaty-slider round"></div>
|
791 |
-
Send leads to your email
|
792 |
-
<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>
|
793 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>">(<?php esc_attr_e('Upgrade to Pro', CHT_OPT);?>)</a>
|
794 |
-
</label>
|
795 |
-
</div>
|
796 |
-
<div class="email-settings <?php echo ($field_value == "yes")?"active":"" ?>">
|
797 |
-
<div class="chaty-setting-col">
|
798 |
-
<label for="email_for_<?php echo esc_attr($social['slug']); ?>">Email address</label>
|
799 |
-
<div>
|
800 |
-
<?php $field_value = isset($value['email_address'])?$value['email_address']:"" ?>
|
801 |
-
<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); ?>" >
|
802 |
-
</div>
|
803 |
-
</div>
|
804 |
-
<div class="chaty-setting-col">
|
805 |
-
<label for="sender_name_for_<?php echo esc_attr($social['slug']); ?>">Sender's name</label>
|
806 |
-
<div>
|
807 |
-
<?php $field_value = isset($value['sender_name'])?$value['sender_name']:"" ?>
|
808 |
-
<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); ?>" >
|
809 |
-
</div>
|
810 |
-
</div>
|
811 |
-
<div class="chaty-setting-col">
|
812 |
-
<label for="email_subject_for_<?php echo esc_attr($social['slug']); ?>">Email subject</label>
|
813 |
-
<div>
|
814 |
-
<?php $field_value = isset($value['email_subject'])?$value['email_subject']:"New lead from Chaty - {name} - {date} {hour}" ?>
|
815 |
-
<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); ?>" >
|
816 |
-
<div class="mail-merge-tags"><span>{name}</span><span>{phone}</span><span>{email}</span><span>{date}</span><span>{hour}</span></div>
|
817 |
-
</div>
|
818 |
-
</div>
|
819 |
-
</div>
|
820 |
-
</div>
|
821 |
-
</div>
|
822 |
-
|
823 |
-
<?php if($this->is_pro()) { ?>
|
824 |
-
<div class="clear clearfix"></div>
|
825 |
-
<div class="Whatsapp-settings advanced-settings">
|
826 |
-
<!-- advance setting for Whatsapp -->
|
827 |
-
<div class="clear clearfix"></div>
|
828 |
-
<div class="chaty-setting-col">
|
829 |
-
<label>Pre Set Message <span class="icon label-tooltip inline-tooltip" data-label="Add your own pre-set message that's automatically added to the user's message. You can also use merge tags and add the URL or the title of the current visitor's page. E.g. you can add the current URL of a product to the message so you know which product the visitor is talking about when the visitor messages you"><span class="dashicons dashicons-editor-help"></span></span></label>
|
830 |
-
<div>
|
831 |
-
<?php $pre_set_message = isset($value['pre_set_message'])?$value['pre_set_message']:""; ?>
|
832 |
-
<input id="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[pre_set_message]" value="<?php esc_attr_e($pre_set_message) ?>" >
|
833 |
-
<span class="supported-tags"><span class="icon label-tooltip support-tooltip" data-label="{title} tag grabs the page title of the webpage">{title}</span> and <span class="icon label-tooltip support-tooltip" data-label="{url} tag grabs the URL of the page">{url}</span> tags are supported</span>
|
834 |
-
</div>
|
835 |
-
</div>
|
836 |
-
</div>
|
837 |
-
<div class="Email-settings advanced-settings">
|
838 |
-
<!-- advance setting for Email -->
|
839 |
-
<div class="clear clearfix"></div>
|
840 |
-
<div class="chaty-setting-col">
|
841 |
-
<label>Mail Subject <span class="icon label-tooltip inline-tooltip" data-label="Add your own pre-set message that's automatically added to the user's message. You can also use merge tags and add the URL or the title of the current visitor's page. E.g. you can add the current URL of a product to the message so you know which product the visitor is talking about when the visitor messages you"><span class="dashicons dashicons-editor-help"></span></span></label>
|
842 |
-
<div>
|
843 |
-
<?php $mail_subject = isset($value['mail_subject'])?$value['mail_subject']:""; ?>
|
844 |
-
<input id="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="text" name="cht_social_<?php echo esc_attr($social['slug']); ?>[mail_subject]" value="<?php esc_attr_e($mail_subject) ?>" >
|
845 |
-
<span class="supported-tags"><span class="icon label-tooltip support-tooltip" data-label="{title} tag grabs the page title of the webpage">{title}</span> and <span class="icon label-tooltip support-tooltip" data-label="{url} tag grabs the URL of the page">{url}</span> tags are supported</span>
|
846 |
-
</div>
|
847 |
-
</div>
|
848 |
-
</div>
|
849 |
-
<div class="WeChat-settings advanced-settings">
|
850 |
-
<!-- advance setting for WeChat -->
|
851 |
-
<?php
|
852 |
-
$qr_code = isset($value['qr_code'])?$value['qr_code']:""; // Initialize QR code value if not exists. 2.1.0 change
|
853 |
-
$imageUrl = "";
|
854 |
-
$status = 0;
|
855 |
-
if($qr_code != "") {
|
856 |
-
$imageUrl = wp_get_attachment_image_src($qr_code, "full")[0]; // get custom Image URL if exists
|
857 |
-
}
|
858 |
-
if($imageUrl == "") {
|
859 |
-
$imageUrl = plugin_dir_url("")."chaty/admin/assets/images/chaty-default.png"; // Initialize with default image URL if URL is not exists
|
860 |
-
} else {
|
861 |
-
$status = 1;
|
862 |
-
}
|
863 |
-
?>
|
864 |
-
<div class="clear clearfix"></div>
|
865 |
-
<div class="chaty-setting-col">
|
866 |
-
<label>Upload QR Code</label>
|
867 |
-
<div>
|
868 |
-
<!-- Button to upload QR Code image -->
|
869 |
-
<a class="cht-upload-image <?php esc_attr_e(($status)?"active":"") ?>" id="upload_qr_code" href="javascript:;" onclick="upload_qr_code('<?php echo esc_attr($social['slug']); ?>')">
|
870 |
-
<img id="cht_social_image_src_<?php echo esc_attr($social['slug']); ?>" src="<?php echo esc_url($imageUrl) ?>" alt="<?php esc_attr_e($value['title']) ?>">
|
871 |
-
<span class="dashicons dashicons-upload"></span>
|
872 |
-
</a>
|
873 |
-
|
874 |
-
<!-- Button to remove QR Code image -->
|
875 |
-
<a href="javascript:;" class="remove-qr-code remove-qr-code-<?php echo esc_attr($social['slug']); ?> <?php esc_attr_e(($status)?"active":"") ?>" onclick="remove_qr_code('<?php echo esc_attr($social['slug']); ?>')"><span class="dashicons dashicons-no-alt"></span></a>
|
876 |
-
|
877 |
-
<!-- input hidden field for QR Code -->
|
878 |
-
<input id="upload_qr_code_val-<?php echo esc_attr($social['slug']); ?>" type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[qr_code]" value="<?php esc_attr_e($qr_code) ?>" >
|
879 |
-
</div>
|
880 |
-
</div>
|
881 |
-
</div>
|
882 |
-
<div class="Link-settings Custom_Link-settings Custom_Link_3-settings Custom_Link_4-settings Custom_Link_5-settings advanced-settings">
|
883 |
-
<?php $is_checked = (!isset($value['new_window']) || $value['new_window'] == 1)?1:0; ?>
|
884 |
-
<!-- Advance setting for Custom Link -->
|
885 |
-
<div class="clear clearfix"></div>
|
886 |
-
<div class="chaty-setting-col">
|
887 |
-
<label >Open In a New Tab</label>
|
888 |
-
<div>
|
889 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[new_window]" value="0" >
|
890 |
-
<label class="channels__view" for="cht_social_window_<?php echo esc_attr($social['slug']); ?>">
|
891 |
-
<input id="cht_social_window_<?php echo esc_attr($social['slug']); ?>" type="checkbox" class="channels__view-check" name="cht_social_<?php echo esc_attr($social['slug']); ?>[new_window]" value="1" <?php checked($is_checked, 1) ?> >
|
892 |
-
<span class="channels__view-txt"> </span>
|
893 |
-
</label>
|
894 |
-
</div>
|
895 |
-
</div>
|
896 |
-
</div>
|
897 |
-
<div class="Linkedin-settings advanced-settings">
|
898 |
-
<?php $is_checked = isset($value['link_type'])?$value['link_type']:"personal"; ?>
|
899 |
-
<!-- Advance setting for Custom Link -->
|
900 |
-
<div class="clear clearfix"></div>
|
901 |
-
<div class="chaty-setting-col">
|
902 |
-
<label >LinkedIn</label>
|
903 |
-
<div>
|
904 |
-
<label>
|
905 |
-
<input type="radio" <?php checked($is_checked, "personal") ?> name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_type]" value="personal">
|
906 |
-
Personal
|
907 |
-
</label>
|
908 |
-
<label>
|
909 |
-
<input type="radio" <?php checked($is_checked, "company") ?> name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_type]" value="company">
|
910 |
-
Company
|
911 |
-
</label>
|
912 |
-
</div>
|
913 |
-
</div>
|
914 |
-
</div>
|
915 |
-
<?php } else { ?>
|
916 |
-
<div class="clear clearfix"></div>
|
917 |
-
<div class="Whatsapp-settings advanced-settings">
|
918 |
-
<?php $pre_set_message = isset($value['pre_set_message'])?$value['pre_set_message']:""; ?>
|
919 |
-
<div class="clear clearfix"></div>
|
920 |
-
<div class="chaty-setting-col">
|
921 |
-
<label>Pre Set Message <span class="icon label-tooltip inline-tooltip" data-label="Add your own pre-set message that's automatically added to the user's message. You can also use merge tags and add the URL or the title of the current visitor's page. E.g. you can add the current URL of a product to the message so you know which product the visitor is talking about when the visitor messages you"><span class="dashicons dashicons-editor-help"></span></span></label>
|
922 |
-
<div>
|
923 |
-
<div class="pro-features">
|
924 |
-
<div class="pro-item">
|
925 |
-
<div class="pre-message-whatsapp">
|
926 |
-
<input disabled id="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="text" name="" value="<?php esc_attr_e($pre_set_message) ?>" >
|
927 |
-
<span class="supported-tags"><span class="icon label-tooltip support-tooltip" data-label="{title} tag grabs the page title of the webpage">{title}</span> and <span class="icon label-tooltip support-tooltip" data-label="{url} tag grabs the URL of the page">{url}</span> tags are supported</span>
|
928 |
-
<button data-button="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"></path><path d="M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"></path></svg></button>
|
929 |
-
</div>
|
930 |
-
</div>
|
931 |
-
<div class="pro-button">
|
932 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>"><?php esc_attr_e('Upgrade to Pro', CHT_OPT);?></a>
|
933 |
-
</div>
|
934 |
-
</div>
|
935 |
-
</div>
|
936 |
-
</div>
|
937 |
-
</div>
|
938 |
-
<div class="Email-settings advanced-settings">
|
939 |
-
<div class="clear clearfix"></div>
|
940 |
-
<div class="chaty-setting-col">
|
941 |
-
<label>Mail Subject <span class="icon label-tooltip inline-tooltip" data-label="Add your own pre-set message that's automatically added to the user's message. You can also use merge tags and add the URL or the title of the current visitor's page. E.g. you can add the current URL of a product to the message so you know which product the visitor is talking about when the visitor messages you"><span class="dashicons dashicons-editor-help"></span></span></label>
|
942 |
-
<div>
|
943 |
-
<div class="pro-features">
|
944 |
-
<div class="pro-item">
|
945 |
-
<input disabled id="cht_social_message_<?php echo esc_attr($social['slug']); ?>" type="text" name="" value="" >
|
946 |
-
<span class="supported-tags"><span class="icon label-tooltip support-tooltip" data-label="{title} tag grabs the page title of the webpage">{title}</span> and <span class="icon label-tooltip support-tooltip" data-label="{url} tag grabs the URL of the page">{url}</span> tags are supported</span>
|
947 |
-
</div>
|
948 |
-
<div class="pro-button">
|
949 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>"><?php esc_attr_e('Upgrade to Pro', CHT_OPT);?></a>
|
950 |
-
</div>
|
951 |
-
</div>
|
952 |
-
</div>
|
953 |
-
</div>
|
954 |
-
</div>
|
955 |
-
<div class="WeChat-settings advanced-settings">
|
956 |
-
<div class="clear clearfix"></div>
|
957 |
-
<div class="chaty-setting-col">
|
958 |
-
<label>Upload QR Code</label>
|
959 |
-
<div>
|
960 |
-
<a target="_blank" class="cht-upload-image-pro" id="upload_qr_code" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>" >
|
961 |
-
<span class="dashicons dashicons-upload"></span>
|
962 |
-
</a>
|
963 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl());?>"><?php esc_attr_e('Upgrade to Pro', CHT_OPT);?></a>
|
964 |
-
</div>
|
965 |
-
</div>
|
966 |
-
</div>
|
967 |
-
<div class="Link-settings Custom_Link-settings Custom_Link_3-settings Custom_Link_4-settings Custom_Link_5-settings advanced-settings">
|
968 |
-
<?php $is_checked = 1; ?>
|
969 |
-
<div class="clear clearfix"></div>
|
970 |
-
<div class="chaty-setting-col">
|
971 |
-
<label >Open In a New Tab</label>
|
972 |
-
<div>
|
973 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[new_window]" value="0" >
|
974 |
-
<label class="channels__view" for="cht_social_window_<?php echo esc_attr($social['slug']); ?>">
|
975 |
-
<input id="cht_social_window_<?php echo esc_attr($social['slug']); ?>" type="checkbox" class="channels__view-check" name="cht_social_<?php echo esc_attr($social['slug']); ?>[new_window]" value="1" checked >
|
976 |
-
<span class="channels__view-txt"> </span>
|
977 |
-
</label>
|
978 |
-
</div>
|
979 |
-
</div>
|
980 |
-
</div>
|
981 |
-
<div class="Linkedin-settings advanced-settings">
|
982 |
-
<?php $is_checked = "personal"; ?>
|
983 |
-
<!-- Advance setting for Custom Link -->
|
984 |
-
<div class="clear clearfix"></div>
|
985 |
-
<div class="chaty-setting-col">
|
986 |
-
<label >LinkedIn</label>
|
987 |
-
<div>
|
988 |
-
<label>
|
989 |
-
<input type="radio" <?php checked($is_checked, "personal") ?> name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_type]" value="personal">
|
990 |
-
Personal
|
991 |
-
</label>
|
992 |
-
<label>
|
993 |
-
<input type="radio" <?php checked($is_checked, "company") ?> name="cht_social_<?php echo esc_attr($social['slug']); ?>[link_type]" value="company">
|
994 |
-
Company
|
995 |
-
</label>
|
996 |
-
</div>
|
997 |
-
</div>
|
998 |
-
</div>
|
999 |
-
<?php } ?>
|
1000 |
-
|
1001 |
-
<?php $use_whatsapp_web = isset($value['use_whatsapp_web'])?$value['use_whatsapp_web']:"yes"; ?>
|
1002 |
-
<div class="Whatsapp-settings advanced-settings">
|
1003 |
-
<div class="clear clearfix"></div>
|
1004 |
-
<div class="chaty-setting-col">
|
1005 |
-
<label>Whatsapp Web</label>
|
1006 |
-
<input type="hidden" name="cht_social_<?php echo esc_attr($social['slug']); ?>[use_whatsapp_web]" value="no" />
|
1007 |
-
<div>
|
1008 |
-
<div class="checkbox">
|
1009 |
-
<label for="cht_social_<?php echo esc_attr($social['slug']); ?>_use_whatsapp_web" class="chaty-checkbox">
|
1010 |
-
<input class="sr-only" type="checkbox" id="cht_social_<?php echo esc_attr($social['slug']); ?>_use_whatsapp_web" name="cht_social_<?php echo esc_attr($social['slug']); ?>[use_whatsapp_web]" value="yes" <?php echo checked($use_whatsapp_web, "yes") ?> />
|
1011 |
-
<span></span>
|
1012 |
-
Use Whatsapp Web directly on desktop
|
1013 |
-
</label>
|
1014 |
-
</div>
|
1015 |
-
</div>
|
1016 |
-
</div>
|
1017 |
-
</div>
|
1018 |
-
</div>
|
1019 |
-
<!-- advance setting fields: end -->
|
1020 |
-
|
1021 |
-
|
1022 |
-
<!-- remove social media setting button: start -->
|
1023 |
-
<button type="button" class="btn-cancel" data-social="<?php echo esc_attr($social['slug']); ?>">
|
1024 |
-
<svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
|
1025 |
-
<rect width="15.6301" height="2.24494" rx="1.12247" transform="translate(2.26764 0.0615997) rotate(45)" fill="white"/>
|
1026 |
-
<rect width="15.6301" height="2.24494" rx="1.12247" transform="translate(13.3198 1.649) rotate(135)" fill="white"/>
|
1027 |
-
</svg>
|
1028 |
-
</button>
|
1029 |
-
<!-- remove social media setting button: end -->
|
1030 |
-
</div>
|
1031 |
-
</li>
|
1032 |
-
<!-- Social media setting box: end -->
|
1033 |
-
<?php } ?>
|
1034 |
<?php } ?>
|
1035 |
<?php }; ?>
|
1036 |
<?php
|
@@ -1058,7 +417,7 @@ if (!defined('ABSPATH')) {
|
|
1058 |
<input type="text" class="channels__input" name="cht_close_button_text" value="<?php echo esc_attr($text) ?>" data-gramm_editor="false" >
|
1059 |
</div>
|
1060 |
<div class="input-example cls-btn-settings active">
|
1061 |
-
<?php
|
1062 |
</div>
|
1063 |
</div>
|
1064 |
</div>
|
@@ -1070,12 +429,12 @@ if (!defined('ABSPATH')) {
|
|
1070 |
|
1071 |
</div>
|
1072 |
|
1073 |
-
<input type="hidden" id="is_pro_plugin" value="<?php
|
1074 |
<?php if ($this->is_pro() && $this->is_expired()) : ?>
|
1075 |
<div class="popover">
|
1076 |
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl()); ?>">
|
1077 |
-
<?php
|
1078 |
-
<strong><?php
|
1079 |
</a>
|
1080 |
</div>
|
1081 |
<?php endif; ?>
|
@@ -1084,17 +443,17 @@ if (!defined('ABSPATH')) {
|
|
1084 |
<div class="chaty-sticky-buttons">
|
1085 |
<!-- form sticky save button -->
|
1086 |
<button class="btn-save-sticky">
|
1087 |
-
<span><?php
|
1088 |
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
1089 |
<path d="M21.5 0.5H0.5V27.5H27.5V6.5L21.5 0.5ZM14 24.5C11.51 24.5 9.5 22.49 9.5 20C9.5 17.51 11.51 15.5 14 15.5C16.49 15.5 18.5 17.51 18.5 20C18.5 22.49 16.49 24.5 14 24.5ZM18.5 9.5H3.5V3.5H18.5V9.5Z" fill="white"/>
|
1090 |
</svg>
|
1091 |
</button>
|
1092 |
|
1093 |
<!-- chaty help button -->
|
1094 |
-
<a class="btn-help"><?php
|
1095 |
|
1096 |
<!-- chaty preview button -->
|
1097 |
-
<a href="javascript:;" class="preview-help-btn"><?php
|
1098 |
</div>
|
1099 |
|
1100 |
</section>
|
53 |
<path id="Path_1925" data-name="Path 1925" d="M120.105,28.251a1.183,1.183,0,1,0,.838.347A1.189,1.189,0,0,0,120.105,28.251Z" transform="translate(-96.119 -14.809)" fill="#fff"></path>
|
54 |
</svg>
|
55 |
<div class="preview" id="admin-preview">
|
56 |
+
<div class="h2"><span class="header-tooltip"><span class="header-tooltip-text">Please make all your live tests in <a href="https://www.computerworld.com/article/3356840/how-to-go-incognito-in-chrome-firefox-safari-and-edge.html" target="_blank">incognito mode</a>. Some of the features like call to action, attention effect, and trigger will appear for your website visitors just once until they engage with the chat widget, so to emulate it you'll need to use incognito mode</span> <span class="dashicons dashicons-editor-help"></span></span><?php echo esc_attr('Preview', CHT_OPT); ?>:</div>
|
57 |
|
58 |
<div class="page">
|
59 |
<div class="page-header">
|
113 |
$cht_cta = ($cht_cta)?$cht_cta:"Contact Us";
|
114 |
$widget_icon = get_option('widget_icon');
|
115 |
?>
|
116 |
+
<div class="chaty-widget chaty-widget-icons-<?php echo esc_attr($cht_position) ?>" style="<?php echo esc_attr($position); ?>">
|
117 |
<div class="icon icon-xs active tooltip-show tooltip" data-label="<?php echo esc_attr($cht_cta) ?>" data-label="<?php echo esc_attr($cht_cta) ?>">
|
118 |
<div class="chaty-channels"></div>
|
119 |
<i id="iconWidget">
|
125 |
.st1 { fill: #FFFFFF; }
|
126 |
.st0 { fill: #808080; }
|
127 |
</style>
|
128 |
+
<g><circle cx="-469" cy="534.7" r="27" fill="<?php echo esc_attr($fill) ?>"/></g>
|
129 |
<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"/>
|
130 |
<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"/>
|
131 |
<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"/>
|
138 |
.st2 { fill: none; stroke: #808080; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
|
139 |
</style>
|
140 |
<g>
|
141 |
+
<circle cx="-469.8" cy="534.1" r="27" fill="<?php echo esc_attr($fill) ?>"/>
|
142 |
</g>
|
143 |
<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.2 c0.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"/>
|
144 |
<path class="st2" d="M-476.5,537.3c2.5,1.1,8.5,2.1,13-2.7"/>
|
152 |
fill: #FFFFFF;
|
153 |
}</style>
|
154 |
<g>
|
155 |
+
<circle cx="-469.9" cy="534.1" r="27" fill="<?php echo esc_attr($fill) ?>"/>
|
156 |
</g>
|
157 |
<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"/>
|
158 |
</svg>
|
163 |
fill: #FFFFFF;
|
164 |
}</style>
|
165 |
<g>
|
166 |
+
<circle cx="-469" cy="534.1" r="27" fill="<?php echo esc_attr($fill) ?>"/>
|
167 |
</g>
|
168 |
<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.2 c0.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"/>
|
169 |
<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.2 c0.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"/>
|
173 |
<img src="<?php echo esc_url($this->getCustomWidgetImg()); ?>"/>
|
174 |
<?php else: ?>
|
175 |
<style type="text/css">.st1 {fill: #FFFFFF;}.st0{fill: #a886cd;}</style>
|
176 |
+
<g><circle cx="-469" cy="534.7" r="27" fill="<?php echo esc_attr($fill) ?>"/></g>
|
177 |
<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"/>
|
178 |
<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"/>
|
179 |
<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"/>
|
190 |
//$cta = str_replace(array("\r", "\n"), "", $cta);
|
191 |
$cta = html_entity_decode($cta);
|
192 |
?>
|
193 |
+
<span id="cta-box" class="tooltiptext" style='display:<?php echo esc_attr($display_status) ?>'><span><?php echo esc_attr($cta); ?></span></span>
|
194 |
</div>
|
195 |
</div>
|
196 |
</div>
|
198 |
<div class="switch-preview">
|
199 |
<input data-gramm_editor="false" type="radio" id="previewDesktop" name="switchPreview" class="js-switch-preview switch-preview__input" checked="checked">
|
200 |
<label for="previewDesktop" class="switch-preview__label switch-preview__desktop">
|
201 |
+
<?php echo esc_attr('Desktop', CHT_OPT); ?>
|
202 |
</label>
|
203 |
<input data-gramm_editor="false" type="radio" id="previewMobile" name="switchPreview" class="js-switch-preview switch-preview__input">
|
204 |
<label for="previewMobile" class="switch-preview__label switch-preview__mobile">
|
205 |
+
<?php echo esc_attr('Mobile', CHT_OPT); ?>
|
206 |
</label>
|
207 |
</div>
|
208 |
</div>
|
209 |
</div>
|
210 |
<?php $pro_id = $this->is_pro()?"pro":""; ?>
|
211 |
+
<section class="section one chaty-setting-form" id="<?php echo esc_attr($pro_id) ?>" xmlns="http://www.w3.org/1999/html">
|
212 |
<?php //if($this->widget_index != "" || $this->get_total_widgets() > 0) {
|
213 |
$cht_widget_title = get_option("cht_widget_title");
|
214 |
if(isset($_GET['widget_title']) && empty(!$_GET['widget_title'])) {
|
216 |
}
|
217 |
?>
|
218 |
<div class="chaty-input">
|
219 |
+
<label for="cht_widget_title"><?php echo esc_attr('Name', CHT_OPT); ?></label>
|
220 |
+
<input id="cht_widget_title" type="text" name="cht_widget_title" value="<?php echo esc_attr($cht_widget_title) ?>">
|
221 |
</div>
|
222 |
<?php // } ?>
|
223 |
<h1 class="section-title">
|
224 |
+
<strong><?php echo esc_attr('Step', CHT_OPT); ?> 1:</strong> <?php echo esc_attr('Choose your channels', CHT_OPT); ?>
|
225 |
</h1>
|
226 |
<?php
|
227 |
$social_app = get_option('cht_numb_slug');
|
241 |
$active_class = 'active';
|
242 |
}
|
243 |
endforeach; ?>
|
244 |
+
<div class="icon icon-sm chat-channel-<?php echo esc_attr($social['slug']); ?> <?php echo esc_attr($active_class) ?>" data-social="<?php echo esc_attr($social['slug']); ?>" data-label="<?php echo esc_attr($social['title']); ?>" >
|
245 |
<span class="icon-box">
|
246 |
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
247 |
<?php echo $social['svg']; ?>
|
258 |
<div class="popover" style="">
|
259 |
<a class="upgrade-link" target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl()); ?>">
|
260 |
You can use any two channels in the free version.<br/>Get unlimited channels in the Pro plan
|
261 |
+
<strong><?php echo esc_attr('Upgrade Now', CHT_OPT); ?></strong>
|
262 |
</a>
|
263 |
</div>
|
264 |
<?php endif; ?>
|
265 |
+
<input type="hidden" class="add_slug" name="cht_numb_slug" placeholder="test" value="<?php echo esc_attr(get_option('cht_numb_slug')); ?>" id="cht_numb_slug" >
|
266 |
|
267 |
<div class="channels-selected" id="channels-selected-list">
|
268 |
<ul id="channels-selected-list" class="channels-selected-list channels-selected">
|
388 |
if($channel_type == "Telegram") {
|
389 |
$value['value'] = trim($value['value'], "@");
|
390 |
}
|
391 |
+
include "channel.php";
|
392 |
+
} ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
<?php } ?>
|
394 |
<?php }; ?>
|
395 |
<?php
|
417 |
<input type="text" class="channels__input" name="cht_close_button_text" value="<?php echo esc_attr($text) ?>" data-gramm_editor="false" >
|
418 |
</div>
|
419 |
<div class="input-example cls-btn-settings active">
|
420 |
+
<?php echo esc_attr('On hover Close button text', CHT_OPT); ?>
|
421 |
</div>
|
422 |
</div>
|
423 |
</div>
|
429 |
|
430 |
</div>
|
431 |
|
432 |
+
<input type="hidden" id="is_pro_plugin" value="<?php echo esc_attr($this->is_pro()?"1":"0"); ?>" />
|
433 |
<?php if ($this->is_pro() && $this->is_expired()) : ?>
|
434 |
<div class="popover">
|
435 |
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl()); ?>">
|
436 |
+
<?php echo esc_attr('Your Pro Plan has expired. ', CHT_OPT); ?>
|
437 |
+
<strong><?php echo esc_attr('Upgrade Now', CHT_OPT); ?></strong>
|
438 |
</a>
|
439 |
</div>
|
440 |
<?php endif; ?>
|
443 |
<div class="chaty-sticky-buttons">
|
444 |
<!-- form sticky save button -->
|
445 |
<button class="btn-save-sticky">
|
446 |
+
<span><?php echo esc_attr('Save', CHT_OPT); ?></span>
|
447 |
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
448 |
<path d="M21.5 0.5H0.5V27.5H27.5V6.5L21.5 0.5ZM14 24.5C11.51 24.5 9.5 22.49 9.5 20C9.5 17.51 11.51 15.5 14 15.5C16.49 15.5 18.5 17.51 18.5 20C18.5 22.49 16.49 24.5 14 24.5ZM18.5 9.5H3.5V3.5H18.5V9.5Z" fill="white"/>
|
449 |
</svg>
|
450 |
</button>
|
451 |
|
452 |
<!-- chaty help button -->
|
453 |
+
<a class="btn-help"><?php echo esc_attr('help', CHT_OPT); ?><span>?</span></a>
|
454 |
|
455 |
<!-- chaty preview button -->
|
456 |
+
<a href="javascript:;" class="preview-help-btn"><?php echo esc_attr('Preview', CHT_OPT); ?></a>
|
457 |
</div>
|
458 |
|
459 |
</section>
|