- License
- null,organizationId:"",rtl:!1,s:!1,region:null,actingAsDirectLink:!1,availability:null,isSendingFileEvents:!1,clientLimitExceeded:!1,clientLimitExceededLifted:!1,limitReached:!1,defaultWidget:"livechat",currentChat:xe,config:{features:{agentAvatar:{enabled:!0},boosters:{enabled:!1,items:[]},chatHistory:{enabled:!1},continuousChat:{enabled:!1},creditCardMasking:{enabled:!1},disableSounds:{enabled:!1},emailTranscript:{enabled:!0},facebookButton:{enabled:!1},fileSharing:{enabled:!0},emojiPicker:{enabled:!0},googlePlusButton:{enabled:!1},hideOnInit:{enabled:!1},hideTrademark:{enabled:!1},linksPreview:{enabled:!0},logo:{enabled:!0,path:"https://cdn.livechat-static.com/api/file/lc/main/default/logo/c4bf6633aa89a76af7461279581d8bdb.png"},ticketForm:{enabled:!0,mode:"livechat"},preChatAfterGreeting:{enabled:!0},preChatForm:{enabled:!1},rating:{enabled:!0},twitterButton:{enabled:!1},mobileMinimized:{enabled:!0},minimized:{enabled:!0},homeScreen:{enabled:!0},queue:{writingInQueueEnabled:!1},utmParams:{enabled:!0},addToWebsiteButton:{enabled:!0},textApp:{enabled:!1},privacyPolicy:{enabled:!1,text:""}},minimizedType:"bar",mobileMinimizedType:"bar",screenPosition:"right",mobileScreenPosition:"right",disabledOnMobile:!1,screenOffset:{x:0,y:0},properties:{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:{mode:"chat",state:"closed",currentImageEventId:null,images:{orderedEventIds:[],eventIdDataMap:{}},productImages:{orderedEventIds:[],eventIdDataMap:{}}},visitorCounter:{session:{sessions:0}},googleReviews:{},minimizedMessageInput:{isVisible:!1,state:"hidden",closed:!1,isPrivacyPolicyBannerClosing:!1,closingGreetingId:null,isReplacingGreeting:!1},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,hideTextComposer:!1,pipMode:!1}},ia={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},oa={boosters:!0,carousel:!0,form:!0},aa=e=>$i(e,{shouldAddToTimeline:e=>ia[e.type],shouldCreateNewGroup:(e,t)=>!!oa[e.type]||!(!t||"carousel"!==t.type)}),ua=(e,t)=>{const{persistKey:n}=t||{},r=ta(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=>pr({},e,{visibility:{state:e.visibility&&"hidden"===e.visibility.state?"minimized":e.visibility.state}})}),o=i(ra,i(e,r.rehydrate()));return Hr(r.persist,na,aa)(o)},sa=e=>aa(Gr(ra,e,{application:{isPreview:!0}})),la=[{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/"}}],ca=(e,t,n)=>{const r=!!ye("lc_boosters",window.location.search)?(e=>i(e,{application:{config:{features:{boosters:{enabled:!0,items:la}}}}}))(e):e,o=(n?sa:ua)(r,t);return o.addView("Chat/postchat"),o.addView("Chat/prechat"),o.addView("Chat/queue"),o.addView("minimized",{text:"Chat"}),o.addView("Chat/ticketForm"),o.addView("Moment",{show:!1,data:{}}),o.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}}),o};var da=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(kD){}}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}(),pa="-ms-",ma="-moz-",Da="-webkit-",fa="comm",ha="rule",ga="decl",va=Math.abs,Ca=String.fromCharCode;function ba(e){return e.trim()}function Ea(e,t,n){return e.replace(t,n)}function ya(e,t){return e.indexOf(t)}function xa(e,t){return 0|e.charCodeAt(t)}function Fa(e,t,n){return e.slice(t,n)}function wa(e){return e.length}function Aa(e){return e.length}function Ba(e,t){return t.push(e),e}var ka=1,Sa=1,Ta=0,Pa=0,La=0,Ia="";function Ma(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:ka,column:Sa,length:a,return:""}}function Oa(e,t,n){return Ma(e,t.root,t.parent,n,t.props,t.children,0)}function za(){return La=Pa>0?xa(Ia,--Pa):0,Sa--,10===La&&(Sa=1,ka--),La}function Ra(){return La=Pa<Ta?xa(Ia,Pa++):0,Sa++,10===La&&(Sa=1,ka++),La}function _a(){return xa(Ia,Pa)}function ja(){return Pa}function Na(e,t){return Fa(Ia,e,t)}function Wa(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 Va(e){return ka=Sa=1,Ta=wa(Ia=e),Pa=0,[]}function Ha(e){return Ia="",e}function Ua(e){return ba(Na(Pa-1,Ka(91===e?e+2:40===e?e+1:e)))}function Ga(e){for(;(La=_a())&&La<33;)Ra();return Wa(e)>2||Wa(La)>3?"":" "}function qa(e,t){for(;--t&&Ra()&&!(La<48||La>102||La>57&&La<65||La>70&&La<97););return Na(e,ja()+(t<6&&32==_a()&&32==Ra()))}function Ka(e){for(;Ra();)switch(La){case e:return Pa;case 34:case 39:return Ka(34===e||39===e?e:La);case 40:41===e&&Ka(e);break;case 92:Ra()}return Pa}function Ya(e,t){for(;Ra()&&e+La!==57&&(e+La!==84||47!==_a()););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:[Ni(n)],type:n.type,showDate:r,timestamp:n.timestamp}},Hi=(e,t)=>Vi({sessionUserId:ie(e).id,event:t,showDate:, DISCLAIMS ALL WARRANTIES WITH, BE LIABLE FOR ANY SPECIAL, DIRECT,, n.author,events:[Ni(n)],type:n.type,showDate:r,timestamp:n.timestamp}},Hi=(e,t)=>Vi({sessionUserId:ie(e).id,event:t,showDate:!0}),Ui=e=>re(e=>-1*Yr(0,"timestamp",ne(e.events)),e).map(e=>{let{id:t}=e;return{id:t}}),Gi=(e,t)=>{let{id:n}=t;return zi({},e,{Chat:zi({},e.Chat,{[n]:zi({},e.Chat[n],{timeline:[]})})})},qi=()=>!1,Ki=()=>!0,Yi=function(e){return void 0===e&&(e={}),function(t){return void 0===t&&(t=e),t}},Zi=(e,t)=>ae(si(ue((t,n)=>t(e[n]),{application:bi,entities:Pi,localization:Ii,session:Oi,views:Yi})),(e=>{let{shouldAddToTimeline:t=Ki,shouldCreateNewGroup:i=qi}=e;const o=(e,t)=>{const n=ie(e).id,r=n=>T(e,t,n);return(e,t)=>{const o=ne(e),a=r(ne(o.events).id);if("message_draft"===t.type&&"form"===o.type){const i=oe(e=>"message_draft"===e.type,e);return i?[...qr(2,e),zi({},i,{events:Wi(i.events,t,r)}),o]:[...qr(1,e),Vi({sessionUserId:n,event:t}),o]}return _i(a.timestamp,t.timestamp)?t.timestamp>=o.timestamp+3e5||o.author!==t.author||i(t,a)?[...e,Vi({sessionUserId:n,event:t})]:[...qr(1,e),zi({},o,{events:Wi(o.events,t,r)})]:[...e,Vi({sessionUserId:n,event:t,showDate:!0})]}},a=(e,n,r)=>{const i=r.filter(t);if(0===i.length)return[];const[a,...u]=i,s=Hi(e,a);return u.reduce(o(e,n),[s])},u=(e,t,r)=>{const i=ee(r);return{Chat:n(e=>({[e.id]:{timeline:a(r,e.id,e.events)}}),i),ChatList:Ui(i),current:null}},s=(e,t,n)=>{let{id:r}=t;return zi({},e,{Chat:zi({},e.Chat,{[r]:{timeline:a(n,r,P(n,r).events)}}),ChatList:Ui(ee(n))})},l=(e,n,r)=>{let{chat:i,id:a}=n;const{timeline:u}=e.Chat[i],s=T(r,i,a);return t(s)?zi({},e,{Chat:zi({},e.Chat,{[i]:zi({},e.Chat[i],{timeline:u.length>0?o(r,i)(u,s):[Hi(r,s)]})}),ChatList:Ui(ee(r))}):e},c=(e,t)=>{let{chat:n,id:r}=t;const{timeline:i}=e.Chat[n],o=V(e=>e.events.some(e=>e.id===r),i),a=i[o],u=a.events.filter(e=>e.id!==r);let s;return u.length>0?s=te(o,zi({},a,{events:u}),i):(s=o+1
- Version (from header)
- 1.1.1
- Copyright Notice
- (c) Facebook, Inc. and its affiliates