"use strict";define(["jquery","app"],function($,App){var PlatSupport=function(){this.chatButton=$('[data-option="intercom"]'),this.closeButton=$("[data-plat-support-close]"),this.closeButton.on("click",$.proxy(this.onSupportCloseIconClick,this)),this.chatButton.on("click",$.proxy(this.onOptionClick,this)),$(".container2.event-item").length&&this.closeButton.css({display:"none"})};return PlatSupport.prototype.onSupportCloseIconClick=function(){"undefined"!=typeof Intercom&&Intercom.booted&&!this.intercomListenersInitialized&&(this.intercomListenersInitialized=!0,Intercom("onHide",$.proxy(function(){this.closeButton.hide()},this))),Intercom("hide"),this.closeButton.hide()},PlatSupport.prototype.onOptionClick=function(e){if(this.closeButton.is(":visible"))return Intercom("hide"),void this.closeButton.hide();window.setTimeout(function(){Intercom("show")},0),App.isMobileView()||this.closeButton.css({display:"flex"})},new PlatSupport});