"use strict";!function(t){if(!0===window.spWhatsAppIsLoaded||"identim.myshopify.com"==Shopify.shop)return!1;window.spWhatsAppIsLoaded=!0;var e="//shopiapps.in/whatsapp-share/script",i=`${e}/sp_wslcacr_widget_css.css?version=3&shop=${t}`;fetch(`/apps/sc/setting.php?shop=${t}`).then((function(t){return t.json()})).then((function(a){!0!=(0===Object.keys(a).length&&a.constructor===Object)&&function(t,e,i,a){function n(t,e,i){var a;"style"==e?((a=document.createElement("link")).rel="stylesheet",a.type="text/css"):(a=document.createElement("script")).type="text/javascript",a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readyState||(a.onreadystatechange=null,i())}:a.onload=function(){i()},"style"==e?a.href=t:a.src=t,document.getElementsByTagName("head")[0].appendChild(a)}function o(t){"complete"===document.readyState||"interactive"===document.readyState?setTimeout(t,1):document.addEventListener("DOMContentLoaded",t)}o((function(){n(t,"style",(function(){n(e,"style",(function(){n(i,"script",(function(){a(jQuery.noConflict(!0))}))}))}))}))}("//fonts.googleapis.com/css?family=Poppins:300,400,500,600,700&display=swap",i,"//ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js",(function(i){!function(t,e,i,a,n){if(!e||"3.4.1"!=e.fn.jquery)return console.info("WhatsApp load failed! Because your jquery version is low or not supported"),!1;"delete"in Array.prototype||(Array.prototype.delete=function(t){return this.splice(t,1),this});"class"in Array.prototype||(String.prototype.class=function(){return"."+this});"id"in String.prototype||(String.prototype.id=function(){return"#"+this});"inArray"in Array.prototype||(Array.prototype.inArray=function(t){var i;return i=!1,-1!=e.inArray(t,this)&&(i=!0),i});!function(t,e,i,a){t(e),t(i),t("body"),t("head"),t.fn.removeStyle=function(e){var i=new RegExp(e+"[^;]+;?","g");return this.each((function(){t(this).attr("style",(function(t,e){return e&&e.replace(i,"")}))}))},e.Shopify=e.Shopify||{},e.ShopifyAnalytics=e.ShopifyAnalytics||{},e.ShopifyObject={pageName:"",shop:Shopify.shop,theme:Shopify.theme,currency:Shopify.currency},e.ShopifyAnalytics&&e.ShopifyAnalytics.meta&&e.ShopifyAnalytics.meta.page&&e.ShopifyAnalytics.meta.page&&(e.ShopifyObject.pageName=e.ShopifyAnalytics.meta.page.pageType||(Shopify.checkout?"checkout":"cart")),a()}(e,window,document,(function(){var o,s,c;e(window),o=e(document),s=e("body"),c=e("head"),window.spWhatsShareApp=function(e,r,p,h){var d=function(t){var i;return(i=this).version="2.0.1",t.chatWidget!=h&&t.chatWidget.button!=h&&t.chatWidget.button.offset!=h&&t.chatWidget.button.offset.desktop==h&&(t.chatWidget.button.offset={mobile:t.chatWidget.button.offset,desktop:t.chatWidget.button.offset}),i.options=e.extend(!0,d.default,t),i.shareButtonOptions=i.options.shareButton,i.chatWidgetOptions=i.options.chatWidget,i.shareWidgetOptions=i.options.shareWidget,i.stickyBarOptions=i.options.stickyBar,i.container="spWhatsShare-container",i.poweredByStyle="display: block !important;position: absolute;bottom: 0;left: 0;width: 100%;min-width: 100%;height: auto;max-height: initial;overflow: inherit;font-size: 11px;font-weight: normal;line-height: 15px;border-radius: 0 0 25px 25px;padding: 5px 10px;color: #333 !important;text-align: center;z-index: 2 !important;opacity: 1 !important;visibility: visible !important;cursor: pointer;background: transparent !important;transform: none !important;clip: auto !important;",i.poweredByID=i.uniqueString(),i.init((function(){o.find("#wp_chat_btn").remove(),Array.isArray(i.options.shareWidget)||e.isEmptyObject(i.options.shareWidget)||o.find("#wp_chat_btn, #wp_share, .wa_btn.wp_share_btn").remove()})),i};return d.prototype={init:function(t){var e;return(!0===(e=this).chatWidgetOptions.display||!0===e.shareWidgetOptions.display&&!0===e.isCheckShareWidgetAllow()||!0===e.stickyBarOptions.display)&&s.append('
'),!0===e.shareButtonOptions.display&&(o.find(".sp-wpshare-probtn").css("display","inline-block"),""!=e.shareButtonOptions.style&&null!=e.shareButtonOptions.style&&c.append("")),e.chatWidget((function(){e.shareWidget((function(){e.stickyBar((function(){e.eventHandler(t)}))}))})),e},chatWidget:function(t){var e;return!0===(e=this).chatWidgetOptions.display&&!0===e.checkAvailability()&&!0===e.isCheckChatButtonAllow()?e.chatWidgetInit(t):e.callbackAction(t),e},chatWidgetInit:function(t){var e;return null!=(e=this).chatWidgetOptions.widget.contacts&&e.chatWidgetOptions.widget.contacts.length?e.chatWidgetButton((function(){e.chatWidgetNotification((function(){e.chatWidgetBox(t)}))})):e.callbackAction(t),e},chatWidgetButton:function(t){var e,i,n,s,c,r,p=(e=this).chatWidgetOptions.button.offset.desktop;switch((e.isMobile()||e.isDetectDeviceMobile())&&(p=e.chatWidgetOptions.button.offset.mobile),n="display: none;border-color: "+e.chatWidgetOptions.button.background+";background:"+e.chatWidgetOptions.button.background+";bottom: "+p+"px;",s=e.chatWidgetOptions.button.position.desktop,e.isMobile()&&(s=e.chatWidgetOptions.button.position.mobile),n+="right"==s?"right: 20px;left: auto;":"left: 20px;right: auto;",i="chat-btn-radius",c=e.chatWidgetOptions.button.theme,!0){case 2==c:i=" chat-btn-on-img";break;case 3==c||5==c:i=" chat-btn-on-img chat-btn-radius",""!=e.chatWidgetOptions.button.background&&null!=e.chatWidgetOptions.button.background||(n+="background: #075E54;border-color: #075E54;");break;case 4==c||6==c:i=" chat-btn-on-img",""!=e.chatWidgetOptions.button.background&&null!=e.chatWidgetOptions.button.background||(n+="background: #075E54;border-color: #075E54;");break;case 7==c:i=" chat-btn-radius";break;case 8==c:i="";break;case 9==c||11==c:i=" chat-btn-radius",n+="color: #fff;",""!=e.chatWidgetOptions.button.background&&null!=e.chatWidgetOptions.button.background||(n+="background: #075E54;border-color: #075E54;");break;case 10==c||12==c:i="",n+="color: #fff;",""!=e.chatWidgetOptions.button.background&&null!=e.chatWidgetOptions.button.background||(n+="background: #075E54;border-color: #075E54;");break;default:i=" chat-btn-on-img chat-btn-radius"}switch(r='
',!0){case 2==c:r+='WhatsApp';break;case 3==c||4==c:r+='WhatsApp';break;case 5==c||6==c:r+='WhatsApp';break;case 7==c||8==c:r+='WhatsApp',r+='
'+e.chatWidgetOptions.button.text+"
";break;case 9==c||10==c:r+='WhatsApp',r+='
'+e.chatWidgetOptions.button.text+"
";break;case 11==c||12==c:r+='WhatsApp',r+='
'+e.chatWidgetOptions.button.text+"
";break;default:r+='WhatsApp'}return r+="
",o.find(e.container.class()).append(r),e.callbackAction(t),e},chatWidgetNotification:function(t){var e,i,a,n;!0===(e=this).chatWidgetOptions.notification.display?(i="",a=e.chatWidgetOptions.button.position.desktop,e.isMobile()&&(a=e.chatWidgetOptions.button.position.mobile),n='
',n+='',n+="

"+e.chatWidgetOptions.notification.message+"

",n+="
",o.find(e.container.class()).append(n),e.callbackAction(t)):e.callbackAction(t);return e},chatWidgetBox:function(t){var i,n,s,c,r,p,h,d,l,u,g,b,f,y,k;return!0===(i=this).chatWidgetOptions.widget.multipleContact?(r=(c=(s=i.chatWidgetOptions.widget.header).background).gradient,p=c.colorOne,h=c.colorTwo,d=s.heading,l=s.subHeading,u=i.chatWidgetOptions.widget.contacts,g="background: "+p+";",!0===r&&(g+="background-image: linear-gradient(160deg, "+p+" 0%, "+h+" 100%);"),b="",2==i.chatWidgetOptions.widget.theme?b="spk-whatsappchat-2":3!=i.chatWidgetOptions.widget.theme&&4!=i.chatWidgetOptions.widget.theme||(b="spk-whatsappchat-3"),f="",y="",4==i.chatWidgetOptions.widget.theme&&(y=g,g="",f=" spk-gradient-box"),k=i.chatWidgetOptions.button.position.desktop,i.isMobile()&&(k=i.chatWidgetOptions.button.position.mobile),n='
',n+='
',n+="

"+d+"

",n+="

"+l+"

",n+='',n+='',n+="",1==i.chatWidgetOptions.widget.theme&&(n+=''),n+="
",n+='
',n+='
',e.each(u,(function(t,e){!0===i.checkSupportAvailability(e)&&(n+=`
`,n+='
',void 0!==e.iconType&&"custom"==e.iconType?n+='':n+='',n+='',n+="
",n+='
',n+="
"+e.name+"
",n+="

"+e.role+"

",n+="
",n+="
")})),n+="
",n+="
",!0===i.chatWidgetOptions.widget.footer.powerBY&&(n+='
Powered by Chatix
'),n+="
",o.find(i.container.class()).append(n),i.callbackAction(t)):i.callbackAction(t),i},eventHandler:function(t){var i,n;return i=this,o.ready((function(){var t=!1;t=!0===i.isDetectDeviceMobile()?i.chatWidgetOptions.device.mobile:i.chatWidgetOptions.device.desktop,!0===i.chatWidgetOptions.display&&!0===t&&!0===i.checkAvailability()&&!0===i.isCheckChatButtonAllow()&&setTimeout((function(){e(".spk-wsp-chat-btn").show(100),!0===i.chatWidgetOptions.notification.display&&null==i.getCookie("sp-chat-notification")&&setTimeout((function(){var t,o;!0===i.chatWidgetOptions.notification.flashSound&&((n=p.createElement("audio")).setAttribute("src",a+"/assets/music/beep_once.mp3"),n.setAttribute("autoplay",!1),(o=n.play())!==h&&o.then().catch((t=>{console.info("WhatsApp chat notification sound not supported for your browser!")})));t=i.chatWidgetOptions.button.offset.desktop,(i.isMobile()||i.isDetectDeviceMobile())&&(t=i.chatWidgetOptions.button.offset.mobile),e(".spk-wsp-nft-text").css({bottom:parseInt(t)+parseInt(60)+"px"}).addClass("showed")}),1e3*i.chatWidgetOptions.notification.time)}),1e3*i.chatWidgetOptions.button.time)})),o.on("click",".spk-wsp-nft-close",(function(){i.setCookie("sp-chat-notification","display",1),e(".spk-wsp-nft-text").css({bottom:""}).removeClass("showed")})),o.on("click",".sp-wpshare-probtn",(function(){var t;i.shareBtnTracking("WhatsApp Share"),t="https://web.whatsapp.com/send",!0===i.isDetectDeviceMobile()&&(t="https://api.whatsapp.com/send"),t+="?text="+e(this).attr("share-url"),i.redirectWhatsapp(t)})),o.on("click",".spk-wsp-chat-btn",(function(){i.chatBtnTracking(),!0===i.chatWidgetOptions.widget.multipleContact?(e(this).hide(),e(".spk-wsp-nft-text").removeClass("showed"),e(".spk-whatsappchat-box").addClass("chatbox-opened")):i.redirectWhatsappContactChat(i.getFirstAvailableContact())})),o.on("click",".close-spk-chctbox",(function(){e(".spk-wsp-chat-btn").show(),e(".spk-whatsappchat-box").removeClass("chatbox-opened")})),o.on("click",".spk-contact-item",(function(){var t,a,n;n=e(this),a=(t=i.chatWidgetOptions.widget.contacts)[n.attr("contact-index")]?t[n.attr("contact-index")]:{},i.redirectWhatsappContactChat(a)})),!0===i.chatWidgetOptions.widget.footer.powerBY&&(o.on("mouseenter",i.poweredByID.id(),(function(){e(this).css("text-decoration","underline")})),o.on("mouseleave",i.poweredByID.id(),(function(){e(this).css("text-decoration","none")})),o.on("click",i.poweredByID.id(),(function(){i.redirectWhatsapp("//apps.shopify.com/whatsapp-sharing")})),setInterval((function(){i.poweredBYCheck()}),4e3)),o.on("click",".spk-wspchat-sticky-btn",(function(){var t;i.shareBtnTracking("WhatsApp Share Sticky"),t="https://web.whatsapp.com/send",!0===i.isDetectDeviceMobile()&&(t="https://api.whatsapp.com/send"),t+="?text="+i.getCurrentPageUrl(),i.redirectWhatsapp(t)})),o.on("click",".spk-wspchat-sticky-bar",(function(){var t;i.shareBtnTracking("Sticky Bar"),t="https://web.whatsapp.com/send",!0===i.isDetectDeviceMobile()&&(t="https://api.whatsapp.com/send"),t+="?text="+i.stickyBarOptions.sharingText,t+="%0a"+i.getCurrentPageUrl(),i.redirectWhatsapp(t)})),i.callbackAction(t),i},getFirstAvailableContact:function(){var t=this,i={};return e.each(t.chatWidgetOptions.widget.contacts,(function(e,a){if(!0===t.checkSupportAvailability(a))return i=a,!1})),i},chatBtnTracking:function(){var t;return!0===(t=this).chatTracking||e.getJSON("http://ipinfo.io",(function(a){var n=a.ip;e.post(i+"/sp_wslcacr_save.php",{userIP:n,action:"chat-btn-tracking",pageName:ShopifyObject.pageName},(function(){t.chatTracking=!0}))})),t},shareBtnTracking:function(i){var n;return n=this,e.post(`${a}/../add_wp_share.php?shop=${t}`,{type:i,action:"add_wp_share_record",link:n.getCurrentPageUrl()},(function(){})),n},isCheckChatButtonAllow:function(){var t;return!!(t=this.chatWidgetOptions.button.pages.split(", ")).length&&t.inArray(r.ShopifyObject.pageName)},poweredBYCheck:function(){var t;if(t=this,o.find(t.container.class()).length&&!0===t.chatWidgetOptions.widget.footer.powerBY){o.find(t.container.class()+" "+t.poweredByID.id()).length&&o.find(t.container.class()+" "+t.poweredByID.id()).remove(),t.poweredByID=t.uniqueString();var i=["spk-chatbox-header","spk-chatbox-list-wrap"],a=i[Math.floor(Math.random()*i.length)];o.find(t.container.class()+" .spk-whatsappchat-box").find(a.class()).after('
Powered by Chatix
'),setTimeout((function(){o.on("mouseenter",t.poweredByID.id(),(function(){e(this).css("text-decoration","underline")})),o.on("mouseleave",t.poweredByID.id(),(function(){e(this).css("text-decoration","none")})),o.on("click",t.poweredByID.id(),(function(){t.redirectWhatsapp("//apps.shopify.com/whatsapp-sharing")}))}),100)}return t},redirectWhatsappContactChat:function(t){var e,i,a;(i="https://web.whatsapp.com/send",!0===(e=this).isDetectDeviceMobile())?(i="https://wa.me/",t.number!=h&&""!=t.number&&(i+=t.number,e.chatWidgetOptions.widget.message!=h&&null!=e.chatWidgetOptions.widget.message&&(a=(a=e.chatWidgetOptions.widget.message).toString().replace(/
/g,"%0a").replace(/<\/br>/g,"%0a").replace(/\/n/g,"%0a").replace(/<\/r/g,"%0a"),!0===e.chatWidgetOptions.widget.url&&(a+="%0a"+e.getCurrentPageUrl()),i+="?text="+a))):t.number!=h&&""!=t.number&&(i+="?phone="+t.number,e.chatWidgetOptions.widget.message!=h&&null!=e.chatWidgetOptions.widget.message&&(a=(a=e.chatWidgetOptions.widget.message).toString().replace(/
/g,"%0a").replace(/<\/br>/g,"%0a").replace(/\/n/g,"%0a").replace(/<\/r/g,"%0a"),!0===e.chatWidgetOptions.widget.url&&(a+="%0a"+e.getCurrentPageUrl()),i+="&text="+a));return t.number!=h&&""!=t.number&&e.redirectWhatsapp(i),e},shareWidget:function(t){var e;return!0===(e=this).shareWidgetOptions.display&&!0===e.isCheckShareWidgetAllow()&&("both"==e.shareWidgetOptions.button.display||e.isMobile()&&"mobile"==e.shareWidgetOptions.button.display||!e.isMobile()&&"desktop"==e.shareWidgetOptions.button.display)?e.shareWidgetInit(t):e.callbackAction(t),e},shareWidgetInit:function(t){var e,i,n,s,c,r,p;if(!0==(4==(c=(e=this).shareWidgetOptions.button.theme)||5==c))i=" spk-wspchat-sticky-2";else i="";switch(s=e.shareWidgetOptions.button.position.desktop,e.isMobile()&&(s=e.shareWidgetOptions.button.position.mobile),i+="left"==s?" spk-wspchat-sticky-btn-left":" spk-wspchat-sticky-btn-right",n="",""!=e.shareWidgetOptions.button.background&&(n+="background: "+e.shareWidgetOptions.button.background+";border-color: "+e.shareWidgetOptions.button.background+";"),""!=e.shareWidgetOptions.button.fontColor&&(n+="color: "+e.shareWidgetOptions.button.fontColor+";"),!0){case 1==c:p=a+"/assets/images/button/1.png";break;case 2==c||4==c:p=a+"/assets/images/button/2.png";break;case 3==c||5==c:p=a+"/assets/images/button/3.png";break;default:p=a+"/assets/images/button/1.png"}return r='
',r+='
Share
',r+='',r+="
",o.find(e.container.class()).append(r),setTimeout((function(){o.find(".spk-wspchat-sticky-btn").addClass("spk-sticky-showed")}),1e3*e.shareWidgetOptions.button.time),e.callbackAction(t),e},stickyBar:function(t){var e;return!0===(e=this).stickyBarOptions.display?e.stickyBarInit(t):e.callbackAction(t),e},stickyBarInit:function(t){var e,i,n,s,c,r,p,h;return s=(e=this).stickyBarOptions.theme,i=e.stickyBarOptions.displayType,r=e.stickyBarOptions.position,n=!0===(n=e.isMobile())?"mobile":"desktop","both"!=i&&i!=n?(e.callbackAction(t),e):(c="",h=e.stickyBarOptions.offset,c+="top-left"==r?"top: "+h+"%;left: "+h+"%;":"top-right"==r?"top: "+h+"%;right: "+h+"%;":"bottom-left"==r?"bottom: "+h+"%;left: "+h+"%;":"bottom: "+h+"%;right: "+h+"%;",p='
',p+='
',p+="
",p+=e.stickyBarOptions.labelText,p+='',p+="
",p+="
",p+="
",o.find(e.container.class()).append(p),"top-left"==r||"top-right"==r?o.find("html").css("padding-top",o.find(".spk-wspchat-sticky-bar").height()):o.find("html").css("padding-bottom",o.find(".spk-wspchat-sticky-bar").height()),e.callbackAction(t),e)},getCurrentPageUrl:function(){return encodeURIComponent(r.location.href)},isMobile:function(){return r.matchMedia("only screen and (max-width: 760px)").matches},isDetectDeviceMobile:function(){return!!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))},currentDirectory:function(){var t;return(t=r.location.pathname).substring(0,t.lastIndexOf("/"))},isCheckShareWidgetAllow:function(){var t;return!!(t=this.shareWidgetOptions.button.pages.split(", ")).length&&t.inArray(r.ShopifyObject.pageName)},getCurrentPageName:function(){var t;return(t=r.location.pathname.split("/"))[1]?t[1]:"index"},callbackAction:function(t){var i;return i=this,e.isFunction(t)&&t.apply(i,Array.prototype.slice.call(arguments).delete(0)),i},uniqueString:function(){return Math.random().toString(36).substr(2)},checkSupportAvailability:function(t){if(t==h)return!1;var e,i,a,n;if(!t.available||"auto"==t.available)return!0;if(e=(new Date).toLocaleString("en-US",{timeZone:t.availableTimezone,hour12:!0}),i=(e=new Date(e)).getHours()+":"+e.getMinutes(),void 0!==t.schedule){var o=t.schedule[e.getDay()];if(!o.enable)return!1;a=o.start,n=o.end}else a=t.availableStart,n=t.availableEnd;return a=Date.parse("01/01/2011 "+a+":00"),n=Date.parse("01/01/2011 "+n+":00"),a<(i=Date.parse("01/01/2011 "+i+":00"))&&n>i||a==n},checkAvailability:function(){var t,i,a,n,o,s;return t=this,i=!1,e.each(t.chatWidgetOptions.widget.contacts,(function(e,a){if(!0===t.checkSupportAvailability(a))return i=!0,!1})),!0===i&&("auto"==t.chatWidgetOptions.available.type||(a=(new Date).toLocaleString("en-US",{timeZone:t.chatWidgetOptions.available.timezone,hour12:!1}),n=(a=new Date(a)).getHours()+":"+a.getMinutes(),o=t.chatWidgetOptions.available.start,s=t.chatWidgetOptions.available.end,o=Date.parse("01/01/2011 "+o+":00"),s=Date.parse("01/01/2011 "+s+":00"),o<(n=Date.parse("01/01/2011 "+n+":00"))&&s>n||o==s))},setCookie:function(t,e,i){var a=new Date;a.setTime(a.getTime()+24*i*60*60*1e3);var n="expires="+a.toUTCString();p.cookie=t+"="+e+";"+n+";path=/"},getCookie:function(t){for(var e=t+"=",i=decodeURIComponent(p.cookie).split(";"),a=0;a