(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return c.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:c,path:o,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),o=r?n+"/"+r:n),"string"==typeof o&&(-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),c=t+o),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||o||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},c=[];function o(e,t={}){const{target:a,scope:r=e,...c}=t;if(void 0===e.wpcf7?.schema)return;const o={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where(input, textarea, select):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(o,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const c=t.dataset.name;if(n.has(c)){const{error:t,validInputs:a}=n.get(c);i(e,c),void 0!==t&&s(e,c,t,{scope:r}),l(e,c,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{c.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...c}=null!=n?n:{},o=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",o),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",o),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const c=new FormData(e);t.submitter&&t.submitter.name&&c.append(t.submitter.name,t.submitter.value);const o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(c,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:c};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((t=>{const r=n(e,t.status);return o.status=t.status,o.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,o):["sent","failed"].includes(r)&&a(e,`mail${r}`,o),a(e,"submit",o),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:c}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),c.apiResponse=t,a(e,"reset",c)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),c=t(e.getAttribute("data-minimum-value")),o=e.classList.contains("down")?n-a.value.trim().length:a.value.trim().length;e.setAttribute("data-current-value",o),e.innerText=o,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),c&&a.value.length<c?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),c=e.querySelector(`[name="${r}"]`);c&&(c.value=c.defaultValue,a(n,c),t.init&&c.addEventListener("keyup",(e=>{a(n,c)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:o,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})();
function show_sticky_chat_widget(t){if(void 0!==t){const s=jQuery("#gsb-buttons-"+t);s.length&&(s.hasClass("open-form")?s.addClass("active").removeClass("open-form").addClass("open-buttons"):s.hasClass("open-whatsapp-popup")?s.addClass("active").removeClass("open-whatsapp-popup").addClass("open-buttons"):s.hasClass("open-wechat-popup")?s.addClass("active").removeClass("open-wechat-popup").addClass("open-buttons"):s.hasClass("active")&&"none"===s.css("display")?(s.show().addClass("open-buttons"),setSCWCookie("gsb-button-view-"+t,!0,2)):s.addClass("active").addClass("open-buttons"))}else{const t=jQuery(".gsb-buttons:eq(0)"),s=t.data("id");t.hasClass("open-form")?t.addClass("active").removeClass("open-form").addClass("open-buttons"):t.hasClass("open-whatsapp-popup")?t.addClass("active").removeClass("open-whatsapp-popup").addClass("open-buttons"):t.hasClass("open-wechat-popup")?t.addClass("active").removeClass("open-wechat-popup").addClass("open-buttons"):t.hasClass("active")&&"none"===t.css("display")?(t.show().addClass("open-buttons"),setSCWCookie("gsb-button-view-"+s,!0,2)):t.addClass("active").addClass("open-buttons")}}function hide_sticky_chat_widget(){jQuery(".gsb-buttons").removeClass("open-buttons")}function show_scw_contact_form(t){if(void 0!==t){var s=jQuery("#gsb-buttons-"+t);s.hasClass("open-buttons")?s.addClass("active").removeClass("open-buttons").addClass("open-form"):s.hasClass("open-whatsapp-popup")?s.addClass("active").removeClass("open-whatsapp-popup").addClass("open-form"):s.hasClass("open-wechat-popup")?s.addClass("active").removeClass("open-wechat-popup").addClass("open-form"):s.hasClass("active")&&"none"===s.css("display")?(s.show().addClass("open-form"),setSCWCookie("gsb-button-view-"+t,!0,2)):s.addClass("active").addClass("open-form")}else{var o=jQuery(".gsb-buttons:eq(0)"),e=o.data("id");o.hasClass("open-buttons")?o.addClass("active").removeClass("open-buttons").addClass("open-form"):o.hasClass("open-whatsapp-popup")?o.addClass("active").removeClass("open-whatsapp-popup").addClass("open-form"):o.hasClass("open-wechat-popup")?o.addClass("active").removeClass("open-wechat-popup").addClass("open-form"):o.hasClass("active")&&"none"===o.css("display")?(o.show().addClass("open-form"),setSCWCookie("gsb-button-view-"+e,!0,2)):o.addClass("active").addClass("open-form")}}function hide_scw_contact_form(){jQuery(".gsb-buttons").removeClass("open-form")}function setSCWCookie(t,s,o){var e=new Date;e.setTime(e.getTime()+36e5*o),document.cookie=t+"="+s+";path=/;expires="+e.toGMTString()}(()=>{function t(s){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(s)}!function(s){"use strict";var o,e=!1,n=!1,i=0,a=!0,b="",l="",r=0;function c(t,s,o){var e=s;s=parseInt(s-parseInt(.15*s))+15;var n,i=0,a=1.2,b=-1.5,l=1,r=0;do{b=Math.round(s*Math.cos(.5*(r-i)*Math.PI/(l+1))),n=Math.round(s*Math.sin(.5*(r-i)*Math.PI/(l+1))),r++,b<0&&(i=--r,a+=.9,l+=1)}while(r<=t);return b*=a,n*=a,n=parseFloat(n)-parseFloat(.15*e),"right"==o&&(b=parseFloat(b)-parseFloat(.15*e)),[b,n]}function g(t,o,n){var i="",a=1==t.contact_form_setting.is_redirect?t.contact_form_setting.redirect_url:"",b=1==t.contact_form_setting.is_redirect_new_tab?"blank":"";i+="<form class='scw-contact-form' id='scw_contact_form_"+o+"' data_target='"+b+"'>",i+="<div class='scw-form-container'>",i+="<div class='scw-form-close'><span class='dashicons dashicons-arrow-down-alt2'></span></div>",i+="<div class='scw-form-title'>"+t.contact_form_setting.form_title+"</div>",i+="<div class='scw-form'>",i+="<div class='scw-form-body'>",s.each(t.contact_form_setting.fields,(function(t,s){if("1"==s.is_visible){var e="",n="";"1"==s.is_required&&(e="is-require",n="<span> *</span>"),i+="<div class='scw-form-field'>","consent_checkbox"!=t&&(i+="<label for='"+o+"contact_form_"+t+"'>"+s.label+n+"</label>"),"message"==t?i+="<textarea id='"+o+"contact_form_"+t+"' data-name='"+t+"' name='scw_form_fields["+t+"]' class='scw-field scw-field-"+t+" "+e+"' placeholder='"+s.placeholder_text+"'></textarea>":"consent_checkbox"==t?(i+="<div class='d-flex consent-check-box'>",i+="<input type='checkbox' name='scw_consent_checkbox' class='scw-field sr-only scw-field-"+t+" "+e+"' data-name='"+t+"' id='"+o+"contact_form_"+t+"'>",i+="<label for='"+o+"contact_form_"+t+"'>"+s.placeholder_text+"</label>",i+="</div>"):i+="<input id='"+o+"contact_form_"+t+"' data-name='"+t+"' type='text' name='scw_form_fields["+t+"]' class='scw-field scw-field-"+t+" "+e+"' placeholder='"+s.placeholder_text+"' autocomplete='off'>","1"==s.is_required&&(i+="<span class='error-msg'>"+s.required_msg+"</span>"),"email"==t&&(i+="<span class='error-msg-valid'>Please enter valid email</span>"),"phone"==t&&(i+="<span class='error-msg-valid'>Please enter valid Phone</span>"),i+="</div>"}})),i+="</div>",i+="<div class='scw-form-btn'>",i+="<button type='submit'>"+t.contact_form_setting.btn_text+"</button>",i+="</div>";var l="",r="";1==t.contact_form_setting.is_close_aftr_submit&&(r="success-close-msg",l="data_close_sec='"+t.contact_form_setting.close_after_sec+"'"),i+="<div class='scw-form-success success-open-msg "+r+"' "+l+">",i+=t.contact_form_setting.success_msg,i+="</div>",i+="</div>",i+="</div>",i+="<input type='hidden' name='action' value='scw_save_form_data'>",i+="<input type='hidden' name='nonce' value='"+gsb_settings.form_data_nonce+"'>",i+="<input type='hidden' name='call_back_url' value='"+a+"'>",i+="<input type='hidden' name='scw_form_fields[page_url]' value='"+window.location.href+"'>",i+="<input type='hidden' name='scw_form_fields[widget_id]' value='"+o+"'>",i+="<input type='hidden' name='scw_form_fields[is_from_mobile]' value='"+e+"'>",i+="</form>";var c="chat-button-link",g="";d(n)&&(g=t.title);var p="<div class='gsb-trigger-contact'><a href='"+t.href+"' data-scb='"+g+"' target='"+t.target+"' class='scb-tooltip "+c+" gsb-social-channel' id='' data-channel='"+t.channel+"'><span class='sr-only'>"+t.title+'</span><span class="chat-button-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="#ffffff" viewBox="0 0 30 30" width="90" height="90"><path d="M7 4c-.256 0-.512.097-.707.293l-2 2a1 1 0 0 0 0 1.414L11.586 15l-7.293 7.293a1 1 0 0 0 0 1.414l2 2a1 1 0 0 0 1.414 0L15 18.414l7.293 7.293a1 1 0 0 0 1.414 0l2-2a1 1 0 0 0 0-1.414L18.414 15l7.293-7.293a1 1 0 0 0 0-1.414l-2-2a1 1 0 0 0-1.414 0L15 11.586 7.707 4.293C7.512 4.097 7.256 4 7 4z"></path></svg></span></a></div>';s("#gsb-buttons-"+o+" .gsb-trigger .gsb-trigger-button").append(p),s("#gsb-buttons-"+o+" .gsb-trigger .gsb-trigger-button a.channel-contact_form span").removeClass(c);var u="<style>";return u+="#gsb-buttons-"+o+" .scw-contact-form .scw-form-btn button { background-color:"+t.contact_form_setting.btn_bg_color+";color:"+t.contact_form_setting.btn_color+" }",u+="#gsb-buttons-"+o+" .scw-contact-form .consent-check-box input:checked + label:before { background-color:"+t.contact_form_setting.btn_bg_color+";border-color:"+t.contact_form_setting.btn_bg_color+";color:"+t.contact_form_setting.btn_color+" }",u+="#gsb-buttons-"+o+" .scw-contact-form .scw-form-btn button:hover { background-color:"+t.contact_form_setting.btn_bg_hover_color+";color:"+t.contact_form_setting.btn_hover_color+" }",u+="</style>",s("head").append(u),i}function p(t,o,n){var i,a=new Date,b=a.getMinutes()<10?"0"+a.getMinutes():a.getMinutes(),l=(a.getHours()<10?"0"+a.getHours():a.getHours())+":"+b;i=e?"https://wa.me/"+t.value:"https://web.whatsapp.com/send";var r="";""==t.whatsapp_popup_setting.user_profile_image&&(r="no-user-profile");var c="";c+='<div class="whatsapp-popup" id="'+t.channel+'_popup">',c+='<div class="whatsapp-popup-header">',c+='<div class="whatsapp-profile">',""!=t.whatsapp_popup_setting.custom_whatsapp_profile?c+='<img src="'+t.whatsapp_popup_setting.custom_whatsapp_profile+'" alt="Profile image">':c+='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="33" viewBox="0 0 32 33" fill="none"> <g filter="url(#filter0_f_9477_7201)"> <path d="M9.95924 25.2858L10.3674 25.5276C12.0818 26.545 14.0475 27.0833 16.052 27.0842H16.0562C22.2122 27.0842 27.2221 22.0753 27.2247 15.919C27.2258 12.9357 26.0652 10.1303 23.9565 8.01998C22.9223 6.97924 21.6919 6.15397 20.3365 5.59195C18.9812 5.02992 17.5278 4.74231 16.0606 4.74576C9.89989 4.74576 4.88975 9.75407 4.88756 15.91C4.88453 18.0121 5.47648 20.0722 6.59498 21.852L6.86071 22.2742L5.73223 26.394L9.95924 25.2858ZM2.50586 29.5857L4.41235 22.6249C3.23657 20.5878 2.618 18.2768 2.61873 15.9091C2.62183 8.50231 8.64941 2.47656 16.0564 2.47656C19.6508 2.47839 23.0245 3.87717 25.5618 6.41629C28.0991 8.95542 29.4952 12.3305 29.4939 15.9199C29.4906 23.3262 23.4621 29.353 16.0562 29.353H16.0504C13.8016 29.3521 11.592 28.788 9.62923 27.7177L2.50586 29.5857Z" fill="#B3B3B3"/> </g> <path d="M2.36719 29.447L4.27368 22.4862C3.09587 20.4442 2.47721 18.1278 2.48005 15.7705C2.48316 8.36364 8.51074 2.33789 15.9177 2.33789C19.5121 2.33972 22.8859 3.73849 25.4232 6.27762C27.9605 8.81675 29.3565 12.1918 29.3552 15.7812C29.3519 23.1875 23.3234 29.2143 15.9175 29.2143H15.9117C13.663 29.2134 11.4533 28.6493 9.49056 27.5791L2.36719 29.447Z" fill="white"/> <path d="M15.715 3.84769C9.17146 3.84769 3.85 9.16696 3.84767 15.7051C3.84445 17.9377 4.47318 20.1257 5.66119 22.016L5.94343 22.4646L4.48888 27.2525L9.23469 25.663L9.66824 25.9199C11.4891 27.0005 13.5769 27.5719 15.7061 27.5731H15.7105C22.249 27.5731 27.5705 22.2532 27.573 15.7146C27.5779 14.1562 27.2737 12.6123 26.6778 11.1722C26.082 9.73214 25.2064 8.42458 24.1017 7.3252C23.0032 6.21981 21.6963 5.34329 20.2567 4.74637C18.8171 4.14946 17.2734 3.844 15.715 3.84769Z" fill="#25D366"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M12.0858 9.60401C11.8138 9.00922 11.5276 8.99717 11.2692 8.98687L10.5736 8.97852C10.3316 8.97852 9.93846 9.0679 9.60608 9.42544C9.27369 9.78297 8.33594 10.6471 8.33594 12.4046C8.33594 14.1622 9.63628 15.8605 9.81747 16.0991C9.99866 16.3377 12.3277 20.0594 16.0162 21.4913C19.0813 22.6813 19.705 22.4446 20.3706 22.3852C21.0361 22.3257 22.5175 21.521 22.8197 20.6869C23.1219 19.8527 23.1221 19.138 23.0315 18.9886C22.9409 18.8391 22.6989 18.7503 22.3357 18.5716C21.9725 18.3928 20.1888 17.5287 19.8562 17.4094C19.5236 17.2901 19.2818 17.2308 19.0396 17.5883C18.7975 17.9459 18.1029 18.7501 17.8911 18.9886C17.6793 19.227 17.4679 19.2569 17.1047 19.0783C16.7416 18.8998 15.5731 18.5224 14.1867 17.3054C13.108 16.3585 12.3799 15.1892 12.1679 14.8318C11.9559 14.4745 12.1454 14.2809 12.3274 14.1029C12.4902 13.9428 12.6901 13.6858 12.8719 13.4773C13.0537 13.2688 13.1135 13.1197 13.2343 12.8817C13.3551 12.6437 13.2949 12.4346 13.2041 12.256C13.1133 12.0774 12.4083 10.3105 12.0858 9.60401Z" fill="white"/> <defs> <filter id="filter0_f_9477_7201" x="1.21611" y="1.18682" width="29.5678" height="29.6889" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="0.644873" result="effect1_foregroundBlur_9477_7201"/> </filter> </defs> </svg>',c+="</div>",c+='<div class="whatsapp-popup-title-section">',c+='<div class="whatsapp-popup-title">'+t.whatsapp_popup_setting.whatsapp_popup_title+"</div>",c+='<div class="whatsapp-popup-sub-title">'+t.whatsapp_popup_setting.whatsapp_popup_sub_title+"</div>",c+="</div>",c+='<div class="whatsapp-popup-close-btn"><span class="dashicons dashicons-arrow-down-alt2"></span></div>',c+="</div>",c+='<div class="whatsapp-popup-body">',""!=t.whatsapp_popup_setting.user_profile_image&&(c+="<img src='"+t.whatsapp_popup_setting.user_profile_image+"' class='wp-user-profile-img'>"),""!=t.whatsapp_popup_setting.whatsapp_popup_text&&(c+='<div class="whatsapp-chat '+r+'">',""!=t.whatsapp_popup_setting.user_name_to_display&&(c+='<div class="whatsapp-chat-user-name">'+t.whatsapp_popup_setting.user_name_to_display+"</div>"),c+='<div class="whatsapp-chat-content">'+t.whatsapp_popup_setting.whatsapp_popup_text+"</div>",c+='<div class="whatsapp-chat-time">'+l+"</div>",c+="</div>"),c+="</div>",c+='<form class="whatsapp-popup-form" id="whatsapp_popup_form_'+o+'" method="get" autocomplete="off" target="_blank" action="'+i+'">',c+='<div class="whatsapp-popup-footer">',c+='<label class="sr-only" for="'+o+'_scw_whatsapp_input">Whatsapp chat</label>',c+='<input type="text" name="text" id="'+o+'_scw_whatsapp_input" class="whatsapp-chat-input" value="'+t.whatsapp_message+'">',c+='<div class="whatsapp-form-btn">',c+='<button type="submit" class="whatsapp-send-btn">',c+='<svg viewBox="0 0 24 24" height="24" width="24"  version="1.1" x="0px" y="0px" enable-background="new 0 0 24 24"><title>send</title><path  d="M1.101,21.757L23.8,12.028L1.101,2.3l0.011,7.912l13.623,1.816L1.112,13.845 L1.101,21.757z"></path></svg>',c+='<span class="sr-only">Submit</span>',c+="</button>",c+='<input type="hidden" name="phone" value="'+t.value+'">',c+="</div>",c+="</div>",c+="</form>",c+="</div>";var g="chat-button-link",p="";d(n)&&(p=t.title);var u="<div class='gsb-trigger-whatsapp-popup'><a href='"+t.href+"' data-scb='"+p+"' target='"+t.target+"' class='scb-tooltip "+g+" gsb-social-channel' id='' data-channel='"+t.channel+"'><span class='sr-only'>"+t.title+'</span><span class="chat-button-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="#ffffff" viewBox="0 0 30 30" width="90" height="90"><path d="M7 4c-.256 0-.512.097-.707.293l-2 2a1 1 0 0 0 0 1.414L11.586 15l-7.293 7.293a1 1 0 0 0 0 1.414l2 2a1 1 0 0 0 1.414 0L15 18.414l7.293 7.293a1 1 0 0 0 1.414 0l2-2a1 1 0 0 0 0-1.414L18.414 15l7.293-7.293a1 1 0 0 0 0-1.414l-2-2a1 1 0 0 0-1.414 0L15 11.586 7.707 4.293C7.512 4.097 7.256 4 7 4z"></path></svg></span></a></div>';return s("#gsb-buttons-"+o+" .gsb-trigger .gsb-trigger-button").append(u),s("#gsb-buttons-"+o+" .gsb-trigger .gsb-trigger-button a.channel-whatsapp span").removeClass(g),c}function u(t,o,e){var n="";""!=t.wechat_popup_setting.wechat_qr_popup_heading&&""!=t.value&&(n=": ");var i="";i+='<div class="wechat-popup" id="'+t.channel+'_popup">',i+='<div class="wechat-popup-header">',i+='<div class="wechat-profile">',i+='<svg xmlns="http://www.w3.org/2000/svg" height="512" viewBox="0 0 24 24" width="512" style="color: rgb(255, 255, 255); fill: rgb(255, 255, 255);"><path d="M12.82 9.618c-7.242 3.732-2.425 13.745 6.6 11.13.842.327 1.592.857 2.408 1.25-.21-.7-.436-1.412-.676-2.11 2.8-1.995 3.414-4.818 2.38-7.138-1.616-3.677-6.776-5.183-10.72-3.133zm2.53 3.658c-.21.655-1.156.85-1.615.353-.506-.46-.31-1.424.355-1.63.734-.3 1.582.54 1.26 1.277zm4.78.094h.014c-.257.587-1.14.725-1.575.27-.21-.192-.27-.48-.344-.733.104-.46.42-.937.93-.96.705-.098 1.336.776.975 1.422z"></path><path d="M17.414 8.248c-.436-2.144-1.936-3.955-3.824-5h.027v-.001C6.917-.54-1.425 4.742.187 10.97c.433 1.848 1.71 3.397 3.262 4.43-.3.853-.585 1.706-.855 2.565L5.52 16.4c1.17.377 2.415.56 3.66.52-1.538-4.412 2.407-9.086 8.234-8.67zm-6.077-2.56c.785-.316 1.713.345 1.65 1.2L13 6.89c.008.965-1.275 1.567-1.995.913-.747-.538-.535-1.845.342-2.115zM6.932 7.134c-.172.838-1.29 1.243-1.946.68-.76-.537-.546-1.868.345-2.14.873-.338 1.865.552 1.6 1.46z"></path></svg>',i+="</div>",i+='<div class="wechat-popup-title-section">',i+='<div class="wechat-popup-title">'+t.wechat_popup_setting.wechat_qr_popup_heading+n+t.value+"</div>",i+="</div>",i+='<div class="wechat-popup-close-btn"><span class="dashicons dashicons-arrow-down-alt2"></span></div>',i+="</div>",i+='<div class="wechat-popup-body">',""!=t.wechat_popup_setting.wechat_qr_heading&&(i+='<div class="wechat-popup-qr-heading">'+t.wechat_popup_setting.wechat_qr_heading+":</div>"),i+='<div class="wechat-popup-qr-img">',i+='<img src="'+t.wechat_popup_setting.wechat_qr_img+'" alt="wechat QR code">',i+="</div>",i+="</div>",i+="</div>";var a="chat-button-link",b="";d(e)&&(b=t.title);var l="<div class='gsb-trigger-wechat-popup'><a href='"+t.href+"' data-scb='"+b+"' target='"+t.target+"' class='scb-tooltip "+a+" gsb-social-channel' id='' data-channel='"+t.channel+"'><span class='sr-only'>"+t.title+'</span><span class="chat-button-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="#ffffff" viewBox="0 0 30 30" width="90" height="90"><path d="M7 4c-.256 0-.512.097-.707.293l-2 2a1 1 0 0 0 0 1.414L11.586 15l-7.293 7.293a1 1 0 0 0 0 1.414l2 2a1 1 0 0 0 1.414 0L15 18.414l7.293 7.293a1 1 0 0 0 1.414 0l2-2a1 1 0 0 0 0-1.414L18.414 15l7.293-7.293a1 1 0 0 0 0-1.414l-2-2a1 1 0 0 0-1.414 0L15 11.586 7.707 4.293C7.512 4.097 7.256 4 7 4z"></path></svg></span></a></div>';return s("#gsb-buttons-"+o+" .gsb-trigger .gsb-trigger-button").append(l),s("#gsb-buttons-"+o+" .gsb-trigger .gsb-trigger-button a.channel-wechat span").removeClass(a),i}function d(t){var s=!0,o=f(t);return"first_click"==t.settings.show_cta&&o>1&&"open"==t.settings.default_state&&(s=!1),"first_click"==t.settings.show_cta&&_("gsb-button-click-"+t.id)&&(s=!1),s}function h(t){setTimeout((function(){s("#gsb-buttons-"+t.id+" .scw-greeting-message").addClass("active")}),1e3*parseInt(t.settings.greeting_after))}function m(t){return"custom"==t.settings.position?t.settings.custom_position:t.settings.position}function v(t,o){var e=function(t,o){"whatsapp"!=t.channelName||a||("yes"==t.is_mobile_link?(""!=t.whatsapp_message?t.href="whatsapp://send?phone="+t.value+"&text="+t.whatsapp_message:t.href="whatsapp://send?phone="+t.value,t.target=""):(""!=t.whatsapp_message?t.href="https://wa.me/"+t.value+"?text="+t.whatsapp_message:t.href="https://wa.me/"+t.value,t.target="_blank")),"whatsapp"==t.channelName&&"yes"==t.whatsapp_popup_setting.show_whatsapp_popup&&(t.href="javascript:;",t.target="");var e=function(t,o){var e="";s("#gsb-buttons-"+o).hasClass("view-list")&&(e="channel-"+t.channel+" chat-button-link button-link-"+t.channel+"-"+o,""!=t.custom_class&&(e+=" "+s.trim(t.custom_class)),"instagram"==t.channelName&&"#df0079"==t.bg_hover_color&&(e+=" default-insta-hover"),"instagram"==t.channelName&&"#df0079"==t.bg_color&&(e+=" channel-instagram-base"));var n="<span class='chat-button-icon "+e+" chat-button-"+t.channel+"-"+o+"'>";return""!=t.image_url?n+="<img src='"+t.image_url+"' alt='"+t.title+"' />":n+=t.icon,n+="</span>"}(t,o),n="channel-"+t.channel+" chat-button-link button-link-"+t.channel+"-"+o;"whatsapp"==t.channelName&&(n+=" channel-whats"),"wechat"==t.channelName&&(n+=" channel-wechats"),"instagram"==t.channelName&&"#df0079"==t.bg_hover_color&&(n+=" default-insta-hover");var i="";"instagram"==t.channelName&&"#df0079"==t.bg_color&&(i=" channel-instagram-base");var l="chat-button-"+t.channel+"-"+o;""!=t.custom_class&&(n+=" "+s.trim(t.custom_class)),""!=t.custom_id&&(l=s.trim(t.custom_id)),("instagram"!=t.channelName||"instagram"==t.channelName&&"#df0079"!=t.bg_color)&&(b+="#gsb-buttons-"+o+" .channel-"+t.channel+" {background: "+t.bg_color+"; color: "+t.text_color+"; }"),"twitter"!=t.channelName||"#65BBF2"!=t.bg_color&&"#65bbf2"!=t.bg_color||(b+="#gsb-buttons-"+o+" .channel-"+t.channel+" {background: #000000; color: "+t.text_color+"; }"),("instagram"!=t.channelName||"instagram"==t.channelName&&"#df0079"!=t.bg_hover_color)&&(b+="#gsb-buttons-"+o+" .channel-"+t.channel+":hover, #gsb-buttons-"+o+" .list-channel a:hover .channel-"+t.channel+" {background: "+t.bg_hover_color+"; color: "+t.text_hover_color+"; }"),"twitter"!=t.channelName||"#65BBF2"!=t.bg_hover_color&&"#65bbf2"!=t.bg_hover_color||(b+="#gsb-buttons-"+o+" .channel-"+t.channel+":hover {background: #000000; color: "+t.text_hover_color+"; }"),b+="#gsb-buttons-"+o+" .channel-"+t.channel+" svg {fill: "+t.text_color+"; color: "+t.text_color+"; }",b+="#gsb-buttons-"+o+" .channel-"+t.channel+":hover svg, #gsb-buttons-"+o+" .list-channel a:hover .channel-"+t.channel+" svg {fill: "+t.text_hover_color+"; color: "+t.text_hover_color+"; }","slack"==t.channelName&&"#ffffff"!=t.text_color&&(b+="#gsb-buttons-"+o+" .channel-"+t.channel+":not(:hover) svg path {fill: "+t.text_color+"; }"),"slack"==t.channelName&&"#ffffff"!=t.text_hover_color&&(b+="#gsb-buttons-"+o+" .channel-"+t.channel+":hover svg path {fill: "+t.text_hover_color+"; color: "+t.text_hover_color+"; }");var r="",c=t.title;return s("#gsb-buttons-"+o+" .gsb-button-list").hasClass("menu_view")&&(r="<div class='menu-view-title'>"+t.title+"</div>",c=""),s("#gsb-buttons-"+o).hasClass("view-list")?"<div class='list-channel-container'><div class='chat-button list-channel'><a href='"+t.href+"' data-scb='"+t.title+"' target='"+t.target+"' class='gsb-social-channel' id='"+l+"' data-channel='"+t.channel+"'>"+e+"<div class='list-channel-title'>"+t.title+"</div></a></div></div>":"<div class='chat-button'><a href='"+t.href+"' data-scb='"+c+"' target='"+t.target+"' class='scb-tooltip "+n+" gsb-social-channel "+i+"' id='"+l+"' data-channel='"+t.channel+"'><span class='sr-only'>"+t.title+"</span>"+e+r+"</a></div>"}(t,o);return e}function f(t){var o=0;return t.channels.length&&s.each(t.channels,(function(t,s){w(s)&&o++})),o}function w(t){return"contact_form"==t.channelName&&(t.value="123"),!(""==t.value||!(a&&"yes"==t.for_desktop||!a&&"yes"==t.for_mobile))}function _(t){var s=document.cookie.match("(^|;) ?"+t+"=([^;]*)(;|$)");return s?s[2]:null}function C(t,s,o){var e=new Date;e.setTime(e.getTime()+36e5*o),document.cookie=t+"="+s+";path=/;expires="+e.toGMTString()}s(document).ready((function(){(/(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=!1,e=!0),"object"==("undefined"==typeof gsb_settings?"undefined":t(gsb_settings))&&gsb_settings.buttons.length&&(s.each(gsb_settings.buttons,(function(t,e){var a=f(e),r=parseInt(e.settings.icon_size),x=m(e);if(a>0){var k="";"list_view"==e.settings.view&&a>=1&&(k="view-list"),"grid_view"==e.settings.view&&a>=1&&(k="view-grid");var y="<div class='gsb-buttons active has-shadow cta-"+e.settings.show_cta+" "+k+"' id='gsb-buttons-"+e.id+"' data-id='"+e.id+"' data-animation='"+e.settings.animation+"'><div class='gsb-buttons-content'><div class='gsb-button-list "+e.settings.view+"'></div><div class='gsb-trigger'></div></div></div>";s("body").append(y);var z="<div class='gsb-trigger-button'><div class='gsb-trigger-top'><a role='button' href='#' class='chat-button-link'><span class='sr-only'>Contact Us</span>"+e.settings.icon_url+"</a> </div><div class='gsb-trigger-bottom'><a role='button' href='#' class='chat-button-link'><span class='sr-only'>Close</span><span class='chat-button-icon'><svg xmlns='http://www.w3.org/2000/svg' fill='#ffffff' viewBox='0 0 30 30' width='90' height='90' ><path d='M7 4c-.256 0-.512.097-.707.293l-2 2a1 1 0 0 0 0 1.414L11.586 15l-7.293 7.293a1 1 0 0 0 0 1.414l2 2a1 1 0 0 0 1.414 0L15 18.414l7.293 7.293a1 1 0 0 0 1.414 0l2-2a1 1 0 0 0 0-1.414L18.414 15l7.293-7.293a1 1 0 0 0 0-1.414l-2-2a1 1 0 0 0-1.414 0L15 11.586 7.707 4.293C7.512 4.097 7.256 4 7 4z'/></svg></span></a> </div></div>";if(s("#gsb-buttons-"+e.id+" .gsb-trigger").html(z),1==a&&"icon_view"==e.settings.view){var X="";s.each(e.channels,(function(t,o){if(w(o)){if(X=v(o,e.id),"contact_form"==o.channelName){var n=g(o,e.id,e);s("#gsb-buttons-"+e.id).append(n)}if("whatsapp"==o.channelName&&"yes"==o.whatsapp_popup_setting.show_whatsapp_popup){var i=p(o,e.id,e);s("#gsb-buttons-"+e.id).append(i)}if("wechat"==o.channelName&&""!=o.wechat_popup_setting.wechat_qr_img){var a=u(o,e.id,e);s("#gsb-buttons-"+e.id).append(a),b+="#gsb-buttons-"+e.id+" .wechat-popup#"+o.channel+"_popup .wechat-popup-header {background-color: "+o.wechat_popup_setting.wechat_qr_bg_color+"}"}}})),""!=X&&(s("#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-button").append(X),s("#gsb-buttons-"+e.id+" .gsb-trigger-top, #gsb-buttons-"+e.id+" .gsb-trigger-bottom").remove(),s("#gsb-buttons-"+e.id).addClass("single"),s("#gsb-buttons-"+e.id+" .chat-button").hasClass("scb-tooltip")?(s("#gsb-buttons-"+e.id+" .chat-button .scb-tooltip").addClass("cooltipz--visible"),s("#gsb-buttons-"+e.id+" .chat-button .scb-tooltip").attr("data-tooltip-dir","right"==x?"left":"right")):(s("#gsb-buttons-"+e.id+" .chat-button").addClass("cooltipz--visible"),s("#gsb-buttons-"+e.id+" .chat-button").attr("data-tooltip-dir","right"==x?"left":"right")))}else s.each(e.channels,(function(t,o){if(w(o)){var n=v(o,e.id);if(s("#gsb-buttons-"+e.id+" .gsb-button-list").append(n),"contact_form"==o.channelName){var i=g(o,e.id,e);s("#gsb-buttons-"+e.id).append(i)}if("whatsapp"==o.channelName&&"yes"==o.whatsapp_popup_setting.show_whatsapp_popup){var a=p(o,e.id,e);s("#gsb-buttons-"+e.id).append(a)}if("wechat"==o.channelName&&""!=o.wechat_popup_setting.wechat_qr_img){var l=u(o,e.id,e);s("#gsb-buttons-"+e.id).append(l),b+="#gsb-buttons-"+e.id+" .wechat-popup#"+o.channel+"_popup .wechat-popup-header {background-color: "+o.wechat_popup_setting.wechat_qr_bg_color+"}"}}}));if("list_view"==e.settings.view&&a>=1){var I="<div class='channel-list-container'>";""!=e.settings.list_view_subtitle&&(I+="<div class='grid-title-container'><div class='grid-title'>"+e.settings.list_view_subtitle+"</div></div>"),I+="<div class='channel-list'>",I+=s("#gsb-buttons-"+e.id+" .gsb-button-list.list_view").html(),I+="</div>",I+="<div>",s("#gsb-buttons-"+e.id+" .gsb-button-list.list_view").html(I)}if("grid_view"==e.settings.view&&a>=1&&(I="<div class='channel-grid'>",""!=e.settings.list_view_subtitle&&(I+="<div class='grid-title-container'><div class='grid-title'>"+e.settings.list_view_subtitle+"</div></div>"),I+="<div class='channel-grid-container'>",I+=s("#gsb-buttons-"+e.id+" .gsb-button-list.grid_view").html(),I+="</div>",I+="</div>",s("#gsb-buttons-"+e.id+" .gsb-button-list.grid_view").html(I)),"icon_view"!=e.settings.view&&a>=1&&""!=e.settings.list_view_title){var L="";L+="<div class='list_title_container'>",L+="<a href='javascript:;' class='close-view-btn'><span class='dashicons dashicons-arrow-down-alt2'></span></a>",L+="<span class='list_title'>"+e.settings.list_view_title.replace(/(<([^>]+)>)/gi,"")+"</span>",L+="</div>","list_view"==e.settings.view?s("#gsb-buttons-"+e.id+" .gsb-button-list.list_view .channel-list-container").before(L):s("#gsb-buttons-"+e.id+" .gsb-button-list.grid_view .channel-grid").before(L)}var Y="";("open"==e.settings.default_state&&"no"==e.settings.show_close_button&&"icon_view"==e.settings.view||"open"==e.settings.default_state&&"no"==e.settings.show_close_button&&"menu_view"==e.settings.view)&&(Y="has-no-close-button"),s("#gsb-buttons-"+e.id).addClass(Y),"open"==e.settings.default_state&&"yes"==e.settings.show_close_button&&(s("#gsb-buttons-"+e.id).addClass("has-close-button"),s("#gsb-buttons-"+e.id).addClass("has-no-animation")),"open"==e.settings.default_state&&"corner_circle_view"==e.settings.view&&s("#gsb-buttons-"+e.id).addClass("has-no-animation"),"click"==e.settings.default_state&&s("#gsb-buttons-"+e.id).addClass("has-no-tooltip-animation"),b+=".whatsapp-chat.no-user-profile:before { border-top: 0 solid transparent;}",b+=".whatsapp-chat.no-user-profile { border-top-left-radius: 6px;}";var M=0,q=0;if(s("#gsb-buttons-"+e.id).hasClass("has-no-close-button"))b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list .chat-button {transition:none !important; display: block;}";else for(q=0;q<a;q++)"corner_circle_view"==e.settings.view?"right"==x?(M=c(q,r,x),b+="#gsb-buttons-"+e.id+" .gsb-button-list.corner_circle_view .chat-button:nth-child("+(q+1)+"){opacity: 0; visibility: hidden; margin-bottom: 0; position: absolute;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.corner_circle_view .chat-button:nth-child("+(q+1)+"){transform: translate("+-1*M[0]+"px, "+-1*M[1]+"px); opacity: 1; visibility: visible; transition: all ease-in-out 250ms, transform 200ms "+150*q+"ms, opacity 200ms "+150*q+"ms}"):(M=c(q,r,x),b+="#gsb-buttons-"+e.id+" .gsb-button-list.corner_circle_view .chat-button:nth-child("+(q+1)+"){opacity: 0; visibility: hidden; margin-bottom: 0; position: absolute;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.corner_circle_view .chat-button:nth-child("+(q+1)+"){transform: translate("+M[0]+"px, "+-1*M[1]+"px); opacity: 1; visibility: visible; transition: all ease-in-out 250ms, transform 200ms "+150*q+"ms, opacity 200ms "+150*q+"ms}"):"vertical"==e.settings.menu_view?"ginger-menu-none"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1); display: none;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1);transition:none !important; display: block;}"):"ginger-menu-slide"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(0px) scale(1); transform: translateY(0px) scale(1); transition-delay: "+.075*(q+1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px) scale(1); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1);}"):"ginger-menu-fade"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1); opacity: 0; visibility: hidden; transition-delay: "+.1*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1);  opacity: 1; visibility: visible;}"):"ginger-menu-spin"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px)  rotate(0deg); transform: translateY(-"+(r+8)*(a-q)+"px)  rotate(0deg); transition-delay: "+.1*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px) rotate(360deg); transform: translateY(-"+(r+8)*(a-q)+"px) rotate(360deg);}"):"ginger-menu-pop"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px) scale(0); transform: translateY(-"+(r+8)*(a-q)+"px) scale(0); transition-delay: "+.075*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px) scale(1); transform: translateY(-"+(r+8)*(a-q)+"px) scale(1);}"):(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1); display: none;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1); display: block;}"):"right"==x?"ginger-menu-none"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1); display: none;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1);transition:none !important; display: block;}"):"ginger-menu-slide"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(0px) scale(1); transform: translateX(0px) scale(1); transition-delay: "+.075*(q+1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px) scale(1); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1);}"):"ginger-menu-fade"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1); opacity: 0; visibility: hidden; transition-delay: "+.1*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1);  opacity: 1; visibility: visible;}"):"ginger-menu-spin"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px)  rotate(0deg); transform: translateX(-"+(r+8)*(a-q)+"px)  rotate(0deg); transition-delay: "+.1*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px) rotate(360deg); transform: translateX(-"+(r+8)*(a-q)+"px) rotate(360deg);}"):"ginger-menu-pop"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px) scale(0); transform: translateX(-"+(r+8)*(a-q)+"px) scale(0); transition-delay: "+.075*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px) scale(1); transform: translateX(-"+(r+8)*(a-q)+"px) scale(1);}"):(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1); display: none;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1); display: block;}"):"ginger-menu-none"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px)  scale(1); display: none;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px)  scale(1);transition:none !important; display: block;}"):"ginger-menu-slide"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(0px) scale(1); transform: translateX(0px) scale(1); transition-delay: "+.075*(q+1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px) scale(1); transform: translateX("+(r+8)*(a-q)+"px)  scale(1);}"):"ginger-menu-fade"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px)  scale(1); opacity: 0; visibility: hidden; transition-delay: "+.1*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px)  scale(1);  opacity: 1; visibility: visible;}"):"ginger-menu-spin"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px)  rotate(0deg); transform: translateX("+(r+8)*(a-q)+"px)  rotate(0deg); transition-delay: "+.1*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px) rotate(360deg); transform: translateX("+(r+8)*(a-q)+"px) rotate(360deg);}"):"ginger-menu-pop"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px) scale(0); transform: translateX("+(r+8)*(a-q)+"px) scale(0); transition-delay: "+.075*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px) scale(1); transform: translateX("+(r+8)*(a-q)+"px) scale(1);}"):(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px)  scale(1); display: none;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px)  scale(1); display: block;}");b+="#gsb-buttons-"+e.id+".list_view {-webkit-transform: translateY(50px) scale(1); transform: translateY(50px) scale(1); transition-delay: 0.5s; opacity: 0; visibility:hidden;}",b+="#gsb-buttons-"+e.id+".open-buttons .list_view {-webkit-transform: translateY(0px) scale(1); transform: translateY(0px)  scale(1);visibility: visible;opacity: 1;}",b+="#gsb-buttons-"+e.id+".grid_view {-webkit-transform: translateY(50px) scale(1); transform: translateY(50px) scale(1); transition-delay: 0.5s; opacity: 0; visibility:hidden;}",b+="#gsb-buttons-"+e.id+".open-buttons .grid_view {-webkit-transform: translateY(0px) scale(1); transform: translateY(0px)  scale(1);visibility: visible;opacity: 1;}",s("#gsb-buttons-"+e.id+" .gsb-trigger").outerHeight(!0),parseInt(10),b+="#gsb-buttons-"+e.id+" .gsb-button-list.menu_view {-webkit-transform: translateY(0px) scale(1); transform: translateY(0px) scale(1); opacity: 0; visibility:hidden;}",b+="#gsb-buttons-"+e.id+" .gsb-button-list.menu_view .chat-button {opacity: 0; visibility:hidden;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.menu_view .chat-button {opacity: 1; visibility:visible;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.menu_view {-webkit-transform: translateY(-5px) scale(1); transform: translateY(-5px)  scale(1);visibility: visible;opacity: 1;}",b+="#gsb-buttons-"+e.id+".open-buttons.has-no-close-button .gsb-button-list.menu_view {-webkit-transform: translateY(0px) scale(1); transform: translateY(0px)  scale(1);visibility: visible;opacity: 1;}",q=1;var N=0;if("list_view"==e.settings.view&&a>=1||"menu_view"==e.settings.view);else for(q=1,N=0;N<a;q++,N++)"vertical"==e.settings.menu_view?b+="right"==x?"#gsb-buttons-"+e.id+".has-no-close-button:not(.single) .gsb-button-list .chat-button:nth-child("+(N+1)+"){opacity: 1;visibility: visible;pointer-events: auto;right: 0;-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px);transition-delay:-2s;}":"#gsb-buttons-"+e.id+".has-no-close-button:not(.single) .gsb-button-list .chat-button:nth-child("+(N+1)+"){opacity: 1;visibility: visible;pointer-events: auto;left: 0;-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px);transition-delay:-2s;}":b+="right"==x?"#gsb-buttons-"+e.id+".has-no-close-button:not(.single) .gsb-button-list .chat-button:nth-child("+(N+1)+"){opacity: 1;visibility: visible;pointer-events: auto;right: 0;-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px);transition-delay:-2s;}":"#gsb-buttons-"+e.id+".has-no-close-button:not(.single) .gsb-button-list .chat-button:nth-child("+(N+1)+"){opacity: 1;visibility: visible;pointer-events: auto;left: 0;-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px);transition-delay:-2s;}";var j=_("gsb-button-click-"+e.id);"open"==e.settings.default_state&&("no"==e.settings.hide_menu_after_close_click?(s("#gsb-buttons-"+e.id).addClass("open-buttons"),j&&s("#gsb-buttons-"+e.id).removeClass("has-close-button")):j?s("#gsb-buttons-"+e.id).removeClass("has-close-button"):s("#gsb-buttons-"+e.id).addClass("open-buttons"))}var B=Math.ceil(2*r/10);if("icon_view"==e.settings.view)b+="#gsb-buttons-"+e.id+" .chat-button, #gsb-buttons-"+e.id+" .gsb-trigger-contact, #gsb-buttons-"+e.id+" .gsb-trigger-whatsapp-popup, #gsb-buttons-"+e.id+" .gsb-trigger-wechat-popup {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .chat-button-link {width: "+r+"px; height: "+r+"px; padding: "+B+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger-button {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .chat-button-icon {width: "+(r-2*B)+"px; height: "+(r-2*B)+"px; }",b+="#gsb-buttons-"+e.id+".single .gsb-trigger-button {width: "+(r+8)+"px; height: "+(r+8)+"px; }";else if("corner_circle_view"==e.settings.view){var D=parseInt(r-parseInt(.15*r));b+="#gsb-buttons-"+e.id+" .chat-button, #gsb-buttons-"+e.id+" .gsb-trigger-contact, #gsb-buttons-"+e.id+" .gsb-trigger-whatsapp-popup, #gsb-buttons-"+e.id+" .gsb-trigger-wechat-popup {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-button-list .chat-button {width: "+(D+8)+"px; height: "+(D+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-button-list .gsb-trigger {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button-link {width: "+r+"px; height: "+r+"px; padding: "+B+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-button-list .chat-button-link {width: "+D+"px; height: "+D+"px; padding: "+B+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger-button {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-button-list .chat-button-icon {width: "+(D-2*B)+"px; height: "+(D-2*B)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-button-list .chat-button-icon i {font-size: "+(D-2*B)+"px; line-height: "+(D-2*B)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button-icon {width: "+(r-2*B)+"px; height: "+(r-2*B)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button-icon i {font-size: "+(r-2*B)+"px; line-height: "+(r-2*B)+"px; }"}else b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button, #gsb-buttons-"+e.id+" .gsb-trigger-contact, #gsb-buttons-"+e.id+" .gsb-trigger-whatsapp-popup, #gsb-buttons-"+e.id+" .gsb-trigger-wechat-popup {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger-button {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button-link {width: "+r+"px; height: "+r+"px; padding: "+B+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button-icon {width: "+(r-2*B)+"px; height: "+(r-2*B)+"px; }";b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top .chat-button-link {background: "+e.settings.bg_color+"; color: "+e.settings.text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top .chat-button-link svg {fill: "+e.settings.text_color+"; color: "+e.settings.text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom .chat-button-link, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-contact .chat-button-link, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-whatsapp-popup .chat-button-link, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-wechat-popup .chat-button-link {background: "+e.settings.bg_color+"; color: "+e.settings.text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom .chat-button-link svg, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-contact .chat-button-link svg, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-whatsapp-popup .chat-button-link svg, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-wechat-popup .chat-button-link svg {fill: "+e.settings.text_color+"; color: "+e.settings.text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top .chat-button-link:hover {background: "+e.settings.interaction_bg_color+"; color: "+e.settings.interaction_text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top .chat-button-link:hover svg {fill: "+e.settings.interaction_text_color+"; color: "+e.settings.interaction_text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom .chat-button-link:hover, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-contact .chat-button-link:hover, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-whatsapp-popup .chat-button-link:hover, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-wechat-popup .chat-button-link:hover {background: "+e.settings.interaction_bg_color+"; color: "+e.settings.interaction_text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom .chat-button-link:hover svg, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-contact .chat-button-link:hover svg, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-whatsapp-popup .chat-button-link:hover svg, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-wechat-popup .chat-button-link:hover svg {fill: "+e.settings.interaction_text_color+"; color: "+e.settings.interaction_text_color+";  }",b+="#gsb-buttons-"+e.id+" .chat-button-link {border-radius: "+e.settings.border_radius+"px; }",b+="#gsb-buttons-"+e.id+" [data-scb][data-tooltip-dir]::after, [data-scb][class*=cooltipz]::after, #gsb-buttons-"+e.id+" .cta-tooltip, #gsb-buttons-"+e.id+" .cta-tooltip p {background-color: "+e.settings.tooltip_settings.bg_color+"; color: "+e.settings.tooltip_settings.text_color+"; border-radius: "+e.settings.tooltip_settings.border_radius+"px; font-size:"+e.settings.tooltip_settings.font_size+"px; line-height: "+e.settings.tooltip_settings.tooltip_height+"px; }",b+="#gsb-buttons-"+e.id+" [data-scb][data-tooltip-dir][data-tooltip-dir=left]::before, [data-scb][data-tooltip-dir].cooltipz--left::before, [data-scb][class*=cooltipz][data-tooltip-dir=left]::before, [data-scb][class*=cooltipz].cooltipz--left::before, #gsb-buttons-"+e.id+" [data-tooltip-dir=left] .cta-tooltip:after {border-left-color: "+e.settings.tooltip_settings.bg_color+"; }",b+="#gsb-buttons-"+e.id+" [data-scb][data-tooltip-dir][data-tooltip-dir=top]::before, [data-scb][data-tooltip-dir].cooltipz--top::before, [data-scb][class*=cooltipz][data-tooltip-dir=top]::before, [data-scb][class*=cooltipz].cooltipz--top::before {border-top-color: "+e.settings.tooltip_settings.bg_color+"; }",b+="#gsb-buttons-"+e.id+" [data-scb][data-tooltip-dir][data-tooltip-dir=right]::before, [data-scb][data-tooltip-dir].cooltipz--right::before, [data-scb][class*=cooltipz][data-tooltip-dir=right]::before, [data-scb][class*=cooltipz].cooltipz--right::before, #gsb-buttons-"+e.id+" [data-tooltip-dir=right] .cta-tooltip:after {border-right-color: "+e.settings.tooltip_settings.bg_color+"; }",b+="#gsb-buttons-"+e.id+" .chat-button-link.has-image .chat-button-icon img, #gsb-buttons-"+e.id+" .custom-icon-img, #gsb-buttons-"+e.id+" .chat-button-link.has-image img {width: "+r+"px; height: "+r+"px; line-height: "+r+"px; border-radius: "+e.settings.border_radius+"px; -moz-border-radius: "+e.settings.border_radius+"px; -webkit-border-radius: "+e.settings.border_radius+"px; }","list_view"==e.settings.view&&a>=1&&""!=e.settings.list_view_title&&(b+="#gsb-buttons-"+e.id+" .gsb-button-list.list_view .list_title_container  {background-color: "+e.settings.list_title_bg+";color: "+e.settings.list_title_color+"; }"),"grid_view"==e.settings.view&&a>=1&&""!=e.settings.list_view_title&&(b+="#gsb-buttons-"+e.id+" .gsb-button-list.grid_view .list_title_container  {background-color: "+e.settings.list_title_bg+";color: "+e.settings.list_title_color+"; }"),"0"==e.settings.tooltip_settings.border_radius&&"0"==e.settings.tooltip_settings.tooltip_height&&"0"==e.settings.tooltip_settings.font_size&&(b+="#gsb-buttons-"+e.id+" [data-scb][data-tooltip-dir][data-tooltip-dir=left]::before, [data-scb][data-tooltip-dir].cooltipz--left::before, [data-scb][class*=cooltipz][data-tooltip-dir=left]::before, [data-scb][class*=cooltipz].cooltipz--left::before, [data-scb][data-tooltip-dir][data-tooltip-dir=right]::before, [data-scb][data-tooltip-dir].cooltipz--right::before, [data-scb][class*=cooltipz][data-tooltip-dir=right]::before, [data-scb][class*=cooltipz].cooltipz--right::before, [data-scb][data-tooltip-dir][data-tooltip-dir=bottom]::before, [data-scb][data-tooltip-dir].cooltipz--bottom::before, [data-scb][class*=cooltipz][data-tooltip-dir=bottom]::before, [data-scb][class*=cooltipz].cooltipz--bottom::before, [data-scb][data-tooltip-dir][data-tooltip-dir=bottom-left]::before, [data-scb][data-tooltip-dir].cooltipz--bottom-left::before, [data-scb][class*=cooltipz][data-tooltip-dir=bottom-left]::before, [data-scb][class*=cooltipz].cooltipz--bottom-left::before, [data-scb][data-tooltip-dir][data-tooltip-dir=bottom-right]::before, [data-scb][data-tooltip-dir].cooltipz--bottom-right::before, [data-scb][class*=cooltipz][data-tooltip-dir=bottom-right]::before, [data-scb][class*=cooltipz].cooltipz--bottom-right::before, [data-scb][data-tooltip-dir][data-tooltip-dir=top]::before, [data-scb][data-tooltip-dir].cooltipz--top::before, [data-scb][class*=cooltipz][data-tooltip-dir=top]::before, [data-scb][class*=cooltipz].cooltipz--top::before, [data-scb][data-tooltip-dir][data-tooltip-dir=top-left]::before, [data-scb][data-tooltip-dir].cooltipz--top-left::before, [data-scb][class*=cooltipz][data-tooltip-dir=top-left]::before, [data-scb][class*=cooltipz].cooltipz--top-left::before, [data-scb][data-tooltip-dir][data-tooltip-dir=top-right]::before, [data-scb][data-tooltip-dir].cooltipz--top-right::before, [data-scb][class*=cooltipz][data-tooltip-dir=top-right]::before, [data-scb][class*=cooltipz].cooltipz--top-right::before { border:0 }"),s("#gsb-buttons-"+e.id).hasClass("single")&&(b+="#gsb-buttons-"+e.id+" .gsb-trigger {padding: 0;}"),b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button a:not(."+e.settings.animation+") .gsb-pending-message {top: 3%; right: 3%;}",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button a:not(."+e.settings.animation+") + .gsb-pending-message {top: 3%; right: 3%;}","none"!=e.settings.animation&&"ginger-btn-fade"!=e.settings.animation&&"ginger-btn-pulse"!=e.settings.animation&&"ginger-btn-spin"!=e.settings.animation||(b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button a."+e.settings.animation+" .gsb-pending-message {top: 3%; right: 3%;}",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button a."+e.settings.animation+" + .gsb-pending-message {top: 3%; right: 3%;}");var S=function(t){return"vertical"==t.settings.menu_view?"right"==m(t)?"left":"right":"top"}(e);s("#gsb-buttons-"+e.id+" .gsb-button-list a.scb-tooltip").attr("data-tooltip-dir",S),s("#gsb-buttons-"+e.id).addClass(x+"-side"),s("#gsb-buttons-"+e.id).addClass(e.settings.menu_view+"-menu"),"vertical"==e.settings.menu_view?"left"==x?(s("#gsb-buttons-"+e.id+" .gsb-trigger-top").attr("data-tooltip-dir","right"),s("#gsb-buttons-"+e.id+" .gsb-trigger-bottom .chat-button-link").attr("data-tooltip-dir","right")):(s("#gsb-buttons-"+e.id+" .gsb-trigger-top").attr("data-tooltip-dir","left"),s("#gsb-buttons-"+e.id+" .gsb-trigger-bottom .chat-button-link").attr("data-tooltip-dir","left")):(s("#gsb-buttons-"+e.id+" .gsb-trigger-bottom .chat-button-link").attr("data-tooltip-dir","top"),"left"==x?s("#gsb-buttons-"+e.id+" .gsb-trigger-top").attr("data-tooltip-dir","right"):s("#gsb-buttons-"+e.id+" .gsb-trigger-top").attr("data-tooltip-dir","left")),"grid_view"==e.settings.view&&s("#gsb-buttons-"+e.id+" .gsb-button-list.grid_view .channel-grid-container .chat-button .scb-tooltip").attr("data-tooltip-dir","top"),"corner_circle_view"==e.settings.view&&s("#gsb-buttons-"+e.id+" .gsb-button-list.corner_circle_view .chat-button .scb-tooltip").attr("data-tooltip-dir","top");var T=e.settings.call_to_action,H="";""!=T&&(H+="<span class='cta-tooltip'>"+T+"</span>"),s("#gsb-buttons-"+e.id+" .gsb-trigger-top").append(H),d(e)&&s("#gsb-buttons-"+e.id+" .gsb-trigger-top").addClass("cooltipz--visible");var Q=e.settings.font_family;if(""!=Q&&"Arial"!=Q&&"Tahoma"!=Q&&"Verdana"!=Q&&"Helvetica"!=Q&&"Times New Roman"!=Q&&"Trebuchet MS"!=Q&&"Georgia"!=Q&&s("head").append("<link id='#gsb-buttons-"+e.id+"' href='https://fonts.googleapis.com/css?family="+e.settings.font_family+"' rel='stylesheet' type='text/css' >"),""!=Q?(s("#gsb-buttons-"+e.id).css("font-family",Q),s("#gsb-buttons-"+e.id+" button").css("font-family",Q)):s("#gsb-buttons-"+e.id).css("font-family","-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"),s("#gsb-buttons-"+e.id+" .gsb-button-list").addClass(e.settings.menu_animation),function(t){var o=_("gsb-button-click-"+t.id);if((0==s("#gsb-buttons-"+t.id+" .gsb-button-list .chat-button").length||"yes"==t.settings.has_pending_message)&&!o&&"yes"==t.settings.has_pending_message){s("#gsb-buttons-"+t.id).hasClass("single")?(s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button a").append("<span class='gsb-pending-message'>"+t.settings.no_of_messages+"</span>"),s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button a").after("<span class='gsb-pending-message'>"+t.settings.no_of_messages+"</span>")):(s("#gsb-buttons-"+t.id+" .gsb-trigger .gsb-trigger-top a").append("<span class='gsb-pending-message'>"+t.settings.no_of_messages+"</span>"),s("#gsb-buttons-"+t.id+" .gsb-trigger .gsb-trigger-top a").after("<span class='gsb-pending-message'>"+t.settings.no_of_messages+"</span>"));var e=20*t.settings.icon_size/54;s("#gsb-buttons-"+t.id+" .gsb-pending-message").css({width:e+"px",height:e+"px","font-size":parseInt(e/4)+5+"px",color:t.settings.message_text_color,"background-color":t.settings.message_bg_color})}}(e),function(t){_("gsb-button-click-"+t.id)||(s("#gsb-buttons-"+t.id).hasClass("single")?s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button a").addClass(t.settings.animation):s("#gsb-buttons-"+t.id+" .gsb-trigger .gsb-trigger-top a").addClass(t.settings.animation))}(e),function(t){var o=m(t);if(s("#gsb-buttons-"+t.id).hasClass("single")){var e=s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button a").attr("data-scb"),n=t.settings.call_to_action;s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button a").removeAttr("data-tooltip-dir data-scb"),s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button a").removeClass("scb-tooltip cooltipz--visible"),(s("#gsb-buttons-"+t.id).hasClass("cta-first_click")&&!_("gsb-button-click-"+t.id)||!s("#gsb-buttons-"+t.id).hasClass("cta-first_click"))&&s("#gsb-buttons-"+t.id+".gsb-trigger .chat-button").addClass("scb-tooltip cooltipz--visible"),s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button.scb-tooltip").attr("data-tooltip-dir","right"==o?"left":"right"),s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button").attr("data-hover-scb",e);var i="";""!=n&&(i+="<span class='cta-tooltip'>"+n+"</span>"),d(t)&&s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button").append(i).addClass("cooltipz--visible")}}(e),function(t){var o=_("gsb-greeting-"+t.id),e=t.settings.default_state,n=f(t);if(!o&&(1==n&&"open"!=e||n>1&&"click"==e)&&""!=t.settings.greeting_text&&"yes"==t.settings.show_greeting_message){var i="";i+="<span class='scw-greeting-message'>",i+="<span>"+t.settings.greeting_text+"</span>",i+='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M18 6L6 18M6 6L18 18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> </svg>',i+="</span>",s("#gsb-buttons-"+t.id+" .gsb-buttons-content").append(i)}}(e),function(t){if("yes"==t.triggers.after_seconds&&!_("gsb-button-view-"+t.id)){s("#gsb-buttons-"+t.id).hide();var o=parseInt(t.triggers.seconds);o>0&&setTimeout((function(){s("#gsb-buttons-"+t.id).show(),h(t),C("gsb-button-view-"+t.id,!0,2)}),1e3*o)}}(e),function(t){if("yes"==t.triggers.on_scroll&&!_("gsb-button-view-"+t.id)){s("#gsb-buttons-"+t.id).hide();var o=parseInt(t.triggers.page_scroll);jQuery(window).scroll((function(){o=parseInt(t.triggers.page_scroll);var e=jQuery(document).height()-jQuery(window).height(),n=jQuery(window).scrollTop();0!=n&&n/e*100>=o&&(s("#gsb-buttons-"+t.id).show(),h(t),C("gsb-button-view-"+t.id,!0,2))}))}}(e),function(t){if("yes"==t.triggers.exit_intent){if("yes"==t.triggers.browser&&!_("gsb-button-view-"+t.id)){s("#gsb-buttons-"+t.id).hide();var e=m(t);b="mouseout",l=function(o){null==o.toElement&&null==o.relatedTarget&&(n||(s("#gsb-buttons-"+t.id).show(),s("#gsb-buttons-"+t.id).append("<div class='exit-intent'></div>"),"left"==e?s("#gsb-buttons-"+t.id+" .exit-intent").addClass("left-position"):s("#gsb-buttons-"+t.id+" .exit-intent").addClass("right-position"),s("#gsb-buttons-"+t.id).hasClass("single-btn")||s("#gsb-buttons-"+t.id+" .main-button").trigger("click"),setTimeout((function(){s("#gsb-buttons-"+t.id+" .exit-intent").addClass("active"),setTimeout((function(){s("#gsb-buttons-"+t.id+" .exit-intent").removeClass("active")}),2e3)}),100),h(t),n=!0,C("gsb-button-view-"+t.id,!0,2)))},(a=document).addEventListener?a.addEventListener(b,l,!1):a.attachEvent&&a.attachEvent("on"+b,l)}"yes"==t.triggers.on_inactivity&&(_("gsb-button-view-"+t.id)||(s("#gsb-buttons-"+t.id).hide(),o=setInterval((function(){!function(t){if(i+=1,!_("gsb-button-view-"+t.id)&&(s("#gsb-buttons-"+t.id).hide(),i>59)){if(!n){var e=m(t);s("#gsb-buttons-"+t.id).show(),s("#gsb-buttons-"+t.id).append("<div class='exit-intent'></div>"),"left"==e?s("#gsb-buttons-"+t.id+" .exit-intent").addClass("left-position"):s("#gsb-buttons-"+t.id+" .exit-intent").addClass("right-position"),s("#gsb-buttons-"+t.id).hasClass("single-btn")||s("#gsb-buttons-"+t.id+" .main-button").trigger("click"),setTimeout((function(){s("#gsb-buttons-"+t.id+" .exit-intent").addClass("active"),setTimeout((function(){s("#gsb-buttons-"+t.id+" .exit-intent").removeClass("active")}),2e3)}),100),n=!0,h(t),C("gsb-button-view-"+t.id,!0,2)}window.clearInterval(o)}}(t)}),1e3),s(document).on("mousemove",(function(t){i=0})),s(document).on("keyup",(function(t){i=0}))))}var a,b,l}(e),b+="#gsb-buttons-"+e.id+" .scw-greeting-message {background-color:"+e.settings.greeting_bg_color+";color:"+e.settings.greeting_text_color+";}",b+="#gsb-buttons-"+e.id+" .scw-greeting-message svg {fill:"+e.settings.greeting_text_color+";}",b+="#gsb-buttons-"+e.id+" .scw-greeting-message svg path {stroke:"+e.settings.greeting_text_color+";}",b+="#gsb-buttons-"+e.id+" .scw-greeting-message:after{border-color:"+e.settings.greeting_bg_color+" transparent transparent transparent;}",s("#gab_front_css").remove(),s("head").append("<style id='gab_front_css'>"+b+"</style>"),(_("gsb-button-view-"+e.id)||"0"==e.triggers.page_scroll&&"0"==e.triggers.seconds&&"no"==e.triggers.exit_intent)&&h(e),"right"==x){var P=s("#gsb-buttons-"+e.id+" .gsb-button-list.list_view").outerWidth()+parseInt(s("#gsb-buttons-"+e.id).css("right").replace("px","")),A=s("#gsb-buttons-"+e.id+" .gsb-button-list.grid_view").outerWidth()+parseInt(s("#gsb-buttons-"+e.id).css("right").replace("px",""));s(window).width()<=P&&(l+="#gsb-buttons-"+e.id+".right-side .gsb-button-list.list_view {transform: scale(0.5); transform-origin: bottom right;}"),s(window).width()<=A&&(l+="#gsb-buttons-"+e.id+".right-side .gsb-button-list.grid_view {transform: scale(0.5); transform-origin: bottom right;}")}else P=s("#gsb-buttons-"+e.id+" .gsb-button-list.list_view").outerWidth()+parseInt(s("#gsb-buttons-"+e.id).css("left").replace("px","")),A=s("#gsb-buttons-"+e.id+" .gsb-button-list.grid_view").outerWidth()+parseInt(s("#gsb-buttons-"+e.id).css("left").replace("px","")),s(window).width()<=P&&(l+="#gsb-buttons-"+e.id+".left-side .gsb-button-list.list_view {transform: scale(0.5); transform-origin: bottom left;}"),s(window).width()<=A&&(l+="#gsb-buttons-"+e.id+".left-side .gsb-button-list.grid_view {transform: scale(0.5); transform-origin: bottom left;}");var F=s("#gsb-buttons-"+e.id+" .gsb-trigger").outerHeight(!0);if(l+="#gsb-buttons-"+e.id+".open-form .scw-contact-form, #gsb-buttons-"+e.id+".open-whatsapp-popup .whatsapp-popup, #gsb-buttons-"+e.id+".open-wechat-popup .wechat-popup { bottom:"+F+"px }",l+="#gsb-buttons-"+e.id+".open-buttons:not(.has-no-close-button) .gsb-button-list.menu_view { bottom:"+F+"px }",s("#gsb_custom_css").remove(),s("head").append("<style id='gsb_custom_css'>"+l+"</style>"),s("#gsb-buttons-"+e.id+" .list_title_container").length)var W=s("#gsb-buttons-"+e.id+" .list_title_container").outerHeight(!0);else W=0;var U=s("#gsb-buttons-"+e.id).css("bottom").replace("px",""),Z=parseInt(F)+parseInt(U)+parseInt(W)+parseInt("15");s("#gsb-buttons-"+e.id+" .list_view .channel-list-container").css("max-height","calc(100vh - "+Z+"px)");var R=parseInt(F)+parseInt(U)+parseInt(s("#gsb-buttons-"+e.id+" .whatsapp-popup").outerHeight(!0)),G=parseInt(F)+parseInt(U)+parseInt(s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-header").outerHeight(!0))+parseInt(s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-footer").outerHeight(!0))+parseInt(10);R>s(window).height()?(s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-body").css("max-height","calc(100vh - "+G+"px)"),s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-body").css("min-height","calc(100vh - "+G+"px)")):s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-body").css("min-height","270px"),s(window).resize((function(){R>s(window).height()?(s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-body").css("max-height","calc(100vh - "+G+"px)"),s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-body").css("min-height","calc(100vh - "+G+"px)")):s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-body").css("min-height","270px")}));var $=parseInt(F)+parseInt(U)+parseInt(s("#gsb-buttons-"+e.id+" .wechat-popup .wechat-popup-header").outerHeight(!0))+10;s("#gsb-buttons-"+e.id+" .wechat-popup .wechat-popup-body").css("max-height","calc(100vh - "+$+"px)");var E=F+5;s("#gsb-buttons-"+e.id+".view-list .list_view").css("bottom",E+"px"),s("#gsb-buttons-"+e.id+".view-grid .grid_view").css("bottom",E+"px"),s(document).on("click","#gsb-buttons-"+e.id+" .scw-greeting-message svg",(function(t){t.preventDefault(),s("#gsb-buttons-"+e.id+" .scw-greeting-message").remove(),C("gsb-greeting-"+e.id,!0,2)})),s(document).on("mouseenter","#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button",(function(){s("#gsb-buttons-"+e.id+".single").hasClass("cta-first_click")&&!d(e)&&(s("#gsb-buttons-"+e.id+".gsb-trigger .chat-button").addClass("scb-tooltip cooltipz--visible"),s("#gsb-buttons-"+e.id+" .gsb-trigger .chat-button.scb-tooltip").attr("data-tooltip-dir","right"==x?"left":"right"),s("#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button .cta-tooltip").show());var t=s(this).attr("data-hover-scb");s("#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button .cta-tooltip").html(t),s("#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button .cta-tooltip").length||""==t||s(this).append("<span class='cta-tooltip'>"+t+"</span>").addClass("cooltipz--visible")})),s(document).on("mouseleave","#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button",(function(){s("#gsb-buttons-"+e.id+".single").hasClass("cta-first_click")&&!d(e)&&s("#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button .cta-tooltip").hide(),s("#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button .cta-tooltip").html(e.settings.call_to_action),""==e.settings.call_to_action&&""!=s(this).attr("data-hover-scb")&&(s(".cta-tooltip").remove(),s(this).removeClass("cooltipz--visible"))})),s(document).on("touch click","body",(function(){(s("#gsb-buttons-"+e.id).hasClass("view-grid")&&s("#gsb-buttons-"+e.id).hasClass("open-buttons")||s("#gsb-buttons-"+e.id).hasClass("view-list")&&s("#gsb-buttons-"+e.id).hasClass("open-buttons"))&&(s("#gsb-buttons-"+e.id).removeClass("open-buttons"),C("gsb-greeting-"+e.id,!0,2),s("#gsb-buttons-"+e.id+" .scw-greeting-message").remove()),s("#gsb-buttons-"+e.id).hasClass("open-whatsapp-popup")&&s("#gsb-buttons-"+e.id).hasClass("has-no-close-remove")&&s("#gsb-buttons-"+e.id).removeClass("open-whatsapp-popup has-no-close-remove").addClass("open-buttons has-no-close-button"),s("#gsb-buttons-"+e.id).hasClass("open-form")&&s("#gsb-buttons-"+e.id).hasClass("has-no-close-remove")&&s("#gsb-buttons-"+e.id).removeClass("open-form has-no-close-remove").addClass("open-buttons has-no-close-button"),s("#gsb-buttons-"+e.id).hasClass("open-wechat-popup")&&s("#gsb-buttons-"+e.id).hasClass("has-no-close-remove")&&s("#gsb-buttons-"+e.id).removeClass("open-wechat-popup has-no-close-remove").addClass("open-buttons has-no-close-button"),s("#gsb-buttons-"+e.id).hasClass("open-whatsapp-popup")&&s("#gsb-buttons-"+e.id).removeClass("open-whatsapp-popup"),s("#gsb-buttons-"+e.id).hasClass("open-form")&&s("#gsb-buttons-"+e.id).removeClass("open-form"),s("#gsb-buttons-"+e.id).hasClass("open-wechat-popup")&&s("#gsb-buttons-"+e.id).removeClass("open-wechat-popup")}))})),s(".chat-button-icon img").each((function(){s(this).closest(".chat-button-link").addClass("has-image")})),s(document).on("submit",".scw-contact-form",(function(t){t.preventDefault(),s(this).closest(".scw-contact-form").find(".scw-form-field").removeClass("has-error"),s(this).closest(".scw-contact-form").find(".scw-form-field").removeClass("has-error-valid");var o=s(this).closest(".scw-contact-form").attr("data_target");r=s(this).closest(".scw-contact-form").find(".scw-form-success.success-close-msg").length>0?1:0;var e=3;1==r&&(e=s(this).closest(".scw-contact-form").find(".scw-form-success.success-close-msg").attr("data_close_sec"));var n=0,i=s(this).closest(".gsb-buttons").attr("id");if(s.each(s(this).closest(".scw-contact-form").find(".scw-form-field .scw-field"),(function(){s(this).hasClass("is-require")&&""==s(this).val()&&(n+=1,s(this).closest(".scw-form-field").addClass("has-error")),s(this).hasClass("is-require")&&!s(this).is(":checked")&&"checkbox"===s(this).prop("type")&&(n+=1,s(this).closest(".scw-form-field").addClass("has-error")),""!=s(this).val()&&"email"==s(this).data("name")&&(/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(s(this).val())||(n+=1,s(this).closest(".scw-form-field").addClass("has-error-valid"))),""!=s(this).val()&&"phone"==s(this).data("name")&&(/^[0-9]*$/.test(s(this).val())||(n+=1,s(this).closest(".scw-form-field").addClass("has-error-valid")))})),0!=n&&(s(this).closest(".scw-contact-form").find(".scw-form-field.has-error-valid:first input").focus(),s(this).closest(".scw-contact-form").find(".scw-form-field.has-error:first input").focus()),0==n){s(this).find(":submit").prop("disabled",!0);var a=s(this).closest(".scw-contact-form").attr("id");s.ajax({url:gsb_settings.ajax_url,data:s("#"+a).serialize(),dateType:"json",type:"post",success:function(t){1==(t=s.parseJSON(t)).status?(s("#"+i+" .scw-contact-form").addClass("success-msg"),s("#"+i+" .scw-contact-form").removeClass("has-error"),s("#"+i+" .scw-contact-form .scw-form-success").text(t.message),s("#"+i+" .scw-contact-form .scw-field").val(""),s("#"+i+" .scw-contact-form .consent-check-box input").prop("checked",!1),s("#"+i+" .scw-contact-form .scw-form-btn button").prop("disabled",!1),1==r&&setTimeout((function(){s("#"+i).closest(".gsb-buttons").hasClass("open-form")&&s("#"+i).closest(".gsb-buttons").hasClass("has-no-close-remove")&&s("#"+i).closest(".gsb-buttons").removeClass("open-form has-no-close-remove").addClass("open-buttons has-no-close-button"),s("#"+i).hasClass("open-form")&&s("#"+i).removeClass("open-form")}),1e3*e),""!=t.data.URL&&("blank"==o?window.open(t.data.URL,"_blank"):window.location.href=t.data.URL)):0==t.status&&(s("#"+i+" .scw-contact-form .scw-form-btn button").prop("disabled",!1),s("#"+i+" .scw-contact-form").addClass("success-msg has-error"),s("#"+i+" .scw-contact-form .scw-field").each((function(o,e){var n=s(this).attr("name").replace("scw_form_fields[","");n=n.replace("]",""),s.inArray(n,t.has_error)>=0?s(this).closest(".scw-form-field").addClass("has-error"):s.inArray(n,t.has_error_valid)>=0&&s(this).closest(".scw-form-field").addClass("has-error-valid")})),s("#"+i+" .scw-contact-form .scw-form-success").text(t.message))}})}})),s(document).on("keyup",".scw-field-phone",(function(){var t=s(this).val();t.match(/^[0-9]+$/)||s(this).val(t.replace(/\D/g,""))})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-top a",(function(){C("gsb-button-click-"+s(this).closest(".gsb-buttons").data("id"),!0,2),s(this).closest(".gsb-buttons").hasClass("cta-first_click")&&(s(this).closest("div[data-scb]").attr("data-scb",""),s(this).closest(".gsb-buttons").find(".cta-tooltip").remove())})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-top a, .gsb-buttons .gsb-trigger .chat-button a",(function(){C("gsb-button-click-"+s(this).closest(".gsb-buttons").data("id"),!0,2),s(this).closest(".gsb-buttons").hasClass("cta-first_click")&&(s(this).closest("div[data-scb]").attr("data-scb",""),s(this).closest(".gsb-buttons").find(".cta-tooltip").remove())})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-top a, .gsb-buttons .gsb-trigger .gsb-trigger-bottom a",(function(){var t=s(this).closest(".gsb-buttons").data("id");s("#gsb-buttons-"+t+" .gsb-pending-message").remove(),C("gsb-greeting-"+t,!0,2),s("#gsb-buttons-"+t+" .scw-greeting-message").remove()})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-bottom a",(function(){C("gsb-button-click-"+s(this).closest(".gsb-buttons").data("id"),!0,2),s(this).closest(".gsb-buttons").hasClass("cta-first_click")&&(s(this).closest("div[data-scb]").attr("data-scb",""),s(this).closest(".gsb-buttons").find(".cta-tooltip").remove())})),s(document).on("mouseenter",".gsb-buttons .gsb-trigger a",(function(){var t=s(this).closest(".gsb-buttons").data("id"),o=s(this).closest(".gsb-buttons").data("animation");s("#gsb-buttons-"+t+" .gsb-trigger .gsb-trigger-top a").removeClass(o),s("#gsb-buttons-"+t+" .gsb-trigger .chat-button a").removeClass(o)})),s(document).on("touch click",".gsb-buttons:not(.single) .gsb-trigger .gsb-trigger-top a",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest(".gsb-buttons").removeClass("open-form"),s(this).closest(".gsb-buttons").removeClass("open-whatsapp-popup"),s(this).closest(".gsb-buttons").removeClass("open-wechat-popup"),s("#gsb-buttons-"+o+" .scw-contact-form .scw-form-field").removeClass("has-error"),s(this).closest("#gsb-buttons-"+o).find(".scw-contact-form").removeClass("success"),s(this).closest("#gsb-buttons-"+o).find(".scw-contact-form").removeClass("success-msg"),s(this).closest("#gsb-buttons-"+o).find(".scw-contact-form").removeClass("has-error"),s(this).closest("#gsb-buttons-"+o).removeClass("has-no-animation"),s(this).closest("#gsb-buttons-"+o).removeClass("has-no-tooltip-animation"),s(this).closest(".gsb-buttons").addClass("open-buttons")})),s(document).on("touch click",".gsb-buttons.single .gsb-trigger .chat-button a",(function(){var t=s(this).closest(".gsb-buttons").data("id");(s("#gsb-buttons-"+t+".single .gsb-trigger .gsb-trigger-contact").length||s("#gsb-buttons-"+t+".single .gsb-trigger .gsb-trigger-whatsapp-popup").length||s("#gsb-buttons-"+t+".single .gsb-trigger .gsb-trigger-wechat-popup").length)&&s("#gsb-buttons-"+t+".single .gsb-trigger .chat-button").removeClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-contact a",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest(".gsb-buttons").removeClass("open-form"),s("#gsb-buttons-"+o+" .scw-contact-form .scw-form-field").removeClass("has-error"),s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").hasClass("has-no-close-remove")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-button"),s(this).closest(".gsb-buttons").removeClass("has-no-close-remove")),C("gsb-greeting-"+o,!0,2),s("#gsb-buttons-"+o+" .scw-greeting-message").remove(),s("#gsb-buttons-"+o).hasClass("cta-first_click")&&!_("gsb-button-click-"+o)&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible"),s("#gsb-buttons-"+o).hasClass("cta-all_time")&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-whatsapp-popup a",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest(".gsb-buttons").removeClass("open-whatsapp-popup"),s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").hasClass("has-no-close-remove")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-button"),s(this).closest(".gsb-buttons").removeClass("has-no-close-remove")),C("gsb-greeting-"+o,!0,2),s("#gsb-buttons-"+o+" .scw-greeting-message").remove(),s("#gsb-buttons-"+o).hasClass("cta-first_click")&&!_("gsb-button-click-"+o)&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible"),s("#gsb-buttons-"+o).hasClass("cta-all_time")&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-wechat-popup a",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest(".gsb-buttons").removeClass("open-wechat-popup"),s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").hasClass("has-no-close-remove")&&(s(this).closest(".gsb-buttons").removeClass("has-no-close-remove"),s(this).closest(".gsb-buttons").addClass("has-no-close-button")),C("gsb-greeting-"+o,!0,2),s("#gsb-buttons-"+o+" .scw-greeting-message").remove(),s("#gsb-buttons-"+o).hasClass("cta-first_click")&&!_("gsb-button-click-"+o)&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible"),s("#gsb-buttons-"+o).hasClass("cta-all_time")&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .scw-contact-form .scw-form-close",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest("#gsb-buttons-"+o).removeClass("open-form"),s("#gsb-buttons-"+o+" .scw-contact-form .scw-form-field").removeClass("has-error"),s(this).closest("#gsb-buttons-"+o+".has-no-close-button").addClass("open-buttons"),s(this).closest(".gsb-buttons").hasClass("has-no-close-remove")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-button"),s(this).closest(".gsb-buttons").removeClass("has-no-close-remove")),s("#gsb-buttons-"+o).hasClass("cta-all_time")&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .whatsapp-popup .whatsapp-popup-close-btn",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest("#gsb-buttons-"+o).removeClass("open-whatsapp-popup"),s(this).closest("#gsb-buttons-"+o+".has-no-close-button").addClass("open-buttons"),s(this).closest(".gsb-buttons").hasClass("has-no-close-remove")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-button"),s(this).closest(".gsb-buttons").removeClass("has-no-close-remove")),s("#gsb-buttons-"+o).hasClass("cta-all_time")&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .wechat-popup .wechat-popup-close-btn",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest(".gsb-buttons").hasClass("has-no-close-remove")&&(s(this).closest(".gsb-buttons").removeClass("has-no-close-remove"),s(this).closest(".gsb-buttons").addClass("has-no-close-button")),s(this).closest("#gsb-buttons-"+o).removeClass("open-wechat-popup"),s(this).closest("#gsb-buttons-"+o+".has-no-close-button").addClass("open-buttons"),s("#gsb-buttons-"+o).hasClass("cta-all_time")&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .close-view-btn",(function(t){t.preventDefault(),s(this).closest(".gsb-buttons").removeClass("open-buttons")})),s(document).on("touch click",".gsb-buttons:not(.single) .gsb-trigger .gsb-trigger-bottom a",(function(t){t.preventDefault(),s(this).closest(".gsb-buttons").removeClass("has-no-animation"),s(this).closest(".gsb-buttons").removeClass("open-buttons")})),s(document).on("touch click",".gsb-buttons:not(.single) .gsb-button-list:not(.list_view) .chat-button .channel-contact_form , .gsb-buttons.single .gsb-button-list:not(.list_view) + .gsb-trigger .chat-button .channel-contact_form",(function(){s(this).closest(".gsb-buttons").find(".gsb-button-list .chat-button").length,s(this).closest(".gsb-buttons").hasClass("open-form")?(s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").removeClass("open-form")):(s(this).closest(".gsb-buttons").hasClass("has-no-close-button")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-remove"),s(this).closest(".gsb-buttons").removeClass("has-no-close-button")),s(this).closest(".gsb-buttons").removeClass("open-buttons"),s(this).closest(".gsb-buttons").addClass("open-form"),s(this).closest(".gsb-buttons").find(".scw-contact-form").removeClass("success"),s(this).closest(".gsb-buttons").find(".scw-contact-form").removeClass("success-msg"),s(this).closest(".gsb-buttons").find(".scw-contact-form").removeClass("has-error"))})),s(document).on("touch click",".gsb-buttons:not(.single) .list_view .gsb-social-channel",(function(){s(this).closest(".gsb-buttons").find(".gsb-button-list .chat-button").length;var t=s(this).data("channel"),o=s(this).closest(".gsb-buttons").data("id");"contact_form"==t&&(s(this).closest(".gsb-buttons").hasClass("open-form")?(s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").removeClass("open-form")):(s(this).closest(".gsb-buttons").removeClass("open-buttons"),s(this).closest(".gsb-buttons").addClass("open-form"),s(this).closest("#gsb-buttons-"+o).find(".scw-contact-form").removeClass("success"),s(this).closest("#gsb-buttons-"+o).find(".scw-contact-form").removeClass("success-msg"),s(this).closest("#gsb-buttons-"+o).find(".scw-contact-form").removeClass("has-error")))})),s(document).on("touch click",".gsb-buttons:not(.single) .gsb-button-list:not(.list_view) .chat-button .channel-whats , .gsb-buttons.single .gsb-button-list:not(.list_view) + .gsb-trigger .chat-button .channel-whats",(function(){s(this).closest(".gsb-buttons").find(".gsb-button-list .chat-button").length;var t=s(this).data("channel");s(this).closest(".gsb-buttons").find("#"+t+"_popup").length&&(s(this).closest(".gsb-buttons").hasClass("open-whatsapp-popup")?(s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").removeClass("open-whatsapp-popup"),s(".whatsapp-popup").removeClass("active"),s("#"+t+"_popup").removeClass("active")):(s(this).closest(".gsb-buttons").hasClass("has-no-close-button")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-remove"),s(this).closest(".gsb-buttons").removeClass("has-no-close-button")),s(this).closest(".gsb-buttons").removeClass("open-buttons"),s(this).closest(".gsb-buttons").addClass("open-whatsapp-popup"),s(".whatsapp-popup").removeClass("active"),s("#"+t+"_popup").addClass("active")))})),s(document).on("touch click",".gsb-buttons:not(.single) .list_view .gsb-social-channel",(function(){s(this).closest(".gsb-buttons").find(".gsb-button-list .chat-button").length;var t=s(this).data("channel");"whatsapp"==t.replace(/_\d+$/,"")&&s(this).closest(".gsb-buttons").find("#"+t+"_popup").length&&(s(this).closest(".gsb-buttons").hasClass("open-whatsapp-popup")?(s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").removeClass("open-whatsapp-popup"),s(".whatsapp-popup").removeClass("active"),s("#"+t+"_popup").removeClass("active")):(s(this).closest(".gsb-buttons").removeClass("open-buttons"),s(this).closest(".gsb-buttons").addClass("open-whatsapp-popup"),s(".whatsapp-popup").removeClass("active"),s("#"+t+"_popup").addClass("active")))})),s(document).on("touch click",".gsb-buttons:not(.single) .gsb-button-list:not(.list_view) .chat-button .channel-wechats , .gsb-buttons.single .gsb-button-list:not(.list_view) + .gsb-trigger .chat-button .channel-wechats",(function(){s(this).closest(".gsb-buttons").find(".gsb-button-list .chat-button").length;var t=s(this).data("channel");s(this).closest(".gsb-buttons").find("#"+t+"_popup").length&&(s(this).closest(".gsb-buttons").hasClass("open-wechat-popup")?(s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").removeClass("open-wechat-popup"),s(".wechat-popup").removeClass("active"),s("#"+t+"_popup").removeClass("active")):(s(this).closest(".gsb-buttons").hasClass("has-no-close-button")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-remove"),s(this).closest(".gsb-buttons").removeClass("has-no-close-button")),s(this).closest(".gsb-buttons").removeClass("open-buttons"),s(this).closest(".gsb-buttons").addClass("open-wechat-popup"),s(".wechat-popup").removeClass("active"),s("#"+t+"_popup").addClass("active")))})),s(document).on("touch click",".gsb-buttons:not(.single) .list_view .gsb-social-channel",(function(){s(this).closest(".gsb-buttons").find(".gsb-button-list .chat-button").length;var t=s(this).data("channel");"wechat"==t.replace(/_\d+$/,"")&&s(this).closest(".gsb-buttons").find("#"+t+"_popup").length&&(s(this).closest(".gsb-buttons").hasClass("open-wechat-popup")?(s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").removeClass("open-wechat-popup"),s(".wechat-popup").removeClass("active"),s("#"+t+"_popup").removeClass("active")):(s(this).closest(".gsb-buttons").removeClass("open-buttons"),s(this).closest(".gsb-buttons").addClass("open-wechat-popup"),s(".wechat-popup").removeClass("active"),s("#"+t+"_popup").addClass("active")))})),s(document).on("touch click",".gsb-buttons .gsb-button-list, .gsb-buttons .gsb-trigger-button, .gsb-buttons .whatsapp-popup, .gsb-buttons .scw-contact-form, .gsb-buttons .wechat-popup",(function(t){t.stopPropagation()})),s(document).on("touch click",".gsb-buttons .chat-button a",(function(){var t=s(this).closest(".gsb-buttons").data("id");s("#gsb-buttons-"+t+" .gsb-pending-message").remove(),C("gsb-greeting-"+t,!0,2),s("#gsb-buttons-"+t+" .scw-greeting-message").remove()})),s(document).on("touch click",".gsb-buttons.open-buttons .list_title_container .close-view-btn",(function(){var t=s(this).closest(".gsb-buttons").data("id");s("#gsb-buttons-"+t+" .gsb-pending-message").remove(),C("gsb-button-click-"+t,!0,2)}))),s(document).on("click",".show-scw-contact-form",(function(t){t.preventDefault(),t.stopPropagation(),show_scw_contact_form(s(this).data("widget"))})),s(document).on("click",".hide-scw-contact-form",(function(t){t.preventDefault(),t.stopPropagation(),hide_scw_contact_form()})),s(document).on("click",".show-sticky-chat-widget",(function(t){t.preventDefault(),t.stopPropagation(),show_sticky_chat_widget(s(this).data("widget"))})),s(document).on("click",".hide-sticky-chat-widget",(function(t){t.preventDefault(),t.stopPropagation(),hide_sticky_chat_widget()}))})),s(window).resize((function(){!function(){if(s(".ginger-front-buttons").length&&s(".sticky-button-list").length&&s(".sticky-button-list .channel-btn").length&&s(".ginger-front-buttons .cta-button").length){s(".sticky-button-list .button-list").attr("style",""),s(".sticky-button-list .button-list").removeClass("has-grid-layout");var t=parseInt(gsb_settings.icon_size)+parseInt(gsb_settings.bottom);if(s(".sticky-button-list .button-list .channel-btn").length>2&&(t+=parseInt(s(".sticky-button-list .button-list .channel-btn").length)*(parseInt(gsb_settings.icon_size)+5))>=s(window).height()){var o=Math.floor(Math.sqrt(parseInt(s(".sticky-button-list .button-list .channel-btn").length)));o=(parseInt(gsb_settings.icon_size)+5)*o,s(".sticky-button-list .button-list").height(o),o=Math.ceil(Math.sqrt(parseInt(s(".sticky-button-list .button-list .channel-btn").length))),o=(parseInt(gsb_settings.icon_size)+5)*o,s(".sticky-button-list .button-list").width(o),s(".sticky-button-list .button-list").addClass("has-grid-layout"),s(".sticky-button-list .button-list").css("bottom",parseInt(gsb_settings.icon_size)+5+"px"),s(".sticky-button-list .button-list .ginger-social-channel").attr("data-ginger-tooltip-location","top")}}}()}))}(jQuery)})();
function on_keydown_remove_from_cart(e){" "===e.key&&(e.preventDefault(),e.currentTarget.click())}function focus_populate_live_region(){var e=["woocommerce-message","woocommerce-error","wc-block-components-notice-banner"].map(function(e){return"."+e+'[role="alert"]'}).join(", "),o=document.querySelectorAll(e);if(0!==o.length){var t=o[0];t.setAttribute("tabindex","-1");var n=setTimeout(function(){t.focus(),clearTimeout(n)},500)}}function refresh_sorted_by_live_region(){var e=document.querySelector(".woocommerce-result-count");if(e){var o=e.innerHTML;e.setAttribute("aria-hidden","true");var t=setTimeout(function(){e.setAttribute("aria-hidden","false"),e.innerHTML="",e.innerHTML=o,clearTimeout(t)},2e3)}}function on_document_ready(){focus_populate_live_region(),refresh_sorted_by_live_region()}jQuery(function(e){e(".woocommerce-ordering").on("change","select.orderby",function(){e(this).closest("form").trigger("submit")}),e("input.qty:not(.product-quantity input.qty)").each(function(){var o=parseFloat(e(this).attr("min"));o>=0&&parseFloat(e(this).val())<o&&e(this).val(o)});var o="store_notice"+(e(".woocommerce-store-notice").data("noticeId")||"");if("hidden"===Cookies.get(o))e(".woocommerce-store-notice").hide();else{function t(o){["Enter"," "].includes(o.key)&&(o.preventDefault(),e(".woocommerce-store-notice__dismiss-link").click())}e(".woocommerce-store-notice").show(),e(".woocommerce-store-notice__dismiss-link").on("click",function n(r){Cookies.set(o,"hidden",{path:"/"}),e(".woocommerce-store-notice").hide(),r.preventDefault(),e(".woocommerce-store-notice__dismiss-link").off("click",n).off("keydown",t)}).on("keydown",t)}e(".woocommerce-input-wrapper span.description").length&&e(document.body).on("click",function(){e(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),e(".woocommerce-input-wrapper").on("click",function(e){e.stopPropagation()}),e(".woocommerce-input-wrapper :input").on("keydown",function(o){var t=e(this).parent().find("span.description");if(27===o.which&&t.length&&t.is(":visible"))return t.prop("aria-hidden",!0).slideUp(250),o.preventDefault(),!1}).on("click focus",function(){var o=e(this).parent(),t=o.find("span.description");o.addClass("currentTarget"),e(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),t.length&&t.is(":hidden")&&t.prop("aria-hidden",!1).slideDown(250),o.removeClass("currentTarget")}),e.scroll_to_notices=function(o){o.length&&e("html, body").animate({scrollTop:o.offset().top-100},1e3)},e('.woocommerce form .woocommerce-Input[type="password"]').wrap('<span class="password-input"></span>'),e(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),e(".password-input").each(function(){const o=e(this).find("input").attr("id");e(this).append('<button type="button" class="show-password-input" aria-label="'+woocommerce_params.i18n_password_show+'" aria-describedBy="'+o+'"></button>')}),e(".show-password-input").on("click",function(o){o.preventDefault(),e(this).hasClass("display-password")?(e(this).removeClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_show)):(e(this).addClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_hide)),e(this).hasClass("display-password")?e(this).siblings(['input[type="password"]']).prop("type","text"):e(this).siblings('input[type="text"]').prop("type","password"),e(this).siblings("input").focus()}),e("a.coming-soon-footer-banner-dismiss").on("click",function(o){var t=e(o.target);e.ajax({type:"post",url:t.data("rest-url"),data:{woocommerce_meta:{coming_soon_banner_dismissed:"yes"}},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",t.data("rest-nonce"))},complete:function(){e("#coming-soon-footer-banner").hide()}})}),"undefined"==typeof wc_add_to_cart_params&&e(document.body).on("keydown",".remove_from_cart_button",on_keydown_remove_from_cart),e(document.body).on("item_removed_from_classic_cart updated_wc_div",focus_populate_live_region)}),document.addEventListener("DOMContentLoaded",on_document_ready);
(function ($){
if(awdr_params.refresh_order_review=='1'){
$(document).on('change', 'input[name="payment_method"],input[name="billing_city"],input[name="billing_postcode"]', function (){
refreshCart();
});
$(document).on('blur', 'input[name="billing_email"], select#billing_state', function (){
refreshCart();
});
}
function refreshCart(){
$('body').trigger('update_checkout');
}
$(document).ready(function ($){
function init_events(){
if(awdr_params.enable_update_price_with_qty=='show_dynamically'){
function getWDRDPTarget(form, target, is_variable){
let $price_place='';
if(form.find(target).length){
$price_place=form.find(target).first();
if(is_variable===true){
if(!form.find(target+' .price').length){
$price_place.html("<div class='price'></div>");
}
$price_place=form.find(target+' .price').first();
}}else{
$price_place=$(target).first();
if(is_variable===true){
if(!$(target+' .price').length){
$price_place.html("<div class='price'></div>");
}
$price_place=$(target+' .price').first();
}}
return $price_place;
}
$(document).on('change', '[name="quantity"]', function (){
var awdr_qty_object=$(this);
setTimeout(function(){
var $qty=awdr_qty_object.val();
var $product_id=0;
var $price_place="";
var form=awdr_qty_object.closest("form");
if(form.find('button[name="add-to-cart"]').length){
$product_id=form.find('button[name="add-to-cart"]').first().val();
var target='div.product p.price';
if(awdr_params.custom_target_simple_product!=undefined){
if(awdr_params.custom_target_simple_product!=""){
target=awdr_params.custom_target_simple_product;
}}
$price_place=getWDRDPTarget(form, target, false);
}else if(form.find('input[name="variation_id"]').length){
$product_id=form.find('input[name="variation_id"]').val();
var target='div.product .woocommerce-variation-price';
if(awdr_params.custom_target_variable_product!=undefined){
if(awdr_params.custom_target_variable_product!=""){
target=awdr_params.custom_target_variable_product;
}}
$price_place=getWDRDPTarget(form, target, true);
}else if(form.find('input[name="add-to-cart"]').length){
$product_id=form.find('input[name="add-to-cart"]').first().val();
var target='div.product p.price';
if(awdr_params.custom_target_simple_product!=undefined){
if(awdr_params.custom_target_simple_product!=""){
target=awdr_params.custom_target_simple_product;
}}
$price_place=getWDRDPTarget(form, target, false);
}
if(!$product_id||$product_id==0){
if(awdr_params.custom_simple_product_id_selector!=undefined){
if(awdr_params.custom_simple_product_id_selector!=""){
let simple_product_id_selector=awdr_params.custom_simple_product_id_selector;
$product_id=$(simple_product_id_selector).val();
let target='div.product p.price';
if(awdr_params.custom_target_simple_product!=undefined){
if(awdr_params.custom_target_simple_product!=""){
target=awdr_params.custom_target_simple_product;
}}
$price_place=getWDRDPTarget(form, target, false);
}}
if(awdr_params.custom_variable_product_id_selector!=undefined){
if(awdr_params.custom_variable_product_id_selector!=""){
let variable_product_id_selector=awdr_params.custom_variable_product_id_selector;
$product_id=$(variable_product_id_selector).val();
let target='div.product .woocommerce-variation-price';
if(awdr_params.custom_target_variable_product!=undefined){
if(awdr_params.custom_target_variable_product!=""){
target=awdr_params.custom_target_variable_product;
}}
$price_place=getWDRDPTarget(form, target, true);
}}
}
if(!$product_id||!$price_place||$product_id==0){
return;
}
var data={
action: 'wdr_ajax',
method: 'get_price_html',
product_id: $product_id,
qty: $qty,
awdr_nonce: awdr_params.nonce,
};
$.ajax({
url: awdr_params.ajaxurl,
data: data,
type: 'POST',
success: function (response){
if(response.price_html){
$price_place.html(response.price_html)
}else{
if(response.original_price_html!=undefined){
$price_place.html(response.original_price_html)
}}
$(document).trigger('wdr_dynamic_price_update', [response]);
},
error: function (response){
$price_place.html("")
}});
}, 0);
});
}}
if(awdr_params.js_init_trigger){
$(document).on(awdr_params.js_init_trigger, function (){
init_events();
});
}
init_events();
if(awdr_params.awdr_dynamic_bulk_table_status=="1"){
if(awdr_params.awdr_dynamic_bulk_table_off=="on"){
function awdr_load_variation_table(variation_id){
setTimeout(function(){
if(variation_id!=''&&variation_id!='0'){
var data={
action: 'wdr_ajax',
method: 'get_variable_product_bulk_table',
product_id: variation_id,
awdr_nonce: awdr_params.nonce,
};
let awdr_opacity='div.awdr-bulk-customizable-table';
if(awdr_params.awdr_opacity_to_bulk_table!=undefined){
if(awdr_params.awdr_opacity_to_bulk_table!=""){
awdr_opacity=awdr_params.awdr_opacity_to_bulk_table;
}}
$.ajax({
url: awdr_params.ajaxurl,
data: data,
type: 'POST',
beforeSend: function (){
$(awdr_opacity).css('opacity','0.5');
},
complete: function (){
$(awdr_opacity).css('opacity','1');
},
success: function (response){
if(response.bulk_table){
$('.awdr-bulk-customizable-table').html(response.bulk_table);
}},
error: function (response){
$('.awdr-bulk-customizable-table').html("")
}});
}}, 100);
}
$(".single_variation_wrap").on("hide_variation", function(event){
let variation_id=$(this).closest('form').find('input[name="product_id"]').val();
awdr_load_variation_table(variation_id);
});
$(".single_variation_wrap").on("show_variation", function(event, variation, purchasable){
let variation_id=variation.variation_id;
if(variation.is_bundled!=undefined){
if(variation.is_bundled==true){
return;
}}
awdr_load_variation_table(variation_id);
});
}}
});
})(jQuery);
(function ($){
$.extend({
AdvanceWooDiscountRules: {
form: null,
product_id: null,
quantity: 0,
options: [],
target: null,
getDynamicDiscountPriceFromCartForm: function($form, $target, $options){
if(typeof $options!=='undefined'){
this.options=$options;
}
if(typeof $target!=='undefined'){
this.target=$target;
}
if(typeof $form!=='undefined'&&$form.is('form')){
this.form=$form;
}else{
this.logError("Incorrect form provided");
}
this.product_id=this.getProductIdFromForm();
this.quantity=this.getProductQuantityFromForm();
this.getDiscountPriceForProduct();
},
getDiscountPriceForProduct: function (){
if(this.product_id===null||this.product_id==0){
this.logError("Invalid product");
return [];
}
var data={
action: 'awdr_get_product_discount',
product_id: this.product_id,
qty: this.quantity,
awdr_nonce: awdr_params.nonce,
};
if(typeof this.options.custom_price!=='undefined'){
data.custom_price=this.options.custom_price;
}
var $target=this.target;
var $options=this.options;
$.ajax({
url: awdr_params.ajaxurl,
data: data,
type: 'POST',
success: function (response){
$(document.body).trigger("advanced_woo_discount_rules_on_get_response_for_dynamic_discount", [ response, $target, $options ]);
},
error: function (response){
}});
},
getProductIdFromForm: function (){
var variationIdEl=this.form.find('[name="variation_id"]');
var productIdEl=this.form.find('[name="add-to-cart"]');
if(variationIdEl.length){
return parseInt(variationIdEl.val());
}else if(productIdEl.length){
return parseInt(productIdEl.val());
}
return false;
},
getProductQuantityFromForm: function (){
var $input=this.form.find('input[name="quantity"]');
if($input.length===0){
return 0;
}
return $input.val();
},
logError: function($text){
console.error("Advance discount rule error: %s", $text);
}}
});
})(jQuery);
jQuery(document).ready(function(){var t=!1;void 0!==eztoc_smooth_local.JumpJsLinks&&1===parseInt(eztoc_smooth_local.JumpJsLinks)&&(t=!0),document.querySelectorAll(".ez-toc-link").forEach(t=>{t=t.replaceWith(t.cloneNode(!0))}),document.querySelectorAll(".ez-toc-section").forEach(t=>{t.setAttribute("ez-toc-data-id","#"+decodeURI(t.getAttribute("id")))}),jQuery("a.ez-toc-link").click(function(){let e=jQuery(this).attr("data-href"),i=jQuery(this).attr("href");if(1===parseInt(eztoc_smooth_local.add_request_uri)||1===parseInt(eztoc_smooth_local.add_self_reference_link)){if(jQuery(this).attr("data-href")){let r=jQuery(this).attr("data-href").split("#");r&&r.length>1&&(e=`#${r[1]}`)}if(jQuery(this).attr("href")){let a=jQuery(this).attr("href").split("#");a&&a.length>1&&(i=`#${a[1]}`)}}let l=t?e:i,o=jQuery("#wpadminbar"),s=jQuery("header"),h=0;if(parseInt(eztoc_smooth_local.scroll_offset)>30&&(h=parseInt(eztoc_smooth_local.scroll_offset)),o.length&&(h+=o.height()),(s.length&&"fixed"==s.css("position")||"sticky"==s.css("position"))&&(h+=s.height()),jQuery('[ez-toc-data-id="'+decodeURI(l)+'"]').length>0&&(h=jQuery('[ez-toc-data-id="'+decodeURI(l)+'"]').offset().top-h),jQuery("html, body").animate({scrollTop:h},500),t)return!1})});
!function(factory){var registeredInModuleLoader;if("function"==typeof define&&define.amd&&(define(factory),registeredInModuleLoader=!0),"object"==typeof exports&&(module.exports=factory(),registeredInModuleLoader=!0),!registeredInModuleLoader){var OldCookies=window.Cookies,api=window.Cookies=factory();api.noConflict=function(){return window.Cookies=OldCookies,api}}}((function(){function extend(){for(var i=0,result={};i<arguments.length;i++){var attributes=arguments[i];for(var key in attributes)result[key]=attributes[key]}return result}function decode(s){return s.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function init(converter){function api(){}function set(key,value,attributes){if("undefined"!=typeof document){"number"==typeof(attributes=extend({path:"/"},api.defaults,attributes)).expires&&(attributes.expires=new Date(1*new Date+864e5*attributes.expires)),attributes.expires=attributes.expires?attributes.expires.toUTCString():"";try{var result=JSON.stringify(value);/^[\{\[]/.test(result)&&(value=result)}catch(e){}value=converter.write?converter.write(value,key):encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),key=encodeURIComponent(String(key)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var stringifiedAttributes="";for(var attributeName in attributes)attributes[attributeName]&&(stringifiedAttributes+="; "+attributeName,!0!==attributes[attributeName]&&(stringifiedAttributes+="="+attributes[attributeName].split(";")[0]));return document.cookie=key+"="+value+stringifiedAttributes}}function get(key,json){if("undefined"!=typeof document){for(var jar={},cookies=document.cookie?document.cookie.split("; "):[],i=0;i<cookies.length;i++){var parts=cookies[i].split("="),cookie=parts.slice(1).join("=");json||'"'!==cookie.charAt(0)||(cookie=cookie.slice(1,-1));try{var name=decode(parts[0]);if(cookie=(converter.read||converter)(cookie,name)||decode(cookie),json)try{cookie=JSON.parse(cookie)}catch(e){}if(jar[name]=cookie,key===name)break}catch(e){}}return key?jar[key]:jar}}return api.set=set,api.get=function(key){return get(key,!1)},api.getJSON=function(key){return get(key,!0)},api.remove=function(key,attributes){set(key,"",extend(attributes,{expires:-1}))},api.defaults={},api.withConverter=init,api}return init((function(){}))}));
(function(){var a,b;a=this.jQuery||window.jQuery;b=a(window);a.fn.stick_in_parent=function(d){var p,m,o,n,j,h,k,f,l,e,c,g;if(d==null){d={};}g=d.sticky_class,h=d.inner_scrolling,c=d.recalc_every,e=d.parent,l=d.offset_top,f=d.spacer,o=d.bottoming;
if(l==null){l=0;}if(e==null){e=void 0;}if(h==null){h=true;}if(g==null){g="is_stuck";}p=a(document);if(o==null){o=true;}n=function(t,G,q,i,B,C,y,z){var D,H,r,F,I,s,w,u,x,A,v,E;
if(t.data("sticky_kit")){return;}t.data("sticky_kit",true);I=p.height();w=t.parent();if(e!=null){w=w.closest(e);}if(!w.length){throw"failed to find stick parent";
}r=false;D=false;v=f!=null?f&&t.closest(f):a("<div />");u=function(){var J,L,K;if(z){return;}I=p.height();J=parseInt(w.css("border-top-width"),10);L=parseInt(w.css("padding-top"),10);
G=parseInt(w.css("padding-bottom"),10);q=w.offset().top+J+L;i=w.height();if(r){r=false;D=false;if(f==null){t.insertAfter(v);v.detach();}t.css({position:"",top:"",width:"",bottom:""}).removeClass(g);
K=true;}B=t.offset().top-(parseInt(t.css("margin-top"),10)||0)-l;C=t.outerHeight(true);y=t.css("float");if(v){v.css({width:t.outerWidth(true),height:C,display:t.css("display"),"vertical-align":t.css("vertical-align"),"float":y});
}if(K){return E();}};u();if(C===i){return;}F=void 0;s=l;A=c;E=function(){var L,O,M,K,J,N;if(z){return;}M=false;if(A!=null){A-=1;if(A<=0){A=c;u();M=true;
}}if(!M&&p.height()!==I){u();M=true;}K=b.scrollTop();if(F!=null){O=K-F;}F=K;if(r){if(o){J=K+C+s>i+q;if(D&&!J){D=false;t.css({position:"fixed",bottom:"",top:s}).trigger("sticky_kit:unbottom");
}}if(K<B){r=false;s=l;if(f==null){if(y==="left"||y==="right"){t.insertAfter(v);}v.detach();}L={position:"",width:"",top:""};t.css(L).removeClass(g).trigger("sticky_kit:unstick");
}if(h){N=b.height();if(C+l>N){if(!D){s-=O;s=Math.max(N-C,s);s=Math.min(l,s);if(r){t.css({top:s+"px"});}}}}}else{if(K>B){r=true;L={position:"fixed",top:s};
L.width=t.css("box-sizing")==="border-box"?t.outerWidth()+"px":t.width()+"px";t.css(L).addClass(g);if(f==null){t.after(v);if(y==="left"||y==="right"){v.append(t);
}}t.trigger("sticky_kit:stick");}}if(r&&o){if(J==null){J=K+C+s>i+q;}if(!D&&J){D=true;if(w.css("position")==="static"){w.css({position:"relative"});}return t.css({position:"absolute",bottom:G,top:"auto"}).trigger("sticky_kit:bottom");
}}};x=function(){u();return E();};H=function(){z=true;b.off("touchmove",E);b.off("scroll",E);b.off("resize",x);a(document.body).off("sticky_kit:recalc",x);
t.off("sticky_kit:detach",H);t.removeData("sticky_kit");t.css({position:"",bottom:"",top:"",width:""});w.position("position","");if(r){if(f==null){if(y==="left"||y==="right"){t.insertAfter(v);
}v.remove();}return t.removeClass(g);}};b.on("touchmove",E);b.on("scroll",E);b.on("resize",x);a(document.body).on("sticky_kit:recalc",x);t.on("sticky_kit:detach",H);
return setTimeout(E,0);};for(j=0,k=this.length;j<k;j++){m=this[j];n(a(m));}return this;};}).call(this);
jQuery((function(e){if("undefined"!=typeof ezTOC){function t(){if(0!==e(".ez-toc-widget-container.ez-toc-affix").length){var t=30;void 0!==ezTOC.scroll_offset&&(t=parseInt(ezTOC.scroll_offset)),e(ezTOC.affixSelector).stick_in_parent({inner_scrolling:!1,offset_top:t})}if(e.fn.shrinkTOCWidth=function(){e(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&e(this).css("width","")},void 0!==ezTOC.visibility_hide_by_default){var o=e(".ez-toc-toggle:not(.ez-toc-loaded),.ez-toc-widget-sticky-toggle:not(.ez-toc-loaded)"),i=void 0!==ezTOC.visibility_hide_by_device?ezTOC.visibility_hide_by_device:0,c=ezTOC.visibility_hide_by_default;e.each(o,(function(t,o){var n=e(this);e(n).addClass("ez-toc-loaded");var s=e(n).parents("#ez-toc-container,#ez-toc-widget-container,#ez-toc-widget-sticky-container").find("ul.ez-toc-list,ul.ez-toc-widget-sticky-list");if(e(s).hasClass("eztoc-toggle-hide-by-default")&&(c=1),"undefined"!=typeof Cookies&&(Cookies?(1==Cookies.get("ezTOC_hidetoc-"+t)?e(n).data("visible",!1):e(n).data("visible",!0),Cookies.remove("ezTOC_hidetoc-"+t)):(e(n).data("visible",!0),Cookies.remove("ezTOC_hidetoc-"+t))),c&&"0"!=i&&e(n).data("visible",!1),!e(n).data("visible")){s.hide();const e=document.querySelector("#ez-toc-container");if(e){const t=e.querySelector(".ez-toc-box-title");t&&t.classList.add("toc-closed")}else{const e=document.querySelector(".ez-toc-widget-container,.ez-toc-widget-sticky-container");if(e){const t=e.querySelector(".ez-toc-box-title");t&&t.classList.add("toc-closed")}}}e(n).on("click",(function(o){o.preventDefault();const i=document.querySelector("#ez-toc-container");if(i){i.classList.toggle("toc_close");const e=i.querySelector(".ez-toc-box-title");e&&e.classList.toggle("toc-closed")}else{const e=document.querySelector(".ez-toc-widget-container,.ez-toc-widget-sticky-container");e.classList.toggle("toc_close");const t=e.querySelector(".ez-toc-box-title");t&&t.classList.toggle("toc-closed")}e(this).data("visible")?(e(this).data("visible",!1),"undefined"!=typeof Cookies&&Cookies&&(c?Cookies.set("ezTOC_hidetoc-"+t,null,{path:"/",sameSite:"Strict"}):Cookies.set("ezTOC_hidetoc-"+t,"1",{expires:30,path:"/",sameSite:"Strict"})),s.hide("fast")):(e(this).data("visible",!0),"undefined"!=typeof Cookies&&Cookies&&(c?Cookies.set("ezTOC_hidetoc-"+t,"1",{expires:30,path:"/",sameSite:"Strict"}):Cookies.set("ezTOC_hidetoc-"+t,null,{path:"/",sameSite:"Strict"})),s.show("fast"))}))}))}var n=e("span.ez-toc-section").toArray(),s=function(t){return t.reduce((function(t,o){return t[o.id]=function(t){return e('.ez-toc-widget-container .ez-toc-list a[href="#'+e(t).attr("id")+'"]')}(o),t}),{})}(n),a=e.map(s,(function(e,t){return e})),l=function(){var t=5;void 0!==ezTOC.smooth_scroll&&1===parseInt(ezTOC.smooth_scroll)&&(t=void 0!==ezTOC.scroll_offset?parseInt(ezTOC.scroll_offset):30);var o=e("#wpadminbar");o.length&&(t+=o.height());return t}();function r(){var t=function(t,o){var i=e(window).scrollTop()+t+1,c=o[0],n=i-e(c).offset().top;return o.forEach((function(t){var o=i-e(t).offset().top;o>0&&o<n&&(n=o,c=t)})),c}(l,n);if(t){var o=s[t.id];!function(e,t){t.forEach((function(t){e!==t&&t.parent().hasClass("active")&&t.parent().removeClass("active")}))}(o,a),function(t){var o=t.parent();o.hasClass("active")||o.addClass("active");!function(t){var o=function(t){var o=e(t),i=o.html();o.parent().append('<li id="ez-toc-height-test" class="active">'+i+"</li>");var c=e("#ez-toc-height-test"),n=c.height();return c.remove(),n-(o.children("ul").first().height()||0)}(t);!function(t){e(".ez-toc-widget-container ul.ez-toc-list li.active").css("height",t+"px")}(o)}(o)}(o)}}n.length>0&&e(".ez-toc-widget-container").length&&e(window).on("load resize scroll",r)}function o(){e('.ez-toc-list[class*="ez-toc-columns-"]').each((function(){var t=e(this),o=t.attr("class").match(/ez-toc-columns-(\d+)/);o&&(parseInt(o[1])<=1||(t.addClass("ez-toc-columns-optimized"),t.find("li").each((function(){var t=e(this);t.outerHeight()>50&&t.css("break-inside","avoid")}))))}))}e("#ez-toc-container").length&&(e("#ez-toc-container .ez-toc-toggle label span").html()||e("#ez-toc-container .ez-toc-toggle label").html(ezTOC.fallbackIcon)),ezTOC.init=function(){t()},t(),setTimeout(o,100),void 0!==ezTOC.ajax_toggle&&1===parseInt(ezTOC.ajax_toggle)&&e(document).ajaxComplete((function(){t(),setTimeout(o,100)}))}e(document).on("click","#ez-toc-open-sub-hd",(function(t){e(this).attr("id","ez-toc-open-sub-hd-active"),t.preventDefault()})),e(document).on("click","#ez-toc-open-sub-hd-active",(function(t){e(this).attr("id","ez-toc-open-sub-hd"),t.preventDefault()})),e("#ez-toc-more-links-enabler").click((function(){e(".ez-toc-more-link").show(),e("#ez-toc-more-links-enabler").hide(),e("#ez-toc-more-links-disabler").attr("style","display:inline-block")})),e("#ez-toc-more-links-disabler").click((function(){e(".ez-toc-more-link").hide(),e("#ez-toc-more-links-enabler").show(),e("#ez-toc-more-links-disabler").hide()})),1===parseInt(ezTOC.chamomile_theme_is_on)&&e("#ez-toc-container").find(".hamburger").remove()}));
document.addEventListener("DOMContentLoaded",(function(){"use strict";({init:function(){this.bindCountdowns()},bindCountdowns:function(){var t=document.querySelectorAll(".sc-smart-coupon-countdown");t.length&&t.forEach((function(t){var e=parseInt(t.getAttribute("data-expiry"),10);e&&function n(){var r=(new Date).getTime(),o=e-r;if(o<=0){t.style.display="none";var i=t.nextElementSibling;i&&i.classList.contains("sc-expired-text")&&(i.style.display="block")}else{var a=Math.floor(o/864e5),s=Math.floor(o%864e5/36e5),c=Math.floor(o%36e5/6e4),d=Math.floor(o%6e4/1e3),l=t.querySelector(".sc-timer-days"),u=t.querySelector(".sc-timer-hours"),S=t.querySelector(".sc-timer-minutes"),m=t.querySelector(".sc-timer-seconds");l&&(l.textContent=String(a).padStart(2,"0")),u&&(u.textContent=String(s).padStart(2,"0")),S&&(S.textContent=String(c).padStart(2,"0")),m&&(m.textContent=String(d).padStart(2,"0")),requestAnimationFrame(n)}}()}))}}).init()}));
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(e,t,r){"use strict";var n=e("./init"),a={init:function(e){this.get=n(e),e&&e.callback&&"function"==typeof e.callback&&e.callback(this.get)}};t.exports=a},{"./init":6}],2:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/utils"),i={containers:{current:"sbjs_current",current_extra:"sbjs_current_add",first:"sbjs_first",first_extra:"sbjs_first_add",session:"sbjs_session",udata:"sbjs_udata",promocode:"sbjs_promo"},service:{migrations:"sbjs_migrations"},delimiter:"|||",aliases:{main:{type:"typ",source:"src",medium:"mdm",campaign:"cmp",content:"cnt",term:"trm",id:"id",platform:"plt",format:"fmt",tactic:"tct"},extra:{fire_date:"fd",entrance_point:"ep",referer:"rf"},session:{pages_seen:"pgs",current_page:"cpg"},udata:{visits:"vst",ip:"uip",agent:"uag"},promo:"code"},pack:{main:function(e){return i.aliases.main.type+"="+e.type+i.delimiter+i.aliases.main.source+"="+e.source+i.delimiter+i.aliases.main.medium+"="+e.medium+i.delimiter+i.aliases.main.campaign+"="+e.campaign+i.delimiter+i.aliases.main.content+"="+e.content+i.delimiter+i.aliases.main.term+"="+e.term+i.delimiter+i.aliases.main.id+"="+e.id+i.delimiter+i.aliases.main.platform+"="+e.platform+i.delimiter+i.aliases.main.format+"="+e.format+i.delimiter+i.aliases.main.tactic+"="+e.tactic},extra:function(e){return i.aliases.extra.fire_date+"="+a.setDate(new Date,e)+i.delimiter+i.aliases.extra.entrance_point+"="+document.location.href+i.delimiter+i.aliases.extra.referer+"="+(document.referrer||n.none)},user:function(e,t){return i.aliases.udata.visits+"="+e+i.delimiter+i.aliases.udata.ip+"="+t+i.delimiter+i.aliases.udata.agent+"="+navigator.userAgent},session:function(e){return i.aliases.session.pages_seen+"="+e+i.delimiter+i.aliases.session.current_page+"="+document.location.href},promo:function(e){return i.aliases.promo+"="+a.setLeadingZeroToInt(a.randomInt(e.min,e.max),e.max.toString().length)}}};t.exports=i},{"./helpers/utils":5,"./terms":9}],3:[function(e,t,r){"use strict";var n=e("../data").delimiter;t.exports={useBase64:!1,setBase64Flag:function(e){this.useBase64=e},encodeData:function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\~/g,"%7E").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},decodeData:function(e){try{return decodeURIComponent(e).replace(/\%21/g,"!").replace(/\%7E/g,"~").replace(/\%2A/g,"*").replace(/\%27/g,"'").replace(/\%28/g,"(").replace(/\%29/g,")")}catch(t){try{return unescape(e)}catch(r){return""}}},set:function(e,t,r,n,a){var i,s;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),i="; expires="+o.toGMTString()}else i="";s=n&&!a?";domain=."+n:"";var c=this.encodeData(t);this.useBase64&&(c=btoa(c).replace(/=+$/,"")),document.cookie=this.encodeData(e)+"="+c+i+s+"; path=/"},get:function(e){for(var t=this.encodeData(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t)){var i=a.substring(t.length,a.length);if(/^[A-Za-z0-9+/]+$/.test(i))try{i=atob(i.padEnd(4*Math.ceil(i.length/4),"="))}catch(s){}return this.decodeData(i)}}return null},destroy:function(e,t,r){this.set(e,"",-1,t,r)},parse:function(e){var t=[],r={};if("string"==typeof e)t.push(e);else for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);for(var i=0;i<t.length;i++){var s;r[this.unsbjs(t[i])]={},s=this.get(t[i])?this.get(t[i]).split(n):[];for(var o=0;o<s.length;o++){var c=s[o].split("="),u=c.splice(0,1);u.push(c.join("=")),r[this.unsbjs(t[i])][u[0]]=this.decodeData(u[1])}}return r},unsbjs:function(e){return e.replace("sbjs_","")}}},{"../data":2}],4:[function(e,t,r){"use strict";t.exports={parse:function(e){for(var t=this.parseOptions,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},a=14;a--;)n[t.key[a]]=r[a]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,a){r&&(n[t.q.name][r]=a)}),n},parseOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(e){for(var t={},r=(e||window.location.search.substring(1)).split("&"),n=0;n<r.length;n++){var a=r[n].split("=");if("undefined"==typeof t[a[0]])t[a[0]]=a[1];else if("string"==typeof t[a[0]]){var i=[t[a[0]],a[1]];t[a[0]]=i}else t[a[0]].push(a[1])}return t},getHost:function(e){return this.parse(e).host.replace("www.","")}}},{}],5:[function(e,t,r){"use strict";t.exports={escapeRegexp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},setDate:function(e,t){var r=e.getTimezoneOffset()/60,n=e.getHours(),a=t||0===t?t:-r;return e.setHours(n+r+a),e.getFullYear()+"-"+this.setLeadingZeroToInt(e.getMonth()+1,2)+"-"+this.setLeadingZeroToInt(e.getDate(),2)+" "+this.setLeadingZeroToInt(e.getHours(),2)+":"+this.setLeadingZeroToInt(e.getMinutes(),2)+":"+this.setLeadingZeroToInt(e.getSeconds(),2)},setLeadingZeroToInt:function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},randomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}}},{}],6:[function(e,t,r){"use strict";var n=e("./data"),a=e("./terms"),i=e("./helpers/cookies"),s=e("./helpers/uri"),o=e("./helpers/utils"),c=e("./params"),u=e("./migrations");t.exports=function(e){var t,r,p,f,m,d,l,g,h,y,_,v,b,x=c.fetch(e),k=s.getParam(),w=x.domain.host,q=x.domain.isolate,I=x.lifetime;function j(e){switch(e){case a.traffic.utm:t=a.traffic.utm,r="undefined"!=typeof k.utm_source?k.utm_source:"undefined"!=typeof k.gclid?"google":"undefined"!=typeof k.yclid?"yandex":a.none,p="undefined"!=typeof k.utm_medium?k.utm_medium:"undefined"!=typeof k.gclid?"cpc":"undefined"!=typeof k.yclid?"cpc":a.none,f="undefined"!=typeof k.utm_campaign?k.utm_campaign:"undefined"!=typeof k[x.campaign_param]?k[x.campaign_param]:"undefined"!=typeof k.gclid?"google_cpc":"undefined"!=typeof k.yclid?"yandex_cpc":a.none,m="undefined"!=typeof k.utm_content?k.utm_content:"undefined"!=typeof k[x.content_param]?k[x.content_param]:a.none,l=k.utm_id||a.none,g=k.utm_source_platform||a.none,h=k.utm_creative_format||a.none,y=k.utm_marketing_tactic||a.none,d="undefined"!=typeof k.utm_term?k.utm_term:"undefined"!=typeof k[x.term_param]?k[x.term_param]:function(){var e=document.referrer;if(k.utm_term)return k.utm_term;if(!(e&&s.parse(e).host&&s.parse(e).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)))return!1;try{return s.getParam(s.parse(document.referrer).query).text}catch(t){return!1}}()||a.none;break;case a.traffic.organic:t=a.traffic.organic,r=r||s.getHost(document.referrer),p=a.referer.organic,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.referral:t=a.traffic.referral,r=r||s.getHost(document.referrer),p=p||a.referer.referral,f=a.none,m=s.parse(document.referrer).path,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.typein:t=a.traffic.typein,r=x.typein_attributes.source,p=x.typein_attributes.medium,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;default:t=a.oops,r=a.oops,p=a.oops,f=a.oops,m=a.oops,d=a.oops,l=a.oops,g=a.oops,h=a.oops,y=a.oops}var i={type:t,source:r,medium:p,campaign:f,content:m,term:d,id:l,platform:g,format:h,tactic:y};return n.pack.main(i)}function R(e){var t=document.referrer;switch(e){case a.traffic.organic:return!!t&&H(t)&&function(e){var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp("yandex")+"\\..{2,9}$"),n=new RegExp(".*"+o.escapeRegexp("text")+"=.*"),a=new RegExp("^(?:www\\.)?"+o.escapeRegexp("google")+"\\..{2,9}$");if(s.parse(e).query&&s.parse(e).host.match(t)&&s.parse(e).query.match(n))return r="yandex",!0;if(s.parse(e).host.match(a))return r="google",!0;if(!s.parse(e).query)return!1;for(var i=0;i<x.organics.length;i++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.organics[i].host)+"$","i"))&&s.parse(e).query.match(new RegExp(".*"+o.escapeRegexp(x.organics[i].param)+"=.*","i")))return r=x.organics[i].display||x.organics[i].host,!0;if(i+1===x.organics.length)return!1}}(t);case a.traffic.referral:return!!t&&H(t)&&function(e){if(!(x.referrals.length>0))return r=s.getHost(e),!0;for(var t=0;t<x.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.referrals[t].host)+"$","i")))return r=x.referrals[t].display||x.referrals[t].host,p=x.referrals[t].medium||a.referer.referral,!0;if(t+1===x.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function H(e){if(x.domain){if(q)return s.getHost(e)!==s.getHost(w);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(w)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function D(){i.set(n.containers.current_extra,n.pack.extra(x.timezone_offset),I,w,q),i.get(n.containers.first_extra)||i.set(n.containers.first_extra,n.pack.extra(x.timezone_offset),I,w,q)}return i.setBase64Flag(x.base64),u.go(I,w,q),i.set(n.containers.current,function(){var e;if("undefined"!=typeof k.utm_source||"undefined"!=typeof k.utm_medium||"undefined"!=typeof k.utm_campaign||"undefined"!=typeof k.utm_content||"undefined"!=typeof k.utm_term||"undefined"!=typeof k.utm_id||"undefined"!=typeof k.utm_source_platform||"undefined"!=typeof k.utm_creative_format||"undefined"!=typeof k.utm_marketing_tactic||"undefined"!=typeof k.gclid||"undefined"!=typeof k.yclid||"undefined"!=typeof k[x.campaign_param]||"undefined"!=typeof k[x.term_param]||"undefined"!=typeof k[x.content_param])D(),e=j(a.traffic.utm);else if(R(a.traffic.organic))D(),e=j(a.traffic.organic);else if(!i.get(n.containers.session)&&R(a.traffic.referral))D(),e=j(a.traffic.referral);else{if(i.get(n.containers.first)||i.get(n.containers.current))return i.get(n.containers.current);D(),e=j(a.traffic.typein)}return e}(),I,w,q),i.get(n.containers.first)||i.set(n.containers.first,i.get(n.containers.current),I,w,q),i.get(n.containers.udata)?(_=parseInt(i.parse(n.containers.udata)[i.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,_=i.get(n.containers.session)?_:_+1,v=n.pack.user(_,x.user_ip)):(_=1,v=n.pack.user(_,x.user_ip)),i.set(n.containers.udata,v,I,w,q),i.get(n.containers.session)?(b=parseInt(i.parse(n.containers.session)[i.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,b+=1):b=1,i.set(n.containers.session,n.pack.session(b),x.session_length,w,q),x.promocode&&!i.get(n.containers.promocode)&&i.set(n.containers.promocode,n.pack.promo(x.promocode),I,w,q),i.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),a=e("./helpers/cookies");t.exports={go:function(e,t,r){var i,s=this.migrations,o={l:e,d:t,i:r};if(a.get(n.containers.first)||a.get(n.service.migrations)){if(!a.get(n.service.migrations))for(i=0;i<s.length;i++)s[i].go(s[i].id,o)}else{var c=[];for(i=0;i<s.length;i++)c.push(s[i].id);var u="";for(i=0;i<c.length;i++)u+=c[i]+"=1",i<c.length-1&&(u+=n.delimiter);a.set(n.service.migrations,u,o.l,o.d,o.i)}},migrations:[{id:"1418474375998",version:"1.0.0-beta",go:function(e,t){var r=e+"=1",i=e+"=0",s=function(e,t,r){return t||r?e:n.delimiter};try{var o=[];for(var c in n.containers)n.containers.hasOwnProperty(c)&&o.push(n.containers[c]);for(var u=0;u<o.length;u++)if(a.get(o[u])){var p=a.get(o[u]).replace(/(\|)?\|(\|)?/g,s);a.destroy(o[u],t.d,t.i),a.destroy(o[u],t.d,!t.i),a.set(o[u],p,t.l,t.d,t.i)}a.get(n.containers.session)&&a.set(n.containers.session,n.pack.session(0),t.l,t.d,t.i),a.set(n.service.migrations,r,t.l,t.d,t.i)}catch(f){a.set(n.service.migrations,i,t.l,t.d,t.i)}}}]}},{"./data":2,"./helpers/cookies":3}],8:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/uri");t.exports={fetch:function(e){var t=e||{},r={};if(r.lifetime=this.validate.checkFloat(t.lifetime)||6,r.lifetime=parseInt(30*r.lifetime*24*60),r.session_length=this.validate.checkInt(t.session_length)||30,r.timezone_offset=this.validate.checkInt(t.timezone_offset),r.base64=t.base64||!1,r.campaign_param=t.campaign_param||!1,r.term_param=t.term_param||!1,r.content_param=t.content_param||!1,r.user_ip=t.user_ip||n.none,t.promocode?(r.promocode={},r.promocode.min=parseInt(t.promocode.min)||1e5,r.promocode.max=parseInt(t.promocode.max)||999999):r.promocode=!1,t.typein_attributes&&t.typein_attributes.source&&t.typein_attributes.medium?(r.typein_attributes={},r.typein_attributes.source=t.typein_attributes.source,r.typein_attributes.medium=t.typein_attributes.medium):r.typein_attributes={source:"(direct)",medium:"(none)"},t.domain&&this.validate.isString(t.domain)?r.domain={host:t.domain,isolate:!1}:t.domain&&t.domain.host?r.domain=t.domain:r.domain={host:a.getHost(document.location.hostname),isolate:!1},r.referrals=[],t.referrals&&t.referrals.length>0)for(var i=0;i<t.referrals.length;i++)t.referrals[i].host&&r.referrals.push(t.referrals[i]);if(r.organics=[],t.organics&&t.organics.length>0)for(var s=0;s<t.organics.length;s++)t.organics[s].host&&t.organics[s].param&&r.organics.push(t.organics[s]);return r.organics.push({host:"bing.com",param:"q",display:"bing"}),r.organics.push({host:"yahoo.com",param:"p",display:"yahoo"}),r.organics.push({host:"about.com",param:"q",display:"about"}),r.organics.push({host:"aol.com",param:"q",display:"aol"}),r.organics.push({host:"ask.com",param:"q",display:"ask"}),r.organics.push({host:"globososo.com",param:"q",display:"globo"}),r.organics.push({host:"go.mail.ru",param:"q",display:"go.mail.ru"}),r.organics.push({host:"rambler.ru",param:"query",display:"rambler"}),r.organics.push({host:"tut.by",param:"query",display:"tut.by"}),r.referrals.push({host:"t.co",display:"twitter.com"}),r.referrals.push({host:"plus.url.google.com",display:"plus.google.com"}),r},validate:{checkFloat:function(e){return!(!e||!this.isNumeric(parseFloat(e)))&&parseFloat(e)},checkInt:function(e){return!(!e||!this.isNumeric(parseInt(e)))&&parseInt(e)},isNumeric:function(e){return!isNaN(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)}}}},{"./helpers/uri":4,"./terms":9}],9:[function(e,t,r){"use strict";t.exports={traffic:{utm:"utm",organic:"organic",referral:"referral",typein:"typein"},referer:{referral:"referral",organic:"organic",social:"social"},none:"(none)",oops:"(Houston, we have a problem)"}},{}]},{},[1])(1)});
!function(t){"use strict";const e=t.params,n=(document.querySelector.bind(document),(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){document.querySelectorAll("wc-order-attribution-inputs").forEach((t,e)=>{e>0&&t.remove()});for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}function r(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).setExtensionData("woocommerce/order-attribution",t,!0)}function c(){return"undefined"!=typeof sbjs}function d(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),r(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&c()?n:i,o=c()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!c())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const i=t.getAttributionData();a(i),r(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '<wc-order-attribution-inputs>' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);
(function(){
'use strict';
if(typeof wc_facebook_pixel_data==='undefined'){
return;
}
var data=wc_facebook_pixel_data;
var firedEvents={};
function buildEventData(event){
return {
method: event.method||'track',
name: event.name,
params: event.params||{},
eventId: event.eventId||null
};}
function shouldSkipEvent(eventId){
return eventId&&firedEvents[eventId];
}
function markEventFired(eventId){
if(eventId){
firedEvents[eventId]=true;
}}
function logWarning(message, data){
if(typeof console!=='undefined'&&console.warn){
console.warn('[FB Pixel]', message, data);
}}
function fireEvent(event){
var eventData=buildEventData(event);
if(shouldSkipEvent(eventData.eventId)){
return;
}
if(typeof fbq!=='function'){
logWarning('fbq not available, skipping event:', eventData.name);
return;
}
try {
var params=eventData.params;
if(eventData.eventId){
fbq(eventData.method, eventData.name, params, {eventID: eventData.eventId});
}else{
fbq(eventData.method, eventData.name, params);
}
markEventFired(eventData.eventId);
} catch (e){
logWarning('Event error: ' + eventData.name, e);
}}
function fireQueuedEvents(){
var events=data.eventQueue;
if(!events||!Array.isArray(events)){
return;
}
for (var i=0; i < events.length; i++){
try {
fireEvent(events[i]);
} catch (e){
logWarning('fireQueuedEvents loop error:', e);
}}
data.eventQueue=[];
}
function init(){
if(typeof fbq==='function'){
fireQueuedEvents();
return;
}
var _fbq=window.fbq;
Object.defineProperty(window, 'fbq', {
configurable: true,
enumerable: true,
get: function(){ return _fbq; },
set: function(value){
_fbq=value;
if(typeof value==='function'){
Object.defineProperty(window, 'fbq', {
configurable: true,
enumerable: true,
writable: true,
value: value
});
setTimeout(fireQueuedEvents, 0);
}}
});
}
if(document.readyState==='complete'){
init();
}else{
window.addEventListener('load', init);
}})();