140020547b5505898398a122ad756ba48c9716375215920239f7f062d4349b50

Source Code:

!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t){!function(){var e="https://permissions-api.1talking.net/",t=e+"widget/get",n=e+"widget/callback",o="255455184838968",r={ajax:function(e,t){if(!e||"object"!=typeof e||!e.url)return!1;e.type||(e.type="GET"),t||(t=function(){});var n=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),o="boolean"!=typeof e.async||e.async,r="GET"===e.type.toUpperCase()?"GET":"POST",i=e.url,s=e.param,a=e.headers;for(var c in n.onreadystatechange=function(){4===this.readyState&&(200===this.status?t(JSON.parse(n.responseText)):t({data:null}))},n.open(r,i,o),a)n.setRequestHeader(c,a[c]);return n.withCredentials=!0,n.send("GET"!==r&&JSON.stringify(s)),n.onerror=function(e){},n}};function i(){var e=document.querySelector('div[id^="xbot-sendtomsg"]');if(!e)return!1;var t=e.id.match(/.*\-([^\-]+)/);if(!t||t[1].indexOf("sendtomsg")>-1)return!1;if(d&&f){!1;var n=a("div",d);return e.getElementsByClassName("fb-send-to-messenger").length<1&&e.appendChild(n),p(d,f)}s(e,{html_code:t[1]},(function(e){return{class:"fb-send-to-messenger",messenger_app_id:o,page_id:e.page_id,"data-ref":"w_"+e._id+":s_2:c_"+e.random_id,color:e.config.sm_button_color,cta_text:e.config.sm_button_text,size:e.config.sm_button_size}}))}function s(e,n,i){n.systemId=10002,r.ajax({url:t,type:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},param:n},(function(t){var n=t.data,r=i(n),s=a("div",r);e.getElementsByClassName("fb-send-to-messenger").length<1&&e.appendChild(s),"fb-messenger-checkbox"===r.class&&(window.XBOT.LogEvent=function(e){!function(e){FB.AppEvents.logEvent("MessengerCheckboxUserConfirmation",null,{app_id:o,page_id:e.page_id,ref:e.ref,user_ref:e.user_ref})}({page_id:r.page_id,app_id:o,user_ref:r.user_ref,ref:"w_"+n._id+":s_2"})}),p(r,n.token)}))}function a(e,t){var n=document.createElement(e);try{if(!t||"object"!=typeof t)return n;for(var o in t){var r=t[o];"innerHTML"===o?n.innerHTML=r:n.setAttribute(o,r)}return n}catch(e){console.log(e)}}function c(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}window.XBOT={LogEvent:function(){},initFbSendToMessenger:i},i();var u=null,d=null,f=null,l=!1;function p(e,t){var i,s,a,p,b;d=e,f=t,u&&(clearTimeout(u),u=null),window.FB=null,window.fbAsyncInit=function(){!function(e,t){var i=window.FB;if(!i)return!1;if(i.init({appId:o,autoLogAppEvents:!0,xfbml:!0,version:"v4.0"}),"fb-messenger-checkbox"!==e.class)i.Event.subscribe("send_to_messenger",(function(e){if(e&&"rendered"===e.event){if(c(window.xbotAsyncInit,"Array")&&window.xbotAsyncInit.length>0){var o=window.xbotAsyncInit[0];if(c(o,"Function")){if(l)return;window.XBOT.Widget={setConfig:function(e){l=!0,r.ajax({url:n,type:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},param:{token:t,send_data:e,systemId:10002}},(function(e){console.log(e)}))}},o()}}}else e&&"opt_in"===e.event&&c(window.xbotSubscribeStatusEvent,"Function")&&window.xbotSubscribeStatusEvent("clicked")}))}(e,t)},i=document,s="script",a="xbot-facebook-jssdk"+Math.random().toString(16).slice(2),b=i.getElementsByTagName(s)[0],i.getElementById(a)||((p=i.createElement(s)).id=a,p.async=!0,p.src="https://connect.facebook.net/en_US/sdk.js",b.parentNode.insertBefore(p,b))}window.fbAsyncInit=function(){FB.Event.subscribe("send_to_messenger",(function(e){e&&"rendered"===e.event||e&&"opt_in"===e.event&&c(window.xbotSubscribeStatusEvent,"Function")&&window.xbotSubscribeStatusEvent("clicked")})),!0}}()}]);