1var c=(function(){function e(t){this.parent=t}return e.prototype.setMessageText=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","message:text",[t]])},e.prototype.send=function(t,i){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:send",[t,i]])},e.prototype.sendText=function(t){this.send("text",t)},e.prototype.sendFile=function(t){this.send("file",t)},e.prototype.sendAnimation=function(t){this.send("animation",t)},e.prototype.sendAudio=function(t){this.send("audio",t)},e.prototype.show=function(t,i){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:show",[t,i]])},e.prototype.showText=function(t){this.show("text",t)},e.prototype.showFile=function(t){this.show("file",t)},e.prototype.showAnimation=function(t){this.show("animation",t)},e.prototype.showAudio=function(t){this.show("audio",t)},e.prototype.showPicker=function(t){this.show("picker",t)},e.prototype.showField=function(t){this.show("field",t)},e.prototype.showCarousel=function(t){this.show("carousel",t)},e.prototype.markAsRead=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:read"])},e.prototype.startThread=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:thread:start",[t]])},e.prototype.endThread=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:thread:end",[t]])},e.prototype.onMessageSent=function(t){this.parent.createSingletonIfNecessary(),this.offMessageSent(),window.$crisp.push(["on","message:sent",t])},e.prototype.offMessageSent=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:sent"])},e.prototype.onMessageReceived=function(t){this.parent.createSingletonIfNecessary(),this.offMessageReceived(),window.$crisp.push(["on","message:received",t])},e.prototype.offMessageReceived=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:received"])},e.prototype.onMessageComposeSent=function(t){this.parent.createSingletonIfNecessary(),this.offMessageComposeSent(),window.$crisp.push(["on","message:compose:sent",t])},e.prototype.offMessageComposeSent=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:compose:sent"])},e.prototype.onMessageComposeReceived=function(t){this.parent.createSingletonIfNecessary(),this.offMessageComposeReceived(),window.$crisp.push(["on","message:compose:received",t])},e.prototype.offMessageComposeReceived=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:compose:received"])},e})(),a=(function(){function e(t){this.parent=t}return e.prototype.setNickname=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:nickname",[t]])},e.prototype.setEmail=function(t,i){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:email",[t,i]])},e.prototype.setPhone=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:phone",[t]])},e.prototype.setAvatar=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:avatar",[t]])},e.prototype.setCompany=function(t,i){var n={};i&&(i.url&&(n.url=i.url),i.description&&(n.description=i.description),i.employment&&(n.employment=[i.employment.title],i.employment.role&&n.employment.push(i.employment.role))),this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:company",[t,n]])},e.prototype.getEmail=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:email"):null},e.prototype.getPhone=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:phone"):null},e.prototype.getNickname=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:nickname"):null},e.prototype.getAvatar=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:avatar"):null},e.prototype.getCompany=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:company"):null},e.prototype.onEmailChanged=function(t){this.parent.isCrispInjected()&&(this.offEmailChanged(),window.$crisp.push(["on","user:email:changed",t]))},e.prototype.offEmailChanged=function(){this.parent.isCrispInjected()&&window.$crisp.push(["off","user:email:changed"])},e.prototype.onPhoneChanged=function(t){this.parent.isCrispInjected()&&(this.offPhoneChanged(),window.$crisp.push(["on","user:phone:changed",t]))},e.prototype.offPhoneChanged=function(){this.parent.isCrispInjected()&&window.$crisp.push(["off","user:phone:changed"])},e.prototype.onNicknameChanged=function(t){this.parent.isCrispInjected()&&(this.offNicknameChanged(),window.$crisp.push(["on","user:nickname:changed",t]))},e.prototype.offNicknameChanged=function(){this.parent.isCrispInjected()&&window.$crisp.push(["off","user:nickname:changed"])},e.prototype.onAvatarChanged=function(t){this.parent.isCrispInjected()&&(this.offAvatarChanged(),window.$crisp.push(["on","user:avatar:changed",t]))},e.prototype.offAvatarChanged=function(){this.parent.isCrispInjected()&&window.$crisp.push(["off","user:avatar:changed"])},e})(),f=(function(){function e(t){this.parent=t}return e.prototype.run=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","trigger:run",[t]])},e})(),o;(function(e){e.Red="red",e.Orange="orange",e.Yellow="yellow",e.Green="green",e.Blue="blue",e.Purple="purple",e.Pink="pink",e.Brown="brown",e.Grey="grey",e.Black="black"})(o||(o={}));var h=(function(){function e(t){this.parent=t}return e.prototype.reset=function(t){t===void 0&&(t=!1),this.parent.isCrispInjected()&&window.$crisp.push(["do","session:reset",[t]])},e.prototype.setSegments=function(t,i){this.parent.createSingletonIfNecessary(),$crisp.push(["set","session:segments",[t,i]])},e.prototype.setData=function(t){var i=this,n=[];Object.entries(t).forEach(function(s){i.isValidDataValue(s[1])&&n.push([s[0],s[1]])}),this.parent.createSingletonIfNecessary(),$crisp.push(["set","session:data",[n]])},e.prototype.pushEvent=function(t,i,n){i===void 0&&(i={}),n===void 0&&(n=o.Blue),this.parent.isCrispInjected()&&window.$crisp.push(["set","session:event",[[[t,i,n]]]])},e.prototype.getData=function(t){if(this.parent.isCrispInjected())return window.$crisp.get("session:data",t)},e.prototype.getIdentifier=function(){return this.parent.isCrispInjected()?window.$crisp.get("session:identifier"):null},e.prototype.onLoaded=function(t){this.parent.createSingletonIfNecessary(),this.offLoaded(),window.$crisp.push(["on","session:loaded",t])},e.prototype.offLoaded=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","session:loaded"])},e.prototype.isValidDataValue=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"},e})(),d=(function(){function e(t){this.parent=t}return e.prototype.show=function(){this.parent.autoInjectIfNecessary(),window.$crisp.push(["do","chat:show"])},e.prototype.hide=function(){this.parent.autoInjectIfNecessary(),window.$crisp.push(["do","chat:hide"])},e.prototype.open=function(){this.parent.autoInjectIfNecessary(),window.$crisp.push(["do","chat:open"])},e.prototype.close=function(){this.parent.isCrispInjected()&&window.$crisp.push(["do","chat:close"])},e.prototype.setHelpdeskView=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","helpdesk:search"])},e.prototype.openHelpdeskArticle=function(t,i,n,s){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","helpdesk:article:open",[t,i,n,s]])},e.prototype.queryHelpdesk=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","helpdesk:query",[t]])},e.prototype.unreadCount=function(){return this.parent.isCrispInjected()?window.$crisp.get("chat:unread:count"):0},e.prototype.isChatOpened=function(){return this.parent.isCrispInjected()?window.$crisp.is("chat:opened"):!1},e.prototype.isVisible=function(){return this.parent.isCrispInjected()?window.$crisp.is("chat:visible"):!1},e.prototype.onChatInitiated=function(t){this.parent.createSingletonIfNecessary(),this.offChatInitiated(),window.$crisp.push(["on","chat:initiated",t])},e.prototype.offChatInitiated=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","chat:initiated"])},e.prototype.onChatOpened=function(t){this.parent.createSingletonIfNecessary(),this.offChatOpened(),window.$crisp.push(["on","chat:opened",t])},e.prototype.offChatOpened=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","chat:opened"])},e.prototype.onChatClosed=function(t){this.parent.createSingletonIfNecessary(),this.offChatClosed(),window.$crisp.push(["on","chat:closed",t])},e.prototype.offChatClosed=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","chat:closed"])},e.prototype.onHelpdeskQueried=function(t){this.parent.createSingletonIfNecessary(),this.offHelpdeskQueried(),window.$crisp.push(["on","helpdesk:queried",t])},e.prototype.offHelpdeskQueried=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","helpdesk:queried"])},e})(),p;(function(e){e.Default="default",e.Amber="amber",e.Black="black",e.Blue="blue",e.BlueGrey="blue_grey",e.LightBlue="light_blue",e.Brown="brown",e.Cyan="cyan",e.Green="green",e.LightGreen="light_green",e.Grey="grey",e.Indigo="indigo",e.Orange="orange",e.DeepOrange="deep_orange",e.Pink="pink",e.Purple="purple",e.DeepPurple="deep_purple",e.Red="red",e.Teal="teal"})(p||(p={}));var r;(function(e){e.Left="left",e.Right="right"})(r||(r={}));var u=(function(){function e(){this.clientUrl="https://client.crisp.chat/l.js",this.websiteId="",this.autoload=!0,this.injected=!1,this.chat=new d(this),this.session=new h(this),this.user=new a(this),this.message=new c(this),this.trigger=new f(this)}return e.prototype.configure=function(t,i){i===void 0&&(i={}),this.websiteId=t,this.tokenId=i.tokenId,this.locale=i.locale,this.sessionMerge=i.sessionMerge,this.cookieDomain=i.cookieDomain,this.cookieExpire=i.cookieExpire,this.lockFullview=i.lockFullview,this.lockMaximized=i.lockMaximized,this.safeMode=i.safeMode,i.clientUrl!==void 0&&(this.clientUrl=i.clientUrl),i.autoload!==void 0&&(this.autoload=i.autoload),this.autoload&&this.load()},e.prototype.load=function(){var t=document.getElementsByTagName("head");if(this.createSingletonIfNecessary(),this.isCrispInjected()!==!0){if(!this.websiteId)throw new Error("websiteId must be set before loading Crisp");if(window.CRISP_WEBSITE_ID=this.websiteId,window.CRISP_RUNTIME_CONFIG={},this.tokenId&&(window.CRISP_TOKEN_ID=this.tokenId),this.sessionMerge&&(window.CRISP_RUNTIME_CONFIG.session_merge=!0),this.locale&&(window.CRISP_RUNTIME_CONFIG.locale=this.locale),this.lockFullview&&(window.CRISP_RUNTIME_CONFIG.lock_full_view=!0),this.lockMaximized&&(window.CRISP_RUNTIME_CONFIG.lock_maximized=!0),this.cookieDomain&&(window.CRISP_COOKIE_DOMAIN=this.cookieDomain),this.cookieExpire&&(window.CRISP_COOKIE_EXPIRE=this.cookieExpire),!t||!t[0])return this.deferredLoading();this.safeMode===!0&&this.setSafeMode(!0);var i=document.createElement("script");i.src=this.clientUrl,i.async=!0,t[0].appendChild(i),this.injected=!0}},e.prototype.setTokenId=function(t){this.tokenId=t,this.isCrispInjected()===!0&&(t?window.CRISP_TOKEN_ID=t:delete window.CRISP_TOKEN_ID)},e.prototype.setZIndex=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","container:index",[t]])},e.prototype.setColorTheme=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","color:theme",[t]])},e.prototype.setHideOnAway=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","hide:on:away",[t]])},e.prototype.setHideOnMobile=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","hide:on:mobile",[t]])},e.prototype.setPosition=function(t){this.createSingletonIfNecessary(),$crisp.push(["config","position:reverse",[t===r.Left]])},e.prototype.setAvailabilityTooltip=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","availability:tooltip",[t]])},e.prototype.setVacationMode=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","hide:vacation",[t]])},e.prototype.setSafeMode=function(t){t===void 0&&(t=!0),this.createSingletonIfNecessary(),window.$crisp.push(["safe",t])},e.prototype.muteSound=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","sound:mute",[t]])},e.prototype.toggleOperatorCount=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","show:operator:count",[t]])},e.prototype.onWebsiteAvailabilityChanged=function(t){this.createSingletonIfNecessary(),this.offWebsiteAvailabilityChanged(),window.$crisp.push(["on","website:availability:changed",t])},e.prototype.offWebsiteAvailabilityChanged=function(){this.createSingletonIfNecessary(),window.$crisp.push(["off","website:availability:changed"])},e.prototype.createSingletonIfNecessary=function(){window.$crisp===void 0&&(window.$crisp=[])},e.prototype.autoInjectIfNecessary=function(){this.isCrispInjected()||this.load()},e.prototype.isCrispInjected=function(){return!!(this.injected===!0||window.$crisp&&window.$crisp.is)},e.prototype.deferredLoading=function(){var t=this;document.addEventListener("DOMContentLoaded",function(){t.load()})},e})(),w=new u;export{p as ChatboxColors,r as ChatboxPosition,w as Crisp,u as CrispClass,o as EventsColors};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.