1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2752],{22752:function(e,t,n){n.r(t),n.d(t,{default:function(){return g}});var i,o,s,r,p,c,a=n(67294),u=function(){function e(e){this.parent=e}return e.prototype.send=function(e,t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:send",[e,t]])},e.prototype.sendText=function(e){this.send("text",e)},e.prototype.sendFile=function(e){this.send("file",e)},e.prototype.sendAnimation=function(e){this.send("animation",e)},e.prototype.sendAudio=function(e){this.send("audio",e)},e.prototype.show=function(e,t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:show",[e,t]])},e.prototype.showText=function(e){this.show("text",e)},e.prototype.showFile=function(e){this.show("file",e)},e.prototype.showAnimation=function(e){this.show("animation",e)},e.prototype.showAudio=function(e){this.show("audio",e)},e.prototype.showPicker=function(e){this.show("picker",e)},e.prototype.showField=function(e){this.show("field",e)},e.prototype.showCarousel=function(e){this.show("carousel",e)},e.prototype.markAsRead=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:read"])},e.prototype.onMessageSent=function(e){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:sent"]),window.$crisp.push(["on","message:sent",e])},e.prototype.onMessageReceived=function(e){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:received"]),window.$crisp.push(["on","message:received",e])},e.prototype.onMessageComposeSent=function(e){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:compose:sent"]),window.$crisp.push(["on","message:compose:sent",e])},e.prototype.onMessageComposeReceive=function(e){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:compose:received"]),window.$crisp.push(["on","message:compose:received",e])},e}(),d=function(){function e(e){this.parent=e}return e.prototype.setNickname=function(e){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:nickname",[e]])},e.prototype.setEmail=function(e,t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:email",[e,t]])},e.prototype.setPhone=function(e){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:phone",[e]])},e.prototype.setAvatar=function(e){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:avatar",[e]])},e.prototype.setCompany=function(e,t){var n={};t&&t.url&&(n.url=t.url),t&&t.description&&(n.description=t.description),t&&t.employment&&(n.employment=[t.employment.title],t.employment.role&&n.employment.push(t.employment.role)),this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:company",[e,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(e){this.parent.isCrispInjected()&&(window.$crisp.push(["off","user:email:changed"]),window.$crisp.push(["on","user:email:changed",e]))},e.prototype.onPhoneChanged=function(e){this.parent.isCrispInjected()&&(window.$crisp.push(["off","user:phone:changed"]),window.$crisp.push(["on","user:phone:changed",e]))},e.prototype.onNicknameChanged=function(e){this.parent.isCrispInjected()&&(window.$crisp.push(["off","user:nickname:changed"]),window.$crisp.push(["on","user:nickname:changed",e]))},e.prototype.onAvatarChanged=function(e){this.parent.isCrispInjected()&&(window.$crisp.push(["off","user:avatar:changed"]),window.$crisp.push(["on","user:avatar:changed",e]))},e}(),h=function(){function e(e){this.parent=e}return e.prototype.run=function(e){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","trigger:run",[e]])},e}();(i=r||(r={})).Red="red",i.Orange="orange",i.Yellow="yellow",i.Green="green",i.Blue="blue",i.Purple="purple",i.Pink="pink",i.Brown="brown",i.Grey="grey",i.Black="black";var l=function(){function e(e){this.parent=e}return e.prototype.reset=function(e){void 0===e&&(e=!1),this.parent.isCrispInjected()&&window.$crisp.do("session:reset",[e])},e.prototype.setSegments=function(e,t){this.parent.createSingletonIfNecessary(),$crisp.push(["set","session:segments",[e,t]])},e.prototype.setData=function(e){var t=this,n=[];Object.entries(e).forEach(function(e){t.isValidDataValue(e[0])&&n.push([e[0],e[1]])}),this.parent.createSingletonIfNecessary(),$crisp.push(["set","session:data",[n]])},e.prototype.pushEvent=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=r.Blue),this.parent.isCrispInjected()&&window.$crisp.push(["set","session:event",[[[e,t,n]]]])},e.prototype.getData=function(e){if(this.parent.isCrispInjected())return window.$crisp.get("session:data",e)},e.prototype.getIdentifier=function(){return this.parent.isCrispInjected()?window.$crisp.get("session:identifier"):null},e.prototype.onLoaded=function(e){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","session:loaded"]),window.$crisp.push(["on","session:loaded",e])},e.prototype.isValidDataValue=function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e},e}(),w=function(){function e(e){this.parent=e}return e.prototype.show=function(){this.parent.autoInjectIfNecessasy(),window.$crisp.push(["do","chat:show"])},e.prototype.hide=function(){this.parent.autoInjectIfNecessasy(),window.$crisp.push(["do","chat:hide"])},e.prototype.open=function(){this.parent.autoInjectIfNecessasy(),window.$crisp.push(["do","chat:open"])},e.prototype.close=function(){this.parent.isCrispInjected()&&window.$crisp.push(["do","chat:close"])},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")},e.prototype.isVisible=function(){return!!this.parent.isCrispInjected()&&window.$crisp.is("chat:visible")},e.prototype.onChatInitiated=function(e){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","chat:initiated"]),window.$crisp.push(["on","chat:initiated",e])},e.prototype.onChatOpened=function(e){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","chat:opened"]),window.$crisp.push(["on","chat:opened",e])},e.prototype.onChatClose=function(e){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","chat:closed"]),window.$crisp.push(["on","chat:closed",e])},e}();(o=p||(p={})).Default="default",o.Amber="amber",o.Black="black",o.Blue="blue",o.BlueGrey="blue_grey",o.LightBlue="light_blue",o.Brown="brown",o.Cyan="cyan",o.Green="green",o.LightGreen="light_green",o.Grey="grey",o.Indigo="indigo",o.Orange="orange",o.DeepOrange="deep_orange",o.Pink="pink",o.Purple="purple",o.DeepPurple="deep_purple",o.Red="red",o.Teal="teal",(s=c||(c={})).Left="left",s.Right="right";var f=new(function(){function e(){this.clientUrl="https://client.crisp.chat/l.js",this.websiteId="",this.autoload=!0,this.injected=!1,this.chat=new w(this),this.session=new l(this),this.user=new d(this),this.message=new u(this),this.trigger=new h(this)}return e.prototype.configure=function(e,t){void 0===t&&(t={}),this.websiteId=e,this.tokenId=t.tokenId,this.locale=t.locale,this.sessionMerge=t.sessionMerge,this.cookieDomain=t.cookieDomain,this.lockFullview=t.lockFullview,this.lockMaximized=t.lockMaximized,this.safeMode=t.safeMode,void 0!==t.clientUrl&&(this.clientUrl=t.clientUrl),void 0!==t.autoload&&(this.autoload=t.autoload),this.autoload&&this.load()},e.prototype.load=function(){var e=document.getElementsByTagName("head");if(this.createSingletonIfNecessary(),!0!==this.isCrispInjected()){if
1(!this.websiteId)throw 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),!e||!e[0])return this.deferredLoading();!0===this.safeMode&&this.setSafeMode(!0);var t=document.createElement("script");t.src=this.clientUrl,t.async=!0,e[0].appendChild(t),this.injected=!0}},e.prototype.setTokenId=function(e){this.tokenId=e,!0===this.isCrispInjected()&&(e?window.CRISP_TOKEN_ID=e:delete window.CRISP_TOKEN_ID)},e.prototype.setZIndex=function(e){this.createSingletonIfNecessary(),window.$crisp.push(["config","container:index",[e]])},e.prototype.setColorTheme=function(e){this.createSingletonIfNecessary(),window.$crisp.push(["config","color:theme",[e]])},e.prototype.setHideOnAway=function(e){this.createSingletonIfNecessary(),window.$crisp.push(["config","hide:on:away",[e]])},e.prototype.setHideOnMobile=function(e){this.createSingletonIfNecessary(),window.$crisp.push(["config","hide:on:mobile",[e]])},e.prototype.setPosition=function(e){this.createSingletonIfNecessary(),$crisp.push(["config","position:reverse",[e===c.Left]])},e.prototype.setAvailabilityTooltip=function(e){this.createSingletonIfNecessary(),window.$crisp.push(["config","availability:tooltip",[e]])},e.prototype.setVacationMode=function(e){this.createSingletonIfNecessary(),window.$crisp.push(["config","hide:vacation",[e]])},e.prototype.setSafeMode=function(e){void 0===e&&(e=!0),this.createSingletonIfNecessary(),window.$crisp.push(["safe",e])},e.prototype.muteSound=function(e){this.createSingletonIfNecessary(),window.$crisp.push(["config","sound:mute",[e]])},e.prototype.toggleOperatorCount=function(e){this.createSingletonIfNecessary(),window.$crisp.push(["config","show:operator:count",[e]])},e.prototype.createSingletonIfNecessary=function(){void 0===window.$crisp&&(window.$crisp=[])},e.prototype.autoInjectIfNecessasy=function(){!0!==this.isCrispInjected()&&this.load()},e.prototype.isCrispInjected=function(){return!0===this.injected||!!window.$crisp&&!!window.$crisp.is},e.prototype.deferredLoading=function(){var e=this;document.addEventListener("DOMContentLoaded",function(){e.load()})},e}()),y=n(33299),g=()=>{let{data:e}=(0,y.useSession)();return(0,a.useEffect)(()=>{if(e&&"FREE"!==e.user.subscription){var t,n,i,o,s,r;f.configure("95549854-90c1-40e8-9d34-2722448636a2"),f.user.setEmail(null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.email),f.user.setNickname((null==e?void 0:null===(n=e.user)||void 0===n?void 0:n.name)||(null==e?void 0:null===(i=e.user)||void 0===i?void 0:i.email)),f.session.setData({plan:null==e?void 0:null===(o=e.user)||void 0===o?void 0:o.subscription,country:null==e?void 0:null===(s=e.user)||void 0===s?void 0:s.ipCountry,user_id:null==e?void 0:null===(r=e.user)||void 0===r?void 0:r.userId})}},[e]),null}}}]);
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.