(this.webpackJsonpwidget=this.webpackJsonpwidget||[]).push([[0],{147:function(t,e){},150:function(t,e,n){"use strict";n.r(e);var r=n(0),a=n.n(r),i=n(20),o=n.n(i),c=n(6),s=function(t,e){return function(n){return{__state_updater__:!0,body:e,payload:n,type:t}}},u=function(t,e){return function(n){return{__side_effect__:!0,body:e,payload:n,type:t}}},l=n(33),p=n(2),m=n.n(p),d=n(4),f=n(8),g=n(41),h=function(){var t=window.location.search;return new URLSearchParams(t)},b=function(){return window.location.pathname},D=function(t,e){var n=e.replace(/\//g,"\\/").replace(/\./g,"\\.").replace(/\*/g,".*");return new RegExp("^".concat(n,"$")).test(t)},v=function(t,e){var n=e.replace(/\./g,"\\.").replace(/\*/g,".*");return new RegExp("^".concat(n,"$")).test(t)},w=function(){return window.location.hostname},y=function(t){var e=t.split("."),n=e.length;return n>2&&(t=e[n-2]+"."+e[n-1],"com"===e[n-1]&&"uk"===e[n-2]&&(t=e[n-3]+"."+t),2!==e[n-2].length&&3!==e[n-2].length||2!==e[n-1].length||(t=e[n-3]+"."+t)),t},C=n(54),x=function(t,e){var n=new C.a(document.cookie),r=w(),a=r.split("."),i=a.length,o="localhost"===r.toLowerCase(),c=new Date;c.setFullYear(c.getFullYear()+1);for(var s=o?1:2;s<=i;s++){if(n.set(t,e,{path:"/",domain:a.slice(-s).join("."),expires:c,sameSite:"lax"}),_(t)===e)return}},_=function(t){return new C.a(document.cookie).get(t)},E=function(){function t(){var e=this;Object(f.a)(this,t),this.appId=void 0,this._accessToken=void 0,this.get=function(t){return e.performCall(t,"GET")},this.post=function(t,n){return e.performCall(t,"POST",n)},this.put=function(t,n){return e.performCall(t,"PUT",n)},this.delete=function(t){return e.performCall(t,"DELETE",{})},this.performCall=function(){var n=Object(d.a)(m.a.mark((function n(r,a){var i,o,c,s,u,l,p,d=arguments;return m.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=d.length>2&&void 0!==d[2]?d[2]:{},(o={params:i}).params.app_id=e.appId,e.accessToken&&(o.access_token=e.accessToken),c={body:o?JSON.stringify(o):void 0,mode:"cors",method:a},s="".concat(t.baseURL).concat(r),n.prev=6,n.next=9,fetch(s,c);case 9:u=n.sent,n.next=15;break;case 12:throw n.prev=12,n.t0=n.catch(6),Error("Failed to fetched from ".concat(s," with method ").concat(a,": ").concat(n.t0));case 15:return n.next=17,u.json();case 17:if(l=n.sent,u.ok){n.next=21;break}throw p=l.user_message,Error(p);case 21:return n.abrupt("return",l);case 22:case"end":return n.stop()}}),n,null,[[6,12]])})));return function(t,e){return n.apply(this,arguments)}}();var n=window.customerly&&window.customerly.settings||window.customerlySettings;this.appId=n.app_id,this._accessToken=_("customerly_jwt")}return Object(g.a)(t,[{key:"accessToken",get:function(){return this._accessToken},set:function(t){x("customerly_jwt",t),this._accessToken=t}}]),t}();E.baseURL="https://chat.customerly.io/v2";var k,j=E,O=n(3),F=function(t){return Object(O.a)(Object(O.a)({},t),{},{messages:[]})},A=function t(e){var n=this;Object(f.a)(this,t),this.apiClient=e,this.getAll=Object(d.a)(m.a.mark((function t(){var e;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/conversations/retrieve",{lead_hash:_("customerly_lead_hash")});case 2:return e=t.sent,t.abrupt("return",e.map((function(t){return F(t)})));case 4:case"end":return t.stop()}}),t)}))),this.discard=function(){var t=Object(d.a)(m.a.mark((function t(e){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/conversations/discard",{conversation_ids:e});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},I=function t(e){var n=this;Object(f.a)(this,t),this.apiClient=e,this.registerInstall=function(){var t=Object(d.a)(m.a.mark((function t(e,r){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/debug/register-install",{token:e,domain:r});case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},S=function t(e){var n=this;Object(f.a)(this,t),this.apiClient=e,this.send=function(){var t=Object(d.a)(m.a.mark((function t(e){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/event",{name:e});case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},B=function t(e){var n=this;Object(f.a)(this,t),this.apiClient=e,this.getAll=function(){var t=Object(d.a)(m.a.mark((function t(e){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/gifs",{keyword:e});case 2:return r=t.sent,t.abrupt("return",r.map((function(t){return{name:(e=t).name,imageUrl:e.img,thumbnailUrl:e.thumb};var e})));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},z=172800,M=1700,L=function t(e){var n=this;Object(f.a)(this,t),this.apiClient=e,this.getArticles=function(){var t=Object(d.a)(m.a.mark((function t(e){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/knowledge-base/articles",{keyword:e});case 2:return r=t.sent,t.abrupt("return",r.map((function(t){return t})));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.getArticlesAutoSearch=function(){var t=Object(d.a)(m.a.mark((function t(e){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/knowledge-base/search",{keyword:e});case 2:return r=t.sent,t.abrupt("return",r.map((function(t){return t})).slice(0,3));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()};!function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(k||(k={}));var T=function(){var t=new Date;return Math.floor(t.getTime()/1e3)},N=function(){var t=new Date;return Math.floor(t.getTime())},H=function(){return new Date},P=function(t){var e=new Date(0);return e.setUTCSeconds(t),e};function R(t){return t.toLocaleTimeString().match(/\d{1,2}:\d{2}|[AMP]+/g).join(" ").toLowerCase()}var W,q,U,V=function(){return Math.floor(Math.random()*Math.pow(10,6))+N()},X=function(t){return t.replace(/\s+/g," ")},Z=function(t){return t.replace(/[.,\/#!$%^&*;:{}=\-_`~()?'\"|\+\[\]@]/g," ")},G=function(t){return t.replace(/(?:\r\n|\r|\n|
|
)/g,"
")},Y=function t(e){var n=this;Object(f.a)(this,t),this.apiClient=e,this.getAll=function(){var t=Object(d.a)(m.a.mark((function t(e,r,a){var i;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/messages/retrieve",{conversation_id:e,messages_before_id:r,per_page:a,lead_hash:_("customerly_lead_hash")});case 2:return i=t.sent,t.abrupt("return",i.map((function(t){return t})));case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),this.getNews=function(){var t=Object(d.a)(m.a.mark((function t(e,r){var a;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/messages/news",{timestamp:r,lead_hash:_("customerly_lead_hash")});case 2:return a=t.sent,t.abrupt("return",a.filter((function(t){return t.conversation_id===e||null==e})).map((function(t){return t})));case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),this.send=function(){var t=Object(d.a)(m.a.mark((function t(e,r,a,i){var o,c,s;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=G(r),t.next=3,n.apiClient.post("/messages/send",{conversation_id:e,message:r,attachments:a,lead_hash:_("customerly_lead_hash"),opened_from_page:window.location.href,fake_conversation:i});case 3:return o=t.sent,c=F(o.conversation),s=o.message,x("customerly_lead_hash",o.lead_hash),t.abrupt("return",{conversation:c,message:s,timestamp:o.timestamp});case 8:case"end":return t.stop()}}),t)})));return function(e,n,r,a){return t.apply(this,arguments)}}(),this.seen=function(){var t=Object(d.a)(m.a.mark((function t(e,r,a){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/messages/seen",{conversation_id:e,conversation_message_id:r,seen_date:a});case 2:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},Q=function t(e){var n=this;Object(f.a)(this,t),this.apiClient=e,this.getAll=function(){var t=Object(d.a)(m.a.mark((function t(e){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/ping",e);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},K=function t(e){var n=this;Object(f.a)(this,t),this.apiClient=e,this.send=function(){var t=Object(d.a)(m.a.mark((function t(e,r,a){var i;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/profilings",{name:e,value:r,conversation_id:a});case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},J=function t(e){var n=this;Object(f.a)(this,t),this.apiClient=e,this.seen=function(){var t=Object(d.a)(m.a.mark((function t(e,r){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/surveys/seen",{survey_id:e,seen_date:r});case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),this.reject=function(){var t=Object(d.a)(m.a.mark((function t(e){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/surveys/reject",{survey_id:e});case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.submitOpenAnswer=function(){var t=Object(d.a)(m.a.mark((function t(e,r,a){var i;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/surveys/submit",{survey_id:e,answer:a});case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),this.submitClosedAnswer=function(){var t=Object(d.a)(m.a.mark((function t(e,r,a){var i;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.apiClient.post("/surveys/submit",{survey_id:e,choice_id:a});case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},$=new j,tt={api:{conversation:new A($),debug:new I($),event:new S($),gif:new B($),knowledge:new L($),message:new Y($),ping:new Q($),profiling:new K($),survey:new J($)}};!function(t){t[t.Home=0]="Home",t[t.ConversationList=1]="ConversationList",t[t.ConversationCompose=2]="ConversationCompose"}(W||(W={})),function(t){t.Right="right",t.Left="left"}(q||(q={})),function(t){t.Image="image",t.Video="video"}(U||(U={}));var et,nt="customerly.io",rt="https://www.".concat(nt),at="https://pictures.".concat(nt),it=-666,ot="#2589FF",ct={ping:{},widget:{initialized:!1,debug:!1,open:!1,cards:{compose:{defaultMessage:"",gifs:[],knowledge_autosearch:{articles:[]}},knowledge:{articles:[]},conversation:{conversations:[],selected:void 0}},locale:"en",screen:W.Home,previousScreen:W.Home,direction:q.Right,accentColor:ot,visible:!0,visibleOnMobile:!0,autodetectLocale:!0,screenshotAvailable:!0,attachmentsAvailable:!0,singleConversation:!1,callbacks:{onChatOpened:function(){},onChatClosed:function(){},onProfilingQuestionAsked:function(t){},onProfilingQuestionAnswered:function(t,e){},onLeadGenerated:function(t){},onNewConversation:function(){},onRealtimeVideoAnswered:function(){},onRealtimeVideoRejected:function(){},onHelpCenterArticleOpened:function(t){}}}},st=Object(l.a)(function(t){return function(e){var n=e.dispatch,r=e.getState,a={dependencies:t,dispatch:n,getState:r};return function(t){return function(e){return(n=e).type&&n.__side_effect__?(t(e),e.body(a,e.payload)):new Promise((function(n){t(e),n()}));var n}}}}(tt)),ut=function(t){return function(e,n){var r,a=e||t;return(r=n).type&&r.__state_updater__?n.body(a,n.payload):a}}(ct),lt=window,pt=(lt.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,l.c),mt=Object(l.d)(ut,pt(st)),dt=n(5),ft=n(45),gt=function(t){return a.a.createElement(a.a.Fragment,null,t.items.map(t.children))},ht=n(12),bt=n(10);!function(t){t.Trigger="trigger"}(et||(et={}));var Dt,vt=["S","g","A","j","F","D","J","h","y","?","&","b","7","$","-","e"],wt="customerly_messenger",yt="triggers",Ct="stats",xt="fake_messages",_t="conversations",Et="queues",kt=n(71),jt=n.n(kt),Ot=function(t){var e=JSON.stringify(t)+vt.join(),n=(new TextEncoder).encode(e);return btoa(jt()(n).toString())},Ft=function(t){return Object.keys(localStorage).filter((function(e){return e.startsWith("".concat(wt,"/").concat(t))})).map((function(t){return t.replace("".concat(wt,"/"),"")}))},At=function(t){localStorage.removeItem("".concat(wt,"/").concat(t))},It=function(t,e){var n=JSON.stringify(e),r={value:n,checksum:Ot(n)};localStorage.setItem("".concat(wt,"/").concat(t),JSON.stringify(r))},St=function(t){var e=localStorage.getItem("".concat(wt,"/").concat(t)),n=void 0;try{n=e?JSON.parse(e):void 0}catch(a){}var r=void 0;return n&&function(t){return Ot(t.value)===t.checksum}(n)?r=JSON.parse(n.value):At(t),r},Bt=function(t){return At("".concat(xt,"/").concat(_t,"/").concat(t))},zt=function(t){if(t)try{return Mt(t).trigger_id}catch(e){return}},Mt=function(t){return St("".concat(xt,"/").concat(_t,"/").concat(t))},Lt=function(t,e){It("".concat(xt,"/").concat(_t,"/").concat(t),e)},Tt=function(){var t,e=[],n=Ft("".concat(xt,"/").concat(_t)).map((function(t){return parseInt(t.replace("".concat(xt,"/").concat(_t,"/"),""))})),r=Object(bt.a)(n);try{for(r.s();!(t=r.n()).done;){var a=t.value,i=Mt(a);i&&e.push(i)}}catch(o){r.e(o)}finally{r.f()}return e},Nt=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},Ht=function(t,e){return Array.from(new Set(t.map((function(t){return e(t)})))).map((function(n){return t.find((function(t){return n===e(t)}))}))},Pt=n(36),Rt=function(t){return!Nt(t.account)&&void 0!==t.account.account_id&&!qt(t)},Wt=function(t){return!Nt(t.user)&&void 0!==t.user.user_id},qt=function(t){return!Nt(t.account)&&t.account.account_id===it},Ut=function(t,e){return t.sent_date+e>=T()},Vt=function(t,e){return 0===t.filter((function(t){return Ut(t,e)&&Rt(t)&&!qt(t)})).length&&t.filter((function(t){return Ut(t,e)&&Wt(t)})).length>0},Xt=function(t,e){if(void 0!==e){var n=Rt(t)||qt(t);return(Rt(e)||qt(e))&&n&&e.account.account_id===t.account.account_id}return!1},Zt=function(t,e){if(void 0!==e){var n=Wt(t),r=Wt(e),a=Rt(t),i=Rt(e),o=qt(t),c=qt(e);return!(!n||!r)||(!(!o||!c)||!!(a&&i&&Xt(t,e)))}return!1},Gt=function(t,e){return{abstract:"",account:{},assigner:null,assigner_id:null,assigner_type:null,attachments:(e||[]).map((function(t){return{size:t.filesize,name:t.filename,path:"#"}})),close_conversation:!1,content:G(t),conversation_id:0,conversation_message_id:V(),discarded:!1,in_app:!0,mail_raw:null,mail_sent:!1,rich_mail:!1,rich_mail_link:"",rich_mail_token:"",seen_date:T(),sent_date:T(),subject:"",type:0,user:{user_id:0,name:"Anonymous"}}},Yt=function(){var t=Tt(),e=[];return t.forEach((function(t){t.unread&&t.messages.forEach((function(t){t.seen_date||e.push(t)}))})),e},Qt=function(t){var e,n=[],r=Tt(),a=Object(bt.a)(r);try{for(a.s();!(e=a.n()).done;){var i=e.value;n.push(Kt(i,t))}}catch(o){a.e(o)}finally{a.f()}return n},Kt=function(t,e){var n,r=t.messages[t.messages.length-1];return{conversation_id:t.conversation_id,last_account:r.account,last_message_abstract:(n=r.content,n?(n=n.replace(/<\/[a-zA-Z0-9\s]+>/g,"$& ").replace(/
/g,"$& ").replace(/(<([^>]+)>)/gi,"").replace(/\s+/g," "))?(n=(n=Object(Pt.decode)(n)).substr(0,150),n=Object(Pt.encode)(n)):"\ud83d\uddbc Image":"\ud83d\udcce Attachment"),last_message_date:r.sent_date,unread:!!t.unread,user_id:e,messages:t.messages}},Jt=function(t,e,n){var r=Mt(t);if(r){var a=r.messages;a[a.length-1].conversation_message_id===e&&(r.unread=0);for(var i=0;ie.sent_date?1:-1})),Nt(i.user)||At(Et),t.next=12,e.dispatch(ge(i));case 12:return t.abrupt("return",i);case 13:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()),discardAllNotifications:u("widget/discardAllNotifications",function(){var t=Object(d.a)(m.a.mark((function t(e){var n,r,a;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.getState(),r=n.widget.notifications.messages.map((function(t){return t.conversation_id})),a=r.filter((function(t,e){return r.indexOf(t)===e})),t.next=5,e.dispatch(Ie.discard({conversationIds:a}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),setUserStateUpdater:ve,setWidgetStateUpdater:fe,setPingStateUpdater:ge,setUnreadSurveysStateUpdater:he,setUnreadMessageStateUpdater:be,setNotificationsMessagesStateUpdater:De,setHotReloadIterationStateUpdater:we},Ce=s("articles/set",(function(t,e){return Object(O.a)(Object(O.a)({},t),{},{widget:Object(O.a)(Object(O.a)({},t.widget),{},{cards:Object(O.a)(Object(O.a)({},t.widget.cards),{},{knowledge:Object(O.a)(Object(O.a)({},t.widget.cards.knowledge),{},{articles:e})})})})})),xe={getArticles:u("getArticles",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.dependencies.api.knowledge.getArticles(n);case 3:return r=t.sent,t.next=6,e.dispatch(Ce(r));case 6:t.next=12;break;case 8:return t.prev=8,t.t0=t.catch(0),t.next=12,e.dispatch(Ce(t.t0));case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,n){return t.apply(this,arguments)}}())},_e=s("articles/set",(function(t,e){return Object(O.a)(Object(O.a)({},t),{},{widget:Object(O.a)(Object(O.a)({},t.widget),{},{cards:Object(O.a)(Object(O.a)({},t.widget.cards),{},{compose:Object(O.a)(Object(O.a)({},t.widget.cards.compose),{},{knowledge_autosearch:Object(O.a)(Object(O.a)({},t.widget.cards.compose.knowledge_autosearch),{},{articles:e})})})})})})),Ee={getArticles:u("getArticles",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.dependencies.api.knowledge.getArticlesAutoSearch(n);case 3:return r=t.sent,t.next=6,e.dispatch(_e(r));case 6:t.next=12;break;case 8:return t.prev=8,t.t0=t.catch(0),t.next=12,e.dispatch(_e(t.t0));case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,n){return t.apply(this,arguments)}}())},ke=s("conversations/set",(function(t,e){return Object(O.a)(Object(O.a)({},t),{},{widget:Object(O.a)(Object(O.a)({},t.widget),{},{cards:Object(O.a)(Object(O.a)({},t.widget.cards),{},{conversation:Object(O.a)(Object(O.a)({},t.widget.cards.conversation),{},{conversations:e})})})})})),je=s("conversations/set",(function(t,e){return Object(O.a)(Object(O.a)({},t),{},{widget:Object(O.a)(Object(O.a)({},t.widget),{},{cards:Object(O.a)(Object(O.a)({},t.widget.cards),{},{conversation:Object(O.a)(Object(O.a)({},t.widget.cards.conversation),{},{selected:e})})})})})),Oe=u("getAll",function(){var t=Object(d.a)(m.a.mark((function t(e){var n,r,a;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n=e.getState().ping.user,r=[],Nt(n)){t.next=7;break}return t.next=6,e.dependencies.api.conversation.getAll();case 6:r=t.sent;case 7:return a=Qt(n.crmhero_user_id),(r=r.concat(a)).sort((function(t,e){return t.last_message_date0})),a=n.conversationIds.filter((function(t){return t<=0})),!(r.length>0)){t.next=7;break}return t.next=6,e.dependencies.api.conversation.discard(r);case 6:return t.abrupt("return",t.sent);case 7:a.length>0&&a.forEach((function(t){return $t(t)})),t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(e,n){return t.apply(this,arguments)}}()),Ie={getHydratedAll:Fe,getAll:Oe,setConversationsStateUpdater:ke,setSelectedConversationStateUpdater:je,discard:Ae},Se={setDefaultMessageStateUpdater:s("compose/set-default-message",(function(t,e){return Object(O.a)(Object(O.a)({},t),{},{widget:Object(O.a)(Object(O.a)({},t.widget),{},{cards:Object(O.a)(Object(O.a)({},t.widget.cards),{},{compose:Object(O.a)(Object(O.a)({},t.widget.cards.compose),{},{defaultMessage:e})})})})}))},Be=function(t,e){It("".concat(yt,"/").concat(t),e)},ze=function(t){return St("".concat(yt,"/").concat(t))},Me=function(t,e){var n=ze(t);n.conversation_id=e,Be(t,n)},Le=function(t,e,n){var r=t.filter((function(t){return t.conversation_id===e})),a=t.findIndex((function(t){return t.conversation_message_id===n}));r.length=a+1;var i=r.map((function(t){return t.conversation_message_id}));return t.filter((function(t){return!i.includes(t.conversation_message_id)}))},Te=s("messages/set",(function(t,e){return Object(O.a)(Object(O.a)({},t),{},{widget:Object(O.a)(Object(O.a)({},t.widget),{},{cards:Object(O.a)(Object(O.a)({},t.widget.cards),{},{conversation:Object(O.a)(Object(O.a)({},t.widget.cards.conversation),{},{selected:Object(O.a)(Object(O.a)({},t.widget.cards.conversation.selected),{},{messages:e})})})})})})),Ne=s("messages/has-more-messages",(function(t,e){return Object(O.a)(Object(O.a)({},t),{},{widget:Object(O.a)(Object(O.a)({},t.widget),{},{cards:Object(O.a)(Object(O.a)({},t.widget.cards),{},{conversation:Object(O.a)(Object(O.a)({},t.widget.cards.conversation),{},{selected:Object(O.a)(Object(O.a)({},t.widget.cards.conversation.selected),{},{hasMoreMessages:e})})})})})})),He=s("widget/ping/unread/messages",(function(t,e){return Object(O.a)(Object(O.a)({},t),{},{ping:Object(O.a)(Object(O.a)({},t.ping),{},{unread:Object(O.a)(Object(O.a)({},t.ping.unread),{},{messages:e})})})})),Pe=u("messages/getAll",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r,a,i,o,c;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r=n.conversationId>=0,a=e.getState(),!r){t.next=14;break}return t.next=6,e.dependencies.api.message.getAll(n.conversationId,n.messagesBeforeId,15);case 6:return i=t.sent,a.widget.cards.conversation.selected&&n.messagesBeforeId&&n.messagesBeforeId>0?(o=a.widget.cards.conversation.selected.messages,o=i.concat(o)):o=i,t.next=10,e.dispatch(Te(o));case 10:return t.next=12,e.dispatch(Ne(15===i.length));case 12:t.next=18;break;case 14:if(!(c=Mt(n.conversationId))){t.next=18;break}return t.next=18,e.dispatch(Te(c.messages));case 18:t.next=24;break;case 20:return t.prev=20,t.t0=t.catch(0),t.next=24,e.dispatch(Te(t.t0));case 24:case"end":return t.stop()}}),t,null,[[0,20]])})));return function(e,n){return t.apply(this,arguments)}}()),Re=u("messages/getNews",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r,a,i,o,c,s,u;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.dependencies.api.message.getNews(n.conversationId,n.timestamp);case 3:r=t.sent,a=[],(i=e.getState()).widget.cards.conversation.selected&&(a=i.widget.cards.conversation.selected.messages),o=a,c=Object(bt.a)(r);try{for(u=function(){var t=s.value;Nt(o.filter((function(e){return e.conversation_message_id===t.conversation_message_id})))&&o.push(t)},c.s();!(s=c.n()).done;)u()}catch(l){c.e(l)}finally{c.f()}return t.next=12,e.dispatch(Te(o));case 12:t.next=18;break;case 14:return t.prev=14,t.t0=t.catch(0),t.next=18,e.dispatch(Te(t.t0));case 18:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(e,n){return t.apply(this,arguments)}}()),We=u("messages/getNewsUnread",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r,a,i,o,c,s,u,l;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.dependencies.api.message.getNews(n.conversationId,n.timestamp);case 3:return r=t.sent,a=e.getState(),i=a.ping.unread.messages,o=i.concat(r),c=Ht(o,(function(t){return t.conversation_message_id})),t.next=10,e.dispatch(He(c));case 10:return s=a.widget.notifications.messages,u=s.concat(r),l=Ht(u,(function(t){return t.conversation_message_id})),t.next=15,e.dispatch(ye.setNotificationsMessagesStateUpdater(l));case 15:t.next=21;break;case 17:return t.prev=17,t.t0=t.catch(0),t.next=21,e.dispatch(He(t.t0));case 21:case"end":return t.stop()}}),t,null,[[0,17]])})));return function(e,n){return t.apply(this,arguments)}}()),qe=u("messages/send",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r,a,i,o,c,s,u,l;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.dependencies.api.message.send(n.conversationId,n.message,n.attachments,n.fakeConversation);case 3:if(r=t.sent,a=r.conversation,i=r.message,o=r.timestamp,c=null==n.conversationId,s=n.conversationId&&n.conversationId<0&&n.fakeConversation,!c&&!s){t.next=16;break}return s&&((u=zt(n.conversationId))&&Me(u,a.conversation_id),Bt(n.conversationId)),l=e.getState().widget.cards.conversation.conversations||[],t.next=14,e.dispatch(Ie.setConversationsStateUpdater(l.concat(a)));case 14:return t.next=16,e.dispatch(Ie.setSelectedConversationStateUpdater(a));case 16:return t.abrupt("return",{conversation:a,message:i,timestamp:o});case 19:t.prev=19,t.t0=t.catch(0);case 21:case"end":return t.stop()}}),t,null,[[0,19]])})));return function(e,n){return t.apply(this,arguments)}}()),Ue=u("messages/seen",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r=e.getState().ping.unread.messages,e.dispatch(He(Le(r,n.conversationId,n.conversationMessageId))),!(n.conversationId<0)){t.next=7;break}Jt(n.conversationId,n.conversationMessageId,n.timestamp),t.next=10;break;case 7:return t.next=9,e.dependencies.api.message.seen(n.conversationId,n.conversationMessageId,n.timestamp);case 9:return t.abrupt("return",t.sent);case 10:t.next=14;break;case 12:t.prev=12,t.t0=t.catch(0);case 14:case"end":return t.stop()}}),t,null,[[0,12]])})));return function(e,n){return t.apply(this,arguments)}}()),Ve={setUnreadMessagesStateUpdater:He,setMessagesStateUpdater:Te,getAll:Pe,getNews:Re,getNewsUnread:We,send:qe,seen:Ue},Xe={send:u("profiling/send",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Nt(e.getState().ping.user)){t.next=10;break}return t.next=3,e.dependencies.api.profiling.send(n.attribute,n.value,n.conversationId);case 3:if((r=t.sent).error){t.next=7;break}return t.next=7,e.dispatch(ye.setUserStateUpdater(r));case 7:return t.abrupt("return",r);case 10:return oe({type:Dt.Attribute,payload:{name:n.attribute,value:n.value}}),t.abrupt("return");case 12:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())},Ze={send:u("event/send",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Nt(e.getState().ping.user)){t.next=10;break}return t.next=3,e.dependencies.api.event.send(n.event);case 3:if((r=t.sent).error){t.next=7;break}return t.next=7,e.dispatch(ye.setUserStateUpdater(r));case 7:return t.abrupt("return",r);case 10:return oe({type:Dt.Event,payload:{name:n.event}}),t.abrupt("return");case 12:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())};!function(t){t.Everyday="everyday",t.Weekends="weekends",t.Weekdays="weekdays",t.Monday="monday",t.Tuesday="tuesday",t.Wednesday="wednesday",t.Thursday="thursday",t.Friday="friday",t.Saturday="saturday",t.Sunday="sunday"}(te||(te={})),function(t){t[t.Minutes=0]="Minutes",t[t.Hour=1]="Hour",t[t.Day=2]="Day"}(ee||(ee={})),function(t){t[t.Smile=0]="Smile",t[t.Default=1]="Default",t[t.Headphones=2]="Headphones",t[t.Dots=3]="Dots",t[t.Lifebuoy=4]="Lifebuoy",t[t.QuestionMark=5]="QuestionMark"}(ne||(ne={})),function(t){t[t.String=0]="String",t[t.Number=1]="Number",t[t.Date=2]="Date",t[t.Boolean=3]="Boolean",t[t.Option=4]="Option"}(re||(re={}));var Ge,Ye=function(t){return{abstract:"",account:{account_id:it,name:"Bot"},article:t,assigner:null,assigner_id:null,assigner_type:null,attachments:[],close_conversation:!1,content:"",conversation_id:0,conversation_message_id:V(),discarded:!1,in_app:!0,mail_raw:null,mail_sent:!1,rich_mail:!1,rich_mail_link:"",rich_mail_token:"",seen_date:T(),sent_date:T(),subject:"",type:-5,user:{}}},Qe=function(t){return{abstract:"",account:{account_id:it,name:"Bot"},assigner:null,assigner_id:null,assigner_type:null,attachments:[],close_conversation:!1,content:"",conversation_id:0,conversation_message_id:V(),discarded:!1,in_app:!0,mail_raw:null,mail_sent:!1,rich_mail:!1,rich_mail_link:"",rich_mail_token:"",seen_date:T(),sent_date:T(),subject:"",type:-2,user:{},profiling:t}},Ke=function(t){return new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(t)},Je=n(22),$e=function(t,e){if(!e.cards.conversation.selected)return!1;var n=e.cards.compose.knowledge_autosearch.articles;return t.app_config.widget_knowledge_base_enabled&&n.length>0},tn=function(t,e){if(!e.cards.conversation.selected)return!1;var n=e.cards.conversation.selected.messages.filter((function(t){return qt(t)&&-4===t.type}));return t.app_config.widget_knowledge_base_enabled&&t.app_config.autosearch_enabled&&0===n.length},en=function(t,e){if(!e.cards.conversation.selected)return!1;var n=e.cards.conversation.selected.messages.filter((function(t){return qt(t)&&-5===t.type}));return t.app_config.widget_knowledge_base_enabled&&t.app_config.autosearch_enabled&&0===n.length},nn=function(t,e){if(!e.cards.conversation.selected)return!1;var n=e.cards.conversation.selected.messages.filter((function(t){return qt(t)&&-1===t.type}));return t.app_config.widget_knowledge_base_enabled&&!!t.knowledge.url&&0===n.length},rn=function(t,e){var n,r,a=function(t){var e=Object.keys(t),n=["attributes","crmhero_user_id"];return e.filter((function(t){return-1===n.indexOf(t)}))},i=[{attribute:"email",description:Je.a.t("Widget.Messenger.Conversation.Compose.Bubble.ProfilingBubble.leaveYourEmail"),hint:Je.a.t("Widget.Messenger.Conversation.Compose.Bubble.ProfilingBubble.emailPlaceholder"),cast:re.String,validator:function(t){return Ke(t)}}].concat(Object(ht.a)(t.profilings)),o=Object(bt.a)(i);try{for(o.s();!(n=o.n()).done;){var c=n.value,s=a(t.user),u=(r=t.user,Object.keys(r.attributes));if(s.indexOf(c.attribute)>0){if(!t.user[c.attribute])return c}else{if(-1===u.indexOf(c.attribute))return c;if(""===t.user.attributes[c.attribute]||null==t.user.attributes[c.attribute]||null===t.user.attributes[c.attribute])return c}}}catch(l){o.e(l)}finally{o.f()}},an=u("automaticMessages/officeHours/trigger",function(){var t=Object(d.a)(m.a.mark((function t(e){var n;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.getState()).widget.cards.conversation.selected){t.next=7;break}if(null!=n.widget.cards.conversation.selected.conversation_id&&0!==n.widget.cards.conversation.selected.messages.length){t.next=4;break}return t.abrupt("return");case 4:if(n.ping,!(r=n.widget).cards.conversation.selected||0!==r.cards.conversation.selected.messages.filter((function(t){return Rt(t)||qt(t)&&-3===t.type})).length){t.next=7;break}return t.next=7,e.dispatch(sn({message:{abstract:"",account:{account_id:it,name:"Bot"},assigner:null,assigner_id:null,assigner_type:null,attachments:[],close_conversation:!1,content:"",conversation_id:0,conversation_message_id:V(),discarded:!1,in_app:!0,mail_raw:null,mail_sent:!1,rich_mail:!1,rich_mail_link:"",rich_mail_token:"",seen_date:T(),sent_date:T(),subject:"",type:-3,user:{}},delay:M}));case 7:case"end":return t.stop()}var r}),t)})));return function(e){return t.apply(this,arguments)}}()),on=u("automaticMessages/profilingForm/trigger",function(){var t=Object(d.a)(m.a.mark((function t(e){var n,r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.getState()).widget.cards.conversation.selected){t.next=9;break}if(null!=n.widget.cards.conversation.selected.conversation_id&&0!==n.widget.cards.conversation.selected.messages.length){t.next=4;break}return t.abrupt("return");case 4:if(a=n.ping,!(i=n.widget).cards.conversation.selected||0!==i.cards.conversation.selected.messages.filter((function(t){return Rt(t)})).length||void 0===rn(a,i)){t.next=9;break}if(void 0===(r=rn(n.ping,n.widget))){t.next=9;break}return t.next=9,e.dispatch(sn({message:Qe(r),delay:M}));case 9:case"end":return t.stop()}var a,i}),t)})));return function(e){return t.apply(this,arguments)}}()),cn=u("automaticMessages/knowledgeBase/trigger",function(){var t=Object(d.a)(m.a.mark((function t(e){var n,r,a,i,o,c,s,u;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.getState()).widget.cards.conversation.selected){t.next=41;break}if(null!=n.widget.cards.conversation.selected.conversation_id&&0!==n.widget.cards.conversation.selected.messages.length){t.next=4;break}return t.abrupt("return");case 4:return r=n.widget.cards.conversation.selected.messages.filter((function(t){return Wt(t)})),Vt(r,z)&&(r=r.filter((function(t){return Ut(t,z)}))),a=X(Z(r.map((function(t){return t.content.replace(/(<([^>]+)>)/gi," ").trim()})).join(" ").replace(/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])/g,""))),t.next=9,e.dispatch(Ee.getArticles(a));case 9:if(n=e.getState(),i=M,!$e(n.ping,n.widget)){t.next=38;break}if(!tn(n.ping,n.widget)){t.next=16;break}return t.next=15,e.dispatch(sn({message:{abstract:"",account:{account_id:it,name:"Bot"},assigner:null,assigner_id:null,assigner_type:null,attachments:[],close_conversation:!1,content:"",conversation_id:0,conversation_message_id:V(),discarded:!1,in_app:!0,mail_raw:null,mail_sent:!1,rich_mail:!1,rich_mail_link:"",rich_mail_token:"",seen_date:T(),sent_date:T(),subject:"",type:-4,user:{}},delay:i}));case 15:i+=1200;case 16:if(!en(n.ping,n.widget)){t.next=36;break}o=n.widget.cards.compose.knowledge_autosearch.articles,c=Object(bt.a)(o),t.prev=19,c.s();case 21:if((s=c.n()).done){t.next=28;break}return u=s.value,t.next=25,e.dispatch(sn({message:Ye(u),delay:i}));case 25:i+=1200;case 26:t.next=21;break;case 28:t.next=33;break;case 30:t.prev=30,t.t0=t.catch(19),c.e(t.t0);case 33:return t.prev=33,c.f(),t.finish(33);case 36:t.next=41;break;case 38:if(!nn(n.ping,n.widget)){t.next=41;break}return t.next=41,e.dispatch(sn({message:{abstract:"",account:{account_id:it,name:"Bot"},assigner:null,assigner_id:null,assigner_type:null,attachments:[],close_conversation:!1,content:"",conversation_id:0,conversation_message_id:V(),discarded:!1,in_app:!0,mail_raw:null,mail_sent:!1,rich_mail:!1,rich_mail_link:"",rich_mail_token:"",seen_date:T(),sent_date:T(),subject:"",type:-1,user:{}},delay:M}));case 41:case"end":return t.stop()}}),t,null,[[19,30,33,36]])})));return function(e){return t.apply(this,arguments)}}()),sn=u("automaticMessages/send",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.getState(),setTimeout(Object(d.a)(m.a.mark((function t(){var a;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.widget.cards.conversation.selected){t.next=5;break}return(a=r.widget.cards.conversation.selected.messages).push(n.message),t.next=5,e.dispatch(Ve.setMessagesStateUpdater(a));case 5:case"end":return t.stop()}}),t)}))),n.delay);case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()),un={officeHoursTrigger:an,profilingFormTrigger:on,knowledgeBaseTrigger:cn,send:sn},ln=s("gifs/set",(function(t,e){return Object(O.a)(Object(O.a)({},t),{},{widget:Object(O.a)(Object(O.a)({},t.widget),{},{cards:Object(O.a)(Object(O.a)({},t.widget.cards),{},{compose:Object(O.a)(Object(O.a)({},t.widget.cards.compose),{},{gifs:e})})})})})),pn={getAll:u("messages/getAll",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.dependencies.api.gif.getAll(n);case 3:return r=t.sent,t.next=6,e.dispatch(ln(r));case 6:t.next=12;break;case 8:return t.prev=8,t.t0=t.catch(0),t.next=12,e.dispatch(ln(t.t0));case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,n){return t.apply(this,arguments)}}())},mn=s("debug/mode",(function(t,e){return Object(O.a)(Object(O.a)({},t),{},{widget:Object(O.a)(Object(O.a)({},t.widget),{},{debug:e})})})),dn={registerDebugMode:u("register/install",function(){var t=Object(d.a)(m.a.mark((function t(e,n){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.dispatch(mn(!0));case 3:return t.next=5,e.dependencies.api.debug.registerInstall(n.token,n.domain);case 5:t.next=9;break;case 7:t.prev=7,t.t0=t.catch(0);case 9:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e,n){return t.apply(this,arguments)}}())},fn=s("widget/screen",(function(t,e){return Object(O.a)(Object(O.a)({},t),{},{widget:Object(O.a)(Object(O.a)({},t.widget),{},{open:!0,screen:e,previousScreen:t.widget.screen})})})),gn=u("widget/go/conversation-compose",function(){var t=Object(d.a)(m.a.mark((function t(e,n){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(Ie.setSelectedConversationStateUpdater(n));case 2:return t.next=4,e.dispatch(fn(W.ConversationCompose));case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()),hn=u("widget/go/conversation-list",function(){var t=Object(d.a)(m.a.mark((function t(e){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(fn(W.ConversationList));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),bn=u("widget/go/home",function(){var t=Object(d.a)(m.a.mark((function t(e){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(fn(W.Home));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),Dn={goTo:u("widget/go/to",function(){var t=Object(d.a)(m.a.mark((function t(e,n){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(fn(n));case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()),goToHome:bn,goToConversationCompose:gn,goToConversationList:hn},vn={call:u("callback/call",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n&&"function"===typeof n.function&&(n.arguments||(n.arguments=[]),(r=n.function).call.apply(r,[null].concat(Object(ht.a)(n.arguments))));case 1:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())};!function(t){t[t.OpenQuestion=0]="OpenQuestion",t[t.ClosedQuestion=1]="ClosedQuestion"}(Ge||(Ge={}));var wn,yn,Cn,xn,_n=u("survey/seen",function(){var t=Object(d.a)(m.a.mark((function t(e,n){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.dependencies.api.survey.seen(n,T());case 3:return t.abrupt("return",t.sent);case 6:t.prev=6,t.t0=t.catch(0);case 8:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(e,n){return t.apply(this,arguments)}}()),En=u("survey/reject",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r,a;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.dependencies.api.survey.reject(n);case 3:return r=e.getState(),a=r.ping.unread.surveys.filter((function(t){return t.survey_id!==n})),t.next=7,e.dispatch(ye.setUnreadSurveysStateUpdater(a));case 7:t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(e,n){return t.apply(this,arguments)}}()),kn=u("survey/close",function(){var t=Object(d.a)(m.a.mark((function t(e){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.dispatch(ye.setUnreadSurveysStateUpdater([]));case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e){return t.apply(this,arguments)}}()),jn={submitSurveyAnswer:u("survey/submit",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r,a,i;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n.questionType!==Ge.OpenQuestion){t.next=7;break}return t.next=4,e.dependencies.api.survey.submitOpenAnswer(n.surveyId,n.questionId,n.answer);case 4:r=t.sent,t.next=10;break;case 7:return t.next=9,e.dependencies.api.survey.submitClosedAnswer(n.surveyId,n.questionId,n.choiceId);case 9:r=t.sent;case 10:return a=e.getState(),(i=a.ping.unread.surveys.filter((function(t){return t.survey_id!==n.surveyId}))).unshift(r),t.next=15,e.dispatch(ye.setUnreadSurveysStateUpdater(i));case 15:t.next=19;break;case 17:t.prev=17,t.t0=t.catch(0);case 19:case"end":return t.stop()}}),t,null,[[0,17]])})));return function(e,n){return t.apply(this,arguments)}}()),seen:_n,close:kn,reject:En};!function(t){t[t.Draft=0]="Draft",t[t.Stopped=1]="Stopped",t[t.Active=2]="Active",t[t.StoppedByUsage=3]="StoppedByUsage"}(wn||(wn={})),function(t){t.WidgetLoad="widget_load",t.CssSelector="css_selector",t.LeaveIntent="leave_intent"}(yn||(yn={})),function(t){t.Click="click",t.Hover="hover"}(Cn||(Cn={})),function(t){t.Message="message"}(xn||(xn={}));var On,Fn,An,In,Sn,Bn=n(72),zn=n(89),Mn=n(91),Ln=function(t){Object(Bn.a)(n,t);var e=Object(zn.a)(n);function n(t){return Object(f.a)(this,n),e.call(this,"[customerly] "+t)}return n}(Object(Mn.a)(Error)),Tn=n(92);!function(t){t.Operation="operation",t.Condition="condition"}(On||(On={})),function(t){t.And="and",t.Or="or"}(Fn||(Fn={})),function(t){t.PrefixStateDate="date",t.PrefixPageTime="time",t.PrefixPageUrlParameter="url_parameter",t.PrefixPageUrl="url",t.PrefixPageDomain="domain",t.PrefixStatsSession="session",t.PrefixStatsTotal="total",t.PrefixStatsPageViews="page_views",t.PrefixStatsViews="views",t.PrefixPlatformDevice="device",t.SuffixDeviceMobile="mobile",t.SuffixDeviceDesktop="desktop",t.GreaterThanX="greater_than",t.MoreThanXDaysAgo="more_than",t.MoreThanXHoursAgo="more_than_hours",t.LessThanX="less_than",t.LessThanXDaysAgo="less_than",t.LessThanXHoursAgo="less_than_hours",t.MoreThanXSeconds="more_than_seconds",t.LessThanXSeconds="less_than_seconds",t.HasAnyValue="has_any_value",t.IsUnknown="is_unknown",t.Equal="equal_to",t.NotEqual="not_equal",t.StartsWith="starts_with",t.EndsWith="ends_with",t.Contains="contains",t.NotContains="does_not_contain",t.OnDayXDaysAgo="exactly",t.AfterDayX="after",t.OnDayX="on",t.BeforeDayX="before",t.Is="is",t.IsNot="is_not",t.IsTrue="is_true",t.IsFalse="is_false"}(An||(An={})),function(t){t.State="state",t.Type="type",t.Tag="tag"}(In||(In={})),function(t){t.Page="page",t.Stats="stats",t.OfficeHours="office_hours",t.Platform="platform"}(Sn||(Sn={}));var Nn,Hn,Pn,Rn,Wn,qn,Un,Vn;Object(O.a)(Object(O.a)({},In),Sn);!function(t){t[t.HasAnyValue=An.HasAnyValue]="HasAnyValue",t[t.AnyOpIsUnknown=An.IsUnknown]="AnyOpIsUnknown",t[t.BoolIsTrue=An.IsTrue]="BoolIsTrue",t[t.BoolIsFalse=An.IsFalse]="BoolIsFalse",t[t.NumberGreaterThanX=An.GreaterThanX]="NumberGreaterThanX",t[t.NumberLessThanX=An.LessThanX]="NumberLessThanX",t[t.NumberEqual=An.Equal]="NumberEqual",t[t.NumberNotEqual=An.NotEqual]="NumberNotEqual",t[t.DateMoreThanXDaysAgo=An.PrefixStateDate+"_"+An.MoreThanXDaysAgo]="DateMoreThanXDaysAgo",t[t.DateLessThanXDaysAgo=An.PrefixStateDate+"_"+An.LessThanXDaysAgo]="DateLessThanXDaysAgo",t[t.DateMoreThanXHoursAgo=An.PrefixStateDate+"_"+An.MoreThanXHoursAgo]="DateMoreThanXHoursAgo",t[t.DateLessThanXHoursAgo=An.PrefixStateDate+"_"+An.LessThanXHoursAgo]="DateLessThanXHoursAgo",t[t.DateOnDayXDaysAgo=An.PrefixStateDate+"_"+An.OnDayXDaysAgo]="DateOnDayXDaysAgo",t[t.DateBeforeDayX=An.PrefixStateDate+"_"+An.BeforeDayX]="DateBeforeDayX",t[t.DateAfterDayX=An.PrefixStateDate+"_"+An.AfterDayX]="DateAfterDayX",t[t.DateOnDayX=An.PrefixStateDate+"_"+An.OnDayX]="DateOnDayX",t[t.StringIs=An.Is]="StringIs",t[t.StringIsNot=An.IsNot]="StringIsNot",t[t.StringStartsWith=An.StartsWith]="StringStartsWith",t[t.StringEndsWith=An.EndsWith]="StringEndsWith",t[t.StringContains=An.Contains]="StringContains",t[t.StringNotContains=An.NotContains]="StringNotContains"}(Nn||(Nn={})),function(t){t[t.TagIs=An.Is]="TagIs",t[t.TagIsNot=An.IsNot]="TagIsNot"}(Hn||(Hn={})),function(t){t[t.Is=An.Is]="Is"}(Pn||(Pn={})),function(t){t[t.TimeMoreThanSeconds=An.PrefixPageTime+"_"+An.MoreThanXSeconds]="TimeMoreThanSeconds",t[t.TimeLessThanSeconds=An.PrefixPageTime+"_"+An.LessThanXSeconds]="TimeLessThanSeconds",t[t.UrlParameterIs=An.PrefixPageUrlParameter+"_"+An.Is]="UrlParameterIs",t[t.UrlParameterIsNot=An.PrefixPageUrlParameter+"_"+An.IsNot]="UrlParameterIsNot",t[t.UrlIs=An.PrefixPageUrl+"_"+An.Is]="UrlIs",t[t.UrlIsNot=An.PrefixPageUrl+"_"+An.IsNot]="UrlIsNot",t[t.UrlContains=An.PrefixPageUrl+"_"+An.Contains]="UrlContains",t[t.UrlNotContains=An.PrefixPageUrl+"_"+An.NotContains]="UrlNotContains",t[t.DomainIs=An.PrefixPageDomain+"_"+An.Is]="DomainIs",t[t.DomainIsNot=An.PrefixPageDomain+"_"+An.IsNot]="DomainIsNot"}(Rn||(Rn={})),function(t){t[t.SessionPageViewsGreaterThanX=An.PrefixStatsSession+"_"+An.PrefixStatsPageViews+"_"+An.GreaterThanX]="SessionPageViewsGreaterThanX",t[t.SessionPageViewsLessThanX=An.PrefixStatsSession+"_"+An.PrefixStatsPageViews+"_"+An.LessThanX]="SessionPageViewsLessThanX",t[t.TotalPageViewsGreaterThanX=An.PrefixStatsTotal+"_"+An.PrefixStatsPageViews+"_"+An.GreaterThanX]="TotalPageViewsGreaterThanX",t[t.TotalPageViewsLessThanX=An.PrefixStatsTotal+"_"+An.PrefixStatsPageViews+"_"+An.LessThanX]="TotalPageViewsLessThanX",t[t.SessionViewsGreaterThanX=An.PrefixStatsSession+"_"+An.PrefixStatsViews+"_"+An.GreaterThanX]="SessionViewsGreaterThanX",t[t.SessionViewsLessThanX=An.PrefixStatsSession+"_"+An.PrefixStatsViews+"_"+An.LessThanX]="SessionViewsLessThanX",t[t.TotalViewsGreaterThanX=An.PrefixStatsTotal+"_"+An.PrefixStatsViews+"_"+An.GreaterThanX]="TotalViewsGreaterThanX",t[t.TotalViewsLessThanX=An.PrefixStatsTotal+"_"+An.PrefixStatsViews+"_"+An.LessThanX]="TotalViewsLessThanX"}(Wn||(Wn={})),function(t){t[t.Is=An.Is]="Is",t[t.IsNot=An.IsNot]="IsNot"}(qn||(qn={})),function(t){t[t.DeviceIsMobile=An.PrefixPlatformDevice+"_"+An.Is+"_"+An.SuffixDeviceMobile]="DeviceIsMobile",t[t.DeviceIsDesktop=An.PrefixPlatformDevice+"_"+An.Is+"_"+An.SuffixDeviceDesktop]="DeviceIsDesktop"}(Un||(Un={})),function(t){t[t.ReplyInMinutes=0]="ReplyInMinutes",t[t.ReplyInAnHour=1]="ReplyInAnHour",t[t.ReplyInADay=2]="ReplyInADay",t[t.DuringWeekends=3]="DuringWeekends",t[t.DuringWeekdays=4]="DuringWeekdays",t[t.WillBackToday=5]="WillBackToday",t[t.WillBackTomorrow=6]="WillBackTomorrow",t[t.WillBackOn=7]="WillBackOn"}(Vn||(Vn={}));var Xn,Zn,Gn=function(t,e){var n=T();if(null==t||t.start_utcparseInt(t.value));case Rn.TimeLessThanSeconds:var a=null===(n=$n())||void 0===n?void 0:n.total.pages[b()];return!!(a&&T()-a.current_view_atparseInt(t.value);case Wn.SessionPageViewsLessThanX:var r=e.session.pages[b()];return!r||r.viewsparseInt(t.value);case Wn.TotalPageViewsLessThanX:var i=e.total.pages[b()];return!i||i.viewsparseInt(t.value);case Wn.SessionViewsLessThanX:var c=e.session.views;return!c||cparseInt(t.value);case Wn.TotalViewsLessThanX:var u=e.total.views;return!u||u0?a[0].content:r.default_content,c.sender,c.conversation_id);c.hotReloadIterationInitial===c.context.getState().widget.hotReloadIteration?(c.context.dispatch(ye.setUnreadMessageStateUpdater(i)),function(t,e,n){var r=Mt(t);r?r.messages.push(n):r={conversation_id:t,messages:[n],trigger_id:e,fake_conversation_type:et.Trigger,unread:1},Lt(t,r)}(c.conversation_id,c.trigger_id,i),t()):e()}),1e3*c.action.delay);c.subscription.add((function(){clearTimeout(n)}))}))},this.cancel=function(){return c.subscription.unsubscribe()},this.trigger_id=e,this.sender=n,this.conversation_id=r,this.action=a,this.subscription=new Tn.a,this.context=i,this.hotReloadIterationInitial=o},hr={getAvailable:function(t){return function(t){var e,n=[],r=Object(bt.a)(t);try{for(r.s();!(e=r.n()).done;){var a=e.value,i=ze(a.trigger_id);i&&i.sent&&!a.is_repeatable||n.push(a)}}catch(o){r.e(o)}finally{r.f()}return n}(t.triggers)},compute:u("trigger/compute",function(){var t=Object(d.a)(m.a.mark((function t(e,n){var r,a,i,o,c,s,u;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=[],a=n.trigger,i=n.predicateMeta,o=e.getState().widget.hotReloadIteration,c=Object(bt.a)(a.events),t.prev=5,c.s();case 7:if((s=c.n()).done){t.next=21;break}u=s.value,t.t0=u.type,t.next=t.t0===yn.WidgetLoad?12:t.t0===yn.LeaveIntent?14:t.t0===yn.CssSelector?16:18;break;case 12:return r.push(new mr(u,a.conditions,i)),t.abrupt("break",19);case 14:return r.push(new dr(u,a.conditions,i)),t.abrupt("break",19);case 16:return r.push(new fr(u,a.conditions,i)),t.abrupt("break",19);case 18:throw new Ln("TriggerEventType "+u.type+" not exists");case 19:t.next=7;break;case 21:t.next=26;break;case 23:t.prev=23,t.t1=t.catch(5),c.e(t.t1);case 26:return t.prev=26,c.f(),t.finish(26);case 29:Promise.any(r.map((function(t){return t.promise()}))).then((function(){var t,n=Object(bt.a)(r);try{for(n.s();!(t=n.n()).done;){t.value.cancel()}}catch(d){n.e(d)}finally{n.f()}if(o===e.getState().widget.hotReloadIteration){var i,c,s=[],u=Object(bt.a)(a.actions);try{for(u.s();!(c=u.n()).done;){var l=c.value;switch(l.type){case xn.Message:i||(i=-Math.floor((new Date).getTime()*(Math.random()+1))),s.push(new gr(a.trigger_id,a.sender,i,l,e,o));break;default:throw new Ln("Action type "+l.type+" does not exist")}}}catch(d){u.e(d)}finally{u.f()}if(i){var p=ze(a.trigger_id);if(p){var m=p.conversation_id;m&&Bt(m)}}Promise.all(s.map((function(t){return t.promise()}))).then((function(){var t={trigger_id:a.trigger_id,sent:!0,sent_at:T(),conversation_id:i};Be(a.trigger_id,t),i&&e.dispatch(Ie.getAll())})).catch((function(t){}))}})).catch((function(t){}));case 30:case"end":return t.stop()}}),t,null,[[5,23,26,29]])})));return function(e,n){return t.apply(this,arguments)}}())},br=function(t,e){var n=$n()||Jn;n.total.first_view||(n.total.first_view=e),n.total.last_view=e,n.total.views=n.total.views?n.total.views+1:1;var r=n.total.pages[t];n.total.pages[t]=r?Dr(r,e):vr(e);var a=n.session.last_view;a&&e-a>3600&&(n.session=Kn),n.session.first_view||(n.session.first_view=e),n.session.last_view=e,n.session.views=n.session.views?n.session.views+1:1;var i=n.session.pages[t];n.session.pages[t]=i?Dr(i,e):vr(e),function(t){It(Ct,t)}(n)},Dr=function(t,e){return Object(O.a)(Object(O.a)({},t),{},{views:t.views+=1,last_view_at:t.current_view_at,current_view_at:e})},vr=function(t){return{views:1,last_view_at:void 0,current_view_at:t}},wr={updateStats:u("stats/updateStats",function(){var t=Object(d.a)(m.a.mark((function t(e,n){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:Ft("".concat(Ct,"/")).forEach((function(t){At(t)})),br(n.path,n.time);case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())},yr=s("widget/mediaPreview",(function(t,e){return Object(O.a)(Object(O.a)({},t),{},{widget:Object(O.a)(Object(O.a)({},t.widget),{},{mediaPreview:e})})})),Cr={open:u("widget/mediaPreview/open",function(){var t=Object(d.a)(m.a.mark((function t(e,n){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(yr({isVisible:!0,src:n.src,type:n.type}));case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()),close:u("widget/mediaPreview/open",function(){var t=Object(d.a)(m.a.mark((function t(e){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(yr({isVisible:!1,src:void 0,type:void 0}));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},xr=function(t){return a.a.createElement(a.a.Fragment,null,t.condition?t.children:void 0)},_r=n(1),Er=_r.b.svg.withConfig({componentId:"cly__qxcdzn-0"})(["#customerly-container &{height:","px !important;width:","px !important;}"],(function(t){return t.height}),(function(t){return t.width}));!function(t){t[t.Chat=0]="Chat",t[t.Back=1]="Back",t[t.New=2]="New",t[t.Close=3]="Close",t[t.Search=4]="Search",t[t.LightClose=5]="LightClose",t[t.CloseFilled=6]="CloseFilled",t[t.Typing=7]="Typing",t[t.Email=8]="Email",t[t.Calendar=9]="Calendar",t[t.Download=10]="Download",t[t.HelpDesk=11]="HelpDesk",t[t.Emoji=12]="Emoji",t[t.Gif=13]="Gif",t[t.Attachment=14]="Attachment",t[t.DropZone=15]="DropZone",t[t.Bot=16]="Bot",t[t.ArrowRight=17]="ArrowRight",t[t.True=18]="True",t[t.False=19]="False",t[t.Answer=20]="Answer",t[t.Decline=21]="Decline",t[t.Star=22]="Star",t[t.Customerly=23]="Customerly",t[t.ArrowDown=24]="ArrowDown"}(Qn||(Qn={}));var kr=function(t){return a.a.createElement(a.a.Fragment,null,t.type===Qn.ArrowRight&&a.a.createElement(Er,{width:t.size,height:t.size,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#000000"},a.a.createElement("path",{d:"M 14 5.3417969 C 13.744125 5.3417969 13.487969 5.4412187 13.292969 5.6367188 L 13.207031 5.7226562 C 12.816031 6.1136563 12.816031 6.7467188 13.207031 7.1367188 L 17.070312 11 L 4 11 C 3.448 11 3 11.448 3 12 C 3 12.552 3.448 13 4 13 L 17.070312 13 L 13.207031 16.863281 C 12.816031 17.254281 12.816031 17.887344 13.207031 18.277344 L 13.292969 18.363281 C 13.683969 18.754281 14.317031 18.754281 14.707031 18.363281 L 20.363281 12.707031 C 20.754281 12.316031 20.754281 11.682969 20.363281 11.292969 L 14.707031 5.6367188 C 14.511531 5.4412187 14.255875 5.3417969 14 5.3417969 z",fill:t.fill})),t.type===Qn.ArrowDown&&a.a.createElement(Er,{width:t.size,height:t.size,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",fill:"#000000"},a.a.createElement("path",{d:"M10.7832 8.26628C10.7832 8.11702 10.7252 7.96759 10.6112 7.85384L10.561 7.80371C10.333 7.57563 9.96367 7.57563 9.73617 7.80371L7.48258 10.0573L7.48258 2.43294C7.48258 2.11094 7.22125 1.84961 6.89925 1.84961C6.57725 1.84961 6.31592 2.11094 6.31592 2.43294L6.31592 10.0573L4.06234 7.80371C3.83425 7.57563 3.46497 7.57563 3.23747 7.80371L3.18734 7.85384C2.95925 8.08192 2.95925 8.45121 3.18734 8.67871L6.48682 11.9782C6.7149 12.2063 7.08419 12.2063 7.31169 11.9782L10.6112 8.67871C10.7252 8.56467 10.7832 8.41554 10.7832 8.26628Z",fill:t.fill})),t.type===Qn.Chat&&a.a.createElement(Er,{width:t.size,height:t.size,viewBox:"0 0 730 735",version:"1.1"},a.a.createElement("g",{id:"Icon",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.a.createElement("ellipse",{id:"Oval-4",fill:t.fill,cx:"419",cy:"403.5",rx:"276",ry:"268.5"}),a.a.createElement("g",{id:"Rectangle-6",fill:"#000"},a.a.createElement("path",{d:"M365,0 C566.583934,0 730,161.793098 730,361.374998 C730,560.956899 566.583934,722.749996 365,722.749996 C313.853919,722.749996 265.16487,712.33467 220.978547,693.529395 L220.954413,693.532174 C-108.234356,800.478802 118.657464,683.137164 47.2499658,539.273196 L47.2196757,539.277015 C45.0591741,535.502187 42.9653065,531.685059 40.9396555,527.827199 L40.9545617,527.826524 C40.1758551,526.538714 39.3718834,525.249226 38.5420496,523.958199 L37.703573,522.666664 L38.7973288,523.681876 C13.9767207,474.879413 0,419.743214 0,361.374998 C0,161.793098 163.416066,0 365,0 Z M432.935953,431.065258 L257.115159,431.065258 C238.959826,431.065258 224.242021,445.783063 224.242021,463.938396 C224.242021,481.912175 238.666942,496.516833 256.571541,496.807129 L257.115159,496.811533 L432.935953,496.811533 C451.091285,496.811533 465.80909,482.093728 465.80909,463.938396 C465.80909,445.783063 451.091285,431.065258 432.935953,431.065258 Z M469.207285,335.770096 L293.38649,335.770096 C275.231158,335.770096 260.513353,350.487901 260.513353,368.643234 C260.513353,386.798566 275.231158,401.516371 293.38649,401.516371 L293.38649,401.516371 L469.207285,401.516371 C487.362617,401.516371 502.080422,386.798566 502.080422,368.643234 C502.080422,350.487901 487.362617,335.770096 469.207285,335.770096 L469.207285,335.770096 Z M432.935953,240.474934 L257.115159,240.474934 C238.959826,240.474934 224.242021,255.192739 224.242021,273.348071 C224.242021,291.32185 238.666942,305.926509 256.571541,306.216805 L257.115159,306.221209 L432.935953,306.221209 C451.091285,306.221209 465.80909,291.503404 465.80909,273.348071 C465.80909,255.192739 451.091285,240.474934 432.935953,240.474934 Z",id:"Mask"})))),t.type===Qn.Calendar&&a.a.createElement(Er,{width:t.size,height:t.size,fill:t.fill,viewBox:"0 0 24 24",version:"1.1"},a.a.createElement("path",{d:"M 6 1 L 6 3 L 5 3 C 3.9 3 3 3.9 3 5 L 3 19 C 3 20.1 3.9 21 5 21 L 19 21 C 20.1 21 21 20.1 21 19 L 21 5 C 21 3.9 20.1 3 19 3 L 18 3 L 18 1 L 16 1 L 16 3 L 8 3 L 8 1 L 6 1 z M 5 8 L 19 8 L 19 19 L 5 19 L 5 8 z"})),t.type===Qn.Attachment&&a.a.createElement(Er,{width:t.size,height:t.size,fill:t.fill,viewBox:"0 0 60 50",version:"1.1"},a.a.createElement("path",{d:"M 38.1875 6.71875 C 36.261719 6.8125 34.34375 7.648438 32.84375 9.09375 C 32.8125 9.125 32.78125 9.15625 32.75 9.1875 C 32.746094 9.191406 32.722656 9.183594 32.71875 9.1875 C 32.675781 9.238281 32.632813 9.289063 32.59375 9.34375 C 32.550781 9.394531 32.507813 9.445313 32.46875 9.5 L 13.65625 28.40625 C 13.613281 28.457031 13.570313 28.507813 13.53125 28.5625 C 11.761719 30.480469 11.796875 33.515625 13.65625 35.375 C 15.5625 37.285156 18.75 37.285156 20.65625 35.375 C 20.75 35.28125 20.832031 35.175781 20.90625 35.0625 C 20.996094 34.996094 21.078125 34.921875 21.15625 34.84375 L 35.25 20.9375 C 35.878906 20.34375 36.054688 19.410156 35.683594 18.628906 C 35.3125 17.847656 34.484375 17.390625 33.625 17.5 C 33.171875 17.558594 32.753906 17.765625 32.4375 18.09375 L 18.34375 32 C 18.285156 32.070313 18.234375 32.140625 18.1875 32.21875 C 18.167969 32.230469 18.144531 32.238281 18.125 32.25 C 18.113281 32.269531 18.105469 32.292969 18.09375 32.3125 C 17.992188 32.375 17.898438 32.449219 17.8125 32.53125 C 17.433594 32.910156 16.878906 32.914063 16.5 32.53125 C 16.121094 32.152344 16.117188 31.601563 16.5 31.21875 L 35.59375 12.03125 C 35.636719 11.980469 35.679688 11.929688 35.71875 11.875 C 37.363281 10.359375 39.558594 10.371094 40.78125 11.59375 C 40.867188 11.675781 40.960938 11.75 41.0625 11.8125 C 41.074219 11.824219 41.082031 11.832031 41.09375 11.84375 C 41.152344 11.921875 41.214844 11.996094 41.28125 12.0625 C 42.425781 13.207031 42.234375 15.621094 40.625 17.3125 C 40.59375 17.34375 40.5625 17.375 40.53125 17.40625 L 19.84375 38.625 C 19.777344 38.671875 19.714844 38.726563 19.65625 38.78125 C 16.972656 41.464844 12.351563 41.789063 9.78125 39.21875 C 7.261719 36.699219 7.523438 32.140625 10.09375 29.4375 C 10.136719 29.398438 10.179688 29.355469 10.21875 29.3125 L 27.25 12.46875 C 27.878906 11.875 28.054688 10.941406 27.683594 10.160156 C 27.3125 9.378906 26.484375 8.921875 25.625 9.03125 C 25.171875 9.089844 24.753906 9.296875 24.4375 9.625 L 7.5 26.375 C 7.46875 26.40625 7.4375 26.4375 7.40625 26.46875 C 7.363281 26.519531 7.320313 26.570313 7.28125 26.625 C 3.234375 30.820313 2.683594 37.78125 6.9375 42.03125 C 11.160156 46.253906 18.082031 45.804688 22.28125 41.8125 C 22.324219 41.78125 22.367188 41.75 22.40625 41.71875 C 22.417969 41.707031 22.425781 41.699219 22.4375 41.6875 C 22.457031 41.667969 22.480469 41.644531 22.5 41.625 C 22.5 41.613281 22.5 41.605469 22.5 41.59375 L 22.625 41.46875 C 22.667969 41.417969 22.710938 41.367188 22.75 41.3125 L 43.40625 20.21875 C 43.554688 20.082031 43.679688 19.925781 43.78125 19.75 C 46.417969 16.734375 46.992188 12.148438 44.09375 9.25 C 44.042969 9.207031 43.992188 9.164063 43.9375 9.125 C 43.847656 8.988281 43.742188 8.863281 43.625 8.75 C 42.148438 7.273438 40.160156 6.621094 38.1875 6.71875 Z"})),t.type===Qn.Emoji&&a.a.createElement(Er,{width:t.size,height:t.size,fill:t.fill,viewBox:"0 0 30 30",version:"1.1"},a.a.createElement("path",{d:"M 15 3 C 8.3844276 3 3 8.3844276 3 15 C 3 21.615572 8.3844276 27 15 27 C 21.615572 27 27 21.615572 27 15 C 27 8.3844276 21.615572 3 15 3 z M 15 5 C 20.534692 5 25 9.4653079 25 15 C 25 20.534692 20.534692 25 15 25 C 9.4653079 25 5 20.534692 5 15 C 5 9.4653079 9.4653079 5 15 5 z M 10.5 13 A 1.5 1.5 0 0 0 9 14.5 A 1.5 1.5 0 0 0 10.5 16 A 1.5 1.5 0 0 0 12 14.5 A 1.5 1.5 0 0 0 10.5 13 z M 19.5 13 A 1.5 1.5 0 0 0 18 14.5 A 1.5 1.5 0 0 0 19.5 16 A 1.5 1.5 0 0 0 21 14.5 A 1.5 1.5 0 0 0 19.5 13 z M 11.994141 18.992188 A 1.0001 1.0001 0 0 0 11.474609 20.808594 C 12.278916 21.393119 13.483333 22 15 22 C 16.516667 22 17.721548 21.393632 18.525391 20.808594 A 1.0002946 1.0002946 0 1 0 17.347656 19.191406 C 16.777499 19.606368 15.983333 20 15 20 C 14.016667 20 13.222084 19.606881 12.650391 19.191406 A 1.0001 1.0001 0 0 0 12.09375 18.992188 A 1.0001 1.0001 0 0 0 11.994141 18.992188 z"})),t.type===Qn.DropZone&&a.a.createElement(Er,{width:t.size,height:t.size,fill:t.fill,viewBox:"0 0 250 250",version:"1.1"},a.a.createElement("g",{transform:"translate(116.000000, 115.500000) rotate(-15.000000) translate(-116.000000, -115.500000) translate(1.000000, 0.000000)",fill:t.fill,fillRule:"nonzero"},a.a.createElement("path",{d:"M106.953125,0.3125 C48.203125,4.4225 0,52.96 0,110 C0,111.78433 0.9441125,113.3801 2.402344,114.26758 L75,159.64844 L75,230 L155,230 L155,159.64844 L227.626955,114.25781 C229.07047,113.367185 230,111.77375 230,110 C230,52.96 181.796875,4.4225 123.046875,0.3125 C145.036875,21.1325 160,64.825 160,110 L155,110 L150,110 C150,66.465 135.75,24.8384375 115,6.5234375 C94.25,24.8384375 80,66.465 80,110 L75,110 L70,110 C70,64.825 84.963125,21.1325 106.953125,0.3125 Z M40,95 C53.735,95 65.95492,101.83672 70.41992,112.01172 C70.506305,112.2083 70.64316,112.3679 70.751955,112.54883 L70.71289,112.578125 L96.16211,155 L86.435545,155 L11.669922,108.271485 C17.2069765,100.198695 28.0267885,95 40,95 Z M115,95 C129.897715,95 143.1481,100.979905 149.140625,110.04883 L122.16797,155 L107.83203,155 L80.86914,110.04883 C86.86307,100.98237 100.10469,95 115,95 Z M190,95 C201.97321,95 212.793025,100.198695 218.33008,108.271485 L143.564455,155 L133.83789,155 L159.28711,112.578125 L159.248045,112.54883 C159.35717,112.3679 159.49314,112.2083 159.58008,112.01172 C164.04508,101.83672 176.265,95 190,95 Z M105,175 L125,175 C127.765,175 130,177.235 130,180 C130,182.765 127.765,185 125,185 L105,185 C102.235,185 100,182.765 100,180 C100,177.235 102.235,175 105,175 Z",id:"Shape"}))),t.type===Qn.Gif&&a.a.createElement(Er,{width:t.size,height:t.size,fill:t.fill,viewBox:"-20 0 120 30",version:"1.1"},a.a.createElement("path",{d:"M21.377,19.786 L34.325,19.786 L34.325,35.36 C32.4009904,36.764007 30.3513442,37.7909968 28.176,38.441 C26.0006558,39.0910033 23.6996788,39.416 21.273,39.416 C18.1703178,39.416 15.3623459,38.9350048 12.849,37.973 C10.3356541,37.0109952 8.18634226,35.6720086 6.401,33.956 C4.61565774,32.2399914 3.23767152,30.2033451 2.267,27.846 C1.29632848,25.4886549 0.811,22.9146806 0.811,20.124 C0.811,17.2986525 1.27466203,14.7073451 2.202,12.35 C3.12933797,9.99265488 4.45099142,7.96467516 6.167,6.266 C7.88300858,4.56732484 9.95865449,3.2413381 12.394,2.288 C14.8293455,1.3346619 17.5549849,0.858 20.571,0.858 C22.1310078,0.858 23.5869932,0.98366541 24.939,1.235 C26.2910068,1.48633459 27.5389943,1.83299779 28.683,2.275 C29.8270057,2.71700221 30.8756619,3.2413303 31.829,3.848 C32.7823381,4.4546697 33.6489961,5.12199636 34.429,5.85 L32.167,9.334 C31.8203316,9.88866944 31.3696694,10.2266661 30.815,10.348 C30.2603306,10.4693339 29.65367,10.3306687 28.995,9.932 C28.3709969,9.55066476 27.760003,9.20833485 27.162,8.905 C26.563997,8.60166515 25.9270034,8.33733446 25.251,8.112 C24.5749966,7.88666554 23.8383373,7.71333394 23.041,7.592 C22.2436627,7.47066606 21.3250052,7.41 20.285,7.41 C18.5343246,7.41 16.9483404,7.7133303 15.527,8.32 C14.1056596,8.9266697 12.8966716,9.78466112 11.9,10.894 C10.9033283,12.0033389 10.136336,13.3379922 9.599,14.898 C9.06166398,16.4580078 8.793,18.1999904 8.793,20.124 C8.793,22.2040104 9.08766372,24.0629918 9.677,25.701 C10.2663363,27.3390082 11.098328,28.7213277 12.173,29.848 C13.247672,30.9746723 14.5346592,31.8326637 16.034,32.422 C17.5333408,33.0113363 19.2016575,33.306 21.039,33.306 C22.2870062,33.306 23.4006618,33.1803346 24.38,32.929 C25.3593382,32.6776654 26.3169953,32.3353355 27.253,31.902 L27.253,25.558 L22.989,25.558 C22.4863308,25.558 22.0920014,25.423668 21.806,25.155 C21.5199986,24.886332 21.377,24.5440021 21.377,24.128 L21.377,19.786 Z M48.547,39 L40.695,39 L40.695,1.274 L48.547,1.274 L48.547,39 Z M64.303,7.384 L64.303,17.81 L77.875,17.81 L77.875,23.946 L64.303,23.946 L64.303,39 L56.451,39 L56.451,1.274 L80.475,1.274 L80.475,7.384 L64.303,7.384 Z"})),t.type===Qn.Email&&a.a.createElement(Er,{width:t.size,height:t.size,viewBox:"0 0 100 100",version:"1.1"},a.a.createElement("path",{fill:"#f1bc19",d:"M77 12A1 1 0 1 0 77 14A1 1 0 1 0 77 12Z"}),a.a.createElement("path",{fill:"#e6edb7",d:"M50 13A37 37 0 1 0 50 87A37 37 0 1 0 50 13Z"}),a.a.createElement("path",{fill:"#f1bc19",d:"M83 11A4 4 0 1 0 83 19A4 4 0 1 0 83 11Z"}),a.a.createElement("path",{fill:"#88ae45",d:"M87 22A2 2 0 1 0 87 26A2 2 0 1 0 87 22Z"}),a.a.createElement("path",{fill:"#fbcd59",d:"M81 74A2 2 0 1 0 81 78 2 2 0 1 0 81 74zM15 59A4 4 0 1 0 15 67 4 4 0 1 0 15 59z"}),a.a.createElement("path",{fill:"#88ae45",d:"M25 85A2 2 0 1 0 25 89A2 2 0 1 0 25 85Z"}),a.a.createElement("path",{fill:"#fff",d:"M18.5 49A2.5 2.5 0 1 0 18.5 54 2.5 2.5 0 1 0 18.5 49zM79.5 32A1.5 1.5 0 1 0 79.5 35 1.5 1.5 0 1 0 79.5 32z"}),a.a.createElement("path",{fill:"#fff",d:"M80 33A1 1 0 1 0 80 35A1 1 0 1 0 80 33Z"}),a.a.createElement("path",{fill:"#78a0cf",d:"M74,40v20c0,1.91-0.89,3.61-2.28,4.71C70.7,65.52,69.41,66,68,66H32c-1.41,0-2.71-0.48-3.73-1.31 C26.89,63.6,26,61.9,26,60V40c0-2.06,1.05-3.89,2.64-4.95c0.05-0.05,0.11-0.09,0.16-0.12C29.72,34.34,30.82,34,32,34h36 c1.18,0,2.28,0.34,3.2,0.93c0.05,0.03,0.11,0.07,0.16,0.12C72.95,36.11,74,37.94,74,40z"}),a.a.createElement("path",{fill:"#457faf",d:"M71.72,64.71C70.7,65.52,69.41,66,68,66H32c-1.41,0-2.71-0.48-3.73-1.31L50,45.95L71.72,64.71z"}),a.a.createElement("path",{fill:"#c5def0",d:"M71.36,35.05L50,52.62L28.64,35.05c0.05-0.05,0.11-0.09,0.16-0.12C29.72,34.34,30.82,34,32,34h36 c1.18,0,2.28,0.34,3.2,0.93C71.25,34.96,71.31,35,71.36,35.05z"}),a.a.createElement("path",{fill:"#472b29",d:"M50 53c-.084 0-.169-.028-.238-.085L28.546 35.467c-.16-.131-.183-.368-.051-.528s.369-.183.528-.051L50 52.14l20.978-17.251c.159-.132.395-.109.528.051.132.16.108.396-.051.528L50.238 52.915C50.169 52.972 50.084 53 50 53zM28.226 65.131c-.105 0-.209-.044-.284-.13-.135-.157-.118-.394.039-.529l14.296-12.388c.155-.137.394-.121.529.036.136.156.121.393-.036.529l-3.727 3.255L28.471 65.04C28.4 65.102 28.313 65.131 28.226 65.131z"}),a.a.createElement("path",{fill:"#472b29",d:"M68,34.4c3.088,0,5.6,2.512,5.6,5.6v20c0,3.088-2.512,5.6-5.6,5.6H32c-3.088,0-5.6-2.512-5.6-5.6V40 c0-3.088,2.512-5.6,5.6-5.6H68L68,34.4z M68,33H32c-3.866,0-7,3.134-7,7v20c0,3.866,3.134,7,7,7h36c3.866,0,7-3.134,7-7V40 C75,36.134,71.866,33,68,33L68,33z"}),a.a.createElement("path",{fill:"#472b29",d:"M71.774,65.131c-0.087,0-0.175-0.03-0.246-0.092L57.239,52.65c-0.157-0.136-0.173-0.373-0.038-0.529 s0.373-0.172,0.529-0.038l14.29,12.389c0.157,0.136,0.173,0.373,0.038,0.529C71.983,65.087,71.879,65.131,71.774,65.131z"}),a.a.createElement("path",{fill:"#e1e0d8",d:"M70.5,21.5c7.168,0,13,4.486,13,10s-5.832,10-13,10c-0.468,0-0.965-0.024-1.52-0.074l-0.202-0.018 l-0.158,0.128C66.231,43.475,63.941,44.5,62,44.5c-0.276,0-0.5-0.224-0.5-0.5c0-0.066,0.016-0.132,0.042-0.19l0.174-0.358 c0.588-1.121,0.962-2.314,1.111-3.547l0.039-0.324l-0.281-0.166C59.353,37.498,57.5,34.613,57.5,31.5 C57.5,25.986,63.332,21.5,70.5,21.5L70.5,21.5z"}),a.a.createElement("path",{fill:"#472b29",d:"M70.5,22c6.893,0,12.5,4.262,12.5,9.5S77.393,41,70.5,41c-0.453,0-0.935-0.024-1.475-0.072 l-0.404-0.036l-0.315,0.256c-2.3,1.866-4.48,2.853-6.314,2.881l0.167-0.344c0.616-1.174,1.008-2.426,1.165-3.719l0.079-0.648 l-0.561-0.333C59.764,37.16,58,34.432,58,31.5C58,26.262,63.607,22,70.5,22 M70.5,21C63.044,21,57,25.701,57,31.5 c0,3.407,2.096,6.427,5.33,8.345c-0.107,0.886-0.383,2.089-1.057,3.375l-0.181,0.372C61.035,43.717,61,43.853,61,44 c0,0.552,0.448,1,1,1c1.268,0,3.624-0.388,6.936-3.076C69.45,41.97,69.97,42,70.5,42C77.956,42,84,37.299,84,31.5S77.956,21,70.5,21 L70.5,21z"}),a.a.createElement("path",{fill:"#472b29",d:"M71.75 27.5h-8.5c-.138 0-.25-.112-.25-.25S63.112 27 63.25 27h8.5c.138 0 .25.112.25.25S71.888 27.5 71.75 27.5zM76.75 27.5h-3.5c-.138 0-.25-.112-.25-.25S73.112 27 73.25 27h3.5c.138 0 .25.112.25.25S76.888 27.5 76.75 27.5zM66.75 30h-4.5C62.112 30 62 29.888 62 29.75s.112-.25.25-.25h4.5c.138 0 .25.112.25.25S66.888 30 66.75 30zM78.75 30h-10.5C68.112 30 68 29.888 68 29.75s.112-.25.25-.25h10.5c.138 0 .25.112.25.25S78.888 30 78.75 30zM74.75 32.5h-12.5c-.138 0-.25-.112-.25-.25S62.112 32 62.25 32h12.5c.138 0 .25.112.25.25S74.888 32.5 74.75 32.5zM70.75 35h-7.5C63.112 35 63 34.888 63 34.75s.112-.25.25-.25h7.5c.138 0 .25.112.25.25S70.888 35 70.75 35z"}),a.a.createElement("path",{fill:"#f1bc19",d:"M77.5 33.5A5 5 0 1 0 77.5 43.5A5 5 0 1 0 77.5 33.5Z"}),a.a.createElement("path",{fill:"#472b29",d:"M77.5,34c2.481,0,4.5,2.019,4.5,4.5S79.981,43,77.5,43S73,40.981,73,38.5S75.019,34,77.5,34 M77.5,33 c-3.038,0-5.5,2.462-5.5,5.5s2.462,5.5,5.5,5.5s5.5-2.462,5.5-5.5S80.538,33,77.5,33L77.5,33z"}),a.a.createElement("g",null,a.a.createElement("path",{fill:"#472b29",d:"M78.784,37.286l-0.189,1.577c-0.008,0.058-0.014,0.114-0.017,0.167 c-0.003,0.053-0.005,0.103-0.005,0.149c0,0.15,0.062,0.225,0.186,0.225c0.174,0,0.332-0.123,0.475-0.369 c0.14-0.242,0.21-0.519,0.21-0.829c0-0.493-0.172-0.896-0.517-1.21c-0.342-0.318-0.78-0.478-1.313-0.478 c-0.557,0-1.025,0.19-1.406,0.571c-0.378,0.378-0.568,0.847-0.568,1.406c0,0.308,0.068,0.611,0.204,0.907 c0.138,0.278,0.331,0.508,0.58,0.688c0.332,0.24,0.749,0.36,1.249,0.36c0.469,0,0.959-0.119,1.472-0.357l0.045-0.024l0.156,0.433 l-0.036,0.018c-0.523,0.252-1.067,0.378-1.634,0.378c-0.627,0-1.151-0.151-1.574-0.454c-0.31-0.22-0.553-0.502-0.727-0.844 c-0.172-0.36-0.258-0.727-0.258-1.099c0-0.679,0.239-1.248,0.718-1.709c0.479-0.461,1.069-0.691,1.772-0.691 c0.647,0,1.188,0.198,1.625,0.595c0.435,0.392,0.652,0.884,0.652,1.475c0,0.457-0.118,0.848-0.354,1.174 c-0.238,0.33-0.518,0.496-0.838,0.496c-0.256,0-0.431-0.121-0.523-0.363c-0.246,0.252-0.521,0.378-0.823,0.378 c-0.33,0-0.606-0.119-0.826-0.357c-0.216-0.236-0.324-0.538-0.324-0.904c0-0.394,0.121-0.719,0.363-0.973 c0.242-0.26,0.547-0.39,0.913-0.39c0.336,0,0.608,0.13,0.814,0.39l0.042-0.333h0.456V37.286z M78.171,38.446 c0-0.186-0.063-0.341-0.189-0.466c-0.13-0.124-0.288-0.186-0.475-0.186c-0.202,0-0.367,0.078-0.496,0.234 c-0.13,0.154-0.195,0.351-0.195,0.592c0,0.208,0.052,0.379,0.156,0.514c0.104,0.134,0.238,0.201,0.402,0.201 c0.21,0,0.395-0.089,0.556-0.267C78.09,38.889,78.171,38.682,78.171,38.446z"}))),t.type===Qn.Download&&a.a.createElement(Er,{className:"lds-typing",width:t.size,height:t.size,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid"},a.a.createElement("path",{d:"M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z M11.293,16.707L8,13.414 C7.61,13.023,7.61,12.39,8,12l0,0c0.39-0.39,1.024-0.39,1.414,0L11,13.586V8c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v5.586 L14.586,12c0.39-0.39,1.024-0.39,1.414,0l0,0c0.39,0.39,0.39,1.024,0,1.414l-3.293,3.293C12.317,17.097,11.683,17.097,11.293,16.707 z"})),t.type===Qn.HelpDesk&&a.a.createElement(Er,{className:"lds-typing",width:t.size,height:t.size,viewBox:"0 0 48 48"},a.a.createElement("path",{fill:"#2196f3",d:"M44,24c0,11.044-8.956,20-20,20S4,35.044,4,24S12.956,4,24,4S44,12.956,44,24z"}),a.a.createElement("path",{fill:"#e3f2fd",d:"M23.758 31.145c-.727 0-1.328.234-1.797.711-.469.473-.703 1.074-.703 1.805 0 .719.23 1.313.688 1.781.461.469 1.063.703 1.816.703.75 0 1.352-.234 1.813-.703.457-.469.688-1.063.688-1.781 0-.73-.234-1.332-.703-1.805C25.094 31.387 24.48 31.145 23.758 31.145zM29.184 14.586C27.969 13.527 26.266 13 24.07 13c-2.176 0-3.895.559-5.152 1.672-1.191 1.055-1.824 2.504-1.902 4.328H17v1h4.5l.008-.703c.02-.824.262-1.473.723-1.941.457-.473 1.074-.707 1.84-.707 1.617 0 2.422.871 2.422 2.617 0 .578-.152 1.129-.465 1.648-.309.52-.934 1.195-1.871 2.027-.938.828-1.582 1.672-1.934 2.527-.355.855-.531 2.086-.531 3.531h3.98l.063-1.023c.113-1.012.563-1.891 1.352-2.645l1.262-1.191c.98-.949 1.672-1.813 2.063-2.59.395-.781.594-1.609.594-2.484C31 17.137 30.395 15.645 29.184 14.586z"})),t.type===Qn.Typing&&a.a.createElement(Er,{className:"lds-typing",width:t.size,height:t.size,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},a.a.createElement("circle",{cx:"24.5",cy:"48.4263",r:"6",fill:t.fill},a.a.createElement("animate",{attributeName:"cy",calcMode:"spline",keySplines:"0 0.5 0.5 1;0.5 0 1 0.5;0.5 0.5 0.5 0.5",repeatCount:"indefinite",values:"62.5;37.5;62.5;62.5",keyTimes:"0;0.25;0.5;1",dur:"1s",begin:"-0.5s"})),a.a.createElement("circle",{cx:"41.5",cy:"62.5",r:"6",fill:t.fill},a.a.createElement("animate",{attributeName:"cy",calcMode:"spline",keySplines:"0 0.5 0.5 1;0.5 0 1 0.5;0.5 0.5 0.5 0.5",repeatCount:"indefinite",values:"62.5;37.5;62.5;62.5",keyTimes:"0;0.25;0.5;1",dur:"1s",begin:"-0.375s"})),a.a.createElement("circle",{cx:"58.5",cy:"62.5",r:"6",fill:t.fill},a.a.createElement("animate",{attributeName:"cy",calcMode:"spline",keySplines:"0 0.5 0.5 1;0.5 0 1 0.5;0.5 0.5 0.5 0.5",repeatCount:"indefinite",values:"62.5;37.5;62.5;62.5",keyTimes:"0;0.25;0.5;1",dur:"1s",begin:"-0.25s"}))),t.type===Qn.Back&&a.a.createElement(Er,{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t.size,height:t.size,viewBox:"0 0 24 24",fill:t.fill},a.a.createElement("path",{d:"M9.929,12l3.821-3.821c0.414-0.414,0.414-1.086,0-1.5l0,0c-0.414-0.414-1.086-0.414-1.5,0l-4.614,4.614 c-0.391,0.391-0.391,1.024,0,1.414l4.614,4.614c0.414,0.414,1.086,0.414,1.5,0h0c0.414-0.414,0.414-1.086,0-1.5L9.929,12z"})),t.type===Qn.New&&a.a.createElement(Er,{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t.size,height:t.size,viewBox:"0 0 34 34",fill:t.fill},a.a.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:t.fill,fillRule:"evenodd"},a.a.createElement("g",{id:"icons8-email-send-(3)",transform:"translate(14.000000, 18.000000) rotate(-315.000000) translate(-14.000000, -18.000000) translate(2.000000, 6.000000)",fill:t.fill,fillRule:"nonzero"},a.a.createElement("path",{d:"M23,0 C22.9040261,0.000658358195 22.8086469,0.0151297178 22.716797,0.0429688 C22.6897605,0.0503069172 22.6630442,0.0587779232 22.636719,0.0683594 L0.6503906,7.060547 L0.6503906,7.064453 C0.259758564,7.21021976 0.000562408886,7.58305754 0,8 C0.000740822587,8.34922483 0.183611423,8.67276525 0.4824219,8.853516 L7.164062,14.154297 L20.373047,3.6269531 L9.845703,16.835938 L15.142578,23.513672 C15.3230843,23.8151719 15.6485961,24 16,24 C16.4169426,23.9994375 16.7897804,23.7402412 16.935547,23.349609 L16.939453,23.349609 L23.9375,1.34375 C23.9446508,1.32377995 23.9511645,1.30358744 23.957031,1.2832031 C23.9848702,1.1913532 23.9993416,1.0959739 24,1 C24,0.44771525 23.5522847,0 23,0 Z",id:"Path"})))),t.type===Qn.CloseFilled&&a.a.createElement(Er,{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t.size,height:t.size,viewBox:"0 0 30 30",fill:t.fill},a.a.createElement("path",{d:"M15,3C8.373,3,3,8.373,3,15c0,6.627,5.373,12,12,12s12-5.373,12-12C27,8.373,21.627,3,15,3z M19.707,18.293 c0.391,0.391,0.391,1.023,0,1.414C19.512,19.902,19.256,20,19,20s-0.512-0.098-0.707-0.293L15,16.414l-3.293,3.293 C11.512,19.902,11.256,20,11,20s-0.512-0.098-0.707-0.293c-0.391-0.391-0.391-1.023,0-1.414L13.586,15l-3.293-3.293 c-0.391-0.391-0.391-1.023,0-1.414s1.023-0.391,1.414,0L15,13.586l3.293-3.293c0.391-0.391,1.023-0.391,1.414,0s0.391,1.023,0,1.414 L16.414,15L19.707,18.293z"})),t.type===Qn.Close&&a.a.createElement(Er,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",version:"1.1",fill:t.fill,width:t.size,height:t.size},a.a.createElement("g",{id:"surface1"},a.a.createElement("path",{d:"M 8.71875 7.28125 L 7.28125 8.71875 L 14.5625 16 L 7.28125 23.28125 L 8.71875 24.71875 L 16 17.4375 L 23.28125 24.71875 L 24.71875 23.28125 L 17.4375 16 L 24.71875 8.71875 L 23.28125 7.28125 L 16 14.5625 Z "}))),t.type===Qn.Search&&a.a.createElement(Er,{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t.size,height:t.size,viewBox:"0 0 50 40",fill:t.fill},a.a.createElement("path",{d:"M 21 3 C 11.601563 3 4 10.601563 4 20 C 4 29.398438 11.601563 37 21 37 C 24.355469 37 27.460938 36.015625 30.09375 34.34375 L 42.375 46.625 L 46.625 42.375 L 34.5 30.28125 C 36.679688 27.421875 38 23.878906 38 20 C 38 10.601563 30.398438 3 21 3 Z M 21 7 C 28.199219 7 34 12.800781 34 20 C 34 27.199219 28.199219 33 21 33 C 13.800781 33 8 27.199219 8 20 C 8 12.800781 13.800781 7 21 7 Z"})),t.type===Qn.LightClose&&a.a.createElement(Er,{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t.size,height:t.size,viewBox:"0 0 25 25",fill:t.fill},a.a.createElement("path",{d:"M 6.65625 4 C 6.367188 4 6.105469 4.113281 5.90625 4.3125 L 4.3125 5.90625 C 3.914063 6.304688 3.914063 7 4.3125 7.5 L 9.8125 13 L 4.3125 18.5 C 3.914063 19 3.914063 19.695313 4.3125 20.09375 L 5.90625 21.6875 C 6.40625 22.085938 7.101563 22.085938 7.5 21.6875 L 13 16.1875 L 18.5 21.6875 C 19 22.085938 19.695313 22.085938 20.09375 21.6875 L 21.6875 20.09375 C 22.085938 19.59375 22.085938 18.898438 21.6875 18.5 L 16.1875 13 L 21.6875 7.5 C 22.085938 7 22.085938 6.304688 21.6875 5.90625 L 20.09375 4.3125 C 19.59375 3.914063 18.898438 3.914063 18.5 4.3125 L 13 9.8125 L 7.5 4.3125 C 7.25 4.113281 6.945313 4 6.65625 4 Z"})),t.type===Qn.Bot&&a.a.createElement(Er,{width:t.size,height:t.size,viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("circle",{cx:"30",cy:"30",r:"30",fill:t.fill}),a.a.createElement("path",{d:"M30.4785 11.0002C30.1143 11.0058 29.7673 11.1552 29.5135 11.4155C29.2597 11.6758 29.12 12.0258 29.125 12.3886V13.8679C24.4629 14.5345 20.8751 18.5174 20.8751 23.3459V24.7156H27.75C27.75 23.9595 28.366 23.3459 29.125 23.3459H31.875C32.634 23.3459 33.25 23.9595 33.25 24.7156H40.1249V23.3459C40.1249 18.5174 36.5371 14.5345 31.875 13.8679V12.3886C31.8775 12.2053 31.8431 12.0234 31.7738 11.8537C31.7044 11.6839 31.6016 11.5297 31.4714 11.4003C31.3412 11.2708 31.1862 11.1687 31.0157 11.1C30.8451 11.0312 30.6625 10.9973 30.4785 11.0002ZM26.375 19.2369C27.134 19.2369 27.75 19.8505 27.75 20.6066C27.75 21.3626 27.134 21.9763 26.375 21.9763C25.616 21.9763 25 21.3626 25 20.6066C25 19.8505 25.616 19.2369 26.375 19.2369ZM34.625 19.2369C35.384 19.2369 36 19.8505 36 20.6066C36 21.3626 35.384 21.9763 34.625 21.9763C33.866 21.9763 33.25 21.3626 33.25 20.6066C33.25 19.8505 33.866 19.2369 34.625 19.2369ZM19.5001 27.4549C16.4788 27.4549 14.0001 29.924 14.0001 32.9336V37.0426C13.9976 37.2241 14.0312 37.4043 14.0992 37.5728C14.1671 37.7412 14.268 37.8945 14.3959 38.0237C14.5238 38.153 14.6763 38.2556 14.8444 38.3257C15.0125 38.3957 15.1929 38.4318 15.3751 38.4318C15.5573 38.4318 15.7377 38.3957 15.9059 38.3257C16.074 38.2556 16.2264 38.153 16.3543 38.0237C16.4823 37.8945 16.5831 37.7412 16.6511 37.5728C16.719 37.4043 16.7527 37.2241 16.7501 37.0426V32.9336C16.7501 31.4042 17.9647 30.1943 19.5001 30.1943V38.4123C19.5001 39.9258 20.7307 41.1516 22.2501 41.1516H38.7499C40.2693 41.1516 41.4999 39.9258 41.4999 38.4123V30.1943C43.0353 30.1943 44.2499 31.4042 44.2499 32.9336V37.0426C44.2473 37.2241 44.281 37.4043 44.3489 37.5728C44.4169 37.7412 44.5177 37.8945 44.6457 38.0237C44.7736 38.153 44.926 38.2556 45.0941 38.3257C45.2622 38.3957 45.4427 38.4318 45.6249 38.4318C45.8071 38.4318 45.9875 38.3957 46.1556 38.3257C46.3237 38.2556 46.4762 38.153 46.6041 38.0237C46.732 37.8945 46.8329 37.7412 46.9008 37.5728C46.9688 37.4043 47.0024 37.2241 46.9999 37.0426V32.9336C46.9999 29.924 44.5212 27.4549 41.4999 27.4549H19.5001ZM26.375 43.891V45.2607C26.375 46.7741 27.6056 48 29.125 48H31.875C33.3944 48 34.625 46.7741 34.625 45.2607V43.891H26.375Z",fill:"#F5F5F5"})),t.type===Qn.True&&a.a.createElement(Er,{fill:t.fill,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",width:t.size,height:t.size},a.a.createElement("path",{d:"M 22.566406 4.730469 L 20.773438 3.511719 C 20.277344 3.175781 19.597656 3.304688 19.265625 3.796875 L 10.476563 16.757813 L 6.4375 12.71875 C 6.015625 12.296875 5.328125 12.296875 4.90625 12.71875 L 3.371094 14.253906 C 2.949219 14.675781 2.949219 15.363281 3.371094 15.789063 L 9.582031 22 C 9.929688 22.347656 10.476563 22.613281 10.96875 22.613281 C 11.460938 22.613281 11.957031 22.304688 12.277344 21.839844 L 22.855469 6.234375 C 23.191406 5.742188 23.0625 5.066406 22.566406 4.730469 Z"})),t.type===Qn.False&&a.a.createElement(Er,{fill:t.fill,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",width:t.size,height:t.size},a.a.createElement("path",{d:"M 7 4 C 6.744125 4 6.4879687 4.0974687 6.2929688 4.2929688 L 4.2929688 6.2929688 C 3.9019687 6.6839688 3.9019687 7.3170313 4.2929688 7.7070312 L 11.585938 15 L 4.2929688 22.292969 C 3.9019687 22.683969 3.9019687 23.317031 4.2929688 23.707031 L 6.2929688 25.707031 C 6.6839688 26.098031 7.3170313 26.098031 7.7070312 25.707031 L 15 18.414062 L 22.292969 25.707031 C 22.682969 26.098031 23.317031 26.098031 23.707031 25.707031 L 25.707031 23.707031 C 26.098031 23.316031 26.098031 22.682969 25.707031 22.292969 L 18.414062 15 L 25.707031 7.7070312 C 26.098031 7.3170312 26.098031 6.6829688 25.707031 6.2929688 L 23.707031 4.2929688 C 23.316031 3.9019687 22.682969 3.9019687 22.292969 4.2929688 L 15 11.585938 L 7.7070312 4.2929688 C 7.5115312 4.0974687 7.255875 4 7 4 z"})),t.type===Qn.Answer&&a.a.createElement(Er,{fill:t.fill,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t.size,height:t.size},a.a.createElement("path",{d:"M15.75,14.85l-2.54,2.53c-1.532-0.807-2.759-1.747-3.798-2.792c-1.045-1.039-1.985-2.266-2.792-3.798l2.53-2.54L8.512,3H3 c0,0,0,0.328,0,1c0,4.539,1.84,8.874,4.966,12.034C11.126,19.16,15.461,21,20,21c0.672,0,1,0,1,0v-5.512L15.75,14.85z",fill:t.fill})),t.type===Qn.Decline&&a.a.createElement(Er,{fill:t.fill,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t.size,height:t.size},a.a.createElement("path",{d:"M 12 4 C 8.159 4.021 4.3853281 5.5453594 1.6113281 8.3183594 L 1 8.9296875 L 4.3671875 12.298828 L 8 9.4804688 L 8 6.6152344 C 9.429 6.1722344 10.720141 5.996 11.994141 6 C 13.268141 5.996 14.592484 6.1722344 16.021484 6.6152344 L 16.033203 9.4804688 L 19.630859 12.298828 L 23 8.9296875 L 22.388672 8.3183594 C 19.614672 5.5453594 15.841 4.021 12 4 z M 11 11 L 11 16 L 7.9511719 16 L 11.951172 20 L 15.951172 16 L 13 16 L 13 11 L 11 11 z",fill:t.fill})),t.type===Qn.Star&&a.a.createElement(Er,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",version:"1.1",fill:t.fill,width:t.size,height:t.size},a.a.createElement("g",{id:"surface1"},a.a.createElement("path",{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"}))),t.type===Qn.Customerly&&a.a.createElement(Er,{fill:t.fill,width:t.size,height:t.size,viewBox:"0 0 1205 1205",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("g",{id:"Artboard-8",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},a.a.createElement("path",{d:"M128.694022,836.715301 C127.227365,834.29557 125.699705,831.871807 124.109195,829.444441 L125.692577,830.899171 C89.4232444,759.52885 69,678.898143 69,593.541664 C69,301.636163 307.856086,65 602.5,65 C897.143914,65 1136,301.636163 1136,593.541664 C1136,885.447165 897.143914,1122.08333 602.5,1122.08333 C527.738855,1122.08333 456.56938,1106.84848 391.982107,1079.34153 C-88.7518681,1235.62485 241.8036,1064.47765 138.360687,854.336104 C135.02978,848.530232 131.806659,842.65574 128.694022,836.715301 Z M441.5,417 C416.923329,417 397,436.923329 397,461.5 L397,468.681556 C397,493.258228 416.923329,513.181556 441.5,513.181556 L705.497389,513.181556 C730.07406,513.181556 749.997389,493.258228 749.997389,468.681556 L749.997389,461.5 C749.997389,436.923329 730.07406,417 705.497389,417 L441.5,417 Z M441.5,695.818444 C416.923329,695.818444 397,715.741772 397,740.318444 L397,747.5 C397,772.076671 416.923329,792 441.5,792 L705.497389,792 C730.07406,792 749.997389,772.076671 749.997389,747.5 L749.997389,740.318444 C749.997389,715.741772 730.07406,695.818444 705.497389,695.818444 L441.5,695.818444 Z M494.502611,556.409222 C469.92594,556.409222 450.002611,576.332551 450.002611,600.909222 L450.002611,608.090778 C450.002611,632.667449 469.92594,652.590778 494.502611,652.590778 L758.5,652.590778 C783.076671,652.590778 803,632.667449 803,608.090778 L803,600.909222 C803,576.332551 783.076671,556.409222 758.5,556.409222 L494.502611,556.409222 Z",id:"Combined-Shape"}))))},jr=n(7),Or="#0A0B0C",Fr="#FFFFFF",Ar=function(t){var e;return t&&t.constructor===Array&&3===t.length?[parseInt(t[0]),parseInt(t[1]),parseInt(t[2])]:(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))?[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]:(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)%\s*,\s*([0-9]+(?:\.[0-9]+)?)%\s*,\s*([0-9]+(?:\.[0-9]+)?)%\s*\)/.exec(t))?[2.55*parseFloat(e[1]),2.55*parseFloat(e[2]),2.55*parseFloat(e[3])]:(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(t))?[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]:[0,0,0]},Ir=function(t){return function(t){var e=Ar(t),n=Object(dt.a)(e,3),r=n[0],a=n[1],i=n[2];return r&&a&&i?.2126*r+.7152*a+.0722*i:0}(t)<160};function Sr(t,e){(t=String(t).replace(/[^0-9a-f]/gi,"")).length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),((e=e||0)>1||e<-1)&&(e/=100);for(var n,r="#",a=0;a<3;a++)n=parseInt(t.substr(2*a,2),16),r+=("00"+(n=Math.round(Math.min(Math.max(0,n+n*e),255)).toString(16))).substr(n.length);return r}var Br,zr=function(t,e){return Sr(t,Math.abs(e))},Mr=function(t,e){return Sr(t,-Math.abs(e))},Lr=function(t,e){var n=Ar(t),r=Object(dt.a)(n,3),a=r[0],i=r[1],o=r[2];return"".concat(a,", ").concat(i,", ").concat(o,", ").concat(e/100)},Tr=_r.b.div.withConfig({componentId:"cly__sc-1e7c3dz-0"})(['#customerly-container &{line-height:1.4em !important;direction:ltr !important;text-align:left !important;color:#282828 !important;font-style:normal !important;font-weight:400 !important;text-decoration:none !important;list-style-type:disc !important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";background:#fff;font-size:14px;}#customerly-container & *,#customerly-container & *:before,#customerly-container & *:after{background-attachment:scroll !important;background-color:transparent !important;background-image:none !important;background-position:0 0 !important;background-repeat:repeat !important;border-color:currentcolor !important;border-style:none !important;border-width:medium !important;bottom:auto !important;clear:none !important;clip:auto !important;color:inherit !important;counter-increment:none !important;counter-reset:none !important;cursor:auto !important;direction:inherit !important;display:block !important;float:none !important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:inherit !important;font-style:inherit !important;font-variant:normal !important;font-weight:inherit !important;height:auto !important;left:auto !important;letter-spacing:normal !important;line-height:inherit !important;list-style-type:inherit !important;list-style-position:outside !important;list-style-image:none !important;margin:0 !important;max-height:none !important;max-width:none !important;min-height:0 !important;min-width:0 !important;outline:0 !important;overflow:auto !important;padding:0 !important;position:static !important;quotes:"" "" !important;right:auto !important;table-layout:auto !important;text-align:inherit !important;text-decoration:inherit !important;text-indent:0 !important;text-transform:none !important;text-rendering:auto !important;top:auto !important;unicode-bidi:normal !important;vertical-align:baseline !important;visibility:inherit !important;white-space:normal !important;width:auto !important;word-spacing:normal !important;z-index:auto !important;-webkit-background-origin:padding !important;-moz-background-origin:padding !important;-ms-background-origin:padding-box !important;-o-background-origin:padding-box !important;background-origin:padding-box !important;-webkit-background-clip:border !important;-moz-background-clip:border !important;background-clip:border-box !important;-webkit-background-size:auto !important;-moz-background-size:auto !important;-o-background-size:auto !important;background-size:auto !important;-moz-border-image:-moz--compass-list(none) !important;-webkit-border-image:-owg--compass-list(none) !important;-webkit-border-image:-webkit--compass-list(none) !important;-o-border-image:-o--compass-list(none) !important;border-image:none !important;-webkit-border-radius:0 !important;-moz-border-radius:0 !important;-ms-border-radius:0 !important;-o-border-radius:0 !important;border-radius:0 !important;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important;-webkit-box-sizing:content-box !important;-moz-box-sizing:content-box !important;box-sizing:content-box !important;column-count:auto !important;column-gap:normal !important;column-rule:medium none #000 !important;column-width:auto !important;column-span:1 !important;-webkit-text-fill-color:currentcolor !important;-webkit-tap-highlight-color:transparent !important;-moz-tap-highlight-color:transparent !important;-ms-tap-highlight-color:transparent !important;-o-tap-highlight-color:transparent !important;font-feature-settings:normal !important;overflow-x:visible !important;overflow-y:visible !important;-webkit-hyphens:manual !important;-moz-hyphens:manual !important;-ms-hyphens:manual !important;hyphens:manual !important;-webkit-hyphenate-character:"\xe2\u20ac\x90" !important;hyphenate-character:"\xe2\u20ac\x90" !important;-webkit-perspective:none !important;-moz-perspective:none !important;-ms-perspective:none !important;-o-perspective:none !important;perspective:none !important;-webkit-perspective-origin:50% 50% !important;-moz-perspective-origin:50% 50% !important;-ms-perspective-origin:50% 50% !important;-o-perspective-origin:50% 50% !important;perspective-origin:50% 50% !important;-webkit-backface-visibility:visible !important;-moz-backface-visibility:visible !important;-ms-backface-visibility:visible !important;-o-backface-visibility:visible !important;backface-visibility:visible !important;text-shadow:none !important;-webkit-transition:all 0s ease !important;-webkit-transition-delay:0s !important;-moz-transition:all 0s ease 0s !important;-o-transition:all 0s ease 0s !important;transition:all 0s ease 0s !important;word-break:normal !important;}#customerly-container & h1{font-size:2.3em !important;line-height:1.2em !important;}#customerly-container & h2{font-size:1.5em !important;}#customerly-container & h3{font-size:1.17em !important;}#customerly-container & h4{font-size:1em !important;}#customerly-container & h5{font-size:0.83em !important;}#customerly-container & a{text-decoration:none !important;cursor:pointer !important;display:inline !important;outline:0 !important;-webkit-transition:color 0.3s ease !important;-moz-transition:color 0.3s ease !important;-ms-transition:color 0.3s ease !important;-o-transition:color 0.3s ease !important;transition:color 0.3s ease !important;}#customerly-container & img.emoji{height:1em !important;width:1em !important;margin:0 0.05em 0 0.1em !important;vertical-align:-0.1em !important;display:inline-block !important;}']),Nr=_r.b.ul.withConfig({componentId:"cly__sc-1e7c3dz-1"})(["#customerly-container &{list-style:none !important;margin:0 !important;padding:0 !important;}#customerly-container & li{margin:0 !important;padding:0 !important;}"]),Hr=_r.b.input.attrs({type:"text"}).withConfig({componentId:"cly__sc-1e7c3dz-2"})(["#customerly-container &{-webkit-transition:box-shadow 0.3s ease-in-out,border 0.3s ease-in-out !important;-moz-transition:box-shadow 0.3s ease-in-out,border 0.3s ease-in-out !important;-ms-transition:box-shadow 0.3s ease-in-out,border 0.3s ease-in-out !important;-o-transition:box-shadow 0.3s ease-in-out,border 0.3s ease-in-out !important;outline:none !important;border:1px solid #dddddd !important;}#customerly-container &:focus{box-shadow:0 0 5px "," !important;border:1px solid "," !important;}#customerly-container &:disabled{background:#ececec !important;}"],(function(t){return t.theme.accentColor}),(function(t){return t.theme.accentColor})),Pr=_r.b.input.attrs({type:"range"}).withConfig({componentId:"cly__sc-1e7c3dz-3"})(["#customerly-container &{-webkit-appearance:none !important;width:100% !important;background:transparent !important;}#customerly-container &::-webkit-slider-thumb{-webkit-appearance:none !important;}#customerly-container &:focus{outline:none !important;}#customerly-container &::-ms-track{width:100% !important;cursor:pointer !important;background:transparent !important;border-color:transparent !important;color:transparent !important;}"]),Rr=_r.b.button.withConfig({componentId:"cly__sc-1e7c3dz-4"})(["#customerly-container &{cursor:pointer !important;display:flex !important;background:"," center !important;margin:0 auto !important;border-radius:8px !important;color:white !important;font-size:16px !important;align-items:center !important;border:0 !important;justify-content:left !important;padding:0 !important;outline:none !important;}#customerly-container & *{cursor:pointer !important;}#customerly-container &:disabled{box-shadow:initial !important;cursor:initial !important;background:#e8e8e8 center !important;}#customerly-container &:disabled *{cursor:initial !important;}#customerly-container &:hover:enabled{box-shadow:0 6px 20px 0 #00000038 !important;background:"," radial-gradient( circle,transparent 1%,"," 1% ) center/15000% !important;transition:background 500ms ease-in-out,box-shadow 500ms ease-in-out !important;}#customerly-container &:active:enabled{background-color:"," !important;background-size:100% !important;transition:background 0s !important;}"],(function(t){return t.theme.accentColor}),(function(t){return Mr(t.theme.accentColor,20)}),(function(t){return Mr(t.theme.accentColor,20)}),(function(t){return zr(t.theme.accentColor,20)})),Wr=_r.b.div.withConfig({componentId:"cly__sc-1e7c3dz-5"})(["#customerly-container &{width:48px !important;height:48px !important;box-sizing:border-box !important;display:flex !important;-webkit-box-align:center !important;align-items:center !important;transform:translateZ(0px) !important;padding:8px !important;margin:0 auto !important;border-radius:50% !important;background-color:rgba(0,0,0,0) !important;transition:background-color 200ms ease-in-out !important;}#customerly-container & *{cursor:pointer !important;}#customerly-container & svg{margin:0 auto !important;width:40px !important;height:40px !important;}#customerly-container &:hover{background-color:rgba(0,0,0,0.1) !important;transition:background-color 200ms ease-in-out !important;}"]),qr=Object(_r.c)(["from{opacity:0;transform:scale3d(0.3,0.3,0.3);}50%{opacity:1;}"]),Ur=Object(_r.c)(["0%{transform:rotate(0);}15%{transform:rotate(5deg);}30%{transform:rotate(-5deg);}45%{transform:rotate(4deg);}60%{transform:rotate(-4deg);}75%{transform:rotate(2deg);}85%{transform:rotate(-2deg);}92%{transform:rotate(1deg);}100%{transform:rotate(0);}"]),Vr=Object(_r.c)(["0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg);}"]),Xr=Object(_r.c)(["0%{box-shadow:1px 1px 20px #2fb6fa;}10%{box-shadow:1px 1px 40px #2fb6fa;}20%{box-shadow:1px 1px 50px #2fb6fa;}30%{box-shadow:1px 1px 70px #2fb6fa;}40%{box-shadow:1px 1px 90px #2fb6fa;}50%{box-shadow:1px 1px 90px #2fb6fa;}60%{box-shadow:1px 1px 70px #2fb6fa;}70%{box-shadow:1px 1px 50px #2fb6fa;}80%{box-shadow:1px 1px 40px #2fb6fa;}90%{box-shadow:1px 1px 40px #2fb6fa;}100%{box-shadow:1px 1px 20px #2fb6fa;}"]),Zr=_r.b.div.withConfig({componentId:"cly__sc-3zqlsg-0"})(["#customerly-container &{margin:60px auto !important;font-size:3px !important;position:relative !important;text-indent:-9999em !important;border-top:1.1em solid rgba(0,0,0,0.04) !important;border-right:1.1em solid rgba(0,0,0,0.04) !important;border-bottom:1.1em solid rgba(0,0,0,0.04) !important;border-left:1.1em solid "," !important;-webkit-transform:translateZ(0) !important;-ms-transform:translateZ(0) !important;transform:translateZ(0) !important;-webkit-animation:"," 1.1s infinite linear !important;animation:"," 1.1s infinite linear !important;border-radius:50% !important;width:10em !important;height:10em !important;display:block !important;}#customerly-container &:after{display:block !important;border-radius:50% !important;width:10em !important;height:10em !important;}"],(function(t){return t.theme.accentColor}),Vr,Vr),Gr="an-dFGjcV",Yr="an-iVPVYQ",Qr="an-QGlCtfFt",Kr=_r.b.div.withConfig({componentId:"cly__sc-18fj5v6-0"})(["#customerly-container &.","-enter-done,#customerly-container &.","-enter-active,#customerly-container &.","-exit,#customerly-container &.","-exit-done,#customerly-container &.","-exit-active{transition:transform 400ms !important;}#customerly-container &.","-enter-done,#customerly-container &.","-enter-active{opacity:1 !important;transform:translateY(0px) !important;}"],Gr,Gr,Gr,Gr,Gr,Gr,Gr),Jr=_r.b.div.withConfig({componentId:"cly__sc-18fj5v6-1"})(["#customerly-container &.","-enter-done,#customerly-container &.","-enter-active,#customerly-container &.","-exit,#customerly-container &.","-exit-done,#customerly-container &.","-exit-active{transition:transform 400ms,opacity 400ms !important;}#customerly-container &.","-enter-done,#customerly-container &.","-enter-active{opacity:1 !important;transform:translateY(-20px) !important;}@media (max-width:460px){#customerly-container &.","-enter-done,#customerly-container &.","-enter-active{transform:translateY(0px) !important}}#customerly-container &.","-exit-done,#customerly-container &.","-exit-active{opacity:0 !important;transform:translateY(0) !important;}"],Yr,Yr,Yr,Yr,Yr,Yr,Yr,Yr,Yr,Yr,Yr),$r=_r.b.div.withConfig({componentId:"cly__sc-18fj5v6-2"})(["#customerly-container &.","-enter-done,#customerly-container &.","-enter-active,#customerly-container &.","-exit,#customerly-container &.","-exit-done,#customerly-container &.","-exit-active{transition:transform 400ms,opacity 400ms !important;}#customerly-container &.","-enter-done,#customerly-container &.","-enter-active{opacity:1 !important;transform:translateY(20px) !important;}@media (max-width:460px){#customerly-container &.","-enter-done,#customerly-container &.","-enter-active{transform:translateY(0px) !important}}#customerly-container &.","-exit-done,#customerly-container &.","-exit-active{opacity:0 !important;transform:translateY(0) !important;}"],Qr,Qr,Qr,Qr,Qr,Qr,Qr,Qr,Qr,Qr,Qr),ta=function(t){return t&&t.desktop&&t.desktop.bottom?t.desktop.bottom:18},ea=function(t){return t&&t.mobile&&t.mobile.bottom?t.mobile.bottom:18},na=function(t){return t&&t.desktop&&t.desktop.side?t.desktop.side:16},ra=function(t){return t&&t.mobile&&t.mobile.side?t.mobile.side:16},aa=_r.b.div.withConfig({componentId:"cly__sc-1jmxj6u-0"})(["#customerly-container &{margin-bottom:16px !important;background:white !important;border-radius:7px !important;border:0 !important;height:auto !important;padding:16px !important;box-shadow:0 2px #00000075 !important;transition:height 40ms ease-in-out !important;}"]),ia=_r.b.div.withConfig({componentId:"cly__sc-1jmxj6u-1"})(["#customerly-container &{display:flex !important;flex-direction:row !important;align-items:center !important;padding-bottom:8px !important;justify-content:space-between !important;}"]),oa=_r.b.div.withConfig({componentId:"cly__sc-1jmxj6u-2"})(["#customerly-container &{color:#282828 !important;font-size:16px !important;font-weight:500 !important;}"]),ca=_r.b.div.withConfig({componentId:"cly__sc-1jmxj6u-3"})(["#customerly-container &{}"]),sa=Object(_r.b)(Rr).withConfig({componentId:"cly__sc-1jmxj6u-4"})(["#customerly-container &{height:48px !important;width:100% !important;box-shadow:0 6px 20px 0 #00000021 !important;}#customerly-container &:hover{box-shadow:0 6px 20px 0 #00000038 !important;}"]),ua=_r.b.span.withConfig({componentId:"cly__sc-1jmxj6u-5"})(["#customerly-container &{}"]),la=_r.b.span.withConfig({componentId:"cly__sc-1jmxj6u-6"})(["#customerly-container &{height:48px !important;width:48px !important;display:flex !important;align-items:center !important;justify-content:center !important;}"]),pa=_r.b.a.withConfig({componentId:"cly__sc-1jmxj6u-7"})(["#customerly-container &{cursor:pointer !important;color:"," !important;text-decoration:none !important;border:none !important;font-size:14px !important;background:none !important;-webkit-transition:color 0.3s ease !important;-moz-transition:color 0.3s ease !important;-ms-transition:color 0.3s ease !important;-o-transition:color 0.3s ease !important;transition:color 0.3s ease !important;}#customerly-container &:hover{color:#282828 !important;}"],(function(t){return t.theme.accentColor})),ma=_r.b.form.withConfig({componentId:"cly__sc-1jmxj6u-8"})(["#customerly-container &{position:relative !important;}"]),da=Object(_r.b)(Hr).withConfig({componentId:"cly__sc-1jmxj6u-9"})(["#customerly-container &{width:100% !important;height:48px !important;box-sizing:border-box !important;font-size:14px !important;box-shadow:rgba(0,0,0,0.07) 0 1px 3px 0 inset !important;color:#282828 !important;-webkit-appearance:none !important;padding:11px 64px 11px 16px !important;border:1px solid #e1e1e1 !important;border-image:initial !important;border-radius:8px !important;background:#ffffff !important;}"]),fa=Object(_r.b)(Rr).withConfig({componentId:"cly__sc-1jmxj6u-10"})(["#customerly-container &{display:block !important;cursor:pointer !important;border:0 !important;z-index:0 !important;position:absolute !important;top:0 !important;right:0 !important;bottom:0 !important;width:48px !important;border-radius:0 8px 8px 0 !important;background-color:"," !important;-webkit-tap-highlight-color:rgba(0,0,0,0) !important;user-select:none !important;transition:background-color 40ms ease-in-out !important;}#customerly-container & svg{margin:0 auto !important;}#customerly-container & ","{margin:0 auto !important;width:4em !important;height:4em !important;}"],(function(t){return t.theme.accentColor}),Zr),ga=Object(_r.b)(Jr).withConfig({componentId:"cly__sc-1jmxj6u-11"})(["#customerly-container &{margin:0 !important;overflow:hidden !important;background:rgb(2,0,36) !important;background:"," !important;display:flex !important;flex-direction:column !important;height:"," !important;-webkit-box-pack:end !important;min-height:200px !important;max-height:","px !important;width:360px !important;border-radius:16px !important;box-shadow:rgba(0,0,0,0.05) 0 0 0 1px,rgba(0,0,0,0.15) 0 5px 30px 0,rgba(0,0,0,0.05) 0 3px 3px 0 !important;position:fixed !important;bottom:","px !important;z-index:9999 !important;right:"," !important;left:"," !important;}@media (max-width:460px){#customerly-container &{z-index:2147482998 !important;width:100% !important;height:100% !important;bottom:0 !important;position:fixed !important;border-radius:0 !important;left:0 !important;right:0 !important;top:0 !important;max-height:100% !important;transform:none !important}}"],(function(t){return t.theme.accentColor}),(function(t){return"calc(\n 100% - ".concat(90+ta(t.theme.position),"px\n )")}),(function(t){return t.theme.widgetHeight}),(function(t){return 60+ta(t.theme.position)}),(function(t){return t.theme.direction===q.Right?"".concat(na(t.theme.position),"px"):"auto"}),(function(t){return t.theme.direction===q.Left?"".concat(na(t.theme.position),"px"):"auto"})),ha=_r.b.div.withConfig({componentId:"cly__sc-1jmxj6u-12"})(["#customerly-container &{height:100% !important;overflow:auto !important;}"]),ba=Object(_r.b)(oa).withConfig({componentId:"cly__sc-6mh84t-0"})(["#customerly-container &{width:48% !important;}"]),Da=_r.b.div.withConfig({componentId:"cly__sc-6mh84t-1"})(["#customerly-container &{padding:8px 0 !important;color:gray !important;text-align:center !important;}"]),va=Object(_r.b)(Nr).withConfig({componentId:"cly__sc-6mh84t-2"})(["#customerly-container &{}"]),wa=_r.b.div.withConfig({componentId:"cly__sc-6mh84t-3"})(["#customerly-container &{cursor:pointer !important;border-top:1px solid #8080801a !important;padding:8px !important;}#customerly-container & *{cursor:pointer !important;}#customerly-container &:hover{background:#f7f7f7 !important;}#customerly-container &:last-child{border-bottom:none !important;}"]),ya=_r.b.span.withConfig({componentId:"cly__sc-6mh84t-4"})(["#customerly-container &{font-weight:500 !important;}"]),Ca=_r.b.span.withConfig({componentId:"cly__sc-6mh84t-5"})(["#customerly-container &{font-size:12px !important;color:#898989 !important;}"]),xa=_r.b.a.withConfig({componentId:"cly__sc-6mh84t-6"})(["#customerly-container &{text-decoration:none !important;text-align:center !important;color:"," !important;}"],(function(t){return t.theme.accentColor})),_a=function(t){return a.a.createElement(a.a.Fragment,null,t.isLoading?a.a.createElement(Zr,null):t.children)},Ea=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=Object(r.useState)(!1),n=Object(dt.a)(e,2),i=n[0],o=n[1],c=Object(r.useState)(!1),s=Object(dt.a)(c,2),u=s[0],l=s[1],p=Object(r.useState)(""),f=Object(dt.a)(p,2),g=f[0],h=f[1],b=Object(r.useState)(""),D=Object(dt.a)(b,2),v=D[0],w=D[1],y=Object(jr.d)().t,C=function(){var e=Object(d.a)(m.a.mark((function e(n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),o(!0),l(!0),w(g),e.t0=g,!e.t0){e.next=8;break}return e.next=8,t.dispatch(xe.getArticles(g));case 8:o(!1);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=Object(d.a)(m.a.mark((function e(n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setSelectedArticle(n),t.setShowModal(!0),t.dispatch(vn.call({function:t.widget.callbacks.onHelpCenterArticleOpened,arguments:[n]}));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return a.a.createElement(a.a.Fragment,null,null!==t.ping.knowledge.url&&a.a.createElement(aa,null,a.a.createElement(ia,null,a.a.createElement(ba,null,y("Widget.Messenger.Knowledge.header.findAnAnswer")),a.a.createElement(pa,{href:t.ping.knowledge.url,target:"_blank",rel:"noopener"},y("Widget.Messenger.Knowledge.header.openHelpCenter"))),a.a.createElement(ma,{onSubmit:C},a.a.createElement(da,{type:"text",value:g,placeholder:y("Widget.Messenger.Knowledge.body.search"),onSubmit:C,onChange:function(t){return h(t.target.value)}}),a.a.createElement(fa,{onClick:C,value:"Go"},a.a.createElement(kr,{type:Qn.Search,fill:"#ffffff",size:14}))),a.a.createElement(xr,{condition:u},a.a.createElement(_a,{isLoading:i},a.a.createElement(xr,{condition:t.widget.cards.knowledge.articles.length>0},a.a.createElement(Da,null,y("Widget.Messenger.Knowledge.body.searchResultsSuccess",{keyword:v})),a.a.createElement(va,null,a.a.createElement(gt,{items:(t.widget.cards.knowledge.articles||[]).slice(0,5)},(function(t){return a.a.createElement("li",{onClick:function(){return x(t)},key:t.knowledge_base_article_id},a.a.createElement(wa,null,a.a.createElement(ya,null,t.title),a.a.createElement(Ca,null,t.description)))})),a.a.createElement(xr,{condition:t.widget.cards.knowledge.articles.length>5},a.a.createElement(xa,{target:"_blank",rel:"noopener",href:"".concat(t.ping.knowledge.url,"?q=").concat(v)},a.a.createElement(wa,null,y("Widget.Messenger.Knowledge.body.seeMoreResults",{keyword:v})))))),a.a.createElement(xr,{condition:0===t.widget.cards.knowledge.articles.length},a.a.createElement(Da,null,y("Widget.Messenger.Knowledge.body.searchResultsFailed",{keyword:v})))))))})),ka=Object(_r.b)(Kr).withConfig({componentId:"cly__jnetz4-0"})(["#customerly-container &{-webkit-box-align:center !important;align-items:center !important;display:flex !important;-webkit-box-pack:center !important;justify-content:center !important;min-height:0 !important;left:0 !important;position:fixed !important;right:0 !important;top:0 !important;z-index:2147483000 !important;height:100% !important;transform:translateY( ","px ) !important;}"],(function(t){return 1.3*t.theme.widgetHeight})),ja=_r.b.div.withConfig({componentId:"cly__jnetz4-1"})(["#customerly-container &{max-width:100% !important;height:100% !important;max-height:100% !important;width:100% !important;}"]),Oa=_r.b.div.withConfig({componentId:"cly__jnetz4-2"})(["#customerly-container &{box-sizing:border-box !important;background-color:white !important;color:currentcolor !important;box-shadow:rgba(42,59,71,0.1) 0 1px 1px,rgba(42,59,71,0.25) 0 10px 30px !important;display:flex !important;flex-direction:column !important;min-height:0 !important;border-radius:4px !important;max-height:100% !important;height:100% !important;text-decoration:none !important;border-width:initial !important;border-style:none !important;border-color:initial !important;border-image:initial !important;outline:none !important;position:relative !important;overflow:hidden !important;}"]),Fa=_r.b.div.withConfig({componentId:"cly__jnetz4-3"})(["#customerly-container &{height:100% !important;color:white !important;transition:height 160ms ease-out 0s !important;background:"," !important;}"],(function(t){return t.theme.accentColor})),Aa=_r.b.div.withConfig({componentId:"cly__jnetz4-4"})(["#customerly-container &{color:white !important;font-size:18px !important;line-height:","px !important;text-align:center !important;}"],(function(t){return t.theme.widgetHeaderHeight})),Ia=_r.b.div.withConfig({componentId:"cly__jnetz4-5"})(["#customerly-container &{z-index:2147483000 !important;position:absolute !important;width:48px !important;height:48px !important;top:0 !important;left:0 !important;background-position:center center !important;margin:8px !important;cursor:pointer !important;}#customerly-container & *{cursor:pointer !important;}"]),Sa=_r.b.div.withConfig({componentId:"cly__jnetz4-6"})(["#customerly-container &{overflow:auto !important;border-top-left-radius:8px !important;border-top-right-radius:8px !important;position:absolute !important;top:","px !important;display:block !important;background:#fff !important;height:calc( 100% - ","px ) !important;width:100% !important;}"],(function(t){return t.theme.widgetHeaderHeight}),(function(t){return t.theme.widgetHeaderHeight})),Ba=_r.b.div.withConfig({componentId:"cly__jnetz4-7"})(["#customerly-container &{height:100% !important;}"]),za=function(t){return a.a.createElement(ft.a,{in:t.showModal,timeout:400,classNames:Gr,appear:!0,unmountOnExit:!0},a.a.createElement(ka,null,a.a.createElement(ja,null,a.a.createElement(Oa,null,a.a.createElement(Fa,null,a.a.createElement(Aa,null,t.title),a.a.createElement(Ia,{onClick:function(){return t.onClose()}},a.a.createElement(Wr,null,a.a.createElement(kr,{type:Qn.Close,fill:"#fff",size:40})))),a.a.createElement(Sa,null,a.a.createElement(Ba,null,t.children))))))},Ma=_r.b.iframe.withConfig({componentId:"cly__vcn42d-0"})(["#customerly-container &{width:100% !important;height:100% !important;border:0 !important;display:"," !important;}"],(function(t){return t.isLoading?"none":"block"})),La=function(t){var e=Object(r.useState)(!0),n=Object(dt.a)(e,2),i=n[0],o=n[1];return a.a.createElement(a.a.Fragment,null,a.a.createElement(Ma,{title:"cly-iframe",isLoading:i,src:t.url,onLoad:function(){setTimeout((function(){o(!1)}),1e3)}}),a.a.createElement(_a,{isLoading:i}))},Ta=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=Object(r.useState)(""),n=Object(dt.a)(e,2),i=n[0],o=n[1],c=Object(r.useState)(!1),s=Object(dt.a)(c,2),u=s[0],l=s[1],p=Object(jr.d)().t;return a.a.createElement(a.a.Fragment,null,a.a.createElement(aa,null,a.a.createElement(ia,null,a.a.createElement(oa,null,p("Widget.Messenger.Calendly.header.scheduleDemo"))),a.a.createElement(ca,null,a.a.createElement(sa,{type:"button",onClick:function(){return o("".concat(t.ping.app_config.calendly_url,"?hide_event_type_details=1")),void l(!0)}},a.a.createElement(la,null,a.a.createElement(kr,{type:Qn.Calendar,size:24,fill:"#fff"})),a.a.createElement(ua,null,p("Widget.Messenger.Calendly.header.bookMeeting"))))),a.a.createElement(za,{title:"Book a Meeting",showModal:u,onClose:function(){return l(!1)}},a.a.createElement(La,{url:i})))})),Na=n(18),Ha=Object(Na.a)((function(t){return t.ping.user}),(function(t){return Nt(t)})),Pa=(Object(Na.a)((function(t){return t.ping.user}),(function(t){return!Nt(t)&&!t.is_user})),Object(Na.a)((function(t){return t.ping.user}),(function(t){return!Nt(t)&&!!t.is_user}))),Ra=Object(Na.a)((function(t){return t.ping.user}),(function(t){return Nt(t)||!t.name||t.is_name_autogenerated?void 0:t.name.split(" ")[0]})),Wa=_r.b.div.withConfig({componentId:"cly__sc-1rdhql-0"})(["#customerly-container &{position:relative !important;padding:16px !important;}"]),qa=_r.b.h1.withConfig({componentId:"cly__sc-1rdhql-1"})(["#customerly-container &{color:#ffffff !important;margin:0 !important;padding:0 48px 8px 0 !important;word-break:break-word !important;}"]),Ua=_r.b.p.withConfig({componentId:"cly__sc-1rdhql-2"})(["#customerly-container &{color:#ffffff !important;margin:0 !important;}"]),Va=Object(_r.b)(Wr).withConfig({componentId:"cly__sc-1rdhql-3"})(["#customerly-container &{text-align:center !important;cursor:pointer !important;position:absolute !important;top:8px !important;right:8px !important;}#customerly-container & svg{margin:2px auto !important;width:28px !important;height:28px !important;}"]),Xa=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=Object(jr.d)().t,n=Object(c.c)(Ra),r=function(){var e=Object(d.a)(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.dispatch(ye.toggle());case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return a.a.createElement(Wa,null,a.a.createElement(xr,{condition:void 0!==n},a.a.createElement(qa,null,e("Widget.Messenger.Home.Header.helloUser",{user:n}))),a.a.createElement(xr,{condition:null==n},a.a.createElement(qa,null,e("Widget.Messenger.Home.Header.helloCompany",{company:t.ping.app.name}))),a.a.createElement(Ua,null,a.a.createElement(xr,{condition:!!t.ping.app_config.team_intro},t.ping.app_config.team_intro),a.a.createElement(xr,{condition:!t.ping.app_config.team_intro},e("Widget.Messenger.Home.Header.teamIntro"))),a.a.createElement(Va,{onClick:r},a.a.createElement(kr,{type:Qn.Close,fill:"#fff",size:24})))})),Za=Object(Na.a)((function(t){return t.widget}),(function(t){return{position:t.position,direction:t.direction,accentColor:t.accentColor,contrastColor:t.contrastColor,widgetHeight:600,widgetWidth:360,widgetHeaderHeight:64}})),Ga=_r.b.img.withConfig({componentId:"cly__gux6i5-0"})(["#customerly-container &{-webkit-border-radius:"," !important;-moz-border-radius:"," !important;border-radius:"," !important;width:","px !important;height:","px !important;display:inline-block !important;}"],(function(t){return t.isRounded?"50%":"100%"}),(function(t){return t.isRounded?"50%":"100%"}),(function(t){return t.isRounded?"50%":"100%"}),(function(t){return t.size}),(function(t){return t.size})),Ya=function(t){var e=Object(c.c)(Za),n=void 0!==t.size?t.size:50,r=void 0===t.circle||t.circle,i=t.accountId===it,o=2*n;o=o<=50?50:250;var s="".concat(at,"/accounts/").concat(t.accountId,"/").concat(o),u="".concat(at,"/users/").concat(t.userId,"/").concat(o),l="".concat(at,"/teams/").concat(t.teamId,"/").concat(o);return a.a.createElement(a.a.Fragment,null,i&&a.a.createElement(kr,{type:Qn.Bot,fill:e.accentColor,size:n}),!i&&t.accountId&&a.a.createElement(Ga,{isRounded:r,size:n,width:n,height:n,alt:"avatar",src:s}),t.userId&&a.a.createElement(Ga,{isRounded:r,size:n,width:n,height:n,alt:"avatar",src:u}),t.teamId&&a.a.createElement(Ga,{isRounded:r,size:n,width:n,height:n,alt:"avatar",src:l}))},Qa=_r.b.div.withConfig({componentId:"cly__sc-1m07xbg-0"})(["#customerly-container &{display:flex !important;flex-direction:column !important;}"]),Ka=_r.b.div.withConfig({componentId:"cly__sc-1m07xbg-1"})(['#customerly-container &{display:flex !important;flex-direction:row !important;flex-wrap:nowrap !important;-webkit-box-align:center !important;align-items:center !important;align-content:stretch !important;position:relative !important;outline-offset:-5px !important;padding:16px 8px !important;cursor:pointer !important;}#customerly-container &:hover{background:#f7f7f7 !important;}#customerly-container &:before{content:"" !important;position:absolute !important;height:100% !important;left:0 !important;right:0 !important;top:0 !important;border-top:2px solid transparent !important;}#customerly-container &:after{content:"" !important;cursor:pointer !important;position:absolute !important;height:100% !important;left:0 !important;right:0 !important;top:0 !important;border-top:1px solid rgb(238,238,238) !important;}']),Ja=_r.b.div.withConfig({componentId:"cly__sc-1m07xbg-2"})(["#customerly-container &{height:44px !important;}#customerly-container & img{width:40px !important;height:40px !important;border:3px solid "," !important;}"],(function(t){return t.isUnread?t.theme.accentColor:"#f1f1f1"})),$a=_r.b.div.withConfig({componentId:"cly__sc-1m07xbg-3"})(["#customerly-container &{display:flex !important;-webkit-box-pack:justify !important;flex-direction:column !important;justify-content:space-between !important;margin-left:16px !important;width:100% !important;}"]),ti=_r.b.div.withConfig({componentId:"cly__sc-1m07xbg-4"})(["#customerly-container &{font-weight:300 !important;color:"," !important;font-size:14px !important;text-overflow:ellipsis !important;white-space:nowrap !important;overflow:hidden !important;}"],(function(t){return t.isUnread?t.theme.accentColor:"#555555"})),ei=_r.b.div.withConfig({componentId:"cly__sc-1m07xbg-5"})(["#customerly-container &{font-size:14px !important;white-space:nowrap !important;font-weight:300 !important;text-overflow:ellipsis !important;color:"," !important;overflow:hidden !important;max-width:70% !important;}"],(function(t){return t.isUnread?t.theme.accentColor:"#282828"})),ni=_r.b.div.withConfig({componentId:"cly__sc-1m07xbg-6"})(["#customerly-container &{font-size:14px !important;white-space:nowrap !important;font-weight:300 !important;text-overflow:ellipsis !important;color:"," !important;overflow:hidden !important;max-width:70% !important;}#customerly-container & svg{display:inline-block !important;}"],(function(t){return t.theme.accentColor})),ri=_r.b.div.withConfig({componentId:"cly__sc-1m07xbg-7"})(["#customerly-container & img{margin-right:-24px !important;border:4px solid #ffffff66 !important;}"]),ai=_r.b.div.withConfig({componentId:"cly__sc-1m07xbg-8"})(["#customerly-container &{}"]),ii=_r.b.div.withConfig({componentId:"cly__sc-1m07xbg-9"})(["#customerly-container &{margin-top:16px !important;}"]),oi=n(81),ci=n.n(oi),si=n(151);!function(t){t.Attribute="attribute:set",t.Connect="connect",t.Seen="seen",t.Message="message",t.Typing="typing",t.RealtimeCancel="rt-cancel",t.RealtimeAccept="rt-accept",t.RealtimeReject="rt-reject",t.RealtimeCall="rt-call",t.RealtimeRinging="rt-ringing",t.RealtimeUnavailable="rt-unavailable"}(Br||(Br={}));var ui,li=function(){function t(){Object(f.a)(this,t),this.socket={},this.initialized=!1,this.token=""}return Object(g.a)(t,[{key:"init",value:function(t,e,n){return n===this.token||(this.socket=ci()("".concat(t,":").concat(e),{secure:!0,transports:["websocket","polling"],forceNew:!0,reconnectionDelay:15e3,reconnectionDelayMax:6e4,reconnectionAttempts:5,randomizationFactor:.5,timeout:25e3,query:"token=".concat(n)}),this.token=n,this.initialized=!0),this}},{key:"typing",value:function(t,e,n,r){this.send(Br.Typing,{conversation:{conversation_id:t,user_id:e,is_note:!1},is_typing:r?"y":"n",typing_preview:r?n:""})}},{key:"seen",value:function(t,e,n,r){null==r&&(r=T()),this.send(Br.Seen,{conversation:{conversation_message_id:e,conversation_id:t,user_id:n},seen_date:r})}},{key:"message",value:function(t,e,n){null==n&&(n=T()),this.send(Br.Message,{timestamp:n,user_id:t,message:e,conversation:{is_note:!1}})}},{key:"attribute",value:function(t,e,n){this.send(Br.Attribute,{user_id:t,name:e,value:n})}},{key:"realtimeRinging",value:function(t){this.send(Br.RealtimeRinging,t)}},{key:"realtimeReject",value:function(t){this.send(Br.RealtimeReject,t)}},{key:"realtimeAccept",value:function(t){this.send(Br.RealtimeAccept,t)}},{key:"onTyping",value:function(t){return this.onEvent(Br.Typing).subscribe(t)}},{key:"onMessage",value:function(t){return this.onEvent(Br.Message).subscribe(t)}},{key:"onRealtimeCancel",value:function(t){return this.onEvent(Br.RealtimeCancel).subscribe(t)}},{key:"onRealtimeCall",value:function(t){return this.onEvent(Br.RealtimeCall).subscribe(t)}},{key:"onConnect",value:function(t){return this.onEvent(Br.Connect).subscribe(t)}},{key:"onEvent",value:function(t){return Object(si.a)(this.socket,t)}},{key:"send",value:function(t,e){this.socket.emit(t,e)}},{key:"isInitialized",value:function(){return this.initialized}},{key:"isConnected",value:function(){return!!this.socket.connected}},{key:"disconnect",value:function(){this.socket.disconnect()}}]),t}(),pi=a.a.createContext(new li);!function(t){t.Receive="receive.mp3",t.Sent="sent.mp3",t.Calling="calling.m4r"}(ui||(ui={}));var mi,di,fi=function(t){new Audio(function(t){return"".concat("https://messenger.customerly.io","/sounds/").concat(t)}(t)).play().catch((function(t){}))},gi=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=[],n=Object(r.useContext)(pi),i=Object(r.useState)(!0),o=Object(dt.a)(i,2),s=o[0],u=o[1],l=Object(jr.d)().t,p=Object(c.c)(Pa),f=Object(c.c)(Ha),g=Object(r.useState)(void 0),h=Object(dt.a)(g,2),b=h[0],D=h[1],v=function(e){fi(ui.Receive),t.dispatch(Ie.getAll())},w=function(t){if(t.client){var e=!!t.client,n="y"===t.is_typing;if(!e)return;D(n?{conversationId:t.conversation.conversation_id,account:{accountId:t.client.account_id,name:t.client.name}}:void 0)}},y=function(){e.forEach((function(t){return t.unsubscribe()}))};return Object(r.useEffect)((function(){return function(){var r=Object(d.a)(m.a.mark((function r(){return m.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return f||(e.push(n.onMessage(v)),e.push(n.onTyping(w))),u(!0),r.next=4,t.dispatch(Ie.getAll());case 4:u(!1);case 5:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}()().catch(console.error),y}),[]),a.a.createElement(aa,null,a.a.createElement(_a,{isLoading:s},a.a.createElement(ia,null,a.a.createElement(oa,null,l("Widget.Messenger.Home.Conversation.header.yourConversations")),a.a.createElement(xr,{condition:t.widget.cards.conversation.conversations.length>2},a.a.createElement(pa,{as:"button",onClick:function(){return t.dispatch(Dn.goToConversationList())}},l("Widget.Messenger.Home.Conversation.header.seeAll")))),a.a.createElement(xr,{condition:t.widget.cards.conversation.conversations.length>0},a.a.createElement(Qa,null,a.a.createElement(gt,{items:t.widget.cards.conversation.conversations.slice(0,2)},(function(e){return a.a.createElement(Ka,{key:e.conversation_id,onClick:function(){return t.dispatch(Dn.goToConversationCompose(e))}},a.a.createElement(Ja,{isUnread:e.unread},Nt(e.last_account||{})?a.a.createElement(Ya,{userId:e.user_id,size:50}):a.a.createElement(Ya,{accountId:e.last_account&&e.last_account.account_id,size:50})),a.a.createElement($a,null,a.a.createElement(ti,{isUnread:e.unread},Nt(e.last_account||{})?l("Widget.Messenger.Home.Conversation.body.You"):e.last_account&&e.last_account.name),(!b||b&&b.conversationId!==e.conversation_id)&&a.a.createElement(ei,{isUnread:e.unread,dangerouslySetInnerHTML:{__html:e.last_message_abstract}}),!!b&&b.conversationId===e.conversation_id&&a.a.createElement(ni,null,a.a.createElement(kr,{type:Qn.Typing,fill:t.widget.accentColor,size:15}),l("Widget.Notification.MessageNotification.isTyping",{name:b&&b.account.name}))))})))),a.a.createElement(xr,{condition:0===t.widget.cards.conversation.conversations.length},a.a.createElement(ri,null,a.a.createElement(gt,{items:t.ping.active_accounts},(function(t,e){return a.a.createElement(Ya,{key:e,accountId:t.account_id,size:50})})),a.a.createElement(ai,null,a.a.createElement(xr,{condition:p},t.ping.app_config.welcome_message_users),a.a.createElement(xr,{condition:!p},t.ping.app_config.welcome_message_visitors)))),a.a.createElement(xr,{condition:!t.widget.singleConversation||t.widget.singleConversation&&0===t.widget.cards.conversation.conversations.length},a.a.createElement(ii,null,a.a.createElement(sa,{type:"button",onClick:function(){return t.dispatch(Dn.goToConversationCompose(void 0))}},a.a.createElement(la,null,a.a.createElement(kr,{type:Qn.New,size:24,fill:"#fff"})),a.a.createElement(ua,null,l("Widget.Messenger.Home.Conversation.footer.startNew")))))))})),hi=_r.b.div.withConfig({componentId:"cly__sc-1e9cl28-0"})(["#customerly-container &{position:absolute !important;width:100% !important;bottom:0 !important;display:flex !important;align-items:flex-end !important;color:white !important;justify-content:center !important;background-color:"," !important;box-shadow:rgba(0,0,0,0.04) 0px -10px 10px 1px !important;margin:0 !important;padding:4px 0 !important;}"],(function(t){return Mr(t.theme.accentColor,20)})),bi=_r.b.div.withConfig({componentId:"cly__sc-1e9cl28-1"})(["#customerly-container &{display:flex !important;width:100% !important;-webkit-box-pack:center !important;justify-content:center !important;opacity:0.6 !important;transition:opacity 80ms ease-in-out !important;align-items:center !important;}#customerly-container &:hover{opacity:1 !important;transition:opacity 80ms ease-in-out !important;}"]),Di=_r.b.a.withConfig({componentId:"cly__sc-1e9cl28-2"})(["#customerly-container &{display:inline-block !important;font-size:10px !important;color:white !important;padding:8px 4px !important;border-radius:16px !important;text-decoration:none !important;}"]),vi=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e="".concat(rt,"/add-live-chat/?utm_medium=widget&utm_source=customerly&utm_campaign=powered-by-livechat&utm_content=").concat(t.ping.app.app_id,"&partner=").concat(y(w())),n=Object(jr.d)().t;return a.a.createElement(hi,null,a.a.createElement(bi,null,a.a.createElement(kr,{type:Qn.Customerly,fill:"#fff",size:20}),a.a.createElement(Di,{href:e,target:"_blank",rel:"noopener dofollow"},n("Widget.Messenger.Home.PoweredBy.poweredBy"))))})),wi=_r.b.div.withConfig({componentId:"cly__sc-37j4bu-0"})(["#customerly-container &{padding:16px !important;}"]),yi=_r.b.h1.withConfig({componentId:"cly__sc-37j4bu-1"})(["#customerly-container &{line-height:20px !important;color:#282828 !important;text-decoration:none !important;font-size:18px !important;font-weight:500 !important;text-align:left !important;}"]),Ci=_r.b.a.withConfig({componentId:"cly__sc-37j4bu-2"})(["#customerly-container &{color:#282828 !important;text-decoration:none !important;margin-bottom:15px !important;}#customerly-container &:hover{color:"," !important;}"],(function(t){return t.theme.accentColor})),xi=_r.b.div.withConfig({componentId:"cly__sc-37j4bu-3"})(["#customerly-container & *{color:"," !important;display:inline-block !important;}#customerly-container & u{text-decoration:underline !important;}#customerly-container & em,#customerly-container & i{font-style:italic !important;}#customerly-container & b,#customerly-container & strong{font-weight:bold !important;}#customerly-container & img,#customerly-container & iframe{max-width:100% !important;}#customerly-container & h1,#customerly-container & h2,#customerly-container & h3,#customerly-container & h4,#customerly-container & h5{margin-top:0.7em !important;margin-bottom:0.3em !important;}#customerly-container & p{margin:0.5em 0 !important;}#customerly-container & h1{font-size:1.8em !important;line-height:1.2em !important;}#customerly-container & h2{font-size:1.5em !important;}#customerly-container & h3{font-size:1.17em !important;}#customerly-container & h4{font-size:1em !important;}#customerly-container & h5{font-size:0.83em !important;}#customerly-container & a{color:"," !important;display:inline-block !important;}#customerly-container & a:hover{color:"," !important;}#customerly-container & a *{cursor:pointer !important;}#customerly-container & ul{margin-block-start:1em !important;margin-block-end:1em !important;margin-inline-start:0 !important;margin-inline-end:0 !important;padding-inline-start:40px !important;}#customerly-container & ul li{display:list-item !important;list-style-type:disc !important;}#customerly-container & .ratcode{margin:20px 0 !important;padding:20px !important;background:#333d54 !important;color:#d8d8d8 !important;}"],Or,(function(t){return t.theme.accentColor}),Or),_i=_r.b.div.withConfig({componentId:"cly__sc-37j4bu-4"})(["#customerly-container &{align-items:center !important;display:flex !important;margin:16px 0 !important;justify-content:center !important;}"]),Ei=_r.b.div.withConfig({componentId:"cly__sc-37j4bu-5"})(["#customerly-container &{height:25px !important;}#customerly-container & img{height:25px !important;width:25px !important;}"]),ki=_r.b.div.withConfig({componentId:"cly__sc-37j4bu-6"})(["#customerly-container &{margin-left:8px !important;color:#a7a7a7 !important;}"]),ji=(_r.b.div.withConfig({componentId:"cly__sc-37j4bu-7"})(["#customerly-container &{background:#f1f1f1 !important;border-radius:8px !important;padding:8px 16px !important;text-align:center !important;}"]),_r.b.div.withConfig({componentId:"cly__sc-37j4bu-8"})(["#customerly-container &{background:none !important;border:none !important;height:50px !important;width:50px !important;font-size:30px !important;cursor:pointer !important;-webkit-transition:-webkit-transform 0.16s cubic-bezier(0.65,0.61,0.18,1.8) 0.02s,-webkit-filter 0.32s linear !important;transition:-webkit-transform 0.16s cubic-bezier(0.65,0.61,0.18,1.8) 0.02s,-webkit-filter 0.32s linear !important;transition:transform 0.16s cubic-bezier(0.65,0.61,0.18,1.8) 0.02s,filter 0.32s linear !important;}#customerly-container &:hover{-webkit-transform:scale(1.2) !important;transform:scale(1.2) !important;-webkit-transition:-webkit-transform 0.04s !important;transition:-webkit-transform 0.04s !important;transition:transform 0.04s !important;}"]),Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=Object(jr.d)().t,n=t.selectedArticle&&"".concat(t.ping.knowledge.url,"/").concat(t.selectedArticle.collection.slug,"/").concat(t.selectedArticle.slug);return a.a.createElement(za,{title:"Knowledge Base",showModal:t.showModal,onClose:t.onClose},t.selectedArticle&&a.a.createElement(wi,null,a.a.createElement(yi,null,a.a.createElement(Ci,{target:"_blank",rel:"noopener",href:n},t.selectedArticle.title)),a.a.createElement(xi,{dangerouslySetInnerHTML:{__html:t.selectedArticle.body}}),a.a.createElement(_i,null,a.a.createElement(Ei,null,a.a.createElement(Ya,{accountId:t.selectedArticle.account.account_id})),a.a.createElement(ki,null,e("Widget.Messenger.Knowledge.ArticleModal.writtenBy",{name:t.selectedArticle.account.name})))))}))),Oi=_r.b.div.withConfig({componentId:"cly__ln2uw-0"})(["#customerly-container &{}"]),Fi=_r.b.div.withConfig({componentId:"cly__ln2uw-1"})(["#customerly-container &{}"]),Ai=_r.b.div.withConfig({componentId:"cly__ln2uw-2"})(["#customerly-container &{margin:"," !important;}"],(function(t){return t.hasPoweredBy?"0 16px 64px":"0 16px 16px"})),Ii=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=Object(r.useState)(),n=Object(dt.a)(e,2),i=n[0],o=n[1],c=Object(r.useState)(!1),s=Object(dt.a)(c,2),u=s[0],l=s[1];return a.a.createElement(Oi,null,a.a.createElement(Fi,null,a.a.createElement(Xa,null),a.a.createElement(Ai,{hasPoweredBy:t.ping.app_config.branded_widget},a.a.createElement(xr,{condition:!t.ping.app_config.inbound_conversations_disabled},a.a.createElement(gi,null)),a.a.createElement(xr,{condition:t.ping.app_config.widget_knowledge_base_enabled&&!!t.ping.knowledge.url},a.a.createElement(Ea,{setSelectedArticle:o,setShowModal:l})),a.a.createElement(xr,{condition:t.ping.app_config.calendly_enabled&&!!t.ping.app_config.calendly_url},a.a.createElement(Ta,null)),i&&a.a.createElement(ji,{selectedArticle:i,showModal:u,onClose:function(){return l(!1)}}))),a.a.createElement(xr,{condition:t.ping.app_config.branded_widget},a.a.createElement(vi,null)))}));!function(t){t.Second="second",t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Year="year"}(mi||(mi={})),function(t){t.Ago="Ago",t.FromNow="FromNow"}(di||(di={}));var Si,Bi=3600,zi=86400,Mi=7*zi,Li=30*zi,Ti=365*zi,Ni=function(t){var e=Object(jr.d)().t,n=T()-t.date,r=n<0?di.FromNow:di.Ago,i=n<60?[Math.round(n),mi.Second]:n=e&&(c.current=Date.now(),o(t))}),e-(Date.now()-c.current));return function(){clearTimeout(n)}}),[t]),i},ao=192,io="8px ".concat(16,"px"),oo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-0"})(["#customerly-container &{background:"," !important;position:absolute !important;top:0 !important;bottom:0 !important;left:0 !important;right:0 !important;border-radius:8px 8px 0 0 !important;}#customerly-container & ","{border-left:1.1em solid "," !important;}"],(function(t){return t.theme.accentColor}),Zr,(function(t){return t.theme.contrastColor})),co=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-1"})(["#customerly-container &{position:absolute !important;top:0 !important;left:0 !important;right:0 !important;bottom:0 !important;min-height:88px !important;color:white !important;transition:height 160ms ease-out 0s !important;background:"," !important;}"],(function(t){return t.theme.accentColor})),so=Object(_r.b)(Ia).withConfig({componentId:"cly__sc-1352o0d-2"})(["#customerly-container &{}"]),uo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-3"})(["#customerly-container &{position:absolute !important;left:56px !important;display:flex !important;padding:8px !important;}"]),lo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-4"})(["#customerly-container &{margin-right:16px !important;align-items:center !important;display:flex !important;}#customerly-container & img{border:4px solid #ffffff66 !important;}"]),po=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-5"})(["#customerly-container &{max-width:168px !important;flex-direction:column !important;justify-content:center !important;display:flex !important;}"]),mo=Object(_r.b)(lo).withConfig({componentId:"cly__sc-1352o0d-6"})(["#customerly-container &{margin-right:36px !important;}#customerly-container & img{margin-right:-24px !important;}"]),fo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-7"})(["#customerly-container &{font-size:18px !important;font-weight:500 !important;text-overflow:ellipsis !important;overflow:hidden !important;white-space:nowrap !important;}"]),go=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-8"})(["#customerly-container &{margin-top:-4px !important;text-overflow:ellipsis !important;overflow:hidden !important;white-space:nowrap !important;}"]),ho=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-9"})(["#customerly-container &{background:white !important;border-radius:8px 8px 0 0 !important;position:absolute !important;top:64px !important;bottom:0 !important;left:0 !important;right:0 !important;overflow:auto !important;box-shadow:0 4px 20px 0 #00000054 !important;transform:translateY(",") !important;margin-bottom:","px !important;}"],(function(t){return t.theme.widgetHeight}),(function(t){return t.textareaHeight+(t.brandedWidget?35:0)})),bo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-10"})(["#customerly-container &{height:100% !important;overflow:auto !important;}"]),Do=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-11"})(["#customerly-container &{height:100% !important;}"]),vo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-12"})(["#customerly-container & ","{margin-top:12px !important;margin-bottom:12px !important;border-left:1.1em solid "," !important;}"],Zr,(function(t){return t.theme.accentColor})),wo=_r.b.input.withConfig({componentId:"cly__sc-1352o0d-13"})(["#customerly-container &{display:none !important;}"]),yo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-14"})(["#customerly-container &{display:"," !important;position:absolute !important;top:0 !important;bottom:0 !important;left:0 !important;right:0 !important;background:white !important;opacity:0.9 !important;z-index:1 !important;}"],(function(t){return t.isDragging?"flex":"none"})),Co=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-15"})(["#customerly-container &{display:flex !important;position:absolute !important;top:0 !important;bottom:0 !important;left:0 !important;right:0 !important;opacity:0.9 !important;z-index:1 !important;align-items:center !important;flex-direction:column !important;justify-content:center !important;margin:16px !important;border-radius:8px !important;border:2px dashed "," !important;}#customerly-container & svg{animation:"," 0.82s cubic-bezier(0.36,0.07,0.19,0.97) both infinite !important;transform:translate3d(0,0,0) !important;backface-visibility:hidden !important;perspective:1000px !important;}#customerly-container & svg path{fill:"," !important;}#customerly-container & h4{margin-top:32px !important;color:"," !important;}"],(function(t){return t.theme.accentColor}),Ur,(function(t){return t.theme.accentColor}),(function(t){return t.theme.accentColor})),xo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-16"})(["#customerly-container &{font-size:12px !important;text-overflow:ellipsis !important;white-space:nowrap !important;color:#d8d8d8 !important;text-align:center !important;overflow:hidden !important;padding:10px !important;}"]),_o=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-17"})(["#customerly-container &{margin-left:"," !important;display:"," !important;text-align:"," !important;}"],(function(t){return t.isAccount?"8px":"0"}),(function(t){return t.isAccount?"flex":"block"}),(function(t){return t.isAccount?"left":"right"})),Eo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-18"})(["#customerly-container & img{width:35px !important;height:35px !important;}"]),ko=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-19"})(["#customerly-container &{display:inline-block !important;width:35px !important;height:35px !important;}"]),jo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-20"})(["#customerly-container &{position:absolute !important;bottom:0 !important;left:0 !important;right:0 !important;min-height:52px !important;box-shadow:0px -6px 20px 0px #0000000d !important;}#customerly-container & textarea{position:absolute !important;bottom:",'px !important;left:0 !important;color:#282828 !important;resize:none !important;outline-offset:-5px !important;border-width:initial !important;border-style:none !important;border-color:initial !important;border-image:initial !important;box-sizing:border-box !important;width:100% !important;height:100% !important;font-size:14px !important;font-weight:normal !important;line-height:26px !important;background-color:rgb(255,255,255) !important;white-space:pre-wrap !important;overflow-wrap:break-word !important;padding:0 80px 0 24px !important;font-family:"Helvetica Neue","Apple Color Emoji",Helvetica,Arial,sans-serif !important;font-style:normal !important;letter-spacing:normal !important;font-stretch:normal !important;text-align:left !important;text-align-last:initial !important;text-indent:0 !important;text-shadow:none !important;text-transform:none !important;background-image:none !important;min-width:0 !important;font-variant:normal !important;text-decoration:none !important;margin:0 !important;border-radius:0 !important;overflow:auto !important;outline:none !important;box-shadow:none !important;}#customerly-container & textarea:disabled{background:#e8e8e8 !important;}'],16),Oo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-21"})(["#customerly-container &{height:","px !important;background:"," !important;border-top:1px solid rgb(230,230,230) !important;}"],(function(t){return t.textareaHeight}),(function(t){return t.disabled?"#e8e8e8":"#fff"})),Fo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-22"})(["#customerly-container &{background:none !important;border:0 !important;cursor:pointer !important;padding:0 !important;position:absolute !important;right:8px !important;top:12px !important;display:flex !important;}"]),Ao=_r.b.button.withConfig({componentId:"cly__sc-1352o0d-23"})(["#customerly-container &{margin-right:8px !important;}#customerly-container & *{cursor:pointer !important;}#customerly-container &:focus{outline:none !important;}#customerly-container &:hover svg path{fill:"," !important;transition:fill 200ms ease-in-out !important;}#customerly-container & svg{width:30px !important;height:35px !important;}#customerly-container & svg path{fill:",";transition:fill 200ms ease-in-out !important;}"],(function(t){return t.theme.accentColor}),(function(t){return t.isActive?t.theme.accentColor:"#d8d8d8"})),Io=Object(_r.b)(Ao).withConfig({componentId:"cly__sc-1352o0d-24"})(["#customerly-container &{}"]),So=Object(_r.b)(Ao).withConfig({componentId:"cly__sc-1352o0d-25"})(["#customerly-container &{}"]),Bo=Object(_r.b)(Ao).withConfig({componentId:"cly__sc-1352o0d-26"})(["#customerly-container &{}"]),zo=Object(_r.b)(Ao).withConfig({componentId:"cly__sc-1352o0d-27"})(["#customerly-container &{}"]),Mo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-28"})(["#customerly-container &{position:absolute !important;right:0 !important;bottom:0 !important;left:0 !important;background-color:white !important;border-top:1px solid rgb(230,230,230) !important;max-height:60% !important;border-radius:8px 8px 0 0 !important;overflow:auto !important;}"]),Lo=_r.b.div.withConfig({componentId:"cly__sc-1352o0d-29"})(["#customerly-container &{bottom:100px !important;right:25px !important;position:fixed !important;display:flex !important;z-index:1000 !important;}"]),To=Object(_r.b)(Rr).withConfig({componentId:"cly__sc-1352o0d-30"})(["#customerly-container &{font-size:14px !important;color:"," !important;background:#f5f5f5 !important;box-shadow:0 3px 20px 0 #00000038 !important;border-radius:100% !important;padding:16px !important;position:relative !important;}#customerly-container &:hover:enabled{background:#e5e5e5 !important;}#customerly-container & *{fill:"," !important;}"],Or,Or),No=_r.b.span.withConfig({componentId:"cly__sc-1352o0d-31"})(["#customerly-container &{background:red !important;color:"," !important;border-radius:100% !important;width:8px !important;height:8px !important;position:absolute !important;top:0 !important;left:7px !important;line-height:10px !important;}"],Fr),Ho=Object(_r.b)(Mo).withConfig({componentId:"cly__sc-6vwa35-0"})(["#customerly-container &{margin-bottom:","px !important;z-index:10 !important;}"],(function(t){return t.textareaHeight})),Po=_r.b.div.withConfig({componentId:"cly__sc-6vwa35-1"})(["#customerly-container &{padding:16px !important;height:130px !important;overflow:auto !important;}"]),Ro=_r.b.div.withConfig({componentId:"cly__sc-6vwa35-2"})(["#customerly-container &{color:#b7b7b7 !important;font-size:12px !important;font-weight:600 !important;}"]),Wo=_r.b.span.withConfig({componentId:"cly__sc-6vwa35-3"})(['#customerly-container &{width:23px !important;line-height:1.07 !important;display:inline-table !important;text-align:justify !important;cursor:pointer !important;vertical-align:middle !important;font-size:23px !important;font-family:"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,sans-serif !important;padding:6px !important;transition:transform 100ms ease-out 60ms !important;}#customerly-container &:hover{transform:scale(1.5) !important;transition:transform 100ms ease-out 60ms !important;}']),qo=function(t){var e=Object(jr.d)().t,n=function(e){t.message?t.setMessage("".concat(t.message," ").concat(e)):t.onSend(e),t.setShowEmojiModal(!1)};return a.a.createElement(a.a.Fragment,null,a.a.createElement(xr,{condition:t.showEmojiModal},a.a.createElement(Ho,{textareaHeight:t.textareaHeight},a.a.createElement(Po,null,a.a.createElement(Ro,null,e("Widget.Messenger.Conversation.Compose.EmojiModal.frequentlyUsed")),a.a.createElement(gt,{items:["\ud83d\ude00","\ud83d\ude0e","\ud83d\ude0d","\ud83e\udd23","\ud83d\udc4d","\u2764\ufe0f","\ud83d\ude4f","\u270c\ufe0f","\ud83d\udc4c\ufe0f"]},(function(t,e){return a.a.createElement(Wo,{key:e,role:"img","aria-label":"",onClick:function(){n(t)}},t)})),a.a.createElement(Ro,null,e("Widget.Messenger.Conversation.Compose.EmojiModal.smileysPeople")),a.a.createElement(gt,{items:["\ud83d\ude00","\ud83d\ude03","\ud83d\ude06","\ud83d\ude05","\ud83d\ude02","\ud83e\udd23","\ud83d\ude0a","\ud83d\ude07","\ud83d\ude42","\ud83d\ude43","\ud83d\ude09","\ud83d\ude0c","\ud83d\ude0d","\ud83e\udd70","\ud83d\ude18","\ud83d\ude17","\ud83d\ude19","\ufe0f\ud83d\ude1a","\ud83d\ude0b","\ud83d\ude1b","\ud83d\ude1d","\ud83d\ude1c","\ud83e\udd2a","\ud83e\udd28","\ud83e\uddd0","\ud83e\udd13","\ud83d\ude0e","\ud83e\udd29","\ud83e\udd73","\ud83d\ude0f","\ud83d\ude12","\ud83d\ude1e","\ud83d\ude14","\ud83d\ude1f","\ud83d\ude15","\ud83d\ude41","\ud83d\ude23","\ud83d\ude16","\ud83d\ude2b","\ud83d\ude29","\ud83e\udd7a","\ud83d\ude22","\ud83d\ude2d","\ud83d\ude24","\ud83d\ude20","\ud83d\ude21","\ud83e\udd2c","\ud83e\udd2f","\ud83d\ude33","\ud83e\udd75","\ud83e\udd76","\ud83d\ude31","\ud83d\ude28","\ud83d\ude30","\ud83d\ude25","\ud83d\ude13","\ud83e\udd17","\ud83e\udd14","\ud83e\udd2d","\ud83e\udd2b","\ud83e\udd25","\ud83d\ude36","\ud83d\ude10","\ud83d\ude11","\ud83d\ude2c","\ud83d\ude44","\ud83d\ude2f","\ud83d\ude26","\ud83d\ude27","\ud83d\ude2e","\ud83d\ude32","\ud83d\ude34","\ud83e\udd24","\ud83d\ude2a","\ud83d\ude35","\ud83e\udd10","\ud83e\udd74","\ud83e\udd22","\ud83e\udd2e","\ud83e\udd27","\ud83d\ude37","\ud83e\udd12","\ud83e\udd15","\ud83e\udd11","\ud83e\udd20","\ud83d\ude08","\ud83d\udc7f","\ud83d\udc79","\ud83d\udc7a","\ud83e\udd21","\ud83d\udca9","\ud83d\udc7b","\ud83d\udc80","\u2620\ufe0f","\ud83d\udc7d","\ud83d\udc7e","\ud83e\udd16","\ud83c\udf83","\ud83d\ude3a","\ud83d\ude38","\ud83d\ude39","\ud83d\ude3b","\ud83d\ude3c","\ud83d\ude3d","\ud83d\ude40","\ud83d\ude3f","\ud83d\ude4c","\ud83d\udc4f","\ud83e\udd1d","\ud83d\udc4e","\ud83d\udc4a","\u270a","\ud83e\udd1c","\ud83e\udd1b","\ud83e\udd1e\ufe0f","\u270c\ufe0f","\ud83e\udd18","\ud83d\udc4c","\ud83d\udc48","\ud83d\udc49","\ud83d\udc46","\u261d\ufe0f","\u270b","\ud83d\udcaa","\ud83d\ude4f","\u270d\ufe0f","\ud83d\udc8b","\ud83d\udc44","\ud83e\uddb7","\ud83d\udc45","\ud83d\udc42","\ud83d\udc63","\ud83d\udc41","\ud83d\udc40","\ud83e\udde0","\ud83d\udde3","\ud83d\udc64","\ud83d\udc65","\ud83d\udc76","\ud83d\udc67","\ud83d\udc72"]},(function(t,e){return a.a.createElement(Wo,{key:e,role:"img","aria-label":"",onClick:function(){n(t)}},t)}))))))},Uo=Object(_r.b)(Mo).withConfig({componentId:"cly__sc-1a0v7e6-0"})(["#customerly-container &{z-index:"," !important;bottom:0 !important;height:60% !important;box-shadow:0px -10px 20px 0px #00000014 !important;margin-bottom:","px !important;}#customerly-container & *{z-index:11 !important;}"],10,(function(t){return t.textareaHeight})),Vo=_r.b.div.withConfig({componentId:"cly__sc-1a0v7e6-1"})(["#customerly-container &{position:relative !important;}"]),Xo=_r.b.div.withConfig({componentId:"cly__sc-1a0v7e6-2"})(["#customerly-container &{height:50px !important;border-bottom:1px solid #cecece !important;position:absolute !important;top:0 !important;left:0 !important;right:0 !important;z-index:",' !important;}#customerly-container & svg{position:absolute !important;top:13px !important;left:16px !important;}#customerly-container & svg path{fill:#c2c2c2 !important;}#customerly-container & input{font-size:14px !important;width:calc(100% - 48px) !important;border:0 !important;padding:16px 0 16px 48px !important;}#customerly-container & input[type="text"]:focus{box-shadow:none !important;border:none !important;}'],11),Zo=_r.b.div.withConfig({componentId:"cly__sc-1a0v7e6-3"})(["#customerly-container &{position:relative !important;top:51px !important;overflow:auto !important;bottom:0 !important;left:0 !important;right:0 !important;}"]),Go=_r.b.div.withConfig({componentId:"cly__sc-1a0v7e6-4"})(["#customerly-container &{padding:16px !important;overflow:auto !important;display:flex !important;flex-direction:row !important;flex-wrap:wrap !important;}"]),Yo=_r.b.span.withConfig({componentId:"cly__sc-1a0v7e6-5"})(["#customerly-container &{cursor:pointer !important;}"]),Qo=_r.b.div.withConfig({componentId:"cly__sc-1a0v7e6-6"})(["#customerly-container &{width:160px !important;height:100px !important;background-size:cover !important;margin:2px !important;border-radius:4px !important;cursor:pointer !important;background:"," center !important;}"],(function(t){return"url('".concat(t.imageUrl,"')")})),Ko=Object(c.b)((function(t){return{widget:t.widget}}))((function(t){var e=Object(r.useState)(!1),n=Object(dt.a)(e,2),i=n[0],o=n[1],c=Object(r.useState)(""),s=Object(dt.a)(c,2),u=s[0],l=s[1],p=Object(r.useState)(""),f=Object(dt.a)(p,2),g=f[0],h=f[1],b=Object(jr.d)().t,D=function(){var t=Object(d.a)(m.a.mark((function t(e){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventDefault(),u!==g){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,v();case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),v=function(){var e=Object(d.a)(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(!0),h(u),e.next=4,t.dispatch(pn.getAll(u));case 4:o(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(r.useEffect)((function(){t.showGIFModal&&v()}),[t.showGIFModal]),a.a.createElement(a.a.Fragment,null,a.a.createElement(xr,{condition:t.showGIFModal},a.a.createElement(Uo,{textareaHeight:t.textareaHeight},a.a.createElement(Vo,null,a.a.createElement(Xo,null,a.a.createElement("form",{onSubmit:D},a.a.createElement("input",{type:"text",placeholder:b("Widget.Messenger.Conversation.Compose.GIFModal.search"),onSubmit:D,onChange:function(t){return l(t.target.value)}}),a.a.createElement(kr,{type:Qn.Search,fill:"#282828",size:22}))),a.a.createElement(Zo,null,a.a.createElement(Go,null,a.a.createElement(_a,{isLoading:i},a.a.createElement(gt,{items:t.widget.cards.compose.gifs},(function(e,n){return a.a.createElement("span",{key:n,onClick:function(){!function(e){t.onSend('')),t.setShowGIFModal(!1)}(e.imageUrl)}},a.a.createElement(Yo,null,a.a.createElement(Qo,{imageUrl:e.imageUrl})))})))))))))})),Jo=n(90),$o=function(t){var e=Object(jr.d)().t,n=new Date(1e3*t.date),r=["january","february","march","april","may","june","july","august","september","october","november","december"][n.getMonth()],i=n.getUTCDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),c=n.getMinutes().toString().padStart(2,"0");return a.a.createElement(a.a.Fragment,null,"".concat(i," ").concat(e("DateTime.".concat(r))," ").concat(n.getFullYear()," ").concat(o,":").concat(c))};!function(t){t.Youtube="youtube",t.Vimeo="vimeo"}(Si||(Si={}));var tc,ec=function(t){var e,n,r=t.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/);if(r&&r.length>5){var a=r[3].indexOf("youtu")>-1,i=r[3].indexOf("vimeo")>-1;if(n=r[6],a)e=Si.Youtube;else{if(!i)return;e=Si.Vimeo}return{provider:e,identifier:n}}},nc=function(t){var e=ec(t);return e&&e.provider===Si.Vimeo?e.identifier:void 0},rc=function(t){var e=ec(t);return e&&e.provider===Si.Youtube?e.identifier:void 0},ac=function(t){var e=/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDF])\u200D[\u2640\u2642])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#*0-9]\uFE0F\u20E3|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g.exec(t);return!!e&&e.length>0},ic=n(82),oc=n.n(ic),cc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-0"})(["#customerly-container &{overflow-wrap:break-word !important;position:relative !important;display:inline-block !important;width:auto !important;margin:2px 16px !important;color:"," !important;}"],(function(t){return t.isAccount?"#282828":t.theme.contrastColor})),sc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-1"})(["#customerly-container &{font-size:70px !important;background:none !important;padding:0 !important;line-height:84px !important;}"]),uc=_r.b.span.withConfig({componentId:"cly__sc-1dz9719-2"})(["#customerly-container &{color:#757575 !important;font-size:12px !important;}"]),lc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-3"})(["#customerly-container &{text-align:center !important;background:#f5f5f5 !important;padding:0 !important;border-radius:8px !important;width:80px !important;display:flex !important;align-items:center;justify-content:center;}"]),pc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-4"})(["#customerly-container &{height:auto !important;display:block !important;padding:0 !important;border-radius:8px !important;width:","px !important;border:0 !important;background:transparent !important;}#customerly-container & p{margin:0 !important;}#customerly-container & img{width:100% !important;border-radius:8px !important;cursor:pointer !important;}"],224),mc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-5"})(["#customerly-container &{padding:0 !important;margin-top:4px !important;border-radius:8px !important;background:transparent !important;max-width:","px !important;}#customerly-container & iframe{border-radius:8px !important;border:none !important;background:#282828 !important;}"],224),dc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-6"})(["#customerly-container &{padding:8px 0 !important;}#customerly-container & svg{margin:0 auto !important;}"]),fc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-7"})(["#customerly-container &{padding:8px 16px !important;color:gray !important;}"]),gc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-8"})(["#customerly-container &{padding:8px 16px !important;background-color:#0000000a !important;border-radius:0 0 5px 5px !important;-webkit-transition:background-color 100ms linear !important;-ms-transition:background-color 100ms linear !important;transition:background-color 100ms linear !important;}"]),hc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-9"})(["#customerly-container &{cursor:pointer !important;text-align:center !important;padding:0 !important;background:white !important;border-radius:8px !important;border:2px solid rgba(0,0,0,0.15) !important;transition:border-color 100ms linear !important;}#customerly-container &:hover{border:2px solid "," !important;}#customerly-container &:hover ","{cursor:pointer !important;transform:rotateY(360deg) !important;transition:rotateY 0.5s ease-in-out !important;}#customerly-container &:hover ","{cursor:pointer !important;-webkit-transition:background-color 100ms linear !important;-ms-transition:background-color 100ms linear !important;transition:background-color 100ms linear !important;background-color:"," !important;color:"," !important;}#customerly-container & *{cursor:pointer !important;}"],(function(t){return t.theme.accentColor}),dc,gc,(function(t){return t.theme.accentColor}),(function(t){return t.theme.contrastColor})),bc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-10"})(["#customerly-container &{position:relative !important;background:"," !important;color:"," !important;padding:"," !important;border-radius:8px !important;word-break:break-word !important;overflow-wrap:break-word !important;max-width:","px !important;text-align:left !important;display:inline-block !important;}#customerly-container & *{word-break:break-word !important;overflow-wrap:break-word !important;}#customerly-container & a:-webkit-any-link{text-decoration:underline !important;color:"," !important;}#customerly-container & a:hover{text-decoration:none !important;}#customerly-container & p{margin:0 !important;}#customerly-container & img{width:","px !important;margin:0 -16px !important;cursor:pointer !important;}"],(function(t){return t.isAccount?"#f5f5f5":t.theme.accentColor}),(function(t){return t.isAccount?"#282828":t.theme.contrastColor}),io,ao,(function(t){return t.isAccount?t.theme.accentColor:t.theme.contrastColor}),ao),Dc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-11"})(["#customerly-container &{position:relative !important;background:"," !important;color:"," !important;padding:8px 16px !important;border-radius:8px !important;overflow-wrap:break-word !important;width:","px !important;text-align:left !important;display:inline-block !important;}#customerly-container & a:-webkit-any-link{color:"," !important;}#customerly-container & p{margin:0 !important;}#customerly-container & img{width:","px !important;margin:0 -16px !important;}"],"#f5f5f5",(function(t){return t.theme.contrastColor}),ao,(function(t){return t.isAccount?"#282828":t.theme.contrastColor}),ao),vc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-12"})(["#customerly-container &{overflow-wrap:break-word !important;display:inline-block !important;color:#282828 !important;background:#f5f5f5 !important;position:relative !important;padding:8px 16px !important;border-radius:8px !important;width:","px !important;text-align:left !important;}#customerly-container & ","{background:whitesmoke !important;box-shadow:none !important;margin-bottom:0 !important;padding:0 !important;}#customerly-container & "," ","{width:100% !important;}#customerly-container & ","{display:none !important;}#customerly-container & ","{border-left:1.1em solid "," !important;}"],ao,aa,aa,ba,pa,Zr,(function(t){return t.theme.accentColor})),wc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-13"})(["#customerly-container &{cursor:pointer !important;}#customerly-container & *{cursor:pointer !important;}#customerly-container &:hover{background:#f7f7f7 !important;}"]),yc=Object(_r.b)(Nr).withConfig({componentId:"cly__sc-1dz9719-14"})(["#customerly-container &{max-width:","px !important;margin-top:","px;}"],ao,(function(t){return t.isEmpty?0:4})),Cc=_r.b.li.withConfig({componentId:"cly__sc-1dz9719-15"})(["#customerly-container &{margin:0 auto 4px !important;}#customerly-container &:last-child{margin-bottom:0 !important;}"]),xc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-16"})(["#customerly-container &{text-align:left !important;padding:0 16px !important;width:100% !important;overflow:hidden !important;}"]),_c=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-17"})(["#customerly-container &{background:#0000001c !important;border-radius:8px 0 0 8px !important;height:100% !important;width:40px !important;min-width:40px !important;max-width:40px !important;display:flex !important;align-items:center !important;justify-content:center !important;}#customerly-container & svg path{fill:"," !important;}"],(function(t){return t.isAccount?"white":t.theme.contrastColor})),Ec=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-18"})(["#customerly-container &{color:"," !important;font-size:14px !important;overflow-wrap:break-word !important;white-space:nowrap !important;text-overflow:ellipsis !important;overflow:hidden !important;}"],(function(t){return t.isAccount?"#282828":t.theme.contrastColor})),kc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-19"})(["#customerly-container &{font-size:10px !important;color:",";}"],(function(t){return zr(t.isAccount?"#282828":t.theme.contrastColor,50)})),jc=_r.b.div.withConfig({componentId:"cly__sc-1dz9719-20"})(["#customerly-container &{transition:background 40ms ease-in-out !important;cursor:pointer !important;display:flex !important;background:"," center !important;height:60px !important;width:100% !important;border-radius:8px !important;font-size:16px !important;align-items:center !important;border:0 !important;justify-content:left !important;padding:0 !important;text-decoration:none !important;}#customerly-container & *{cursor:pointer !important;}#customerly-container &:hover{background:"," radial-gradient( circle,transparent 1%,"," 1% ) center/15000% !important;transition:background 500ms ease-in-out !important;}#customerly-container &:hover "," svg{transform:rotateY(360deg) !important;transition:all 0.5s ease-in-out !important;}#customerly-container &:active{background-color:"," !important;background-size:100% !important;transition:background 0s !important;}"],(function(t){return t.isAccount?"#f5f5f5":t.theme.accentColor}),(function(t){return Mr(t.isAccount?"#f5f5f5":t.theme.accentColor,20)}),(function(t){return Mr(t.isAccount?"#f5f5f5":t.theme.accentColor,20)}),_c,(function(t){return zr(t.isAccount?"#f5f5f5":t.theme.accentColor,20)})),Oc=function(t){return a.a.createElement(sc,{isAccount:t.isAccount},t.message)},Fc=function(t){var e;return e=t.size<1024?"".concat(t.size," B"):t.size<1048576?"".concat((t.size/1024).toFixed(1)," KB"):t.size<1073741824?"".concat((t.size/1048576).toFixed(2)," MB"):"".concat((t.size/1073741824).toFixed(3)," GB"),a.a.createElement(a.a.Fragment,null,e)},Ac=Object(c.b)((function(t){return{}}))((function(t){var e=Object(r.useRef)(null),n=function(){var e=Object(d.a)(m.a.mark((function e(n){var r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=n.target)){e.next=4;break}return e.next=4,t.dispatch(Cr.open({src:r.src,type:U.Image}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(r.useEffect)((function(){if(e.current){var t=e.current.querySelectorAll("img");return t.forEach((function(t){t.addEventListener("click",n)})),function(){t.forEach((function(t){t.removeEventListener("click",n)}))}}}),[e]),a.a.createElement(a.a.Fragment,null,""!==t.html&&a.a.createElement(bc,{isAccount:t.isAccount},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:t.html},ref:e})),t.attachments&&t.attachments.length>0&&a.a.createElement(yc,{isEmpty:""===t.html,isAccount:t.isAccount},a.a.createElement(gt,{items:t.attachments||[]},(function(e,n){return a.a.createElement(Cc,{key:n},a.a.createElement(jc,{isAccount:t.isAccount,onClick:function(){return window.open(e.path)}},a.a.createElement(_c,{isAccount:t.isAccount},a.a.createElement(kr,{type:Qn.Download,fill:"#fff",size:24})),a.a.createElement(xc,null,a.a.createElement(Ec,{isAccount:t.isAccount},e.name),a.a.createElement(kc,{isAccount:t.isAccount}," ",a.a.createElement(Fc,{size:e.size})))))}))))})),Ic=function(t){return a.a.createElement(a.a.Fragment,null,a.a.createElement(Ac,{isAccount:t.isAccount,html:t.html}),a.a.createElement(mc,{isAccount:t.isAccount},a.a.createElement("iframe",{src:"https://player.vimeo.com/video/".concat(t.videoIdentifier),title:"cly-vimeo-player",width:"100%",height:"138",allowFullScreen:!0})))},Sc=function(t){return a.a.createElement(a.a.Fragment,null,a.a.createElement(Ac,{isAccount:t.isAccount,html:t.html}),a.a.createElement(mc,{isAccount:t.isAccount},a.a.createElement("iframe",{src:"https://www.youtube.com/embed/".concat(t.videoIdentifier),title:"cly-youtube-player",width:"100%",height:"140",frameBorder:"0",allowFullScreen:!0,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"})))},Bc=function(t){var e=Object(jr.d)().t;return a.a.createElement(hc,{isAccount:t.isAccount,onClick:function(){return t.onOpenEmail(t.url)}},a.a.createElement(dc,null,a.a.createElement(kr,{type:Qn.Email,fill:"#000",size:100})),a.a.createElement(fc,null,e("Widget.Messenger.Conversation.Compose.Bubble.EmailBubble.sentViaEmail")),a.a.createElement(gc,null,e("Widget.Messenger.Conversation.Compose.Bubble.EmailBubble.openEmail")))},zc=Object(c.b)((function(t){return{widget:t.widget}}))((function(t){var e=Object(jr.d)().t;return a.a.createElement(a.a.Fragment,null,a.a.createElement(bc,{isAccount:!0},e("Widget.Messenger.Conversation.Compose.Bubble.KnowledgeBaseAutoSearchStaticBubble.foundArticles")))})),Mc=Object(c.b)((function(t){return{ping:t.ping}}))((function(t){return a.a.createElement(a.a.Fragment,null,a.a.createElement(xr,{condition:t.ping.app_config.widget_knowledge_base_enabled&&!!t.ping.knowledge.url},a.a.createElement(vc,null,a.a.createElement(Ea,{setSelectedArticle:t.onSelectedArticle,setShowModal:t.onShowModal}))))})),Lc=Object(c.b)((function(t){return{}}))((function(t){var e=Object(r.useRef)(null),n=function(){var e=Object(d.a)(m.a.mark((function e(n){var r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=n.target)){e.next=4;break}return e.next=4,t.dispatch(Cr.open({src:r.src,type:U.Image}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(r.useEffect)((function(){if(e.current){var t=e.current.querySelectorAll("img");return t.forEach((function(t){t.addEventListener("click",n)})),function(){t.forEach((function(t){t.removeEventListener("click",n)}))}}}),[e]),a.a.createElement(pc,{isAccount:t.isAccount,dangerouslySetInnerHTML:{__html:t.html},ref:e})})),Tc="#dadada",Nc=_r.b.div.withConfig({componentId:"cly__sc-1x7fvu0-0"})(["#customerly-container &{padding:8px 0 !important;color:gray !important;}#customerly-container & a{color:"," !important;}"],(function(t){return t.theme.accentColor})),Hc=_r.b.div.withConfig({componentId:"cly__sc-1x7fvu0-1"})(["#customerly-container &{display:flex !important;}"]),Pc=Object(_r.b)(Rr).withConfig({componentId:"cly__sc-1x7fvu0-2"})(["#customerly-container &{display:block !important;cursor:pointer !important;border:0 !important;z-index:0 !important;width:","px !important;margin-right:","px !important;height:40px !important;border-radius:8px !important;background-color:"," !important;-webkit-tap-highlight-color:rgba(0,0,0,0) !important;user-select:none !important;transition:background-color 40ms ease-in-out !important;}#customerly-container & svg{margin:0 auto !important;}#customerly-container &:last-child{margin-right:0 !important;}#customerly-container &:hover:enabled{background-color:"," !important;}#customerly-container &:active:enabled{background-color:"," !important;}#customerly-container &:disabled{box-shadow:initial !important;cursor:initial !important;background:"," center !important;}#customerly-container & ","{margin:0 auto !important;width:4em !important;height:4em !important;}"],86,10,(function(t){return t.isTrue?t.theme.accentColor:Tc}),(function(t){return t.isTrue?Mr(t.theme.accentColor,20):Mr(Tc,20)}),(function(t){return t.isTrue?zr(t.theme.accentColor,20):zr(Tc,20)}),(function(t){return t.isTrue?zr(t.theme.accentColor,20):zr(Tc,20)}),Zr),Rc=Object(c.b)((function(t){return{ping:t.ping,widget:t.widget}}))((function(t){var e=Object(r.useContext)(pi),n=Object(r.useState)(""),i=Object(dt.a)(n,2),o=i[0],c=i[1],s=Object(r.useState)(!1),u=Object(dt.a)(s,2),l=u[0],p=u[1],f=Object(r.useState)(!1),g=Object(dt.a)(f,2),h=g[0],b=g[1],D=Object(r.useState)(!1),v=Object(dt.a)(D,2),w=v[0],y=v[1],C=function(){var t=Object(d.a)(m.a.mark((function t(e){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),t.next=3,_(o);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),x=function(){var t=Object(d.a)(m.a.mark((function t(e,n){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),t.next=3,_(n);case 3:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),_=function(){var n=Object(d.a)(m.a.mark((function n(r){var a;return m.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(""!==r){n.next=2;break}return n.abrupt("return");case 2:if(a=void 0,void 0!==t.conversation&&(a=t.conversation.conversation_id),null!=t.profiling.callback){n.next=17;break}return b(!0),n.next=8,t.dispatch(Xe.send({attribute:t.profiling.attribute,value:r,conversationId:a}));case 8:return n.next=10,E(r);case 10:return e.attribute(t.ping.user.crmhero_user_id,t.profiling.attribute,r),b(!1),y(!0),n.next=15,t.dispatch(un.profilingFormTrigger());case 15:n.next=24;break;case 17:return b(!0),n.next=20,t.profiling.callback(e,r,t.html,t.attachments);case 20:return n.next=22,E(r);case 22:b(!1),y(!0);case 24:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),E=function(){var e=Object(d.a)(m.a.mark((function e(n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.dispatch(vn.call({function:t.widget.callbacks.onProfilingQuestionAnswered,arguments:[t.profiling,n]}));case 2:if("email"!==t.profiling.attribute){e.next=5;break}return e.next=5,t.dispatch(vn.call({function:t.widget.callbacks.onLeadGenerated,arguments:[n]}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=Object(d.a)(m.a.mark((function e(n){var r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.target.value,c(r),null==t.profiling.validator?p(!0):p(t.profiling.validator(r));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(r.useEffect)((function(){t.dispatch(vn.call({function:t.widget.callbacks.onProfilingQuestionAsked,arguments:[t.profiling]}))}),[]),a.a.createElement(a.a.Fragment,null,a.a.createElement(Dc,{isAccount:!0},a.a.createElement(ia,null,a.a.createElement(oa,null,t.profiling.description)),a.a.createElement(xr,{condition:t.profiling.cast===re.String||t.profiling.cast===re.Date||t.profiling.cast===re.Number||t.profiling.cast===re.Option},a.a.createElement(ma,{onSubmit:C},a.a.createElement(da,{type:"text",value:o,placeholder:t.profiling.hint,disabled:w||h,onSubmit:C,onChange:k}),a.a.createElement(fa,{onClick:C,value:"Go",disabled:!l||h||w},a.a.createElement(_a,{isLoading:h},a.a.createElement(kr,{type:Qn.ArrowRight,fill:"#ffffff",size:18})))),void 0!==t.profiling.extra&&a.a.createElement(Nc,{dangerouslySetInnerHTML:{__html:t.profiling.extra}})),a.a.createElement(xr,{condition:t.profiling.cast===re.Boolean},a.a.createElement(ma,null,a.a.createElement(Hc,null,a.a.createElement(Pc,{isTrue:!0,onClick:function(t){x(t,"true")},disabled:h||w},a.a.createElement(_a,{isLoading:h},a.a.createElement(kr,{type:Qn.True,fill:"#ffffff",size:18}))),a.a.createElement(Pc,{isTrue:!1,onClick:function(t){x(t,"false")},disabled:h||w},a.a.createElement(_a,{isLoading:h},a.a.createElement(kr,{type:Qn.False,fill:"#ffffff",size:18}))))),a.a.createElement(xr,{condition:!!t.profiling.extra},a.a.createElement(Nc,null,t.profiling.extra)))))})),Wc=Object(c.b)((function(t){return{ping:t.ping}}))((function(t){var e=Object(jr.d)().t,n=Gn(t.officeHoursNext,t.replyTime);return a.a.createElement(a.a.Fragment,null,a.a.createElement(bc,{isAccount:!0},a.a.createElement(xr,{condition:n===Vn.ReplyInMinutes},e("Widget.Messenger.Conversation.Compose.Bubble.OfficeHourBubble.replyInMinutes")),a.a.createElement(xr,{condition:n===Vn.ReplyInAnHour},e("Widget.Messenger.Conversation.Compose.Bubble.OfficeHourBubble.replyInAnHour")),a.a.createElement(xr,{condition:n===Vn.ReplyInADay},e("Widget.Messenger.Conversation.Compose.Bubble.OfficeHourBubble.replyInADay")),a.a.createElement(xr,{condition:n===Vn.DuringWeekends},e("Widget.Messenger.Conversation.Compose.Bubble.OfficeHourBubble.duringWeekends",{from:t.officeHoursNext&&R(P(t.officeHoursNext.start_utc)),to:t.officeHoursNext&&R(P(t.officeHoursNext.end_utc))})),a.a.createElement(xr,{condition:n===Vn.DuringWeekdays},e("Widget.Messenger.Conversation.Compose.Bubble.OfficeHourBubble.duringWeekdays",{from:t.officeHoursNext&&R(P(t.officeHoursNext.start_utc)),to:t.officeHoursNext&&R(P(t.officeHoursNext.end_utc))})),a.a.createElement(xr,{condition:n===Vn.WillBackToday},e("Widget.Messenger.Conversation.Compose.Bubble.OfficeHourBubble.willBackToday",{from:t.officeHoursNext&&R(P(t.officeHoursNext.start_utc))})),a.a.createElement(xr,{condition:n===Vn.WillBackTomorrow},e("Widget.Messenger.Conversation.Compose.Bubble.OfficeHourBubble.willBackTomorrow",{from:t.officeHoursNext&&R(P(t.officeHoursNext.start_utc))})),a.a.createElement(xr,{condition:n===Vn.WillBackOn},e("Widget.Messenger.Conversation.Compose.Bubble.OfficeHourBubble.willBackOn",{day:e("Widget.Messenger.Conversation.Compose.Bubble.OfficeHourBubble.day".concat(t.officeHoursNext&&P(t.officeHoursNext.start_utc).getDay())),from:t.officeHoursNext&&R(P(t.officeHoursNext.start_utc))}))))})),qc=Object(c.b)((function(t){return{widget:t.widget}}))((function(t){var e=t.article,n=function(){var e=Object(d.a)(m.a.mark((function e(n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.onSelectedArticle(n),t.onShowModal(!0),e.next=4,t.dispatch(vn.call({function:t.widget.callbacks.onHelpCenterArticleOpened,arguments:[n]}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return a.a.createElement(a.a.Fragment,null,a.a.createElement(bc,{isAccount:!0},a.a.createElement(wc,{onClick:function(){return n(e)},key:e.knowledge_base_article_id},a.a.createElement(ya,null,e.title),a.a.createElement(Ca,null,e.description))))})),Uc=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=-1===t.message.type,n=-4===t.message.type,r=-5===t.message.type,i=-2===t.message.type,o=-3===t.message.type,c=Rt(t.message),s=!!t.message.rich_mail_link,u=!s&&!e&&!i,l="\ud83d\uddbc Image"===t.message.abstract,p=function(t){return void 0!==nc(t)}(t.message.abstract),m=function(t){return void 0!==rc(t)}(t.message.abstract),d=function(t){if(0===t.length)return!1;var e=(new oc.a).splitGraphemes(t);if(e.length>2)return!1;var n,r=Object(bt.a)(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(!ac(a))return!1}}catch(i){r.e(i)}finally{r.f()}return!0}(t.message.abstract),f=!l&&!d&&!m&&!p;return a.a.createElement(cc,{isAccount:c},f&&u&&a.a.createElement(Ac,{isAccount:c,html:t.message.content,attachments:t.message.attachments}),f&&s&&a.a.createElement(Bc,{isAccount:c,onOpenEmail:t.onOpenEmail,url:t.message.rich_mail_link}),f&&e&&a.a.createElement(Mc,{isAccount:c,onShowModal:t.onShowModal,onSelectedArticle:t.onSelectedArticle}),f&&n&&a.a.createElement(zc,{isAccount:c}),f&&r&&t.message.article&&a.a.createElement(qc,{isAccount:c,article:t.message.article,onShowModal:t.onShowModal,onSelectedArticle:t.onSelectedArticle}),!f&&d&&a.a.createElement(Oc,{isAccount:c,message:t.message.abstract}),!f&&l&&a.a.createElement(Lc,{isAccount:c,html:t.message.content}),!f&&p&&a.a.createElement(Ic,{isAccount:c,videoIdentifier:nc(t.message.abstract),html:t.message.content}),!f&&m&&a.a.createElement(Sc,{isAccount:c,videoIdentifier:rc(t.message.abstract),html:t.message.content}),f&&i&&void 0!==t.message.profiling&&a.a.createElement(Rc,{profiling:t.message.profiling,conversation:t.conversation,html:t.message.content,attachments:t.message.attachments}),f&&o&&a.a.createElement(Wc,{replyTime:t.ping.app_config.reply_time,officeHoursNext:t.ping.app_config.office_hours_next,officeHours:t.ping.app_config.office_hours}))})),Vc=n(93),Xc=_r.b.div.withConfig({componentId:"cly__sc-1vl0vk8-0"})(["#customerly-container &{height:calc(100% - 20px) !important;padding:10px !important;overflow:auto !important;position:relative !important;}"]),Zc=0,Gc=function(t){var e=t.children,n=t.changeScroll,i=t.triggerScroll,o=t.onScroll,c=Object(Vc.a)(t,["children","changeScroll","triggerScroll","onScroll"]),s=Object(r.useRef)(null),u=Object(r.useState)(!0),l=Object(dt.a)(u,2),p=l[0],m=l[1],d=Object(r.useState)(!1),f=Object(dt.a)(d,2),g=f[0],h=f[1],b=function(){null!==s.current&&(Zc=s.current.scrollHeight,s.current.scrollTop=Zc,h(!1))};return Object(r.useEffect)((function(){p||null!==s.current&&s.current.scrollHeight!==Zc&&h(!0)}),[n]),Object(r.useEffect)((function(){p&&null!==s.current&&s.current.scrollHeight!==Zc&&b()}),[e]),Object(r.useEffect)((function(){p||null!==s.current&&s.current.scrollHeight!==Zc&&b()}),[i]),a.a.createElement(a.a.Fragment,null,a.a.createElement(Xc,Object.assign({onScroll:function(t){t.target.scrollHeight-t.target.scrollTop===t.target.clientHeight?(m(!0),h(!1)):m(!1),o(t)}},c,{ref:s}),e(b,g)))},Yc=n(88),Qc=_r.b.div.withConfig({componentId:"cly__zpmwlf-0"})(["#customerly-container &{position:absolute !important;top:0 !important;display:block !important;width:100% !important;}"]),Kc=Object(_r.b)($r).withConfig({componentId:"cly__zpmwlf-1"})(["#customerly-container &{margin:0 16px !important;background:#ff1e1e !important;padding:8px !important;border-radius:18px !important;color:#ffffff !important;text-align:center !important;box-shadow:0 8px 14px #00000033 !important;font-weight:600 !important;}"]),Jc=function(t){var e=void 0!==t.visibleFor?t.visibleFor:3e3;return Object(r.useEffect)((function(){t.showAlert&&setTimeout((function(){return t.setShowAlert(!1)}),e)}),[t.showAlert]),a.a.createElement(ft.a,{in:t.showAlert,timeout:0,classNames:Qr,appear:!0,unmountOnExit:!0},a.a.createElement(Qc,null,a.a.createElement(Kc,null,t.children)))},$c=Object(c.b)((function(t){return{ping:t.ping,widget:t.widget}}))((function(t){var e=Object(jr.d)().t;return a.a.createElement(a.a.Fragment,null,a.a.createElement(Ya,{accountId:t.accountId,size:35}),a.a.createElement(cc,{isAccount:!0},a.a.createElement(lc,null,a.a.createElement(kr,{type:Qn.Typing,fill:t.widget.accentColor,size:45})),a.a.createElement(uc,null,e("Widget.Messenger.Conversation.Compose.body.isTyping",{account:t.name}))))})),ts=_r.b.div.withConfig({componentId:"cly__sc-11r57s8-0"})(["#customerly-container &{width:100% !important;height:25px !important;bottom:0 !important;padding-top:8px !important;padding-bottom:8px !important;position:absolute !important;display:flex !important;align-items:flex-end !important;justify-content:center !important;background-image:linear-gradient( 0deg,white 85%,rgba(255,255,255,0) 95% ) !important;margin-bottom:","px !important;}"],(function(t){return t.textareaHeight})),es=_r.b.div.withConfig({componentId:"cly__sc-11r57s8-1"})(["#customerly-container &{display:flex !important;align-items:flex-end !important;justify-content:center !important;margin:0 !important;opacity:0.7 !important;transition:opacity 80ms ease-in-out !important;}#customerly-container &:hover{opacity:1 !important;transition:opacity 80ms ease-in-out !important;}"]),ns=_r.b.a.withConfig({componentId:"cly__sc-11r57s8-2"})(["#customerly-container &{margin:0 4px 0 4px !important;color:"," !important;}#customerly-container &:hover{text-decoration:underline !important;}"],(function(t){return t.color})),rs=_r.b.p.withConfig({componentId:"cly__sc-11r57s8-3"})(["#customerly-container &{display:flex !important;font-size:12px !important;border-radius:16px !important;text-decoration:none !important;margin-left:4px !important;color:#a9a9a9 !important;cursor:default !important;}"]),as=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e="".concat(rt,"/add-live-chat/?utm_medium=widget&utm_source=customerly&utm_campaign=powered-by-livechat&utm_content=").concat(t.ping.app.app_id,"&partner=").concat(y(w()));return a.a.createElement(ts,{textareaHeight:t.textareaHeight},a.a.createElement(es,null,a.a.createElement(kr,{type:Qn.Customerly,fill:"#a9a9a9",size:20}),a.a.createElement(rs,null,a.a.createElement(jr.b,{i18nKey:"Widget.Messenger.Conversation.Compose.Watermark.watermark"},"Add free",a.a.createElement(ns,{href:e,color:t.widget.accentColor,target:"_blank",rel:"noopener dofollow"},"live chat"),"to your website"))))})),is=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=Object(r.useContext)(pi),n=Object(jr.d)().t,i=[],o=Object(r.useState)(!1),s=Object(dt.a)(o,2),u=s[0],l=s[1],p=Object(r.useState)(!1),f=Object(dt.a)(p,2),g=f[0],h=f[1],b=Object(r.useState)(""),D=Object(dt.a)(b,2),v=D[0],w=D[1],y=Object(r.useState)(!1),C=Object(dt.a)(y,2),x=C[0],_=C[1],E=Object(r.useState)(!1),k=Object(dt.a)(E,2),j=k[0],F=k[1],A=Object(r.useState)(!1),I=Object(dt.a)(A,2),S=I[0],B=I[1],M=Object(r.useState)(!1),L=Object(dt.a)(M,2),H=L[0],P=L[1],R=Object(r.useState)(void 0!==t.widget.cards.conversation.selected),W=Object(dt.a)(R,2),q=W[0],U=W[1],V=Object(r.useState)(!0),X=Object(dt.a)(V,2),Z=X[0],G=X[1],Y=Object(r.useState)(t.widget.cards.compose.defaultMessage),Q=Object(dt.a)(Y,2),K=Q[0],J=Q[1],$=Object(r.useState)(void 0),tt=Object(dt.a)($,2),et=tt[0],nt=tt[1],rt=Object(r.useRef)(),at=ro(K,1500),it=Object(r.useRef)(0),ot=Object(r.useRef)(0),ct=Object(r.useRef)(),st=Object(r.useRef)(0),ut=Object(r.useState)(60),lt=Object(dt.a)(ut,2),pt=lt[0],mt=lt[1],ft=Object(c.c)(Ha),bt=Object(r.createRef)(),Dt=Object(r.useState)(),vt=Object(dt.a)(Dt,2),wt=vt[0],yt=vt[1],Ct=Object(r.useState)(!1),xt=Object(dt.a)(Ct,2),_t=xt[0],Et=xt[1],kt=Object(r.useState)(0),jt=Object(dt.a)(kt,2),Ot=jt[0],Ft=jt[1],At=Object(r.useState)(0),It=Object(dt.a)(At,2),St=It[0],Bt=It[1],zt=function(){var e=Object(d.a)(m.a.mark((function e(n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.widget.cards.conversation.selected){e.next=3;break}return e.next=3,Qt(t.widget.cards.conversation.selected.conversation_id,n.timestamp);case 3:void 0!==n.account_id?Ft(N()):Bt(N());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Mt=function(e){if(e.client&&t.widget.cards.conversation.selected){var n=!!e.client,r="y"===e.is_typing,a=t.widget.cards.conversation.selected.conversation_id!==e.conversation.conversation_id;if(!n||a)return;nt(r?e.client:void 0)}},Lt=function(){var t=Object(d.a)(m.a.mark((function t(e){var n,r,a;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventDefault(),n=Object(Pt.encode)(K),r=n.replace(/\s/g,""),a=n.replace(/\n/g,"
"),0!==r.length){t.next=6;break}return t.abrupt("return");case 6:Tt(a);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Tt=function(e,n,r){var a=t.ping.user.crmhero_user_id;r||J(""),null==a&&t.ping.app_config.allow_anonymous_chat?Wt(e,n):null!=a||t.ping.app_config.allow_anonymous_chat?Nt(a,e,n):(G(!1),Ht(e,n))},Nt=function(n,r,a){var i=void 0!==t.widget.cards.conversation.selected?t.widget.cards.conversation.selected.conversation_id:void 0;null==i&&t.dispatch(vn.call({function:t.widget.callbacks.onNewConversation,arguments:[r,a]})),t.dispatch(Ve.send({conversationId:i,message:r,attachments:a,fakeConversation:i&&i<0&&t.widget.cards.conversation.selected?t.widget.cards.conversation.selected:void 0})).then((function(t){void 0!==t&&((null==i||i<0)&&l(!0),i=void 0!==i?i:t.conversation.conversation_id,e.typing(i,n,"",!1),e.message(n,r,t.timestamp))})),G(!0)},Ht=function(e,r){var a=[];t.widget.cards.conversation.selected&&(a=Object(ht.a)(t.widget.cards.conversation.selected.messages)),a=[].concat(Object(ht.a)(a),[Gt(e,r)]),t.dispatch(Ve.setMessagesStateUpdater(a)).then((function(){setTimeout((function(){var i=n("Widget.Messenger.Conversation.Compose.Bubble.ProfilingBubble.emailRequired"),o=void 0!==t.ping.app_config.widget_privacy_url?"
"+n("Widget.Messenger.Conversation.Compose.Bubble.ProfilingBubble.privacyPolicyAcceptance",{privacyUrl:t.ping.app_config.widget_privacy_url}):"",c=Qe({attribute:"email",description:n("Widget.Messenger.Conversation.Compose.Bubble.ProfilingBubble.leaveYourEmail"),hint:n("Widget.Messenger.Conversation.Compose.Bubble.ProfilingBubble.emailPlaceholder"),extra:"".concat(i).concat(o),cast:re.String,validator:function(t){return Ke(t)},callback:function(){var e=Object(d.a)(m.a.mark((function e(n,r,a,i){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.dispatch(ye.getPing(Object(O.a)({lead_email:r},window.customerly.settings))).then((function(t){t.websocket.token&&(n.init(t.websocket.endpoint,t.websocket.port,t.websocket.token),Nt(t.user.crmhero_user_id,a,i))}));case 2:case"end":return e.stop()}}),e)})));return function(t,n,r,a){return e.apply(this,arguments)}}()});c.attachments=r,c.content=e,a.push(c),t.dispatch(Ve.setMessagesStateUpdater(a))}),1500)}))},Wt=function(){var n=Object(d.a)(m.a.mark((function n(r,a){return m.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.dispatch(ye.getPing(Object(O.a)({force_lead:!0},window.customerly.settings))).then(function(){var n=Object(d.a)(m.a.mark((function n(i){return m.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.dispatch(vn.call({function:t.widget.callbacks.onLeadGenerated,arguments:[]}));case 2:i.websocket.token&&(e.init(i.websocket.endpoint,i.websocket.port,i.websocket.token),Nt(i.user.crmhero_user_id,r,a));case 3:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})));return function(t,e){return n.apply(this,arguments)}}(),Ut=function(){i.forEach((function(t){return t.unsubscribe()}))},Yt=function(t){w(t),F(!0)},Qt=function(){var e=Object(d.a)(m.a.mark((function e(n,r){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.dispatch(Ve.getNews({conversationId:n,timestamp:r}));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Kt=function(e,n){var r=n-1;return t.widget.cards.conversation.selected&&r>=0&&r0&&(e=t.account)})),e},$t=function(){var e=Object(d.a)(m.a.mark((function e(){var n;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0===it.current?5e3:3e3,it.current=T(),ct.current&&clearTimeout(ct.current),ct.current=setTimeout((function(){ot.current=T(),t.dispatch(un.knowledgeBaseTrigger())}),n);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),te=function(e){var n=e.target.scrollTop<=50,r=t.widget.cards.conversation.selected&&t.widget.cards.conversation.selected.hasMoreMessages;e.target.scrollTop<1&&(e.target.scrollTop=1),n&&!g&&r&&ee()},ee=function(){var e=Object(d.a)(m.a.mark((function e(){var n,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.widget.cards.conversation.selected){e.next=6;break}return h(!0),n=t.widget.cards.conversation.selected,r=n.messages[0],e.next=6,t.dispatch(Ve.getAll({conversationId:n.conversation_id,messagesBeforeId:r.conversation_message_id}));case 6:h(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(r.useEffect)((function(){if(t.widget.cards.conversation.selected){var n=t.widget.cards.conversation.selected.conversation_id,r=t.widget.cards.conversation.selected.user_id,a=t.widget.cards.conversation.selected.messages,i=T();if(0===a.length)return;var o=a[a.length-1],c=o.conversation_message_id;o.account&&void 0!==o.account.account_id&&!o.seen_date&&t.dispatch(Ve.seen({conversationId:n,conversationMessageId:c,timestamp:i})).then((function(){n>=0?e.seen(n,c,r,i):t.dispatch(Ie.getAll())}))}}),[t.widget.cards.conversation.selected]),Object(r.useEffect)((function(){if(K&&(void 0!==rt.current&&clearTimeout(rt.current),K&&t.widget.cards.conversation.selected&&t.widget.cards.conversation.selected.conversation_id>=0)){var n=t.widget.cards.conversation.selected.conversation_id,r=t.ping.user.crmhero_user_id,a=K;e.typing(n,r,a,!0),rt.current=setTimeout((function(){e.typing(n,r,a,!1)}),3e3)}}),[at]),Object(r.useEffect)((function(){return function(){var n=Object(d.a)(m.a.mark((function n(){return m.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(ft||(i.push(e.onMessage(zt)),i.push(e.onTyping(Mt))),void 0===t.widget.cards.conversation.selected){n.next=5;break}return U(!0),n.next=5,t.dispatch(Ve.getAll({conversationId:t.widget.cards.conversation.selected.conversation_id}));case 5:U(!1);case 6:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}()().catch(console.error),Ut}),[u]),Object(r.useEffect)((function(){return 0===ot.current&&function(t,e){if(!e.cards.conversation.selected)return!1;var n=e.cards.conversation.selected.messages.filter((function(t){return Rt(t)})),r=null==t.user.crmhero_user_id&&!t.app_config.allow_anonymous_chat,a=e.cards.conversation.selected&&e.cards.conversation.selected.messages.length>0;return(0===n.length||Vt(e.cards.conversation.selected.messages,z))&&!r&&a&&t.app_config.widget_knowledge_base_enabled}(t.ping,t.widget)&&$t(),function(){it.current=0,ct.current&&clearTimeout(ct.current)}}),[t.widget.cards.conversation.selected&&t.widget.cards.conversation.selected.messages.length,u,at]),Object(r.useEffect)((function(){var e=null==t.ping.user.crmhero_user_id&&!t.ping.app_config.allow_anonymous_chat,n=t.widget.cards.conversation.selected&&t.widget.cards.conversation.selected.messages.length>0;!e&&n&&0===st.current&&(st.current=T(),t.dispatch(un.officeHoursTrigger()),t.dispatch(un.profilingFormTrigger()))}),[t.widget.cards.conversation.selected&&t.widget.cards.conversation.selected.messages]),Object(r.useEffect)((function(){t.widget.cards.compose.defaultMessage&&(J(t.widget.cards.compose.defaultMessage),t.dispatch(Se.setDefaultMessageStateUpdater("")))}),[t.widget.cards.compose.defaultMessage]),a.a.createElement(oo,null,a.a.createElement(_a,{isLoading:q},a.a.createElement(co,null,a.a.createElement(uo,null,a.a.createElement(xr,{condition:-1!==Jt().account_id},a.a.createElement(lo,null,a.a.createElement(Ya,{accountId:Jt().account_id,size:40})),a.a.createElement(po,null,a.a.createElement(fo,null,Jt().name))),a.a.createElement(xr,{condition:-1===Jt().account_id},a.a.createElement(mo,null,a.a.createElement(gt,{items:t.ping.active_accounts},(function(t,e){return a.a.createElement(Ya,{key:e,accountId:t.account_id,size:40})}))),a.a.createElement(po,null,a.a.createElement(fo,null,t.ping.app.name),a.a.createElement(go,null,t.ping.app_config.team_intro)))),a.a.createElement(so,{onClick:function(){t.dispatch(Dn.goTo(t.widget.previousScreen))}},a.a.createElement(Wr,null,a.a.createElement(kr,{type:Qn.Back,fill:"#fff",size:40})))),a.a.createElement(ho,{textareaHeight:pt,brandedWidget:t.ping.app_config.branded_widget},a.a.createElement(bo,null,a.a.createElement(Yc.a,{onDrop:function(t){var e=new FileReader;t.forEach((function(t){e.onload=function(){var n=e.result,r={filename:t.name,filesize:t.size,base64:n};Tt("",[r])},e.readAsDataURL(t)}))},onDropRejected:function(){_(!0)},noClick:!0,noKeyboard:!0,ref:bt,maxSize:4e6},(function(e){var r=e.getRootProps,i=e.getInputProps,o=e.isDragActive;return a.a.createElement(Do,r(),a.a.createElement(wo,i()),a.a.createElement(yo,{isDragging:o},a.a.createElement(Co,null,a.a.createElement(kr,{type:Qn.DropZone,fill:"#ffffff",size:70}),a.a.createElement("h4",null,n("Widget.Messenger.Conversation.Compose.body.dropYourFiles")))),a.a.createElement(Gc,{onScroll:te,triggerScroll:St,changeScroll:Ot},(function(e,n){return a.a.createElement(a.a.Fragment,null,a.a.createElement(Lo,null,a.a.createElement(xr,{condition:n},a.a.createElement(To,{onClick:e},a.a.createElement(kr,{type:Qn.ArrowDown,fill:"#fff",size:14}),a.a.createElement(No,null)))),a.a.createElement(vo,null,a.a.createElement(_a,{isLoading:g})),a.a.createElement(gt,{items:t.widget.cards.conversation.selected&&t.widget.cards.conversation.selected.messages||[]},(function(e,n){return a.a.createElement(a.a.Fragment,{key:e.conversation_message_id},a.a.createElement(xr,{condition:n>0&&!Zt(e,Kt(0,n))},a.a.createElement(xo,null,a.a.createElement($o,{date:e.sent_date}))),a.a.createElement(_o,{isAccount:Rt(e)||qt(e)},a.a.createElement(xr,{condition:Rt(e)||qt(e)},a.a.createElement(Eo,null,!Rt(e)&&!qt(e)||Xt(e,Kt(0,n))?a.a.createElement(ko,null):a.a.createElement(Ya,{accountId:e.account.account_id,size:35}))),a.a.createElement(Uc,{conversation:t.widget.cards.conversation.selected,message:e,onOpenEmail:Yt,onSelectedArticle:yt,onShowModal:Et})))})),a.a.createElement(xr,{condition:!!et},a.a.createElement(_o,{isAccount:!0},a.a.createElement($c,{accountId:et&&et.account_id,name:et&&et.name}))))})))}))),a.a.createElement(Jc,{showAlert:x,setShowAlert:_},n("Widget.Messenger.Conversation.Compose.body.dropError"))),a.a.createElement(za,{title:"Email",showModal:j,onClose:function(){return F(!1)}},a.a.createElement(La,{url:v})),wt&&a.a.createElement(ji,{selectedArticle:wt,showModal:_t,onClose:function(){return Et(!1)}}),a.a.createElement(qo,{showEmojiModal:S,setShowEmojiModal:B,message:K,setMessage:J,onSend:Tt,textareaHeight:pt}),a.a.createElement(Ko,{showGIFModal:H,setShowGIFModal:P,onSend:Tt,textareaHeight:pt}),a.a.createElement(xr,{condition:t.ping.app_config.branded_widget},a.a.createElement(as,{textareaHeight:pt})),a.a.createElement(jo,null,a.a.createElement("form",{onSubmit:Lt},a.a.createElement(Oo,{textareaHeight:pt,disabled:!Z},a.a.createElement(Jo.a,{placeholder:n("Widget.Messenger.Conversation.Compose.footer.sendAMessage"),maxRows:4,onHeightChange:function(t){return mt(t+32+1)},onKeyDown:function(t){13===t.keyCode&&!1===t.shiftKey&&(t.preventDefault(),Lt(t).catch(console.error))},value:K,disabled:!Z,onChange:function(t){return J(t.target.value)},onPaste:function(t){for(var e=t.clipboardData.items,n=new FileReader,r=0;r0&&a.a.createElement(Io,{isActive:!0,type:"submit",onClick:Lt},a.a.createElement(kr,{type:Qn.New,fill:"#d8d8d8",size:20})))))))})),os=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){return a.a.createElement(ft.a,{in:t.widget.open,timeout:400,classNames:Yr,appear:!0,unmountOnExit:!0},a.a.createElement(ga,null,a.a.createElement(ha,null,t.widget.screen===W.Home&&a.a.createElement(Ii,null),t.widget.screen===W.ConversationList&&a.a.createElement(no,null),t.widget.screen===W.ConversationCompose&&a.a.createElement(is,null))))})),cs=function(t){var e;switch(t.style){case ne.Default:e=a.a.createElement("path",{d:"M24,22 L35,22 C36.1045695,22 37,22.8954305 37,24 C37,25.1045695 36.1045695,26 35,26 L24,26 C22.8954305,26 22,25.1045695 22,24 C22,22.8954305 22.8954305,22 24,22 Z M24,34 L35,34 C36.1045695,34 37,34.8954305 37,36 C37,37.1045695 36.1045695,38 35,38 L24,38 C22.8954305,38 22,37.1045695 22,36 C22,34.8954305 22.8954305,34 24,34 Z M26,28 L37,28 C38.1045695,28 39,28.8954305 39,30 C39,31.1045695 38.1045695,32 37,32 L26,32 C24.8954305,32 24,31.1045695 24,30 C24,28.8954305 24.8954305,28 26,28 Z",id:"Icon",fill:t.contrastColor});break;case ne.Smile:e=a.a.createElement("path",{d:"M21.75,23 C20.2312169,23 19,24.1939073 19,25.6666667 C19,27.139426 20.2312169,28.3333333 21.75,28.3333333 C23.2687831,28.3333333 24.5,27.139426 24.5,25.6666667 C24.5,24.1939073 23.2687831,23 21.75,23 Z M38.25,23 C36.7312169,23 35.5,24.1939073 35.5,25.6666667 C35.5,27.139426 36.7312169,28.3333333 38.25,28.3333333 C39.7687831,28.3333333 41,27.139426 41,25.6666667 C41,24.1939073 39.7687831,23 38.25,23 Z M24.4892585,33.6527787 C23.7099747,33.6951848 23.0437982,34.2113351 22.8291622,34.9390131 C22.6145262,35.6666911 22.8984859,36.446366 23.5367832,36.8819449 C25.011346,37.9211004 27.2194438,39 30,39 C32.7805562,39 34.9895047,37.9220124 36.4632168,36.8819449 C36.9930658,36.5080147 37.2768836,35.88834 37.2077198,35.2564311 C37.1385559,34.6245222 36.7269227,34.0764228 36.1279348,33.8186717 C35.5289469,33.5609206 34.8336443,33.6326933 34.304036,34.006944 C33.2587482,34.7446542 31.8027772,35.4444444 30,35.4444444 C28.1972228,35.4444444 26.7404873,34.7455662 25.6923835,34.006944 C25.3967947,33.7918586 25.0410785,33.6684081 24.671875,33.6527787 C24.6110406,33.6498373 24.5500929,33.6498373 24.4892585,33.6527787 Z",id:"icon",fill:t.contrastColor,fillRule:"nonzero"});break;case ne.Headphones:e=a.a.createElement("path",{d:"M30,18 C23.9365932,18 19,22.6462054 19,28.3529412 L19,31.4889704 L19,32.1176471 C19,33.1576471 19.895,34 21,34 L23,34 L23,29.2941176 C23,28.2730456 22.1357546,27.4471736 21.0585938,27.4172791 C21.5517466,23.1712651 25.354019,19.8823529 30,19.8823529 C34.645981,19.8823529 38.448253,23.1712651 38.941406,27.4172791 C37.864245,27.4471736 37,28.2730456 37,29.2941176 L37,34 L39,34 C40.105,34 41,33.1576471 41,32.1176471 L41,29.2941176 L41,28.3529412 C41,22.6462054 36.063407,18 30,18 Z M37,38 L37,38.8333333 C37,39.7638883 36.116666,40.5 35,40.5 L31.728516,40.5 C31.3718826,39.9852418 30.713268,39.6677177 30,39.6666667 C28.8954305,39.6666667 28,40.4128588 28,41.3333333 C28,42.2538079 28.8954305,43 30,43 C30.713966,42.9995293 31.3734861,42.6819275 31.730469,42.1666667 L35,42.1666667 C37.197334,42.1666667 39,40.664445 39,38.8333333 L39,38 L37,38 Z",id:"icon",fill:t.contrastColor,fillRule:"nonzero"});break;case ne.QuestionMark:e=a.a.createElement("path",{d:"M24,25.5244965 C24,24.6889089 24.2662722,23.8412985 24.7928994,22.9816652 C25.3195266,22.1220319 26.0946746,21.4126841 27.1065089,20.8476105 C28.1183432,20.2825368 29.3017751,20 30.6568047,20 C31.9112426,20 33.0236686,20.2344454 33.9822485,20.7093478 C34.9467456,21.1782387 35.6863905,21.8214608 36.2130178,22.6330027 C36.739645,23.4445446 37,24.3222122 37,25.2720168 C37,26.0234445 36.852071,26.6786895 36.5502959,27.2377517 C36.2485207,27.8028254 35.8934911,28.2897505 35.4852071,28.6985272 C35.0710059,29.1073039 34.3372781,29.7986174 33.2662722,30.7664563 C32.9704142,31.0369702 32.7337278,31.2774271 32.556213,31.4878269 C32.3786982,31.6922152 32.2485207,31.8845807 32.1597633,32.0529005 C32.0710059,32.2272317 32.0059172,32.3955515 31.9585799,32.5698828 C31.9112426,32.744214 31.8402367,33.0447851 31.7455621,33.4776075 C31.5798817,34.3913436 31.0650888,34.854223 30.2011834,34.854223 C29.7514793,34.854223 29.3727811,34.7039375 29.0650888,34.4033664 C28.7573964,34.1027953 28.6035503,33.6579501 28.6035503,33.0688308 C28.6035503,32.3294259 28.7159763,31.6862038 28.9408284,31.1451758 C29.1656805,30.6041479 29.4674556,30.1292456 29.8402367,29.7204689 C30.2130178,29.3116922 30.7159763,28.8247671 31.3491124,28.2596934 C31.9053254,27.7667568 32.3017751,27.3940487 32.5502959,27.141569 C32.7988166,26.8890893 33.0059172,26.6125639 33.1715976,26.2999699 C33.3431953,25.9933874 33.4260355,25.6567478 33.4260355,25.2960625 C33.4260355,24.5927262 33.1656805,23.9975954 32.6508876,23.5106703 C32.1360947,23.0237451 31.4674556,22.7832882 30.6568047,22.7832882 C29.704142,22.7832882 29,23.0297565 28.5502959,23.5166817 C28.1005917,24.0036069 27.7159763,24.7249775 27.408284,25.6747821 C27.112426,26.6726781 26.556213,27.1656147 25.7337278,27.1656147 C25.2485207,27.1656147 24.8402367,26.9912834 24.5029586,26.642621 C24.1715976,26.3059814 24,25.9332732 24,25.5244965 Z M30.3491124,40 C29.8224852,40 29.3609467,39.8256688 28.964497,39.4770063 C28.5680473,39.1283439 28.3727811,38.6414187 28.3727811,38.0162308 C28.3727811,37.46318 28.5621302,36.9942891 28.9467456,36.6155696 C29.3254438,36.23685 29.7988166,36.0504959 30.3491124,36.0504959 C30.8934911,36.0504959 31.3550296,36.2428614 31.7278107,36.6155696 C32.1005917,36.9942891 32.2840237,37.46318 32.2840237,38.0162308 C32.2840237,38.6354073 32.0887574,39.116321 31.6982249,39.4709949 C31.3076923,39.8256688 30.8579882,40 30.3491124,40 Z",fillRule:"nonzero",fill:t.contrastColor});break;case ne.Lifebuoy:e=a.a.createElement("path",{d:"M24.5398076,19.0080786 C23.3412287,19.0746409 21.9894986,19.5339218 20.7576255,20.7653255 C19.1129094,22.4094168 18.8665345,24.2831472 19.0529801,25.6909418 C19.1462029,26.3965031 19.3359776,26.9988924 19.5057765,27.4215638 C19.3026842,28.2502652 19.1861555,29.1155762 19.1861555,30.0041842 C19.1861555,30.8927923 19.3026842,31.7581032 19.5057765,32.5868047 C19.3359776,33.009476 19.1462029,33.6118654 19.0529801,34.3174267 C18.8665345,35.7252213 19.1129094,37.5989526 20.7576255,39.243043 C22.4023424,40.8871343 24.2767859,41.1334147 25.6851162,40.94704 C26.390946,40.8538527 26.9935645,40.6641501 27.4163967,40.4944158 C28.2454135,40.6974309 29.1110538,40.8139152 30,40.8139152 C30.8889461,40.8139152 31.7545864,40.6974309 32.5836032,40.4944158 C33.0064354,40.6641501 33.609054,40.8538527 34.3148837,40.94704 C35.723214,41.1334147 37.5976584,40.8871343 39.2423744,39.243043 C40.8870913,37.5989526 41.1334655,35.7252213 40.9470199,34.3174267 C40.8537971,33.6118654 40.6640223,33.009476 40.4942234,32.5868047 C40.6973157,31.7581032 40.8138444,30.8927923 40.8138444,30.0041842 C40.8138444,29.1155762 40.6973157,28.2502652 40.4942234,27.4215638 C40.6640223,26.9988924 40.8537971,26.3965031 40.9470199,25.6909418 C41.1334655,24.2831472 40.8870913,22.4094168 39.2423744,20.7653255 C37.5976584,19.121235 35.723214,18.8749538 34.3148837,19.0613285 C33.609054,19.1545158 33.0064354,19.3442184 32.5836032,19.5139527 C31.7545864,19.3109376 30.8889461,19.1944532 30,19.1944532 C29.1110538,19.1944532 28.2454135,19.3109376 27.4163967,19.5139527 C26.9935645,19.3442184 26.390946,19.1545158 25.6851162,19.0613285 C25.3322018,19.0147352 24.9393338,18.9847818 24.5398076,19.0080786 Z M24.5930777,19.8334521 C24.9326755,19.8168117 25.2456373,19.8467646 25.5519408,19.886702 C25.705093,19.9066712 25.8382684,19.936624 25.9781021,19.9665769 C23.2413476,21.0648566 21.0572706,23.2481028 19.958573,25.9838163 C19.9286087,25.8440357 19.8986444,25.710911 19.8786677,25.557817 C19.7188572,24.3330692 19.8953144,22.7988065 21.3435974,21.3510744 C22.4323067,20.2627793 23.5776153,19.8833741 24.5930777,19.8334521 Z M34.9274907,19.8334521 C36.062811,19.7802022 37.3879069,20.0830613 38.6564026,21.3510744 C40.1046855,22.7988065 40.2811427,24.3330692 40.1213322,25.557817 C40.1013563,25.710911 40.0713912,25.8440357 40.041427,25.9838163 C38.9427301,23.2481028 36.7586532,21.0648566 34.0218978,19.9665769 C34.1617324,19.936624 34.2949078,19.9066712 34.4480591,19.886702 C34.6012113,19.8667337 34.764351,19.8401088 34.9274907,19.8334521 Z M28.3486247,20.9517001 L28.3486247,24.2531943 C26.3676401,24.8223029 24.8161468,26.373206 24.2468216,28.3534371 L20.9440711,28.3534371 C21.6265949,24.5893342 24.5830894,21.6339644 28.3486247,20.9517001 Z M31.6513752,20.9517001 C35.4169106,21.6339644 38.373405,24.5893342 39.0559288,28.3534371 L35.7531783,28.3534371 C35.1838532,26.373206 33.6323599,24.8223029 31.6513752,24.2531943 L31.6513752,20.9517001 Z M29.5472035,25.611067 C29.6936965,25.5944266 29.8468487,25.611067 30,25.611067 C32.4304519,25.611067 34.394789,27.5746577 34.394789,30.0041842 C34.394789,32.4337116 32.4304519,34.3973015 30,34.3973015 C27.5695489,34.3973015 25.605211,32.4337116 25.605211,30.0041842 C25.605211,27.7277507 27.3298331,25.8373791 29.5472035,25.611067 Z M20.9440711,31.6549313 L24.2468216,31.6549313 C24.8161468,33.6351624 26.3676401,35.1860655 28.3486247,35.7551741 L28.3486247,39.0566683 C24.5830894,38.3744041 21.6265949,35.4190343 20.9440711,31.6549313 Z M35.7531783,31.6549313 L39.0559288,31.6549313 C38.373405,35.4190343 35.4169106,38.3744041 31.6513752,39.0566683 L31.6513752,35.7551741 C33.6323599,35.1860655 35.1838532,33.6351624 35.7531783,31.6549313 Z M19.958573,34.0245522 C21.0572706,36.7602665 23.2413476,38.9435127 25.9781021,40.0417916 C25.8382684,40.0717445 25.705093,40.1016982 25.5519408,40.1216665 C24.3267269,40.2814162 22.7918803,40.1050261 21.3435974,38.657294 C19.8953144,37.209562 19.7188572,35.6752993 19.8786677,34.4505514 C19.8986444,34.2974584 19.9286087,34.1643336 19.958573,34.0245522 Z M40.041427,34.0245522 C40.0713912,34.1643336 40.1013563,34.2974584 40.1213322,34.4505514 C40.2811427,35.6752993 40.1046855,37.209562 38.6564026,38.657294 C37.2081196,40.1050261 35.673273,40.2814162 34.4480591,40.1216665 C34.2949078,40.1016982 34.1617324,40.0717445 34.0218978,40.0417916 C36.7586532,38.9435127 38.9427301,36.7602665 40.041427,34.0245522 Z",id:"icon",fill:t.contrastColor,fillRule:"nonzero"});break;case ne.Dots:e=a.a.createElement("path",{d:"M20.5,26 C22.4329966,26 24,27.5670034 24,29.5 C24,31.4329966 22.4329966,33 20.5,33 C18.5670034,33 17,31.4329966 17,29.5 C17,27.5670034 18.5670034,26 20.5,26 Z M30.5,26 C32.4329966,26 34,27.5670034 34,29.5 C34,31.4329966 32.4329966,33 30.5,33 C28.5670034,33 27,31.4329966 27,29.5 C27,27.5670034 28.5670034,26 30.5,26 Z M39.5,26 C41.4329966,26 43,27.5670034 43,29.5 C43,31.4329966 41.4329966,33 39.5,33 C37.5670034,33 36,31.4329966 36,29.5 C36,27.5670034 37.5670034,26 39.5,26 Z",id:"icon",fill:t.contrastColor,fillRule:"nonzero"})}var n=a.a.createElement("svg",{width:"60px",height:"60px",viewBox:"0 0 60 60"},a.a.createElement("g",{id:"left",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.a.createElement("path",{d:"M6.90917448,41.3294845 C6.83769725,41.212437 6.76324712,41.0951946 6.68573397,40.9777778 L6.76289975,41.0481461 C4.99532213,37.5958143 4,33.6955382 4,29.5666667 C4,15.4465866 15.6405965,4 30,4 C44.3594035,4 56,15.4465866 56,29.5666667 C56,43.6867468 44.3594035,55.1333333 30,55.1333333 C26.3565321,55.1333333 22.8881035,54.3963917 19.7404572,53.0658224 C-3.68800108,60.6255746 12.4215438,52.3468261 7.38027718,42.1818397 C7.21794615,41.9009974 7.06086812,41.616836 6.90917448,41.3294845 Z",id:"bubble",fill:t.accentColor}),e)),r=a.a.createElement("svg",{width:"60px",height:"60px",viewBox:"0 0 60 60"},a.a.createElement("g",{id:"right",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.a.createElement("path",{d:"M6.90917448,41.3294845 C6.83769725,41.212437 6.76324712,41.0951946 6.68573397,40.9777778 L6.76289975,41.0481461 C4.99532213,37.5958143 4,33.6955382 4,29.5666667 C4,15.4465866 15.6405965,4 30,4 C44.3594035,4 56,15.4465866 56,29.5666667 C56,43.6867468 44.3594035,55.1333333 30,55.1333333 C26.3565321,55.1333333 22.8881035,54.3963917 19.7404572,53.0658224 C-3.68800108,60.6255746 12.4215438,52.3468261 7.38027718,42.1818397 C7.21794615,41.9009974 7.06086812,41.616836 6.90917448,41.3294845 Z",id:"Mask",fill:t.accentColor,transform:"translate(30.000000, 30.000000) scale(-1, 1) translate(-30.000000, -30.000000) "}),e));return a.a.createElement("div",null,t.direction===q.Right?r:n)},ss=_r.b.div.withConfig({componentId:"cly__sc-1dltqta-0"})(["#customerly-container &{position:absolute !important;background:red !important;border-radius:50% !important;line-height:20px !important;font-size:0.8em !important;color:#fff !important;min-width:20px !important;display:block !important;height:20px !important;z-index:3 !important;text-align:center !important;animation-duration:0.4s !important;animation-fill-mode:both !important;animation-name:zoomIn !important;right:"," !important;left:"," !important;}"],(function(t){return t.theme.direction===q.Left?"0":"auto"}),(function(t){return t.theme.direction===q.Right?"0":"auto"})),us=function(t){return a.a.createElement(a.a.Fragment,null,t.number>0&&a.a.createElement(ss,null,t.number))},ls=_r.b.div.withConfig({componentId:"cly__viax0o-0"})(["#customerly-container &{bottom:","px !important;position:fixed !important;width:60px !important;height:60px !important;cursor:pointer !important;display:block !important;animation-duration:0.4s !important;animation-fill-mode:both !important;animation-name:"," !important;right:"," !important;left:"," !important;z-index:10000 !important;}#customerly-container & *{cursor:pointer !important;}@media (min-width:460px){#customerly-container &{bottom:","px !important;right:"," !important;left:"," !important}}"],(function(t){return ea(t.theme.position)}),qr,(function(t){return t.theme.direction===q.Right?"".concat(ra(t.theme.position),"px"):"auto"}),(function(t){return t.theme.direction===q.Left?"".concat(ra(t.theme.position),"px"):"auto"}),(function(t){return ta(t.theme.position)}),(function(t){return t.theme.direction===q.Right?"".concat(na(t.theme.position),"px"):"auto"}),(function(t){return t.theme.direction===q.Left?"".concat(na(t.theme.position),"px"):"auto"})),ps=_r.b.div.withConfig({componentId:"cly__viax0o-1"})(["#customerly-container &{-webkit-transition:transform 0.2s ease-in-out !important;-moz-transition:transform 0.2s ease-in-out !important;-ms-transition:transform 0.2s ease-in-out !important;-o-transition:transform 0.2s ease-in-out !important;transition:transform 0.2s ease-in-out !important;}#customerly-container &:hover{transform:scale(1.05) !important;}"]),ms=Object(c.b)((function(t){return{ping:t.ping,widget:t.widget}}))((function(t){var e=Object(c.c)((function(t){return t.ping.unread.messages.length})),n=function(){var e=Object(d.a)(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.dispatch(ye.toggle());case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return a.a.createElement(ls,{onClick:n},a.a.createElement(ps,null,a.a.createElement(us,{number:e}),a.a.createElement(cs,{accentColor:t.widget.accentColor,style:t.ping.app_config.widget_icon,contrastColor:t.widget.contrastColor,direction:t.widget.direction})))})),ds=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=[],n=Object(r.useContext)(pi),a=Object(c.c)(Ha),i=function(){var e=Object(d.a)(m.a.mark((function e(n){var r,a,i,o,c;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.data,a={app_id:window.customerly.settings.app_id},null!=r.type){e.next=4;break}return e.abrupt("return");case 4:e.t0=r.type,e.next=e.t0===Dt.Hide?7:e.t0===Dt.Show?10:e.t0===Dt.Update?13:e.t0===Dt.Open?17:e.t0===Dt.Close?20:e.t0===Dt.Logout?23:e.t0===Dt.Attribute?31:e.t0===Dt.Event?40:e.t0===Dt.ShowNewMessage?48:55;break;case 7:return e.next=9,t.dispatch(ye.hide());case 9:return e.abrupt("break",56);case 10:return e.next=12,t.dispatch(ye.show());case 12:return e.abrupt("break",56);case 13:return window.customerly.settings=Object.assign({},window.customerly.settings,r.payload.settings,a),e.next=16,t.dispatch(ye.setHotReloadIterationStateUpdater(N()));case 16:return e.abrupt("break",56);case 17:return e.next=19,t.dispatch(ye.open(W.Home));case 19:return e.abrupt("break",56);case 20:return e.next=22,t.dispatch(ye.close());case 22:return e.abrupt("break",56);case 23:return window.customerly.settings=Object.assign({},window.customerly.settings,a),delete window.customerly.settings.email,delete window.customerly.settings.name,delete window.customerly.settings.attributes,delete window.customerly.settings.company,e.next=30,t.dispatch(ye.setHotReloadIterationStateUpdater(N()));case 30:return e.abrupt("break",56);case 31:if(i=r.payload.name,o=r.payload.value,null!=i&&null!=o){e.next=36;break}return console.error('[customerly] Attribute requires 2 parameters. Usage: customerly.attribute("my_attribute", "my_value")'),e.abrupt("return");case 36:return e.next=38,t.dispatch(Xe.send({attribute:i,value:o}));case 38:return e.sent,e.abrupt("break",56);case 40:if(null!=(c=r.payload.name)){e.next=44;break}return console.error('[customerly] Event requires the name parameter. Usage: customerly.event("event_name")'),e.abrupt("return");case 44:return e.next=46,t.dispatch(Ze.send({event:c}));case 46:return e.sent,e.abrupt("break",56);case 48:return e.next=50,t.dispatch(Ie.setSelectedConversationStateUpdater(void 0));case 50:return e.next=52,t.dispatch(Se.setDefaultMessageStateUpdater(r.payload.message));case 52:return e.next=54,t.dispatch(ye.open(W.ConversationCompose));case 54:case 55:return e.abrupt("break",56);case 56:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),o=function(){var e=Object(d.a)(m.a.mark((function e(n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.widget.visible||void 0===n.account_id||t.widget.cards.conversation.selected&&n.conversation.conversation_id===t.widget.cards.conversation.selected.conversation_id){e.next=5;break}return e.next=3,t.dispatch(ye.show());case 3:fi(ui.Receive),t.dispatch(Ve.getNewsUnread({conversationId:n.conversation.conversation_id,timestamp:n.timestamp}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(){e.forEach((function(t){return t.unsubscribe()})),window.removeEventListener("message",i)};return Object(r.useEffect)((function(){return function(){var t=Object(d.a)(m.a.mark((function t(){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:window.addEventListener("message",i),window.customerly.consumeQueue(),a||e.push(n.onMessage(o));case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()().catch(console.error),s}),[t.widget.visible]),null})),fs=_r.b.div.withConfig({componentId:"cly__sc-1idftgv-0"})(["#customerly-container &{position:fixed !important;top:0 !important;bottom:0 !important;left:0 !important;right:0 !important;z-index:2147482999 !important;background:rgba(0,0,0,0.7) !important;display:flex !important;flex-direction:column !important;justify-content:center !important;align-items:center !important;backdrop-filter:blur(10px) !important;}"]),gs=_r.b.div.withConfig({componentId:"cly__sc-1idftgv-1"})(["#customerly-container &{font-size:2em !important;margin-top:20px !important;color:white !important;display:flex !important;flex-direction:column !important;align-items:center !important;text-align:center !important;}#customerly-container & p{margin-top:10px !important;font-size:0.5em !important;}@media (max-width:460px){#customerly-container &{padding:0 30px !important;font-size:1.5em !important}}"]),hs=_r.b.div.withConfig({componentId:"cly__sc-1idftgv-2"})(["#customerly-container &{height:300px !important;display:flex !important;flex-direction:row !important;align-items:center !important;}#customerly-container & img{width:200px !important;height:200px !important;animation:"," 2s infinite;}"],Xr),bs=_r.b.div.withConfig({componentId:"cly__sc-1idftgv-3"})(["#customerly-container &{display:flex !important;flex-direction:row !important;align-items:center !important;margin-top:10px !important;}"]),Ds=Object(_r.b)(Rr).withConfig({componentId:"cly__sc-1idftgv-4"})(["#customerly-container &{height:48px !important;width:auto !important;box-shadow:0 6px 20px 0 #00000021 !important;}#customerly-container &:hover{box-shadow:0 6px 20px 0 #00000038 !important;}"]),vs=Object(_r.b)(Ds).withConfig({componentId:"cly__sc-1idftgv-5"})(["#customerly-container &{background:#42ca49 center !important;transition:background 500ms ease-in-out,box-shadow 500ms ease-in-out !important;}#customerly-container &:hover:enabled{background:"," radial-gradient(circle,transparent 1%,"," 1%) center/15000% !important;transition:background 500ms ease-in-out,box-shadow 500ms ease-in-out !important;}"],Mr("#42ca49",20),Mr("#42ca49",20)),ws=Object(_r.b)(Rr).withConfig({componentId:"cly__sc-1idftgv-6"})(["#customerly-container &{background:#eb3423 center !important;transition:background 500ms ease-in-out,box-shadow 500ms ease-in-out !important;margin-left:10px !important;}#customerly-container &:hover:enabled{background:"," radial-gradient(circle,transparent 1%,"," 1%) center/15000% !important;transition:background 500ms ease-in-out,box-shadow 500ms ease-in-out !important;}"],Mr("#EB3423",20),Mr("#EB3423",20)),ys=_r.b.span.withConfig({componentId:"cly__sc-1idftgv-7"})(["#customerly-container &{padding:0 16px 0 0 !important;}"]),Cs=_r.b.span.withConfig({componentId:"cly__sc-1idftgv-8"})(["#customerly-container &{height:48px !important;width:48px !important;display:flex !important;align-items:center !important;justify-content:center !important;}"]),xs=void 0,_s=Object(c.b)((function(t){return{ping:t.ping,widget:t.widget}}))((function(t){var e=Object(r.useContext)(pi),n=Object(jr.d)("",{useSuspense:!1}).t,i=Object(r.useState)(!1),o=Object(dt.a)(i,2),c=o[0],s=o[1],u=Object(r.useState)(),l=Object(dt.a)(u,2),p=l[0],m=l[1],d=Object(r.useState)(new Audio("".concat("https://messenger.customerly.io","/sounds/calling.m4r"))),f=Object(dt.a)(d,1)[0],g=[],h=function(){w(),s(!1),m(void 0)},b=function(t){h()},D=function(t){v(),e.realtimeRinging(t),m(t),s(!0)},v=function(){f.play(),xs=window.setInterval((function(){f.play()}),3e3)},w=function(){clearInterval(xs),f.pause()},y=function(){g.push(e.onRealtimeCancel(b)),g.push(e.onRealtimeCall(D))},C=function(){g.forEach((function(t){return t.unsubscribe()}))};return Object(r.useEffect)((function(){return e.isConnected()?y():e.isInitialized()&&g.push(e.onConnect((function(){y()}))),C}),[e.isInitialized()]),a.a.createElement(xr,{condition:c},a.a.createElement(fs,null,a.a.createElement(hs,null,a.a.createElement(Ya,{accountId:p&&p.account.account_id,size:250})),a.a.createElement(gs,null,n("Widget.Realtime.header.caller",{name:p&&p.account.name}),a.a.createElement("p",null,n("Widget.Realtime.header.assist",{name:t.ping.app.name}))),a.a.createElement(bs,null,a.a.createElement(vs,{onClick:function(){p&&(e.realtimeAccept(p),window.open(p.url),t.dispatch(vn.call({function:t.widget.callbacks.onRealtimeVideoAnswered})),h())}},a.a.createElement(Cs,null,a.a.createElement(kr,{type:Qn.Answer,size:24,fill:"#fff"})),a.a.createElement(ys,null,n("Widget.Realtime.buttons.accept"))),a.a.createElement(ws,{onClick:function(){p&&(e.realtimeReject(p),t.dispatch(vn.call({function:t.widget.callbacks.onRealtimeVideoRejected})),h())}},a.a.createElement(Cs,null,a.a.createElement(kr,{type:Qn.Decline,size:24,fill:"#fff"})),a.a.createElement(ys,null,n("Widget.Realtime.buttons.reject"))))))})),Es=["ca","cs","da","de","fr","en","es","id","it","nl","pl","pt","pt-BR","ro","ru","sk"],ks=function(t){var e=navigator.language,n=e.substring(0,2),r=-1!==Es.indexOf(e),a=-1!==Es.indexOf(n);return r?e:a?n:t},js=n(84),Os=n(85),Fs=n(53),As=_r.b.button.withConfig({componentId:"cly__sc-1hvcr50-0"})(["#customerly-container &{cursor:pointer !important;background:#f6f6f6 !important;padding:4px 8px !important;border-radius:16px !important;border:1px solid #e6e6e6 !important;font-size:14px !important;color:#6f6f6f !important;display:flex !important;align-items:center !important;}#customerly-container & *{cursor:pointer !important;}#customerly-container & svg{fill:#bfbfbf !important;}#customerly-container & span{margin-left:4px !important;line-height:20px !important;}"]),Is=_r.b.div.withConfig({componentId:"cly__sc-1hvcr50-1"})(["#customerly-container &{position:absolute !important;right:"," !important;left:"," !important;top:-32px !important;width:80% !important;display:flex !important;justify-content:"," !important;}"],(function(t){return t.theme.direction===q.Left?"auto":0}),(function(t){return t.theme.direction===q.Left?0:"auto"}),(function(t){return t.theme.direction===q.Left?"flex-end":"flex-start"})),Ss=_r.b.div.withConfig({componentId:"cly__sc-1hvcr50-2"})(["#customerly-container &{font-size:14px !important;font-weight:400 !important;color:#455a64 !important;line-height:20px !important;position:fixed !important;z-index:2147482996 !important;bottom:","px !important;width:360px !important;border-radius:10px !important;right:"," !important;left:"," !important;}@media (min-width:460px){#customerly-container &{bottom:","px !important;right:"," !important;left:"," !important}}"],(function(t){return 72+ea(t.theme.position)}),(function(t){return t.theme.direction===q.Right?"".concat(ra(t.theme.position),"px"):"auto"}),(function(t){return t.theme.direction===q.Left?"".concat(ra(t.theme.position),"px"):"auto"}),(function(t){return 72+ta(t.theme.position)}),(function(t){return t.theme.direction===q.Right?"".concat(na(t.theme.position),"px"):"auto"}),(function(t){return t.theme.direction===q.Left?"".concat(na(t.theme.position),"px"):"auto"})),Bs=Object(_r.b)(Ss).withConfig({componentId:"cly__sc-5l69k7-0"})(["#customerly-container &{width:360px !important;}"]),zs=_r.b.div.withConfig({componentId:"cly__sc-5l69k7-1"})(["#customerly-container &{margin-bottom:8px !important;}"]),Ms=_r.b.div.withConfig({componentId:"cly__sc-5l69k7-2"})(["#customerly-container &{width:100% !important;display:flex !important;flex-direction:"," !important;justify-content:flex-end !important;}"],(function(t){return t.theme.direction===q.Left?"row-reverse":"row"})),Ls=_r.b.div.withConfig({componentId:"cly__sc-5l69k7-3"})(["#customerly-container &{width:20% !important;position:relative !important;margin:8px 0 !important;}#customerly-container & ","{box-shadow:0 1px 20px 9px #00000017 !important;}"],Ga),Ts=_r.b.div.withConfig({componentId:"cly__sc-5l69k7-4"})(["#customerly-container &{position:absolute !important;top:"," !important;right:"," !important;}"],(function(t){return 0===t.counter||1===t.counter?"0":"24px"}),(function(t){return 0===t.counter?"24px":1===t.counter?"0":"16px"})),Ns=_r.b.div.withConfig({componentId:"cly__sc-5l69k7-5"})(["#customerly-container &{background:white !important;border-radius:8px !important;box-shadow:0 1px 20px 9px #00000017 !important;margin:4px 0 !important;padding:16px !important;width:calc(80% - 32px) !important;cursor:pointer !important;}"]),Hs=_r.b.div.withConfig({componentId:"cly__sc-5l69k7-6"})(["#customerly-container &{font-size:0.8em !important;color:#9fa8a8 !important;cursor:inherit !important;}"]),Ps=_r.b.span.withConfig({componentId:"cly__sc-5l69k7-7"})(["#customerly-container &{font-weight:bold !important;display:inline-block !important;cursor:inherit !important;}"]),Rs=_r.b.div.withConfig({componentId:"cly__sc-5l69k7-8"})(["#customerly-container &{cursor:inherit !important;}#customerly-container & *{cursor:inherit !important;}#customerly-container & p{margin:0 !important;word-wrap:break-word !important;}#customerly-container & img{width:100% !important;border-radius:8px !important;}#customerly-container & a:-webkit-any-link{text-decoration:underline !important;color:"," !important;}#customerly-container & a:hover{text-decoration:none !important;}"],(function(t){return t.theme.accentColor})),Ws=Object(_r.b)(Rs).withConfig({componentId:"cly__sc-5l69k7-9"})(["#customerly-container &{text-align:center !important;}#customerly-container & svg{margin:0 auto !important;}"]),qs=(_r.b.div.withConfig({componentId:"cly__sc-5l69k7-10"})(["#customerly-container &{}"]),_r.b.div.withConfig({componentId:"cly__sc-5l69k7-11"})(["#customerly-container &{float:"," !important;width:80% !important;}"],(function(t){return t.theme.direction}))),Us=Object(_r.b)(Rr).withConfig({componentId:"cly__sc-5l69k7-12"})(["#customerly-container &{height:48px !important;width:100% !important;justify-content:center !important;}#customerly-container & ","{border-left:1.1em solid "," !important;margin:0 auto !important;}"],Zr,(function(t){return t.theme.contrastColor})),Vs=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=Object(jr.d)().t,n=Object(r.useContext)(pi),i=[],o=t.messages.length>0,c=o?t.messages[0].account:void 0,s=o?t.messages[0].conversation_id:void 0,u=o?t.messages.filter((function(t){return t.conversation_id===s})):void 0,l=o&&u?u[u.length-1].conversation_message_id:void 0,p=Object(r.useState)(!1),f=Object(dt.a)(p,2),g=f[0],h=f[1],b=Object(r.useState)(void 0),D=Object(dt.a)(b,2),v=D[0],w=D[1],y=function(){var e=T();void 0!==s&&void 0!==l&&t.dispatch(Ve.seen({conversationId:s,conversationMessageId:l,timestamp:e})).then((function(){s>=0?n.seen(s,l,t.ping.user.crmhero_user_id,e):t.dispatch(Ie.getAll())})),C()},C=function(){var e=Object(d.a)(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.dispatch(ye.setPingStateUpdater(Object(O.a)(Object(O.a)({},t.ping),{},{unread:{messages:t.ping.unread.messages,surveys:[]}})));case 2:return e.next=4,t.dispatch(ye.setNotificationsMessagesStateUpdater([]));case 4:if(!s){e.next=7;break}return e.next=7,t.dispatch(Ie.discard({conversationIds:[s]}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(){var e=Object(d.a)(m.a.mark((function e(){var n,r,a;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=void 0!==s,r=[],a=void 0,h(!0),!n){e.next=9;break}return e.next=7,Ie.getHydratedAll(mt);case 7:r=e.sent,a=r.find((function(t){return t.conversation_id===s}));case 9:y(),t.dispatch(Dn.goToConversationCompose(a)).then();case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_=function(t){if(t.client){var e=!!t.client,n="y"===t.is_typing,r=s!==t.conversation.conversation_id;if(!e&&r)return;w(n?{conversationId:t.conversation.conversation_id,account:{accountId:t.client.account_id,name:t.client.name}}:void 0)}},E=function(){i.push(n.onTyping(_))},k=function(){i.forEach((function(t){return t.unsubscribe()}))};return Object(r.useEffect)((function(){return n.isConnected()?E():n.isInitialized()&&i.push(n.onConnect(E)),fi(ui.Receive),k}),[]),a.a.createElement(xr,{condition:t.messages.length>0},a.a.createElement(Bs,null,a.a.createElement(Is,null,a.a.createElement(As,{onClick:C},a.a.createElement(kr,{type:Qn.CloseFilled,fill:"#000",size:20}),a.a.createElement("span",null,e("Widget.Notification.MessageNotification.close")))),a.a.createElement(zs,null,a.a.createElement(gt,{items:t.messages},(function(t,n){return a.a.createElement(Ms,{key:t.conversation_message_id},a.a.createElement(xr,{condition:0===n},a.a.createElement(Ls,null,a.a.createElement(Ts,{counter:0},a.a.createElement(Ya,{size:40,accountId:t.account.account_id})))),a.a.createElement(xr,{condition:t.conversation_id===s},a.a.createElement(Ns,{onClick:x},a.a.createElement(Hs,null,e("Widget.Notification.MessageNotification.messageFrom"),a.a.createElement(Ps,null,t.account.name)),a.a.createElement(xr,{condition:!!t.rich_mail_link},a.a.createElement(Ws,null,a.a.createElement(kr,{type:Qn.Email,fill:"#000",size:100}),a.a.createElement("p",null,e("Widget.Notification.MessageNotification.sentViaEmail")))),a.a.createElement(xr,{condition:!t.rich_mail_link},a.a.createElement(Rs,{dangerouslySetInnerHTML:{__html:t.content}})))))})),a.a.createElement(xr,{condition:!!v},a.a.createElement(Ms,null,a.a.createElement(Ns,null,a.a.createElement(Hs,null,a.a.createElement(Ps,null,v&&v.account.name),e("Widget.Notification.MessageNotification.isTyping",{name:""})),a.a.createElement(kr,{type:Qn.Typing,fill:t.widget.accentColor,size:45}))))),c&&a.a.createElement(qs,null,a.a.createElement(Us,{onClick:x},a.a.createElement(_a,{isLoading:g}),a.a.createElement(xr,{condition:!g},e("Widget.Notification.MessageNotification.replyTo",{name:c.name}))))))}));!function(t){t[t.Buttons=0]="Buttons",t[t.RadioButtons=1]="RadioButtons",t[t.Select=2]="Select",t[t.Scale=3]="Scale",t[t.Stars=4]="Stars",t[t.Numeric=5]="Numeric",t[t.Textbox=6]="Textbox",t[t.Textarea=7]="Textarea"}(tc||(tc={}));var Xs=_r.b.div.withConfig({componentId:"cly__sc-1w2ezza-0"})(["#customerly-container &{position:relative !important;height:auto !important;color:white !important;transition:height 160ms ease-out 0s !important;background:","!important;margin:0 0 16px 0 !important;}"],(function(t){return t.theme.accentColor})),Zs=_r.b.div.withConfig({componentId:"cly__sc-1w2ezza-1"})(["#customerly-container &{display:flex !important;}"]),Gs=_r.b.div.withConfig({componentId:"cly__sc-1w2ezza-2"})(["#customerly-container &{margin-right:16px !important;align-items:center !important;display:flex !important;}#customerly-container & img{border:4px solid #ffffff66 !important;}"]),Ys=_r.b.div.withConfig({componentId:"cly__sc-1w2ezza-3"})(["#customerly-container &{max-width:250px !important;flex-direction:column !important;justify-content:center !important;display:flex !important;}"]),Qs=_r.b.div.withConfig({componentId:"cly__sc-1w2ezza-4"})(["#customerly-container &{font-size:18px !important;font-weight:500 !important;line-height:20px !important;overflow:hidden !important;}"]),Ks=_r.b.div.withConfig({componentId:"cly__sc-1w2ezza-5"})(["#customerly-container &{margin-top:4px !important;font-size:14px !important;font-weight:500 !important;line-height:20px !important;overflow:hidden !important;}"]),Js=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){return a.a.createElement(Xs,null,a.a.createElement(Zs,null,a.a.createElement(Gs,null,a.a.createElement(Ya,{accountId:t.survey.account_id,size:40})),a.a.createElement(Ys,null,a.a.createElement(Qs,null,t.survey.next_question.title),a.a.createElement(Ks,null,t.survey.next_question.subtitle))))})),$s=_r.b.div.withConfig({componentId:"cly__sc-18sa2fb-0"})(["#customerly-container &{display:flex !important;flex-direction:column !important;transition:background 0s !important;}"]),tu=function(t){return Object(r.useEffect)((function(){t.survey.seen_at||t.dispatch(jn.seen(t.survey.survey_id))}),[]),a.a.createElement($s,null,t.children)},eu=Object(_r.b)(Rr).withConfig({componentId:"cly__sc-90r5rj-0"})(["#customerly-container &{text-align:center !important;min-height:48px !important;width:100% !important;}#customerly-container &:not(:first-child){margin-top:10px !important;}#customerly-container & ","{margin:0 auto !important;border-left:1.1em solid "," !important;width:6em !important;height:6em !important;}"],Zr,(function(t){return t.theme.contrastColor})),nu=_r.b.span.withConfig({componentId:"cly__sc-90r5rj-1"})(["#customerly-container &{padding:10px !important;display:block !important;width:100% !important;}"]),ru=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=Object(r.useState)(0),n=Object(dt.a)(e,2),i=n[0],o=n[1],c=Object(r.useState)(!1),s=Object(dt.a)(c,2),u=s[0],l=s[1],p=Object(r.useState)(0),f=Object(dt.a)(p,2),g=f[0],h=f[1];Object(r.useEffect)((function(){i!==t.survey.next_question.survey_question_id&&(o(t.survey.next_question.survey_question_id),l(!1),h(0))}),[t.survey.next_question]);var b=function(){var e=Object(d.a)(m.a.mark((function e(n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),h(n),e.next=4,t.dispatch(jn.submitSurveyAnswer({surveyId:t.survey.survey_id,questionId:t.survey.next_question.survey_question_id,questionType:Ge.ClosedQuestion,choiceId:n}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return a.a.createElement(tu,{survey:t.survey,dispatch:t.dispatch},a.a.createElement(gt,{items:t.survey.next_question.choices||[]},(function(t){return a.a.createElement(eu,{disabled:u,key:t.survey_choice_id,onClick:function(){return b(t.survey_choice_id)}},a.a.createElement(_a,{isLoading:u&&g===t.survey_choice_id}),a.a.createElement(xr,{condition:!u||g!==t.survey_choice_id},a.a.createElement(nu,null,t.value)))})))})),au=Object(_r.b)(Is).withConfig({componentId:"cly__sc-30bsoz-0"})(["#customerly-container &{width:100% !important;}"]),iu=_r.b.div.withConfig({componentId:"cly__sc-30bsoz-1"})(["#customerly-container &{margin:0 !important;overflow:hidden !important;background:"," !important;display:flex !important;flex-direction:column !important;height:auto !important;-webkit-box-pack:end !important;min-height:200px !important;max-height:","px !important;width:100% !important;border-radius:16px !important;box-shadow:rgba(0,0,0,0.05) 0 0 0 1px,rgba(0,0,0,0.15) 0 5px 30px 0,rgba(0,0,0,0.05) 0 3px 3px 0 !important;margin-top:8px !important;}@media (max-width:460px){#customerly-container &{z-index:2147482999 !important;width:100% !important;height:100% !important;bottom:0 !important;border-radius:0 !important;max-height:100% !important;transform:none !important}}"],(function(t){return t.theme.accentColor}),(function(t){return t.theme.widgetHeight})),ou=_r.b.div.withConfig({componentId:"cly__sc-30bsoz-2"})(["#customerly-container &{display:flex !important;flex-direction:column !important;height:100% !important;overflow:auto !important;padding:16px !important;}"]),cu=_r.b.div.withConfig({componentId:"cly__sc-30bsoz-3"})(["#customerly-container &{}"]),su=_r.b.div.withConfig({componentId:"cly__sc-30bsoz-4"})(["#customerly-container &{margin:50px 16px 40px !important;color:#282828 !important;font-size:18px !important;font-weight:600 !important;text-align:center !important;}"]),uu=_r.b.div.withConfig({componentId:"cly__sc-30bsoz-5"})(["#customerly-container &{display:flex !important;flex-direction:row !important;justify-content:end !important;align-items:end !important;margin:16px 0 0 !important;width:100% !important;}"]),lu=Object(_r.b)(Rr).withConfig({componentId:"cly__sc-30bsoz-6"})(["#customerly-container &{min-width:30% !important;height:48px !important;padding:0 16px !important;justify-content:center !important;}#customerly-container & ","{border-left:1.1em solid "," !important;width:6em !important;height:6em !important;}"],Zr,(function(t){return t.theme.contrastColor})),pu=_r.b.span.withConfig({componentId:"cly__sc-30bsoz-7"})(["#customerly-container &{padding-right:8px !important;}"]),mu=_r.b.textarea.withConfig({componentId:"cly__vvril1-0"})(["#customerly-container &{padding:16px !important;background-color:#ffffff !important;border-radius:8px !important;color:#282828 !important;font-size:14px !important;font-weight:400 !important;resize:none !important;-webkit-transition:box-shadow 0.3s ease-in-out,border 0.3s ease-in-out !important;-moz-transition:box-shadow 0.3s ease-in-out,border 0.3s ease-in-out !important;-ms-transition:box-shadow 0.3s ease-in-out,border 0.3s ease-in-out !important;-o-transition:box-shadow 0.3s ease-in-out,border 0.3s ease-in-out !important;outline:none !important;border:1px solid #dddddd !important;}#customerly-container &:focus{box-shadow:0 0 5px "," !important;border:1px solid "," !important;}"],(function(t){return Mr(t.theme.accentColor,20)}),(function(t){return Mr(t.theme.accentColor,20)})),du=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=Object(r.useState)(""),n=Object(dt.a)(e,2),i=n[0],o=n[1],c=Object(r.useState)(!1),s=Object(dt.a)(c,2),u=s[0],l=s[1],p=Object(r.useState)(0),f=Object(dt.a)(p,2),g=f[0],h=f[1],b=Object(jr.d)().t;Object(r.useEffect)((function(){g!==t.survey.next_question.survey_question_id&&(h(t.survey.next_question.survey_question_id),l(!1),o(""))}),[t.survey.next_question]);var D=function(){var e=Object(d.a)(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.next=3,t.dispatch(jn.submitSurveyAnswer({surveyId:t.survey.survey_id,questionId:t.survey.next_question.survey_question_id,questionType:Ge.OpenQuestion,answer:i}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return a.a.createElement(tu,{survey:t.survey,dispatch:t.dispatch},a.a.createElement(mu,{placeholder:b("Widget.Notification.SurveyNotification.insertAnswer"),rows:10,value:i,onChange:function(t){o(t.target.value)}}),a.a.createElement(uu,null,a.a.createElement(lu,{onClick:D,disabled:u},a.a.createElement(_a,{isLoading:u}),a.a.createElement(xr,{condition:!u},a.a.createElement(pu,null,b("Widget.Notification.SurveyNotification.next")),a.a.createElement(kr,{type:Qn.ArrowRight,size:24,fill:"#fff"})))))})),fu="#e6dad7",gu=function(t,e){return"rgba(".concat(Lr(t,e),")")},hu=_r.b.div.withConfig({componentId:"cly__sc-43oqzt-0"})(["#customerly-container &{background-color:"," !important;width:16px !important;height:16px !important;border-radius:50% !important;border:1px solid "," !important;}"],(function(t){return t.checked?gu(t.theme.accentColor,80):"transparent"}),(function(t){return t.checked?gu(t.theme.accentColor,60):fu})),bu=_r.b.div.withConfig({componentId:"cly__sc-43oqzt-1"})(["#customerly-container &{border:1px solid "," !important;cursor:pointer !important;display:flex !important;background-color:"," !important;border-radius:8px !important;color:"," !important;font-size:16px !important;font-weight:600 !important;align-items:center !important;justify-content:left !important;text-align:left !important;padding:16px !important;}#customerly-container &:not(:first-child){margin-top:10px !important;}#customerly-container &:hover{background:rgba( "," ) !important;box-shadow:0 1px 6px 0 "," !important;border:1px solid "," !important;color:"," !important;transition:background 100ms ease-in-out,border 100ms ease-in-out,box-shadow 100ms ease-in-out,color 100ms ease-in-out !important;}#customerly-container &:hover ","{background-color:"," !important;border:1px solid "," !important;transition:background 100ms ease-in-out,border 100ms ease-in-out,color 100ms ease-in-out !important;}#customerly-container &:active{background-color:"," !important;background-size:100% !important;transition:background 0s !important;}#customerly-container & *{cursor:pointer !important;}"],(function(t){return t.checked?gu(t.theme.accentColor,30):fu}),(function(t){return t.checked?gu(t.theme.accentColor,20):Fr}),(function(t){return t.checked?t.theme.accentColor:"#ada3a1"}),(function(t){return gu(t.theme.accentColor,5)}),(function(t){return gu(t.theme.accentColor,10)}),(function(t){return zr(t.theme.accentColor,30)}),(function(t){return t.checked?t.theme.accentColor:gu(t.theme.accentColor,70)}),hu,(function(t){return t.checked?t.theme.accentColor:gu(t.theme.accentColor,20)}),(function(t){return gu(t.theme.accentColor,30)}),(function(t){return zr(t.theme.colorWhite,20)})),Du=_r.b.div.withConfig({componentId:"cly__sc-43oqzt-2"})(["#customerly-container &{margin-left:10px !important;text-align:left !important;}"]),vu=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=Object(r.useState)(-1),n=Object(dt.a)(e,2),i=n[0],o=n[1],c=Object(r.useState)(!1),s=Object(dt.a)(c,2),u=s[0],l=s[1],p=Object(r.useState)(0),f=Object(dt.a)(p,2),g=f[0],h=f[1],b=Object(jr.d)().t;Object(r.useEffect)((function(){g!==t.survey.next_question.survey_question_id&&(h(t.survey.next_question.survey_question_id),l(!1),o(-1))}),[t.survey.next_question]);var D=function(){var t=Object(d.a)(m.a.mark((function t(e){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o(e);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),v=function(){var e=Object(d.a)(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.next=3,t.dispatch(jn.submitSurveyAnswer({surveyId:t.survey.survey_id,questionId:t.survey.next_question.survey_question_id,questionType:Ge.ClosedQuestion,choiceId:i}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return a.a.createElement(tu,{survey:t.survey,dispatch:t.dispatch},a.a.createElement(gt,{items:t.survey.next_question.choices||[]},(function(t){return a.a.createElement(bu,{key:t.survey_choice_id,checked:t.survey_choice_id===i,onClick:function(){return D(t.survey_choice_id)}},a.a.createElement(hu,{checked:t.survey_choice_id===i}),a.a.createElement(Du,null,t.value))})),a.a.createElement(uu,null,a.a.createElement(lu,{onClick:v,disabled:u||-1===i},a.a.createElement(_a,{isLoading:u}),a.a.createElement(xr,{condition:!u},a.a.createElement(pu,null,b("Widget.Notification.SurveyNotification.next")),a.a.createElement(kr,{type:Qn.ArrowRight,size:24,fill:"#fff"})))))})),wu=_r.b.div.withConfig({componentId:"cly__t4lw27-0"})(["#customerly-container &{display:flex !important;flex-direction:row !important;justify-content:space-evenly !important;align-items:center !important;padding:24px 40px !important;background-color:#ffffff !important;border-radius:8px !important;-webkit-transition:box-shadow 0.3s ease-in-out,border 0.3s ease-in-out !important;-moz-transition:box-shadow 0.3s ease-in-out,border 0.3s ease-in-out !important;-ms-transition:box-shadow 0.3s ease-in-out,border 0.3s ease-in-out !important;-o-transition:box-shadow 0.3s ease-in-out,border 0.3s ease-in-out !important;outline:none !important;cursor:auto !important;}"]),yu=_r.b.div.withConfig({componentId:"cly__t4lw27-1"})(["#customerly-container &{cursor:pointer !important;}#customerly-container & *{cursor:pointer !important;}"]),Cu=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=Object(r.useState)(-1),n=Object(dt.a)(e,2),i=n[0],o=n[1],c=Object(r.useState)(-1),s=Object(dt.a)(c,2),u=s[0],l=s[1],p=Object(r.useState)(!1),f=Object(dt.a)(p,2),g=f[0],h=f[1],b=Object(r.useState)(0),D=Object(dt.a)(b,2),v=D[0],w=D[1],y=Object(jr.d)().t,C=t.max-t.min+1,x=Object(ht.a)(Array(C).keys());Object(r.useEffect)((function(){v!==t.survey.next_question.survey_question_id&&(w(t.survey.next_question.survey_question_id),h(!1),o(-1))}),[t.survey.next_question]);var _=function(t){l(t+1)},E=function(t){var e=i;return u>0&&(e=u),t0&&!t.widget.open,timeout:1e3,classNames:Yr,appear:!0,unmountOnExit:!0},a.a.createElement(xr,{condition:!n||n&&""!==e.thankyou_text},a.a.createElement(Ss,null,a.a.createElement(au,null,a.a.createElement(As,{onClick:u},a.a.createElement(kr,{type:Qn.CloseFilled,fill:"#000",size:20}),!n&&a.a.createElement("span",null,i("Widget.Notification.SurveyNotification.discard")),n&&a.a.createElement("span",null,i("Widget.Notification.SurveyNotification.close")))),a.a.createElement(iu,null,a.a.createElement(ou,null,!n&&a.a.createElement(Js,{survey:t.survey}),a.a.createElement(aa,null,a.a.createElement(cu,null,function(){switch(t.survey.next_question.type){case tc.Buttons:return a.a.createElement(ru,{survey:t.survey,onReject:o});case tc.Select:return a.a.createElement(Ou,{survey:t.survey,onReject:o});case tc.Textarea:return a.a.createElement(du,{survey:t.survey,onReject:o});case tc.Textbox:return a.a.createElement(Au,{survey:t.survey,onReject:o});case tc.RadioButtons:return a.a.createElement(vu,{survey:t.survey,onReject:o});case tc.Stars:return a.a.createElement(Cu,{min:1,max:5,value:4,survey:t.survey,onReject:o});case tc.Numeric:return a.a.createElement(_u,{survey:t.survey,onReject:o});case tc.Scale:return a.a.createElement(Pu,{survey:t.survey,onReject:o});default:return null}}()||a.a.createElement(su,{dangerouslySetInnerHTML:{__html:e.thankyou_text}}))),a.a.createElement(xr,{condition:t.ping.app_config.branded_widget},a.a.createElement(zu,null)))))))})),Wu=function(t){return t?"welcome-user/sent":"welcome-lead/sent"},qu=function(t){var e=Wu(t);return!Boolean(St(e))},Uu=Object(_r.b)(Ss).withConfig({componentId:"cly__sc-11k2p90-0"})(["#customerly-container &{width:360px !important;}"]),Vu=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=Object(jr.d)().t,n=Object(c.c)(Pa),i=Object(r.useState)(!1),o=Object(dt.a)(i,2),s=o[0],u=o[1],l=function(){var e=Object(d.a)(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u(!0),t.dispatch(Dn.goToConversationCompose(void 0));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=n?t.ping.app_config.welcome_message_users:t.ping.app_config.welcome_message_visitors;return e||""},f=function(){return""!==p()};return Object(r.useEffect)((function(){qu(n)&&(f()&&fi(ui.Receive),function(t){var e=Wu(t);It(e,"true")}(n))})),a.a.createElement(xr,{condition:f()&&qu(n)&&!s},a.a.createElement(Uu,null,a.a.createElement(Is,null,a.a.createElement(As,{onClick:function(){return u(!0)}},a.a.createElement(kr,{type:Qn.CloseFilled,fill:"#000",size:20}),a.a.createElement("span",null,e("Widget.Notification.MessageNotification.close")))),a.a.createElement(zs,null,a.a.createElement(Ms,null,a.a.createElement(Ls,null,a.a.createElement(gt,{items:t.ping.active_accounts.slice(0,3)},(function(t,e){return a.a.createElement(Ts,{key:e,counter:e},a.a.createElement(Ya,{size:40,accountId:t.account_id}))}))),a.a.createElement(Ns,null,a.a.createElement(Hs,null,e("Widget.Notification.MessageNotification.messageFrom"),a.a.createElement(Ps,null,t.ping.app.name)),a.a.createElement(Rs,{dangerouslySetInnerHTML:{__html:p()}})))),a.a.createElement(qs,null,a.a.createElement(Us,{onClick:l},e("Widget.Notification.MessageNotification.replyTo",{name:t.ping.app.name})))))})),Xu=Object(c.b)((function(t){return{widget:t.widget}}))((function(t){var e=[],n=Object(r.useContext)(pi),i=Object(r.useState)(!1),o=Object(dt.a)(i,2),s=o[0],u=o[1],l=Object(c.c)((function(t){return t.widget.notifications.messages})),p=Object(c.c)((function(t){return t.ping.unread.surveys})),f=0!==l.length,g=p.length>0,h=function(e){void 0===e.account_id||t.widget.cards.conversation.selected&&e.conversation.conversation_id===t.widget.cards.conversation.selected.conversation_id||(fi(ui.Receive),t.dispatch(Ve.getNewsUnread({conversationId:e.conversation.conversation_id,timestamp:e.timestamp})))},b=function(){e.forEach((function(t){return t.unsubscribe()}))};return Object(r.useEffect)((function(){return function(){var t=Object(d.a)(m.a.mark((function t(){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s||setTimeout((function(){return u(!0)}),1500),n.isConnected()?e.push(n.onMessage(h)):n.isInitialized()&&e.push(n.onConnect((function(){e.push(n.onMessage(h))})));case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()().catch(console.error),b}),[n.isInitialized()]),a.a.createElement(xr,{condition:!t.widget.open},f&&s&&a.a.createElement(Vs,{messages:l}),!f&&g&&s&&a.a.createElement(Ru,{survey:p[0]}),!f&&!g&&s&&a.a.createElement(Vu,null))})),Zu=function(){var t=h(),e={};return t.has("fbclid")&&(e.fbclid=t.get("fbclid")),t.has("gclid")&&(e.gclid=t.get("gclid")),t.has("partner_id")&&(e.partner_id=t.get("partner_id")),t.has("utm_campaign")&&(e.utm_campaign=t.get("utm_campaign")),t.has("utm_content")&&(e.utm_content=t.get("utm_content")),t.has("utm_medium")&&(e.utm_medium=t.get("utm_medium")),t.has("utm_source")&&(e.utm_source=t.get("utm_source")),t.has("utm_term")&&(e.utm_term=t.get("utm_term")),e},Gu=Object(c.b)((function(t){return{ping:t.ping,widget:t.widget}}))((function(t){var e=Object(r.useRef)(!1);return Object(r.useEffect)((function(){e.current=!1}),[t.widget.hotReloadIteration]),Object(r.useEffect)((function(){if(!e.current){e.current=!0;var n,r=hr.getAvailable(t.ping),a={office_hours_next:(c=t.ping).app_config.office_hours_next,reply_time:c.app_config.reply_time},i=Object(bt.a)(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.dispatch(hr.compute({trigger:o,predicateMeta:a}))}}catch(s){i.e(s)}finally{i.f()}}var c})),null})),Yu=Object(c.b)((function(t){return{ping:t.ping,widget:t.widget}}))((function(t){var e=Object(r.useRef)(!1);return Object(r.useEffect)((function(){e.current=!1}),[t.widget.hotReloadIteration]),Object(r.useEffect)((function(){e.current||(e.current=!0,t.dispatch(wr.updateStats({path:b(),time:T()})))})),null})),Qu=_r.b.div.withConfig({componentId:"cly__sc-18jqeh9-0"})(["#customerly-container &{position:fixed !important;top:0 !important;bottom:0 !important;left:0 !important;right:0 !important;z-index:2147482999 !important;background:rgba(0,0,0,0.7) !important;display:flex !important;flex-direction:column !important;justify-content:center !important;align-items:center !important;backdrop-filter:blur(5px) !important;}"]),Ku=_r.b.div.withConfig({componentId:"cly__sc-18jqeh9-1"})(["#customerly-container &{position:fixed !important;z-index:2147482999 !important;top:50% !important;left:50% !important;transform:translate(-50%,-50%);border-radius:8px !important;margin:auto;display:flex !important;flex-direction:column !important;justify-content:center !important;align-items:center !important;background-color:white !important;padding:8px !important;width:auto !important;max-width:90% !important;height:auto !important;max-height:90% !important;}"]),Ju=_r.b.button.withConfig({componentId:"cly__sc-18jqeh9-2"})(["#customerly-container &{position:absolute !important;right:0 !important;top:-36px !important;cursor:pointer !important;background:#f6f6f6 !important;padding:4px 8px !important;border-radius:16px !important;border:1px solid #e6e6e6 !important;font-size:14px !important;color:#6f6f6f !important;display:flex !important;align-items:center !important;}#customerly-container & *{cursor:pointer !important;}#customerly-container & svg{fill:#bfbfbf !important;}#customerly-container & span{margin-left:4px !important;line-height:20px !important;}"]),$u=_r.b.img.withConfig({componentId:"cly__sc-18jqeh9-3"})(["#customerly-container &{max-width:100% !important;height:auto !important;width:auto !important;display:"," !important;}"],(function(t){return t.show?"block":"none"})),tl=Object(c.b)((function(t){return{ping:t.ping,widget:t.widget}}))((function(t){var e=Object(jr.d)().t,n=Object(r.useState)(!1),i=Object(dt.a)(n,2),o=i[0],c=i[1],s=function(){c(!1),t.dispatch(Cr.close())};return a.a.createElement(a.a.Fragment,null,a.a.createElement(xr,{condition:t.widget.mediaPreview.isVisible},a.a.createElement(Qu,{onClick:s}),a.a.createElement(xr,{condition:t.widget.mediaPreview.type===U.Image},a.a.createElement(Ku,null,a.a.createElement(_a,{isLoading:!o}),a.a.createElement(Ju,{onClick:s,color:t.widget.accentColor},a.a.createElement(kr,{type:Qn.CloseFilled,fill:"#000",size:20}),a.a.createElement("span",null,e("Widget.Notification.MessageNotification.close"))),a.a.createElement($u,{src:t.widget.mediaPreview.src,show:o,onLoad:function(){return c(!0)}})))))})),el={en:{translation:n(87)}},nl={type:"backend",init:function(t,e){},read:function(t,e,n){n(null,el[t]?el[t][e]:void 0)}},rl=Object(c.b)((function(t){return{ping:t.ping,widget:t.widget}}))((function(t){var e=h();return Object(r.useEffect)((function(){var n=e.get("cly_debug");n&&t.dispatch(dn.registerDebugMode({token:n,domain:w()})).then()}),[]),null})),al=Object(c.b)((function(t){return{widget:t.widget,ping:t.ping}}))((function(t){var e=Object(r.useState)(!0),n=Object(dt.a)(e,2),i=n[0],o=n[1],s=Object(r.useState)(!1),u=Object(dt.a)(s,2),l=u[0],p=u[1],f=Object(r.useContext)(pi),g=Object(c.c)(Za);Object(r.useEffect)((function(){var e=function(){var e,n=function(t){return void 0!==t};window.customerly.settings.accentColor=[window.customerly.settings.accentColor,window.customerly.settings.color,null===(e=t.ping.app_config)||void 0===e?void 0:e.widget_color,t.widget.accentColor,ot].find(n),window.customerly.settings.autodetectLocale=[window.customerly.settings.autodetectLocale,window.customerly.settings.autodetect_language,t.widget.autodetectLocale].find(n),window.customerly.settings.visible=[window.customerly.settings.visible,window.customerly.settings.widget_visible,t.widget.visible].find(n),window.customerly.settings.visibleOnMobile=[window.customerly.settings.visibleOnMobile,window.customerly.settings.widget_visible_mobile,t.widget.visibleOnMobile].find(n),window.customerly.settings.attachmentsAvailable=[window.customerly.settings.attachmentsAvailable,window.customerly.settings.attachments_available,t.widget.attachmentsAvailable].find(n),window.customerly.settings.screenshotAvailable=[window.customerly.settings.screenshotAvailable,window.customerly.settings.screenshot_available,t.widget.screenshotAvailable].find(n)};(function(){var n=Object(d.a)(m.a.mark((function n(){var r,a,i;return m.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e(),p(!1),n.next=4,t.dispatch(ye.setWidgetStateUpdater(Object(O.a)(Object(O.a)(Object(O.a)({},t.widget),window.customerly.settings),{},{initialized:!0})));case 4:for(i in r=window.customerly.settings,a=Zu())a.hasOwnProperty(i)&&(r.attributes||(r.attributes={}),r.attributes[i]=a[i]);return n.next=9,t.dispatch(ye.getPing(r));case 9:p(!0);case 10:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}})()().catch(console.error)}),[t.widget.hotReloadIteration]),Object(r.useEffect)((function(){var e=function(){var e=Object(d.a)(m.a.mark((function e(){var n,r,a,i,c,s,u;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return!1,n=[Os.a,nl,Fs.a],r=[{prefix:"".concat(wt,"/").concat("i18next","/"),expirationTime:2592e6,defaultVersion:"028d9366556f5d4c1481d4907694f5f03f8566f3",store:window.localStorage},{},{loadPath:"".concat("https://messenger.customerly.io","/locales/{{lng}}/{{ns}}.json")}],a=function(){var e=Object(d.a)(m.a.mark((function e(n,r,a){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.dispatch(ye.setWidgetStateUpdater(Object(O.a)(Object(O.a)({},t.widget),{},{locale:n,direction:a,accentColor:r,contrastColor:void 0!==window.customerly.settings.contrastColor?window.customerly.settings.contrastColor:(o=r,Ir(o)?Fr:Or),notifications:Object(O.a)(Object(O.a)({},t.widget.notifications),{},{messages:t.widget.notifications?t.widget.notifications.messages:(i=t.ping.unread.messages,i.filter((function(t){return!t.discarded})))}),mediaPreview:{isVisible:!1}}))).catch(console.error);case 2:case"end":return e.stop()}var i,o}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),i=function(){var t=Object(d.a)(m.a.mark((function t(e){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:Je.a.use(js.a).use(jr.c).init({backend:{backends:n,backendOptions:r},fallbackLng:"en",lng:e,debug:!1,react:{useSuspense:!1},interpolation:{escapeValue:!1}}).catch(console.error);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),c=t.widget.autodetectLocale?ks(t.ping.app_config.default_language):t.ping.app_config.default_language,s=0===t.ping.app_config.widget_position?q.Left:q.Right,window.customerly.settings.direction!==q.Left&&window.customerly.settings.direction!==q.Right||(s=window.customerly.settings.direction),u=window.customerly.settings.accentColor===ot?t.ping.app_config.widget_color:window.customerly.settings.accentColor,window.customerly.settings.accentColor=u,e.next=12,a(c,u,s);case 12:return e.next=14,i(c);case 14:t.ping.websocket.token&&f.init(t.ping.websocket.endpoint,t.ping.websocket.port,t.ping.websocket.token),o(!1);case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();!Nt(t.ping)&&l&&e().catch(console.error)}),[l]);return a.a.createElement(xr,{condition:!i},a.a.createElement(_r.a,{theme:g},a.a.createElement(pi.Provider,{value:f},a.a.createElement(rl,null),a.a.createElement(ds,null),a.a.createElement(xr,{condition:function(){if(t.ping.user&&t.ping.user.spam)return!1;if(t.widget.open)return!0;if(!t.widget.visible)return!1;if(rr()&&!t.widget.visibleOnMobile)return!1;if(null==t.ping.app_config)return!1;if(t.ping.unread.surveys.length>0||t.ping.unread.messages.length>0)return!0;if(!t.ping.app_config.widget_visible_lead&&!t.ping.user.is_user)return!1;if(!t.ping.app_config.widget_visible_user&&t.ping.user.is_user)return!1;var e=!Yn(t.ping.app_config.office_hours_next,t.ping.app_config.reply_time);return!e||e&&t.ping.app_config.widget_visible_out_office_hour}()},a.a.createElement(jr.a,{i18n:Je.a},a.a.createElement(Tr,null,a.a.createElement(_s,null),a.a.createElement(Yu,null),a.a.createElement(Gu,null),a.a.createElement(os,null),a.a.createElement(Xu,null),a.a.createElement(ms,null),a.a.createElement(tl,null)))))))})),il=function(t){return a.a.createElement(c.a,{store:mt},a.a.createElement(al,null))};o.a.render(a.a.createElement(il,null),document.getElementById("customerly-container")),window.customerly=new function t(){var e=this;Object(f.a)(this,t),this.settings=void 0,this.queue=void 0,this.consumeQueue=function(){e.queue.forEach((function(t){var e={type:t[0],payload:{}};switch(t[0]){case Dt.Hide:case Dt.Show:case Dt.Open:case Dt.Close:case Dt.Logout:break;case Dt.Update:e.payload={settings:t[1]||{}};break;case Dt.Attribute:e.payload={name:t[1],value:t[2]};break;case Dt.Event:e.payload={name:t[1]};break;case Dt.ShowNewMessage:e.payload={message:t[1]}}window.postMessage(e,"*")})),e.queue=[]},this.event=function(t){e.send(Dt.Event,{name:t})},this.attribute=function(t,n){e.send(Dt.Attribute,{name:t,value:n})},this.show=function(){e.send(Dt.Show)},this.hide=function(){e.send(Dt.Hide)},this.open=function(){e.send(Dt.Open)},this.close=function(){e.send(Dt.Close)},this.logout=function(){e.send(Dt.Logout)},this.update=function(t){e.send(Dt.Update,{settings:t})},this.showNewMessage=function(t){e.send(Dt.ShowNewMessage,{message:t})},this.send=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;window.postMessage({type:t,payload:e},"*")},this.settings=window.customerly&&window.customerly.settings||window.customerlySettings,this.queue=window.customerly&&window.customerly.queue||[]}},87:function(t){t.exports=JSON.parse('{"DateTime":{"april":"April","august":"August","december":"December","february":"February","january":"January","july":"July","june":"June","march":"March","may":"May","november":"November","october":"October","september":"September"},"TimeAgo":{"day":"a day","day_plural":"{{count}} days","hour":"a hour","hour_plural":"{{count}} hours","justNow":"just now","minute":"a min","minute_plural":"{{count}} mins","month":"a month","month_plural":"{{count}} months","second":"a second","second_plural":"{{count}} sec","suffixAgo":"ago","suffixFromNow":"from now","week":"a week","week_plural":"{{count}} week","year":"a year","year_plural":"{{count}} years"},"Widget":{"MediaPreview":{"close":"Close"},"Messenger":{"Calendly":{"header":{"bookMeeting":"Book a meeting","scheduleDemo":"Schedule a demo"}},"Conversation":{"Compose":{"Bubble":{"EmailBubble":{"View Email":"","openEmail":"View Email","sentViaEmail":"This message was sent via email"},"KnowledgeBaseAutoSearchStaticBubble":{"foundArticles":"Check out these articles I\u2019ve found for you."},"OfficeHourBubble":{"day0":"Sunday","day1":"Monday","day2":"Tuesday","day3":"Wednesday","day4":"Thursday","day5":"Friday","day6":"Saturday","duringWeekdays":"We are out of office at the moment. You can find us during the week from {{from}} to {{to}}.","duringWeekends":"We are out of office at the moment. During the weekend we are available from {{from}} to {{to}}.","replyInADay":"Team usually replies in a day.","replyInAnHour":"Team usually replies in an hour.","replyInMinutes":"Team usually replies in a few minutes.","willBackOn":"We are out of office at the moment. We will be back on {{day}} from {{from}}.","willBackToday":"We are out of office at the moment. We will be back today at {{from}}.","willBackTomorrow":"We are out of office at the moment. We will be back tomorrow at {{from}}."},"ProfilingBubble":{"emailPlaceholder":"Your email..","emailRequired":"In order to better support you, we require your email address.","leaveYourEmail":"What\'s your best email?","privacyPolicyAcceptance":"By proceeding you accept our Privacy Policy"}},"EmojiModal":{"frequentlyUsed":"Frequently used","smileysPeople":"Smileys & People"},"GIFModal":{"search":"Search a GIF..."},"Watermark":{"watermark":"Add free <1>live chat1> to your website"},"body":{"dropError":"File size cannot exceed 4MB","dropYourFiles":"Drop your files here","isTyping":"{{account}} is typing..."},"footer":{"sendAMessage":"Send a message..."}},"List":{"body":{"you":"You"},"footer":{"startNew":"Start new conversation"},"header":{"yourConversations":"Your conversations"}}},"Home":{"Conversation":{"body":{"You":"You"},"footer":{"startNew":"Start new conversation"},"header":{"seeAll":"See All","yourConversations":"Your conversations"}},"Header":{"helloCompany":"Hello from {{company}} \ud83d\udc4b\ud83c\udffb","helloUser":"Hello {{user}} \ud83d\udc4b\ud83c\udffb","teamIntro":"We are here to help you!"},"PoweredBy":{"poweredBy":"Add the free live chat to your website"}},"Knowledge":{"ArticleModal":{"writtenBy":"Written by {{name}}"},"body":{"search":"Search...","searchResultsFailed":"We didn\'t find any articles related to your search: \'{{keyword}}\'. Please try again. ","searchResultsSuccess":"Search results for \'{{keyword}}\'","seeMoreResults":"See more results"},"header":{"findAnAnswer":"Find an answer","openHelpCenter":"Open Help Center"}}},"Notification":{"Message":{"close":"Close","isTyping":"","replyTo":"","sentViaEmail":""},"MessageNotification":{"close":"Close","isTyping":"{{name}} is typing","messageFrom":"Message from ","replyTo":"Reply to {{name}}","sentViaEmail":"This message was sent via email"},"SurveyNotification":{"PoweredBy":{"poweredBy":"We are proud to use Customerly"},"close":"Close","discard":"Discard","insertAnswer":"Insert your answer here...","next":"Next"}},"Realtime":{"buttons":{"accept":"Accept","reject":"Decline"},"header":{"assist":"To assist you with {{name}}","caller":"{{name}} wants to start a video call"}}}}')}},[[150,1,2]]]);
//# sourceMappingURL=main.241b2f91.chunk.js.map