- License
- {},group:{}},theme:{},nonProfitLicense:!1},destroyed:!1,eagerFetchingMode:!1,embedded:!0,requestedGroup:null,mobileWrapper:null,invitation:{current:null,hiddenIds:[],displayedIds:[]},isInCustomContainer:!1,isMinimizedForcefullyDisabled:!1,hasUnseenEvents:!1,hidden:!1,maximized:!1,pageFocused:!1,applicationFocused:!1,mobile:Ee(),muted:!1,readyState:Fe,loadedInitialHistory:!1,integrationName:null,language:null,localizationVersion:null,clientVisitNumber:0,clientChatNumber:0,visibility:{state:"minimized",interactionModality:"virtual"},greetingsMuted:!1,isPreview:!1,isConfigurator:!1,dropAreaVisible:!1,wasActivated:!1,isReturning:!1,clientLastVisitTimestamp:null,clientPageViewsCount:0,page:{title:"",url:"",referrer:""},owApiURL:"",messageDraft:"",initialMessageDraft:null,locationHistory:{history:[],updatedAt:(new Date).getTime()},recommendations:{id:"",products:[],hiddenIds:[]},pendingOpenAIRunId:null,streamedOpenAIMessage:null,contactInvitation:{},chatBotGreeting:{},lightbox:{state:"closed"},visitorCounter:{session:{sessions:0}},googleReviews:{},minimizedMessageInput:{isVisible:!1,state:"hidden",closed:!1,isPrivacyPolicyBannerClosing:!1,closingGreetingId:null},disableSendingMessage:!1,clientWidth:0,clientHeight:0,postponedGreeting:null,limits:[],header:{text:"",logo:"",backgroundType:"gradient"},showChatPreviewWarningBanner:!1,hideMinimizeButton:!1,hideMeatballsMenu:!1,textInputMaxLength:null,showTextSelectionTracking:!1,enableMinimizedMessageInputLayout:!1,privacyPolicyBannerState:"unset",websiteTextSelection:{text:"",state:"hidden"},welcomeMessageId:null,isExitIntentShadeDisplayed:!1,isLargeWidget:!1}},Ki={boosters:!0,carousel:!0,emoji:!0,form:!0,image_preview:!0,message:!0,rich_message:!0,sticker:!0,system_message:!0,url_preview:!0,email_prompt:!0,message_draft:!0},Yi={boosters:!0,carousel:!0,form:!0},Zi=e=>Wo(e,{shouldAddToTimeline:e=>Ki[e.type],shouldCreateNewGroup:(e,t)=>!!Yi[e.type]||!(!t||"carousel"!==t.type)}),Xi=(e,t)=>{const{persistKey:n}=t||{},r=Hi(n,{schema:{messageDraft:{path:["application","messageDraft"],defaultValue:null},clientLimitExceededLifted:{path:["application","clientLimitExceededLifted"],defaultValue:!1},eyeCatcherHidden:{path:["application","eyeCatcher","hidden"],defaultValue:!1},invitationHiddenIds:{path:["application","invitation","hiddenIds"],defaultValue:[]},invitationDisplayedIds:{path:["application","invitation","displayedIds"],defaultValue:[]},maximized:{path:["application","maximized"],defaultValue:!1},visibility:{path:["application","visibility"],defaultValue:{state:"minimized"}},muted:{path:["application","muted"],defaultValue:!1},limitReached:{path:["application","limitReached"],defaultValue:!1},greetingsMuted:{path:["application","greetingsMuted"],defaultValue:!1},wasActivated:{path:["application","wasActivated"],defaultValue:!1},currentView:{path:["views","current"]},locationHistory:{path:["application","locationHistory"],defaultValue:{history:[],updatedAt:(new Date).getTime()}},recommendations:{path:["application","recommendations"],defaultValue:{id:"",products:[],hiddenIds:[]}},pendingOpenAIRunId:{path:["application","pendingOpenAIRunId"],defaultValue:null},contactInvitation:{path:["application","contactInvitation"],defaultValue:{hidden:!1,hasSeen:!1}},chatBotGreeting:{path:["application","chatBotGreeting"],defaultValue:{hidden:!1,hasSeen:!1}},postponedGreeting:{path:["application","postponedGreeting"],defaultValue:null},pipConsent:{path:["application","pipConsent"],defaultValue:null},minimizedMessageInput:{path:["application","minimizedMessageInput","closed"],defaultValue:!1},welcomeMessageId:{path:["application","welcomeMessageId"],defaultValue:null},isLargeWidget:{path:["application","isLargeWidget"],defaultValue:!1}},preSave:e=>ir({},e,{visibility:{state:e.visibility&&"hidden"===e.visibility.state?"minimized":e.visibility.state}})}),i=o(Gi,o(e,r.rehydrate()));return Pr(r.persist,qi,Zi)(i)},$i=e=>Zi(Or(Gi,e,{application:{isPreview:!0}})),Ji=[{id:"iframekb",template:"moment",title:"Knowledge Base",description:"Save time with Knowledge Base - easy to access know-how right in the LiveChat widget",icon:"https://www.knowledgebase.ai/apple-touch-icon.71342b95.png",action:{type:"button",label:"Search",url:"https://livechat.kb.help/"}}],Qi=(e,t,n)=>{const r=!!ye("lc_boosters",window.location.search)?(e=>o(e,{application:{config:{features:{boosters:{enabled:!0,items:Ji}}}}}))(e):e,i=(n?$i:Xi)(r,t);return i.addView("Chat/postchat"),i.addView("Chat/prechat"),i.addView("Chat/queue"),i.addView("minimized",{text:"Chat"}),i.addView("Chat/ticketForm"),i.addView("Moment",{show:!1,data:{}}),i.addChat({id:xe,active:!1,properties:{agentActivity:null,ended:!1,fakeAgentMessageId:null,hasMoreHistory:null,lastThread:null,previousThread:null,loadingHistory:!1,queued:!1,rate:null,rateComment:null,starting:!1,startChatAgainPending:!1,eventsSeenUpToMap:{},currentAgent:null}}),i};var ea=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(gm){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),ta="-ms-",na="-moz-",ra="-webkit-",oa="comm",ia="rule",aa="decl",ua=Math.abs,sa=String.fromCharCode;function la(e){return e.trim()}function ca(e,t,n){return e.replace(t,n)}function da(e,t){return e.indexOf(t)}function pa(e,t){return 0|e.charCodeAt(t)}function Da(e,t,n){return e.slice(t,n)}function ma(e){return e.length}function fa(e){return e.length}function ha(e,t){return t.push(e),e}var ga=1,va=1,Ca=0,ba=0,Ea=0,ya="";function xa(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ga,column:va,length:a,return:""}}function Fa(e,t,n){return xa(e,t.root,t.parent,n,t.props,t.children,0)}function wa(){return Ea=ba>0?pa(ya,--ba):0,va--,10===Ea&&(va=1,ga--),Ea}function Aa(){return Ea=ba<Ca?pa(ya,ba++):0,va++,10===Ea&&(va=1,ga++),Ea}function Ba(){return pa(ya,ba)}function ka(){return ba}function Sa(e,t){return Da(ya,e,t)}function Ta(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function La(e){return ga=va=1,Ca=ma(ya=e),ba=0,[]}function Pa(e){return ya="",e}function Ma(e){return la(Sa(ba-1,za(91===e?e+2:40===e?e+1:e)))}function Oa(e){for(;(Ea=Ba())&&Ea<33;)Aa();return Ta(e)>2||Ta(Ea)>3?"":" "}function Ia(e,t){for(;--t&&Aa()&&!(Ea<48||Ea>102||Ea>57&&Ea<65||Ea>70&&Ea<97););return Sa(e,ka()+(t<6&&32==Ba()&&32==Aa()))}function za(e){for(;Aa();)switch(Ea){case e:return ba;case 34:case 39:return za(34===e||39===e?e:Ea);case 40:41===e&&za(e);break;case 92:Aa()}return ba}function _a(e,t){for(;Aa()&&e+Ea!==57&&(e+Ea!==84||47!==Ba()););return"/, React v1.1.1, the MIT license found in the, file in the root directory of this source tree, MIT
- Authors
- n.author,events:[To(n)],type:n.type,showDate:r,timestamp:n.timestamp}},Mo=(e,t)=>Po({sessionUserId:oe(e).id,event:t,showDate:, DISCLAIMS ALL WARRANTIES WITH, BE LIABLE FOR ANY SPECIAL, DIRECT,, n.author,events:[To(n)],type:n.type,showDate:r,timestamp:n.timestamp}},Mo=(e,t)=>Po({sessionUserId:oe(e).id,event:t,showDate:!0}),Oo=e=>te(e=>-1*_r(0,"timestamp",re(e.events)),e).map(e=>{let{id:t}=e;return{id:t}}),Io=(e,t)=>{let{id:n}=t;return Ao({},e,{Chat:Ao({},e.Chat,{[n]:Ao({},e.Chat[n],{timeline:[]})})})},zo=()=>!1,_o=()=>!0,Ro=function(e){return void 0===e&&(e={}),function(t){return void 0===t&&(t=e),t}},jo=(e,t)=>ae($r(ue((t,n)=>t(e[n]),{application:lo,entities:Eo,localization:xo,session:wo,views:Ro})),(e=>{let{shouldAddToTimeline:t=_o,shouldCreateNewGroup:o=zo}=e;const i=(e,t)=>{const n=oe(e).id,r=n=>T(e,t,n);return(e,t)=>{const i=re(e),a=r(re(i.events).id);if("message_draft"===t.type&&"form"===i.type){const o=ie(e=>"message_draft"===e.type,e);return o?[...Ir(2,e),Ao({},o,{events:Lo(o.events,t,r)}),i]:[...Ir(1,e),Po({sessionUserId:n,event:t}),i]}return ko(a.timestamp,t.timestamp)?t.timestamp>=i.timestamp+3e5||i.author!==t.author||o(t,a)?[...e,Po({sessionUserId:n,event:t})]:[...Ir(1,e),Ao({},i,{events:Lo(i.events,t,r)})]:[...e,Po({sessionUserId:n,event:t,showDate:!0})]}},a=(e,n,r)=>{const o=r.filter(t);if(0===o.length)return[];const[a,...u]=o,s=Mo(e,a);return u.reduce(i(e,n),[s])},u=(e,t,r)=>{const o=ee(r);return{Chat:n(e=>({[e.id]:{timeline:a(r,e.id,e.events)}}),o),ChatList:Oo(o),current:null}},s=(e,t,n)=>{let{id:r}=t;return Ao({},e,{Chat:Ao({},e.Chat,{[r]:{timeline:a(n,r,L(n,r).events)}}),ChatList:Oo(ee(n))})},l=(e,n,r)=>{let{chat:o,id:a}=n;const{timeline:u}=e.Chat[o],s=T(r,o,a);return t(s)?Ao({},e,{Chat:Ao({},e.Chat,{[o]:Ao({},e.Chat[o],{timeline:u.length>0?i(r,o)(u,s):[Mo(r,s)]})}),ChatList:Oo(ee(r))}):e},c=(e,t)=>{let{chat:n,id:r}=t;const{timeline:o}=e.Chat[n],i=U(e=>e.events.some(e=>e.id===r),o),a=o[i],u=a.events.filter(e=>e.id!==r);let s;return u.length>0?s=ne(i,Ao({},a,{events:u}),o):(s=i+1
- Version (from header)
- 1.1.1
- Copyright Notice
- (c) Facebook, Inc. and its affiliates