let showPoweredBy=!0;var kiwi={const:{DTB:"Both",DTM:"Mobile",DTD:"Desktop",BTF:"Full",BTM:"Mini",PSR:"BottomRight",PSL:"BottomLeft",KIWI:"KIWI55"},getWidgetText:function(t){let e="";return e=(e=(e=(e=(e=(e=(e=(e=(e=t.replace(/>/gi,">")).replace(/</gi,"<")).replace(/\u21b5/gi,"\n")).replace(/

/gi,"")).replace(/<\/p>/gi,"")).replace(/ /gi," ")).replace(/
/gi,"")).replace(/<\/br>/gi,"")).replace(/\\n/g,"\n")},setup:function(t){return{wgt:t.createElement("div"),wgtBd:t.createElement("div"),imgSeg:t.createElement("div"),img:t.createElement("img"),txtSeg:t.createElement("div"),heading:t.createElement("h2"),text:t.createElement("p"),btnSeg:t.createElement("div"),bdBtn:t.createElement("a"),ftr:t.createElement("div"),ftrBtn:t.createElement("span"),wtsBtn:t.createElement("button"),bgrnd:t.createElement("div"),subPrnt:t.createElement("div"),preVw1:t.createElement("div"),preVw2:t.createElement("div"),cpRight:t.createElement("div"),wtsBtnWrap:t.createElement("div")}},detectDevice:function(){let t=!1;var e;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|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|xda|xiino|android|ipad|playbook|silk/i.test(e)||/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(e.substr(0,4)))&&(t=!0),t},init:function(t,e,n){var i=this.detectDevice(),s=!i,a=this;this.fetch(e,function(e){e&&(t||(t="chat-widget"),s?a.createWidgetD(e,t):i&&a.createWidgetM(e,t))})},show:function(){let t=document.getElementById("kiwi-big-iframe-wrapper");t&&(t.style.display="block")},hide:function(){let t=document.getElementById("kiwi-big-iframe-wrapper");t&&(t.style.display="none")},fetch:function(t,e){var n=new XMLHttpRequest,i="https://api.interakt.ai/v1/public/chat-widget/?widget_token="+t.toString();n.open("get",i,!0),n.onreadystatechange=function(){if(4==n.readyState&&200==n.status){var t=JSON.parse(n.responseText);e(t.data)}},n.send()},getData:function(t){return{btnType:t.form_factor?t.form_factor:this.const.BTF,btnTxt:t.button_text?t.button_text:"Chat with us",gdStart:t.color_hex_from?t.color_hex_from:"rgb(18, 198, 101)",gdEnd:t.color_hex_to?t.color_hex_to:"rgb(0, 148, 70)",imgUrl:t.image_url?t.image_url:"https://cdn.venuemonk.com/images/icons/vm-coupon-gift-icon.svg",greeting:t.greeting?t.greeting:"HI THERE!",intro:t.introduction?this.getWidgetText(t.introduction):"We are here to help you! Chat with us on WhatsApp for any queries.",dtype:this.const.DTB,wPosM:t.widget_position_mobile?t.widget_position_mobile:this.const.PSR,wPosD:t.widget_position_desktop?t.widget_position_desktop:this.const.PSR,sideSpsM:t.side_spacing_mobile?t.side_spacing_mobile:10,sideSpsD:t.side_spacing_desktop?t.side_spacing_desktop:10,bottomSpsM:t.bottom_spacing_mobile?t.bottom_spacing_mobile:10,bottomSpsD:t.bottom_spacing_desktop?t.bottom_spacing_desktop:10,whatsApp:t.phone_number?t.phone_number:"",preMsg:t.prefilled_message?t.prefilled_message:"Hi"}},wtsFull:function(t,e){t.style.fontSize="18px",t.style.color="#fff",t.style.background="linear-gradient(90deg, "+e.gdStart+" 0.85%, "+e.gdEnd+" 100%)",t.style.borderRadius="30px",t.style.padding="15px 20px",t.style.outline="none",t.style.border="none",t.style.cursor="pointer",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.innerHTML='    '+e.btnTxt+""},wtsMini:function(t,e){t.style.fontSize="24px",t.style.color="#fff",t.style.background="linear-gradient(90deg, "+e.gdStart+" 0.85%, "+e.gdEnd+" 100%)",t.style.borderRadius="50%",t.style.padding="8px",t.style.outline="none",t.style.border="none",t.style.cursor="pointer",t.innerHTML=''},widget:function(t,e){t.style.position="fixed",t.style.zIndex=999999999,t.style.display="none"},widgetBd:function(t,e){t.style.backdropFilter="blur(4px)",t.style.textAlign="center",t.style.border="1px solid #E8E8E8",t.style.padding="15px",t.style.borderRadius="20px",t.style.backgroundColor="#fff"},chatButton:function(t,e,n){e.style.textAlign="center",e.style.display="flex",t.innerHTML='     START CHAT',t.href="https://api.whatsapp.com/send?phone="+n.whatsApp+"&text="+encodeURIComponent(n.preMsg),t.target="_blank",t.style.border="1px solid #EBEBEB",t.style.borderRadius="30px",t.style.color="#fff",t.style.width="100%",t.style.padding="10px 24px",t.style.fontSize="16px",t.style.outline="none",t.style.cursor="pointer",t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center",t.style.textDecoration="none",t.style.marginTop="25px",t.style.background="linear-gradient("+n.gdStart+" 0%, "+n.gdEnd+" 100%)",e.appendChild(t)},footer:function(t,e,n,i){e.style.marginTop="20px",e.style.position="relative",e.style.display="flex",e.style.width="100%",i===this.const.PSL?e.style.justifyContent="flex-start":e.style.justifyContent="flex-end",t.setAttribute("data-cy","chat-widget-close-button"),t.style.width="40px",t.style.height="40px",t.style.textAlign="center",t.style.color="#fff",t.style.borderRadius="50%",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.background="linear-gradient("+n.gdStart+" 0%, "+n.gdEnd+" 100%)",t.style.cursor="pointer",t.innerHTML='',e.appendChild(t)},hidePoweredBy:function(){showPoweredBy=!1},copyRight:function(t){showPoweredBy&&(t.innerHTML='Powered by interakt.shop',t.style.textALign="center",t.style.marginTop="8px")},createWidgetD:function(t,e="chat-widget"){var n=this.getData(t),i=this.setup(window.document);i.wtsBtnWrap.style.position="fixed",i.wtsBtnWrap.style.zIndex=999999999,n.bottomSpsD,i.wtsBtnWrap.style.bottom="10px",n.wPosD===this.const.PSL?(n.sideSpsD,i.wtsBtnWrap.style.left="10px"):(n.sideSpsD,i.wtsBtnWrap.style.right="10px"),n.btnType===this.const.BTF?(this.wtsFull(i.wtsBtn,n),i.wtsBtn.style.width="220px",i.wtsBtn.style.height="50px"):(this.wtsMini(i.wtsBtn,n),i.wtsBtn.style.padding="10px",i.wtsBtn.style.height="60px",i.wtsBtn.style.width="60px"),i.wtsBtnWrap.appendChild(i.preVw1),i.wtsBtnWrap.appendChild(i.wtsBtn),this.widget(i.wgt,n),n.bottomSpsD,i.wgt.style.bottom="10px",n.wPosD===this.const.PSL?(n.sideSpsD,i.wgt.style.left="10px"):(n.sideSpsD,i.wgt.style.right="10px"),this.widgetBd(i.wgtBd,n),i.wgtBd.style.width="240px",i.wgtBd.style.padding="17px 15px 25px 15px",n.imgUrl&&"None"!==n.imgUrl&&(i.img.src=n.imgUrl,i.img.setAttribute("data-cy","chat-widget-image"),i.img.style.width="100%",i.imgSeg.style.padding="10px",i.imgSeg.appendChild(i.img));var s=function(t){var e=document.createElement("textarea");return e.innerHTML=t,e.value};i.heading.innerText=s(n.greeting),i.heading.setAttribute("data-cy","chat-widget-greetings"),i.heading.style.fontSize="24px",i.heading.style.fontWeight="bold",i.heading.style.fontFamily="Proxima Nova, Open Sans, Helvetica, Arial, sans-serif",i.text.innerHTML=s(n.intro),i.text.style.fontSize="14px",i.text.style.whiteSpace="break-spaces",i.text.setAttribute("data-cy","chat-widget-intro-message"),i.text.style.fontFamily="Open Sans, Helvetica, Arial, sans-serif",i.txtSeg.style.textAlign="center",i.txtSeg.appendChild(i.heading),i.txtSeg.appendChild(i.text),this.chatButton(i.bdBtn,i.btnSeg,n),i.bdBtn.style.marginTop="10px",this.copyRight(i.cpRight),i.wgtBd.appendChild(i.imgSeg),i.wgtBd.appendChild(i.txtSeg),i.wgtBd.appendChild(i.btnSeg),i.wgtBd.appendChild(i.cpRight),this.footer(i.ftrBtn,i.ftr,n,n.wPosD),i.ftrBtn.addEventListener("click",function(){i.wgt.style.display="none",i.wtsBtnWrap.style.display="block",document.getElementById("kiwi-big-iframe-wrapper").style.height="80px",document.getElementById("kiwi-big-iframe-wrapper").style.width="Full"===n.btnType?"240px":"80px"}),i.wtsBtn.addEventListener("click",function(){document.getElementById("kiwi-big-iframe-wrapper").style.height="550px",document.getElementById("kiwi-big-iframe-wrapper").style.width="310px",i.wgt.style.display="block",i.wtsBtnWrap.style.display="none"});var a=document.createElement("iframe");a.src="about:blank",a.height="70px",a.frameBorder="0",a.scrolling="no",a.style.zIndex=999999999,a.allowtransparency=!0;var o=document.createElement("iframe");function l(t){return t.contentWindow?t.contentWindow.document:t.contentDocument?t.contentDocument:t.document?t.document:null}o.src="about:blank","None"!==n.imgUrl?o.height="460px":o.height="260px",o.frameBorder="0",o.scrolling="no",o.style.zIndex=999999999,o.allowtransparency=!0,setTimeout(function(){console.log(a);var t=l(a);t&&t.getElementsByTagName("body")[0].appendChild(i.ftr);var e=l(o);e&&(e.getElementsByTagName("body")[0].appendChild(i.wgtBd),e.getElementsByTagName("head")[0].innerHTML='\n /* removing link to proxima nova is available via cdn */\n ')},1e3),i.wgt.appendChild(i.preVw2),i.wgt.appendChild(o),i.wgt.appendChild(a);var p=document.getElementById(e);if(p)p.appendChild(i.wtsBtnWrap),p.appendChild(i.wgt);else{var d=document.createElement("iframe");d.src="about:blank",d.height="80px",d.width=n.btnType===this.const.BTF?"240px":"80px",n.bottomSpsD?d.style.bottom=n.bottomSpsD+"px":d.style.bottom="50px",n.wPosD!=this.const.PSL?n.sideSpsD?d.style.right=n.sideSpsD+"px":d.style.right="50px":n.sideSpsD?d.style.left=n.sideSpsD+"px":d.style.left="50px",d.style.zIndex=999999999,d.style.position="fixed",d.id="kiwi-big-iframe-wrapper",d.frameBorder="0",d.allowtransparency=!0,document.body.appendChild(d);var r=l(d),g=setInterval(function(){if("complete"===r.readyState){clearInterval(g);var t=document.createElement("div");(p=t).appendChild(i.wtsBtnWrap),p.appendChild(i.wgt),r.body.appendChild(p)}},200);d.onload=function(){var t=l(d),e=document.createElement("div");(p=e).appendChild(i.wtsBtnWrap),p.appendChild(i.wgt),t.body.appendChild(p)}}},mobileBackground:function(t){t.style.position="fixed",t.style.width="100%",t.style.height="100%",t.style.backgroundColor="#000",t.style.opacity=.5,t.style.zIndex=0,t.style.top=0,t.style.right=0,t.style.bottom=0,t.style.left=0},mobileSubPrnt:function(t){t.style.position="fixed",t.style.width="100%",t.style.height="100%",t.style.zIndex=1e3,t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="flex-end",t.style.top=0,t.style.right=0,t.style.bottom=0,t.style.left=0,t.style.display="none"},widgetM:function(t,e){t.style.position="relative",e.bottomSpsM>27?t.style.bottom=e.bottomSpsM+"px":t.style.bottom="27px"},createWidgetM:function(t,e="chat-widget"){var n=this.getData(t),i=this.setup(window.document);i.wtsBtnWrap.style.position="fixed",i.wtsBtnWrap.style.zIndex=999999999,n.bottomSpsM,i.wtsBtnWrap.style.bottom="10px",n.wPosM===this.const.PSL?(n.sideSpsM,i.wtsBtnWrap.style.left="10px"):(n.sideSpsM,i.wtsBtnWrap.style.right="10px"),n.btnType===this.const.BTF?(this.wtsFull(i.wtsBtn,n),i.wtsBtn.style.width="220px",i.wtsBtn.style.height="50px"):(this.wtsMini(i.wtsBtn,n),i.wtsBtn.style.padding="10px",i.wtsBtn.style.height="60px",i.wtsBtn.style.width="60px"),i.wtsBtnWrap.appendChild(i.preVw1),i.wtsBtnWrap.appendChild(i.wtsBtn),this.widget(i.wgt,n),n.bottomSpsM,i.wgt.style.bottom="10px",n.wPosM===this.const.PSL?(n.sideSpsM,i.wgt.style.left="10px"):(n.sideSpsM,i.wgt.style.right="10px"),this.mobileSubPrnt(i.subPrnt,n),this.mobileBackground(i.bgrnd,n),this.widgetBd(i.wgtBd,n),i.wgtBd.style.width="72vw",i.wgtBd.style.minHeight="115vw",n.imgUrl&&"None"!==n.imgUrl&&(console.log(n.imgUrl,"wdimgUrl"),i.img.src=n.imgUrl,i.img.setAttribute("data-cy","chat-widget-image"),i.img.style.width="100%",i.imgSeg.style.padding="10px",i.imgSeg.appendChild(i.img));var s=function(t){var e=document.createElement("textarea");return e.innerHTML=t,e.value};i.heading.innerText=s(n.greeting),i.heading.setAttribute("data-cy","chat-widget-greetings"),i.heading.style.fontSize="22px",i.heading.style.fontWeight="bold",i.heading.style.fontFamily="Proxima Nova, Open Sans, Helvetica, Arial, sans-serif",i.text.innerHTML=s(n.intro),i.text.style.fontSize="14px",i.text.style.whiteSpace="break-spaces",i.text.setAttribute("data-cy","chat-widget-intro-message"),i.text.style.fontFamily="Open Sans, Helvetica, Arial, sans-serif",i.txtSeg.style.textAlign="center",i.txtSeg.appendChild(i.heading),i.txtSeg.appendChild(i.text),this.chatButton(i.bdBtn,i.btnSeg,n),this.copyRight(i.cpRight),i.wgtBd.appendChild(i.imgSeg),i.wgtBd.appendChild(i.txtSeg),i.wgtBd.appendChild(i.btnSeg),i.wgtBd.appendChild(i.cpRight),this.footer(i.ftrBtn,i.ftr,n,n.wPosM),i.ftrBtn.addEventListener("click",function(){i.wgt.style.display="none",i.wtsBtnWrap.style.display="block",document.getElementById("kiwi-big-iframe-wrapper").style.height="80px",document.getElementById("kiwi-big-iframe-wrapper").style.width="Full"===n.btnType?"240px":"80px"}),i.wtsBtn.addEventListener("click",function(){document.getElementById("kiwi-big-iframe-wrapper").style.height="550px",document.getElementById("kiwi-big-iframe-wrapper").style.width="310px",i.wgt.style.display="block",i.wtsBtnWrap.style.display="none"});var a=document.createElement("iframe");a.src="about:blank",a.height="70px",a.frameBorder="0",a.scrolling="no",a.style.zIndex=999999999,a.allowtransparency=!0;var o=document.createElement("iframe");function l(t){return t.contentWindow?t.contentWindow.document:t.contentDocument?t.contentDocument:t.document?t.document:null}o.src="about:blank","None"!==n.imgUrl?o.height="460px":o.height="260px",o.frameBorder="0",o.scrolling="no",o.style.zIndex=999999999,o.allowtransparency=!0,setTimeout(function(){var t=l(a);t&&t.getElementsByTagName("body")[0].appendChild(i.ftr);var e=l(o);e&&(e.getElementsByTagName("body")[0].appendChild(i.wgtBd),e.getElementsByTagName("head")[0].innerHTML='\n ')},1e3),i.preVw2.style.color="#fff",i.wgt.appendChild(i.preVw2),i.wgt.appendChild(o),i.wgt.appendChild(a);var p=document.getElementById(e);if(p)p.appendChild(i.wtsBtnWrap),i.subPrnt.appendChild(i.bgrnd),i.subPrnt.appendChild(i.wgt),p.appendChild(i.subPrnt);else{var d=document.createElement("iframe");d.src="about:blank",d.height="80px",d.width=n.btnType===this.const.BTF?"300px":"80px",n.bottomSpsM?d.style.bottom=n.bottomSpsM+"px":d.style.bottom="50px",n.wPosM!=this.const.PSL?n.sideSpsM?d.style.right=n.sideSpsM+"px":d.style.right="50px":n.sideSpsM?d.style.left=n.sideSpsM+"px":d.style.left="50px",d.style.zIndex=999999999,d.style.position="fixed",d.id="kiwi-big-iframe-wrapper",d.frameBorder="0",d.allowtransparency=!0,document.body.appendChild(d);var r=l(d),g=setInterval(function(){if("complete"===r.readyState){clearInterval(g);var t=document.createElement("div");(p=t).appendChild(i.wtsBtnWrap),p.appendChild(i.wgt),r.body.appendChild(p)}},200);d.onload=function(){var t=l(d),e=document.createElement("div");(p=e).appendChild(i.wtsBtnWrap),p.appendChild(i.wgt),t.body.appendChild(p)}}}};