!function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="https://app.purechat.com/assets/",i(i.s=130)}({1:function(e,t){e.exports={homeUrl:"https://www.purechat.com",apiUrl:"https://api.purechat.com",cdnUrl:"https://app.purechat.com",apiCdnServerUrl:"https://api-cdn.purechat.com",trackingOperatorApiUrl:"https://tracking.purechat.com",tableRenderInterval:1e3,googleEmbedApiKey:"AIzaSyAZVBKuXyvNx3c78LAliIJWOgpsTn4Ty3M",cdnServerUrl:"https://app.purechat.com",customerIoSiteId:"d4a6e4df3666072e5b55",dashboardRootUrl:"https://app.purechat.com",apiRootUrl:"https://api.purechat.com",widgetApiRootUrl:"https://widgetapi.purechat.com",filesRootUrl:"https://files.purechat.com",pingQueueUrl:"https://checkin.purechat.com/api/checkin",authCookieName:"purechatAuthv5",pidCookieName:"prodvtftwPID",pingInterval:5e3,sessionTimeout:12e5}},130:function(e,t,i){"use strict";i.r(t);var n=i(1),r=i.n(n);function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};c(this,e);var n=Object.keys(i).reduce(function(e,t){switch(t.toLowerCase().trim()){case"c":e.widgetId=i[t];break;case"o":e.overrideWidgetId=i[t];break;case"pureserverurl":e.pureServerUrl=i[t];break;case"chatserverurl":e.chatServerUrl=i[t];break;case"f":e.isWidget=i[t]}return e},{}),a=function(){var e=n.overrideWidgetId||n.widgetId;!function(e,t){y("//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js",e,function(){return y("".concat(r.a.cdnUrl,"/assets/jquery.fallback.321.js"),e,t)})}(function(){window.pc$=window.jQuery.noConflict(!0),h("".concat(r.a.widgetApiRootUrl,"/api/visitorwidget/widgetversions/").concat(e),function(i){var a=o({},n,t.mapWidgetVersionSettings(i));if(a.QuotaExceeded||a.Stop)return!1;h("".concat(r.a.apiCdnServerUrl,"/api/visitorwidget/widget/").concat(e,"/").concat(a.WidgetVersion),function(e){if(a=o({},e,a),!t.isAllowedDomain(a.AllowedDomains))return!1;!function(e,t){var i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)||"_WidgetJPCB".concat(f);window[i]=function(){t.apply(null,arguments),window[i]=function(){}};var n=document.createElement("script");n.setAttribute("data-cfasync",!1),n.setAttribute("async",!0),n.setAttribute("type","text/javascript"),f++;var r=e;r.indexOf("?")<0&&(r+="?_=_"),r+="&callback=".concat(i);var o=!1;n.onload=n.onreadystatechange=function(){o||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(o=!0,clearTimeout(d["JSONPTimeout".concat(i)]),delete d["JSONPTimeout".concat(i)])},window.location.search.indexOf("pcforcemobile")>=0&&(r+="&forceMobile=true"),n.setAttribute("src",r),document.getElementsByTagName("HEAD")[0].appendChild(n),d["JSONPTimeout".concat(i)]=setTimeout(function(){throw"Pure Chat widget failed to load"},l)}("".concat(r.a.dashboardRootUrl,"/version"),function(e){var i=e.assets["widget-script.js"]||e.assets["widgetScript.js"];y("".concat(r.a.cdnUrl,"/").concat(i),function(){window._pcwi&&delete window._pcwi;var e=window._pcWidgetInitializer;e?e.start(a,function(e){if(t.widget=e,window.purechatApi){var i=window.purechatApi,n=i.l,r=i.t;window.purechatApi=new b(e),n.forEach(function(e){return window.purechatApi.on.apply(window.purechatApi,e)}),r.forEach(function(e){return window.purechatApi.action.apply(window.purechatApi,e)})}window.MooTools&&null!==s&&(Function.prototype.bind=s)}):console.log("Pure Chat Widget failed to load")},function(){return console.log("Failed to load widget script")})},"_WidgetJPCB_Version")})})},function(){return console.log("Libraries failed to load")})};"complete"===document.readyState?setTimeout(a,0):window.addEventListener?window.addEventListener("load",a,!1):window.attachEvent?window.attachEvent("onload",a):window.onload=a}return p(e,[{key:"mapWidgetVersionSettings",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,i){var n=e[i];switch(i){case"v":t.Valid=!0===n||1===n;break;case"wv":t.WidgetVersion=n;break;case"csu":t.ChatServerUrl=n;break;case"sru":t.SiteRootUrl=n;break;case"dap":t.DisableAvailabilityPings=!0===n||1===n;break;case"ip":t.VisitorIPAddress=n;break;case"rfm":t.RequestFromMobileDevice=!0===n||1===n;break;case"b":t.IPIsBanned=!0===n||1===n;break;case"cru":t.CdnRootUrl=n;break;case"acru":t.ApiCdnRootUrl=n;break;case"id":t.Id=n;break;case"s":t.Stop=!0===n||1===n;break;case"qe":t.QuotaExceeded=!0===n||1===n;break;default:t[i]=n}return t},{})}},{key:"isAllowedDomain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0===e.length||(e.push("purechat.com"),e.some(function(e){return/^\*$/.test(e)||-1!==document.domain.search(e)}))}},{key:"set",value:function(){this.publicApi&&this.publicApi.set.apply(this.publicApi,arguments)}},{key:"get",value:function(){this.publicApi&&this.publicApi.get.apply(this.publicApi,arguments)}},{key:"on",value:function(){this.publicApi&&this.publicApi.on.apply(this.publicApi,arguments)}},{key:"trigger",value:function(){this.publicApi&&this.publicApi.trigger.apply(this.publicApi,arguments)}},{key:"publicApi",get:function(){return this.widget?this.widget.getPublicApi():null}}]),e}();window.PCWidget=w}});